]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/_core_wrap.cpp
trying to make GetData() return data format more clear
[wxWidgets.git] / wxPython / src / msw / _core_wrap.cpp
CommitLineData
d55e5bfc
RD
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
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
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; }
25private:
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
c32bde28 46#define SWIG_TypePrettyName SWIG_Python_TypePrettyName
d55e5bfc
RD
47#define SWIG_TypeQuery SWIG_Python_TypeQuery
48#define SWIG_TypeClientData SWIG_Python_TypeClientData
49#define SWIG_PackData SWIG_Python_PackData
50#define SWIG_UnpackData SWIG_Python_UnpackData
51
52
53/***********************************************************************
54 * common.swg for wxPython
55 *
56 * Include only the function prototypes and such from SWIG's common.swg,
57 * but not the runtime functions themselves. This helps keep the
58 * wrapper files clean of unnecessary stuff that is in the libpy.c file
59 * anyway.
60 *
61 ************************************************************************/
62
63#include <string.h>
64
65#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
66# if defined(_MSC_VER) || defined(__GNUC__)
67# if defined(STATIC_LINKED)
68# define SWIGEXPORT(a) a
69# define SWIGIMPORT(a) extern a
70# else
71# define SWIGEXPORT(a) __declspec(dllexport) a
72# define SWIGIMPORT(a) extern a
73# endif
74# else
75# if defined(__BORLANDC__)
76# define SWIGEXPORT(a) a _export
77# define SWIGIMPORT(a) a _export
78# else
79# define SWIGEXPORT(a) a
80# define SWIGIMPORT(a) a
81# endif
82# endif
83#else
84# define SWIGEXPORT(a) a
85# define SWIGIMPORT(a) a
86#endif
87
88#ifdef SWIG_GLOBAL
89# define SWIGRUNTIME(a) SWIGEXPORT(a)
90#else
91# define SWIGRUNTIME(a) static a
92#endif
93
94#ifdef __cplusplus
95extern "C" {
96#endif
97
98typedef void *(*swig_converter_func)(void *);
99typedef struct swig_type_info *(*swig_dycast_func)(void **);
100
101typedef struct swig_type_info {
102 const char *name;
103 swig_converter_func converter;
104 const char *str;
105 void *clientdata;
106 swig_dycast_func dcast;
107 struct swig_type_info *next;
108 struct swig_type_info *prev;
109} swig_type_info;
110
111
112SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
113SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
114SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
115SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
116SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
c32bde28 117SWIGIMPORT(const char *) SWIG_TypePrettyName(const swig_type_info *);
d55e5bfc
RD
118SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
119SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
120SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
121SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
122
123
124#ifdef __cplusplus
125}
126#endif
127
c32bde28 128
d55e5bfc
RD
129/***********************************************************************
130 * pyrun.swg for wxPython
131 *
132 * Include only the function prototypes and such from SWIG's pyrun.swg,
133 * but not the runtime functions themselves. This helps keep the
134 * wrapper files clean of unnecessary stuff that is in the libpy.c file
135 * anyway.
136 *
137 ************************************************************************/
138
d55e5bfc
RD
139#ifdef __cplusplus
140extern "C" {
141#endif
142
143#define SWIG_PY_INT 1
144#define SWIG_PY_FLOAT 2
145#define SWIG_PY_STRING 3
146#define SWIG_PY_POINTER 4
147#define SWIG_PY_BINARY 5
148
149/* Flags for pointer conversion */
150
151#define SWIG_POINTER_EXCEPTION 0x1
152#define SWIG_POINTER_DISOWN 0x2
153
154/* Exception handling in wrappers */
155#define SWIG_fail goto fail
156
157/* Constant information structure */
158typedef struct swig_const_info {
159 int type;
160 char *name;
161 long lvalue;
162 double dvalue;
163 void *pvalue;
164 swig_type_info **ptype;
165} swig_const_info;
166
167/* Common SWIG API */
168#define SWIG_ConvertPtr(obj, pp, type, flags) \
169 SWIG_Python_ConvertPtr(obj, pp, type, flags)
170#define SWIG_NewPointerObj(p, type, flags) \
171 SWIG_Python_NewPointerObj(p, type, flags)
172#define SWIG_MustGetPtr(p, type, argnum, flags) \
173 SWIG_Python_MustGetPtr(p, type, argnum, flags)
174
175/* Python-specific SWIG API */
176#define SWIG_newvarlink() \
177 SWIG_Python_newvarlink()
178#define SWIG_addvarlink(p, name, get_attr, set_attr) \
179 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
180#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
181 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
182#define SWIG_NewPackedObj(ptr, sz, type) \
183 SWIG_Python_NewPackedObj(ptr, sz, type)
184#define SWIG_InstallConstants(d, constants) \
185 SWIG_Python_InstallConstants(d, constants)
186
187typedef double (*py_objasdbl_conv)(PyObject *obj);
188
189SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
190SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
191SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
192SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
193SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
194SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
195SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
196SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
197
198
199/* Contract support */
200
201#define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
202
203#ifdef __cplusplus
204}
205#endif
206
207
c32bde28 208
d55e5bfc
RD
209/* -------- TYPES TABLE (BEGIN) -------- */
210
211#define SWIGTYPE_p_wxLayoutConstraints swig_types[0]
212#define SWIGTYPE_p_wxRealPoint swig_types[1]
213#define SWIGTYPE_p_wxSizerItem swig_types[2]
214#define SWIGTYPE_p_wxGBSizerItem swig_types[3]
215#define SWIGTYPE_p_wxScrollEvent swig_types[4]
216#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[5]
217#define SWIGTYPE_p_wxSizer swig_types[6]
218#define SWIGTYPE_p_wxBoxSizer swig_types[7]
219#define SWIGTYPE_p_wxStaticBoxSizer swig_types[8]
220#define SWIGTYPE_p_wxGridBagSizer swig_types[9]
221#define SWIGTYPE_p_wxAcceleratorEntry swig_types[10]
222#define SWIGTYPE_p_wxUpdateUIEvent swig_types[11]
223#define SWIGTYPE_p_wxMenu swig_types[12]
224#define SWIGTYPE_p_wxEvent swig_types[13]
225#define SWIGTYPE_p_wxGridSizer swig_types[14]
226#define SWIGTYPE_p_wxFlexGridSizer swig_types[15]
227#define SWIGTYPE_p_wxInitDialogEvent swig_types[16]
228#define SWIGTYPE_p_wxItemContainer swig_types[17]
229#define SWIGTYPE_p_wxNcPaintEvent swig_types[18]
230#define SWIGTYPE_p_wxPaintEvent swig_types[19]
231#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[20]
232#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[21]
233#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[22]
234#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[23]
235#define SWIGTYPE_p_wxControl swig_types[24]
236#define SWIGTYPE_p_wxFont swig_types[25]
237#define SWIGTYPE_p_wxMenuBarBase swig_types[26]
238#define SWIGTYPE_p_wxSetCursorEvent swig_types[27]
239#define SWIGTYPE_p_wxFSFile swig_types[28]
240#define SWIGTYPE_p_wxCaret swig_types[29]
241#define SWIGTYPE_p_wxRegion swig_types[30]
242#define SWIGTYPE_p_wxPoint2D swig_types[31]
243#define SWIGTYPE_p_int swig_types[32]
244#define SWIGTYPE_p_wxSize swig_types[33]
245#define SWIGTYPE_p_wxDC swig_types[34]
246#define SWIGTYPE_p_wxPySizer swig_types[35]
247#define SWIGTYPE_p_wxVisualAttributes swig_types[36]
248#define SWIGTYPE_p_wxNotifyEvent swig_types[37]
249#define SWIGTYPE_p_wxPyEvent swig_types[38]
250#define SWIGTYPE_p_wxPropagationDisabler swig_types[39]
251#define SWIGTYPE_p_wxAppTraits swig_types[40]
252#define SWIGTYPE_p_wxArrayString swig_types[41]
253#define SWIGTYPE_p_wxShowEvent swig_types[42]
254#define SWIGTYPE_p_wxToolTip swig_types[43]
c0de73ae
RD
255#define SWIGTYPE_p_wxIconizeEvent swig_types[44]
256#define SWIGTYPE_p_wxActivateEvent swig_types[45]
257#define SWIGTYPE_p_wxMoveEvent swig_types[46]
258#define SWIGTYPE_p_wxSizeEvent swig_types[47]
259#define SWIGTYPE_p_wxMaximizeEvent swig_types[48]
d55e5bfc
RD
260#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[49]
261#define SWIGTYPE_p_wxWindowCreateEvent swig_types[50]
262#define SWIGTYPE_p_wxIdleEvent swig_types[51]
263#define SWIGTYPE_p_wxMenuItem swig_types[52]
264#define SWIGTYPE_p_wxStaticBox swig_types[53]
265#define SWIGTYPE_p_long swig_types[54]
266#define SWIGTYPE_p_wxTIFFHandler swig_types[55]
267#define SWIGTYPE_p_wxXPMHandler swig_types[56]
268#define SWIGTYPE_p_wxPNMHandler swig_types[57]
269#define SWIGTYPE_p_wxJPEGHandler swig_types[58]
270#define SWIGTYPE_p_wxPCXHandler swig_types[59]
271#define SWIGTYPE_p_wxGIFHandler swig_types[60]
272#define SWIGTYPE_p_wxPNGHandler swig_types[61]
273#define SWIGTYPE_p_wxANIHandler swig_types[62]
274#define SWIGTYPE_p_wxMemoryFSHandler swig_types[63]
275#define SWIGTYPE_p_wxEvtHandler swig_types[64]
276#define SWIGTYPE_p_wxCURHandler swig_types[65]
277#define SWIGTYPE_p_wxICOHandler swig_types[66]
278#define SWIGTYPE_p_wxBMPHandler swig_types[67]
279#define SWIGTYPE_p_wxImageHandler swig_types[68]
280#define SWIGTYPE_p_wxFileSystemHandler swig_types[69]
281#define SWIGTYPE_p_wxPyFileSystemHandler swig_types[70]
282#define SWIGTYPE_p_wxInternetFSHandler swig_types[71]
283#define SWIGTYPE_p_wxZipFSHandler swig_types[72]
284#define SWIGTYPE_p_wxRect swig_types[73]
285#define SWIGTYPE_p_wxGBSpan swig_types[74]
286#define SWIGTYPE_p_wxPropagateOnce swig_types[75]
287#define SWIGTYPE_p_wxAcceleratorTable swig_types[76]
288#define SWIGTYPE_p_char swig_types[77]
289#define SWIGTYPE_p_wxGBPosition swig_types[78]
290#define SWIGTYPE_p_wxImage swig_types[79]
291#define SWIGTYPE_p_wxFrame swig_types[80]
292#define SWIGTYPE_p_wxScrollWinEvent swig_types[81]
293#define SWIGTYPE_p_wxImageHistogram swig_types[82]
294#define SWIGTYPE_p_byte swig_types[83]
295#define SWIGTYPE_p_wxPoint swig_types[84]
296#define SWIGTYPE_p_wxCursor swig_types[85]
297#define SWIGTYPE_p_wxObject swig_types[86]
298#define SWIGTYPE_p_wxPyInputStream swig_types[87]
299#define SWIGTYPE_p_wxOutputStream swig_types[88]
300#define SWIGTYPE_p_wxInputStream swig_types[89]
301#define SWIGTYPE_p_wxDateTime swig_types[90]
302#define SWIGTYPE_p_wxKeyEvent swig_types[91]
303#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[92]
304#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[93]
305#define SWIGTYPE_p_wxWindow swig_types[94]
306#define SWIGTYPE_p_wxMenuBar swig_types[95]
307#define SWIGTYPE_p_wxFileSystem swig_types[96]
308#define SWIGTYPE_p_wxBitmap swig_types[97]
309#define SWIGTYPE_p_wxMenuEvent swig_types[98]
310#define SWIGTYPE_p_wxContextMenuEvent swig_types[99]
311#define SWIGTYPE_p_unsigned_char swig_types[100]
312#define SWIGTYPE_p_wxCloseEvent swig_types[101]
313#define SWIGTYPE_p_wxEraseEvent swig_types[102]
314#define SWIGTYPE_p_wxMouseEvent swig_types[103]
315#define SWIGTYPE_p_wxPyApp swig_types[104]
316#define SWIGTYPE_p_wxCommandEvent swig_types[105]
317#define SWIGTYPE_p_wxPyCommandEvent swig_types[106]
318#define SWIGTYPE_p_wxPyDropTarget swig_types[107]
c0de73ae
RD
319#define SWIGTYPE_p_wxQuantize swig_types[108]
320#define SWIGTYPE_p_wxChildFocusEvent swig_types[109]
321#define SWIGTYPE_p_wxFocusEvent swig_types[110]
322#define SWIGTYPE_p_wxDropFilesEvent swig_types[111]
323#define SWIGTYPE_p_wxControlWithItems swig_types[112]
324#define SWIGTYPE_p_wxColour swig_types[113]
325#define SWIGTYPE_p_wxValidator swig_types[114]
326#define SWIGTYPE_p_wxPyValidator swig_types[115]
327static swig_type_info *swig_types[117];
d55e5bfc
RD
328
329/* -------- TYPES TABLE (END) -------- */
330
331
332/*-----------------------------------------------
333 @(target):= _core_.so
334 ------------------------------------------------*/
335#define SWIG_init init_core_
336
337#define SWIG_name "_core_"
338
c32bde28
RD
339/* Auxiliar swig macros that appear in the header */
340
341#define SWIG_OLDOBJ 1
342#define SWIG_NEWOBJ SWIG_OLDOBJ + 1
343#define SWIG_PYSTR SWIG_NEWOBJ + 1
d55e5bfc
RD
344
345#ifdef __cplusplus
346#define SWIGSTATICINLINE(a) static inline a
347#define SWIGSTATIC(a) static a
c32bde28
RD
348#define swig_new_array(size,Type) (new Type[(size)])
349#define swig_delete(cptr) delete cptr
d55e5bfc 350#define swig_delete_array(cptr) delete[] cptr
c32bde28
RD
351#define swig_const_cast(a,Type) const_cast<Type >(a)
352#define swig_static_cast(a,Type) static_cast<Type >(a)
353#define swig_reinterpret_cast(a,Type) reinterpret_cast<Type >(a)
354#define swig_new_copy(ptr,Type) (new Type(*ptr))
355#define swig_numeric_cast(a,Type) static_cast<Type >(a)
d55e5bfc
RD
356
357#else /* C case */
358
359#define SWIGSTATICINLINE(a) static a
360#define SWIGSTATIC(a) static a
c32bde28
RD
361#define swig_new_array(size,Type) ((Type*) malloc((size)*sizeof(Type)))
362#define swig_delete(cptr) free((char*)cptr)
d55e5bfc 363#define swig_delete_array(cptr) free((char*)cptr)
c32bde28
RD
364#define swig_const_cast(a,Type) (Type)(a)
365#define swig_static_cast(a,Type) (Type)(a)
366#define swig_reinterpret_cast(a,Type) (Type)(a)
367#define swig_numeric_cast(a,Type) (Type)(a)
368#define swig_new_copy(ptr,Type) ((Type*)memcpy(malloc(sizeof(Type)),ptr,sizeof(Type)))
d55e5bfc
RD
369
370#endif /* __cplusplus */
371
372
c32bde28
RD
373/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
374#define SWIG_From_signed_SS_char PyInt_FromLong
375/*@@*/
376/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
377#define SWIG_From_unsigned_SS_char PyInt_FromLong
378/*@@*/
379/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
380#define SWIG_From_short PyInt_FromLong
381/*@@*/
382/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
383#define SWIG_From_unsigned_SS_short PyInt_FromLong
384/*@@*/
385/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
386#define SWIG_From_int PyInt_FromLong
387/*@@*/
388/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
389#define SWIG_From_long PyInt_FromLong
390/*@@*/
391/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
392#define SWIG_From_float PyFloat_FromDouble
393/*@@*/
394/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
395#define SWIG_From_double PyFloat_FromDouble
396/*@@*/
d55e5bfc
RD
397
398
399#include "wx/wxPython/wxPython_int.h"
400#include "wx/wxPython/pyclasses.h"
401
402
403#ifndef wxPyUSE_EXPORT
404// Helper functions for dealing with SWIG objects and such. These are
405// located here so they know about the SWIG types and functions declared
406// in the wrapper code.
407
408#include <wx/hashmap.h>
409WX_DECLARE_STRING_HASH_MAP( swig_type_info*, wxPyTypeInfoHashMap );
410
411
412// Maintains a hashmap of className to swig_type_info pointers. Given the
413// name of a class either looks up the type info in the cache, or scans the
414// SWIG tables for it.
415extern PyObject* wxPyPtrTypeMap;
416static
417swig_type_info* wxPyFindSwigType(const wxChar* className) {
418
419 static wxPyTypeInfoHashMap* typeInfoCache = NULL;
420
421 if (typeInfoCache == NULL)
422 typeInfoCache = new wxPyTypeInfoHashMap;
423
424 wxString name(className);
425 swig_type_info* swigType = (*typeInfoCache)[name];
426
427 if (! swigType) {
428 // it wasn't in the cache, so look it up from SWIG
429 name.Append(wxT(" *"));
430 swigType = SWIG_Python_TypeQuery(name.mb_str());
431
432 // if it still wasn't found, try looking for a mapped name
433 if (!swigType) {
434 PyObject* item;
435 name = className;
436
437 if ((item = PyDict_GetItemString(wxPyPtrTypeMap,
438 (char*)(const char*)name.mbc_str())) != NULL) {
439 name = wxString(PyString_AsString(item), *wxConvCurrent);
440 name.Append(wxT(" *"));
441 swigType = SWIG_Python_TypeQuery(name.mb_str());
442 }
443 }
444 if (swigType) {
445 // and add it to the map if found
446 (*typeInfoCache)[className] = swigType;
447 }
448 }
449 return swigType;
450}
451
452
453// Check if a class name is a type known to SWIG
454bool wxPyCheckSwigType(const wxChar* className) {
455
456 swig_type_info* swigType = wxPyFindSwigType(className);
457 return swigType != NULL;
458}
459
460
461// Given a pointer to a C++ object and a class name, construct a Python proxy
462// object for it.
463PyObject* wxPyConstructObject(void* ptr,
464 const wxChar* className,
465 int setThisOwn) {
466
467 swig_type_info* swigType = wxPyFindSwigType(className);
468 wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConstructObject"));
469
470 return SWIG_Python_NewPointerObj(ptr, swigType, setThisOwn);
471}
472
473
474// Extract a pointer to the wrapped C++ object from a Python proxy object.
475// Ensures that the proxy object is of the specified (or derived) type. If
476// not able to perform the conversion then a Python exception is set and the
477// error should be handled properly in the caller. Returns True on success.
478bool wxPyConvertSwigPtr(PyObject* obj, void **ptr,
479 const wxChar* className) {
480
481 swig_type_info* swigType = wxPyFindSwigType(className);
482 wxCHECK_MSG(swigType != NULL, False, wxT("Unknown type in wxPyConvertSwigPtr"));
483
484 return SWIG_Python_ConvertPtr(obj, ptr, swigType, SWIG_POINTER_EXCEPTION) != -1;
485}
486
487
488// Make a SWIGified pointer object suitable for a .this attribute
489PyObject* wxPyMakeSwigPtr(void* ptr, const wxChar* className) {
490
491 PyObject* robj = NULL;
492
493 swig_type_info* swigType = wxPyFindSwigType(className);
494 wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConvertSwigPtr"));
495
496#ifdef SWIG_COBJECT_TYPES
497 robj = PyCObject_FromVoidPtrAndDesc((void *) ptr, (char *) swigType->name, NULL);
498#else
499 {
500 char result[1024];
501 char *r = result;
502 *(r++) = '_';
503 r = SWIG_Python_PackData(r, &ptr, sizeof(void *));
504 strcpy(r, swigType->name);
505 robj = PyString_FromString(result);
506 }
507#endif
508
509 return robj;
510}
511
512
513
514
515// Export a C API in a struct. Other modules will be able to load this from
516// the wx._core_ module and will then have safe access to these functions,
517// even if they are located in another shared library.
518static wxPyCoreAPI API = {
519
520 (p_SWIG_Python_TypeRegister_t)SWIG_Python_TypeRegister,
521 (p_SWIG_Python_TypeCheck_t)SWIG_Python_TypeCheck,
522 (p_SWIG_Python_TypeCast_t)SWIG_Python_TypeCast,
523 (p_SWIG_Python_TypeDynamicCast_t)SWIG_Python_TypeDynamicCast,
524 (p_SWIG_Python_TypeName_t)SWIG_Python_TypeName,
c32bde28 525 (p_SWIG_Python_TypePrettyName_t)SWIG_Python_TypePrettyName,
d55e5bfc
RD
526 (p_SWIG_Python_TypeQuery_t)SWIG_Python_TypeQuery,
527 (p_SWIG_Python_TypeClientData_t)SWIG_Python_TypeClientData,
528 (p_SWIG_Python_newvarlink_t)SWIG_Python_newvarlink,
529 (p_SWIG_Python_addvarlink_t)SWIG_Python_addvarlink,
530 (p_SWIG_Python_ConvertPtr_t)SWIG_Python_ConvertPtr,
531 (p_SWIG_Python_ConvertPacked_t)SWIG_Python_ConvertPacked,
532 (p_SWIG_Python_PackData_t)SWIG_Python_PackData,
533 (p_SWIG_Python_UnpackData_t)SWIG_Python_UnpackData,
534 (p_SWIG_Python_NewPointerObj_t)SWIG_Python_NewPointerObj,
535 (p_SWIG_Python_NewPackedObj_t)SWIG_Python_NewPackedObj,
536 (p_SWIG_Python_InstallConstants_t)SWIG_Python_InstallConstants,
537 (p_SWIG_Python_MustGetPtr_t)SWIG_Python_MustGetPtr,
538
539 wxPyCheckSwigType,
540 wxPyConstructObject,
541 wxPyConvertSwigPtr,
542 wxPyMakeSwigPtr,
543
544 wxPyBeginAllowThreads,
545 wxPyEndAllowThreads,
546 wxPyBeginBlockThreads,
547 wxPyEndBlockThreads,
548
549 wxPy_ConvertList,
550
551 wxString_in_helper,
552 Py2wxString,
553 wx2PyString,
554
555 byte_LIST_helper,
556 int_LIST_helper,
557 long_LIST_helper,
558 string_LIST_helper,
559 wxPoint_LIST_helper,
560 wxBitmap_LIST_helper,
561 wxString_LIST_helper,
562 wxAcceleratorEntry_LIST_helper,
563
564 wxSize_helper,
565 wxPoint_helper,
566 wxRealPoint_helper,
567 wxRect_helper,
568 wxColour_helper,
569 wxPoint2D_helper,
570
571 wxPySimple_typecheck,
572 wxColour_typecheck,
573
574 wxPyCBH_setCallbackInfo,
575 wxPyCBH_findCallback,
576 wxPyCBH_callCallback,
577 wxPyCBH_callCallbackObj,
578 wxPyCBH_delete,
579
580 wxPyMake_wxObject,
581 wxPyMake_wxSizer,
582 wxPyPtrTypeMap_Add,
583 wxPy2int_seq_helper,
584 wxPy4int_seq_helper,
585 wxArrayString2PyList_helper,
586 wxArrayInt2PyList_helper,
587
588 wxPyClientData_dtor,
589 wxPyUserData_dtor,
590 wxPyOORClientData_dtor,
591
592 wxPyCBInputStream_create,
593
594 wxPyInstance_Check,
0439c23b
RD
595 wxPySwigInstance_Check,
596
597 wxPyCheckForApp
d55e5bfc
RD
598
599};
600
601#endif
602
603
604#if ! wxUSE_HOTKEY
605enum wxHotkeyModifier
606{
607 wxMOD_NONE = 0,
608 wxMOD_ALT = 1,
609 wxMOD_CONTROL = 2,
610 wxMOD_SHIFT = 4,
611 wxMOD_WIN = 8
612};
613#define wxEVT_HOTKEY 9999
614#endif
615
616 static const wxString wxPyEmptyString(wxEmptyString);
617wxString wxObject_GetClassName(wxObject *self){
618 return self->GetClassInfo()->GetClassName();
619 }
620void wxObject_Destroy(wxObject *self){
621 delete self;
622 }
623
624#ifndef __WXMAC__
625#define wxCURSOR_COPY_ARROW wxCURSOR_ARROW
626#endif
627
628
629#include <limits.h>
630
631
c32bde28
RD
632SWIGSTATICINLINE(int)
633 SWIG_CheckLongInRange(long value, long min_value, long max_value,
634 const char *errmsg)
d55e5bfc 635{
c32bde28
RD
636 if (value < min_value) {
637 if (errmsg) {
638 PyErr_Format(PyExc_OverflowError,
639 "value %ld is less than '%s' minimum %ld",
640 value, errmsg, min_value);
641 }
642 return 0;
643 } else if (value > max_value) {
644 if (errmsg) {
645 PyErr_Format(PyExc_OverflowError,
646 "value %ld is greater than '%s' maximum %ld",
647 value, errmsg, max_value);
d55e5bfc 648 }
c32bde28 649 return 0;
d55e5bfc 650 }
c32bde28 651 return 1;
d55e5bfc
RD
652}
653
654
c32bde28
RD
655// See my_fragments.i
656SWIGSTATICINLINE(int)
657SWIG_AsVal_long(PyObject* obj, long* val)
d55e5bfc 658{
c32bde28
RD
659 if (PyNumber_Check(obj)) {
660 if (val) *val = PyInt_AsLong(obj);
661 return 1;
662 }
d55e5bfc
RD
663 else {
664 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
665 obj->ob_type->tp_name);
666 PyErr_SetObject(PyExc_TypeError, errmsg);
667 Py_DECREF(errmsg);
d55e5bfc 668 }
c32bde28 669 return 0;
d55e5bfc
RD
670}
671
672
673#if INT_MAX != LONG_MAX
674SWIGSTATICINLINE(int)
c32bde28 675 SWIG_AsVal_int(PyObject *obj, int *val)
d55e5bfc 676{
c32bde28
RD
677 const char* errmsg = val ? "int" : 0;
678 long v;
679 if (SWIG_AsVal_long(obj, &v)) {
680 if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
681 if (val) *val = swig_numeric_cast(v, int);
682 return 1;
683 } else {
684 return 0;
685 }
686 } else {
687 PyErr_Clear();
688 }
689 if (val) {
690 PyErr_SetString(PyExc_TypeError, "an int is expected");
691 }
692 return 0;
d55e5bfc
RD
693}
694#else
c32bde28
RD
695SWIGSTATICINLINE(int)
696 SWIG_AsVal_int(PyObject *obj, int *val)
697{
698 return SWIG_AsVal_long(obj,(long*)val);
699}
d55e5bfc
RD
700#endif
701
702
703SWIGSTATICINLINE(int)
c32bde28 704SWIG_As_int(PyObject* obj)
d55e5bfc 705{
c32bde28
RD
706 int v;
707 if (!SWIG_AsVal_int(obj, &v)) {
708 /*
709 this is needed to make valgrind/purify happier. the other
710 solution is throw an exception, but since this code should work
711 with plain C ....
712 */
713 memset((void*)&v, 0, sizeof(int));
d55e5bfc 714 }
c32bde28
RD
715 return v;
716}
717
718
719SWIGSTATICINLINE(int)
720SWIG_Check_int(PyObject* obj)
721{
722 return SWIG_AsVal_int(obj, (int*)0);
d55e5bfc
RD
723}
724
725PyObject *wxSize_Get(wxSize *self){
726 bool blocked = wxPyBeginBlockThreads();
727 PyObject* tup = PyTuple_New(2);
728 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
729 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
730 wxPyEndBlockThreads(blocked);
731 return tup;
732 }
733
c32bde28
RD
734// See my_fragments.i
735SWIGSTATICINLINE(int)
736SWIG_AsVal_double(PyObject *obj, double* val)
d55e5bfc 737{
c32bde28
RD
738 if (PyNumber_Check(obj)) {
739 if (val) *val = PyFloat_AsDouble(obj);
740 return 1;
741 }
d55e5bfc
RD
742 else {
743 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
744 obj->ob_type->tp_name);
745 PyErr_SetObject(PyExc_TypeError, errmsg);
746 Py_DECREF(errmsg);
d55e5bfc 747 }
c32bde28 748 return 0;
d55e5bfc
RD
749}
750
751
c32bde28
RD
752SWIGSTATICINLINE(double)
753SWIG_As_double(PyObject* obj)
d55e5bfc 754{
c32bde28
RD
755 double v;
756 if (!SWIG_AsVal_double(obj, &v)) {
757 /*
758 this is needed to make valgrind/purify happier. the other
759 solution is throw an exception, but since this code should work
760 with plain C ....
761 */
762 memset((void*)&v, 0, sizeof(double));
d55e5bfc 763 }
c32bde28
RD
764 return v;
765}
766
767
768SWIGSTATICINLINE(int)
769SWIG_Check_double(PyObject* obj)
770{
771 return SWIG_AsVal_double(obj, (double*)0);
d55e5bfc
RD
772}
773
774void wxRealPoint_Set(wxRealPoint *self,double x,double y){
775 self->x = x;
776 self->y = y;
777 }
778PyObject *wxRealPoint_Get(wxRealPoint *self){
779 bool blocked = wxPyBeginBlockThreads();
780 PyObject* tup = PyTuple_New(2);
781 PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->x));
782 PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->y));
783 wxPyEndBlockThreads(blocked);
784 return tup;
785 }
786
c32bde28
RD
787SWIGSTATICINLINE(long)
788SWIG_As_long(PyObject* obj)
d55e5bfc 789{
c32bde28
RD
790 long v;
791 if (!SWIG_AsVal_long(obj, &v)) {
792 /*
793 this is needed to make valgrind/purify happier. the other
794 solution is throw an exception, but since this code should work
795 with plain C ....
796 */
797 memset((void*)&v, 0, sizeof(long));
d55e5bfc 798 }
c32bde28
RD
799 return v;
800}
801
802
803SWIGSTATICINLINE(int)
804SWIG_Check_long(PyObject* obj)
805{
806 return SWIG_AsVal_long(obj, (long*)0);
d55e5bfc
RD
807}
808
809void wxPoint_Set(wxPoint *self,long x,long y){
810 self->x = x;
811 self->y = y;
812 }
813PyObject *wxPoint_Get(wxPoint *self){
814 bool blocked = wxPyBeginBlockThreads();
815 PyObject* tup = PyTuple_New(2);
816 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
817 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
818 wxPyEndBlockThreads(blocked);
819 return tup;
820 }
821void wxRect_Set(wxRect *self,int x,int y,int width,int height){
822 self->x = x;
823 self->y = y;
824 self->width = width;
825 self->height = height;
826 }
827PyObject *wxRect_Get(wxRect *self){
828 bool blocked = wxPyBeginBlockThreads();
829 PyObject* tup = PyTuple_New(4);
830 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
831 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
832 PyTuple_SET_ITEM(tup, 2, PyInt_FromLong(self->width));
833 PyTuple_SET_ITEM(tup, 3, PyInt_FromLong(self->height));
834 wxPyEndBlockThreads(blocked);
835 return tup;
836 }
837
838 PyObject* wxIntersectRect(wxRect* r1, wxRect* r2) {
839 wxRegion reg1(*r1);
840 wxRegion reg2(*r2);
841 wxRect dest(0,0,0,0);
842 PyObject* obj;
843
844 reg1.Intersect(reg2);
845 dest = reg1.GetBox();
846
847 if (dest != wxRect(0,0,0,0)) {
848 bool blocked = wxPyBeginBlockThreads();
849 wxRect* newRect = new wxRect(dest);
850 obj = wxPyConstructObject((void*)newRect, wxT("wxRect"), True);
851 wxPyEndBlockThreads(blocked);
852 return obj;
853 }
854 Py_INCREF(Py_None);
855 return Py_None;
856 }
857
858
c32bde28 859 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
d55e5bfc
RD
860 PyObject* o2;
861 PyObject* o3;
c32bde28 862
d55e5bfc
RD
863 if (!target) {
864 target = o;
865 } else if (target == Py_None) {
866 Py_DECREF(Py_None);
867 target = o;
7e63a440
RD
868 } else {
869 if (!PyTuple_Check(target)) {
870 o2 = target;
871 target = PyTuple_New(1);
872 PyTuple_SetItem(target, 0, o2);
873 }
d55e5bfc
RD
874 o3 = PyTuple_New(1);
875 PyTuple_SetItem(o3, 0, o);
876
877 o2 = target;
878 target = PySequence_Concat(o2, o3);
879 Py_DECREF(o2);
880 Py_DECREF(o3);
881 }
882 return target;
7e63a440 883 }
d55e5bfc 884
c32bde28 885
d55e5bfc
RD
886void wxPoint2D_Set(wxPoint2D *self,double x,double y){
887 self->m_x = x;
888 self->m_y = y;
889 }
890PyObject *wxPoint2D_Get(wxPoint2D *self){
891 bool blocked = wxPyBeginBlockThreads();
892 PyObject* tup = PyTuple_New(2);
893 PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->m_x));
894 PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->m_y));
895 wxPyEndBlockThreads(blocked);
896 return tup;
897 }
898
899#include "wx/wxPython/pyistream.h"
900
901wxPyInputStream *new_wxPyInputStream(PyObject *p){
902 wxInputStream* wxis = wxPyCBInputStream::create(p);
903 if (wxis)
904 return new wxPyInputStream(wxis);
905 else
906 return NULL;
907 }
908
909SWIGSTATICINLINE(PyObject*)
c32bde28 910 SWIG_From_char(char c)
d55e5bfc
RD
911{
912 return PyString_FromStringAndSize(&c,1);
913}
914
915
916SWIGSTATICINLINE(PyObject* )
c32bde28 917 SWIG_From_unsigned_SS_long(unsigned long value)
d55e5bfc
RD
918{
919 return (value > LONG_MAX) ?
920 PyLong_FromUnsignedLong(value)
c32bde28 921 : PyInt_FromLong(swig_numeric_cast(value,long));
d55e5bfc
RD
922}
923
924
c32bde28 925/* returns SWIG_OLDOBJ if the input is a raw char*, SWIG_PYSTR if is a PyString */
d55e5bfc 926SWIGSTATIC(int)
c32bde28 927SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize)
d55e5bfc
RD
928{
929 static swig_type_info* pchar_info = 0;
c32bde28 930 char* vptr = 0;
d55e5bfc 931 if (!pchar_info) pchar_info = SWIG_TypeQuery("char *");
c32bde28
RD
932 if (SWIG_ConvertPtr(obj, (void**)&vptr, pchar_info, 0) != -1) {
933 if (cptr) *cptr = vptr;
934 if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0;
935 return SWIG_OLDOBJ;
d55e5bfc 936 } else {
c32bde28
RD
937 if (PyString_Check(obj)) {
938 if (cptr) {
939 *cptr = PyString_AS_STRING(obj);
940 if (psize) {
941 *psize = PyString_GET_SIZE(obj) + 1;
942 }
943 }
944 return SWIG_PYSTR;
945 }
d55e5bfc 946 }
c32bde28
RD
947 if (cptr) {
948 PyErr_SetString(PyExc_TypeError, "a string is expected");
949 }
950 return 0;
d55e5bfc
RD
951}
952
953
c32bde28
RD
954SWIGSTATIC(int)
955SWIG_AsCharArray(PyObject *obj, char *val, size_t size)
d55e5bfc
RD
956{
957 char* cptr; size_t csize;
c32bde28
RD
958 if (SWIG_AsCharPtrAndSize(obj, &cptr, &csize)) {
959 /* in C you can do:
960
d55e5bfc
RD
961 char x[5] = "hello";
962
963 ie, assing the array using an extra '0' char.
964 */
d55e5bfc 965 if ((csize == size + 1) && !(cptr[csize-1])) --csize;
c32bde28
RD
966 if (csize <= size) {
967 if (val) {
968 if (csize) memcpy(val, cptr, csize);
969 if (csize < size) memset(val + csize, 0, size - csize);
970 }
971 return 1;
d55e5bfc
RD
972 }
973 }
c32bde28
RD
974 if (val) {
975 PyErr_Format(PyExc_TypeError,
976 "a char array of maximum size %ld is expected",
977 size);
978 }
979 return 0;
d55e5bfc
RD
980}
981
982
c32bde28
RD
983SWIGSTATICINLINE(int)
984 SWIG_AsVal_char(PyObject *obj, char *val)
985{
986 const char* errmsg = val ? "char" : 0;
987 long v;
988 if (SWIG_AsVal_long(obj, &v)) {
989 if (SWIG_CheckLongInRange(v, CHAR_MIN,CHAR_MAX, errmsg)) {
990 if (val) *val = v;
991 return 1;
992 } else {
993 return 0;
994 }
995 } else {
996 PyErr_Clear();
997 return SWIG_AsCharArray(obj, val, 1);
998 }
999 }
1000
1001
d55e5bfc 1002SWIGSTATICINLINE(char)
c32bde28
RD
1003SWIG_As_char(PyObject* obj)
1004{
1005 char v;
1006 if (!SWIG_AsVal_char(obj, &v)) {
1007 /*
1008 this is needed to make valgrind/purify happier. the other
1009 solution is throw an exception, but since this code should work
1010 with plain C ....
1011 */
1012 memset((void*)&v, 0, sizeof(char));
d55e5bfc 1013 }
c32bde28 1014 return v;
d55e5bfc
RD
1015}
1016
c32bde28 1017
d55e5bfc 1018SWIGSTATICINLINE(int)
c32bde28 1019SWIG_Check_char(PyObject* obj)
d55e5bfc 1020{
c32bde28 1021 return SWIG_AsVal_char(obj, (char*)0);
d55e5bfc
RD
1022}
1023
1024void wxOutputStream_write(wxOutputStream *self,PyObject *obj){
1025 // We use only strings for the streams, not unicode
1026 PyObject* str = PyObject_Str(obj);
1027 if (! str) {
1028 PyErr_SetString(PyExc_TypeError, "Unable to convert to string");
1029 return;
1030 }
1031 self->Write(PyString_AS_STRING(str),
1032 PyString_GET_SIZE(str));
1033 Py_DECREF(str);
1034 }
1035
1036#include "wx/wxPython/pyistream.h"
1037
1038
1039class wxPyFileSystemHandler : public wxFileSystemHandler
1040{
1041public:
1042 wxPyFileSystemHandler() : wxFileSystemHandler() {}
1043
1044 DEC_PYCALLBACK_BOOL_STRING_pure(CanOpen);
1045 DEC_PYCALLBACK_FSF_FSSTRING_pure(OpenFile);
1046 DEC_PYCALLBACK_STRING_STRINGINT_pure(FindFirst);
1047 DEC_PYCALLBACK_STRING__pure(FindNext);
1048
1049 wxString GetProtocol(const wxString& location) {
1050 return wxFileSystemHandler::GetProtocol(location);
1051 }
1052
1053 wxString GetLeftLocation(const wxString& location) {
1054 return wxFileSystemHandler::GetLeftLocation(location);
1055 }
1056
1057 wxString GetAnchor(const wxString& location) {
1058 return wxFileSystemHandler::GetAnchor(location);
1059 }
1060
1061 wxString GetRightLocation(const wxString& location) {
1062 return wxFileSystemHandler::GetRightLocation(location);
1063 }
1064
1065 wxString GetMimeTypeFromExt(const wxString& location) {
1066 return wxFileSystemHandler::GetMimeTypeFromExt(location);
1067 }
1068
1069 PYPRIVATE;
1070};
1071
1072
1073IMP_PYCALLBACK_BOOL_STRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, CanOpen);
1074IMP_PYCALLBACK_FSF_FSSTRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, OpenFile);
1075IMP_PYCALLBACK_STRING_STRINGINT_pure(wxPyFileSystemHandler, wxFileSystemHandler, FindFirst);
1076IMP_PYCALLBACK_STRING__pure(wxPyFileSystemHandler, wxFileSystemHandler, FindNext);
1077
1078
c32bde28
RD
1079SWIGSTATICINLINE(int)
1080 SWIG_AsVal_bool(PyObject *obj, bool *val)
d55e5bfc 1081{
c32bde28
RD
1082 /* if (val) *val = PyObject_IsTrue(obj); return 1; */
1083 if (obj == Py_True) {
1084 if (val) *val = true;
1085 return 1;
1086 }
1087 if (obj == Py_False) {
1088 if (val) *val = false;
1089 return 1;
1090 }
1091 int res = 0;
1092 if (SWIG_AsVal_int(obj, &res)) {
1093 if (val) *val = (bool)res;
1094 return 1;
1095 }
1096 if (val) {
1097 PyErr_SetString(PyExc_TypeError, "a bool is expected");
1098 }
1099 return 0;
d55e5bfc
RD
1100}
1101
1102
c32bde28
RD
1103SWIGSTATICINLINE(bool)
1104SWIG_As_bool(PyObject* obj)
d55e5bfc 1105{
c32bde28
RD
1106 bool v;
1107 if (!SWIG_AsVal_bool(obj, &v)) {
1108 /*
1109 this is needed to make valgrind/purify happier. the other
1110 solution is throw an exception, but since this code should work
1111 with plain C ....
1112 */
1113 memset((void*)&v, 0, sizeof(bool));
d55e5bfc 1114 }
c32bde28
RD
1115 return v;
1116}
1117
1118
1119SWIGSTATICINLINE(int)
1120SWIG_Check_bool(PyObject* obj)
1121{
1122 return SWIG_AsVal_bool(obj, (bool*)0);
d55e5bfc
RD
1123}
1124
1125
1126 wxString wxFileSystem_URLToFileName(const wxString& url) {
1127 wxFileName fname = wxFileSystem::URLToFileName(url);
1128 return fname.GetFullPath();
1129 }
1130
1131
1132 void __wxMemoryFSHandler_AddFile_wxImage(const wxString& filename,
1133 wxImage& image,
1134 long type) {
1135 wxMemoryFSHandler::AddFile(filename, image, type);
1136 }
1137
1138 void __wxMemoryFSHandler_AddFile_wxBitmap(const wxString& filename,
1139 const wxBitmap& bitmap,
1140 long type) {
1141 wxMemoryFSHandler::AddFile(filename, bitmap, type);
1142 }
1143
1144 void __wxMemoryFSHandler_AddFile_Data(const wxString& filename,
1145 PyObject* data) {
1146 wxMemoryFSHandler::AddFile(filename,
1147 // TODO: Verify data type
1148 (void*)PyString_AsString(data),
1149 (size_t)PyString_Size(data));
1150 }
1151
1152
1153#include "wx/wxPython/pyistream.h"
1154
1155
c32bde28
RD
1156// See my_fragments.i
1157SWIGSTATICINLINE(int)
1158SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val)
d55e5bfc 1159{
c32bde28
RD
1160 long v = 0;
1161 if (SWIG_AsVal_long(obj, &v) && v < 0) {
1162 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
1163 return 0;
d55e5bfc 1164 }
c32bde28
RD
1165 else if (val)
1166 *val = (unsigned long)v;
1167 return 1;
d55e5bfc
RD
1168}
1169
1170
c32bde28
RD
1171SWIGSTATICINLINE(int)
1172 SWIG_CheckUnsignedLongInRange(unsigned long value,
1173 unsigned long max_value,
1174 const char *errmsg)
d55e5bfc 1175{
c32bde28
RD
1176 if (value > max_value) {
1177 if (errmsg) {
1178 PyErr_Format(PyExc_OverflowError,
1179 "value %ld is greater than '%s' minimum %ld",
1180 value, errmsg, max_value);
d55e5bfc 1181 }
c32bde28 1182 return 0;
d55e5bfc 1183 }
c32bde28
RD
1184 return 1;
1185 }
d55e5bfc
RD
1186
1187
c32bde28
RD
1188SWIGSTATICINLINE(int)
1189 SWIG_AsVal_unsigned_SS_char(PyObject *obj, unsigned char *val)
d55e5bfc 1190{
c32bde28
RD
1191 const char* errmsg = val ? "unsigned char" : 0;
1192 unsigned long v;
1193 if (SWIG_AsVal_unsigned_SS_long(obj, &v)) {
1194 if (SWIG_CheckUnsignedLongInRange(v, UCHAR_MAX,errmsg)) {
1195 if (val) *val = swig_numeric_cast(v, unsigned char);
1196 return 1;
1197 } else {
1198 return 0;
1199 }
1200 } else {
1201 PyErr_Clear();
1202 }
1203 if (val) {
1204 PyErr_SetString(PyExc_TypeError, "an unsigned char is expected");
1205 }
1206 return 0;
d55e5bfc
RD
1207}
1208
1209
c32bde28
RD
1210SWIGSTATICINLINE(unsigned char)
1211SWIG_As_unsigned_SS_char(PyObject* obj)
d55e5bfc 1212{
c32bde28
RD
1213 unsigned char v;
1214 if (!SWIG_AsVal_unsigned_SS_char(obj, &v)) {
1215 /*
1216 this is needed to make valgrind/purify happier. the other
1217 solution is throw an exception, but since this code should work
1218 with plain C ....
1219 */
1220 memset((void*)&v, 0, sizeof(unsigned char));
d55e5bfc 1221 }
c32bde28 1222 return v;
d55e5bfc
RD
1223}
1224
c32bde28
RD
1225
1226SWIGSTATICINLINE(int)
1227SWIG_Check_unsigned_SS_char(PyObject* obj)
1228{
1229 return SWIG_AsVal_unsigned_SS_char(obj, (unsigned char*)0);
1230}
1231
1232
c24da6d6 1233wxImage *new_wxImage(int width,int height,bool clear){
d55e5bfc
RD
1234 if (width > 0 && height > 0)
1235 return new wxImage(width, height, clear);
1236 else
1237 return new wxImage;
1238 }
d55e5bfc
RD
1239wxImage *new_wxImage(wxBitmap const &bitmap){
1240 return new wxImage(bitmap.ConvertToImage());
1241 }
1242wxImage *new_wxImage(int width,int height,unsigned char *data){
1243 // Copy the source data so the wxImage can clean it up later
1244 unsigned char* copy = (unsigned char*)malloc(width*height*3);
1245 if (copy == NULL) {
1246 PyErr_NoMemory();
1247 return NULL;
1248 }
1249 memcpy(copy, data, width*height*3);
1250 return new wxImage(width, height, copy, False);
1251 }
1252wxSize wxImage_GetSize(wxImage *self){
1253 wxSize size(self->GetWidth(), self->GetHeight());
1254 return size;
1255 }
1256PyObject *wxImage_GetData(wxImage *self){
1257 unsigned char* data = self->GetData();
1258 int len = self->GetWidth() * self->GetHeight() * 3;
1259 PyObject* rv;
1260 wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len));
1261 return rv;
1262 }
1263void wxImage_SetData(wxImage *self,PyObject *data){
1264 unsigned char* dataPtr;
1265
1266 if (! PyString_Check(data)) {
1267 PyErr_SetString(PyExc_TypeError, "Expected string object");
1268 return /* NULL */ ;
1269 }
1270
1271 size_t len = self->GetWidth() * self->GetHeight() * 3;
1272 dataPtr = (unsigned char*) malloc(len);
1273 wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) );
1274 self->SetData(dataPtr);
1275 // wxImage takes ownership of dataPtr...
1276 }
1277PyObject *wxImage_GetDataBuffer(wxImage *self){
1278 unsigned char* data = self->GetData();
1279 int len = self->GetWidth() * self->GetHeight() * 3;
1280 PyObject* rv;
1281 wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) );
1282 return rv;
1283 }
1284void wxImage_SetDataBuffer(wxImage *self,PyObject *data){
1285 unsigned char* buffer;
1286 int size;
1287
1288 bool blocked = wxPyBeginBlockThreads();
1289 if (!PyArg_Parse(data, "t#", &buffer, &size))
1290 goto done;
1291
1292 if (size != self->GetWidth() * self->GetHeight() * 3) {
1293 PyErr_SetString(PyExc_TypeError, "Incorrect buffer size");
1294 goto done;
1295 }
1296 self->SetData(buffer);
1297 done:
1298 wxPyEndBlockThreads(blocked);
1299 }
1300PyObject *wxImage_GetAlphaData(wxImage *self){
1301 unsigned char* data = self->GetAlpha();
1302 if (! data) {
1303 RETURN_NONE();
1304 } else {
1305 int len = self->GetWidth() * self->GetHeight();
1306 PyObject* rv;
1307 wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len) );
1308 return rv;
1309 }
1310 }
1311void wxImage_SetAlphaData(wxImage *self,PyObject *data){
1312 unsigned char* dataPtr;
1313
1314 if (! PyString_Check(data)) {
1315 PyErr_SetString(PyExc_TypeError, "Expected string object");
1316 return /* NULL */ ;
1317 }
1318
1319 size_t len = self->GetWidth() * self->GetHeight();
1320 dataPtr = (unsigned char*) malloc(len);
1321 wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) );
1322 self->SetAlpha(dataPtr);
1323 // wxImage takes ownership of dataPtr...
1324 }
1325PyObject *wxImage_GetAlphaBuffer(wxImage *self){
1326 unsigned char* data = self->GetAlpha();
1327 int len = self->GetWidth() * self->GetHeight();
1328 PyObject* rv;
1329 wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) );
1330 return rv;
1331 }
1332void wxImage_SetAlphaBuffer(wxImage *self,PyObject *data){
1333 unsigned char* buffer;
1334 int size;
1335
1336 bool blocked = wxPyBeginBlockThreads();
1337 if (!PyArg_Parse(data, "t#", &buffer, &size))
1338 goto done;
1339
1340 if (size != self->GetWidth() * self->GetHeight()) {
1341 PyErr_SetString(PyExc_TypeError, "Incorrect buffer size");
1342 goto done;
1343 }
1344 self->SetAlpha(buffer);
1345 done:
1346 wxPyEndBlockThreads(blocked);
1347 }
1348
c32bde28
RD
1349SWIGSTATICINLINE(unsigned long)
1350SWIG_As_unsigned_SS_long(PyObject* obj)
d55e5bfc 1351{
c32bde28
RD
1352 unsigned long v;
1353 if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) {
1354 /*
1355 this is needed to make valgrind/purify happier. the other
1356 solution is throw an exception, but since this code should work
1357 with plain C ....
1358 */
1359 memset((void*)&v, 0, sizeof(unsigned long));
d55e5bfc 1360 }
c32bde28
RD
1361 return v;
1362}
1363
1364
1365SWIGSTATICINLINE(int)
1366SWIG_Check_unsigned_SS_long(PyObject* obj)
1367{
1368 return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0);
d55e5bfc
RD
1369}
1370
1fbf26be
RD
1371wxBitmap wxImage_ConvertToBitmap(wxImage *self,int depth){
1372 wxBitmap bitmap(*self, depth);
d55e5bfc
RD
1373 return bitmap;
1374 }
1375wxBitmap wxImage_ConvertToMonoBitmap(wxImage *self,unsigned char red,unsigned char green,unsigned char blue){
1376 wxImage mono = self->ConvertToMono( red, green, blue );
1377 wxBitmap bitmap( mono, 1 );
1378 return bitmap;
1379 }
1380 static const wxString wxPyIMAGE_OPTION_BMP_FORMAT(wxIMAGE_OPTION_BMP_FORMAT);
1381 static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_X(wxIMAGE_OPTION_CUR_HOTSPOT_X);
1382 static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_Y(wxIMAGE_OPTION_CUR_HOTSPOT_Y);
1383 static const wxString wxPyIMAGE_OPTION_RESOLUTION(wxIMAGE_OPTION_RESOLUTION);
1384 static const wxString wxPyIMAGE_OPTION_RESOLUTIONUNIT(wxIMAGE_OPTION_RESOLUTIONUNIT);
c0de73ae
RD
1385
1386#include <wx/quantize.h>
1387
1388bool Quantize_Quantize(wxImage const &src,wxImage &dest,int desiredNoColours,int flags){
1389 return wxQuantize::Quantize(src, dest,
1390 //NULL, // palette
1391 desiredNoColours,
1392 NULL, // eightBitData
1393 flags);
1394 }
d55e5bfc
RD
1395void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject *func){
1396 if (PyCallable_Check(func)) {
1397 self->Connect(id, lastId, eventType,
1398 (wxObjectEventFunction) &wxPyCallback::EventThunker,
1399 new wxPyCallback(func));
1400 }
1401 else if (func == Py_None) {
1402 self->Disconnect(id, lastId, eventType,
1403 (wxObjectEventFunction)
1404 &wxPyCallback::EventThunker);
1405 }
1406 else {
1407 wxPyBLOCK_THREADS(
1408 PyErr_SetString(PyExc_TypeError, "Expected callable object or None."));
1409 }
1410 }
1411bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType){
1412 return self->Disconnect(id, lastId, eventType,
1413 (wxObjectEventFunction)
1414 &wxPyCallback::EventThunker);
1415 }
1416void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject *_self){
1417 if (_self && _self != Py_None) {
1418 self->SetClientObject(new wxPyOORClientData(_self));
1419 }
1420 else {
1421 wxPyOORClientData* data = (wxPyOORClientData*)self->GetClientObject();
1422 if (data) {
1423 self->SetClientObject(NULL); // This will delete it too
1424 }
1425 }
1426 }
c32bde28 1427
19272049 1428int wxKeyEvent_GetUnicodeKey(wxKeyEvent *self){
d55e5bfc 1429 #if wxUSE_UNICODE
19272049 1430 return self->GetUnicodeKey();
d55e5bfc
RD
1431 #else
1432 return 0;
1433 #endif
1434 }
1435
1436#if UINT_MAX < LONG_MAX
c32bde28
RD
1437/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
1438#define SWIG_From_unsigned_SS_int SWIG_From_long
1439/*@@*/
d55e5bfc 1440#else
c32bde28
RD
1441/*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
1442#define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long
1443/*@@*/
d55e5bfc
RD
1444#endif
1445
1446
1447#if UINT_MAX != ULONG_MAX
c32bde28
RD
1448SWIGSTATICINLINE(int)
1449 SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
d55e5bfc 1450{
c32bde28
RD
1451 const char* errmsg = val ? "unsigned int" : 0;
1452 unsigned long v;
1453 if (SWIG_AsVal_unsigned_SS_long(obj, &v)) {
1454 if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) {
1455 if (val) *val = swig_numeric_cast(v, unsigned int);
1456 return 1;
1457 }
1458 } else {
1459 PyErr_Clear();
1460 }
1461 if (val) {
1462 PyErr_SetString(PyExc_TypeError, "an unsigned int is expected");
1463 }
1464 return 0;
d55e5bfc
RD
1465}
1466#else
c32bde28
RD
1467SWIGSTATICINLINE(unsigned int)
1468 SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
1469{
1470 return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val);
1471}
d55e5bfc
RD
1472#endif
1473
1474
c32bde28
RD
1475SWIGSTATICINLINE(unsigned int)
1476SWIG_As_unsigned_SS_int(PyObject* obj)
d55e5bfc 1477{
c32bde28
RD
1478 unsigned int v;
1479 if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) {
1480 /*
1481 this is needed to make valgrind/purify happier. the other
1482 solution is throw an exception, but since this code should work
1483 with plain C ....
1484 */
1485 memset((void*)&v, 0, sizeof(unsigned int));
d55e5bfc 1486 }
c32bde28
RD
1487 return v;
1488}
1489
1490
1491SWIGSTATICINLINE(int)
1492SWIG_Check_unsigned_SS_int(PyObject* obj)
1493{
1494 return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0);
d55e5bfc
RD
1495}
1496
1497void wxSizeEvent_SetSize(wxSizeEvent *self,wxSize size){
1498 self->m_size = size;
1499 }
1500void wxMoveEvent_SetPosition(wxMoveEvent *self,wxPoint pos){
1501 self->m_pos = pos;
1502 }
1503PyObject *wxDropFilesEvent_GetFiles(wxDropFilesEvent *self){
1504 int count = self->GetNumberOfFiles();
1505 wxString* files = self->GetFiles();
1506 PyObject* list = PyList_New(count);
1507
1508 if (!list) {
1509 PyErr_SetString(PyExc_MemoryError, "Can't allocate list of files!");
1510 return NULL;
1511 }
1512
1513 for (int i=0; i<count; i++) {
1514 PyList_SetItem(list, i, wx2PyString(files[i]));
1515 }
1516 return list;
1517 }
1518
1519
1520wxPyApp *new_wxPyApp(){
1521 wxPythonApp = new wxPyApp();
1522 return wxPythonApp;
1523 }
1524
1525 void wxApp_CleanUp() {
1526 __wxPyCleanup();
1527 }
1528
1529
caef1a4d 1530 wxPyApp* wxPyGetApp() { return (wxPyApp*)wxTheApp; }
d55e5bfc
RD
1531
1532
1533
1534 static const wxString wxPyPanelNameStr(wxPanelNameStr);
1535wxVisualAttributes *new_wxVisualAttributes(){ return new wxVisualAttributes; }
f20a2e1f 1536void delete_wxVisualAttributes(wxVisualAttributes *self){ delete self; }
d55e5bfc
RD
1537PyObject *wxWindow_GetChildren(wxWindow *self){
1538 wxWindowList& list = self->GetChildren();
1539 return wxPy_ConvertList(&list);
1540 }
1541bool wxWindow_RegisterHotKey(wxWindow *self,int hotkeyId,int modifiers,int keycode){
1542 #if wxUSE_HOTKEY
1543 return self->RegisterHotKey(hotkeyId, modifiers, keycode);
1544 #else
1545 return False;
1546 #endif
1547 }
1548bool wxWindow_UnregisterHotKey(wxWindow *self,int hotkeyId){
1549
1550
1551
1552 return False;
1553
1554 }
1555long wxWindow_GetHandle(wxWindow *self){
1556 return wxPyGetWinHandle(self);
1557 }
7e63a440
RD
1558void wxWindow_AssociateHandle(wxWindow *self,long handle){
1559 self->AssociateHandle((WXWidget)handle);
1560 }
d55e5bfc
RD
1561
1562wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) {
1563 return wxWindow::FindWindowById(id, parent);
1564}
1565
1566wxWindow* wxFindWindowByName( const wxString& name,
1567 const wxWindow *parent = NULL ) {
1568 return wxWindow::FindWindowByName(name, parent);
1569}
1570
1571wxWindow* wxFindWindowByLabel( const wxString& label,
1572 const wxWindow *parent = NULL ) {
1573 return wxWindow::FindWindowByLabel(label, parent);
1574}
1575
1576
1577#ifdef __WXMSW__
1578#include <wx/msw/private.h> // to get wxGetWindowId
1579#endif
1580
1581
1582 wxWindow* wxWindow_FromHWND(wxWindow* parent, unsigned long _hWnd) {
1583#ifdef __WXMSW__
1584 WXHWND hWnd = (WXHWND)_hWnd;
1585 long id = wxGetWindowId(hWnd);
1586 wxWindow* win = new wxWindow;
1587 parent->AddChild(win);
1588 win->SetEventHandler(win);
1589 win->SetHWND(hWnd);
1590 win->SetId(id);
1591 win->SubclassWin(hWnd);
1592 win->AdoptAttributesFromHWND();
1593 win->SetupColours();
1594 return win;
1595#else
1596 wxPyRaiseNotImplemented();
1597 return NULL;
1598#endif
1599 }
1600
1601
1602IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate);
1603IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow);
1604IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow);
1605
1606IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator);
1607
1608void wxMenu_Destroy(wxMenu *self){ delete self; }
1609PyObject *wxMenu_GetMenuItems(wxMenu *self){
1610 wxMenuItemList& list = self->GetMenuItems();
1611 return wxPy_ConvertList(&list);
1612 }
1613 static const wxString wxPyControlNameStr(wxControlNameStr);
1614int wxItemContainer_Append(wxItemContainer *self,wxString const &item,PyObject *clientData){
1615 if (clientData) {
1616 wxPyClientData* data = new wxPyClientData(clientData);
1617 return self->Append(item, data);
1618 } else
1619 return self->Append(item);
1620 }
1621int wxItemContainer_Insert(wxItemContainer *self,wxString const &item,int pos,PyObject *clientData){
1622 if (clientData) {
1623 wxPyClientData* data = new wxPyClientData(clientData);
1624 return self->Insert(item, pos, data);
1625 } else
1626 return self->Insert(item, pos);
1627 }
1628PyObject *wxItemContainer_GetClientData(wxItemContainer *self,int n){
1629 wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n);
1630 if (data) {
1631 Py_INCREF(data->m_obj);
1632 return data->m_obj;
1633 } else {
1634 Py_INCREF(Py_None);
1635 return Py_None;
1636 }
1637 }
1638void wxItemContainer_SetClientData(wxItemContainer *self,int n,PyObject *clientData){
1639 wxPyClientData* data = new wxPyClientData(clientData);
1640 self->SetClientObject(n, data);
1641 }
1642
1643
248ed943
RD
1644wxSizerItem *new_wxSizerItem(wxWindow *window,int proportion,int flag,int border,PyObject *userData){
1645 wxPyUserData* data = NULL;
1646 if ( userData ) {
1647 bool blocked = wxPyBeginBlockThreads();
1648 data = new wxPyUserData(userData);
1649 wxPyEndBlockThreads(blocked);
1650 }
1651 return new wxSizerItem(window, proportion, flag, border, data);
1652 }
1653wxSizerItem *new_wxSizerItem(int width,int height,int proportion,int flag,int border,PyObject *userData){
1654 wxPyUserData* data = NULL;
1655 if ( userData ) {
1656 bool blocked = wxPyBeginBlockThreads();
1657 data = new wxPyUserData(userData);
1658 wxPyEndBlockThreads(blocked);
1659 }
1660 return new wxSizerItem(width, height, proportion, flag, border, data);
1661 }
1662wxSizerItem *new_wxSizerItem(wxSizer *sizer,int proportion,int flag,int border,PyObject *userData){
1663 wxPyUserData* data = NULL;
1664 if ( userData ) {
1665 bool blocked = wxPyBeginBlockThreads();
1666 data = new wxPyUserData(userData);
1667 wxPyEndBlockThreads(blocked);
1668 }
1669 return new wxSizerItem(sizer, proportion, flag, border, data);
1670 }
d55e5bfc
RD
1671
1672#include <float.h>
c32bde28
RD
1673SWIGSTATICINLINE(int)
1674 SWIG_CheckDoubleInRange(double value, double min_value,
1675 double max_value, const char* errmsg)
1676{
1677 if (value < min_value) {
1678 if (errmsg) {
1679 PyErr_Format(PyExc_OverflowError,
1680 "value %g is less than %s minimum %g",
1681 value, errmsg, min_value);
1682 }
1683 return 0;
1684 } else if (value > max_value) {
1685 if (errmsg) {
1686 PyErr_Format(PyExc_OverflowError,
1687 "value %g is greater than %s maximum %g",
1688 value, errmsg, max_value);
1689 }
1690 return 0;
1691 }
1692 return 1;
1693}
1694
d55e5bfc 1695
c32bde28
RD
1696SWIGSTATICINLINE(int)
1697 SWIG_AsVal_float(PyObject *obj, float *val)
d55e5bfc 1698{
c32bde28
RD
1699 const char* errmsg = val ? "float" : 0;
1700 double v;
1701 if (SWIG_AsVal_double(obj, &v)) {
1702 if (SWIG_CheckDoubleInRange(v, -FLT_MAX, FLT_MAX, errmsg)) {
1703 if (val) *val = v;
1704 return 1;
d55e5bfc 1705 } else {
c32bde28 1706 return 0;
d55e5bfc 1707 }
c32bde28
RD
1708 } else {
1709 PyErr_Clear();
d55e5bfc 1710 }
c32bde28
RD
1711 if (val) {
1712 PyErr_SetString(PyExc_TypeError, "a float is expected");
1713 }
1714 return 0;
d55e5bfc
RD
1715}
1716
1717
1718SWIGSTATICINLINE(float)
c32bde28 1719SWIG_As_float(PyObject* obj)
d55e5bfc 1720{
c32bde28
RD
1721 float v;
1722 if (!SWIG_AsVal_float(obj, &v)) {
1723 /*
1724 this is needed to make valgrind/purify happier. the other
1725 solution is throw an exception, but since this code should work
1726 with plain C ....
1727 */
1728 memset((void*)&v, 0, sizeof(float));
1729 }
1730 return v;
d55e5bfc
RD
1731}
1732
c32bde28 1733
d55e5bfc 1734SWIGSTATICINLINE(int)
c32bde28 1735SWIG_Check_float(PyObject* obj)
d55e5bfc 1736{
c32bde28 1737 return SWIG_AsVal_float(obj, (float*)0);
d55e5bfc
RD
1738}
1739
1740PyObject *wxSizerItem_GetUserData(wxSizerItem *self){
1741 wxPyUserData* data = (wxPyUserData*)self->GetUserData();
1742 if (data) {
1743 Py_INCREF(data->m_obj);
1744 return data->m_obj;
1745 } else {
1746 Py_INCREF(Py_None);
1747 return Py_None;
1748 }
1749 }
1750
1751// Figure out the type of the sizer item
1752
1753struct wxPySizerItemInfo {
1754 wxPySizerItemInfo()
1755 : window(NULL), sizer(NULL), gotSize(False),
1756 size(wxDefaultSize), gotPos(False), pos(-1)
1757 {}
1758
1759 wxWindow* window;
1760 wxSizer* sizer;
1761 bool gotSize;
1762 wxSize size;
1763 bool gotPos;
1764 int pos;
1765};
1766
1767static wxPySizerItemInfo wxPySizerItemTypeHelper(PyObject* item, bool checkSize, bool checkIdx ) {
1768
1769 wxPySizerItemInfo info;
1770 wxSize size;
1771 wxSize* sizePtr = &size;
1772
1773 // Find out what the type of the item is
1774 // try wxWindow
1775 if ( ! wxPyConvertSwigPtr(item, (void**)&info.window, wxT("wxWindow")) ) {
1776 PyErr_Clear();
1777 info.window = NULL;
1778
1779 // try wxSizer
1780 if ( ! wxPyConvertSwigPtr(item, (void**)&info.sizer, wxT("wxSizer")) ) {
1781 PyErr_Clear();
1782 info.sizer = NULL;
1783
1784 // try wxSize or (w,h)
1785 if ( checkSize && wxSize_helper(item, &sizePtr)) {
1786 info.size = *sizePtr;
1787 info.gotSize = True;
1788 }
1789
1790 // or a single int
1791 if (checkIdx && PyInt_Check(item)) {
1792 info.pos = PyInt_AsLong(item);
1793 info.gotPos = True;
1794 }
1795 }
1796 }
1797
1798 if ( !(info.window || info.sizer || (checkSize && info.gotSize) || (checkIdx && info.gotPos)) ) {
1799 // no expected type, figure out what kind of error message to generate
1800 if ( !checkSize && !checkIdx )
1801 PyErr_SetString(PyExc_TypeError, "wxWindow or wxSizer expected for item");
1802 else if ( checkSize && !checkIdx )
1803 PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) expected for item");
1804 else if ( !checkSize && checkIdx)
1805 PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer or int (position) expected for item");
1806 else
1807 // can this one happen?
1808 PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) or int (position) expected for item");
1809 }
1810
1811 return info;
1812}
1813
1814void wxSizer__setOORInfo(wxSizer *self,PyObject *_self){
b0f7404b
RD
1815 if (!self->GetClientObject())
1816 self->SetClientObject(new wxPyOORClientData(_self));
d55e5bfc
RD
1817 }
1818void wxSizer_Add(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){
1819
1820 wxPyUserData* data = NULL;
1821 bool blocked = wxPyBeginBlockThreads();
1822 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False);
1823 if ( userData && (info.window || info.sizer || info.gotSize) )
1824 data = new wxPyUserData(userData);
1825 wxPyEndBlockThreads(blocked);
1826
1827 // Now call the real Add method if a valid item type was found
1828 if ( info.window )
1829 self->Add(info.window, proportion, flag, border, data);
1830 else if ( info.sizer )
1831 self->Add(info.sizer, proportion, flag, border, data);
1832 else if (info.gotSize)
1833 self->Add(info.size.GetWidth(), info.size.GetHeight(),
1834 proportion, flag, border, data);
1835 }
1836void wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion,int flag,int border,PyObject *userData){
1837
1838 wxPyUserData* data = NULL;
1839 bool blocked = wxPyBeginBlockThreads();
1840 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False);
1841 if ( userData && (info.window || info.sizer || info.gotSize) )
1842 data = new wxPyUserData(userData);
1843 wxPyEndBlockThreads(blocked);
1844
1845 // Now call the real Insert method if a valid item type was found
1846 if ( info.window )
1847 self->Insert(before, info.window, proportion, flag, border, data);
1848 else if ( info.sizer )
1849 self->Insert(before, info.sizer, proportion, flag, border, data);
1850 else if (info.gotSize)
1851 self->Insert(before, info.size.GetWidth(), info.size.GetHeight(),
1852 proportion, flag, border, data);
1853 }
1854void wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){
1855
1856 wxPyUserData* data = NULL;
1857 bool blocked = wxPyBeginBlockThreads();
1858 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False);
1859 if ( userData && (info.window || info.sizer || info.gotSize) )
1860 data = new wxPyUserData(userData);
1861 wxPyEndBlockThreads(blocked);
1862
1863 // Now call the real Prepend method if a valid item type was found
1864 if ( info.window )
1865 self->Prepend(info.window, proportion, flag, border, data);
1866 else if ( info.sizer )
1867 self->Prepend(info.sizer, proportion, flag, border, data);
1868 else if (info.gotSize)
1869 self->Prepend(info.size.GetWidth(), info.size.GetHeight(),
1870 proportion, flag, border, data);
1871 }
1872bool wxSizer_Remove(wxSizer *self,PyObject *item){
1873 bool blocked = wxPyBeginBlockThreads();
1874 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True);
1875 wxPyEndBlockThreads(blocked);
1876 if ( info.window )
1877 return self->Remove(info.window);
1878 else if ( info.sizer )
1879 return self->Remove(info.sizer);
1880 else if ( info.gotPos )
1881 return self->Remove(info.pos);
1882 else
1883 return False;
1884 }
1a6bba1e
RD
1885bool wxSizer_Detach(wxSizer *self,PyObject *item){
1886 bool blocked = wxPyBeginBlockThreads();
1887 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True);
1888 wxPyEndBlockThreads(blocked);
1889 if ( info.window )
1890 return self->Detach(info.window);
1891 else if ( info.sizer )
1892 return self->Detach(info.sizer);
1893 else if ( info.gotPos )
1894 return self->Detach(info.pos);
1895 else
1896 return False;
1897 }
d55e5bfc
RD
1898void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize const &size){
1899 bool blocked = wxPyBeginBlockThreads();
1900 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True);
1901 wxPyEndBlockThreads(blocked);
1902 if ( info.window )
1903 self->SetItemMinSize(info.window, size);
1904 else if ( info.sizer )
1905 self->SetItemMinSize(info.sizer, size);
1906 else if ( info.gotPos )
1907 self->SetItemMinSize(info.pos, size);
1908 }
1909PyObject *wxSizer_GetChildren(wxSizer *self){
1910 wxSizerItemList& list = self->GetChildren();
1911 return wxPy_ConvertList(&list);
1912 }
7e63a440 1913bool wxSizer_Show(wxSizer *self,PyObject *item,bool show,bool recursive){
c24da6d6 1914 bool blocked = wxPyBeginBlockThreads();
248ed943 1915 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True);
c24da6d6 1916 wxPyEndBlockThreads(blocked);
d55e5bfc 1917 if ( info.window )
7e63a440 1918 return self->Show(info.window, show, recursive);
d55e5bfc 1919 else if ( info.sizer )
7e63a440 1920 return self->Show(info.sizer, show, recursive);
248ed943 1921 else if ( info.gotPos )
7e63a440 1922 return self->Show(info.pos, show);
d55e5bfc
RD
1923 }
1924bool wxSizer_IsShown(wxSizer *self,PyObject *item){
c24da6d6 1925 bool blocked = wxPyBeginBlockThreads();
d55e5bfc 1926 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False);
c24da6d6 1927 wxPyEndBlockThreads(blocked);
d55e5bfc
RD
1928 if ( info.window )
1929 return self->IsShown(info.window);
1930 else if ( info.sizer )
1931 return self->IsShown(info.sizer);
248ed943
RD
1932 else if ( info.gotPos )
1933 return self->IsShown(info.pos);
d55e5bfc
RD
1934 else
1935 return False;
1936 }
1937
1938// See pyclasses.h
1939IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes);
1940IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin);
1941IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer);
1942
1943
1944
1945
1946bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj)
1947{
1948 if (source == Py_None) {
1949 **obj = wxGBPosition(-1,-1);
1950 return True;
1951 }
1952 return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition"));
1953}
1954
1955bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj)
1956{
1957 if (source == Py_None) {
1958 **obj = wxGBSpan(-1,-1);
1959 return True;
1960 }
1961 return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan"));
1962}
1963
1964
1965void wxGBPosition_Set(wxGBPosition *self,int row,int col){
1966 self->SetRow(row);
1967 self->SetCol(col);
1968 }
1969PyObject *wxGBPosition_Get(wxGBPosition *self){
1970 bool blocked = wxPyBeginBlockThreads();
1971 PyObject* tup = PyTuple_New(2);
1972 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow()));
1973 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol()));
1974 wxPyEndBlockThreads(blocked);
1975 return tup;
1976 }
1977void wxGBSpan_Set(wxGBSpan *self,int rowspan,int colspan){
1978 self->SetRowspan(rowspan);
1979 self->SetColspan(colspan);
1980 }
1981PyObject *wxGBSpan_Get(wxGBSpan *self){
1982 bool blocked = wxPyBeginBlockThreads();
1983 PyObject* tup = PyTuple_New(2);
1984 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRowspan()));
1985 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetColspan()));
1986 wxPyEndBlockThreads(blocked);
1987 return tup;
1988 }
248ed943
RD
1989wxGBSizerItem *new_wxGBSizerItem(wxWindow *window,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){
1990 wxPyUserData* data = NULL;
1991 if ( userData ) {
1992 bool blocked = wxPyBeginBlockThreads();
1993 data = new wxPyUserData(userData);
1994 wxPyEndBlockThreads(blocked);
1995 }
1996 return new wxGBSizerItem(window, pos, span, flag, border, data);
1997 }
1998wxGBSizerItem *new_wxGBSizerItem(wxSizer *sizer,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){
1999 wxPyUserData* data = NULL;
2000 if ( userData ) {
2001 bool blocked = wxPyBeginBlockThreads();
2002 data = new wxPyUserData(userData);
2003 wxPyEndBlockThreads(blocked);
2004 }
2005 return new wxGBSizerItem(sizer, pos, span, flag, border, data);
2006 }
2007wxGBSizerItem *new_wxGBSizerItem(int width,int height,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){
2008 wxPyUserData* data = NULL;
2009 if ( userData ) {
2010 bool blocked = wxPyBeginBlockThreads();
2011 data = new wxPyUserData(userData);
2012 wxPyEndBlockThreads(blocked);
2013 }
2014 return new wxGBSizerItem(width, height, pos, span, flag, border, data);
2015 }
2016wxGBPosition wxGBSizerItem_GetEndPos(wxGBSizerItem *self){
2017 int row, col;
2018 self->GetEndPos(row, col);
2019 return wxGBPosition(row, col);
2020 }
d55e5bfc
RD
2021bool wxGridBagSizer_Add(wxGridBagSizer *self,PyObject *item,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){
2022
2023 wxPyUserData* data = NULL;
2024 bool blocked = wxPyBeginBlockThreads();
2025 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False);
2026 if ( userData && (info.window || info.sizer || info.gotSize) )
2027 data = new wxPyUserData(userData);
2028 wxPyEndBlockThreads(blocked);
2029
2030 // Now call the real Add method if a valid item type was found
2031 if ( info.window )
2032 return self->Add(info.window, pos, span, flag, border, data);
2033 else if ( info.sizer )
2034 return self->Add(info.sizer, pos, span, flag, border, data);
2035 else if (info.gotSize)
2036 return self->Add(info.size.GetWidth(), info.size.GetHeight(),
2037 pos, span, flag, border, data);
2038 return False;
2039 }
2040
2041
2042#ifdef __cplusplus
2043extern "C" {
2044#endif
c32bde28 2045static int _wrap_EmptyString_set(PyObject *) {
d55e5bfc
RD
2046 PyErr_SetString(PyExc_TypeError,"Variable EmptyString is read-only.");
2047 return 1;
2048}
2049
2050
2051static PyObject *_wrap_EmptyString_get() {
2052 PyObject *pyobj;
2053
2054 {
2055#if wxUSE_UNICODE
2056 pyobj = PyUnicode_FromWideChar((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len());
2057#else
2058 pyobj = PyString_FromStringAndSize((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len());
2059#endif
2060 }
2061 return pyobj;
2062}
2063
2064
c32bde28 2065static PyObject *_wrap_Object_GetClassName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2066 PyObject *resultobj;
2067 wxObject *arg1 = (wxObject *) 0 ;
2068 wxString result;
2069 PyObject * obj0 = 0 ;
2070 char *kwnames[] = {
2071 (char *) "self", NULL
2072 };
2073
2074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_GetClassName",kwnames,&obj0)) goto fail;
2075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject,
2076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2077 {
2078 PyThreadState* __tstate = wxPyBeginAllowThreads();
2079 result = wxObject_GetClassName(arg1);
2080
2081 wxPyEndAllowThreads(__tstate);
2082 if (PyErr_Occurred()) SWIG_fail;
2083 }
2084 {
2085#if wxUSE_UNICODE
2086 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2087#else
2088 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2089#endif
2090 }
2091 return resultobj;
2092 fail:
2093 return NULL;
2094}
2095
2096
c32bde28 2097static PyObject *_wrap_Object_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2098 PyObject *resultobj;
2099 wxObject *arg1 = (wxObject *) 0 ;
2100 PyObject * obj0 = 0 ;
2101 char *kwnames[] = {
2102 (char *) "self", NULL
2103 };
2104
2105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_Destroy",kwnames,&obj0)) goto fail;
2106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject,
2107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2108 {
2109 PyThreadState* __tstate = wxPyBeginAllowThreads();
2110 wxObject_Destroy(arg1);
2111
2112 wxPyEndAllowThreads(__tstate);
2113 if (PyErr_Occurred()) SWIG_fail;
2114 }
2115 Py_INCREF(Py_None); resultobj = Py_None;
2116 return resultobj;
2117 fail:
2118 return NULL;
2119}
2120
2121
c32bde28 2122static PyObject * Object_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
2123 PyObject *obj;
2124 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2125 SWIG_TypeClientData(SWIGTYPE_p_wxObject, obj);
2126 Py_INCREF(obj);
2127 return Py_BuildValue((char *)"");
2128}
c32bde28 2129static PyObject *_wrap_Size_width_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2130 PyObject *resultobj;
2131 wxSize *arg1 = (wxSize *) 0 ;
2132 int arg2 ;
2133 PyObject * obj0 = 0 ;
2134 PyObject * obj1 = 0 ;
2135 char *kwnames[] = {
2136 (char *) "self",(char *) "x", NULL
2137 };
2138
2139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_width_set",kwnames,&obj0,&obj1)) goto fail;
2140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 2142 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
2143 if (PyErr_Occurred()) SWIG_fail;
2144 if (arg1) (arg1)->x = arg2;
2145
2146 Py_INCREF(Py_None); resultobj = Py_None;
2147 return resultobj;
2148 fail:
2149 return NULL;
2150}
2151
2152
c32bde28 2153static PyObject *_wrap_Size_width_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2154 PyObject *resultobj;
2155 wxSize *arg1 = (wxSize *) 0 ;
2156 int result;
2157 PyObject * obj0 = 0 ;
2158 char *kwnames[] = {
2159 (char *) "self", NULL
2160 };
2161
2162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_width_get",kwnames,&obj0)) goto fail;
2163 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2165 result = (int) ((arg1)->x);
2166
c32bde28 2167 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
2168 return resultobj;
2169 fail:
2170 return NULL;
2171}
2172
2173
c32bde28 2174static PyObject *_wrap_Size_height_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2175 PyObject *resultobj;
2176 wxSize *arg1 = (wxSize *) 0 ;
2177 int arg2 ;
2178 PyObject * obj0 = 0 ;
2179 PyObject * obj1 = 0 ;
2180 char *kwnames[] = {
2181 (char *) "self",(char *) "y", NULL
2182 };
2183
2184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_height_set",kwnames,&obj0,&obj1)) goto fail;
2185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 2187 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
2188 if (PyErr_Occurred()) SWIG_fail;
2189 if (arg1) (arg1)->y = arg2;
2190
2191 Py_INCREF(Py_None); resultobj = Py_None;
2192 return resultobj;
2193 fail:
2194 return NULL;
2195}
2196
2197
c32bde28 2198static PyObject *_wrap_Size_height_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2199 PyObject *resultobj;
2200 wxSize *arg1 = (wxSize *) 0 ;
2201 int result;
2202 PyObject * obj0 = 0 ;
2203 char *kwnames[] = {
2204 (char *) "self", NULL
2205 };
2206
2207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_height_get",kwnames,&obj0)) goto fail;
2208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2210 result = (int) ((arg1)->y);
2211
c32bde28 2212 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
2213 return resultobj;
2214 fail:
2215 return NULL;
2216}
2217
2218
c32bde28 2219static PyObject *_wrap_new_Size(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2220 PyObject *resultobj;
2221 int arg1 = (int) 0 ;
2222 int arg2 = (int) 0 ;
2223 wxSize *result;
2224 PyObject * obj0 = 0 ;
2225 PyObject * obj1 = 0 ;
2226 char *kwnames[] = {
2227 (char *) "w",(char *) "h", NULL
2228 };
2229
2230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Size",kwnames,&obj0,&obj1)) goto fail;
2231 if (obj0) {
c32bde28 2232 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
2233 if (PyErr_Occurred()) SWIG_fail;
2234 }
2235 if (obj1) {
c32bde28 2236 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
2237 if (PyErr_Occurred()) SWIG_fail;
2238 }
2239 {
2240 PyThreadState* __tstate = wxPyBeginAllowThreads();
2241 result = (wxSize *)new wxSize(arg1,arg2);
2242
2243 wxPyEndAllowThreads(__tstate);
2244 if (PyErr_Occurred()) SWIG_fail;
2245 }
2246 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 1);
2247 return resultobj;
2248 fail:
2249 return NULL;
2250}
2251
2252
c32bde28 2253static PyObject *_wrap_delete_Size(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2254 PyObject *resultobj;
2255 wxSize *arg1 = (wxSize *) 0 ;
2256 PyObject * obj0 = 0 ;
2257 char *kwnames[] = {
2258 (char *) "self", NULL
2259 };
2260
2261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Size",kwnames,&obj0)) goto fail;
2262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2264 {
2265 PyThreadState* __tstate = wxPyBeginAllowThreads();
2266 delete arg1;
2267
2268 wxPyEndAllowThreads(__tstate);
2269 if (PyErr_Occurred()) SWIG_fail;
2270 }
2271 Py_INCREF(Py_None); resultobj = Py_None;
2272 return resultobj;
2273 fail:
2274 return NULL;
2275}
2276
2277
c32bde28 2278static PyObject *_wrap_Size___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2279 PyObject *resultobj;
2280 wxSize *arg1 = (wxSize *) 0 ;
2281 wxSize *arg2 = 0 ;
2282 bool result;
2283 wxSize temp2 ;
2284 PyObject * obj0 = 0 ;
2285 PyObject * obj1 = 0 ;
2286 char *kwnames[] = {
2287 (char *) "self",(char *) "sz", NULL
2288 };
2289
2290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___eq__",kwnames,&obj0,&obj1)) goto fail;
2291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2293 {
2294 arg2 = &temp2;
2295 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2296 }
2297 {
2298 PyThreadState* __tstate = wxPyBeginAllowThreads();
2299 result = (bool)(arg1)->operator ==((wxSize const &)*arg2);
2300
2301 wxPyEndAllowThreads(__tstate);
2302 if (PyErr_Occurred()) SWIG_fail;
2303 }
2304 {
2305 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2306 }
2307 return resultobj;
2308 fail:
2309 return NULL;
2310}
2311
2312
c32bde28 2313static PyObject *_wrap_Size___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2314 PyObject *resultobj;
2315 wxSize *arg1 = (wxSize *) 0 ;
2316 wxSize *arg2 = 0 ;
2317 bool result;
2318 wxSize temp2 ;
2319 PyObject * obj0 = 0 ;
2320 PyObject * obj1 = 0 ;
2321 char *kwnames[] = {
2322 (char *) "self",(char *) "sz", NULL
2323 };
2324
2325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___ne__",kwnames,&obj0,&obj1)) goto fail;
2326 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2328 {
2329 arg2 = &temp2;
2330 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2331 }
2332 {
2333 PyThreadState* __tstate = wxPyBeginAllowThreads();
2334 result = (bool)(arg1)->operator !=((wxSize const &)*arg2);
2335
2336 wxPyEndAllowThreads(__tstate);
2337 if (PyErr_Occurred()) SWIG_fail;
2338 }
2339 {
2340 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2341 }
2342 return resultobj;
2343 fail:
2344 return NULL;
2345}
2346
2347
c32bde28 2348static PyObject *_wrap_Size___add__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2349 PyObject *resultobj;
2350 wxSize *arg1 = (wxSize *) 0 ;
2351 wxSize *arg2 = 0 ;
2352 wxSize result;
2353 wxSize temp2 ;
2354 PyObject * obj0 = 0 ;
2355 PyObject * obj1 = 0 ;
2356 char *kwnames[] = {
2357 (char *) "self",(char *) "sz", NULL
2358 };
2359
2360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___add__",kwnames,&obj0,&obj1)) goto fail;
2361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2363 {
2364 arg2 = &temp2;
2365 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2366 }
2367 {
2368 PyThreadState* __tstate = wxPyBeginAllowThreads();
2369 result = (arg1)->operator +((wxSize const &)*arg2);
2370
2371 wxPyEndAllowThreads(__tstate);
2372 if (PyErr_Occurred()) SWIG_fail;
2373 }
2374 {
2375 wxSize * resultptr;
2376 resultptr = new wxSize((wxSize &) result);
2377 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
2378 }
2379 return resultobj;
2380 fail:
2381 return NULL;
2382}
2383
2384
c32bde28 2385static PyObject *_wrap_Size___sub__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2386 PyObject *resultobj;
2387 wxSize *arg1 = (wxSize *) 0 ;
2388 wxSize *arg2 = 0 ;
2389 wxSize result;
2390 wxSize temp2 ;
2391 PyObject * obj0 = 0 ;
2392 PyObject * obj1 = 0 ;
2393 char *kwnames[] = {
2394 (char *) "self",(char *) "sz", NULL
2395 };
2396
2397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___sub__",kwnames,&obj0,&obj1)) goto fail;
2398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2400 {
2401 arg2 = &temp2;
2402 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2403 }
2404 {
2405 PyThreadState* __tstate = wxPyBeginAllowThreads();
2406 result = (arg1)->operator -((wxSize const &)*arg2);
2407
2408 wxPyEndAllowThreads(__tstate);
2409 if (PyErr_Occurred()) SWIG_fail;
2410 }
2411 {
2412 wxSize * resultptr;
2413 resultptr = new wxSize((wxSize &) result);
2414 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
2415 }
2416 return resultobj;
2417 fail:
2418 return NULL;
2419}
2420
2421
c32bde28 2422static PyObject *_wrap_Size_IncTo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2423 PyObject *resultobj;
2424 wxSize *arg1 = (wxSize *) 0 ;
2425 wxSize *arg2 = 0 ;
2426 wxSize temp2 ;
2427 PyObject * obj0 = 0 ;
2428 PyObject * obj1 = 0 ;
2429 char *kwnames[] = {
2430 (char *) "self",(char *) "sz", NULL
2431 };
2432
2433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_IncTo",kwnames,&obj0,&obj1)) goto fail;
2434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2436 {
2437 arg2 = &temp2;
2438 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2439 }
2440 {
2441 PyThreadState* __tstate = wxPyBeginAllowThreads();
2442 (arg1)->IncTo((wxSize const &)*arg2);
2443
2444 wxPyEndAllowThreads(__tstate);
2445 if (PyErr_Occurred()) SWIG_fail;
2446 }
2447 Py_INCREF(Py_None); resultobj = Py_None;
2448 return resultobj;
2449 fail:
2450 return NULL;
2451}
2452
2453
c32bde28 2454static PyObject *_wrap_Size_DecTo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2455 PyObject *resultobj;
2456 wxSize *arg1 = (wxSize *) 0 ;
2457 wxSize *arg2 = 0 ;
2458 wxSize temp2 ;
2459 PyObject * obj0 = 0 ;
2460 PyObject * obj1 = 0 ;
2461 char *kwnames[] = {
2462 (char *) "self",(char *) "sz", NULL
2463 };
2464
2465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_DecTo",kwnames,&obj0,&obj1)) goto fail;
2466 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2468 {
2469 arg2 = &temp2;
2470 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2471 }
2472 {
2473 PyThreadState* __tstate = wxPyBeginAllowThreads();
2474 (arg1)->DecTo((wxSize const &)*arg2);
2475
2476 wxPyEndAllowThreads(__tstate);
2477 if (PyErr_Occurred()) SWIG_fail;
2478 }
2479 Py_INCREF(Py_None); resultobj = Py_None;
2480 return resultobj;
2481 fail:
2482 return NULL;
2483}
2484
2485
c32bde28 2486static PyObject *_wrap_Size_Set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2487 PyObject *resultobj;
2488 wxSize *arg1 = (wxSize *) 0 ;
2489 int arg2 ;
2490 int arg3 ;
2491 PyObject * obj0 = 0 ;
2492 PyObject * obj1 = 0 ;
2493 PyObject * obj2 = 0 ;
2494 char *kwnames[] = {
2495 (char *) "self",(char *) "w",(char *) "h", NULL
2496 };
2497
2498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
2499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 2501 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 2502 if (PyErr_Occurred()) SWIG_fail;
c32bde28 2503 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
2504 if (PyErr_Occurred()) SWIG_fail;
2505 {
2506 PyThreadState* __tstate = wxPyBeginAllowThreads();
2507 (arg1)->Set(arg2,arg3);
2508
2509 wxPyEndAllowThreads(__tstate);
2510 if (PyErr_Occurred()) SWIG_fail;
2511 }
2512 Py_INCREF(Py_None); resultobj = Py_None;
2513 return resultobj;
2514 fail:
2515 return NULL;
2516}
2517
2518
c32bde28 2519static PyObject *_wrap_Size_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2520 PyObject *resultobj;
2521 wxSize *arg1 = (wxSize *) 0 ;
2522 int arg2 ;
2523 PyObject * obj0 = 0 ;
2524 PyObject * obj1 = 0 ;
2525 char *kwnames[] = {
2526 (char *) "self",(char *) "w", NULL
2527 };
2528
2529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 2532 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
2533 if (PyErr_Occurred()) SWIG_fail;
2534 {
2535 PyThreadState* __tstate = wxPyBeginAllowThreads();
2536 (arg1)->SetWidth(arg2);
2537
2538 wxPyEndAllowThreads(__tstate);
2539 if (PyErr_Occurred()) SWIG_fail;
2540 }
2541 Py_INCREF(Py_None); resultobj = Py_None;
2542 return resultobj;
2543 fail:
2544 return NULL;
2545}
2546
2547
c32bde28 2548static PyObject *_wrap_Size_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2549 PyObject *resultobj;
2550 wxSize *arg1 = (wxSize *) 0 ;
2551 int arg2 ;
2552 PyObject * obj0 = 0 ;
2553 PyObject * obj1 = 0 ;
2554 char *kwnames[] = {
2555 (char *) "self",(char *) "h", NULL
2556 };
2557
2558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetHeight",kwnames,&obj0,&obj1)) goto fail;
2559 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 2561 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
2562 if (PyErr_Occurred()) SWIG_fail;
2563 {
2564 PyThreadState* __tstate = wxPyBeginAllowThreads();
2565 (arg1)->SetHeight(arg2);
2566
2567 wxPyEndAllowThreads(__tstate);
2568 if (PyErr_Occurred()) SWIG_fail;
2569 }
2570 Py_INCREF(Py_None); resultobj = Py_None;
2571 return resultobj;
2572 fail:
2573 return NULL;
2574}
2575
2576
c32bde28 2577static PyObject *_wrap_Size_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2578 PyObject *resultobj;
2579 wxSize *arg1 = (wxSize *) 0 ;
2580 int result;
2581 PyObject * obj0 = 0 ;
2582 char *kwnames[] = {
2583 (char *) "self", NULL
2584 };
2585
2586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetWidth",kwnames,&obj0)) goto fail;
2587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2589 {
2590 PyThreadState* __tstate = wxPyBeginAllowThreads();
2591 result = (int)((wxSize const *)arg1)->GetWidth();
2592
2593 wxPyEndAllowThreads(__tstate);
2594 if (PyErr_Occurred()) SWIG_fail;
2595 }
c32bde28 2596 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
2597 return resultobj;
2598 fail:
2599 return NULL;
2600}
2601
2602
c32bde28 2603static PyObject *_wrap_Size_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2604 PyObject *resultobj;
2605 wxSize *arg1 = (wxSize *) 0 ;
2606 int result;
2607 PyObject * obj0 = 0 ;
2608 char *kwnames[] = {
2609 (char *) "self", NULL
2610 };
2611
2612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetHeight",kwnames,&obj0)) goto fail;
2613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2615 {
2616 PyThreadState* __tstate = wxPyBeginAllowThreads();
2617 result = (int)((wxSize const *)arg1)->GetHeight();
2618
2619 wxPyEndAllowThreads(__tstate);
2620 if (PyErr_Occurred()) SWIG_fail;
2621 }
c32bde28 2622 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
2623 return resultobj;
2624 fail:
2625 return NULL;
2626}
2627
2628
c32bde28 2629static PyObject *_wrap_Size_IsFullySpecified(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2630 PyObject *resultobj;
2631 wxSize *arg1 = (wxSize *) 0 ;
2632 bool result;
2633 PyObject * obj0 = 0 ;
2634 char *kwnames[] = {
2635 (char *) "self", NULL
2636 };
2637
2638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_IsFullySpecified",kwnames,&obj0)) goto fail;
2639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2641 {
2642 PyThreadState* __tstate = wxPyBeginAllowThreads();
2643 result = (bool)((wxSize const *)arg1)->IsFullySpecified();
2644
2645 wxPyEndAllowThreads(__tstate);
2646 if (PyErr_Occurred()) SWIG_fail;
2647 }
2648 {
2649 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2650 }
2651 return resultobj;
2652 fail:
2653 return NULL;
2654}
2655
2656
c32bde28 2657static PyObject *_wrap_Size_SetDefaults(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2658 PyObject *resultobj;
2659 wxSize *arg1 = (wxSize *) 0 ;
2660 wxSize *arg2 = 0 ;
2661 wxSize temp2 ;
2662 PyObject * obj0 = 0 ;
2663 PyObject * obj1 = 0 ;
2664 char *kwnames[] = {
2665 (char *) "self",(char *) "size", NULL
2666 };
2667
2668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetDefaults",kwnames,&obj0,&obj1)) goto fail;
2669 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2671 {
2672 arg2 = &temp2;
2673 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2674 }
2675 {
2676 PyThreadState* __tstate = wxPyBeginAllowThreads();
2677 (arg1)->SetDefaults((wxSize const &)*arg2);
2678
2679 wxPyEndAllowThreads(__tstate);
2680 if (PyErr_Occurred()) SWIG_fail;
2681 }
2682 Py_INCREF(Py_None); resultobj = Py_None;
2683 return resultobj;
2684 fail:
2685 return NULL;
2686}
2687
2688
c32bde28 2689static PyObject *_wrap_Size_Get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2690 PyObject *resultobj;
2691 wxSize *arg1 = (wxSize *) 0 ;
2692 PyObject *result;
2693 PyObject * obj0 = 0 ;
2694 char *kwnames[] = {
2695 (char *) "self", NULL
2696 };
2697
2698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_Get",kwnames,&obj0)) goto fail;
2699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2701 {
2702 PyThreadState* __tstate = wxPyBeginAllowThreads();
2703 result = (PyObject *)wxSize_Get(arg1);
2704
2705 wxPyEndAllowThreads(__tstate);
2706 if (PyErr_Occurred()) SWIG_fail;
2707 }
2708 resultobj = result;
2709 return resultobj;
2710 fail:
2711 return NULL;
2712}
2713
2714
c32bde28 2715static PyObject * Size_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
2716 PyObject *obj;
2717 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2718 SWIG_TypeClientData(SWIGTYPE_p_wxSize, obj);
2719 Py_INCREF(obj);
2720 return Py_BuildValue((char *)"");
2721}
c32bde28 2722static PyObject *_wrap_RealPoint_x_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2723 PyObject *resultobj;
2724 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2725 double arg2 ;
2726 PyObject * obj0 = 0 ;
2727 PyObject * obj1 = 0 ;
2728 char *kwnames[] = {
2729 (char *) "self",(char *) "x", NULL
2730 };
2731
2732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_x_set",kwnames,&obj0,&obj1)) goto fail;
2733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 2735 arg2 = (double)SWIG_As_double(obj1);
d55e5bfc
RD
2736 if (PyErr_Occurred()) SWIG_fail;
2737 if (arg1) (arg1)->x = arg2;
2738
2739 Py_INCREF(Py_None); resultobj = Py_None;
2740 return resultobj;
2741 fail:
2742 return NULL;
2743}
2744
2745
c32bde28 2746static PyObject *_wrap_RealPoint_x_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2747 PyObject *resultobj;
2748 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2749 double result;
2750 PyObject * obj0 = 0 ;
2751 char *kwnames[] = {
2752 (char *) "self", NULL
2753 };
2754
2755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_x_get",kwnames,&obj0)) goto fail;
2756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2758 result = (double) ((arg1)->x);
2759
c32bde28 2760 resultobj = SWIG_From_double((double)result);
d55e5bfc
RD
2761 return resultobj;
2762 fail:
2763 return NULL;
2764}
2765
2766
c32bde28 2767static PyObject *_wrap_RealPoint_y_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2768 PyObject *resultobj;
2769 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2770 double arg2 ;
2771 PyObject * obj0 = 0 ;
2772 PyObject * obj1 = 0 ;
2773 char *kwnames[] = {
2774 (char *) "self",(char *) "y", NULL
2775 };
2776
2777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_y_set",kwnames,&obj0,&obj1)) goto fail;
2778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 2780 arg2 = (double)SWIG_As_double(obj1);
d55e5bfc
RD
2781 if (PyErr_Occurred()) SWIG_fail;
2782 if (arg1) (arg1)->y = arg2;
2783
2784 Py_INCREF(Py_None); resultobj = Py_None;
2785 return resultobj;
2786 fail:
2787 return NULL;
2788}
2789
2790
c32bde28 2791static PyObject *_wrap_RealPoint_y_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2792 PyObject *resultobj;
2793 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2794 double result;
2795 PyObject * obj0 = 0 ;
2796 char *kwnames[] = {
2797 (char *) "self", NULL
2798 };
2799
2800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_y_get",kwnames,&obj0)) goto fail;
2801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2803 result = (double) ((arg1)->y);
2804
c32bde28 2805 resultobj = SWIG_From_double((double)result);
d55e5bfc
RD
2806 return resultobj;
2807 fail:
2808 return NULL;
2809}
2810
2811
c32bde28 2812static PyObject *_wrap_new_RealPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2813 PyObject *resultobj;
2814 double arg1 = (double) 0.0 ;
2815 double arg2 = (double) 0.0 ;
2816 wxRealPoint *result;
2817 PyObject * obj0 = 0 ;
2818 PyObject * obj1 = 0 ;
2819 char *kwnames[] = {
2820 (char *) "x",(char *) "y", NULL
2821 };
2822
2823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RealPoint",kwnames,&obj0,&obj1)) goto fail;
2824 if (obj0) {
c32bde28 2825 arg1 = (double)SWIG_As_double(obj0);
d55e5bfc
RD
2826 if (PyErr_Occurred()) SWIG_fail;
2827 }
2828 if (obj1) {
c32bde28 2829 arg2 = (double)SWIG_As_double(obj1);
d55e5bfc
RD
2830 if (PyErr_Occurred()) SWIG_fail;
2831 }
2832 {
2833 PyThreadState* __tstate = wxPyBeginAllowThreads();
2834 result = (wxRealPoint *)new wxRealPoint(arg1,arg2);
2835
2836 wxPyEndAllowThreads(__tstate);
2837 if (PyErr_Occurred()) SWIG_fail;
2838 }
2839 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRealPoint, 1);
2840 return resultobj;
2841 fail:
2842 return NULL;
2843}
2844
2845
c32bde28 2846static PyObject *_wrap_delete_RealPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2847 PyObject *resultobj;
2848 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2849 PyObject * obj0 = 0 ;
2850 char *kwnames[] = {
2851 (char *) "self", NULL
2852 };
2853
2854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RealPoint",kwnames,&obj0)) goto fail;
2855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2857 {
2858 PyThreadState* __tstate = wxPyBeginAllowThreads();
2859 delete arg1;
2860
2861 wxPyEndAllowThreads(__tstate);
2862 if (PyErr_Occurred()) SWIG_fail;
2863 }
2864 Py_INCREF(Py_None); resultobj = Py_None;
2865 return resultobj;
2866 fail:
2867 return NULL;
2868}
2869
2870
c32bde28 2871static PyObject *_wrap_RealPoint___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2872 PyObject *resultobj;
2873 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2874 wxRealPoint *arg2 = 0 ;
2875 bool result;
2876 wxRealPoint temp2 ;
2877 PyObject * obj0 = 0 ;
2878 PyObject * obj1 = 0 ;
2879 char *kwnames[] = {
2880 (char *) "self",(char *) "pt", NULL
2881 };
2882
2883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___eq__",kwnames,&obj0,&obj1)) goto fail;
2884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2886 {
2887 arg2 = &temp2;
2888 if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail;
2889 }
2890 {
2891 PyThreadState* __tstate = wxPyBeginAllowThreads();
2892 result = (bool)(arg1)->operator ==((wxRealPoint const &)*arg2);
2893
2894 wxPyEndAllowThreads(__tstate);
2895 if (PyErr_Occurred()) SWIG_fail;
2896 }
2897 {
2898 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2899 }
2900 return resultobj;
2901 fail:
2902 return NULL;
2903}
2904
2905
c32bde28 2906static PyObject *_wrap_RealPoint___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2907 PyObject *resultobj;
2908 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2909 wxRealPoint *arg2 = 0 ;
2910 bool result;
2911 wxRealPoint temp2 ;
2912 PyObject * obj0 = 0 ;
2913 PyObject * obj1 = 0 ;
2914 char *kwnames[] = {
2915 (char *) "self",(char *) "pt", NULL
2916 };
2917
2918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___ne__",kwnames,&obj0,&obj1)) goto fail;
2919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2921 {
2922 arg2 = &temp2;
2923 if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail;
2924 }
2925 {
2926 PyThreadState* __tstate = wxPyBeginAllowThreads();
2927 result = (bool)(arg1)->operator !=((wxRealPoint const &)*arg2);
2928
2929 wxPyEndAllowThreads(__tstate);
2930 if (PyErr_Occurred()) SWIG_fail;
2931 }
2932 {
2933 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2934 }
2935 return resultobj;
2936 fail:
2937 return NULL;
2938}
2939
2940
c32bde28 2941static PyObject *_wrap_RealPoint___add__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2942 PyObject *resultobj;
2943 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2944 wxRealPoint *arg2 = 0 ;
2945 wxRealPoint result;
2946 wxRealPoint temp2 ;
2947 PyObject * obj0 = 0 ;
2948 PyObject * obj1 = 0 ;
2949 char *kwnames[] = {
2950 (char *) "self",(char *) "pt", NULL
2951 };
2952
2953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___add__",kwnames,&obj0,&obj1)) goto fail;
2954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2956 {
2957 arg2 = &temp2;
2958 if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail;
2959 }
2960 {
2961 PyThreadState* __tstate = wxPyBeginAllowThreads();
2962 result = (arg1)->operator +((wxRealPoint const &)*arg2);
2963
2964 wxPyEndAllowThreads(__tstate);
2965 if (PyErr_Occurred()) SWIG_fail;
2966 }
2967 {
2968 wxRealPoint * resultptr;
2969 resultptr = new wxRealPoint((wxRealPoint &) result);
2970 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1);
2971 }
2972 return resultobj;
2973 fail:
2974 return NULL;
2975}
2976
2977
c32bde28 2978static PyObject *_wrap_RealPoint___sub__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2979 PyObject *resultobj;
2980 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2981 wxRealPoint *arg2 = 0 ;
2982 wxRealPoint result;
2983 wxRealPoint temp2 ;
2984 PyObject * obj0 = 0 ;
2985 PyObject * obj1 = 0 ;
2986 char *kwnames[] = {
2987 (char *) "self",(char *) "pt", NULL
2988 };
2989
2990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___sub__",kwnames,&obj0,&obj1)) goto fail;
2991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2993 {
2994 arg2 = &temp2;
2995 if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail;
2996 }
2997 {
2998 PyThreadState* __tstate = wxPyBeginAllowThreads();
2999 result = (arg1)->operator -((wxRealPoint const &)*arg2);
3000
3001 wxPyEndAllowThreads(__tstate);
3002 if (PyErr_Occurred()) SWIG_fail;
3003 }
3004 {
3005 wxRealPoint * resultptr;
3006 resultptr = new wxRealPoint((wxRealPoint &) result);
3007 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1);
3008 }
3009 return resultobj;
3010 fail:
3011 return NULL;
3012}
3013
3014
c32bde28 3015static PyObject *_wrap_RealPoint_Set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3016 PyObject *resultobj;
3017 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
3018 double arg2 ;
3019 double arg3 ;
3020 PyObject * obj0 = 0 ;
3021 PyObject * obj1 = 0 ;
3022 PyObject * obj2 = 0 ;
3023 char *kwnames[] = {
3024 (char *) "self",(char *) "x",(char *) "y", NULL
3025 };
3026
3027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RealPoint_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
3028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
3029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 3030 arg2 = (double)SWIG_As_double(obj1);
d55e5bfc 3031 if (PyErr_Occurred()) SWIG_fail;
c32bde28 3032 arg3 = (double)SWIG_As_double(obj2);
d55e5bfc
RD
3033 if (PyErr_Occurred()) SWIG_fail;
3034 {
3035 PyThreadState* __tstate = wxPyBeginAllowThreads();
3036 wxRealPoint_Set(arg1,arg2,arg3);
3037
3038 wxPyEndAllowThreads(__tstate);
3039 if (PyErr_Occurred()) SWIG_fail;
3040 }
3041 Py_INCREF(Py_None); resultobj = Py_None;
3042 return resultobj;
3043 fail:
3044 return NULL;
3045}
3046
3047
c32bde28 3048static PyObject *_wrap_RealPoint_Get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3049 PyObject *resultobj;
3050 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
3051 PyObject *result;
3052 PyObject * obj0 = 0 ;
3053 char *kwnames[] = {
3054 (char *) "self", NULL
3055 };
3056
3057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_Get",kwnames,&obj0)) goto fail;
3058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
3059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3060 {
3061 PyThreadState* __tstate = wxPyBeginAllowThreads();
3062 result = (PyObject *)wxRealPoint_Get(arg1);
3063
3064 wxPyEndAllowThreads(__tstate);
3065 if (PyErr_Occurred()) SWIG_fail;
3066 }
3067 resultobj = result;
3068 return resultobj;
3069 fail:
3070 return NULL;
3071}
3072
3073
c32bde28 3074static PyObject * RealPoint_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
3075 PyObject *obj;
3076 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3077 SWIG_TypeClientData(SWIGTYPE_p_wxRealPoint, obj);
3078 Py_INCREF(obj);
3079 return Py_BuildValue((char *)"");
3080}
c32bde28 3081static PyObject *_wrap_Point_x_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3082 PyObject *resultobj;
3083 wxPoint *arg1 = (wxPoint *) 0 ;
3084 int arg2 ;
3085 PyObject * obj0 = 0 ;
3086 PyObject * obj1 = 0 ;
3087 char *kwnames[] = {
3088 (char *) "self",(char *) "x", NULL
3089 };
3090
3091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_x_set",kwnames,&obj0,&obj1)) goto fail;
3092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 3094 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
3095 if (PyErr_Occurred()) SWIG_fail;
3096 if (arg1) (arg1)->x = arg2;
3097
3098 Py_INCREF(Py_None); resultobj = Py_None;
3099 return resultobj;
3100 fail:
3101 return NULL;
3102}
3103
3104
c32bde28 3105static PyObject *_wrap_Point_x_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3106 PyObject *resultobj;
3107 wxPoint *arg1 = (wxPoint *) 0 ;
3108 int result;
3109 PyObject * obj0 = 0 ;
3110 char *kwnames[] = {
3111 (char *) "self", NULL
3112 };
3113
3114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_x_get",kwnames,&obj0)) goto fail;
3115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3117 result = (int) ((arg1)->x);
3118
c32bde28 3119 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
3120 return resultobj;
3121 fail:
3122 return NULL;
3123}
3124
3125
c32bde28 3126static PyObject *_wrap_Point_y_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3127 PyObject *resultobj;
3128 wxPoint *arg1 = (wxPoint *) 0 ;
3129 int arg2 ;
3130 PyObject * obj0 = 0 ;
3131 PyObject * obj1 = 0 ;
3132 char *kwnames[] = {
3133 (char *) "self",(char *) "y", NULL
3134 };
3135
3136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_y_set",kwnames,&obj0,&obj1)) goto fail;
3137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 3139 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
3140 if (PyErr_Occurred()) SWIG_fail;
3141 if (arg1) (arg1)->y = arg2;
3142
3143 Py_INCREF(Py_None); resultobj = Py_None;
3144 return resultobj;
3145 fail:
3146 return NULL;
3147}
3148
3149
c32bde28 3150static PyObject *_wrap_Point_y_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3151 PyObject *resultobj;
3152 wxPoint *arg1 = (wxPoint *) 0 ;
3153 int result;
3154 PyObject * obj0 = 0 ;
3155 char *kwnames[] = {
3156 (char *) "self", NULL
3157 };
3158
3159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_y_get",kwnames,&obj0)) goto fail;
3160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3162 result = (int) ((arg1)->y);
3163
c32bde28 3164 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
3165 return resultobj;
3166 fail:
3167 return NULL;
3168}
3169
3170
c32bde28 3171static PyObject *_wrap_new_Point(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3172 PyObject *resultobj;
3173 int arg1 = (int) 0 ;
3174 int arg2 = (int) 0 ;
3175 wxPoint *result;
3176 PyObject * obj0 = 0 ;
3177 PyObject * obj1 = 0 ;
3178 char *kwnames[] = {
3179 (char *) "x",(char *) "y", NULL
3180 };
3181
3182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point",kwnames,&obj0,&obj1)) goto fail;
3183 if (obj0) {
c32bde28 3184 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
3185 if (PyErr_Occurred()) SWIG_fail;
3186 }
3187 if (obj1) {
c32bde28 3188 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
3189 if (PyErr_Occurred()) SWIG_fail;
3190 }
3191 {
3192 PyThreadState* __tstate = wxPyBeginAllowThreads();
3193 result = (wxPoint *)new wxPoint(arg1,arg2);
3194
3195 wxPyEndAllowThreads(__tstate);
3196 if (PyErr_Occurred()) SWIG_fail;
3197 }
3198 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1);
3199 return resultobj;
3200 fail:
3201 return NULL;
3202}
3203
3204
c32bde28 3205static PyObject *_wrap_delete_Point(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3206 PyObject *resultobj;
3207 wxPoint *arg1 = (wxPoint *) 0 ;
3208 PyObject * obj0 = 0 ;
3209 char *kwnames[] = {
3210 (char *) "self", NULL
3211 };
3212
3213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Point",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 delete arg1;
3219
3220 wxPyEndAllowThreads(__tstate);
3221 if (PyErr_Occurred()) SWIG_fail;
3222 }
3223 Py_INCREF(Py_None); resultobj = Py_None;
3224 return resultobj;
3225 fail:
3226 return NULL;
3227}
3228
3229
c32bde28 3230static PyObject *_wrap_Point___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3231 PyObject *resultobj;
3232 wxPoint *arg1 = (wxPoint *) 0 ;
3233 wxPoint *arg2 = 0 ;
3234 bool result;
3235 wxPoint temp2 ;
3236 PyObject * obj0 = 0 ;
3237 PyObject * obj1 = 0 ;
3238 char *kwnames[] = {
3239 (char *) "self",(char *) "pt", NULL
3240 };
3241
3242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___eq__",kwnames,&obj0,&obj1)) goto fail;
3243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3245 {
3246 arg2 = &temp2;
3247 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3248 }
3249 {
3250 PyThreadState* __tstate = wxPyBeginAllowThreads();
3251 result = (bool)(arg1)->operator ==((wxPoint const &)*arg2);
3252
3253 wxPyEndAllowThreads(__tstate);
3254 if (PyErr_Occurred()) SWIG_fail;
3255 }
3256 {
3257 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3258 }
3259 return resultobj;
3260 fail:
3261 return NULL;
3262}
3263
3264
c32bde28 3265static PyObject *_wrap_Point___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3266 PyObject *resultobj;
3267 wxPoint *arg1 = (wxPoint *) 0 ;
3268 wxPoint *arg2 = 0 ;
3269 bool result;
3270 wxPoint temp2 ;
3271 PyObject * obj0 = 0 ;
3272 PyObject * obj1 = 0 ;
3273 char *kwnames[] = {
3274 (char *) "self",(char *) "pt", NULL
3275 };
3276
3277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___ne__",kwnames,&obj0,&obj1)) goto fail;
3278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3280 {
3281 arg2 = &temp2;
3282 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3283 }
3284 {
3285 PyThreadState* __tstate = wxPyBeginAllowThreads();
3286 result = (bool)(arg1)->operator !=((wxPoint const &)*arg2);
3287
3288 wxPyEndAllowThreads(__tstate);
3289 if (PyErr_Occurred()) SWIG_fail;
3290 }
3291 {
3292 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3293 }
3294 return resultobj;
3295 fail:
3296 return NULL;
3297}
3298
3299
c32bde28 3300static PyObject *_wrap_Point___add__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3301 PyObject *resultobj;
3302 wxPoint *arg1 = (wxPoint *) 0 ;
3303 wxPoint *arg2 = 0 ;
3304 wxPoint result;
3305 wxPoint temp2 ;
3306 PyObject * obj0 = 0 ;
3307 PyObject * obj1 = 0 ;
3308 char *kwnames[] = {
3309 (char *) "self",(char *) "pt", NULL
3310 };
3311
3312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___add__",kwnames,&obj0,&obj1)) goto fail;
3313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3315 {
3316 arg2 = &temp2;
3317 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3318 }
3319 {
3320 PyThreadState* __tstate = wxPyBeginAllowThreads();
3321 result = (arg1)->operator +((wxPoint const &)*arg2);
3322
3323 wxPyEndAllowThreads(__tstate);
3324 if (PyErr_Occurred()) SWIG_fail;
3325 }
3326 {
3327 wxPoint * resultptr;
3328 resultptr = new wxPoint((wxPoint &) result);
3329 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
3330 }
3331 return resultobj;
3332 fail:
3333 return NULL;
3334}
3335
3336
c32bde28 3337static PyObject *_wrap_Point___sub__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3338 PyObject *resultobj;
3339 wxPoint *arg1 = (wxPoint *) 0 ;
3340 wxPoint *arg2 = 0 ;
3341 wxPoint result;
3342 wxPoint temp2 ;
3343 PyObject * obj0 = 0 ;
3344 PyObject * obj1 = 0 ;
3345 char *kwnames[] = {
3346 (char *) "self",(char *) "pt", NULL
3347 };
3348
3349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___sub__",kwnames,&obj0,&obj1)) goto fail;
3350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3352 {
3353 arg2 = &temp2;
3354 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3355 }
3356 {
3357 PyThreadState* __tstate = wxPyBeginAllowThreads();
3358 result = (arg1)->operator -((wxPoint const &)*arg2);
3359
3360 wxPyEndAllowThreads(__tstate);
3361 if (PyErr_Occurred()) SWIG_fail;
3362 }
3363 {
3364 wxPoint * resultptr;
3365 resultptr = new wxPoint((wxPoint &) result);
3366 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
3367 }
3368 return resultobj;
3369 fail:
3370 return NULL;
3371}
3372
3373
c32bde28 3374static PyObject *_wrap_Point___iadd__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3375 PyObject *resultobj;
3376 wxPoint *arg1 = (wxPoint *) 0 ;
3377 wxPoint *arg2 = 0 ;
3378 wxPoint *result;
3379 wxPoint temp2 ;
3380 PyObject * obj0 = 0 ;
3381 PyObject * obj1 = 0 ;
3382 char *kwnames[] = {
3383 (char *) "self",(char *) "pt", NULL
3384 };
3385
3386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___iadd__",kwnames,&obj0,&obj1)) goto fail;
3387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
c32bde28 3388 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
d55e5bfc
RD
3389 {
3390 arg2 = &temp2;
3391 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3392 }
3393 {
3394 PyThreadState* __tstate = wxPyBeginAllowThreads();
3395 {
3396 wxPoint &_result_ref = (arg1)->operator +=((wxPoint const &)*arg2);
3397 result = (wxPoint *) &_result_ref;
3398 }
3399
3400 wxPyEndAllowThreads(__tstate);
3401 if (PyErr_Occurred()) SWIG_fail;
3402 }
c32bde28 3403 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1);
d55e5bfc
RD
3404 return resultobj;
3405 fail:
3406 return NULL;
3407}
3408
3409
c32bde28 3410static PyObject *_wrap_Point___isub__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3411 PyObject *resultobj;
3412 wxPoint *arg1 = (wxPoint *) 0 ;
3413 wxPoint *arg2 = 0 ;
3414 wxPoint *result;
3415 wxPoint temp2 ;
3416 PyObject * obj0 = 0 ;
3417 PyObject * obj1 = 0 ;
3418 char *kwnames[] = {
3419 (char *) "self",(char *) "pt", NULL
3420 };
3421
3422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___isub__",kwnames,&obj0,&obj1)) goto fail;
3423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
c32bde28 3424 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
d55e5bfc
RD
3425 {
3426 arg2 = &temp2;
3427 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3428 }
3429 {
3430 PyThreadState* __tstate = wxPyBeginAllowThreads();
3431 {
3432 wxPoint &_result_ref = (arg1)->operator -=((wxPoint const &)*arg2);
3433 result = (wxPoint *) &_result_ref;
3434 }
3435
3436 wxPyEndAllowThreads(__tstate);
3437 if (PyErr_Occurred()) SWIG_fail;
3438 }
c32bde28 3439 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1);
d55e5bfc
RD
3440 return resultobj;
3441 fail:
3442 return NULL;
3443}
3444
3445
c32bde28 3446static PyObject *_wrap_Point_Set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3447 PyObject *resultobj;
3448 wxPoint *arg1 = (wxPoint *) 0 ;
3449 long arg2 ;
3450 long arg3 ;
3451 PyObject * obj0 = 0 ;
3452 PyObject * obj1 = 0 ;
3453 PyObject * obj2 = 0 ;
3454 char *kwnames[] = {
3455 (char *) "self",(char *) "x",(char *) "y", NULL
3456 };
3457
3458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Point_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
3459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 3461 arg2 = (long)SWIG_As_long(obj1);
d55e5bfc 3462 if (PyErr_Occurred()) SWIG_fail;
c32bde28 3463 arg3 = (long)SWIG_As_long(obj2);
d55e5bfc
RD
3464 if (PyErr_Occurred()) SWIG_fail;
3465 {
3466 PyThreadState* __tstate = wxPyBeginAllowThreads();
3467 wxPoint_Set(arg1,arg2,arg3);
3468
3469 wxPyEndAllowThreads(__tstate);
3470 if (PyErr_Occurred()) SWIG_fail;
3471 }
3472 Py_INCREF(Py_None); resultobj = Py_None;
3473 return resultobj;
3474 fail:
3475 return NULL;
3476}
3477
3478
c32bde28 3479static PyObject *_wrap_Point_Get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3480 PyObject *resultobj;
3481 wxPoint *arg1 = (wxPoint *) 0 ;
3482 PyObject *result;
3483 PyObject * obj0 = 0 ;
3484 char *kwnames[] = {
3485 (char *) "self", NULL
3486 };
3487
3488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_Get",kwnames,&obj0)) goto fail;
3489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3491 {
3492 PyThreadState* __tstate = wxPyBeginAllowThreads();
3493 result = (PyObject *)wxPoint_Get(arg1);
3494
3495 wxPyEndAllowThreads(__tstate);
3496 if (PyErr_Occurred()) SWIG_fail;
3497 }
3498 resultobj = result;
3499 return resultobj;
3500 fail:
3501 return NULL;
3502}
3503
3504
c32bde28 3505static PyObject * Point_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
3506 PyObject *obj;
3507 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3508 SWIG_TypeClientData(SWIGTYPE_p_wxPoint, obj);
3509 Py_INCREF(obj);
3510 return Py_BuildValue((char *)"");
3511}
c32bde28 3512static PyObject *_wrap_new_Rect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3513 PyObject *resultobj;
3514 int arg1 = (int) 0 ;
3515 int arg2 = (int) 0 ;
3516 int arg3 = (int) 0 ;
3517 int arg4 = (int) 0 ;
3518 wxRect *result;
3519 PyObject * obj0 = 0 ;
3520 PyObject * obj1 = 0 ;
3521 PyObject * obj2 = 0 ;
3522 PyObject * obj3 = 0 ;
3523 char *kwnames[] = {
3524 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
3525 };
3526
3527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Rect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3528 if (obj0) {
c32bde28 3529 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
3530 if (PyErr_Occurred()) SWIG_fail;
3531 }
3532 if (obj1) {
c32bde28 3533 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
3534 if (PyErr_Occurred()) SWIG_fail;
3535 }
3536 if (obj2) {
c32bde28 3537 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
3538 if (PyErr_Occurred()) SWIG_fail;
3539 }
3540 if (obj3) {
c32bde28 3541 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
3542 if (PyErr_Occurred()) SWIG_fail;
3543 }
3544 {
3545 PyThreadState* __tstate = wxPyBeginAllowThreads();
3546 result = (wxRect *)new wxRect(arg1,arg2,arg3,arg4);
3547
3548 wxPyEndAllowThreads(__tstate);
3549 if (PyErr_Occurred()) SWIG_fail;
3550 }
3551 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1);
3552 return resultobj;
3553 fail:
3554 return NULL;
3555}
3556
3557
c32bde28 3558static PyObject *_wrap_new_RectPP(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3559 PyObject *resultobj;
3560 wxPoint *arg1 = 0 ;
3561 wxPoint *arg2 = 0 ;
3562 wxRect *result;
3563 wxPoint temp1 ;
3564 wxPoint temp2 ;
3565 PyObject * obj0 = 0 ;
3566 PyObject * obj1 = 0 ;
3567 char *kwnames[] = {
3568 (char *) "topLeft",(char *) "bottomRight", NULL
3569 };
3570
3571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPP",kwnames,&obj0,&obj1)) goto fail;
3572 {
3573 arg1 = &temp1;
3574 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
3575 }
3576 {
3577 arg2 = &temp2;
3578 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3579 }
3580 {
3581 PyThreadState* __tstate = wxPyBeginAllowThreads();
3582 result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxPoint const &)*arg2);
3583
3584 wxPyEndAllowThreads(__tstate);
3585 if (PyErr_Occurred()) SWIG_fail;
3586 }
3587 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1);
3588 return resultobj;
3589 fail:
3590 return NULL;
3591}
3592
3593
c32bde28 3594static PyObject *_wrap_new_RectPS(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3595 PyObject *resultobj;
3596 wxPoint *arg1 = 0 ;
3597 wxSize *arg2 = 0 ;
3598 wxRect *result;
3599 wxPoint temp1 ;
3600 wxSize temp2 ;
3601 PyObject * obj0 = 0 ;
3602 PyObject * obj1 = 0 ;
3603 char *kwnames[] = {
3604 (char *) "pos",(char *) "size", NULL
3605 };
3606
3607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPS",kwnames,&obj0,&obj1)) goto fail;
3608 {
3609 arg1 = &temp1;
3610 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
3611 }
3612 {
3613 arg2 = &temp2;
3614 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3615 }
3616 {
3617 PyThreadState* __tstate = wxPyBeginAllowThreads();
3618 result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxSize const &)*arg2);
3619
3620 wxPyEndAllowThreads(__tstate);
3621 if (PyErr_Occurred()) SWIG_fail;
3622 }
3623 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1);
3624 return resultobj;
3625 fail:
3626 return NULL;
3627}
3628
3629
c32bde28 3630static PyObject *_wrap_delete_Rect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3631 PyObject *resultobj;
3632 wxRect *arg1 = (wxRect *) 0 ;
3633 PyObject * obj0 = 0 ;
3634 char *kwnames[] = {
3635 (char *) "self", NULL
3636 };
3637
3638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Rect",kwnames,&obj0)) goto fail;
3639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3641 {
3642 PyThreadState* __tstate = wxPyBeginAllowThreads();
3643 delete arg1;
3644
3645 wxPyEndAllowThreads(__tstate);
3646 if (PyErr_Occurred()) SWIG_fail;
3647 }
3648 Py_INCREF(Py_None); resultobj = Py_None;
3649 return resultobj;
3650 fail:
3651 return NULL;
3652}
3653
3654
c32bde28 3655static PyObject *_wrap_Rect_GetX(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3656 PyObject *resultobj;
3657 wxRect *arg1 = (wxRect *) 0 ;
3658 int result;
3659 PyObject * obj0 = 0 ;
3660 char *kwnames[] = {
3661 (char *) "self", NULL
3662 };
3663
3664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetX",kwnames,&obj0)) goto fail;
3665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3667 {
3668 PyThreadState* __tstate = wxPyBeginAllowThreads();
3669 result = (int)((wxRect const *)arg1)->GetX();
3670
3671 wxPyEndAllowThreads(__tstate);
3672 if (PyErr_Occurred()) SWIG_fail;
3673 }
c32bde28 3674 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
3675 return resultobj;
3676 fail:
3677 return NULL;
3678}
3679
3680
c32bde28 3681static PyObject *_wrap_Rect_SetX(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3682 PyObject *resultobj;
3683 wxRect *arg1 = (wxRect *) 0 ;
3684 int arg2 ;
3685 PyObject * obj0 = 0 ;
3686 PyObject * obj1 = 0 ;
3687 char *kwnames[] = {
3688 (char *) "self",(char *) "x", NULL
3689 };
3690
3691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetX",kwnames,&obj0,&obj1)) goto fail;
3692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 3694 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
3695 if (PyErr_Occurred()) SWIG_fail;
3696 {
3697 PyThreadState* __tstate = wxPyBeginAllowThreads();
3698 (arg1)->SetX(arg2);
3699
3700 wxPyEndAllowThreads(__tstate);
3701 if (PyErr_Occurred()) SWIG_fail;
3702 }
3703 Py_INCREF(Py_None); resultobj = Py_None;
3704 return resultobj;
3705 fail:
3706 return NULL;
3707}
3708
3709
c32bde28 3710static PyObject *_wrap_Rect_GetY(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3711 PyObject *resultobj;
3712 wxRect *arg1 = (wxRect *) 0 ;
3713 int result;
3714 PyObject * obj0 = 0 ;
3715 char *kwnames[] = {
3716 (char *) "self", NULL
3717 };
3718
3719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetY",kwnames,&obj0)) goto fail;
3720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3722 {
3723 PyThreadState* __tstate = wxPyBeginAllowThreads();
3724 result = (int)(arg1)->GetY();
3725
3726 wxPyEndAllowThreads(__tstate);
3727 if (PyErr_Occurred()) SWIG_fail;
3728 }
c32bde28 3729 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
3730 return resultobj;
3731 fail:
3732 return NULL;
3733}
3734
3735
c32bde28 3736static PyObject *_wrap_Rect_SetY(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3737 PyObject *resultobj;
3738 wxRect *arg1 = (wxRect *) 0 ;
3739 int arg2 ;
3740 PyObject * obj0 = 0 ;
3741 PyObject * obj1 = 0 ;
3742 char *kwnames[] = {
3743 (char *) "self",(char *) "y", NULL
3744 };
3745
3746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetY",kwnames,&obj0,&obj1)) goto fail;
3747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 3749 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
3750 if (PyErr_Occurred()) SWIG_fail;
3751 {
3752 PyThreadState* __tstate = wxPyBeginAllowThreads();
3753 (arg1)->SetY(arg2);
3754
3755 wxPyEndAllowThreads(__tstate);
3756 if (PyErr_Occurred()) SWIG_fail;
3757 }
3758 Py_INCREF(Py_None); resultobj = Py_None;
3759 return resultobj;
3760 fail:
3761 return NULL;
3762}
3763
3764
c32bde28 3765static PyObject *_wrap_Rect_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3766 PyObject *resultobj;
3767 wxRect *arg1 = (wxRect *) 0 ;
3768 int result;
3769 PyObject * obj0 = 0 ;
3770 char *kwnames[] = {
3771 (char *) "self", NULL
3772 };
3773
3774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetWidth",kwnames,&obj0)) goto fail;
3775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3777 {
3778 PyThreadState* __tstate = wxPyBeginAllowThreads();
3779 result = (int)((wxRect const *)arg1)->GetWidth();
3780
3781 wxPyEndAllowThreads(__tstate);
3782 if (PyErr_Occurred()) SWIG_fail;
3783 }
c32bde28 3784 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
3785 return resultobj;
3786 fail:
3787 return NULL;
3788}
3789
3790
c32bde28 3791static PyObject *_wrap_Rect_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3792 PyObject *resultobj;
3793 wxRect *arg1 = (wxRect *) 0 ;
3794 int arg2 ;
3795 PyObject * obj0 = 0 ;
3796 PyObject * obj1 = 0 ;
3797 char *kwnames[] = {
3798 (char *) "self",(char *) "w", NULL
3799 };
3800
3801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 3804 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
3805 if (PyErr_Occurred()) SWIG_fail;
3806 {
3807 PyThreadState* __tstate = wxPyBeginAllowThreads();
3808 (arg1)->SetWidth(arg2);
3809
3810 wxPyEndAllowThreads(__tstate);
3811 if (PyErr_Occurred()) SWIG_fail;
3812 }
3813 Py_INCREF(Py_None); resultobj = Py_None;
3814 return resultobj;
3815 fail:
3816 return NULL;
3817}
3818
3819
c32bde28 3820static PyObject *_wrap_Rect_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3821 PyObject *resultobj;
3822 wxRect *arg1 = (wxRect *) 0 ;
3823 int result;
3824 PyObject * obj0 = 0 ;
3825 char *kwnames[] = {
3826 (char *) "self", NULL
3827 };
3828
3829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetHeight",kwnames,&obj0)) goto fail;
3830 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3831 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3832 {
3833 PyThreadState* __tstate = wxPyBeginAllowThreads();
3834 result = (int)((wxRect const *)arg1)->GetHeight();
3835
3836 wxPyEndAllowThreads(__tstate);
3837 if (PyErr_Occurred()) SWIG_fail;
3838 }
c32bde28 3839 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
3840 return resultobj;
3841 fail:
3842 return NULL;
3843}
3844
3845
c32bde28 3846static PyObject *_wrap_Rect_SetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3847 PyObject *resultobj;
3848 wxRect *arg1 = (wxRect *) 0 ;
3849 int arg2 ;
3850 PyObject * obj0 = 0 ;
3851 PyObject * obj1 = 0 ;
3852 char *kwnames[] = {
3853 (char *) "self",(char *) "h", NULL
3854 };
3855
3856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 3859 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
3860 if (PyErr_Occurred()) SWIG_fail;
3861 {
3862 PyThreadState* __tstate = wxPyBeginAllowThreads();
3863 (arg1)->SetHeight(arg2);
3864
3865 wxPyEndAllowThreads(__tstate);
3866 if (PyErr_Occurred()) SWIG_fail;
3867 }
3868 Py_INCREF(Py_None); resultobj = Py_None;
3869 return resultobj;
3870 fail:
3871 return NULL;
3872}
3873
3874
c32bde28 3875static PyObject *_wrap_Rect_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3876 PyObject *resultobj;
3877 wxRect *arg1 = (wxRect *) 0 ;
3878 wxPoint result;
3879 PyObject * obj0 = 0 ;
3880 char *kwnames[] = {
3881 (char *) "self", NULL
3882 };
3883
3884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetPosition",kwnames,&obj0)) goto fail;
3885 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3887 {
3888 PyThreadState* __tstate = wxPyBeginAllowThreads();
3889 result = ((wxRect const *)arg1)->GetPosition();
3890
3891 wxPyEndAllowThreads(__tstate);
3892 if (PyErr_Occurred()) SWIG_fail;
3893 }
3894 {
3895 wxPoint * resultptr;
3896 resultptr = new wxPoint((wxPoint &) result);
3897 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
3898 }
3899 return resultobj;
3900 fail:
3901 return NULL;
3902}
3903
3904
c32bde28 3905static PyObject *_wrap_Rect_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3906 PyObject *resultobj;
3907 wxRect *arg1 = (wxRect *) 0 ;
3908 wxPoint *arg2 = 0 ;
3909 wxPoint temp2 ;
3910 PyObject * obj0 = 0 ;
3911 PyObject * obj1 = 0 ;
3912 char *kwnames[] = {
3913 (char *) "self",(char *) "p", NULL
3914 };
3915
3916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetPosition",kwnames,&obj0,&obj1)) goto fail;
3917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3919 {
3920 arg2 = &temp2;
3921 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3922 }
3923 {
3924 PyThreadState* __tstate = wxPyBeginAllowThreads();
3925 (arg1)->SetPosition((wxPoint const &)*arg2);
3926
3927 wxPyEndAllowThreads(__tstate);
3928 if (PyErr_Occurred()) SWIG_fail;
3929 }
3930 Py_INCREF(Py_None); resultobj = Py_None;
3931 return resultobj;
3932 fail:
3933 return NULL;
3934}
3935
3936
c32bde28 3937static PyObject *_wrap_Rect_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3938 PyObject *resultobj;
3939 wxRect *arg1 = (wxRect *) 0 ;
3940 wxSize result;
3941 PyObject * obj0 = 0 ;
3942 char *kwnames[] = {
3943 (char *) "self", NULL
3944 };
3945
3946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetSize",kwnames,&obj0)) goto fail;
3947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3949 {
3950 PyThreadState* __tstate = wxPyBeginAllowThreads();
3951 result = ((wxRect const *)arg1)->GetSize();
3952
3953 wxPyEndAllowThreads(__tstate);
3954 if (PyErr_Occurred()) SWIG_fail;
3955 }
3956 {
3957 wxSize * resultptr;
3958 resultptr = new wxSize((wxSize &) result);
3959 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3960 }
3961 return resultobj;
3962 fail:
3963 return NULL;
3964}
3965
3966
c32bde28 3967static PyObject *_wrap_Rect_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
3968 PyObject *resultobj;
3969 wxRect *arg1 = (wxRect *) 0 ;
3970 wxSize *arg2 = 0 ;
3971 wxSize temp2 ;
3972 PyObject * obj0 = 0 ;
3973 PyObject * obj1 = 0 ;
3974 char *kwnames[] = {
3975 (char *) "self",(char *) "s", NULL
3976 };
3977
3978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetSize",kwnames,&obj0,&obj1)) goto fail;
3979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3981 {
3982 arg2 = &temp2;
3983 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3984 }
3985 {
3986 PyThreadState* __tstate = wxPyBeginAllowThreads();
3987 (arg1)->SetSize((wxSize const &)*arg2);
3988
3989 wxPyEndAllowThreads(__tstate);
3990 if (PyErr_Occurred()) SWIG_fail;
3991 }
3992 Py_INCREF(Py_None); resultobj = Py_None;
3993 return resultobj;
3994 fail:
3995 return NULL;
3996}
3997
3998
c32bde28 3999static PyObject *_wrap_Rect_GetTopLeft(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4000 PyObject *resultobj;
4001 wxRect *arg1 = (wxRect *) 0 ;
4002 wxPoint result;
4003 PyObject * obj0 = 0 ;
4004 char *kwnames[] = {
4005 (char *) "self", NULL
4006 };
4007
4008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTopLeft",kwnames,&obj0)) goto fail;
4009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4011 {
4012 PyThreadState* __tstate = wxPyBeginAllowThreads();
4013 result = ((wxRect const *)arg1)->GetTopLeft();
4014
4015 wxPyEndAllowThreads(__tstate);
4016 if (PyErr_Occurred()) SWIG_fail;
4017 }
4018 {
4019 wxPoint * resultptr;
4020 resultptr = new wxPoint((wxPoint &) result);
4021 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
4022 }
4023 return resultobj;
4024 fail:
4025 return NULL;
4026}
4027
4028
c32bde28 4029static PyObject *_wrap_Rect_SetTopLeft(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4030 PyObject *resultobj;
4031 wxRect *arg1 = (wxRect *) 0 ;
4032 wxPoint *arg2 = 0 ;
4033 wxPoint temp2 ;
4034 PyObject * obj0 = 0 ;
4035 PyObject * obj1 = 0 ;
4036 char *kwnames[] = {
4037 (char *) "self",(char *) "p", NULL
4038 };
4039
4040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopLeft",kwnames,&obj0,&obj1)) goto fail;
4041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4043 {
4044 arg2 = &temp2;
4045 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4046 }
4047 {
4048 PyThreadState* __tstate = wxPyBeginAllowThreads();
4049 (arg1)->SetTopLeft((wxPoint const &)*arg2);
4050
4051 wxPyEndAllowThreads(__tstate);
4052 if (PyErr_Occurred()) SWIG_fail;
4053 }
4054 Py_INCREF(Py_None); resultobj = Py_None;
4055 return resultobj;
4056 fail:
4057 return NULL;
4058}
4059
4060
c32bde28 4061static PyObject *_wrap_Rect_GetBottomRight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4062 PyObject *resultobj;
4063 wxRect *arg1 = (wxRect *) 0 ;
4064 wxPoint result;
4065 PyObject * obj0 = 0 ;
4066 char *kwnames[] = {
4067 (char *) "self", NULL
4068 };
4069
4070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottomRight",kwnames,&obj0)) goto fail;
4071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4073 {
4074 PyThreadState* __tstate = wxPyBeginAllowThreads();
4075 result = ((wxRect const *)arg1)->GetBottomRight();
4076
4077 wxPyEndAllowThreads(__tstate);
4078 if (PyErr_Occurred()) SWIG_fail;
4079 }
4080 {
4081 wxPoint * resultptr;
4082 resultptr = new wxPoint((wxPoint &) result);
4083 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
4084 }
4085 return resultobj;
4086 fail:
4087 return NULL;
4088}
4089
4090
c32bde28 4091static PyObject *_wrap_Rect_SetBottomRight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4092 PyObject *resultobj;
4093 wxRect *arg1 = (wxRect *) 0 ;
4094 wxPoint *arg2 = 0 ;
4095 wxPoint temp2 ;
4096 PyObject * obj0 = 0 ;
4097 PyObject * obj1 = 0 ;
4098 char *kwnames[] = {
4099 (char *) "self",(char *) "p", NULL
4100 };
4101
4102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomRight",kwnames,&obj0,&obj1)) goto fail;
4103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4105 {
4106 arg2 = &temp2;
4107 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4108 }
4109 {
4110 PyThreadState* __tstate = wxPyBeginAllowThreads();
4111 (arg1)->SetBottomRight((wxPoint const &)*arg2);
4112
4113 wxPyEndAllowThreads(__tstate);
4114 if (PyErr_Occurred()) SWIG_fail;
4115 }
4116 Py_INCREF(Py_None); resultobj = Py_None;
4117 return resultobj;
4118 fail:
4119 return NULL;
4120}
4121
4122
c32bde28 4123static PyObject *_wrap_Rect_GetLeft(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4124 PyObject *resultobj;
4125 wxRect *arg1 = (wxRect *) 0 ;
4126 int result;
4127 PyObject * obj0 = 0 ;
4128 char *kwnames[] = {
4129 (char *) "self", NULL
4130 };
4131
4132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetLeft",kwnames,&obj0)) goto fail;
4133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4135 {
4136 PyThreadState* __tstate = wxPyBeginAllowThreads();
4137 result = (int)((wxRect const *)arg1)->GetLeft();
4138
4139 wxPyEndAllowThreads(__tstate);
4140 if (PyErr_Occurred()) SWIG_fail;
4141 }
c32bde28 4142 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
4143 return resultobj;
4144 fail:
4145 return NULL;
4146}
4147
4148
c32bde28 4149static PyObject *_wrap_Rect_GetTop(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4150 PyObject *resultobj;
4151 wxRect *arg1 = (wxRect *) 0 ;
4152 int result;
4153 PyObject * obj0 = 0 ;
4154 char *kwnames[] = {
4155 (char *) "self", NULL
4156 };
4157
4158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTop",kwnames,&obj0)) goto fail;
4159 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4160 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4161 {
4162 PyThreadState* __tstate = wxPyBeginAllowThreads();
4163 result = (int)((wxRect const *)arg1)->GetTop();
4164
4165 wxPyEndAllowThreads(__tstate);
4166 if (PyErr_Occurred()) SWIG_fail;
4167 }
c32bde28 4168 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
4169 return resultobj;
4170 fail:
4171 return NULL;
4172}
4173
4174
c32bde28 4175static PyObject *_wrap_Rect_GetBottom(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4176 PyObject *resultobj;
4177 wxRect *arg1 = (wxRect *) 0 ;
4178 int result;
4179 PyObject * obj0 = 0 ;
4180 char *kwnames[] = {
4181 (char *) "self", NULL
4182 };
4183
4184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottom",kwnames,&obj0)) goto fail;
4185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4187 {
4188 PyThreadState* __tstate = wxPyBeginAllowThreads();
4189 result = (int)((wxRect const *)arg1)->GetBottom();
4190
4191 wxPyEndAllowThreads(__tstate);
4192 if (PyErr_Occurred()) SWIG_fail;
4193 }
c32bde28 4194 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
4195 return resultobj;
4196 fail:
4197 return NULL;
4198}
4199
4200
c32bde28 4201static PyObject *_wrap_Rect_GetRight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4202 PyObject *resultobj;
4203 wxRect *arg1 = (wxRect *) 0 ;
4204 int result;
4205 PyObject * obj0 = 0 ;
4206 char *kwnames[] = {
4207 (char *) "self", NULL
4208 };
4209
4210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetRight",kwnames,&obj0)) goto fail;
4211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4213 {
4214 PyThreadState* __tstate = wxPyBeginAllowThreads();
4215 result = (int)((wxRect const *)arg1)->GetRight();
4216
4217 wxPyEndAllowThreads(__tstate);
4218 if (PyErr_Occurred()) SWIG_fail;
4219 }
c32bde28 4220 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
4221 return resultobj;
4222 fail:
4223 return NULL;
4224}
4225
4226
c32bde28 4227static PyObject *_wrap_Rect_SetLeft(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4228 PyObject *resultobj;
4229 wxRect *arg1 = (wxRect *) 0 ;
4230 int arg2 ;
4231 PyObject * obj0 = 0 ;
4232 PyObject * obj1 = 0 ;
4233 char *kwnames[] = {
4234 (char *) "self",(char *) "left", NULL
4235 };
4236
4237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetLeft",kwnames,&obj0,&obj1)) goto fail;
4238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 4240 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
4241 if (PyErr_Occurred()) SWIG_fail;
4242 {
4243 PyThreadState* __tstate = wxPyBeginAllowThreads();
4244 (arg1)->SetLeft(arg2);
4245
4246 wxPyEndAllowThreads(__tstate);
4247 if (PyErr_Occurred()) SWIG_fail;
4248 }
4249 Py_INCREF(Py_None); resultobj = Py_None;
4250 return resultobj;
4251 fail:
4252 return NULL;
4253}
4254
4255
c32bde28 4256static PyObject *_wrap_Rect_SetRight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4257 PyObject *resultobj;
4258 wxRect *arg1 = (wxRect *) 0 ;
4259 int arg2 ;
4260 PyObject * obj0 = 0 ;
4261 PyObject * obj1 = 0 ;
4262 char *kwnames[] = {
4263 (char *) "self",(char *) "right", NULL
4264 };
4265
4266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetRight",kwnames,&obj0,&obj1)) goto fail;
4267 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 4269 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
4270 if (PyErr_Occurred()) SWIG_fail;
4271 {
4272 PyThreadState* __tstate = wxPyBeginAllowThreads();
4273 (arg1)->SetRight(arg2);
4274
4275 wxPyEndAllowThreads(__tstate);
4276 if (PyErr_Occurred()) SWIG_fail;
4277 }
4278 Py_INCREF(Py_None); resultobj = Py_None;
4279 return resultobj;
4280 fail:
4281 return NULL;
4282}
4283
4284
c32bde28 4285static PyObject *_wrap_Rect_SetTop(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4286 PyObject *resultobj;
4287 wxRect *arg1 = (wxRect *) 0 ;
4288 int arg2 ;
4289 PyObject * obj0 = 0 ;
4290 PyObject * obj1 = 0 ;
4291 char *kwnames[] = {
4292 (char *) "self",(char *) "top", NULL
4293 };
4294
4295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTop",kwnames,&obj0,&obj1)) goto fail;
4296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 4298 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
4299 if (PyErr_Occurred()) SWIG_fail;
4300 {
4301 PyThreadState* __tstate = wxPyBeginAllowThreads();
4302 (arg1)->SetTop(arg2);
4303
4304 wxPyEndAllowThreads(__tstate);
4305 if (PyErr_Occurred()) SWIG_fail;
4306 }
4307 Py_INCREF(Py_None); resultobj = Py_None;
4308 return resultobj;
4309 fail:
4310 return NULL;
4311}
4312
4313
c32bde28 4314static PyObject *_wrap_Rect_SetBottom(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4315 PyObject *resultobj;
4316 wxRect *arg1 = (wxRect *) 0 ;
4317 int arg2 ;
4318 PyObject * obj0 = 0 ;
4319 PyObject * obj1 = 0 ;
4320 char *kwnames[] = {
4321 (char *) "self",(char *) "bottom", NULL
4322 };
4323
4324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottom",kwnames,&obj0,&obj1)) goto fail;
4325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 4327 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
4328 if (PyErr_Occurred()) SWIG_fail;
4329 {
4330 PyThreadState* __tstate = wxPyBeginAllowThreads();
4331 (arg1)->SetBottom(arg2);
4332
4333 wxPyEndAllowThreads(__tstate);
4334 if (PyErr_Occurred()) SWIG_fail;
4335 }
4336 Py_INCREF(Py_None); resultobj = Py_None;
4337 return resultobj;
4338 fail:
4339 return NULL;
4340}
4341
4342
c32bde28 4343static PyObject *_wrap_Rect_Inflate(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4344 PyObject *resultobj;
4345 wxRect *arg1 = (wxRect *) 0 ;
4346 int arg2 ;
4347 int arg3 ;
4348 wxRect *result;
4349 PyObject * obj0 = 0 ;
4350 PyObject * obj1 = 0 ;
4351 PyObject * obj2 = 0 ;
4352 char *kwnames[] = {
4353 (char *) "self",(char *) "dx",(char *) "dy", NULL
4354 };
4355
4356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Inflate",kwnames,&obj0,&obj1,&obj2)) goto fail;
4357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 4359 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 4360 if (PyErr_Occurred()) SWIG_fail;
c32bde28 4361 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
4362 if (PyErr_Occurred()) SWIG_fail;
4363 {
4364 PyThreadState* __tstate = wxPyBeginAllowThreads();
4365 {
4366 wxRect &_result_ref = (arg1)->Inflate(arg2,arg3);
4367 result = (wxRect *) &_result_ref;
4368 }
4369
4370 wxPyEndAllowThreads(__tstate);
4371 if (PyErr_Occurred()) SWIG_fail;
4372 }
4373 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0);
4374 return resultobj;
4375 fail:
4376 return NULL;
4377}
4378
4379
c32bde28 4380static PyObject *_wrap_Rect_Deflate(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4381 PyObject *resultobj;
4382 wxRect *arg1 = (wxRect *) 0 ;
4383 int arg2 ;
4384 int arg3 ;
4385 wxRect *result;
4386 PyObject * obj0 = 0 ;
4387 PyObject * obj1 = 0 ;
4388 PyObject * obj2 = 0 ;
4389 char *kwnames[] = {
4390 (char *) "self",(char *) "dx",(char *) "dy", NULL
4391 };
4392
4393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Deflate",kwnames,&obj0,&obj1,&obj2)) goto fail;
4394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 4396 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 4397 if (PyErr_Occurred()) SWIG_fail;
c32bde28 4398 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
4399 if (PyErr_Occurred()) SWIG_fail;
4400 {
4401 PyThreadState* __tstate = wxPyBeginAllowThreads();
4402 {
4403 wxRect &_result_ref = (arg1)->Deflate(arg2,arg3);
4404 result = (wxRect *) &_result_ref;
4405 }
4406
4407 wxPyEndAllowThreads(__tstate);
4408 if (PyErr_Occurred()) SWIG_fail;
4409 }
4410 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0);
4411 return resultobj;
4412 fail:
4413 return NULL;
4414}
4415
4416
c32bde28 4417static PyObject *_wrap_Rect_OffsetXY(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4418 PyObject *resultobj;
4419 wxRect *arg1 = (wxRect *) 0 ;
4420 int arg2 ;
4421 int arg3 ;
4422 PyObject * obj0 = 0 ;
4423 PyObject * obj1 = 0 ;
4424 PyObject * obj2 = 0 ;
4425 char *kwnames[] = {
4426 (char *) "self",(char *) "dx",(char *) "dy", NULL
4427 };
4428
4429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_OffsetXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
4430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 4432 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 4433 if (PyErr_Occurred()) SWIG_fail;
c32bde28 4434 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
4435 if (PyErr_Occurred()) SWIG_fail;
4436 {
4437 PyThreadState* __tstate = wxPyBeginAllowThreads();
4438 (arg1)->Offset(arg2,arg3);
4439
4440 wxPyEndAllowThreads(__tstate);
4441 if (PyErr_Occurred()) SWIG_fail;
4442 }
4443 Py_INCREF(Py_None); resultobj = Py_None;
4444 return resultobj;
4445 fail:
4446 return NULL;
4447}
4448
4449
c32bde28 4450static PyObject *_wrap_Rect_Offset(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4451 PyObject *resultobj;
4452 wxRect *arg1 = (wxRect *) 0 ;
4453 wxPoint *arg2 = 0 ;
4454 wxPoint temp2 ;
4455 PyObject * obj0 = 0 ;
4456 PyObject * obj1 = 0 ;
4457 char *kwnames[] = {
4458 (char *) "self",(char *) "pt", NULL
4459 };
4460
4461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Offset",kwnames,&obj0,&obj1)) goto fail;
4462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4464 {
4465 arg2 = &temp2;
4466 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4467 }
4468 {
4469 PyThreadState* __tstate = wxPyBeginAllowThreads();
4470 (arg1)->Offset((wxPoint const &)*arg2);
4471
4472 wxPyEndAllowThreads(__tstate);
4473 if (PyErr_Occurred()) SWIG_fail;
4474 }
4475 Py_INCREF(Py_None); resultobj = Py_None;
4476 return resultobj;
4477 fail:
4478 return NULL;
4479}
4480
4481
c32bde28 4482static PyObject *_wrap_Rect_Intersect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4483 PyObject *resultobj;
4484 wxRect *arg1 = (wxRect *) 0 ;
4485 wxRect *arg2 = 0 ;
4486 wxRect *result;
4487 wxRect temp2 ;
4488 PyObject * obj0 = 0 ;
4489 PyObject * obj1 = 0 ;
4490 char *kwnames[] = {
4491 (char *) "self",(char *) "rect", NULL
4492 };
4493
4494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersect",kwnames,&obj0,&obj1)) goto fail;
4495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4497 {
4498 arg2 = &temp2;
4499 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4500 }
4501 {
4502 PyThreadState* __tstate = wxPyBeginAllowThreads();
4503 {
4504 wxRect &_result_ref = (arg1)->Intersect((wxRect const &)*arg2);
4505 result = (wxRect *) &_result_ref;
4506 }
4507
4508 wxPyEndAllowThreads(__tstate);
4509 if (PyErr_Occurred()) SWIG_fail;
4510 }
4511 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0);
4512 return resultobj;
4513 fail:
4514 return NULL;
4515}
4516
4517
c32bde28 4518static PyObject *_wrap_Rect___add__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4519 PyObject *resultobj;
4520 wxRect *arg1 = (wxRect *) 0 ;
4521 wxRect *arg2 = 0 ;
4522 wxRect result;
4523 wxRect temp2 ;
4524 PyObject * obj0 = 0 ;
4525 PyObject * obj1 = 0 ;
4526 char *kwnames[] = {
4527 (char *) "self",(char *) "rect", NULL
4528 };
4529
4530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___add__",kwnames,&obj0,&obj1)) goto fail;
4531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4533 {
4534 arg2 = &temp2;
4535 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4536 }
4537 {
4538 PyThreadState* __tstate = wxPyBeginAllowThreads();
4539 result = ((wxRect const *)arg1)->operator +((wxRect const &)*arg2);
4540
4541 wxPyEndAllowThreads(__tstate);
4542 if (PyErr_Occurred()) SWIG_fail;
4543 }
4544 {
4545 wxRect * resultptr;
4546 resultptr = new wxRect((wxRect &) result);
4547 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
4548 }
4549 return resultobj;
4550 fail:
4551 return NULL;
4552}
4553
4554
c32bde28 4555static PyObject *_wrap_Rect___iadd__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4556 PyObject *resultobj;
4557 wxRect *arg1 = (wxRect *) 0 ;
4558 wxRect *arg2 = 0 ;
4559 wxRect *result;
4560 wxRect temp2 ;
4561 PyObject * obj0 = 0 ;
4562 PyObject * obj1 = 0 ;
4563 char *kwnames[] = {
4564 (char *) "self",(char *) "rect", NULL
4565 };
4566
4567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___iadd__",kwnames,&obj0,&obj1)) goto fail;
4568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
c32bde28 4569 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
d55e5bfc
RD
4570 {
4571 arg2 = &temp2;
4572 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4573 }
4574 {
4575 PyThreadState* __tstate = wxPyBeginAllowThreads();
4576 {
4577 wxRect &_result_ref = (arg1)->operator +=((wxRect const &)*arg2);
4578 result = (wxRect *) &_result_ref;
4579 }
4580
4581 wxPyEndAllowThreads(__tstate);
4582 if (PyErr_Occurred()) SWIG_fail;
4583 }
c32bde28 4584 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1);
d55e5bfc
RD
4585 return resultobj;
4586 fail:
4587 return NULL;
4588}
4589
4590
c32bde28 4591static PyObject *_wrap_Rect___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4592 PyObject *resultobj;
4593 wxRect *arg1 = (wxRect *) 0 ;
4594 wxRect *arg2 = 0 ;
4595 bool result;
4596 wxRect temp2 ;
4597 PyObject * obj0 = 0 ;
4598 PyObject * obj1 = 0 ;
4599 char *kwnames[] = {
4600 (char *) "self",(char *) "rect", NULL
4601 };
4602
4603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___eq__",kwnames,&obj0,&obj1)) goto fail;
4604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4606 {
4607 arg2 = &temp2;
4608 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4609 }
4610 {
4611 PyThreadState* __tstate = wxPyBeginAllowThreads();
4612 result = (bool)((wxRect const *)arg1)->operator ==((wxRect const &)*arg2);
4613
4614 wxPyEndAllowThreads(__tstate);
4615 if (PyErr_Occurred()) SWIG_fail;
4616 }
4617 {
4618 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4619 }
4620 return resultobj;
4621 fail:
4622 return NULL;
4623}
4624
4625
c32bde28 4626static PyObject *_wrap_Rect___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4627 PyObject *resultobj;
4628 wxRect *arg1 = (wxRect *) 0 ;
4629 wxRect *arg2 = 0 ;
4630 bool result;
4631 wxRect temp2 ;
4632 PyObject * obj0 = 0 ;
4633 PyObject * obj1 = 0 ;
4634 char *kwnames[] = {
4635 (char *) "self",(char *) "rect", NULL
4636 };
4637
4638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___ne__",kwnames,&obj0,&obj1)) goto fail;
4639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4641 {
4642 arg2 = &temp2;
4643 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4644 }
4645 {
4646 PyThreadState* __tstate = wxPyBeginAllowThreads();
4647 result = (bool)((wxRect const *)arg1)->operator !=((wxRect const &)*arg2);
4648
4649 wxPyEndAllowThreads(__tstate);
4650 if (PyErr_Occurred()) SWIG_fail;
4651 }
4652 {
4653 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4654 }
4655 return resultobj;
4656 fail:
4657 return NULL;
4658}
4659
4660
c32bde28 4661static PyObject *_wrap_Rect_InsideXY(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4662 PyObject *resultobj;
4663 wxRect *arg1 = (wxRect *) 0 ;
4664 int arg2 ;
4665 int arg3 ;
4666 bool result;
4667 PyObject * obj0 = 0 ;
4668 PyObject * obj1 = 0 ;
4669 PyObject * obj2 = 0 ;
4670 char *kwnames[] = {
4671 (char *) "self",(char *) "x",(char *) "y", NULL
4672 };
4673
4674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_InsideXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
4675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 4677 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 4678 if (PyErr_Occurred()) SWIG_fail;
c32bde28 4679 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
4680 if (PyErr_Occurred()) SWIG_fail;
4681 {
4682 PyThreadState* __tstate = wxPyBeginAllowThreads();
4683 result = (bool)((wxRect const *)arg1)->Inside(arg2,arg3);
4684
4685 wxPyEndAllowThreads(__tstate);
4686 if (PyErr_Occurred()) SWIG_fail;
4687 }
4688 {
4689 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4690 }
4691 return resultobj;
4692 fail:
4693 return NULL;
4694}
4695
4696
c32bde28 4697static PyObject *_wrap_Rect_Inside(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4698 PyObject *resultobj;
4699 wxRect *arg1 = (wxRect *) 0 ;
4700 wxPoint *arg2 = 0 ;
4701 bool result;
4702 wxPoint temp2 ;
4703 PyObject * obj0 = 0 ;
4704 PyObject * obj1 = 0 ;
4705 char *kwnames[] = {
4706 (char *) "self",(char *) "pt", NULL
4707 };
4708
4709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Inside",kwnames,&obj0,&obj1)) goto fail;
4710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4712 {
4713 arg2 = &temp2;
4714 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4715 }
4716 {
4717 PyThreadState* __tstate = wxPyBeginAllowThreads();
4718 result = (bool)((wxRect const *)arg1)->Inside((wxPoint const &)*arg2);
4719
4720 wxPyEndAllowThreads(__tstate);
4721 if (PyErr_Occurred()) SWIG_fail;
4722 }
4723 {
4724 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4725 }
4726 return resultobj;
4727 fail:
4728 return NULL;
4729}
4730
4731
c32bde28 4732static PyObject *_wrap_Rect_Intersects(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4733 PyObject *resultobj;
4734 wxRect *arg1 = (wxRect *) 0 ;
4735 wxRect *arg2 = 0 ;
4736 bool result;
4737 wxRect temp2 ;
4738 PyObject * obj0 = 0 ;
4739 PyObject * obj1 = 0 ;
4740 char *kwnames[] = {
4741 (char *) "self",(char *) "rect", NULL
4742 };
4743
4744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersects",kwnames,&obj0,&obj1)) goto fail;
4745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4747 {
4748 arg2 = &temp2;
4749 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4750 }
4751 {
4752 PyThreadState* __tstate = wxPyBeginAllowThreads();
4753 result = (bool)((wxRect const *)arg1)->Intersects((wxRect const &)*arg2);
4754
4755 wxPyEndAllowThreads(__tstate);
4756 if (PyErr_Occurred()) SWIG_fail;
4757 }
4758 {
4759 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4760 }
4761 return resultobj;
4762 fail:
4763 return NULL;
4764}
4765
4766
c32bde28 4767static PyObject *_wrap_Rect_x_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4768 PyObject *resultobj;
4769 wxRect *arg1 = (wxRect *) 0 ;
4770 int arg2 ;
4771 PyObject * obj0 = 0 ;
4772 PyObject * obj1 = 0 ;
4773 char *kwnames[] = {
4774 (char *) "self",(char *) "x", NULL
4775 };
4776
4777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_x_set",kwnames,&obj0,&obj1)) goto fail;
4778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 4780 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
4781 if (PyErr_Occurred()) SWIG_fail;
4782 if (arg1) (arg1)->x = arg2;
4783
4784 Py_INCREF(Py_None); resultobj = Py_None;
4785 return resultobj;
4786 fail:
4787 return NULL;
4788}
4789
4790
c32bde28 4791static PyObject *_wrap_Rect_x_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4792 PyObject *resultobj;
4793 wxRect *arg1 = (wxRect *) 0 ;
4794 int result;
4795 PyObject * obj0 = 0 ;
4796 char *kwnames[] = {
4797 (char *) "self", NULL
4798 };
4799
4800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_x_get",kwnames,&obj0)) goto fail;
4801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4803 result = (int) ((arg1)->x);
4804
c32bde28 4805 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
4806 return resultobj;
4807 fail:
4808 return NULL;
4809}
4810
4811
c32bde28 4812static PyObject *_wrap_Rect_y_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4813 PyObject *resultobj;
4814 wxRect *arg1 = (wxRect *) 0 ;
4815 int arg2 ;
4816 PyObject * obj0 = 0 ;
4817 PyObject * obj1 = 0 ;
4818 char *kwnames[] = {
4819 (char *) "self",(char *) "y", NULL
4820 };
4821
4822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_y_set",kwnames,&obj0,&obj1)) goto fail;
4823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 4825 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
4826 if (PyErr_Occurred()) SWIG_fail;
4827 if (arg1) (arg1)->y = arg2;
4828
4829 Py_INCREF(Py_None); resultobj = Py_None;
4830 return resultobj;
4831 fail:
4832 return NULL;
4833}
4834
4835
c32bde28 4836static PyObject *_wrap_Rect_y_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4837 PyObject *resultobj;
4838 wxRect *arg1 = (wxRect *) 0 ;
4839 int result;
4840 PyObject * obj0 = 0 ;
4841 char *kwnames[] = {
4842 (char *) "self", NULL
4843 };
4844
4845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_y_get",kwnames,&obj0)) goto fail;
4846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4848 result = (int) ((arg1)->y);
4849
c32bde28 4850 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
4851 return resultobj;
4852 fail:
4853 return NULL;
4854}
4855
4856
c32bde28 4857static PyObject *_wrap_Rect_width_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4858 PyObject *resultobj;
4859 wxRect *arg1 = (wxRect *) 0 ;
4860 int arg2 ;
4861 PyObject * obj0 = 0 ;
4862 PyObject * obj1 = 0 ;
4863 char *kwnames[] = {
4864 (char *) "self",(char *) "width", NULL
4865 };
4866
4867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_width_set",kwnames,&obj0,&obj1)) goto fail;
4868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 4870 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
4871 if (PyErr_Occurred()) SWIG_fail;
4872 if (arg1) (arg1)->width = arg2;
4873
4874 Py_INCREF(Py_None); resultobj = Py_None;
4875 return resultobj;
4876 fail:
4877 return NULL;
4878}
4879
4880
c32bde28 4881static PyObject *_wrap_Rect_width_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4882 PyObject *resultobj;
4883 wxRect *arg1 = (wxRect *) 0 ;
4884 int result;
4885 PyObject * obj0 = 0 ;
4886 char *kwnames[] = {
4887 (char *) "self", NULL
4888 };
4889
4890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_width_get",kwnames,&obj0)) goto fail;
4891 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4893 result = (int) ((arg1)->width);
4894
c32bde28 4895 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
4896 return resultobj;
4897 fail:
4898 return NULL;
4899}
4900
4901
c32bde28 4902static PyObject *_wrap_Rect_height_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4903 PyObject *resultobj;
4904 wxRect *arg1 = (wxRect *) 0 ;
4905 int arg2 ;
4906 PyObject * obj0 = 0 ;
4907 PyObject * obj1 = 0 ;
4908 char *kwnames[] = {
4909 (char *) "self",(char *) "height", NULL
4910 };
4911
4912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_height_set",kwnames,&obj0,&obj1)) goto fail;
4913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 4915 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
4916 if (PyErr_Occurred()) SWIG_fail;
4917 if (arg1) (arg1)->height = arg2;
4918
4919 Py_INCREF(Py_None); resultobj = Py_None;
4920 return resultobj;
4921 fail:
4922 return NULL;
4923}
4924
4925
c32bde28 4926static PyObject *_wrap_Rect_height_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4927 PyObject *resultobj;
4928 wxRect *arg1 = (wxRect *) 0 ;
4929 int result;
4930 PyObject * obj0 = 0 ;
4931 char *kwnames[] = {
4932 (char *) "self", NULL
4933 };
4934
4935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_height_get",kwnames,&obj0)) goto fail;
4936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4938 result = (int) ((arg1)->height);
4939
c32bde28 4940 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
4941 return resultobj;
4942 fail:
4943 return NULL;
4944}
4945
4946
c32bde28 4947static PyObject *_wrap_Rect_Set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4948 PyObject *resultobj;
4949 wxRect *arg1 = (wxRect *) 0 ;
4950 int arg2 = (int) 0 ;
4951 int arg3 = (int) 0 ;
4952 int arg4 = (int) 0 ;
4953 int arg5 = (int) 0 ;
4954 PyObject * obj0 = 0 ;
4955 PyObject * obj1 = 0 ;
4956 PyObject * obj2 = 0 ;
4957 PyObject * obj3 = 0 ;
4958 PyObject * obj4 = 0 ;
4959 char *kwnames[] = {
4960 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4961 };
4962
4963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Rect_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4966 if (obj1) {
c32bde28 4967 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
4968 if (PyErr_Occurred()) SWIG_fail;
4969 }
4970 if (obj2) {
c32bde28 4971 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
4972 if (PyErr_Occurred()) SWIG_fail;
4973 }
4974 if (obj3) {
c32bde28 4975 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
4976 if (PyErr_Occurred()) SWIG_fail;
4977 }
4978 if (obj4) {
c32bde28 4979 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
4980 if (PyErr_Occurred()) SWIG_fail;
4981 }
4982 {
4983 PyThreadState* __tstate = wxPyBeginAllowThreads();
4984 wxRect_Set(arg1,arg2,arg3,arg4,arg5);
4985
4986 wxPyEndAllowThreads(__tstate);
4987 if (PyErr_Occurred()) SWIG_fail;
4988 }
4989 Py_INCREF(Py_None); resultobj = Py_None;
4990 return resultobj;
4991 fail:
4992 return NULL;
4993}
4994
4995
c32bde28 4996static PyObject *_wrap_Rect_Get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
4997 PyObject *resultobj;
4998 wxRect *arg1 = (wxRect *) 0 ;
4999 PyObject *result;
5000 PyObject * obj0 = 0 ;
5001 char *kwnames[] = {
5002 (char *) "self", NULL
5003 };
5004
5005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_Get",kwnames,&obj0)) goto fail;
5006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
5007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5008 {
5009 PyThreadState* __tstate = wxPyBeginAllowThreads();
5010 result = (PyObject *)wxRect_Get(arg1);
5011
5012 wxPyEndAllowThreads(__tstate);
5013 if (PyErr_Occurred()) SWIG_fail;
5014 }
5015 resultobj = result;
5016 return resultobj;
5017 fail:
5018 return NULL;
5019}
5020
5021
c32bde28 5022static PyObject * Rect_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
5023 PyObject *obj;
5024 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5025 SWIG_TypeClientData(SWIGTYPE_p_wxRect, obj);
5026 Py_INCREF(obj);
5027 return Py_BuildValue((char *)"");
5028}
c32bde28 5029static PyObject *_wrap_IntersectRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5030 PyObject *resultobj;
5031 wxRect *arg1 = (wxRect *) 0 ;
5032 wxRect *arg2 = (wxRect *) 0 ;
5033 PyObject *result;
5034 PyObject * obj0 = 0 ;
5035 PyObject * obj1 = 0 ;
5036 char *kwnames[] = {
5037 (char *) "r1",(char *) "r2", NULL
5038 };
5039
5040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IntersectRect",kwnames,&obj0,&obj1)) goto fail;
5041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
5042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5043 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
5044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5045 {
0439c23b 5046 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
5047 PyThreadState* __tstate = wxPyBeginAllowThreads();
5048 result = (PyObject *)wxIntersectRect(arg1,arg2);
5049
5050 wxPyEndAllowThreads(__tstate);
110da5b0 5051 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
5052 }
5053 resultobj = result;
5054 return resultobj;
5055 fail:
5056 return NULL;
5057}
5058
5059
c32bde28 5060static PyObject *_wrap_new_Point2D(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5061 PyObject *resultobj;
5062 double arg1 = (double) 0.0 ;
5063 double arg2 = (double) 0.0 ;
5064 wxPoint2D *result;
5065 PyObject * obj0 = 0 ;
5066 PyObject * obj1 = 0 ;
5067 char *kwnames[] = {
5068 (char *) "x",(char *) "y", NULL
5069 };
5070
5071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point2D",kwnames,&obj0,&obj1)) goto fail;
5072 if (obj0) {
c32bde28 5073 arg1 = (double)SWIG_As_double(obj0);
d55e5bfc
RD
5074 if (PyErr_Occurred()) SWIG_fail;
5075 }
5076 if (obj1) {
c32bde28 5077 arg2 = (double)SWIG_As_double(obj1);
d55e5bfc
RD
5078 if (PyErr_Occurred()) SWIG_fail;
5079 }
5080 {
5081 PyThreadState* __tstate = wxPyBeginAllowThreads();
5082 result = (wxPoint2D *)new wxPoint2D(arg1,arg2);
5083
5084 wxPyEndAllowThreads(__tstate);
5085 if (PyErr_Occurred()) SWIG_fail;
5086 }
5087 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1);
5088 return resultobj;
5089 fail:
5090 return NULL;
5091}
5092
5093
c32bde28 5094static PyObject *_wrap_new_Point2DCopy(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5095 PyObject *resultobj;
5096 wxPoint2D *arg1 = 0 ;
5097 wxPoint2D *result;
5098 wxPoint2D temp1 ;
5099 PyObject * obj0 = 0 ;
5100 char *kwnames[] = {
5101 (char *) "pt", NULL
5102 };
5103
5104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DCopy",kwnames,&obj0)) goto fail;
5105 {
5106 arg1 = &temp1;
5107 if ( ! wxPoint2D_helper(obj0, &arg1)) SWIG_fail;
5108 }
5109 {
5110 PyThreadState* __tstate = wxPyBeginAllowThreads();
5111 result = (wxPoint2D *)new wxPoint2D((wxPoint2D const &)*arg1);
5112
5113 wxPyEndAllowThreads(__tstate);
5114 if (PyErr_Occurred()) SWIG_fail;
5115 }
5116 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1);
5117 return resultobj;
5118 fail:
5119 return NULL;
5120}
5121
5122
c32bde28 5123static PyObject *_wrap_new_Point2DFromPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5124 PyObject *resultobj;
5125 wxPoint *arg1 = 0 ;
5126 wxPoint2D *result;
5127 wxPoint temp1 ;
5128 PyObject * obj0 = 0 ;
5129 char *kwnames[] = {
5130 (char *) "pt", NULL
5131 };
5132
5133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DFromPoint",kwnames,&obj0)) goto fail;
5134 {
5135 arg1 = &temp1;
5136 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
5137 }
5138 {
5139 PyThreadState* __tstate = wxPyBeginAllowThreads();
5140 result = (wxPoint2D *)new wxPoint2D((wxPoint const &)*arg1);
5141
5142 wxPyEndAllowThreads(__tstate);
5143 if (PyErr_Occurred()) SWIG_fail;
5144 }
5145 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1);
5146 return resultobj;
5147 fail:
5148 return NULL;
5149}
5150
5151
c32bde28 5152static PyObject *_wrap_Point2D_GetFloor(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5153 PyObject *resultobj;
5154 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5155 int *arg2 = (int *) 0 ;
5156 int *arg3 = (int *) 0 ;
5157 int temp2 ;
c32bde28 5158 int res2 = 0 ;
d55e5bfc 5159 int temp3 ;
c32bde28 5160 int res3 = 0 ;
d55e5bfc
RD
5161 PyObject * obj0 = 0 ;
5162 char *kwnames[] = {
5163 (char *) "self", NULL
5164 };
5165
c32bde28
RD
5166 arg2 = &temp2; res2 = SWIG_NEWOBJ;
5167 arg3 = &temp3; res3 = SWIG_NEWOBJ;
d55e5bfc
RD
5168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetFloor",kwnames,&obj0)) goto fail;
5169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5171 {
5172 PyThreadState* __tstate = wxPyBeginAllowThreads();
5173 ((wxPoint2D const *)arg1)->GetFloor(arg2,arg3);
5174
5175 wxPyEndAllowThreads(__tstate);
5176 if (PyErr_Occurred()) SWIG_fail;
5177 }
5178 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
5179 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
5180 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
5181 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
5182 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
5183 return resultobj;
5184 fail:
5185 return NULL;
5186}
5187
5188
c32bde28 5189static PyObject *_wrap_Point2D_GetRounded(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5190 PyObject *resultobj;
5191 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5192 int *arg2 = (int *) 0 ;
5193 int *arg3 = (int *) 0 ;
5194 int temp2 ;
c32bde28 5195 int res2 = 0 ;
d55e5bfc 5196 int temp3 ;
c32bde28 5197 int res3 = 0 ;
d55e5bfc
RD
5198 PyObject * obj0 = 0 ;
5199 char *kwnames[] = {
5200 (char *) "self", NULL
5201 };
5202
c32bde28
RD
5203 arg2 = &temp2; res2 = SWIG_NEWOBJ;
5204 arg3 = &temp3; res3 = SWIG_NEWOBJ;
d55e5bfc
RD
5205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetRounded",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 ((wxPoint2D const *)arg1)->GetRounded(arg2,arg3);
5211
5212 wxPyEndAllowThreads(__tstate);
5213 if (PyErr_Occurred()) SWIG_fail;
5214 }
5215 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
5216 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
5217 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
5218 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
5219 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
5220 return resultobj;
5221 fail:
5222 return NULL;
5223}
5224
5225
c32bde28 5226static PyObject *_wrap_Point2D_GetVectorLength(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5227 PyObject *resultobj;
5228 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5229 double result;
5230 PyObject * obj0 = 0 ;
5231 char *kwnames[] = {
5232 (char *) "self", NULL
5233 };
5234
5235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorLength",kwnames,&obj0)) goto fail;
5236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5238 {
5239 PyThreadState* __tstate = wxPyBeginAllowThreads();
5240 result = (double)((wxPoint2D const *)arg1)->GetVectorLength();
5241
5242 wxPyEndAllowThreads(__tstate);
5243 if (PyErr_Occurred()) SWIG_fail;
5244 }
c32bde28 5245 resultobj = SWIG_From_double((double)result);
d55e5bfc
RD
5246 return resultobj;
5247 fail:
5248 return NULL;
5249}
5250
5251
c32bde28 5252static PyObject *_wrap_Point2D_GetVectorAngle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5253 PyObject *resultobj;
5254 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5255 double result;
5256 PyObject * obj0 = 0 ;
5257 char *kwnames[] = {
5258 (char *) "self", NULL
5259 };
5260
5261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorAngle",kwnames,&obj0)) goto fail;
5262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5264 {
5265 PyThreadState* __tstate = wxPyBeginAllowThreads();
5266 result = (double)((wxPoint2D const *)arg1)->GetVectorAngle();
5267
5268 wxPyEndAllowThreads(__tstate);
5269 if (PyErr_Occurred()) SWIG_fail;
5270 }
c32bde28 5271 resultobj = SWIG_From_double((double)result);
d55e5bfc
RD
5272 return resultobj;
5273 fail:
5274 return NULL;
5275}
5276
5277
c32bde28 5278static PyObject *_wrap_Point2D_SetVectorLength(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5279 PyObject *resultobj;
5280 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5281 double arg2 ;
5282 PyObject * obj0 = 0 ;
5283 PyObject * obj1 = 0 ;
5284 char *kwnames[] = {
5285 (char *) "self",(char *) "length", NULL
5286 };
5287
5288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorLength",kwnames,&obj0,&obj1)) goto fail;
5289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 5291 arg2 = (double)SWIG_As_double(obj1);
d55e5bfc
RD
5292 if (PyErr_Occurred()) SWIG_fail;
5293 {
5294 PyThreadState* __tstate = wxPyBeginAllowThreads();
5295 (arg1)->SetVectorLength(arg2);
5296
5297 wxPyEndAllowThreads(__tstate);
5298 if (PyErr_Occurred()) SWIG_fail;
5299 }
5300 Py_INCREF(Py_None); resultobj = Py_None;
5301 return resultobj;
5302 fail:
5303 return NULL;
5304}
5305
5306
c32bde28 5307static PyObject *_wrap_Point2D_SetVectorAngle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5308 PyObject *resultobj;
5309 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5310 double arg2 ;
5311 PyObject * obj0 = 0 ;
5312 PyObject * obj1 = 0 ;
5313 char *kwnames[] = {
5314 (char *) "self",(char *) "degrees", NULL
5315 };
5316
5317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorAngle",kwnames,&obj0,&obj1)) goto fail;
5318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 5320 arg2 = (double)SWIG_As_double(obj1);
d55e5bfc
RD
5321 if (PyErr_Occurred()) SWIG_fail;
5322 {
5323 PyThreadState* __tstate = wxPyBeginAllowThreads();
5324 (arg1)->SetVectorAngle(arg2);
5325
5326 wxPyEndAllowThreads(__tstate);
5327 if (PyErr_Occurred()) SWIG_fail;
5328 }
5329 Py_INCREF(Py_None); resultobj = Py_None;
5330 return resultobj;
5331 fail:
5332 return NULL;
5333}
5334
5335
c32bde28 5336static PyObject *_wrap_Point2D_GetDistance(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5337 PyObject *resultobj;
5338 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5339 wxPoint2D *arg2 = 0 ;
5340 double result;
5341 wxPoint2D temp2 ;
5342 PyObject * obj0 = 0 ;
5343 PyObject * obj1 = 0 ;
5344 char *kwnames[] = {
5345 (char *) "self",(char *) "pt", NULL
5346 };
5347
5348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistance",kwnames,&obj0,&obj1)) goto fail;
5349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5351 {
5352 arg2 = &temp2;
5353 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5354 }
5355 {
5356 PyThreadState* __tstate = wxPyBeginAllowThreads();
5357 result = (double)((wxPoint2D const *)arg1)->GetDistance((wxPoint2D const &)*arg2);
5358
5359 wxPyEndAllowThreads(__tstate);
5360 if (PyErr_Occurred()) SWIG_fail;
5361 }
c32bde28 5362 resultobj = SWIG_From_double((double)result);
d55e5bfc
RD
5363 return resultobj;
5364 fail:
5365 return NULL;
5366}
5367
5368
c32bde28 5369static PyObject *_wrap_Point2D_GetDistanceSquare(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5370 PyObject *resultobj;
5371 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5372 wxPoint2D *arg2 = 0 ;
5373 double result;
5374 wxPoint2D temp2 ;
5375 PyObject * obj0 = 0 ;
5376 PyObject * obj1 = 0 ;
5377 char *kwnames[] = {
5378 (char *) "self",(char *) "pt", NULL
5379 };
5380
5381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistanceSquare",kwnames,&obj0,&obj1)) goto fail;
5382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5384 {
5385 arg2 = &temp2;
5386 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5387 }
5388 {
5389 PyThreadState* __tstate = wxPyBeginAllowThreads();
5390 result = (double)((wxPoint2D const *)arg1)->GetDistanceSquare((wxPoint2D const &)*arg2);
5391
5392 wxPyEndAllowThreads(__tstate);
5393 if (PyErr_Occurred()) SWIG_fail;
5394 }
c32bde28 5395 resultobj = SWIG_From_double((double)result);
d55e5bfc
RD
5396 return resultobj;
5397 fail:
5398 return NULL;
5399}
5400
5401
c32bde28 5402static PyObject *_wrap_Point2D_GetDotProduct(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5403 PyObject *resultobj;
5404 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5405 wxPoint2D *arg2 = 0 ;
5406 double result;
5407 wxPoint2D temp2 ;
5408 PyObject * obj0 = 0 ;
5409 PyObject * obj1 = 0 ;
5410 char *kwnames[] = {
5411 (char *) "self",(char *) "vec", NULL
5412 };
5413
5414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDotProduct",kwnames,&obj0,&obj1)) goto fail;
5415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5417 {
5418 arg2 = &temp2;
5419 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5420 }
5421 {
5422 PyThreadState* __tstate = wxPyBeginAllowThreads();
5423 result = (double)((wxPoint2D const *)arg1)->GetDotProduct((wxPoint2D const &)*arg2);
5424
5425 wxPyEndAllowThreads(__tstate);
5426 if (PyErr_Occurred()) SWIG_fail;
5427 }
c32bde28 5428 resultobj = SWIG_From_double((double)result);
d55e5bfc
RD
5429 return resultobj;
5430 fail:
5431 return NULL;
5432}
5433
5434
c32bde28 5435static PyObject *_wrap_Point2D_GetCrossProduct(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5436 PyObject *resultobj;
5437 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5438 wxPoint2D *arg2 = 0 ;
5439 double result;
5440 wxPoint2D temp2 ;
5441 PyObject * obj0 = 0 ;
5442 PyObject * obj1 = 0 ;
5443 char *kwnames[] = {
5444 (char *) "self",(char *) "vec", NULL
5445 };
5446
5447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetCrossProduct",kwnames,&obj0,&obj1)) goto fail;
5448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5450 {
5451 arg2 = &temp2;
5452 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5453 }
5454 {
5455 PyThreadState* __tstate = wxPyBeginAllowThreads();
5456 result = (double)((wxPoint2D const *)arg1)->GetCrossProduct((wxPoint2D const &)*arg2);
5457
5458 wxPyEndAllowThreads(__tstate);
5459 if (PyErr_Occurred()) SWIG_fail;
5460 }
c32bde28 5461 resultobj = SWIG_From_double((double)result);
d55e5bfc
RD
5462 return resultobj;
5463 fail:
5464 return NULL;
5465}
5466
5467
c32bde28 5468static PyObject *_wrap_Point2D___neg__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5469 PyObject *resultobj;
5470 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5471 wxPoint2D result;
5472 PyObject * obj0 = 0 ;
5473 char *kwnames[] = {
5474 (char *) "self", NULL
5475 };
5476
5477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D___neg__",kwnames,&obj0)) goto fail;
5478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5480 {
5481 PyThreadState* __tstate = wxPyBeginAllowThreads();
5482 result = (arg1)->operator -();
5483
5484 wxPyEndAllowThreads(__tstate);
5485 if (PyErr_Occurred()) SWIG_fail;
5486 }
5487 {
5488 wxPoint2D * resultptr;
5489 resultptr = new wxPoint2D((wxPoint2D &) result);
5490 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint2D, 1);
5491 }
5492 return resultobj;
5493 fail:
5494 return NULL;
5495}
5496
5497
c32bde28 5498static PyObject *_wrap_Point2D___iadd__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5499 PyObject *resultobj;
5500 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5501 wxPoint2D *arg2 = 0 ;
5502 wxPoint2D *result;
5503 wxPoint2D temp2 ;
5504 PyObject * obj0 = 0 ;
5505 PyObject * obj1 = 0 ;
5506 char *kwnames[] = {
5507 (char *) "self",(char *) "pt", NULL
5508 };
5509
5510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___iadd__",kwnames,&obj0,&obj1)) goto fail;
5511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
c32bde28 5512 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
d55e5bfc
RD
5513 {
5514 arg2 = &temp2;
5515 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5516 }
5517 {
5518 PyThreadState* __tstate = wxPyBeginAllowThreads();
5519 {
5520 wxPoint2D &_result_ref = (arg1)->operator +=((wxPoint2D const &)*arg2);
5521 result = (wxPoint2D *) &_result_ref;
5522 }
5523
5524 wxPyEndAllowThreads(__tstate);
5525 if (PyErr_Occurred()) SWIG_fail;
5526 }
c32bde28 5527 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1);
d55e5bfc
RD
5528 return resultobj;
5529 fail:
5530 return NULL;
5531}
5532
5533
c32bde28 5534static PyObject *_wrap_Point2D___isub__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5535 PyObject *resultobj;
5536 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5537 wxPoint2D *arg2 = 0 ;
5538 wxPoint2D *result;
5539 wxPoint2D temp2 ;
5540 PyObject * obj0 = 0 ;
5541 PyObject * obj1 = 0 ;
5542 char *kwnames[] = {
5543 (char *) "self",(char *) "pt", NULL
5544 };
5545
5546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___isub__",kwnames,&obj0,&obj1)) goto fail;
5547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
c32bde28 5548 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
d55e5bfc
RD
5549 {
5550 arg2 = &temp2;
5551 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5552 }
5553 {
5554 PyThreadState* __tstate = wxPyBeginAllowThreads();
5555 {
5556 wxPoint2D &_result_ref = (arg1)->operator -=((wxPoint2D const &)*arg2);
5557 result = (wxPoint2D *) &_result_ref;
5558 }
5559
5560 wxPyEndAllowThreads(__tstate);
5561 if (PyErr_Occurred()) SWIG_fail;
5562 }
c32bde28 5563 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1);
d55e5bfc
RD
5564 return resultobj;
5565 fail:
5566 return NULL;
5567}
5568
5569
c32bde28 5570static PyObject *_wrap_Point2D___imul__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5571 PyObject *resultobj;
5572 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5573 wxPoint2D *arg2 = 0 ;
5574 wxPoint2D *result;
5575 wxPoint2D temp2 ;
5576 PyObject * obj0 = 0 ;
5577 PyObject * obj1 = 0 ;
5578 char *kwnames[] = {
5579 (char *) "self",(char *) "pt", NULL
5580 };
5581
5582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___imul__",kwnames,&obj0,&obj1)) goto fail;
5583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
c32bde28 5584 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
d55e5bfc
RD
5585 {
5586 arg2 = &temp2;
5587 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5588 }
5589 {
5590 PyThreadState* __tstate = wxPyBeginAllowThreads();
5591 {
5592 wxPoint2D &_result_ref = (arg1)->operator *=((wxPoint2D const &)*arg2);
5593 result = (wxPoint2D *) &_result_ref;
5594 }
5595
5596 wxPyEndAllowThreads(__tstate);
5597 if (PyErr_Occurred()) SWIG_fail;
5598 }
c32bde28 5599 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1);
d55e5bfc
RD
5600 return resultobj;
5601 fail:
5602 return NULL;
5603}
5604
5605
c32bde28 5606static PyObject *_wrap_Point2D___idiv__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5607 PyObject *resultobj;
5608 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5609 wxPoint2D *arg2 = 0 ;
5610 wxPoint2D *result;
5611 wxPoint2D temp2 ;
5612 PyObject * obj0 = 0 ;
5613 PyObject * obj1 = 0 ;
5614 char *kwnames[] = {
5615 (char *) "self",(char *) "pt", NULL
5616 };
5617
5618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___idiv__",kwnames,&obj0,&obj1)) goto fail;
5619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
c32bde28 5620 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
d55e5bfc
RD
5621 {
5622 arg2 = &temp2;
5623 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5624 }
5625 {
5626 PyThreadState* __tstate = wxPyBeginAllowThreads();
5627 {
5628 wxPoint2D &_result_ref = (arg1)->operator /=((wxPoint2D const &)*arg2);
5629 result = (wxPoint2D *) &_result_ref;
5630 }
5631
5632 wxPyEndAllowThreads(__tstate);
5633 if (PyErr_Occurred()) SWIG_fail;
5634 }
c32bde28 5635 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1);
d55e5bfc
RD
5636 return resultobj;
5637 fail:
5638 return NULL;
5639}
5640
5641
c32bde28 5642static PyObject *_wrap_Point2D___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5643 PyObject *resultobj;
5644 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5645 wxPoint2D *arg2 = 0 ;
5646 bool result;
5647 wxPoint2D temp2 ;
5648 PyObject * obj0 = 0 ;
5649 PyObject * obj1 = 0 ;
5650 char *kwnames[] = {
5651 (char *) "self",(char *) "pt", NULL
5652 };
5653
5654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___eq__",kwnames,&obj0,&obj1)) goto fail;
5655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5657 {
5658 arg2 = &temp2;
5659 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5660 }
5661 {
5662 PyThreadState* __tstate = wxPyBeginAllowThreads();
5663 result = (bool)((wxPoint2D const *)arg1)->operator ==((wxPoint2D const &)*arg2);
5664
5665 wxPyEndAllowThreads(__tstate);
5666 if (PyErr_Occurred()) SWIG_fail;
5667 }
5668 {
5669 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5670 }
5671 return resultobj;
5672 fail:
5673 return NULL;
5674}
5675
5676
c32bde28 5677static PyObject *_wrap_Point2D___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5678 PyObject *resultobj;
5679 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5680 wxPoint2D *arg2 = 0 ;
5681 bool result;
5682 wxPoint2D temp2 ;
5683 PyObject * obj0 = 0 ;
5684 PyObject * obj1 = 0 ;
5685 char *kwnames[] = {
5686 (char *) "self",(char *) "pt", NULL
5687 };
5688
5689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___ne__",kwnames,&obj0,&obj1)) goto fail;
5690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5692 {
5693 arg2 = &temp2;
5694 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5695 }
5696 {
5697 PyThreadState* __tstate = wxPyBeginAllowThreads();
5698 result = (bool)((wxPoint2D const *)arg1)->operator !=((wxPoint2D const &)*arg2);
5699
5700 wxPyEndAllowThreads(__tstate);
5701 if (PyErr_Occurred()) SWIG_fail;
5702 }
5703 {
5704 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5705 }
5706 return resultobj;
5707 fail:
5708 return NULL;
5709}
5710
5711
c32bde28 5712static PyObject *_wrap_Point2D_x_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5713 PyObject *resultobj;
5714 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5715 double arg2 ;
5716 PyObject * obj0 = 0 ;
5717 PyObject * obj1 = 0 ;
5718 char *kwnames[] = {
5719 (char *) "self",(char *) "m_x", NULL
5720 };
5721
5722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_x_set",kwnames,&obj0,&obj1)) goto fail;
5723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 5725 arg2 = (double)SWIG_As_double(obj1);
d55e5bfc
RD
5726 if (PyErr_Occurred()) SWIG_fail;
5727 if (arg1) (arg1)->m_x = arg2;
5728
5729 Py_INCREF(Py_None); resultobj = Py_None;
5730 return resultobj;
5731 fail:
5732 return NULL;
5733}
5734
5735
c32bde28 5736static PyObject *_wrap_Point2D_x_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5737 PyObject *resultobj;
5738 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5739 double result;
5740 PyObject * obj0 = 0 ;
5741 char *kwnames[] = {
5742 (char *) "self", NULL
5743 };
5744
5745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_x_get",kwnames,&obj0)) goto fail;
5746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5748 result = (double) ((arg1)->m_x);
5749
c32bde28 5750 resultobj = SWIG_From_double((double)result);
d55e5bfc
RD
5751 return resultobj;
5752 fail:
5753 return NULL;
5754}
5755
5756
c32bde28 5757static PyObject *_wrap_Point2D_y_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5758 PyObject *resultobj;
5759 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5760 double arg2 ;
5761 PyObject * obj0 = 0 ;
5762 PyObject * obj1 = 0 ;
5763 char *kwnames[] = {
5764 (char *) "self",(char *) "m_y", NULL
5765 };
5766
5767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_y_set",kwnames,&obj0,&obj1)) goto fail;
5768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 5770 arg2 = (double)SWIG_As_double(obj1);
d55e5bfc
RD
5771 if (PyErr_Occurred()) SWIG_fail;
5772 if (arg1) (arg1)->m_y = arg2;
5773
5774 Py_INCREF(Py_None); resultobj = Py_None;
5775 return resultobj;
5776 fail:
5777 return NULL;
5778}
5779
5780
c32bde28 5781static PyObject *_wrap_Point2D_y_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5782 PyObject *resultobj;
5783 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5784 double result;
5785 PyObject * obj0 = 0 ;
5786 char *kwnames[] = {
5787 (char *) "self", NULL
5788 };
5789
5790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_y_get",kwnames,&obj0)) goto fail;
5791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5793 result = (double) ((arg1)->m_y);
5794
c32bde28 5795 resultobj = SWIG_From_double((double)result);
d55e5bfc
RD
5796 return resultobj;
5797 fail:
5798 return NULL;
5799}
5800
5801
c32bde28 5802static PyObject *_wrap_Point2D_Set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5803 PyObject *resultobj;
5804 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5805 double arg2 = (double) 0 ;
5806 double arg3 = (double) 0 ;
5807 PyObject * obj0 = 0 ;
5808 PyObject * obj1 = 0 ;
5809 PyObject * obj2 = 0 ;
5810 char *kwnames[] = {
5811 (char *) "self",(char *) "x",(char *) "y", NULL
5812 };
5813
5814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Point2D_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
5815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5817 if (obj1) {
c32bde28 5818 arg2 = (double)SWIG_As_double(obj1);
d55e5bfc
RD
5819 if (PyErr_Occurred()) SWIG_fail;
5820 }
5821 if (obj2) {
c32bde28 5822 arg3 = (double)SWIG_As_double(obj2);
d55e5bfc
RD
5823 if (PyErr_Occurred()) SWIG_fail;
5824 }
5825 {
5826 PyThreadState* __tstate = wxPyBeginAllowThreads();
5827 wxPoint2D_Set(arg1,arg2,arg3);
5828
5829 wxPyEndAllowThreads(__tstate);
5830 if (PyErr_Occurred()) SWIG_fail;
5831 }
5832 Py_INCREF(Py_None); resultobj = Py_None;
5833 return resultobj;
5834 fail:
5835 return NULL;
5836}
5837
5838
c32bde28 5839static PyObject *_wrap_Point2D_Get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5840 PyObject *resultobj;
5841 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5842 PyObject *result;
5843 PyObject * obj0 = 0 ;
5844 char *kwnames[] = {
5845 (char *) "self", NULL
5846 };
5847
5848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_Get",kwnames,&obj0)) goto fail;
5849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5851 {
5852 PyThreadState* __tstate = wxPyBeginAllowThreads();
5853 result = (PyObject *)wxPoint2D_Get(arg1);
5854
5855 wxPyEndAllowThreads(__tstate);
5856 if (PyErr_Occurred()) SWIG_fail;
5857 }
5858 resultobj = result;
5859 return resultobj;
5860 fail:
5861 return NULL;
5862}
5863
5864
c32bde28 5865static PyObject * Point2D_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
5866 PyObject *obj;
5867 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5868 SWIG_TypeClientData(SWIGTYPE_p_wxPoint2D, obj);
5869 Py_INCREF(obj);
5870 return Py_BuildValue((char *)"");
5871}
c32bde28 5872static int _wrap_DefaultPosition_set(PyObject *) {
d55e5bfc
RD
5873 PyErr_SetString(PyExc_TypeError,"Variable DefaultPosition is read-only.");
5874 return 1;
5875}
5876
5877
5878static PyObject *_wrap_DefaultPosition_get() {
5879 PyObject *pyobj;
5880
5881 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultPosition), SWIGTYPE_p_wxPoint, 0);
5882 return pyobj;
5883}
5884
5885
c32bde28 5886static int _wrap_DefaultSize_set(PyObject *) {
d55e5bfc
RD
5887 PyErr_SetString(PyExc_TypeError,"Variable DefaultSize is read-only.");
5888 return 1;
5889}
5890
5891
5892static PyObject *_wrap_DefaultSize_get() {
5893 PyObject *pyobj;
5894
5895 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSize), SWIGTYPE_p_wxSize, 0);
5896 return pyobj;
5897}
5898
5899
c32bde28 5900static PyObject *_wrap_new_InputStream(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5901 PyObject *resultobj;
5902 PyObject *arg1 = (PyObject *) 0 ;
5903 wxPyInputStream *result;
5904 PyObject * obj0 = 0 ;
5905 char *kwnames[] = {
5906 (char *) "p", NULL
5907 };
5908
5909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_InputStream",kwnames,&obj0)) goto fail;
5910 arg1 = obj0;
5911 {
5912 PyThreadState* __tstate = wxPyBeginAllowThreads();
5913 result = (wxPyInputStream *)new_wxPyInputStream(arg1);
5914
5915 wxPyEndAllowThreads(__tstate);
5916 if (PyErr_Occurred()) SWIG_fail;
5917 }
5918 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyInputStream, 1);
5919 return resultobj;
5920 fail:
5921 return NULL;
5922}
5923
5924
c32bde28 5925static PyObject *_wrap_InputStream_close(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5926 PyObject *resultobj;
5927 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5928 PyObject * obj0 = 0 ;
5929 char *kwnames[] = {
5930 (char *) "self", NULL
5931 };
5932
5933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_close",kwnames,&obj0)) goto fail;
5934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5936 {
5937 PyThreadState* __tstate = wxPyBeginAllowThreads();
5938 (arg1)->close();
5939
5940 wxPyEndAllowThreads(__tstate);
5941 if (PyErr_Occurred()) SWIG_fail;
5942 }
5943 Py_INCREF(Py_None); resultobj = Py_None;
5944 return resultobj;
5945 fail:
5946 return NULL;
5947}
5948
5949
c32bde28 5950static PyObject *_wrap_InputStream_flush(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5951 PyObject *resultobj;
5952 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5953 PyObject * obj0 = 0 ;
5954 char *kwnames[] = {
5955 (char *) "self", NULL
5956 };
5957
5958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_flush",kwnames,&obj0)) goto fail;
5959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5961 {
5962 PyThreadState* __tstate = wxPyBeginAllowThreads();
5963 (arg1)->flush();
5964
5965 wxPyEndAllowThreads(__tstate);
5966 if (PyErr_Occurred()) SWIG_fail;
5967 }
5968 Py_INCREF(Py_None); resultobj = Py_None;
5969 return resultobj;
5970 fail:
5971 return NULL;
5972}
5973
5974
c32bde28 5975static PyObject *_wrap_InputStream_eof(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
5976 PyObject *resultobj;
5977 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5978 bool result;
5979 PyObject * obj0 = 0 ;
5980 char *kwnames[] = {
5981 (char *) "self", NULL
5982 };
5983
5984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_eof",kwnames,&obj0)) goto fail;
5985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5987 {
5988 PyThreadState* __tstate = wxPyBeginAllowThreads();
5989 result = (bool)(arg1)->eof();
5990
5991 wxPyEndAllowThreads(__tstate);
5992 if (PyErr_Occurred()) SWIG_fail;
5993 }
5994 {
5995 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5996 }
5997 return resultobj;
5998 fail:
5999 return NULL;
6000}
6001
6002
c32bde28 6003static PyObject *_wrap_InputStream_read(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6004 PyObject *resultobj;
6005 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6006 int arg2 = (int) -1 ;
6007 PyObject *result;
6008 PyObject * obj0 = 0 ;
6009 PyObject * obj1 = 0 ;
6010 char *kwnames[] = {
6011 (char *) "self",(char *) "size", NULL
6012 };
6013
6014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_read",kwnames,&obj0,&obj1)) goto fail;
6015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6017 if (obj1) {
c32bde28 6018 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
6019 if (PyErr_Occurred()) SWIG_fail;
6020 }
6021 {
6022 PyThreadState* __tstate = wxPyBeginAllowThreads();
6023 result = (PyObject *)(arg1)->read(arg2);
6024
6025 wxPyEndAllowThreads(__tstate);
6026 if (PyErr_Occurred()) SWIG_fail;
6027 }
6028 resultobj = result;
6029 return resultobj;
6030 fail:
6031 return NULL;
6032}
6033
6034
c32bde28 6035static PyObject *_wrap_InputStream_readline(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6036 PyObject *resultobj;
6037 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6038 int arg2 = (int) -1 ;
6039 PyObject *result;
6040 PyObject * obj0 = 0 ;
6041 PyObject * obj1 = 0 ;
6042 char *kwnames[] = {
6043 (char *) "self",(char *) "size", NULL
6044 };
6045
6046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readline",kwnames,&obj0,&obj1)) goto fail;
6047 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6049 if (obj1) {
c32bde28 6050 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
6051 if (PyErr_Occurred()) SWIG_fail;
6052 }
6053 {
6054 PyThreadState* __tstate = wxPyBeginAllowThreads();
6055 result = (PyObject *)(arg1)->readline(arg2);
6056
6057 wxPyEndAllowThreads(__tstate);
6058 if (PyErr_Occurred()) SWIG_fail;
6059 }
6060 resultobj = result;
6061 return resultobj;
6062 fail:
6063 return NULL;
6064}
6065
6066
c32bde28 6067static PyObject *_wrap_InputStream_readlines(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6068 PyObject *resultobj;
6069 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6070 int arg2 = (int) -1 ;
6071 PyObject *result;
6072 PyObject * obj0 = 0 ;
6073 PyObject * obj1 = 0 ;
6074 char *kwnames[] = {
6075 (char *) "self",(char *) "sizehint", NULL
6076 };
6077
6078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readlines",kwnames,&obj0,&obj1)) goto fail;
6079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6081 if (obj1) {
c32bde28 6082 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
6083 if (PyErr_Occurred()) SWIG_fail;
6084 }
6085 {
6086 PyThreadState* __tstate = wxPyBeginAllowThreads();
6087 result = (PyObject *)(arg1)->readlines(arg2);
6088
6089 wxPyEndAllowThreads(__tstate);
6090 if (PyErr_Occurred()) SWIG_fail;
6091 }
6092 resultobj = result;
6093 return resultobj;
6094 fail:
6095 return NULL;
6096}
6097
6098
c32bde28 6099static PyObject *_wrap_InputStream_seek(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6100 PyObject *resultobj;
6101 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6102 int arg2 ;
6103 int arg3 = (int) 0 ;
6104 PyObject * obj0 = 0 ;
6105 PyObject * obj1 = 0 ;
6106 PyObject * obj2 = 0 ;
6107 char *kwnames[] = {
6108 (char *) "self",(char *) "offset",(char *) "whence", NULL
6109 };
6110
6111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_seek",kwnames,&obj0,&obj1,&obj2)) goto fail;
6112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 6114 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
6115 if (PyErr_Occurred()) SWIG_fail;
6116 if (obj2) {
c32bde28 6117 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
6118 if (PyErr_Occurred()) SWIG_fail;
6119 }
6120 {
6121 PyThreadState* __tstate = wxPyBeginAllowThreads();
6122 (arg1)->seek(arg2,arg3);
6123
6124 wxPyEndAllowThreads(__tstate);
6125 if (PyErr_Occurred()) SWIG_fail;
6126 }
6127 Py_INCREF(Py_None); resultobj = Py_None;
6128 return resultobj;
6129 fail:
6130 return NULL;
6131}
6132
6133
c32bde28 6134static PyObject *_wrap_InputStream_tell(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6135 PyObject *resultobj;
6136 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6137 int result;
6138 PyObject * obj0 = 0 ;
6139 char *kwnames[] = {
6140 (char *) "self", NULL
6141 };
6142
6143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_tell",kwnames,&obj0)) goto fail;
6144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6146 {
6147 PyThreadState* __tstate = wxPyBeginAllowThreads();
6148 result = (int)(arg1)->tell();
6149
6150 wxPyEndAllowThreads(__tstate);
6151 if (PyErr_Occurred()) SWIG_fail;
6152 }
c32bde28 6153 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
6154 return resultobj;
6155 fail:
6156 return NULL;
6157}
6158
6159
c32bde28 6160static PyObject *_wrap_InputStream_Peek(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6161 PyObject *resultobj;
6162 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6163 char result;
6164 PyObject * obj0 = 0 ;
6165 char *kwnames[] = {
6166 (char *) "self", NULL
6167 };
6168
6169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Peek",kwnames,&obj0)) goto fail;
6170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6172 {
6173 PyThreadState* __tstate = wxPyBeginAllowThreads();
6174 result = (char)(arg1)->Peek();
6175
6176 wxPyEndAllowThreads(__tstate);
6177 if (PyErr_Occurred()) SWIG_fail;
6178 }
c32bde28 6179 resultobj = SWIG_From_char((char)result);
d55e5bfc
RD
6180 return resultobj;
6181 fail:
6182 return NULL;
6183}
6184
6185
c32bde28 6186static PyObject *_wrap_InputStream_GetC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6187 PyObject *resultobj;
6188 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6189 char result;
6190 PyObject * obj0 = 0 ;
6191 char *kwnames[] = {
6192 (char *) "self", NULL
6193 };
6194
6195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_GetC",kwnames,&obj0)) goto fail;
6196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6198 {
6199 PyThreadState* __tstate = wxPyBeginAllowThreads();
6200 result = (char)(arg1)->GetC();
6201
6202 wxPyEndAllowThreads(__tstate);
6203 if (PyErr_Occurred()) SWIG_fail;
6204 }
c32bde28 6205 resultobj = SWIG_From_char((char)result);
d55e5bfc
RD
6206 return resultobj;
6207 fail:
6208 return NULL;
6209}
6210
6211
c32bde28 6212static PyObject *_wrap_InputStream_LastRead(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6213 PyObject *resultobj;
6214 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6215 size_t result;
6216 PyObject * obj0 = 0 ;
6217 char *kwnames[] = {
6218 (char *) "self", NULL
6219 };
6220
6221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_LastRead",kwnames,&obj0)) goto fail;
6222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6224 {
6225 PyThreadState* __tstate = wxPyBeginAllowThreads();
6226 result = (size_t)(arg1)->LastRead();
6227
6228 wxPyEndAllowThreads(__tstate);
6229 if (PyErr_Occurred()) SWIG_fail;
6230 }
c32bde28 6231 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
d55e5bfc
RD
6232 return resultobj;
6233 fail:
6234 return NULL;
6235}
6236
6237
c32bde28 6238static PyObject *_wrap_InputStream_CanRead(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6239 PyObject *resultobj;
6240 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6241 bool result;
6242 PyObject * obj0 = 0 ;
6243 char *kwnames[] = {
6244 (char *) "self", NULL
6245 };
6246
6247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_CanRead",kwnames,&obj0)) goto fail;
6248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6250 {
6251 PyThreadState* __tstate = wxPyBeginAllowThreads();
6252 result = (bool)(arg1)->CanRead();
6253
6254 wxPyEndAllowThreads(__tstate);
6255 if (PyErr_Occurred()) SWIG_fail;
6256 }
6257 {
6258 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6259 }
6260 return resultobj;
6261 fail:
6262 return NULL;
6263}
6264
6265
c32bde28 6266static PyObject *_wrap_InputStream_Eof(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6267 PyObject *resultobj;
6268 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6269 bool result;
6270 PyObject * obj0 = 0 ;
6271 char *kwnames[] = {
6272 (char *) "self", NULL
6273 };
6274
6275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Eof",kwnames,&obj0)) goto fail;
6276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6278 {
6279 PyThreadState* __tstate = wxPyBeginAllowThreads();
6280 result = (bool)(arg1)->Eof();
6281
6282 wxPyEndAllowThreads(__tstate);
6283 if (PyErr_Occurred()) SWIG_fail;
6284 }
6285 {
6286 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6287 }
6288 return resultobj;
6289 fail:
6290 return NULL;
6291}
6292
6293
c32bde28 6294static PyObject *_wrap_InputStream_Ungetch(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6295 PyObject *resultobj;
6296 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6297 char arg2 ;
6298 bool result;
6299 PyObject * obj0 = 0 ;
6300 PyObject * obj1 = 0 ;
6301 char *kwnames[] = {
6302 (char *) "self",(char *) "c", NULL
6303 };
6304
6305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InputStream_Ungetch",kwnames,&obj0,&obj1)) goto fail;
6306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 6308 arg2 = (char)SWIG_As_char(obj1);
d55e5bfc
RD
6309 if (PyErr_Occurred()) SWIG_fail;
6310 {
6311 PyThreadState* __tstate = wxPyBeginAllowThreads();
6312 result = (bool)(arg1)->Ungetch(arg2);
6313
6314 wxPyEndAllowThreads(__tstate);
6315 if (PyErr_Occurred()) SWIG_fail;
6316 }
6317 {
6318 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6319 }
6320 return resultobj;
6321 fail:
6322 return NULL;
6323}
6324
6325
c32bde28 6326static PyObject *_wrap_InputStream_SeekI(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6327 PyObject *resultobj;
6328 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6329 long arg2 ;
6330 int arg3 = (int) wxFromStart ;
6331 long result;
6332 PyObject * obj0 = 0 ;
6333 PyObject * obj1 = 0 ;
6334 PyObject * obj2 = 0 ;
6335 char *kwnames[] = {
6336 (char *) "self",(char *) "pos",(char *) "mode", NULL
6337 };
6338
6339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_SeekI",kwnames,&obj0,&obj1,&obj2)) goto fail;
6340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 6342 arg2 = (long)SWIG_As_long(obj1);
d55e5bfc
RD
6343 if (PyErr_Occurred()) SWIG_fail;
6344 if (obj2) {
c32bde28 6345 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
6346 if (PyErr_Occurred()) SWIG_fail;
6347 }
6348 {
6349 PyThreadState* __tstate = wxPyBeginAllowThreads();
6350 result = (long)(arg1)->SeekI(arg2,(wxSeekMode )arg3);
6351
6352 wxPyEndAllowThreads(__tstate);
6353 if (PyErr_Occurred()) SWIG_fail;
6354 }
c32bde28 6355 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
6356 return resultobj;
6357 fail:
6358 return NULL;
6359}
6360
6361
c32bde28 6362static PyObject *_wrap_InputStream_TellI(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6363 PyObject *resultobj;
6364 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6365 long result;
6366 PyObject * obj0 = 0 ;
6367 char *kwnames[] = {
6368 (char *) "self", NULL
6369 };
6370
6371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_TellI",kwnames,&obj0)) goto fail;
6372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6374 {
6375 PyThreadState* __tstate = wxPyBeginAllowThreads();
6376 result = (long)(arg1)->TellI();
6377
6378 wxPyEndAllowThreads(__tstate);
6379 if (PyErr_Occurred()) SWIG_fail;
6380 }
c32bde28 6381 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
6382 return resultobj;
6383 fail:
6384 return NULL;
6385}
6386
6387
c32bde28 6388static PyObject * InputStream_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
6389 PyObject *obj;
6390 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6391 SWIG_TypeClientData(SWIGTYPE_p_wxPyInputStream, obj);
6392 Py_INCREF(obj);
6393 return Py_BuildValue((char *)"");
6394}
c32bde28 6395static PyObject *_wrap_OutputStream_write(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6396 PyObject *resultobj;
6397 wxOutputStream *arg1 = (wxOutputStream *) 0 ;
6398 PyObject *arg2 = (PyObject *) 0 ;
6399 PyObject * obj0 = 0 ;
6400 PyObject * obj1 = 0 ;
6401 char *kwnames[] = {
6402 (char *) "self",(char *) "obj", NULL
6403 };
6404
6405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:OutputStream_write",kwnames,&obj0,&obj1)) goto fail;
6406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxOutputStream,
6407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6408 arg2 = obj1;
6409 {
6410 PyThreadState* __tstate = wxPyBeginAllowThreads();
6411 wxOutputStream_write(arg1,arg2);
6412
6413 wxPyEndAllowThreads(__tstate);
6414 if (PyErr_Occurred()) SWIG_fail;
6415 }
6416 Py_INCREF(Py_None); resultobj = Py_None;
6417 return resultobj;
6418 fail:
6419 return NULL;
6420}
6421
6422
c32bde28 6423static PyObject * OutputStream_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
6424 PyObject *obj;
6425 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6426 SWIG_TypeClientData(SWIGTYPE_p_wxOutputStream, obj);
6427 Py_INCREF(obj);
6428 return Py_BuildValue((char *)"");
6429}
c32bde28 6430static PyObject *_wrap_new_FSFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6431 PyObject *resultobj;
6432 wxInputStream *arg1 = (wxInputStream *) 0 ;
6433 wxString *arg2 = 0 ;
6434 wxString *arg3 = 0 ;
6435 wxString *arg4 = 0 ;
6436 wxDateTime arg5 ;
6437 wxFSFile *result;
6438 wxPyInputStream *temp1 ;
6439 bool created1 ;
6440 bool temp2 = False ;
6441 bool temp3 = False ;
6442 bool temp4 = False ;
6443 wxDateTime *argp5 ;
6444 PyObject * obj0 = 0 ;
6445 PyObject * obj1 = 0 ;
6446 PyObject * obj2 = 0 ;
6447 PyObject * obj3 = 0 ;
6448 PyObject * obj4 = 0 ;
6449 char *kwnames[] = {
6450 (char *) "stream",(char *) "loc",(char *) "mimetype",(char *) "anchor",(char *) "modif", NULL
6451 };
6452
6453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
6454 {
6455 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
6456 arg1 = temp1->m_wxis;
6457 created1 = False;
6458 } else {
6459 PyErr_Clear(); // clear the failure of the wxPyConvert above
6460 arg1 = wxPyCBInputStream_create(obj0, False);
6461 if (arg1 == NULL) {
6462 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
6463 SWIG_fail;
6464 }
6465 created1 = True;
6466 }
6467 }
6468 {
6469 arg2 = wxString_in_helper(obj1);
6470 if (arg2 == NULL) SWIG_fail;
6471 temp2 = True;
6472 }
6473 {
6474 arg3 = wxString_in_helper(obj2);
6475 if (arg3 == NULL) SWIG_fail;
6476 temp3 = True;
6477 }
6478 {
6479 arg4 = wxString_in_helper(obj3);
6480 if (arg4 == NULL) SWIG_fail;
6481 temp4 = True;
6482 }
6483 if ((SWIG_ConvertPtr(obj4,(void **)(&argp5),SWIGTYPE_p_wxDateTime,
6484 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
6485 arg5 = *argp5;
6486 {
6487 PyThreadState* __tstate = wxPyBeginAllowThreads();
6488 result = (wxFSFile *)new wxFSFile(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
6489
6490 wxPyEndAllowThreads(__tstate);
6491 if (PyErr_Occurred()) SWIG_fail;
6492 }
6493 {
412d302d 6494 resultobj = wxPyMake_wxObject(result, 1);
d55e5bfc
RD
6495 }
6496 {
6497 if (created1)
6498 delete arg1;
6499 }
6500 {
6501 if (temp2)
6502 delete arg2;
6503 }
6504 {
6505 if (temp3)
6506 delete arg3;
6507 }
6508 {
6509 if (temp4)
6510 delete arg4;
6511 }
6512 return resultobj;
6513 fail:
6514 {
6515 if (created1)
6516 delete arg1;
6517 }
6518 {
6519 if (temp2)
6520 delete arg2;
6521 }
6522 {
6523 if (temp3)
6524 delete arg3;
6525 }
6526 {
6527 if (temp4)
6528 delete arg4;
6529 }
6530 return NULL;
6531}
6532
6533
c32bde28 6534static PyObject *_wrap_delete_FSFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6535 PyObject *resultobj;
6536 wxFSFile *arg1 = (wxFSFile *) 0 ;
6537 PyObject * obj0 = 0 ;
6538 char *kwnames[] = {
6539 (char *) "self", NULL
6540 };
6541
6542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FSFile",kwnames,&obj0)) goto fail;
6543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile,
6544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6545 {
6546 PyThreadState* __tstate = wxPyBeginAllowThreads();
6547 delete arg1;
6548
6549 wxPyEndAllowThreads(__tstate);
6550 if (PyErr_Occurred()) SWIG_fail;
6551 }
6552 Py_INCREF(Py_None); resultobj = Py_None;
6553 return resultobj;
6554 fail:
6555 return NULL;
6556}
6557
6558
c32bde28 6559static PyObject *_wrap_FSFile_GetStream(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6560 PyObject *resultobj;
6561 wxFSFile *arg1 = (wxFSFile *) 0 ;
6562 wxInputStream *result;
6563 PyObject * obj0 = 0 ;
6564 char *kwnames[] = {
6565 (char *) "self", NULL
6566 };
6567
6568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetStream",kwnames,&obj0)) goto fail;
6569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile,
6570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6571 {
6572 PyThreadState* __tstate = wxPyBeginAllowThreads();
6573 result = (wxInputStream *)(arg1)->GetStream();
6574
6575 wxPyEndAllowThreads(__tstate);
6576 if (PyErr_Occurred()) SWIG_fail;
6577 }
6578 {
6579 wxPyInputStream * _ptr = NULL;
6580
6581 if (result) {
6582 _ptr = new wxPyInputStream(result);
6583 }
6584 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
6585 }
6586 return resultobj;
6587 fail:
6588 return NULL;
6589}
6590
6591
c32bde28 6592static PyObject *_wrap_FSFile_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6593 PyObject *resultobj;
6594 wxFSFile *arg1 = (wxFSFile *) 0 ;
6595 wxString *result;
6596 PyObject * obj0 = 0 ;
6597 char *kwnames[] = {
6598 (char *) "self", NULL
6599 };
6600
6601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetMimeType",kwnames,&obj0)) goto fail;
6602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile,
6603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6604 {
6605 PyThreadState* __tstate = wxPyBeginAllowThreads();
6606 {
6607 wxString const &_result_ref = (arg1)->GetMimeType();
6608 result = (wxString *) &_result_ref;
6609 }
6610
6611 wxPyEndAllowThreads(__tstate);
6612 if (PyErr_Occurred()) SWIG_fail;
6613 }
6614 {
6615#if wxUSE_UNICODE
6616 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6617#else
6618 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6619#endif
6620 }
6621 return resultobj;
6622 fail:
6623 return NULL;
6624}
6625
6626
c32bde28 6627static PyObject *_wrap_FSFile_GetLocation(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6628 PyObject *resultobj;
6629 wxFSFile *arg1 = (wxFSFile *) 0 ;
6630 wxString *result;
6631 PyObject * obj0 = 0 ;
6632 char *kwnames[] = {
6633 (char *) "self", NULL
6634 };
6635
6636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetLocation",kwnames,&obj0)) goto fail;
6637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile,
6638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6639 {
6640 PyThreadState* __tstate = wxPyBeginAllowThreads();
6641 {
6642 wxString const &_result_ref = (arg1)->GetLocation();
6643 result = (wxString *) &_result_ref;
6644 }
6645
6646 wxPyEndAllowThreads(__tstate);
6647 if (PyErr_Occurred()) SWIG_fail;
6648 }
6649 {
6650#if wxUSE_UNICODE
6651 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6652#else
6653 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6654#endif
6655 }
6656 return resultobj;
6657 fail:
6658 return NULL;
6659}
6660
6661
c32bde28 6662static PyObject *_wrap_FSFile_GetAnchor(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6663 PyObject *resultobj;
6664 wxFSFile *arg1 = (wxFSFile *) 0 ;
6665 wxString *result;
6666 PyObject * obj0 = 0 ;
6667 char *kwnames[] = {
6668 (char *) "self", NULL
6669 };
6670
6671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetAnchor",kwnames,&obj0)) goto fail;
6672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile,
6673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6674 {
6675 PyThreadState* __tstate = wxPyBeginAllowThreads();
6676 {
6677 wxString const &_result_ref = (arg1)->GetAnchor();
6678 result = (wxString *) &_result_ref;
6679 }
6680
6681 wxPyEndAllowThreads(__tstate);
6682 if (PyErr_Occurred()) SWIG_fail;
6683 }
6684 {
6685#if wxUSE_UNICODE
6686 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6687#else
6688 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6689#endif
6690 }
6691 return resultobj;
6692 fail:
6693 return NULL;
6694}
6695
6696
c32bde28 6697static PyObject *_wrap_FSFile_GetModificationTime(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6698 PyObject *resultobj;
6699 wxFSFile *arg1 = (wxFSFile *) 0 ;
6700 wxDateTime result;
6701 PyObject * obj0 = 0 ;
6702 char *kwnames[] = {
6703 (char *) "self", NULL
6704 };
6705
6706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetModificationTime",kwnames,&obj0)) goto fail;
6707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile,
6708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6709 {
6710 PyThreadState* __tstate = wxPyBeginAllowThreads();
6711 result = (arg1)->GetModificationTime();
6712
6713 wxPyEndAllowThreads(__tstate);
6714 if (PyErr_Occurred()) SWIG_fail;
6715 }
6716 {
6717 wxDateTime * resultptr;
6718 resultptr = new wxDateTime((wxDateTime &) result);
6719 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
6720 }
6721 return resultobj;
6722 fail:
6723 return NULL;
6724}
6725
6726
c32bde28 6727static PyObject * FSFile_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
6728 PyObject *obj;
6729 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6730 SWIG_TypeClientData(SWIGTYPE_p_wxFSFile, obj);
6731 Py_INCREF(obj);
6732 return Py_BuildValue((char *)"");
6733}
c32bde28 6734static PyObject * CPPFileSystemHandler_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
6735 PyObject *obj;
6736 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6737 SWIG_TypeClientData(SWIGTYPE_p_wxFileSystemHandler, obj);
6738 Py_INCREF(obj);
6739 return Py_BuildValue((char *)"");
6740}
c32bde28 6741static PyObject *_wrap_new_FileSystemHandler(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6742 PyObject *resultobj;
6743 wxPyFileSystemHandler *result;
6744 char *kwnames[] = {
6745 NULL
6746 };
6747
6748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystemHandler",kwnames)) goto fail;
6749 {
6750 PyThreadState* __tstate = wxPyBeginAllowThreads();
6751 result = (wxPyFileSystemHandler *)new wxPyFileSystemHandler();
6752
6753 wxPyEndAllowThreads(__tstate);
6754 if (PyErr_Occurred()) SWIG_fail;
6755 }
6756 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileSystemHandler, 1);
6757 return resultobj;
6758 fail:
6759 return NULL;
6760}
6761
6762
c32bde28 6763static PyObject *_wrap_FileSystemHandler__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6764 PyObject *resultobj;
6765 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6766 PyObject *arg2 = (PyObject *) 0 ;
6767 PyObject *arg3 = (PyObject *) 0 ;
6768 PyObject * obj0 = 0 ;
6769 PyObject * obj1 = 0 ;
6770 PyObject * obj2 = 0 ;
6771 char *kwnames[] = {
6772 (char *) "self",(char *) "self",(char *) "_class", NULL
6773 };
6774
6775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
6776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6778 arg2 = obj1;
6779 arg3 = obj2;
6780 {
6781 PyThreadState* __tstate = wxPyBeginAllowThreads();
6782 (arg1)->_setCallbackInfo(arg2,arg3);
6783
6784 wxPyEndAllowThreads(__tstate);
6785 if (PyErr_Occurred()) SWIG_fail;
6786 }
6787 Py_INCREF(Py_None); resultobj = Py_None;
6788 return resultobj;
6789 fail:
6790 return NULL;
6791}
6792
6793
c32bde28 6794static PyObject *_wrap_FileSystemHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6795 PyObject *resultobj;
6796 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6797 wxString *arg2 = 0 ;
6798 bool result;
6799 bool temp2 = False ;
6800 PyObject * obj0 = 0 ;
6801 PyObject * obj1 = 0 ;
6802 char *kwnames[] = {
6803 (char *) "self",(char *) "location", NULL
6804 };
6805
6806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail;
6807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6809 {
6810 arg2 = wxString_in_helper(obj1);
6811 if (arg2 == NULL) SWIG_fail;
6812 temp2 = True;
6813 }
6814 {
6815 PyThreadState* __tstate = wxPyBeginAllowThreads();
6816 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
6817
6818 wxPyEndAllowThreads(__tstate);
6819 if (PyErr_Occurred()) SWIG_fail;
6820 }
6821 {
6822 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6823 }
6824 {
6825 if (temp2)
6826 delete arg2;
6827 }
6828 return resultobj;
6829 fail:
6830 {
6831 if (temp2)
6832 delete arg2;
6833 }
6834 return NULL;
6835}
6836
6837
c32bde28 6838static PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6839 PyObject *resultobj;
6840 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6841 wxFileSystem *arg2 = 0 ;
6842 wxString *arg3 = 0 ;
6843 wxFSFile *result;
6844 bool temp3 = False ;
6845 PyObject * obj0 = 0 ;
6846 PyObject * obj1 = 0 ;
6847 PyObject * obj2 = 0 ;
6848 char *kwnames[] = {
6849 (char *) "self",(char *) "fs",(char *) "location", NULL
6850 };
6851
6852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
6853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6855 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem,
6856 SWIG_POINTER_EXCEPTION | 0)) == -1)
6857 SWIG_fail;
6858 if (arg2 == NULL) {
6859 PyErr_SetString(PyExc_TypeError,"null reference");
6860 SWIG_fail;
6861 }
6862 {
6863 arg3 = wxString_in_helper(obj2);
6864 if (arg3 == NULL) SWIG_fail;
6865 temp3 = True;
6866 }
6867 {
6868 PyThreadState* __tstate = wxPyBeginAllowThreads();
6869 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
6870
6871 wxPyEndAllowThreads(__tstate);
6872 if (PyErr_Occurred()) SWIG_fail;
6873 }
6874 {
4cf4100f 6875 resultobj = wxPyMake_wxObject(result, 1);
d55e5bfc
RD
6876 }
6877 {
6878 if (temp3)
6879 delete arg3;
6880 }
6881 return resultobj;
6882 fail:
6883 {
6884 if (temp3)
6885 delete arg3;
6886 }
6887 return NULL;
6888}
6889
6890
c32bde28 6891static PyObject *_wrap_FileSystemHandler_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6892 PyObject *resultobj;
6893 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6894 wxString *arg2 = 0 ;
6895 int arg3 = (int) 0 ;
6896 wxString result;
6897 bool temp2 = False ;
6898 PyObject * obj0 = 0 ;
6899 PyObject * obj1 = 0 ;
6900 PyObject * obj2 = 0 ;
6901 char *kwnames[] = {
6902 (char *) "self",(char *) "spec",(char *) "flags", NULL
6903 };
6904
6905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystemHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail;
6906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6908 {
6909 arg2 = wxString_in_helper(obj1);
6910 if (arg2 == NULL) SWIG_fail;
6911 temp2 = True;
6912 }
6913 if (obj2) {
c32bde28 6914 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
6915 if (PyErr_Occurred()) SWIG_fail;
6916 }
6917 {
6918 PyThreadState* __tstate = wxPyBeginAllowThreads();
6919 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
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
c32bde28 6945static PyObject *_wrap_FileSystemHandler_FindNext(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6946 PyObject *resultobj;
6947 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6948 wxString result;
6949 PyObject * obj0 = 0 ;
6950 char *kwnames[] = {
6951 (char *) "self", NULL
6952 };
6953
6954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystemHandler_FindNext",kwnames,&obj0)) goto fail;
6955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6957 {
6958 PyThreadState* __tstate = wxPyBeginAllowThreads();
6959 result = (arg1)->FindNext();
6960
6961 wxPyEndAllowThreads(__tstate);
6962 if (PyErr_Occurred()) SWIG_fail;
6963 }
6964 {
6965#if wxUSE_UNICODE
6966 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6967#else
6968 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6969#endif
6970 }
6971 return resultobj;
6972 fail:
6973 return NULL;
6974}
6975
6976
c32bde28 6977static PyObject *_wrap_FileSystemHandler_GetProtocol(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
6978 PyObject *resultobj;
6979 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6980 wxString *arg2 = 0 ;
6981 wxString result;
6982 bool temp2 = False ;
6983 PyObject * obj0 = 0 ;
6984 PyObject * obj1 = 0 ;
6985 char *kwnames[] = {
6986 (char *) "self",(char *) "location", NULL
6987 };
6988
6989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetProtocol",kwnames,&obj0,&obj1)) goto fail;
6990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6992 {
6993 arg2 = wxString_in_helper(obj1);
6994 if (arg2 == NULL) SWIG_fail;
6995 temp2 = True;
6996 }
6997 {
6998 PyThreadState* __tstate = wxPyBeginAllowThreads();
6999 result = (arg1)->GetProtocol((wxString const &)*arg2);
7000
7001 wxPyEndAllowThreads(__tstate);
7002 if (PyErr_Occurred()) SWIG_fail;
7003 }
7004 {
7005#if wxUSE_UNICODE
7006 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7007#else
7008 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7009#endif
7010 }
7011 {
7012 if (temp2)
7013 delete arg2;
7014 }
7015 return resultobj;
7016 fail:
7017 {
7018 if (temp2)
7019 delete arg2;
7020 }
7021 return NULL;
7022}
7023
7024
c32bde28 7025static PyObject *_wrap_FileSystemHandler_GetLeftLocation(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7026 PyObject *resultobj;
7027 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
7028 wxString *arg2 = 0 ;
7029 wxString result;
7030 bool temp2 = False ;
7031 PyObject * obj0 = 0 ;
7032 PyObject * obj1 = 0 ;
7033 char *kwnames[] = {
7034 (char *) "self",(char *) "location", NULL
7035 };
7036
7037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetLeftLocation",kwnames,&obj0,&obj1)) goto fail;
7038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
7039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7040 {
7041 arg2 = wxString_in_helper(obj1);
7042 if (arg2 == NULL) SWIG_fail;
7043 temp2 = True;
7044 }
7045 {
7046 PyThreadState* __tstate = wxPyBeginAllowThreads();
7047 result = (arg1)->GetLeftLocation((wxString const &)*arg2);
7048
7049 wxPyEndAllowThreads(__tstate);
7050 if (PyErr_Occurred()) SWIG_fail;
7051 }
7052 {
7053#if wxUSE_UNICODE
7054 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7055#else
7056 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7057#endif
7058 }
7059 {
7060 if (temp2)
7061 delete arg2;
7062 }
7063 return resultobj;
7064 fail:
7065 {
7066 if (temp2)
7067 delete arg2;
7068 }
7069 return NULL;
7070}
7071
7072
c32bde28 7073static PyObject *_wrap_FileSystemHandler_GetAnchor(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7074 PyObject *resultobj;
7075 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
7076 wxString *arg2 = 0 ;
7077 wxString result;
7078 bool temp2 = False ;
7079 PyObject * obj0 = 0 ;
7080 PyObject * obj1 = 0 ;
7081 char *kwnames[] = {
7082 (char *) "self",(char *) "location", NULL
7083 };
7084
7085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetAnchor",kwnames,&obj0,&obj1)) goto fail;
7086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
7087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7088 {
7089 arg2 = wxString_in_helper(obj1);
7090 if (arg2 == NULL) SWIG_fail;
7091 temp2 = True;
7092 }
7093 {
7094 PyThreadState* __tstate = wxPyBeginAllowThreads();
7095 result = (arg1)->GetAnchor((wxString const &)*arg2);
7096
7097 wxPyEndAllowThreads(__tstate);
7098 if (PyErr_Occurred()) SWIG_fail;
7099 }
7100 {
7101#if wxUSE_UNICODE
7102 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7103#else
7104 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7105#endif
7106 }
7107 {
7108 if (temp2)
7109 delete arg2;
7110 }
7111 return resultobj;
7112 fail:
7113 {
7114 if (temp2)
7115 delete arg2;
7116 }
7117 return NULL;
7118}
7119
7120
c32bde28 7121static PyObject *_wrap_FileSystemHandler_GetRightLocation(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7122 PyObject *resultobj;
7123 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
7124 wxString *arg2 = 0 ;
7125 wxString result;
7126 bool temp2 = False ;
7127 PyObject * obj0 = 0 ;
7128 PyObject * obj1 = 0 ;
7129 char *kwnames[] = {
7130 (char *) "self",(char *) "location", NULL
7131 };
7132
7133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetRightLocation",kwnames,&obj0,&obj1)) goto fail;
7134 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
7135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7136 {
7137 arg2 = wxString_in_helper(obj1);
7138 if (arg2 == NULL) SWIG_fail;
7139 temp2 = True;
7140 }
7141 {
7142 PyThreadState* __tstate = wxPyBeginAllowThreads();
7143 result = (arg1)->GetRightLocation((wxString const &)*arg2);
7144
7145 wxPyEndAllowThreads(__tstate);
7146 if (PyErr_Occurred()) SWIG_fail;
7147 }
7148 {
7149#if wxUSE_UNICODE
7150 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7151#else
7152 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7153#endif
7154 }
7155 {
7156 if (temp2)
7157 delete arg2;
7158 }
7159 return resultobj;
7160 fail:
7161 {
7162 if (temp2)
7163 delete arg2;
7164 }
7165 return NULL;
7166}
7167
7168
c32bde28 7169static PyObject *_wrap_FileSystemHandler_GetMimeTypeFromExt(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7170 PyObject *resultobj;
7171 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
7172 wxString *arg2 = 0 ;
7173 wxString result;
7174 bool temp2 = False ;
7175 PyObject * obj0 = 0 ;
7176 PyObject * obj1 = 0 ;
7177 char *kwnames[] = {
7178 (char *) "self",(char *) "location", NULL
7179 };
7180
7181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetMimeTypeFromExt",kwnames,&obj0,&obj1)) goto fail;
7182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
7183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7184 {
7185 arg2 = wxString_in_helper(obj1);
7186 if (arg2 == NULL) SWIG_fail;
7187 temp2 = True;
7188 }
7189 {
7190 PyThreadState* __tstate = wxPyBeginAllowThreads();
7191 result = (arg1)->GetMimeTypeFromExt((wxString const &)*arg2);
7192
7193 wxPyEndAllowThreads(__tstate);
7194 if (PyErr_Occurred()) SWIG_fail;
7195 }
7196 {
7197#if wxUSE_UNICODE
7198 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7199#else
7200 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7201#endif
7202 }
7203 {
7204 if (temp2)
7205 delete arg2;
7206 }
7207 return resultobj;
7208 fail:
7209 {
7210 if (temp2)
7211 delete arg2;
7212 }
7213 return NULL;
7214}
7215
7216
c32bde28 7217static PyObject * FileSystemHandler_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
7218 PyObject *obj;
7219 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7220 SWIG_TypeClientData(SWIGTYPE_p_wxPyFileSystemHandler, obj);
7221 Py_INCREF(obj);
7222 return Py_BuildValue((char *)"");
7223}
c32bde28 7224static PyObject *_wrap_new_FileSystem(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7225 PyObject *resultobj;
7226 wxFileSystem *result;
7227 char *kwnames[] = {
7228 NULL
7229 };
7230
7231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystem",kwnames)) goto fail;
7232 {
7233 PyThreadState* __tstate = wxPyBeginAllowThreads();
7234 result = (wxFileSystem *)new wxFileSystem();
7235
7236 wxPyEndAllowThreads(__tstate);
7237 if (PyErr_Occurred()) SWIG_fail;
7238 }
7239 {
412d302d 7240 resultobj = wxPyMake_wxObject(result, 1);
d55e5bfc
RD
7241 }
7242 return resultobj;
7243 fail:
7244 return NULL;
7245}
7246
7247
c32bde28 7248static PyObject *_wrap_delete_FileSystem(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7249 PyObject *resultobj;
7250 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
7251 PyObject * obj0 = 0 ;
7252 char *kwnames[] = {
7253 (char *) "self", NULL
7254 };
7255
7256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileSystem",kwnames,&obj0)) goto fail;
7257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem,
7258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7259 {
7260 PyThreadState* __tstate = wxPyBeginAllowThreads();
7261 delete arg1;
7262
7263 wxPyEndAllowThreads(__tstate);
7264 if (PyErr_Occurred()) SWIG_fail;
7265 }
7266 Py_INCREF(Py_None); resultobj = Py_None;
7267 return resultobj;
7268 fail:
7269 return NULL;
7270}
7271
7272
c32bde28 7273static PyObject *_wrap_FileSystem_ChangePathTo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7274 PyObject *resultobj;
7275 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
7276 wxString *arg2 = 0 ;
7277 bool arg3 = (bool) False ;
7278 bool temp2 = False ;
7279 PyObject * obj0 = 0 ;
7280 PyObject * obj1 = 0 ;
7281 PyObject * obj2 = 0 ;
7282 char *kwnames[] = {
7283 (char *) "self",(char *) "location",(char *) "is_dir", NULL
7284 };
7285
7286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_ChangePathTo",kwnames,&obj0,&obj1,&obj2)) goto fail;
7287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem,
7288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7289 {
7290 arg2 = wxString_in_helper(obj1);
7291 if (arg2 == NULL) SWIG_fail;
7292 temp2 = True;
7293 }
7294 if (obj2) {
c32bde28 7295 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
7296 if (PyErr_Occurred()) SWIG_fail;
7297 }
7298 {
7299 PyThreadState* __tstate = wxPyBeginAllowThreads();
7300 (arg1)->ChangePathTo((wxString const &)*arg2,arg3);
7301
7302 wxPyEndAllowThreads(__tstate);
7303 if (PyErr_Occurred()) SWIG_fail;
7304 }
7305 Py_INCREF(Py_None); resultobj = Py_None;
7306 {
7307 if (temp2)
7308 delete arg2;
7309 }
7310 return resultobj;
7311 fail:
7312 {
7313 if (temp2)
7314 delete arg2;
7315 }
7316 return NULL;
7317}
7318
7319
c32bde28 7320static PyObject *_wrap_FileSystem_GetPath(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7321 PyObject *resultobj;
7322 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
7323 wxString result;
7324 PyObject * obj0 = 0 ;
7325 char *kwnames[] = {
7326 (char *) "self", NULL
7327 };
7328
7329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_GetPath",kwnames,&obj0)) goto fail;
7330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem,
7331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7332 {
7333 PyThreadState* __tstate = wxPyBeginAllowThreads();
7334 result = (arg1)->GetPath();
7335
7336 wxPyEndAllowThreads(__tstate);
7337 if (PyErr_Occurred()) SWIG_fail;
7338 }
7339 {
7340#if wxUSE_UNICODE
7341 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7342#else
7343 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7344#endif
7345 }
7346 return resultobj;
7347 fail:
7348 return NULL;
7349}
7350
7351
c32bde28 7352static PyObject *_wrap_FileSystem_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7353 PyObject *resultobj;
7354 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
7355 wxString *arg2 = 0 ;
7356 wxFSFile *result;
7357 bool temp2 = False ;
7358 PyObject * obj0 = 0 ;
7359 PyObject * obj1 = 0 ;
7360 char *kwnames[] = {
7361 (char *) "self",(char *) "location", NULL
7362 };
7363
7364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystem_OpenFile",kwnames,&obj0,&obj1)) goto fail;
7365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem,
7366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7367 {
7368 arg2 = wxString_in_helper(obj1);
7369 if (arg2 == NULL) SWIG_fail;
7370 temp2 = True;
7371 }
7372 {
7373 PyThreadState* __tstate = wxPyBeginAllowThreads();
7374 result = (wxFSFile *)(arg1)->OpenFile((wxString const &)*arg2);
7375
7376 wxPyEndAllowThreads(__tstate);
7377 if (PyErr_Occurred()) SWIG_fail;
7378 }
7379 {
4cf4100f 7380 resultobj = wxPyMake_wxObject(result, 1);
d55e5bfc
RD
7381 }
7382 {
7383 if (temp2)
7384 delete arg2;
7385 }
7386 return resultobj;
7387 fail:
7388 {
7389 if (temp2)
7390 delete arg2;
7391 }
7392 return NULL;
7393}
7394
7395
c32bde28 7396static PyObject *_wrap_FileSystem_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7397 PyObject *resultobj;
7398 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
7399 wxString *arg2 = 0 ;
7400 int arg3 = (int) 0 ;
7401 wxString result;
7402 bool temp2 = False ;
7403 PyObject * obj0 = 0 ;
7404 PyObject * obj1 = 0 ;
7405 PyObject * obj2 = 0 ;
7406 char *kwnames[] = {
7407 (char *) "self",(char *) "spec",(char *) "flags", NULL
7408 };
7409
7410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail;
7411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem,
7412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7413 {
7414 arg2 = wxString_in_helper(obj1);
7415 if (arg2 == NULL) SWIG_fail;
7416 temp2 = True;
7417 }
7418 if (obj2) {
c32bde28 7419 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
7420 if (PyErr_Occurred()) SWIG_fail;
7421 }
7422 {
7423 PyThreadState* __tstate = wxPyBeginAllowThreads();
7424 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
7425
7426 wxPyEndAllowThreads(__tstate);
7427 if (PyErr_Occurred()) SWIG_fail;
7428 }
7429 {
7430#if wxUSE_UNICODE
7431 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7432#else
7433 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7434#endif
7435 }
7436 {
7437 if (temp2)
7438 delete arg2;
7439 }
7440 return resultobj;
7441 fail:
7442 {
7443 if (temp2)
7444 delete arg2;
7445 }
7446 return NULL;
7447}
7448
7449
c32bde28 7450static PyObject *_wrap_FileSystem_FindNext(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7451 PyObject *resultobj;
7452 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
7453 wxString result;
7454 PyObject * obj0 = 0 ;
7455 char *kwnames[] = {
7456 (char *) "self", NULL
7457 };
7458
7459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FindNext",kwnames,&obj0)) goto fail;
7460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem,
7461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7462 {
7463 PyThreadState* __tstate = wxPyBeginAllowThreads();
7464 result = (arg1)->FindNext();
7465
7466 wxPyEndAllowThreads(__tstate);
7467 if (PyErr_Occurred()) SWIG_fail;
7468 }
7469 {
7470#if wxUSE_UNICODE
7471 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7472#else
7473 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7474#endif
7475 }
7476 return resultobj;
7477 fail:
7478 return NULL;
7479}
7480
7481
c32bde28 7482static PyObject *_wrap_FileSystem_AddHandler(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7483 PyObject *resultobj;
7484 wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ;
7485 PyObject * obj0 = 0 ;
7486 char *kwnames[] = {
7487 (char *) "handler", NULL
7488 };
7489
7490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_AddHandler",kwnames,&obj0)) goto fail;
7491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystemHandler,
7492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7493 {
7494 PyThreadState* __tstate = wxPyBeginAllowThreads();
7495 wxFileSystem::AddHandler(arg1);
7496
7497 wxPyEndAllowThreads(__tstate);
7498 if (PyErr_Occurred()) SWIG_fail;
7499 }
7500 Py_INCREF(Py_None); resultobj = Py_None;
7501 return resultobj;
7502 fail:
7503 return NULL;
7504}
7505
7506
c32bde28 7507static PyObject *_wrap_FileSystem_CleanUpHandlers(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7508 PyObject *resultobj;
7509 char *kwnames[] = {
7510 NULL
7511 };
7512
7513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FileSystem_CleanUpHandlers",kwnames)) goto fail;
7514 {
7515 PyThreadState* __tstate = wxPyBeginAllowThreads();
7516 wxFileSystem::CleanUpHandlers();
7517
7518 wxPyEndAllowThreads(__tstate);
7519 if (PyErr_Occurred()) SWIG_fail;
7520 }
7521 Py_INCREF(Py_None); resultobj = Py_None;
7522 return resultobj;
7523 fail:
7524 return NULL;
7525}
7526
7527
c32bde28 7528static PyObject *_wrap_FileSystem_FileNameToURL(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7529 PyObject *resultobj;
7530 wxString *arg1 = 0 ;
7531 wxString result;
7532 bool temp1 = False ;
7533 PyObject * obj0 = 0 ;
7534 char *kwnames[] = {
7535 (char *) "filename", NULL
7536 };
7537
7538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FileNameToURL",kwnames,&obj0)) goto fail;
7539 {
7540 arg1 = wxString_in_helper(obj0);
7541 if (arg1 == NULL) SWIG_fail;
7542 temp1 = True;
7543 }
7544 {
7545 PyThreadState* __tstate = wxPyBeginAllowThreads();
7546 result = wxFileSystem::FileNameToURL((wxString const &)*arg1);
7547
7548 wxPyEndAllowThreads(__tstate);
7549 if (PyErr_Occurred()) SWIG_fail;
7550 }
7551 {
7552#if wxUSE_UNICODE
7553 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7554#else
7555 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7556#endif
7557 }
7558 {
7559 if (temp1)
7560 delete arg1;
7561 }
7562 return resultobj;
7563 fail:
7564 {
7565 if (temp1)
7566 delete arg1;
7567 }
7568 return NULL;
7569}
7570
7571
c32bde28 7572static PyObject * FileSystem_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
7573 PyObject *obj;
7574 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7575 SWIG_TypeClientData(SWIGTYPE_p_wxFileSystem, obj);
7576 Py_INCREF(obj);
7577 return Py_BuildValue((char *)"");
7578}
c32bde28 7579static PyObject *_wrap_FileSystem_URLToFileName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7580 PyObject *resultobj;
7581 wxString *arg1 = 0 ;
7582 wxString result;
7583 bool temp1 = False ;
7584 PyObject * obj0 = 0 ;
7585 char *kwnames[] = {
7586 (char *) "url", NULL
7587 };
7588
7589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_URLToFileName",kwnames,&obj0)) goto fail;
7590 {
7591 arg1 = wxString_in_helper(obj0);
7592 if (arg1 == NULL) SWIG_fail;
7593 temp1 = True;
7594 }
7595 {
7596 PyThreadState* __tstate = wxPyBeginAllowThreads();
7597 result = wxFileSystem_URLToFileName((wxString const &)*arg1);
7598
7599 wxPyEndAllowThreads(__tstate);
7600 if (PyErr_Occurred()) SWIG_fail;
7601 }
7602 {
7603#if wxUSE_UNICODE
7604 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7605#else
7606 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7607#endif
7608 }
7609 {
7610 if (temp1)
7611 delete arg1;
7612 }
7613 return resultobj;
7614 fail:
7615 {
7616 if (temp1)
7617 delete arg1;
7618 }
7619 return NULL;
7620}
7621
7622
c32bde28 7623static PyObject *_wrap_new_InternetFSHandler(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7624 PyObject *resultobj;
7625 wxInternetFSHandler *result;
7626 char *kwnames[] = {
7627 NULL
7628 };
7629
7630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_InternetFSHandler",kwnames)) goto fail;
7631 {
7632 PyThreadState* __tstate = wxPyBeginAllowThreads();
7633 result = (wxInternetFSHandler *)new wxInternetFSHandler();
7634
7635 wxPyEndAllowThreads(__tstate);
7636 if (PyErr_Occurred()) SWIG_fail;
7637 }
7638 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInternetFSHandler, 1);
7639 return resultobj;
7640 fail:
7641 return NULL;
7642}
7643
7644
c32bde28 7645static PyObject *_wrap_InternetFSHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7646 PyObject *resultobj;
7647 wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ;
7648 wxString *arg2 = 0 ;
7649 bool result;
7650 bool temp2 = False ;
7651 PyObject * obj0 = 0 ;
7652 PyObject * obj1 = 0 ;
7653 char *kwnames[] = {
7654 (char *) "self",(char *) "location", NULL
7655 };
7656
7657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InternetFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail;
7658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler,
7659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7660 {
7661 arg2 = wxString_in_helper(obj1);
7662 if (arg2 == NULL) SWIG_fail;
7663 temp2 = True;
7664 }
7665 {
7666 PyThreadState* __tstate = wxPyBeginAllowThreads();
7667 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
7668
7669 wxPyEndAllowThreads(__tstate);
7670 if (PyErr_Occurred()) SWIG_fail;
7671 }
7672 {
7673 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7674 }
7675 {
7676 if (temp2)
7677 delete arg2;
7678 }
7679 return resultobj;
7680 fail:
7681 {
7682 if (temp2)
7683 delete arg2;
7684 }
7685 return NULL;
7686}
7687
7688
c32bde28 7689static PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7690 PyObject *resultobj;
7691 wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ;
7692 wxFileSystem *arg2 = 0 ;
7693 wxString *arg3 = 0 ;
7694 wxFSFile *result;
7695 bool temp3 = False ;
7696 PyObject * obj0 = 0 ;
7697 PyObject * obj1 = 0 ;
7698 PyObject * obj2 = 0 ;
7699 char *kwnames[] = {
7700 (char *) "self",(char *) "fs",(char *) "location", NULL
7701 };
7702
7703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:InternetFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
7704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler,
7705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7706 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem,
7707 SWIG_POINTER_EXCEPTION | 0)) == -1)
7708 SWIG_fail;
7709 if (arg2 == NULL) {
7710 PyErr_SetString(PyExc_TypeError,"null reference");
7711 SWIG_fail;
7712 }
7713 {
7714 arg3 = wxString_in_helper(obj2);
7715 if (arg3 == NULL) SWIG_fail;
7716 temp3 = True;
7717 }
7718 {
7719 PyThreadState* __tstate = wxPyBeginAllowThreads();
7720 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
7721
7722 wxPyEndAllowThreads(__tstate);
7723 if (PyErr_Occurred()) SWIG_fail;
7724 }
7725 {
4cf4100f 7726 resultobj = wxPyMake_wxObject(result, 1);
d55e5bfc
RD
7727 }
7728 {
7729 if (temp3)
7730 delete arg3;
7731 }
7732 return resultobj;
7733 fail:
7734 {
7735 if (temp3)
7736 delete arg3;
7737 }
7738 return NULL;
7739}
7740
7741
c32bde28 7742static PyObject * InternetFSHandler_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
7743 PyObject *obj;
7744 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7745 SWIG_TypeClientData(SWIGTYPE_p_wxInternetFSHandler, obj);
7746 Py_INCREF(obj);
7747 return Py_BuildValue((char *)"");
7748}
c32bde28 7749static PyObject *_wrap_new_ZipFSHandler(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7750 PyObject *resultobj;
7751 wxZipFSHandler *result;
7752 char *kwnames[] = {
7753 NULL
7754 };
7755
7756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ZipFSHandler",kwnames)) goto fail;
7757 {
7758 PyThreadState* __tstate = wxPyBeginAllowThreads();
7759 result = (wxZipFSHandler *)new wxZipFSHandler();
7760
7761 wxPyEndAllowThreads(__tstate);
7762 if (PyErr_Occurred()) SWIG_fail;
7763 }
7764 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxZipFSHandler, 1);
7765 return resultobj;
7766 fail:
7767 return NULL;
7768}
7769
7770
c32bde28 7771static PyObject *_wrap_ZipFSHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7772 PyObject *resultobj;
7773 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
7774 wxString *arg2 = 0 ;
7775 bool result;
7776 bool temp2 = False ;
7777 PyObject * obj0 = 0 ;
7778 PyObject * obj1 = 0 ;
7779 char *kwnames[] = {
7780 (char *) "self",(char *) "location", NULL
7781 };
7782
7783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ZipFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail;
7784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler,
7785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7786 {
7787 arg2 = wxString_in_helper(obj1);
7788 if (arg2 == NULL) SWIG_fail;
7789 temp2 = True;
7790 }
7791 {
7792 PyThreadState* __tstate = wxPyBeginAllowThreads();
7793 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
7794
7795 wxPyEndAllowThreads(__tstate);
7796 if (PyErr_Occurred()) SWIG_fail;
7797 }
7798 {
7799 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7800 }
7801 {
7802 if (temp2)
7803 delete arg2;
7804 }
7805 return resultobj;
7806 fail:
7807 {
7808 if (temp2)
7809 delete arg2;
7810 }
7811 return NULL;
7812}
7813
7814
c32bde28 7815static PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7816 PyObject *resultobj;
7817 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
7818 wxFileSystem *arg2 = 0 ;
7819 wxString *arg3 = 0 ;
7820 wxFSFile *result;
7821 bool temp3 = False ;
7822 PyObject * obj0 = 0 ;
7823 PyObject * obj1 = 0 ;
7824 PyObject * obj2 = 0 ;
7825 char *kwnames[] = {
7826 (char *) "self",(char *) "fs",(char *) "location", NULL
7827 };
7828
7829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ZipFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
7830 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler,
7831 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7832 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem,
7833 SWIG_POINTER_EXCEPTION | 0)) == -1)
7834 SWIG_fail;
7835 if (arg2 == NULL) {
7836 PyErr_SetString(PyExc_TypeError,"null reference");
7837 SWIG_fail;
7838 }
7839 {
7840 arg3 = wxString_in_helper(obj2);
7841 if (arg3 == NULL) SWIG_fail;
7842 temp3 = True;
7843 }
7844 {
7845 PyThreadState* __tstate = wxPyBeginAllowThreads();
7846 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
7847
7848 wxPyEndAllowThreads(__tstate);
7849 if (PyErr_Occurred()) SWIG_fail;
7850 }
7851 {
4cf4100f 7852 resultobj = wxPyMake_wxObject(result, 1);
d55e5bfc
RD
7853 }
7854 {
7855 if (temp3)
7856 delete arg3;
7857 }
7858 return resultobj;
7859 fail:
7860 {
7861 if (temp3)
7862 delete arg3;
7863 }
7864 return NULL;
7865}
7866
7867
c32bde28 7868static PyObject *_wrap_ZipFSHandler_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7869 PyObject *resultobj;
7870 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
7871 wxString *arg2 = 0 ;
7872 int arg3 = (int) 0 ;
7873 wxString result;
7874 bool temp2 = False ;
7875 PyObject * obj0 = 0 ;
7876 PyObject * obj1 = 0 ;
7877 PyObject * obj2 = 0 ;
7878 char *kwnames[] = {
7879 (char *) "self",(char *) "spec",(char *) "flags", NULL
7880 };
7881
7882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ZipFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail;
7883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler,
7884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7885 {
7886 arg2 = wxString_in_helper(obj1);
7887 if (arg2 == NULL) SWIG_fail;
7888 temp2 = True;
7889 }
7890 if (obj2) {
c32bde28 7891 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
7892 if (PyErr_Occurred()) SWIG_fail;
7893 }
7894 {
7895 PyThreadState* __tstate = wxPyBeginAllowThreads();
7896 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
7897
7898 wxPyEndAllowThreads(__tstate);
7899 if (PyErr_Occurred()) SWIG_fail;
7900 }
7901 {
7902#if wxUSE_UNICODE
7903 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7904#else
7905 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7906#endif
7907 }
7908 {
7909 if (temp2)
7910 delete arg2;
7911 }
7912 return resultobj;
7913 fail:
7914 {
7915 if (temp2)
7916 delete arg2;
7917 }
7918 return NULL;
7919}
7920
7921
c32bde28 7922static PyObject *_wrap_ZipFSHandler_FindNext(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7923 PyObject *resultobj;
7924 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
7925 wxString result;
7926 PyObject * obj0 = 0 ;
7927 char *kwnames[] = {
7928 (char *) "self", NULL
7929 };
7930
7931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ZipFSHandler_FindNext",kwnames,&obj0)) goto fail;
7932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler,
7933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7934 {
7935 PyThreadState* __tstate = wxPyBeginAllowThreads();
7936 result = (arg1)->FindNext();
7937
7938 wxPyEndAllowThreads(__tstate);
7939 if (PyErr_Occurred()) SWIG_fail;
7940 }
7941 {
7942#if wxUSE_UNICODE
7943 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7944#else
7945 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7946#endif
7947 }
7948 return resultobj;
7949 fail:
7950 return NULL;
7951}
7952
7953
c32bde28 7954static PyObject * ZipFSHandler_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
7955 PyObject *obj;
7956 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7957 SWIG_TypeClientData(SWIGTYPE_p_wxZipFSHandler, obj);
7958 Py_INCREF(obj);
7959 return Py_BuildValue((char *)"");
7960}
c32bde28 7961static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
7962 PyObject *resultobj;
7963 wxString *arg1 = 0 ;
7964 wxImage *arg2 = 0 ;
7965 long arg3 ;
7966 bool temp1 = False ;
7967 PyObject * obj0 = 0 ;
7968 PyObject * obj1 = 0 ;
7969 PyObject * obj2 = 0 ;
7970 char *kwnames[] = {
7971 (char *) "filename",(char *) "image",(char *) "type", NULL
7972 };
7973
7974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
7975 {
7976 arg1 = wxString_in_helper(obj0);
7977 if (arg1 == NULL) SWIG_fail;
7978 temp1 = True;
7979 }
7980 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage,
7981 SWIG_POINTER_EXCEPTION | 0)) == -1)
7982 SWIG_fail;
7983 if (arg2 == NULL) {
7984 PyErr_SetString(PyExc_TypeError,"null reference");
7985 SWIG_fail;
7986 }
c32bde28 7987 arg3 = (long)SWIG_As_long(obj2);
d55e5bfc
RD
7988 if (PyErr_Occurred()) SWIG_fail;
7989 {
7990 PyThreadState* __tstate = wxPyBeginAllowThreads();
7991 __wxMemoryFSHandler_AddFile_wxImage((wxString const &)*arg1,*arg2,arg3);
7992
7993 wxPyEndAllowThreads(__tstate);
7994 if (PyErr_Occurred()) SWIG_fail;
7995 }
7996 Py_INCREF(Py_None); resultobj = Py_None;
7997 {
7998 if (temp1)
7999 delete arg1;
8000 }
8001 return resultobj;
8002 fail:
8003 {
8004 if (temp1)
8005 delete arg1;
8006 }
8007 return NULL;
8008}
8009
8010
c32bde28 8011static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8012 PyObject *resultobj;
8013 wxString *arg1 = 0 ;
8014 wxBitmap *arg2 = 0 ;
8015 long arg3 ;
8016 bool temp1 = False ;
8017 PyObject * obj0 = 0 ;
8018 PyObject * obj1 = 0 ;
8019 PyObject * obj2 = 0 ;
8020 char *kwnames[] = {
8021 (char *) "filename",(char *) "bitmap",(char *) "type", NULL
8022 };
8023
8024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
8025 {
8026 arg1 = wxString_in_helper(obj0);
8027 if (arg1 == NULL) SWIG_fail;
8028 temp1 = True;
8029 }
8030 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
8031 SWIG_POINTER_EXCEPTION | 0)) == -1)
8032 SWIG_fail;
8033 if (arg2 == NULL) {
8034 PyErr_SetString(PyExc_TypeError,"null reference");
8035 SWIG_fail;
8036 }
c32bde28 8037 arg3 = (long)SWIG_As_long(obj2);
d55e5bfc
RD
8038 if (PyErr_Occurred()) SWIG_fail;
8039 {
8040 PyThreadState* __tstate = wxPyBeginAllowThreads();
8041 __wxMemoryFSHandler_AddFile_wxBitmap((wxString const &)*arg1,(wxBitmap const &)*arg2,arg3);
8042
8043 wxPyEndAllowThreads(__tstate);
8044 if (PyErr_Occurred()) SWIG_fail;
8045 }
8046 Py_INCREF(Py_None); resultobj = Py_None;
8047 {
8048 if (temp1)
8049 delete arg1;
8050 }
8051 return resultobj;
8052 fail:
8053 {
8054 if (temp1)
8055 delete arg1;
8056 }
8057 return NULL;
8058}
8059
8060
c32bde28 8061static PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8062 PyObject *resultobj;
8063 wxString *arg1 = 0 ;
8064 PyObject *arg2 = (PyObject *) 0 ;
8065 bool temp1 = False ;
8066 PyObject * obj0 = 0 ;
8067 PyObject * obj1 = 0 ;
8068 char *kwnames[] = {
8069 (char *) "filename",(char *) "data", NULL
8070 };
8071
8072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:__wxMemoryFSHandler_AddFile_Data",kwnames,&obj0,&obj1)) goto fail;
8073 {
8074 arg1 = wxString_in_helper(obj0);
8075 if (arg1 == NULL) SWIG_fail;
8076 temp1 = True;
8077 }
8078 arg2 = obj1;
8079 {
8080 PyThreadState* __tstate = wxPyBeginAllowThreads();
8081 __wxMemoryFSHandler_AddFile_Data((wxString const &)*arg1,arg2);
8082
8083 wxPyEndAllowThreads(__tstate);
8084 if (PyErr_Occurred()) SWIG_fail;
8085 }
8086 Py_INCREF(Py_None); resultobj = Py_None;
8087 {
8088 if (temp1)
8089 delete arg1;
8090 }
8091 return resultobj;
8092 fail:
8093 {
8094 if (temp1)
8095 delete arg1;
8096 }
8097 return NULL;
8098}
8099
8100
c32bde28 8101static PyObject *_wrap_new_MemoryFSHandler(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8102 PyObject *resultobj;
8103 wxMemoryFSHandler *result;
8104 char *kwnames[] = {
8105 NULL
8106 };
8107
8108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryFSHandler",kwnames)) goto fail;
8109 {
8110 PyThreadState* __tstate = wxPyBeginAllowThreads();
8111 result = (wxMemoryFSHandler *)new wxMemoryFSHandler();
8112
8113 wxPyEndAllowThreads(__tstate);
8114 if (PyErr_Occurred()) SWIG_fail;
8115 }
8116 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryFSHandler, 1);
8117 return resultobj;
8118 fail:
8119 return NULL;
8120}
8121
8122
c32bde28 8123static PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8124 PyObject *resultobj;
8125 wxString *arg1 = 0 ;
8126 bool temp1 = False ;
8127 PyObject * obj0 = 0 ;
8128 char *kwnames[] = {
8129 (char *) "filename", NULL
8130 };
8131
8132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_RemoveFile",kwnames,&obj0)) goto fail;
8133 {
8134 arg1 = wxString_in_helper(obj0);
8135 if (arg1 == NULL) SWIG_fail;
8136 temp1 = True;
8137 }
8138 {
8139 PyThreadState* __tstate = wxPyBeginAllowThreads();
8140 wxMemoryFSHandler::RemoveFile((wxString const &)*arg1);
8141
8142 wxPyEndAllowThreads(__tstate);
8143 if (PyErr_Occurred()) SWIG_fail;
8144 }
8145 Py_INCREF(Py_None); resultobj = Py_None;
8146 {
8147 if (temp1)
8148 delete arg1;
8149 }
8150 return resultobj;
8151 fail:
8152 {
8153 if (temp1)
8154 delete arg1;
8155 }
8156 return NULL;
8157}
8158
8159
c32bde28 8160static PyObject *_wrap_MemoryFSHandler_CanOpen(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8161 PyObject *resultobj;
8162 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
8163 wxString *arg2 = 0 ;
8164 bool result;
8165 bool temp2 = False ;
8166 PyObject * obj0 = 0 ;
8167 PyObject * obj1 = 0 ;
8168 char *kwnames[] = {
8169 (char *) "self",(char *) "location", NULL
8170 };
8171
8172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail;
8173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler,
8174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8175 {
8176 arg2 = wxString_in_helper(obj1);
8177 if (arg2 == NULL) SWIG_fail;
8178 temp2 = True;
8179 }
8180 {
8181 PyThreadState* __tstate = wxPyBeginAllowThreads();
8182 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
8183
8184 wxPyEndAllowThreads(__tstate);
8185 if (PyErr_Occurred()) SWIG_fail;
8186 }
8187 {
8188 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8189 }
8190 {
8191 if (temp2)
8192 delete arg2;
8193 }
8194 return resultobj;
8195 fail:
8196 {
8197 if (temp2)
8198 delete arg2;
8199 }
8200 return NULL;
8201}
8202
8203
c32bde28 8204static PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8205 PyObject *resultobj;
8206 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
8207 wxFileSystem *arg2 = 0 ;
8208 wxString *arg3 = 0 ;
8209 wxFSFile *result;
8210 bool temp3 = False ;
8211 PyObject * obj0 = 0 ;
8212 PyObject * obj1 = 0 ;
8213 PyObject * obj2 = 0 ;
8214 char *kwnames[] = {
8215 (char *) "self",(char *) "fs",(char *) "location", NULL
8216 };
8217
8218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MemoryFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
8219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler,
8220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8221 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem,
8222 SWIG_POINTER_EXCEPTION | 0)) == -1)
8223 SWIG_fail;
8224 if (arg2 == NULL) {
8225 PyErr_SetString(PyExc_TypeError,"null reference");
8226 SWIG_fail;
8227 }
8228 {
8229 arg3 = wxString_in_helper(obj2);
8230 if (arg3 == NULL) SWIG_fail;
8231 temp3 = True;
8232 }
8233 {
8234 PyThreadState* __tstate = wxPyBeginAllowThreads();
8235 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
8236
8237 wxPyEndAllowThreads(__tstate);
8238 if (PyErr_Occurred()) SWIG_fail;
8239 }
8240 {
4cf4100f 8241 resultobj = wxPyMake_wxObject(result, 1);
d55e5bfc
RD
8242 }
8243 {
8244 if (temp3)
8245 delete arg3;
8246 }
8247 return resultobj;
8248 fail:
8249 {
8250 if (temp3)
8251 delete arg3;
8252 }
8253 return NULL;
8254}
8255
8256
c32bde28 8257static PyObject *_wrap_MemoryFSHandler_FindFirst(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8258 PyObject *resultobj;
8259 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
8260 wxString *arg2 = 0 ;
8261 int arg3 = (int) 0 ;
8262 wxString result;
8263 bool temp2 = False ;
8264 PyObject * obj0 = 0 ;
8265 PyObject * obj1 = 0 ;
8266 PyObject * obj2 = 0 ;
8267 char *kwnames[] = {
8268 (char *) "self",(char *) "spec",(char *) "flags", NULL
8269 };
8270
8271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MemoryFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail;
8272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler,
8273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8274 {
8275 arg2 = wxString_in_helper(obj1);
8276 if (arg2 == NULL) SWIG_fail;
8277 temp2 = True;
8278 }
8279 if (obj2) {
c32bde28 8280 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
8281 if (PyErr_Occurred()) SWIG_fail;
8282 }
8283 {
8284 PyThreadState* __tstate = wxPyBeginAllowThreads();
8285 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
8286
8287 wxPyEndAllowThreads(__tstate);
8288 if (PyErr_Occurred()) SWIG_fail;
8289 }
8290 {
8291#if wxUSE_UNICODE
8292 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8293#else
8294 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8295#endif
8296 }
8297 {
8298 if (temp2)
8299 delete arg2;
8300 }
8301 return resultobj;
8302 fail:
8303 {
8304 if (temp2)
8305 delete arg2;
8306 }
8307 return NULL;
8308}
8309
8310
c32bde28 8311static PyObject *_wrap_MemoryFSHandler_FindNext(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8312 PyObject *resultobj;
8313 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
8314 wxString result;
8315 PyObject * obj0 = 0 ;
8316 char *kwnames[] = {
8317 (char *) "self", NULL
8318 };
8319
8320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_FindNext",kwnames,&obj0)) goto fail;
8321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler,
8322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8323 {
8324 PyThreadState* __tstate = wxPyBeginAllowThreads();
8325 result = (arg1)->FindNext();
8326
8327 wxPyEndAllowThreads(__tstate);
8328 if (PyErr_Occurred()) SWIG_fail;
8329 }
8330 {
8331#if wxUSE_UNICODE
8332 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8333#else
8334 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8335#endif
8336 }
8337 return resultobj;
8338 fail:
8339 return NULL;
8340}
8341
8342
c32bde28 8343static PyObject * MemoryFSHandler_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
8344 PyObject *obj;
8345 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8346 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryFSHandler, obj);
8347 Py_INCREF(obj);
8348 return Py_BuildValue((char *)"");
8349}
c32bde28 8350static PyObject *_wrap_ImageHandler_GetName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8351 PyObject *resultobj;
8352 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8353 wxString result;
8354 PyObject * obj0 = 0 ;
8355 char *kwnames[] = {
8356 (char *) "self", NULL
8357 };
8358
8359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetName",kwnames,&obj0)) goto fail;
8360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8362 {
8363 PyThreadState* __tstate = wxPyBeginAllowThreads();
8364 result = (arg1)->GetName();
8365
8366 wxPyEndAllowThreads(__tstate);
8367 if (PyErr_Occurred()) SWIG_fail;
8368 }
8369 {
8370#if wxUSE_UNICODE
8371 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8372#else
8373 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8374#endif
8375 }
8376 return resultobj;
8377 fail:
8378 return NULL;
8379}
8380
8381
c32bde28 8382static PyObject *_wrap_ImageHandler_GetExtension(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8383 PyObject *resultobj;
8384 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8385 wxString result;
8386 PyObject * obj0 = 0 ;
8387 char *kwnames[] = {
8388 (char *) "self", NULL
8389 };
8390
8391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetExtension",kwnames,&obj0)) goto fail;
8392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8394 {
8395 PyThreadState* __tstate = wxPyBeginAllowThreads();
8396 result = (arg1)->GetExtension();
8397
8398 wxPyEndAllowThreads(__tstate);
8399 if (PyErr_Occurred()) SWIG_fail;
8400 }
8401 {
8402#if wxUSE_UNICODE
8403 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8404#else
8405 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8406#endif
8407 }
8408 return resultobj;
8409 fail:
8410 return NULL;
8411}
8412
8413
c32bde28 8414static PyObject *_wrap_ImageHandler_GetType(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8415 PyObject *resultobj;
8416 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8417 long result;
8418 PyObject * obj0 = 0 ;
8419 char *kwnames[] = {
8420 (char *) "self", NULL
8421 };
8422
8423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetType",kwnames,&obj0)) goto fail;
8424 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8425 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8426 {
8427 PyThreadState* __tstate = wxPyBeginAllowThreads();
8428 result = (long)(arg1)->GetType();
8429
8430 wxPyEndAllowThreads(__tstate);
8431 if (PyErr_Occurred()) SWIG_fail;
8432 }
c32bde28 8433 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
8434 return resultobj;
8435 fail:
8436 return NULL;
8437}
8438
8439
c32bde28 8440static PyObject *_wrap_ImageHandler_GetMimeType(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8441 PyObject *resultobj;
8442 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8443 wxString result;
8444 PyObject * obj0 = 0 ;
8445 char *kwnames[] = {
8446 (char *) "self", NULL
8447 };
8448
8449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetMimeType",kwnames,&obj0)) goto fail;
8450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8452 {
8453 PyThreadState* __tstate = wxPyBeginAllowThreads();
8454 result = (arg1)->GetMimeType();
8455
8456 wxPyEndAllowThreads(__tstate);
8457 if (PyErr_Occurred()) SWIG_fail;
8458 }
8459 {
8460#if wxUSE_UNICODE
8461 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8462#else
8463 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8464#endif
8465 }
8466 return resultobj;
8467 fail:
8468 return NULL;
8469}
8470
8471
c32bde28 8472static PyObject *_wrap_ImageHandler_CanRead(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8473 PyObject *resultobj;
8474 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8475 wxString *arg2 = 0 ;
8476 bool result;
8477 bool temp2 = False ;
8478 PyObject * obj0 = 0 ;
8479 PyObject * obj1 = 0 ;
8480 char *kwnames[] = {
8481 (char *) "self",(char *) "name", NULL
8482 };
8483
8484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanRead",kwnames,&obj0,&obj1)) goto fail;
8485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8487 {
8488 arg2 = wxString_in_helper(obj1);
8489 if (arg2 == NULL) SWIG_fail;
8490 temp2 = True;
8491 }
8492 {
8493 PyThreadState* __tstate = wxPyBeginAllowThreads();
8494 result = (bool)(arg1)->CanRead((wxString const &)*arg2);
8495
8496 wxPyEndAllowThreads(__tstate);
8497 if (PyErr_Occurred()) SWIG_fail;
8498 }
8499 {
8500 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8501 }
8502 {
8503 if (temp2)
8504 delete arg2;
8505 }
8506 return resultobj;
8507 fail:
8508 {
8509 if (temp2)
8510 delete arg2;
8511 }
8512 return NULL;
8513}
8514
8515
c32bde28 8516static PyObject *_wrap_ImageHandler_SetName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8517 PyObject *resultobj;
8518 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8519 wxString *arg2 = 0 ;
8520 bool temp2 = False ;
8521 PyObject * obj0 = 0 ;
8522 PyObject * obj1 = 0 ;
8523 char *kwnames[] = {
8524 (char *) "self",(char *) "name", NULL
8525 };
8526
8527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetName",kwnames,&obj0,&obj1)) goto fail;
8528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8530 {
8531 arg2 = wxString_in_helper(obj1);
8532 if (arg2 == NULL) SWIG_fail;
8533 temp2 = True;
8534 }
8535 {
8536 PyThreadState* __tstate = wxPyBeginAllowThreads();
8537 (arg1)->SetName((wxString const &)*arg2);
8538
8539 wxPyEndAllowThreads(__tstate);
8540 if (PyErr_Occurred()) SWIG_fail;
8541 }
8542 Py_INCREF(Py_None); resultobj = Py_None;
8543 {
8544 if (temp2)
8545 delete arg2;
8546 }
8547 return resultobj;
8548 fail:
8549 {
8550 if (temp2)
8551 delete arg2;
8552 }
8553 return NULL;
8554}
8555
8556
c32bde28 8557static PyObject *_wrap_ImageHandler_SetExtension(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8558 PyObject *resultobj;
8559 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8560 wxString *arg2 = 0 ;
8561 bool temp2 = False ;
8562 PyObject * obj0 = 0 ;
8563 PyObject * obj1 = 0 ;
8564 char *kwnames[] = {
8565 (char *) "self",(char *) "extension", NULL
8566 };
8567
8568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetExtension",kwnames,&obj0,&obj1)) goto fail;
8569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8571 {
8572 arg2 = wxString_in_helper(obj1);
8573 if (arg2 == NULL) SWIG_fail;
8574 temp2 = True;
8575 }
8576 {
8577 PyThreadState* __tstate = wxPyBeginAllowThreads();
8578 (arg1)->SetExtension((wxString const &)*arg2);
8579
8580 wxPyEndAllowThreads(__tstate);
8581 if (PyErr_Occurred()) SWIG_fail;
8582 }
8583 Py_INCREF(Py_None); resultobj = Py_None;
8584 {
8585 if (temp2)
8586 delete arg2;
8587 }
8588 return resultobj;
8589 fail:
8590 {
8591 if (temp2)
8592 delete arg2;
8593 }
8594 return NULL;
8595}
8596
8597
c32bde28 8598static PyObject *_wrap_ImageHandler_SetType(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8599 PyObject *resultobj;
8600 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8601 long arg2 ;
8602 PyObject * obj0 = 0 ;
8603 PyObject * obj1 = 0 ;
8604 char *kwnames[] = {
8605 (char *) "self",(char *) "type", NULL
8606 };
8607
8608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetType",kwnames,&obj0,&obj1)) goto fail;
8609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 8611 arg2 = (long)SWIG_As_long(obj1);
d55e5bfc
RD
8612 if (PyErr_Occurred()) SWIG_fail;
8613 {
8614 PyThreadState* __tstate = wxPyBeginAllowThreads();
8615 (arg1)->SetType(arg2);
8616
8617 wxPyEndAllowThreads(__tstate);
8618 if (PyErr_Occurred()) SWIG_fail;
8619 }
8620 Py_INCREF(Py_None); resultobj = Py_None;
8621 return resultobj;
8622 fail:
8623 return NULL;
8624}
8625
8626
c32bde28 8627static PyObject *_wrap_ImageHandler_SetMimeType(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8628 PyObject *resultobj;
8629 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8630 wxString *arg2 = 0 ;
8631 bool temp2 = False ;
8632 PyObject * obj0 = 0 ;
8633 PyObject * obj1 = 0 ;
8634 char *kwnames[] = {
8635 (char *) "self",(char *) "mimetype", NULL
8636 };
8637
8638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetMimeType",kwnames,&obj0,&obj1)) goto fail;
8639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8641 {
8642 arg2 = wxString_in_helper(obj1);
8643 if (arg2 == NULL) SWIG_fail;
8644 temp2 = True;
8645 }
8646 {
8647 PyThreadState* __tstate = wxPyBeginAllowThreads();
8648 (arg1)->SetMimeType((wxString const &)*arg2);
8649
8650 wxPyEndAllowThreads(__tstate);
8651 if (PyErr_Occurred()) SWIG_fail;
8652 }
8653 Py_INCREF(Py_None); resultobj = Py_None;
8654 {
8655 if (temp2)
8656 delete arg2;
8657 }
8658 return resultobj;
8659 fail:
8660 {
8661 if (temp2)
8662 delete arg2;
8663 }
8664 return NULL;
8665}
8666
8667
c32bde28 8668static PyObject * ImageHandler_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
8669 PyObject *obj;
8670 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8671 SWIG_TypeClientData(SWIGTYPE_p_wxImageHandler, obj);
8672 Py_INCREF(obj);
8673 return Py_BuildValue((char *)"");
8674}
c32bde28 8675static PyObject *_wrap_new_ImageHistogram(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8676 PyObject *resultobj;
8677 wxImageHistogram *result;
8678 char *kwnames[] = {
8679 NULL
8680 };
8681
8682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ImageHistogram",kwnames)) goto fail;
8683 {
8684 PyThreadState* __tstate = wxPyBeginAllowThreads();
8685 result = (wxImageHistogram *)new wxImageHistogram();
8686
8687 wxPyEndAllowThreads(__tstate);
8688 if (PyErr_Occurred()) SWIG_fail;
8689 }
8690 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImageHistogram, 1);
8691 return resultobj;
8692 fail:
8693 return NULL;
8694}
8695
8696
c32bde28 8697static PyObject *_wrap_ImageHistogram_MakeKey(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8698 PyObject *resultobj;
8699 unsigned char arg1 ;
8700 unsigned char arg2 ;
8701 unsigned char arg3 ;
8702 unsigned long result;
8703 PyObject * obj0 = 0 ;
8704 PyObject * obj1 = 0 ;
8705 PyObject * obj2 = 0 ;
8706 char *kwnames[] = {
8707 (char *) "r",(char *) "g",(char *) "b", NULL
8708 };
8709
8710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageHistogram_MakeKey",kwnames,&obj0,&obj1,&obj2)) goto fail;
c32bde28 8711 arg1 = (unsigned char)SWIG_As_unsigned_SS_char(obj0);
d55e5bfc 8712 if (PyErr_Occurred()) SWIG_fail;
c32bde28 8713 arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1);
d55e5bfc 8714 if (PyErr_Occurred()) SWIG_fail;
c32bde28 8715 arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2);
d55e5bfc
RD
8716 if (PyErr_Occurred()) SWIG_fail;
8717 {
8718 PyThreadState* __tstate = wxPyBeginAllowThreads();
8719 result = (unsigned long)wxImageHistogram::MakeKey(arg1,arg2,arg3);
8720
8721 wxPyEndAllowThreads(__tstate);
8722 if (PyErr_Occurred()) SWIG_fail;
8723 }
c32bde28 8724 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
d55e5bfc
RD
8725 return resultobj;
8726 fail:
8727 return NULL;
8728}
8729
8730
c32bde28 8731static PyObject *_wrap_ImageHistogram_FindFirstUnusedColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8732 PyObject *resultobj;
8733 wxImageHistogram *arg1 = (wxImageHistogram *) 0 ;
8734 unsigned char *arg2 = (unsigned char *) 0 ;
8735 unsigned char *arg3 = (unsigned char *) 0 ;
8736 unsigned char *arg4 = (unsigned char *) 0 ;
8737 unsigned char arg5 = (unsigned char) 1 ;
8738 unsigned char arg6 = (unsigned char) 0 ;
8739 unsigned char arg7 = (unsigned char) 0 ;
8740 bool result;
8741 unsigned char temp2 ;
c32bde28 8742 int res2 = 0 ;
d55e5bfc 8743 unsigned char temp3 ;
c32bde28 8744 int res3 = 0 ;
d55e5bfc 8745 unsigned char temp4 ;
c32bde28 8746 int res4 = 0 ;
d55e5bfc
RD
8747 PyObject * obj0 = 0 ;
8748 PyObject * obj1 = 0 ;
8749 PyObject * obj2 = 0 ;
8750 PyObject * obj3 = 0 ;
8751 char *kwnames[] = {
8752 (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL
8753 };
8754
c32bde28
RD
8755 arg2 = &temp2; res2 = SWIG_NEWOBJ;
8756 arg3 = &temp3; res3 = SWIG_NEWOBJ;
8757 arg4 = &temp4; res4 = SWIG_NEWOBJ;
d55e5bfc
RD
8758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:ImageHistogram_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHistogram,
8760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8761 if (obj1) {
c32bde28 8762 arg5 = (unsigned char)SWIG_As_unsigned_SS_char(obj1);
d55e5bfc
RD
8763 if (PyErr_Occurred()) SWIG_fail;
8764 }
8765 if (obj2) {
c32bde28 8766 arg6 = (unsigned char)SWIG_As_unsigned_SS_char(obj2);
d55e5bfc
RD
8767 if (PyErr_Occurred()) SWIG_fail;
8768 }
8769 if (obj3) {
c32bde28 8770 arg7 = (unsigned char)SWIG_As_unsigned_SS_char(obj3);
d55e5bfc
RD
8771 if (PyErr_Occurred()) SWIG_fail;
8772 }
8773 {
8774 PyThreadState* __tstate = wxPyBeginAllowThreads();
8775 result = (bool)((wxImageHistogram const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7);
8776
8777 wxPyEndAllowThreads(__tstate);
8778 if (PyErr_Occurred()) SWIG_fail;
8779 }
8780 {
8781 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8782 }
c32bde28
RD
8783 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
8784 SWIG_From_unsigned_SS_char((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, 0)));
8785 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
8786 SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, 0)));
8787 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
8788 SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, 0)));
d55e5bfc
RD
8789 return resultobj;
8790 fail:
8791 return NULL;
8792}
8793
8794
c32bde28 8795static PyObject * ImageHistogram_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
8796 PyObject *obj;
8797 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8798 SWIG_TypeClientData(SWIGTYPE_p_wxImageHistogram, obj);
8799 Py_INCREF(obj);
8800 return Py_BuildValue((char *)"");
8801}
c32bde28 8802static PyObject *_wrap_new_Image(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8803 PyObject *resultobj;
8804 wxString *arg1 = 0 ;
8805 long arg2 = (long) wxBITMAP_TYPE_ANY ;
8806 int arg3 = (int) -1 ;
8807 wxImage *result;
8808 bool temp1 = False ;
8809 PyObject * obj0 = 0 ;
8810 PyObject * obj1 = 0 ;
8811 PyObject * obj2 = 0 ;
8812 char *kwnames[] = {
8813 (char *) "name",(char *) "type",(char *) "index", NULL
8814 };
8815
8816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Image",kwnames,&obj0,&obj1,&obj2)) goto fail;
8817 {
8818 arg1 = wxString_in_helper(obj0);
8819 if (arg1 == NULL) SWIG_fail;
8820 temp1 = True;
8821 }
8822 if (obj1) {
c32bde28 8823 arg2 = (long)SWIG_As_long(obj1);
d55e5bfc
RD
8824 if (PyErr_Occurred()) SWIG_fail;
8825 }
8826 if (obj2) {
c32bde28 8827 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
8828 if (PyErr_Occurred()) SWIG_fail;
8829 }
8830 {
8831 PyThreadState* __tstate = wxPyBeginAllowThreads();
8832 result = (wxImage *)new wxImage((wxString const &)*arg1,arg2,arg3);
8833
8834 wxPyEndAllowThreads(__tstate);
8835 if (PyErr_Occurred()) SWIG_fail;
8836 }
8837 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
8838 {
8839 if (temp1)
8840 delete arg1;
8841 }
8842 return resultobj;
8843 fail:
8844 {
8845 if (temp1)
8846 delete arg1;
8847 }
8848 return NULL;
8849}
8850
8851
c32bde28 8852static PyObject *_wrap_delete_Image(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8853 PyObject *resultobj;
8854 wxImage *arg1 = (wxImage *) 0 ;
8855 PyObject * obj0 = 0 ;
8856 char *kwnames[] = {
8857 (char *) "self", NULL
8858 };
8859
8860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Image",kwnames,&obj0)) goto fail;
8861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
8862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8863 {
8864 PyThreadState* __tstate = wxPyBeginAllowThreads();
8865 delete arg1;
8866
8867 wxPyEndAllowThreads(__tstate);
8868 if (PyErr_Occurred()) SWIG_fail;
8869 }
8870 Py_INCREF(Py_None); resultobj = Py_None;
8871 return resultobj;
8872 fail:
8873 return NULL;
8874}
8875
8876
c32bde28 8877static PyObject *_wrap_new_ImageFromMime(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8878 PyObject *resultobj;
8879 wxString *arg1 = 0 ;
8880 wxString *arg2 = 0 ;
8881 int arg3 = (int) -1 ;
8882 wxImage *result;
8883 bool temp1 = False ;
8884 bool temp2 = False ;
8885 PyObject * obj0 = 0 ;
8886 PyObject * obj1 = 0 ;
8887 PyObject * obj2 = 0 ;
8888 char *kwnames[] = {
8889 (char *) "name",(char *) "mimetype",(char *) "index", NULL
8890 };
8891
8892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromMime",kwnames,&obj0,&obj1,&obj2)) goto fail;
8893 {
8894 arg1 = wxString_in_helper(obj0);
8895 if (arg1 == NULL) SWIG_fail;
8896 temp1 = True;
8897 }
8898 {
8899 arg2 = wxString_in_helper(obj1);
8900 if (arg2 == NULL) SWIG_fail;
8901 temp2 = True;
8902 }
8903 if (obj2) {
c32bde28 8904 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
8905 if (PyErr_Occurred()) SWIG_fail;
8906 }
8907 {
8908 PyThreadState* __tstate = wxPyBeginAllowThreads();
8909 result = (wxImage *)new wxImage((wxString const &)*arg1,(wxString const &)*arg2,arg3);
8910
8911 wxPyEndAllowThreads(__tstate);
8912 if (PyErr_Occurred()) SWIG_fail;
8913 }
8914 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
8915 {
8916 if (temp1)
8917 delete arg1;
8918 }
8919 {
8920 if (temp2)
8921 delete arg2;
8922 }
8923 return resultobj;
8924 fail:
8925 {
8926 if (temp1)
8927 delete arg1;
8928 }
8929 {
8930 if (temp2)
8931 delete arg2;
8932 }
8933 return NULL;
8934}
8935
8936
c32bde28 8937static PyObject *_wrap_new_ImageFromStream(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8938 PyObject *resultobj;
8939 wxInputStream *arg1 = 0 ;
8940 long arg2 = (long) wxBITMAP_TYPE_ANY ;
8941 int arg3 = (int) -1 ;
8942 wxImage *result;
8943 wxPyInputStream *temp1 ;
8944 bool created1 ;
8945 PyObject * obj0 = 0 ;
8946 PyObject * obj1 = 0 ;
8947 PyObject * obj2 = 0 ;
8948 char *kwnames[] = {
8949 (char *) "stream",(char *) "type",(char *) "index", NULL
8950 };
8951
8952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_ImageFromStream",kwnames,&obj0,&obj1,&obj2)) goto fail;
8953 {
8954 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
8955 arg1 = temp1->m_wxis;
8956 created1 = False;
8957 } else {
8958 PyErr_Clear(); // clear the failure of the wxPyConvert above
8959 arg1 = wxPyCBInputStream_create(obj0, False);
8960 if (arg1 == NULL) {
8961 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
8962 SWIG_fail;
8963 }
8964 created1 = True;
8965 }
8966 }
8967 if (obj1) {
c32bde28 8968 arg2 = (long)SWIG_As_long(obj1);
d55e5bfc
RD
8969 if (PyErr_Occurred()) SWIG_fail;
8970 }
8971 if (obj2) {
c32bde28 8972 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
8973 if (PyErr_Occurred()) SWIG_fail;
8974 }
8975 {
8976 PyThreadState* __tstate = wxPyBeginAllowThreads();
8977 result = (wxImage *)new wxImage(*arg1,arg2,arg3);
8978
8979 wxPyEndAllowThreads(__tstate);
8980 if (PyErr_Occurred()) SWIG_fail;
8981 }
8982 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
8983 {
8984 if (created1)
8985 delete arg1;
8986 }
8987 return resultobj;
8988 fail:
8989 {
8990 if (created1)
8991 delete arg1;
8992 }
8993 return NULL;
8994}
8995
8996
c32bde28 8997static PyObject *_wrap_new_ImageFromStreamMime(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8998 PyObject *resultobj;
8999 wxInputStream *arg1 = 0 ;
9000 wxString *arg2 = 0 ;
9001 int arg3 = (int) -1 ;
9002 wxImage *result;
9003 wxPyInputStream *temp1 ;
9004 bool created1 ;
9005 bool temp2 = False ;
9006 PyObject * obj0 = 0 ;
9007 PyObject * obj1 = 0 ;
9008 PyObject * obj2 = 0 ;
9009 char *kwnames[] = {
9010 (char *) "stream",(char *) "mimetype",(char *) "index", NULL
9011 };
9012
9013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromStreamMime",kwnames,&obj0,&obj1,&obj2)) goto fail;
9014 {
9015 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
9016 arg1 = temp1->m_wxis;
9017 created1 = False;
9018 } else {
9019 PyErr_Clear(); // clear the failure of the wxPyConvert above
9020 arg1 = wxPyCBInputStream_create(obj0, False);
9021 if (arg1 == NULL) {
9022 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
9023 SWIG_fail;
9024 }
9025 created1 = True;
9026 }
9027 }
9028 {
9029 arg2 = wxString_in_helper(obj1);
9030 if (arg2 == NULL) SWIG_fail;
9031 temp2 = True;
9032 }
9033 if (obj2) {
c32bde28 9034 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
9035 if (PyErr_Occurred()) SWIG_fail;
9036 }
9037 {
9038 PyThreadState* __tstate = wxPyBeginAllowThreads();
9039 result = (wxImage *)new wxImage(*arg1,(wxString const &)*arg2,arg3);
9040
9041 wxPyEndAllowThreads(__tstate);
9042 if (PyErr_Occurred()) SWIG_fail;
9043 }
9044 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
9045 {
9046 if (created1)
9047 delete arg1;
9048 }
9049 {
9050 if (temp2)
9051 delete arg2;
9052 }
9053 return resultobj;
9054 fail:
9055 {
9056 if (created1)
9057 delete arg1;
9058 }
9059 {
9060 if (temp2)
9061 delete arg2;
9062 }
9063 return NULL;
9064}
9065
9066
c32bde28 9067static PyObject *_wrap_new_EmptyImage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9068 PyObject *resultobj;
9069 int arg1 = (int) 0 ;
9070 int arg2 = (int) 0 ;
9071 bool arg3 = (bool) True ;
9072 wxImage *result;
9073 PyObject * obj0 = 0 ;
9074 PyObject * obj1 = 0 ;
9075 PyObject * obj2 = 0 ;
c24da6d6
RD
9076 char *kwnames[] = {
9077 (char *) "width",(char *) "height",(char *) "clear", NULL
9078 };
d55e5bfc 9079
c24da6d6 9080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_EmptyImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc 9081 if (obj0) {
c32bde28 9082 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
9083 if (PyErr_Occurred()) SWIG_fail;
9084 }
9085 if (obj1) {
c32bde28 9086 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
9087 if (PyErr_Occurred()) SWIG_fail;
9088 }
9089 if (obj2) {
c32bde28 9090 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
9091 if (PyErr_Occurred()) SWIG_fail;
9092 }
9093 {
9094 PyThreadState* __tstate = wxPyBeginAllowThreads();
c24da6d6 9095 result = (wxImage *)new_wxImage(arg1,arg2,arg3);
d55e5bfc
RD
9096
9097 wxPyEndAllowThreads(__tstate);
9098 if (PyErr_Occurred()) SWIG_fail;
9099 }
9100 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
9101 return resultobj;
9102 fail:
9103 return NULL;
9104}
9105
9106
c32bde28 9107static PyObject *_wrap_new_ImageFromBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9108 PyObject *resultobj;
9109 wxBitmap *arg1 = 0 ;
9110 wxImage *result;
9111 PyObject * obj0 = 0 ;
9112 char *kwnames[] = {
9113 (char *) "bitmap", NULL
9114 };
9115
9116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ImageFromBitmap",kwnames,&obj0)) goto fail;
9117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
9118 SWIG_POINTER_EXCEPTION | 0)) == -1)
9119 SWIG_fail;
9120 if (arg1 == NULL) {
9121 PyErr_SetString(PyExc_TypeError,"null reference");
9122 SWIG_fail;
9123 }
9124 {
0439c23b 9125 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
9126 PyThreadState* __tstate = wxPyBeginAllowThreads();
9127 result = (wxImage *)new_wxImage((wxBitmap const &)*arg1);
9128
9129 wxPyEndAllowThreads(__tstate);
110da5b0 9130 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
9131 }
9132 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
9133 return resultobj;
9134 fail:
9135 return NULL;
9136}
9137
9138
c32bde28 9139static PyObject *_wrap_new_ImageFromData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9140 PyObject *resultobj;
9141 int arg1 ;
9142 int arg2 ;
9143 unsigned char *arg3 = (unsigned char *) 0 ;
9144 wxImage *result;
9145 PyObject * obj0 = 0 ;
9146 PyObject * obj1 = 0 ;
9147 PyObject * obj2 = 0 ;
9148 char *kwnames[] = {
9149 (char *) "width",(char *) "height",(char *) "data", NULL
9150 };
9151
9152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ImageFromData",kwnames,&obj0,&obj1,&obj2)) goto fail;
c32bde28 9153 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc 9154 if (PyErr_Occurred()) SWIG_fail;
c32bde28 9155 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
9156 if (PyErr_Occurred()) SWIG_fail;
9157 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
9158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9159 {
9160 PyThreadState* __tstate = wxPyBeginAllowThreads();
9161 result = (wxImage *)new_wxImage(arg1,arg2,arg3);
9162
9163 wxPyEndAllowThreads(__tstate);
9164 if (PyErr_Occurred()) SWIG_fail;
9165 }
9166 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
9167 return resultobj;
9168 fail:
9169 return NULL;
9170}
9171
9172
c32bde28 9173static PyObject *_wrap_Image_Create(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9174 PyObject *resultobj;
9175 wxImage *arg1 = (wxImage *) 0 ;
9176 int arg2 ;
9177 int arg3 ;
9178 PyObject * obj0 = 0 ;
9179 PyObject * obj1 = 0 ;
9180 PyObject * obj2 = 0 ;
9181 char *kwnames[] = {
9182 (char *) "self",(char *) "width",(char *) "height", NULL
9183 };
9184
9185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Create",kwnames,&obj0,&obj1,&obj2)) goto fail;
9186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 9188 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 9189 if (PyErr_Occurred()) SWIG_fail;
c32bde28 9190 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
9191 if (PyErr_Occurred()) SWIG_fail;
9192 {
9193 PyThreadState* __tstate = wxPyBeginAllowThreads();
9194 (arg1)->Create(arg2,arg3);
9195
9196 wxPyEndAllowThreads(__tstate);
9197 if (PyErr_Occurred()) SWIG_fail;
9198 }
9199 Py_INCREF(Py_None); resultobj = Py_None;
9200 return resultobj;
9201 fail:
9202 return NULL;
9203}
9204
9205
c32bde28 9206static PyObject *_wrap_Image_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9207 PyObject *resultobj;
9208 wxImage *arg1 = (wxImage *) 0 ;
9209 PyObject * obj0 = 0 ;
9210 char *kwnames[] = {
9211 (char *) "self", NULL
9212 };
9213
9214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Destroy",kwnames,&obj0)) goto fail;
9215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9217 {
9218 PyThreadState* __tstate = wxPyBeginAllowThreads();
9219 (arg1)->Destroy();
9220
9221 wxPyEndAllowThreads(__tstate);
9222 if (PyErr_Occurred()) SWIG_fail;
9223 }
9224 Py_INCREF(Py_None); resultobj = Py_None;
9225 return resultobj;
9226 fail:
9227 return NULL;
9228}
9229
9230
c32bde28 9231static PyObject *_wrap_Image_Scale(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9232 PyObject *resultobj;
9233 wxImage *arg1 = (wxImage *) 0 ;
9234 int arg2 ;
9235 int arg3 ;
9236 SwigValueWrapper< wxImage > result;
9237 PyObject * obj0 = 0 ;
9238 PyObject * obj1 = 0 ;
9239 PyObject * obj2 = 0 ;
9240 char *kwnames[] = {
9241 (char *) "self",(char *) "width",(char *) "height", NULL
9242 };
9243
9244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Scale",kwnames,&obj0,&obj1,&obj2)) goto fail;
9245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 9247 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 9248 if (PyErr_Occurred()) SWIG_fail;
c32bde28 9249 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
9250 if (PyErr_Occurred()) SWIG_fail;
9251 {
9252 PyThreadState* __tstate = wxPyBeginAllowThreads();
9253 result = (arg1)->Scale(arg2,arg3);
9254
9255 wxPyEndAllowThreads(__tstate);
9256 if (PyErr_Occurred()) SWIG_fail;
9257 }
9258 {
9259 wxImage * resultptr;
9260 resultptr = new wxImage((wxImage &) result);
9261 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
9262 }
9263 return resultobj;
9264 fail:
9265 return NULL;
9266}
9267
9268
c32bde28 9269static PyObject *_wrap_Image_ShrinkBy(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9270 PyObject *resultobj;
9271 wxImage *arg1 = (wxImage *) 0 ;
9272 int arg2 ;
9273 int arg3 ;
9274 SwigValueWrapper< wxImage > result;
9275 PyObject * obj0 = 0 ;
9276 PyObject * obj1 = 0 ;
9277 PyObject * obj2 = 0 ;
9278 char *kwnames[] = {
9279 (char *) "self",(char *) "xFactor",(char *) "yFactor", NULL
9280 };
9281
9282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ShrinkBy",kwnames,&obj0,&obj1,&obj2)) goto fail;
9283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 9285 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 9286 if (PyErr_Occurred()) SWIG_fail;
c32bde28 9287 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
9288 if (PyErr_Occurred()) SWIG_fail;
9289 {
9290 PyThreadState* __tstate = wxPyBeginAllowThreads();
9291 result = ((wxImage const *)arg1)->ShrinkBy(arg2,arg3);
9292
9293 wxPyEndAllowThreads(__tstate);
9294 if (PyErr_Occurred()) SWIG_fail;
9295 }
9296 {
9297 wxImage * resultptr;
9298 resultptr = new wxImage((wxImage &) result);
9299 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
9300 }
9301 return resultobj;
9302 fail:
9303 return NULL;
9304}
9305
9306
c32bde28 9307static PyObject *_wrap_Image_Rescale(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9308 PyObject *resultobj;
9309 wxImage *arg1 = (wxImage *) 0 ;
9310 int arg2 ;
9311 int arg3 ;
9312 wxImage *result;
9313 PyObject * obj0 = 0 ;
9314 PyObject * obj1 = 0 ;
9315 PyObject * obj2 = 0 ;
9316 char *kwnames[] = {
9317 (char *) "self",(char *) "width",(char *) "height", NULL
9318 };
9319
9320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Rescale",kwnames,&obj0,&obj1,&obj2)) goto fail;
9321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 9323 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 9324 if (PyErr_Occurred()) SWIG_fail;
c32bde28 9325 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
9326 if (PyErr_Occurred()) SWIG_fail;
9327 {
9328 PyThreadState* __tstate = wxPyBeginAllowThreads();
9329 {
9330 wxImage &_result_ref = (arg1)->Rescale(arg2,arg3);
9331 result = (wxImage *) &_result_ref;
9332 }
9333
9334 wxPyEndAllowThreads(__tstate);
9335 if (PyErr_Occurred()) SWIG_fail;
9336 }
9337 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 0);
9338 return resultobj;
9339 fail:
9340 return NULL;
9341}
9342
9343
c32bde28 9344static PyObject *_wrap_Image_SetRGB(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9345 PyObject *resultobj;
9346 wxImage *arg1 = (wxImage *) 0 ;
9347 int arg2 ;
9348 int arg3 ;
9349 unsigned char arg4 ;
9350 unsigned char arg5 ;
9351 unsigned char arg6 ;
9352 PyObject * obj0 = 0 ;
9353 PyObject * obj1 = 0 ;
9354 PyObject * obj2 = 0 ;
9355 PyObject * obj3 = 0 ;
9356 PyObject * obj4 = 0 ;
9357 PyObject * obj5 = 0 ;
9358 char *kwnames[] = {
9359 (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "g",(char *) "b", NULL
9360 };
9361
9362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Image_SetRGB",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 9365 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 9366 if (PyErr_Occurred()) SWIG_fail;
c32bde28 9367 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 9368 if (PyErr_Occurred()) SWIG_fail;
c32bde28 9369 arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3);
d55e5bfc 9370 if (PyErr_Occurred()) SWIG_fail;
c32bde28 9371 arg5 = (unsigned char)SWIG_As_unsigned_SS_char(obj4);
d55e5bfc 9372 if (PyErr_Occurred()) SWIG_fail;
c32bde28 9373 arg6 = (unsigned char)SWIG_As_unsigned_SS_char(obj5);
d55e5bfc
RD
9374 if (PyErr_Occurred()) SWIG_fail;
9375 {
9376 PyThreadState* __tstate = wxPyBeginAllowThreads();
9377 (arg1)->SetRGB(arg2,arg3,arg4,arg5,arg6);
9378
9379 wxPyEndAllowThreads(__tstate);
9380 if (PyErr_Occurred()) SWIG_fail;
9381 }
9382 Py_INCREF(Py_None); resultobj = Py_None;
9383 return resultobj;
9384 fail:
9385 return NULL;
9386}
9387
9388
c32bde28 9389static PyObject *_wrap_Image_GetRed(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9390 PyObject *resultobj;
9391 wxImage *arg1 = (wxImage *) 0 ;
9392 int arg2 ;
9393 int arg3 ;
9394 unsigned char result;
9395 PyObject * obj0 = 0 ;
9396 PyObject * obj1 = 0 ;
9397 PyObject * obj2 = 0 ;
9398 char *kwnames[] = {
9399 (char *) "self",(char *) "x",(char *) "y", NULL
9400 };
9401
9402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetRed",kwnames,&obj0,&obj1,&obj2)) goto fail;
9403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 9405 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 9406 if (PyErr_Occurred()) SWIG_fail;
c32bde28 9407 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
9408 if (PyErr_Occurred()) SWIG_fail;
9409 {
9410 PyThreadState* __tstate = wxPyBeginAllowThreads();
9411 result = (unsigned char)(arg1)->GetRed(arg2,arg3);
9412
9413 wxPyEndAllowThreads(__tstate);
9414 if (PyErr_Occurred()) SWIG_fail;
9415 }
c32bde28 9416 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
d55e5bfc
RD
9417 return resultobj;
9418 fail:
9419 return NULL;
9420}
9421
9422
c32bde28 9423static PyObject *_wrap_Image_GetGreen(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9424 PyObject *resultobj;
9425 wxImage *arg1 = (wxImage *) 0 ;
9426 int arg2 ;
9427 int arg3 ;
9428 unsigned char result;
9429 PyObject * obj0 = 0 ;
9430 PyObject * obj1 = 0 ;
9431 PyObject * obj2 = 0 ;
9432 char *kwnames[] = {
9433 (char *) "self",(char *) "x",(char *) "y", NULL
9434 };
9435
9436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetGreen",kwnames,&obj0,&obj1,&obj2)) goto fail;
9437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 9439 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 9440 if (PyErr_Occurred()) SWIG_fail;
c32bde28 9441 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
9442 if (PyErr_Occurred()) SWIG_fail;
9443 {
9444 PyThreadState* __tstate = wxPyBeginAllowThreads();
9445 result = (unsigned char)(arg1)->GetGreen(arg2,arg3);
9446
9447 wxPyEndAllowThreads(__tstate);
9448 if (PyErr_Occurred()) SWIG_fail;
9449 }
c32bde28 9450 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
d55e5bfc
RD
9451 return resultobj;
9452 fail:
9453 return NULL;
9454}
9455
9456
c32bde28 9457static PyObject *_wrap_Image_GetBlue(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9458 PyObject *resultobj;
9459 wxImage *arg1 = (wxImage *) 0 ;
9460 int arg2 ;
9461 int arg3 ;
9462 unsigned char result;
9463 PyObject * obj0 = 0 ;
9464 PyObject * obj1 = 0 ;
9465 PyObject * obj2 = 0 ;
9466 char *kwnames[] = {
9467 (char *) "self",(char *) "x",(char *) "y", NULL
9468 };
9469
9470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetBlue",kwnames,&obj0,&obj1,&obj2)) goto fail;
9471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 9473 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 9474 if (PyErr_Occurred()) SWIG_fail;
c32bde28 9475 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
9476 if (PyErr_Occurred()) SWIG_fail;
9477 {
9478 PyThreadState* __tstate = wxPyBeginAllowThreads();
9479 result = (unsigned char)(arg1)->GetBlue(arg2,arg3);
9480
9481 wxPyEndAllowThreads(__tstate);
9482 if (PyErr_Occurred()) SWIG_fail;
9483 }
c32bde28 9484 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
d55e5bfc
RD
9485 return resultobj;
9486 fail:
9487 return NULL;
9488}
9489
9490
c32bde28 9491static PyObject *_wrap_Image_SetAlpha(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9492 PyObject *resultobj;
9493 wxImage *arg1 = (wxImage *) 0 ;
9494 int arg2 ;
9495 int arg3 ;
9496 unsigned char arg4 ;
9497 PyObject * obj0 = 0 ;
9498 PyObject * obj1 = 0 ;
9499 PyObject * obj2 = 0 ;
9500 PyObject * obj3 = 0 ;
9501 char *kwnames[] = {
9502 (char *) "self",(char *) "x",(char *) "y",(char *) "alpha", NULL
9503 };
9504
9505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 9508 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 9509 if (PyErr_Occurred()) SWIG_fail;
c32bde28 9510 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 9511 if (PyErr_Occurred()) SWIG_fail;
c32bde28 9512 arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3);
d55e5bfc
RD
9513 if (PyErr_Occurred()) SWIG_fail;
9514 {
9515 PyThreadState* __tstate = wxPyBeginAllowThreads();
9516 (arg1)->SetAlpha(arg2,arg3,arg4);
9517
9518 wxPyEndAllowThreads(__tstate);
9519 if (PyErr_Occurred()) SWIG_fail;
9520 }
9521 Py_INCREF(Py_None); resultobj = Py_None;
9522 return resultobj;
9523 fail:
9524 return NULL;
9525}
9526
9527
c32bde28 9528static PyObject *_wrap_Image_GetAlpha(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9529 PyObject *resultobj;
9530 wxImage *arg1 = (wxImage *) 0 ;
9531 int arg2 ;
9532 int arg3 ;
9533 unsigned char result;
9534 PyObject * obj0 = 0 ;
9535 PyObject * obj1 = 0 ;
9536 PyObject * obj2 = 0 ;
9537 char *kwnames[] = {
9538 (char *) "self",(char *) "x",(char *) "y", NULL
9539 };
9540
9541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetAlpha",kwnames,&obj0,&obj1,&obj2)) goto fail;
9542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 9544 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 9545 if (PyErr_Occurred()) SWIG_fail;
c32bde28 9546 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
9547 if (PyErr_Occurred()) SWIG_fail;
9548 {
9549 PyThreadState* __tstate = wxPyBeginAllowThreads();
9550 result = (unsigned char)(arg1)->GetAlpha(arg2,arg3);
9551
9552 wxPyEndAllowThreads(__tstate);
9553 if (PyErr_Occurred()) SWIG_fail;
9554 }
c32bde28 9555 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
d55e5bfc
RD
9556 return resultobj;
9557 fail:
9558 return NULL;
9559}
9560
9561
c32bde28 9562static PyObject *_wrap_Image_HasAlpha(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9563 PyObject *resultobj;
9564 wxImage *arg1 = (wxImage *) 0 ;
9565 bool result;
9566 PyObject * obj0 = 0 ;
9567 char *kwnames[] = {
9568 (char *) "self", NULL
9569 };
9570
9571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasAlpha",kwnames,&obj0)) goto fail;
9572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9574 {
9575 PyThreadState* __tstate = wxPyBeginAllowThreads();
9576 result = (bool)(arg1)->HasAlpha();
9577
9578 wxPyEndAllowThreads(__tstate);
9579 if (PyErr_Occurred()) SWIG_fail;
9580 }
9581 {
9582 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9583 }
9584 return resultobj;
9585 fail:
9586 return NULL;
9587}
9588
9589
c32bde28 9590static PyObject *_wrap_Image_FindFirstUnusedColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9591 PyObject *resultobj;
9592 wxImage *arg1 = (wxImage *) 0 ;
9593 byte *arg2 = (byte *) 0 ;
9594 byte *arg3 = (byte *) 0 ;
9595 byte *arg4 = (byte *) 0 ;
9596 byte arg5 = (byte) 0 ;
9597 byte arg6 = (byte) 0 ;
9598 byte arg7 = (byte) 0 ;
9599 bool result;
9600 byte temp2 ;
c32bde28 9601 int res2 = 0 ;
d55e5bfc 9602 byte temp3 ;
c32bde28 9603 int res3 = 0 ;
d55e5bfc 9604 byte temp4 ;
c32bde28 9605 int res4 = 0 ;
d55e5bfc
RD
9606 PyObject * obj0 = 0 ;
9607 PyObject * obj1 = 0 ;
9608 PyObject * obj2 = 0 ;
9609 PyObject * obj3 = 0 ;
9610 char *kwnames[] = {
9611 (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL
9612 };
9613
c32bde28
RD
9614 arg2 = &temp2; res2 = SWIG_NEWOBJ;
9615 arg3 = &temp3; res3 = SWIG_NEWOBJ;
9616 arg4 = &temp4; res4 = SWIG_NEWOBJ;
d55e5bfc
RD
9617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9620 if (obj1) {
c32bde28 9621 arg5 = (byte)SWIG_As_unsigned_SS_char(obj1);
d55e5bfc
RD
9622 if (PyErr_Occurred()) SWIG_fail;
9623 }
9624 if (obj2) {
c32bde28 9625 arg6 = (byte)SWIG_As_unsigned_SS_char(obj2);
d55e5bfc
RD
9626 if (PyErr_Occurred()) SWIG_fail;
9627 }
9628 if (obj3) {
c32bde28 9629 arg7 = (byte)SWIG_As_unsigned_SS_char(obj3);
d55e5bfc
RD
9630 if (PyErr_Occurred()) SWIG_fail;
9631 }
9632 {
9633 PyThreadState* __tstate = wxPyBeginAllowThreads();
9634 result = (bool)((wxImage const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7);
9635
9636 wxPyEndAllowThreads(__tstate);
9637 if (PyErr_Occurred()) SWIG_fail;
9638 }
9639 {
9640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9641 }
c32bde28
RD
9642 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
9643 SWIG_From_unsigned_SS_char((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_byte, 0)));
9644 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
9645 SWIG_From_unsigned_SS_char((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_byte, 0)));
9646 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
9647 SWIG_From_unsigned_SS_char((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_byte, 0)));
d55e5bfc
RD
9648 return resultobj;
9649 fail:
9650 return NULL;
9651}
9652
9653
c32bde28 9654static PyObject *_wrap_Image_ConvertAlphaToMask(PyObject *, PyObject *args, PyObject *kwargs) {
4cf4100f
RD
9655 PyObject *resultobj;
9656 wxImage *arg1 = (wxImage *) 0 ;
9657 byte arg2 = (byte) 128 ;
9658 bool result;
9659 PyObject * obj0 = 0 ;
9660 PyObject * obj1 = 0 ;
9661 char *kwnames[] = {
9662 (char *) "self",(char *) "threshold", NULL
9663 };
9664
9665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_ConvertAlphaToMask",kwnames,&obj0,&obj1)) goto fail;
9666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9668 if (obj1) {
c32bde28 9669 arg2 = (byte)SWIG_As_unsigned_SS_char(obj1);
4cf4100f
RD
9670 if (PyErr_Occurred()) SWIG_fail;
9671 }
9672 {
9673 PyThreadState* __tstate = wxPyBeginAllowThreads();
9674 result = (bool)(arg1)->ConvertAlphaToMask(arg2);
9675
9676 wxPyEndAllowThreads(__tstate);
9677 if (PyErr_Occurred()) SWIG_fail;
9678 }
9679 {
9680 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9681 }
9682 return resultobj;
9683 fail:
9684 return NULL;
9685}
9686
9687
c32bde28 9688static PyObject *_wrap_Image_SetMaskFromImage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9689 PyObject *resultobj;
9690 wxImage *arg1 = (wxImage *) 0 ;
9691 wxImage *arg2 = 0 ;
9692 byte arg3 ;
9693 byte arg4 ;
9694 byte arg5 ;
9695 bool result;
9696 PyObject * obj0 = 0 ;
9697 PyObject * obj1 = 0 ;
9698 PyObject * obj2 = 0 ;
9699 PyObject * obj3 = 0 ;
9700 PyObject * obj4 = 0 ;
9701 char *kwnames[] = {
9702 (char *) "self",(char *) "mask",(char *) "mr",(char *) "mg",(char *) "mb", NULL
9703 };
9704
9705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetMaskFromImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
9706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9708 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage,
9709 SWIG_POINTER_EXCEPTION | 0)) == -1)
9710 SWIG_fail;
9711 if (arg2 == NULL) {
9712 PyErr_SetString(PyExc_TypeError,"null reference");
9713 SWIG_fail;
9714 }
c32bde28 9715 arg3 = (byte)SWIG_As_unsigned_SS_char(obj2);
d55e5bfc 9716 if (PyErr_Occurred()) SWIG_fail;
c32bde28 9717 arg4 = (byte)SWIG_As_unsigned_SS_char(obj3);
d55e5bfc 9718 if (PyErr_Occurred()) SWIG_fail;
c32bde28 9719 arg5 = (byte)SWIG_As_unsigned_SS_char(obj4);
d55e5bfc
RD
9720 if (PyErr_Occurred()) SWIG_fail;
9721 {
9722 PyThreadState* __tstate = wxPyBeginAllowThreads();
9723 result = (bool)(arg1)->SetMaskFromImage((wxImage const &)*arg2,arg3,arg4,arg5);
9724
9725 wxPyEndAllowThreads(__tstate);
9726 if (PyErr_Occurred()) SWIG_fail;
9727 }
9728 {
9729 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9730 }
9731 return resultobj;
9732 fail:
9733 return NULL;
9734}
9735
9736
c32bde28 9737static PyObject *_wrap_Image_CanRead(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9738 PyObject *resultobj;
9739 wxString *arg1 = 0 ;
9740 bool result;
9741 bool temp1 = False ;
9742 PyObject * obj0 = 0 ;
9743 char *kwnames[] = {
9744 (char *) "name", NULL
9745 };
9746
9747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanRead",kwnames,&obj0)) goto fail;
9748 {
9749 arg1 = wxString_in_helper(obj0);
9750 if (arg1 == NULL) SWIG_fail;
9751 temp1 = True;
9752 }
9753 {
9754 PyThreadState* __tstate = wxPyBeginAllowThreads();
9755 result = (bool)wxImage::CanRead((wxString const &)*arg1);
9756
9757 wxPyEndAllowThreads(__tstate);
9758 if (PyErr_Occurred()) SWIG_fail;
9759 }
9760 {
9761 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9762 }
9763 {
9764 if (temp1)
9765 delete arg1;
9766 }
9767 return resultobj;
9768 fail:
9769 {
9770 if (temp1)
9771 delete arg1;
9772 }
9773 return NULL;
9774}
9775
9776
c32bde28 9777static PyObject *_wrap_Image_GetImageCount(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9778 PyObject *resultobj;
9779 wxString *arg1 = 0 ;
9780 long arg2 = (long) wxBITMAP_TYPE_ANY ;
9781 int result;
9782 bool temp1 = False ;
9783 PyObject * obj0 = 0 ;
9784 PyObject * obj1 = 0 ;
9785 char *kwnames[] = {
9786 (char *) "name",(char *) "type", NULL
9787 };
9788
9789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_GetImageCount",kwnames,&obj0,&obj1)) goto fail;
9790 {
9791 arg1 = wxString_in_helper(obj0);
9792 if (arg1 == NULL) SWIG_fail;
9793 temp1 = True;
9794 }
9795 if (obj1) {
c32bde28 9796 arg2 = (long)SWIG_As_long(obj1);
d55e5bfc
RD
9797 if (PyErr_Occurred()) SWIG_fail;
9798 }
9799 {
9800 PyThreadState* __tstate = wxPyBeginAllowThreads();
9801 result = (int)wxImage::GetImageCount((wxString const &)*arg1,arg2);
9802
9803 wxPyEndAllowThreads(__tstate);
9804 if (PyErr_Occurred()) SWIG_fail;
9805 }
c32bde28 9806 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
9807 {
9808 if (temp1)
9809 delete arg1;
9810 }
9811 return resultobj;
9812 fail:
9813 {
9814 if (temp1)
9815 delete arg1;
9816 }
9817 return NULL;
9818}
9819
9820
c32bde28 9821static PyObject *_wrap_Image_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9822 PyObject *resultobj;
9823 wxImage *arg1 = (wxImage *) 0 ;
9824 wxString *arg2 = 0 ;
9825 long arg3 = (long) wxBITMAP_TYPE_ANY ;
9826 int arg4 = (int) -1 ;
9827 bool result;
9828 bool temp2 = False ;
9829 PyObject * obj0 = 0 ;
9830 PyObject * obj1 = 0 ;
9831 PyObject * obj2 = 0 ;
9832 PyObject * obj3 = 0 ;
9833 char *kwnames[] = {
9834 (char *) "self",(char *) "name",(char *) "type",(char *) "index", NULL
9835 };
9836
9837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9840 {
9841 arg2 = wxString_in_helper(obj1);
9842 if (arg2 == NULL) SWIG_fail;
9843 temp2 = True;
9844 }
9845 if (obj2) {
c32bde28 9846 arg3 = (long)SWIG_As_long(obj2);
d55e5bfc
RD
9847 if (PyErr_Occurred()) SWIG_fail;
9848 }
9849 if (obj3) {
c32bde28 9850 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
9851 if (PyErr_Occurred()) SWIG_fail;
9852 }
9853 {
9854 PyThreadState* __tstate = wxPyBeginAllowThreads();
9855 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3,arg4);
9856
9857 wxPyEndAllowThreads(__tstate);
9858 if (PyErr_Occurred()) SWIG_fail;
9859 }
9860 {
9861 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9862 }
9863 {
9864 if (temp2)
9865 delete arg2;
9866 }
9867 return resultobj;
9868 fail:
9869 {
9870 if (temp2)
9871 delete arg2;
9872 }
9873 return NULL;
9874}
9875
9876
c32bde28 9877static PyObject *_wrap_Image_LoadMimeFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9878 PyObject *resultobj;
9879 wxImage *arg1 = (wxImage *) 0 ;
9880 wxString *arg2 = 0 ;
9881 wxString *arg3 = 0 ;
9882 int arg4 = (int) -1 ;
9883 bool result;
9884 bool temp2 = False ;
9885 bool temp3 = False ;
9886 PyObject * obj0 = 0 ;
9887 PyObject * obj1 = 0 ;
9888 PyObject * obj2 = 0 ;
9889 PyObject * obj3 = 0 ;
9890 char *kwnames[] = {
9891 (char *) "self",(char *) "name",(char *) "mimetype",(char *) "index", NULL
9892 };
9893
9894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9897 {
9898 arg2 = wxString_in_helper(obj1);
9899 if (arg2 == NULL) SWIG_fail;
9900 temp2 = True;
9901 }
9902 {
9903 arg3 = wxString_in_helper(obj2);
9904 if (arg3 == NULL) SWIG_fail;
9905 temp3 = True;
9906 }
9907 if (obj3) {
c32bde28 9908 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
9909 if (PyErr_Occurred()) SWIG_fail;
9910 }
9911 {
9912 PyThreadState* __tstate = wxPyBeginAllowThreads();
9913 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxString const &)*arg3,arg4);
9914
9915 wxPyEndAllowThreads(__tstate);
9916 if (PyErr_Occurred()) SWIG_fail;
9917 }
9918 {
9919 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9920 }
9921 {
9922 if (temp2)
9923 delete arg2;
9924 }
9925 {
9926 if (temp3)
9927 delete arg3;
9928 }
9929 return resultobj;
9930 fail:
9931 {
9932 if (temp2)
9933 delete arg2;
9934 }
9935 {
9936 if (temp3)
9937 delete arg3;
9938 }
9939 return NULL;
9940}
9941
9942
c32bde28 9943static PyObject *_wrap_Image_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9944 PyObject *resultobj;
9945 wxImage *arg1 = (wxImage *) 0 ;
9946 wxString *arg2 = 0 ;
9947 int arg3 ;
9948 bool result;
9949 bool temp2 = False ;
9950 PyObject * obj0 = 0 ;
9951 PyObject * obj1 = 0 ;
9952 PyObject * obj2 = 0 ;
9953 char *kwnames[] = {
9954 (char *) "self",(char *) "name",(char *) "type", NULL
9955 };
9956
9957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
9958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9960 {
9961 arg2 = wxString_in_helper(obj1);
9962 if (arg2 == NULL) SWIG_fail;
9963 temp2 = True;
9964 }
c32bde28 9965 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
9966 if (PyErr_Occurred()) SWIG_fail;
9967 {
9968 PyThreadState* __tstate = wxPyBeginAllowThreads();
9969 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3);
9970
9971 wxPyEndAllowThreads(__tstate);
9972 if (PyErr_Occurred()) SWIG_fail;
9973 }
9974 {
9975 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9976 }
9977 {
9978 if (temp2)
9979 delete arg2;
9980 }
9981 return resultobj;
9982 fail:
9983 {
9984 if (temp2)
9985 delete arg2;
9986 }
9987 return NULL;
9988}
9989
9990
c32bde28 9991static PyObject *_wrap_Image_SaveMimeFile(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
9992 PyObject *resultobj;
9993 wxImage *arg1 = (wxImage *) 0 ;
9994 wxString *arg2 = 0 ;
9995 wxString *arg3 = 0 ;
9996 bool result;
9997 bool temp2 = False ;
9998 bool temp3 = False ;
9999 PyObject * obj0 = 0 ;
10000 PyObject * obj1 = 0 ;
10001 PyObject * obj2 = 0 ;
10002 char *kwnames[] = {
10003 (char *) "self",(char *) "name",(char *) "mimetype", NULL
10004 };
10005
10006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveMimeFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
10007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10009 {
10010 arg2 = wxString_in_helper(obj1);
10011 if (arg2 == NULL) SWIG_fail;
10012 temp2 = True;
10013 }
10014 {
10015 arg3 = wxString_in_helper(obj2);
10016 if (arg3 == NULL) SWIG_fail;
10017 temp3 = True;
10018 }
10019 {
10020 PyThreadState* __tstate = wxPyBeginAllowThreads();
10021 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxString const &)*arg3);
10022
10023 wxPyEndAllowThreads(__tstate);
10024 if (PyErr_Occurred()) SWIG_fail;
10025 }
10026 {
10027 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10028 }
10029 {
10030 if (temp2)
10031 delete arg2;
10032 }
10033 {
10034 if (temp3)
10035 delete arg3;
10036 }
10037 return resultobj;
10038 fail:
10039 {
10040 if (temp2)
10041 delete arg2;
10042 }
10043 {
10044 if (temp3)
10045 delete arg3;
10046 }
10047 return NULL;
10048}
10049
10050
c32bde28 10051static PyObject *_wrap_Image_CanReadStream(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10052 PyObject *resultobj;
10053 wxInputStream *arg1 = 0 ;
10054 bool result;
10055 wxPyInputStream *temp1 ;
10056 bool created1 ;
10057 PyObject * obj0 = 0 ;
10058 char *kwnames[] = {
10059 (char *) "stream", NULL
10060 };
10061
10062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanReadStream",kwnames,&obj0)) goto fail;
10063 {
10064 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
10065 arg1 = temp1->m_wxis;
10066 created1 = False;
10067 } else {
10068 PyErr_Clear(); // clear the failure of the wxPyConvert above
10069 arg1 = wxPyCBInputStream_create(obj0, False);
10070 if (arg1 == NULL) {
10071 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
10072 SWIG_fail;
10073 }
10074 created1 = True;
10075 }
10076 }
10077 {
10078 PyThreadState* __tstate = wxPyBeginAllowThreads();
10079 result = (bool)wxImage::CanRead(*arg1);
10080
10081 wxPyEndAllowThreads(__tstate);
10082 if (PyErr_Occurred()) SWIG_fail;
10083 }
10084 {
10085 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10086 }
10087 {
10088 if (created1)
10089 delete arg1;
10090 }
10091 return resultobj;
10092 fail:
10093 {
10094 if (created1)
10095 delete arg1;
10096 }
10097 return NULL;
10098}
10099
10100
c32bde28 10101static PyObject *_wrap_Image_LoadStream(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10102 PyObject *resultobj;
10103 wxImage *arg1 = (wxImage *) 0 ;
10104 wxInputStream *arg2 = 0 ;
10105 long arg3 = (long) wxBITMAP_TYPE_ANY ;
10106 int arg4 = (int) -1 ;
10107 bool result;
10108 wxPyInputStream *temp2 ;
10109 bool created2 ;
10110 PyObject * obj0 = 0 ;
10111 PyObject * obj1 = 0 ;
10112 PyObject * obj2 = 0 ;
10113 PyObject * obj3 = 0 ;
10114 char *kwnames[] = {
10115 (char *) "self",(char *) "stream",(char *) "type",(char *) "index", NULL
10116 };
10117
10118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10121 {
10122 if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) {
10123 arg2 = temp2->m_wxis;
10124 created2 = False;
10125 } else {
10126 PyErr_Clear(); // clear the failure of the wxPyConvert above
10127 arg2 = wxPyCBInputStream_create(obj1, False);
10128 if (arg2 == NULL) {
10129 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
10130 SWIG_fail;
10131 }
10132 created2 = True;
10133 }
10134 }
10135 if (obj2) {
c32bde28 10136 arg3 = (long)SWIG_As_long(obj2);
d55e5bfc
RD
10137 if (PyErr_Occurred()) SWIG_fail;
10138 }
10139 if (obj3) {
c32bde28 10140 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
10141 if (PyErr_Occurred()) SWIG_fail;
10142 }
10143 {
10144 PyThreadState* __tstate = wxPyBeginAllowThreads();
10145 result = (bool)(arg1)->LoadFile(*arg2,arg3,arg4);
10146
10147 wxPyEndAllowThreads(__tstate);
10148 if (PyErr_Occurred()) SWIG_fail;
10149 }
10150 {
10151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10152 }
10153 {
10154 if (created2)
10155 delete arg2;
10156 }
10157 return resultobj;
10158 fail:
10159 {
10160 if (created2)
10161 delete arg2;
10162 }
10163 return NULL;
10164}
10165
10166
c32bde28 10167static PyObject *_wrap_Image_LoadMimeStream(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10168 PyObject *resultobj;
10169 wxImage *arg1 = (wxImage *) 0 ;
10170 wxInputStream *arg2 = 0 ;
10171 wxString *arg3 = 0 ;
10172 int arg4 = (int) -1 ;
10173 bool result;
10174 wxPyInputStream *temp2 ;
10175 bool created2 ;
10176 bool temp3 = False ;
10177 PyObject * obj0 = 0 ;
10178 PyObject * obj1 = 0 ;
10179 PyObject * obj2 = 0 ;
10180 PyObject * obj3 = 0 ;
10181 char *kwnames[] = {
10182 (char *) "self",(char *) "stream",(char *) "mimetype",(char *) "index", NULL
10183 };
10184
10185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10188 {
10189 if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) {
10190 arg2 = temp2->m_wxis;
10191 created2 = False;
10192 } else {
10193 PyErr_Clear(); // clear the failure of the wxPyConvert above
10194 arg2 = wxPyCBInputStream_create(obj1, False);
10195 if (arg2 == NULL) {
10196 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
10197 SWIG_fail;
10198 }
10199 created2 = True;
10200 }
10201 }
10202 {
10203 arg3 = wxString_in_helper(obj2);
10204 if (arg3 == NULL) SWIG_fail;
10205 temp3 = True;
10206 }
10207 if (obj3) {
c32bde28 10208 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
10209 if (PyErr_Occurred()) SWIG_fail;
10210 }
10211 {
10212 PyThreadState* __tstate = wxPyBeginAllowThreads();
10213 result = (bool)(arg1)->LoadFile(*arg2,(wxString const &)*arg3,arg4);
10214
10215 wxPyEndAllowThreads(__tstate);
10216 if (PyErr_Occurred()) SWIG_fail;
10217 }
10218 {
10219 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10220 }
10221 {
10222 if (created2)
10223 delete arg2;
10224 }
10225 {
10226 if (temp3)
10227 delete arg3;
10228 }
10229 return resultobj;
10230 fail:
10231 {
10232 if (created2)
10233 delete arg2;
10234 }
10235 {
10236 if (temp3)
10237 delete arg3;
10238 }
10239 return NULL;
10240}
10241
10242
c32bde28 10243static PyObject *_wrap_Image_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10244 PyObject *resultobj;
10245 wxImage *arg1 = (wxImage *) 0 ;
10246 bool result;
10247 PyObject * obj0 = 0 ;
10248 char *kwnames[] = {
10249 (char *) "self", NULL
10250 };
10251
10252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Ok",kwnames,&obj0)) goto fail;
10253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10255 {
10256 PyThreadState* __tstate = wxPyBeginAllowThreads();
10257 result = (bool)(arg1)->Ok();
10258
10259 wxPyEndAllowThreads(__tstate);
10260 if (PyErr_Occurred()) SWIG_fail;
10261 }
10262 {
10263 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10264 }
10265 return resultobj;
10266 fail:
10267 return NULL;
10268}
10269
10270
c32bde28 10271static PyObject *_wrap_Image_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10272 PyObject *resultobj;
10273 wxImage *arg1 = (wxImage *) 0 ;
10274 int result;
10275 PyObject * obj0 = 0 ;
10276 char *kwnames[] = {
10277 (char *) "self", NULL
10278 };
10279
10280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetWidth",kwnames,&obj0)) goto fail;
10281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10283 {
10284 PyThreadState* __tstate = wxPyBeginAllowThreads();
10285 result = (int)(arg1)->GetWidth();
10286
10287 wxPyEndAllowThreads(__tstate);
10288 if (PyErr_Occurred()) SWIG_fail;
10289 }
c32bde28 10290 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10291 return resultobj;
10292 fail:
10293 return NULL;
10294}
10295
10296
c32bde28 10297static PyObject *_wrap_Image_GetHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10298 PyObject *resultobj;
10299 wxImage *arg1 = (wxImage *) 0 ;
10300 int result;
10301 PyObject * obj0 = 0 ;
10302 char *kwnames[] = {
10303 (char *) "self", NULL
10304 };
10305
10306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetHeight",kwnames,&obj0)) goto fail;
10307 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10309 {
10310 PyThreadState* __tstate = wxPyBeginAllowThreads();
10311 result = (int)(arg1)->GetHeight();
10312
10313 wxPyEndAllowThreads(__tstate);
10314 if (PyErr_Occurred()) SWIG_fail;
10315 }
c32bde28 10316 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
10317 return resultobj;
10318 fail:
10319 return NULL;
10320}
10321
10322
c32bde28 10323static PyObject *_wrap_Image_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10324 PyObject *resultobj;
10325 wxImage *arg1 = (wxImage *) 0 ;
10326 wxSize result;
10327 PyObject * obj0 = 0 ;
10328 char *kwnames[] = {
10329 (char *) "self", NULL
10330 };
10331
10332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetSize",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 = wxImage_GetSize(arg1);
10338
10339 wxPyEndAllowThreads(__tstate);
10340 if (PyErr_Occurred()) SWIG_fail;
10341 }
10342 {
10343 wxSize * resultptr;
10344 resultptr = new wxSize((wxSize &) result);
10345 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
10346 }
10347 return resultobj;
10348 fail:
10349 return NULL;
10350}
10351
10352
c32bde28 10353static PyObject *_wrap_Image_GetSubImage(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10354 PyObject *resultobj;
10355 wxImage *arg1 = (wxImage *) 0 ;
10356 wxRect *arg2 = 0 ;
10357 SwigValueWrapper< wxImage > result;
10358 wxRect temp2 ;
10359 PyObject * obj0 = 0 ;
10360 PyObject * obj1 = 0 ;
10361 char *kwnames[] = {
10362 (char *) "self",(char *) "rect", NULL
10363 };
10364
10365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetSubImage",kwnames,&obj0,&obj1)) goto fail;
10366 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10368 {
10369 arg2 = &temp2;
10370 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10371 }
10372 {
10373 PyThreadState* __tstate = wxPyBeginAllowThreads();
10374 result = (arg1)->GetSubImage((wxRect const &)*arg2);
10375
10376 wxPyEndAllowThreads(__tstate);
10377 if (PyErr_Occurred()) SWIG_fail;
10378 }
10379 {
10380 wxImage * resultptr;
10381 resultptr = new wxImage((wxImage &) result);
10382 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
10383 }
10384 return resultobj;
10385 fail:
10386 return NULL;
10387}
10388
10389
c32bde28 10390static PyObject *_wrap_Image_Copy(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10391 PyObject *resultobj;
10392 wxImage *arg1 = (wxImage *) 0 ;
10393 SwigValueWrapper< wxImage > result;
10394 PyObject * obj0 = 0 ;
10395 char *kwnames[] = {
10396 (char *) "self", NULL
10397 };
10398
10399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Copy",kwnames,&obj0)) goto fail;
10400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10402 {
10403 PyThreadState* __tstate = wxPyBeginAllowThreads();
10404 result = (arg1)->Copy();
10405
10406 wxPyEndAllowThreads(__tstate);
10407 if (PyErr_Occurred()) SWIG_fail;
10408 }
10409 {
10410 wxImage * resultptr;
10411 resultptr = new wxImage((wxImage &) result);
10412 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
10413 }
10414 return resultobj;
10415 fail:
10416 return NULL;
10417}
10418
10419
c32bde28 10420static PyObject *_wrap_Image_Paste(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10421 PyObject *resultobj;
10422 wxImage *arg1 = (wxImage *) 0 ;
10423 wxImage *arg2 = 0 ;
10424 int arg3 ;
10425 int arg4 ;
10426 PyObject * obj0 = 0 ;
10427 PyObject * obj1 = 0 ;
10428 PyObject * obj2 = 0 ;
10429 PyObject * obj3 = 0 ;
10430 char *kwnames[] = {
10431 (char *) "self",(char *) "image",(char *) "x",(char *) "y", NULL
10432 };
10433
10434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_Paste",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10437 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage,
10438 SWIG_POINTER_EXCEPTION | 0)) == -1)
10439 SWIG_fail;
10440 if (arg2 == NULL) {
10441 PyErr_SetString(PyExc_TypeError,"null reference");
10442 SWIG_fail;
10443 }
c32bde28 10444 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 10445 if (PyErr_Occurred()) SWIG_fail;
c32bde28 10446 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
10447 if (PyErr_Occurred()) SWIG_fail;
10448 {
10449 PyThreadState* __tstate = wxPyBeginAllowThreads();
10450 (arg1)->Paste((wxImage const &)*arg2,arg3,arg4);
10451
10452 wxPyEndAllowThreads(__tstate);
10453 if (PyErr_Occurred()) SWIG_fail;
10454 }
10455 Py_INCREF(Py_None); resultobj = Py_None;
10456 return resultobj;
10457 fail:
10458 return NULL;
10459}
10460
10461
c32bde28 10462static PyObject *_wrap_Image_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10463 PyObject *resultobj;
10464 wxImage *arg1 = (wxImage *) 0 ;
10465 PyObject *result;
10466 PyObject * obj0 = 0 ;
10467 char *kwnames[] = {
10468 (char *) "self", NULL
10469 };
10470
10471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetData",kwnames,&obj0)) goto fail;
10472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10474 {
10475 PyThreadState* __tstate = wxPyBeginAllowThreads();
10476 result = (PyObject *)wxImage_GetData(arg1);
10477
10478 wxPyEndAllowThreads(__tstate);
10479 if (PyErr_Occurred()) SWIG_fail;
10480 }
10481 resultobj = result;
10482 return resultobj;
10483 fail:
10484 return NULL;
10485}
10486
10487
c32bde28 10488static PyObject *_wrap_Image_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10489 PyObject *resultobj;
10490 wxImage *arg1 = (wxImage *) 0 ;
10491 PyObject *arg2 = (PyObject *) 0 ;
10492 PyObject * obj0 = 0 ;
10493 PyObject * obj1 = 0 ;
10494 char *kwnames[] = {
10495 (char *) "self",(char *) "data", NULL
10496 };
10497
10498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetData",kwnames,&obj0,&obj1)) goto fail;
10499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10501 arg2 = obj1;
10502 {
10503 PyThreadState* __tstate = wxPyBeginAllowThreads();
10504 wxImage_SetData(arg1,arg2);
10505
10506 wxPyEndAllowThreads(__tstate);
10507 if (PyErr_Occurred()) SWIG_fail;
10508 }
10509 Py_INCREF(Py_None); resultobj = Py_None;
10510 return resultobj;
10511 fail:
10512 return NULL;
10513}
10514
10515
c32bde28 10516static PyObject *_wrap_Image_GetDataBuffer(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10517 PyObject *resultobj;
10518 wxImage *arg1 = (wxImage *) 0 ;
10519 PyObject *result;
10520 PyObject * obj0 = 0 ;
10521 char *kwnames[] = {
10522 (char *) "self", NULL
10523 };
10524
10525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetDataBuffer",kwnames,&obj0)) goto fail;
10526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10528 {
10529 PyThreadState* __tstate = wxPyBeginAllowThreads();
10530 result = (PyObject *)wxImage_GetDataBuffer(arg1);
10531
10532 wxPyEndAllowThreads(__tstate);
10533 if (PyErr_Occurred()) SWIG_fail;
10534 }
10535 resultobj = result;
10536 return resultobj;
10537 fail:
10538 return NULL;
10539}
10540
10541
c32bde28 10542static PyObject *_wrap_Image_SetDataBuffer(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10543 PyObject *resultobj;
10544 wxImage *arg1 = (wxImage *) 0 ;
10545 PyObject *arg2 = (PyObject *) 0 ;
10546 PyObject * obj0 = 0 ;
10547 PyObject * obj1 = 0 ;
10548 char *kwnames[] = {
10549 (char *) "self",(char *) "data", NULL
10550 };
10551
10552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetDataBuffer",kwnames,&obj0,&obj1)) goto fail;
10553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10555 arg2 = obj1;
10556 {
10557 PyThreadState* __tstate = wxPyBeginAllowThreads();
10558 wxImage_SetDataBuffer(arg1,arg2);
10559
10560 wxPyEndAllowThreads(__tstate);
10561 if (PyErr_Occurred()) SWIG_fail;
10562 }
10563 Py_INCREF(Py_None); resultobj = Py_None;
10564 return resultobj;
10565 fail:
10566 return NULL;
10567}
10568
10569
c32bde28 10570static PyObject *_wrap_Image_GetAlphaData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10571 PyObject *resultobj;
10572 wxImage *arg1 = (wxImage *) 0 ;
10573 PyObject *result;
10574 PyObject * obj0 = 0 ;
10575 char *kwnames[] = {
10576 (char *) "self", NULL
10577 };
10578
10579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaData",kwnames,&obj0)) goto fail;
10580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10582 {
10583 PyThreadState* __tstate = wxPyBeginAllowThreads();
10584 result = (PyObject *)wxImage_GetAlphaData(arg1);
10585
10586 wxPyEndAllowThreads(__tstate);
10587 if (PyErr_Occurred()) SWIG_fail;
10588 }
10589 resultobj = result;
10590 return resultobj;
10591 fail:
10592 return NULL;
10593}
10594
10595
c32bde28 10596static PyObject *_wrap_Image_SetAlphaData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10597 PyObject *resultobj;
10598 wxImage *arg1 = (wxImage *) 0 ;
10599 PyObject *arg2 = (PyObject *) 0 ;
10600 PyObject * obj0 = 0 ;
10601 PyObject * obj1 = 0 ;
10602 char *kwnames[] = {
10603 (char *) "self",(char *) "data", NULL
10604 };
10605
10606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaData",kwnames,&obj0,&obj1)) goto fail;
10607 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10608 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10609 arg2 = obj1;
10610 {
10611 PyThreadState* __tstate = wxPyBeginAllowThreads();
10612 wxImage_SetAlphaData(arg1,arg2);
10613
10614 wxPyEndAllowThreads(__tstate);
10615 if (PyErr_Occurred()) SWIG_fail;
10616 }
10617 Py_INCREF(Py_None); resultobj = Py_None;
10618 return resultobj;
10619 fail:
10620 return NULL;
10621}
10622
10623
c32bde28 10624static PyObject *_wrap_Image_GetAlphaBuffer(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10625 PyObject *resultobj;
10626 wxImage *arg1 = (wxImage *) 0 ;
10627 PyObject *result;
10628 PyObject * obj0 = 0 ;
10629 char *kwnames[] = {
10630 (char *) "self", NULL
10631 };
10632
10633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaBuffer",kwnames,&obj0)) goto fail;
10634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10636 {
10637 PyThreadState* __tstate = wxPyBeginAllowThreads();
10638 result = (PyObject *)wxImage_GetAlphaBuffer(arg1);
10639
10640 wxPyEndAllowThreads(__tstate);
10641 if (PyErr_Occurred()) SWIG_fail;
10642 }
10643 resultobj = result;
10644 return resultobj;
10645 fail:
10646 return NULL;
10647}
10648
10649
c32bde28 10650static PyObject *_wrap_Image_SetAlphaBuffer(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10651 PyObject *resultobj;
10652 wxImage *arg1 = (wxImage *) 0 ;
10653 PyObject *arg2 = (PyObject *) 0 ;
10654 PyObject * obj0 = 0 ;
10655 PyObject * obj1 = 0 ;
10656 char *kwnames[] = {
10657 (char *) "self",(char *) "data", NULL
10658 };
10659
10660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaBuffer",kwnames,&obj0,&obj1)) goto fail;
10661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10663 arg2 = obj1;
10664 {
10665 PyThreadState* __tstate = wxPyBeginAllowThreads();
10666 wxImage_SetAlphaBuffer(arg1,arg2);
10667
10668 wxPyEndAllowThreads(__tstate);
10669 if (PyErr_Occurred()) SWIG_fail;
10670 }
10671 Py_INCREF(Py_None); resultobj = Py_None;
10672 return resultobj;
10673 fail:
10674 return NULL;
10675}
10676
10677
c32bde28 10678static PyObject *_wrap_Image_SetMaskColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10679 PyObject *resultobj;
10680 wxImage *arg1 = (wxImage *) 0 ;
10681 unsigned char arg2 ;
10682 unsigned char arg3 ;
10683 unsigned char arg4 ;
10684 PyObject * obj0 = 0 ;
10685 PyObject * obj1 = 0 ;
10686 PyObject * obj2 = 0 ;
10687 PyObject * obj3 = 0 ;
10688 char *kwnames[] = {
10689 (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL
10690 };
10691
10692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetMaskColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 10695 arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1);
d55e5bfc 10696 if (PyErr_Occurred()) SWIG_fail;
c32bde28 10697 arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2);
d55e5bfc 10698 if (PyErr_Occurred()) SWIG_fail;
c32bde28 10699 arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3);
d55e5bfc
RD
10700 if (PyErr_Occurred()) SWIG_fail;
10701 {
10702 PyThreadState* __tstate = wxPyBeginAllowThreads();
10703 (arg1)->SetMaskColour(arg2,arg3,arg4);
10704
10705 wxPyEndAllowThreads(__tstate);
10706 if (PyErr_Occurred()) SWIG_fail;
10707 }
10708 Py_INCREF(Py_None); resultobj = Py_None;
10709 return resultobj;
10710 fail:
10711 return NULL;
10712}
10713
10714
c32bde28 10715static PyObject *_wrap_Image_GetMaskRed(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10716 PyObject *resultobj;
10717 wxImage *arg1 = (wxImage *) 0 ;
10718 unsigned char result;
10719 PyObject * obj0 = 0 ;
10720 char *kwnames[] = {
10721 (char *) "self", NULL
10722 };
10723
10724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskRed",kwnames,&obj0)) goto fail;
10725 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10727 {
10728 PyThreadState* __tstate = wxPyBeginAllowThreads();
10729 result = (unsigned char)(arg1)->GetMaskRed();
10730
10731 wxPyEndAllowThreads(__tstate);
10732 if (PyErr_Occurred()) SWIG_fail;
10733 }
c32bde28 10734 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
d55e5bfc
RD
10735 return resultobj;
10736 fail:
10737 return NULL;
10738}
10739
10740
c32bde28 10741static PyObject *_wrap_Image_GetMaskGreen(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10742 PyObject *resultobj;
10743 wxImage *arg1 = (wxImage *) 0 ;
10744 unsigned char result;
10745 PyObject * obj0 = 0 ;
10746 char *kwnames[] = {
10747 (char *) "self", NULL
10748 };
10749
10750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskGreen",kwnames,&obj0)) goto fail;
10751 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10752 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10753 {
10754 PyThreadState* __tstate = wxPyBeginAllowThreads();
10755 result = (unsigned char)(arg1)->GetMaskGreen();
10756
10757 wxPyEndAllowThreads(__tstate);
10758 if (PyErr_Occurred()) SWIG_fail;
10759 }
c32bde28 10760 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
d55e5bfc
RD
10761 return resultobj;
10762 fail:
10763 return NULL;
10764}
10765
10766
c32bde28 10767static PyObject *_wrap_Image_GetMaskBlue(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10768 PyObject *resultobj;
10769 wxImage *arg1 = (wxImage *) 0 ;
10770 unsigned char result;
10771 PyObject * obj0 = 0 ;
10772 char *kwnames[] = {
10773 (char *) "self", NULL
10774 };
10775
10776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskBlue",kwnames,&obj0)) goto fail;
10777 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10778 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10779 {
10780 PyThreadState* __tstate = wxPyBeginAllowThreads();
10781 result = (unsigned char)(arg1)->GetMaskBlue();
10782
10783 wxPyEndAllowThreads(__tstate);
10784 if (PyErr_Occurred()) SWIG_fail;
10785 }
c32bde28 10786 resultobj = SWIG_From_unsigned_SS_char((unsigned char)result);
d55e5bfc
RD
10787 return resultobj;
10788 fail:
10789 return NULL;
10790}
10791
10792
c32bde28 10793static PyObject *_wrap_Image_SetMask(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10794 PyObject *resultobj;
10795 wxImage *arg1 = (wxImage *) 0 ;
10796 bool arg2 = (bool) True ;
10797 PyObject * obj0 = 0 ;
10798 PyObject * obj1 = 0 ;
10799 char *kwnames[] = {
10800 (char *) "self",(char *) "mask", NULL
10801 };
10802
10803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_SetMask",kwnames,&obj0,&obj1)) goto fail;
10804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10806 if (obj1) {
c32bde28 10807 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
10808 if (PyErr_Occurred()) SWIG_fail;
10809 }
10810 {
10811 PyThreadState* __tstate = wxPyBeginAllowThreads();
10812 (arg1)->SetMask(arg2);
10813
10814 wxPyEndAllowThreads(__tstate);
10815 if (PyErr_Occurred()) SWIG_fail;
10816 }
10817 Py_INCREF(Py_None); resultobj = Py_None;
10818 return resultobj;
10819 fail:
10820 return NULL;
10821}
10822
10823
c32bde28 10824static PyObject *_wrap_Image_HasMask(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10825 PyObject *resultobj;
10826 wxImage *arg1 = (wxImage *) 0 ;
10827 bool result;
10828 PyObject * obj0 = 0 ;
10829 char *kwnames[] = {
10830 (char *) "self", NULL
10831 };
10832
10833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasMask",kwnames,&obj0)) goto fail;
10834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10836 {
10837 PyThreadState* __tstate = wxPyBeginAllowThreads();
10838 result = (bool)(arg1)->HasMask();
10839
10840 wxPyEndAllowThreads(__tstate);
10841 if (PyErr_Occurred()) SWIG_fail;
10842 }
10843 {
10844 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10845 }
10846 return resultobj;
10847 fail:
10848 return NULL;
10849}
10850
10851
c32bde28 10852static PyObject *_wrap_Image_Rotate(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10853 PyObject *resultobj;
10854 wxImage *arg1 = (wxImage *) 0 ;
10855 double arg2 ;
10856 wxPoint *arg3 = 0 ;
10857 bool arg4 = (bool) True ;
10858 wxPoint *arg5 = (wxPoint *) NULL ;
10859 SwigValueWrapper< wxImage > result;
10860 wxPoint temp3 ;
10861 PyObject * obj0 = 0 ;
10862 PyObject * obj1 = 0 ;
10863 PyObject * obj2 = 0 ;
10864 PyObject * obj3 = 0 ;
10865 PyObject * obj4 = 0 ;
10866 char *kwnames[] = {
10867 (char *) "self",(char *) "angle",(char *) "centre_of_rotation",(char *) "interpolating",(char *) "offset_after_rotation", NULL
10868 };
10869
10870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Image_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 10873 arg2 = (double)SWIG_As_double(obj1);
d55e5bfc
RD
10874 if (PyErr_Occurred()) SWIG_fail;
10875 {
10876 arg3 = &temp3;
10877 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10878 }
10879 if (obj3) {
c32bde28 10880 arg4 = (bool)SWIG_As_bool(obj3);
d55e5bfc
RD
10881 if (PyErr_Occurred()) SWIG_fail;
10882 }
10883 if (obj4) {
10884 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPoint,
10885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10886 }
10887 {
10888 PyThreadState* __tstate = wxPyBeginAllowThreads();
10889 result = ((wxImage const *)arg1)->Rotate(arg2,(wxPoint const &)*arg3,arg4,arg5);
10890
10891 wxPyEndAllowThreads(__tstate);
10892 if (PyErr_Occurred()) SWIG_fail;
10893 }
10894 {
10895 wxImage * resultptr;
10896 resultptr = new wxImage((wxImage &) result);
10897 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
10898 }
10899 return resultobj;
10900 fail:
10901 return NULL;
10902}
10903
10904
c32bde28 10905static PyObject *_wrap_Image_Rotate90(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10906 PyObject *resultobj;
10907 wxImage *arg1 = (wxImage *) 0 ;
10908 bool arg2 = (bool) True ;
10909 SwigValueWrapper< wxImage > result;
10910 PyObject * obj0 = 0 ;
10911 PyObject * obj1 = 0 ;
10912 char *kwnames[] = {
10913 (char *) "self",(char *) "clockwise", NULL
10914 };
10915
10916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Rotate90",kwnames,&obj0,&obj1)) goto fail;
10917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10919 if (obj1) {
c32bde28 10920 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
10921 if (PyErr_Occurred()) SWIG_fail;
10922 }
10923 {
10924 PyThreadState* __tstate = wxPyBeginAllowThreads();
10925 result = (arg1)->Rotate90(arg2);
10926
10927 wxPyEndAllowThreads(__tstate);
10928 if (PyErr_Occurred()) SWIG_fail;
10929 }
10930 {
10931 wxImage * resultptr;
10932 resultptr = new wxImage((wxImage &) result);
10933 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
10934 }
10935 return resultobj;
10936 fail:
10937 return NULL;
10938}
10939
10940
c32bde28 10941static PyObject *_wrap_Image_Mirror(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10942 PyObject *resultobj;
10943 wxImage *arg1 = (wxImage *) 0 ;
10944 bool arg2 = (bool) True ;
10945 SwigValueWrapper< wxImage > result;
10946 PyObject * obj0 = 0 ;
10947 PyObject * obj1 = 0 ;
10948 char *kwnames[] = {
10949 (char *) "self",(char *) "horizontally", NULL
10950 };
10951
10952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Mirror",kwnames,&obj0,&obj1)) goto fail;
10953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10955 if (obj1) {
c32bde28 10956 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
10957 if (PyErr_Occurred()) SWIG_fail;
10958 }
10959 {
10960 PyThreadState* __tstate = wxPyBeginAllowThreads();
10961 result = (arg1)->Mirror(arg2);
10962
10963 wxPyEndAllowThreads(__tstate);
10964 if (PyErr_Occurred()) SWIG_fail;
10965 }
10966 {
10967 wxImage * resultptr;
10968 resultptr = new wxImage((wxImage &) result);
10969 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
10970 }
10971 return resultobj;
10972 fail:
10973 return NULL;
10974}
10975
10976
c32bde28 10977static PyObject *_wrap_Image_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10978 PyObject *resultobj;
10979 wxImage *arg1 = (wxImage *) 0 ;
10980 unsigned char arg2 ;
10981 unsigned char arg3 ;
10982 unsigned char arg4 ;
10983 unsigned char arg5 ;
10984 unsigned char arg6 ;
10985 unsigned char arg7 ;
10986 PyObject * obj0 = 0 ;
10987 PyObject * obj1 = 0 ;
10988 PyObject * obj2 = 0 ;
10989 PyObject * obj3 = 0 ;
10990 PyObject * obj4 = 0 ;
10991 PyObject * obj5 = 0 ;
10992 PyObject * obj6 = 0 ;
10993 char *kwnames[] = {
10994 (char *) "self",(char *) "r1",(char *) "g1",(char *) "b1",(char *) "r2",(char *) "g2",(char *) "b2", NULL
10995 };
10996
10997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:Image_Replace",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 11000 arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1);
d55e5bfc 11001 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11002 arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2);
d55e5bfc 11003 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11004 arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3);
d55e5bfc 11005 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11006 arg5 = (unsigned char)SWIG_As_unsigned_SS_char(obj4);
d55e5bfc 11007 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11008 arg6 = (unsigned char)SWIG_As_unsigned_SS_char(obj5);
d55e5bfc 11009 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11010 arg7 = (unsigned char)SWIG_As_unsigned_SS_char(obj6);
d55e5bfc
RD
11011 if (PyErr_Occurred()) SWIG_fail;
11012 {
11013 PyThreadState* __tstate = wxPyBeginAllowThreads();
11014 (arg1)->Replace(arg2,arg3,arg4,arg5,arg6,arg7);
11015
11016 wxPyEndAllowThreads(__tstate);
11017 if (PyErr_Occurred()) SWIG_fail;
11018 }
11019 Py_INCREF(Py_None); resultobj = Py_None;
11020 return resultobj;
11021 fail:
11022 return NULL;
11023}
11024
11025
c32bde28 11026static PyObject *_wrap_Image_ConvertToMono(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11027 PyObject *resultobj;
11028 wxImage *arg1 = (wxImage *) 0 ;
11029 unsigned char arg2 ;
11030 unsigned char arg3 ;
11031 unsigned char arg4 ;
11032 SwigValueWrapper< wxImage > result;
11033 PyObject * obj0 = 0 ;
11034 PyObject * obj1 = 0 ;
11035 PyObject * obj2 = 0 ;
11036 PyObject * obj3 = 0 ;
11037 char *kwnames[] = {
11038 (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL
11039 };
11040
11041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMono",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 11044 arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1);
d55e5bfc 11045 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11046 arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2);
d55e5bfc 11047 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11048 arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3);
d55e5bfc
RD
11049 if (PyErr_Occurred()) SWIG_fail;
11050 {
11051 PyThreadState* __tstate = wxPyBeginAllowThreads();
11052 result = ((wxImage const *)arg1)->ConvertToMono(arg2,arg3,arg4);
11053
11054 wxPyEndAllowThreads(__tstate);
11055 if (PyErr_Occurred()) SWIG_fail;
11056 }
11057 {
11058 wxImage * resultptr;
11059 resultptr = new wxImage((wxImage &) result);
11060 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
11061 }
11062 return resultobj;
11063 fail:
11064 return NULL;
11065}
11066
11067
c32bde28 11068static PyObject *_wrap_Image_SetOption(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11069 PyObject *resultobj;
11070 wxImage *arg1 = (wxImage *) 0 ;
11071 wxString *arg2 = 0 ;
11072 wxString *arg3 = 0 ;
11073 bool temp2 = False ;
11074 bool temp3 = False ;
11075 PyObject * obj0 = 0 ;
11076 PyObject * obj1 = 0 ;
11077 PyObject * obj2 = 0 ;
11078 char *kwnames[] = {
11079 (char *) "self",(char *) "name",(char *) "value", NULL
11080 };
11081
11082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOption",kwnames,&obj0,&obj1,&obj2)) goto fail;
11083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11085 {
11086 arg2 = wxString_in_helper(obj1);
11087 if (arg2 == NULL) SWIG_fail;
11088 temp2 = True;
11089 }
11090 {
11091 arg3 = wxString_in_helper(obj2);
11092 if (arg3 == NULL) SWIG_fail;
11093 temp3 = True;
11094 }
11095 {
11096 PyThreadState* __tstate = wxPyBeginAllowThreads();
11097 (arg1)->SetOption((wxString const &)*arg2,(wxString const &)*arg3);
11098
11099 wxPyEndAllowThreads(__tstate);
11100 if (PyErr_Occurred()) SWIG_fail;
11101 }
11102 Py_INCREF(Py_None); resultobj = Py_None;
11103 {
11104 if (temp2)
11105 delete arg2;
11106 }
11107 {
11108 if (temp3)
11109 delete arg3;
11110 }
11111 return resultobj;
11112 fail:
11113 {
11114 if (temp2)
11115 delete arg2;
11116 }
11117 {
11118 if (temp3)
11119 delete arg3;
11120 }
11121 return NULL;
11122}
11123
11124
c32bde28 11125static PyObject *_wrap_Image_SetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11126 PyObject *resultobj;
11127 wxImage *arg1 = (wxImage *) 0 ;
11128 wxString *arg2 = 0 ;
11129 int arg3 ;
11130 bool temp2 = False ;
11131 PyObject * obj0 = 0 ;
11132 PyObject * obj1 = 0 ;
11133 PyObject * obj2 = 0 ;
11134 char *kwnames[] = {
11135 (char *) "self",(char *) "name",(char *) "value", NULL
11136 };
11137
11138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOptionInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
11139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11141 {
11142 arg2 = wxString_in_helper(obj1);
11143 if (arg2 == NULL) SWIG_fail;
11144 temp2 = True;
11145 }
c32bde28 11146 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
11147 if (PyErr_Occurred()) SWIG_fail;
11148 {
11149 PyThreadState* __tstate = wxPyBeginAllowThreads();
11150 (arg1)->SetOption((wxString const &)*arg2,arg3);
11151
11152 wxPyEndAllowThreads(__tstate);
11153 if (PyErr_Occurred()) SWIG_fail;
11154 }
11155 Py_INCREF(Py_None); resultobj = Py_None;
11156 {
11157 if (temp2)
11158 delete arg2;
11159 }
11160 return resultobj;
11161 fail:
11162 {
11163 if (temp2)
11164 delete arg2;
11165 }
11166 return NULL;
11167}
11168
11169
c32bde28 11170static PyObject *_wrap_Image_GetOption(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11171 PyObject *resultobj;
11172 wxImage *arg1 = (wxImage *) 0 ;
11173 wxString *arg2 = 0 ;
11174 wxString result;
11175 bool temp2 = False ;
11176 PyObject * obj0 = 0 ;
11177 PyObject * obj1 = 0 ;
11178 char *kwnames[] = {
11179 (char *) "self",(char *) "name", NULL
11180 };
11181
11182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOption",kwnames,&obj0,&obj1)) goto fail;
11183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11185 {
11186 arg2 = wxString_in_helper(obj1);
11187 if (arg2 == NULL) SWIG_fail;
11188 temp2 = True;
11189 }
11190 {
11191 PyThreadState* __tstate = wxPyBeginAllowThreads();
11192 result = ((wxImage const *)arg1)->GetOption((wxString const &)*arg2);
11193
11194 wxPyEndAllowThreads(__tstate);
11195 if (PyErr_Occurred()) SWIG_fail;
11196 }
11197 {
11198#if wxUSE_UNICODE
11199 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11200#else
11201 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11202#endif
11203 }
11204 {
11205 if (temp2)
11206 delete arg2;
11207 }
11208 return resultobj;
11209 fail:
11210 {
11211 if (temp2)
11212 delete arg2;
11213 }
11214 return NULL;
11215}
11216
11217
c32bde28 11218static PyObject *_wrap_Image_GetOptionInt(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11219 PyObject *resultobj;
11220 wxImage *arg1 = (wxImage *) 0 ;
11221 wxString *arg2 = 0 ;
11222 int result;
11223 bool temp2 = False ;
11224 PyObject * obj0 = 0 ;
11225 PyObject * obj1 = 0 ;
11226 char *kwnames[] = {
11227 (char *) "self",(char *) "name", NULL
11228 };
11229
11230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOptionInt",kwnames,&obj0,&obj1)) goto fail;
11231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11233 {
11234 arg2 = wxString_in_helper(obj1);
11235 if (arg2 == NULL) SWIG_fail;
11236 temp2 = True;
11237 }
11238 {
11239 PyThreadState* __tstate = wxPyBeginAllowThreads();
11240 result = (int)((wxImage const *)arg1)->GetOptionInt((wxString const &)*arg2);
11241
11242 wxPyEndAllowThreads(__tstate);
11243 if (PyErr_Occurred()) SWIG_fail;
11244 }
c32bde28 11245 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
11246 {
11247 if (temp2)
11248 delete arg2;
11249 }
11250 return resultobj;
11251 fail:
11252 {
11253 if (temp2)
11254 delete arg2;
11255 }
11256 return NULL;
11257}
11258
11259
c32bde28 11260static PyObject *_wrap_Image_HasOption(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11261 PyObject *resultobj;
11262 wxImage *arg1 = (wxImage *) 0 ;
11263 wxString *arg2 = 0 ;
11264 bool result;
11265 bool temp2 = False ;
11266 PyObject * obj0 = 0 ;
11267 PyObject * obj1 = 0 ;
11268 char *kwnames[] = {
11269 (char *) "self",(char *) "name", NULL
11270 };
11271
11272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_HasOption",kwnames,&obj0,&obj1)) goto fail;
11273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11275 {
11276 arg2 = wxString_in_helper(obj1);
11277 if (arg2 == NULL) SWIG_fail;
11278 temp2 = True;
11279 }
11280 {
11281 PyThreadState* __tstate = wxPyBeginAllowThreads();
11282 result = (bool)((wxImage const *)arg1)->HasOption((wxString const &)*arg2);
11283
11284 wxPyEndAllowThreads(__tstate);
11285 if (PyErr_Occurred()) SWIG_fail;
11286 }
11287 {
11288 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11289 }
11290 {
11291 if (temp2)
11292 delete arg2;
11293 }
11294 return resultobj;
11295 fail:
11296 {
11297 if (temp2)
11298 delete arg2;
11299 }
11300 return NULL;
11301}
11302
11303
c32bde28 11304static PyObject *_wrap_Image_CountColours(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11305 PyObject *resultobj;
11306 wxImage *arg1 = (wxImage *) 0 ;
11307 unsigned long arg2 = (unsigned long) (unsigned long) -1 ;
11308 unsigned long result;
11309 PyObject * obj0 = 0 ;
11310 PyObject * obj1 = 0 ;
11311 char *kwnames[] = {
11312 (char *) "self",(char *) "stopafter", NULL
11313 };
11314
11315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_CountColours",kwnames,&obj0,&obj1)) goto fail;
11316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11318 if (obj1) {
c32bde28 11319 arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1);
d55e5bfc
RD
11320 if (PyErr_Occurred()) SWIG_fail;
11321 }
11322 {
11323 PyThreadState* __tstate = wxPyBeginAllowThreads();
11324 result = (unsigned long)(arg1)->CountColours(arg2);
11325
11326 wxPyEndAllowThreads(__tstate);
11327 if (PyErr_Occurred()) SWIG_fail;
11328 }
c32bde28 11329 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
d55e5bfc
RD
11330 return resultobj;
11331 fail:
11332 return NULL;
11333}
11334
11335
c32bde28 11336static PyObject *_wrap_Image_ComputeHistogram(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11337 PyObject *resultobj;
11338 wxImage *arg1 = (wxImage *) 0 ;
11339 wxImageHistogram *arg2 = 0 ;
11340 unsigned long result;
11341 PyObject * obj0 = 0 ;
11342 PyObject * obj1 = 0 ;
11343 char *kwnames[] = {
11344 (char *) "self",(char *) "h", NULL
11345 };
11346
11347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_ComputeHistogram",kwnames,&obj0,&obj1)) goto fail;
11348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11350 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageHistogram,
11351 SWIG_POINTER_EXCEPTION | 0)) == -1)
11352 SWIG_fail;
11353 if (arg2 == NULL) {
11354 PyErr_SetString(PyExc_TypeError,"null reference");
11355 SWIG_fail;
11356 }
11357 {
11358 PyThreadState* __tstate = wxPyBeginAllowThreads();
11359 result = (unsigned long)(arg1)->ComputeHistogram(*arg2);
11360
11361 wxPyEndAllowThreads(__tstate);
11362 if (PyErr_Occurred()) SWIG_fail;
11363 }
c32bde28 11364 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
d55e5bfc
RD
11365 return resultobj;
11366 fail:
11367 return NULL;
11368}
11369
11370
c32bde28 11371static PyObject *_wrap_Image_AddHandler(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11372 PyObject *resultobj;
11373 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
11374 PyObject * obj0 = 0 ;
11375 char *kwnames[] = {
11376 (char *) "handler", NULL
11377 };
11378
11379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_AddHandler",kwnames,&obj0)) goto fail;
11380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
11381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11382 {
11383 PyThreadState* __tstate = wxPyBeginAllowThreads();
11384 wxImage::AddHandler(arg1);
11385
11386 wxPyEndAllowThreads(__tstate);
11387 if (PyErr_Occurred()) SWIG_fail;
11388 }
11389 Py_INCREF(Py_None); resultobj = Py_None;
11390 return resultobj;
11391 fail:
11392 return NULL;
11393}
11394
11395
c32bde28 11396static PyObject *_wrap_Image_InsertHandler(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11397 PyObject *resultobj;
11398 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
11399 PyObject * obj0 = 0 ;
11400 char *kwnames[] = {
11401 (char *) "handler", NULL
11402 };
11403
11404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InsertHandler",kwnames,&obj0)) goto fail;
11405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
11406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11407 {
11408 PyThreadState* __tstate = wxPyBeginAllowThreads();
11409 wxImage::InsertHandler(arg1);
11410
11411 wxPyEndAllowThreads(__tstate);
11412 if (PyErr_Occurred()) SWIG_fail;
11413 }
11414 Py_INCREF(Py_None); resultobj = Py_None;
11415 return resultobj;
11416 fail:
11417 return NULL;
11418}
11419
11420
c32bde28 11421static PyObject *_wrap_Image_RemoveHandler(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11422 PyObject *resultobj;
11423 wxString *arg1 = 0 ;
11424 bool result;
11425 bool temp1 = False ;
11426 PyObject * obj0 = 0 ;
11427 char *kwnames[] = {
11428 (char *) "name", NULL
11429 };
11430
11431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RemoveHandler",kwnames,&obj0)) goto fail;
11432 {
11433 arg1 = wxString_in_helper(obj0);
11434 if (arg1 == NULL) SWIG_fail;
11435 temp1 = True;
11436 }
11437 {
11438 PyThreadState* __tstate = wxPyBeginAllowThreads();
11439 result = (bool)wxImage::RemoveHandler((wxString const &)*arg1);
11440
11441 wxPyEndAllowThreads(__tstate);
11442 if (PyErr_Occurred()) SWIG_fail;
11443 }
11444 {
11445 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11446 }
11447 {
11448 if (temp1)
11449 delete arg1;
11450 }
11451 return resultobj;
11452 fail:
11453 {
11454 if (temp1)
11455 delete arg1;
11456 }
11457 return NULL;
11458}
11459
11460
c32bde28 11461static PyObject *_wrap_Image_GetImageExtWildcard(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11462 PyObject *resultobj;
11463 wxString result;
11464 char *kwnames[] = {
11465 NULL
11466 };
11467
11468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Image_GetImageExtWildcard",kwnames)) goto fail;
11469 {
11470 PyThreadState* __tstate = wxPyBeginAllowThreads();
11471 result = wxImage::GetImageExtWildcard();
11472
11473 wxPyEndAllowThreads(__tstate);
11474 if (PyErr_Occurred()) SWIG_fail;
11475 }
11476 {
11477#if wxUSE_UNICODE
11478 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11479#else
11480 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11481#endif
11482 }
11483 return resultobj;
11484 fail:
11485 return NULL;
11486}
11487
11488
c32bde28 11489static PyObject *_wrap_Image_ConvertToBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11490 PyObject *resultobj;
11491 wxImage *arg1 = (wxImage *) 0 ;
1fbf26be 11492 int arg2 = (int) -1 ;
d55e5bfc
RD
11493 wxBitmap result;
11494 PyObject * obj0 = 0 ;
1fbf26be 11495 PyObject * obj1 = 0 ;
d55e5bfc 11496 char *kwnames[] = {
1fbf26be 11497 (char *) "self",(char *) "depth", NULL
d55e5bfc
RD
11498 };
11499
1fbf26be 11500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_ConvertToBitmap",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
11501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1fbf26be
RD
11503 if (obj1) {
11504 arg2 = (int)SWIG_As_int(obj1);
11505 if (PyErr_Occurred()) SWIG_fail;
11506 }
d55e5bfc 11507 {
0439c23b 11508 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc 11509 PyThreadState* __tstate = wxPyBeginAllowThreads();
1fbf26be 11510 result = wxImage_ConvertToBitmap(arg1,arg2);
d55e5bfc
RD
11511
11512 wxPyEndAllowThreads(__tstate);
110da5b0 11513 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
11514 }
11515 {
11516 wxBitmap * resultptr;
11517 resultptr = new wxBitmap((wxBitmap &) result);
11518 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
11519 }
11520 return resultobj;
11521 fail:
11522 return NULL;
11523}
11524
11525
c32bde28 11526static PyObject *_wrap_Image_ConvertToMonoBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11527 PyObject *resultobj;
11528 wxImage *arg1 = (wxImage *) 0 ;
11529 unsigned char arg2 ;
11530 unsigned char arg3 ;
11531 unsigned char arg4 ;
11532 wxBitmap result;
11533 PyObject * obj0 = 0 ;
11534 PyObject * obj1 = 0 ;
11535 PyObject * obj2 = 0 ;
11536 PyObject * obj3 = 0 ;
11537 char *kwnames[] = {
11538 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
11539 };
11540
11541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMonoBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 11544 arg2 = (unsigned char)SWIG_As_unsigned_SS_char(obj1);
d55e5bfc 11545 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11546 arg3 = (unsigned char)SWIG_As_unsigned_SS_char(obj2);
d55e5bfc 11547 if (PyErr_Occurred()) SWIG_fail;
c32bde28 11548 arg4 = (unsigned char)SWIG_As_unsigned_SS_char(obj3);
d55e5bfc
RD
11549 if (PyErr_Occurred()) SWIG_fail;
11550 {
0439c23b 11551 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
11552 PyThreadState* __tstate = wxPyBeginAllowThreads();
11553 result = wxImage_ConvertToMonoBitmap(arg1,arg2,arg3,arg4);
11554
11555 wxPyEndAllowThreads(__tstate);
110da5b0 11556 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
11557 }
11558 {
11559 wxBitmap * resultptr;
11560 resultptr = new wxBitmap((wxBitmap &) result);
11561 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
11562 }
11563 return resultobj;
11564 fail:
11565 return NULL;
11566}
11567
11568
c32bde28 11569static PyObject * Image_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
11570 PyObject *obj;
11571 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11572 SWIG_TypeClientData(SWIGTYPE_p_wxImage, obj);
11573 Py_INCREF(obj);
11574 return Py_BuildValue((char *)"");
11575}
c32bde28 11576static int _wrap_NullImage_set(PyObject *) {
d55e5bfc
RD
11577 PyErr_SetString(PyExc_TypeError,"Variable NullImage is read-only.");
11578 return 1;
11579}
11580
11581
11582static PyObject *_wrap_NullImage_get() {
11583 PyObject *pyobj;
11584
11585 pyobj = SWIG_NewPointerObj((void *)(&wxNullImage), SWIGTYPE_p_wxImage, 0);
11586 return pyobj;
11587}
11588
11589
c32bde28 11590static int _wrap_IMAGE_OPTION_BMP_FORMAT_set(PyObject *) {
d55e5bfc
RD
11591 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_BMP_FORMAT is read-only.");
11592 return 1;
11593}
11594
11595
11596static PyObject *_wrap_IMAGE_OPTION_BMP_FORMAT_get() {
11597 PyObject *pyobj;
11598
11599 {
11600#if wxUSE_UNICODE
11601 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len());
11602#else
11603 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len());
11604#endif
11605 }
11606 return pyobj;
11607}
11608
11609
c32bde28 11610static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set(PyObject *) {
d55e5bfc
RD
11611 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_X is read-only.");
11612 return 1;
11613}
11614
11615
11616static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get() {
11617 PyObject *pyobj;
11618
11619 {
11620#if wxUSE_UNICODE
11621 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len());
11622#else
11623 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len());
11624#endif
11625 }
11626 return pyobj;
11627}
11628
11629
c32bde28 11630static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set(PyObject *) {
d55e5bfc
RD
11631 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_Y is read-only.");
11632 return 1;
11633}
11634
11635
11636static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get() {
11637 PyObject *pyobj;
11638
11639 {
11640#if wxUSE_UNICODE
11641 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len());
11642#else
11643 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len());
11644#endif
11645 }
11646 return pyobj;
11647}
11648
11649
c32bde28 11650static int _wrap_IMAGE_OPTION_RESOLUTION_set(PyObject *) {
d55e5bfc
RD
11651 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTION is read-only.");
11652 return 1;
11653}
11654
11655
11656static PyObject *_wrap_IMAGE_OPTION_RESOLUTION_get() {
11657 PyObject *pyobj;
11658
11659 {
11660#if wxUSE_UNICODE
11661 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len());
11662#else
11663 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len());
11664#endif
11665 }
11666 return pyobj;
11667}
11668
11669
c32bde28 11670static int _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set(PyObject *) {
d55e5bfc
RD
11671 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONUNIT is read-only.");
11672 return 1;
11673}
11674
11675
11676static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get() {
11677 PyObject *pyobj;
11678
11679 {
11680#if wxUSE_UNICODE
11681 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len());
11682#else
11683 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len());
11684#endif
11685 }
11686 return pyobj;
11687}
11688
11689
c32bde28 11690static PyObject *_wrap_new_BMPHandler(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11691 PyObject *resultobj;
11692 wxBMPHandler *result;
11693 char *kwnames[] = {
11694 NULL
11695 };
11696
11697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_BMPHandler",kwnames)) goto fail;
11698 {
11699 PyThreadState* __tstate = wxPyBeginAllowThreads();
11700 result = (wxBMPHandler *)new wxBMPHandler();
11701
11702 wxPyEndAllowThreads(__tstate);
11703 if (PyErr_Occurred()) SWIG_fail;
11704 }
11705 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBMPHandler, 1);
11706 return resultobj;
11707 fail:
11708 return NULL;
11709}
11710
11711
c32bde28 11712static PyObject * BMPHandler_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
11713 PyObject *obj;
11714 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11715 SWIG_TypeClientData(SWIGTYPE_p_wxBMPHandler, obj);
11716 Py_INCREF(obj);
11717 return Py_BuildValue((char *)"");
11718}
c32bde28 11719static PyObject *_wrap_new_ICOHandler(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11720 PyObject *resultobj;
11721 wxICOHandler *result;
11722 char *kwnames[] = {
11723 NULL
11724 };
11725
11726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ICOHandler",kwnames)) goto fail;
11727 {
11728 PyThreadState* __tstate = wxPyBeginAllowThreads();
11729 result = (wxICOHandler *)new wxICOHandler();
11730
11731 wxPyEndAllowThreads(__tstate);
11732 if (PyErr_Occurred()) SWIG_fail;
11733 }
11734 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxICOHandler, 1);
11735 return resultobj;
11736 fail:
11737 return NULL;
11738}
11739
11740
c32bde28 11741static PyObject * ICOHandler_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
11742 PyObject *obj;
11743 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11744 SWIG_TypeClientData(SWIGTYPE_p_wxICOHandler, obj);
11745 Py_INCREF(obj);
11746 return Py_BuildValue((char *)"");
11747}
c32bde28 11748static PyObject *_wrap_new_CURHandler(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11749 PyObject *resultobj;
11750 wxCURHandler *result;
11751 char *kwnames[] = {
11752 NULL
11753 };
11754
11755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_CURHandler",kwnames)) goto fail;
11756 {
11757 PyThreadState* __tstate = wxPyBeginAllowThreads();
11758 result = (wxCURHandler *)new wxCURHandler();
11759
11760 wxPyEndAllowThreads(__tstate);
11761 if (PyErr_Occurred()) SWIG_fail;
11762 }
11763 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCURHandler, 1);
11764 return resultobj;
11765 fail:
11766 return NULL;
11767}
11768
11769
c32bde28 11770static PyObject * CURHandler_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
11771 PyObject *obj;
11772 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11773 SWIG_TypeClientData(SWIGTYPE_p_wxCURHandler, obj);
11774 Py_INCREF(obj);
11775 return Py_BuildValue((char *)"");
11776}
c32bde28 11777static PyObject *_wrap_new_ANIHandler(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11778 PyObject *resultobj;
11779 wxANIHandler *result;
11780 char *kwnames[] = {
11781 NULL
11782 };
11783
11784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ANIHandler",kwnames)) goto fail;
11785 {
11786 PyThreadState* __tstate = wxPyBeginAllowThreads();
11787 result = (wxANIHandler *)new wxANIHandler();
11788
11789 wxPyEndAllowThreads(__tstate);
11790 if (PyErr_Occurred()) SWIG_fail;
11791 }
11792 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxANIHandler, 1);
11793 return resultobj;
11794 fail:
11795 return NULL;
11796}
11797
11798
c32bde28 11799static PyObject * ANIHandler_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
11800 PyObject *obj;
11801 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11802 SWIG_TypeClientData(SWIGTYPE_p_wxANIHandler, obj);
11803 Py_INCREF(obj);
11804 return Py_BuildValue((char *)"");
11805}
c32bde28 11806static PyObject *_wrap_new_PNGHandler(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11807 PyObject *resultobj;
11808 wxPNGHandler *result;
11809 char *kwnames[] = {
11810 NULL
11811 };
11812
11813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNGHandler",kwnames)) goto fail;
11814 {
11815 PyThreadState* __tstate = wxPyBeginAllowThreads();
11816 result = (wxPNGHandler *)new wxPNGHandler();
11817
11818 wxPyEndAllowThreads(__tstate);
11819 if (PyErr_Occurred()) SWIG_fail;
11820 }
11821 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNGHandler, 1);
11822 return resultobj;
11823 fail:
11824 return NULL;
11825}
11826
11827
c32bde28 11828static PyObject * PNGHandler_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
11829 PyObject *obj;
11830 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11831 SWIG_TypeClientData(SWIGTYPE_p_wxPNGHandler, obj);
11832 Py_INCREF(obj);
11833 return Py_BuildValue((char *)"");
11834}
c32bde28 11835static PyObject *_wrap_new_GIFHandler(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11836 PyObject *resultobj;
11837 wxGIFHandler *result;
11838 char *kwnames[] = {
11839 NULL
11840 };
11841
11842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GIFHandler",kwnames)) goto fail;
11843 {
11844 PyThreadState* __tstate = wxPyBeginAllowThreads();
11845 result = (wxGIFHandler *)new wxGIFHandler();
11846
11847 wxPyEndAllowThreads(__tstate);
11848 if (PyErr_Occurred()) SWIG_fail;
11849 }
11850 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGIFHandler, 1);
11851 return resultobj;
11852 fail:
11853 return NULL;
11854}
11855
11856
c32bde28 11857static PyObject * GIFHandler_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
11858 PyObject *obj;
11859 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11860 SWIG_TypeClientData(SWIGTYPE_p_wxGIFHandler, obj);
11861 Py_INCREF(obj);
11862 return Py_BuildValue((char *)"");
11863}
c32bde28 11864static PyObject *_wrap_new_PCXHandler(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11865 PyObject *resultobj;
11866 wxPCXHandler *result;
11867 char *kwnames[] = {
11868 NULL
11869 };
11870
11871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PCXHandler",kwnames)) goto fail;
11872 {
11873 PyThreadState* __tstate = wxPyBeginAllowThreads();
11874 result = (wxPCXHandler *)new wxPCXHandler();
11875
11876 wxPyEndAllowThreads(__tstate);
11877 if (PyErr_Occurred()) SWIG_fail;
11878 }
11879 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPCXHandler, 1);
11880 return resultobj;
11881 fail:
11882 return NULL;
11883}
11884
11885
c32bde28 11886static PyObject * PCXHandler_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
11887 PyObject *obj;
11888 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11889 SWIG_TypeClientData(SWIGTYPE_p_wxPCXHandler, obj);
11890 Py_INCREF(obj);
11891 return Py_BuildValue((char *)"");
11892}
c32bde28 11893static PyObject *_wrap_new_JPEGHandler(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11894 PyObject *resultobj;
11895 wxJPEGHandler *result;
11896 char *kwnames[] = {
11897 NULL
11898 };
11899
11900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_JPEGHandler",kwnames)) goto fail;
11901 {
11902 PyThreadState* __tstate = wxPyBeginAllowThreads();
11903 result = (wxJPEGHandler *)new wxJPEGHandler();
11904
11905 wxPyEndAllowThreads(__tstate);
11906 if (PyErr_Occurred()) SWIG_fail;
11907 }
11908 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJPEGHandler, 1);
11909 return resultobj;
11910 fail:
11911 return NULL;
11912}
11913
11914
c32bde28 11915static PyObject * JPEGHandler_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
11916 PyObject *obj;
11917 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11918 SWIG_TypeClientData(SWIGTYPE_p_wxJPEGHandler, obj);
11919 Py_INCREF(obj);
11920 return Py_BuildValue((char *)"");
11921}
c32bde28 11922static PyObject *_wrap_new_PNMHandler(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11923 PyObject *resultobj;
11924 wxPNMHandler *result;
11925 char *kwnames[] = {
11926 NULL
11927 };
11928
11929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNMHandler",kwnames)) goto fail;
11930 {
11931 PyThreadState* __tstate = wxPyBeginAllowThreads();
11932 result = (wxPNMHandler *)new wxPNMHandler();
11933
11934 wxPyEndAllowThreads(__tstate);
11935 if (PyErr_Occurred()) SWIG_fail;
11936 }
11937 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNMHandler, 1);
11938 return resultobj;
11939 fail:
11940 return NULL;
11941}
11942
11943
c32bde28 11944static PyObject * PNMHandler_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
11945 PyObject *obj;
11946 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11947 SWIG_TypeClientData(SWIGTYPE_p_wxPNMHandler, obj);
11948 Py_INCREF(obj);
11949 return Py_BuildValue((char *)"");
11950}
c32bde28 11951static PyObject *_wrap_new_XPMHandler(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11952 PyObject *resultobj;
11953 wxXPMHandler *result;
11954 char *kwnames[] = {
11955 NULL
11956 };
11957
11958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XPMHandler",kwnames)) goto fail;
11959 {
11960 PyThreadState* __tstate = wxPyBeginAllowThreads();
11961 result = (wxXPMHandler *)new wxXPMHandler();
11962
11963 wxPyEndAllowThreads(__tstate);
11964 if (PyErr_Occurred()) SWIG_fail;
11965 }
11966 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXPMHandler, 1);
11967 return resultobj;
11968 fail:
11969 return NULL;
11970}
11971
11972
c32bde28 11973static PyObject * XPMHandler_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
11974 PyObject *obj;
11975 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11976 SWIG_TypeClientData(SWIGTYPE_p_wxXPMHandler, obj);
11977 Py_INCREF(obj);
11978 return Py_BuildValue((char *)"");
11979}
c32bde28 11980static PyObject *_wrap_new_TIFFHandler(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11981 PyObject *resultobj;
11982 wxTIFFHandler *result;
11983 char *kwnames[] = {
11984 NULL
11985 };
11986
11987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TIFFHandler",kwnames)) goto fail;
11988 {
11989 PyThreadState* __tstate = wxPyBeginAllowThreads();
11990 result = (wxTIFFHandler *)new wxTIFFHandler();
11991
11992 wxPyEndAllowThreads(__tstate);
11993 if (PyErr_Occurred()) SWIG_fail;
11994 }
11995 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTIFFHandler, 1);
11996 return resultobj;
11997 fail:
11998 return NULL;
11999}
12000
12001
c32bde28 12002static PyObject * TIFFHandler_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
12003 PyObject *obj;
12004 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12005 SWIG_TypeClientData(SWIGTYPE_p_wxTIFFHandler, obj);
12006 Py_INCREF(obj);
12007 return Py_BuildValue((char *)"");
12008}
c32bde28 12009static PyObject *_wrap_Quantize_Quantize(PyObject *, PyObject *args, PyObject *kwargs) {
c0de73ae
RD
12010 PyObject *resultobj;
12011 wxImage *arg1 = 0 ;
12012 wxImage *arg2 = 0 ;
12013 int arg3 = (int) 236 ;
12014 int arg4 = (int) wxQUANTIZE_INCLUDE_WINDOWS_COLOURS|wxQUANTIZE_FILL_DESTINATION_IMAGE ;
12015 bool result;
12016 PyObject * obj0 = 0 ;
12017 PyObject * obj1 = 0 ;
12018 PyObject * obj2 = 0 ;
12019 PyObject * obj3 = 0 ;
12020 char *kwnames[] = {
12021 (char *) "src",(char *) "dest",(char *) "desiredNoColours",(char *) "flags", NULL
12022 };
12023
12024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Quantize_Quantize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
12026 SWIG_POINTER_EXCEPTION | 0)) == -1)
12027 SWIG_fail;
12028 if (arg1 == NULL) {
12029 PyErr_SetString(PyExc_TypeError,"null reference");
12030 SWIG_fail;
12031 }
12032 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage,
12033 SWIG_POINTER_EXCEPTION | 0)) == -1)
12034 SWIG_fail;
12035 if (arg2 == NULL) {
12036 PyErr_SetString(PyExc_TypeError,"null reference");
12037 SWIG_fail;
12038 }
12039 if (obj2) {
c32bde28 12040 arg3 = (int)SWIG_As_int(obj2);
c0de73ae
RD
12041 if (PyErr_Occurred()) SWIG_fail;
12042 }
12043 if (obj3) {
c32bde28 12044 arg4 = (int)SWIG_As_int(obj3);
c0de73ae
RD
12045 if (PyErr_Occurred()) SWIG_fail;
12046 }
12047 {
12048 PyThreadState* __tstate = wxPyBeginAllowThreads();
12049 result = (bool)Quantize_Quantize((wxImage const &)*arg1,*arg2,arg3,arg4);
12050
12051 wxPyEndAllowThreads(__tstate);
12052 if (PyErr_Occurred()) SWIG_fail;
12053 }
12054 {
12055 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12056 }
12057 return resultobj;
12058 fail:
12059 return NULL;
12060}
12061
12062
c32bde28 12063static PyObject * Quantize_swigregister(PyObject *, PyObject *args) {
c0de73ae
RD
12064 PyObject *obj;
12065 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12066 SWIG_TypeClientData(SWIGTYPE_p_wxQuantize, obj);
12067 Py_INCREF(obj);
12068 return Py_BuildValue((char *)"");
12069}
c32bde28 12070static PyObject *_wrap_new_EvtHandler(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12071 PyObject *resultobj;
12072 wxEvtHandler *result;
12073 char *kwnames[] = {
12074 NULL
12075 };
12076
12077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EvtHandler",kwnames)) goto fail;
12078 {
12079 PyThreadState* __tstate = wxPyBeginAllowThreads();
12080 result = (wxEvtHandler *)new wxEvtHandler();
12081
12082 wxPyEndAllowThreads(__tstate);
12083 if (PyErr_Occurred()) SWIG_fail;
12084 }
b0f7404b 12085 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvtHandler, 1);
d55e5bfc
RD
12086 return resultobj;
12087 fail:
12088 return NULL;
12089}
12090
12091
c32bde28 12092static PyObject *_wrap_EvtHandler_GetNextHandler(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12093 PyObject *resultobj;
12094 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12095 wxEvtHandler *result;
12096 PyObject * obj0 = 0 ;
12097 char *kwnames[] = {
12098 (char *) "self", NULL
12099 };
12100
12101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetNextHandler",kwnames,&obj0)) goto fail;
12102 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12104 {
12105 PyThreadState* __tstate = wxPyBeginAllowThreads();
12106 result = (wxEvtHandler *)(arg1)->GetNextHandler();
12107
12108 wxPyEndAllowThreads(__tstate);
12109 if (PyErr_Occurred()) SWIG_fail;
12110 }
12111 {
412d302d 12112 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
12113 }
12114 return resultobj;
12115 fail:
12116 return NULL;
12117}
12118
12119
c32bde28 12120static PyObject *_wrap_EvtHandler_GetPreviousHandler(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12121 PyObject *resultobj;
12122 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12123 wxEvtHandler *result;
12124 PyObject * obj0 = 0 ;
12125 char *kwnames[] = {
12126 (char *) "self", NULL
12127 };
12128
12129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetPreviousHandler",kwnames,&obj0)) goto fail;
12130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12132 {
12133 PyThreadState* __tstate = wxPyBeginAllowThreads();
12134 result = (wxEvtHandler *)(arg1)->GetPreviousHandler();
12135
12136 wxPyEndAllowThreads(__tstate);
12137 if (PyErr_Occurred()) SWIG_fail;
12138 }
12139 {
412d302d 12140 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
12141 }
12142 return resultobj;
12143 fail:
12144 return NULL;
12145}
12146
12147
c32bde28 12148static PyObject *_wrap_EvtHandler_SetNextHandler(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12149 PyObject *resultobj;
12150 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12151 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
12152 PyObject * obj0 = 0 ;
12153 PyObject * obj1 = 0 ;
12154 char *kwnames[] = {
12155 (char *) "self",(char *) "handler", NULL
12156 };
12157
12158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetNextHandler",kwnames,&obj0,&obj1)) goto fail;
12159 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12160 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12161 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
12162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12163 {
12164 PyThreadState* __tstate = wxPyBeginAllowThreads();
12165 (arg1)->SetNextHandler(arg2);
12166
12167 wxPyEndAllowThreads(__tstate);
12168 if (PyErr_Occurred()) SWIG_fail;
12169 }
12170 Py_INCREF(Py_None); resultobj = Py_None;
12171 return resultobj;
12172 fail:
12173 return NULL;
12174}
12175
12176
c32bde28 12177static PyObject *_wrap_EvtHandler_SetPreviousHandler(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12178 PyObject *resultobj;
12179 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12180 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
12181 PyObject * obj0 = 0 ;
12182 PyObject * obj1 = 0 ;
12183 char *kwnames[] = {
12184 (char *) "self",(char *) "handler", NULL
12185 };
12186
12187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) goto fail;
12188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12190 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
12191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12192 {
12193 PyThreadState* __tstate = wxPyBeginAllowThreads();
12194 (arg1)->SetPreviousHandler(arg2);
12195
12196 wxPyEndAllowThreads(__tstate);
12197 if (PyErr_Occurred()) SWIG_fail;
12198 }
12199 Py_INCREF(Py_None); resultobj = Py_None;
12200 return resultobj;
12201 fail:
12202 return NULL;
12203}
12204
12205
c32bde28 12206static PyObject *_wrap_EvtHandler_GetEvtHandlerEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12207 PyObject *resultobj;
12208 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12209 bool result;
12210 PyObject * obj0 = 0 ;
12211 char *kwnames[] = {
12212 (char *) "self", NULL
12213 };
12214
12215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetEvtHandlerEnabled",kwnames,&obj0)) goto fail;
12216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12218 {
12219 PyThreadState* __tstate = wxPyBeginAllowThreads();
12220 result = (bool)(arg1)->GetEvtHandlerEnabled();
12221
12222 wxPyEndAllowThreads(__tstate);
12223 if (PyErr_Occurred()) SWIG_fail;
12224 }
12225 {
12226 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12227 }
12228 return resultobj;
12229 fail:
12230 return NULL;
12231}
12232
12233
c32bde28 12234static PyObject *_wrap_EvtHandler_SetEvtHandlerEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12235 PyObject *resultobj;
12236 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12237 bool arg2 ;
12238 PyObject * obj0 = 0 ;
12239 PyObject * obj1 = 0 ;
12240 char *kwnames[] = {
12241 (char *) "self",(char *) "enabled", NULL
12242 };
12243
12244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetEvtHandlerEnabled",kwnames,&obj0,&obj1)) goto fail;
12245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 12247 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
12248 if (PyErr_Occurred()) SWIG_fail;
12249 {
12250 PyThreadState* __tstate = wxPyBeginAllowThreads();
12251 (arg1)->SetEvtHandlerEnabled(arg2);
12252
12253 wxPyEndAllowThreads(__tstate);
12254 if (PyErr_Occurred()) SWIG_fail;
12255 }
12256 Py_INCREF(Py_None); resultobj = Py_None;
12257 return resultobj;
12258 fail:
12259 return NULL;
12260}
12261
12262
c32bde28 12263static PyObject *_wrap_EvtHandler_ProcessEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12264 PyObject *resultobj;
12265 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12266 wxEvent *arg2 = 0 ;
12267 bool result;
12268 PyObject * obj0 = 0 ;
12269 PyObject * obj1 = 0 ;
12270 char *kwnames[] = {
12271 (char *) "self",(char *) "event", NULL
12272 };
12273
12274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_ProcessEvent",kwnames,&obj0,&obj1)) goto fail;
12275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12277 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent,
12278 SWIG_POINTER_EXCEPTION | 0)) == -1)
12279 SWIG_fail;
12280 if (arg2 == NULL) {
12281 PyErr_SetString(PyExc_TypeError,"null reference");
12282 SWIG_fail;
12283 }
12284 {
12285 PyThreadState* __tstate = wxPyBeginAllowThreads();
12286 result = (bool)(arg1)->ProcessEvent(*arg2);
12287
12288 wxPyEndAllowThreads(__tstate);
12289 if (PyErr_Occurred()) SWIG_fail;
12290 }
12291 {
12292 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12293 }
12294 return resultobj;
12295 fail:
12296 return NULL;
12297}
12298
12299
c32bde28 12300static PyObject *_wrap_EvtHandler_AddPendingEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12301 PyObject *resultobj;
12302 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12303 wxEvent *arg2 = 0 ;
12304 PyObject * obj0 = 0 ;
12305 PyObject * obj1 = 0 ;
12306 char *kwnames[] = {
12307 (char *) "self",(char *) "event", NULL
12308 };
12309
12310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_AddPendingEvent",kwnames,&obj0,&obj1)) goto fail;
12311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12313 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent,
12314 SWIG_POINTER_EXCEPTION | 0)) == -1)
12315 SWIG_fail;
12316 if (arg2 == NULL) {
12317 PyErr_SetString(PyExc_TypeError,"null reference");
12318 SWIG_fail;
12319 }
12320 {
12321 PyThreadState* __tstate = wxPyBeginAllowThreads();
12322 (arg1)->AddPendingEvent(*arg2);
12323
12324 wxPyEndAllowThreads(__tstate);
12325 if (PyErr_Occurred()) SWIG_fail;
12326 }
12327 Py_INCREF(Py_None); resultobj = Py_None;
12328 return resultobj;
12329 fail:
12330 return NULL;
12331}
12332
12333
c32bde28 12334static PyObject *_wrap_EvtHandler_ProcessPendingEvents(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12335 PyObject *resultobj;
12336 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12337 PyObject * obj0 = 0 ;
12338 char *kwnames[] = {
12339 (char *) "self", NULL
12340 };
12341
12342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_ProcessPendingEvents",kwnames,&obj0)) goto fail;
12343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12345 {
12346 PyThreadState* __tstate = wxPyBeginAllowThreads();
12347 (arg1)->ProcessPendingEvents();
12348
12349 wxPyEndAllowThreads(__tstate);
12350 if (PyErr_Occurred()) SWIG_fail;
12351 }
12352 Py_INCREF(Py_None); resultobj = Py_None;
12353 return resultobj;
12354 fail:
12355 return NULL;
12356}
12357
12358
c32bde28 12359static PyObject *_wrap_EvtHandler_Connect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12360 PyObject *resultobj;
12361 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12362 int arg2 ;
12363 int arg3 ;
12364 int arg4 ;
12365 PyObject *arg5 = (PyObject *) 0 ;
12366 PyObject * obj0 = 0 ;
12367 PyObject * obj1 = 0 ;
12368 PyObject * obj2 = 0 ;
12369 PyObject * obj3 = 0 ;
12370 PyObject * obj4 = 0 ;
12371 char *kwnames[] = {
12372 (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType",(char *) "func", NULL
12373 };
12374
12375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:EvtHandler_Connect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 12378 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 12379 if (PyErr_Occurred()) SWIG_fail;
c32bde28 12380 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 12381 if (PyErr_Occurred()) SWIG_fail;
c32bde28 12382 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
12383 if (PyErr_Occurred()) SWIG_fail;
12384 arg5 = obj4;
12385 {
12386 PyThreadState* __tstate = wxPyBeginAllowThreads();
12387 wxEvtHandler_Connect(arg1,arg2,arg3,arg4,arg5);
12388
12389 wxPyEndAllowThreads(__tstate);
12390 if (PyErr_Occurred()) SWIG_fail;
12391 }
12392 Py_INCREF(Py_None); resultobj = Py_None;
12393 return resultobj;
12394 fail:
12395 return NULL;
12396}
12397
12398
c32bde28 12399static PyObject *_wrap_EvtHandler_Disconnect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12400 PyObject *resultobj;
12401 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12402 int arg2 ;
12403 int arg3 = (int) -1 ;
12404 wxEventType arg4 = (wxEventType) wxEVT_NULL ;
12405 bool result;
12406 PyObject * obj0 = 0 ;
12407 PyObject * obj1 = 0 ;
12408 PyObject * obj2 = 0 ;
12409 PyObject * obj3 = 0 ;
12410 char *kwnames[] = {
12411 (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType", NULL
12412 };
12413
12414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:EvtHandler_Disconnect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 12417 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
12418 if (PyErr_Occurred()) SWIG_fail;
12419 if (obj2) {
c32bde28 12420 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
12421 if (PyErr_Occurred()) SWIG_fail;
12422 }
12423 if (obj3) {
c32bde28 12424 arg4 = (wxEventType)SWIG_As_int(obj3);
d55e5bfc
RD
12425 if (PyErr_Occurred()) SWIG_fail;
12426 }
12427 {
12428 PyThreadState* __tstate = wxPyBeginAllowThreads();
12429 result = (bool)wxEvtHandler_Disconnect(arg1,arg2,arg3,arg4);
12430
12431 wxPyEndAllowThreads(__tstate);
12432 if (PyErr_Occurred()) SWIG_fail;
12433 }
12434 {
12435 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12436 }
12437 return resultobj;
12438 fail:
12439 return NULL;
12440}
12441
12442
c32bde28 12443static PyObject *_wrap_EvtHandler__setOORInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12444 PyObject *resultobj;
12445 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12446 PyObject *arg2 = (PyObject *) 0 ;
12447 PyObject * obj0 = 0 ;
12448 PyObject * obj1 = 0 ;
12449 char *kwnames[] = {
12450 (char *) "self",(char *) "_self", NULL
12451 };
12452
12453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
12454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12456 arg2 = obj1;
12457 {
12458 PyThreadState* __tstate = wxPyBeginAllowThreads();
12459 wxEvtHandler__setOORInfo(arg1,arg2);
12460
12461 wxPyEndAllowThreads(__tstate);
12462 if (PyErr_Occurred()) SWIG_fail;
12463 }
12464 Py_INCREF(Py_None); resultobj = Py_None;
12465 return resultobj;
12466 fail:
12467 return NULL;
12468}
12469
12470
c32bde28 12471static PyObject * EvtHandler_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
12472 PyObject *obj;
12473 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12474 SWIG_TypeClientData(SWIGTYPE_p_wxEvtHandler, obj);
12475 Py_INCREF(obj);
12476 return Py_BuildValue((char *)"");
12477}
c32bde28 12478static PyObject *_wrap_NewEventType(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12479 PyObject *resultobj;
12480 wxEventType result;
12481 char *kwnames[] = {
12482 NULL
12483 };
12484
12485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewEventType",kwnames)) goto fail;
12486 {
12487 PyThreadState* __tstate = wxPyBeginAllowThreads();
12488 result = (wxEventType)wxNewEventType();
12489
12490 wxPyEndAllowThreads(__tstate);
12491 if (PyErr_Occurred()) SWIG_fail;
12492 }
c32bde28 12493 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
12494 return resultobj;
12495 fail:
12496 return NULL;
12497}
12498
12499
c32bde28 12500static PyObject *_wrap_delete_Event(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12501 PyObject *resultobj;
12502 wxEvent *arg1 = (wxEvent *) 0 ;
12503 PyObject * obj0 = 0 ;
12504 char *kwnames[] = {
12505 (char *) "self", NULL
12506 };
12507
12508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Event",kwnames,&obj0)) goto fail;
12509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12511 {
12512 PyThreadState* __tstate = wxPyBeginAllowThreads();
12513 delete arg1;
12514
12515 wxPyEndAllowThreads(__tstate);
12516 if (PyErr_Occurred()) SWIG_fail;
12517 }
12518 Py_INCREF(Py_None); resultobj = Py_None;
12519 return resultobj;
12520 fail:
12521 return NULL;
12522}
12523
12524
c32bde28 12525static PyObject *_wrap_Event_SetEventType(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12526 PyObject *resultobj;
12527 wxEvent *arg1 = (wxEvent *) 0 ;
12528 wxEventType arg2 ;
12529 PyObject * obj0 = 0 ;
12530 PyObject * obj1 = 0 ;
12531 char *kwnames[] = {
12532 (char *) "self",(char *) "typ", NULL
12533 };
12534
12535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventType",kwnames,&obj0,&obj1)) goto fail;
12536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 12538 arg2 = (wxEventType)SWIG_As_int(obj1);
d55e5bfc
RD
12539 if (PyErr_Occurred()) SWIG_fail;
12540 {
12541 PyThreadState* __tstate = wxPyBeginAllowThreads();
12542 (arg1)->SetEventType(arg2);
12543
12544 wxPyEndAllowThreads(__tstate);
12545 if (PyErr_Occurred()) SWIG_fail;
12546 }
12547 Py_INCREF(Py_None); resultobj = Py_None;
12548 return resultobj;
12549 fail:
12550 return NULL;
12551}
12552
12553
c32bde28 12554static PyObject *_wrap_Event_GetEventType(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12555 PyObject *resultobj;
12556 wxEvent *arg1 = (wxEvent *) 0 ;
12557 wxEventType result;
12558 PyObject * obj0 = 0 ;
12559 char *kwnames[] = {
12560 (char *) "self", NULL
12561 };
12562
12563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventType",kwnames,&obj0)) goto fail;
12564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12566 {
12567 PyThreadState* __tstate = wxPyBeginAllowThreads();
12568 result = (wxEventType)((wxEvent const *)arg1)->GetEventType();
12569
12570 wxPyEndAllowThreads(__tstate);
12571 if (PyErr_Occurred()) SWIG_fail;
12572 }
c32bde28 12573 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
12574 return resultobj;
12575 fail:
12576 return NULL;
12577}
12578
12579
c32bde28 12580static PyObject *_wrap_Event_GetEventObject(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12581 PyObject *resultobj;
12582 wxEvent *arg1 = (wxEvent *) 0 ;
12583 wxObject *result;
12584 PyObject * obj0 = 0 ;
12585 char *kwnames[] = {
12586 (char *) "self", NULL
12587 };
12588
12589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventObject",kwnames,&obj0)) goto fail;
12590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12592 {
12593 PyThreadState* __tstate = wxPyBeginAllowThreads();
12594 result = (wxObject *)((wxEvent const *)arg1)->GetEventObject();
12595
12596 wxPyEndAllowThreads(__tstate);
12597 if (PyErr_Occurred()) SWIG_fail;
12598 }
12599 {
412d302d 12600 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
12601 }
12602 return resultobj;
12603 fail:
12604 return NULL;
12605}
12606
12607
c32bde28 12608static PyObject *_wrap_Event_SetEventObject(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12609 PyObject *resultobj;
12610 wxEvent *arg1 = (wxEvent *) 0 ;
12611 wxObject *arg2 = (wxObject *) 0 ;
12612 PyObject * obj0 = 0 ;
12613 PyObject * obj1 = 0 ;
12614 char *kwnames[] = {
12615 (char *) "self",(char *) "obj", NULL
12616 };
12617
12618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventObject",kwnames,&obj0,&obj1)) goto fail;
12619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12621 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject,
12622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12623 {
12624 PyThreadState* __tstate = wxPyBeginAllowThreads();
12625 (arg1)->SetEventObject(arg2);
12626
12627 wxPyEndAllowThreads(__tstate);
12628 if (PyErr_Occurred()) SWIG_fail;
12629 }
12630 Py_INCREF(Py_None); resultobj = Py_None;
12631 return resultobj;
12632 fail:
12633 return NULL;
12634}
12635
12636
c32bde28 12637static PyObject *_wrap_Event_GetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12638 PyObject *resultobj;
12639 wxEvent *arg1 = (wxEvent *) 0 ;
12640 long result;
12641 PyObject * obj0 = 0 ;
12642 char *kwnames[] = {
12643 (char *) "self", NULL
12644 };
12645
12646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetTimestamp",kwnames,&obj0)) goto fail;
12647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12649 {
12650 PyThreadState* __tstate = wxPyBeginAllowThreads();
12651 result = (long)((wxEvent const *)arg1)->GetTimestamp();
12652
12653 wxPyEndAllowThreads(__tstate);
12654 if (PyErr_Occurred()) SWIG_fail;
12655 }
c32bde28 12656 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
12657 return resultobj;
12658 fail:
12659 return NULL;
12660}
12661
12662
c32bde28 12663static PyObject *_wrap_Event_SetTimestamp(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12664 PyObject *resultobj;
12665 wxEvent *arg1 = (wxEvent *) 0 ;
12666 long arg2 = (long) 0 ;
12667 PyObject * obj0 = 0 ;
12668 PyObject * obj1 = 0 ;
12669 char *kwnames[] = {
12670 (char *) "self",(char *) "ts", NULL
12671 };
12672
12673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_SetTimestamp",kwnames,&obj0,&obj1)) goto fail;
12674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12676 if (obj1) {
c32bde28 12677 arg2 = (long)SWIG_As_long(obj1);
d55e5bfc
RD
12678 if (PyErr_Occurred()) SWIG_fail;
12679 }
12680 {
12681 PyThreadState* __tstate = wxPyBeginAllowThreads();
12682 (arg1)->SetTimestamp(arg2);
12683
12684 wxPyEndAllowThreads(__tstate);
12685 if (PyErr_Occurred()) SWIG_fail;
12686 }
12687 Py_INCREF(Py_None); resultobj = Py_None;
12688 return resultobj;
12689 fail:
12690 return NULL;
12691}
12692
12693
c32bde28 12694static PyObject *_wrap_Event_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12695 PyObject *resultobj;
12696 wxEvent *arg1 = (wxEvent *) 0 ;
12697 int result;
12698 PyObject * obj0 = 0 ;
12699 char *kwnames[] = {
12700 (char *) "self", NULL
12701 };
12702
12703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetId",kwnames,&obj0)) goto fail;
12704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12706 {
12707 PyThreadState* __tstate = wxPyBeginAllowThreads();
12708 result = (int)((wxEvent const *)arg1)->GetId();
12709
12710 wxPyEndAllowThreads(__tstate);
12711 if (PyErr_Occurred()) SWIG_fail;
12712 }
c32bde28 12713 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
12714 return resultobj;
12715 fail:
12716 return NULL;
12717}
12718
12719
c32bde28 12720static PyObject *_wrap_Event_SetId(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12721 PyObject *resultobj;
12722 wxEvent *arg1 = (wxEvent *) 0 ;
12723 int arg2 ;
12724 PyObject * obj0 = 0 ;
12725 PyObject * obj1 = 0 ;
12726 char *kwnames[] = {
12727 (char *) "self",(char *) "Id", NULL
12728 };
12729
12730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetId",kwnames,&obj0,&obj1)) goto fail;
12731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 12733 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
12734 if (PyErr_Occurred()) SWIG_fail;
12735 {
12736 PyThreadState* __tstate = wxPyBeginAllowThreads();
12737 (arg1)->SetId(arg2);
12738
12739 wxPyEndAllowThreads(__tstate);
12740 if (PyErr_Occurred()) SWIG_fail;
12741 }
12742 Py_INCREF(Py_None); resultobj = Py_None;
12743 return resultobj;
12744 fail:
12745 return NULL;
12746}
12747
12748
c32bde28 12749static PyObject *_wrap_Event_IsCommandEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12750 PyObject *resultobj;
12751 wxEvent *arg1 = (wxEvent *) 0 ;
12752 bool result;
12753 PyObject * obj0 = 0 ;
12754 char *kwnames[] = {
12755 (char *) "self", NULL
12756 };
12757
12758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_IsCommandEvent",kwnames,&obj0)) goto fail;
12759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12761 {
12762 PyThreadState* __tstate = wxPyBeginAllowThreads();
12763 result = (bool)((wxEvent const *)arg1)->IsCommandEvent();
12764
12765 wxPyEndAllowThreads(__tstate);
12766 if (PyErr_Occurred()) SWIG_fail;
12767 }
12768 {
12769 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12770 }
12771 return resultobj;
12772 fail:
12773 return NULL;
12774}
12775
12776
c32bde28 12777static PyObject *_wrap_Event_Skip(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12778 PyObject *resultobj;
12779 wxEvent *arg1 = (wxEvent *) 0 ;
12780 bool arg2 = (bool) True ;
12781 PyObject * obj0 = 0 ;
12782 PyObject * obj1 = 0 ;
12783 char *kwnames[] = {
12784 (char *) "self",(char *) "skip", NULL
12785 };
12786
12787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_Skip",kwnames,&obj0,&obj1)) goto fail;
12788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12790 if (obj1) {
c32bde28 12791 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
12792 if (PyErr_Occurred()) SWIG_fail;
12793 }
12794 {
12795 PyThreadState* __tstate = wxPyBeginAllowThreads();
12796 (arg1)->Skip(arg2);
12797
12798 wxPyEndAllowThreads(__tstate);
12799 if (PyErr_Occurred()) SWIG_fail;
12800 }
12801 Py_INCREF(Py_None); resultobj = Py_None;
12802 return resultobj;
12803 fail:
12804 return NULL;
12805}
12806
12807
c32bde28 12808static PyObject *_wrap_Event_GetSkipped(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12809 PyObject *resultobj;
12810 wxEvent *arg1 = (wxEvent *) 0 ;
12811 bool result;
12812 PyObject * obj0 = 0 ;
12813 char *kwnames[] = {
12814 (char *) "self", NULL
12815 };
12816
12817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetSkipped",kwnames,&obj0)) goto fail;
12818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12820 {
12821 PyThreadState* __tstate = wxPyBeginAllowThreads();
12822 result = (bool)((wxEvent const *)arg1)->GetSkipped();
12823
12824 wxPyEndAllowThreads(__tstate);
12825 if (PyErr_Occurred()) SWIG_fail;
12826 }
12827 {
12828 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12829 }
12830 return resultobj;
12831 fail:
12832 return NULL;
12833}
12834
12835
c32bde28 12836static PyObject *_wrap_Event_ShouldPropagate(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12837 PyObject *resultobj;
12838 wxEvent *arg1 = (wxEvent *) 0 ;
12839 bool result;
12840 PyObject * obj0 = 0 ;
12841 char *kwnames[] = {
12842 (char *) "self", NULL
12843 };
12844
12845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_ShouldPropagate",kwnames,&obj0)) goto fail;
12846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12848 {
12849 PyThreadState* __tstate = wxPyBeginAllowThreads();
12850 result = (bool)((wxEvent const *)arg1)->ShouldPropagate();
12851
12852 wxPyEndAllowThreads(__tstate);
12853 if (PyErr_Occurred()) SWIG_fail;
12854 }
12855 {
12856 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12857 }
12858 return resultobj;
12859 fail:
12860 return NULL;
12861}
12862
12863
c32bde28 12864static PyObject *_wrap_Event_StopPropagation(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12865 PyObject *resultobj;
12866 wxEvent *arg1 = (wxEvent *) 0 ;
12867 int result;
12868 PyObject * obj0 = 0 ;
12869 char *kwnames[] = {
12870 (char *) "self", NULL
12871 };
12872
12873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_StopPropagation",kwnames,&obj0)) goto fail;
12874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12876 {
12877 PyThreadState* __tstate = wxPyBeginAllowThreads();
12878 result = (int)(arg1)->StopPropagation();
12879
12880 wxPyEndAllowThreads(__tstate);
12881 if (PyErr_Occurred()) SWIG_fail;
12882 }
c32bde28 12883 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
12884 return resultobj;
12885 fail:
12886 return NULL;
12887}
12888
12889
c32bde28 12890static PyObject *_wrap_Event_ResumePropagation(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12891 PyObject *resultobj;
12892 wxEvent *arg1 = (wxEvent *) 0 ;
12893 int arg2 ;
12894 PyObject * obj0 = 0 ;
12895 PyObject * obj1 = 0 ;
12896 char *kwnames[] = {
12897 (char *) "self",(char *) "propagationLevel", NULL
12898 };
12899
12900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_ResumePropagation",kwnames,&obj0,&obj1)) goto fail;
12901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 12903 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
12904 if (PyErr_Occurred()) SWIG_fail;
12905 {
12906 PyThreadState* __tstate = wxPyBeginAllowThreads();
12907 (arg1)->ResumePropagation(arg2);
12908
12909 wxPyEndAllowThreads(__tstate);
12910 if (PyErr_Occurred()) SWIG_fail;
12911 }
12912 Py_INCREF(Py_None); resultobj = Py_None;
12913 return resultobj;
12914 fail:
12915 return NULL;
12916}
12917
12918
c32bde28 12919static PyObject *_wrap_Event_Clone(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12920 PyObject *resultobj;
12921 wxEvent *arg1 = (wxEvent *) 0 ;
12922 wxEvent *result;
12923 PyObject * obj0 = 0 ;
12924 char *kwnames[] = {
12925 (char *) "self", NULL
12926 };
12927
12928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_Clone",kwnames,&obj0)) goto fail;
12929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12931 {
12932 PyThreadState* __tstate = wxPyBeginAllowThreads();
12933 result = (wxEvent *)(arg1)->Clone();
12934
12935 wxPyEndAllowThreads(__tstate);
12936 if (PyErr_Occurred()) SWIG_fail;
12937 }
12938 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0);
12939 return resultobj;
12940 fail:
12941 return NULL;
12942}
12943
12944
c32bde28 12945static PyObject * Event_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
12946 PyObject *obj;
12947 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12948 SWIG_TypeClientData(SWIGTYPE_p_wxEvent, obj);
12949 Py_INCREF(obj);
12950 return Py_BuildValue((char *)"");
12951}
c32bde28 12952static PyObject *_wrap_new_PropagationDisabler(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12953 PyObject *resultobj;
12954 wxEvent *arg1 = 0 ;
12955 wxPropagationDisabler *result;
12956 PyObject * obj0 = 0 ;
12957 char *kwnames[] = {
12958 (char *) "event", NULL
12959 };
12960
12961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagationDisabler",kwnames,&obj0)) goto fail;
12962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12963 SWIG_POINTER_EXCEPTION | 0)) == -1)
12964 SWIG_fail;
12965 if (arg1 == NULL) {
12966 PyErr_SetString(PyExc_TypeError,"null reference");
12967 SWIG_fail;
12968 }
12969 {
12970 PyThreadState* __tstate = wxPyBeginAllowThreads();
12971 result = (wxPropagationDisabler *)new wxPropagationDisabler(*arg1);
12972
12973 wxPyEndAllowThreads(__tstate);
12974 if (PyErr_Occurred()) SWIG_fail;
12975 }
12976 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagationDisabler, 1);
12977 return resultobj;
12978 fail:
12979 return NULL;
12980}
12981
12982
c32bde28 12983static PyObject *_wrap_delete_PropagationDisabler(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
12984 PyObject *resultobj;
12985 wxPropagationDisabler *arg1 = (wxPropagationDisabler *) 0 ;
12986 PyObject * obj0 = 0 ;
12987 char *kwnames[] = {
12988 (char *) "self", NULL
12989 };
12990
12991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagationDisabler",kwnames,&obj0)) goto fail;
12992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagationDisabler,
12993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12994 {
12995 PyThreadState* __tstate = wxPyBeginAllowThreads();
12996 delete arg1;
12997
12998 wxPyEndAllowThreads(__tstate);
12999 if (PyErr_Occurred()) SWIG_fail;
13000 }
13001 Py_INCREF(Py_None); resultobj = Py_None;
13002 return resultobj;
13003 fail:
13004 return NULL;
13005}
13006
13007
c32bde28 13008static PyObject * PropagationDisabler_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
13009 PyObject *obj;
13010 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13011 SWIG_TypeClientData(SWIGTYPE_p_wxPropagationDisabler, obj);
13012 Py_INCREF(obj);
13013 return Py_BuildValue((char *)"");
13014}
c32bde28 13015static PyObject *_wrap_new_PropagateOnce(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13016 PyObject *resultobj;
13017 wxEvent *arg1 = 0 ;
13018 wxPropagateOnce *result;
13019 PyObject * obj0 = 0 ;
13020 char *kwnames[] = {
13021 (char *) "event", NULL
13022 };
13023
13024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagateOnce",kwnames,&obj0)) goto fail;
13025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
13026 SWIG_POINTER_EXCEPTION | 0)) == -1)
13027 SWIG_fail;
13028 if (arg1 == NULL) {
13029 PyErr_SetString(PyExc_TypeError,"null reference");
13030 SWIG_fail;
13031 }
13032 {
13033 PyThreadState* __tstate = wxPyBeginAllowThreads();
13034 result = (wxPropagateOnce *)new wxPropagateOnce(*arg1);
13035
13036 wxPyEndAllowThreads(__tstate);
13037 if (PyErr_Occurred()) SWIG_fail;
13038 }
13039 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagateOnce, 1);
13040 return resultobj;
13041 fail:
13042 return NULL;
13043}
13044
13045
c32bde28 13046static PyObject *_wrap_delete_PropagateOnce(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13047 PyObject *resultobj;
13048 wxPropagateOnce *arg1 = (wxPropagateOnce *) 0 ;
13049 PyObject * obj0 = 0 ;
13050 char *kwnames[] = {
13051 (char *) "self", NULL
13052 };
13053
13054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagateOnce",kwnames,&obj0)) goto fail;
13055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagateOnce,
13056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13057 {
13058 PyThreadState* __tstate = wxPyBeginAllowThreads();
13059 delete arg1;
13060
13061 wxPyEndAllowThreads(__tstate);
13062 if (PyErr_Occurred()) SWIG_fail;
13063 }
13064 Py_INCREF(Py_None); resultobj = Py_None;
13065 return resultobj;
13066 fail:
13067 return NULL;
13068}
13069
13070
c32bde28 13071static PyObject * PropagateOnce_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
13072 PyObject *obj;
13073 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13074 SWIG_TypeClientData(SWIGTYPE_p_wxPropagateOnce, obj);
13075 Py_INCREF(obj);
13076 return Py_BuildValue((char *)"");
13077}
c32bde28 13078static PyObject *_wrap_new_CommandEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13079 PyObject *resultobj;
13080 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
13081 int arg2 = (int) 0 ;
13082 wxCommandEvent *result;
13083 PyObject * obj0 = 0 ;
13084 PyObject * obj1 = 0 ;
13085 char *kwnames[] = {
13086 (char *) "commandType",(char *) "winid", NULL
13087 };
13088
13089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CommandEvent",kwnames,&obj0,&obj1)) goto fail;
13090 if (obj0) {
c32bde28 13091 arg1 = (wxEventType)SWIG_As_int(obj0);
d55e5bfc
RD
13092 if (PyErr_Occurred()) SWIG_fail;
13093 }
13094 if (obj1) {
c32bde28 13095 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
13096 if (PyErr_Occurred()) SWIG_fail;
13097 }
13098 {
13099 PyThreadState* __tstate = wxPyBeginAllowThreads();
13100 result = (wxCommandEvent *)new wxCommandEvent(arg1,arg2);
13101
13102 wxPyEndAllowThreads(__tstate);
13103 if (PyErr_Occurred()) SWIG_fail;
13104 }
13105 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCommandEvent, 1);
13106 return resultobj;
13107 fail:
13108 return NULL;
13109}
13110
13111
c32bde28 13112static PyObject *_wrap_CommandEvent_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13113 PyObject *resultobj;
13114 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
13115 int result;
13116 PyObject * obj0 = 0 ;
13117 char *kwnames[] = {
13118 (char *) "self", NULL
13119 };
13120
13121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetSelection",kwnames,&obj0)) goto fail;
13122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
13123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13124 {
13125 PyThreadState* __tstate = wxPyBeginAllowThreads();
13126 result = (int)((wxCommandEvent const *)arg1)->GetSelection();
13127
13128 wxPyEndAllowThreads(__tstate);
13129 if (PyErr_Occurred()) SWIG_fail;
13130 }
c32bde28 13131 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
13132 return resultobj;
13133 fail:
13134 return NULL;
13135}
13136
13137
c32bde28 13138static PyObject *_wrap_CommandEvent_SetString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13139 PyObject *resultobj;
13140 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
13141 wxString *arg2 = 0 ;
13142 bool temp2 = False ;
13143 PyObject * obj0 = 0 ;
13144 PyObject * obj1 = 0 ;
13145 char *kwnames[] = {
13146 (char *) "self",(char *) "s", NULL
13147 };
13148
13149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetString",kwnames,&obj0,&obj1)) goto fail;
13150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
13151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13152 {
13153 arg2 = wxString_in_helper(obj1);
13154 if (arg2 == NULL) SWIG_fail;
13155 temp2 = True;
13156 }
13157 {
13158 PyThreadState* __tstate = wxPyBeginAllowThreads();
13159 (arg1)->SetString((wxString const &)*arg2);
13160
13161 wxPyEndAllowThreads(__tstate);
13162 if (PyErr_Occurred()) SWIG_fail;
13163 }
13164 Py_INCREF(Py_None); resultobj = Py_None;
13165 {
13166 if (temp2)
13167 delete arg2;
13168 }
13169 return resultobj;
13170 fail:
13171 {
13172 if (temp2)
13173 delete arg2;
13174 }
13175 return NULL;
13176}
13177
13178
c32bde28 13179static PyObject *_wrap_CommandEvent_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13180 PyObject *resultobj;
13181 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
13182 wxString result;
13183 PyObject * obj0 = 0 ;
13184 char *kwnames[] = {
13185 (char *) "self", NULL
13186 };
13187
13188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetString",kwnames,&obj0)) goto fail;
13189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
13190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13191 {
13192 PyThreadState* __tstate = wxPyBeginAllowThreads();
13193 result = ((wxCommandEvent const *)arg1)->GetString();
13194
13195 wxPyEndAllowThreads(__tstate);
13196 if (PyErr_Occurred()) SWIG_fail;
13197 }
13198 {
13199#if wxUSE_UNICODE
13200 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13201#else
13202 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13203#endif
13204 }
13205 return resultobj;
13206 fail:
13207 return NULL;
13208}
13209
13210
c32bde28 13211static PyObject *_wrap_CommandEvent_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13212 PyObject *resultobj;
13213 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
13214 bool result;
13215 PyObject * obj0 = 0 ;
13216 char *kwnames[] = {
13217 (char *) "self", NULL
13218 };
13219
13220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsChecked",kwnames,&obj0)) goto fail;
13221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
13222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13223 {
13224 PyThreadState* __tstate = wxPyBeginAllowThreads();
13225 result = (bool)((wxCommandEvent const *)arg1)->IsChecked();
13226
13227 wxPyEndAllowThreads(__tstate);
13228 if (PyErr_Occurred()) SWIG_fail;
13229 }
13230 {
13231 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13232 }
13233 return resultobj;
13234 fail:
13235 return NULL;
13236}
13237
13238
c32bde28 13239static PyObject *_wrap_CommandEvent_IsSelection(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13240 PyObject *resultobj;
13241 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
13242 bool result;
13243 PyObject * obj0 = 0 ;
13244 char *kwnames[] = {
13245 (char *) "self", NULL
13246 };
13247
13248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsSelection",kwnames,&obj0)) goto fail;
13249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
13250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13251 {
13252 PyThreadState* __tstate = wxPyBeginAllowThreads();
13253 result = (bool)((wxCommandEvent const *)arg1)->IsSelection();
13254
13255 wxPyEndAllowThreads(__tstate);
13256 if (PyErr_Occurred()) SWIG_fail;
13257 }
13258 {
13259 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13260 }
13261 return resultobj;
13262 fail:
13263 return NULL;
13264}
13265
13266
c32bde28 13267static PyObject *_wrap_CommandEvent_SetExtraLong(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13268 PyObject *resultobj;
13269 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
13270 long arg2 ;
13271 PyObject * obj0 = 0 ;
13272 PyObject * obj1 = 0 ;
13273 char *kwnames[] = {
13274 (char *) "self",(char *) "extraLong", NULL
13275 };
13276
13277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetExtraLong",kwnames,&obj0,&obj1)) goto fail;
13278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
13279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 13280 arg2 = (long)SWIG_As_long(obj1);
d55e5bfc
RD
13281 if (PyErr_Occurred()) SWIG_fail;
13282 {
13283 PyThreadState* __tstate = wxPyBeginAllowThreads();
13284 (arg1)->SetExtraLong(arg2);
13285
13286 wxPyEndAllowThreads(__tstate);
13287 if (PyErr_Occurred()) SWIG_fail;
13288 }
13289 Py_INCREF(Py_None); resultobj = Py_None;
13290 return resultobj;
13291 fail:
13292 return NULL;
13293}
13294
13295
c32bde28 13296static PyObject *_wrap_CommandEvent_GetExtraLong(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13297 PyObject *resultobj;
13298 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
13299 long result;
13300 PyObject * obj0 = 0 ;
13301 char *kwnames[] = {
13302 (char *) "self", NULL
13303 };
13304
13305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetExtraLong",kwnames,&obj0)) goto fail;
13306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
13307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13308 {
13309 PyThreadState* __tstate = wxPyBeginAllowThreads();
13310 result = (long)((wxCommandEvent const *)arg1)->GetExtraLong();
13311
13312 wxPyEndAllowThreads(__tstate);
13313 if (PyErr_Occurred()) SWIG_fail;
13314 }
c32bde28 13315 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
13316 return resultobj;
13317 fail:
13318 return NULL;
13319}
13320
13321
c32bde28 13322static PyObject *_wrap_CommandEvent_SetInt(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13323 PyObject *resultobj;
13324 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
13325 int arg2 ;
13326 PyObject * obj0 = 0 ;
13327 PyObject * obj1 = 0 ;
13328 char *kwnames[] = {
13329 (char *) "self",(char *) "i", NULL
13330 };
13331
13332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetInt",kwnames,&obj0,&obj1)) goto fail;
13333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
13334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 13335 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
13336 if (PyErr_Occurred()) SWIG_fail;
13337 {
13338 PyThreadState* __tstate = wxPyBeginAllowThreads();
13339 (arg1)->SetInt(arg2);
13340
13341 wxPyEndAllowThreads(__tstate);
13342 if (PyErr_Occurred()) SWIG_fail;
13343 }
13344 Py_INCREF(Py_None); resultobj = Py_None;
13345 return resultobj;
13346 fail:
13347 return NULL;
13348}
13349
13350
c32bde28 13351static PyObject *_wrap_CommandEvent_GetInt(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13352 PyObject *resultobj;
13353 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
13354 long result;
13355 PyObject * obj0 = 0 ;
13356 char *kwnames[] = {
13357 (char *) "self", NULL
13358 };
13359
13360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetInt",kwnames,&obj0)) goto fail;
13361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
13362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13363 {
13364 PyThreadState* __tstate = wxPyBeginAllowThreads();
13365 result = (long)((wxCommandEvent const *)arg1)->GetInt();
13366
13367 wxPyEndAllowThreads(__tstate);
13368 if (PyErr_Occurred()) SWIG_fail;
13369 }
c32bde28 13370 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
13371 return resultobj;
13372 fail:
13373 return NULL;
13374}
13375
13376
c32bde28 13377static PyObject *_wrap_CommandEvent_Clone(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13378 PyObject *resultobj;
13379 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
13380 wxEvent *result;
13381 PyObject * obj0 = 0 ;
13382 char *kwnames[] = {
13383 (char *) "self", NULL
13384 };
13385
13386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_Clone",kwnames,&obj0)) goto fail;
13387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
13388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13389 {
13390 PyThreadState* __tstate = wxPyBeginAllowThreads();
13391 result = (wxEvent *)((wxCommandEvent const *)arg1)->Clone();
13392
13393 wxPyEndAllowThreads(__tstate);
13394 if (PyErr_Occurred()) SWIG_fail;
13395 }
13396 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0);
13397 return resultobj;
13398 fail:
13399 return NULL;
13400}
13401
13402
c32bde28 13403static PyObject * CommandEvent_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
13404 PyObject *obj;
13405 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13406 SWIG_TypeClientData(SWIGTYPE_p_wxCommandEvent, obj);
13407 Py_INCREF(obj);
13408 return Py_BuildValue((char *)"");
13409}
c32bde28 13410static PyObject *_wrap_new_NotifyEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13411 PyObject *resultobj;
13412 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
13413 int arg2 = (int) 0 ;
13414 wxNotifyEvent *result;
13415 PyObject * obj0 = 0 ;
13416 PyObject * obj1 = 0 ;
13417 char *kwnames[] = {
13418 (char *) "commandType",(char *) "winid", NULL
13419 };
13420
13421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_NotifyEvent",kwnames,&obj0,&obj1)) goto fail;
13422 if (obj0) {
c32bde28 13423 arg1 = (wxEventType)SWIG_As_int(obj0);
d55e5bfc
RD
13424 if (PyErr_Occurred()) SWIG_fail;
13425 }
13426 if (obj1) {
c32bde28 13427 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
13428 if (PyErr_Occurred()) SWIG_fail;
13429 }
13430 {
13431 PyThreadState* __tstate = wxPyBeginAllowThreads();
13432 result = (wxNotifyEvent *)new wxNotifyEvent(arg1,arg2);
13433
13434 wxPyEndAllowThreads(__tstate);
13435 if (PyErr_Occurred()) SWIG_fail;
13436 }
13437 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotifyEvent, 1);
13438 return resultobj;
13439 fail:
13440 return NULL;
13441}
13442
13443
c32bde28 13444static PyObject *_wrap_NotifyEvent_Veto(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13445 PyObject *resultobj;
13446 wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ;
13447 PyObject * obj0 = 0 ;
13448 char *kwnames[] = {
13449 (char *) "self", NULL
13450 };
13451
13452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Veto",kwnames,&obj0)) goto fail;
13453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent,
13454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13455 {
13456 PyThreadState* __tstate = wxPyBeginAllowThreads();
13457 (arg1)->Veto();
13458
13459 wxPyEndAllowThreads(__tstate);
13460 if (PyErr_Occurred()) SWIG_fail;
13461 }
13462 Py_INCREF(Py_None); resultobj = Py_None;
13463 return resultobj;
13464 fail:
13465 return NULL;
13466}
13467
13468
c32bde28 13469static PyObject *_wrap_NotifyEvent_Allow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13470 PyObject *resultobj;
13471 wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ;
13472 PyObject * obj0 = 0 ;
13473 char *kwnames[] = {
13474 (char *) "self", NULL
13475 };
13476
13477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Allow",kwnames,&obj0)) goto fail;
13478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent,
13479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13480 {
13481 PyThreadState* __tstate = wxPyBeginAllowThreads();
13482 (arg1)->Allow();
13483
13484 wxPyEndAllowThreads(__tstate);
13485 if (PyErr_Occurred()) SWIG_fail;
13486 }
13487 Py_INCREF(Py_None); resultobj = Py_None;
13488 return resultobj;
13489 fail:
13490 return NULL;
13491}
13492
13493
c32bde28 13494static PyObject *_wrap_NotifyEvent_IsAllowed(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13495 PyObject *resultobj;
13496 wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ;
13497 bool result;
13498 PyObject * obj0 = 0 ;
13499 char *kwnames[] = {
13500 (char *) "self", NULL
13501 };
13502
13503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_IsAllowed",kwnames,&obj0)) goto fail;
13504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent,
13505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13506 {
13507 PyThreadState* __tstate = wxPyBeginAllowThreads();
13508 result = (bool)(arg1)->IsAllowed();
13509
13510 wxPyEndAllowThreads(__tstate);
13511 if (PyErr_Occurred()) SWIG_fail;
13512 }
13513 {
13514 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13515 }
13516 return resultobj;
13517 fail:
13518 return NULL;
13519}
13520
13521
c32bde28 13522static PyObject * NotifyEvent_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
13523 PyObject *obj;
13524 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13525 SWIG_TypeClientData(SWIGTYPE_p_wxNotifyEvent, obj);
13526 Py_INCREF(obj);
13527 return Py_BuildValue((char *)"");
13528}
c32bde28 13529static PyObject *_wrap_new_ScrollEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13530 PyObject *resultobj;
13531 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
13532 int arg2 = (int) 0 ;
13533 int arg3 = (int) 0 ;
13534 int arg4 = (int) 0 ;
13535 wxScrollEvent *result;
13536 PyObject * obj0 = 0 ;
13537 PyObject * obj1 = 0 ;
13538 PyObject * obj2 = 0 ;
13539 PyObject * obj3 = 0 ;
13540 char *kwnames[] = {
13541 (char *) "commandType",(char *) "winid",(char *) "pos",(char *) "orient", NULL
13542 };
13543
13544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ScrollEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13545 if (obj0) {
c32bde28 13546 arg1 = (wxEventType)SWIG_As_int(obj0);
d55e5bfc
RD
13547 if (PyErr_Occurred()) SWIG_fail;
13548 }
13549 if (obj1) {
c32bde28 13550 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
13551 if (PyErr_Occurred()) SWIG_fail;
13552 }
13553 if (obj2) {
c32bde28 13554 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
13555 if (PyErr_Occurred()) SWIG_fail;
13556 }
13557 if (obj3) {
c32bde28 13558 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
13559 if (PyErr_Occurred()) SWIG_fail;
13560 }
13561 {
13562 PyThreadState* __tstate = wxPyBeginAllowThreads();
13563 result = (wxScrollEvent *)new wxScrollEvent(arg1,arg2,arg3,arg4);
13564
13565 wxPyEndAllowThreads(__tstate);
13566 if (PyErr_Occurred()) SWIG_fail;
13567 }
13568 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollEvent, 1);
13569 return resultobj;
13570 fail:
13571 return NULL;
13572}
13573
13574
c32bde28 13575static PyObject *_wrap_ScrollEvent_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13576 PyObject *resultobj;
13577 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
13578 int result;
13579 PyObject * obj0 = 0 ;
13580 char *kwnames[] = {
13581 (char *) "self", NULL
13582 };
13583
13584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetOrientation",kwnames,&obj0)) goto fail;
13585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent,
13586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13587 {
13588 PyThreadState* __tstate = wxPyBeginAllowThreads();
13589 result = (int)((wxScrollEvent const *)arg1)->GetOrientation();
13590
13591 wxPyEndAllowThreads(__tstate);
13592 if (PyErr_Occurred()) SWIG_fail;
13593 }
c32bde28 13594 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
13595 return resultobj;
13596 fail:
13597 return NULL;
13598}
13599
13600
c32bde28 13601static PyObject *_wrap_ScrollEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13602 PyObject *resultobj;
13603 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
13604 int result;
13605 PyObject * obj0 = 0 ;
13606 char *kwnames[] = {
13607 (char *) "self", NULL
13608 };
13609
13610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetPosition",kwnames,&obj0)) goto fail;
13611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent,
13612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13613 {
13614 PyThreadState* __tstate = wxPyBeginAllowThreads();
13615 result = (int)((wxScrollEvent const *)arg1)->GetPosition();
13616
13617 wxPyEndAllowThreads(__tstate);
13618 if (PyErr_Occurred()) SWIG_fail;
13619 }
c32bde28 13620 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
13621 return resultobj;
13622 fail:
13623 return NULL;
13624}
13625
13626
c32bde28 13627static PyObject *_wrap_ScrollEvent_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13628 PyObject *resultobj;
13629 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
13630 int arg2 ;
13631 PyObject * obj0 = 0 ;
13632 PyObject * obj1 = 0 ;
13633 char *kwnames[] = {
13634 (char *) "self",(char *) "orient", NULL
13635 };
13636
13637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail;
13638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent,
13639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 13640 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
13641 if (PyErr_Occurred()) SWIG_fail;
13642 {
13643 PyThreadState* __tstate = wxPyBeginAllowThreads();
13644 (arg1)->SetOrientation(arg2);
13645
13646 wxPyEndAllowThreads(__tstate);
13647 if (PyErr_Occurred()) SWIG_fail;
13648 }
13649 Py_INCREF(Py_None); resultobj = Py_None;
13650 return resultobj;
13651 fail:
13652 return NULL;
13653}
13654
13655
c32bde28 13656static PyObject *_wrap_ScrollEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13657 PyObject *resultobj;
13658 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
13659 int arg2 ;
13660 PyObject * obj0 = 0 ;
13661 PyObject * obj1 = 0 ;
13662 char *kwnames[] = {
13663 (char *) "self",(char *) "pos", NULL
13664 };
13665
13666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
13667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent,
13668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 13669 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
13670 if (PyErr_Occurred()) SWIG_fail;
13671 {
13672 PyThreadState* __tstate = wxPyBeginAllowThreads();
13673 (arg1)->SetPosition(arg2);
13674
13675 wxPyEndAllowThreads(__tstate);
13676 if (PyErr_Occurred()) SWIG_fail;
13677 }
13678 Py_INCREF(Py_None); resultobj = Py_None;
13679 return resultobj;
13680 fail:
13681 return NULL;
13682}
13683
13684
c32bde28 13685static PyObject * ScrollEvent_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
13686 PyObject *obj;
13687 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13688 SWIG_TypeClientData(SWIGTYPE_p_wxScrollEvent, obj);
13689 Py_INCREF(obj);
13690 return Py_BuildValue((char *)"");
13691}
c32bde28 13692static PyObject *_wrap_new_ScrollWinEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13693 PyObject *resultobj;
13694 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
13695 int arg2 = (int) 0 ;
13696 int arg3 = (int) 0 ;
13697 wxScrollWinEvent *result;
13698 PyObject * obj0 = 0 ;
13699 PyObject * obj1 = 0 ;
13700 PyObject * obj2 = 0 ;
13701 char *kwnames[] = {
13702 (char *) "commandType",(char *) "pos",(char *) "orient", NULL
13703 };
13704
13705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ScrollWinEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13706 if (obj0) {
c32bde28 13707 arg1 = (wxEventType)SWIG_As_int(obj0);
d55e5bfc
RD
13708 if (PyErr_Occurred()) SWIG_fail;
13709 }
13710 if (obj1) {
c32bde28 13711 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
13712 if (PyErr_Occurred()) SWIG_fail;
13713 }
13714 if (obj2) {
c32bde28 13715 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
13716 if (PyErr_Occurred()) SWIG_fail;
13717 }
13718 {
13719 PyThreadState* __tstate = wxPyBeginAllowThreads();
13720 result = (wxScrollWinEvent *)new wxScrollWinEvent(arg1,arg2,arg3);
13721
13722 wxPyEndAllowThreads(__tstate);
13723 if (PyErr_Occurred()) SWIG_fail;
13724 }
13725 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollWinEvent, 1);
13726 return resultobj;
13727 fail:
13728 return NULL;
13729}
13730
13731
c32bde28 13732static PyObject *_wrap_ScrollWinEvent_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13733 PyObject *resultobj;
13734 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
13735 int result;
13736 PyObject * obj0 = 0 ;
13737 char *kwnames[] = {
13738 (char *) "self", NULL
13739 };
13740
13741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetOrientation",kwnames,&obj0)) goto fail;
13742 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent,
13743 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13744 {
13745 PyThreadState* __tstate = wxPyBeginAllowThreads();
13746 result = (int)((wxScrollWinEvent const *)arg1)->GetOrientation();
13747
13748 wxPyEndAllowThreads(__tstate);
13749 if (PyErr_Occurred()) SWIG_fail;
13750 }
c32bde28 13751 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
13752 return resultobj;
13753 fail:
13754 return NULL;
13755}
13756
13757
c32bde28 13758static PyObject *_wrap_ScrollWinEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13759 PyObject *resultobj;
13760 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
13761 int result;
13762 PyObject * obj0 = 0 ;
13763 char *kwnames[] = {
13764 (char *) "self", NULL
13765 };
13766
13767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetPosition",kwnames,&obj0)) goto fail;
13768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent,
13769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13770 {
13771 PyThreadState* __tstate = wxPyBeginAllowThreads();
13772 result = (int)((wxScrollWinEvent const *)arg1)->GetPosition();
13773
13774 wxPyEndAllowThreads(__tstate);
13775 if (PyErr_Occurred()) SWIG_fail;
13776 }
c32bde28 13777 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
13778 return resultobj;
13779 fail:
13780 return NULL;
13781}
13782
13783
c32bde28 13784static PyObject *_wrap_ScrollWinEvent_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13785 PyObject *resultobj;
13786 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
13787 int arg2 ;
13788 PyObject * obj0 = 0 ;
13789 PyObject * obj1 = 0 ;
13790 char *kwnames[] = {
13791 (char *) "self",(char *) "orient", NULL
13792 };
13793
13794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail;
13795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent,
13796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 13797 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
13798 if (PyErr_Occurred()) SWIG_fail;
13799 {
13800 PyThreadState* __tstate = wxPyBeginAllowThreads();
13801 (arg1)->SetOrientation(arg2);
13802
13803 wxPyEndAllowThreads(__tstate);
13804 if (PyErr_Occurred()) SWIG_fail;
13805 }
13806 Py_INCREF(Py_None); resultobj = Py_None;
13807 return resultobj;
13808 fail:
13809 return NULL;
13810}
13811
13812
c32bde28 13813static PyObject *_wrap_ScrollWinEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13814 PyObject *resultobj;
13815 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
13816 int arg2 ;
13817 PyObject * obj0 = 0 ;
13818 PyObject * obj1 = 0 ;
13819 char *kwnames[] = {
13820 (char *) "self",(char *) "pos", NULL
13821 };
13822
13823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
13824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent,
13825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 13826 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
13827 if (PyErr_Occurred()) SWIG_fail;
13828 {
13829 PyThreadState* __tstate = wxPyBeginAllowThreads();
13830 (arg1)->SetPosition(arg2);
13831
13832 wxPyEndAllowThreads(__tstate);
13833 if (PyErr_Occurred()) SWIG_fail;
13834 }
13835 Py_INCREF(Py_None); resultobj = Py_None;
13836 return resultobj;
13837 fail:
13838 return NULL;
13839}
13840
13841
c32bde28 13842static PyObject * ScrollWinEvent_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
13843 PyObject *obj;
13844 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13845 SWIG_TypeClientData(SWIGTYPE_p_wxScrollWinEvent, obj);
13846 Py_INCREF(obj);
13847 return Py_BuildValue((char *)"");
13848}
c32bde28 13849static PyObject *_wrap_new_MouseEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13850 PyObject *resultobj;
13851 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
13852 wxMouseEvent *result;
13853 PyObject * obj0 = 0 ;
13854 char *kwnames[] = {
13855 (char *) "mouseType", NULL
13856 };
13857
13858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MouseEvent",kwnames,&obj0)) goto fail;
13859 if (obj0) {
c32bde28 13860 arg1 = (wxEventType)SWIG_As_int(obj0);
d55e5bfc
RD
13861 if (PyErr_Occurred()) SWIG_fail;
13862 }
13863 {
13864 PyThreadState* __tstate = wxPyBeginAllowThreads();
13865 result = (wxMouseEvent *)new wxMouseEvent(arg1);
13866
13867 wxPyEndAllowThreads(__tstate);
13868 if (PyErr_Occurred()) SWIG_fail;
13869 }
13870 {
412d302d 13871 resultobj = wxPyMake_wxObject(result, 1);
d55e5bfc
RD
13872 }
13873 return resultobj;
13874 fail:
13875 return NULL;
13876}
13877
13878
c32bde28 13879static PyObject *_wrap_MouseEvent_IsButton(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13880 PyObject *resultobj;
13881 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13882 bool result;
13883 PyObject * obj0 = 0 ;
13884 char *kwnames[] = {
13885 (char *) "self", NULL
13886 };
13887
13888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsButton",kwnames,&obj0)) goto fail;
13889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13891 {
13892 PyThreadState* __tstate = wxPyBeginAllowThreads();
13893 result = (bool)((wxMouseEvent const *)arg1)->IsButton();
13894
13895 wxPyEndAllowThreads(__tstate);
13896 if (PyErr_Occurred()) SWIG_fail;
13897 }
13898 {
13899 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13900 }
13901 return resultobj;
13902 fail:
13903 return NULL;
13904}
13905
13906
c32bde28 13907static PyObject *_wrap_MouseEvent_ButtonDown(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13908 PyObject *resultobj;
13909 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13910 int arg2 = (int) wxMOUSE_BTN_ANY ;
13911 bool result;
13912 PyObject * obj0 = 0 ;
13913 PyObject * obj1 = 0 ;
13914 char *kwnames[] = {
13915 (char *) "self",(char *) "but", NULL
13916 };
13917
13918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail;
13919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13921 if (obj1) {
c32bde28 13922 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
13923 if (PyErr_Occurred()) SWIG_fail;
13924 }
13925 {
13926 PyThreadState* __tstate = wxPyBeginAllowThreads();
13927 result = (bool)((wxMouseEvent const *)arg1)->ButtonDown(arg2);
13928
13929 wxPyEndAllowThreads(__tstate);
13930 if (PyErr_Occurred()) SWIG_fail;
13931 }
13932 {
13933 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13934 }
13935 return resultobj;
13936 fail:
13937 return NULL;
13938}
13939
13940
c32bde28 13941static PyObject *_wrap_MouseEvent_ButtonDClick(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13942 PyObject *resultobj;
13943 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13944 int arg2 = (int) wxMOUSE_BTN_ANY ;
13945 bool result;
13946 PyObject * obj0 = 0 ;
13947 PyObject * obj1 = 0 ;
13948 char *kwnames[] = {
13949 (char *) "self",(char *) "but", NULL
13950 };
13951
13952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDClick",kwnames,&obj0,&obj1)) goto fail;
13953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13955 if (obj1) {
c32bde28 13956 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
13957 if (PyErr_Occurred()) SWIG_fail;
13958 }
13959 {
13960 PyThreadState* __tstate = wxPyBeginAllowThreads();
13961 result = (bool)((wxMouseEvent const *)arg1)->ButtonDClick(arg2);
13962
13963 wxPyEndAllowThreads(__tstate);
13964 if (PyErr_Occurred()) SWIG_fail;
13965 }
13966 {
13967 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13968 }
13969 return resultobj;
13970 fail:
13971 return NULL;
13972}
13973
13974
c32bde28 13975static PyObject *_wrap_MouseEvent_ButtonUp(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
13976 PyObject *resultobj;
13977 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13978 int arg2 = (int) wxMOUSE_BTN_ANY ;
13979 bool result;
13980 PyObject * obj0 = 0 ;
13981 PyObject * obj1 = 0 ;
13982 char *kwnames[] = {
13983 (char *) "self",(char *) "but", NULL
13984 };
13985
13986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail;
13987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13989 if (obj1) {
c32bde28 13990 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
13991 if (PyErr_Occurred()) SWIG_fail;
13992 }
13993 {
13994 PyThreadState* __tstate = wxPyBeginAllowThreads();
13995 result = (bool)((wxMouseEvent const *)arg1)->ButtonUp(arg2);
13996
13997 wxPyEndAllowThreads(__tstate);
13998 if (PyErr_Occurred()) SWIG_fail;
13999 }
14000 {
14001 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14002 }
14003 return resultobj;
14004 fail:
14005 return NULL;
14006}
14007
14008
c32bde28 14009static PyObject *_wrap_MouseEvent_Button(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14010 PyObject *resultobj;
14011 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14012 int arg2 ;
14013 bool result;
14014 PyObject * obj0 = 0 ;
14015 PyObject * obj1 = 0 ;
14016 char *kwnames[] = {
14017 (char *) "self",(char *) "but", NULL
14018 };
14019
14020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_Button",kwnames,&obj0,&obj1)) goto fail;
14021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 14023 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
14024 if (PyErr_Occurred()) SWIG_fail;
14025 {
14026 PyThreadState* __tstate = wxPyBeginAllowThreads();
14027 result = (bool)((wxMouseEvent const *)arg1)->Button(arg2);
14028
14029 wxPyEndAllowThreads(__tstate);
14030 if (PyErr_Occurred()) SWIG_fail;
14031 }
14032 {
14033 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14034 }
14035 return resultobj;
14036 fail:
14037 return NULL;
14038}
14039
14040
c32bde28 14041static PyObject *_wrap_MouseEvent_ButtonIsDown(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14042 PyObject *resultobj;
14043 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14044 int arg2 ;
14045 bool result;
14046 PyObject * obj0 = 0 ;
14047 PyObject * obj1 = 0 ;
14048 char *kwnames[] = {
14049 (char *) "self",(char *) "but", NULL
14050 };
14051
14052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail;
14053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 14055 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
14056 if (PyErr_Occurred()) SWIG_fail;
14057 {
14058 PyThreadState* __tstate = wxPyBeginAllowThreads();
14059 result = (bool)((wxMouseEvent const *)arg1)->ButtonIsDown(arg2);
14060
14061 wxPyEndAllowThreads(__tstate);
14062 if (PyErr_Occurred()) SWIG_fail;
14063 }
14064 {
14065 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14066 }
14067 return resultobj;
14068 fail:
14069 return NULL;
14070}
14071
14072
c32bde28 14073static PyObject *_wrap_MouseEvent_GetButton(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14074 PyObject *resultobj;
14075 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14076 int result;
14077 PyObject * obj0 = 0 ;
14078 char *kwnames[] = {
14079 (char *) "self", NULL
14080 };
14081
14082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetButton",kwnames,&obj0)) goto fail;
14083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14085 {
14086 PyThreadState* __tstate = wxPyBeginAllowThreads();
14087 result = (int)((wxMouseEvent const *)arg1)->GetButton();
14088
14089 wxPyEndAllowThreads(__tstate);
14090 if (PyErr_Occurred()) SWIG_fail;
14091 }
c32bde28 14092 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
14093 return resultobj;
14094 fail:
14095 return NULL;
14096}
14097
14098
c32bde28 14099static PyObject *_wrap_MouseEvent_ControlDown(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14100 PyObject *resultobj;
14101 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14102 bool result;
14103 PyObject * obj0 = 0 ;
14104 char *kwnames[] = {
14105 (char *) "self", NULL
14106 };
14107
14108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ControlDown",kwnames,&obj0)) goto fail;
14109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14111 {
14112 PyThreadState* __tstate = wxPyBeginAllowThreads();
14113 result = (bool)((wxMouseEvent const *)arg1)->ControlDown();
14114
14115 wxPyEndAllowThreads(__tstate);
14116 if (PyErr_Occurred()) SWIG_fail;
14117 }
14118 {
14119 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14120 }
14121 return resultobj;
14122 fail:
14123 return NULL;
14124}
14125
14126
c32bde28 14127static PyObject *_wrap_MouseEvent_MetaDown(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14128 PyObject *resultobj;
14129 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14130 bool result;
14131 PyObject * obj0 = 0 ;
14132 char *kwnames[] = {
14133 (char *) "self", NULL
14134 };
14135
14136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MetaDown",kwnames,&obj0)) goto fail;
14137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14139 {
14140 PyThreadState* __tstate = wxPyBeginAllowThreads();
14141 result = (bool)((wxMouseEvent const *)arg1)->MetaDown();
14142
14143 wxPyEndAllowThreads(__tstate);
14144 if (PyErr_Occurred()) SWIG_fail;
14145 }
14146 {
14147 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14148 }
14149 return resultobj;
14150 fail:
14151 return NULL;
14152}
14153
14154
c32bde28 14155static PyObject *_wrap_MouseEvent_AltDown(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14156 PyObject *resultobj;
14157 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14158 bool result;
14159 PyObject * obj0 = 0 ;
14160 char *kwnames[] = {
14161 (char *) "self", NULL
14162 };
14163
14164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_AltDown",kwnames,&obj0)) goto fail;
14165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14167 {
14168 PyThreadState* __tstate = wxPyBeginAllowThreads();
14169 result = (bool)((wxMouseEvent const *)arg1)->AltDown();
14170
14171 wxPyEndAllowThreads(__tstate);
14172 if (PyErr_Occurred()) SWIG_fail;
14173 }
14174 {
14175 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14176 }
14177 return resultobj;
14178 fail:
14179 return NULL;
14180}
14181
14182
c32bde28 14183static PyObject *_wrap_MouseEvent_ShiftDown(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14184 PyObject *resultobj;
14185 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14186 bool result;
14187 PyObject * obj0 = 0 ;
14188 char *kwnames[] = {
14189 (char *) "self", NULL
14190 };
14191
14192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ShiftDown",kwnames,&obj0)) goto fail;
14193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14195 {
14196 PyThreadState* __tstate = wxPyBeginAllowThreads();
14197 result = (bool)((wxMouseEvent const *)arg1)->ShiftDown();
14198
14199 wxPyEndAllowThreads(__tstate);
14200 if (PyErr_Occurred()) SWIG_fail;
14201 }
14202 {
14203 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14204 }
14205 return resultobj;
14206 fail:
14207 return NULL;
14208}
14209
14210
c32bde28 14211static PyObject *_wrap_MouseEvent_CmdDown(PyObject *, PyObject *args, PyObject *kwargs) {
412d302d
RD
14212 PyObject *resultobj;
14213 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14214 bool result;
14215 PyObject * obj0 = 0 ;
14216 char *kwnames[] = {
14217 (char *) "self", NULL
14218 };
14219
14220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_CmdDown",kwnames,&obj0)) goto fail;
14221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14223 {
14224 PyThreadState* __tstate = wxPyBeginAllowThreads();
14225 result = (bool)((wxMouseEvent const *)arg1)->CmdDown();
14226
14227 wxPyEndAllowThreads(__tstate);
14228 if (PyErr_Occurred()) SWIG_fail;
14229 }
14230 {
14231 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14232 }
14233 return resultobj;
14234 fail:
14235 return NULL;
14236}
14237
14238
c32bde28 14239static PyObject *_wrap_MouseEvent_LeftDown(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14240 PyObject *resultobj;
14241 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14242 bool result;
14243 PyObject * obj0 = 0 ;
14244 char *kwnames[] = {
14245 (char *) "self", NULL
14246 };
14247
14248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDown",kwnames,&obj0)) goto fail;
14249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14251 {
14252 PyThreadState* __tstate = wxPyBeginAllowThreads();
14253 result = (bool)((wxMouseEvent const *)arg1)->LeftDown();
14254
14255 wxPyEndAllowThreads(__tstate);
14256 if (PyErr_Occurred()) SWIG_fail;
14257 }
14258 {
14259 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14260 }
14261 return resultobj;
14262 fail:
14263 return NULL;
14264}
14265
14266
c32bde28 14267static PyObject *_wrap_MouseEvent_MiddleDown(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14268 PyObject *resultobj;
14269 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14270 bool result;
14271 PyObject * obj0 = 0 ;
14272 char *kwnames[] = {
14273 (char *) "self", NULL
14274 };
14275
14276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDown",kwnames,&obj0)) goto fail;
14277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14279 {
14280 PyThreadState* __tstate = wxPyBeginAllowThreads();
14281 result = (bool)((wxMouseEvent const *)arg1)->MiddleDown();
14282
14283 wxPyEndAllowThreads(__tstate);
14284 if (PyErr_Occurred()) SWIG_fail;
14285 }
14286 {
14287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14288 }
14289 return resultobj;
14290 fail:
14291 return NULL;
14292}
14293
14294
c32bde28 14295static PyObject *_wrap_MouseEvent_RightDown(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14296 PyObject *resultobj;
14297 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14298 bool result;
14299 PyObject * obj0 = 0 ;
14300 char *kwnames[] = {
14301 (char *) "self", NULL
14302 };
14303
14304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDown",kwnames,&obj0)) goto fail;
14305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14307 {
14308 PyThreadState* __tstate = wxPyBeginAllowThreads();
14309 result = (bool)((wxMouseEvent const *)arg1)->RightDown();
14310
14311 wxPyEndAllowThreads(__tstate);
14312 if (PyErr_Occurred()) SWIG_fail;
14313 }
14314 {
14315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14316 }
14317 return resultobj;
14318 fail:
14319 return NULL;
14320}
14321
14322
c32bde28 14323static PyObject *_wrap_MouseEvent_LeftUp(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14324 PyObject *resultobj;
14325 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14326 bool result;
14327 PyObject * obj0 = 0 ;
14328 char *kwnames[] = {
14329 (char *) "self", NULL
14330 };
14331
14332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftUp",kwnames,&obj0)) goto fail;
14333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14335 {
14336 PyThreadState* __tstate = wxPyBeginAllowThreads();
14337 result = (bool)((wxMouseEvent const *)arg1)->LeftUp();
14338
14339 wxPyEndAllowThreads(__tstate);
14340 if (PyErr_Occurred()) SWIG_fail;
14341 }
14342 {
14343 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14344 }
14345 return resultobj;
14346 fail:
14347 return NULL;
14348}
14349
14350
c32bde28 14351static PyObject *_wrap_MouseEvent_MiddleUp(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14352 PyObject *resultobj;
14353 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14354 bool result;
14355 PyObject * obj0 = 0 ;
14356 char *kwnames[] = {
14357 (char *) "self", NULL
14358 };
14359
14360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleUp",kwnames,&obj0)) goto fail;
14361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14363 {
14364 PyThreadState* __tstate = wxPyBeginAllowThreads();
14365 result = (bool)((wxMouseEvent const *)arg1)->MiddleUp();
14366
14367 wxPyEndAllowThreads(__tstate);
14368 if (PyErr_Occurred()) SWIG_fail;
14369 }
14370 {
14371 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14372 }
14373 return resultobj;
14374 fail:
14375 return NULL;
14376}
14377
14378
c32bde28 14379static PyObject *_wrap_MouseEvent_RightUp(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14380 PyObject *resultobj;
14381 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14382 bool result;
14383 PyObject * obj0 = 0 ;
14384 char *kwnames[] = {
14385 (char *) "self", NULL
14386 };
14387
14388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightUp",kwnames,&obj0)) goto fail;
14389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14391 {
14392 PyThreadState* __tstate = wxPyBeginAllowThreads();
14393 result = (bool)((wxMouseEvent const *)arg1)->RightUp();
14394
14395 wxPyEndAllowThreads(__tstate);
14396 if (PyErr_Occurred()) SWIG_fail;
14397 }
14398 {
14399 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14400 }
14401 return resultobj;
14402 fail:
14403 return NULL;
14404}
14405
14406
c32bde28 14407static PyObject *_wrap_MouseEvent_LeftDClick(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14408 PyObject *resultobj;
14409 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14410 bool result;
14411 PyObject * obj0 = 0 ;
14412 char *kwnames[] = {
14413 (char *) "self", NULL
14414 };
14415
14416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDClick",kwnames,&obj0)) goto fail;
14417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14419 {
14420 PyThreadState* __tstate = wxPyBeginAllowThreads();
14421 result = (bool)((wxMouseEvent const *)arg1)->LeftDClick();
14422
14423 wxPyEndAllowThreads(__tstate);
14424 if (PyErr_Occurred()) SWIG_fail;
14425 }
14426 {
14427 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14428 }
14429 return resultobj;
14430 fail:
14431 return NULL;
14432}
14433
14434
c32bde28 14435static PyObject *_wrap_MouseEvent_MiddleDClick(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14436 PyObject *resultobj;
14437 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14438 bool result;
14439 PyObject * obj0 = 0 ;
14440 char *kwnames[] = {
14441 (char *) "self", NULL
14442 };
14443
14444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDClick",kwnames,&obj0)) goto fail;
14445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14447 {
14448 PyThreadState* __tstate = wxPyBeginAllowThreads();
14449 result = (bool)((wxMouseEvent const *)arg1)->MiddleDClick();
14450
14451 wxPyEndAllowThreads(__tstate);
14452 if (PyErr_Occurred()) SWIG_fail;
14453 }
14454 {
14455 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14456 }
14457 return resultobj;
14458 fail:
14459 return NULL;
14460}
14461
14462
c32bde28 14463static PyObject *_wrap_MouseEvent_RightDClick(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14464 PyObject *resultobj;
14465 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14466 bool result;
14467 PyObject * obj0 = 0 ;
14468 char *kwnames[] = {
14469 (char *) "self", NULL
14470 };
14471
14472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDClick",kwnames,&obj0)) goto fail;
14473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14475 {
14476 PyThreadState* __tstate = wxPyBeginAllowThreads();
14477 result = (bool)((wxMouseEvent const *)arg1)->RightDClick();
14478
14479 wxPyEndAllowThreads(__tstate);
14480 if (PyErr_Occurred()) SWIG_fail;
14481 }
14482 {
14483 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14484 }
14485 return resultobj;
14486 fail:
14487 return NULL;
14488}
14489
14490
c32bde28 14491static PyObject *_wrap_MouseEvent_LeftIsDown(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14492 PyObject *resultobj;
14493 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14494 bool result;
14495 PyObject * obj0 = 0 ;
14496 char *kwnames[] = {
14497 (char *) "self", NULL
14498 };
14499
14500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftIsDown",kwnames,&obj0)) goto fail;
14501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14503 {
14504 PyThreadState* __tstate = wxPyBeginAllowThreads();
14505 result = (bool)(arg1)->LeftIsDown();
14506
14507 wxPyEndAllowThreads(__tstate);
14508 if (PyErr_Occurred()) SWIG_fail;
14509 }
14510 {
14511 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14512 }
14513 return resultobj;
14514 fail:
14515 return NULL;
14516}
14517
14518
c32bde28 14519static PyObject *_wrap_MouseEvent_MiddleIsDown(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14520 PyObject *resultobj;
14521 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14522 bool result;
14523 PyObject * obj0 = 0 ;
14524 char *kwnames[] = {
14525 (char *) "self", NULL
14526 };
14527
14528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleIsDown",kwnames,&obj0)) goto fail;
14529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14531 {
14532 PyThreadState* __tstate = wxPyBeginAllowThreads();
14533 result = (bool)(arg1)->MiddleIsDown();
14534
14535 wxPyEndAllowThreads(__tstate);
14536 if (PyErr_Occurred()) SWIG_fail;
14537 }
14538 {
14539 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14540 }
14541 return resultobj;
14542 fail:
14543 return NULL;
14544}
14545
14546
c32bde28 14547static PyObject *_wrap_MouseEvent_RightIsDown(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14548 PyObject *resultobj;
14549 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14550 bool result;
14551 PyObject * obj0 = 0 ;
14552 char *kwnames[] = {
14553 (char *) "self", NULL
14554 };
14555
14556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightIsDown",kwnames,&obj0)) goto fail;
14557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14559 {
14560 PyThreadState* __tstate = wxPyBeginAllowThreads();
14561 result = (bool)(arg1)->RightIsDown();
14562
14563 wxPyEndAllowThreads(__tstate);
14564 if (PyErr_Occurred()) SWIG_fail;
14565 }
14566 {
14567 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14568 }
14569 return resultobj;
14570 fail:
14571 return NULL;
14572}
14573
14574
c32bde28 14575static PyObject *_wrap_MouseEvent_Dragging(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14576 PyObject *resultobj;
14577 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14578 bool result;
14579 PyObject * obj0 = 0 ;
14580 char *kwnames[] = {
14581 (char *) "self", NULL
14582 };
14583
14584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Dragging",kwnames,&obj0)) goto fail;
14585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14587 {
14588 PyThreadState* __tstate = wxPyBeginAllowThreads();
14589 result = (bool)((wxMouseEvent const *)arg1)->Dragging();
14590
14591 wxPyEndAllowThreads(__tstate);
14592 if (PyErr_Occurred()) SWIG_fail;
14593 }
14594 {
14595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14596 }
14597 return resultobj;
14598 fail:
14599 return NULL;
14600}
14601
14602
c32bde28 14603static PyObject *_wrap_MouseEvent_Moving(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14604 PyObject *resultobj;
14605 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14606 bool result;
14607 PyObject * obj0 = 0 ;
14608 char *kwnames[] = {
14609 (char *) "self", NULL
14610 };
14611
14612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Moving",kwnames,&obj0)) goto fail;
14613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14615 {
14616 PyThreadState* __tstate = wxPyBeginAllowThreads();
14617 result = (bool)((wxMouseEvent const *)arg1)->Moving();
14618
14619 wxPyEndAllowThreads(__tstate);
14620 if (PyErr_Occurred()) SWIG_fail;
14621 }
14622 {
14623 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14624 }
14625 return resultobj;
14626 fail:
14627 return NULL;
14628}
14629
14630
c32bde28 14631static PyObject *_wrap_MouseEvent_Entering(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14632 PyObject *resultobj;
14633 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14634 bool result;
14635 PyObject * obj0 = 0 ;
14636 char *kwnames[] = {
14637 (char *) "self", NULL
14638 };
14639
14640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Entering",kwnames,&obj0)) goto fail;
14641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14643 {
14644 PyThreadState* __tstate = wxPyBeginAllowThreads();
14645 result = (bool)((wxMouseEvent const *)arg1)->Entering();
14646
14647 wxPyEndAllowThreads(__tstate);
14648 if (PyErr_Occurred()) SWIG_fail;
14649 }
14650 {
14651 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14652 }
14653 return resultobj;
14654 fail:
14655 return NULL;
14656}
14657
14658
c32bde28 14659static PyObject *_wrap_MouseEvent_Leaving(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14660 PyObject *resultobj;
14661 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14662 bool result;
14663 PyObject * obj0 = 0 ;
14664 char *kwnames[] = {
14665 (char *) "self", NULL
14666 };
14667
14668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Leaving",kwnames,&obj0)) goto fail;
14669 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14671 {
14672 PyThreadState* __tstate = wxPyBeginAllowThreads();
14673 result = (bool)((wxMouseEvent const *)arg1)->Leaving();
14674
14675 wxPyEndAllowThreads(__tstate);
14676 if (PyErr_Occurred()) SWIG_fail;
14677 }
14678 {
14679 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14680 }
14681 return resultobj;
14682 fail:
14683 return NULL;
14684}
14685
14686
c32bde28 14687static PyObject *_wrap_MouseEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14688 PyObject *resultobj;
14689 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14690 wxPoint result;
14691 PyObject * obj0 = 0 ;
14692 char *kwnames[] = {
14693 (char *) "self", NULL
14694 };
14695
14696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPosition",kwnames,&obj0)) goto fail;
14697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14699 {
14700 PyThreadState* __tstate = wxPyBeginAllowThreads();
14701 result = (arg1)->GetPosition();
14702
14703 wxPyEndAllowThreads(__tstate);
14704 if (PyErr_Occurred()) SWIG_fail;
14705 }
14706 {
14707 wxPoint * resultptr;
14708 resultptr = new wxPoint((wxPoint &) result);
14709 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14710 }
14711 return resultobj;
14712 fail:
14713 return NULL;
14714}
14715
14716
c32bde28 14717static PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14718 PyObject *resultobj;
14719 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14720 long *arg2 = (long *) 0 ;
14721 long *arg3 = (long *) 0 ;
14722 long temp2 ;
c32bde28 14723 int res2 = 0 ;
d55e5bfc 14724 long temp3 ;
c32bde28 14725 int res3 = 0 ;
d55e5bfc
RD
14726 PyObject * obj0 = 0 ;
14727 char *kwnames[] = {
14728 (char *) "self", NULL
14729 };
14730
c32bde28
RD
14731 arg2 = &temp2; res2 = SWIG_NEWOBJ;
14732 arg3 = &temp3; res3 = SWIG_NEWOBJ;
d55e5bfc
RD
14733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPositionTuple",kwnames,&obj0)) goto fail;
14734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14736 {
14737 PyThreadState* __tstate = wxPyBeginAllowThreads();
14738 (arg1)->GetPosition(arg2,arg3);
14739
14740 wxPyEndAllowThreads(__tstate);
14741 if (PyErr_Occurred()) SWIG_fail;
14742 }
14743 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
14744 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
14745 SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0)));
14746 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
14747 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
d55e5bfc
RD
14748 return resultobj;
14749 fail:
14750 return NULL;
14751}
14752
14753
c32bde28 14754static PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14755 PyObject *resultobj;
14756 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14757 wxDC *arg2 = 0 ;
14758 wxPoint result;
14759 PyObject * obj0 = 0 ;
14760 PyObject * obj1 = 0 ;
14761 char *kwnames[] = {
14762 (char *) "self",(char *) "dc", NULL
14763 };
14764
14765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) goto fail;
14766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14768 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
14769 SWIG_POINTER_EXCEPTION | 0)) == -1)
14770 SWIG_fail;
14771 if (arg2 == NULL) {
14772 PyErr_SetString(PyExc_TypeError,"null reference");
14773 SWIG_fail;
14774 }
14775 {
14776 PyThreadState* __tstate = wxPyBeginAllowThreads();
14777 result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2);
14778
14779 wxPyEndAllowThreads(__tstate);
14780 if (PyErr_Occurred()) SWIG_fail;
14781 }
14782 {
14783 wxPoint * resultptr;
14784 resultptr = new wxPoint((wxPoint &) result);
14785 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14786 }
14787 return resultobj;
14788 fail:
14789 return NULL;
14790}
14791
14792
c32bde28 14793static PyObject *_wrap_MouseEvent_GetX(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14794 PyObject *resultobj;
14795 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14796 int result;
14797 PyObject * obj0 = 0 ;
14798 char *kwnames[] = {
14799 (char *) "self", NULL
14800 };
14801
14802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetX",kwnames,&obj0)) goto fail;
14803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14805 {
14806 PyThreadState* __tstate = wxPyBeginAllowThreads();
14807 result = (int)((wxMouseEvent const *)arg1)->GetX();
14808
14809 wxPyEndAllowThreads(__tstate);
14810 if (PyErr_Occurred()) SWIG_fail;
14811 }
c32bde28 14812 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
14813 return resultobj;
14814 fail:
14815 return NULL;
14816}
14817
14818
c32bde28 14819static PyObject *_wrap_MouseEvent_GetY(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14820 PyObject *resultobj;
14821 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14822 int result;
14823 PyObject * obj0 = 0 ;
14824 char *kwnames[] = {
14825 (char *) "self", NULL
14826 };
14827
14828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetY",kwnames,&obj0)) goto fail;
14829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14831 {
14832 PyThreadState* __tstate = wxPyBeginAllowThreads();
14833 result = (int)((wxMouseEvent const *)arg1)->GetY();
14834
14835 wxPyEndAllowThreads(__tstate);
14836 if (PyErr_Occurred()) SWIG_fail;
14837 }
c32bde28 14838 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
14839 return resultobj;
14840 fail:
14841 return NULL;
14842}
14843
14844
c32bde28 14845static PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14846 PyObject *resultobj;
14847 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14848 int result;
14849 PyObject * obj0 = 0 ;
14850 char *kwnames[] = {
14851 (char *) "self", NULL
14852 };
14853
14854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelRotation",kwnames,&obj0)) goto fail;
14855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14857 {
14858 PyThreadState* __tstate = wxPyBeginAllowThreads();
14859 result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation();
14860
14861 wxPyEndAllowThreads(__tstate);
14862 if (PyErr_Occurred()) SWIG_fail;
14863 }
c32bde28 14864 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
14865 return resultobj;
14866 fail:
14867 return NULL;
14868}
14869
14870
c32bde28 14871static PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14872 PyObject *resultobj;
14873 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14874 int result;
14875 PyObject * obj0 = 0 ;
14876 char *kwnames[] = {
14877 (char *) "self", NULL
14878 };
14879
14880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelDelta",kwnames,&obj0)) goto fail;
14881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14883 {
14884 PyThreadState* __tstate = wxPyBeginAllowThreads();
14885 result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta();
14886
14887 wxPyEndAllowThreads(__tstate);
14888 if (PyErr_Occurred()) SWIG_fail;
14889 }
c32bde28 14890 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
14891 return resultobj;
14892 fail:
14893 return NULL;
14894}
14895
14896
c32bde28 14897static PyObject *_wrap_MouseEvent_GetLinesPerAction(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14898 PyObject *resultobj;
14899 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14900 int result;
14901 PyObject * obj0 = 0 ;
14902 char *kwnames[] = {
14903 (char *) "self", NULL
14904 };
14905
14906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetLinesPerAction",kwnames,&obj0)) goto fail;
14907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14909 {
14910 PyThreadState* __tstate = wxPyBeginAllowThreads();
14911 result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction();
14912
14913 wxPyEndAllowThreads(__tstate);
14914 if (PyErr_Occurred()) SWIG_fail;
14915 }
c32bde28 14916 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
14917 return resultobj;
14918 fail:
14919 return NULL;
14920}
14921
14922
c32bde28 14923static PyObject *_wrap_MouseEvent_IsPageScroll(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14924 PyObject *resultobj;
14925 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14926 bool result;
14927 PyObject * obj0 = 0 ;
14928 char *kwnames[] = {
14929 (char *) "self", NULL
14930 };
14931
14932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsPageScroll",kwnames,&obj0)) goto fail;
14933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14935 {
14936 PyThreadState* __tstate = wxPyBeginAllowThreads();
14937 result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll();
14938
14939 wxPyEndAllowThreads(__tstate);
14940 if (PyErr_Occurred()) SWIG_fail;
14941 }
14942 {
14943 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14944 }
14945 return resultobj;
14946 fail:
14947 return NULL;
14948}
14949
14950
c32bde28 14951static PyObject *_wrap_MouseEvent_m_x_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14952 PyObject *resultobj;
14953 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14954 int arg2 ;
14955 PyObject * obj0 = 0 ;
14956 PyObject * obj1 = 0 ;
14957 char *kwnames[] = {
14958 (char *) "self",(char *) "m_x", NULL
14959 };
14960
14961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail;
14962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 14964 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
14965 if (PyErr_Occurred()) SWIG_fail;
14966 if (arg1) (arg1)->m_x = arg2;
14967
14968 Py_INCREF(Py_None); resultobj = Py_None;
14969 return resultobj;
14970 fail:
14971 return NULL;
14972}
14973
14974
c32bde28 14975static PyObject *_wrap_MouseEvent_m_x_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14976 PyObject *resultobj;
14977 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14978 int result;
14979 PyObject * obj0 = 0 ;
14980 char *kwnames[] = {
14981 (char *) "self", NULL
14982 };
14983
14984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_x_get",kwnames,&obj0)) goto fail;
14985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14987 result = (int) ((arg1)->m_x);
14988
c32bde28 14989 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
14990 return resultobj;
14991 fail:
14992 return NULL;
14993}
14994
14995
c32bde28 14996static PyObject *_wrap_MouseEvent_m_y_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
14997 PyObject *resultobj;
14998 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14999 int arg2 ;
15000 PyObject * obj0 = 0 ;
15001 PyObject * obj1 = 0 ;
15002 char *kwnames[] = {
15003 (char *) "self",(char *) "m_y", NULL
15004 };
15005
15006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail;
15007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 15009 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
15010 if (PyErr_Occurred()) SWIG_fail;
15011 if (arg1) (arg1)->m_y = arg2;
15012
15013 Py_INCREF(Py_None); resultobj = Py_None;
15014 return resultobj;
15015 fail:
15016 return NULL;
15017}
15018
15019
c32bde28 15020static PyObject *_wrap_MouseEvent_m_y_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15021 PyObject *resultobj;
15022 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15023 int result;
15024 PyObject * obj0 = 0 ;
15025 char *kwnames[] = {
15026 (char *) "self", NULL
15027 };
15028
15029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_y_get",kwnames,&obj0)) goto fail;
15030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15032 result = (int) ((arg1)->m_y);
15033
c32bde28 15034 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
15035 return resultobj;
15036 fail:
15037 return NULL;
15038}
15039
15040
c32bde28 15041static PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15042 PyObject *resultobj;
15043 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15044 bool arg2 ;
15045 PyObject * obj0 = 0 ;
15046 PyObject * obj1 = 0 ;
15047 char *kwnames[] = {
15048 (char *) "self",(char *) "m_leftDown", NULL
15049 };
15050
15051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_leftDown_set",kwnames,&obj0,&obj1)) goto fail;
15052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 15054 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
15055 if (PyErr_Occurred()) SWIG_fail;
15056 if (arg1) (arg1)->m_leftDown = arg2;
15057
15058 Py_INCREF(Py_None); resultobj = Py_None;
15059 return resultobj;
15060 fail:
15061 return NULL;
15062}
15063
15064
c32bde28 15065static PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15066 PyObject *resultobj;
15067 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15068 bool result;
15069 PyObject * obj0 = 0 ;
15070 char *kwnames[] = {
15071 (char *) "self", NULL
15072 };
15073
15074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_leftDown_get",kwnames,&obj0)) goto fail;
15075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15077 result = (bool) ((arg1)->m_leftDown);
15078
15079 {
15080 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15081 }
15082 return resultobj;
15083 fail:
15084 return NULL;
15085}
15086
15087
c32bde28 15088static PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15089 PyObject *resultobj;
15090 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15091 bool arg2 ;
15092 PyObject * obj0 = 0 ;
15093 PyObject * obj1 = 0 ;
15094 char *kwnames[] = {
15095 (char *) "self",(char *) "m_middleDown", NULL
15096 };
15097
15098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_middleDown_set",kwnames,&obj0,&obj1)) goto fail;
15099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 15101 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
15102 if (PyErr_Occurred()) SWIG_fail;
15103 if (arg1) (arg1)->m_middleDown = arg2;
15104
15105 Py_INCREF(Py_None); resultobj = Py_None;
15106 return resultobj;
15107 fail:
15108 return NULL;
15109}
15110
15111
c32bde28 15112static PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15113 PyObject *resultobj;
15114 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15115 bool result;
15116 PyObject * obj0 = 0 ;
15117 char *kwnames[] = {
15118 (char *) "self", NULL
15119 };
15120
15121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_middleDown_get",kwnames,&obj0)) goto fail;
15122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15124 result = (bool) ((arg1)->m_middleDown);
15125
15126 {
15127 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15128 }
15129 return resultobj;
15130 fail:
15131 return NULL;
15132}
15133
15134
c32bde28 15135static PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15136 PyObject *resultobj;
15137 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15138 bool arg2 ;
15139 PyObject * obj0 = 0 ;
15140 PyObject * obj1 = 0 ;
15141 char *kwnames[] = {
15142 (char *) "self",(char *) "m_rightDown", NULL
15143 };
15144
15145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_rightDown_set",kwnames,&obj0,&obj1)) goto fail;
15146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 15148 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
15149 if (PyErr_Occurred()) SWIG_fail;
15150 if (arg1) (arg1)->m_rightDown = arg2;
15151
15152 Py_INCREF(Py_None); resultobj = Py_None;
15153 return resultobj;
15154 fail:
15155 return NULL;
15156}
15157
15158
c32bde28 15159static PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15160 PyObject *resultobj;
15161 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15162 bool result;
15163 PyObject * obj0 = 0 ;
15164 char *kwnames[] = {
15165 (char *) "self", NULL
15166 };
15167
15168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_rightDown_get",kwnames,&obj0)) goto fail;
15169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15171 result = (bool) ((arg1)->m_rightDown);
15172
15173 {
15174 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15175 }
15176 return resultobj;
15177 fail:
15178 return NULL;
15179}
15180
15181
c32bde28 15182static PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15183 PyObject *resultobj;
15184 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15185 bool arg2 ;
15186 PyObject * obj0 = 0 ;
15187 PyObject * obj1 = 0 ;
15188 char *kwnames[] = {
15189 (char *) "self",(char *) "m_controlDown", NULL
15190 };
15191
15192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail;
15193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 15195 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
15196 if (PyErr_Occurred()) SWIG_fail;
15197 if (arg1) (arg1)->m_controlDown = arg2;
15198
15199 Py_INCREF(Py_None); resultobj = Py_None;
15200 return resultobj;
15201 fail:
15202 return NULL;
15203}
15204
15205
c32bde28 15206static PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15207 PyObject *resultobj;
15208 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15209 bool result;
15210 PyObject * obj0 = 0 ;
15211 char *kwnames[] = {
15212 (char *) "self", NULL
15213 };
15214
15215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_controlDown_get",kwnames,&obj0)) goto fail;
15216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15218 result = (bool) ((arg1)->m_controlDown);
15219
15220 {
15221 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15222 }
15223 return resultobj;
15224 fail:
15225 return NULL;
15226}
15227
15228
c32bde28 15229static PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15230 PyObject *resultobj;
15231 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15232 bool arg2 ;
15233 PyObject * obj0 = 0 ;
15234 PyObject * obj1 = 0 ;
15235 char *kwnames[] = {
15236 (char *) "self",(char *) "m_shiftDown", NULL
15237 };
15238
15239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail;
15240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 15242 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
15243 if (PyErr_Occurred()) SWIG_fail;
15244 if (arg1) (arg1)->m_shiftDown = arg2;
15245
15246 Py_INCREF(Py_None); resultobj = Py_None;
15247 return resultobj;
15248 fail:
15249 return NULL;
15250}
15251
15252
c32bde28 15253static PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15254 PyObject *resultobj;
15255 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15256 bool result;
15257 PyObject * obj0 = 0 ;
15258 char *kwnames[] = {
15259 (char *) "self", NULL
15260 };
15261
15262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_shiftDown_get",kwnames,&obj0)) goto fail;
15263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15265 result = (bool) ((arg1)->m_shiftDown);
15266
15267 {
15268 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15269 }
15270 return resultobj;
15271 fail:
15272 return NULL;
15273}
15274
15275
c32bde28 15276static PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15277 PyObject *resultobj;
15278 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15279 bool arg2 ;
15280 PyObject * obj0 = 0 ;
15281 PyObject * obj1 = 0 ;
15282 char *kwnames[] = {
15283 (char *) "self",(char *) "m_altDown", NULL
15284 };
15285
15286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail;
15287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 15289 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
15290 if (PyErr_Occurred()) SWIG_fail;
15291 if (arg1) (arg1)->m_altDown = arg2;
15292
15293 Py_INCREF(Py_None); resultobj = Py_None;
15294 return resultobj;
15295 fail:
15296 return NULL;
15297}
15298
15299
c32bde28 15300static PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15301 PyObject *resultobj;
15302 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15303 bool result;
15304 PyObject * obj0 = 0 ;
15305 char *kwnames[] = {
15306 (char *) "self", NULL
15307 };
15308
15309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_altDown_get",kwnames,&obj0)) goto fail;
15310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15312 result = (bool) ((arg1)->m_altDown);
15313
15314 {
15315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15316 }
15317 return resultobj;
15318 fail:
15319 return NULL;
15320}
15321
15322
c32bde28 15323static PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15324 PyObject *resultobj;
15325 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15326 bool arg2 ;
15327 PyObject * obj0 = 0 ;
15328 PyObject * obj1 = 0 ;
15329 char *kwnames[] = {
15330 (char *) "self",(char *) "m_metaDown", NULL
15331 };
15332
15333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail;
15334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 15336 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
15337 if (PyErr_Occurred()) SWIG_fail;
15338 if (arg1) (arg1)->m_metaDown = arg2;
15339
15340 Py_INCREF(Py_None); resultobj = Py_None;
15341 return resultobj;
15342 fail:
15343 return NULL;
15344}
15345
15346
c32bde28 15347static PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15348 PyObject *resultobj;
15349 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15350 bool result;
15351 PyObject * obj0 = 0 ;
15352 char *kwnames[] = {
15353 (char *) "self", NULL
15354 };
15355
15356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_metaDown_get",kwnames,&obj0)) goto fail;
15357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15359 result = (bool) ((arg1)->m_metaDown);
15360
15361 {
15362 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15363 }
15364 return resultobj;
15365 fail:
15366 return NULL;
15367}
15368
15369
c32bde28 15370static PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15371 PyObject *resultobj;
15372 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15373 int arg2 ;
15374 PyObject * obj0 = 0 ;
15375 PyObject * obj1 = 0 ;
15376 char *kwnames[] = {
15377 (char *) "self",(char *) "m_wheelRotation", NULL
15378 };
15379
15380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelRotation_set",kwnames,&obj0,&obj1)) goto fail;
15381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 15383 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
15384 if (PyErr_Occurred()) SWIG_fail;
15385 if (arg1) (arg1)->m_wheelRotation = arg2;
15386
15387 Py_INCREF(Py_None); resultobj = Py_None;
15388 return resultobj;
15389 fail:
15390 return NULL;
15391}
15392
15393
c32bde28 15394static PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15395 PyObject *resultobj;
15396 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15397 int result;
15398 PyObject * obj0 = 0 ;
15399 char *kwnames[] = {
15400 (char *) "self", NULL
15401 };
15402
15403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelRotation_get",kwnames,&obj0)) goto fail;
15404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15406 result = (int) ((arg1)->m_wheelRotation);
15407
c32bde28 15408 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
15409 return resultobj;
15410 fail:
15411 return NULL;
15412}
15413
15414
c32bde28 15415static PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15416 PyObject *resultobj;
15417 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15418 int arg2 ;
15419 PyObject * obj0 = 0 ;
15420 PyObject * obj1 = 0 ;
15421 char *kwnames[] = {
15422 (char *) "self",(char *) "m_wheelDelta", NULL
15423 };
15424
15425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelDelta_set",kwnames,&obj0,&obj1)) goto fail;
15426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 15428 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
15429 if (PyErr_Occurred()) SWIG_fail;
15430 if (arg1) (arg1)->m_wheelDelta = arg2;
15431
15432 Py_INCREF(Py_None); resultobj = Py_None;
15433 return resultobj;
15434 fail:
15435 return NULL;
15436}
15437
15438
c32bde28 15439static PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15440 PyObject *resultobj;
15441 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15442 int result;
15443 PyObject * obj0 = 0 ;
15444 char *kwnames[] = {
15445 (char *) "self", NULL
15446 };
15447
15448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelDelta_get",kwnames,&obj0)) goto fail;
15449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15451 result = (int) ((arg1)->m_wheelDelta);
15452
c32bde28 15453 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
15454 return resultobj;
15455 fail:
15456 return NULL;
15457}
15458
15459
c32bde28 15460static PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15461 PyObject *resultobj;
15462 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15463 int arg2 ;
15464 PyObject * obj0 = 0 ;
15465 PyObject * obj1 = 0 ;
15466 char *kwnames[] = {
15467 (char *) "self",(char *) "m_linesPerAction", NULL
15468 };
15469
15470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_linesPerAction_set",kwnames,&obj0,&obj1)) goto fail;
15471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 15473 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
15474 if (PyErr_Occurred()) SWIG_fail;
15475 if (arg1) (arg1)->m_linesPerAction = arg2;
15476
15477 Py_INCREF(Py_None); resultobj = Py_None;
15478 return resultobj;
15479 fail:
15480 return NULL;
15481}
15482
15483
c32bde28 15484static PyObject *_wrap_MouseEvent_m_linesPerAction_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15485 PyObject *resultobj;
15486 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15487 int result;
15488 PyObject * obj0 = 0 ;
15489 char *kwnames[] = {
15490 (char *) "self", NULL
15491 };
15492
15493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_linesPerAction_get",kwnames,&obj0)) goto fail;
15494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15496 result = (int) ((arg1)->m_linesPerAction);
15497
c32bde28 15498 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
15499 return resultobj;
15500 fail:
15501 return NULL;
15502}
15503
15504
c32bde28 15505static PyObject * MouseEvent_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
15506 PyObject *obj;
15507 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15508 SWIG_TypeClientData(SWIGTYPE_p_wxMouseEvent, obj);
15509 Py_INCREF(obj);
15510 return Py_BuildValue((char *)"");
15511}
c32bde28 15512static PyObject *_wrap_new_SetCursorEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15513 PyObject *resultobj;
15514 int arg1 = (int) 0 ;
15515 int arg2 = (int) 0 ;
15516 wxSetCursorEvent *result;
15517 PyObject * obj0 = 0 ;
15518 PyObject * obj1 = 0 ;
15519 char *kwnames[] = {
15520 (char *) "x",(char *) "y", NULL
15521 };
15522
15523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SetCursorEvent",kwnames,&obj0,&obj1)) goto fail;
15524 if (obj0) {
c32bde28 15525 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
15526 if (PyErr_Occurred()) SWIG_fail;
15527 }
15528 if (obj1) {
c32bde28 15529 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
15530 if (PyErr_Occurred()) SWIG_fail;
15531 }
15532 {
15533 PyThreadState* __tstate = wxPyBeginAllowThreads();
15534 result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2);
15535
15536 wxPyEndAllowThreads(__tstate);
15537 if (PyErr_Occurred()) SWIG_fail;
15538 }
15539 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSetCursorEvent, 1);
15540 return resultobj;
15541 fail:
15542 return NULL;
15543}
15544
15545
c32bde28 15546static PyObject *_wrap_SetCursorEvent_GetX(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15547 PyObject *resultobj;
15548 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
15549 int result;
15550 PyObject * obj0 = 0 ;
15551 char *kwnames[] = {
15552 (char *) "self", NULL
15553 };
15554
15555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetX",kwnames,&obj0)) goto fail;
15556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent,
15557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15558 {
15559 PyThreadState* __tstate = wxPyBeginAllowThreads();
15560 result = (int)((wxSetCursorEvent const *)arg1)->GetX();
15561
15562 wxPyEndAllowThreads(__tstate);
15563 if (PyErr_Occurred()) SWIG_fail;
15564 }
c32bde28 15565 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
15566 return resultobj;
15567 fail:
15568 return NULL;
15569}
15570
15571
c32bde28 15572static PyObject *_wrap_SetCursorEvent_GetY(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15573 PyObject *resultobj;
15574 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
15575 int result;
15576 PyObject * obj0 = 0 ;
15577 char *kwnames[] = {
15578 (char *) "self", NULL
15579 };
15580
15581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetY",kwnames,&obj0)) goto fail;
15582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent,
15583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15584 {
15585 PyThreadState* __tstate = wxPyBeginAllowThreads();
15586 result = (int)((wxSetCursorEvent const *)arg1)->GetY();
15587
15588 wxPyEndAllowThreads(__tstate);
15589 if (PyErr_Occurred()) SWIG_fail;
15590 }
c32bde28 15591 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
15592 return resultobj;
15593 fail:
15594 return NULL;
15595}
15596
15597
c32bde28 15598static PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15599 PyObject *resultobj;
15600 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
15601 wxCursor *arg2 = 0 ;
15602 PyObject * obj0 = 0 ;
15603 PyObject * obj1 = 0 ;
15604 char *kwnames[] = {
15605 (char *) "self",(char *) "cursor", NULL
15606 };
15607
15608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) goto fail;
15609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent,
15610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15611 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
15612 SWIG_POINTER_EXCEPTION | 0)) == -1)
15613 SWIG_fail;
15614 if (arg2 == NULL) {
15615 PyErr_SetString(PyExc_TypeError,"null reference");
15616 SWIG_fail;
15617 }
15618 {
15619 PyThreadState* __tstate = wxPyBeginAllowThreads();
15620 (arg1)->SetCursor((wxCursor const &)*arg2);
15621
15622 wxPyEndAllowThreads(__tstate);
15623 if (PyErr_Occurred()) SWIG_fail;
15624 }
15625 Py_INCREF(Py_None); resultobj = Py_None;
15626 return resultobj;
15627 fail:
15628 return NULL;
15629}
15630
15631
c32bde28 15632static PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15633 PyObject *resultobj;
15634 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
15635 wxCursor *result;
15636 PyObject * obj0 = 0 ;
15637 char *kwnames[] = {
15638 (char *) "self", NULL
15639 };
15640
15641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetCursor",kwnames,&obj0)) goto fail;
15642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent,
15643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15644 {
15645 PyThreadState* __tstate = wxPyBeginAllowThreads();
15646 {
15647 wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor();
15648 result = (wxCursor *) &_result_ref;
15649 }
15650
15651 wxPyEndAllowThreads(__tstate);
15652 if (PyErr_Occurred()) SWIG_fail;
15653 }
15654 {
15655 wxCursor* resultptr = new wxCursor(*result);
15656 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1);
15657 }
15658 return resultobj;
15659 fail:
15660 return NULL;
15661}
15662
15663
c32bde28 15664static PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15665 PyObject *resultobj;
15666 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
15667 bool result;
15668 PyObject * obj0 = 0 ;
15669 char *kwnames[] = {
15670 (char *) "self", NULL
15671 };
15672
15673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_HasCursor",kwnames,&obj0)) goto fail;
15674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent,
15675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15676 {
15677 PyThreadState* __tstate = wxPyBeginAllowThreads();
15678 result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor();
15679
15680 wxPyEndAllowThreads(__tstate);
15681 if (PyErr_Occurred()) SWIG_fail;
15682 }
15683 {
15684 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15685 }
15686 return resultobj;
15687 fail:
15688 return NULL;
15689}
15690
15691
c32bde28 15692static PyObject * SetCursorEvent_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
15693 PyObject *obj;
15694 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15695 SWIG_TypeClientData(SWIGTYPE_p_wxSetCursorEvent, obj);
15696 Py_INCREF(obj);
15697 return Py_BuildValue((char *)"");
15698}
c32bde28 15699static PyObject *_wrap_new_KeyEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15700 PyObject *resultobj;
15701 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15702 wxKeyEvent *result;
15703 PyObject * obj0 = 0 ;
15704 char *kwnames[] = {
15705 (char *) "keyType", NULL
15706 };
15707
15708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_KeyEvent",kwnames,&obj0)) goto fail;
15709 if (obj0) {
c32bde28 15710 arg1 = (wxEventType)SWIG_As_int(obj0);
d55e5bfc
RD
15711 if (PyErr_Occurred()) SWIG_fail;
15712 }
15713 {
15714 PyThreadState* __tstate = wxPyBeginAllowThreads();
15715 result = (wxKeyEvent *)new wxKeyEvent(arg1);
15716
15717 wxPyEndAllowThreads(__tstate);
15718 if (PyErr_Occurred()) SWIG_fail;
15719 }
15720 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 1);
15721 return resultobj;
15722 fail:
15723 return NULL;
15724}
15725
15726
c32bde28 15727static PyObject *_wrap_KeyEvent_ControlDown(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15728 PyObject *resultobj;
15729 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15730 bool result;
15731 PyObject * obj0 = 0 ;
15732 char *kwnames[] = {
15733 (char *) "self", NULL
15734 };
15735
15736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ControlDown",kwnames,&obj0)) goto fail;
15737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15739 {
15740 PyThreadState* __tstate = wxPyBeginAllowThreads();
15741 result = (bool)((wxKeyEvent const *)arg1)->ControlDown();
15742
15743 wxPyEndAllowThreads(__tstate);
15744 if (PyErr_Occurred()) SWIG_fail;
15745 }
15746 {
15747 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15748 }
15749 return resultobj;
15750 fail:
15751 return NULL;
15752}
15753
15754
c32bde28 15755static PyObject *_wrap_KeyEvent_MetaDown(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15756 PyObject *resultobj;
15757 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15758 bool result;
15759 PyObject * obj0 = 0 ;
15760 char *kwnames[] = {
15761 (char *) "self", NULL
15762 };
15763
15764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_MetaDown",kwnames,&obj0)) goto fail;
15765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15767 {
15768 PyThreadState* __tstate = wxPyBeginAllowThreads();
15769 result = (bool)((wxKeyEvent const *)arg1)->MetaDown();
15770
15771 wxPyEndAllowThreads(__tstate);
15772 if (PyErr_Occurred()) SWIG_fail;
15773 }
15774 {
15775 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15776 }
15777 return resultobj;
15778 fail:
15779 return NULL;
15780}
15781
15782
c32bde28 15783static PyObject *_wrap_KeyEvent_AltDown(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15784 PyObject *resultobj;
15785 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15786 bool result;
15787 PyObject * obj0 = 0 ;
15788 char *kwnames[] = {
15789 (char *) "self", NULL
15790 };
15791
15792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_AltDown",kwnames,&obj0)) goto fail;
15793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15795 {
15796 PyThreadState* __tstate = wxPyBeginAllowThreads();
15797 result = (bool)((wxKeyEvent const *)arg1)->AltDown();
15798
15799 wxPyEndAllowThreads(__tstate);
15800 if (PyErr_Occurred()) SWIG_fail;
15801 }
15802 {
15803 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15804 }
15805 return resultobj;
15806 fail:
15807 return NULL;
15808}
15809
15810
c32bde28 15811static PyObject *_wrap_KeyEvent_ShiftDown(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15812 PyObject *resultobj;
15813 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15814 bool result;
15815 PyObject * obj0 = 0 ;
15816 char *kwnames[] = {
15817 (char *) "self", NULL
15818 };
15819
15820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ShiftDown",kwnames,&obj0)) goto fail;
15821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15823 {
15824 PyThreadState* __tstate = wxPyBeginAllowThreads();
15825 result = (bool)((wxKeyEvent const *)arg1)->ShiftDown();
15826
15827 wxPyEndAllowThreads(__tstate);
15828 if (PyErr_Occurred()) SWIG_fail;
15829 }
15830 {
15831 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15832 }
15833 return resultobj;
15834 fail:
15835 return NULL;
15836}
15837
15838
c32bde28 15839static PyObject *_wrap_KeyEvent_CmdDown(PyObject *, PyObject *args, PyObject *kwargs) {
412d302d
RD
15840 PyObject *resultobj;
15841 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15842 bool result;
15843 PyObject * obj0 = 0 ;
15844 char *kwnames[] = {
15845 (char *) "self", NULL
15846 };
15847
15848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_CmdDown",kwnames,&obj0)) goto fail;
15849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15851 {
15852 PyThreadState* __tstate = wxPyBeginAllowThreads();
15853 result = (bool)((wxKeyEvent const *)arg1)->CmdDown();
15854
15855 wxPyEndAllowThreads(__tstate);
15856 if (PyErr_Occurred()) SWIG_fail;
15857 }
15858 {
15859 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15860 }
15861 return resultobj;
15862 fail:
15863 return NULL;
15864}
15865
15866
c32bde28 15867static PyObject *_wrap_KeyEvent_HasModifiers(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15868 PyObject *resultobj;
15869 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15870 bool result;
15871 PyObject * obj0 = 0 ;
15872 char *kwnames[] = {
15873 (char *) "self", NULL
15874 };
15875
15876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_HasModifiers",kwnames,&obj0)) goto fail;
15877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15879 {
15880 PyThreadState* __tstate = wxPyBeginAllowThreads();
15881 result = (bool)((wxKeyEvent const *)arg1)->HasModifiers();
15882
15883 wxPyEndAllowThreads(__tstate);
15884 if (PyErr_Occurred()) SWIG_fail;
15885 }
15886 {
15887 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15888 }
15889 return resultobj;
15890 fail:
15891 return NULL;
15892}
15893
15894
c32bde28 15895static PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15896 PyObject *resultobj;
15897 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15898 int result;
15899 PyObject * obj0 = 0 ;
15900 char *kwnames[] = {
15901 (char *) "self", NULL
15902 };
15903
15904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetKeyCode",kwnames,&obj0)) goto fail;
15905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15907 {
15908 PyThreadState* __tstate = wxPyBeginAllowThreads();
15909 result = (int)((wxKeyEvent const *)arg1)->GetKeyCode();
15910
15911 wxPyEndAllowThreads(__tstate);
15912 if (PyErr_Occurred()) SWIG_fail;
15913 }
c32bde28 15914 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
15915 return resultobj;
15916 fail:
15917 return NULL;
15918}
15919
15920
c32bde28 15921static PyObject *_wrap_KeyEvent_GetUnicodeKey(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15922 PyObject *resultobj;
15923 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15924 int result;
15925 PyObject * obj0 = 0 ;
15926 char *kwnames[] = {
15927 (char *) "self", NULL
15928 };
15929
19272049 15930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetUnicodeKey",kwnames,&obj0)) goto fail;
d55e5bfc
RD
15931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15933 {
15934 PyThreadState* __tstate = wxPyBeginAllowThreads();
19272049 15935 result = (int)wxKeyEvent_GetUnicodeKey(arg1);
d55e5bfc
RD
15936
15937 wxPyEndAllowThreads(__tstate);
15938 if (PyErr_Occurred()) SWIG_fail;
15939 }
c32bde28 15940 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
15941 return resultobj;
15942 fail:
15943 return NULL;
15944}
15945
15946
c32bde28 15947static PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15948 PyObject *resultobj;
15949 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15950 unsigned int result;
15951 PyObject * obj0 = 0 ;
15952 char *kwnames[] = {
15953 (char *) "self", NULL
15954 };
15955
15956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyCode",kwnames,&obj0)) goto fail;
15957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15959 {
15960 PyThreadState* __tstate = wxPyBeginAllowThreads();
15961 result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyCode();
15962
15963 wxPyEndAllowThreads(__tstate);
15964 if (PyErr_Occurred()) SWIG_fail;
15965 }
c32bde28 15966 resultobj = SWIG_From_unsigned_SS_int((unsigned int)result);
d55e5bfc
RD
15967 return resultobj;
15968 fail:
15969 return NULL;
15970}
15971
15972
c32bde28 15973static PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15974 PyObject *resultobj;
15975 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15976 unsigned int result;
15977 PyObject * obj0 = 0 ;
15978 char *kwnames[] = {
15979 (char *) "self", NULL
15980 };
15981
15982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyFlags",kwnames,&obj0)) goto fail;
15983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15985 {
15986 PyThreadState* __tstate = wxPyBeginAllowThreads();
15987 result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyFlags();
15988
15989 wxPyEndAllowThreads(__tstate);
15990 if (PyErr_Occurred()) SWIG_fail;
15991 }
c32bde28 15992 resultobj = SWIG_From_unsigned_SS_int((unsigned int)result);
d55e5bfc
RD
15993 return resultobj;
15994 fail:
15995 return NULL;
15996}
15997
15998
c32bde28 15999static PyObject *_wrap_KeyEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16000 PyObject *resultobj;
16001 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16002 wxPoint result;
16003 PyObject * obj0 = 0 ;
16004 char *kwnames[] = {
16005 (char *) "self", NULL
16006 };
16007
16008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPosition",kwnames,&obj0)) goto fail;
16009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16011 {
16012 PyThreadState* __tstate = wxPyBeginAllowThreads();
16013 result = (arg1)->GetPosition();
16014
16015 wxPyEndAllowThreads(__tstate);
16016 if (PyErr_Occurred()) SWIG_fail;
16017 }
16018 {
16019 wxPoint * resultptr;
16020 resultptr = new wxPoint((wxPoint &) result);
16021 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
16022 }
16023 return resultobj;
16024 fail:
16025 return NULL;
16026}
16027
16028
c32bde28 16029static PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16030 PyObject *resultobj;
16031 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16032 long *arg2 = (long *) 0 ;
16033 long *arg3 = (long *) 0 ;
16034 long temp2 ;
c32bde28 16035 int res2 = 0 ;
d55e5bfc 16036 long temp3 ;
c32bde28 16037 int res3 = 0 ;
d55e5bfc
RD
16038 PyObject * obj0 = 0 ;
16039 char *kwnames[] = {
16040 (char *) "self", NULL
16041 };
16042
c32bde28
RD
16043 arg2 = &temp2; res2 = SWIG_NEWOBJ;
16044 arg3 = &temp3; res3 = SWIG_NEWOBJ;
d55e5bfc
RD
16045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPositionTuple",kwnames,&obj0)) goto fail;
16046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16048 {
16049 PyThreadState* __tstate = wxPyBeginAllowThreads();
16050 (arg1)->GetPosition(arg2,arg3);
16051
16052 wxPyEndAllowThreads(__tstate);
16053 if (PyErr_Occurred()) SWIG_fail;
16054 }
16055 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
16056 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
16057 SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0)));
16058 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
16059 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
d55e5bfc
RD
16060 return resultobj;
16061 fail:
16062 return NULL;
16063}
16064
16065
c32bde28 16066static PyObject *_wrap_KeyEvent_GetX(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16067 PyObject *resultobj;
16068 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16069 int result;
16070 PyObject * obj0 = 0 ;
16071 char *kwnames[] = {
16072 (char *) "self", NULL
16073 };
16074
16075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetX",kwnames,&obj0)) goto fail;
16076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16078 {
16079 PyThreadState* __tstate = wxPyBeginAllowThreads();
16080 result = (int)((wxKeyEvent const *)arg1)->GetX();
16081
16082 wxPyEndAllowThreads(__tstate);
16083 if (PyErr_Occurred()) SWIG_fail;
16084 }
c32bde28 16085 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
16086 return resultobj;
16087 fail:
16088 return NULL;
16089}
16090
16091
c32bde28 16092static PyObject *_wrap_KeyEvent_GetY(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16093 PyObject *resultobj;
16094 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16095 int result;
16096 PyObject * obj0 = 0 ;
16097 char *kwnames[] = {
16098 (char *) "self", NULL
16099 };
16100
16101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetY",kwnames,&obj0)) goto fail;
16102 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16104 {
16105 PyThreadState* __tstate = wxPyBeginAllowThreads();
16106 result = (int)((wxKeyEvent const *)arg1)->GetY();
16107
16108 wxPyEndAllowThreads(__tstate);
16109 if (PyErr_Occurred()) SWIG_fail;
16110 }
c32bde28 16111 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
16112 return resultobj;
16113 fail:
16114 return NULL;
16115}
16116
16117
c32bde28 16118static PyObject *_wrap_KeyEvent_m_x_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16119 PyObject *resultobj;
16120 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16121 int arg2 ;
16122 PyObject * obj0 = 0 ;
16123 PyObject * obj1 = 0 ;
16124 char *kwnames[] = {
16125 (char *) "self",(char *) "m_x", NULL
16126 };
16127
16128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail;
16129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 16131 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
16132 if (PyErr_Occurred()) SWIG_fail;
16133 if (arg1) (arg1)->m_x = arg2;
16134
16135 Py_INCREF(Py_None); resultobj = Py_None;
16136 return resultobj;
16137 fail:
16138 return NULL;
16139}
16140
16141
c32bde28 16142static PyObject *_wrap_KeyEvent_m_x_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16143 PyObject *resultobj;
16144 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16145 int result;
16146 PyObject * obj0 = 0 ;
16147 char *kwnames[] = {
16148 (char *) "self", NULL
16149 };
16150
16151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_x_get",kwnames,&obj0)) goto fail;
16152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16154 result = (int) ((arg1)->m_x);
16155
c32bde28 16156 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
16157 return resultobj;
16158 fail:
16159 return NULL;
16160}
16161
16162
c32bde28 16163static PyObject *_wrap_KeyEvent_m_y_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16164 PyObject *resultobj;
16165 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16166 int arg2 ;
16167 PyObject * obj0 = 0 ;
16168 PyObject * obj1 = 0 ;
16169 char *kwnames[] = {
16170 (char *) "self",(char *) "m_y", NULL
16171 };
16172
16173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail;
16174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 16176 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
16177 if (PyErr_Occurred()) SWIG_fail;
16178 if (arg1) (arg1)->m_y = arg2;
16179
16180 Py_INCREF(Py_None); resultobj = Py_None;
16181 return resultobj;
16182 fail:
16183 return NULL;
16184}
16185
16186
c32bde28 16187static PyObject *_wrap_KeyEvent_m_y_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16188 PyObject *resultobj;
16189 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16190 int result;
16191 PyObject * obj0 = 0 ;
16192 char *kwnames[] = {
16193 (char *) "self", NULL
16194 };
16195
16196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_y_get",kwnames,&obj0)) goto fail;
16197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16199 result = (int) ((arg1)->m_y);
16200
c32bde28 16201 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
16202 return resultobj;
16203 fail:
16204 return NULL;
16205}
16206
16207
c32bde28 16208static PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16209 PyObject *resultobj;
16210 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16211 long arg2 ;
16212 PyObject * obj0 = 0 ;
16213 PyObject * obj1 = 0 ;
16214 char *kwnames[] = {
16215 (char *) "self",(char *) "m_keyCode", NULL
16216 };
16217
16218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_keyCode_set",kwnames,&obj0,&obj1)) goto fail;
16219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 16221 arg2 = (long)SWIG_As_long(obj1);
d55e5bfc
RD
16222 if (PyErr_Occurred()) SWIG_fail;
16223 if (arg1) (arg1)->m_keyCode = arg2;
16224
16225 Py_INCREF(Py_None); resultobj = Py_None;
16226 return resultobj;
16227 fail:
16228 return NULL;
16229}
16230
16231
c32bde28 16232static PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16233 PyObject *resultobj;
16234 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16235 long result;
16236 PyObject * obj0 = 0 ;
16237 char *kwnames[] = {
16238 (char *) "self", NULL
16239 };
16240
16241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_keyCode_get",kwnames,&obj0)) goto fail;
16242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16244 result = (long) ((arg1)->m_keyCode);
16245
c32bde28 16246 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
16247 return resultobj;
16248 fail:
16249 return NULL;
16250}
16251
16252
c32bde28 16253static PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16254 PyObject *resultobj;
16255 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16256 bool arg2 ;
16257 PyObject * obj0 = 0 ;
16258 PyObject * obj1 = 0 ;
16259 char *kwnames[] = {
16260 (char *) "self",(char *) "m_controlDown", NULL
16261 };
16262
16263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail;
16264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 16266 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
16267 if (PyErr_Occurred()) SWIG_fail;
16268 if (arg1) (arg1)->m_controlDown = arg2;
16269
16270 Py_INCREF(Py_None); resultobj = Py_None;
16271 return resultobj;
16272 fail:
16273 return NULL;
16274}
16275
16276
c32bde28 16277static PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16278 PyObject *resultobj;
16279 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16280 bool result;
16281 PyObject * obj0 = 0 ;
16282 char *kwnames[] = {
16283 (char *) "self", NULL
16284 };
16285
16286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_controlDown_get",kwnames,&obj0)) goto fail;
16287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16289 result = (bool) ((arg1)->m_controlDown);
16290
16291 {
16292 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16293 }
16294 return resultobj;
16295 fail:
16296 return NULL;
16297}
16298
16299
c32bde28 16300static PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16301 PyObject *resultobj;
16302 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16303 bool arg2 ;
16304 PyObject * obj0 = 0 ;
16305 PyObject * obj1 = 0 ;
16306 char *kwnames[] = {
16307 (char *) "self",(char *) "m_shiftDown", NULL
16308 };
16309
16310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail;
16311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 16313 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
16314 if (PyErr_Occurred()) SWIG_fail;
16315 if (arg1) (arg1)->m_shiftDown = arg2;
16316
16317 Py_INCREF(Py_None); resultobj = Py_None;
16318 return resultobj;
16319 fail:
16320 return NULL;
16321}
16322
16323
c32bde28 16324static PyObject *_wrap_KeyEvent_m_shiftDown_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16325 PyObject *resultobj;
16326 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16327 bool result;
16328 PyObject * obj0 = 0 ;
16329 char *kwnames[] = {
16330 (char *) "self", NULL
16331 };
16332
16333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_shiftDown_get",kwnames,&obj0)) goto fail;
16334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16336 result = (bool) ((arg1)->m_shiftDown);
16337
16338 {
16339 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16340 }
16341 return resultobj;
16342 fail:
16343 return NULL;
16344}
16345
16346
c32bde28 16347static PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16348 PyObject *resultobj;
16349 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16350 bool arg2 ;
16351 PyObject * obj0 = 0 ;
16352 PyObject * obj1 = 0 ;
16353 char *kwnames[] = {
16354 (char *) "self",(char *) "m_altDown", NULL
16355 };
16356
16357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail;
16358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 16360 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
16361 if (PyErr_Occurred()) SWIG_fail;
16362 if (arg1) (arg1)->m_altDown = arg2;
16363
16364 Py_INCREF(Py_None); resultobj = Py_None;
16365 return resultobj;
16366 fail:
16367 return NULL;
16368}
16369
16370
c32bde28 16371static PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16372 PyObject *resultobj;
16373 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16374 bool result;
16375 PyObject * obj0 = 0 ;
16376 char *kwnames[] = {
16377 (char *) "self", NULL
16378 };
16379
16380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_altDown_get",kwnames,&obj0)) goto fail;
16381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16383 result = (bool) ((arg1)->m_altDown);
16384
16385 {
16386 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16387 }
16388 return resultobj;
16389 fail:
16390 return NULL;
16391}
16392
16393
c32bde28 16394static PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16395 PyObject *resultobj;
16396 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16397 bool arg2 ;
16398 PyObject * obj0 = 0 ;
16399 PyObject * obj1 = 0 ;
16400 char *kwnames[] = {
16401 (char *) "self",(char *) "m_metaDown", NULL
16402 };
16403
16404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail;
16405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 16407 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
16408 if (PyErr_Occurred()) SWIG_fail;
16409 if (arg1) (arg1)->m_metaDown = arg2;
16410
16411 Py_INCREF(Py_None); resultobj = Py_None;
16412 return resultobj;
16413 fail:
16414 return NULL;
16415}
16416
16417
c32bde28 16418static PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16419 PyObject *resultobj;
16420 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16421 bool result;
16422 PyObject * obj0 = 0 ;
16423 char *kwnames[] = {
16424 (char *) "self", NULL
16425 };
16426
16427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_metaDown_get",kwnames,&obj0)) goto fail;
16428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16430 result = (bool) ((arg1)->m_metaDown);
16431
16432 {
16433 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16434 }
16435 return resultobj;
16436 fail:
16437 return NULL;
16438}
16439
16440
c32bde28 16441static PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16442 PyObject *resultobj;
16443 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16444 bool arg2 ;
16445 PyObject * obj0 = 0 ;
16446 PyObject * obj1 = 0 ;
16447 char *kwnames[] = {
16448 (char *) "self",(char *) "m_scanCode", NULL
16449 };
16450
16451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_scanCode_set",kwnames,&obj0,&obj1)) goto fail;
16452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 16454 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
16455 if (PyErr_Occurred()) SWIG_fail;
16456 if (arg1) (arg1)->m_scanCode = arg2;
16457
16458 Py_INCREF(Py_None); resultobj = Py_None;
16459 return resultobj;
16460 fail:
16461 return NULL;
16462}
16463
16464
c32bde28 16465static PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16466 PyObject *resultobj;
16467 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16468 bool result;
16469 PyObject * obj0 = 0 ;
16470 char *kwnames[] = {
16471 (char *) "self", NULL
16472 };
16473
16474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_scanCode_get",kwnames,&obj0)) goto fail;
16475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16477 result = (bool) ((arg1)->m_scanCode);
16478
16479 {
16480 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16481 }
16482 return resultobj;
16483 fail:
16484 return NULL;
16485}
16486
16487
c32bde28 16488static PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16489 PyObject *resultobj;
16490 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16491 unsigned int arg2 ;
16492 PyObject * obj0 = 0 ;
16493 PyObject * obj1 = 0 ;
16494 char *kwnames[] = {
16495 (char *) "self",(char *) "m_rawCode", NULL
16496 };
16497
16498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawCode_set",kwnames,&obj0,&obj1)) goto fail;
16499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 16501 arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1);
d55e5bfc
RD
16502 if (PyErr_Occurred()) SWIG_fail;
16503 if (arg1) (arg1)->m_rawCode = arg2;
16504
16505 Py_INCREF(Py_None); resultobj = Py_None;
16506 return resultobj;
16507 fail:
16508 return NULL;
16509}
16510
16511
c32bde28 16512static PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16513 PyObject *resultobj;
16514 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16515 unsigned int result;
16516 PyObject * obj0 = 0 ;
16517 char *kwnames[] = {
16518 (char *) "self", NULL
16519 };
16520
16521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawCode_get",kwnames,&obj0)) goto fail;
16522 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16523 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16524 result = (unsigned int) ((arg1)->m_rawCode);
16525
c32bde28 16526 resultobj = SWIG_From_unsigned_SS_int((unsigned int)result);
d55e5bfc
RD
16527 return resultobj;
16528 fail:
16529 return NULL;
16530}
16531
16532
c32bde28 16533static PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16534 PyObject *resultobj;
16535 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16536 unsigned int arg2 ;
16537 PyObject * obj0 = 0 ;
16538 PyObject * obj1 = 0 ;
16539 char *kwnames[] = {
16540 (char *) "self",(char *) "m_rawFlags", NULL
16541 };
16542
16543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawFlags_set",kwnames,&obj0,&obj1)) goto fail;
16544 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 16546 arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1);
d55e5bfc
RD
16547 if (PyErr_Occurred()) SWIG_fail;
16548 if (arg1) (arg1)->m_rawFlags = arg2;
16549
16550 Py_INCREF(Py_None); resultobj = Py_None;
16551 return resultobj;
16552 fail:
16553 return NULL;
16554}
16555
16556
c32bde28 16557static PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16558 PyObject *resultobj;
16559 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16560 unsigned int result;
16561 PyObject * obj0 = 0 ;
16562 char *kwnames[] = {
16563 (char *) "self", NULL
16564 };
16565
16566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawFlags_get",kwnames,&obj0)) goto fail;
16567 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16569 result = (unsigned int) ((arg1)->m_rawFlags);
16570
c32bde28 16571 resultobj = SWIG_From_unsigned_SS_int((unsigned int)result);
d55e5bfc
RD
16572 return resultobj;
16573 fail:
16574 return NULL;
16575}
16576
16577
c32bde28 16578static PyObject * KeyEvent_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
16579 PyObject *obj;
16580 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16581 SWIG_TypeClientData(SWIGTYPE_p_wxKeyEvent, obj);
16582 Py_INCREF(obj);
16583 return Py_BuildValue((char *)"");
16584}
c32bde28 16585static PyObject *_wrap_new_SizeEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16586 PyObject *resultobj;
16587 wxSize const &arg1_defvalue = wxDefaultSize ;
16588 wxSize *arg1 = (wxSize *) &arg1_defvalue ;
16589 int arg2 = (int) 0 ;
16590 wxSizeEvent *result;
16591 wxSize temp1 ;
16592 PyObject * obj0 = 0 ;
16593 PyObject * obj1 = 0 ;
16594 char *kwnames[] = {
16595 (char *) "sz",(char *) "winid", NULL
16596 };
16597
16598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SizeEvent",kwnames,&obj0,&obj1)) goto fail;
16599 if (obj0) {
16600 {
16601 arg1 = &temp1;
16602 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
16603 }
16604 }
16605 if (obj1) {
c32bde28 16606 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
16607 if (PyErr_Occurred()) SWIG_fail;
16608 }
16609 {
16610 PyThreadState* __tstate = wxPyBeginAllowThreads();
16611 result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2);
16612
16613 wxPyEndAllowThreads(__tstate);
16614 if (PyErr_Occurred()) SWIG_fail;
16615 }
16616 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizeEvent, 1);
16617 return resultobj;
16618 fail:
16619 return NULL;
16620}
16621
16622
c32bde28 16623static PyObject *_wrap_SizeEvent_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16624 PyObject *resultobj;
16625 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16626 wxSize result;
16627 PyObject * obj0 = 0 ;
16628 char *kwnames[] = {
16629 (char *) "self", NULL
16630 };
16631
16632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetSize",kwnames,&obj0)) goto fail;
16633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16635 {
16636 PyThreadState* __tstate = wxPyBeginAllowThreads();
16637 result = ((wxSizeEvent const *)arg1)->GetSize();
16638
16639 wxPyEndAllowThreads(__tstate);
16640 if (PyErr_Occurred()) SWIG_fail;
16641 }
16642 {
16643 wxSize * resultptr;
16644 resultptr = new wxSize((wxSize &) result);
16645 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16646 }
16647 return resultobj;
16648 fail:
16649 return NULL;
16650}
16651
16652
c32bde28 16653static PyObject *_wrap_SizeEvent_GetRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16654 PyObject *resultobj;
16655 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16656 wxRect result;
16657 PyObject * obj0 = 0 ;
16658 char *kwnames[] = {
16659 (char *) "self", NULL
16660 };
16661
16662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetRect",kwnames,&obj0)) goto fail;
16663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16665 {
16666 PyThreadState* __tstate = wxPyBeginAllowThreads();
16667 result = ((wxSizeEvent const *)arg1)->GetRect();
16668
16669 wxPyEndAllowThreads(__tstate);
16670 if (PyErr_Occurred()) SWIG_fail;
16671 }
16672 {
16673 wxRect * resultptr;
16674 resultptr = new wxRect((wxRect &) result);
16675 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
16676 }
16677 return resultobj;
16678 fail:
16679 return NULL;
16680}
16681
16682
c32bde28 16683static PyObject *_wrap_SizeEvent_SetRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16684 PyObject *resultobj;
16685 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16686 wxRect arg2 ;
16687 wxRect *argp2 ;
16688 PyObject * obj0 = 0 ;
16689 PyObject * obj1 = 0 ;
16690 char *kwnames[] = {
16691 (char *) "self",(char *) "rect", NULL
16692 };
16693
16694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) goto fail;
16695 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16697 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect,
16698 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
16699 arg2 = *argp2;
16700 {
16701 PyThreadState* __tstate = wxPyBeginAllowThreads();
16702 (arg1)->SetRect(arg2);
16703
16704 wxPyEndAllowThreads(__tstate);
16705 if (PyErr_Occurred()) SWIG_fail;
16706 }
16707 Py_INCREF(Py_None); resultobj = Py_None;
16708 return resultobj;
16709 fail:
16710 return NULL;
16711}
16712
16713
c32bde28 16714static PyObject *_wrap_SizeEvent_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16715 PyObject *resultobj;
16716 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16717 wxSize arg2 ;
16718 wxSize *argp2 ;
16719 PyObject * obj0 = 0 ;
16720 PyObject * obj1 = 0 ;
16721 char *kwnames[] = {
16722 (char *) "self",(char *) "size", NULL
16723 };
16724
16725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) goto fail;
16726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16728 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize,
16729 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
16730 arg2 = *argp2;
16731 {
16732 PyThreadState* __tstate = wxPyBeginAllowThreads();
16733 wxSizeEvent_SetSize(arg1,arg2);
16734
16735 wxPyEndAllowThreads(__tstate);
16736 if (PyErr_Occurred()) SWIG_fail;
16737 }
16738 Py_INCREF(Py_None); resultobj = Py_None;
16739 return resultobj;
16740 fail:
16741 return NULL;
16742}
16743
16744
c32bde28 16745static PyObject *_wrap_SizeEvent_m_size_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16746 PyObject *resultobj;
16747 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16748 wxSize *arg2 = (wxSize *) 0 ;
16749 PyObject * obj0 = 0 ;
16750 PyObject * obj1 = 0 ;
16751 char *kwnames[] = {
16752 (char *) "self",(char *) "m_size", NULL
16753 };
16754
16755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_size_set",kwnames,&obj0,&obj1)) goto fail;
16756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16758 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSize,
16759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16760 if (arg1) (arg1)->m_size = *arg2;
16761
16762 Py_INCREF(Py_None); resultobj = Py_None;
16763 return resultobj;
16764 fail:
16765 return NULL;
16766}
16767
16768
c32bde28 16769static PyObject *_wrap_SizeEvent_m_size_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16770 PyObject *resultobj;
16771 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16772 wxSize *result;
16773 PyObject * obj0 = 0 ;
16774 char *kwnames[] = {
16775 (char *) "self", NULL
16776 };
16777
16778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_size_get",kwnames,&obj0)) goto fail;
16779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16781 result = (wxSize *)& ((arg1)->m_size);
16782
16783 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0);
16784 return resultobj;
16785 fail:
16786 return NULL;
16787}
16788
16789
c32bde28 16790static PyObject *_wrap_SizeEvent_m_rect_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16791 PyObject *resultobj;
16792 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16793 wxRect *arg2 = (wxRect *) 0 ;
16794 PyObject * obj0 = 0 ;
16795 PyObject * obj1 = 0 ;
16796 char *kwnames[] = {
16797 (char *) "self",(char *) "m_rect", NULL
16798 };
16799
16800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail;
16801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16803 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
16804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16805 if (arg1) (arg1)->m_rect = *arg2;
16806
16807 Py_INCREF(Py_None); resultobj = Py_None;
16808 return resultobj;
16809 fail:
16810 return NULL;
16811}
16812
16813
c32bde28 16814static PyObject *_wrap_SizeEvent_m_rect_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16815 PyObject *resultobj;
16816 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16817 wxRect *result;
16818 PyObject * obj0 = 0 ;
16819 char *kwnames[] = {
16820 (char *) "self", NULL
16821 };
16822
16823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_rect_get",kwnames,&obj0)) goto fail;
16824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16826 result = (wxRect *)& ((arg1)->m_rect);
16827
16828 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0);
16829 return resultobj;
16830 fail:
16831 return NULL;
16832}
16833
16834
c32bde28 16835static PyObject * SizeEvent_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
16836 PyObject *obj;
16837 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16838 SWIG_TypeClientData(SWIGTYPE_p_wxSizeEvent, obj);
16839 Py_INCREF(obj);
16840 return Py_BuildValue((char *)"");
16841}
c32bde28 16842static PyObject *_wrap_new_MoveEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16843 PyObject *resultobj;
16844 wxPoint const &arg1_defvalue = wxDefaultPosition ;
16845 wxPoint *arg1 = (wxPoint *) &arg1_defvalue ;
16846 int arg2 = (int) 0 ;
16847 wxMoveEvent *result;
16848 wxPoint temp1 ;
16849 PyObject * obj0 = 0 ;
16850 PyObject * obj1 = 0 ;
16851 char *kwnames[] = {
16852 (char *) "pos",(char *) "winid", NULL
16853 };
16854
16855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MoveEvent",kwnames,&obj0,&obj1)) goto fail;
16856 if (obj0) {
16857 {
16858 arg1 = &temp1;
16859 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
16860 }
16861 }
16862 if (obj1) {
c32bde28 16863 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
16864 if (PyErr_Occurred()) SWIG_fail;
16865 }
16866 {
16867 PyThreadState* __tstate = wxPyBeginAllowThreads();
16868 result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2);
16869
16870 wxPyEndAllowThreads(__tstate);
16871 if (PyErr_Occurred()) SWIG_fail;
16872 }
16873 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMoveEvent, 1);
16874 return resultobj;
16875 fail:
16876 return NULL;
16877}
16878
16879
c32bde28 16880static PyObject *_wrap_MoveEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16881 PyObject *resultobj;
16882 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16883 wxPoint result;
16884 PyObject * obj0 = 0 ;
16885 char *kwnames[] = {
16886 (char *) "self", NULL
16887 };
16888
16889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetPosition",kwnames,&obj0)) goto fail;
16890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16892 {
16893 PyThreadState* __tstate = wxPyBeginAllowThreads();
16894 result = ((wxMoveEvent const *)arg1)->GetPosition();
16895
16896 wxPyEndAllowThreads(__tstate);
16897 if (PyErr_Occurred()) SWIG_fail;
16898 }
16899 {
16900 wxPoint * resultptr;
16901 resultptr = new wxPoint((wxPoint &) result);
16902 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
16903 }
16904 return resultobj;
16905 fail:
16906 return NULL;
16907}
16908
16909
c32bde28 16910static PyObject *_wrap_MoveEvent_GetRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16911 PyObject *resultobj;
16912 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16913 wxRect result;
16914 PyObject * obj0 = 0 ;
16915 char *kwnames[] = {
16916 (char *) "self", NULL
16917 };
16918
16919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetRect",kwnames,&obj0)) goto fail;
16920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16922 {
16923 PyThreadState* __tstate = wxPyBeginAllowThreads();
16924 result = ((wxMoveEvent const *)arg1)->GetRect();
16925
16926 wxPyEndAllowThreads(__tstate);
16927 if (PyErr_Occurred()) SWIG_fail;
16928 }
16929 {
16930 wxRect * resultptr;
16931 resultptr = new wxRect((wxRect &) result);
16932 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
16933 }
16934 return resultobj;
16935 fail:
16936 return NULL;
16937}
16938
16939
c32bde28 16940static PyObject *_wrap_MoveEvent_SetRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16941 PyObject *resultobj;
16942 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16943 wxRect arg2 ;
16944 wxRect *argp2 ;
16945 PyObject * obj0 = 0 ;
16946 PyObject * obj1 = 0 ;
16947 char *kwnames[] = {
16948 (char *) "self",(char *) "rect", NULL
16949 };
16950
16951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) goto fail;
16952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16954 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect,
16955 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
16956 arg2 = *argp2;
16957 {
16958 PyThreadState* __tstate = wxPyBeginAllowThreads();
16959 (arg1)->SetRect(arg2);
16960
16961 wxPyEndAllowThreads(__tstate);
16962 if (PyErr_Occurred()) SWIG_fail;
16963 }
16964 Py_INCREF(Py_None); resultobj = Py_None;
16965 return resultobj;
16966 fail:
16967 return NULL;
16968}
16969
16970
c32bde28 16971static PyObject *_wrap_MoveEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
16972 PyObject *resultobj;
16973 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16974 wxPoint arg2 ;
16975 wxPoint *argp2 ;
16976 PyObject * obj0 = 0 ;
16977 PyObject * obj1 = 0 ;
16978 char *kwnames[] = {
16979 (char *) "self",(char *) "pos", NULL
16980 };
16981
16982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
16983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16985 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint,
16986 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
16987 arg2 = *argp2;
16988 {
16989 PyThreadState* __tstate = wxPyBeginAllowThreads();
16990 wxMoveEvent_SetPosition(arg1,arg2);
16991
16992 wxPyEndAllowThreads(__tstate);
16993 if (PyErr_Occurred()) SWIG_fail;
16994 }
16995 Py_INCREF(Py_None); resultobj = Py_None;
16996 return resultobj;
16997 fail:
16998 return NULL;
16999}
17000
17001
c32bde28 17002static PyObject *_wrap_MoveEvent_m_pos_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17003 PyObject *resultobj;
17004 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
17005 wxPoint *arg2 = (wxPoint *) 0 ;
17006 PyObject * obj0 = 0 ;
17007 PyObject * obj1 = 0 ;
17008 char *kwnames[] = {
17009 (char *) "self",(char *) "m_pos", NULL
17010 };
17011
17012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail;
17013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
17014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17015 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
17016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17017 if (arg1) (arg1)->m_pos = *arg2;
17018
17019 Py_INCREF(Py_None); resultobj = Py_None;
17020 return resultobj;
17021 fail:
17022 return NULL;
17023}
17024
17025
c32bde28 17026static PyObject *_wrap_MoveEvent_m_pos_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17027 PyObject *resultobj;
17028 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
17029 wxPoint *result;
17030 PyObject * obj0 = 0 ;
17031 char *kwnames[] = {
17032 (char *) "self", NULL
17033 };
17034
17035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_pos_get",kwnames,&obj0)) goto fail;
17036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
17037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17038 result = (wxPoint *)& ((arg1)->m_pos);
17039
17040 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
17041 return resultobj;
17042 fail:
17043 return NULL;
17044}
17045
17046
c32bde28 17047static PyObject *_wrap_MoveEvent_m_rect_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17048 PyObject *resultobj;
17049 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
17050 wxRect *arg2 = (wxRect *) 0 ;
17051 PyObject * obj0 = 0 ;
17052 PyObject * obj1 = 0 ;
17053 char *kwnames[] = {
17054 (char *) "self",(char *) "m_rect", NULL
17055 };
17056
17057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail;
17058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
17059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17060 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
17061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17062 if (arg1) (arg1)->m_rect = *arg2;
17063
17064 Py_INCREF(Py_None); resultobj = Py_None;
17065 return resultobj;
17066 fail:
17067 return NULL;
17068}
17069
17070
c32bde28 17071static PyObject *_wrap_MoveEvent_m_rect_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17072 PyObject *resultobj;
17073 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
17074 wxRect *result;
17075 PyObject * obj0 = 0 ;
17076 char *kwnames[] = {
17077 (char *) "self", NULL
17078 };
17079
17080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_rect_get",kwnames,&obj0)) goto fail;
17081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
17082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17083 result = (wxRect *)& ((arg1)->m_rect);
17084
17085 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0);
17086 return resultobj;
17087 fail:
17088 return NULL;
17089}
17090
17091
c32bde28 17092static PyObject * MoveEvent_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
17093 PyObject *obj;
17094 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17095 SWIG_TypeClientData(SWIGTYPE_p_wxMoveEvent, obj);
17096 Py_INCREF(obj);
17097 return Py_BuildValue((char *)"");
17098}
c32bde28 17099static PyObject *_wrap_new_PaintEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17100 PyObject *resultobj;
17101 int arg1 = (int) 0 ;
17102 wxPaintEvent *result;
17103 PyObject * obj0 = 0 ;
17104 char *kwnames[] = {
17105 (char *) "Id", NULL
17106 };
17107
17108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaintEvent",kwnames,&obj0)) goto fail;
17109 if (obj0) {
c32bde28 17110 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
17111 if (PyErr_Occurred()) SWIG_fail;
17112 }
17113 {
17114 PyThreadState* __tstate = wxPyBeginAllowThreads();
17115 result = (wxPaintEvent *)new wxPaintEvent(arg1);
17116
17117 wxPyEndAllowThreads(__tstate);
17118 if (PyErr_Occurred()) SWIG_fail;
17119 }
17120 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintEvent, 1);
17121 return resultobj;
17122 fail:
17123 return NULL;
17124}
17125
17126
c32bde28 17127static PyObject * PaintEvent_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
17128 PyObject *obj;
17129 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17130 SWIG_TypeClientData(SWIGTYPE_p_wxPaintEvent, obj);
17131 Py_INCREF(obj);
17132 return Py_BuildValue((char *)"");
17133}
c32bde28 17134static PyObject *_wrap_new_NcPaintEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17135 PyObject *resultobj;
17136 int arg1 = (int) 0 ;
17137 wxNcPaintEvent *result;
17138 PyObject * obj0 = 0 ;
17139 char *kwnames[] = {
17140 (char *) "winid", NULL
17141 };
17142
17143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_NcPaintEvent",kwnames,&obj0)) goto fail;
17144 if (obj0) {
c32bde28 17145 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
17146 if (PyErr_Occurred()) SWIG_fail;
17147 }
17148 {
17149 PyThreadState* __tstate = wxPyBeginAllowThreads();
17150 result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1);
17151
17152 wxPyEndAllowThreads(__tstate);
17153 if (PyErr_Occurred()) SWIG_fail;
17154 }
17155 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNcPaintEvent, 1);
17156 return resultobj;
17157 fail:
17158 return NULL;
17159}
17160
17161
c32bde28 17162static PyObject * NcPaintEvent_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
17163 PyObject *obj;
17164 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17165 SWIG_TypeClientData(SWIGTYPE_p_wxNcPaintEvent, obj);
17166 Py_INCREF(obj);
17167 return Py_BuildValue((char *)"");
17168}
c32bde28 17169static PyObject *_wrap_new_EraseEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17170 PyObject *resultobj;
17171 int arg1 = (int) 0 ;
17172 wxDC *arg2 = (wxDC *) (wxDC *) NULL ;
17173 wxEraseEvent *result;
17174 PyObject * obj0 = 0 ;
17175 PyObject * obj1 = 0 ;
17176 char *kwnames[] = {
17177 (char *) "Id",(char *) "dc", NULL
17178 };
17179
17180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EraseEvent",kwnames,&obj0,&obj1)) goto fail;
17181 if (obj0) {
c32bde28 17182 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
17183 if (PyErr_Occurred()) SWIG_fail;
17184 }
17185 if (obj1) {
17186 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
17187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17188 }
17189 {
17190 PyThreadState* __tstate = wxPyBeginAllowThreads();
17191 result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2);
17192
17193 wxPyEndAllowThreads(__tstate);
17194 if (PyErr_Occurred()) SWIG_fail;
17195 }
17196 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEraseEvent, 1);
17197 return resultobj;
17198 fail:
17199 return NULL;
17200}
17201
17202
c32bde28 17203static PyObject *_wrap_EraseEvent_GetDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17204 PyObject *resultobj;
17205 wxEraseEvent *arg1 = (wxEraseEvent *) 0 ;
17206 wxDC *result;
17207 PyObject * obj0 = 0 ;
17208 char *kwnames[] = {
17209 (char *) "self", NULL
17210 };
17211
17212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EraseEvent_GetDC",kwnames,&obj0)) goto fail;
17213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEraseEvent,
17214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17215 {
17216 PyThreadState* __tstate = wxPyBeginAllowThreads();
17217 result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC();
17218
17219 wxPyEndAllowThreads(__tstate);
17220 if (PyErr_Occurred()) SWIG_fail;
17221 }
17222 {
412d302d 17223 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
17224 }
17225 return resultobj;
17226 fail:
17227 return NULL;
17228}
17229
17230
c32bde28 17231static PyObject * EraseEvent_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
17232 PyObject *obj;
17233 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17234 SWIG_TypeClientData(SWIGTYPE_p_wxEraseEvent, obj);
17235 Py_INCREF(obj);
17236 return Py_BuildValue((char *)"");
17237}
c32bde28 17238static PyObject *_wrap_new_FocusEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17239 PyObject *resultobj;
17240 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
17241 int arg2 = (int) 0 ;
17242 wxFocusEvent *result;
17243 PyObject * obj0 = 0 ;
17244 PyObject * obj1 = 0 ;
17245 char *kwnames[] = {
17246 (char *) "type",(char *) "winid", NULL
17247 };
17248
17249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FocusEvent",kwnames,&obj0,&obj1)) goto fail;
17250 if (obj0) {
c32bde28 17251 arg1 = (wxEventType)SWIG_As_int(obj0);
d55e5bfc
RD
17252 if (PyErr_Occurred()) SWIG_fail;
17253 }
17254 if (obj1) {
c32bde28 17255 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
17256 if (PyErr_Occurred()) SWIG_fail;
17257 }
17258 {
17259 PyThreadState* __tstate = wxPyBeginAllowThreads();
17260 result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2);
17261
17262 wxPyEndAllowThreads(__tstate);
17263 if (PyErr_Occurred()) SWIG_fail;
17264 }
17265 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFocusEvent, 1);
17266 return resultobj;
17267 fail:
17268 return NULL;
17269}
17270
17271
c32bde28 17272static PyObject *_wrap_FocusEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17273 PyObject *resultobj;
17274 wxFocusEvent *arg1 = (wxFocusEvent *) 0 ;
17275 wxWindow *result;
17276 PyObject * obj0 = 0 ;
17277 char *kwnames[] = {
17278 (char *) "self", NULL
17279 };
17280
17281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FocusEvent_GetWindow",kwnames,&obj0)) goto fail;
17282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent,
17283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17284 {
17285 PyThreadState* __tstate = wxPyBeginAllowThreads();
17286 result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow();
17287
17288 wxPyEndAllowThreads(__tstate);
17289 if (PyErr_Occurred()) SWIG_fail;
17290 }
17291 {
412d302d 17292 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
17293 }
17294 return resultobj;
17295 fail:
17296 return NULL;
17297}
17298
17299
c32bde28 17300static PyObject *_wrap_FocusEvent_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17301 PyObject *resultobj;
17302 wxFocusEvent *arg1 = (wxFocusEvent *) 0 ;
17303 wxWindow *arg2 = (wxWindow *) 0 ;
17304 PyObject * obj0 = 0 ;
17305 PyObject * obj1 = 0 ;
17306 char *kwnames[] = {
17307 (char *) "self",(char *) "win", NULL
17308 };
17309
17310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) goto fail;
17311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent,
17312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17313 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
17314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17315 {
17316 PyThreadState* __tstate = wxPyBeginAllowThreads();
17317 (arg1)->SetWindow(arg2);
17318
17319 wxPyEndAllowThreads(__tstate);
17320 if (PyErr_Occurred()) SWIG_fail;
17321 }
17322 Py_INCREF(Py_None); resultobj = Py_None;
17323 return resultobj;
17324 fail:
17325 return NULL;
17326}
17327
17328
c32bde28 17329static PyObject * FocusEvent_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
17330 PyObject *obj;
17331 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17332 SWIG_TypeClientData(SWIGTYPE_p_wxFocusEvent, obj);
17333 Py_INCREF(obj);
17334 return Py_BuildValue((char *)"");
17335}
c32bde28 17336static PyObject *_wrap_new_ChildFocusEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17337 PyObject *resultobj;
17338 wxWindow *arg1 = (wxWindow *) NULL ;
17339 wxChildFocusEvent *result;
17340 PyObject * obj0 = 0 ;
17341 char *kwnames[] = {
17342 (char *) "win", NULL
17343 };
17344
17345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) goto fail;
17346 if (obj0) {
17347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
17348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17349 }
17350 {
17351 PyThreadState* __tstate = wxPyBeginAllowThreads();
17352 result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1);
17353
17354 wxPyEndAllowThreads(__tstate);
17355 if (PyErr_Occurred()) SWIG_fail;
17356 }
17357 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChildFocusEvent, 1);
17358 return resultobj;
17359 fail:
17360 return NULL;
17361}
17362
17363
c32bde28 17364static PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17365 PyObject *resultobj;
17366 wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ;
17367 wxWindow *result;
17368 PyObject * obj0 = 0 ;
17369 char *kwnames[] = {
17370 (char *) "self", NULL
17371 };
17372
17373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ChildFocusEvent_GetWindow",kwnames,&obj0)) goto fail;
17374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChildFocusEvent,
17375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17376 {
17377 PyThreadState* __tstate = wxPyBeginAllowThreads();
17378 result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow();
17379
17380 wxPyEndAllowThreads(__tstate);
17381 if (PyErr_Occurred()) SWIG_fail;
17382 }
17383 {
412d302d 17384 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
17385 }
17386 return resultobj;
17387 fail:
17388 return NULL;
17389}
17390
17391
c32bde28 17392static PyObject * ChildFocusEvent_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
17393 PyObject *obj;
17394 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17395 SWIG_TypeClientData(SWIGTYPE_p_wxChildFocusEvent, obj);
17396 Py_INCREF(obj);
17397 return Py_BuildValue((char *)"");
17398}
c32bde28 17399static PyObject *_wrap_new_ActivateEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17400 PyObject *resultobj;
17401 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
17402 bool arg2 = (bool) True ;
17403 int arg3 = (int) 0 ;
17404 wxActivateEvent *result;
17405 PyObject * obj0 = 0 ;
17406 PyObject * obj1 = 0 ;
17407 PyObject * obj2 = 0 ;
17408 char *kwnames[] = {
17409 (char *) "type",(char *) "active",(char *) "Id", NULL
17410 };
17411
17412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ActivateEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
17413 if (obj0) {
c32bde28 17414 arg1 = (wxEventType)SWIG_As_int(obj0);
d55e5bfc
RD
17415 if (PyErr_Occurred()) SWIG_fail;
17416 }
17417 if (obj1) {
c32bde28 17418 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
17419 if (PyErr_Occurred()) SWIG_fail;
17420 }
17421 if (obj2) {
c32bde28 17422 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
17423 if (PyErr_Occurred()) SWIG_fail;
17424 }
17425 {
17426 PyThreadState* __tstate = wxPyBeginAllowThreads();
17427 result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3);
17428
17429 wxPyEndAllowThreads(__tstate);
17430 if (PyErr_Occurred()) SWIG_fail;
17431 }
17432 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxActivateEvent, 1);
17433 return resultobj;
17434 fail:
17435 return NULL;
17436}
17437
17438
c32bde28 17439static PyObject *_wrap_ActivateEvent_GetActive(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17440 PyObject *resultobj;
17441 wxActivateEvent *arg1 = (wxActivateEvent *) 0 ;
17442 bool result;
17443 PyObject * obj0 = 0 ;
17444 char *kwnames[] = {
17445 (char *) "self", NULL
17446 };
17447
17448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActivateEvent_GetActive",kwnames,&obj0)) goto fail;
17449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActivateEvent,
17450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17451 {
17452 PyThreadState* __tstate = wxPyBeginAllowThreads();
17453 result = (bool)((wxActivateEvent const *)arg1)->GetActive();
17454
17455 wxPyEndAllowThreads(__tstate);
17456 if (PyErr_Occurred()) SWIG_fail;
17457 }
17458 {
17459 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17460 }
17461 return resultobj;
17462 fail:
17463 return NULL;
17464}
17465
17466
c32bde28 17467static PyObject * ActivateEvent_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
17468 PyObject *obj;
17469 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17470 SWIG_TypeClientData(SWIGTYPE_p_wxActivateEvent, obj);
17471 Py_INCREF(obj);
17472 return Py_BuildValue((char *)"");
17473}
c32bde28 17474static PyObject *_wrap_new_InitDialogEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17475 PyObject *resultobj;
17476 int arg1 = (int) 0 ;
17477 wxInitDialogEvent *result;
17478 PyObject * obj0 = 0 ;
17479 char *kwnames[] = {
17480 (char *) "Id", NULL
17481 };
17482
17483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_InitDialogEvent",kwnames,&obj0)) goto fail;
17484 if (obj0) {
c32bde28 17485 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
17486 if (PyErr_Occurred()) SWIG_fail;
17487 }
17488 {
17489 PyThreadState* __tstate = wxPyBeginAllowThreads();
17490 result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1);
17491
17492 wxPyEndAllowThreads(__tstate);
17493 if (PyErr_Occurred()) SWIG_fail;
17494 }
17495 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInitDialogEvent, 1);
17496 return resultobj;
17497 fail:
17498 return NULL;
17499}
17500
17501
c32bde28 17502static PyObject * InitDialogEvent_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
17503 PyObject *obj;
17504 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17505 SWIG_TypeClientData(SWIGTYPE_p_wxInitDialogEvent, obj);
17506 Py_INCREF(obj);
17507 return Py_BuildValue((char *)"");
17508}
c32bde28 17509static PyObject *_wrap_new_MenuEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17510 PyObject *resultobj;
17511 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
17512 int arg2 = (int) 0 ;
17513 wxMenu *arg3 = (wxMenu *) NULL ;
17514 wxMenuEvent *result;
17515 PyObject * obj0 = 0 ;
17516 PyObject * obj1 = 0 ;
17517 PyObject * obj2 = 0 ;
17518 char *kwnames[] = {
17519 (char *) "type",(char *) "winid",(char *) "menu", NULL
17520 };
17521
17522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_MenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
17523 if (obj0) {
c32bde28 17524 arg1 = (wxEventType)SWIG_As_int(obj0);
d55e5bfc
RD
17525 if (PyErr_Occurred()) SWIG_fail;
17526 }
17527 if (obj1) {
c32bde28 17528 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
17529 if (PyErr_Occurred()) SWIG_fail;
17530 }
17531 if (obj2) {
17532 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu,
17533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17534 }
17535 {
17536 PyThreadState* __tstate = wxPyBeginAllowThreads();
17537 result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3);
17538
17539 wxPyEndAllowThreads(__tstate);
17540 if (PyErr_Occurred()) SWIG_fail;
17541 }
17542 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuEvent, 1);
17543 return resultobj;
17544 fail:
17545 return NULL;
17546}
17547
17548
c32bde28 17549static PyObject *_wrap_MenuEvent_GetMenuId(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17550 PyObject *resultobj;
17551 wxMenuEvent *arg1 = (wxMenuEvent *) 0 ;
17552 int result;
17553 PyObject * obj0 = 0 ;
17554 char *kwnames[] = {
17555 (char *) "self", NULL
17556 };
17557
17558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenuId",kwnames,&obj0)) goto fail;
17559 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent,
17560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17561 {
17562 PyThreadState* __tstate = wxPyBeginAllowThreads();
17563 result = (int)((wxMenuEvent const *)arg1)->GetMenuId();
17564
17565 wxPyEndAllowThreads(__tstate);
17566 if (PyErr_Occurred()) SWIG_fail;
17567 }
c32bde28 17568 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
17569 return resultobj;
17570 fail:
17571 return NULL;
17572}
17573
17574
c32bde28 17575static PyObject *_wrap_MenuEvent_IsPopup(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17576 PyObject *resultobj;
17577 wxMenuEvent *arg1 = (wxMenuEvent *) 0 ;
17578 bool result;
17579 PyObject * obj0 = 0 ;
17580 char *kwnames[] = {
17581 (char *) "self", NULL
17582 };
17583
17584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_IsPopup",kwnames,&obj0)) goto fail;
17585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent,
17586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17587 {
17588 PyThreadState* __tstate = wxPyBeginAllowThreads();
17589 result = (bool)((wxMenuEvent const *)arg1)->IsPopup();
17590
17591 wxPyEndAllowThreads(__tstate);
17592 if (PyErr_Occurred()) SWIG_fail;
17593 }
17594 {
17595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17596 }
17597 return resultobj;
17598 fail:
17599 return NULL;
17600}
17601
17602
c32bde28 17603static PyObject *_wrap_MenuEvent_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17604 PyObject *resultobj;
17605 wxMenuEvent *arg1 = (wxMenuEvent *) 0 ;
17606 wxMenu *result;
17607 PyObject * obj0 = 0 ;
17608 char *kwnames[] = {
17609 (char *) "self", NULL
17610 };
17611
17612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenu",kwnames,&obj0)) goto fail;
17613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent,
17614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17615 {
17616 PyThreadState* __tstate = wxPyBeginAllowThreads();
17617 result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu();
17618
17619 wxPyEndAllowThreads(__tstate);
17620 if (PyErr_Occurred()) SWIG_fail;
17621 }
17622 {
412d302d 17623 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
17624 }
17625 return resultobj;
17626 fail:
17627 return NULL;
17628}
17629
17630
c32bde28 17631static PyObject * MenuEvent_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
17632 PyObject *obj;
17633 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17634 SWIG_TypeClientData(SWIGTYPE_p_wxMenuEvent, obj);
17635 Py_INCREF(obj);
17636 return Py_BuildValue((char *)"");
17637}
c32bde28 17638static PyObject *_wrap_new_CloseEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17639 PyObject *resultobj;
17640 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
17641 int arg2 = (int) 0 ;
17642 wxCloseEvent *result;
17643 PyObject * obj0 = 0 ;
17644 PyObject * obj1 = 0 ;
17645 char *kwnames[] = {
17646 (char *) "type",(char *) "winid", NULL
17647 };
17648
17649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CloseEvent",kwnames,&obj0,&obj1)) goto fail;
17650 if (obj0) {
c32bde28 17651 arg1 = (wxEventType)SWIG_As_int(obj0);
d55e5bfc
RD
17652 if (PyErr_Occurred()) SWIG_fail;
17653 }
17654 if (obj1) {
c32bde28 17655 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
17656 if (PyErr_Occurred()) SWIG_fail;
17657 }
17658 {
17659 PyThreadState* __tstate = wxPyBeginAllowThreads();
17660 result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2);
17661
17662 wxPyEndAllowThreads(__tstate);
17663 if (PyErr_Occurred()) SWIG_fail;
17664 }
17665 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCloseEvent, 1);
17666 return resultobj;
17667 fail:
17668 return NULL;
17669}
17670
17671
c32bde28 17672static PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17673 PyObject *resultobj;
17674 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
17675 bool arg2 ;
17676 PyObject * obj0 = 0 ;
17677 PyObject * obj1 = 0 ;
17678 char *kwnames[] = {
17679 (char *) "self",(char *) "logOff", NULL
17680 };
17681
17682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) goto fail;
17683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent,
17684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 17685 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
17686 if (PyErr_Occurred()) SWIG_fail;
17687 {
17688 PyThreadState* __tstate = wxPyBeginAllowThreads();
17689 (arg1)->SetLoggingOff(arg2);
17690
17691 wxPyEndAllowThreads(__tstate);
17692 if (PyErr_Occurred()) SWIG_fail;
17693 }
17694 Py_INCREF(Py_None); resultobj = Py_None;
17695 return resultobj;
17696 fail:
17697 return NULL;
17698}
17699
17700
c32bde28 17701static PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17702 PyObject *resultobj;
17703 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
17704 bool result;
17705 PyObject * obj0 = 0 ;
17706 char *kwnames[] = {
17707 (char *) "self", NULL
17708 };
17709
17710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetLoggingOff",kwnames,&obj0)) goto fail;
17711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent,
17712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17713 {
17714 PyThreadState* __tstate = wxPyBeginAllowThreads();
17715 result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff();
17716
17717 wxPyEndAllowThreads(__tstate);
17718 if (PyErr_Occurred()) SWIG_fail;
17719 }
17720 {
17721 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17722 }
17723 return resultobj;
17724 fail:
17725 return NULL;
17726}
17727
17728
c32bde28 17729static PyObject *_wrap_CloseEvent_Veto(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17730 PyObject *resultobj;
17731 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
17732 bool arg2 = (bool) True ;
17733 PyObject * obj0 = 0 ;
17734 PyObject * obj1 = 0 ;
17735 char *kwnames[] = {
17736 (char *) "self",(char *) "veto", NULL
17737 };
17738
17739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) goto fail;
17740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent,
17741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17742 if (obj1) {
c32bde28 17743 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
17744 if (PyErr_Occurred()) SWIG_fail;
17745 }
17746 {
17747 PyThreadState* __tstate = wxPyBeginAllowThreads();
17748 (arg1)->Veto(arg2);
17749
17750 wxPyEndAllowThreads(__tstate);
17751 if (PyErr_Occurred()) SWIG_fail;
17752 }
17753 Py_INCREF(Py_None); resultobj = Py_None;
17754 return resultobj;
17755 fail:
17756 return NULL;
17757}
17758
17759
c32bde28 17760static PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17761 PyObject *resultobj;
17762 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
17763 bool arg2 ;
17764 PyObject * obj0 = 0 ;
17765 PyObject * obj1 = 0 ;
17766 char *kwnames[] = {
17767 (char *) "self",(char *) "canVeto", NULL
17768 };
17769
17770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) goto fail;
17771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent,
17772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 17773 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
17774 if (PyErr_Occurred()) SWIG_fail;
17775 {
17776 PyThreadState* __tstate = wxPyBeginAllowThreads();
17777 (arg1)->SetCanVeto(arg2);
17778
17779 wxPyEndAllowThreads(__tstate);
17780 if (PyErr_Occurred()) SWIG_fail;
17781 }
17782 Py_INCREF(Py_None); resultobj = Py_None;
17783 return resultobj;
17784 fail:
17785 return NULL;
17786}
17787
17788
c32bde28 17789static PyObject *_wrap_CloseEvent_CanVeto(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17790 PyObject *resultobj;
17791 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
17792 bool result;
17793 PyObject * obj0 = 0 ;
17794 char *kwnames[] = {
17795 (char *) "self", NULL
17796 };
17797
17798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_CanVeto",kwnames,&obj0)) goto fail;
17799 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent,
17800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17801 {
17802 PyThreadState* __tstate = wxPyBeginAllowThreads();
17803 result = (bool)((wxCloseEvent const *)arg1)->CanVeto();
17804
17805 wxPyEndAllowThreads(__tstate);
17806 if (PyErr_Occurred()) SWIG_fail;
17807 }
17808 {
17809 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17810 }
17811 return resultobj;
17812 fail:
17813 return NULL;
17814}
17815
17816
c32bde28 17817static PyObject *_wrap_CloseEvent_GetVeto(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17818 PyObject *resultobj;
17819 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
17820 bool result;
17821 PyObject * obj0 = 0 ;
17822 char *kwnames[] = {
17823 (char *) "self", NULL
17824 };
17825
17826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetVeto",kwnames,&obj0)) goto fail;
17827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent,
17828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17829 {
17830 PyThreadState* __tstate = wxPyBeginAllowThreads();
17831 result = (bool)((wxCloseEvent const *)arg1)->GetVeto();
17832
17833 wxPyEndAllowThreads(__tstate);
17834 if (PyErr_Occurred()) SWIG_fail;
17835 }
17836 {
17837 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17838 }
17839 return resultobj;
17840 fail:
17841 return NULL;
17842}
17843
17844
c32bde28 17845static PyObject * CloseEvent_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
17846 PyObject *obj;
17847 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17848 SWIG_TypeClientData(SWIGTYPE_p_wxCloseEvent, obj);
17849 Py_INCREF(obj);
17850 return Py_BuildValue((char *)"");
17851}
c32bde28 17852static PyObject *_wrap_new_ShowEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17853 PyObject *resultobj;
17854 int arg1 = (int) 0 ;
17855 bool arg2 = (bool) False ;
17856 wxShowEvent *result;
17857 PyObject * obj0 = 0 ;
17858 PyObject * obj1 = 0 ;
17859 char *kwnames[] = {
17860 (char *) "winid",(char *) "show", NULL
17861 };
17862
17863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ShowEvent",kwnames,&obj0,&obj1)) goto fail;
17864 if (obj0) {
c32bde28 17865 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
17866 if (PyErr_Occurred()) SWIG_fail;
17867 }
17868 if (obj1) {
c32bde28 17869 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
17870 if (PyErr_Occurred()) SWIG_fail;
17871 }
17872 {
17873 PyThreadState* __tstate = wxPyBeginAllowThreads();
17874 result = (wxShowEvent *)new wxShowEvent(arg1,arg2);
17875
17876 wxPyEndAllowThreads(__tstate);
17877 if (PyErr_Occurred()) SWIG_fail;
17878 }
17879 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxShowEvent, 1);
17880 return resultobj;
17881 fail:
17882 return NULL;
17883}
17884
17885
c32bde28 17886static PyObject *_wrap_ShowEvent_SetShow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17887 PyObject *resultobj;
17888 wxShowEvent *arg1 = (wxShowEvent *) 0 ;
17889 bool arg2 ;
17890 PyObject * obj0 = 0 ;
17891 PyObject * obj1 = 0 ;
17892 char *kwnames[] = {
17893 (char *) "self",(char *) "show", NULL
17894 };
17895
17896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) goto fail;
17897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent,
17898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 17899 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
17900 if (PyErr_Occurred()) SWIG_fail;
17901 {
17902 PyThreadState* __tstate = wxPyBeginAllowThreads();
17903 (arg1)->SetShow(arg2);
17904
17905 wxPyEndAllowThreads(__tstate);
17906 if (PyErr_Occurred()) SWIG_fail;
17907 }
17908 Py_INCREF(Py_None); resultobj = Py_None;
17909 return resultobj;
17910 fail:
17911 return NULL;
17912}
17913
17914
c32bde28 17915static PyObject *_wrap_ShowEvent_GetShow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17916 PyObject *resultobj;
17917 wxShowEvent *arg1 = (wxShowEvent *) 0 ;
17918 bool result;
17919 PyObject * obj0 = 0 ;
17920 char *kwnames[] = {
17921 (char *) "self", NULL
17922 };
17923
17924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShowEvent_GetShow",kwnames,&obj0)) goto fail;
17925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent,
17926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17927 {
17928 PyThreadState* __tstate = wxPyBeginAllowThreads();
17929 result = (bool)((wxShowEvent const *)arg1)->GetShow();
17930
17931 wxPyEndAllowThreads(__tstate);
17932 if (PyErr_Occurred()) SWIG_fail;
17933 }
17934 {
17935 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17936 }
17937 return resultobj;
17938 fail:
17939 return NULL;
17940}
17941
17942
c32bde28 17943static PyObject * ShowEvent_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
17944 PyObject *obj;
17945 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17946 SWIG_TypeClientData(SWIGTYPE_p_wxShowEvent, obj);
17947 Py_INCREF(obj);
17948 return Py_BuildValue((char *)"");
17949}
c32bde28 17950static PyObject *_wrap_new_IconizeEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17951 PyObject *resultobj;
17952 int arg1 = (int) 0 ;
17953 bool arg2 = (bool) True ;
17954 wxIconizeEvent *result;
17955 PyObject * obj0 = 0 ;
17956 PyObject * obj1 = 0 ;
17957 char *kwnames[] = {
17958 (char *) "id",(char *) "iconized", NULL
17959 };
17960
17961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconizeEvent",kwnames,&obj0,&obj1)) goto fail;
17962 if (obj0) {
c32bde28 17963 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
17964 if (PyErr_Occurred()) SWIG_fail;
17965 }
17966 if (obj1) {
c32bde28 17967 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
17968 if (PyErr_Occurred()) SWIG_fail;
17969 }
17970 {
17971 PyThreadState* __tstate = wxPyBeginAllowThreads();
17972 result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2);
17973
17974 wxPyEndAllowThreads(__tstate);
17975 if (PyErr_Occurred()) SWIG_fail;
17976 }
17977 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconizeEvent, 1);
17978 return resultobj;
17979 fail:
17980 return NULL;
17981}
17982
17983
c32bde28 17984static PyObject *_wrap_IconizeEvent_Iconized(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
17985 PyObject *resultobj;
17986 wxIconizeEvent *arg1 = (wxIconizeEvent *) 0 ;
17987 bool result;
17988 PyObject * obj0 = 0 ;
17989 char *kwnames[] = {
17990 (char *) "self", NULL
17991 };
17992
17993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconizeEvent_Iconized",kwnames,&obj0)) goto fail;
17994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconizeEvent,
17995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17996 {
17997 PyThreadState* __tstate = wxPyBeginAllowThreads();
17998 result = (bool)(arg1)->Iconized();
17999
18000 wxPyEndAllowThreads(__tstate);
18001 if (PyErr_Occurred()) SWIG_fail;
18002 }
18003 {
18004 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18005 }
18006 return resultobj;
18007 fail:
18008 return NULL;
18009}
18010
18011
c32bde28 18012static PyObject * IconizeEvent_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
18013 PyObject *obj;
18014 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18015 SWIG_TypeClientData(SWIGTYPE_p_wxIconizeEvent, obj);
18016 Py_INCREF(obj);
18017 return Py_BuildValue((char *)"");
18018}
c32bde28 18019static PyObject *_wrap_new_MaximizeEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18020 PyObject *resultobj;
18021 int arg1 = (int) 0 ;
18022 wxMaximizeEvent *result;
18023 PyObject * obj0 = 0 ;
18024 char *kwnames[] = {
18025 (char *) "id", NULL
18026 };
18027
18028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MaximizeEvent",kwnames,&obj0)) goto fail;
18029 if (obj0) {
c32bde28 18030 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
18031 if (PyErr_Occurred()) SWIG_fail;
18032 }
18033 {
18034 PyThreadState* __tstate = wxPyBeginAllowThreads();
18035 result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1);
18036
18037 wxPyEndAllowThreads(__tstate);
18038 if (PyErr_Occurred()) SWIG_fail;
18039 }
18040 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMaximizeEvent, 1);
18041 return resultobj;
18042 fail:
18043 return NULL;
18044}
18045
18046
c32bde28 18047static PyObject * MaximizeEvent_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
18048 PyObject *obj;
18049 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18050 SWIG_TypeClientData(SWIGTYPE_p_wxMaximizeEvent, obj);
18051 Py_INCREF(obj);
18052 return Py_BuildValue((char *)"");
18053}
c32bde28 18054static PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18055 PyObject *resultobj;
18056 wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ;
18057 wxPoint result;
18058 PyObject * obj0 = 0 ;
18059 char *kwnames[] = {
18060 (char *) "self", NULL
18061 };
18062
18063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetPosition",kwnames,&obj0)) goto fail;
18064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent,
18065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18066 {
18067 PyThreadState* __tstate = wxPyBeginAllowThreads();
18068 result = (arg1)->GetPosition();
18069
18070 wxPyEndAllowThreads(__tstate);
18071 if (PyErr_Occurred()) SWIG_fail;
18072 }
18073 {
18074 wxPoint * resultptr;
18075 resultptr = new wxPoint((wxPoint &) result);
18076 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
18077 }
18078 return resultobj;
18079 fail:
18080 return NULL;
18081}
18082
18083
c32bde28 18084static PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18085 PyObject *resultobj;
18086 wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ;
18087 int result;
18088 PyObject * obj0 = 0 ;
18089 char *kwnames[] = {
18090 (char *) "self", NULL
18091 };
18092
18093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetNumberOfFiles",kwnames,&obj0)) goto fail;
18094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent,
18095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18096 {
18097 PyThreadState* __tstate = wxPyBeginAllowThreads();
18098 result = (int)(arg1)->GetNumberOfFiles();
18099
18100 wxPyEndAllowThreads(__tstate);
18101 if (PyErr_Occurred()) SWIG_fail;
18102 }
c32bde28 18103 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
18104 return resultobj;
18105 fail:
18106 return NULL;
18107}
18108
18109
c32bde28 18110static PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18111 PyObject *resultobj;
18112 wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ;
18113 PyObject *result;
18114 PyObject * obj0 = 0 ;
18115 char *kwnames[] = {
18116 (char *) "self", NULL
18117 };
18118
18119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetFiles",kwnames,&obj0)) goto fail;
18120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent,
18121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18122 {
18123 PyThreadState* __tstate = wxPyBeginAllowThreads();
18124 result = (PyObject *)wxDropFilesEvent_GetFiles(arg1);
18125
18126 wxPyEndAllowThreads(__tstate);
18127 if (PyErr_Occurred()) SWIG_fail;
18128 }
18129 resultobj = result;
18130 return resultobj;
18131 fail:
18132 return NULL;
18133}
18134
18135
c32bde28 18136static PyObject * DropFilesEvent_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
18137 PyObject *obj;
18138 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18139 SWIG_TypeClientData(SWIGTYPE_p_wxDropFilesEvent, obj);
18140 Py_INCREF(obj);
18141 return Py_BuildValue((char *)"");
18142}
c32bde28 18143static PyObject *_wrap_new_UpdateUIEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18144 PyObject *resultobj;
18145 int arg1 = (int) 0 ;
18146 wxUpdateUIEvent *result;
18147 PyObject * obj0 = 0 ;
18148 char *kwnames[] = {
18149 (char *) "commandId", NULL
18150 };
18151
18152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_UpdateUIEvent",kwnames,&obj0)) goto fail;
18153 if (obj0) {
c32bde28 18154 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
18155 if (PyErr_Occurred()) SWIG_fail;
18156 }
18157 {
18158 PyThreadState* __tstate = wxPyBeginAllowThreads();
18159 result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1);
18160
18161 wxPyEndAllowThreads(__tstate);
18162 if (PyErr_Occurred()) SWIG_fail;
18163 }
18164 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxUpdateUIEvent, 1);
18165 return resultobj;
18166 fail:
18167 return NULL;
18168}
18169
18170
c32bde28 18171static PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18172 PyObject *resultobj;
18173 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
18174 bool result;
18175 PyObject * obj0 = 0 ;
18176 char *kwnames[] = {
18177 (char *) "self", NULL
18178 };
18179
18180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetChecked",kwnames,&obj0)) goto fail;
18181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
18182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18183 {
18184 PyThreadState* __tstate = wxPyBeginAllowThreads();
18185 result = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked();
18186
18187 wxPyEndAllowThreads(__tstate);
18188 if (PyErr_Occurred()) SWIG_fail;
18189 }
18190 {
18191 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18192 }
18193 return resultobj;
18194 fail:
18195 return NULL;
18196}
18197
18198
c32bde28 18199static PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18200 PyObject *resultobj;
18201 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
18202 bool result;
18203 PyObject * obj0 = 0 ;
18204 char *kwnames[] = {
18205 (char *) "self", NULL
18206 };
18207
18208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetEnabled",kwnames,&obj0)) goto fail;
18209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
18210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18211 {
18212 PyThreadState* __tstate = wxPyBeginAllowThreads();
18213 result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled();
18214
18215 wxPyEndAllowThreads(__tstate);
18216 if (PyErr_Occurred()) SWIG_fail;
18217 }
18218 {
18219 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18220 }
18221 return resultobj;
18222 fail:
18223 return NULL;
18224}
18225
18226
c32bde28 18227static PyObject *_wrap_UpdateUIEvent_GetText(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18228 PyObject *resultobj;
18229 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
18230 wxString result;
18231 PyObject * obj0 = 0 ;
18232 char *kwnames[] = {
18233 (char *) "self", NULL
18234 };
18235
18236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetText",kwnames,&obj0)) goto fail;
18237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
18238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18239 {
18240 PyThreadState* __tstate = wxPyBeginAllowThreads();
18241 result = ((wxUpdateUIEvent const *)arg1)->GetText();
18242
18243 wxPyEndAllowThreads(__tstate);
18244 if (PyErr_Occurred()) SWIG_fail;
18245 }
18246 {
18247#if wxUSE_UNICODE
18248 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18249#else
18250 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18251#endif
18252 }
18253 return resultobj;
18254 fail:
18255 return NULL;
18256}
18257
18258
c32bde28 18259static PyObject *_wrap_UpdateUIEvent_GetSetText(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18260 PyObject *resultobj;
18261 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
18262 bool result;
18263 PyObject * obj0 = 0 ;
18264 char *kwnames[] = {
18265 (char *) "self", NULL
18266 };
18267
18268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetText",kwnames,&obj0)) goto fail;
18269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
18270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18271 {
18272 PyThreadState* __tstate = wxPyBeginAllowThreads();
18273 result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetText();
18274
18275 wxPyEndAllowThreads(__tstate);
18276 if (PyErr_Occurred()) SWIG_fail;
18277 }
18278 {
18279 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18280 }
18281 return resultobj;
18282 fail:
18283 return NULL;
18284}
18285
18286
c32bde28 18287static PyObject *_wrap_UpdateUIEvent_GetSetChecked(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18288 PyObject *resultobj;
18289 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
18290 bool result;
18291 PyObject * obj0 = 0 ;
18292 char *kwnames[] = {
18293 (char *) "self", NULL
18294 };
18295
18296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetChecked",kwnames,&obj0)) goto fail;
18297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
18298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18299 {
18300 PyThreadState* __tstate = wxPyBeginAllowThreads();
18301 result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked();
18302
18303 wxPyEndAllowThreads(__tstate);
18304 if (PyErr_Occurred()) SWIG_fail;
18305 }
18306 {
18307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18308 }
18309 return resultobj;
18310 fail:
18311 return NULL;
18312}
18313
18314
c32bde28 18315static PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18316 PyObject *resultobj;
18317 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
18318 bool result;
18319 PyObject * obj0 = 0 ;
18320 char *kwnames[] = {
18321 (char *) "self", NULL
18322 };
18323
18324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetEnabled",kwnames,&obj0)) goto fail;
18325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
18326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18327 {
18328 PyThreadState* __tstate = wxPyBeginAllowThreads();
18329 result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled();
18330
18331 wxPyEndAllowThreads(__tstate);
18332 if (PyErr_Occurred()) SWIG_fail;
18333 }
18334 {
18335 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18336 }
18337 return resultobj;
18338 fail:
18339 return NULL;
18340}
18341
18342
c32bde28 18343static PyObject *_wrap_UpdateUIEvent_Check(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18344 PyObject *resultobj;
18345 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
18346 bool arg2 ;
18347 PyObject * obj0 = 0 ;
18348 PyObject * obj1 = 0 ;
18349 char *kwnames[] = {
18350 (char *) "self",(char *) "check", NULL
18351 };
18352
18353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) goto fail;
18354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
18355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 18356 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
18357 if (PyErr_Occurred()) SWIG_fail;
18358 {
18359 PyThreadState* __tstate = wxPyBeginAllowThreads();
18360 (arg1)->Check(arg2);
18361
18362 wxPyEndAllowThreads(__tstate);
18363 if (PyErr_Occurred()) SWIG_fail;
18364 }
18365 Py_INCREF(Py_None); resultobj = Py_None;
18366 return resultobj;
18367 fail:
18368 return NULL;
18369}
18370
18371
c32bde28 18372static PyObject *_wrap_UpdateUIEvent_Enable(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18373 PyObject *resultobj;
18374 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
18375 bool arg2 ;
18376 PyObject * obj0 = 0 ;
18377 PyObject * obj1 = 0 ;
18378 char *kwnames[] = {
18379 (char *) "self",(char *) "enable", NULL
18380 };
18381
18382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) goto fail;
18383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
18384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 18385 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
18386 if (PyErr_Occurred()) SWIG_fail;
18387 {
18388 PyThreadState* __tstate = wxPyBeginAllowThreads();
18389 (arg1)->Enable(arg2);
18390
18391 wxPyEndAllowThreads(__tstate);
18392 if (PyErr_Occurred()) SWIG_fail;
18393 }
18394 Py_INCREF(Py_None); resultobj = Py_None;
18395 return resultobj;
18396 fail:
18397 return NULL;
18398}
18399
18400
c32bde28 18401static PyObject *_wrap_UpdateUIEvent_SetText(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18402 PyObject *resultobj;
18403 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
18404 wxString *arg2 = 0 ;
18405 bool temp2 = False ;
18406 PyObject * obj0 = 0 ;
18407 PyObject * obj1 = 0 ;
18408 char *kwnames[] = {
18409 (char *) "self",(char *) "text", NULL
18410 };
18411
18412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) goto fail;
18413 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
18414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18415 {
18416 arg2 = wxString_in_helper(obj1);
18417 if (arg2 == NULL) SWIG_fail;
18418 temp2 = True;
18419 }
18420 {
18421 PyThreadState* __tstate = wxPyBeginAllowThreads();
18422 (arg1)->SetText((wxString const &)*arg2);
18423
18424 wxPyEndAllowThreads(__tstate);
18425 if (PyErr_Occurred()) SWIG_fail;
18426 }
18427 Py_INCREF(Py_None); resultobj = Py_None;
18428 {
18429 if (temp2)
18430 delete arg2;
18431 }
18432 return resultobj;
18433 fail:
18434 {
18435 if (temp2)
18436 delete arg2;
18437 }
18438 return NULL;
18439}
18440
18441
c32bde28 18442static PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18443 PyObject *resultobj;
18444 long arg1 ;
18445 PyObject * obj0 = 0 ;
18446 char *kwnames[] = {
18447 (char *) "updateInterval", NULL
18448 };
18449
18450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetUpdateInterval",kwnames,&obj0)) goto fail;
c32bde28 18451 arg1 = (long)SWIG_As_long(obj0);
d55e5bfc
RD
18452 if (PyErr_Occurred()) SWIG_fail;
18453 {
18454 PyThreadState* __tstate = wxPyBeginAllowThreads();
18455 wxUpdateUIEvent::SetUpdateInterval(arg1);
18456
18457 wxPyEndAllowThreads(__tstate);
18458 if (PyErr_Occurred()) SWIG_fail;
18459 }
18460 Py_INCREF(Py_None); resultobj = Py_None;
18461 return resultobj;
18462 fail:
18463 return NULL;
18464}
18465
18466
c32bde28 18467static PyObject *_wrap_UpdateUIEvent_GetUpdateInterval(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18468 PyObject *resultobj;
18469 long result;
18470 char *kwnames[] = {
18471 NULL
18472 };
18473
18474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetUpdateInterval",kwnames)) goto fail;
18475 {
18476 PyThreadState* __tstate = wxPyBeginAllowThreads();
18477 result = (long)wxUpdateUIEvent::GetUpdateInterval();
18478
18479 wxPyEndAllowThreads(__tstate);
18480 if (PyErr_Occurred()) SWIG_fail;
18481 }
c32bde28 18482 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
18483 return resultobj;
18484 fail:
18485 return NULL;
18486}
18487
18488
c32bde28 18489static PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18490 PyObject *resultobj;
18491 wxWindow *arg1 = (wxWindow *) 0 ;
18492 bool result;
18493 PyObject * obj0 = 0 ;
18494 char *kwnames[] = {
18495 (char *) "win", NULL
18496 };
18497
18498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) goto fail;
18499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
18500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18501 {
18502 PyThreadState* __tstate = wxPyBeginAllowThreads();
18503 result = (bool)wxUpdateUIEvent::CanUpdate(arg1);
18504
18505 wxPyEndAllowThreads(__tstate);
18506 if (PyErr_Occurred()) SWIG_fail;
18507 }
18508 {
18509 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18510 }
18511 return resultobj;
18512 fail:
18513 return NULL;
18514}
18515
18516
c32bde28 18517static PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18518 PyObject *resultobj;
18519 char *kwnames[] = {
18520 NULL
18521 };
18522
18523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_ResetUpdateTime",kwnames)) goto fail;
18524 {
18525 PyThreadState* __tstate = wxPyBeginAllowThreads();
18526 wxUpdateUIEvent::ResetUpdateTime();
18527
18528 wxPyEndAllowThreads(__tstate);
18529 if (PyErr_Occurred()) SWIG_fail;
18530 }
18531 Py_INCREF(Py_None); resultobj = Py_None;
18532 return resultobj;
18533 fail:
18534 return NULL;
18535}
18536
18537
c32bde28 18538static PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18539 PyObject *resultobj;
18540 int arg1 ;
18541 PyObject * obj0 = 0 ;
18542 char *kwnames[] = {
18543 (char *) "mode", NULL
18544 };
18545
18546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetMode",kwnames,&obj0)) goto fail;
c32bde28 18547 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
18548 if (PyErr_Occurred()) SWIG_fail;
18549 {
18550 PyThreadState* __tstate = wxPyBeginAllowThreads();
18551 wxUpdateUIEvent::SetMode((wxUpdateUIMode )arg1);
18552
18553 wxPyEndAllowThreads(__tstate);
18554 if (PyErr_Occurred()) SWIG_fail;
18555 }
18556 Py_INCREF(Py_None); resultobj = Py_None;
18557 return resultobj;
18558 fail:
18559 return NULL;
18560}
18561
18562
c32bde28 18563static PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18564 PyObject *resultobj;
18565 int result;
18566 char *kwnames[] = {
18567 NULL
18568 };
18569
18570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetMode",kwnames)) goto fail;
18571 {
18572 PyThreadState* __tstate = wxPyBeginAllowThreads();
18573 result = (int)wxUpdateUIEvent::GetMode();
18574
18575 wxPyEndAllowThreads(__tstate);
18576 if (PyErr_Occurred()) SWIG_fail;
18577 }
c32bde28 18578 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
18579 return resultobj;
18580 fail:
18581 return NULL;
18582}
18583
18584
c32bde28 18585static PyObject * UpdateUIEvent_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
18586 PyObject *obj;
18587 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18588 SWIG_TypeClientData(SWIGTYPE_p_wxUpdateUIEvent, obj);
18589 Py_INCREF(obj);
18590 return Py_BuildValue((char *)"");
18591}
c32bde28 18592static PyObject *_wrap_new_SysColourChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18593 PyObject *resultobj;
18594 wxSysColourChangedEvent *result;
18595 char *kwnames[] = {
18596 NULL
18597 };
18598
18599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SysColourChangedEvent",kwnames)) goto fail;
18600 {
18601 PyThreadState* __tstate = wxPyBeginAllowThreads();
18602 result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent();
18603
18604 wxPyEndAllowThreads(__tstate);
18605 if (PyErr_Occurred()) SWIG_fail;
18606 }
18607 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSysColourChangedEvent, 1);
18608 return resultobj;
18609 fail:
18610 return NULL;
18611}
18612
18613
c32bde28 18614static PyObject * SysColourChangedEvent_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
18615 PyObject *obj;
18616 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18617 SWIG_TypeClientData(SWIGTYPE_p_wxSysColourChangedEvent, obj);
18618 Py_INCREF(obj);
18619 return Py_BuildValue((char *)"");
18620}
c32bde28 18621static PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18622 PyObject *resultobj;
18623 int arg1 = (int) 0 ;
18624 wxWindow *arg2 = (wxWindow *) NULL ;
18625 wxMouseCaptureChangedEvent *result;
18626 PyObject * obj0 = 0 ;
18627 PyObject * obj1 = 0 ;
18628 char *kwnames[] = {
18629 (char *) "winid",(char *) "gainedCapture", NULL
18630 };
18631
18632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MouseCaptureChangedEvent",kwnames,&obj0,&obj1)) goto fail;
18633 if (obj0) {
c32bde28 18634 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
18635 if (PyErr_Occurred()) SWIG_fail;
18636 }
18637 if (obj1) {
18638 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
18639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18640 }
18641 {
18642 PyThreadState* __tstate = wxPyBeginAllowThreads();
18643 result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2);
18644
18645 wxPyEndAllowThreads(__tstate);
18646 if (PyErr_Occurred()) SWIG_fail;
18647 }
18648 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseCaptureChangedEvent, 1);
18649 return resultobj;
18650 fail:
18651 return NULL;
18652}
18653
18654
c32bde28 18655static PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18656 PyObject *resultobj;
18657 wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ;
18658 wxWindow *result;
18659 PyObject * obj0 = 0 ;
18660 char *kwnames[] = {
18661 (char *) "self", NULL
18662 };
18663
18664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseCaptureChangedEvent_GetCapturedWindow",kwnames,&obj0)) goto fail;
18665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseCaptureChangedEvent,
18666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18667 {
18668 PyThreadState* __tstate = wxPyBeginAllowThreads();
18669 result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow();
18670
18671 wxPyEndAllowThreads(__tstate);
18672 if (PyErr_Occurred()) SWIG_fail;
18673 }
18674 {
412d302d 18675 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
18676 }
18677 return resultobj;
18678 fail:
18679 return NULL;
18680}
18681
18682
c32bde28 18683static PyObject * MouseCaptureChangedEvent_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
18684 PyObject *obj;
18685 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18686 SWIG_TypeClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, obj);
18687 Py_INCREF(obj);
18688 return Py_BuildValue((char *)"");
18689}
c32bde28 18690static PyObject *_wrap_new_DisplayChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18691 PyObject *resultobj;
18692 wxDisplayChangedEvent *result;
18693 char *kwnames[] = {
18694 NULL
18695 };
18696
18697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DisplayChangedEvent",kwnames)) goto fail;
18698 {
18699 PyThreadState* __tstate = wxPyBeginAllowThreads();
18700 result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent();
18701
18702 wxPyEndAllowThreads(__tstate);
18703 if (PyErr_Occurred()) SWIG_fail;
18704 }
18705 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplayChangedEvent, 1);
18706 return resultobj;
18707 fail:
18708 return NULL;
18709}
18710
18711
c32bde28 18712static PyObject * DisplayChangedEvent_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
18713 PyObject *obj;
18714 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18715 SWIG_TypeClientData(SWIGTYPE_p_wxDisplayChangedEvent, obj);
18716 Py_INCREF(obj);
18717 return Py_BuildValue((char *)"");
18718}
c32bde28 18719static PyObject *_wrap_new_PaletteChangedEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18720 PyObject *resultobj;
18721 int arg1 = (int) 0 ;
18722 wxPaletteChangedEvent *result;
18723 PyObject * obj0 = 0 ;
18724 char *kwnames[] = {
18725 (char *) "id", NULL
18726 };
18727
18728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaletteChangedEvent",kwnames,&obj0)) goto fail;
18729 if (obj0) {
c32bde28 18730 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
18731 if (PyErr_Occurred()) SWIG_fail;
18732 }
18733 {
18734 PyThreadState* __tstate = wxPyBeginAllowThreads();
18735 result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1);
18736
18737 wxPyEndAllowThreads(__tstate);
18738 if (PyErr_Occurred()) SWIG_fail;
18739 }
18740 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaletteChangedEvent, 1);
18741 return resultobj;
18742 fail:
18743 return NULL;
18744}
18745
18746
c32bde28 18747static PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18748 PyObject *resultobj;
18749 wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ;
18750 wxWindow *arg2 = (wxWindow *) 0 ;
18751 PyObject * obj0 = 0 ;
18752 PyObject * obj1 = 0 ;
18753 char *kwnames[] = {
18754 (char *) "self",(char *) "win", NULL
18755 };
18756
18757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) goto fail;
18758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent,
18759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18760 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
18761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18762 {
18763 PyThreadState* __tstate = wxPyBeginAllowThreads();
18764 (arg1)->SetChangedWindow(arg2);
18765
18766 wxPyEndAllowThreads(__tstate);
18767 if (PyErr_Occurred()) SWIG_fail;
18768 }
18769 Py_INCREF(Py_None); resultobj = Py_None;
18770 return resultobj;
18771 fail:
18772 return NULL;
18773}
18774
18775
c32bde28 18776static PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18777 PyObject *resultobj;
18778 wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ;
18779 wxWindow *result;
18780 PyObject * obj0 = 0 ;
18781 char *kwnames[] = {
18782 (char *) "self", NULL
18783 };
18784
18785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PaletteChangedEvent_GetChangedWindow",kwnames,&obj0)) goto fail;
18786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent,
18787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18788 {
18789 PyThreadState* __tstate = wxPyBeginAllowThreads();
18790 result = (wxWindow *)(arg1)->GetChangedWindow();
18791
18792 wxPyEndAllowThreads(__tstate);
18793 if (PyErr_Occurred()) SWIG_fail;
18794 }
18795 {
412d302d 18796 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
18797 }
18798 return resultobj;
18799 fail:
18800 return NULL;
18801}
18802
18803
c32bde28 18804static PyObject * PaletteChangedEvent_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
18805 PyObject *obj;
18806 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18807 SWIG_TypeClientData(SWIGTYPE_p_wxPaletteChangedEvent, obj);
18808 Py_INCREF(obj);
18809 return Py_BuildValue((char *)"");
18810}
c32bde28 18811static PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18812 PyObject *resultobj;
18813 int arg1 = (int) 0 ;
18814 wxQueryNewPaletteEvent *result;
18815 PyObject * obj0 = 0 ;
18816 char *kwnames[] = {
18817 (char *) "winid", NULL
18818 };
18819
18820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryNewPaletteEvent",kwnames,&obj0)) goto fail;
18821 if (obj0) {
c32bde28 18822 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
18823 if (PyErr_Occurred()) SWIG_fail;
18824 }
18825 {
18826 PyThreadState* __tstate = wxPyBeginAllowThreads();
18827 result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1);
18828
18829 wxPyEndAllowThreads(__tstate);
18830 if (PyErr_Occurred()) SWIG_fail;
18831 }
18832 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxQueryNewPaletteEvent, 1);
18833 return resultobj;
18834 fail:
18835 return NULL;
18836}
18837
18838
c32bde28 18839static PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18840 PyObject *resultobj;
18841 wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ;
18842 bool arg2 ;
18843 PyObject * obj0 = 0 ;
18844 PyObject * obj1 = 0 ;
18845 char *kwnames[] = {
18846 (char *) "self",(char *) "realized", NULL
18847 };
18848
18849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) goto fail;
18850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent,
18851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 18852 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
18853 if (PyErr_Occurred()) SWIG_fail;
18854 {
18855 PyThreadState* __tstate = wxPyBeginAllowThreads();
18856 (arg1)->SetPaletteRealized(arg2);
18857
18858 wxPyEndAllowThreads(__tstate);
18859 if (PyErr_Occurred()) SWIG_fail;
18860 }
18861 Py_INCREF(Py_None); resultobj = Py_None;
18862 return resultobj;
18863 fail:
18864 return NULL;
18865}
18866
18867
c32bde28 18868static PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18869 PyObject *resultobj;
18870 wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ;
18871 bool result;
18872 PyObject * obj0 = 0 ;
18873 char *kwnames[] = {
18874 (char *) "self", NULL
18875 };
18876
18877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryNewPaletteEvent_GetPaletteRealized",kwnames,&obj0)) goto fail;
18878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent,
18879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18880 {
18881 PyThreadState* __tstate = wxPyBeginAllowThreads();
18882 result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized();
18883
18884 wxPyEndAllowThreads(__tstate);
18885 if (PyErr_Occurred()) SWIG_fail;
18886 }
18887 {
18888 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18889 }
18890 return resultobj;
18891 fail:
18892 return NULL;
18893}
18894
18895
c32bde28 18896static PyObject * QueryNewPaletteEvent_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
18897 PyObject *obj;
18898 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18899 SWIG_TypeClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, obj);
18900 Py_INCREF(obj);
18901 return Py_BuildValue((char *)"");
18902}
c32bde28 18903static PyObject *_wrap_new_NavigationKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18904 PyObject *resultobj;
18905 wxNavigationKeyEvent *result;
18906 char *kwnames[] = {
18907 NULL
18908 };
18909
18910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NavigationKeyEvent",kwnames)) goto fail;
18911 {
18912 PyThreadState* __tstate = wxPyBeginAllowThreads();
18913 result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent();
18914
18915 wxPyEndAllowThreads(__tstate);
18916 if (PyErr_Occurred()) SWIG_fail;
18917 }
18918 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNavigationKeyEvent, 1);
18919 return resultobj;
18920 fail:
18921 return NULL;
18922}
18923
18924
c32bde28 18925static PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18926 PyObject *resultobj;
18927 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
18928 bool result;
18929 PyObject * obj0 = 0 ;
18930 char *kwnames[] = {
18931 (char *) "self", NULL
18932 };
18933
18934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetDirection",kwnames,&obj0)) goto fail;
18935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
18936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18937 {
18938 PyThreadState* __tstate = wxPyBeginAllowThreads();
18939 result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection();
18940
18941 wxPyEndAllowThreads(__tstate);
18942 if (PyErr_Occurred()) SWIG_fail;
18943 }
18944 {
18945 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18946 }
18947 return resultobj;
18948 fail:
18949 return NULL;
18950}
18951
18952
c32bde28 18953static PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18954 PyObject *resultobj;
18955 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
18956 bool arg2 ;
18957 PyObject * obj0 = 0 ;
18958 PyObject * obj1 = 0 ;
18959 char *kwnames[] = {
908b74cd 18960 (char *) "self",(char *) "forward", NULL
d55e5bfc
RD
18961 };
18962
18963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) goto fail;
18964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
18965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 18966 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
18967 if (PyErr_Occurred()) SWIG_fail;
18968 {
18969 PyThreadState* __tstate = wxPyBeginAllowThreads();
18970 (arg1)->SetDirection(arg2);
18971
18972 wxPyEndAllowThreads(__tstate);
18973 if (PyErr_Occurred()) SWIG_fail;
18974 }
18975 Py_INCREF(Py_None); resultobj = Py_None;
18976 return resultobj;
18977 fail:
18978 return NULL;
18979}
18980
18981
c32bde28 18982static PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
18983 PyObject *resultobj;
18984 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
18985 bool result;
18986 PyObject * obj0 = 0 ;
18987 char *kwnames[] = {
18988 (char *) "self", NULL
18989 };
18990
18991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsWindowChange",kwnames,&obj0)) goto fail;
18992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
18993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18994 {
18995 PyThreadState* __tstate = wxPyBeginAllowThreads();
18996 result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange();
18997
18998 wxPyEndAllowThreads(__tstate);
18999 if (PyErr_Occurred()) SWIG_fail;
19000 }
19001 {
19002 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19003 }
19004 return resultobj;
19005 fail:
19006 return NULL;
19007}
19008
19009
c32bde28 19010static PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19011 PyObject *resultobj;
19012 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
19013 bool arg2 ;
19014 PyObject * obj0 = 0 ;
19015 PyObject * obj1 = 0 ;
19016 char *kwnames[] = {
908b74cd 19017 (char *) "self",(char *) "ischange", NULL
d55e5bfc
RD
19018 };
19019
19020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) goto fail;
19021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
19022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 19023 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
19024 if (PyErr_Occurred()) SWIG_fail;
19025 {
19026 PyThreadState* __tstate = wxPyBeginAllowThreads();
19027 (arg1)->SetWindowChange(arg2);
19028
19029 wxPyEndAllowThreads(__tstate);
19030 if (PyErr_Occurred()) SWIG_fail;
19031 }
19032 Py_INCREF(Py_None); resultobj = Py_None;
19033 return resultobj;
19034 fail:
19035 return NULL;
19036}
19037
19038
c32bde28 19039static PyObject *_wrap_NavigationKeyEvent_SetFlags(PyObject *, PyObject *args, PyObject *kwargs) {
908b74cd
RD
19040 PyObject *resultobj;
19041 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
19042 long arg2 ;
19043 PyObject * obj0 = 0 ;
19044 PyObject * obj1 = 0 ;
19045 char *kwnames[] = {
19046 (char *) "self",(char *) "flags", NULL
19047 };
19048
19049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail;
19050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
19051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 19052 arg2 = (long)SWIG_As_long(obj1);
908b74cd
RD
19053 if (PyErr_Occurred()) SWIG_fail;
19054 {
19055 PyThreadState* __tstate = wxPyBeginAllowThreads();
19056 (arg1)->SetFlags(arg2);
19057
19058 wxPyEndAllowThreads(__tstate);
19059 if (PyErr_Occurred()) SWIG_fail;
19060 }
19061 Py_INCREF(Py_None); resultobj = Py_None;
19062 return resultobj;
19063 fail:
19064 return NULL;
19065}
19066
19067
c32bde28 19068static PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19069 PyObject *resultobj;
19070 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
19071 wxWindow *result;
19072 PyObject * obj0 = 0 ;
19073 char *kwnames[] = {
19074 (char *) "self", NULL
19075 };
19076
19077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetCurrentFocus",kwnames,&obj0)) goto fail;
19078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
19079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19080 {
19081 PyThreadState* __tstate = wxPyBeginAllowThreads();
19082 result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus();
19083
19084 wxPyEndAllowThreads(__tstate);
19085 if (PyErr_Occurred()) SWIG_fail;
19086 }
19087 {
412d302d 19088 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
19089 }
19090 return resultobj;
19091 fail:
19092 return NULL;
19093}
19094
19095
c32bde28 19096static PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19097 PyObject *resultobj;
19098 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
19099 wxWindow *arg2 = (wxWindow *) 0 ;
19100 PyObject * obj0 = 0 ;
19101 PyObject * obj1 = 0 ;
19102 char *kwnames[] = {
19103 (char *) "self",(char *) "win", NULL
19104 };
19105
19106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) goto fail;
19107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
19108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19109 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
19110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19111 {
19112 PyThreadState* __tstate = wxPyBeginAllowThreads();
19113 (arg1)->SetCurrentFocus(arg2);
19114
19115 wxPyEndAllowThreads(__tstate);
19116 if (PyErr_Occurred()) SWIG_fail;
19117 }
19118 Py_INCREF(Py_None); resultobj = Py_None;
19119 return resultobj;
19120 fail:
19121 return NULL;
19122}
19123
19124
c32bde28 19125static PyObject * NavigationKeyEvent_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
19126 PyObject *obj;
19127 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19128 SWIG_TypeClientData(SWIGTYPE_p_wxNavigationKeyEvent, obj);
19129 Py_INCREF(obj);
19130 return Py_BuildValue((char *)"");
19131}
c32bde28 19132static PyObject *_wrap_new_WindowCreateEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19133 PyObject *resultobj;
19134 wxWindow *arg1 = (wxWindow *) NULL ;
19135 wxWindowCreateEvent *result;
19136 PyObject * obj0 = 0 ;
19137 char *kwnames[] = {
19138 (char *) "win", NULL
19139 };
19140
19141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) goto fail;
19142 if (obj0) {
19143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
19144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19145 }
19146 {
19147 PyThreadState* __tstate = wxPyBeginAllowThreads();
19148 result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1);
19149
19150 wxPyEndAllowThreads(__tstate);
19151 if (PyErr_Occurred()) SWIG_fail;
19152 }
19153 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowCreateEvent, 1);
19154 return resultobj;
19155 fail:
19156 return NULL;
19157}
19158
19159
c32bde28 19160static PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19161 PyObject *resultobj;
19162 wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ;
19163 wxWindow *result;
19164 PyObject * obj0 = 0 ;
19165 char *kwnames[] = {
19166 (char *) "self", NULL
19167 };
19168
19169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowCreateEvent_GetWindow",kwnames,&obj0)) goto fail;
19170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowCreateEvent,
19171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19172 {
19173 PyThreadState* __tstate = wxPyBeginAllowThreads();
19174 result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow();
19175
19176 wxPyEndAllowThreads(__tstate);
19177 if (PyErr_Occurred()) SWIG_fail;
19178 }
19179 {
412d302d 19180 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
19181 }
19182 return resultobj;
19183 fail:
19184 return NULL;
19185}
19186
19187
c32bde28 19188static PyObject * WindowCreateEvent_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
19189 PyObject *obj;
19190 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19191 SWIG_TypeClientData(SWIGTYPE_p_wxWindowCreateEvent, obj);
19192 Py_INCREF(obj);
19193 return Py_BuildValue((char *)"");
19194}
c32bde28 19195static PyObject *_wrap_new_WindowDestroyEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19196 PyObject *resultobj;
19197 wxWindow *arg1 = (wxWindow *) NULL ;
19198 wxWindowDestroyEvent *result;
19199 PyObject * obj0 = 0 ;
19200 char *kwnames[] = {
19201 (char *) "win", NULL
19202 };
19203
19204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) goto fail;
19205 if (obj0) {
19206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
19207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19208 }
19209 {
19210 PyThreadState* __tstate = wxPyBeginAllowThreads();
19211 result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1);
19212
19213 wxPyEndAllowThreads(__tstate);
19214 if (PyErr_Occurred()) SWIG_fail;
19215 }
19216 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDestroyEvent, 1);
19217 return resultobj;
19218 fail:
19219 return NULL;
19220}
19221
19222
c32bde28 19223static PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19224 PyObject *resultobj;
19225 wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ;
19226 wxWindow *result;
19227 PyObject * obj0 = 0 ;
19228 char *kwnames[] = {
19229 (char *) "self", NULL
19230 };
19231
19232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowDestroyEvent_GetWindow",kwnames,&obj0)) goto fail;
19233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDestroyEvent,
19234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19235 {
19236 PyThreadState* __tstate = wxPyBeginAllowThreads();
19237 result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow();
19238
19239 wxPyEndAllowThreads(__tstate);
19240 if (PyErr_Occurred()) SWIG_fail;
19241 }
19242 {
412d302d 19243 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
19244 }
19245 return resultobj;
19246 fail:
19247 return NULL;
19248}
19249
19250
c32bde28 19251static PyObject * WindowDestroyEvent_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
19252 PyObject *obj;
19253 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19254 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDestroyEvent, obj);
19255 Py_INCREF(obj);
19256 return Py_BuildValue((char *)"");
19257}
c32bde28 19258static PyObject *_wrap_new_ContextMenuEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19259 PyObject *resultobj;
19260 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
19261 int arg2 = (int) 0 ;
19262 wxPoint const &arg3_defvalue = wxDefaultPosition ;
19263 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
19264 wxContextMenuEvent *result;
19265 wxPoint temp3 ;
19266 PyObject * obj0 = 0 ;
19267 PyObject * obj1 = 0 ;
19268 PyObject * obj2 = 0 ;
19269 char *kwnames[] = {
19270 (char *) "type",(char *) "winid",(char *) "pt", NULL
19271 };
19272
19273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ContextMenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
19274 if (obj0) {
c32bde28 19275 arg1 = (wxEventType)SWIG_As_int(obj0);
d55e5bfc
RD
19276 if (PyErr_Occurred()) SWIG_fail;
19277 }
19278 if (obj1) {
c32bde28 19279 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
19280 if (PyErr_Occurred()) SWIG_fail;
19281 }
19282 if (obj2) {
19283 {
19284 arg3 = &temp3;
19285 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19286 }
19287 }
19288 {
19289 PyThreadState* __tstate = wxPyBeginAllowThreads();
19290 result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3);
19291
19292 wxPyEndAllowThreads(__tstate);
19293 if (PyErr_Occurred()) SWIG_fail;
19294 }
19295 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextMenuEvent, 1);
19296 return resultobj;
19297 fail:
19298 return NULL;
19299}
19300
19301
c32bde28 19302static PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19303 PyObject *resultobj;
19304 wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ;
19305 wxPoint *result;
19306 PyObject * obj0 = 0 ;
19307 char *kwnames[] = {
19308 (char *) "self", NULL
19309 };
19310
19311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextMenuEvent_GetPosition",kwnames,&obj0)) goto fail;
19312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent,
19313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19314 {
19315 PyThreadState* __tstate = wxPyBeginAllowThreads();
19316 {
19317 wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition();
19318 result = (wxPoint *) &_result_ref;
19319 }
19320
19321 wxPyEndAllowThreads(__tstate);
19322 if (PyErr_Occurred()) SWIG_fail;
19323 }
19324 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
19325 return resultobj;
19326 fail:
19327 return NULL;
19328}
19329
19330
c32bde28 19331static PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19332 PyObject *resultobj;
19333 wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ;
19334 wxPoint *arg2 = 0 ;
19335 wxPoint temp2 ;
19336 PyObject * obj0 = 0 ;
19337 PyObject * obj1 = 0 ;
19338 char *kwnames[] = {
19339 (char *) "self",(char *) "pos", NULL
19340 };
19341
19342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
19343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent,
19344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19345 {
19346 arg2 = &temp2;
19347 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19348 }
19349 {
19350 PyThreadState* __tstate = wxPyBeginAllowThreads();
19351 (arg1)->SetPosition((wxPoint const &)*arg2);
19352
19353 wxPyEndAllowThreads(__tstate);
19354 if (PyErr_Occurred()) SWIG_fail;
19355 }
19356 Py_INCREF(Py_None); resultobj = Py_None;
19357 return resultobj;
19358 fail:
19359 return NULL;
19360}
19361
19362
c32bde28 19363static PyObject * ContextMenuEvent_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
19364 PyObject *obj;
19365 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19366 SWIG_TypeClientData(SWIGTYPE_p_wxContextMenuEvent, obj);
19367 Py_INCREF(obj);
19368 return Py_BuildValue((char *)"");
19369}
c32bde28 19370static PyObject *_wrap_new_IdleEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19371 PyObject *resultobj;
19372 wxIdleEvent *result;
19373 char *kwnames[] = {
19374 NULL
19375 };
19376
19377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IdleEvent",kwnames)) goto fail;
19378 {
19379 PyThreadState* __tstate = wxPyBeginAllowThreads();
19380 result = (wxIdleEvent *)new wxIdleEvent();
19381
19382 wxPyEndAllowThreads(__tstate);
19383 if (PyErr_Occurred()) SWIG_fail;
19384 }
19385 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIdleEvent, 1);
19386 return resultobj;
19387 fail:
19388 return NULL;
19389}
19390
19391
c32bde28 19392static PyObject *_wrap_IdleEvent_RequestMore(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19393 PyObject *resultobj;
19394 wxIdleEvent *arg1 = (wxIdleEvent *) 0 ;
19395 bool arg2 = (bool) True ;
19396 PyObject * obj0 = 0 ;
19397 PyObject * obj1 = 0 ;
19398 char *kwnames[] = {
19399 (char *) "self",(char *) "needMore", NULL
19400 };
19401
19402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) goto fail;
19403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent,
19404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19405 if (obj1) {
c32bde28 19406 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
19407 if (PyErr_Occurred()) SWIG_fail;
19408 }
19409 {
19410 PyThreadState* __tstate = wxPyBeginAllowThreads();
19411 (arg1)->RequestMore(arg2);
19412
19413 wxPyEndAllowThreads(__tstate);
19414 if (PyErr_Occurred()) SWIG_fail;
19415 }
19416 Py_INCREF(Py_None); resultobj = Py_None;
19417 return resultobj;
19418 fail:
19419 return NULL;
19420}
19421
19422
c32bde28 19423static PyObject *_wrap_IdleEvent_MoreRequested(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19424 PyObject *resultobj;
19425 wxIdleEvent *arg1 = (wxIdleEvent *) 0 ;
19426 bool result;
19427 PyObject * obj0 = 0 ;
19428 char *kwnames[] = {
19429 (char *) "self", NULL
19430 };
19431
19432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_MoreRequested",kwnames,&obj0)) goto fail;
19433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent,
19434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19435 {
19436 PyThreadState* __tstate = wxPyBeginAllowThreads();
19437 result = (bool)((wxIdleEvent const *)arg1)->MoreRequested();
19438
19439 wxPyEndAllowThreads(__tstate);
19440 if (PyErr_Occurred()) SWIG_fail;
19441 }
19442 {
19443 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19444 }
19445 return resultobj;
19446 fail:
19447 return NULL;
19448}
19449
19450
c32bde28 19451static PyObject *_wrap_IdleEvent_SetMode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19452 PyObject *resultobj;
19453 int arg1 ;
19454 PyObject * obj0 = 0 ;
19455 char *kwnames[] = {
19456 (char *) "mode", NULL
19457 };
19458
19459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_SetMode",kwnames,&obj0)) goto fail;
c32bde28 19460 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
19461 if (PyErr_Occurred()) SWIG_fail;
19462 {
19463 PyThreadState* __tstate = wxPyBeginAllowThreads();
19464 wxIdleEvent::SetMode((wxIdleMode )arg1);
19465
19466 wxPyEndAllowThreads(__tstate);
19467 if (PyErr_Occurred()) SWIG_fail;
19468 }
19469 Py_INCREF(Py_None); resultobj = Py_None;
19470 return resultobj;
19471 fail:
19472 return NULL;
19473}
19474
19475
c32bde28 19476static PyObject *_wrap_IdleEvent_GetMode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19477 PyObject *resultobj;
19478 int result;
19479 char *kwnames[] = {
19480 NULL
19481 };
19482
19483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IdleEvent_GetMode",kwnames)) goto fail;
19484 {
19485 PyThreadState* __tstate = wxPyBeginAllowThreads();
19486 result = (int)wxIdleEvent::GetMode();
19487
19488 wxPyEndAllowThreads(__tstate);
19489 if (PyErr_Occurred()) SWIG_fail;
19490 }
c32bde28 19491 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
19492 return resultobj;
19493 fail:
19494 return NULL;
19495}
19496
19497
c32bde28 19498static PyObject *_wrap_IdleEvent_CanSend(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19499 PyObject *resultobj;
19500 wxWindow *arg1 = (wxWindow *) 0 ;
19501 bool result;
19502 PyObject * obj0 = 0 ;
19503 char *kwnames[] = {
19504 (char *) "win", NULL
19505 };
19506
19507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) goto fail;
19508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
19509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19510 {
19511 PyThreadState* __tstate = wxPyBeginAllowThreads();
19512 result = (bool)wxIdleEvent::CanSend(arg1);
19513
19514 wxPyEndAllowThreads(__tstate);
19515 if (PyErr_Occurred()) SWIG_fail;
19516 }
19517 {
19518 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19519 }
19520 return resultobj;
19521 fail:
19522 return NULL;
19523}
19524
19525
c32bde28 19526static PyObject * IdleEvent_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
19527 PyObject *obj;
19528 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19529 SWIG_TypeClientData(SWIGTYPE_p_wxIdleEvent, obj);
19530 Py_INCREF(obj);
19531 return Py_BuildValue((char *)"");
19532}
c32bde28 19533static PyObject *_wrap_new_PyEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19534 PyObject *resultobj;
19535 int arg1 = (int) 0 ;
19536 wxEventType arg2 = (wxEventType) wxEVT_NULL ;
19537 wxPyEvent *result;
19538 PyObject * obj0 = 0 ;
19539 PyObject * obj1 = 0 ;
19540 char *kwnames[] = {
19541 (char *) "winid",(char *) "commandType", NULL
19542 };
19543
19544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyEvent",kwnames,&obj0,&obj1)) goto fail;
19545 if (obj0) {
c32bde28 19546 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
19547 if (PyErr_Occurred()) SWIG_fail;
19548 }
19549 if (obj1) {
c32bde28 19550 arg2 = (wxEventType)SWIG_As_int(obj1);
d55e5bfc
RD
19551 if (PyErr_Occurred()) SWIG_fail;
19552 }
19553 {
19554 PyThreadState* __tstate = wxPyBeginAllowThreads();
19555 result = (wxPyEvent *)new wxPyEvent(arg1,arg2);
19556
19557 wxPyEndAllowThreads(__tstate);
19558 if (PyErr_Occurred()) SWIG_fail;
19559 }
19560 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyEvent, 1);
19561 return resultobj;
19562 fail:
19563 return NULL;
19564}
19565
19566
c32bde28 19567static PyObject *_wrap_delete_PyEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19568 PyObject *resultobj;
19569 wxPyEvent *arg1 = (wxPyEvent *) 0 ;
19570 PyObject * obj0 = 0 ;
19571 char *kwnames[] = {
19572 (char *) "self", NULL
19573 };
19574
19575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyEvent",kwnames,&obj0)) goto fail;
19576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent,
19577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19578 {
19579 PyThreadState* __tstate = wxPyBeginAllowThreads();
19580 delete arg1;
19581
19582 wxPyEndAllowThreads(__tstate);
19583 if (PyErr_Occurred()) SWIG_fail;
19584 }
19585 Py_INCREF(Py_None); resultobj = Py_None;
19586 return resultobj;
19587 fail:
19588 return NULL;
19589}
19590
19591
c32bde28 19592static PyObject *_wrap_PyEvent_SetSelf(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19593 PyObject *resultobj;
19594 wxPyEvent *arg1 = (wxPyEvent *) 0 ;
19595 PyObject *arg2 = (PyObject *) 0 ;
19596 PyObject * obj0 = 0 ;
19597 PyObject * obj1 = 0 ;
19598 char *kwnames[] = {
19599 (char *) "self",(char *) "self", NULL
19600 };
19601
19602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail;
19603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent,
19604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19605 arg2 = obj1;
19606 {
19607 PyThreadState* __tstate = wxPyBeginAllowThreads();
19608 (arg1)->SetSelf(arg2);
19609
19610 wxPyEndAllowThreads(__tstate);
19611 if (PyErr_Occurred()) SWIG_fail;
19612 }
19613 Py_INCREF(Py_None); resultobj = Py_None;
19614 return resultobj;
19615 fail:
19616 return NULL;
19617}
19618
19619
c32bde28 19620static PyObject *_wrap_PyEvent_GetSelf(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19621 PyObject *resultobj;
19622 wxPyEvent *arg1 = (wxPyEvent *) 0 ;
19623 PyObject *result;
19624 PyObject * obj0 = 0 ;
19625 char *kwnames[] = {
19626 (char *) "self", NULL
19627 };
19628
19629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyEvent_GetSelf",kwnames,&obj0)) goto fail;
19630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent,
19631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19632 {
19633 PyThreadState* __tstate = wxPyBeginAllowThreads();
19634 result = (PyObject *)(arg1)->GetSelf();
19635
19636 wxPyEndAllowThreads(__tstate);
19637 if (PyErr_Occurred()) SWIG_fail;
19638 }
19639 resultobj = result;
19640 return resultobj;
19641 fail:
19642 return NULL;
19643}
19644
19645
c32bde28 19646static PyObject * PyEvent_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
19647 PyObject *obj;
19648 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19649 SWIG_TypeClientData(SWIGTYPE_p_wxPyEvent, obj);
19650 Py_INCREF(obj);
19651 return Py_BuildValue((char *)"");
19652}
c32bde28 19653static PyObject *_wrap_new_PyCommandEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19654 PyObject *resultobj;
19655 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
19656 int arg2 = (int) 0 ;
19657 wxPyCommandEvent *result;
19658 PyObject * obj0 = 0 ;
19659 PyObject * obj1 = 0 ;
19660 char *kwnames[] = {
19661 (char *) "commandType",(char *) "id", NULL
19662 };
19663
19664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyCommandEvent",kwnames,&obj0,&obj1)) goto fail;
19665 if (obj0) {
c32bde28 19666 arg1 = (wxEventType)SWIG_As_int(obj0);
d55e5bfc
RD
19667 if (PyErr_Occurred()) SWIG_fail;
19668 }
19669 if (obj1) {
c32bde28 19670 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
19671 if (PyErr_Occurred()) SWIG_fail;
19672 }
19673 {
19674 PyThreadState* __tstate = wxPyBeginAllowThreads();
19675 result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2);
19676
19677 wxPyEndAllowThreads(__tstate);
19678 if (PyErr_Occurred()) SWIG_fail;
19679 }
19680 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyCommandEvent, 1);
19681 return resultobj;
19682 fail:
19683 return NULL;
19684}
19685
19686
c32bde28 19687static PyObject *_wrap_delete_PyCommandEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19688 PyObject *resultobj;
19689 wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ;
19690 PyObject * obj0 = 0 ;
19691 char *kwnames[] = {
19692 (char *) "self", NULL
19693 };
19694
19695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyCommandEvent",kwnames,&obj0)) goto fail;
19696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent,
19697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19698 {
19699 PyThreadState* __tstate = wxPyBeginAllowThreads();
19700 delete arg1;
19701
19702 wxPyEndAllowThreads(__tstate);
19703 if (PyErr_Occurred()) SWIG_fail;
19704 }
19705 Py_INCREF(Py_None); resultobj = Py_None;
19706 return resultobj;
19707 fail:
19708 return NULL;
19709}
19710
19711
c32bde28 19712static PyObject *_wrap_PyCommandEvent_SetSelf(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19713 PyObject *resultobj;
19714 wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ;
19715 PyObject *arg2 = (PyObject *) 0 ;
19716 PyObject * obj0 = 0 ;
19717 PyObject * obj1 = 0 ;
19718 char *kwnames[] = {
19719 (char *) "self",(char *) "self", NULL
19720 };
19721
19722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail;
19723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent,
19724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19725 arg2 = obj1;
19726 {
19727 PyThreadState* __tstate = wxPyBeginAllowThreads();
19728 (arg1)->SetSelf(arg2);
19729
19730 wxPyEndAllowThreads(__tstate);
19731 if (PyErr_Occurred()) SWIG_fail;
19732 }
19733 Py_INCREF(Py_None); resultobj = Py_None;
19734 return resultobj;
19735 fail:
19736 return NULL;
19737}
19738
19739
c32bde28 19740static PyObject *_wrap_PyCommandEvent_GetSelf(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19741 PyObject *resultobj;
19742 wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ;
19743 PyObject *result;
19744 PyObject * obj0 = 0 ;
19745 char *kwnames[] = {
19746 (char *) "self", NULL
19747 };
19748
19749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCommandEvent_GetSelf",kwnames,&obj0)) goto fail;
19750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent,
19751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19752 {
19753 PyThreadState* __tstate = wxPyBeginAllowThreads();
19754 result = (PyObject *)(arg1)->GetSelf();
19755
19756 wxPyEndAllowThreads(__tstate);
19757 if (PyErr_Occurred()) SWIG_fail;
19758 }
19759 resultobj = result;
19760 return resultobj;
19761 fail:
19762 return NULL;
19763}
19764
19765
c32bde28 19766static PyObject * PyCommandEvent_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
19767 PyObject *obj;
19768 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19769 SWIG_TypeClientData(SWIGTYPE_p_wxPyCommandEvent, obj);
19770 Py_INCREF(obj);
19771 return Py_BuildValue((char *)"");
19772}
c32bde28 19773static PyObject *_wrap_new_PyApp(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19774 PyObject *resultobj;
19775 wxPyApp *result;
19776 char *kwnames[] = {
19777 NULL
19778 };
19779
19780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyApp",kwnames)) goto fail;
19781 {
19782 PyThreadState* __tstate = wxPyBeginAllowThreads();
19783 result = (wxPyApp *)new_wxPyApp();
19784
19785 wxPyEndAllowThreads(__tstate);
19786 if (PyErr_Occurred()) SWIG_fail;
19787 }
b0f7404b 19788 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyApp, 1);
d55e5bfc
RD
19789 return resultobj;
19790 fail:
19791 return NULL;
19792}
19793
19794
c32bde28 19795static PyObject *_wrap_delete_PyApp(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19796 PyObject *resultobj;
19797 wxPyApp *arg1 = (wxPyApp *) 0 ;
19798 PyObject * obj0 = 0 ;
19799 char *kwnames[] = {
19800 (char *) "self", NULL
19801 };
19802
19803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyApp",kwnames,&obj0)) goto fail;
19804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19806 {
19807 PyThreadState* __tstate = wxPyBeginAllowThreads();
19808 delete arg1;
19809
19810 wxPyEndAllowThreads(__tstate);
19811 if (PyErr_Occurred()) SWIG_fail;
19812 }
19813 Py_INCREF(Py_None); resultobj = Py_None;
19814 return resultobj;
19815 fail:
19816 return NULL;
19817}
19818
19819
c32bde28 19820static PyObject *_wrap_PyApp__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19821 PyObject *resultobj;
19822 wxPyApp *arg1 = (wxPyApp *) 0 ;
19823 PyObject *arg2 = (PyObject *) 0 ;
19824 PyObject *arg3 = (PyObject *) 0 ;
19825 PyObject * obj0 = 0 ;
19826 PyObject * obj1 = 0 ;
19827 PyObject * obj2 = 0 ;
19828 char *kwnames[] = {
19829 (char *) "self",(char *) "self",(char *) "_class", NULL
19830 };
19831
19832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
19833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19835 arg2 = obj1;
19836 arg3 = obj2;
19837 {
19838 PyThreadState* __tstate = wxPyBeginAllowThreads();
19839 (arg1)->_setCallbackInfo(arg2,arg3);
19840
19841 wxPyEndAllowThreads(__tstate);
19842 if (PyErr_Occurred()) SWIG_fail;
19843 }
19844 Py_INCREF(Py_None); resultobj = Py_None;
19845 return resultobj;
19846 fail:
19847 return NULL;
19848}
19849
19850
c32bde28 19851static PyObject *_wrap_PyApp_GetAppName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19852 PyObject *resultobj;
19853 wxPyApp *arg1 = (wxPyApp *) 0 ;
19854 wxString result;
19855 PyObject * obj0 = 0 ;
19856 char *kwnames[] = {
19857 (char *) "self", NULL
19858 };
19859
19860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAppName",kwnames,&obj0)) goto fail;
19861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19863 {
19864 PyThreadState* __tstate = wxPyBeginAllowThreads();
19865 result = ((wxPyApp const *)arg1)->GetAppName();
19866
19867 wxPyEndAllowThreads(__tstate);
19868 if (PyErr_Occurred()) SWIG_fail;
19869 }
19870 {
19871#if wxUSE_UNICODE
19872 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19873#else
19874 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19875#endif
19876 }
19877 return resultobj;
19878 fail:
19879 return NULL;
19880}
19881
19882
c32bde28 19883static PyObject *_wrap_PyApp_SetAppName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19884 PyObject *resultobj;
19885 wxPyApp *arg1 = (wxPyApp *) 0 ;
19886 wxString *arg2 = 0 ;
19887 bool temp2 = False ;
19888 PyObject * obj0 = 0 ;
19889 PyObject * obj1 = 0 ;
19890 char *kwnames[] = {
19891 (char *) "self",(char *) "name", NULL
19892 };
19893
19894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",kwnames,&obj0,&obj1)) goto fail;
19895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19897 {
19898 arg2 = wxString_in_helper(obj1);
19899 if (arg2 == NULL) SWIG_fail;
19900 temp2 = True;
19901 }
19902 {
19903 PyThreadState* __tstate = wxPyBeginAllowThreads();
19904 (arg1)->SetAppName((wxString const &)*arg2);
19905
19906 wxPyEndAllowThreads(__tstate);
19907 if (PyErr_Occurred()) SWIG_fail;
19908 }
19909 Py_INCREF(Py_None); resultobj = Py_None;
19910 {
19911 if (temp2)
19912 delete arg2;
19913 }
19914 return resultobj;
19915 fail:
19916 {
19917 if (temp2)
19918 delete arg2;
19919 }
19920 return NULL;
19921}
19922
19923
c32bde28 19924static PyObject *_wrap_PyApp_GetClassName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19925 PyObject *resultobj;
19926 wxPyApp *arg1 = (wxPyApp *) 0 ;
19927 wxString result;
19928 PyObject * obj0 = 0 ;
19929 char *kwnames[] = {
19930 (char *) "self", NULL
19931 };
19932
19933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetClassName",kwnames,&obj0)) goto fail;
19934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19936 {
19937 PyThreadState* __tstate = wxPyBeginAllowThreads();
19938 result = ((wxPyApp const *)arg1)->GetClassName();
19939
19940 wxPyEndAllowThreads(__tstate);
19941 if (PyErr_Occurred()) SWIG_fail;
19942 }
19943 {
19944#if wxUSE_UNICODE
19945 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19946#else
19947 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19948#endif
19949 }
19950 return resultobj;
19951 fail:
19952 return NULL;
19953}
19954
19955
c32bde28 19956static PyObject *_wrap_PyApp_SetClassName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19957 PyObject *resultobj;
19958 wxPyApp *arg1 = (wxPyApp *) 0 ;
19959 wxString *arg2 = 0 ;
19960 bool temp2 = False ;
19961 PyObject * obj0 = 0 ;
19962 PyObject * obj1 = 0 ;
19963 char *kwnames[] = {
19964 (char *) "self",(char *) "name", NULL
19965 };
19966
19967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) goto fail;
19968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19970 {
19971 arg2 = wxString_in_helper(obj1);
19972 if (arg2 == NULL) SWIG_fail;
19973 temp2 = True;
19974 }
19975 {
19976 PyThreadState* __tstate = wxPyBeginAllowThreads();
19977 (arg1)->SetClassName((wxString const &)*arg2);
19978
19979 wxPyEndAllowThreads(__tstate);
19980 if (PyErr_Occurred()) SWIG_fail;
19981 }
19982 Py_INCREF(Py_None); resultobj = Py_None;
19983 {
19984 if (temp2)
19985 delete arg2;
19986 }
19987 return resultobj;
19988 fail:
19989 {
19990 if (temp2)
19991 delete arg2;
19992 }
19993 return NULL;
19994}
19995
19996
c32bde28 19997static PyObject *_wrap_PyApp_GetVendorName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
19998 PyObject *resultobj;
19999 wxPyApp *arg1 = (wxPyApp *) 0 ;
20000 wxString *result;
20001 PyObject * obj0 = 0 ;
20002 char *kwnames[] = {
20003 (char *) "self", NULL
20004 };
20005
20006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetVendorName",kwnames,&obj0)) goto fail;
20007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20009 {
20010 PyThreadState* __tstate = wxPyBeginAllowThreads();
20011 {
20012 wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName();
20013 result = (wxString *) &_result_ref;
20014 }
20015
20016 wxPyEndAllowThreads(__tstate);
20017 if (PyErr_Occurred()) SWIG_fail;
20018 }
20019 {
20020#if wxUSE_UNICODE
20021 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
20022#else
20023 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
20024#endif
20025 }
20026 return resultobj;
20027 fail:
20028 return NULL;
20029}
20030
20031
c32bde28 20032static PyObject *_wrap_PyApp_SetVendorName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20033 PyObject *resultobj;
20034 wxPyApp *arg1 = (wxPyApp *) 0 ;
20035 wxString *arg2 = 0 ;
20036 bool temp2 = False ;
20037 PyObject * obj0 = 0 ;
20038 PyObject * obj1 = 0 ;
20039 char *kwnames[] = {
20040 (char *) "self",(char *) "name", NULL
20041 };
20042
20043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) goto fail;
20044 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20046 {
20047 arg2 = wxString_in_helper(obj1);
20048 if (arg2 == NULL) SWIG_fail;
20049 temp2 = True;
20050 }
20051 {
20052 PyThreadState* __tstate = wxPyBeginAllowThreads();
20053 (arg1)->SetVendorName((wxString const &)*arg2);
20054
20055 wxPyEndAllowThreads(__tstate);
20056 if (PyErr_Occurred()) SWIG_fail;
20057 }
20058 Py_INCREF(Py_None); resultobj = Py_None;
20059 {
20060 if (temp2)
20061 delete arg2;
20062 }
20063 return resultobj;
20064 fail:
20065 {
20066 if (temp2)
20067 delete arg2;
20068 }
20069 return NULL;
20070}
20071
20072
c32bde28 20073static PyObject *_wrap_PyApp_GetTraits(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20074 PyObject *resultobj;
20075 wxPyApp *arg1 = (wxPyApp *) 0 ;
20076 wxAppTraits *result;
20077 PyObject * obj0 = 0 ;
20078 char *kwnames[] = {
20079 (char *) "self", NULL
20080 };
20081
20082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTraits",kwnames,&obj0)) goto fail;
20083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20085 {
20086 PyThreadState* __tstate = wxPyBeginAllowThreads();
20087 result = (wxAppTraits *)(arg1)->GetTraits();
20088
20089 wxPyEndAllowThreads(__tstate);
20090 if (PyErr_Occurred()) SWIG_fail;
20091 }
20092 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAppTraits, 0);
20093 return resultobj;
20094 fail:
20095 return NULL;
20096}
20097
20098
c32bde28 20099static PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20100 PyObject *resultobj;
20101 wxPyApp *arg1 = (wxPyApp *) 0 ;
20102 PyObject * obj0 = 0 ;
20103 char *kwnames[] = {
20104 (char *) "self", NULL
20105 };
20106
20107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessPendingEvents",kwnames,&obj0)) goto fail;
20108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20110 {
20111 PyThreadState* __tstate = wxPyBeginAllowThreads();
20112 (arg1)->ProcessPendingEvents();
20113
20114 wxPyEndAllowThreads(__tstate);
20115 if (PyErr_Occurred()) SWIG_fail;
20116 }
20117 Py_INCREF(Py_None); resultobj = Py_None;
20118 return resultobj;
20119 fail:
20120 return NULL;
20121}
20122
20123
c32bde28 20124static PyObject *_wrap_PyApp_Yield(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20125 PyObject *resultobj;
20126 wxPyApp *arg1 = (wxPyApp *) 0 ;
20127 bool arg2 = (bool) False ;
20128 bool result;
20129 PyObject * obj0 = 0 ;
20130 PyObject * obj1 = 0 ;
20131 char *kwnames[] = {
20132 (char *) "self",(char *) "onlyIfNeeded", NULL
20133 };
20134
20135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) goto fail;
20136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20138 if (obj1) {
c32bde28 20139 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
20140 if (PyErr_Occurred()) SWIG_fail;
20141 }
20142 {
20143 PyThreadState* __tstate = wxPyBeginAllowThreads();
20144 result = (bool)(arg1)->Yield(arg2);
20145
20146 wxPyEndAllowThreads(__tstate);
20147 if (PyErr_Occurred()) SWIG_fail;
20148 }
20149 {
20150 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20151 }
20152 return resultobj;
20153 fail:
20154 return NULL;
20155}
20156
20157
c32bde28 20158static PyObject *_wrap_PyApp_WakeUpIdle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20159 PyObject *resultobj;
20160 wxPyApp *arg1 = (wxPyApp *) 0 ;
20161 PyObject * obj0 = 0 ;
20162 char *kwnames[] = {
20163 (char *) "self", NULL
20164 };
20165
20166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_WakeUpIdle",kwnames,&obj0)) goto fail;
20167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20169 {
20170 PyThreadState* __tstate = wxPyBeginAllowThreads();
20171 (arg1)->WakeUpIdle();
20172
20173 wxPyEndAllowThreads(__tstate);
20174 if (PyErr_Occurred()) SWIG_fail;
20175 }
20176 Py_INCREF(Py_None); resultobj = Py_None;
20177 return resultobj;
20178 fail:
20179 return NULL;
20180}
20181
20182
c32bde28 20183static PyObject *_wrap_PyApp_MainLoop(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20184 PyObject *resultobj;
20185 wxPyApp *arg1 = (wxPyApp *) 0 ;
20186 int result;
20187 PyObject * obj0 = 0 ;
20188 char *kwnames[] = {
20189 (char *) "self", NULL
20190 };
20191
20192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_MainLoop",kwnames,&obj0)) goto fail;
20193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20195 {
20196 PyThreadState* __tstate = wxPyBeginAllowThreads();
20197 result = (int)(arg1)->MainLoop();
20198
20199 wxPyEndAllowThreads(__tstate);
20200 if (PyErr_Occurred()) SWIG_fail;
20201 }
c32bde28 20202 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
20203 return resultobj;
20204 fail:
20205 return NULL;
20206}
20207
20208
c32bde28 20209static PyObject *_wrap_PyApp_Exit(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20210 PyObject *resultobj;
20211 wxPyApp *arg1 = (wxPyApp *) 0 ;
20212 PyObject * obj0 = 0 ;
20213 char *kwnames[] = {
20214 (char *) "self", NULL
20215 };
20216
20217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Exit",kwnames,&obj0)) goto fail;
20218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20220 {
20221 PyThreadState* __tstate = wxPyBeginAllowThreads();
20222 (arg1)->Exit();
20223
20224 wxPyEndAllowThreads(__tstate);
20225 if (PyErr_Occurred()) SWIG_fail;
20226 }
20227 Py_INCREF(Py_None); resultobj = Py_None;
20228 return resultobj;
20229 fail:
20230 return NULL;
20231}
20232
20233
c32bde28 20234static PyObject *_wrap_PyApp_ExitMainLoop(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20235 PyObject *resultobj;
20236 wxPyApp *arg1 = (wxPyApp *) 0 ;
20237 PyObject * obj0 = 0 ;
20238 char *kwnames[] = {
20239 (char *) "self", NULL
20240 };
20241
20242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ExitMainLoop",kwnames,&obj0)) goto fail;
20243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20245 {
20246 PyThreadState* __tstate = wxPyBeginAllowThreads();
20247 (arg1)->ExitMainLoop();
20248
20249 wxPyEndAllowThreads(__tstate);
20250 if (PyErr_Occurred()) SWIG_fail;
20251 }
20252 Py_INCREF(Py_None); resultobj = Py_None;
20253 return resultobj;
20254 fail:
20255 return NULL;
20256}
20257
20258
c32bde28 20259static PyObject *_wrap_PyApp_Pending(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20260 PyObject *resultobj;
20261 wxPyApp *arg1 = (wxPyApp *) 0 ;
20262 bool result;
20263 PyObject * obj0 = 0 ;
20264 char *kwnames[] = {
20265 (char *) "self", NULL
20266 };
20267
20268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Pending",kwnames,&obj0)) goto fail;
20269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20271 {
20272 PyThreadState* __tstate = wxPyBeginAllowThreads();
20273 result = (bool)(arg1)->Pending();
20274
20275 wxPyEndAllowThreads(__tstate);
20276 if (PyErr_Occurred()) SWIG_fail;
20277 }
20278 {
20279 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20280 }
20281 return resultobj;
20282 fail:
20283 return NULL;
20284}
20285
20286
c32bde28 20287static PyObject *_wrap_PyApp_Dispatch(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20288 PyObject *resultobj;
20289 wxPyApp *arg1 = (wxPyApp *) 0 ;
20290 bool result;
20291 PyObject * obj0 = 0 ;
20292 char *kwnames[] = {
20293 (char *) "self", NULL
20294 };
20295
20296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Dispatch",kwnames,&obj0)) goto fail;
20297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20299 {
20300 PyThreadState* __tstate = wxPyBeginAllowThreads();
20301 result = (bool)(arg1)->Dispatch();
20302
20303 wxPyEndAllowThreads(__tstate);
20304 if (PyErr_Occurred()) SWIG_fail;
20305 }
20306 {
20307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20308 }
20309 return resultobj;
20310 fail:
20311 return NULL;
20312}
20313
20314
c32bde28 20315static PyObject *_wrap_PyApp_ProcessIdle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20316 PyObject *resultobj;
20317 wxPyApp *arg1 = (wxPyApp *) 0 ;
20318 bool result;
20319 PyObject * obj0 = 0 ;
20320 char *kwnames[] = {
20321 (char *) "self", NULL
20322 };
20323
20324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessIdle",kwnames,&obj0)) goto fail;
20325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20327 {
20328 PyThreadState* __tstate = wxPyBeginAllowThreads();
20329 result = (bool)(arg1)->ProcessIdle();
20330
20331 wxPyEndAllowThreads(__tstate);
20332 if (PyErr_Occurred()) SWIG_fail;
20333 }
20334 {
20335 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20336 }
20337 return resultobj;
20338 fail:
20339 return NULL;
20340}
20341
20342
c32bde28 20343static PyObject *_wrap_PyApp_SendIdleEvents(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20344 PyObject *resultobj;
20345 wxPyApp *arg1 = (wxPyApp *) 0 ;
20346 wxWindow *arg2 = (wxWindow *) 0 ;
20347 wxIdleEvent *arg3 = 0 ;
20348 bool result;
20349 PyObject * obj0 = 0 ;
20350 PyObject * obj1 = 0 ;
20351 PyObject * obj2 = 0 ;
20352 char *kwnames[] = {
20353 (char *) "self",(char *) "win",(char *) "event", NULL
20354 };
20355
20356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) goto fail;
20357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20359 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
20360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20361 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIdleEvent,
20362 SWIG_POINTER_EXCEPTION | 0)) == -1)
20363 SWIG_fail;
20364 if (arg3 == NULL) {
20365 PyErr_SetString(PyExc_TypeError,"null reference");
20366 SWIG_fail;
20367 }
20368 {
20369 PyThreadState* __tstate = wxPyBeginAllowThreads();
20370 result = (bool)(arg1)->SendIdleEvents(arg2,*arg3);
20371
20372 wxPyEndAllowThreads(__tstate);
20373 if (PyErr_Occurred()) SWIG_fail;
20374 }
20375 {
20376 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20377 }
20378 return resultobj;
20379 fail:
20380 return NULL;
20381}
20382
20383
c32bde28 20384static PyObject *_wrap_PyApp_IsActive(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20385 PyObject *resultobj;
20386 wxPyApp *arg1 = (wxPyApp *) 0 ;
20387 bool result;
20388 PyObject * obj0 = 0 ;
20389 char *kwnames[] = {
20390 (char *) "self", NULL
20391 };
20392
20393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_IsActive",kwnames,&obj0)) goto fail;
20394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20396 {
20397 PyThreadState* __tstate = wxPyBeginAllowThreads();
20398 result = (bool)((wxPyApp const *)arg1)->IsActive();
20399
20400 wxPyEndAllowThreads(__tstate);
20401 if (PyErr_Occurred()) SWIG_fail;
20402 }
20403 {
20404 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20405 }
20406 return resultobj;
20407 fail:
20408 return NULL;
20409}
20410
20411
c32bde28 20412static PyObject *_wrap_PyApp_SetTopWindow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20413 PyObject *resultobj;
20414 wxPyApp *arg1 = (wxPyApp *) 0 ;
20415 wxWindow *arg2 = (wxWindow *) 0 ;
20416 PyObject * obj0 = 0 ;
20417 PyObject * obj1 = 0 ;
20418 char *kwnames[] = {
20419 (char *) "self",(char *) "win", NULL
20420 };
20421
20422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) goto fail;
20423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20425 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
20426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20427 {
20428 PyThreadState* __tstate = wxPyBeginAllowThreads();
20429 (arg1)->SetTopWindow(arg2);
20430
20431 wxPyEndAllowThreads(__tstate);
20432 if (PyErr_Occurred()) SWIG_fail;
20433 }
20434 Py_INCREF(Py_None); resultobj = Py_None;
20435 return resultobj;
20436 fail:
20437 return NULL;
20438}
20439
20440
c32bde28 20441static PyObject *_wrap_PyApp_GetTopWindow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20442 PyObject *resultobj;
20443 wxPyApp *arg1 = (wxPyApp *) 0 ;
20444 wxWindow *result;
20445 PyObject * obj0 = 0 ;
20446 char *kwnames[] = {
20447 (char *) "self", NULL
20448 };
20449
20450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTopWindow",kwnames,&obj0)) goto fail;
20451 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20452 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20453 {
20454 PyThreadState* __tstate = wxPyBeginAllowThreads();
20455 result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow();
20456
20457 wxPyEndAllowThreads(__tstate);
20458 if (PyErr_Occurred()) SWIG_fail;
20459 }
20460 {
412d302d 20461 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
20462 }
20463 return resultobj;
20464 fail:
20465 return NULL;
20466}
20467
20468
c32bde28 20469static PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20470 PyObject *resultobj;
20471 wxPyApp *arg1 = (wxPyApp *) 0 ;
20472 bool arg2 ;
20473 PyObject * obj0 = 0 ;
20474 PyObject * obj1 = 0 ;
20475 char *kwnames[] = {
20476 (char *) "self",(char *) "flag", NULL
20477 };
20478
20479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) goto fail;
20480 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 20482 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
20483 if (PyErr_Occurred()) SWIG_fail;
20484 {
20485 PyThreadState* __tstate = wxPyBeginAllowThreads();
20486 (arg1)->SetExitOnFrameDelete(arg2);
20487
20488 wxPyEndAllowThreads(__tstate);
20489 if (PyErr_Occurred()) SWIG_fail;
20490 }
20491 Py_INCREF(Py_None); resultobj = Py_None;
20492 return resultobj;
20493 fail:
20494 return NULL;
20495}
20496
20497
c32bde28 20498static PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20499 PyObject *resultobj;
20500 wxPyApp *arg1 = (wxPyApp *) 0 ;
20501 bool result;
20502 PyObject * obj0 = 0 ;
20503 char *kwnames[] = {
20504 (char *) "self", NULL
20505 };
20506
20507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetExitOnFrameDelete",kwnames,&obj0)) goto fail;
20508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20510 {
20511 PyThreadState* __tstate = wxPyBeginAllowThreads();
20512 result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete();
20513
20514 wxPyEndAllowThreads(__tstate);
20515 if (PyErr_Occurred()) SWIG_fail;
20516 }
20517 {
20518 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20519 }
20520 return resultobj;
20521 fail:
20522 return NULL;
20523}
20524
20525
c32bde28 20526static PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20527 PyObject *resultobj;
20528 wxPyApp *arg1 = (wxPyApp *) 0 ;
20529 bool arg2 ;
20530 PyObject * obj0 = 0 ;
20531 PyObject * obj1 = 0 ;
20532 char *kwnames[] = {
20533 (char *) "self",(char *) "flag", NULL
20534 };
20535
20536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) goto fail;
20537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 20539 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
20540 if (PyErr_Occurred()) SWIG_fail;
20541 {
20542 PyThreadState* __tstate = wxPyBeginAllowThreads();
20543 (arg1)->SetUseBestVisual(arg2);
20544
20545 wxPyEndAllowThreads(__tstate);
20546 if (PyErr_Occurred()) SWIG_fail;
20547 }
20548 Py_INCREF(Py_None); resultobj = Py_None;
20549 return resultobj;
20550 fail:
20551 return NULL;
20552}
20553
20554
c32bde28 20555static PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20556 PyObject *resultobj;
20557 wxPyApp *arg1 = (wxPyApp *) 0 ;
20558 bool result;
20559 PyObject * obj0 = 0 ;
20560 char *kwnames[] = {
20561 (char *) "self", NULL
20562 };
20563
20564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetUseBestVisual",kwnames,&obj0)) goto fail;
20565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20567 {
20568 PyThreadState* __tstate = wxPyBeginAllowThreads();
20569 result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual();
20570
20571 wxPyEndAllowThreads(__tstate);
20572 if (PyErr_Occurred()) SWIG_fail;
20573 }
20574 {
20575 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20576 }
20577 return resultobj;
20578 fail:
20579 return NULL;
20580}
20581
20582
c32bde28 20583static PyObject *_wrap_PyApp_SetPrintMode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20584 PyObject *resultobj;
20585 wxPyApp *arg1 = (wxPyApp *) 0 ;
20586 int arg2 ;
20587 PyObject * obj0 = 0 ;
20588 PyObject * obj1 = 0 ;
20589 char *kwnames[] = {
20590 (char *) "self",(char *) "mode", NULL
20591 };
20592
20593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetPrintMode",kwnames,&obj0,&obj1)) goto fail;
20594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 20596 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
20597 if (PyErr_Occurred()) SWIG_fail;
20598 {
20599 PyThreadState* __tstate = wxPyBeginAllowThreads();
20600 (arg1)->SetPrintMode(arg2);
20601
20602 wxPyEndAllowThreads(__tstate);
20603 if (PyErr_Occurred()) SWIG_fail;
20604 }
20605 Py_INCREF(Py_None); resultobj = Py_None;
20606 return resultobj;
20607 fail:
20608 return NULL;
20609}
20610
20611
c32bde28 20612static PyObject *_wrap_PyApp_GetPrintMode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20613 PyObject *resultobj;
20614 wxPyApp *arg1 = (wxPyApp *) 0 ;
20615 int result;
20616 PyObject * obj0 = 0 ;
20617 char *kwnames[] = {
20618 (char *) "self", NULL
20619 };
20620
20621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetPrintMode",kwnames,&obj0)) goto fail;
20622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20624 {
20625 PyThreadState* __tstate = wxPyBeginAllowThreads();
20626 result = (int)((wxPyApp const *)arg1)->GetPrintMode();
20627
20628 wxPyEndAllowThreads(__tstate);
20629 if (PyErr_Occurred()) SWIG_fail;
20630 }
c32bde28 20631 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
20632 return resultobj;
20633 fail:
20634 return NULL;
20635}
20636
20637
c32bde28 20638static PyObject *_wrap_PyApp_SetAssertMode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20639 PyObject *resultobj;
20640 wxPyApp *arg1 = (wxPyApp *) 0 ;
20641 int arg2 ;
20642 PyObject * obj0 = 0 ;
20643 PyObject * obj1 = 0 ;
20644 char *kwnames[] = {
20645 (char *) "self",(char *) "mode", NULL
20646 };
20647
20648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAssertMode",kwnames,&obj0,&obj1)) goto fail;
20649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 20651 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
20652 if (PyErr_Occurred()) SWIG_fail;
20653 {
20654 PyThreadState* __tstate = wxPyBeginAllowThreads();
20655 (arg1)->SetAssertMode(arg2);
20656
20657 wxPyEndAllowThreads(__tstate);
20658 if (PyErr_Occurred()) SWIG_fail;
20659 }
20660 Py_INCREF(Py_None); resultobj = Py_None;
20661 return resultobj;
20662 fail:
20663 return NULL;
20664}
20665
20666
c32bde28 20667static PyObject *_wrap_PyApp_GetAssertMode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20668 PyObject *resultobj;
20669 wxPyApp *arg1 = (wxPyApp *) 0 ;
20670 int result;
20671 PyObject * obj0 = 0 ;
20672 char *kwnames[] = {
20673 (char *) "self", NULL
20674 };
20675
20676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAssertMode",kwnames,&obj0)) goto fail;
20677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20679 {
20680 PyThreadState* __tstate = wxPyBeginAllowThreads();
20681 result = (int)(arg1)->GetAssertMode();
20682
20683 wxPyEndAllowThreads(__tstate);
20684 if (PyErr_Occurred()) SWIG_fail;
20685 }
c32bde28 20686 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
20687 return resultobj;
20688 fail:
20689 return NULL;
20690}
20691
20692
c32bde28 20693static PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20694 PyObject *resultobj;
20695 bool result;
20696 char *kwnames[] = {
20697 NULL
20698 };
20699
20700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacSupportPCMenuShortcuts",kwnames)) goto fail;
20701 {
20702 PyThreadState* __tstate = wxPyBeginAllowThreads();
20703 result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts();
20704
20705 wxPyEndAllowThreads(__tstate);
20706 if (PyErr_Occurred()) SWIG_fail;
20707 }
20708 {
20709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20710 }
20711 return resultobj;
20712 fail:
20713 return NULL;
20714}
20715
20716
c32bde28 20717static PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20718 PyObject *resultobj;
20719 long result;
20720 char *kwnames[] = {
20721 NULL
20722 };
20723
20724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacAboutMenuItemId",kwnames)) goto fail;
20725 {
20726 PyThreadState* __tstate = wxPyBeginAllowThreads();
20727 result = (long)wxPyApp::GetMacAboutMenuItemId();
20728
20729 wxPyEndAllowThreads(__tstate);
20730 if (PyErr_Occurred()) SWIG_fail;
20731 }
c32bde28 20732 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
20733 return resultobj;
20734 fail:
20735 return NULL;
20736}
20737
20738
c32bde28 20739static PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20740 PyObject *resultobj;
20741 long result;
20742 char *kwnames[] = {
20743 NULL
20744 };
20745
20746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacPreferencesMenuItemId",kwnames)) goto fail;
20747 {
20748 PyThreadState* __tstate = wxPyBeginAllowThreads();
20749 result = (long)wxPyApp::GetMacPreferencesMenuItemId();
20750
20751 wxPyEndAllowThreads(__tstate);
20752 if (PyErr_Occurred()) SWIG_fail;
20753 }
c32bde28 20754 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
20755 return resultobj;
20756 fail:
20757 return NULL;
20758}
20759
20760
c32bde28 20761static PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20762 PyObject *resultobj;
20763 long result;
20764 char *kwnames[] = {
20765 NULL
20766 };
20767
20768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacExitMenuItemId",kwnames)) goto fail;
20769 {
20770 PyThreadState* __tstate = wxPyBeginAllowThreads();
20771 result = (long)wxPyApp::GetMacExitMenuItemId();
20772
20773 wxPyEndAllowThreads(__tstate);
20774 if (PyErr_Occurred()) SWIG_fail;
20775 }
c32bde28 20776 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
20777 return resultobj;
20778 fail:
20779 return NULL;
20780}
20781
20782
c32bde28 20783static PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20784 PyObject *resultobj;
20785 wxString result;
20786 char *kwnames[] = {
20787 NULL
20788 };
20789
20790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacHelpMenuTitleName",kwnames)) goto fail;
20791 {
20792 PyThreadState* __tstate = wxPyBeginAllowThreads();
20793 result = wxPyApp::GetMacHelpMenuTitleName();
20794
20795 wxPyEndAllowThreads(__tstate);
20796 if (PyErr_Occurred()) SWIG_fail;
20797 }
20798 {
20799#if wxUSE_UNICODE
20800 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20801#else
20802 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20803#endif
20804 }
20805 return resultobj;
20806 fail:
20807 return NULL;
20808}
20809
20810
c32bde28 20811static PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20812 PyObject *resultobj;
20813 bool arg1 ;
20814 PyObject * obj0 = 0 ;
20815 char *kwnames[] = {
20816 (char *) "val", NULL
20817 };
20818
20819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) goto fail;
c32bde28 20820 arg1 = (bool)SWIG_As_bool(obj0);
d55e5bfc
RD
20821 if (PyErr_Occurred()) SWIG_fail;
20822 {
20823 PyThreadState* __tstate = wxPyBeginAllowThreads();
20824 wxPyApp::SetMacSupportPCMenuShortcuts(arg1);
20825
20826 wxPyEndAllowThreads(__tstate);
20827 if (PyErr_Occurred()) SWIG_fail;
20828 }
20829 Py_INCREF(Py_None); resultobj = Py_None;
20830 return resultobj;
20831 fail:
20832 return NULL;
20833}
20834
20835
c32bde28 20836static PyObject *_wrap_PyApp_SetMacAboutMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20837 PyObject *resultobj;
20838 long arg1 ;
20839 PyObject * obj0 = 0 ;
20840 char *kwnames[] = {
20841 (char *) "val", NULL
20842 };
20843
20844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacAboutMenuItemId",kwnames,&obj0)) goto fail;
c32bde28 20845 arg1 = (long)SWIG_As_long(obj0);
d55e5bfc
RD
20846 if (PyErr_Occurred()) SWIG_fail;
20847 {
20848 PyThreadState* __tstate = wxPyBeginAllowThreads();
20849 wxPyApp::SetMacAboutMenuItemId(arg1);
20850
20851 wxPyEndAllowThreads(__tstate);
20852 if (PyErr_Occurred()) SWIG_fail;
20853 }
20854 Py_INCREF(Py_None); resultobj = Py_None;
20855 return resultobj;
20856 fail:
20857 return NULL;
20858}
20859
20860
c32bde28 20861static PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20862 PyObject *resultobj;
20863 long arg1 ;
20864 PyObject * obj0 = 0 ;
20865 char *kwnames[] = {
20866 (char *) "val", NULL
20867 };
20868
20869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacPreferencesMenuItemId",kwnames,&obj0)) goto fail;
c32bde28 20870 arg1 = (long)SWIG_As_long(obj0);
d55e5bfc
RD
20871 if (PyErr_Occurred()) SWIG_fail;
20872 {
20873 PyThreadState* __tstate = wxPyBeginAllowThreads();
20874 wxPyApp::SetMacPreferencesMenuItemId(arg1);
20875
20876 wxPyEndAllowThreads(__tstate);
20877 if (PyErr_Occurred()) SWIG_fail;
20878 }
20879 Py_INCREF(Py_None); resultobj = Py_None;
20880 return resultobj;
20881 fail:
20882 return NULL;
20883}
20884
20885
c32bde28 20886static PyObject *_wrap_PyApp_SetMacExitMenuItemId(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20887 PyObject *resultobj;
20888 long arg1 ;
20889 PyObject * obj0 = 0 ;
20890 char *kwnames[] = {
20891 (char *) "val", NULL
20892 };
20893
20894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacExitMenuItemId",kwnames,&obj0)) goto fail;
c32bde28 20895 arg1 = (long)SWIG_As_long(obj0);
d55e5bfc
RD
20896 if (PyErr_Occurred()) SWIG_fail;
20897 {
20898 PyThreadState* __tstate = wxPyBeginAllowThreads();
20899 wxPyApp::SetMacExitMenuItemId(arg1);
20900
20901 wxPyEndAllowThreads(__tstate);
20902 if (PyErr_Occurred()) SWIG_fail;
20903 }
20904 Py_INCREF(Py_None); resultobj = Py_None;
20905 return resultobj;
20906 fail:
20907 return NULL;
20908}
20909
20910
c32bde28 20911static PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20912 PyObject *resultobj;
20913 wxString *arg1 = 0 ;
20914 bool temp1 = False ;
20915 PyObject * obj0 = 0 ;
20916 char *kwnames[] = {
20917 (char *) "val", NULL
20918 };
20919
20920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) goto fail;
20921 {
20922 arg1 = wxString_in_helper(obj0);
20923 if (arg1 == NULL) SWIG_fail;
20924 temp1 = True;
20925 }
20926 {
20927 PyThreadState* __tstate = wxPyBeginAllowThreads();
20928 wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1);
20929
20930 wxPyEndAllowThreads(__tstate);
20931 if (PyErr_Occurred()) SWIG_fail;
20932 }
20933 Py_INCREF(Py_None); resultobj = Py_None;
20934 {
20935 if (temp1)
20936 delete arg1;
20937 }
20938 return resultobj;
20939 fail:
20940 {
20941 if (temp1)
20942 delete arg1;
20943 }
20944 return NULL;
20945}
20946
20947
c32bde28 20948static PyObject *_wrap_PyApp__BootstrapApp(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20949 PyObject *resultobj;
20950 wxPyApp *arg1 = (wxPyApp *) 0 ;
20951 PyObject * obj0 = 0 ;
20952 char *kwnames[] = {
20953 (char *) "self", NULL
20954 };
20955
20956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp__BootstrapApp",kwnames,&obj0)) goto fail;
20957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20959 {
20960 PyThreadState* __tstate = wxPyBeginAllowThreads();
20961 (arg1)->_BootstrapApp();
20962
20963 wxPyEndAllowThreads(__tstate);
20964 if (PyErr_Occurred()) SWIG_fail;
20965 }
20966 Py_INCREF(Py_None); resultobj = Py_None;
20967 return resultobj;
20968 fail:
20969 return NULL;
20970}
20971
20972
c32bde28 20973static PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
20974 PyObject *resultobj;
20975 int result;
20976 char *kwnames[] = {
20977 NULL
20978 };
20979
20980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetComCtl32Version",kwnames)) goto fail;
20981 {
20982 PyThreadState* __tstate = wxPyBeginAllowThreads();
20983 result = (int)wxPyApp::GetComCtl32Version();
20984
20985 wxPyEndAllowThreads(__tstate);
20986 if (PyErr_Occurred()) SWIG_fail;
20987 }
c32bde28 20988 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
20989 return resultobj;
20990 fail:
20991 return NULL;
20992}
20993
20994
c32bde28 20995static PyObject * PyApp_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
20996 PyObject *obj;
20997 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20998 SWIG_TypeClientData(SWIGTYPE_p_wxPyApp, obj);
20999 Py_INCREF(obj);
21000 return Py_BuildValue((char *)"");
21001}
c32bde28 21002static PyObject *_wrap_Exit(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21003 PyObject *resultobj;
21004 char *kwnames[] = {
21005 NULL
21006 };
21007
21008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Exit",kwnames)) goto fail;
21009 {
21010 PyThreadState* __tstate = wxPyBeginAllowThreads();
21011 wxExit();
21012
21013 wxPyEndAllowThreads(__tstate);
21014 if (PyErr_Occurred()) SWIG_fail;
21015 }
21016 Py_INCREF(Py_None); resultobj = Py_None;
21017 return resultobj;
21018 fail:
21019 return NULL;
21020}
21021
21022
c32bde28 21023static PyObject *_wrap_Yield(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21024 PyObject *resultobj;
21025 bool result;
21026 char *kwnames[] = {
21027 NULL
21028 };
21029
21030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Yield",kwnames)) goto fail;
21031 {
21032 PyThreadState* __tstate = wxPyBeginAllowThreads();
21033 result = (bool)wxYield();
21034
21035 wxPyEndAllowThreads(__tstate);
21036 if (PyErr_Occurred()) SWIG_fail;
21037 }
21038 {
21039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21040 }
21041 return resultobj;
21042 fail:
21043 return NULL;
21044}
21045
21046
c32bde28 21047static PyObject *_wrap_YieldIfNeeded(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21048 PyObject *resultobj;
21049 bool result;
21050 char *kwnames[] = {
21051 NULL
21052 };
21053
21054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":YieldIfNeeded",kwnames)) goto fail;
21055 {
21056 PyThreadState* __tstate = wxPyBeginAllowThreads();
21057 result = (bool)wxYieldIfNeeded();
21058
21059 wxPyEndAllowThreads(__tstate);
21060 if (PyErr_Occurred()) SWIG_fail;
21061 }
21062 {
21063 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21064 }
21065 return resultobj;
21066 fail:
21067 return NULL;
21068}
21069
21070
c32bde28 21071static PyObject *_wrap_SafeYield(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21072 PyObject *resultobj;
21073 wxWindow *arg1 = (wxWindow *) NULL ;
21074 bool arg2 = (bool) False ;
21075 bool result;
21076 PyObject * obj0 = 0 ;
21077 PyObject * obj1 = 0 ;
21078 char *kwnames[] = {
21079 (char *) "win",(char *) "onlyIfNeeded", NULL
21080 };
21081
21082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) goto fail;
21083 if (obj0) {
21084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21086 }
21087 if (obj1) {
c32bde28 21088 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
21089 if (PyErr_Occurred()) SWIG_fail;
21090 }
21091 {
21092 PyThreadState* __tstate = wxPyBeginAllowThreads();
21093 result = (bool)wxSafeYield(arg1,arg2);
21094
21095 wxPyEndAllowThreads(__tstate);
21096 if (PyErr_Occurred()) SWIG_fail;
21097 }
21098 {
21099 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21100 }
21101 return resultobj;
21102 fail:
21103 return NULL;
21104}
21105
21106
c32bde28 21107static PyObject *_wrap_WakeUpIdle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21108 PyObject *resultobj;
21109 char *kwnames[] = {
21110 NULL
21111 };
21112
21113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpIdle",kwnames)) goto fail;
21114 {
21115 PyThreadState* __tstate = wxPyBeginAllowThreads();
21116 wxWakeUpIdle();
21117
21118 wxPyEndAllowThreads(__tstate);
21119 if (PyErr_Occurred()) SWIG_fail;
21120 }
21121 Py_INCREF(Py_None); resultobj = Py_None;
21122 return resultobj;
21123 fail:
21124 return NULL;
21125}
21126
21127
c32bde28 21128static PyObject *_wrap_PostEvent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21129 PyObject *resultobj;
21130 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
21131 wxEvent *arg2 = 0 ;
21132 PyObject * obj0 = 0 ;
21133 PyObject * obj1 = 0 ;
21134 char *kwnames[] = {
21135 (char *) "dest",(char *) "event", NULL
21136 };
21137
21138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) goto fail;
21139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
21140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21141 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent,
21142 SWIG_POINTER_EXCEPTION | 0)) == -1)
21143 SWIG_fail;
21144 if (arg2 == NULL) {
21145 PyErr_SetString(PyExc_TypeError,"null reference");
21146 SWIG_fail;
21147 }
21148 {
21149 PyThreadState* __tstate = wxPyBeginAllowThreads();
21150 wxPostEvent(arg1,*arg2);
21151
21152 wxPyEndAllowThreads(__tstate);
21153 if (PyErr_Occurred()) SWIG_fail;
21154 }
21155 Py_INCREF(Py_None); resultobj = Py_None;
21156 return resultobj;
21157 fail:
21158 return NULL;
21159}
21160
21161
c32bde28 21162static PyObject *_wrap_App_CleanUp(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21163 PyObject *resultobj;
21164 char *kwnames[] = {
21165 NULL
21166 };
21167
21168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":App_CleanUp",kwnames)) goto fail;
21169 {
21170 PyThreadState* __tstate = wxPyBeginAllowThreads();
21171 wxApp_CleanUp();
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
c32bde28 21183static PyObject *_wrap_GetApp(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21184 PyObject *resultobj;
21185 wxPyApp *result;
21186 char *kwnames[] = {
21187 NULL
21188 };
21189
21190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetApp",kwnames)) goto fail;
21191 {
21192 PyThreadState* __tstate = wxPyBeginAllowThreads();
caef1a4d 21193 result = (wxPyApp *)wxPyGetApp();
d55e5bfc
RD
21194
21195 wxPyEndAllowThreads(__tstate);
21196 if (PyErr_Occurred()) SWIG_fail;
21197 }
21198 {
412d302d 21199 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
21200 }
21201 return resultobj;
21202 fail:
21203 return NULL;
21204}
21205
21206
c32bde28 21207static PyObject *_wrap_new_AcceleratorEntry(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21208 PyObject *resultobj;
21209 int arg1 = (int) 0 ;
21210 int arg2 = (int) 0 ;
21211 int arg3 = (int) 0 ;
d55e5bfc
RD
21212 wxAcceleratorEntry *result;
21213 PyObject * obj0 = 0 ;
21214 PyObject * obj1 = 0 ;
21215 PyObject * obj2 = 0 ;
d55e5bfc 21216 char *kwnames[] = {
c24da6d6 21217 (char *) "flags",(char *) "keyCode",(char *) "cmdID", NULL
d55e5bfc
RD
21218 };
21219
c24da6d6 21220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_AcceleratorEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc 21221 if (obj0) {
c32bde28 21222 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
21223 if (PyErr_Occurred()) SWIG_fail;
21224 }
21225 if (obj1) {
c32bde28 21226 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
21227 if (PyErr_Occurred()) SWIG_fail;
21228 }
21229 if (obj2) {
c32bde28 21230 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
21231 if (PyErr_Occurred()) SWIG_fail;
21232 }
d55e5bfc
RD
21233 {
21234 PyThreadState* __tstate = wxPyBeginAllowThreads();
c24da6d6 21235 result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3);
d55e5bfc
RD
21236
21237 wxPyEndAllowThreads(__tstate);
21238 if (PyErr_Occurred()) SWIG_fail;
21239 }
21240 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 1);
21241 return resultobj;
21242 fail:
21243 return NULL;
21244}
21245
21246
c32bde28 21247static PyObject *_wrap_delete_AcceleratorEntry(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21248 PyObject *resultobj;
21249 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
21250 PyObject * obj0 = 0 ;
21251 char *kwnames[] = {
21252 (char *) "self", NULL
21253 };
21254
21255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorEntry",kwnames,&obj0)) goto fail;
21256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry,
21257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21258 {
21259 PyThreadState* __tstate = wxPyBeginAllowThreads();
21260 delete arg1;
21261
21262 wxPyEndAllowThreads(__tstate);
21263 if (PyErr_Occurred()) SWIG_fail;
21264 }
21265 Py_INCREF(Py_None); resultobj = Py_None;
21266 return resultobj;
21267 fail:
21268 return NULL;
21269}
21270
21271
c32bde28 21272static PyObject *_wrap_AcceleratorEntry_Set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21273 PyObject *resultobj;
21274 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
21275 int arg2 ;
21276 int arg3 ;
21277 int arg4 ;
d55e5bfc
RD
21278 PyObject * obj0 = 0 ;
21279 PyObject * obj1 = 0 ;
21280 PyObject * obj2 = 0 ;
21281 PyObject * obj3 = 0 ;
d55e5bfc 21282 char *kwnames[] = {
c24da6d6 21283 (char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd", NULL
d55e5bfc
RD
21284 };
21285
c24da6d6 21286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AcceleratorEntry_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
21287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry,
21288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 21289 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 21290 if (PyErr_Occurred()) SWIG_fail;
c32bde28 21291 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 21292 if (PyErr_Occurred()) SWIG_fail;
c32bde28 21293 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 21294 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
21295 {
21296 PyThreadState* __tstate = wxPyBeginAllowThreads();
c24da6d6 21297 (arg1)->Set(arg2,arg3,arg4);
d55e5bfc
RD
21298
21299 wxPyEndAllowThreads(__tstate);
21300 if (PyErr_Occurred()) SWIG_fail;
21301 }
21302 Py_INCREF(Py_None); resultobj = Py_None;
21303 return resultobj;
21304 fail:
21305 return NULL;
21306}
21307
21308
c32bde28 21309static PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21310 PyObject *resultobj;
21311 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
21312 int result;
21313 PyObject * obj0 = 0 ;
21314 char *kwnames[] = {
21315 (char *) "self", NULL
21316 };
21317
21318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetFlags",kwnames,&obj0)) goto fail;
21319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry,
21320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21321 {
21322 PyThreadState* __tstate = wxPyBeginAllowThreads();
21323 result = (int)(arg1)->GetFlags();
21324
21325 wxPyEndAllowThreads(__tstate);
21326 if (PyErr_Occurred()) SWIG_fail;
21327 }
c32bde28 21328 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
21329 return resultobj;
21330 fail:
21331 return NULL;
21332}
21333
21334
c32bde28 21335static PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21336 PyObject *resultobj;
21337 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
21338 int result;
21339 PyObject * obj0 = 0 ;
21340 char *kwnames[] = {
21341 (char *) "self", NULL
21342 };
21343
21344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetKeyCode",kwnames,&obj0)) goto fail;
21345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry,
21346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21347 {
21348 PyThreadState* __tstate = wxPyBeginAllowThreads();
21349 result = (int)(arg1)->GetKeyCode();
21350
21351 wxPyEndAllowThreads(__tstate);
21352 if (PyErr_Occurred()) SWIG_fail;
21353 }
c32bde28 21354 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
21355 return resultobj;
21356 fail:
21357 return NULL;
21358}
21359
21360
c32bde28 21361static PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21362 PyObject *resultobj;
21363 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
21364 int result;
21365 PyObject * obj0 = 0 ;
21366 char *kwnames[] = {
21367 (char *) "self", NULL
21368 };
21369
21370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetCommand",kwnames,&obj0)) goto fail;
21371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry,
21372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21373 {
21374 PyThreadState* __tstate = wxPyBeginAllowThreads();
21375 result = (int)(arg1)->GetCommand();
21376
21377 wxPyEndAllowThreads(__tstate);
21378 if (PyErr_Occurred()) SWIG_fail;
21379 }
c32bde28 21380 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
21381 return resultobj;
21382 fail:
21383 return NULL;
21384}
21385
21386
c32bde28 21387static PyObject * AcceleratorEntry_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
21388 PyObject *obj;
21389 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21390 SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorEntry, obj);
21391 Py_INCREF(obj);
21392 return Py_BuildValue((char *)"");
21393}
c32bde28 21394static PyObject *_wrap_new_AcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21395 PyObject *resultobj;
21396 int arg1 ;
21397 wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ;
21398 wxAcceleratorTable *result;
21399 PyObject * obj0 = 0 ;
21400 char *kwnames[] = {
21401 (char *) "n", NULL
21402 };
21403
21404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) goto fail;
21405 {
21406 arg2 = wxAcceleratorEntry_LIST_helper(obj0);
21407 if (arg2) arg1 = PyList_Size(obj0);
21408 else arg1 = 0;
21409 }
21410 {
21411 PyThreadState* __tstate = wxPyBeginAllowThreads();
21412 result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2);
21413
21414 wxPyEndAllowThreads(__tstate);
21415 if (PyErr_Occurred()) SWIG_fail;
21416 }
21417 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 1);
21418 {
21419 delete [] arg2;
21420 }
21421 return resultobj;
21422 fail:
21423 {
21424 delete [] arg2;
21425 }
21426 return NULL;
21427}
21428
21429
c32bde28 21430static PyObject *_wrap_delete_AcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21431 PyObject *resultobj;
21432 wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ;
21433 PyObject * obj0 = 0 ;
21434 char *kwnames[] = {
21435 (char *) "self", NULL
21436 };
21437
21438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorTable",kwnames,&obj0)) goto fail;
21439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable,
21440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21441 {
21442 PyThreadState* __tstate = wxPyBeginAllowThreads();
21443 delete arg1;
21444
21445 wxPyEndAllowThreads(__tstate);
21446 if (PyErr_Occurred()) SWIG_fail;
21447 }
21448 Py_INCREF(Py_None); resultobj = Py_None;
21449 return resultobj;
21450 fail:
21451 return NULL;
21452}
21453
21454
c32bde28 21455static PyObject *_wrap_AcceleratorTable_Ok(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21456 PyObject *resultobj;
21457 wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ;
21458 bool result;
21459 PyObject * obj0 = 0 ;
21460 char *kwnames[] = {
21461 (char *) "self", NULL
21462 };
21463
21464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorTable_Ok",kwnames,&obj0)) goto fail;
21465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable,
21466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21467 {
21468 PyThreadState* __tstate = wxPyBeginAllowThreads();
21469 result = (bool)((wxAcceleratorTable const *)arg1)->Ok();
21470
21471 wxPyEndAllowThreads(__tstate);
21472 if (PyErr_Occurred()) SWIG_fail;
21473 }
21474 {
21475 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21476 }
21477 return resultobj;
21478 fail:
21479 return NULL;
21480}
21481
21482
c32bde28 21483static PyObject * AcceleratorTable_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
21484 PyObject *obj;
21485 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21486 SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorTable, obj);
21487 Py_INCREF(obj);
21488 return Py_BuildValue((char *)"");
21489}
c32bde28 21490static int _wrap_NullAcceleratorTable_set(PyObject *) {
d55e5bfc
RD
21491 PyErr_SetString(PyExc_TypeError,"Variable NullAcceleratorTable is read-only.");
21492 return 1;
21493}
21494
21495
21496static PyObject *_wrap_NullAcceleratorTable_get() {
21497 PyObject *pyobj;
21498
21499 pyobj = SWIG_NewPointerObj((void *)(&wxNullAcceleratorTable), SWIGTYPE_p_wxAcceleratorTable, 0);
21500 return pyobj;
21501}
21502
21503
c32bde28 21504static PyObject *_wrap_GetAccelFromString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21505 PyObject *resultobj;
21506 wxString *arg1 = 0 ;
21507 wxAcceleratorEntry *result;
21508 bool temp1 = False ;
21509 PyObject * obj0 = 0 ;
21510 char *kwnames[] = {
21511 (char *) "label", NULL
21512 };
21513
21514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) goto fail;
21515 {
21516 arg1 = wxString_in_helper(obj0);
21517 if (arg1 == NULL) SWIG_fail;
21518 temp1 = True;
21519 }
21520 {
21521 PyThreadState* __tstate = wxPyBeginAllowThreads();
21522 result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1);
21523
21524 wxPyEndAllowThreads(__tstate);
21525 if (PyErr_Occurred()) SWIG_fail;
21526 }
21527 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0);
21528 {
21529 if (temp1)
21530 delete arg1;
21531 }
21532 return resultobj;
21533 fail:
21534 {
21535 if (temp1)
21536 delete arg1;
21537 }
21538 return NULL;
21539}
21540
21541
c32bde28 21542static int _wrap_PanelNameStr_set(PyObject *) {
d55e5bfc
RD
21543 PyErr_SetString(PyExc_TypeError,"Variable PanelNameStr is read-only.");
21544 return 1;
21545}
21546
21547
21548static PyObject *_wrap_PanelNameStr_get() {
21549 PyObject *pyobj;
21550
21551 {
21552#if wxUSE_UNICODE
21553 pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len());
21554#else
21555 pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len());
21556#endif
21557 }
21558 return pyobj;
21559}
21560
21561
c32bde28 21562static PyObject *_wrap_new_VisualAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21563 PyObject *resultobj;
21564 wxVisualAttributes *result;
21565 char *kwnames[] = {
21566 NULL
21567 };
21568
21569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_VisualAttributes",kwnames)) goto fail;
21570 {
21571 PyThreadState* __tstate = wxPyBeginAllowThreads();
21572 result = (wxVisualAttributes *)new_wxVisualAttributes();
21573
21574 wxPyEndAllowThreads(__tstate);
21575 if (PyErr_Occurred()) SWIG_fail;
21576 }
21577 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVisualAttributes, 1);
21578 return resultobj;
21579 fail:
21580 return NULL;
21581}
21582
21583
c32bde28 21584static PyObject *_wrap_delete_VisualAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21585 PyObject *resultobj;
21586 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
21587 PyObject * obj0 = 0 ;
21588 char *kwnames[] = {
21589 (char *) "self", NULL
21590 };
21591
21592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VisualAttributes",kwnames,&obj0)) goto fail;
21593 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
21594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21595 {
21596 PyThreadState* __tstate = wxPyBeginAllowThreads();
21597 delete_wxVisualAttributes(arg1);
21598
21599 wxPyEndAllowThreads(__tstate);
21600 if (PyErr_Occurred()) SWIG_fail;
21601 }
21602 Py_INCREF(Py_None); resultobj = Py_None;
21603 return resultobj;
21604 fail:
21605 return NULL;
21606}
21607
21608
c32bde28 21609static PyObject *_wrap_VisualAttributes_font_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21610 PyObject *resultobj;
21611 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
21612 wxFont *arg2 = (wxFont *) 0 ;
21613 PyObject * obj0 = 0 ;
21614 PyObject * obj1 = 0 ;
21615 char *kwnames[] = {
21616 (char *) "self",(char *) "font", NULL
21617 };
21618
21619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_font_set",kwnames,&obj0,&obj1)) goto fail;
21620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
21621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21622 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
21623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21624 if (arg1) (arg1)->font = *arg2;
21625
21626 Py_INCREF(Py_None); resultobj = Py_None;
21627 return resultobj;
21628 fail:
21629 return NULL;
21630}
21631
21632
c32bde28 21633static PyObject *_wrap_VisualAttributes_font_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21634 PyObject *resultobj;
21635 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
21636 wxFont *result;
21637 PyObject * obj0 = 0 ;
21638 char *kwnames[] = {
21639 (char *) "self", NULL
21640 };
21641
21642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_font_get",kwnames,&obj0)) goto fail;
21643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
21644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21645 result = (wxFont *)& ((arg1)->font);
21646
21647 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
21648 return resultobj;
21649 fail:
21650 return NULL;
21651}
21652
21653
c32bde28 21654static PyObject *_wrap_VisualAttributes_colFg_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21655 PyObject *resultobj;
21656 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
21657 wxColour *arg2 = (wxColour *) 0 ;
21658 PyObject * obj0 = 0 ;
21659 PyObject * obj1 = 0 ;
21660 char *kwnames[] = {
21661 (char *) "self",(char *) "colFg", NULL
21662 };
21663
21664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colFg_set",kwnames,&obj0,&obj1)) goto fail;
21665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
21666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21667 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour,
21668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21669 if (arg1) (arg1)->colFg = *arg2;
21670
21671 Py_INCREF(Py_None); resultobj = Py_None;
21672 return resultobj;
21673 fail:
21674 return NULL;
21675}
21676
21677
c32bde28 21678static PyObject *_wrap_VisualAttributes_colFg_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21679 PyObject *resultobj;
21680 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
21681 wxColour *result;
21682 PyObject * obj0 = 0 ;
21683 char *kwnames[] = {
21684 (char *) "self", NULL
21685 };
21686
21687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colFg_get",kwnames,&obj0)) goto fail;
21688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
21689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21690 result = (wxColour *)& ((arg1)->colFg);
21691
21692 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
21693 return resultobj;
21694 fail:
21695 return NULL;
21696}
21697
21698
c32bde28 21699static PyObject *_wrap_VisualAttributes_colBg_set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21700 PyObject *resultobj;
21701 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
21702 wxColour *arg2 = (wxColour *) 0 ;
21703 PyObject * obj0 = 0 ;
21704 PyObject * obj1 = 0 ;
21705 char *kwnames[] = {
21706 (char *) "self",(char *) "colBg", NULL
21707 };
21708
21709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colBg_set",kwnames,&obj0,&obj1)) goto fail;
21710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
21711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21712 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour,
21713 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21714 if (arg1) (arg1)->colBg = *arg2;
21715
21716 Py_INCREF(Py_None); resultobj = Py_None;
21717 return resultobj;
21718 fail:
21719 return NULL;
21720}
21721
21722
c32bde28 21723static PyObject *_wrap_VisualAttributes_colBg_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21724 PyObject *resultobj;
21725 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
21726 wxColour *result;
21727 PyObject * obj0 = 0 ;
21728 char *kwnames[] = {
21729 (char *) "self", NULL
21730 };
21731
21732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colBg_get",kwnames,&obj0)) goto fail;
21733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
21734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21735 result = (wxColour *)& ((arg1)->colBg);
21736
21737 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
21738 return resultobj;
21739 fail:
21740 return NULL;
21741}
21742
21743
c32bde28 21744static PyObject * VisualAttributes_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
21745 PyObject *obj;
21746 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21747 SWIG_TypeClientData(SWIGTYPE_p_wxVisualAttributes, obj);
21748 Py_INCREF(obj);
21749 return Py_BuildValue((char *)"");
21750}
c32bde28 21751static PyObject *_wrap_new_Window(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21752 PyObject *resultobj;
21753 wxWindow *arg1 = (wxWindow *) 0 ;
21754 int arg2 = (int) (int)-1 ;
21755 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21756 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21757 wxSize const &arg4_defvalue = wxDefaultSize ;
21758 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21759 long arg5 = (long) 0 ;
21760 wxString const &arg6_defvalue = wxPyPanelNameStr ;
21761 wxString *arg6 = (wxString *) &arg6_defvalue ;
21762 wxWindow *result;
21763 wxPoint temp3 ;
21764 wxSize temp4 ;
21765 bool temp6 = False ;
21766 PyObject * obj0 = 0 ;
21767 PyObject * obj1 = 0 ;
21768 PyObject * obj2 = 0 ;
21769 PyObject * obj3 = 0 ;
21770 PyObject * obj4 = 0 ;
21771 PyObject * obj5 = 0 ;
21772 char *kwnames[] = {
21773 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21774 };
21775
21776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Window",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
21777 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21778 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21779 if (obj1) {
c32bde28 21780 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
21781 if (PyErr_Occurred()) SWIG_fail;
21782 }
21783 if (obj2) {
21784 {
21785 arg3 = &temp3;
21786 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21787 }
21788 }
21789 if (obj3) {
21790 {
21791 arg4 = &temp4;
21792 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21793 }
21794 }
21795 if (obj4) {
c32bde28 21796 arg5 = (long)SWIG_As_long(obj4);
d55e5bfc
RD
21797 if (PyErr_Occurred()) SWIG_fail;
21798 }
21799 if (obj5) {
21800 {
21801 arg6 = wxString_in_helper(obj5);
21802 if (arg6 == NULL) SWIG_fail;
21803 temp6 = True;
21804 }
21805 }
21806 {
0439c23b 21807 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
21808 PyThreadState* __tstate = wxPyBeginAllowThreads();
21809 result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21810
21811 wxPyEndAllowThreads(__tstate);
110da5b0 21812 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 21813 }
b0f7404b 21814 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindow, 1);
d55e5bfc
RD
21815 {
21816 if (temp6)
21817 delete arg6;
21818 }
21819 return resultobj;
21820 fail:
21821 {
21822 if (temp6)
21823 delete arg6;
21824 }
21825 return NULL;
21826}
21827
21828
c32bde28 21829static PyObject *_wrap_new_PreWindow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21830 PyObject *resultobj;
21831 wxWindow *result;
21832 char *kwnames[] = {
21833 NULL
21834 };
21835
21836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWindow",kwnames)) goto fail;
21837 {
0439c23b 21838 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
21839 PyThreadState* __tstate = wxPyBeginAllowThreads();
21840 result = (wxWindow *)new wxWindow();
21841
21842 wxPyEndAllowThreads(__tstate);
110da5b0 21843 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 21844 }
b0f7404b 21845 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindow, 1);
d55e5bfc
RD
21846 return resultobj;
21847 fail:
21848 return NULL;
21849}
21850
21851
c32bde28 21852static PyObject *_wrap_Window_Create(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21853 PyObject *resultobj;
21854 wxWindow *arg1 = (wxWindow *) 0 ;
21855 wxWindow *arg2 = (wxWindow *) 0 ;
21856 int arg3 = (int) (int)-1 ;
21857 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21858 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21859 wxSize const &arg5_defvalue = wxDefaultSize ;
21860 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21861 long arg6 = (long) 0 ;
21862 wxString const &arg7_defvalue = wxPyPanelNameStr ;
21863 wxString *arg7 = (wxString *) &arg7_defvalue ;
21864 bool result;
21865 wxPoint temp4 ;
21866 wxSize temp5 ;
21867 bool temp7 = False ;
21868 PyObject * obj0 = 0 ;
21869 PyObject * obj1 = 0 ;
21870 PyObject * obj2 = 0 ;
21871 PyObject * obj3 = 0 ;
21872 PyObject * obj4 = 0 ;
21873 PyObject * obj5 = 0 ;
21874 PyObject * obj6 = 0 ;
21875 char *kwnames[] = {
21876 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21877 };
21878
21879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Window_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
21880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21882 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
21883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21884 if (obj2) {
c32bde28 21885 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
21886 if (PyErr_Occurred()) SWIG_fail;
21887 }
21888 if (obj3) {
21889 {
21890 arg4 = &temp4;
21891 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21892 }
21893 }
21894 if (obj4) {
21895 {
21896 arg5 = &temp5;
21897 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21898 }
21899 }
21900 if (obj5) {
c32bde28 21901 arg6 = (long)SWIG_As_long(obj5);
d55e5bfc
RD
21902 if (PyErr_Occurred()) SWIG_fail;
21903 }
21904 if (obj6) {
21905 {
21906 arg7 = wxString_in_helper(obj6);
21907 if (arg7 == NULL) SWIG_fail;
21908 temp7 = True;
21909 }
21910 }
21911 {
21912 PyThreadState* __tstate = wxPyBeginAllowThreads();
21913 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21914
21915 wxPyEndAllowThreads(__tstate);
21916 if (PyErr_Occurred()) SWIG_fail;
21917 }
21918 {
21919 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21920 }
21921 {
21922 if (temp7)
21923 delete arg7;
21924 }
21925 return resultobj;
21926 fail:
21927 {
21928 if (temp7)
21929 delete arg7;
21930 }
21931 return NULL;
21932}
21933
21934
c32bde28 21935static PyObject *_wrap_Window_Close(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21936 PyObject *resultobj;
21937 wxWindow *arg1 = (wxWindow *) 0 ;
21938 bool arg2 = (bool) False ;
21939 bool result;
21940 PyObject * obj0 = 0 ;
21941 PyObject * obj1 = 0 ;
21942 char *kwnames[] = {
21943 (char *) "self",(char *) "force", NULL
21944 };
21945
21946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",kwnames,&obj0,&obj1)) goto fail;
21947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21949 if (obj1) {
c32bde28 21950 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
21951 if (PyErr_Occurred()) SWIG_fail;
21952 }
21953 {
21954 PyThreadState* __tstate = wxPyBeginAllowThreads();
21955 result = (bool)(arg1)->Close(arg2);
21956
21957 wxPyEndAllowThreads(__tstate);
21958 if (PyErr_Occurred()) SWIG_fail;
21959 }
21960 {
21961 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21962 }
21963 return resultobj;
21964 fail:
21965 return NULL;
21966}
21967
21968
c32bde28 21969static PyObject *_wrap_Window_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21970 PyObject *resultobj;
21971 wxWindow *arg1 = (wxWindow *) 0 ;
21972 bool result;
21973 PyObject * obj0 = 0 ;
21974 char *kwnames[] = {
21975 (char *) "self", NULL
21976 };
21977
21978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Destroy",kwnames,&obj0)) goto fail;
21979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21981 {
21982 PyThreadState* __tstate = wxPyBeginAllowThreads();
21983 result = (bool)(arg1)->Destroy();
21984
21985 wxPyEndAllowThreads(__tstate);
21986 if (PyErr_Occurred()) SWIG_fail;
21987 }
21988 {
21989 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21990 }
21991 return resultobj;
21992 fail:
21993 return NULL;
21994}
21995
21996
c32bde28 21997static PyObject *_wrap_Window_DestroyChildren(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
21998 PyObject *resultobj;
21999 wxWindow *arg1 = (wxWindow *) 0 ;
22000 bool result;
22001 PyObject * obj0 = 0 ;
22002 char *kwnames[] = {
22003 (char *) "self", NULL
22004 };
22005
22006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DestroyChildren",kwnames,&obj0)) goto fail;
22007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22009 {
22010 PyThreadState* __tstate = wxPyBeginAllowThreads();
22011 result = (bool)(arg1)->DestroyChildren();
22012
22013 wxPyEndAllowThreads(__tstate);
22014 if (PyErr_Occurred()) SWIG_fail;
22015 }
22016 {
22017 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22018 }
22019 return resultobj;
22020 fail:
22021 return NULL;
22022}
22023
22024
c32bde28 22025static PyObject *_wrap_Window_IsBeingDeleted(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22026 PyObject *resultobj;
22027 wxWindow *arg1 = (wxWindow *) 0 ;
22028 bool result;
22029 PyObject * obj0 = 0 ;
22030 char *kwnames[] = {
22031 (char *) "self", NULL
22032 };
22033
22034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsBeingDeleted",kwnames,&obj0)) goto fail;
22035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22037 {
22038 PyThreadState* __tstate = wxPyBeginAllowThreads();
22039 result = (bool)((wxWindow const *)arg1)->IsBeingDeleted();
22040
22041 wxPyEndAllowThreads(__tstate);
22042 if (PyErr_Occurred()) SWIG_fail;
22043 }
22044 {
22045 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22046 }
22047 return resultobj;
22048 fail:
22049 return NULL;
22050}
22051
22052
c32bde28 22053static PyObject *_wrap_Window_SetTitle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22054 PyObject *resultobj;
22055 wxWindow *arg1 = (wxWindow *) 0 ;
22056 wxString *arg2 = 0 ;
22057 bool temp2 = False ;
22058 PyObject * obj0 = 0 ;
22059 PyObject * obj1 = 0 ;
22060 char *kwnames[] = {
22061 (char *) "self",(char *) "title", NULL
22062 };
22063
22064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTitle",kwnames,&obj0,&obj1)) goto fail;
22065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22067 {
22068 arg2 = wxString_in_helper(obj1);
22069 if (arg2 == NULL) SWIG_fail;
22070 temp2 = True;
22071 }
22072 {
22073 PyThreadState* __tstate = wxPyBeginAllowThreads();
22074 (arg1)->SetTitle((wxString const &)*arg2);
22075
22076 wxPyEndAllowThreads(__tstate);
22077 if (PyErr_Occurred()) SWIG_fail;
22078 }
22079 Py_INCREF(Py_None); resultobj = Py_None;
22080 {
22081 if (temp2)
22082 delete arg2;
22083 }
22084 return resultobj;
22085 fail:
22086 {
22087 if (temp2)
22088 delete arg2;
22089 }
22090 return NULL;
22091}
22092
22093
c32bde28 22094static PyObject *_wrap_Window_GetTitle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22095 PyObject *resultobj;
22096 wxWindow *arg1 = (wxWindow *) 0 ;
22097 wxString result;
22098 PyObject * obj0 = 0 ;
22099 char *kwnames[] = {
22100 (char *) "self", NULL
22101 };
22102
22103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetTitle",kwnames,&obj0)) goto fail;
22104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22106 {
22107 PyThreadState* __tstate = wxPyBeginAllowThreads();
22108 result = ((wxWindow const *)arg1)->GetTitle();
22109
22110 wxPyEndAllowThreads(__tstate);
22111 if (PyErr_Occurred()) SWIG_fail;
22112 }
22113 {
22114#if wxUSE_UNICODE
22115 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22116#else
22117 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22118#endif
22119 }
22120 return resultobj;
22121 fail:
22122 return NULL;
22123}
22124
22125
c32bde28 22126static PyObject *_wrap_Window_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22127 PyObject *resultobj;
22128 wxWindow *arg1 = (wxWindow *) 0 ;
22129 wxString *arg2 = 0 ;
22130 bool temp2 = False ;
22131 PyObject * obj0 = 0 ;
22132 PyObject * obj1 = 0 ;
22133 char *kwnames[] = {
22134 (char *) "self",(char *) "label", NULL
22135 };
22136
22137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",kwnames,&obj0,&obj1)) goto fail;
22138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22140 {
22141 arg2 = wxString_in_helper(obj1);
22142 if (arg2 == NULL) SWIG_fail;
22143 temp2 = True;
22144 }
22145 {
22146 PyThreadState* __tstate = wxPyBeginAllowThreads();
22147 (arg1)->SetLabel((wxString const &)*arg2);
22148
22149 wxPyEndAllowThreads(__tstate);
22150 if (PyErr_Occurred()) SWIG_fail;
22151 }
22152 Py_INCREF(Py_None); resultobj = Py_None;
22153 {
22154 if (temp2)
22155 delete arg2;
22156 }
22157 return resultobj;
22158 fail:
22159 {
22160 if (temp2)
22161 delete arg2;
22162 }
22163 return NULL;
22164}
22165
22166
c32bde28 22167static PyObject *_wrap_Window_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22168 PyObject *resultobj;
22169 wxWindow *arg1 = (wxWindow *) 0 ;
22170 wxString result;
22171 PyObject * obj0 = 0 ;
22172 char *kwnames[] = {
22173 (char *) "self", NULL
22174 };
22175
22176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetLabel",kwnames,&obj0)) goto fail;
22177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22179 {
22180 PyThreadState* __tstate = wxPyBeginAllowThreads();
22181 result = ((wxWindow const *)arg1)->GetLabel();
22182
22183 wxPyEndAllowThreads(__tstate);
22184 if (PyErr_Occurred()) SWIG_fail;
22185 }
22186 {
22187#if wxUSE_UNICODE
22188 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22189#else
22190 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22191#endif
22192 }
22193 return resultobj;
22194 fail:
22195 return NULL;
22196}
22197
22198
c32bde28 22199static PyObject *_wrap_Window_SetName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22200 PyObject *resultobj;
22201 wxWindow *arg1 = (wxWindow *) 0 ;
22202 wxString *arg2 = 0 ;
22203 bool temp2 = False ;
22204 PyObject * obj0 = 0 ;
22205 PyObject * obj1 = 0 ;
22206 char *kwnames[] = {
22207 (char *) "self",(char *) "name", NULL
22208 };
22209
22210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) goto fail;
22211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22213 {
22214 arg2 = wxString_in_helper(obj1);
22215 if (arg2 == NULL) SWIG_fail;
22216 temp2 = True;
22217 }
22218 {
22219 PyThreadState* __tstate = wxPyBeginAllowThreads();
22220 (arg1)->SetName((wxString const &)*arg2);
22221
22222 wxPyEndAllowThreads(__tstate);
22223 if (PyErr_Occurred()) SWIG_fail;
22224 }
22225 Py_INCREF(Py_None); resultobj = Py_None;
22226 {
22227 if (temp2)
22228 delete arg2;
22229 }
22230 return resultobj;
22231 fail:
22232 {
22233 if (temp2)
22234 delete arg2;
22235 }
22236 return NULL;
22237}
22238
22239
c32bde28 22240static PyObject *_wrap_Window_GetName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22241 PyObject *resultobj;
22242 wxWindow *arg1 = (wxWindow *) 0 ;
22243 wxString result;
22244 PyObject * obj0 = 0 ;
22245 char *kwnames[] = {
22246 (char *) "self", NULL
22247 };
22248
22249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetName",kwnames,&obj0)) goto fail;
22250 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22252 {
22253 PyThreadState* __tstate = wxPyBeginAllowThreads();
22254 result = ((wxWindow const *)arg1)->GetName();
22255
22256 wxPyEndAllowThreads(__tstate);
22257 if (PyErr_Occurred()) SWIG_fail;
22258 }
22259 {
22260#if wxUSE_UNICODE
22261 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22262#else
22263 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22264#endif
22265 }
22266 return resultobj;
22267 fail:
22268 return NULL;
22269}
22270
22271
c32bde28 22272static PyObject *_wrap_Window_SetWindowVariant(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22273 PyObject *resultobj;
22274 wxWindow *arg1 = (wxWindow *) 0 ;
22275 int arg2 ;
22276 PyObject * obj0 = 0 ;
22277 PyObject * obj1 = 0 ;
22278 char *kwnames[] = {
22279 (char *) "self",(char *) "variant", NULL
22280 };
22281
22282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowVariant",kwnames,&obj0,&obj1)) goto fail;
22283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 22285 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
22286 if (PyErr_Occurred()) SWIG_fail;
22287 {
22288 PyThreadState* __tstate = wxPyBeginAllowThreads();
22289 (arg1)->SetWindowVariant((wxWindowVariant )arg2);
22290
22291 wxPyEndAllowThreads(__tstate);
22292 if (PyErr_Occurred()) SWIG_fail;
22293 }
22294 Py_INCREF(Py_None); resultobj = Py_None;
22295 return resultobj;
22296 fail:
22297 return NULL;
22298}
22299
22300
c32bde28 22301static PyObject *_wrap_Window_GetWindowVariant(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22302 PyObject *resultobj;
22303 wxWindow *arg1 = (wxWindow *) 0 ;
22304 int result;
22305 PyObject * obj0 = 0 ;
22306 char *kwnames[] = {
22307 (char *) "self", NULL
22308 };
22309
22310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowVariant",kwnames,&obj0)) goto fail;
22311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22313 {
22314 PyThreadState* __tstate = wxPyBeginAllowThreads();
22315 result = (int)((wxWindow const *)arg1)->GetWindowVariant();
22316
22317 wxPyEndAllowThreads(__tstate);
22318 if (PyErr_Occurred()) SWIG_fail;
22319 }
c32bde28 22320 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
22321 return resultobj;
22322 fail:
22323 return NULL;
22324}
22325
22326
c32bde28 22327static PyObject *_wrap_Window_SetId(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22328 PyObject *resultobj;
22329 wxWindow *arg1 = (wxWindow *) 0 ;
22330 int arg2 ;
22331 PyObject * obj0 = 0 ;
22332 PyObject * obj1 = 0 ;
22333 char *kwnames[] = {
22334 (char *) "self",(char *) "winid", NULL
22335 };
22336
22337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetId",kwnames,&obj0,&obj1)) goto fail;
22338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 22340 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
22341 if (PyErr_Occurred()) SWIG_fail;
22342 {
22343 PyThreadState* __tstate = wxPyBeginAllowThreads();
22344 (arg1)->SetId(arg2);
22345
22346 wxPyEndAllowThreads(__tstate);
22347 if (PyErr_Occurred()) SWIG_fail;
22348 }
22349 Py_INCREF(Py_None); resultobj = Py_None;
22350 return resultobj;
22351 fail:
22352 return NULL;
22353}
22354
22355
c32bde28 22356static PyObject *_wrap_Window_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22357 PyObject *resultobj;
22358 wxWindow *arg1 = (wxWindow *) 0 ;
22359 int result;
22360 PyObject * obj0 = 0 ;
22361 char *kwnames[] = {
22362 (char *) "self", NULL
22363 };
22364
22365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetId",kwnames,&obj0)) goto fail;
22366 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22368 {
22369 PyThreadState* __tstate = wxPyBeginAllowThreads();
22370 result = (int)((wxWindow const *)arg1)->GetId();
22371
22372 wxPyEndAllowThreads(__tstate);
22373 if (PyErr_Occurred()) SWIG_fail;
22374 }
c32bde28 22375 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
22376 return resultobj;
22377 fail:
22378 return NULL;
22379}
22380
22381
c32bde28 22382static PyObject *_wrap_Window_NewControlId(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22383 PyObject *resultobj;
22384 int result;
22385 char *kwnames[] = {
22386 NULL
22387 };
22388
22389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_NewControlId",kwnames)) goto fail;
22390 {
22391 PyThreadState* __tstate = wxPyBeginAllowThreads();
22392 result = (int)wxWindow::NewControlId();
22393
22394 wxPyEndAllowThreads(__tstate);
22395 if (PyErr_Occurred()) SWIG_fail;
22396 }
c32bde28 22397 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
22398 return resultobj;
22399 fail:
22400 return NULL;
22401}
22402
22403
c32bde28 22404static PyObject *_wrap_Window_NextControlId(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22405 PyObject *resultobj;
22406 int arg1 ;
22407 int result;
22408 PyObject * obj0 = 0 ;
22409 char *kwnames[] = {
22410 (char *) "winid", NULL
22411 };
22412
22413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_NextControlId",kwnames,&obj0)) goto fail;
c32bde28 22414 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
22415 if (PyErr_Occurred()) SWIG_fail;
22416 {
22417 PyThreadState* __tstate = wxPyBeginAllowThreads();
22418 result = (int)wxWindow::NextControlId(arg1);
22419
22420 wxPyEndAllowThreads(__tstate);
22421 if (PyErr_Occurred()) SWIG_fail;
22422 }
c32bde28 22423 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
22424 return resultobj;
22425 fail:
22426 return NULL;
22427}
22428
22429
c32bde28 22430static PyObject *_wrap_Window_PrevControlId(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22431 PyObject *resultobj;
22432 int arg1 ;
22433 int result;
22434 PyObject * obj0 = 0 ;
22435 char *kwnames[] = {
22436 (char *) "winid", NULL
22437 };
22438
22439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PrevControlId",kwnames,&obj0)) goto fail;
c32bde28 22440 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
22441 if (PyErr_Occurred()) SWIG_fail;
22442 {
22443 PyThreadState* __tstate = wxPyBeginAllowThreads();
22444 result = (int)wxWindow::PrevControlId(arg1);
22445
22446 wxPyEndAllowThreads(__tstate);
22447 if (PyErr_Occurred()) SWIG_fail;
22448 }
c32bde28 22449 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
22450 return resultobj;
22451 fail:
22452 return NULL;
22453}
22454
22455
c32bde28 22456static PyObject *_wrap_Window_SetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22457 PyObject *resultobj;
22458 wxWindow *arg1 = (wxWindow *) 0 ;
22459 wxSize *arg2 = 0 ;
22460 wxSize temp2 ;
22461 PyObject * obj0 = 0 ;
22462 PyObject * obj1 = 0 ;
22463 char *kwnames[] = {
22464 (char *) "self",(char *) "size", NULL
22465 };
22466
22467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) goto fail;
22468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22470 {
22471 arg2 = &temp2;
22472 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
22473 }
22474 {
22475 PyThreadState* __tstate = wxPyBeginAllowThreads();
22476 (arg1)->SetSize((wxSize const &)*arg2);
22477
22478 wxPyEndAllowThreads(__tstate);
22479 if (PyErr_Occurred()) SWIG_fail;
22480 }
22481 Py_INCREF(Py_None); resultobj = Py_None;
22482 return resultobj;
22483 fail:
22484 return NULL;
22485}
22486
22487
c32bde28 22488static PyObject *_wrap_Window_SetDimensions(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22489 PyObject *resultobj;
22490 wxWindow *arg1 = (wxWindow *) 0 ;
22491 int arg2 ;
22492 int arg3 ;
22493 int arg4 ;
22494 int arg5 ;
22495 int arg6 = (int) wxSIZE_AUTO ;
22496 PyObject * obj0 = 0 ;
22497 PyObject * obj1 = 0 ;
22498 PyObject * obj2 = 0 ;
22499 PyObject * obj3 = 0 ;
22500 PyObject * obj4 = 0 ;
22501 PyObject * obj5 = 0 ;
22502 char *kwnames[] = {
22503 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
22504 };
22505
22506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetDimensions",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
22507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 22509 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 22510 if (PyErr_Occurred()) SWIG_fail;
c32bde28 22511 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 22512 if (PyErr_Occurred()) SWIG_fail;
c32bde28 22513 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 22514 if (PyErr_Occurred()) SWIG_fail;
c32bde28 22515 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
22516 if (PyErr_Occurred()) SWIG_fail;
22517 if (obj5) {
c32bde28 22518 arg6 = (int)SWIG_As_int(obj5);
d55e5bfc
RD
22519 if (PyErr_Occurred()) SWIG_fail;
22520 }
22521 {
22522 PyThreadState* __tstate = wxPyBeginAllowThreads();
22523 (arg1)->SetSize(arg2,arg3,arg4,arg5,arg6);
22524
22525 wxPyEndAllowThreads(__tstate);
22526 if (PyErr_Occurred()) SWIG_fail;
22527 }
22528 Py_INCREF(Py_None); resultobj = Py_None;
22529 return resultobj;
22530 fail:
22531 return NULL;
22532}
22533
22534
c32bde28 22535static PyObject *_wrap_Window_SetRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22536 PyObject *resultobj;
22537 wxWindow *arg1 = (wxWindow *) 0 ;
22538 wxRect *arg2 = 0 ;
22539 int arg3 = (int) wxSIZE_AUTO ;
22540 wxRect temp2 ;
22541 PyObject * obj0 = 0 ;
22542 PyObject * obj1 = 0 ;
22543 PyObject * obj2 = 0 ;
22544 char *kwnames[] = {
22545 (char *) "self",(char *) "rect",(char *) "sizeFlags", NULL
22546 };
22547
22548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
22549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22551 {
22552 arg2 = &temp2;
22553 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
22554 }
22555 if (obj2) {
c32bde28 22556 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
22557 if (PyErr_Occurred()) SWIG_fail;
22558 }
22559 {
22560 PyThreadState* __tstate = wxPyBeginAllowThreads();
22561 (arg1)->SetSize((wxRect const &)*arg2,arg3);
22562
22563 wxPyEndAllowThreads(__tstate);
22564 if (PyErr_Occurred()) SWIG_fail;
22565 }
22566 Py_INCREF(Py_None); resultobj = Py_None;
22567 return resultobj;
22568 fail:
22569 return NULL;
22570}
22571
22572
c32bde28 22573static PyObject *_wrap_Window_SetSizeWH(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22574 PyObject *resultobj;
22575 wxWindow *arg1 = (wxWindow *) 0 ;
22576 int arg2 ;
22577 int arg3 ;
22578 PyObject * obj0 = 0 ;
22579 PyObject * obj1 = 0 ;
22580 PyObject * obj2 = 0 ;
22581 char *kwnames[] = {
22582 (char *) "self",(char *) "width",(char *) "height", NULL
22583 };
22584
22585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
22586 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22587 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 22588 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 22589 if (PyErr_Occurred()) SWIG_fail;
c32bde28 22590 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
22591 if (PyErr_Occurred()) SWIG_fail;
22592 {
22593 PyThreadState* __tstate = wxPyBeginAllowThreads();
22594 (arg1)->SetSize(arg2,arg3);
22595
22596 wxPyEndAllowThreads(__tstate);
22597 if (PyErr_Occurred()) SWIG_fail;
22598 }
22599 Py_INCREF(Py_None); resultobj = Py_None;
22600 return resultobj;
22601 fail:
22602 return NULL;
22603}
22604
22605
c32bde28 22606static PyObject *_wrap_Window_Move(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22607 PyObject *resultobj;
22608 wxWindow *arg1 = (wxWindow *) 0 ;
22609 wxPoint *arg2 = 0 ;
22610 int arg3 = (int) wxSIZE_USE_EXISTING ;
22611 wxPoint temp2 ;
22612 PyObject * obj0 = 0 ;
22613 PyObject * obj1 = 0 ;
22614 PyObject * obj2 = 0 ;
22615 char *kwnames[] = {
22616 (char *) "self",(char *) "pt",(char *) "flags", NULL
22617 };
22618
22619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_Move",kwnames,&obj0,&obj1,&obj2)) goto fail;
22620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22622 {
22623 arg2 = &temp2;
22624 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22625 }
22626 if (obj2) {
c32bde28 22627 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
22628 if (PyErr_Occurred()) SWIG_fail;
22629 }
22630 {
22631 PyThreadState* __tstate = wxPyBeginAllowThreads();
22632 (arg1)->Move((wxPoint const &)*arg2,arg3);
22633
22634 wxPyEndAllowThreads(__tstate);
22635 if (PyErr_Occurred()) SWIG_fail;
22636 }
22637 Py_INCREF(Py_None); resultobj = Py_None;
22638 return resultobj;
22639 fail:
22640 return NULL;
22641}
22642
22643
c32bde28 22644static PyObject *_wrap_Window_MoveXY(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22645 PyObject *resultobj;
22646 wxWindow *arg1 = (wxWindow *) 0 ;
22647 int arg2 ;
22648 int arg3 ;
22649 int arg4 = (int) wxSIZE_USE_EXISTING ;
22650 PyObject * obj0 = 0 ;
22651 PyObject * obj1 = 0 ;
22652 PyObject * obj2 = 0 ;
22653 PyObject * obj3 = 0 ;
22654 char *kwnames[] = {
22655 (char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL
22656 };
22657
22658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_MoveXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 22661 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 22662 if (PyErr_Occurred()) SWIG_fail;
c32bde28 22663 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
22664 if (PyErr_Occurred()) SWIG_fail;
22665 if (obj3) {
c32bde28 22666 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
22667 if (PyErr_Occurred()) SWIG_fail;
22668 }
22669 {
22670 PyThreadState* __tstate = wxPyBeginAllowThreads();
22671 (arg1)->Move(arg2,arg3,arg4);
22672
22673 wxPyEndAllowThreads(__tstate);
22674 if (PyErr_Occurred()) SWIG_fail;
22675 }
22676 Py_INCREF(Py_None); resultobj = Py_None;
22677 return resultobj;
22678 fail:
22679 return NULL;
22680}
22681
22682
c32bde28 22683static PyObject *_wrap_Window_SetBestFittingSize(PyObject *, PyObject *args, PyObject *kwargs) {
f8167d6e
RD
22684 PyObject *resultobj;
22685 wxWindow *arg1 = (wxWindow *) 0 ;
22686 wxSize const &arg2_defvalue = wxDefaultSize ;
22687 wxSize *arg2 = (wxSize *) &arg2_defvalue ;
22688 wxSize temp2 ;
22689 PyObject * obj0 = 0 ;
22690 PyObject * obj1 = 0 ;
22691 char *kwnames[] = {
22692 (char *) "self",(char *) "size", NULL
22693 };
22694
22695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_SetBestFittingSize",kwnames,&obj0,&obj1)) goto fail;
22696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22698 if (obj1) {
22699 {
22700 arg2 = &temp2;
22701 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
22702 }
22703 }
22704 {
22705 PyThreadState* __tstate = wxPyBeginAllowThreads();
22706 (arg1)->SetBestFittingSize((wxSize const &)*arg2);
22707
22708 wxPyEndAllowThreads(__tstate);
22709 if (PyErr_Occurred()) SWIG_fail;
22710 }
22711 Py_INCREF(Py_None); resultobj = Py_None;
22712 return resultobj;
22713 fail:
22714 return NULL;
22715}
22716
22717
c32bde28 22718static PyObject *_wrap_Window_Raise(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22719 PyObject *resultobj;
22720 wxWindow *arg1 = (wxWindow *) 0 ;
22721 PyObject * obj0 = 0 ;
22722 char *kwnames[] = {
22723 (char *) "self", NULL
22724 };
22725
22726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Raise",kwnames,&obj0)) goto fail;
22727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22729 {
22730 PyThreadState* __tstate = wxPyBeginAllowThreads();
22731 (arg1)->Raise();
22732
22733 wxPyEndAllowThreads(__tstate);
22734 if (PyErr_Occurred()) SWIG_fail;
22735 }
22736 Py_INCREF(Py_None); resultobj = Py_None;
22737 return resultobj;
22738 fail:
22739 return NULL;
22740}
22741
22742
c32bde28 22743static PyObject *_wrap_Window_Lower(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22744 PyObject *resultobj;
22745 wxWindow *arg1 = (wxWindow *) 0 ;
22746 PyObject * obj0 = 0 ;
22747 char *kwnames[] = {
22748 (char *) "self", NULL
22749 };
22750
22751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Lower",kwnames,&obj0)) goto fail;
22752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22754 {
22755 PyThreadState* __tstate = wxPyBeginAllowThreads();
22756 (arg1)->Lower();
22757
22758 wxPyEndAllowThreads(__tstate);
22759 if (PyErr_Occurred()) SWIG_fail;
22760 }
22761 Py_INCREF(Py_None); resultobj = Py_None;
22762 return resultobj;
22763 fail:
22764 return NULL;
22765}
22766
22767
c32bde28 22768static PyObject *_wrap_Window_SetClientSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22769 PyObject *resultobj;
22770 wxWindow *arg1 = (wxWindow *) 0 ;
22771 wxSize *arg2 = 0 ;
22772 wxSize temp2 ;
22773 PyObject * obj0 = 0 ;
22774 PyObject * obj1 = 0 ;
22775 char *kwnames[] = {
22776 (char *) "self",(char *) "size", NULL
22777 };
22778
22779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) goto fail;
22780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22782 {
22783 arg2 = &temp2;
22784 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
22785 }
22786 {
22787 PyThreadState* __tstate = wxPyBeginAllowThreads();
22788 (arg1)->SetClientSize((wxSize const &)*arg2);
22789
22790 wxPyEndAllowThreads(__tstate);
22791 if (PyErr_Occurred()) SWIG_fail;
22792 }
22793 Py_INCREF(Py_None); resultobj = Py_None;
22794 return resultobj;
22795 fail:
22796 return NULL;
22797}
22798
22799
c32bde28 22800static PyObject *_wrap_Window_SetClientSizeWH(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22801 PyObject *resultobj;
22802 wxWindow *arg1 = (wxWindow *) 0 ;
22803 int arg2 ;
22804 int arg3 ;
22805 PyObject * obj0 = 0 ;
22806 PyObject * obj1 = 0 ;
22807 PyObject * obj2 = 0 ;
22808 char *kwnames[] = {
22809 (char *) "self",(char *) "width",(char *) "height", NULL
22810 };
22811
22812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetClientSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
22813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 22815 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 22816 if (PyErr_Occurred()) SWIG_fail;
c32bde28 22817 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
22818 if (PyErr_Occurred()) SWIG_fail;
22819 {
22820 PyThreadState* __tstate = wxPyBeginAllowThreads();
22821 (arg1)->SetClientSize(arg2,arg3);
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
c32bde28 22833static PyObject *_wrap_Window_SetClientRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22834 PyObject *resultobj;
22835 wxWindow *arg1 = (wxWindow *) 0 ;
22836 wxRect *arg2 = 0 ;
22837 wxRect temp2 ;
22838 PyObject * obj0 = 0 ;
22839 PyObject * obj1 = 0 ;
22840 char *kwnames[] = {
22841 (char *) "self",(char *) "rect", NULL
22842 };
22843
22844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) goto fail;
22845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22847 {
22848 arg2 = &temp2;
22849 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
22850 }
22851 {
22852 PyThreadState* __tstate = wxPyBeginAllowThreads();
22853 (arg1)->SetClientSize((wxRect const &)*arg2);
22854
22855 wxPyEndAllowThreads(__tstate);
22856 if (PyErr_Occurred()) SWIG_fail;
22857 }
22858 Py_INCREF(Py_None); resultobj = Py_None;
22859 return resultobj;
22860 fail:
22861 return NULL;
22862}
22863
22864
c32bde28 22865static PyObject *_wrap_Window_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22866 PyObject *resultobj;
22867 wxWindow *arg1 = (wxWindow *) 0 ;
22868 wxPoint result;
22869 PyObject * obj0 = 0 ;
22870 char *kwnames[] = {
22871 (char *) "self", NULL
22872 };
22873
22874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPosition",kwnames,&obj0)) goto fail;
22875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22877 {
22878 PyThreadState* __tstate = wxPyBeginAllowThreads();
22879 result = (arg1)->GetPosition();
22880
22881 wxPyEndAllowThreads(__tstate);
22882 if (PyErr_Occurred()) SWIG_fail;
22883 }
22884 {
22885 wxPoint * resultptr;
22886 resultptr = new wxPoint((wxPoint &) result);
22887 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
22888 }
22889 return resultobj;
22890 fail:
22891 return NULL;
22892}
22893
22894
c32bde28 22895static PyObject *_wrap_Window_GetPositionTuple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22896 PyObject *resultobj;
22897 wxWindow *arg1 = (wxWindow *) 0 ;
22898 int *arg2 = (int *) 0 ;
22899 int *arg3 = (int *) 0 ;
22900 int temp2 ;
c32bde28 22901 int res2 = 0 ;
d55e5bfc 22902 int temp3 ;
c32bde28 22903 int res3 = 0 ;
d55e5bfc
RD
22904 PyObject * obj0 = 0 ;
22905 char *kwnames[] = {
22906 (char *) "self", NULL
22907 };
22908
c32bde28
RD
22909 arg2 = &temp2; res2 = SWIG_NEWOBJ;
22910 arg3 = &temp3; res3 = SWIG_NEWOBJ;
d55e5bfc
RD
22911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPositionTuple",kwnames,&obj0)) goto fail;
22912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22914 {
22915 PyThreadState* __tstate = wxPyBeginAllowThreads();
22916 (arg1)->GetPosition(arg2,arg3);
22917
22918 wxPyEndAllowThreads(__tstate);
22919 if (PyErr_Occurred()) SWIG_fail;
22920 }
22921 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
22922 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
22923 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
22924 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
22925 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
22926 return resultobj;
22927 fail:
22928 return NULL;
22929}
22930
22931
c32bde28 22932static PyObject *_wrap_Window_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22933 PyObject *resultobj;
22934 wxWindow *arg1 = (wxWindow *) 0 ;
22935 wxSize result;
22936 PyObject * obj0 = 0 ;
22937 char *kwnames[] = {
22938 (char *) "self", NULL
22939 };
22940
22941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSize",kwnames,&obj0)) goto fail;
22942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22944 {
22945 PyThreadState* __tstate = wxPyBeginAllowThreads();
22946 result = ((wxWindow const *)arg1)->GetSize();
22947
22948 wxPyEndAllowThreads(__tstate);
22949 if (PyErr_Occurred()) SWIG_fail;
22950 }
22951 {
22952 wxSize * resultptr;
22953 resultptr = new wxSize((wxSize &) result);
22954 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
22955 }
22956 return resultobj;
22957 fail:
22958 return NULL;
22959}
22960
22961
c32bde28 22962static PyObject *_wrap_Window_GetSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
22963 PyObject *resultobj;
22964 wxWindow *arg1 = (wxWindow *) 0 ;
22965 int *arg2 = (int *) 0 ;
22966 int *arg3 = (int *) 0 ;
22967 int temp2 ;
c32bde28 22968 int res2 = 0 ;
d55e5bfc 22969 int temp3 ;
c32bde28 22970 int res3 = 0 ;
d55e5bfc
RD
22971 PyObject * obj0 = 0 ;
22972 char *kwnames[] = {
22973 (char *) "self", NULL
22974 };
22975
c32bde28
RD
22976 arg2 = &temp2; res2 = SWIG_NEWOBJ;
22977 arg3 = &temp3; res3 = SWIG_NEWOBJ;
d55e5bfc
RD
22978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizeTuple",kwnames,&obj0)) goto fail;
22979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22981 {
22982 PyThreadState* __tstate = wxPyBeginAllowThreads();
22983 ((wxWindow const *)arg1)->GetSize(arg2,arg3);
22984
22985 wxPyEndAllowThreads(__tstate);
22986 if (PyErr_Occurred()) SWIG_fail;
22987 }
22988 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
22989 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
22990 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
22991 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
22992 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
22993 return resultobj;
22994 fail:
22995 return NULL;
22996}
22997
22998
c32bde28 22999static PyObject *_wrap_Window_GetRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23000 PyObject *resultobj;
23001 wxWindow *arg1 = (wxWindow *) 0 ;
23002 wxRect result;
23003 PyObject * obj0 = 0 ;
23004 char *kwnames[] = {
23005 (char *) "self", NULL
23006 };
23007
23008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetRect",kwnames,&obj0)) goto fail;
23009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23011 {
23012 PyThreadState* __tstate = wxPyBeginAllowThreads();
23013 result = ((wxWindow const *)arg1)->GetRect();
23014
23015 wxPyEndAllowThreads(__tstate);
23016 if (PyErr_Occurred()) SWIG_fail;
23017 }
23018 {
23019 wxRect * resultptr;
23020 resultptr = new wxRect((wxRect &) result);
23021 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
23022 }
23023 return resultobj;
23024 fail:
23025 return NULL;
23026}
23027
23028
c32bde28 23029static PyObject *_wrap_Window_GetClientSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23030 PyObject *resultobj;
23031 wxWindow *arg1 = (wxWindow *) 0 ;
23032 wxSize result;
23033 PyObject * obj0 = 0 ;
23034 char *kwnames[] = {
23035 (char *) "self", NULL
23036 };
23037
23038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSize",kwnames,&obj0)) goto fail;
23039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23041 {
23042 PyThreadState* __tstate = wxPyBeginAllowThreads();
23043 result = ((wxWindow const *)arg1)->GetClientSize();
23044
23045 wxPyEndAllowThreads(__tstate);
23046 if (PyErr_Occurred()) SWIG_fail;
23047 }
23048 {
23049 wxSize * resultptr;
23050 resultptr = new wxSize((wxSize &) result);
23051 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
23052 }
23053 return resultobj;
23054 fail:
23055 return NULL;
23056}
23057
23058
c32bde28 23059static PyObject *_wrap_Window_GetClientSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23060 PyObject *resultobj;
23061 wxWindow *arg1 = (wxWindow *) 0 ;
23062 int *arg2 = (int *) 0 ;
23063 int *arg3 = (int *) 0 ;
23064 int temp2 ;
c32bde28 23065 int res2 = 0 ;
d55e5bfc 23066 int temp3 ;
c32bde28 23067 int res3 = 0 ;
d55e5bfc
RD
23068 PyObject * obj0 = 0 ;
23069 char *kwnames[] = {
23070 (char *) "self", NULL
23071 };
23072
c32bde28
RD
23073 arg2 = &temp2; res2 = SWIG_NEWOBJ;
23074 arg3 = &temp3; res3 = SWIG_NEWOBJ;
d55e5bfc
RD
23075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSizeTuple",kwnames,&obj0)) goto fail;
23076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23078 {
23079 PyThreadState* __tstate = wxPyBeginAllowThreads();
23080 ((wxWindow const *)arg1)->GetClientSize(arg2,arg3);
23081
23082 wxPyEndAllowThreads(__tstate);
23083 if (PyErr_Occurred()) SWIG_fail;
23084 }
23085 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
23086 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
23087 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
23088 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
23089 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
23090 return resultobj;
23091 fail:
23092 return NULL;
23093}
23094
23095
c32bde28 23096static PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23097 PyObject *resultobj;
23098 wxWindow *arg1 = (wxWindow *) 0 ;
23099 wxPoint result;
23100 PyObject * obj0 = 0 ;
23101 char *kwnames[] = {
23102 (char *) "self", NULL
23103 };
23104
23105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientAreaOrigin",kwnames,&obj0)) goto fail;
23106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23108 {
23109 PyThreadState* __tstate = wxPyBeginAllowThreads();
23110 result = ((wxWindow const *)arg1)->GetClientAreaOrigin();
23111
23112 wxPyEndAllowThreads(__tstate);
23113 if (PyErr_Occurred()) SWIG_fail;
23114 }
23115 {
23116 wxPoint * resultptr;
23117 resultptr = new wxPoint((wxPoint &) result);
23118 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
23119 }
23120 return resultobj;
23121 fail:
23122 return NULL;
23123}
23124
23125
c32bde28 23126static PyObject *_wrap_Window_GetClientRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23127 PyObject *resultobj;
23128 wxWindow *arg1 = (wxWindow *) 0 ;
23129 wxRect result;
23130 PyObject * obj0 = 0 ;
23131 char *kwnames[] = {
23132 (char *) "self", NULL
23133 };
23134
23135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientRect",kwnames,&obj0)) goto fail;
23136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23138 {
23139 PyThreadState* __tstate = wxPyBeginAllowThreads();
23140 result = ((wxWindow const *)arg1)->GetClientRect();
23141
23142 wxPyEndAllowThreads(__tstate);
23143 if (PyErr_Occurred()) SWIG_fail;
23144 }
23145 {
23146 wxRect * resultptr;
23147 resultptr = new wxRect((wxRect &) result);
23148 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
23149 }
23150 return resultobj;
23151 fail:
23152 return NULL;
23153}
23154
23155
c32bde28 23156static PyObject *_wrap_Window_GetBestSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23157 PyObject *resultobj;
23158 wxWindow *arg1 = (wxWindow *) 0 ;
23159 wxSize result;
23160 PyObject * obj0 = 0 ;
23161 char *kwnames[] = {
23162 (char *) "self", NULL
23163 };
23164
23165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSize",kwnames,&obj0)) goto fail;
23166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23168 {
23169 PyThreadState* __tstate = wxPyBeginAllowThreads();
23170 result = ((wxWindow const *)arg1)->GetBestSize();
23171
23172 wxPyEndAllowThreads(__tstate);
23173 if (PyErr_Occurred()) SWIG_fail;
23174 }
23175 {
23176 wxSize * resultptr;
23177 resultptr = new wxSize((wxSize &) result);
23178 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
23179 }
23180 return resultobj;
23181 fail:
23182 return NULL;
23183}
23184
23185
c32bde28 23186static PyObject *_wrap_Window_GetBestSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23187 PyObject *resultobj;
23188 wxWindow *arg1 = (wxWindow *) 0 ;
23189 int *arg2 = (int *) 0 ;
23190 int *arg3 = (int *) 0 ;
23191 int temp2 ;
c32bde28 23192 int res2 = 0 ;
d55e5bfc 23193 int temp3 ;
c32bde28 23194 int res3 = 0 ;
d55e5bfc
RD
23195 PyObject * obj0 = 0 ;
23196 char *kwnames[] = {
23197 (char *) "self", NULL
23198 };
23199
c32bde28
RD
23200 arg2 = &temp2; res2 = SWIG_NEWOBJ;
23201 arg3 = &temp3; res3 = SWIG_NEWOBJ;
d55e5bfc
RD
23202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSizeTuple",kwnames,&obj0)) goto fail;
23203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23205 {
23206 PyThreadState* __tstate = wxPyBeginAllowThreads();
23207 ((wxWindow const *)arg1)->GetBestSize(arg2,arg3);
23208
23209 wxPyEndAllowThreads(__tstate);
23210 if (PyErr_Occurred()) SWIG_fail;
23211 }
23212 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
23213 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
23214 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
23215 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
23216 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
23217 return resultobj;
23218 fail:
23219 return NULL;
23220}
23221
23222
c32bde28 23223static PyObject *_wrap_Window_InvalidateBestSize(PyObject *, PyObject *args, PyObject *kwargs) {
a001823c
RD
23224 PyObject *resultobj;
23225 wxWindow *arg1 = (wxWindow *) 0 ;
23226 PyObject * obj0 = 0 ;
23227 char *kwnames[] = {
23228 (char *) "self", NULL
23229 };
23230
23231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InvalidateBestSize",kwnames,&obj0)) goto fail;
23232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23234 {
23235 PyThreadState* __tstate = wxPyBeginAllowThreads();
23236 (arg1)->InvalidateBestSize();
23237
23238 wxPyEndAllowThreads(__tstate);
23239 if (PyErr_Occurred()) SWIG_fail;
23240 }
23241 Py_INCREF(Py_None); resultobj = Py_None;
23242 return resultobj;
23243 fail:
23244 return NULL;
23245}
23246
23247
c32bde28 23248static PyObject *_wrap_Window_GetBestFittingSize(PyObject *, PyObject *args, PyObject *kwargs) {
a001823c
RD
23249 PyObject *resultobj;
23250 wxWindow *arg1 = (wxWindow *) 0 ;
23251 wxSize result;
23252 PyObject * obj0 = 0 ;
23253 char *kwnames[] = {
23254 (char *) "self", NULL
23255 };
23256
23257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestFittingSize",kwnames,&obj0)) goto fail;
23258 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23260 {
23261 PyThreadState* __tstate = wxPyBeginAllowThreads();
23262 result = ((wxWindow const *)arg1)->GetBestFittingSize();
23263
23264 wxPyEndAllowThreads(__tstate);
23265 if (PyErr_Occurred()) SWIG_fail;
23266 }
23267 {
23268 wxSize * resultptr;
23269 resultptr = new wxSize((wxSize &) result);
23270 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
23271 }
23272 return resultobj;
23273 fail:
23274 return NULL;
23275}
23276
23277
c32bde28 23278static PyObject *_wrap_Window_GetAdjustedBestSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23279 PyObject *resultobj;
23280 wxWindow *arg1 = (wxWindow *) 0 ;
23281 wxSize result;
23282 PyObject * obj0 = 0 ;
23283 char *kwnames[] = {
23284 (char *) "self", NULL
23285 };
23286
23287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAdjustedBestSize",kwnames,&obj0)) goto fail;
23288 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23289 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23290 {
23291 PyThreadState* __tstate = wxPyBeginAllowThreads();
23292 result = ((wxWindow const *)arg1)->GetAdjustedBestSize();
23293
23294 wxPyEndAllowThreads(__tstate);
23295 if (PyErr_Occurred()) SWIG_fail;
23296 }
23297 {
23298 wxSize * resultptr;
23299 resultptr = new wxSize((wxSize &) result);
23300 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
23301 }
23302 return resultobj;
23303 fail:
23304 return NULL;
23305}
23306
23307
c32bde28 23308static PyObject *_wrap_Window_Center(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23309 PyObject *resultobj;
23310 wxWindow *arg1 = (wxWindow *) 0 ;
23311 int arg2 = (int) wxBOTH ;
23312 PyObject * obj0 = 0 ;
23313 PyObject * obj1 = 0 ;
23314 char *kwnames[] = {
23315 (char *) "self",(char *) "direction", NULL
23316 };
23317
23318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Center",kwnames,&obj0,&obj1)) goto fail;
23319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23321 if (obj1) {
c32bde28 23322 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
23323 if (PyErr_Occurred()) SWIG_fail;
23324 }
23325 {
23326 PyThreadState* __tstate = wxPyBeginAllowThreads();
23327 (arg1)->Center(arg2);
23328
23329 wxPyEndAllowThreads(__tstate);
23330 if (PyErr_Occurred()) SWIG_fail;
23331 }
23332 Py_INCREF(Py_None); resultobj = Py_None;
23333 return resultobj;
23334 fail:
23335 return NULL;
23336}
23337
23338
c32bde28 23339static PyObject *_wrap_Window_CenterOnScreen(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23340 PyObject *resultobj;
23341 wxWindow *arg1 = (wxWindow *) 0 ;
23342 int arg2 = (int) wxBOTH ;
23343 PyObject * obj0 = 0 ;
23344 PyObject * obj1 = 0 ;
23345 char *kwnames[] = {
23346 (char *) "self",(char *) "dir", NULL
23347 };
23348
23349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnScreen",kwnames,&obj0,&obj1)) goto fail;
23350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23352 if (obj1) {
c32bde28 23353 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
23354 if (PyErr_Occurred()) SWIG_fail;
23355 }
23356 {
23357 PyThreadState* __tstate = wxPyBeginAllowThreads();
23358 (arg1)->CenterOnScreen(arg2);
23359
23360 wxPyEndAllowThreads(__tstate);
23361 if (PyErr_Occurred()) SWIG_fail;
23362 }
23363 Py_INCREF(Py_None); resultobj = Py_None;
23364 return resultobj;
23365 fail:
23366 return NULL;
23367}
23368
23369
c32bde28 23370static PyObject *_wrap_Window_CenterOnParent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23371 PyObject *resultobj;
23372 wxWindow *arg1 = (wxWindow *) 0 ;
23373 int arg2 = (int) wxBOTH ;
23374 PyObject * obj0 = 0 ;
23375 PyObject * obj1 = 0 ;
23376 char *kwnames[] = {
23377 (char *) "self",(char *) "dir", NULL
23378 };
23379
23380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnParent",kwnames,&obj0,&obj1)) goto fail;
23381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23383 if (obj1) {
c32bde28 23384 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
23385 if (PyErr_Occurred()) SWIG_fail;
23386 }
23387 {
23388 PyThreadState* __tstate = wxPyBeginAllowThreads();
23389 (arg1)->CenterOnParent(arg2);
23390
23391 wxPyEndAllowThreads(__tstate);
23392 if (PyErr_Occurred()) SWIG_fail;
23393 }
23394 Py_INCREF(Py_None); resultobj = Py_None;
23395 return resultobj;
23396 fail:
23397 return NULL;
23398}
23399
23400
c32bde28 23401static PyObject *_wrap_Window_Fit(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23402 PyObject *resultobj;
23403 wxWindow *arg1 = (wxWindow *) 0 ;
23404 PyObject * obj0 = 0 ;
23405 char *kwnames[] = {
23406 (char *) "self", NULL
23407 };
23408
23409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Fit",kwnames,&obj0)) goto fail;
23410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23412 {
23413 PyThreadState* __tstate = wxPyBeginAllowThreads();
23414 (arg1)->Fit();
23415
23416 wxPyEndAllowThreads(__tstate);
23417 if (PyErr_Occurred()) SWIG_fail;
23418 }
23419 Py_INCREF(Py_None); resultobj = Py_None;
23420 return resultobj;
23421 fail:
23422 return NULL;
23423}
23424
23425
c32bde28 23426static PyObject *_wrap_Window_FitInside(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23427 PyObject *resultobj;
23428 wxWindow *arg1 = (wxWindow *) 0 ;
23429 PyObject * obj0 = 0 ;
23430 char *kwnames[] = {
23431 (char *) "self", NULL
23432 };
23433
23434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FitInside",kwnames,&obj0)) goto fail;
23435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23437 {
23438 PyThreadState* __tstate = wxPyBeginAllowThreads();
23439 (arg1)->FitInside();
23440
23441 wxPyEndAllowThreads(__tstate);
23442 if (PyErr_Occurred()) SWIG_fail;
23443 }
23444 Py_INCREF(Py_None); resultobj = Py_None;
23445 return resultobj;
23446 fail:
23447 return NULL;
23448}
23449
23450
c32bde28 23451static PyObject *_wrap_Window_SetSizeHints(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23452 PyObject *resultobj;
23453 wxWindow *arg1 = (wxWindow *) 0 ;
23454 int arg2 ;
23455 int arg3 ;
23456 int arg4 = (int) -1 ;
23457 int arg5 = (int) -1 ;
23458 int arg6 = (int) -1 ;
23459 int arg7 = (int) -1 ;
23460 PyObject * obj0 = 0 ;
23461 PyObject * obj1 = 0 ;
23462 PyObject * obj2 = 0 ;
23463 PyObject * obj3 = 0 ;
23464 PyObject * obj4 = 0 ;
23465 PyObject * obj5 = 0 ;
23466 PyObject * obj6 = 0 ;
03837c5c
RD
23467 char *kwnames[] = {
23468 (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH",(char *) "incW",(char *) "incH", NULL
23469 };
d55e5bfc 23470
03837c5c 23471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Window_SetSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
d55e5bfc
RD
23472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 23474 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 23475 if (PyErr_Occurred()) SWIG_fail;
c32bde28 23476 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
23477 if (PyErr_Occurred()) SWIG_fail;
23478 if (obj3) {
c32bde28 23479 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
23480 if (PyErr_Occurred()) SWIG_fail;
23481 }
23482 if (obj4) {
c32bde28 23483 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
23484 if (PyErr_Occurred()) SWIG_fail;
23485 }
23486 if (obj5) {
c32bde28 23487 arg6 = (int)SWIG_As_int(obj5);
d55e5bfc
RD
23488 if (PyErr_Occurred()) SWIG_fail;
23489 }
23490 if (obj6) {
c32bde28 23491 arg7 = (int)SWIG_As_int(obj6);
d55e5bfc
RD
23492 if (PyErr_Occurred()) SWIG_fail;
23493 }
23494 {
23495 PyThreadState* __tstate = wxPyBeginAllowThreads();
23496 (arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7);
23497
23498 wxPyEndAllowThreads(__tstate);
23499 if (PyErr_Occurred()) SWIG_fail;
23500 }
23501 Py_INCREF(Py_None); resultobj = Py_None;
23502 return resultobj;
23503 fail:
23504 return NULL;
23505}
23506
23507
c32bde28 23508static PyObject *_wrap_Window_SetSizeHintsSz(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23509 PyObject *resultobj;
23510 wxWindow *arg1 = (wxWindow *) 0 ;
908b74cd
RD
23511 wxSize *arg2 = 0 ;
23512 wxSize const &arg3_defvalue = wxDefaultSize ;
23513 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
03837c5c
RD
23514 wxSize const &arg4_defvalue = wxDefaultSize ;
23515 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
908b74cd
RD
23516 wxSize temp2 ;
23517 wxSize temp3 ;
03837c5c 23518 wxSize temp4 ;
d55e5bfc
RD
23519 PyObject * obj0 = 0 ;
23520 PyObject * obj1 = 0 ;
23521 PyObject * obj2 = 0 ;
03837c5c
RD
23522 PyObject * obj3 = 0 ;
23523 char *kwnames[] = {
23524 (char *) "self",(char *) "minSize",(char *) "maxSize",(char *) "incSize", NULL
23525 };
d55e5bfc 23526
03837c5c 23527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Window_SetSizeHintsSz",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
23528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
908b74cd
RD
23530 {
23531 arg2 = &temp2;
23532 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 23533 }
908b74cd
RD
23534 if (obj2) {
23535 {
23536 arg3 = &temp3;
23537 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
23538 }
d55e5bfc 23539 }
03837c5c
RD
23540 if (obj3) {
23541 {
23542 arg4 = &temp4;
23543 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
23544 }
23545 }
d55e5bfc
RD
23546 {
23547 PyThreadState* __tstate = wxPyBeginAllowThreads();
03837c5c 23548 (arg1)->SetSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3,(wxSize const &)*arg4);
d55e5bfc
RD
23549
23550 wxPyEndAllowThreads(__tstate);
23551 if (PyErr_Occurred()) SWIG_fail;
23552 }
23553 Py_INCREF(Py_None); resultobj = Py_None;
23554 return resultobj;
23555 fail:
23556 return NULL;
23557}
23558
23559
c32bde28 23560static PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23561 PyObject *resultobj;
23562 wxWindow *arg1 = (wxWindow *) 0 ;
908b74cd
RD
23563 int arg2 ;
23564 int arg3 ;
23565 int arg4 = (int) -1 ;
23566 int arg5 = (int) -1 ;
d55e5bfc
RD
23567 PyObject * obj0 = 0 ;
23568 PyObject * obj1 = 0 ;
23569 PyObject * obj2 = 0 ;
908b74cd
RD
23570 PyObject * obj3 = 0 ;
23571 PyObject * obj4 = 0 ;
03837c5c
RD
23572 char *kwnames[] = {
23573 (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH", NULL
23574 };
d55e5bfc 23575
03837c5c 23576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_SetVirtualSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
23577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 23579 arg2 = (int)SWIG_As_int(obj1);
908b74cd 23580 if (PyErr_Occurred()) SWIG_fail;
c32bde28 23581 arg3 = (int)SWIG_As_int(obj2);
908b74cd
RD
23582 if (PyErr_Occurred()) SWIG_fail;
23583 if (obj3) {
c32bde28 23584 arg4 = (int)SWIG_As_int(obj3);
908b74cd 23585 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 23586 }
908b74cd 23587 if (obj4) {
c32bde28 23588 arg5 = (int)SWIG_As_int(obj4);
908b74cd 23589 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
23590 }
23591 {
23592 PyThreadState* __tstate = wxPyBeginAllowThreads();
908b74cd 23593 (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5);
d55e5bfc
RD
23594
23595 wxPyEndAllowThreads(__tstate);
23596 if (PyErr_Occurred()) SWIG_fail;
23597 }
23598 Py_INCREF(Py_None); resultobj = Py_None;
23599 return resultobj;
23600 fail:
23601 return NULL;
23602}
23603
23604
c32bde28 23605static PyObject *_wrap_Window_SetVirtualSizeHintsSz(PyObject *, PyObject *args, PyObject *kwargs) {
03837c5c
RD
23606 PyObject *resultobj;
23607 wxWindow *arg1 = (wxWindow *) 0 ;
23608 wxSize *arg2 = 0 ;
23609 wxSize const &arg3_defvalue = wxDefaultSize ;
23610 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
23611 wxSize temp2 ;
23612 wxSize temp3 ;
23613 PyObject * obj0 = 0 ;
23614 PyObject * obj1 = 0 ;
23615 PyObject * obj2 = 0 ;
23616 char *kwnames[] = {
23617 (char *) "self",(char *) "minSize",(char *) "maxSize", NULL
23618 };
d55e5bfc 23619
03837c5c
RD
23620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetVirtualSizeHintsSz",kwnames,&obj0,&obj1,&obj2)) goto fail;
23621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23623 {
23624 arg2 = &temp2;
23625 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 23626 }
03837c5c 23627 if (obj2) {
d55e5bfc 23628 {
03837c5c
RD
23629 arg3 = &temp3;
23630 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc
RD
23631 }
23632 }
03837c5c
RD
23633 {
23634 PyThreadState* __tstate = wxPyBeginAllowThreads();
23635 (arg1)->SetVirtualSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3);
23636
23637 wxPyEndAllowThreads(__tstate);
23638 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 23639 }
03837c5c
RD
23640 Py_INCREF(Py_None); resultobj = Py_None;
23641 return resultobj;
23642 fail:
d55e5bfc
RD
23643 return NULL;
23644}
23645
23646
c32bde28 23647static PyObject *_wrap_Window_GetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23648 PyObject *resultobj;
23649 wxWindow *arg1 = (wxWindow *) 0 ;
908b74cd 23650 wxSize result;
d55e5bfc
RD
23651 PyObject * obj0 = 0 ;
23652 char *kwnames[] = {
23653 (char *) "self", NULL
23654 };
23655
908b74cd 23656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxSize",kwnames,&obj0)) goto fail;
d55e5bfc
RD
23657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23659 {
23660 PyThreadState* __tstate = wxPyBeginAllowThreads();
908b74cd 23661 result = ((wxWindow const *)arg1)->GetMaxSize();
d55e5bfc
RD
23662
23663 wxPyEndAllowThreads(__tstate);
23664 if (PyErr_Occurred()) SWIG_fail;
23665 }
908b74cd
RD
23666 {
23667 wxSize * resultptr;
23668 resultptr = new wxSize((wxSize &) result);
23669 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
23670 }
d55e5bfc
RD
23671 return resultobj;
23672 fail:
23673 return NULL;
23674}
23675
23676
c32bde28 23677static PyObject *_wrap_Window_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23678 PyObject *resultobj;
23679 wxWindow *arg1 = (wxWindow *) 0 ;
908b74cd 23680 wxSize result;
d55e5bfc
RD
23681 PyObject * obj0 = 0 ;
23682 char *kwnames[] = {
23683 (char *) "self", NULL
23684 };
23685
908b74cd 23686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinSize",kwnames,&obj0)) goto fail;
d55e5bfc
RD
23687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23689 {
23690 PyThreadState* __tstate = wxPyBeginAllowThreads();
908b74cd 23691 result = ((wxWindow const *)arg1)->GetMinSize();
d55e5bfc
RD
23692
23693 wxPyEndAllowThreads(__tstate);
23694 if (PyErr_Occurred()) SWIG_fail;
23695 }
908b74cd
RD
23696 {
23697 wxSize * resultptr;
23698 resultptr = new wxSize((wxSize &) result);
23699 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
23700 }
d55e5bfc
RD
23701 return resultobj;
23702 fail:
23703 return NULL;
23704}
23705
23706
c32bde28 23707static PyObject *_wrap_Window_SetMinSize(PyObject *, PyObject *args, PyObject *kwargs) {
908b74cd
RD
23708 PyObject *resultobj;
23709 wxWindow *arg1 = (wxWindow *) 0 ;
23710 wxSize *arg2 = 0 ;
23711 wxSize temp2 ;
23712 PyObject * obj0 = 0 ;
23713 PyObject * obj1 = 0 ;
23714 char *kwnames[] = {
23715 (char *) "self",(char *) "minSize", NULL
23716 };
23717
23718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMinSize",kwnames,&obj0,&obj1)) goto fail;
23719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23721 {
23722 arg2 = &temp2;
23723 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
23724 }
23725 {
23726 PyThreadState* __tstate = wxPyBeginAllowThreads();
23727 (arg1)->SetMinSize((wxSize const &)*arg2);
23728
23729 wxPyEndAllowThreads(__tstate);
23730 if (PyErr_Occurred()) SWIG_fail;
23731 }
23732 Py_INCREF(Py_None); resultobj = Py_None;
23733 return resultobj;
23734 fail:
23735 return NULL;
23736}
23737
23738
c32bde28 23739static PyObject *_wrap_Window_SetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) {
908b74cd
RD
23740 PyObject *resultobj;
23741 wxWindow *arg1 = (wxWindow *) 0 ;
23742 wxSize *arg2 = 0 ;
23743 wxSize temp2 ;
23744 PyObject * obj0 = 0 ;
23745 PyObject * obj1 = 0 ;
23746 char *kwnames[] = {
23747 (char *) "self",(char *) "maxSize", NULL
23748 };
23749
23750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMaxSize",kwnames,&obj0,&obj1)) goto fail;
23751 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23752 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23753 {
23754 arg2 = &temp2;
23755 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
23756 }
23757 {
23758 PyThreadState* __tstate = wxPyBeginAllowThreads();
23759 (arg1)->SetMaxSize((wxSize const &)*arg2);
23760
23761 wxPyEndAllowThreads(__tstate);
23762 if (PyErr_Occurred()) SWIG_fail;
23763 }
23764 Py_INCREF(Py_None); resultobj = Py_None;
23765 return resultobj;
23766 fail:
23767 return NULL;
23768}
23769
23770
c32bde28 23771static PyObject *_wrap_Window_GetMinWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23772 PyObject *resultobj;
23773 wxWindow *arg1 = (wxWindow *) 0 ;
23774 int result;
23775 PyObject * obj0 = 0 ;
23776 char *kwnames[] = {
23777 (char *) "self", NULL
23778 };
23779
908b74cd 23780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinWidth",kwnames,&obj0)) goto fail;
d55e5bfc
RD
23781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23783 {
23784 PyThreadState* __tstate = wxPyBeginAllowThreads();
908b74cd 23785 result = (int)((wxWindow const *)arg1)->GetMinWidth();
d55e5bfc
RD
23786
23787 wxPyEndAllowThreads(__tstate);
23788 if (PyErr_Occurred()) SWIG_fail;
23789 }
c32bde28 23790 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
23791 return resultobj;
23792 fail:
23793 return NULL;
23794}
23795
23796
c32bde28 23797static PyObject *_wrap_Window_GetMinHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23798 PyObject *resultobj;
23799 wxWindow *arg1 = (wxWindow *) 0 ;
23800 int result;
23801 PyObject * obj0 = 0 ;
23802 char *kwnames[] = {
23803 (char *) "self", NULL
23804 };
23805
908b74cd 23806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinHeight",kwnames,&obj0)) goto fail;
d55e5bfc
RD
23807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23809 {
23810 PyThreadState* __tstate = wxPyBeginAllowThreads();
908b74cd 23811 result = (int)((wxWindow const *)arg1)->GetMinHeight();
d55e5bfc
RD
23812
23813 wxPyEndAllowThreads(__tstate);
23814 if (PyErr_Occurred()) SWIG_fail;
23815 }
c32bde28 23816 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
23817 return resultobj;
23818 fail:
23819 return NULL;
23820}
23821
23822
c32bde28 23823static PyObject *_wrap_Window_GetMaxWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23824 PyObject *resultobj;
23825 wxWindow *arg1 = (wxWindow *) 0 ;
908b74cd 23826 int result;
d55e5bfc
RD
23827 PyObject * obj0 = 0 ;
23828 char *kwnames[] = {
23829 (char *) "self", NULL
23830 };
23831
908b74cd 23832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxWidth",kwnames,&obj0)) goto fail;
d55e5bfc
RD
23833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23835 {
23836 PyThreadState* __tstate = wxPyBeginAllowThreads();
908b74cd 23837 result = (int)((wxWindow const *)arg1)->GetMaxWidth();
d55e5bfc
RD
23838
23839 wxPyEndAllowThreads(__tstate);
23840 if (PyErr_Occurred()) SWIG_fail;
23841 }
c32bde28 23842 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
23843 return resultobj;
23844 fail:
23845 return NULL;
23846}
23847
23848
c32bde28 23849static PyObject *_wrap_Window_GetMaxHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23850 PyObject *resultobj;
23851 wxWindow *arg1 = (wxWindow *) 0 ;
908b74cd 23852 int result;
d55e5bfc
RD
23853 PyObject * obj0 = 0 ;
23854 char *kwnames[] = {
23855 (char *) "self", NULL
23856 };
23857
908b74cd 23858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxHeight",kwnames,&obj0)) goto fail;
d55e5bfc
RD
23859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23861 {
23862 PyThreadState* __tstate = wxPyBeginAllowThreads();
908b74cd 23863 result = (int)((wxWindow const *)arg1)->GetMaxHeight();
d55e5bfc
RD
23864
23865 wxPyEndAllowThreads(__tstate);
23866 if (PyErr_Occurred()) SWIG_fail;
23867 }
c32bde28 23868 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
23869 return resultobj;
23870 fail:
23871 return NULL;
23872}
23873
23874
c32bde28 23875static PyObject *_wrap_Window_SetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23876 PyObject *resultobj;
23877 wxWindow *arg1 = (wxWindow *) 0 ;
23878 wxSize *arg2 = 0 ;
23879 wxSize temp2 ;
23880 PyObject * obj0 = 0 ;
23881 PyObject * obj1 = 0 ;
23882 char *kwnames[] = {
23883 (char *) "self",(char *) "size", NULL
23884 };
23885
23886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) goto fail;
23887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23889 {
23890 arg2 = &temp2;
23891 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
23892 }
23893 {
23894 PyThreadState* __tstate = wxPyBeginAllowThreads();
23895 (arg1)->SetVirtualSize((wxSize const &)*arg2);
23896
23897 wxPyEndAllowThreads(__tstate);
23898 if (PyErr_Occurred()) SWIG_fail;
23899 }
23900 Py_INCREF(Py_None); resultobj = Py_None;
23901 return resultobj;
23902 fail:
23903 return NULL;
23904}
23905
23906
c32bde28 23907static PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23908 PyObject *resultobj;
23909 wxWindow *arg1 = (wxWindow *) 0 ;
23910 int arg2 ;
23911 int arg3 ;
23912 PyObject * obj0 = 0 ;
23913 PyObject * obj1 = 0 ;
23914 PyObject * obj2 = 0 ;
23915 char *kwnames[] = {
23916 (char *) "self",(char *) "w",(char *) "h", NULL
23917 };
23918
23919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetVirtualSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
23920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 23922 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 23923 if (PyErr_Occurred()) SWIG_fail;
c32bde28 23924 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
23925 if (PyErr_Occurred()) SWIG_fail;
23926 {
23927 PyThreadState* __tstate = wxPyBeginAllowThreads();
23928 (arg1)->SetVirtualSize(arg2,arg3);
23929
23930 wxPyEndAllowThreads(__tstate);
23931 if (PyErr_Occurred()) SWIG_fail;
23932 }
23933 Py_INCREF(Py_None); resultobj = Py_None;
23934 return resultobj;
23935 fail:
23936 return NULL;
23937}
23938
23939
c32bde28 23940static PyObject *_wrap_Window_GetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23941 PyObject *resultobj;
23942 wxWindow *arg1 = (wxWindow *) 0 ;
23943 wxSize result;
23944 PyObject * obj0 = 0 ;
23945 char *kwnames[] = {
23946 (char *) "self", NULL
23947 };
23948
23949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSize",kwnames,&obj0)) goto fail;
23950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23952 {
23953 PyThreadState* __tstate = wxPyBeginAllowThreads();
23954 result = ((wxWindow const *)arg1)->GetVirtualSize();
23955
23956 wxPyEndAllowThreads(__tstate);
23957 if (PyErr_Occurred()) SWIG_fail;
23958 }
23959 {
23960 wxSize * resultptr;
23961 resultptr = new wxSize((wxSize &) result);
23962 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
23963 }
23964 return resultobj;
23965 fail:
23966 return NULL;
23967}
23968
23969
c32bde28 23970static PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23971 PyObject *resultobj;
23972 wxWindow *arg1 = (wxWindow *) 0 ;
23973 int *arg2 = (int *) 0 ;
23974 int *arg3 = (int *) 0 ;
23975 int temp2 ;
c32bde28 23976 int res2 = 0 ;
d55e5bfc 23977 int temp3 ;
c32bde28 23978 int res3 = 0 ;
d55e5bfc
RD
23979 PyObject * obj0 = 0 ;
23980 char *kwnames[] = {
23981 (char *) "self", NULL
23982 };
23983
c32bde28
RD
23984 arg2 = &temp2; res2 = SWIG_NEWOBJ;
23985 arg3 = &temp3; res3 = SWIG_NEWOBJ;
d55e5bfc
RD
23986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSizeTuple",kwnames,&obj0)) goto fail;
23987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23989 {
23990 PyThreadState* __tstate = wxPyBeginAllowThreads();
23991 ((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3);
23992
23993 wxPyEndAllowThreads(__tstate);
23994 if (PyErr_Occurred()) SWIG_fail;
23995 }
23996 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
23997 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
23998 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
23999 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
24000 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
24001 return resultobj;
24002 fail:
24003 return NULL;
24004}
24005
24006
c32bde28 24007static PyObject *_wrap_Window_GetBestVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24008 PyObject *resultobj;
24009 wxWindow *arg1 = (wxWindow *) 0 ;
24010 wxSize result;
24011 PyObject * obj0 = 0 ;
24012 char *kwnames[] = {
24013 (char *) "self", NULL
24014 };
24015
24016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestVirtualSize",kwnames,&obj0)) goto fail;
24017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24019 {
24020 PyThreadState* __tstate = wxPyBeginAllowThreads();
24021 result = ((wxWindow const *)arg1)->GetBestVirtualSize();
24022
24023 wxPyEndAllowThreads(__tstate);
24024 if (PyErr_Occurred()) SWIG_fail;
24025 }
24026 {
24027 wxSize * resultptr;
24028 resultptr = new wxSize((wxSize &) result);
24029 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
24030 }
24031 return resultobj;
24032 fail:
24033 return NULL;
24034}
24035
24036
c32bde28 24037static PyObject *_wrap_Window_Show(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24038 PyObject *resultobj;
24039 wxWindow *arg1 = (wxWindow *) 0 ;
24040 bool arg2 = (bool) True ;
24041 bool result;
24042 PyObject * obj0 = 0 ;
24043 PyObject * obj1 = 0 ;
24044 char *kwnames[] = {
24045 (char *) "self",(char *) "show", NULL
24046 };
24047
24048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) goto fail;
24049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24051 if (obj1) {
c32bde28 24052 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
24053 if (PyErr_Occurred()) SWIG_fail;
24054 }
24055 {
24056 PyThreadState* __tstate = wxPyBeginAllowThreads();
24057 result = (bool)(arg1)->Show(arg2);
24058
24059 wxPyEndAllowThreads(__tstate);
24060 if (PyErr_Occurred()) SWIG_fail;
24061 }
24062 {
24063 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24064 }
24065 return resultobj;
24066 fail:
24067 return NULL;
24068}
24069
24070
c32bde28 24071static PyObject *_wrap_Window_Hide(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24072 PyObject *resultobj;
24073 wxWindow *arg1 = (wxWindow *) 0 ;
24074 bool result;
24075 PyObject * obj0 = 0 ;
24076 char *kwnames[] = {
24077 (char *) "self", NULL
24078 };
24079
24080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Hide",kwnames,&obj0)) goto fail;
24081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24083 {
24084 PyThreadState* __tstate = wxPyBeginAllowThreads();
24085 result = (bool)(arg1)->Hide();
24086
24087 wxPyEndAllowThreads(__tstate);
24088 if (PyErr_Occurred()) SWIG_fail;
24089 }
24090 {
24091 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24092 }
24093 return resultobj;
24094 fail:
24095 return NULL;
24096}
24097
24098
c32bde28 24099static PyObject *_wrap_Window_Enable(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24100 PyObject *resultobj;
24101 wxWindow *arg1 = (wxWindow *) 0 ;
24102 bool arg2 = (bool) True ;
24103 bool result;
24104 PyObject * obj0 = 0 ;
24105 PyObject * obj1 = 0 ;
24106 char *kwnames[] = {
24107 (char *) "self",(char *) "enable", NULL
24108 };
24109
24110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) goto fail;
24111 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24113 if (obj1) {
c32bde28 24114 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
24115 if (PyErr_Occurred()) SWIG_fail;
24116 }
24117 {
24118 PyThreadState* __tstate = wxPyBeginAllowThreads();
24119 result = (bool)(arg1)->Enable(arg2);
24120
24121 wxPyEndAllowThreads(__tstate);
24122 if (PyErr_Occurred()) SWIG_fail;
24123 }
24124 {
24125 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24126 }
24127 return resultobj;
24128 fail:
24129 return NULL;
24130}
24131
24132
c32bde28 24133static PyObject *_wrap_Window_Disable(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24134 PyObject *resultobj;
24135 wxWindow *arg1 = (wxWindow *) 0 ;
24136 bool result;
24137 PyObject * obj0 = 0 ;
24138 char *kwnames[] = {
24139 (char *) "self", NULL
24140 };
24141
24142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Disable",kwnames,&obj0)) goto fail;
24143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24145 {
24146 PyThreadState* __tstate = wxPyBeginAllowThreads();
24147 result = (bool)(arg1)->Disable();
24148
24149 wxPyEndAllowThreads(__tstate);
24150 if (PyErr_Occurred()) SWIG_fail;
24151 }
24152 {
24153 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24154 }
24155 return resultobj;
24156 fail:
24157 return NULL;
24158}
24159
24160
c32bde28 24161static PyObject *_wrap_Window_IsShown(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24162 PyObject *resultobj;
24163 wxWindow *arg1 = (wxWindow *) 0 ;
24164 bool result;
24165 PyObject * obj0 = 0 ;
24166 char *kwnames[] = {
24167 (char *) "self", NULL
24168 };
24169
24170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsShown",kwnames,&obj0)) goto fail;
24171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24173 {
24174 PyThreadState* __tstate = wxPyBeginAllowThreads();
24175 result = (bool)((wxWindow const *)arg1)->IsShown();
24176
24177 wxPyEndAllowThreads(__tstate);
24178 if (PyErr_Occurred()) SWIG_fail;
24179 }
24180 {
24181 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24182 }
24183 return resultobj;
24184 fail:
24185 return NULL;
24186}
24187
24188
c32bde28 24189static PyObject *_wrap_Window_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24190 PyObject *resultobj;
24191 wxWindow *arg1 = (wxWindow *) 0 ;
24192 bool result;
24193 PyObject * obj0 = 0 ;
24194 char *kwnames[] = {
24195 (char *) "self", NULL
24196 };
24197
24198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsEnabled",kwnames,&obj0)) goto fail;
24199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24201 {
24202 PyThreadState* __tstate = wxPyBeginAllowThreads();
24203 result = (bool)((wxWindow const *)arg1)->IsEnabled();
24204
24205 wxPyEndAllowThreads(__tstate);
24206 if (PyErr_Occurred()) SWIG_fail;
24207 }
24208 {
24209 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24210 }
24211 return resultobj;
24212 fail:
24213 return NULL;
24214}
24215
24216
c32bde28 24217static PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24218 PyObject *resultobj;
24219 wxWindow *arg1 = (wxWindow *) 0 ;
24220 long arg2 ;
24221 PyObject * obj0 = 0 ;
24222 PyObject * obj1 = 0 ;
24223 char *kwnames[] = {
24224 (char *) "self",(char *) "style", NULL
24225 };
24226
24227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail;
24228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 24230 arg2 = (long)SWIG_As_long(obj1);
d55e5bfc
RD
24231 if (PyErr_Occurred()) SWIG_fail;
24232 {
24233 PyThreadState* __tstate = wxPyBeginAllowThreads();
24234 (arg1)->SetWindowStyleFlag(arg2);
24235
24236 wxPyEndAllowThreads(__tstate);
24237 if (PyErr_Occurred()) SWIG_fail;
24238 }
24239 Py_INCREF(Py_None); resultobj = Py_None;
24240 return resultobj;
24241 fail:
24242 return NULL;
24243}
24244
24245
c32bde28 24246static PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24247 PyObject *resultobj;
24248 wxWindow *arg1 = (wxWindow *) 0 ;
24249 long result;
24250 PyObject * obj0 = 0 ;
24251 char *kwnames[] = {
24252 (char *) "self", NULL
24253 };
24254
24255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyleFlag",kwnames,&obj0)) goto fail;
24256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24258 {
24259 PyThreadState* __tstate = wxPyBeginAllowThreads();
24260 result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag();
24261
24262 wxPyEndAllowThreads(__tstate);
24263 if (PyErr_Occurred()) SWIG_fail;
24264 }
c32bde28 24265 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
24266 return resultobj;
24267 fail:
24268 return NULL;
24269}
24270
24271
c32bde28 24272static PyObject *_wrap_Window_HasFlag(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24273 PyObject *resultobj;
24274 wxWindow *arg1 = (wxWindow *) 0 ;
24275 int arg2 ;
24276 bool result;
24277 PyObject * obj0 = 0 ;
24278 PyObject * obj1 = 0 ;
24279 char *kwnames[] = {
24280 (char *) "self",(char *) "flag", NULL
24281 };
24282
24283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasFlag",kwnames,&obj0,&obj1)) goto fail;
24284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 24286 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
24287 if (PyErr_Occurred()) SWIG_fail;
24288 {
24289 PyThreadState* __tstate = wxPyBeginAllowThreads();
24290 result = (bool)((wxWindow const *)arg1)->HasFlag(arg2);
24291
24292 wxPyEndAllowThreads(__tstate);
24293 if (PyErr_Occurred()) SWIG_fail;
24294 }
24295 {
24296 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24297 }
24298 return resultobj;
24299 fail:
24300 return NULL;
24301}
24302
24303
c32bde28 24304static PyObject *_wrap_Window_IsRetained(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24305 PyObject *resultobj;
24306 wxWindow *arg1 = (wxWindow *) 0 ;
24307 bool result;
24308 PyObject * obj0 = 0 ;
24309 char *kwnames[] = {
24310 (char *) "self", NULL
24311 };
24312
24313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsRetained",kwnames,&obj0)) goto fail;
24314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24316 {
24317 PyThreadState* __tstate = wxPyBeginAllowThreads();
24318 result = (bool)((wxWindow const *)arg1)->IsRetained();
24319
24320 wxPyEndAllowThreads(__tstate);
24321 if (PyErr_Occurred()) SWIG_fail;
24322 }
24323 {
24324 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24325 }
24326 return resultobj;
24327 fail:
24328 return NULL;
24329}
24330
24331
c32bde28 24332static PyObject *_wrap_Window_SetExtraStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24333 PyObject *resultobj;
24334 wxWindow *arg1 = (wxWindow *) 0 ;
24335 long arg2 ;
24336 PyObject * obj0 = 0 ;
24337 PyObject * obj1 = 0 ;
24338 char *kwnames[] = {
24339 (char *) "self",(char *) "exStyle", NULL
24340 };
24341
24342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetExtraStyle",kwnames,&obj0,&obj1)) goto fail;
24343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 24345 arg2 = (long)SWIG_As_long(obj1);
d55e5bfc
RD
24346 if (PyErr_Occurred()) SWIG_fail;
24347 {
24348 PyThreadState* __tstate = wxPyBeginAllowThreads();
24349 (arg1)->SetExtraStyle(arg2);
24350
24351 wxPyEndAllowThreads(__tstate);
24352 if (PyErr_Occurred()) SWIG_fail;
24353 }
24354 Py_INCREF(Py_None); resultobj = Py_None;
24355 return resultobj;
24356 fail:
24357 return NULL;
24358}
24359
24360
c32bde28 24361static PyObject *_wrap_Window_GetExtraStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24362 PyObject *resultobj;
24363 wxWindow *arg1 = (wxWindow *) 0 ;
24364 long result;
24365 PyObject * obj0 = 0 ;
24366 char *kwnames[] = {
24367 (char *) "self", NULL
24368 };
24369
24370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetExtraStyle",kwnames,&obj0)) goto fail;
24371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24373 {
24374 PyThreadState* __tstate = wxPyBeginAllowThreads();
24375 result = (long)((wxWindow const *)arg1)->GetExtraStyle();
24376
24377 wxPyEndAllowThreads(__tstate);
24378 if (PyErr_Occurred()) SWIG_fail;
24379 }
c32bde28 24380 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
24381 return resultobj;
24382 fail:
24383 return NULL;
24384}
24385
24386
c32bde28 24387static PyObject *_wrap_Window_MakeModal(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24388 PyObject *resultobj;
24389 wxWindow *arg1 = (wxWindow *) 0 ;
24390 bool arg2 = (bool) True ;
24391 PyObject * obj0 = 0 ;
24392 PyObject * obj1 = 0 ;
24393 char *kwnames[] = {
24394 (char *) "self",(char *) "modal", NULL
24395 };
24396
24397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) goto fail;
24398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24400 if (obj1) {
c32bde28 24401 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
24402 if (PyErr_Occurred()) SWIG_fail;
24403 }
24404 {
24405 PyThreadState* __tstate = wxPyBeginAllowThreads();
24406 (arg1)->MakeModal(arg2);
24407
24408 wxPyEndAllowThreads(__tstate);
24409 if (PyErr_Occurred()) SWIG_fail;
24410 }
24411 Py_INCREF(Py_None); resultobj = Py_None;
24412 return resultobj;
24413 fail:
24414 return NULL;
24415}
24416
24417
c32bde28 24418static PyObject *_wrap_Window_SetThemeEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24419 PyObject *resultobj;
24420 wxWindow *arg1 = (wxWindow *) 0 ;
24421 bool arg2 ;
24422 PyObject * obj0 = 0 ;
24423 PyObject * obj1 = 0 ;
24424 char *kwnames[] = {
24425 (char *) "self",(char *) "enableTheme", NULL
24426 };
24427
24428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) goto fail;
24429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 24431 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
24432 if (PyErr_Occurred()) SWIG_fail;
24433 {
24434 PyThreadState* __tstate = wxPyBeginAllowThreads();
24435 (arg1)->SetThemeEnabled(arg2);
24436
24437 wxPyEndAllowThreads(__tstate);
24438 if (PyErr_Occurred()) SWIG_fail;
24439 }
24440 Py_INCREF(Py_None); resultobj = Py_None;
24441 return resultobj;
24442 fail:
24443 return NULL;
24444}
24445
24446
c32bde28 24447static PyObject *_wrap_Window_GetThemeEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24448 PyObject *resultobj;
24449 wxWindow *arg1 = (wxWindow *) 0 ;
24450 bool result;
24451 PyObject * obj0 = 0 ;
24452 char *kwnames[] = {
24453 (char *) "self", NULL
24454 };
24455
24456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetThemeEnabled",kwnames,&obj0)) goto fail;
24457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24459 {
24460 PyThreadState* __tstate = wxPyBeginAllowThreads();
24461 result = (bool)((wxWindow const *)arg1)->GetThemeEnabled();
24462
24463 wxPyEndAllowThreads(__tstate);
24464 if (PyErr_Occurred()) SWIG_fail;
24465 }
24466 {
24467 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24468 }
24469 return resultobj;
24470 fail:
24471 return NULL;
24472}
24473
24474
c32bde28 24475static PyObject *_wrap_Window_SetFocus(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24476 PyObject *resultobj;
24477 wxWindow *arg1 = (wxWindow *) 0 ;
24478 PyObject * obj0 = 0 ;
24479 char *kwnames[] = {
24480 (char *) "self", NULL
24481 };
24482
24483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocus",kwnames,&obj0)) goto fail;
24484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24486 {
24487 PyThreadState* __tstate = wxPyBeginAllowThreads();
24488 (arg1)->SetFocus();
24489
24490 wxPyEndAllowThreads(__tstate);
24491 if (PyErr_Occurred()) SWIG_fail;
24492 }
24493 Py_INCREF(Py_None); resultobj = Py_None;
24494 return resultobj;
24495 fail:
24496 return NULL;
24497}
24498
24499
c32bde28 24500static PyObject *_wrap_Window_SetFocusFromKbd(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24501 PyObject *resultobj;
24502 wxWindow *arg1 = (wxWindow *) 0 ;
24503 PyObject * obj0 = 0 ;
24504 char *kwnames[] = {
24505 (char *) "self", NULL
24506 };
24507
24508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocusFromKbd",kwnames,&obj0)) goto fail;
24509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24511 {
24512 PyThreadState* __tstate = wxPyBeginAllowThreads();
24513 (arg1)->SetFocusFromKbd();
24514
24515 wxPyEndAllowThreads(__tstate);
24516 if (PyErr_Occurred()) SWIG_fail;
24517 }
24518 Py_INCREF(Py_None); resultobj = Py_None;
24519 return resultobj;
24520 fail:
24521 return NULL;
24522}
24523
24524
c32bde28 24525static PyObject *_wrap_Window_FindFocus(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24526 PyObject *resultobj;
24527 wxWindow *result;
24528 char *kwnames[] = {
24529 NULL
24530 };
24531
24532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_FindFocus",kwnames)) goto fail;
24533 {
0439c23b 24534 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
24535 PyThreadState* __tstate = wxPyBeginAllowThreads();
24536 result = (wxWindow *)wxWindow::FindFocus();
24537
24538 wxPyEndAllowThreads(__tstate);
110da5b0 24539 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
24540 }
24541 {
412d302d 24542 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
24543 }
24544 return resultobj;
24545 fail:
24546 return NULL;
24547}
24548
24549
c32bde28 24550static PyObject *_wrap_Window_AcceptsFocus(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24551 PyObject *resultobj;
24552 wxWindow *arg1 = (wxWindow *) 0 ;
24553 bool result;
24554 PyObject * obj0 = 0 ;
24555 char *kwnames[] = {
24556 (char *) "self", NULL
24557 };
24558
24559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocus",kwnames,&obj0)) goto fail;
24560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24562 {
24563 PyThreadState* __tstate = wxPyBeginAllowThreads();
24564 result = (bool)((wxWindow const *)arg1)->AcceptsFocus();
24565
24566 wxPyEndAllowThreads(__tstate);
24567 if (PyErr_Occurred()) SWIG_fail;
24568 }
24569 {
24570 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24571 }
24572 return resultobj;
24573 fail:
24574 return NULL;
24575}
24576
24577
c32bde28 24578static PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24579 PyObject *resultobj;
24580 wxWindow *arg1 = (wxWindow *) 0 ;
24581 bool result;
24582 PyObject * obj0 = 0 ;
24583 char *kwnames[] = {
24584 (char *) "self", NULL
24585 };
24586
24587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail;
24588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24590 {
24591 PyThreadState* __tstate = wxPyBeginAllowThreads();
24592 result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard();
24593
24594 wxPyEndAllowThreads(__tstate);
24595 if (PyErr_Occurred()) SWIG_fail;
24596 }
24597 {
24598 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24599 }
24600 return resultobj;
24601 fail:
24602 return NULL;
24603}
24604
24605
c32bde28 24606static PyObject *_wrap_Window_GetDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24607 PyObject *resultobj;
24608 wxWindow *arg1 = (wxWindow *) 0 ;
24609 wxWindow *result;
24610 PyObject * obj0 = 0 ;
24611 char *kwnames[] = {
24612 (char *) "self", NULL
24613 };
24614
24615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultItem",kwnames,&obj0)) goto fail;
24616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24618 {
24619 PyThreadState* __tstate = wxPyBeginAllowThreads();
24620 result = (wxWindow *)((wxWindow const *)arg1)->GetDefaultItem();
24621
24622 wxPyEndAllowThreads(__tstate);
24623 if (PyErr_Occurred()) SWIG_fail;
24624 }
24625 {
412d302d 24626 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
24627 }
24628 return resultobj;
24629 fail:
24630 return NULL;
24631}
24632
24633
c32bde28 24634static PyObject *_wrap_Window_SetDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24635 PyObject *resultobj;
24636 wxWindow *arg1 = (wxWindow *) 0 ;
24637 wxWindow *arg2 = (wxWindow *) 0 ;
24638 wxWindow *result;
24639 PyObject * obj0 = 0 ;
24640 PyObject * obj1 = 0 ;
24641 char *kwnames[] = {
24642 (char *) "self",(char *) "child", NULL
24643 };
24644
24645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultItem",kwnames,&obj0,&obj1)) goto fail;
24646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24648 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24650 {
24651 PyThreadState* __tstate = wxPyBeginAllowThreads();
24652 result = (wxWindow *)(arg1)->SetDefaultItem(arg2);
24653
24654 wxPyEndAllowThreads(__tstate);
24655 if (PyErr_Occurred()) SWIG_fail;
24656 }
24657 {
412d302d 24658 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
24659 }
24660 return resultobj;
24661 fail:
24662 return NULL;
24663}
24664
24665
c32bde28 24666static PyObject *_wrap_Window_SetTmpDefaultItem(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24667 PyObject *resultobj;
24668 wxWindow *arg1 = (wxWindow *) 0 ;
24669 wxWindow *arg2 = (wxWindow *) 0 ;
24670 PyObject * obj0 = 0 ;
24671 PyObject * obj1 = 0 ;
24672 char *kwnames[] = {
24673 (char *) "self",(char *) "win", NULL
24674 };
24675
24676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTmpDefaultItem",kwnames,&obj0,&obj1)) goto fail;
24677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24679 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24681 {
24682 PyThreadState* __tstate = wxPyBeginAllowThreads();
24683 (arg1)->SetTmpDefaultItem(arg2);
24684
24685 wxPyEndAllowThreads(__tstate);
24686 if (PyErr_Occurred()) SWIG_fail;
24687 }
24688 Py_INCREF(Py_None); resultobj = Py_None;
24689 return resultobj;
24690 fail:
24691 return NULL;
24692}
24693
24694
c32bde28 24695static PyObject *_wrap_Window_Navigate(PyObject *, PyObject *args, PyObject *kwargs) {
908b74cd
RD
24696 PyObject *resultobj;
24697 wxWindow *arg1 = (wxWindow *) 0 ;
24698 int arg2 = (int) wxNavigationKeyEvent::IsForward ;
24699 bool result;
24700 PyObject * obj0 = 0 ;
24701 PyObject * obj1 = 0 ;
24702 char *kwnames[] = {
24703 (char *) "self",(char *) "flags", NULL
24704 };
24705
24706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Navigate",kwnames,&obj0,&obj1)) goto fail;
24707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24709 if (obj1) {
c32bde28 24710 arg2 = (int)SWIG_As_int(obj1);
908b74cd
RD
24711 if (PyErr_Occurred()) SWIG_fail;
24712 }
24713 {
24714 PyThreadState* __tstate = wxPyBeginAllowThreads();
24715 result = (bool)(arg1)->Navigate(arg2);
24716
24717 wxPyEndAllowThreads(__tstate);
24718 if (PyErr_Occurred()) SWIG_fail;
24719 }
24720 {
24721 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24722 }
24723 return resultobj;
24724 fail:
24725 return NULL;
24726}
24727
24728
c32bde28 24729static PyObject *_wrap_Window_MoveAfterInTabOrder(PyObject *, PyObject *args, PyObject *kwargs) {
bf26d883
RD
24730 PyObject *resultobj;
24731 wxWindow *arg1 = (wxWindow *) 0 ;
24732 wxWindow *arg2 = (wxWindow *) 0 ;
24733 PyObject * obj0 = 0 ;
24734 PyObject * obj1 = 0 ;
24735 char *kwnames[] = {
24736 (char *) "self",(char *) "win", NULL
24737 };
24738
24739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveAfterInTabOrder",kwnames,&obj0,&obj1)) goto fail;
24740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24742 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24743 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24744 {
24745 PyThreadState* __tstate = wxPyBeginAllowThreads();
24746 (arg1)->MoveAfterInTabOrder(arg2);
24747
24748 wxPyEndAllowThreads(__tstate);
24749 if (PyErr_Occurred()) SWIG_fail;
24750 }
24751 Py_INCREF(Py_None); resultobj = Py_None;
24752 return resultobj;
24753 fail:
24754 return NULL;
24755}
24756
24757
c32bde28 24758static PyObject *_wrap_Window_MoveBeforeInTabOrder(PyObject *, PyObject *args, PyObject *kwargs) {
bf26d883
RD
24759 PyObject *resultobj;
24760 wxWindow *arg1 = (wxWindow *) 0 ;
24761 wxWindow *arg2 = (wxWindow *) 0 ;
24762 PyObject * obj0 = 0 ;
24763 PyObject * obj1 = 0 ;
24764 char *kwnames[] = {
24765 (char *) "self",(char *) "win", NULL
24766 };
24767
24768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveBeforeInTabOrder",kwnames,&obj0,&obj1)) goto fail;
24769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24771 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24773 {
24774 PyThreadState* __tstate = wxPyBeginAllowThreads();
24775 (arg1)->MoveBeforeInTabOrder(arg2);
24776
24777 wxPyEndAllowThreads(__tstate);
24778 if (PyErr_Occurred()) SWIG_fail;
24779 }
24780 Py_INCREF(Py_None); resultobj = Py_None;
24781 return resultobj;
24782 fail:
24783 return NULL;
24784}
24785
24786
c32bde28 24787static PyObject *_wrap_Window_GetChildren(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24788 PyObject *resultobj;
24789 wxWindow *arg1 = (wxWindow *) 0 ;
24790 PyObject *result;
24791 PyObject * obj0 = 0 ;
24792 char *kwnames[] = {
24793 (char *) "self", NULL
24794 };
24795
24796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetChildren",kwnames,&obj0)) goto fail;
24797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24799 {
24800 PyThreadState* __tstate = wxPyBeginAllowThreads();
24801 result = (PyObject *)wxWindow_GetChildren(arg1);
24802
24803 wxPyEndAllowThreads(__tstate);
24804 if (PyErr_Occurred()) SWIG_fail;
24805 }
24806 resultobj = result;
24807 return resultobj;
24808 fail:
24809 return NULL;
24810}
24811
24812
c32bde28 24813static PyObject *_wrap_Window_GetParent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24814 PyObject *resultobj;
24815 wxWindow *arg1 = (wxWindow *) 0 ;
24816 wxWindow *result;
24817 PyObject * obj0 = 0 ;
24818 char *kwnames[] = {
24819 (char *) "self", NULL
24820 };
24821
24822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetParent",kwnames,&obj0)) goto fail;
24823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24825 {
24826 PyThreadState* __tstate = wxPyBeginAllowThreads();
24827 result = (wxWindow *)((wxWindow const *)arg1)->GetParent();
24828
24829 wxPyEndAllowThreads(__tstate);
24830 if (PyErr_Occurred()) SWIG_fail;
24831 }
24832 {
412d302d 24833 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
24834 }
24835 return resultobj;
24836 fail:
24837 return NULL;
24838}
24839
24840
c32bde28 24841static PyObject *_wrap_Window_GetGrandParent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24842 PyObject *resultobj;
24843 wxWindow *arg1 = (wxWindow *) 0 ;
24844 wxWindow *result;
24845 PyObject * obj0 = 0 ;
24846 char *kwnames[] = {
24847 (char *) "self", NULL
24848 };
24849
24850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetGrandParent",kwnames,&obj0)) goto fail;
24851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24853 {
24854 PyThreadState* __tstate = wxPyBeginAllowThreads();
24855 result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent();
24856
24857 wxPyEndAllowThreads(__tstate);
24858 if (PyErr_Occurred()) SWIG_fail;
24859 }
24860 {
412d302d 24861 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
24862 }
24863 return resultobj;
24864 fail:
24865 return NULL;
24866}
24867
24868
c32bde28 24869static PyObject *_wrap_Window_IsTopLevel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24870 PyObject *resultobj;
24871 wxWindow *arg1 = (wxWindow *) 0 ;
24872 bool result;
24873 PyObject * obj0 = 0 ;
24874 char *kwnames[] = {
24875 (char *) "self", NULL
24876 };
24877
24878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsTopLevel",kwnames,&obj0)) goto fail;
24879 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24881 {
24882 PyThreadState* __tstate = wxPyBeginAllowThreads();
24883 result = (bool)((wxWindow const *)arg1)->IsTopLevel();
24884
24885 wxPyEndAllowThreads(__tstate);
24886 if (PyErr_Occurred()) SWIG_fail;
24887 }
24888 {
24889 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24890 }
24891 return resultobj;
24892 fail:
24893 return NULL;
24894}
24895
24896
c32bde28 24897static PyObject *_wrap_Window_Reparent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24898 PyObject *resultobj;
24899 wxWindow *arg1 = (wxWindow *) 0 ;
24900 wxWindow *arg2 = (wxWindow *) 0 ;
24901 bool result;
24902 PyObject * obj0 = 0 ;
24903 PyObject * obj1 = 0 ;
24904 char *kwnames[] = {
24905 (char *) "self",(char *) "newParent", NULL
24906 };
24907
24908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) goto fail;
24909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24911 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24913 {
24914 PyThreadState* __tstate = wxPyBeginAllowThreads();
24915 result = (bool)(arg1)->Reparent(arg2);
24916
24917 wxPyEndAllowThreads(__tstate);
24918 if (PyErr_Occurred()) SWIG_fail;
24919 }
24920 {
24921 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24922 }
24923 return resultobj;
24924 fail:
24925 return NULL;
24926}
24927
24928
c32bde28 24929static PyObject *_wrap_Window_AddChild(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24930 PyObject *resultobj;
24931 wxWindow *arg1 = (wxWindow *) 0 ;
24932 wxWindow *arg2 = (wxWindow *) 0 ;
24933 PyObject * obj0 = 0 ;
24934 PyObject * obj1 = 0 ;
24935 char *kwnames[] = {
24936 (char *) "self",(char *) "child", NULL
24937 };
24938
24939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) goto fail;
24940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24942 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24944 {
24945 PyThreadState* __tstate = wxPyBeginAllowThreads();
24946 (arg1)->AddChild(arg2);
24947
24948 wxPyEndAllowThreads(__tstate);
24949 if (PyErr_Occurred()) SWIG_fail;
24950 }
24951 Py_INCREF(Py_None); resultobj = Py_None;
24952 return resultobj;
24953 fail:
24954 return NULL;
24955}
24956
24957
c32bde28 24958static PyObject *_wrap_Window_RemoveChild(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24959 PyObject *resultobj;
24960 wxWindow *arg1 = (wxWindow *) 0 ;
24961 wxWindow *arg2 = (wxWindow *) 0 ;
24962 PyObject * obj0 = 0 ;
24963 PyObject * obj1 = 0 ;
24964 char *kwnames[] = {
24965 (char *) "self",(char *) "child", NULL
24966 };
24967
24968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) goto fail;
24969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24971 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24973 {
24974 PyThreadState* __tstate = wxPyBeginAllowThreads();
24975 (arg1)->RemoveChild(arg2);
24976
24977 wxPyEndAllowThreads(__tstate);
24978 if (PyErr_Occurred()) SWIG_fail;
24979 }
24980 Py_INCREF(Py_None); resultobj = Py_None;
24981 return resultobj;
24982 fail:
24983 return NULL;
24984}
24985
24986
c32bde28 24987static PyObject *_wrap_Window_FindWindowById(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
24988 PyObject *resultobj;
24989 wxWindow *arg1 = (wxWindow *) 0 ;
24990 long arg2 ;
24991 wxWindow *result;
24992 PyObject * obj0 = 0 ;
24993 PyObject * obj1 = 0 ;
24994 char *kwnames[] = {
24995 (char *) "self",(char *) "winid", NULL
24996 };
24997
24998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowById",kwnames,&obj0,&obj1)) goto fail;
24999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 25001 arg2 = (long)SWIG_As_long(obj1);
d55e5bfc
RD
25002 if (PyErr_Occurred()) SWIG_fail;
25003 {
25004 PyThreadState* __tstate = wxPyBeginAllowThreads();
25005 result = (wxWindow *)(arg1)->FindWindow(arg2);
25006
25007 wxPyEndAllowThreads(__tstate);
25008 if (PyErr_Occurred()) SWIG_fail;
25009 }
25010 {
412d302d 25011 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
25012 }
25013 return resultobj;
25014 fail:
25015 return NULL;
25016}
25017
25018
c32bde28 25019static PyObject *_wrap_Window_FindWindowByName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25020 PyObject *resultobj;
25021 wxWindow *arg1 = (wxWindow *) 0 ;
25022 wxString *arg2 = 0 ;
25023 wxWindow *result;
25024 bool temp2 = False ;
25025 PyObject * obj0 = 0 ;
25026 PyObject * obj1 = 0 ;
25027 char *kwnames[] = {
25028 (char *) "self",(char *) "name", NULL
25029 };
25030
25031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) goto fail;
25032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25034 {
25035 arg2 = wxString_in_helper(obj1);
25036 if (arg2 == NULL) SWIG_fail;
25037 temp2 = True;
25038 }
25039 {
25040 PyThreadState* __tstate = wxPyBeginAllowThreads();
25041 result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2);
25042
25043 wxPyEndAllowThreads(__tstate);
25044 if (PyErr_Occurred()) SWIG_fail;
25045 }
25046 {
412d302d 25047 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
25048 }
25049 {
25050 if (temp2)
25051 delete arg2;
25052 }
25053 return resultobj;
25054 fail:
25055 {
25056 if (temp2)
25057 delete arg2;
25058 }
25059 return NULL;
25060}
25061
25062
c32bde28 25063static PyObject *_wrap_Window_GetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25064 PyObject *resultobj;
25065 wxWindow *arg1 = (wxWindow *) 0 ;
25066 wxEvtHandler *result;
25067 PyObject * obj0 = 0 ;
25068 char *kwnames[] = {
25069 (char *) "self", NULL
25070 };
25071
25072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetEventHandler",kwnames,&obj0)) goto fail;
25073 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25075 {
25076 PyThreadState* __tstate = wxPyBeginAllowThreads();
25077 result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler();
25078
25079 wxPyEndAllowThreads(__tstate);
25080 if (PyErr_Occurred()) SWIG_fail;
25081 }
25082 {
412d302d 25083 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
25084 }
25085 return resultobj;
25086 fail:
25087 return NULL;
25088}
25089
25090
c32bde28 25091static PyObject *_wrap_Window_SetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25092 PyObject *resultobj;
25093 wxWindow *arg1 = (wxWindow *) 0 ;
25094 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
25095 PyObject * obj0 = 0 ;
25096 PyObject * obj1 = 0 ;
25097 char *kwnames[] = {
25098 (char *) "self",(char *) "handler", NULL
25099 };
25100
25101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) goto fail;
25102 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25104 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
25105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25106 {
25107 PyThreadState* __tstate = wxPyBeginAllowThreads();
25108 (arg1)->SetEventHandler(arg2);
25109
25110 wxPyEndAllowThreads(__tstate);
25111 if (PyErr_Occurred()) SWIG_fail;
25112 }
25113 Py_INCREF(Py_None); resultobj = Py_None;
25114 return resultobj;
25115 fail:
25116 return NULL;
25117}
25118
25119
c32bde28 25120static PyObject *_wrap_Window_PushEventHandler(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25121 PyObject *resultobj;
25122 wxWindow *arg1 = (wxWindow *) 0 ;
25123 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
25124 PyObject * obj0 = 0 ;
25125 PyObject * obj1 = 0 ;
25126 char *kwnames[] = {
25127 (char *) "self",(char *) "handler", NULL
25128 };
25129
25130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) goto fail;
25131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25133 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
25134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25135 {
25136 PyThreadState* __tstate = wxPyBeginAllowThreads();
25137 (arg1)->PushEventHandler(arg2);
25138
25139 wxPyEndAllowThreads(__tstate);
25140 if (PyErr_Occurred()) SWIG_fail;
25141 }
25142 Py_INCREF(Py_None); resultobj = Py_None;
25143 return resultobj;
25144 fail:
25145 return NULL;
25146}
25147
25148
c32bde28 25149static PyObject *_wrap_Window_PopEventHandler(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25150 PyObject *resultobj;
25151 wxWindow *arg1 = (wxWindow *) 0 ;
25152 bool arg2 = (bool) False ;
25153 wxEvtHandler *result;
25154 PyObject * obj0 = 0 ;
25155 PyObject * obj1 = 0 ;
25156 char *kwnames[] = {
25157 (char *) "self",(char *) "deleteHandler", NULL
25158 };
25159
25160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) goto fail;
25161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25163 if (obj1) {
c32bde28 25164 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
25165 if (PyErr_Occurred()) SWIG_fail;
25166 }
25167 {
25168 PyThreadState* __tstate = wxPyBeginAllowThreads();
25169 result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2);
25170
25171 wxPyEndAllowThreads(__tstate);
25172 if (PyErr_Occurred()) SWIG_fail;
25173 }
25174 {
412d302d 25175 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
25176 }
25177 return resultobj;
25178 fail:
25179 return NULL;
25180}
25181
25182
c32bde28 25183static PyObject *_wrap_Window_RemoveEventHandler(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25184 PyObject *resultobj;
25185 wxWindow *arg1 = (wxWindow *) 0 ;
25186 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
25187 bool result;
25188 PyObject * obj0 = 0 ;
25189 PyObject * obj1 = 0 ;
25190 char *kwnames[] = {
25191 (char *) "self",(char *) "handler", NULL
25192 };
25193
25194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) goto fail;
25195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25197 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
25198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25199 {
25200 PyThreadState* __tstate = wxPyBeginAllowThreads();
25201 result = (bool)(arg1)->RemoveEventHandler(arg2);
25202
25203 wxPyEndAllowThreads(__tstate);
25204 if (PyErr_Occurred()) SWIG_fail;
25205 }
25206 {
25207 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25208 }
25209 return resultobj;
25210 fail:
25211 return NULL;
25212}
25213
25214
c32bde28 25215static PyObject *_wrap_Window_SetValidator(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25216 PyObject *resultobj;
25217 wxWindow *arg1 = (wxWindow *) 0 ;
25218 wxValidator *arg2 = 0 ;
25219 PyObject * obj0 = 0 ;
25220 PyObject * obj1 = 0 ;
25221 char *kwnames[] = {
25222 (char *) "self",(char *) "validator", NULL
25223 };
25224
25225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) goto fail;
25226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25228 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxValidator,
25229 SWIG_POINTER_EXCEPTION | 0)) == -1)
25230 SWIG_fail;
25231 if (arg2 == NULL) {
25232 PyErr_SetString(PyExc_TypeError,"null reference");
25233 SWIG_fail;
25234 }
25235 {
25236 PyThreadState* __tstate = wxPyBeginAllowThreads();
25237 (arg1)->SetValidator((wxValidator const &)*arg2);
25238
25239 wxPyEndAllowThreads(__tstate);
25240 if (PyErr_Occurred()) SWIG_fail;
25241 }
25242 Py_INCREF(Py_None); resultobj = Py_None;
25243 return resultobj;
25244 fail:
25245 return NULL;
25246}
25247
25248
c32bde28 25249static PyObject *_wrap_Window_GetValidator(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25250 PyObject *resultobj;
25251 wxWindow *arg1 = (wxWindow *) 0 ;
25252 wxValidator *result;
25253 PyObject * obj0 = 0 ;
25254 char *kwnames[] = {
25255 (char *) "self", NULL
25256 };
25257
25258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetValidator",kwnames,&obj0)) goto fail;
25259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25261 {
25262 PyThreadState* __tstate = wxPyBeginAllowThreads();
25263 result = (wxValidator *)(arg1)->GetValidator();
25264
25265 wxPyEndAllowThreads(__tstate);
25266 if (PyErr_Occurred()) SWIG_fail;
25267 }
25268 {
412d302d 25269 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
25270 }
25271 return resultobj;
25272 fail:
25273 return NULL;
25274}
25275
25276
c32bde28 25277static PyObject *_wrap_Window_Validate(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25278 PyObject *resultobj;
25279 wxWindow *arg1 = (wxWindow *) 0 ;
25280 bool result;
25281 PyObject * obj0 = 0 ;
25282 char *kwnames[] = {
25283 (char *) "self", NULL
25284 };
25285
25286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Validate",kwnames,&obj0)) goto fail;
25287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25289 {
25290 PyThreadState* __tstate = wxPyBeginAllowThreads();
25291 result = (bool)(arg1)->Validate();
25292
25293 wxPyEndAllowThreads(__tstate);
25294 if (PyErr_Occurred()) SWIG_fail;
25295 }
25296 {
25297 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25298 }
25299 return resultobj;
25300 fail:
25301 return NULL;
25302}
25303
25304
c32bde28 25305static PyObject *_wrap_Window_TransferDataToWindow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25306 PyObject *resultobj;
25307 wxWindow *arg1 = (wxWindow *) 0 ;
25308 bool result;
25309 PyObject * obj0 = 0 ;
25310 char *kwnames[] = {
25311 (char *) "self", NULL
25312 };
25313
25314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataToWindow",kwnames,&obj0)) goto fail;
25315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25317 {
25318 PyThreadState* __tstate = wxPyBeginAllowThreads();
25319 result = (bool)(arg1)->TransferDataToWindow();
25320
25321 wxPyEndAllowThreads(__tstate);
25322 if (PyErr_Occurred()) SWIG_fail;
25323 }
25324 {
25325 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25326 }
25327 return resultobj;
25328 fail:
25329 return NULL;
25330}
25331
25332
c32bde28 25333static PyObject *_wrap_Window_TransferDataFromWindow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25334 PyObject *resultobj;
25335 wxWindow *arg1 = (wxWindow *) 0 ;
25336 bool result;
25337 PyObject * obj0 = 0 ;
25338 char *kwnames[] = {
25339 (char *) "self", NULL
25340 };
25341
25342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataFromWindow",kwnames,&obj0)) goto fail;
25343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25345 {
25346 PyThreadState* __tstate = wxPyBeginAllowThreads();
25347 result = (bool)(arg1)->TransferDataFromWindow();
25348
25349 wxPyEndAllowThreads(__tstate);
25350 if (PyErr_Occurred()) SWIG_fail;
25351 }
25352 {
25353 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25354 }
25355 return resultobj;
25356 fail:
25357 return NULL;
25358}
25359
25360
c32bde28 25361static PyObject *_wrap_Window_InitDialog(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25362 PyObject *resultobj;
25363 wxWindow *arg1 = (wxWindow *) 0 ;
25364 PyObject * obj0 = 0 ;
25365 char *kwnames[] = {
25366 (char *) "self", NULL
25367 };
25368
25369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InitDialog",kwnames,&obj0)) goto fail;
25370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25372 {
25373 PyThreadState* __tstate = wxPyBeginAllowThreads();
25374 (arg1)->InitDialog();
25375
25376 wxPyEndAllowThreads(__tstate);
25377 if (PyErr_Occurred()) SWIG_fail;
25378 }
25379 Py_INCREF(Py_None); resultobj = Py_None;
25380 return resultobj;
25381 fail:
25382 return NULL;
25383}
25384
25385
c32bde28 25386static PyObject *_wrap_Window_SetAcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25387 PyObject *resultobj;
25388 wxWindow *arg1 = (wxWindow *) 0 ;
25389 wxAcceleratorTable *arg2 = 0 ;
25390 PyObject * obj0 = 0 ;
25391 PyObject * obj1 = 0 ;
25392 char *kwnames[] = {
25393 (char *) "self",(char *) "accel", NULL
25394 };
25395
25396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) goto fail;
25397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25399 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorTable,
25400 SWIG_POINTER_EXCEPTION | 0)) == -1)
25401 SWIG_fail;
25402 if (arg2 == NULL) {
25403 PyErr_SetString(PyExc_TypeError,"null reference");
25404 SWIG_fail;
25405 }
25406 {
25407 PyThreadState* __tstate = wxPyBeginAllowThreads();
25408 (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2);
25409
25410 wxPyEndAllowThreads(__tstate);
25411 if (PyErr_Occurred()) SWIG_fail;
25412 }
25413 Py_INCREF(Py_None); resultobj = Py_None;
25414 return resultobj;
25415 fail:
25416 return NULL;
25417}
25418
25419
c32bde28 25420static PyObject *_wrap_Window_GetAcceleratorTable(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25421 PyObject *resultobj;
25422 wxWindow *arg1 = (wxWindow *) 0 ;
25423 wxAcceleratorTable *result;
25424 PyObject * obj0 = 0 ;
25425 char *kwnames[] = {
25426 (char *) "self", NULL
25427 };
25428
25429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAcceleratorTable",kwnames,&obj0)) goto fail;
25430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25432 {
25433 PyThreadState* __tstate = wxPyBeginAllowThreads();
25434 result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable();
25435
25436 wxPyEndAllowThreads(__tstate);
25437 if (PyErr_Occurred()) SWIG_fail;
25438 }
25439 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 0);
25440 return resultobj;
25441 fail:
25442 return NULL;
25443}
25444
25445
c32bde28 25446static PyObject *_wrap_Window_RegisterHotKey(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25447 PyObject *resultobj;
25448 wxWindow *arg1 = (wxWindow *) 0 ;
25449 int arg2 ;
25450 int arg3 ;
25451 int arg4 ;
25452 bool result;
25453 PyObject * obj0 = 0 ;
25454 PyObject * obj1 = 0 ;
25455 PyObject * obj2 = 0 ;
25456 PyObject * obj3 = 0 ;
25457 char *kwnames[] = {
25458 (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL
25459 };
25460
25461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_RegisterHotKey",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 25464 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 25465 if (PyErr_Occurred()) SWIG_fail;
c32bde28 25466 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 25467 if (PyErr_Occurred()) SWIG_fail;
c32bde28 25468 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
25469 if (PyErr_Occurred()) SWIG_fail;
25470 {
25471 PyThreadState* __tstate = wxPyBeginAllowThreads();
25472 result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4);
25473
25474 wxPyEndAllowThreads(__tstate);
25475 if (PyErr_Occurred()) SWIG_fail;
25476 }
25477 {
25478 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25479 }
25480 return resultobj;
25481 fail:
25482 return NULL;
25483}
25484
25485
c32bde28 25486static PyObject *_wrap_Window_UnregisterHotKey(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25487 PyObject *resultobj;
25488 wxWindow *arg1 = (wxWindow *) 0 ;
25489 int arg2 ;
25490 bool result;
25491 PyObject * obj0 = 0 ;
25492 PyObject * obj1 = 0 ;
25493 char *kwnames[] = {
25494 (char *) "self",(char *) "hotkeyId", NULL
25495 };
25496
25497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_UnregisterHotKey",kwnames,&obj0,&obj1)) goto fail;
25498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 25500 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
25501 if (PyErr_Occurred()) SWIG_fail;
25502 {
25503 PyThreadState* __tstate = wxPyBeginAllowThreads();
25504 result = (bool)wxWindow_UnregisterHotKey(arg1,arg2);
25505
25506 wxPyEndAllowThreads(__tstate);
25507 if (PyErr_Occurred()) SWIG_fail;
25508 }
25509 {
25510 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25511 }
25512 return resultobj;
25513 fail:
25514 return NULL;
25515}
25516
25517
c32bde28 25518static PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25519 PyObject *resultobj;
25520 wxWindow *arg1 = (wxWindow *) 0 ;
25521 wxPoint *arg2 = 0 ;
25522 wxPoint result;
25523 wxPoint temp2 ;
25524 PyObject * obj0 = 0 ;
25525 PyObject * obj1 = 0 ;
25526 char *kwnames[] = {
25527 (char *) "self",(char *) "pt", NULL
25528 };
25529
25530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) goto fail;
25531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25533 {
25534 arg2 = &temp2;
25535 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
25536 }
25537 {
25538 PyThreadState* __tstate = wxPyBeginAllowThreads();
25539 result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2);
25540
25541 wxPyEndAllowThreads(__tstate);
25542 if (PyErr_Occurred()) SWIG_fail;
25543 }
25544 {
25545 wxPoint * resultptr;
25546 resultptr = new wxPoint((wxPoint &) result);
25547 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
25548 }
25549 return resultobj;
25550 fail:
25551 return NULL;
25552}
25553
25554
c32bde28 25555static PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25556 PyObject *resultobj;
25557 wxWindow *arg1 = (wxWindow *) 0 ;
25558 wxSize *arg2 = 0 ;
25559 wxSize result;
25560 wxSize temp2 ;
25561 PyObject * obj0 = 0 ;
25562 PyObject * obj1 = 0 ;
25563 char *kwnames[] = {
25564 (char *) "self",(char *) "sz", NULL
25565 };
25566
25567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) goto fail;
25568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25570 {
25571 arg2 = &temp2;
25572 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25573 }
25574 {
25575 PyThreadState* __tstate = wxPyBeginAllowThreads();
25576 result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2);
25577
25578 wxPyEndAllowThreads(__tstate);
25579 if (PyErr_Occurred()) SWIG_fail;
25580 }
25581 {
25582 wxSize * resultptr;
25583 resultptr = new wxSize((wxSize &) result);
25584 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
25585 }
25586 return resultobj;
25587 fail:
25588 return NULL;
25589}
25590
25591
c32bde28 25592static PyObject *_wrap_Window_DLG_PNT(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25593 PyObject *resultobj;
25594 wxWindow *arg1 = (wxWindow *) 0 ;
25595 wxPoint *arg2 = 0 ;
25596 wxPoint result;
25597 wxPoint temp2 ;
25598 PyObject * obj0 = 0 ;
25599 PyObject * obj1 = 0 ;
25600 char *kwnames[] = {
25601 (char *) "self",(char *) "pt", NULL
25602 };
25603
25604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) goto fail;
25605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25607 {
25608 arg2 = &temp2;
25609 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
25610 }
25611 {
25612 PyThreadState* __tstate = wxPyBeginAllowThreads();
25613 result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2);
25614
25615 wxPyEndAllowThreads(__tstate);
25616 if (PyErr_Occurred()) SWIG_fail;
25617 }
25618 {
25619 wxPoint * resultptr;
25620 resultptr = new wxPoint((wxPoint &) result);
25621 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
25622 }
25623 return resultobj;
25624 fail:
25625 return NULL;
25626}
25627
25628
c32bde28 25629static PyObject *_wrap_Window_DLG_SZE(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25630 PyObject *resultobj;
25631 wxWindow *arg1 = (wxWindow *) 0 ;
25632 wxSize *arg2 = 0 ;
25633 wxSize result;
25634 wxSize temp2 ;
25635 PyObject * obj0 = 0 ;
25636 PyObject * obj1 = 0 ;
25637 char *kwnames[] = {
25638 (char *) "self",(char *) "sz", NULL
25639 };
25640
25641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) goto fail;
25642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25644 {
25645 arg2 = &temp2;
25646 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25647 }
25648 {
25649 PyThreadState* __tstate = wxPyBeginAllowThreads();
25650 result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2);
25651
25652 wxPyEndAllowThreads(__tstate);
25653 if (PyErr_Occurred()) SWIG_fail;
25654 }
25655 {
25656 wxSize * resultptr;
25657 resultptr = new wxSize((wxSize &) result);
25658 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
25659 }
25660 return resultobj;
25661 fail:
25662 return NULL;
25663}
25664
25665
c32bde28 25666static PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25667 PyObject *resultobj;
25668 wxWindow *arg1 = (wxWindow *) 0 ;
25669 wxPoint *arg2 = 0 ;
25670 wxPoint result;
25671 wxPoint temp2 ;
25672 PyObject * obj0 = 0 ;
25673 PyObject * obj1 = 0 ;
25674 char *kwnames[] = {
25675 (char *) "self",(char *) "pt", NULL
25676 };
25677
25678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) goto fail;
25679 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25681 {
25682 arg2 = &temp2;
25683 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
25684 }
25685 {
25686 PyThreadState* __tstate = wxPyBeginAllowThreads();
25687 result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2);
25688
25689 wxPyEndAllowThreads(__tstate);
25690 if (PyErr_Occurred()) SWIG_fail;
25691 }
25692 {
25693 wxPoint * resultptr;
25694 resultptr = new wxPoint((wxPoint &) result);
25695 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
25696 }
25697 return resultobj;
25698 fail:
25699 return NULL;
25700}
25701
25702
c32bde28 25703static PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25704 PyObject *resultobj;
25705 wxWindow *arg1 = (wxWindow *) 0 ;
25706 wxSize *arg2 = 0 ;
25707 wxSize result;
25708 wxSize temp2 ;
25709 PyObject * obj0 = 0 ;
25710 PyObject * obj1 = 0 ;
25711 char *kwnames[] = {
25712 (char *) "self",(char *) "sz", NULL
25713 };
25714
25715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) goto fail;
25716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25717 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25718 {
25719 arg2 = &temp2;
25720 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25721 }
25722 {
25723 PyThreadState* __tstate = wxPyBeginAllowThreads();
25724 result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2);
25725
25726 wxPyEndAllowThreads(__tstate);
25727 if (PyErr_Occurred()) SWIG_fail;
25728 }
25729 {
25730 wxSize * resultptr;
25731 resultptr = new wxSize((wxSize &) result);
25732 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
25733 }
25734 return resultobj;
25735 fail:
25736 return NULL;
25737}
25738
25739
c32bde28 25740static PyObject *_wrap_Window_WarpPointer(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25741 PyObject *resultobj;
25742 wxWindow *arg1 = (wxWindow *) 0 ;
25743 int arg2 ;
25744 int arg3 ;
25745 PyObject * obj0 = 0 ;
25746 PyObject * obj1 = 0 ;
25747 PyObject * obj2 = 0 ;
25748 char *kwnames[] = {
25749 (char *) "self",(char *) "x",(char *) "y", NULL
25750 };
25751
25752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_WarpPointer",kwnames,&obj0,&obj1,&obj2)) goto fail;
25753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 25755 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 25756 if (PyErr_Occurred()) SWIG_fail;
c32bde28 25757 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
25758 if (PyErr_Occurred()) SWIG_fail;
25759 {
25760 PyThreadState* __tstate = wxPyBeginAllowThreads();
25761 (arg1)->WarpPointer(arg2,arg3);
25762
25763 wxPyEndAllowThreads(__tstate);
25764 if (PyErr_Occurred()) SWIG_fail;
25765 }
25766 Py_INCREF(Py_None); resultobj = Py_None;
25767 return resultobj;
25768 fail:
25769 return NULL;
25770}
25771
25772
c32bde28 25773static PyObject *_wrap_Window_CaptureMouse(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25774 PyObject *resultobj;
25775 wxWindow *arg1 = (wxWindow *) 0 ;
25776 PyObject * obj0 = 0 ;
25777 char *kwnames[] = {
25778 (char *) "self", NULL
25779 };
25780
25781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_CaptureMouse",kwnames,&obj0)) goto fail;
25782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25784 {
25785 PyThreadState* __tstate = wxPyBeginAllowThreads();
25786 (arg1)->CaptureMouse();
25787
25788 wxPyEndAllowThreads(__tstate);
25789 if (PyErr_Occurred()) SWIG_fail;
25790 }
25791 Py_INCREF(Py_None); resultobj = Py_None;
25792 return resultobj;
25793 fail:
25794 return NULL;
25795}
25796
25797
c32bde28 25798static PyObject *_wrap_Window_ReleaseMouse(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25799 PyObject *resultobj;
25800 wxWindow *arg1 = (wxWindow *) 0 ;
25801 PyObject * obj0 = 0 ;
25802 char *kwnames[] = {
25803 (char *) "self", NULL
25804 };
25805
25806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ReleaseMouse",kwnames,&obj0)) goto fail;
25807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25809 {
25810 PyThreadState* __tstate = wxPyBeginAllowThreads();
25811 (arg1)->ReleaseMouse();
25812
25813 wxPyEndAllowThreads(__tstate);
25814 if (PyErr_Occurred()) SWIG_fail;
25815 }
25816 Py_INCREF(Py_None); resultobj = Py_None;
25817 return resultobj;
25818 fail:
25819 return NULL;
25820}
25821
25822
c32bde28 25823static PyObject *_wrap_Window_GetCapture(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25824 PyObject *resultobj;
25825 wxWindow *result;
25826 char *kwnames[] = {
25827 NULL
25828 };
25829
25830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_GetCapture",kwnames)) goto fail;
25831 {
0439c23b 25832 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
25833 PyThreadState* __tstate = wxPyBeginAllowThreads();
25834 result = (wxWindow *)wxWindow::GetCapture();
25835
25836 wxPyEndAllowThreads(__tstate);
110da5b0 25837 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
25838 }
25839 {
412d302d 25840 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
25841 }
25842 return resultobj;
25843 fail:
25844 return NULL;
25845}
25846
25847
c32bde28 25848static PyObject *_wrap_Window_HasCapture(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25849 PyObject *resultobj;
25850 wxWindow *arg1 = (wxWindow *) 0 ;
25851 bool result;
25852 PyObject * obj0 = 0 ;
25853 char *kwnames[] = {
25854 (char *) "self", NULL
25855 };
25856
25857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasCapture",kwnames,&obj0)) goto fail;
25858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25860 {
25861 PyThreadState* __tstate = wxPyBeginAllowThreads();
25862 result = (bool)((wxWindow const *)arg1)->HasCapture();
25863
25864 wxPyEndAllowThreads(__tstate);
25865 if (PyErr_Occurred()) SWIG_fail;
25866 }
25867 {
25868 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25869 }
25870 return resultobj;
25871 fail:
25872 return NULL;
25873}
25874
25875
c32bde28 25876static PyObject *_wrap_Window_Refresh(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25877 PyObject *resultobj;
25878 wxWindow *arg1 = (wxWindow *) 0 ;
25879 bool arg2 = (bool) True ;
25880 wxRect *arg3 = (wxRect *) NULL ;
25881 PyObject * obj0 = 0 ;
25882 PyObject * obj1 = 0 ;
25883 PyObject * obj2 = 0 ;
25884 char *kwnames[] = {
25885 (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL
25886 };
25887
25888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail;
25889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25891 if (obj1) {
c32bde28 25892 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
25893 if (PyErr_Occurred()) SWIG_fail;
25894 }
25895 if (obj2) {
25896 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxRect,
25897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25898 }
25899 {
25900 PyThreadState* __tstate = wxPyBeginAllowThreads();
25901 (arg1)->Refresh(arg2,(wxRect const *)arg3);
25902
25903 wxPyEndAllowThreads(__tstate);
25904 if (PyErr_Occurred()) SWIG_fail;
25905 }
25906 Py_INCREF(Py_None); resultobj = Py_None;
25907 return resultobj;
25908 fail:
25909 return NULL;
25910}
25911
25912
c32bde28 25913static PyObject *_wrap_Window_RefreshRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25914 PyObject *resultobj;
25915 wxWindow *arg1 = (wxWindow *) 0 ;
25916 wxRect *arg2 = 0 ;
25917 wxRect temp2 ;
25918 PyObject * obj0 = 0 ;
25919 PyObject * obj1 = 0 ;
25920 char *kwnames[] = {
25921 (char *) "self",(char *) "rect", NULL
25922 };
25923
25924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RefreshRect",kwnames,&obj0,&obj1)) goto fail;
25925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25927 {
25928 arg2 = &temp2;
25929 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
25930 }
25931 {
25932 PyThreadState* __tstate = wxPyBeginAllowThreads();
25933 (arg1)->RefreshRect((wxRect const &)*arg2);
25934
25935 wxPyEndAllowThreads(__tstate);
25936 if (PyErr_Occurred()) SWIG_fail;
25937 }
25938 Py_INCREF(Py_None); resultobj = Py_None;
25939 return resultobj;
25940 fail:
25941 return NULL;
25942}
25943
25944
c32bde28 25945static PyObject *_wrap_Window_Update(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25946 PyObject *resultobj;
25947 wxWindow *arg1 = (wxWindow *) 0 ;
25948 PyObject * obj0 = 0 ;
25949 char *kwnames[] = {
25950 (char *) "self", NULL
25951 };
25952
25953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Update",kwnames,&obj0)) goto fail;
25954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25956 {
25957 PyThreadState* __tstate = wxPyBeginAllowThreads();
25958 (arg1)->Update();
25959
25960 wxPyEndAllowThreads(__tstate);
25961 if (PyErr_Occurred()) SWIG_fail;
25962 }
25963 Py_INCREF(Py_None); resultobj = Py_None;
25964 return resultobj;
25965 fail:
25966 return NULL;
25967}
25968
25969
c32bde28 25970static PyObject *_wrap_Window_ClearBackground(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25971 PyObject *resultobj;
25972 wxWindow *arg1 = (wxWindow *) 0 ;
25973 PyObject * obj0 = 0 ;
25974 char *kwnames[] = {
25975 (char *) "self", NULL
25976 };
25977
25978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ClearBackground",kwnames,&obj0)) goto fail;
25979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25981 {
25982 PyThreadState* __tstate = wxPyBeginAllowThreads();
25983 (arg1)->ClearBackground();
25984
25985 wxPyEndAllowThreads(__tstate);
25986 if (PyErr_Occurred()) SWIG_fail;
25987 }
25988 Py_INCREF(Py_None); resultobj = Py_None;
25989 return resultobj;
25990 fail:
25991 return NULL;
25992}
25993
25994
c32bde28 25995static PyObject *_wrap_Window_Freeze(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
25996 PyObject *resultobj;
25997 wxWindow *arg1 = (wxWindow *) 0 ;
25998 PyObject * obj0 = 0 ;
25999 char *kwnames[] = {
26000 (char *) "self", NULL
26001 };
26002
26003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Freeze",kwnames,&obj0)) goto fail;
26004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26006 {
26007 PyThreadState* __tstate = wxPyBeginAllowThreads();
26008 (arg1)->Freeze();
26009
26010 wxPyEndAllowThreads(__tstate);
26011 if (PyErr_Occurred()) SWIG_fail;
26012 }
26013 Py_INCREF(Py_None); resultobj = Py_None;
26014 return resultobj;
26015 fail:
26016 return NULL;
26017}
26018
26019
c32bde28 26020static PyObject *_wrap_Window_Thaw(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26021 PyObject *resultobj;
26022 wxWindow *arg1 = (wxWindow *) 0 ;
26023 PyObject * obj0 = 0 ;
26024 char *kwnames[] = {
26025 (char *) "self", NULL
26026 };
26027
26028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Thaw",kwnames,&obj0)) goto fail;
26029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26031 {
26032 PyThreadState* __tstate = wxPyBeginAllowThreads();
26033 (arg1)->Thaw();
26034
26035 wxPyEndAllowThreads(__tstate);
26036 if (PyErr_Occurred()) SWIG_fail;
26037 }
26038 Py_INCREF(Py_None); resultobj = Py_None;
26039 return resultobj;
26040 fail:
26041 return NULL;
26042}
26043
26044
c32bde28 26045static PyObject *_wrap_Window_PrepareDC(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26046 PyObject *resultobj;
26047 wxWindow *arg1 = (wxWindow *) 0 ;
26048 wxDC *arg2 = 0 ;
26049 PyObject * obj0 = 0 ;
26050 PyObject * obj1 = 0 ;
26051 char *kwnames[] = {
26052 (char *) "self",(char *) "dc", NULL
26053 };
26054
26055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) goto fail;
26056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26058 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
26059 SWIG_POINTER_EXCEPTION | 0)) == -1)
26060 SWIG_fail;
26061 if (arg2 == NULL) {
26062 PyErr_SetString(PyExc_TypeError,"null reference");
26063 SWIG_fail;
26064 }
26065 {
26066 PyThreadState* __tstate = wxPyBeginAllowThreads();
26067 (arg1)->PrepareDC(*arg2);
26068
26069 wxPyEndAllowThreads(__tstate);
26070 if (PyErr_Occurred()) SWIG_fail;
26071 }
26072 Py_INCREF(Py_None); resultobj = Py_None;
26073 return resultobj;
26074 fail:
26075 return NULL;
26076}
26077
26078
c32bde28 26079static PyObject *_wrap_Window_GetUpdateRegion(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26080 PyObject *resultobj;
26081 wxWindow *arg1 = (wxWindow *) 0 ;
26082 wxRegion *result;
26083 PyObject * obj0 = 0 ;
26084 char *kwnames[] = {
26085 (char *) "self", NULL
26086 };
26087
26088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateRegion",kwnames,&obj0)) goto fail;
26089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26091 {
26092 PyThreadState* __tstate = wxPyBeginAllowThreads();
26093 {
26094 wxRegion &_result_ref = (arg1)->GetUpdateRegion();
26095 result = (wxRegion *) &_result_ref;
26096 }
26097
26098 wxPyEndAllowThreads(__tstate);
26099 if (PyErr_Occurred()) SWIG_fail;
26100 }
26101 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 0);
26102 return resultobj;
26103 fail:
26104 return NULL;
26105}
26106
26107
c32bde28 26108static PyObject *_wrap_Window_GetUpdateClientRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26109 PyObject *resultobj;
26110 wxWindow *arg1 = (wxWindow *) 0 ;
26111 wxRect result;
26112 PyObject * obj0 = 0 ;
26113 char *kwnames[] = {
26114 (char *) "self", NULL
26115 };
26116
26117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateClientRect",kwnames,&obj0)) goto fail;
26118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26120 {
26121 PyThreadState* __tstate = wxPyBeginAllowThreads();
26122 result = ((wxWindow const *)arg1)->GetUpdateClientRect();
26123
26124 wxPyEndAllowThreads(__tstate);
26125 if (PyErr_Occurred()) SWIG_fail;
26126 }
26127 {
26128 wxRect * resultptr;
26129 resultptr = new wxRect((wxRect &) result);
26130 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
26131 }
26132 return resultobj;
26133 fail:
26134 return NULL;
26135}
26136
26137
c32bde28 26138static PyObject *_wrap_Window_IsExposed(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26139 PyObject *resultobj;
26140 wxWindow *arg1 = (wxWindow *) 0 ;
26141 int arg2 ;
26142 int arg3 ;
26143 int arg4 = (int) 1 ;
26144 int arg5 = (int) 1 ;
26145 bool result;
26146 PyObject * obj0 = 0 ;
26147 PyObject * obj1 = 0 ;
26148 PyObject * obj2 = 0 ;
26149 PyObject * obj3 = 0 ;
26150 PyObject * obj4 = 0 ;
26151 char *kwnames[] = {
26152 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26153 };
26154
26155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_IsExposed",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
26156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 26158 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 26159 if (PyErr_Occurred()) SWIG_fail;
c32bde28 26160 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
26161 if (PyErr_Occurred()) SWIG_fail;
26162 if (obj3) {
c32bde28 26163 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
26164 if (PyErr_Occurred()) SWIG_fail;
26165 }
26166 if (obj4) {
c32bde28 26167 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
26168 if (PyErr_Occurred()) SWIG_fail;
26169 }
26170 {
26171 PyThreadState* __tstate = wxPyBeginAllowThreads();
26172 result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5);
26173
26174 wxPyEndAllowThreads(__tstate);
26175 if (PyErr_Occurred()) SWIG_fail;
26176 }
26177 {
26178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26179 }
26180 return resultobj;
26181 fail:
26182 return NULL;
26183}
26184
26185
c32bde28 26186static PyObject *_wrap_Window_IsExposedPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26187 PyObject *resultobj;
26188 wxWindow *arg1 = (wxWindow *) 0 ;
26189 wxPoint *arg2 = 0 ;
26190 bool result;
26191 wxPoint temp2 ;
26192 PyObject * obj0 = 0 ;
26193 PyObject * obj1 = 0 ;
26194 char *kwnames[] = {
26195 (char *) "self",(char *) "pt", NULL
26196 };
26197
26198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) goto fail;
26199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26201 {
26202 arg2 = &temp2;
26203 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26204 }
26205 {
26206 PyThreadState* __tstate = wxPyBeginAllowThreads();
26207 result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2);
26208
26209 wxPyEndAllowThreads(__tstate);
26210 if (PyErr_Occurred()) SWIG_fail;
26211 }
26212 {
26213 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26214 }
26215 return resultobj;
26216 fail:
26217 return NULL;
26218}
26219
26220
c32bde28 26221static PyObject *_wrap_Window_IsExposedRect(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26222 PyObject *resultobj;
26223 wxWindow *arg1 = (wxWindow *) 0 ;
26224 wxRect *arg2 = 0 ;
26225 bool result;
26226 wxRect temp2 ;
26227 PyObject * obj0 = 0 ;
26228 PyObject * obj1 = 0 ;
26229 char *kwnames[] = {
26230 (char *) "self",(char *) "rect", NULL
26231 };
26232
26233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedRect",kwnames,&obj0,&obj1)) goto fail;
26234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26236 {
26237 arg2 = &temp2;
26238 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
26239 }
26240 {
26241 PyThreadState* __tstate = wxPyBeginAllowThreads();
26242 result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2);
26243
26244 wxPyEndAllowThreads(__tstate);
26245 if (PyErr_Occurred()) SWIG_fail;
26246 }
26247 {
26248 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26249 }
26250 return resultobj;
26251 fail:
26252 return NULL;
26253}
26254
26255
c32bde28 26256static PyObject *_wrap_Window_GetDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26257 PyObject *resultobj;
26258 wxWindow *arg1 = (wxWindow *) 0 ;
26259 wxVisualAttributes result;
26260 PyObject * obj0 = 0 ;
26261 char *kwnames[] = {
26262 (char *) "self", NULL
26263 };
26264
26265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultAttributes",kwnames,&obj0)) goto fail;
26266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26268 {
26269 PyThreadState* __tstate = wxPyBeginAllowThreads();
26270 result = ((wxWindow const *)arg1)->GetDefaultAttributes();
26271
26272 wxPyEndAllowThreads(__tstate);
26273 if (PyErr_Occurred()) SWIG_fail;
26274 }
26275 {
26276 wxVisualAttributes * resultptr;
26277 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
26278 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
26279 }
26280 return resultobj;
26281 fail:
26282 return NULL;
26283}
26284
26285
c32bde28 26286static PyObject *_wrap_Window_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26287 PyObject *resultobj;
26288 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
26289 wxVisualAttributes result;
26290 PyObject * obj0 = 0 ;
26291 char *kwnames[] = {
26292 (char *) "variant", NULL
26293 };
26294
26295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Window_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
26296 if (obj0) {
c32bde28 26297 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
26298 if (PyErr_Occurred()) SWIG_fail;
26299 }
26300 {
0439c23b 26301 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
26302 PyThreadState* __tstate = wxPyBeginAllowThreads();
26303 result = wxWindow::GetClassDefaultAttributes((wxWindowVariant )arg1);
26304
26305 wxPyEndAllowThreads(__tstate);
110da5b0 26306 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
26307 }
26308 {
26309 wxVisualAttributes * resultptr;
26310 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
26311 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
26312 }
26313 return resultobj;
26314 fail:
26315 return NULL;
26316}
26317
26318
c32bde28 26319static PyObject *_wrap_Window_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26320 PyObject *resultobj;
26321 wxWindow *arg1 = (wxWindow *) 0 ;
26322 wxColour *arg2 = 0 ;
26323 bool result;
26324 wxColour temp2 ;
26325 PyObject * obj0 = 0 ;
26326 PyObject * obj1 = 0 ;
26327 char *kwnames[] = {
26328 (char *) "self",(char *) "colour", NULL
26329 };
26330
26331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
26332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26334 {
26335 arg2 = &temp2;
26336 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26337 }
26338 {
26339 PyThreadState* __tstate = wxPyBeginAllowThreads();
26340 result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2);
26341
26342 wxPyEndAllowThreads(__tstate);
26343 if (PyErr_Occurred()) SWIG_fail;
26344 }
26345 {
26346 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26347 }
26348 return resultobj;
26349 fail:
26350 return NULL;
26351}
26352
26353
c32bde28 26354static PyObject *_wrap_Window_SetOwnBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26355 PyObject *resultobj;
26356 wxWindow *arg1 = (wxWindow *) 0 ;
26357 wxColour *arg2 = 0 ;
26358 wxColour temp2 ;
26359 PyObject * obj0 = 0 ;
26360 PyObject * obj1 = 0 ;
26361 char *kwnames[] = {
26362 (char *) "self",(char *) "colour", NULL
26363 };
26364
412d302d 26365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
26366 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26368 {
26369 arg2 = &temp2;
26370 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26371 }
26372 {
26373 PyThreadState* __tstate = wxPyBeginAllowThreads();
412d302d 26374 (arg1)->SetOwnBackgroundColour((wxColour const &)*arg2);
d55e5bfc
RD
26375
26376 wxPyEndAllowThreads(__tstate);
26377 if (PyErr_Occurred()) SWIG_fail;
26378 }
26379 Py_INCREF(Py_None); resultobj = Py_None;
26380 return resultobj;
26381 fail:
26382 return NULL;
26383}
26384
26385
c32bde28 26386static PyObject *_wrap_Window_SetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26387 PyObject *resultobj;
26388 wxWindow *arg1 = (wxWindow *) 0 ;
26389 wxColour *arg2 = 0 ;
26390 bool result;
26391 wxColour temp2 ;
26392 PyObject * obj0 = 0 ;
26393 PyObject * obj1 = 0 ;
26394 char *kwnames[] = {
26395 (char *) "self",(char *) "colour", NULL
26396 };
26397
26398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail;
26399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26401 {
26402 arg2 = &temp2;
26403 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26404 }
26405 {
26406 PyThreadState* __tstate = wxPyBeginAllowThreads();
26407 result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2);
26408
26409 wxPyEndAllowThreads(__tstate);
26410 if (PyErr_Occurred()) SWIG_fail;
26411 }
26412 {
26413 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26414 }
26415 return resultobj;
26416 fail:
26417 return NULL;
26418}
26419
26420
c32bde28 26421static PyObject *_wrap_Window_SetOwnForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26422 PyObject *resultobj;
26423 wxWindow *arg1 = (wxWindow *) 0 ;
26424 wxColour *arg2 = 0 ;
26425 wxColour temp2 ;
26426 PyObject * obj0 = 0 ;
26427 PyObject * obj1 = 0 ;
26428 char *kwnames[] = {
26429 (char *) "self",(char *) "colour", NULL
26430 };
26431
fa47d7a7 26432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnForegroundColour",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
26433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26435 {
26436 arg2 = &temp2;
26437 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26438 }
26439 {
26440 PyThreadState* __tstate = wxPyBeginAllowThreads();
fa47d7a7 26441 (arg1)->SetOwnForegroundColour((wxColour const &)*arg2);
d55e5bfc
RD
26442
26443 wxPyEndAllowThreads(__tstate);
26444 if (PyErr_Occurred()) SWIG_fail;
26445 }
26446 Py_INCREF(Py_None); resultobj = Py_None;
26447 return resultobj;
26448 fail:
26449 return NULL;
26450}
26451
26452
c32bde28 26453static PyObject *_wrap_Window_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26454 PyObject *resultobj;
26455 wxWindow *arg1 = (wxWindow *) 0 ;
26456 wxColour result;
26457 PyObject * obj0 = 0 ;
26458 char *kwnames[] = {
26459 (char *) "self", NULL
26460 };
26461
26462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundColour",kwnames,&obj0)) goto fail;
26463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26465 {
26466 PyThreadState* __tstate = wxPyBeginAllowThreads();
26467 result = ((wxWindow const *)arg1)->GetBackgroundColour();
26468
26469 wxPyEndAllowThreads(__tstate);
26470 if (PyErr_Occurred()) SWIG_fail;
26471 }
26472 {
26473 wxColour * resultptr;
26474 resultptr = new wxColour((wxColour &) result);
26475 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
26476 }
26477 return resultobj;
26478 fail:
26479 return NULL;
26480}
26481
26482
c32bde28 26483static PyObject *_wrap_Window_GetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26484 PyObject *resultobj;
26485 wxWindow *arg1 = (wxWindow *) 0 ;
26486 wxColour result;
26487 PyObject * obj0 = 0 ;
26488 char *kwnames[] = {
26489 (char *) "self", NULL
26490 };
26491
26492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetForegroundColour",kwnames,&obj0)) goto fail;
26493 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26495 {
26496 PyThreadState* __tstate = wxPyBeginAllowThreads();
26497 result = ((wxWindow const *)arg1)->GetForegroundColour();
26498
26499 wxPyEndAllowThreads(__tstate);
26500 if (PyErr_Occurred()) SWIG_fail;
26501 }
26502 {
26503 wxColour * resultptr;
26504 resultptr = new wxColour((wxColour &) result);
26505 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
26506 }
26507 return resultobj;
26508 fail:
26509 return NULL;
26510}
26511
26512
c32bde28 26513static PyObject *_wrap_Window_SetBackgroundStyle(PyObject *, PyObject *args, PyObject *kwargs) {
0f63ec68
RD
26514 PyObject *resultobj;
26515 wxWindow *arg1 = (wxWindow *) 0 ;
26516 int arg2 ;
26517 bool result;
26518 PyObject * obj0 = 0 ;
26519 PyObject * obj1 = 0 ;
26520 char *kwnames[] = {
26521 (char *) "self",(char *) "style", NULL
26522 };
26523
26524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundStyle",kwnames,&obj0,&obj1)) goto fail;
26525 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 26527 arg2 = (int)SWIG_As_int(obj1);
0f63ec68
RD
26528 if (PyErr_Occurred()) SWIG_fail;
26529 {
26530 PyThreadState* __tstate = wxPyBeginAllowThreads();
26531 result = (bool)(arg1)->SetBackgroundStyle((wxBackgroundStyle )arg2);
26532
26533 wxPyEndAllowThreads(__tstate);
26534 if (PyErr_Occurred()) SWIG_fail;
26535 }
26536 {
26537 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26538 }
26539 return resultobj;
26540 fail:
26541 return NULL;
26542}
26543
26544
c32bde28 26545static PyObject *_wrap_Window_GetBackgroundStyle(PyObject *, PyObject *args, PyObject *kwargs) {
0f63ec68
RD
26546 PyObject *resultobj;
26547 wxWindow *arg1 = (wxWindow *) 0 ;
26548 int result;
26549 PyObject * obj0 = 0 ;
26550 char *kwnames[] = {
26551 (char *) "self", NULL
26552 };
26553
26554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundStyle",kwnames,&obj0)) goto fail;
26555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26557 {
26558 PyThreadState* __tstate = wxPyBeginAllowThreads();
26559 result = (int)((wxWindow const *)arg1)->GetBackgroundStyle();
26560
26561 wxPyEndAllowThreads(__tstate);
26562 if (PyErr_Occurred()) SWIG_fail;
26563 }
c32bde28 26564 resultobj = SWIG_From_int((int)result);
0f63ec68
RD
26565 return resultobj;
26566 fail:
26567 return NULL;
26568}
26569
26570
c32bde28 26571static PyObject *_wrap_Window_SetCursor(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26572 PyObject *resultobj;
26573 wxWindow *arg1 = (wxWindow *) 0 ;
26574 wxCursor *arg2 = 0 ;
26575 bool result;
26576 PyObject * obj0 = 0 ;
26577 PyObject * obj1 = 0 ;
26578 char *kwnames[] = {
26579 (char *) "self",(char *) "cursor", NULL
26580 };
26581
26582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) goto fail;
26583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26585 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
26586 SWIG_POINTER_EXCEPTION | 0)) == -1)
26587 SWIG_fail;
26588 if (arg2 == NULL) {
26589 PyErr_SetString(PyExc_TypeError,"null reference");
26590 SWIG_fail;
26591 }
26592 {
26593 PyThreadState* __tstate = wxPyBeginAllowThreads();
26594 result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2);
26595
26596 wxPyEndAllowThreads(__tstate);
26597 if (PyErr_Occurred()) SWIG_fail;
26598 }
26599 {
26600 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26601 }
26602 return resultobj;
26603 fail:
26604 return NULL;
26605}
26606
26607
c32bde28 26608static PyObject *_wrap_Window_GetCursor(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26609 PyObject *resultobj;
26610 wxWindow *arg1 = (wxWindow *) 0 ;
a001823c 26611 wxCursor result;
d55e5bfc
RD
26612 PyObject * obj0 = 0 ;
26613 char *kwnames[] = {
26614 (char *) "self", NULL
26615 };
26616
26617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCursor",kwnames,&obj0)) goto fail;
26618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26620 {
26621 PyThreadState* __tstate = wxPyBeginAllowThreads();
a001823c 26622 result = (arg1)->GetCursor();
d55e5bfc
RD
26623
26624 wxPyEndAllowThreads(__tstate);
26625 if (PyErr_Occurred()) SWIG_fail;
26626 }
26627 {
a001823c
RD
26628 wxCursor * resultptr;
26629 resultptr = new wxCursor((wxCursor &) result);
26630 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxCursor, 1);
d55e5bfc
RD
26631 }
26632 return resultobj;
26633 fail:
26634 return NULL;
26635}
26636
26637
c32bde28 26638static PyObject *_wrap_Window_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26639 PyObject *resultobj;
26640 wxWindow *arg1 = (wxWindow *) 0 ;
26641 wxFont *arg2 = 0 ;
26642 bool result;
26643 PyObject * obj0 = 0 ;
26644 PyObject * obj1 = 0 ;
26645 char *kwnames[] = {
26646 (char *) "self",(char *) "font", NULL
26647 };
26648
26649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) goto fail;
26650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26652 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
26653 SWIG_POINTER_EXCEPTION | 0)) == -1)
26654 SWIG_fail;
26655 if (arg2 == NULL) {
26656 PyErr_SetString(PyExc_TypeError,"null reference");
26657 SWIG_fail;
26658 }
26659 {
26660 PyThreadState* __tstate = wxPyBeginAllowThreads();
26661 result = (bool)(arg1)->SetFont((wxFont const &)*arg2);
26662
26663 wxPyEndAllowThreads(__tstate);
26664 if (PyErr_Occurred()) SWIG_fail;
26665 }
26666 {
26667 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26668 }
26669 return resultobj;
26670 fail:
26671 return NULL;
26672}
26673
26674
c32bde28 26675static PyObject *_wrap_Window_SetOwnFont(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26676 PyObject *resultobj;
26677 wxWindow *arg1 = (wxWindow *) 0 ;
26678 wxFont *arg2 = 0 ;
26679 PyObject * obj0 = 0 ;
26680 PyObject * obj1 = 0 ;
26681 char *kwnames[] = {
26682 (char *) "self",(char *) "font", NULL
26683 };
26684
fa47d7a7 26685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnFont",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
26686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26688 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
26689 SWIG_POINTER_EXCEPTION | 0)) == -1)
26690 SWIG_fail;
26691 if (arg2 == NULL) {
26692 PyErr_SetString(PyExc_TypeError,"null reference");
26693 SWIG_fail;
26694 }
26695 {
26696 PyThreadState* __tstate = wxPyBeginAllowThreads();
fa47d7a7 26697 (arg1)->SetOwnFont((wxFont const &)*arg2);
d55e5bfc
RD
26698
26699 wxPyEndAllowThreads(__tstate);
26700 if (PyErr_Occurred()) SWIG_fail;
26701 }
26702 Py_INCREF(Py_None); resultobj = Py_None;
26703 return resultobj;
26704 fail:
26705 return NULL;
26706}
26707
26708
c32bde28 26709static PyObject *_wrap_Window_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26710 PyObject *resultobj;
26711 wxWindow *arg1 = (wxWindow *) 0 ;
a001823c 26712 wxFont result;
d55e5bfc
RD
26713 PyObject * obj0 = 0 ;
26714 char *kwnames[] = {
26715 (char *) "self", NULL
26716 };
26717
26718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetFont",kwnames,&obj0)) goto fail;
26719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26721 {
26722 PyThreadState* __tstate = wxPyBeginAllowThreads();
a001823c 26723 result = (arg1)->GetFont();
d55e5bfc
RD
26724
26725 wxPyEndAllowThreads(__tstate);
26726 if (PyErr_Occurred()) SWIG_fail;
26727 }
26728 {
a001823c
RD
26729 wxFont * resultptr;
26730 resultptr = new wxFont((wxFont &) result);
26731 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
d55e5bfc
RD
26732 }
26733 return resultobj;
26734 fail:
26735 return NULL;
26736}
26737
26738
c32bde28 26739static PyObject *_wrap_Window_SetCaret(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26740 PyObject *resultobj;
26741 wxWindow *arg1 = (wxWindow *) 0 ;
26742 wxCaret *arg2 = (wxCaret *) 0 ;
26743 PyObject * obj0 = 0 ;
26744 PyObject * obj1 = 0 ;
26745 char *kwnames[] = {
26746 (char *) "self",(char *) "caret", NULL
26747 };
26748
26749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",kwnames,&obj0,&obj1)) goto fail;
26750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26752 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCaret,
26753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26754 {
26755 PyThreadState* __tstate = wxPyBeginAllowThreads();
26756 (arg1)->SetCaret(arg2);
26757
26758 wxPyEndAllowThreads(__tstate);
26759 if (PyErr_Occurred()) SWIG_fail;
26760 }
26761 Py_INCREF(Py_None); resultobj = Py_None;
26762 return resultobj;
26763 fail:
26764 return NULL;
26765}
26766
26767
c32bde28 26768static PyObject *_wrap_Window_GetCaret(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26769 PyObject *resultobj;
26770 wxWindow *arg1 = (wxWindow *) 0 ;
26771 wxCaret *result;
26772 PyObject * obj0 = 0 ;
26773 char *kwnames[] = {
26774 (char *) "self", NULL
26775 };
26776
26777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCaret",kwnames,&obj0)) goto fail;
26778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26780 {
26781 PyThreadState* __tstate = wxPyBeginAllowThreads();
26782 result = (wxCaret *)((wxWindow const *)arg1)->GetCaret();
26783
26784 wxPyEndAllowThreads(__tstate);
26785 if (PyErr_Occurred()) SWIG_fail;
26786 }
26787 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 0);
26788 return resultobj;
26789 fail:
26790 return NULL;
26791}
26792
26793
c32bde28 26794static PyObject *_wrap_Window_GetCharHeight(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26795 PyObject *resultobj;
26796 wxWindow *arg1 = (wxWindow *) 0 ;
26797 int result;
26798 PyObject * obj0 = 0 ;
26799 char *kwnames[] = {
26800 (char *) "self", NULL
26801 };
26802
26803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharHeight",kwnames,&obj0)) goto fail;
26804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26806 {
26807 PyThreadState* __tstate = wxPyBeginAllowThreads();
26808 result = (int)((wxWindow const *)arg1)->GetCharHeight();
26809
26810 wxPyEndAllowThreads(__tstate);
26811 if (PyErr_Occurred()) SWIG_fail;
26812 }
c32bde28 26813 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
26814 return resultobj;
26815 fail:
26816 return NULL;
26817}
26818
26819
c32bde28 26820static PyObject *_wrap_Window_GetCharWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26821 PyObject *resultobj;
26822 wxWindow *arg1 = (wxWindow *) 0 ;
26823 int result;
26824 PyObject * obj0 = 0 ;
26825 char *kwnames[] = {
26826 (char *) "self", NULL
26827 };
26828
26829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharWidth",kwnames,&obj0)) goto fail;
26830 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26831 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26832 {
26833 PyThreadState* __tstate = wxPyBeginAllowThreads();
26834 result = (int)((wxWindow const *)arg1)->GetCharWidth();
26835
26836 wxPyEndAllowThreads(__tstate);
26837 if (PyErr_Occurred()) SWIG_fail;
26838 }
c32bde28 26839 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
26840 return resultobj;
26841 fail:
26842 return NULL;
26843}
26844
26845
c32bde28 26846static PyObject *_wrap_Window_GetTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26847 PyObject *resultobj;
26848 wxWindow *arg1 = (wxWindow *) 0 ;
26849 wxString *arg2 = 0 ;
26850 int *arg3 = (int *) 0 ;
26851 int *arg4 = (int *) 0 ;
26852 bool temp2 = False ;
26853 int temp3 ;
c32bde28 26854 int res3 = 0 ;
d55e5bfc 26855 int temp4 ;
c32bde28 26856 int res4 = 0 ;
d55e5bfc
RD
26857 PyObject * obj0 = 0 ;
26858 PyObject * obj1 = 0 ;
26859 char *kwnames[] = {
26860 (char *) "self",(char *) "string", NULL
26861 };
26862
c32bde28
RD
26863 arg3 = &temp3; res3 = SWIG_NEWOBJ;
26864 arg4 = &temp4; res4 = SWIG_NEWOBJ;
d55e5bfc
RD
26865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
26866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26868 {
26869 arg2 = wxString_in_helper(obj1);
26870 if (arg2 == NULL) SWIG_fail;
26871 temp2 = True;
26872 }
26873 {
26874 PyThreadState* __tstate = wxPyBeginAllowThreads();
26875 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
26876
26877 wxPyEndAllowThreads(__tstate);
26878 if (PyErr_Occurred()) SWIG_fail;
26879 }
26880 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
26881 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
26882 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
26883 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
26884 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
26885 {
26886 if (temp2)
26887 delete arg2;
26888 }
26889 return resultobj;
26890 fail:
26891 {
26892 if (temp2)
26893 delete arg2;
26894 }
26895 return NULL;
26896}
26897
26898
c32bde28 26899static PyObject *_wrap_Window_GetFullTextExtent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26900 PyObject *resultobj;
26901 wxWindow *arg1 = (wxWindow *) 0 ;
26902 wxString *arg2 = 0 ;
26903 int *arg3 = (int *) 0 ;
26904 int *arg4 = (int *) 0 ;
26905 int *arg5 = (int *) 0 ;
26906 int *arg6 = (int *) 0 ;
26907 wxFont *arg7 = (wxFont *) NULL ;
26908 bool temp2 = False ;
26909 int temp3 ;
c32bde28 26910 int res3 = 0 ;
d55e5bfc 26911 int temp4 ;
c32bde28 26912 int res4 = 0 ;
d55e5bfc 26913 int temp5 ;
c32bde28 26914 int res5 = 0 ;
d55e5bfc 26915 int temp6 ;
c32bde28 26916 int res6 = 0 ;
d55e5bfc
RD
26917 PyObject * obj0 = 0 ;
26918 PyObject * obj1 = 0 ;
26919 PyObject * obj2 = 0 ;
26920 char *kwnames[] = {
26921 (char *) "self",(char *) "string",(char *) "font", NULL
26922 };
26923
c32bde28
RD
26924 arg3 = &temp3; res3 = SWIG_NEWOBJ;
26925 arg4 = &temp4; res4 = SWIG_NEWOBJ;
26926 arg5 = &temp5; res5 = SWIG_NEWOBJ;
26927 arg6 = &temp6; res6 = SWIG_NEWOBJ;
d55e5bfc
RD
26928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
26929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26931 {
26932 arg2 = wxString_in_helper(obj1);
26933 if (arg2 == NULL) SWIG_fail;
26934 temp2 = True;
26935 }
26936 if (obj2) {
26937 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
26938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26939 }
26940 {
26941 PyThreadState* __tstate = wxPyBeginAllowThreads();
26942 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7);
26943
26944 wxPyEndAllowThreads(__tstate);
26945 if (PyErr_Occurred()) SWIG_fail;
26946 }
26947 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
26948 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
26949 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
26950 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
26951 SWIG_From_int((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, 0)));
26952 resultobj = t_output_helper(resultobj, ((res5 == SWIG_NEWOBJ) ?
26953 SWIG_From_int((*arg5)) : SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, 0)));
26954 resultobj = t_output_helper(resultobj, ((res6 == SWIG_NEWOBJ) ?
26955 SWIG_From_int((*arg6)) : SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
26956 {
26957 if (temp2)
26958 delete arg2;
26959 }
26960 return resultobj;
26961 fail:
26962 {
26963 if (temp2)
26964 delete arg2;
26965 }
26966 return NULL;
26967}
26968
26969
c32bde28 26970static PyObject *_wrap_Window_ClientToScreenXY(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26971 PyObject *resultobj;
26972 wxWindow *arg1 = (wxWindow *) 0 ;
26973 int *arg2 = (int *) 0 ;
26974 int *arg3 = (int *) 0 ;
26975 int temp2 ;
c32bde28 26976 int res2 = 0 ;
d55e5bfc 26977 int temp3 ;
c32bde28 26978 int res3 = 0 ;
d55e5bfc
RD
26979 PyObject * obj0 = 0 ;
26980 PyObject * obj1 = 0 ;
26981 PyObject * obj2 = 0 ;
26982 char *kwnames[] = {
26983 (char *) "self",(char *) "x",(char *) "y", NULL
26984 };
26985
26986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
26987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26989 {
c32bde28
RD
26990 if (!(SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_int,0) != -1)) {
26991 temp2 = SWIG_As_int(obj1);
26992 if (PyErr_Occurred()) SWIG_fail;
26993 arg2 = &temp2;
26994 res2 = SWIG_NEWOBJ;
26995 }
d55e5bfc
RD
26996 }
26997 {
c32bde28
RD
26998 if (!(SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_int,0) != -1)) {
26999 temp3 = SWIG_As_int(obj2);
27000 if (PyErr_Occurred()) SWIG_fail;
27001 arg3 = &temp3;
27002 res3 = SWIG_NEWOBJ;
27003 }
d55e5bfc
RD
27004 }
27005 {
27006 PyThreadState* __tstate = wxPyBeginAllowThreads();
27007 ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3);
27008
27009 wxPyEndAllowThreads(__tstate);
27010 if (PyErr_Occurred()) SWIG_fail;
27011 }
27012 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
27013 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
27014 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
27015 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
27016 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
27017 return resultobj;
27018 fail:
27019 return NULL;
27020}
27021
27022
c32bde28 27023static PyObject *_wrap_Window_ScreenToClientXY(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27024 PyObject *resultobj;
27025 wxWindow *arg1 = (wxWindow *) 0 ;
27026 int *arg2 = (int *) 0 ;
27027 int *arg3 = (int *) 0 ;
27028 int temp2 ;
c32bde28 27029 int res2 = 0 ;
d55e5bfc 27030 int temp3 ;
c32bde28 27031 int res3 = 0 ;
d55e5bfc
RD
27032 PyObject * obj0 = 0 ;
27033 PyObject * obj1 = 0 ;
27034 PyObject * obj2 = 0 ;
27035 char *kwnames[] = {
27036 (char *) "self",(char *) "x",(char *) "y", NULL
27037 };
27038
27039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
27040 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27041 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27042 {
c32bde28
RD
27043 if (!(SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_int,0) != -1)) {
27044 temp2 = SWIG_As_int(obj1);
27045 if (PyErr_Occurred()) SWIG_fail;
27046 arg2 = &temp2;
27047 res2 = SWIG_NEWOBJ;
27048 }
d55e5bfc
RD
27049 }
27050 {
c32bde28
RD
27051 if (!(SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_int,0) != -1)) {
27052 temp3 = SWIG_As_int(obj2);
27053 if (PyErr_Occurred()) SWIG_fail;
27054 arg3 = &temp3;
27055 res3 = SWIG_NEWOBJ;
27056 }
d55e5bfc
RD
27057 }
27058 {
27059 PyThreadState* __tstate = wxPyBeginAllowThreads();
27060 ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3);
27061
27062 wxPyEndAllowThreads(__tstate);
27063 if (PyErr_Occurred()) SWIG_fail;
27064 }
27065 Py_INCREF(Py_None); resultobj = Py_None;
c32bde28
RD
27066 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
27067 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
27068 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
27069 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
27070 return resultobj;
27071 fail:
27072 return NULL;
27073}
27074
27075
c32bde28 27076static PyObject *_wrap_Window_ClientToScreen(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27077 PyObject *resultobj;
27078 wxWindow *arg1 = (wxWindow *) 0 ;
27079 wxPoint *arg2 = 0 ;
27080 wxPoint result;
27081 wxPoint temp2 ;
27082 PyObject * obj0 = 0 ;
27083 PyObject * obj1 = 0 ;
27084 char *kwnames[] = {
27085 (char *) "self",(char *) "pt", NULL
27086 };
27087
27088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) goto fail;
27089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27091 {
27092 arg2 = &temp2;
27093 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
27094 }
27095 {
27096 PyThreadState* __tstate = wxPyBeginAllowThreads();
27097 result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2);
27098
27099 wxPyEndAllowThreads(__tstate);
27100 if (PyErr_Occurred()) SWIG_fail;
27101 }
27102 {
27103 wxPoint * resultptr;
27104 resultptr = new wxPoint((wxPoint &) result);
27105 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
27106 }
27107 return resultobj;
27108 fail:
27109 return NULL;
27110}
27111
27112
c32bde28 27113static PyObject *_wrap_Window_ScreenToClient(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27114 PyObject *resultobj;
27115 wxWindow *arg1 = (wxWindow *) 0 ;
27116 wxPoint *arg2 = 0 ;
27117 wxPoint result;
27118 wxPoint temp2 ;
27119 PyObject * obj0 = 0 ;
27120 PyObject * obj1 = 0 ;
27121 char *kwnames[] = {
27122 (char *) "self",(char *) "pt", NULL
27123 };
27124
27125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) goto fail;
27126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27128 {
27129 arg2 = &temp2;
27130 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
27131 }
27132 {
27133 PyThreadState* __tstate = wxPyBeginAllowThreads();
27134 result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2);
27135
27136 wxPyEndAllowThreads(__tstate);
27137 if (PyErr_Occurred()) SWIG_fail;
27138 }
27139 {
27140 wxPoint * resultptr;
27141 resultptr = new wxPoint((wxPoint &) result);
27142 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
27143 }
27144 return resultobj;
27145 fail:
27146 return NULL;
27147}
27148
27149
c32bde28 27150static PyObject *_wrap_Window_HitTestXY(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27151 PyObject *resultobj;
27152 wxWindow *arg1 = (wxWindow *) 0 ;
27153 int arg2 ;
27154 int arg3 ;
27155 int result;
27156 PyObject * obj0 = 0 ;
27157 PyObject * obj1 = 0 ;
27158 PyObject * obj2 = 0 ;
27159 char *kwnames[] = {
27160 (char *) "self",(char *) "x",(char *) "y", NULL
27161 };
27162
27163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
27164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 27166 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 27167 if (PyErr_Occurred()) SWIG_fail;
c32bde28 27168 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
27169 if (PyErr_Occurred()) SWIG_fail;
27170 {
27171 PyThreadState* __tstate = wxPyBeginAllowThreads();
27172 result = (int)((wxWindow const *)arg1)->HitTest(arg2,arg3);
27173
27174 wxPyEndAllowThreads(__tstate);
27175 if (PyErr_Occurred()) SWIG_fail;
27176 }
c32bde28 27177 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
27178 return resultobj;
27179 fail:
27180 return NULL;
27181}
27182
27183
c32bde28 27184static PyObject *_wrap_Window_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27185 PyObject *resultobj;
27186 wxWindow *arg1 = (wxWindow *) 0 ;
27187 wxPoint *arg2 = 0 ;
27188 int result;
27189 wxPoint temp2 ;
27190 PyObject * obj0 = 0 ;
27191 PyObject * obj1 = 0 ;
27192 char *kwnames[] = {
27193 (char *) "self",(char *) "pt", NULL
27194 };
27195
27196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) goto fail;
27197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27199 {
27200 arg2 = &temp2;
27201 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
27202 }
27203 {
27204 PyThreadState* __tstate = wxPyBeginAllowThreads();
27205 result = (int)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2);
27206
27207 wxPyEndAllowThreads(__tstate);
27208 if (PyErr_Occurred()) SWIG_fail;
27209 }
c32bde28 27210 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
27211 return resultobj;
27212 fail:
27213 return NULL;
27214}
27215
27216
c32bde28 27217static PyObject *_wrap_Window_GetBorder__SWIG_0(PyObject *, PyObject *args) {
d55e5bfc
RD
27218 PyObject *resultobj;
27219 wxWindow *arg1 = (wxWindow *) 0 ;
27220 long arg2 ;
27221 int result;
27222 PyObject * obj0 = 0 ;
27223 PyObject * obj1 = 0 ;
27224
27225 if(!PyArg_ParseTuple(args,(char *)"OO:Window_GetBorder",&obj0,&obj1)) goto fail;
27226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 27228 arg2 = (long)SWIG_As_long(obj1);
d55e5bfc
RD
27229 if (PyErr_Occurred()) SWIG_fail;
27230 {
27231 PyThreadState* __tstate = wxPyBeginAllowThreads();
27232 result = (int)((wxWindow const *)arg1)->GetBorder(arg2);
27233
27234 wxPyEndAllowThreads(__tstate);
27235 if (PyErr_Occurred()) SWIG_fail;
27236 }
c32bde28 27237 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
27238 return resultobj;
27239 fail:
27240 return NULL;
27241}
27242
27243
c32bde28 27244static PyObject *_wrap_Window_GetBorder__SWIG_1(PyObject *, PyObject *args) {
d55e5bfc
RD
27245 PyObject *resultobj;
27246 wxWindow *arg1 = (wxWindow *) 0 ;
27247 int result;
27248 PyObject * obj0 = 0 ;
27249
27250 if(!PyArg_ParseTuple(args,(char *)"O:Window_GetBorder",&obj0)) goto fail;
27251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27253 {
27254 PyThreadState* __tstate = wxPyBeginAllowThreads();
27255 result = (int)((wxWindow const *)arg1)->GetBorder();
27256
27257 wxPyEndAllowThreads(__tstate);
27258 if (PyErr_Occurred()) SWIG_fail;
27259 }
c32bde28 27260 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
27261 return resultobj;
27262 fail:
27263 return NULL;
27264}
27265
27266
27267static PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args) {
27268 int argc;
27269 PyObject *argv[3];
27270 int ii;
27271
27272 argc = PyObject_Length(args);
27273 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
27274 argv[ii] = PyTuple_GetItem(args,ii);
27275 }
27276 if (argc == 1) {
27277 int _v;
27278 {
27279 void *ptr;
27280 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
27281 _v = 0;
27282 PyErr_Clear();
27283 } else {
27284 _v = 1;
27285 }
27286 }
27287 if (_v) {
27288 return _wrap_Window_GetBorder__SWIG_1(self,args);
27289 }
27290 }
27291 if (argc == 2) {
27292 int _v;
27293 {
27294 void *ptr;
27295 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
27296 _v = 0;
27297 PyErr_Clear();
27298 } else {
27299 _v = 1;
27300 }
27301 }
27302 if (_v) {
c32bde28 27303 _v = SWIG_Check_long(argv[1]);
d55e5bfc
RD
27304 if (_v) {
27305 return _wrap_Window_GetBorder__SWIG_0(self,args);
27306 }
27307 }
27308 }
27309
27310 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_GetBorder'");
27311 return NULL;
27312}
27313
27314
c32bde28 27315static PyObject *_wrap_Window_UpdateWindowUI(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27316 PyObject *resultobj;
27317 wxWindow *arg1 = (wxWindow *) 0 ;
27318 long arg2 = (long) wxUPDATE_UI_NONE ;
27319 PyObject * obj0 = 0 ;
27320 PyObject * obj1 = 0 ;
27321 char *kwnames[] = {
27322 (char *) "self",(char *) "flags", NULL
27323 };
27324
27325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_UpdateWindowUI",kwnames,&obj0,&obj1)) goto fail;
27326 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27328 if (obj1) {
c32bde28 27329 arg2 = (long)SWIG_As_long(obj1);
d55e5bfc
RD
27330 if (PyErr_Occurred()) SWIG_fail;
27331 }
27332 {
27333 PyThreadState* __tstate = wxPyBeginAllowThreads();
27334 (arg1)->UpdateWindowUI(arg2);
27335
27336 wxPyEndAllowThreads(__tstate);
27337 if (PyErr_Occurred()) SWIG_fail;
27338 }
27339 Py_INCREF(Py_None); resultobj = Py_None;
27340 return resultobj;
27341 fail:
27342 return NULL;
27343}
27344
27345
c32bde28 27346static PyObject *_wrap_Window_PopupMenuXY(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27347 PyObject *resultobj;
27348 wxWindow *arg1 = (wxWindow *) 0 ;
27349 wxMenu *arg2 = (wxMenu *) 0 ;
7a0b95b0
RD
27350 int arg3 = (int) -1 ;
27351 int arg4 = (int) -1 ;
d55e5bfc
RD
27352 bool result;
27353 PyObject * obj0 = 0 ;
27354 PyObject * obj1 = 0 ;
27355 PyObject * obj2 = 0 ;
27356 PyObject * obj3 = 0 ;
27357 char *kwnames[] = {
27358 (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL
27359 };
27360
7a0b95b0 27361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Window_PopupMenuXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
27362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27364 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
27365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7a0b95b0 27366 if (obj2) {
c32bde28 27367 arg3 = (int)SWIG_As_int(obj2);
7a0b95b0
RD
27368 if (PyErr_Occurred()) SWIG_fail;
27369 }
27370 if (obj3) {
c32bde28 27371 arg4 = (int)SWIG_As_int(obj3);
7a0b95b0
RD
27372 if (PyErr_Occurred()) SWIG_fail;
27373 }
d55e5bfc
RD
27374 {
27375 PyThreadState* __tstate = wxPyBeginAllowThreads();
27376 result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4);
27377
27378 wxPyEndAllowThreads(__tstate);
27379 if (PyErr_Occurred()) SWIG_fail;
27380 }
27381 {
27382 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27383 }
27384 return resultobj;
27385 fail:
27386 return NULL;
27387}
27388
27389
c32bde28 27390static PyObject *_wrap_Window_PopupMenu(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27391 PyObject *resultobj;
27392 wxWindow *arg1 = (wxWindow *) 0 ;
27393 wxMenu *arg2 = (wxMenu *) 0 ;
7a0b95b0
RD
27394 wxPoint const &arg3_defvalue = wxDefaultPosition ;
27395 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
d55e5bfc
RD
27396 bool result;
27397 wxPoint temp3 ;
27398 PyObject * obj0 = 0 ;
27399 PyObject * obj1 = 0 ;
27400 PyObject * obj2 = 0 ;
27401 char *kwnames[] = {
27402 (char *) "self",(char *) "menu",(char *) "pos", NULL
27403 };
27404
7a0b95b0 27405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
27406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27408 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
27409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7a0b95b0
RD
27410 if (obj2) {
27411 {
27412 arg3 = &temp3;
27413 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
27414 }
d55e5bfc
RD
27415 }
27416 {
27417 PyThreadState* __tstate = wxPyBeginAllowThreads();
27418 result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3);
27419
27420 wxPyEndAllowThreads(__tstate);
27421 if (PyErr_Occurred()) SWIG_fail;
27422 }
27423 {
27424 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27425 }
27426 return resultobj;
27427 fail:
27428 return NULL;
27429}
27430
27431
c32bde28 27432static PyObject *_wrap_Window_GetHandle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27433 PyObject *resultobj;
27434 wxWindow *arg1 = (wxWindow *) 0 ;
27435 long result;
27436 PyObject * obj0 = 0 ;
27437 char *kwnames[] = {
27438 (char *) "self", NULL
27439 };
27440
27441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHandle",kwnames,&obj0)) goto fail;
27442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27444 {
27445 PyThreadState* __tstate = wxPyBeginAllowThreads();
27446 result = (long)wxWindow_GetHandle(arg1);
27447
27448 wxPyEndAllowThreads(__tstate);
27449 if (PyErr_Occurred()) SWIG_fail;
27450 }
c32bde28 27451 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
27452 return resultobj;
27453 fail:
27454 return NULL;
27455}
27456
27457
7e63a440
RD
27458static PyObject *_wrap_Window_AssociateHandle(PyObject *, PyObject *args, PyObject *kwargs) {
27459 PyObject *resultobj;
27460 wxWindow *arg1 = (wxWindow *) 0 ;
27461 long arg2 ;
27462 PyObject * obj0 = 0 ;
27463 PyObject * obj1 = 0 ;
27464 char *kwnames[] = {
27465 (char *) "self",(char *) "handle", NULL
27466 };
27467
27468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AssociateHandle",kwnames,&obj0,&obj1)) goto fail;
27469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27471 arg2 = (long)SWIG_As_long(obj1);
27472 if (PyErr_Occurred()) SWIG_fail;
27473 {
27474 PyThreadState* __tstate = wxPyBeginAllowThreads();
27475 wxWindow_AssociateHandle(arg1,arg2);
27476
27477 wxPyEndAllowThreads(__tstate);
27478 if (PyErr_Occurred()) SWIG_fail;
27479 }
27480 Py_INCREF(Py_None); resultobj = Py_None;
27481 return resultobj;
27482 fail:
27483 return NULL;
27484}
27485
27486
27487static PyObject *_wrap_Window_DissociateHandle(PyObject *, PyObject *args, PyObject *kwargs) {
27488 PyObject *resultobj;
27489 wxWindow *arg1 = (wxWindow *) 0 ;
27490 PyObject * obj0 = 0 ;
27491 char *kwnames[] = {
27492 (char *) "self", NULL
27493 };
27494
27495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DissociateHandle",kwnames,&obj0)) goto fail;
27496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27498 {
27499 PyThreadState* __tstate = wxPyBeginAllowThreads();
27500 (arg1)->DissociateHandle();
27501
27502 wxPyEndAllowThreads(__tstate);
27503 if (PyErr_Occurred()) SWIG_fail;
27504 }
27505 Py_INCREF(Py_None); resultobj = Py_None;
27506 return resultobj;
27507 fail:
27508 return NULL;
27509}
27510
27511
c32bde28 27512static PyObject *_wrap_Window_OnPaint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27513 PyObject *resultobj;
27514 wxWindow *arg1 = (wxWindow *) 0 ;
27515 wxPaintEvent *arg2 = 0 ;
27516 PyObject * obj0 = 0 ;
27517 PyObject * obj1 = 0 ;
27518 char *kwnames[] = {
27519 (char *) "self",(char *) "event", NULL
27520 };
27521
27522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_OnPaint",kwnames,&obj0,&obj1)) goto fail;
27523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27525 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPaintEvent,
27526 SWIG_POINTER_EXCEPTION | 0)) == -1)
27527 SWIG_fail;
27528 if (arg2 == NULL) {
27529 PyErr_SetString(PyExc_TypeError,"null reference");
27530 SWIG_fail;
27531 }
27532 {
27533 PyThreadState* __tstate = wxPyBeginAllowThreads();
27534 (arg1)->OnPaint(*arg2);
27535
27536 wxPyEndAllowThreads(__tstate);
27537 if (PyErr_Occurred()) SWIG_fail;
27538 }
27539 Py_INCREF(Py_None); resultobj = Py_None;
27540 return resultobj;
27541 fail:
27542 return NULL;
27543}
27544
27545
c32bde28 27546static PyObject *_wrap_Window_HasScrollbar(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27547 PyObject *resultobj;
27548 wxWindow *arg1 = (wxWindow *) 0 ;
27549 int arg2 ;
27550 bool result;
27551 PyObject * obj0 = 0 ;
27552 PyObject * obj1 = 0 ;
27553 char *kwnames[] = {
27554 (char *) "self",(char *) "orient", NULL
27555 };
27556
27557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasScrollbar",kwnames,&obj0,&obj1)) goto fail;
27558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 27560 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
27561 if (PyErr_Occurred()) SWIG_fail;
27562 {
27563 PyThreadState* __tstate = wxPyBeginAllowThreads();
27564 result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2);
27565
27566 wxPyEndAllowThreads(__tstate);
27567 if (PyErr_Occurred()) SWIG_fail;
27568 }
27569 {
27570 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27571 }
27572 return resultobj;
27573 fail:
27574 return NULL;
27575}
27576
27577
c32bde28 27578static PyObject *_wrap_Window_SetScrollbar(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27579 PyObject *resultobj;
27580 wxWindow *arg1 = (wxWindow *) 0 ;
27581 int arg2 ;
27582 int arg3 ;
27583 int arg4 ;
27584 int arg5 ;
27585 bool arg6 = (bool) True ;
27586 PyObject * obj0 = 0 ;
27587 PyObject * obj1 = 0 ;
27588 PyObject * obj2 = 0 ;
27589 PyObject * obj3 = 0 ;
27590 PyObject * obj4 = 0 ;
27591 PyObject * obj5 = 0 ;
27592 char *kwnames[] = {
79fccf9d 27593 (char *) "self",(char *) "orientation",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "refresh", NULL
d55e5bfc
RD
27594 };
27595
27596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
27597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 27599 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 27600 if (PyErr_Occurred()) SWIG_fail;
c32bde28 27601 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 27602 if (PyErr_Occurred()) SWIG_fail;
c32bde28 27603 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 27604 if (PyErr_Occurred()) SWIG_fail;
c32bde28 27605 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
27606 if (PyErr_Occurred()) SWIG_fail;
27607 if (obj5) {
c32bde28 27608 arg6 = (bool)SWIG_As_bool(obj5);
d55e5bfc
RD
27609 if (PyErr_Occurred()) SWIG_fail;
27610 }
27611 {
27612 PyThreadState* __tstate = wxPyBeginAllowThreads();
27613 (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6);
27614
27615 wxPyEndAllowThreads(__tstate);
27616 if (PyErr_Occurred()) SWIG_fail;
27617 }
27618 Py_INCREF(Py_None); resultobj = Py_None;
27619 return resultobj;
27620 fail:
27621 return NULL;
27622}
27623
27624
c32bde28 27625static PyObject *_wrap_Window_SetScrollPos(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27626 PyObject *resultobj;
27627 wxWindow *arg1 = (wxWindow *) 0 ;
27628 int arg2 ;
27629 int arg3 ;
27630 bool arg4 = (bool) True ;
27631 PyObject * obj0 = 0 ;
27632 PyObject * obj1 = 0 ;
27633 PyObject * obj2 = 0 ;
27634 PyObject * obj3 = 0 ;
27635 char *kwnames[] = {
27636 (char *) "self",(char *) "orientation",(char *) "pos",(char *) "refresh", NULL
27637 };
27638
27639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_SetScrollPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27640 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27641 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 27642 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 27643 if (PyErr_Occurred()) SWIG_fail;
c32bde28 27644 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
27645 if (PyErr_Occurred()) SWIG_fail;
27646 if (obj3) {
c32bde28 27647 arg4 = (bool)SWIG_As_bool(obj3);
d55e5bfc
RD
27648 if (PyErr_Occurred()) SWIG_fail;
27649 }
27650 {
27651 PyThreadState* __tstate = wxPyBeginAllowThreads();
27652 (arg1)->SetScrollPos(arg2,arg3,arg4);
27653
27654 wxPyEndAllowThreads(__tstate);
27655 if (PyErr_Occurred()) SWIG_fail;
27656 }
27657 Py_INCREF(Py_None); resultobj = Py_None;
27658 return resultobj;
27659 fail:
27660 return NULL;
27661}
27662
27663
c32bde28 27664static PyObject *_wrap_Window_GetScrollPos(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27665 PyObject *resultobj;
27666 wxWindow *arg1 = (wxWindow *) 0 ;
27667 int arg2 ;
27668 int result;
27669 PyObject * obj0 = 0 ;
27670 PyObject * obj1 = 0 ;
27671 char *kwnames[] = {
27672 (char *) "self",(char *) "orientation", NULL
27673 };
27674
27675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollPos",kwnames,&obj0,&obj1)) goto fail;
27676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 27678 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
27679 if (PyErr_Occurred()) SWIG_fail;
27680 {
27681 PyThreadState* __tstate = wxPyBeginAllowThreads();
27682 result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2);
27683
27684 wxPyEndAllowThreads(__tstate);
27685 if (PyErr_Occurred()) SWIG_fail;
27686 }
c32bde28 27687 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
27688 return resultobj;
27689 fail:
27690 return NULL;
27691}
27692
27693
c32bde28 27694static PyObject *_wrap_Window_GetScrollThumb(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27695 PyObject *resultobj;
27696 wxWindow *arg1 = (wxWindow *) 0 ;
27697 int arg2 ;
27698 int result;
27699 PyObject * obj0 = 0 ;
27700 PyObject * obj1 = 0 ;
27701 char *kwnames[] = {
27702 (char *) "self",(char *) "orientation", NULL
27703 };
27704
27705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollThumb",kwnames,&obj0,&obj1)) goto fail;
27706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 27708 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
27709 if (PyErr_Occurred()) SWIG_fail;
27710 {
27711 PyThreadState* __tstate = wxPyBeginAllowThreads();
27712 result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2);
27713
27714 wxPyEndAllowThreads(__tstate);
27715 if (PyErr_Occurred()) SWIG_fail;
27716 }
c32bde28 27717 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
27718 return resultobj;
27719 fail:
27720 return NULL;
27721}
27722
27723
c32bde28 27724static PyObject *_wrap_Window_GetScrollRange(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27725 PyObject *resultobj;
27726 wxWindow *arg1 = (wxWindow *) 0 ;
27727 int arg2 ;
27728 int result;
27729 PyObject * obj0 = 0 ;
27730 PyObject * obj1 = 0 ;
27731 char *kwnames[] = {
27732 (char *) "self",(char *) "orientation", NULL
27733 };
27734
27735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollRange",kwnames,&obj0,&obj1)) goto fail;
27736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 27738 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
27739 if (PyErr_Occurred()) SWIG_fail;
27740 {
27741 PyThreadState* __tstate = wxPyBeginAllowThreads();
27742 result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2);
27743
27744 wxPyEndAllowThreads(__tstate);
27745 if (PyErr_Occurred()) SWIG_fail;
27746 }
c32bde28 27747 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
27748 return resultobj;
27749 fail:
27750 return NULL;
27751}
27752
27753
c32bde28 27754static PyObject *_wrap_Window_ScrollWindow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27755 PyObject *resultobj;
27756 wxWindow *arg1 = (wxWindow *) 0 ;
27757 int arg2 ;
27758 int arg3 ;
27759 wxRect *arg4 = (wxRect *) NULL ;
27760 PyObject * obj0 = 0 ;
27761 PyObject * obj1 = 0 ;
27762 PyObject * obj2 = 0 ;
27763 PyObject * obj3 = 0 ;
27764 char *kwnames[] = {
27765 (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL
27766 };
27767
27768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_ScrollWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 27771 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 27772 if (PyErr_Occurred()) SWIG_fail;
c32bde28 27773 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
27774 if (PyErr_Occurred()) SWIG_fail;
27775 if (obj3) {
27776 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxRect,
27777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27778 }
27779 {
27780 PyThreadState* __tstate = wxPyBeginAllowThreads();
27781 (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4);
27782
27783 wxPyEndAllowThreads(__tstate);
27784 if (PyErr_Occurred()) SWIG_fail;
27785 }
27786 Py_INCREF(Py_None); resultobj = Py_None;
27787 return resultobj;
27788 fail:
27789 return NULL;
27790}
27791
27792
c32bde28 27793static PyObject *_wrap_Window_ScrollLines(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27794 PyObject *resultobj;
27795 wxWindow *arg1 = (wxWindow *) 0 ;
27796 int arg2 ;
27797 bool result;
27798 PyObject * obj0 = 0 ;
27799 PyObject * obj1 = 0 ;
27800 char *kwnames[] = {
27801 (char *) "self",(char *) "lines", NULL
27802 };
27803
27804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollLines",kwnames,&obj0,&obj1)) goto fail;
27805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 27807 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
27808 if (PyErr_Occurred()) SWIG_fail;
27809 {
27810 PyThreadState* __tstate = wxPyBeginAllowThreads();
27811 result = (bool)(arg1)->ScrollLines(arg2);
27812
27813 wxPyEndAllowThreads(__tstate);
27814 if (PyErr_Occurred()) SWIG_fail;
27815 }
27816 {
27817 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27818 }
27819 return resultobj;
27820 fail:
27821 return NULL;
27822}
27823
27824
c32bde28 27825static PyObject *_wrap_Window_ScrollPages(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27826 PyObject *resultobj;
27827 wxWindow *arg1 = (wxWindow *) 0 ;
27828 int arg2 ;
27829 bool result;
27830 PyObject * obj0 = 0 ;
27831 PyObject * obj1 = 0 ;
27832 char *kwnames[] = {
27833 (char *) "self",(char *) "pages", NULL
27834 };
27835
27836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollPages",kwnames,&obj0,&obj1)) goto fail;
27837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 27839 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
27840 if (PyErr_Occurred()) SWIG_fail;
27841 {
27842 PyThreadState* __tstate = wxPyBeginAllowThreads();
27843 result = (bool)(arg1)->ScrollPages(arg2);
27844
27845 wxPyEndAllowThreads(__tstate);
27846 if (PyErr_Occurred()) SWIG_fail;
27847 }
27848 {
27849 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27850 }
27851 return resultobj;
27852 fail:
27853 return NULL;
27854}
27855
27856
c32bde28 27857static PyObject *_wrap_Window_LineUp(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27858 PyObject *resultobj;
27859 wxWindow *arg1 = (wxWindow *) 0 ;
27860 bool result;
27861 PyObject * obj0 = 0 ;
27862 char *kwnames[] = {
27863 (char *) "self", NULL
27864 };
27865
27866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineUp",kwnames,&obj0)) goto fail;
27867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27869 {
27870 PyThreadState* __tstate = wxPyBeginAllowThreads();
27871 result = (bool)(arg1)->LineUp();
27872
27873 wxPyEndAllowThreads(__tstate);
27874 if (PyErr_Occurred()) SWIG_fail;
27875 }
27876 {
27877 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27878 }
27879 return resultobj;
27880 fail:
27881 return NULL;
27882}
27883
27884
c32bde28 27885static PyObject *_wrap_Window_LineDown(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27886 PyObject *resultobj;
27887 wxWindow *arg1 = (wxWindow *) 0 ;
27888 bool result;
27889 PyObject * obj0 = 0 ;
27890 char *kwnames[] = {
27891 (char *) "self", NULL
27892 };
27893
27894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineDown",kwnames,&obj0)) goto fail;
27895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27897 {
27898 PyThreadState* __tstate = wxPyBeginAllowThreads();
27899 result = (bool)(arg1)->LineDown();
27900
27901 wxPyEndAllowThreads(__tstate);
27902 if (PyErr_Occurred()) SWIG_fail;
27903 }
27904 {
27905 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27906 }
27907 return resultobj;
27908 fail:
27909 return NULL;
27910}
27911
27912
c32bde28 27913static PyObject *_wrap_Window_PageUp(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27914 PyObject *resultobj;
27915 wxWindow *arg1 = (wxWindow *) 0 ;
27916 bool result;
27917 PyObject * obj0 = 0 ;
27918 char *kwnames[] = {
27919 (char *) "self", NULL
27920 };
27921
27922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageUp",kwnames,&obj0)) goto fail;
27923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27925 {
27926 PyThreadState* __tstate = wxPyBeginAllowThreads();
27927 result = (bool)(arg1)->PageUp();
27928
27929 wxPyEndAllowThreads(__tstate);
27930 if (PyErr_Occurred()) SWIG_fail;
27931 }
27932 {
27933 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27934 }
27935 return resultobj;
27936 fail:
27937 return NULL;
27938}
27939
27940
c32bde28 27941static PyObject *_wrap_Window_PageDown(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27942 PyObject *resultobj;
27943 wxWindow *arg1 = (wxWindow *) 0 ;
27944 bool result;
27945 PyObject * obj0 = 0 ;
27946 char *kwnames[] = {
27947 (char *) "self", NULL
27948 };
27949
27950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageDown",kwnames,&obj0)) goto fail;
27951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27953 {
27954 PyThreadState* __tstate = wxPyBeginAllowThreads();
27955 result = (bool)(arg1)->PageDown();
27956
27957 wxPyEndAllowThreads(__tstate);
27958 if (PyErr_Occurred()) SWIG_fail;
27959 }
27960 {
27961 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27962 }
27963 return resultobj;
27964 fail:
27965 return NULL;
27966}
27967
27968
c32bde28 27969static PyObject *_wrap_Window_SetHelpText(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
27970 PyObject *resultobj;
27971 wxWindow *arg1 = (wxWindow *) 0 ;
27972 wxString *arg2 = 0 ;
27973 bool temp2 = False ;
27974 PyObject * obj0 = 0 ;
27975 PyObject * obj1 = 0 ;
27976 char *kwnames[] = {
27977 (char *) "self",(char *) "text", NULL
27978 };
27979
27980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) goto fail;
27981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27983 {
27984 arg2 = wxString_in_helper(obj1);
27985 if (arg2 == NULL) SWIG_fail;
27986 temp2 = True;
27987 }
27988 {
27989 PyThreadState* __tstate = wxPyBeginAllowThreads();
27990 (arg1)->SetHelpText((wxString const &)*arg2);
27991
27992 wxPyEndAllowThreads(__tstate);
27993 if (PyErr_Occurred()) SWIG_fail;
27994 }
27995 Py_INCREF(Py_None); resultobj = Py_None;
27996 {
27997 if (temp2)
27998 delete arg2;
27999 }
28000 return resultobj;
28001 fail:
28002 {
28003 if (temp2)
28004 delete arg2;
28005 }
28006 return NULL;
28007}
28008
28009
c32bde28 28010static PyObject *_wrap_Window_SetHelpTextForId(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28011 PyObject *resultobj;
28012 wxWindow *arg1 = (wxWindow *) 0 ;
28013 wxString *arg2 = 0 ;
28014 bool temp2 = False ;
28015 PyObject * obj0 = 0 ;
28016 PyObject * obj1 = 0 ;
28017 char *kwnames[] = {
28018 (char *) "self",(char *) "text", NULL
28019 };
28020
28021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) goto fail;
28022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28024 {
28025 arg2 = wxString_in_helper(obj1);
28026 if (arg2 == NULL) SWIG_fail;
28027 temp2 = True;
28028 }
28029 {
28030 PyThreadState* __tstate = wxPyBeginAllowThreads();
28031 (arg1)->SetHelpTextForId((wxString const &)*arg2);
28032
28033 wxPyEndAllowThreads(__tstate);
28034 if (PyErr_Occurred()) SWIG_fail;
28035 }
28036 Py_INCREF(Py_None); resultobj = Py_None;
28037 {
28038 if (temp2)
28039 delete arg2;
28040 }
28041 return resultobj;
28042 fail:
28043 {
28044 if (temp2)
28045 delete arg2;
28046 }
28047 return NULL;
28048}
28049
28050
c32bde28 28051static PyObject *_wrap_Window_GetHelpText(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28052 PyObject *resultobj;
28053 wxWindow *arg1 = (wxWindow *) 0 ;
28054 wxString result;
28055 PyObject * obj0 = 0 ;
28056 char *kwnames[] = {
28057 (char *) "self", NULL
28058 };
28059
28060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHelpText",kwnames,&obj0)) goto fail;
28061 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28062 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28063 {
28064 PyThreadState* __tstate = wxPyBeginAllowThreads();
28065 result = ((wxWindow const *)arg1)->GetHelpText();
28066
28067 wxPyEndAllowThreads(__tstate);
28068 if (PyErr_Occurred()) SWIG_fail;
28069 }
28070 {
28071#if wxUSE_UNICODE
28072 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28073#else
28074 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28075#endif
28076 }
28077 return resultobj;
28078 fail:
28079 return NULL;
28080}
28081
28082
c32bde28 28083static PyObject *_wrap_Window_SetToolTipString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28084 PyObject *resultobj;
28085 wxWindow *arg1 = (wxWindow *) 0 ;
28086 wxString *arg2 = 0 ;
28087 bool temp2 = False ;
28088 PyObject * obj0 = 0 ;
28089 PyObject * obj1 = 0 ;
28090 char *kwnames[] = {
28091 (char *) "self",(char *) "tip", NULL
28092 };
28093
28094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) goto fail;
28095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28097 {
28098 arg2 = wxString_in_helper(obj1);
28099 if (arg2 == NULL) SWIG_fail;
28100 temp2 = True;
28101 }
28102 {
28103 PyThreadState* __tstate = wxPyBeginAllowThreads();
28104 (arg1)->SetToolTip((wxString const &)*arg2);
28105
28106 wxPyEndAllowThreads(__tstate);
28107 if (PyErr_Occurred()) SWIG_fail;
28108 }
28109 Py_INCREF(Py_None); resultobj = Py_None;
28110 {
28111 if (temp2)
28112 delete arg2;
28113 }
28114 return resultobj;
28115 fail:
28116 {
28117 if (temp2)
28118 delete arg2;
28119 }
28120 return NULL;
28121}
28122
28123
c32bde28 28124static PyObject *_wrap_Window_SetToolTip(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28125 PyObject *resultobj;
28126 wxWindow *arg1 = (wxWindow *) 0 ;
28127 wxToolTip *arg2 = (wxToolTip *) 0 ;
28128 PyObject * obj0 = 0 ;
28129 PyObject * obj1 = 0 ;
28130 char *kwnames[] = {
28131 (char *) "self",(char *) "tip", NULL
28132 };
28133
28134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) goto fail;
28135 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28137 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolTip,
28138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28139 {
28140 PyThreadState* __tstate = wxPyBeginAllowThreads();
28141 (arg1)->SetToolTip(arg2);
28142
28143 wxPyEndAllowThreads(__tstate);
28144 if (PyErr_Occurred()) SWIG_fail;
28145 }
28146 Py_INCREF(Py_None); resultobj = Py_None;
28147 return resultobj;
28148 fail:
28149 return NULL;
28150}
28151
28152
c32bde28 28153static PyObject *_wrap_Window_GetToolTip(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28154 PyObject *resultobj;
28155 wxWindow *arg1 = (wxWindow *) 0 ;
28156 wxToolTip *result;
28157 PyObject * obj0 = 0 ;
28158 char *kwnames[] = {
28159 (char *) "self", NULL
28160 };
28161
28162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetToolTip",kwnames,&obj0)) goto fail;
28163 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28165 {
28166 PyThreadState* __tstate = wxPyBeginAllowThreads();
28167 result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip();
28168
28169 wxPyEndAllowThreads(__tstate);
28170 if (PyErr_Occurred()) SWIG_fail;
28171 }
28172 {
412d302d 28173 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
28174 }
28175 return resultobj;
28176 fail:
28177 return NULL;
28178}
28179
28180
c32bde28 28181static PyObject *_wrap_Window_SetDropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28182 PyObject *resultobj;
28183 wxWindow *arg1 = (wxWindow *) 0 ;
28184 wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ;
28185 PyObject * obj0 = 0 ;
28186 PyObject * obj1 = 0 ;
28187 char *kwnames[] = {
28188 (char *) "self",(char *) "dropTarget", NULL
28189 };
28190
28191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) goto fail;
28192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28194 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyDropTarget,
28195 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
28196 {
28197 PyThreadState* __tstate = wxPyBeginAllowThreads();
28198 (arg1)->SetDropTarget(arg2);
28199
28200 wxPyEndAllowThreads(__tstate);
28201 if (PyErr_Occurred()) SWIG_fail;
28202 }
28203 Py_INCREF(Py_None); resultobj = Py_None;
28204 return resultobj;
28205 fail:
28206 return NULL;
28207}
28208
28209
c32bde28 28210static PyObject *_wrap_Window_GetDropTarget(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28211 PyObject *resultobj;
28212 wxWindow *arg1 = (wxWindow *) 0 ;
28213 wxPyDropTarget *result;
28214 PyObject * obj0 = 0 ;
28215 char *kwnames[] = {
28216 (char *) "self", NULL
28217 };
28218
28219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDropTarget",kwnames,&obj0)) goto fail;
28220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28222 {
28223 PyThreadState* __tstate = wxPyBeginAllowThreads();
28224 result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget();
28225
28226 wxPyEndAllowThreads(__tstate);
28227 if (PyErr_Occurred()) SWIG_fail;
28228 }
28229 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 0);
28230 return resultobj;
28231 fail:
28232 return NULL;
28233}
28234
28235
c32bde28 28236static PyObject *_wrap_Window_DragAcceptFiles(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28237 PyObject *resultobj;
28238 wxWindow *arg1 = (wxWindow *) 0 ;
28239 bool arg2 ;
28240 PyObject * obj0 = 0 ;
28241 PyObject * obj1 = 0 ;
28242 char *kwnames[] = {
28243 (char *) "self",(char *) "accept", NULL
28244 };
28245
28246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DragAcceptFiles",kwnames,&obj0,&obj1)) goto fail;
28247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 28249 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
28250 if (PyErr_Occurred()) SWIG_fail;
28251 {
28252 PyThreadState* __tstate = wxPyBeginAllowThreads();
28253 (arg1)->DragAcceptFiles(arg2);
28254
28255 wxPyEndAllowThreads(__tstate);
28256 if (PyErr_Occurred()) SWIG_fail;
28257 }
28258 Py_INCREF(Py_None); resultobj = Py_None;
28259 return resultobj;
28260 fail:
28261 return NULL;
28262}
28263
28264
c32bde28 28265static PyObject *_wrap_Window_SetConstraints(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28266 PyObject *resultobj;
28267 wxWindow *arg1 = (wxWindow *) 0 ;
28268 wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ;
28269 PyObject * obj0 = 0 ;
28270 PyObject * obj1 = 0 ;
28271 char *kwnames[] = {
28272 (char *) "self",(char *) "constraints", NULL
28273 };
28274
28275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) goto fail;
28276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28278 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints,
28279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28280 {
28281 PyThreadState* __tstate = wxPyBeginAllowThreads();
28282 (arg1)->SetConstraints(arg2);
28283
28284 wxPyEndAllowThreads(__tstate);
28285 if (PyErr_Occurred()) SWIG_fail;
28286 }
28287 Py_INCREF(Py_None); resultobj = Py_None;
28288 return resultobj;
28289 fail:
28290 return NULL;
28291}
28292
28293
c32bde28 28294static PyObject *_wrap_Window_GetConstraints(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28295 PyObject *resultobj;
28296 wxWindow *arg1 = (wxWindow *) 0 ;
28297 wxLayoutConstraints *result;
28298 PyObject * obj0 = 0 ;
28299 char *kwnames[] = {
28300 (char *) "self", NULL
28301 };
28302
28303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetConstraints",kwnames,&obj0)) goto fail;
28304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28306 {
28307 PyThreadState* __tstate = wxPyBeginAllowThreads();
28308 result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints();
28309
28310 wxPyEndAllowThreads(__tstate);
28311 if (PyErr_Occurred()) SWIG_fail;
28312 }
28313 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 0);
28314 return resultobj;
28315 fail:
28316 return NULL;
28317}
28318
28319
c32bde28 28320static PyObject *_wrap_Window_SetAutoLayout(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28321 PyObject *resultobj;
28322 wxWindow *arg1 = (wxWindow *) 0 ;
28323 bool arg2 ;
28324 PyObject * obj0 = 0 ;
28325 PyObject * obj1 = 0 ;
28326 char *kwnames[] = {
28327 (char *) "self",(char *) "autoLayout", NULL
28328 };
28329
28330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) goto fail;
28331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 28333 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
28334 if (PyErr_Occurred()) SWIG_fail;
28335 {
28336 PyThreadState* __tstate = wxPyBeginAllowThreads();
28337 (arg1)->SetAutoLayout(arg2);
28338
28339 wxPyEndAllowThreads(__tstate);
28340 if (PyErr_Occurred()) SWIG_fail;
28341 }
28342 Py_INCREF(Py_None); resultobj = Py_None;
28343 return resultobj;
28344 fail:
28345 return NULL;
28346}
28347
28348
c32bde28 28349static PyObject *_wrap_Window_GetAutoLayout(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28350 PyObject *resultobj;
28351 wxWindow *arg1 = (wxWindow *) 0 ;
28352 bool result;
28353 PyObject * obj0 = 0 ;
28354 char *kwnames[] = {
28355 (char *) "self", NULL
28356 };
28357
28358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAutoLayout",kwnames,&obj0)) goto fail;
28359 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28361 {
28362 PyThreadState* __tstate = wxPyBeginAllowThreads();
28363 result = (bool)((wxWindow const *)arg1)->GetAutoLayout();
28364
28365 wxPyEndAllowThreads(__tstate);
28366 if (PyErr_Occurred()) SWIG_fail;
28367 }
28368 {
28369 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28370 }
28371 return resultobj;
28372 fail:
28373 return NULL;
28374}
28375
28376
c32bde28 28377static PyObject *_wrap_Window_Layout(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28378 PyObject *resultobj;
28379 wxWindow *arg1 = (wxWindow *) 0 ;
28380 bool result;
28381 PyObject * obj0 = 0 ;
28382 char *kwnames[] = {
28383 (char *) "self", NULL
28384 };
28385
28386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Layout",kwnames,&obj0)) goto fail;
28387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28389 {
28390 PyThreadState* __tstate = wxPyBeginAllowThreads();
28391 result = (bool)(arg1)->Layout();
28392
28393 wxPyEndAllowThreads(__tstate);
28394 if (PyErr_Occurred()) SWIG_fail;
28395 }
28396 {
28397 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28398 }
28399 return resultobj;
28400 fail:
28401 return NULL;
28402}
28403
28404
c32bde28 28405static PyObject *_wrap_Window_SetSizer(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28406 PyObject *resultobj;
28407 wxWindow *arg1 = (wxWindow *) 0 ;
28408 wxSizer *arg2 = (wxSizer *) 0 ;
28409 bool arg3 = (bool) True ;
28410 PyObject * obj0 = 0 ;
28411 PyObject * obj1 = 0 ;
28412 PyObject * obj2 = 0 ;
28413 char *kwnames[] = {
28414 (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL
28415 };
28416
28417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) goto fail;
28418 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28420 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
28421 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28422 if (obj2) {
c32bde28 28423 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
28424 if (PyErr_Occurred()) SWIG_fail;
28425 }
28426 {
28427 PyThreadState* __tstate = wxPyBeginAllowThreads();
28428 (arg1)->SetSizer(arg2,arg3);
28429
28430 wxPyEndAllowThreads(__tstate);
28431 if (PyErr_Occurred()) SWIG_fail;
28432 }
28433 Py_INCREF(Py_None); resultobj = Py_None;
28434 return resultobj;
28435 fail:
28436 return NULL;
28437}
28438
28439
c32bde28 28440static PyObject *_wrap_Window_SetSizerAndFit(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28441 PyObject *resultobj;
28442 wxWindow *arg1 = (wxWindow *) 0 ;
28443 wxSizer *arg2 = (wxSizer *) 0 ;
28444 bool arg3 = (bool) True ;
28445 PyObject * obj0 = 0 ;
28446 PyObject * obj1 = 0 ;
28447 PyObject * obj2 = 0 ;
28448 char *kwnames[] = {
28449 (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL
28450 };
28451
28452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) goto fail;
28453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28455 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
28456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28457 if (obj2) {
c32bde28 28458 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
28459 if (PyErr_Occurred()) SWIG_fail;
28460 }
28461 {
28462 PyThreadState* __tstate = wxPyBeginAllowThreads();
28463 (arg1)->SetSizerAndFit(arg2,arg3);
28464
28465 wxPyEndAllowThreads(__tstate);
28466 if (PyErr_Occurred()) SWIG_fail;
28467 }
28468 Py_INCREF(Py_None); resultobj = Py_None;
28469 return resultobj;
28470 fail:
28471 return NULL;
28472}
28473
28474
c32bde28 28475static PyObject *_wrap_Window_GetSizer(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28476 PyObject *resultobj;
28477 wxWindow *arg1 = (wxWindow *) 0 ;
28478 wxSizer *result;
28479 PyObject * obj0 = 0 ;
28480 char *kwnames[] = {
28481 (char *) "self", NULL
28482 };
28483
28484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizer",kwnames,&obj0)) goto fail;
28485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28487 {
28488 PyThreadState* __tstate = wxPyBeginAllowThreads();
28489 result = (wxSizer *)((wxWindow const *)arg1)->GetSizer();
28490
28491 wxPyEndAllowThreads(__tstate);
28492 if (PyErr_Occurred()) SWIG_fail;
28493 }
28494 {
412d302d 28495 resultobj = wxPyMake_wxSizer(result, 0);
d55e5bfc
RD
28496 }
28497 return resultobj;
28498 fail:
28499 return NULL;
28500}
28501
28502
c32bde28 28503static PyObject *_wrap_Window_SetContainingSizer(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28504 PyObject *resultobj;
28505 wxWindow *arg1 = (wxWindow *) 0 ;
28506 wxSizer *arg2 = (wxSizer *) 0 ;
28507 PyObject * obj0 = 0 ;
28508 PyObject * obj1 = 0 ;
28509 char *kwnames[] = {
28510 (char *) "self",(char *) "sizer", NULL
28511 };
28512
28513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) goto fail;
28514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28516 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
28517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28518 {
28519 PyThreadState* __tstate = wxPyBeginAllowThreads();
28520 (arg1)->SetContainingSizer(arg2);
28521
28522 wxPyEndAllowThreads(__tstate);
28523 if (PyErr_Occurred()) SWIG_fail;
28524 }
28525 Py_INCREF(Py_None); resultobj = Py_None;
28526 return resultobj;
28527 fail:
28528 return NULL;
28529}
28530
28531
c32bde28 28532static PyObject *_wrap_Window_GetContainingSizer(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28533 PyObject *resultobj;
28534 wxWindow *arg1 = (wxWindow *) 0 ;
28535 wxSizer *result;
28536 PyObject * obj0 = 0 ;
28537 char *kwnames[] = {
28538 (char *) "self", NULL
28539 };
28540
28541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetContainingSizer",kwnames,&obj0)) goto fail;
28542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28544 {
28545 PyThreadState* __tstate = wxPyBeginAllowThreads();
28546 result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer();
28547
28548 wxPyEndAllowThreads(__tstate);
28549 if (PyErr_Occurred()) SWIG_fail;
28550 }
28551 {
412d302d 28552 resultobj = wxPyMake_wxSizer(result, 0);
d55e5bfc
RD
28553 }
28554 return resultobj;
28555 fail:
28556 return NULL;
28557}
28558
28559
c32bde28 28560static PyObject *_wrap_Window_InheritAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28561 PyObject *resultobj;
28562 wxWindow *arg1 = (wxWindow *) 0 ;
28563 PyObject * obj0 = 0 ;
28564 char *kwnames[] = {
28565 (char *) "self", NULL
28566 };
28567
28568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InheritAttributes",kwnames,&obj0)) goto fail;
28569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28571 {
28572 PyThreadState* __tstate = wxPyBeginAllowThreads();
28573 (arg1)->InheritAttributes();
28574
28575 wxPyEndAllowThreads(__tstate);
28576 if (PyErr_Occurred()) SWIG_fail;
28577 }
28578 Py_INCREF(Py_None); resultobj = Py_None;
28579 return resultobj;
28580 fail:
28581 return NULL;
28582}
28583
28584
c32bde28 28585static PyObject *_wrap_Window_ShouldInheritColours(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28586 PyObject *resultobj;
28587 wxWindow *arg1 = (wxWindow *) 0 ;
28588 bool result;
28589 PyObject * obj0 = 0 ;
28590 char *kwnames[] = {
28591 (char *) "self", NULL
28592 };
28593
28594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ShouldInheritColours",kwnames,&obj0)) goto fail;
28595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28597 {
28598 PyThreadState* __tstate = wxPyBeginAllowThreads();
28599 result = (bool)((wxWindow const *)arg1)->ShouldInheritColours();
28600
28601 wxPyEndAllowThreads(__tstate);
28602 if (PyErr_Occurred()) SWIG_fail;
28603 }
28604 {
28605 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28606 }
28607 return resultobj;
28608 fail:
28609 return NULL;
28610}
28611
28612
c32bde28 28613static PyObject * Window_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
28614 PyObject *obj;
28615 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28616 SWIG_TypeClientData(SWIGTYPE_p_wxWindow, obj);
28617 Py_INCREF(obj);
28618 return Py_BuildValue((char *)"");
28619}
c32bde28 28620static PyObject *_wrap_FindWindowById(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28621 PyObject *resultobj;
28622 long arg1 ;
28623 wxWindow *arg2 = (wxWindow *) NULL ;
28624 wxWindow *result;
28625 PyObject * obj0 = 0 ;
28626 PyObject * obj1 = 0 ;
28627 char *kwnames[] = {
28628 (char *) "id",(char *) "parent", NULL
28629 };
28630
28631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowById",kwnames,&obj0,&obj1)) goto fail;
c32bde28 28632 arg1 = (long)SWIG_As_long(obj0);
d55e5bfc
RD
28633 if (PyErr_Occurred()) SWIG_fail;
28634 if (obj1) {
28635 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28637 }
28638 {
0439c23b 28639 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
28640 PyThreadState* __tstate = wxPyBeginAllowThreads();
28641 result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2);
28642
28643 wxPyEndAllowThreads(__tstate);
110da5b0 28644 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
28645 }
28646 {
412d302d 28647 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
28648 }
28649 return resultobj;
28650 fail:
28651 return NULL;
28652}
28653
28654
c32bde28 28655static PyObject *_wrap_FindWindowByName(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28656 PyObject *resultobj;
28657 wxString *arg1 = 0 ;
28658 wxWindow *arg2 = (wxWindow *) NULL ;
28659 wxWindow *result;
28660 bool temp1 = False ;
28661 PyObject * obj0 = 0 ;
28662 PyObject * obj1 = 0 ;
28663 char *kwnames[] = {
28664 (char *) "name",(char *) "parent", NULL
28665 };
28666
28667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) goto fail;
28668 {
28669 arg1 = wxString_in_helper(obj0);
28670 if (arg1 == NULL) SWIG_fail;
28671 temp1 = True;
28672 }
28673 if (obj1) {
28674 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28676 }
28677 {
0439c23b 28678 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
28679 PyThreadState* __tstate = wxPyBeginAllowThreads();
28680 result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2);
28681
28682 wxPyEndAllowThreads(__tstate);
110da5b0 28683 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
28684 }
28685 {
412d302d 28686 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
28687 }
28688 {
28689 if (temp1)
28690 delete arg1;
28691 }
28692 return resultobj;
28693 fail:
28694 {
28695 if (temp1)
28696 delete arg1;
28697 }
28698 return NULL;
28699}
28700
28701
c32bde28 28702static PyObject *_wrap_FindWindowByLabel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28703 PyObject *resultobj;
28704 wxString *arg1 = 0 ;
28705 wxWindow *arg2 = (wxWindow *) NULL ;
28706 wxWindow *result;
28707 bool temp1 = False ;
28708 PyObject * obj0 = 0 ;
28709 PyObject * obj1 = 0 ;
28710 char *kwnames[] = {
28711 (char *) "label",(char *) "parent", NULL
28712 };
28713
28714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) goto fail;
28715 {
28716 arg1 = wxString_in_helper(obj0);
28717 if (arg1 == NULL) SWIG_fail;
28718 temp1 = True;
28719 }
28720 if (obj1) {
28721 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28723 }
28724 {
0439c23b 28725 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
28726 PyThreadState* __tstate = wxPyBeginAllowThreads();
28727 result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2);
28728
28729 wxPyEndAllowThreads(__tstate);
110da5b0 28730 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
28731 }
28732 {
412d302d 28733 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
28734 }
28735 {
28736 if (temp1)
28737 delete arg1;
28738 }
28739 return resultobj;
28740 fail:
28741 {
28742 if (temp1)
28743 delete arg1;
28744 }
28745 return NULL;
28746}
28747
28748
c32bde28 28749static PyObject *_wrap_Window_FromHWND(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28750 PyObject *resultobj;
28751 wxWindow *arg1 = (wxWindow *) 0 ;
28752 unsigned long arg2 ;
28753 wxWindow *result;
28754 PyObject * obj0 = 0 ;
28755 PyObject * obj1 = 0 ;
28756 char *kwnames[] = {
28757 (char *) "parent",(char *) "_hWnd", NULL
28758 };
28759
28760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FromHWND",kwnames,&obj0,&obj1)) goto fail;
28761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 28763 arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1);
d55e5bfc
RD
28764 if (PyErr_Occurred()) SWIG_fail;
28765 {
28766 PyThreadState* __tstate = wxPyBeginAllowThreads();
28767 result = (wxWindow *)wxWindow_FromHWND(arg1,arg2);
28768
28769 wxPyEndAllowThreads(__tstate);
28770 if (PyErr_Occurred()) SWIG_fail;
28771 }
28772 {
412d302d 28773 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
28774 }
28775 return resultobj;
28776 fail:
28777 return NULL;
28778}
28779
28780
c32bde28 28781static PyObject *_wrap_new_Validator(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28782 PyObject *resultobj;
28783 wxValidator *result;
28784 char *kwnames[] = {
28785 NULL
28786 };
28787
28788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Validator",kwnames)) goto fail;
28789 {
28790 PyThreadState* __tstate = wxPyBeginAllowThreads();
28791 result = (wxValidator *)new wxValidator();
28792
28793 wxPyEndAllowThreads(__tstate);
28794 if (PyErr_Occurred()) SWIG_fail;
28795 }
b0f7404b 28796 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxValidator, 1);
d55e5bfc
RD
28797 return resultobj;
28798 fail:
28799 return NULL;
28800}
28801
28802
c32bde28 28803static PyObject *_wrap_Validator_Clone(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28804 PyObject *resultobj;
28805 wxValidator *arg1 = (wxValidator *) 0 ;
28806 wxValidator *result;
28807 PyObject * obj0 = 0 ;
28808 char *kwnames[] = {
28809 (char *) "self", NULL
28810 };
28811
28812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_Clone",kwnames,&obj0)) goto fail;
28813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator,
28814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28815 {
28816 PyThreadState* __tstate = wxPyBeginAllowThreads();
28817 result = (wxValidator *)(arg1)->Clone();
28818
28819 wxPyEndAllowThreads(__tstate);
28820 if (PyErr_Occurred()) SWIG_fail;
28821 }
28822 {
412d302d 28823 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
28824 }
28825 return resultobj;
28826 fail:
28827 return NULL;
28828}
28829
28830
c32bde28 28831static PyObject *_wrap_Validator_Validate(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28832 PyObject *resultobj;
28833 wxValidator *arg1 = (wxValidator *) 0 ;
28834 wxWindow *arg2 = (wxWindow *) 0 ;
28835 bool result;
28836 PyObject * obj0 = 0 ;
28837 PyObject * obj1 = 0 ;
28838 char *kwnames[] = {
28839 (char *) "self",(char *) "parent", NULL
28840 };
28841
28842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) goto fail;
28843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator,
28844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28845 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28847 {
28848 PyThreadState* __tstate = wxPyBeginAllowThreads();
28849 result = (bool)(arg1)->Validate(arg2);
28850
28851 wxPyEndAllowThreads(__tstate);
28852 if (PyErr_Occurred()) SWIG_fail;
28853 }
28854 {
28855 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28856 }
28857 return resultobj;
28858 fail:
28859 return NULL;
28860}
28861
28862
c32bde28 28863static PyObject *_wrap_Validator_TransferToWindow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28864 PyObject *resultobj;
28865 wxValidator *arg1 = (wxValidator *) 0 ;
28866 bool result;
28867 PyObject * obj0 = 0 ;
28868 char *kwnames[] = {
28869 (char *) "self", NULL
28870 };
28871
28872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferToWindow",kwnames,&obj0)) goto fail;
28873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator,
28874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28875 {
28876 PyThreadState* __tstate = wxPyBeginAllowThreads();
28877 result = (bool)(arg1)->TransferToWindow();
28878
28879 wxPyEndAllowThreads(__tstate);
28880 if (PyErr_Occurred()) SWIG_fail;
28881 }
28882 {
28883 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28884 }
28885 return resultobj;
28886 fail:
28887 return NULL;
28888}
28889
28890
c32bde28 28891static PyObject *_wrap_Validator_TransferFromWindow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28892 PyObject *resultobj;
28893 wxValidator *arg1 = (wxValidator *) 0 ;
28894 bool result;
28895 PyObject * obj0 = 0 ;
28896 char *kwnames[] = {
28897 (char *) "self", NULL
28898 };
28899
28900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferFromWindow",kwnames,&obj0)) goto fail;
28901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator,
28902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28903 {
28904 PyThreadState* __tstate = wxPyBeginAllowThreads();
28905 result = (bool)(arg1)->TransferFromWindow();
28906
28907 wxPyEndAllowThreads(__tstate);
28908 if (PyErr_Occurred()) SWIG_fail;
28909 }
28910 {
28911 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28912 }
28913 return resultobj;
28914 fail:
28915 return NULL;
28916}
28917
28918
c32bde28 28919static PyObject *_wrap_Validator_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28920 PyObject *resultobj;
28921 wxValidator *arg1 = (wxValidator *) 0 ;
28922 wxWindow *result;
28923 PyObject * obj0 = 0 ;
28924 char *kwnames[] = {
28925 (char *) "self", NULL
28926 };
28927
28928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_GetWindow",kwnames,&obj0)) goto fail;
28929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator,
28930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28931 {
28932 PyThreadState* __tstate = wxPyBeginAllowThreads();
28933 result = (wxWindow *)(arg1)->GetWindow();
28934
28935 wxPyEndAllowThreads(__tstate);
28936 if (PyErr_Occurred()) SWIG_fail;
28937 }
28938 {
412d302d 28939 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
28940 }
28941 return resultobj;
28942 fail:
28943 return NULL;
28944}
28945
28946
c32bde28 28947static PyObject *_wrap_Validator_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28948 PyObject *resultobj;
28949 wxValidator *arg1 = (wxValidator *) 0 ;
28950 wxWindow *arg2 = (wxWindow *) 0 ;
28951 PyObject * obj0 = 0 ;
28952 PyObject * obj1 = 0 ;
28953 char *kwnames[] = {
28954 (char *) "self",(char *) "window", NULL
28955 };
28956
28957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) goto fail;
28958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator,
28959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28960 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28962 {
28963 PyThreadState* __tstate = wxPyBeginAllowThreads();
28964 (arg1)->SetWindow(arg2);
28965
28966 wxPyEndAllowThreads(__tstate);
28967 if (PyErr_Occurred()) SWIG_fail;
28968 }
28969 Py_INCREF(Py_None); resultobj = Py_None;
28970 return resultobj;
28971 fail:
28972 return NULL;
28973}
28974
28975
c32bde28 28976static PyObject *_wrap_Validator_IsSilent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
28977 PyObject *resultobj;
28978 bool result;
28979 char *kwnames[] = {
28980 NULL
28981 };
28982
28983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Validator_IsSilent",kwnames)) goto fail;
28984 {
28985 PyThreadState* __tstate = wxPyBeginAllowThreads();
28986 result = (bool)wxValidator::IsSilent();
28987
28988 wxPyEndAllowThreads(__tstate);
28989 if (PyErr_Occurred()) SWIG_fail;
28990 }
28991 {
28992 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28993 }
28994 return resultobj;
28995 fail:
28996 return NULL;
28997}
28998
28999
c32bde28 29000static PyObject *_wrap_Validator_SetBellOnError(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
29001 PyObject *resultobj;
29002 int arg1 = (int) True ;
29003 PyObject * obj0 = 0 ;
29004 char *kwnames[] = {
29005 (char *) "doIt", NULL
29006 };
29007
29008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Validator_SetBellOnError",kwnames,&obj0)) goto fail;
29009 if (obj0) {
c32bde28 29010 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
29011 if (PyErr_Occurred()) SWIG_fail;
29012 }
29013 {
29014 PyThreadState* __tstate = wxPyBeginAllowThreads();
29015 wxValidator::SetBellOnError(arg1);
29016
29017 wxPyEndAllowThreads(__tstate);
29018 if (PyErr_Occurred()) SWIG_fail;
29019 }
29020 Py_INCREF(Py_None); resultobj = Py_None;
29021 return resultobj;
29022 fail:
29023 return NULL;
29024}
29025
29026
c32bde28 29027static PyObject * Validator_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
29028 PyObject *obj;
29029 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29030 SWIG_TypeClientData(SWIGTYPE_p_wxValidator, obj);
29031 Py_INCREF(obj);
29032 return Py_BuildValue((char *)"");
29033}
c32bde28 29034static PyObject *_wrap_new_PyValidator(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
29035 PyObject *resultobj;
29036 wxPyValidator *result;
29037 char *kwnames[] = {
29038 NULL
29039 };
29040
29041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyValidator",kwnames)) goto fail;
29042 {
29043 PyThreadState* __tstate = wxPyBeginAllowThreads();
29044 result = (wxPyValidator *)new wxPyValidator();
29045
29046 wxPyEndAllowThreads(__tstate);
29047 if (PyErr_Occurred()) SWIG_fail;
29048 }
29049 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyValidator, 1);
29050 return resultobj;
29051 fail:
29052 return NULL;
29053}
29054
29055
c32bde28 29056static PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
29057 PyObject *resultobj;
29058 wxPyValidator *arg1 = (wxPyValidator *) 0 ;
29059 PyObject *arg2 = (PyObject *) 0 ;
29060 PyObject *arg3 = (PyObject *) 0 ;
29061 int arg4 = (int) True ;
29062 PyObject * obj0 = 0 ;
29063 PyObject * obj1 = 0 ;
29064 PyObject * obj2 = 0 ;
29065 PyObject * obj3 = 0 ;
29066 char *kwnames[] = {
29067 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
29068 };
29069
29070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
29071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyValidator,
29072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29073 arg2 = obj1;
29074 arg3 = obj2;
29075 if (obj3) {
c32bde28 29076 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
29077 if (PyErr_Occurred()) SWIG_fail;
29078 }
29079 {
29080 PyThreadState* __tstate = wxPyBeginAllowThreads();
29081 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
29082
29083 wxPyEndAllowThreads(__tstate);
29084 if (PyErr_Occurred()) SWIG_fail;
29085 }
29086 Py_INCREF(Py_None); resultobj = Py_None;
29087 return resultobj;
29088 fail:
29089 return NULL;
29090}
29091
29092
c32bde28 29093static PyObject * PyValidator_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
29094 PyObject *obj;
29095 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29096 SWIG_TypeClientData(SWIGTYPE_p_wxPyValidator, obj);
29097 Py_INCREF(obj);
29098 return Py_BuildValue((char *)"");
29099}
c32bde28 29100static int _wrap_DefaultValidator_set(PyObject *) {
d55e5bfc
RD
29101 PyErr_SetString(PyExc_TypeError,"Variable DefaultValidator is read-only.");
29102 return 1;
29103}
29104
29105
29106static PyObject *_wrap_DefaultValidator_get() {
29107 PyObject *pyobj;
29108
29109 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultValidator), SWIGTYPE_p_wxValidator, 0);
29110 return pyobj;
29111}
29112
29113
c32bde28 29114static PyObject *_wrap_new_Menu(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
29115 PyObject *resultobj;
29116 wxString const &arg1_defvalue = wxPyEmptyString ;
29117 wxString *arg1 = (wxString *) &arg1_defvalue ;
29118 long arg2 = (long) 0 ;
29119 wxMenu *result;
29120 bool temp1 = False ;
29121 PyObject * obj0 = 0 ;
29122 PyObject * obj1 = 0 ;
29123 char *kwnames[] = {
29124 (char *) "title",(char *) "style", NULL
29125 };
29126
29127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Menu",kwnames,&obj0,&obj1)) goto fail;
29128 if (obj0) {
29129 {
29130 arg1 = wxString_in_helper(obj0);
29131 if (arg1 == NULL) SWIG_fail;
29132 temp1 = True;
29133 }
29134 }
29135 if (obj1) {
c32bde28 29136 arg2 = (long)SWIG_As_long(obj1);
d55e5bfc
RD
29137 if (PyErr_Occurred()) SWIG_fail;
29138 }
29139 {
0439c23b 29140 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
29141 PyThreadState* __tstate = wxPyBeginAllowThreads();
29142 result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2);
29143
29144 wxPyEndAllowThreads(__tstate);
110da5b0 29145 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 29146 }
b0f7404b 29147 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenu, 1);
d55e5bfc
RD
29148 {
29149 if (temp1)
29150 delete arg1;
29151 }
29152 return resultobj;
29153 fail:
29154 {
29155 if (temp1)
29156 delete arg1;
29157 }
29158 return NULL;
29159}
29160
29161
c32bde28 29162static PyObject *_wrap_Menu_Append(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
29163 PyObject *resultobj;
29164 wxMenu *arg1 = (wxMenu *) 0 ;
29165 int arg2 ;
29166 wxString *arg3 = 0 ;
29167 wxString const &arg4_defvalue = wxPyEmptyString ;
29168 wxString *arg4 = (wxString *) &arg4_defvalue ;
29169 int arg5 = (int) wxITEM_NORMAL ;
29170 wxMenuItem *result;
29171 bool temp3 = False ;
29172 bool temp4 = False ;
29173 PyObject * obj0 = 0 ;
29174 PyObject * obj1 = 0 ;
29175 PyObject * obj2 = 0 ;
29176 PyObject * obj3 = 0 ;
29177 PyObject * obj4 = 0 ;
29178 char *kwnames[] = {
29179 (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL
29180 };
29181
29182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 29185 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
29186 if (PyErr_Occurred()) SWIG_fail;
29187 {
29188 arg3 = wxString_in_helper(obj2);
29189 if (arg3 == NULL) SWIG_fail;
29190 temp3 = True;
29191 }
29192 if (obj3) {
29193 {
29194 arg4 = wxString_in_helper(obj3);
29195 if (arg4 == NULL) SWIG_fail;
29196 temp4 = True;
29197 }
29198 }
29199 if (obj4) {
c32bde28 29200 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
29201 if (PyErr_Occurred()) SWIG_fail;
29202 }
29203 {
29204 PyThreadState* __tstate = wxPyBeginAllowThreads();
29205 result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5);
29206
29207 wxPyEndAllowThreads(__tstate);
29208 if (PyErr_Occurred()) SWIG_fail;
29209 }
29210 {
412d302d 29211 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29212 }
29213 {
29214 if (temp3)
29215 delete arg3;
29216 }
29217 {
29218 if (temp4)
29219 delete arg4;
29220 }
29221 return resultobj;
29222 fail:
29223 {
29224 if (temp3)
29225 delete arg3;
29226 }
29227 {
29228 if (temp4)
29229 delete arg4;
29230 }
29231 return NULL;
29232}
29233
29234
c32bde28 29235static PyObject *_wrap_Menu_AppendSeparator(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
29236 PyObject *resultobj;
29237 wxMenu *arg1 = (wxMenu *) 0 ;
29238 wxMenuItem *result;
29239 PyObject * obj0 = 0 ;
29240 char *kwnames[] = {
29241 (char *) "self", NULL
29242 };
29243
29244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_AppendSeparator",kwnames,&obj0)) goto fail;
29245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29247 {
29248 PyThreadState* __tstate = wxPyBeginAllowThreads();
29249 result = (wxMenuItem *)(arg1)->AppendSeparator();
29250
29251 wxPyEndAllowThreads(__tstate);
29252 if (PyErr_Occurred()) SWIG_fail;
29253 }
29254 {
412d302d 29255 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29256 }
29257 return resultobj;
29258 fail:
29259 return NULL;
29260}
29261
29262
c32bde28 29263static PyObject *_wrap_Menu_AppendCheckItem(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
29264 PyObject *resultobj;
29265 wxMenu *arg1 = (wxMenu *) 0 ;
29266 int arg2 ;
29267 wxString *arg3 = 0 ;
29268 wxString const &arg4_defvalue = wxPyEmptyString ;
29269 wxString *arg4 = (wxString *) &arg4_defvalue ;
29270 wxMenuItem *result;
29271 bool temp3 = False ;
29272 bool temp4 = False ;
29273 PyObject * obj0 = 0 ;
29274 PyObject * obj1 = 0 ;
29275 PyObject * obj2 = 0 ;
29276 PyObject * obj3 = 0 ;
29277 char *kwnames[] = {
29278 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
29279 };
29280
29281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
29282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 29284 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
29285 if (PyErr_Occurred()) SWIG_fail;
29286 {
29287 arg3 = wxString_in_helper(obj2);
29288 if (arg3 == NULL) SWIG_fail;
29289 temp3 = True;
29290 }
29291 if (obj3) {
29292 {
29293 arg4 = wxString_in_helper(obj3);
29294 if (arg4 == NULL) SWIG_fail;
29295 temp4 = True;
29296 }
29297 }
29298 {
29299 PyThreadState* __tstate = wxPyBeginAllowThreads();
29300 result = (wxMenuItem *)(arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
29301
29302 wxPyEndAllowThreads(__tstate);
29303 if (PyErr_Occurred()) SWIG_fail;
29304 }
29305 {
412d302d 29306 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29307 }
29308 {
29309 if (temp3)
29310 delete arg3;
29311 }
29312 {
29313 if (temp4)
29314 delete arg4;
29315 }
29316 return resultobj;
29317 fail:
29318 {
29319 if (temp3)
29320 delete arg3;
29321 }
29322 {
29323 if (temp4)
29324 delete arg4;
29325 }
29326 return NULL;
29327}
29328
29329
c32bde28 29330static PyObject *_wrap_Menu_AppendRadioItem(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
29331 PyObject *resultobj;
29332 wxMenu *arg1 = (wxMenu *) 0 ;
29333 int arg2 ;
29334 wxString *arg3 = 0 ;
29335 wxString const &arg4_defvalue = wxPyEmptyString ;
29336 wxString *arg4 = (wxString *) &arg4_defvalue ;
29337 wxMenuItem *result;
29338 bool temp3 = False ;
29339 bool temp4 = False ;
29340 PyObject * obj0 = 0 ;
29341 PyObject * obj1 = 0 ;
29342 PyObject * obj2 = 0 ;
29343 PyObject * obj3 = 0 ;
29344 char *kwnames[] = {
29345 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
29346 };
29347
29348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
29349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 29351 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
29352 if (PyErr_Occurred()) SWIG_fail;
29353 {
29354 arg3 = wxString_in_helper(obj2);
29355 if (arg3 == NULL) SWIG_fail;
29356 temp3 = True;
29357 }
29358 if (obj3) {
29359 {
29360 arg4 = wxString_in_helper(obj3);
29361 if (arg4 == NULL) SWIG_fail;
29362 temp4 = True;
29363 }
29364 }
29365 {
29366 PyThreadState* __tstate = wxPyBeginAllowThreads();
29367 result = (wxMenuItem *)(arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
29368
29369 wxPyEndAllowThreads(__tstate);
29370 if (PyErr_Occurred()) SWIG_fail;
29371 }
29372 {
412d302d 29373 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29374 }
29375 {
29376 if (temp3)
29377 delete arg3;
29378 }
29379 {
29380 if (temp4)
29381 delete arg4;
29382 }
29383 return resultobj;
29384 fail:
29385 {
29386 if (temp3)
29387 delete arg3;
29388 }
29389 {
29390 if (temp4)
29391 delete arg4;
29392 }
29393 return NULL;
29394}
29395
29396
c32bde28 29397static PyObject *_wrap_Menu_AppendMenu(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
29398 PyObject *resultobj;
29399 wxMenu *arg1 = (wxMenu *) 0 ;
29400 int arg2 ;
29401 wxString *arg3 = 0 ;
29402 wxMenu *arg4 = (wxMenu *) 0 ;
29403 wxString const &arg5_defvalue = wxPyEmptyString ;
29404 wxString *arg5 = (wxString *) &arg5_defvalue ;
29405 wxMenuItem *result;
29406 bool temp3 = False ;
29407 bool temp5 = False ;
29408 PyObject * obj0 = 0 ;
29409 PyObject * obj1 = 0 ;
29410 PyObject * obj2 = 0 ;
29411 PyObject * obj3 = 0 ;
29412 PyObject * obj4 = 0 ;
29413 char *kwnames[] = {
29414 (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL
29415 };
29416
29417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_AppendMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29418 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 29420 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
29421 if (PyErr_Occurred()) SWIG_fail;
29422 {
29423 arg3 = wxString_in_helper(obj2);
29424 if (arg3 == NULL) SWIG_fail;
29425 temp3 = True;
29426 }
29427 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu,
29428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29429 if (obj4) {
29430 {
29431 arg5 = wxString_in_helper(obj4);
29432 if (arg5 == NULL) SWIG_fail;
29433 temp5 = True;
29434 }
29435 }
29436 {
29437 PyThreadState* __tstate = wxPyBeginAllowThreads();
29438 result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5);
29439
29440 wxPyEndAllowThreads(__tstate);
29441 if (PyErr_Occurred()) SWIG_fail;
29442 }
29443 {
412d302d 29444 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29445 }
29446 {
29447 if (temp3)
29448 delete arg3;
29449 }
29450 {
29451 if (temp5)
29452 delete arg5;
29453 }
29454 return resultobj;
29455 fail:
29456 {
29457 if (temp3)
29458 delete arg3;
29459 }
29460 {
29461 if (temp5)
29462 delete arg5;
29463 }
29464 return NULL;
29465}
29466
29467
c32bde28 29468static PyObject *_wrap_Menu_AppendItem(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
29469 PyObject *resultobj;
29470 wxMenu *arg1 = (wxMenu *) 0 ;
29471 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
29472 wxMenuItem *result;
29473 PyObject * obj0 = 0 ;
29474 PyObject * obj1 = 0 ;
29475 char *kwnames[] = {
29476 (char *) "self",(char *) "item", NULL
29477 };
29478
29479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) goto fail;
29480 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29482 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem,
29483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29484 {
29485 PyThreadState* __tstate = wxPyBeginAllowThreads();
29486 result = (wxMenuItem *)(arg1)->Append(arg2);
29487
29488 wxPyEndAllowThreads(__tstate);
29489 if (PyErr_Occurred()) SWIG_fail;
29490 }
29491 {
412d302d 29492 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29493 }
29494 return resultobj;
29495 fail:
29496 return NULL;
29497}
29498
29499
c32bde28 29500static PyObject *_wrap_Menu_Break(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
29501 PyObject *resultobj;
29502 wxMenu *arg1 = (wxMenu *) 0 ;
29503 PyObject * obj0 = 0 ;
29504 char *kwnames[] = {
29505 (char *) "self", NULL
29506 };
29507
29508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Break",kwnames,&obj0)) goto fail;
29509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29511 {
29512 PyThreadState* __tstate = wxPyBeginAllowThreads();
29513 (arg1)->Break();
29514
29515 wxPyEndAllowThreads(__tstate);
29516 if (PyErr_Occurred()) SWIG_fail;
29517 }
29518 Py_INCREF(Py_None); resultobj = Py_None;
29519 return resultobj;
29520 fail:
29521 return NULL;
29522}
29523
29524
c32bde28 29525static PyObject *_wrap_Menu_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
29526 PyObject *resultobj;
29527 wxMenu *arg1 = (wxMenu *) 0 ;
29528 size_t arg2 ;
29529 wxMenuItem *arg3 = (wxMenuItem *) 0 ;
29530 wxMenuItem *result;
29531 PyObject * obj0 = 0 ;
29532 PyObject * obj1 = 0 ;
29533 PyObject * obj2 = 0 ;
29534 char *kwnames[] = {
29535 (char *) "self",(char *) "pos",(char *) "item", NULL
29536 };
29537
29538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
29539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 29541 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
d55e5bfc
RD
29542 if (PyErr_Occurred()) SWIG_fail;
29543 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenuItem,
29544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29545 {
29546 PyThreadState* __tstate = wxPyBeginAllowThreads();
29547 result = (wxMenuItem *)(arg1)->Insert(arg2,arg3);
29548
29549 wxPyEndAllowThreads(__tstate);
29550 if (PyErr_Occurred()) SWIG_fail;
29551 }
29552 {
412d302d 29553 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29554 }
29555 return resultobj;
29556 fail:
29557 return NULL;
29558}
29559
29560
c32bde28 29561static PyObject *_wrap_Menu_Insert(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
29562 PyObject *resultobj;
29563 wxMenu *arg1 = (wxMenu *) 0 ;
29564 size_t arg2 ;
29565 int arg3 ;
29566 wxString *arg4 = 0 ;
29567 wxString const &arg5_defvalue = wxPyEmptyString ;
29568 wxString *arg5 = (wxString *) &arg5_defvalue ;
29569 int arg6 = (int) wxITEM_NORMAL ;
29570 wxMenuItem *result;
29571 bool temp4 = False ;
29572 bool temp5 = False ;
29573 PyObject * obj0 = 0 ;
29574 PyObject * obj1 = 0 ;
29575 PyObject * obj2 = 0 ;
29576 PyObject * obj3 = 0 ;
29577 PyObject * obj4 = 0 ;
29578 PyObject * obj5 = 0 ;
29579 char *kwnames[] = {
29580 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL
29581 };
29582
29583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Menu_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
29584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 29586 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
d55e5bfc 29587 if (PyErr_Occurred()) SWIG_fail;
c32bde28 29588 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
29589 if (PyErr_Occurred()) SWIG_fail;
29590 {
29591 arg4 = wxString_in_helper(obj3);
29592 if (arg4 == NULL) SWIG_fail;
29593 temp4 = True;
29594 }
29595 if (obj4) {
29596 {
29597 arg5 = wxString_in_helper(obj4);
29598 if (arg5 == NULL) SWIG_fail;
29599 temp5 = True;
29600 }
29601 }
29602 if (obj5) {
c32bde28 29603 arg6 = (int)SWIG_As_int(obj5);
d55e5bfc
RD
29604 if (PyErr_Occurred()) SWIG_fail;
29605 }
29606 {
29607 PyThreadState* __tstate = wxPyBeginAllowThreads();
29608 result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxItemKind )arg6);
29609
29610 wxPyEndAllowThreads(__tstate);
29611 if (PyErr_Occurred()) SWIG_fail;
29612 }
29613 {
412d302d 29614 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29615 }
29616 {
29617 if (temp4)
29618 delete arg4;
29619 }
29620 {
29621 if (temp5)
29622 delete arg5;
29623 }
29624 return resultobj;
29625 fail:
29626 {
29627 if (temp4)
29628 delete arg4;
29629 }
29630 {
29631 if (temp5)
29632 delete arg5;
29633 }
29634 return NULL;
29635}
29636
29637
c32bde28 29638static PyObject *_wrap_Menu_InsertSeparator(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
29639 PyObject *resultobj;
29640 wxMenu *arg1 = (wxMenu *) 0 ;
29641 size_t arg2 ;
29642 wxMenuItem *result;
29643 PyObject * obj0 = 0 ;
29644 PyObject * obj1 = 0 ;
29645 char *kwnames[] = {
29646 (char *) "self",(char *) "pos", NULL
29647 };
29648
29649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) goto fail;
29650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 29652 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
d55e5bfc
RD
29653 if (PyErr_Occurred()) SWIG_fail;
29654 {
29655 PyThreadState* __tstate = wxPyBeginAllowThreads();
29656 result = (wxMenuItem *)(arg1)->InsertSeparator(arg2);
29657
29658 wxPyEndAllowThreads(__tstate);
29659 if (PyErr_Occurred()) SWIG_fail;
29660 }
29661 {
412d302d 29662 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29663 }
29664 return resultobj;
29665 fail:
29666 return NULL;
29667}
29668
29669
c32bde28 29670static PyObject *_wrap_Menu_InsertCheckItem(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
29671 PyObject *resultobj;
29672 wxMenu *arg1 = (wxMenu *) 0 ;
29673 size_t arg2 ;
29674 int arg3 ;
29675 wxString *arg4 = 0 ;
29676 wxString const &arg5_defvalue = wxPyEmptyString ;
29677 wxString *arg5 = (wxString *) &arg5_defvalue ;
29678 wxMenuItem *result;
29679 bool temp4 = False ;
29680 bool temp5 = False ;
29681 PyObject * obj0 = 0 ;
29682 PyObject * obj1 = 0 ;
29683 PyObject * obj2 = 0 ;
29684 PyObject * obj3 = 0 ;
29685 PyObject * obj4 = 0 ;
29686 char *kwnames[] = {
29687 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL
29688 };
29689
29690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 29693 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
d55e5bfc 29694 if (PyErr_Occurred()) SWIG_fail;
c32bde28 29695 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
29696 if (PyErr_Occurred()) SWIG_fail;
29697 {
29698 arg4 = wxString_in_helper(obj3);
29699 if (arg4 == NULL) SWIG_fail;
29700 temp4 = True;
29701 }
29702 if (obj4) {
29703 {
29704 arg5 = wxString_in_helper(obj4);
29705 if (arg5 == NULL) SWIG_fail;
29706 temp5 = True;
29707 }
29708 }
29709 {
29710 PyThreadState* __tstate = wxPyBeginAllowThreads();
29711 result = (wxMenuItem *)(arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5);
29712
29713 wxPyEndAllowThreads(__tstate);
29714 if (PyErr_Occurred()) SWIG_fail;
29715 }
29716 {
412d302d 29717 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29718 }
29719 {
29720 if (temp4)
29721 delete arg4;
29722 }
29723 {
29724 if (temp5)
29725 delete arg5;
29726 }
29727 return resultobj;
29728 fail:
29729 {
29730 if (temp4)
29731 delete arg4;
29732 }
29733 {
29734 if (temp5)
29735 delete arg5;
29736 }
29737 return NULL;
29738}
29739
29740
c32bde28 29741static PyObject *_wrap_Menu_InsertRadioItem(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
29742 PyObject *resultobj;
29743 wxMenu *arg1 = (wxMenu *) 0 ;
29744 size_t arg2 ;
29745 int arg3 ;
29746 wxString *arg4 = 0 ;
29747 wxString const &arg5_defvalue = wxPyEmptyString ;
29748 wxString *arg5 = (wxString *) &arg5_defvalue ;
29749 wxMenuItem *result;
29750 bool temp4 = False ;
29751 bool temp5 = False ;
29752 PyObject * obj0 = 0 ;
29753 PyObject * obj1 = 0 ;
29754 PyObject * obj2 = 0 ;
29755 PyObject * obj3 = 0 ;
29756 PyObject * obj4 = 0 ;
29757 char *kwnames[] = {
29758 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL
29759 };
29760
29761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 29764 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
d55e5bfc 29765 if (PyErr_Occurred()) SWIG_fail;
c32bde28 29766 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
29767 if (PyErr_Occurred()) SWIG_fail;
29768 {
29769 arg4 = wxString_in_helper(obj3);
29770 if (arg4 == NULL) SWIG_fail;
29771 temp4 = True;
29772 }
29773 if (obj4) {
29774 {
29775 arg5 = wxString_in_helper(obj4);
29776 if (arg5 == NULL) SWIG_fail;
29777 temp5 = True;
29778 }
29779 }
29780 {
29781 PyThreadState* __tstate = wxPyBeginAllowThreads();
29782 result = (wxMenuItem *)(arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5);
29783
29784 wxPyEndAllowThreads(__tstate);
29785 if (PyErr_Occurred()) SWIG_fail;
29786 }
29787 {
412d302d 29788 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29789 }
29790 {
29791 if (temp4)
29792 delete arg4;
29793 }
29794 {
29795 if (temp5)
29796 delete arg5;
29797 }
29798 return resultobj;
29799 fail:
29800 {
29801 if (temp4)
29802 delete arg4;
29803 }
29804 {
29805 if (temp5)
29806 delete arg5;
29807 }
29808 return NULL;
29809}
29810
29811
c32bde28 29812static PyObject *_wrap_Menu_InsertMenu(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
29813 PyObject *resultobj;
29814 wxMenu *arg1 = (wxMenu *) 0 ;
29815 size_t arg2 ;
29816 int arg3 ;
29817 wxString *arg4 = 0 ;
29818 wxMenu *arg5 = (wxMenu *) 0 ;
29819 wxString const &arg6_defvalue = wxPyEmptyString ;
29820 wxString *arg6 = (wxString *) &arg6_defvalue ;
29821 wxMenuItem *result;
29822 bool temp4 = False ;
29823 bool temp6 = False ;
29824 PyObject * obj0 = 0 ;
29825 PyObject * obj1 = 0 ;
29826 PyObject * obj2 = 0 ;
29827 PyObject * obj3 = 0 ;
29828 PyObject * obj4 = 0 ;
29829 PyObject * obj5 = 0 ;
29830 char *kwnames[] = {
29831 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL
29832 };
29833
29834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
29835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 29837 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
d55e5bfc 29838 if (PyErr_Occurred()) SWIG_fail;
c32bde28 29839 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
29840 if (PyErr_Occurred()) SWIG_fail;
29841 {
29842 arg4 = wxString_in_helper(obj3);
29843 if (arg4 == NULL) SWIG_fail;
29844 temp4 = True;
29845 }
29846 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxMenu,
29847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29848 if (obj5) {
29849 {
29850 arg6 = wxString_in_helper(obj5);
29851 if (arg6 == NULL) SWIG_fail;
29852 temp6 = True;
29853 }
29854 }
29855 {
29856 PyThreadState* __tstate = wxPyBeginAllowThreads();
29857 result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6);
29858
29859 wxPyEndAllowThreads(__tstate);
29860 if (PyErr_Occurred()) SWIG_fail;
29861 }
29862 {
412d302d 29863 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29864 }
29865 {
29866 if (temp4)
29867 delete arg4;
29868 }
29869 {
29870 if (temp6)
29871 delete arg6;
29872 }
29873 return resultobj;
29874 fail:
29875 {
29876 if (temp4)
29877 delete arg4;
29878 }
29879 {
29880 if (temp6)
29881 delete arg6;
29882 }
29883 return NULL;
29884}
29885
29886
c32bde28 29887static PyObject *_wrap_Menu_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
29888 PyObject *resultobj;
29889 wxMenu *arg1 = (wxMenu *) 0 ;
29890 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
29891 wxMenuItem *result;
29892 PyObject * obj0 = 0 ;
29893 PyObject * obj1 = 0 ;
29894 char *kwnames[] = {
29895 (char *) "self",(char *) "item", NULL
29896 };
29897
29898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) goto fail;
29899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29901 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem,
29902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29903 {
29904 PyThreadState* __tstate = wxPyBeginAllowThreads();
29905 result = (wxMenuItem *)(arg1)->Prepend(arg2);
29906
29907 wxPyEndAllowThreads(__tstate);
29908 if (PyErr_Occurred()) SWIG_fail;
29909 }
29910 {
412d302d 29911 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29912 }
29913 return resultobj;
29914 fail:
29915 return NULL;
29916}
29917
29918
c32bde28 29919static PyObject *_wrap_Menu_Prepend(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
29920 PyObject *resultobj;
29921 wxMenu *arg1 = (wxMenu *) 0 ;
29922 int arg2 ;
29923 wxString *arg3 = 0 ;
29924 wxString const &arg4_defvalue = wxPyEmptyString ;
29925 wxString *arg4 = (wxString *) &arg4_defvalue ;
29926 int arg5 = (int) wxITEM_NORMAL ;
29927 wxMenuItem *result;
29928 bool temp3 = False ;
29929 bool temp4 = False ;
29930 PyObject * obj0 = 0 ;
29931 PyObject * obj1 = 0 ;
29932 PyObject * obj2 = 0 ;
29933 PyObject * obj3 = 0 ;
29934 PyObject * obj4 = 0 ;
29935 char *kwnames[] = {
29936 (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL
29937 };
29938
29939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 29942 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
29943 if (PyErr_Occurred()) SWIG_fail;
29944 {
29945 arg3 = wxString_in_helper(obj2);
29946 if (arg3 == NULL) SWIG_fail;
29947 temp3 = True;
29948 }
29949 if (obj3) {
29950 {
29951 arg4 = wxString_in_helper(obj3);
29952 if (arg4 == NULL) SWIG_fail;
29953 temp4 = True;
29954 }
29955 }
29956 if (obj4) {
c32bde28 29957 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
29958 if (PyErr_Occurred()) SWIG_fail;
29959 }
29960 {
29961 PyThreadState* __tstate = wxPyBeginAllowThreads();
29962 result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5);
29963
29964 wxPyEndAllowThreads(__tstate);
29965 if (PyErr_Occurred()) SWIG_fail;
29966 }
29967 {
412d302d 29968 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29969 }
29970 {
29971 if (temp3)
29972 delete arg3;
29973 }
29974 {
29975 if (temp4)
29976 delete arg4;
29977 }
29978 return resultobj;
29979 fail:
29980 {
29981 if (temp3)
29982 delete arg3;
29983 }
29984 {
29985 if (temp4)
29986 delete arg4;
29987 }
29988 return NULL;
29989}
29990
29991
c32bde28 29992static PyObject *_wrap_Menu_PrependSeparator(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
29993 PyObject *resultobj;
29994 wxMenu *arg1 = (wxMenu *) 0 ;
29995 wxMenuItem *result;
29996 PyObject * obj0 = 0 ;
29997 char *kwnames[] = {
29998 (char *) "self", NULL
29999 };
30000
30001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_PrependSeparator",kwnames,&obj0)) goto fail;
30002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30004 {
30005 PyThreadState* __tstate = wxPyBeginAllowThreads();
30006 result = (wxMenuItem *)(arg1)->PrependSeparator();
30007
30008 wxPyEndAllowThreads(__tstate);
30009 if (PyErr_Occurred()) SWIG_fail;
30010 }
30011 {
412d302d 30012 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
30013 }
30014 return resultobj;
30015 fail:
30016 return NULL;
30017}
30018
30019
c32bde28 30020static PyObject *_wrap_Menu_PrependCheckItem(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
30021 PyObject *resultobj;
30022 wxMenu *arg1 = (wxMenu *) 0 ;
30023 int arg2 ;
30024 wxString *arg3 = 0 ;
30025 wxString const &arg4_defvalue = wxPyEmptyString ;
30026 wxString *arg4 = (wxString *) &arg4_defvalue ;
30027 wxMenuItem *result;
30028 bool temp3 = False ;
30029 bool temp4 = False ;
30030 PyObject * obj0 = 0 ;
30031 PyObject * obj1 = 0 ;
30032 PyObject * obj2 = 0 ;
30033 PyObject * obj3 = 0 ;
30034 char *kwnames[] = {
30035 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
30036 };
30037
30038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
30039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 30041 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
30042 if (PyErr_Occurred()) SWIG_fail;
30043 {
30044 arg3 = wxString_in_helper(obj2);
30045 if (arg3 == NULL) SWIG_fail;
30046 temp3 = True;
30047 }
30048 if (obj3) {
30049 {
30050 arg4 = wxString_in_helper(obj3);
30051 if (arg4 == NULL) SWIG_fail;
30052 temp4 = True;
30053 }
30054 }
30055 {
30056 PyThreadState* __tstate = wxPyBeginAllowThreads();
30057 result = (wxMenuItem *)(arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
30058
30059 wxPyEndAllowThreads(__tstate);
30060 if (PyErr_Occurred()) SWIG_fail;
30061 }
30062 {
412d302d 30063 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
30064 }
30065 {
30066 if (temp3)
30067 delete arg3;
30068 }
30069 {
30070 if (temp4)
30071 delete arg4;
30072 }
30073 return resultobj;
30074 fail:
30075 {
30076 if (temp3)
30077 delete arg3;
30078 }
30079 {
30080 if (temp4)
30081 delete arg4;
30082 }
30083 return NULL;
30084}
30085
30086
c32bde28 30087static PyObject *_wrap_Menu_PrependRadioItem(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
30088 PyObject *resultobj;
30089 wxMenu *arg1 = (wxMenu *) 0 ;
30090 int arg2 ;
30091 wxString *arg3 = 0 ;
30092 wxString const &arg4_defvalue = wxPyEmptyString ;
30093 wxString *arg4 = (wxString *) &arg4_defvalue ;
30094 wxMenuItem *result;
30095 bool temp3 = False ;
30096 bool temp4 = False ;
30097 PyObject * obj0 = 0 ;
30098 PyObject * obj1 = 0 ;
30099 PyObject * obj2 = 0 ;
30100 PyObject * obj3 = 0 ;
30101 char *kwnames[] = {
30102 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
30103 };
30104
30105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
30106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 30108 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
30109 if (PyErr_Occurred()) SWIG_fail;
30110 {
30111 arg3 = wxString_in_helper(obj2);
30112 if (arg3 == NULL) SWIG_fail;
30113 temp3 = True;
30114 }
30115 if (obj3) {
30116 {
30117 arg4 = wxString_in_helper(obj3);
30118 if (arg4 == NULL) SWIG_fail;
30119 temp4 = True;
30120 }
30121 }
30122 {
30123 PyThreadState* __tstate = wxPyBeginAllowThreads();
30124 result = (wxMenuItem *)(arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
30125
30126 wxPyEndAllowThreads(__tstate);
30127 if (PyErr_Occurred()) SWIG_fail;
30128 }
30129 {
412d302d 30130 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
30131 }
30132 {
30133 if (temp3)
30134 delete arg3;
30135 }
30136 {
30137 if (temp4)
30138 delete arg4;
30139 }
30140 return resultobj;
30141 fail:
30142 {
30143 if (temp3)
30144 delete arg3;
30145 }
30146 {
30147 if (temp4)
30148 delete arg4;
30149 }
30150 return NULL;
30151}
30152
30153
c32bde28 30154static PyObject *_wrap_Menu_PrependMenu(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
30155 PyObject *resultobj;
30156 wxMenu *arg1 = (wxMenu *) 0 ;
30157 int arg2 ;
30158 wxString *arg3 = 0 ;
30159 wxMenu *arg4 = (wxMenu *) 0 ;
30160 wxString const &arg5_defvalue = wxPyEmptyString ;
30161 wxString *arg5 = (wxString *) &arg5_defvalue ;
30162 wxMenuItem *result;
30163 bool temp3 = False ;
30164 bool temp5 = False ;
30165 PyObject * obj0 = 0 ;
30166 PyObject * obj1 = 0 ;
30167 PyObject * obj2 = 0 ;
30168 PyObject * obj3 = 0 ;
30169 PyObject * obj4 = 0 ;
30170 char *kwnames[] = {
30171 (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL
30172 };
30173
30174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_PrependMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
30175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 30177 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
30178 if (PyErr_Occurred()) SWIG_fail;
30179 {
30180 arg3 = wxString_in_helper(obj2);
30181 if (arg3 == NULL) SWIG_fail;
30182 temp3 = True;
30183 }
30184 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu,
30185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30186 if (obj4) {
30187 {
30188 arg5 = wxString_in_helper(obj4);
30189 if (arg5 == NULL) SWIG_fail;
30190 temp5 = True;
30191 }
30192 }
30193 {
30194 PyThreadState* __tstate = wxPyBeginAllowThreads();
30195 result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5);
30196
30197 wxPyEndAllowThreads(__tstate);
30198 if (PyErr_Occurred()) SWIG_fail;
30199 }
30200 {
412d302d 30201 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
30202 }
30203 {
30204 if (temp3)
30205 delete arg3;
30206 }
30207 {
30208 if (temp5)
30209 delete arg5;
30210 }
30211 return resultobj;
30212 fail:
30213 {
30214 if (temp3)
30215 delete arg3;
30216 }
30217 {
30218 if (temp5)
30219 delete arg5;
30220 }
30221 return NULL;
30222}
30223
30224
c32bde28 30225static PyObject *_wrap_Menu_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
30226 PyObject *resultobj;
30227 wxMenu *arg1 = (wxMenu *) 0 ;
30228 int arg2 ;
30229 wxMenuItem *result;
30230 PyObject * obj0 = 0 ;
30231 PyObject * obj1 = 0 ;
30232 char *kwnames[] = {
30233 (char *) "self",(char *) "id", NULL
30234 };
30235
30236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Remove",kwnames,&obj0,&obj1)) goto fail;
30237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 30239 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
30240 if (PyErr_Occurred()) SWIG_fail;
30241 {
30242 PyThreadState* __tstate = wxPyBeginAllowThreads();
30243 result = (wxMenuItem *)(arg1)->Remove(arg2);
30244
30245 wxPyEndAllowThreads(__tstate);
30246 if (PyErr_Occurred()) SWIG_fail;
30247 }
30248 {
412d302d 30249 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
30250 }
30251 return resultobj;
30252 fail:
30253 return NULL;
30254}
30255
30256
c32bde28 30257static PyObject *_wrap_Menu_RemoveItem(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
30258 PyObject *resultobj;
30259 wxMenu *arg1 = (wxMenu *) 0 ;
30260 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
30261 wxMenuItem *result;
30262 PyObject * obj0 = 0 ;
30263 PyObject * obj1 = 0 ;
30264 char *kwnames[] = {
30265 (char *) "self",(char *) "item", NULL
30266 };
30267
30268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) goto fail;
30269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30271 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem,
30272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30273 {
30274 PyThreadState* __tstate = wxPyBeginAllowThreads();
30275 result = (wxMenuItem *)(arg1)->Remove(arg2);
30276
30277 wxPyEndAllowThreads(__tstate);
30278 if (PyErr_Occurred()) SWIG_fail;
30279 }
30280 {
412d302d 30281 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
30282 }
30283 return resultobj;
30284 fail:
30285 return NULL;
30286}
30287
30288
c32bde28 30289static PyObject *_wrap_Menu_Delete(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
30290 PyObject *resultobj;
30291 wxMenu *arg1 = (wxMenu *) 0 ;
30292 int arg2 ;
30293 bool result;
30294 PyObject * obj0 = 0 ;
30295 PyObject * obj1 = 0 ;
30296 char *kwnames[] = {
30297 (char *) "self",(char *) "id", NULL
30298 };
30299
30300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Delete",kwnames,&obj0,&obj1)) goto fail;
30301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 30303 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
30304 if (PyErr_Occurred()) SWIG_fail;
30305 {
30306 PyThreadState* __tstate = wxPyBeginAllowThreads();
30307 result = (bool)(arg1)->Delete(arg2);
30308
30309 wxPyEndAllowThreads(__tstate);
30310 if (PyErr_Occurred()) SWIG_fail;
30311 }
30312 {
30313 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30314 }
30315 return resultobj;
30316 fail:
30317 return NULL;
30318}
30319
30320
c32bde28 30321static PyObject *_wrap_Menu_DeleteItem(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
30322 PyObject *resultobj;
30323 wxMenu *arg1 = (wxMenu *) 0 ;
30324 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
30325 bool result;
30326 PyObject * obj0 = 0 ;
30327 PyObject * obj1 = 0 ;
30328 char *kwnames[] = {
30329 (char *) "self",(char *) "item", NULL
30330 };
30331
30332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) goto fail;
30333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30335 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem,
30336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30337 {
30338 PyThreadState* __tstate = wxPyBeginAllowThreads();
30339 result = (bool)(arg1)->Delete(arg2);
30340
30341 wxPyEndAllowThreads(__tstate);
30342 if (PyErr_Occurred()) SWIG_fail;
30343 }
30344 {
30345 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30346 }
30347 return resultobj;
30348 fail:
30349 return NULL;
30350}
30351
30352
c32bde28 30353static PyObject *_wrap_Menu_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
30354 PyObject *resultobj;
30355 wxMenu *arg1 = (wxMenu *) 0 ;
30356 PyObject * obj0 = 0 ;
30357 char *kwnames[] = {
30358 (char *) "self", NULL
30359 };
30360
30361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Destroy",kwnames,&obj0)) goto fail;
30362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30364 {
30365 PyThreadState* __tstate = wxPyBeginAllowThreads();
30366 wxMenu_Destroy(arg1);
30367
30368 wxPyEndAllowThreads(__tstate);
30369 if (PyErr_Occurred()) SWIG_fail;
30370 }
30371 Py_INCREF(Py_None); resultobj = Py_None;
30372 return resultobj;
30373 fail:
30374 return NULL;
30375}
30376
30377
c32bde28 30378static PyObject *_wrap_Menu_DestroyId(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
30379 PyObject *resultobj;
30380 wxMenu *arg1 = (wxMenu *) 0 ;
30381 int arg2 ;
30382 bool result;
30383 PyObject * obj0 = 0 ;
30384 PyObject * obj1 = 0 ;
30385 char *kwnames[] = {
30386 (char *) "self",(char *) "id", NULL
30387 };
30388
30389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyId",kwnames,&obj0,&obj1)) goto fail;
30390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 30392 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
30393 if (PyErr_Occurred()) SWIG_fail;
30394 {
30395 PyThreadState* __tstate = wxPyBeginAllowThreads();
30396 result = (bool)(arg1)->Destroy(arg2);
30397
30398 wxPyEndAllowThreads(__tstate);
30399 if (PyErr_Occurred()) SWIG_fail;
30400 }
30401 {
30402 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30403 }
30404 return resultobj;
30405 fail:
30406 return NULL;
30407}
30408
30409
c32bde28 30410static PyObject *_wrap_Menu_DestroyItem(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
30411 PyObject *resultobj;
30412 wxMenu *arg1 = (wxMenu *) 0 ;
30413 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
30414 bool result;
30415 PyObject * obj0 = 0 ;
30416 PyObject * obj1 = 0 ;
30417 char *kwnames[] = {
30418 (char *) "self",(char *) "item", NULL
30419 };
30420
30421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) goto fail;
30422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30424 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem,
30425 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30426 {
30427 PyThreadState* __tstate = wxPyBeginAllowThreads();
30428 result = (bool)(arg1)->Destroy(arg2);
30429
30430 wxPyEndAllowThreads(__tstate);
30431 if (PyErr_Occurred()) SWIG_fail;
30432 }
30433 {
30434 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30435 }
30436 return resultobj;
30437 fail:
30438 return NULL;
30439}
30440
30441
c32bde28 30442static PyObject *_wrap_Menu_GetMenuItemCount(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
30443 PyObject *resultobj;
30444 wxMenu *arg1 = (wxMenu *) 0 ;
30445 size_t result;
30446 PyObject * obj0 = 0 ;
30447 char *kwnames[] = {
30448 (char *) "self", NULL
30449 };
30450
30451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItemCount",kwnames,&obj0)) goto fail;
30452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30454 {
30455 PyThreadState* __tstate = wxPyBeginAllowThreads();
30456 result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount();
30457
30458 wxPyEndAllowThreads(__tstate);
30459 if (PyErr_Occurred()) SWIG_fail;
30460 }
c32bde28 30461 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
d55e5bfc
RD
30462 return resultobj;
30463 fail:
30464 return NULL;
30465}
30466
30467
c32bde28 30468static PyObject *_wrap_Menu_GetMenuItems(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
30469 PyObject *resultobj;
30470 wxMenu *arg1 = (wxMenu *) 0 ;
30471 PyObject *result;
30472 PyObject * obj0 = 0 ;
30473 char *kwnames[] = {
30474 (char *) "self", NULL
30475 };
30476
30477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItems",kwnames,&obj0)) goto fail;
30478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30480 {
30481 PyThreadState* __tstate = wxPyBeginAllowThreads();
30482 result = (PyObject *)wxMenu_GetMenuItems(arg1);
30483
30484 wxPyEndAllowThreads(__tstate);
30485 if (PyErr_Occurred()) SWIG_fail;
30486 }
30487 resultobj = result;
30488 return resultobj;
30489 fail:
30490 return NULL;
30491}
30492
30493
c32bde28 30494static PyObject *_wrap_Menu_FindItem(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
30495 PyObject *resultobj;
30496 wxMenu *arg1 = (wxMenu *) 0 ;
30497 wxString *arg2 = 0 ;
30498 int result;
30499 bool temp2 = False ;
30500 PyObject * obj0 = 0 ;
30501 PyObject * obj1 = 0 ;
30502 char *kwnames[] = {
30503 (char *) "self",(char *) "item", NULL
30504 };
30505
30506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) goto fail;
30507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30509 {
30510 arg2 = wxString_in_helper(obj1);
30511 if (arg2 == NULL) SWIG_fail;
30512 temp2 = True;
30513 }
30514 {
30515 PyThreadState* __tstate = wxPyBeginAllowThreads();
30516 result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2);
30517
30518 wxPyEndAllowThreads(__tstate);
30519 if (PyErr_Occurred()) SWIG_fail;
30520 }
c32bde28 30521 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
30522 {
30523 if (temp2)
30524 delete arg2;
30525 }
30526 return resultobj;
30527 fail:
30528 {
30529 if (temp2)
30530 delete arg2;
30531 }
30532 return NULL;
30533}
30534
30535
c32bde28 30536static PyObject *_wrap_Menu_FindItemById(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
30537 PyObject *resultobj;
30538 wxMenu *arg1 = (wxMenu *) 0 ;
30539 int arg2 ;
30540 wxMenuItem *result;
30541 PyObject * obj0 = 0 ;
30542 PyObject * obj1 = 0 ;
30543 char *kwnames[] = {
30544 (char *) "self",(char *) "id", NULL
30545 };
30546
30547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemById",kwnames,&obj0,&obj1)) goto fail;
30548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 30550 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
30551 if (PyErr_Occurred()) SWIG_fail;
30552 {
30553 PyThreadState* __tstate = wxPyBeginAllowThreads();
30554 result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2);
30555
30556 wxPyEndAllowThreads(__tstate);
30557 if (PyErr_Occurred()) SWIG_fail;
30558 }
30559 {
412d302d 30560 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
30561 }
30562 return resultobj;
30563 fail:
30564 return NULL;
30565}
30566
30567
c32bde28 30568static PyObject *_wrap_Menu_FindItemByPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
30569 PyObject *resultobj;
30570 wxMenu *arg1 = (wxMenu *) 0 ;
30571 size_t arg2 ;
30572 wxMenuItem *result;
30573 PyObject * obj0 = 0 ;
30574 PyObject * obj1 = 0 ;
30575 char *kwnames[] = {
30576 (char *) "self",(char *) "position", NULL
30577 };
30578
30579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) goto fail;
30580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 30582 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
d55e5bfc
RD
30583 if (PyErr_Occurred()) SWIG_fail;
30584 {
30585 PyThreadState* __tstate = wxPyBeginAllowThreads();
30586 result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2);
30587
30588 wxPyEndAllowThreads(__tstate);
30589 if (PyErr_Occurred()) SWIG_fail;
30590 }
30591 {
412d302d 30592 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
30593 }
30594 return resultobj;
30595 fail:
30596 return NULL;
30597}
30598
30599
c32bde28 30600static PyObject *_wrap_Menu_Enable(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
30601 PyObject *resultobj;
30602 wxMenu *arg1 = (wxMenu *) 0 ;
30603 int arg2 ;
30604 bool arg3 ;
30605 PyObject * obj0 = 0 ;
30606 PyObject * obj1 = 0 ;
30607 PyObject * obj2 = 0 ;
30608 char *kwnames[] = {
30609 (char *) "self",(char *) "id",(char *) "enable", NULL
30610 };
30611
30612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail;
30613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 30615 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 30616 if (PyErr_Occurred()) SWIG_fail;
c32bde28 30617 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
30618 if (PyErr_Occurred()) SWIG_fail;
30619 {
30620 PyThreadState* __tstate = wxPyBeginAllowThreads();
30621 (arg1)->Enable(arg2,arg3);
30622
30623 wxPyEndAllowThreads(__tstate);
30624 if (PyErr_Occurred()) SWIG_fail;
30625 }
30626 Py_INCREF(Py_None); resultobj = Py_None;
30627 return resultobj;
30628 fail:
30629 return NULL;
30630}
30631
30632
c32bde28 30633static PyObject *_wrap_Menu_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
30634 PyObject *resultobj;
30635 wxMenu *arg1 = (wxMenu *) 0 ;
30636 int arg2 ;
30637 bool result;
30638 PyObject * obj0 = 0 ;
30639 PyObject * obj1 = 0 ;
30640 char *kwnames[] = {
30641 (char *) "self",(char *) "id", NULL
30642 };
30643
30644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsEnabled",kwnames,&obj0,&obj1)) goto fail;
30645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 30647 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
30648 if (PyErr_Occurred()) SWIG_fail;
30649 {
30650 PyThreadState* __tstate = wxPyBeginAllowThreads();
30651 result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2);
30652
30653 wxPyEndAllowThreads(__tstate);
30654 if (PyErr_Occurred()) SWIG_fail;
30655 }
30656 {
30657 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30658 }
30659 return resultobj;
30660 fail:
30661 return NULL;
30662}
30663
30664
c32bde28 30665static PyObject *_wrap_Menu_Check(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
30666 PyObject *resultobj;
30667 wxMenu *arg1 = (wxMenu *) 0 ;
30668 int arg2 ;
30669 bool arg3 ;
30670 PyObject * obj0 = 0 ;
30671 PyObject * obj1 = 0 ;
30672 PyObject * obj2 = 0 ;
30673 char *kwnames[] = {
30674 (char *) "self",(char *) "id",(char *) "check", NULL
30675 };
30676
30677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Check",kwnames,&obj0,&obj1,&obj2)) goto fail;
30678 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30679 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 30680 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 30681 if (PyErr_Occurred()) SWIG_fail;
c32bde28 30682 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
30683 if (PyErr_Occurred()) SWIG_fail;
30684 {
30685 PyThreadState* __tstate = wxPyBeginAllowThreads();
30686 (arg1)->Check(arg2,arg3);
30687
30688 wxPyEndAllowThreads(__tstate);
30689 if (PyErr_Occurred()) SWIG_fail;
30690 }
30691 Py_INCREF(Py_None); resultobj = Py_None;
30692 return resultobj;
30693 fail:
30694 return NULL;
30695}
30696
30697
c32bde28 30698static PyObject *_wrap_Menu_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
30699 PyObject *resultobj;
30700 wxMenu *arg1 = (wxMenu *) 0 ;
30701 int arg2 ;
30702 bool result;
30703 PyObject * obj0 = 0 ;
30704 PyObject * obj1 = 0 ;
30705 char *kwnames[] = {
30706 (char *) "self",(char *) "id", NULL
30707 };
30708
30709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsChecked",kwnames,&obj0,&obj1)) goto fail;
30710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 30712 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
30713 if (PyErr_Occurred()) SWIG_fail;
30714 {
30715 PyThreadState* __tstate = wxPyBeginAllowThreads();
30716 result = (bool)((wxMenu const *)arg1)->IsChecked(arg2);
30717
30718 wxPyEndAllowThreads(__tstate);
30719 if (PyErr_Occurred()) SWIG_fail;
30720 }
30721 {
30722 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30723 }
30724 return resultobj;
30725 fail:
30726 return NULL;
30727}
30728
30729
c32bde28 30730static PyObject *_wrap_Menu_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
30731 PyObject *resultobj;
30732 wxMenu *arg1 = (wxMenu *) 0 ;
30733 int arg2 ;
30734 wxString *arg3 = 0 ;
30735 bool temp3 = False ;
30736 PyObject * obj0 = 0 ;
30737 PyObject * obj1 = 0 ;
30738 PyObject * obj2 = 0 ;
30739 char *kwnames[] = {
30740 (char *) "self",(char *) "id",(char *) "label", NULL
30741 };
30742
30743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail;
30744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 30746 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
30747 if (PyErr_Occurred()) SWIG_fail;
30748 {
30749 arg3 = wxString_in_helper(obj2);
30750 if (arg3 == NULL) SWIG_fail;
30751 temp3 = True;
30752 }
30753 {
30754 PyThreadState* __tstate = wxPyBeginAllowThreads();
30755 (arg1)->SetLabel(arg2,(wxString const &)*arg3);
30756
30757 wxPyEndAllowThreads(__tstate);
30758 if (PyErr_Occurred()) SWIG_fail;
30759 }
30760 Py_INCREF(Py_None); resultobj = Py_None;
30761 {
30762 if (temp3)
30763 delete arg3;
30764 }
30765 return resultobj;
30766 fail:
30767 {
30768 if (temp3)
30769 delete arg3;
30770 }
30771 return NULL;
30772}
30773
30774
c32bde28 30775static PyObject *_wrap_Menu_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
30776 PyObject *resultobj;
30777 wxMenu *arg1 = (wxMenu *) 0 ;
30778 int arg2 ;
30779 wxString result;
30780 PyObject * obj0 = 0 ;
30781 PyObject * obj1 = 0 ;
30782 char *kwnames[] = {
30783 (char *) "self",(char *) "id", NULL
30784 };
30785
30786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetLabel",kwnames,&obj0,&obj1)) goto fail;
30787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 30789 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
30790 if (PyErr_Occurred()) SWIG_fail;
30791 {
30792 PyThreadState* __tstate = wxPyBeginAllowThreads();
30793 result = ((wxMenu const *)arg1)->GetLabel(arg2);
30794
30795 wxPyEndAllowThreads(__tstate);
30796 if (PyErr_Occurred()) SWIG_fail;
30797 }
30798 {
30799#if wxUSE_UNICODE
30800 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30801#else
30802 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30803#endif
30804 }
30805 return resultobj;
30806 fail:
30807 return NULL;
30808}
30809
30810
c32bde28 30811static PyObject *_wrap_Menu_SetHelpString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
30812 PyObject *resultobj;
30813 wxMenu *arg1 = (wxMenu *) 0 ;
30814 int arg2 ;
30815 wxString *arg3 = 0 ;
30816 bool temp3 = False ;
30817 PyObject * obj0 = 0 ;
30818 PyObject * obj1 = 0 ;
30819 PyObject * obj2 = 0 ;
30820 char *kwnames[] = {
30821 (char *) "self",(char *) "id",(char *) "helpString", NULL
30822 };
30823
30824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail;
30825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 30827 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
30828 if (PyErr_Occurred()) SWIG_fail;
30829 {
30830 arg3 = wxString_in_helper(obj2);
30831 if (arg3 == NULL) SWIG_fail;
30832 temp3 = True;
30833 }
30834 {
30835 PyThreadState* __tstate = wxPyBeginAllowThreads();
30836 (arg1)->SetHelpString(arg2,(wxString const &)*arg3);
30837
30838 wxPyEndAllowThreads(__tstate);
30839 if (PyErr_Occurred()) SWIG_fail;
30840 }
30841 Py_INCREF(Py_None); resultobj = Py_None;
30842 {
30843 if (temp3)
30844 delete arg3;
30845 }
30846 return resultobj;
30847 fail:
30848 {
30849 if (temp3)
30850 delete arg3;
30851 }
30852 return NULL;
30853}
30854
30855
c32bde28 30856static PyObject *_wrap_Menu_GetHelpString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
30857 PyObject *resultobj;
30858 wxMenu *arg1 = (wxMenu *) 0 ;
30859 int arg2 ;
30860 wxString result;
30861 PyObject * obj0 = 0 ;
30862 PyObject * obj1 = 0 ;
30863 char *kwnames[] = {
30864 (char *) "self",(char *) "id", NULL
30865 };
30866
30867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetHelpString",kwnames,&obj0,&obj1)) goto fail;
30868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 30870 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
30871 if (PyErr_Occurred()) SWIG_fail;
30872 {
30873 PyThreadState* __tstate = wxPyBeginAllowThreads();
30874 result = ((wxMenu const *)arg1)->GetHelpString(arg2);
30875
30876 wxPyEndAllowThreads(__tstate);
30877 if (PyErr_Occurred()) SWIG_fail;
30878 }
30879 {
30880#if wxUSE_UNICODE
30881 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30882#else
30883 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30884#endif
30885 }
30886 return resultobj;
30887 fail:
30888 return NULL;
30889}
30890
30891
c32bde28 30892static PyObject *_wrap_Menu_SetTitle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
30893 PyObject *resultobj;
30894 wxMenu *arg1 = (wxMenu *) 0 ;
30895 wxString *arg2 = 0 ;
30896 bool temp2 = False ;
30897 PyObject * obj0 = 0 ;
30898 PyObject * obj1 = 0 ;
30899 char *kwnames[] = {
30900 (char *) "self",(char *) "title", NULL
30901 };
30902
30903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) goto fail;
30904 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30905 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30906 {
30907 arg2 = wxString_in_helper(obj1);
30908 if (arg2 == NULL) SWIG_fail;
30909 temp2 = True;
30910 }
30911 {
30912 PyThreadState* __tstate = wxPyBeginAllowThreads();
30913 (arg1)->SetTitle((wxString const &)*arg2);
30914
30915 wxPyEndAllowThreads(__tstate);
30916 if (PyErr_Occurred()) SWIG_fail;
30917 }
30918 Py_INCREF(Py_None); resultobj = Py_None;
30919 {
30920 if (temp2)
30921 delete arg2;
30922 }
30923 return resultobj;
30924 fail:
30925 {
30926 if (temp2)
30927 delete arg2;
30928 }
30929 return NULL;
30930}
30931
30932
c32bde28 30933static PyObject *_wrap_Menu_GetTitle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
30934 PyObject *resultobj;
30935 wxMenu *arg1 = (wxMenu *) 0 ;
30936 wxString result;
30937 PyObject * obj0 = 0 ;
30938 char *kwnames[] = {
30939 (char *) "self", NULL
30940 };
30941
30942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetTitle",kwnames,&obj0)) goto fail;
30943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30945 {
30946 PyThreadState* __tstate = wxPyBeginAllowThreads();
30947 result = ((wxMenu const *)arg1)->GetTitle();
30948
30949 wxPyEndAllowThreads(__tstate);
30950 if (PyErr_Occurred()) SWIG_fail;
30951 }
30952 {
30953#if wxUSE_UNICODE
30954 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30955#else
30956 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30957#endif
30958 }
30959 return resultobj;
30960 fail:
30961 return NULL;
30962}
30963
30964
c32bde28 30965static PyObject *_wrap_Menu_SetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
30966 PyObject *resultobj;
30967 wxMenu *arg1 = (wxMenu *) 0 ;
30968 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
30969 PyObject * obj0 = 0 ;
30970 PyObject * obj1 = 0 ;
30971 char *kwnames[] = {
30972 (char *) "self",(char *) "handler", NULL
30973 };
30974
30975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) goto fail;
30976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30978 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
30979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30980 {
30981 PyThreadState* __tstate = wxPyBeginAllowThreads();
30982 (arg1)->SetEventHandler(arg2);
30983
30984 wxPyEndAllowThreads(__tstate);
30985 if (PyErr_Occurred()) SWIG_fail;
30986 }
30987 Py_INCREF(Py_None); resultobj = Py_None;
30988 return resultobj;
30989 fail:
30990 return NULL;
30991}
30992
30993
c32bde28 30994static PyObject *_wrap_Menu_GetEventHandler(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
30995 PyObject *resultobj;
30996 wxMenu *arg1 = (wxMenu *) 0 ;
30997 wxEvtHandler *result;
30998 PyObject * obj0 = 0 ;
30999 char *kwnames[] = {
31000 (char *) "self", NULL
31001 };
31002
31003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetEventHandler",kwnames,&obj0)) goto fail;
31004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
31005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31006 {
31007 PyThreadState* __tstate = wxPyBeginAllowThreads();
31008 result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler();
31009
31010 wxPyEndAllowThreads(__tstate);
31011 if (PyErr_Occurred()) SWIG_fail;
31012 }
31013 {
412d302d 31014 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
31015 }
31016 return resultobj;
31017 fail:
31018 return NULL;
31019}
31020
31021
c32bde28 31022static PyObject *_wrap_Menu_SetInvokingWindow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
31023 PyObject *resultobj;
31024 wxMenu *arg1 = (wxMenu *) 0 ;
31025 wxWindow *arg2 = (wxWindow *) 0 ;
31026 PyObject * obj0 = 0 ;
31027 PyObject * obj1 = 0 ;
31028 char *kwnames[] = {
31029 (char *) "self",(char *) "win", NULL
31030 };
31031
31032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) goto fail;
31033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
31034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31035 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
31036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31037 {
31038 PyThreadState* __tstate = wxPyBeginAllowThreads();
31039 (arg1)->SetInvokingWindow(arg2);
31040
31041 wxPyEndAllowThreads(__tstate);
31042 if (PyErr_Occurred()) SWIG_fail;
31043 }
31044 Py_INCREF(Py_None); resultobj = Py_None;
31045 return resultobj;
31046 fail:
31047 return NULL;
31048}
31049
31050
c32bde28 31051static PyObject *_wrap_Menu_GetInvokingWindow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
31052 PyObject *resultobj;
31053 wxMenu *arg1 = (wxMenu *) 0 ;
31054 wxWindow *result;
31055 PyObject * obj0 = 0 ;
31056 char *kwnames[] = {
31057 (char *) "self", NULL
31058 };
31059
31060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetInvokingWindow",kwnames,&obj0)) goto fail;
31061 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
31062 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31063 {
31064 PyThreadState* __tstate = wxPyBeginAllowThreads();
31065 result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow();
31066
31067 wxPyEndAllowThreads(__tstate);
31068 if (PyErr_Occurred()) SWIG_fail;
31069 }
31070 {
412d302d 31071 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
31072 }
31073 return resultobj;
31074 fail:
31075 return NULL;
31076}
31077
31078
c32bde28 31079static PyObject *_wrap_Menu_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
31080 PyObject *resultobj;
31081 wxMenu *arg1 = (wxMenu *) 0 ;
31082 long result;
31083 PyObject * obj0 = 0 ;
31084 char *kwnames[] = {
31085 (char *) "self", NULL
31086 };
31087
31088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetStyle",kwnames,&obj0)) goto fail;
31089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
31090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31091 {
31092 PyThreadState* __tstate = wxPyBeginAllowThreads();
31093 result = (long)((wxMenu const *)arg1)->GetStyle();
31094
31095 wxPyEndAllowThreads(__tstate);
31096 if (PyErr_Occurred()) SWIG_fail;
31097 }
c32bde28 31098 resultobj = SWIG_From_long((long)result);
d55e5bfc
RD
31099 return resultobj;
31100 fail:
31101 return NULL;
31102}
31103
31104
c32bde28 31105static PyObject *_wrap_Menu_UpdateUI(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
31106 PyObject *resultobj;
31107 wxMenu *arg1 = (wxMenu *) 0 ;
31108 wxEvtHandler *arg2 = (wxEvtHandler *) NULL ;
31109 PyObject * obj0 = 0 ;
31110 PyObject * obj1 = 0 ;
31111 char *kwnames[] = {
31112 (char *) "self",(char *) "source", NULL
31113 };
31114
31115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) goto fail;
31116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
31117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31118 if (obj1) {
31119 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
31120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31121 }
31122 {
31123 PyThreadState* __tstate = wxPyBeginAllowThreads();
31124 (arg1)->UpdateUI(arg2);
31125
31126 wxPyEndAllowThreads(__tstate);
31127 if (PyErr_Occurred()) SWIG_fail;
31128 }
31129 Py_INCREF(Py_None); resultobj = Py_None;
31130 return resultobj;
31131 fail:
31132 return NULL;
31133}
31134
31135
c32bde28 31136static PyObject *_wrap_Menu_GetMenuBar(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
31137 PyObject *resultobj;
31138 wxMenu *arg1 = (wxMenu *) 0 ;
31139 wxMenuBar *result;
31140 PyObject * obj0 = 0 ;
31141 char *kwnames[] = {
31142 (char *) "self", NULL
31143 };
31144
31145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuBar",kwnames,&obj0)) goto fail;
31146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
31147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31148 {
31149 PyThreadState* __tstate = wxPyBeginAllowThreads();
31150 result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar();
31151
31152 wxPyEndAllowThreads(__tstate);
31153 if (PyErr_Occurred()) SWIG_fail;
31154 }
31155 {
412d302d 31156 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
31157 }
31158 return resultobj;
31159 fail:
31160 return NULL;
31161}
31162
31163
c32bde28 31164static PyObject *_wrap_Menu_Attach(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
31165 PyObject *resultobj;
31166 wxMenu *arg1 = (wxMenu *) 0 ;
31167 wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ;
31168 PyObject * obj0 = 0 ;
31169 PyObject * obj1 = 0 ;
31170 char *kwnames[] = {
31171 (char *) "self",(char *) "menubar", NULL
31172 };
31173
31174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) goto fail;
31175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
31176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31177 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuBarBase,
31178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31179 {
31180 PyThreadState* __tstate = wxPyBeginAllowThreads();
31181 (arg1)->Attach(arg2);
31182
31183 wxPyEndAllowThreads(__tstate);
31184 if (PyErr_Occurred()) SWIG_fail;
31185 }
31186 Py_INCREF(Py_None); resultobj = Py_None;
31187 return resultobj;
31188 fail:
31189 return NULL;
31190}
31191
31192
c32bde28 31193static PyObject *_wrap_Menu_Detach(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
31194 PyObject *resultobj;
31195 wxMenu *arg1 = (wxMenu *) 0 ;
31196 PyObject * obj0 = 0 ;
31197 char *kwnames[] = {
31198 (char *) "self", NULL
31199 };
31200
31201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Detach",kwnames,&obj0)) goto fail;
31202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
31203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31204 {
31205 PyThreadState* __tstate = wxPyBeginAllowThreads();
31206 (arg1)->Detach();
31207
31208 wxPyEndAllowThreads(__tstate);
31209 if (PyErr_Occurred()) SWIG_fail;
31210 }
31211 Py_INCREF(Py_None); resultobj = Py_None;
31212 return resultobj;
31213 fail:
31214 return NULL;
31215}
31216
31217
c32bde28 31218static PyObject *_wrap_Menu_IsAttached(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
31219 PyObject *resultobj;
31220 wxMenu *arg1 = (wxMenu *) 0 ;
31221 bool result;
31222 PyObject * obj0 = 0 ;
31223 char *kwnames[] = {
31224 (char *) "self", NULL
31225 };
31226
31227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_IsAttached",kwnames,&obj0)) goto fail;
31228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
31229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31230 {
31231 PyThreadState* __tstate = wxPyBeginAllowThreads();
31232 result = (bool)((wxMenu const *)arg1)->IsAttached();
31233
31234 wxPyEndAllowThreads(__tstate);
31235 if (PyErr_Occurred()) SWIG_fail;
31236 }
31237 {
31238 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31239 }
31240 return resultobj;
31241 fail:
31242 return NULL;
31243}
31244
31245
c32bde28 31246static PyObject *_wrap_Menu_SetParent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
31247 PyObject *resultobj;
31248 wxMenu *arg1 = (wxMenu *) 0 ;
31249 wxMenu *arg2 = (wxMenu *) 0 ;
31250 PyObject * obj0 = 0 ;
31251 PyObject * obj1 = 0 ;
31252 char *kwnames[] = {
31253 (char *) "self",(char *) "parent", NULL
31254 };
31255
31256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) goto fail;
31257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
31258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31259 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
31260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31261 {
31262 PyThreadState* __tstate = wxPyBeginAllowThreads();
31263 (arg1)->SetParent(arg2);
31264
31265 wxPyEndAllowThreads(__tstate);
31266 if (PyErr_Occurred()) SWIG_fail;
31267 }
31268 Py_INCREF(Py_None); resultobj = Py_None;
31269 return resultobj;
31270 fail:
31271 return NULL;
31272}
31273
31274
c32bde28 31275static PyObject *_wrap_Menu_GetParent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
31276 PyObject *resultobj;
31277 wxMenu *arg1 = (wxMenu *) 0 ;
31278 wxMenu *result;
31279 PyObject * obj0 = 0 ;
31280 char *kwnames[] = {
31281 (char *) "self", NULL
31282 };
31283
31284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetParent",kwnames,&obj0)) goto fail;
31285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
31286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31287 {
31288 PyThreadState* __tstate = wxPyBeginAllowThreads();
31289 result = (wxMenu *)((wxMenu const *)arg1)->GetParent();
31290
31291 wxPyEndAllowThreads(__tstate);
31292 if (PyErr_Occurred()) SWIG_fail;
31293 }
31294 {
412d302d 31295 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
31296 }
31297 return resultobj;
31298 fail:
31299 return NULL;
31300}
31301
31302
c32bde28 31303static PyObject * Menu_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
31304 PyObject *obj;
31305 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
31306 SWIG_TypeClientData(SWIGTYPE_p_wxMenu, obj);
31307 Py_INCREF(obj);
31308 return Py_BuildValue((char *)"");
31309}
c32bde28 31310static PyObject *_wrap_new_MenuBar(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
31311 PyObject *resultobj;
31312 long arg1 = (long) 0 ;
31313 wxMenuBar *result;
31314 PyObject * obj0 = 0 ;
31315 char *kwnames[] = {
31316 (char *) "style", NULL
31317 };
31318
31319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MenuBar",kwnames,&obj0)) goto fail;
31320 if (obj0) {
c32bde28 31321 arg1 = (long)SWIG_As_long(obj0);
d55e5bfc
RD
31322 if (PyErr_Occurred()) SWIG_fail;
31323 }
31324 {
0439c23b 31325 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
31326 PyThreadState* __tstate = wxPyBeginAllowThreads();
31327 result = (wxMenuBar *)new wxMenuBar(arg1);
31328
31329 wxPyEndAllowThreads(__tstate);
110da5b0 31330 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 31331 }
b0f7404b 31332 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuBar, 1);
d55e5bfc
RD
31333 return resultobj;
31334 fail:
31335 return NULL;
31336}
31337
31338
c32bde28 31339static PyObject *_wrap_MenuBar_Append(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
31340 PyObject *resultobj;
31341 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31342 wxMenu *arg2 = (wxMenu *) 0 ;
31343 wxString *arg3 = 0 ;
31344 bool result;
31345 bool temp3 = False ;
31346 PyObject * obj0 = 0 ;
31347 PyObject * obj1 = 0 ;
31348 PyObject * obj2 = 0 ;
31349 char *kwnames[] = {
31350 (char *) "self",(char *) "menu",(char *) "title", NULL
31351 };
31352
31353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) goto fail;
31354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31356 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
31357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31358 {
31359 arg3 = wxString_in_helper(obj2);
31360 if (arg3 == NULL) SWIG_fail;
31361 temp3 = True;
31362 }
31363 {
31364 PyThreadState* __tstate = wxPyBeginAllowThreads();
31365 result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3);
31366
31367 wxPyEndAllowThreads(__tstate);
31368 if (PyErr_Occurred()) SWIG_fail;
31369 }
31370 {
31371 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31372 }
31373 {
31374 if (temp3)
31375 delete arg3;
31376 }
31377 return resultobj;
31378 fail:
31379 {
31380 if (temp3)
31381 delete arg3;
31382 }
31383 return NULL;
31384}
31385
31386
c32bde28 31387static PyObject *_wrap_MenuBar_Insert(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
31388 PyObject *resultobj;
31389 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31390 size_t arg2 ;
31391 wxMenu *arg3 = (wxMenu *) 0 ;
31392 wxString *arg4 = 0 ;
31393 bool result;
31394 bool temp4 = False ;
31395 PyObject * obj0 = 0 ;
31396 PyObject * obj1 = 0 ;
31397 PyObject * obj2 = 0 ;
31398 PyObject * obj3 = 0 ;
31399 char *kwnames[] = {
31400 (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL
31401 };
31402
31403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
31404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 31406 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
d55e5bfc
RD
31407 if (PyErr_Occurred()) SWIG_fail;
31408 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu,
31409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31410 {
31411 arg4 = wxString_in_helper(obj3);
31412 if (arg4 == NULL) SWIG_fail;
31413 temp4 = True;
31414 }
31415 {
31416 PyThreadState* __tstate = wxPyBeginAllowThreads();
31417 result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4);
31418
31419 wxPyEndAllowThreads(__tstate);
31420 if (PyErr_Occurred()) SWIG_fail;
31421 }
31422 {
31423 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31424 }
31425 {
31426 if (temp4)
31427 delete arg4;
31428 }
31429 return resultobj;
31430 fail:
31431 {
31432 if (temp4)
31433 delete arg4;
31434 }
31435 return NULL;
31436}
31437
31438
c32bde28 31439static PyObject *_wrap_MenuBar_GetMenuCount(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
31440 PyObject *resultobj;
31441 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31442 size_t result;
31443 PyObject * obj0 = 0 ;
31444 char *kwnames[] = {
31445 (char *) "self", NULL
31446 };
31447
31448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetMenuCount",kwnames,&obj0)) goto fail;
31449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31451 {
31452 PyThreadState* __tstate = wxPyBeginAllowThreads();
31453 result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount();
31454
31455 wxPyEndAllowThreads(__tstate);
31456 if (PyErr_Occurred()) SWIG_fail;
31457 }
c32bde28 31458 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
d55e5bfc
RD
31459 return resultobj;
31460 fail:
31461 return NULL;
31462}
31463
31464
c32bde28 31465static PyObject *_wrap_MenuBar_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
31466 PyObject *resultobj;
31467 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31468 size_t arg2 ;
31469 wxMenu *result;
31470 PyObject * obj0 = 0 ;
31471 PyObject * obj1 = 0 ;
31472 char *kwnames[] = {
31473 (char *) "self",(char *) "pos", NULL
31474 };
31475
31476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) goto fail;
31477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 31479 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
d55e5bfc
RD
31480 if (PyErr_Occurred()) SWIG_fail;
31481 {
31482 PyThreadState* __tstate = wxPyBeginAllowThreads();
31483 result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2);
31484
31485 wxPyEndAllowThreads(__tstate);
31486 if (PyErr_Occurred()) SWIG_fail;
31487 }
31488 {
412d302d 31489 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
31490 }
31491 return resultobj;
31492 fail:
31493 return NULL;
31494}
31495
31496
c32bde28 31497static PyObject *_wrap_MenuBar_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
31498 PyObject *resultobj;
31499 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31500 size_t arg2 ;
31501 wxMenu *arg3 = (wxMenu *) 0 ;
31502 wxString *arg4 = 0 ;
31503 wxMenu *result;
31504 bool temp4 = False ;
31505 PyObject * obj0 = 0 ;
31506 PyObject * obj1 = 0 ;
31507 PyObject * obj2 = 0 ;
31508 PyObject * obj3 = 0 ;
31509 char *kwnames[] = {
31510 (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL
31511 };
31512
31513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
31514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 31516 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
d55e5bfc
RD
31517 if (PyErr_Occurred()) SWIG_fail;
31518 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu,
31519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31520 {
31521 arg4 = wxString_in_helper(obj3);
31522 if (arg4 == NULL) SWIG_fail;
31523 temp4 = True;
31524 }
31525 {
31526 PyThreadState* __tstate = wxPyBeginAllowThreads();
31527 result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
31528
31529 wxPyEndAllowThreads(__tstate);
31530 if (PyErr_Occurred()) SWIG_fail;
31531 }
31532 {
412d302d 31533 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
31534 }
31535 {
31536 if (temp4)
31537 delete arg4;
31538 }
31539 return resultobj;
31540 fail:
31541 {
31542 if (temp4)
31543 delete arg4;
31544 }
31545 return NULL;
31546}
31547
31548
c32bde28 31549static PyObject *_wrap_MenuBar_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
31550 PyObject *resultobj;
31551 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31552 size_t arg2 ;
31553 wxMenu *result;
31554 PyObject * obj0 = 0 ;
31555 PyObject * obj1 = 0 ;
31556 char *kwnames[] = {
31557 (char *) "self",(char *) "pos", NULL
31558 };
31559
31560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) goto fail;
31561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 31563 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
d55e5bfc
RD
31564 if (PyErr_Occurred()) SWIG_fail;
31565 {
31566 PyThreadState* __tstate = wxPyBeginAllowThreads();
31567 result = (wxMenu *)(arg1)->Remove(arg2);
31568
31569 wxPyEndAllowThreads(__tstate);
31570 if (PyErr_Occurred()) SWIG_fail;
31571 }
31572 {
412d302d 31573 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
31574 }
31575 return resultobj;
31576 fail:
31577 return NULL;
31578}
31579
31580
c32bde28 31581static PyObject *_wrap_MenuBar_EnableTop(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
31582 PyObject *resultobj;
31583 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31584 size_t arg2 ;
31585 bool arg3 ;
31586 PyObject * obj0 = 0 ;
31587 PyObject * obj1 = 0 ;
31588 PyObject * obj2 = 0 ;
31589 char *kwnames[] = {
31590 (char *) "self",(char *) "pos",(char *) "enable", NULL
31591 };
31592
31593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) goto fail;
31594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 31596 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
d55e5bfc 31597 if (PyErr_Occurred()) SWIG_fail;
c32bde28 31598 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
31599 if (PyErr_Occurred()) SWIG_fail;
31600 {
31601 PyThreadState* __tstate = wxPyBeginAllowThreads();
31602 (arg1)->EnableTop(arg2,arg3);
31603
31604 wxPyEndAllowThreads(__tstate);
31605 if (PyErr_Occurred()) SWIG_fail;
31606 }
31607 Py_INCREF(Py_None); resultobj = Py_None;
31608 return resultobj;
31609 fail:
31610 return NULL;
31611}
31612
31613
c32bde28 31614static PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
31615 PyObject *resultobj;
31616 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31617 size_t arg2 ;
31618 bool result;
31619 PyObject * obj0 = 0 ;
31620 PyObject * obj1 = 0 ;
31621 char *kwnames[] = {
31622 (char *) "self",(char *) "pos", NULL
31623 };
31624
31625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) goto fail;
31626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 31628 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
d55e5bfc
RD
31629 if (PyErr_Occurred()) SWIG_fail;
31630 {
31631 PyThreadState* __tstate = wxPyBeginAllowThreads();
31632 result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2);
31633
31634 wxPyEndAllowThreads(__tstate);
31635 if (PyErr_Occurred()) SWIG_fail;
31636 }
31637 {
31638 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31639 }
31640 return resultobj;
31641 fail:
31642 return NULL;
31643}
31644
31645
c32bde28 31646static PyObject *_wrap_MenuBar_SetLabelTop(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
31647 PyObject *resultobj;
31648 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31649 size_t arg2 ;
31650 wxString *arg3 = 0 ;
31651 bool temp3 = False ;
31652 PyObject * obj0 = 0 ;
31653 PyObject * obj1 = 0 ;
31654 PyObject * obj2 = 0 ;
31655 char *kwnames[] = {
31656 (char *) "self",(char *) "pos",(char *) "label", NULL
31657 };
31658
31659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) goto fail;
31660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 31662 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
d55e5bfc
RD
31663 if (PyErr_Occurred()) SWIG_fail;
31664 {
31665 arg3 = wxString_in_helper(obj2);
31666 if (arg3 == NULL) SWIG_fail;
31667 temp3 = True;
31668 }
31669 {
31670 PyThreadState* __tstate = wxPyBeginAllowThreads();
31671 (arg1)->SetLabelTop(arg2,(wxString const &)*arg3);
31672
31673 wxPyEndAllowThreads(__tstate);
31674 if (PyErr_Occurred()) SWIG_fail;
31675 }
31676 Py_INCREF(Py_None); resultobj = Py_None;
31677 {
31678 if (temp3)
31679 delete arg3;
31680 }
31681 return resultobj;
31682 fail:
31683 {
31684 if (temp3)
31685 delete arg3;
31686 }
31687 return NULL;
31688}
31689
31690
c32bde28 31691static PyObject *_wrap_MenuBar_GetLabelTop(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
31692 PyObject *resultobj;
31693 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31694 size_t arg2 ;
31695 wxString result;
31696 PyObject * obj0 = 0 ;
31697 PyObject * obj1 = 0 ;
31698 char *kwnames[] = {
31699 (char *) "self",(char *) "pos", NULL
31700 };
31701
31702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) goto fail;
31703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 31705 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
d55e5bfc
RD
31706 if (PyErr_Occurred()) SWIG_fail;
31707 {
31708 PyThreadState* __tstate = wxPyBeginAllowThreads();
31709 result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2);
31710
31711 wxPyEndAllowThreads(__tstate);
31712 if (PyErr_Occurred()) SWIG_fail;
31713 }
31714 {
31715#if wxUSE_UNICODE
31716 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
31717#else
31718 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
31719#endif
31720 }
31721 return resultobj;
31722 fail:
31723 return NULL;
31724}
31725
31726
c32bde28 31727static PyObject *_wrap_MenuBar_FindMenuItem(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
31728 PyObject *resultobj;
31729 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31730 wxString *arg2 = 0 ;
31731 wxString *arg3 = 0 ;
31732 int result;
31733 bool temp2 = False ;
31734 bool temp3 = False ;
31735 PyObject * obj0 = 0 ;
31736 PyObject * obj1 = 0 ;
31737 PyObject * obj2 = 0 ;
31738 char *kwnames[] = {
31739 (char *) "self",(char *) "menu",(char *) "item", NULL
31740 };
31741
31742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
31743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31745 {
31746 arg2 = wxString_in_helper(obj1);
31747 if (arg2 == NULL) SWIG_fail;
31748 temp2 = True;
31749 }
31750 {
31751 arg3 = wxString_in_helper(obj2);
31752 if (arg3 == NULL) SWIG_fail;
31753 temp3 = True;
31754 }
31755 {
31756 PyThreadState* __tstate = wxPyBeginAllowThreads();
31757 result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3);
31758
31759 wxPyEndAllowThreads(__tstate);
31760 if (PyErr_Occurred()) SWIG_fail;
31761 }
c32bde28 31762 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
31763 {
31764 if (temp2)
31765 delete arg2;
31766 }
31767 {
31768 if (temp3)
31769 delete arg3;
31770 }
31771 return resultobj;
31772 fail:
31773 {
31774 if (temp2)
31775 delete arg2;
31776 }
31777 {
31778 if (temp3)
31779 delete arg3;
31780 }
31781 return NULL;
31782}
31783
31784
c32bde28 31785static PyObject *_wrap_MenuBar_FindItemById(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
31786 PyObject *resultobj;
31787 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31788 int arg2 ;
31789 wxMenuItem *result;
31790 PyObject * obj0 = 0 ;
31791 PyObject * obj1 = 0 ;
31792 char *kwnames[] = {
31793 (char *) "self",(char *) "id", NULL
31794 };
31795
31796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindItemById",kwnames,&obj0,&obj1)) goto fail;
31797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 31799 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
31800 if (PyErr_Occurred()) SWIG_fail;
31801 {
31802 PyThreadState* __tstate = wxPyBeginAllowThreads();
31803 result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2);
31804
31805 wxPyEndAllowThreads(__tstate);
31806 if (PyErr_Occurred()) SWIG_fail;
31807 }
31808 {
412d302d 31809 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
31810 }
31811 return resultobj;
31812 fail:
31813 return NULL;
31814}
31815
31816
c32bde28 31817static PyObject *_wrap_MenuBar_FindMenu(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
31818 PyObject *resultobj;
31819 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31820 wxString *arg2 = 0 ;
31821 int result;
31822 bool temp2 = False ;
31823 PyObject * obj0 = 0 ;
31824 PyObject * obj1 = 0 ;
31825 char *kwnames[] = {
31826 (char *) "self",(char *) "title", NULL
31827 };
31828
31829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) goto fail;
31830 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31831 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31832 {
31833 arg2 = wxString_in_helper(obj1);
31834 if (arg2 == NULL) SWIG_fail;
31835 temp2 = True;
31836 }
31837 {
31838 PyThreadState* __tstate = wxPyBeginAllowThreads();
31839 result = (int)((wxMenuBar const *)arg1)->FindMenu((wxString const &)*arg2);
31840
31841 wxPyEndAllowThreads(__tstate);
31842 if (PyErr_Occurred()) SWIG_fail;
31843 }
c32bde28 31844 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
31845 {
31846 if (temp2)
31847 delete arg2;
31848 }
31849 return resultobj;
31850 fail:
31851 {
31852 if (temp2)
31853 delete arg2;
31854 }
31855 return NULL;
31856}
31857
31858
c32bde28 31859static PyObject *_wrap_MenuBar_Enable(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
31860 PyObject *resultobj;
31861 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31862 int arg2 ;
31863 bool arg3 ;
31864 PyObject * obj0 = 0 ;
31865 PyObject * obj1 = 0 ;
31866 PyObject * obj2 = 0 ;
31867 char *kwnames[] = {
31868 (char *) "self",(char *) "id",(char *) "enable", NULL
31869 };
31870
31871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail;
31872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 31874 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 31875 if (PyErr_Occurred()) SWIG_fail;
c32bde28 31876 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
31877 if (PyErr_Occurred()) SWIG_fail;
31878 {
31879 PyThreadState* __tstate = wxPyBeginAllowThreads();
31880 (arg1)->Enable(arg2,arg3);
31881
31882 wxPyEndAllowThreads(__tstate);
31883 if (PyErr_Occurred()) SWIG_fail;
31884 }
31885 Py_INCREF(Py_None); resultobj = Py_None;
31886 return resultobj;
31887 fail:
31888 return NULL;
31889}
31890
31891
c32bde28 31892static PyObject *_wrap_MenuBar_Check(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
31893 PyObject *resultobj;
31894 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31895 int arg2 ;
31896 bool arg3 ;
31897 PyObject * obj0 = 0 ;
31898 PyObject * obj1 = 0 ;
31899 PyObject * obj2 = 0 ;
31900 char *kwnames[] = {
31901 (char *) "self",(char *) "id",(char *) "check", NULL
31902 };
31903
31904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Check",kwnames,&obj0,&obj1,&obj2)) goto fail;
31905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 31907 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 31908 if (PyErr_Occurred()) SWIG_fail;
c32bde28 31909 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
31910 if (PyErr_Occurred()) SWIG_fail;
31911 {
31912 PyThreadState* __tstate = wxPyBeginAllowThreads();
31913 (arg1)->Check(arg2,arg3);
31914
31915 wxPyEndAllowThreads(__tstate);
31916 if (PyErr_Occurred()) SWIG_fail;
31917 }
31918 Py_INCREF(Py_None); resultobj = Py_None;
31919 return resultobj;
31920 fail:
31921 return NULL;
31922}
31923
31924
c32bde28 31925static PyObject *_wrap_MenuBar_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
31926 PyObject *resultobj;
31927 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31928 int arg2 ;
31929 bool result;
31930 PyObject * obj0 = 0 ;
31931 PyObject * obj1 = 0 ;
31932 char *kwnames[] = {
31933 (char *) "self",(char *) "id", NULL
31934 };
31935
31936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsChecked",kwnames,&obj0,&obj1)) goto fail;
31937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 31939 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
31940 if (PyErr_Occurred()) SWIG_fail;
31941 {
31942 PyThreadState* __tstate = wxPyBeginAllowThreads();
31943 result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2);
31944
31945 wxPyEndAllowThreads(__tstate);
31946 if (PyErr_Occurred()) SWIG_fail;
31947 }
31948 {
31949 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31950 }
31951 return resultobj;
31952 fail:
31953 return NULL;
31954}
31955
31956
c32bde28 31957static PyObject *_wrap_MenuBar_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
31958 PyObject *resultobj;
31959 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31960 int arg2 ;
31961 bool result;
31962 PyObject * obj0 = 0 ;
31963 PyObject * obj1 = 0 ;
31964 char *kwnames[] = {
31965 (char *) "self",(char *) "id", NULL
31966 };
31967
31968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabled",kwnames,&obj0,&obj1)) goto fail;
31969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 31971 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
31972 if (PyErr_Occurred()) SWIG_fail;
31973 {
31974 PyThreadState* __tstate = wxPyBeginAllowThreads();
31975 result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2);
31976
31977 wxPyEndAllowThreads(__tstate);
31978 if (PyErr_Occurred()) SWIG_fail;
31979 }
31980 {
31981 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31982 }
31983 return resultobj;
31984 fail:
31985 return NULL;
31986}
31987
31988
c32bde28 31989static PyObject *_wrap_MenuBar_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
31990 PyObject *resultobj;
31991 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31992 int arg2 ;
31993 wxString *arg3 = 0 ;
31994 bool temp3 = False ;
31995 PyObject * obj0 = 0 ;
31996 PyObject * obj1 = 0 ;
31997 PyObject * obj2 = 0 ;
31998 char *kwnames[] = {
31999 (char *) "self",(char *) "id",(char *) "label", NULL
32000 };
32001
32002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail;
32003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
32004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 32005 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
32006 if (PyErr_Occurred()) SWIG_fail;
32007 {
32008 arg3 = wxString_in_helper(obj2);
32009 if (arg3 == NULL) SWIG_fail;
32010 temp3 = True;
32011 }
32012 {
32013 PyThreadState* __tstate = wxPyBeginAllowThreads();
32014 (arg1)->SetLabel(arg2,(wxString const &)*arg3);
32015
32016 wxPyEndAllowThreads(__tstate);
32017 if (PyErr_Occurred()) SWIG_fail;
32018 }
32019 Py_INCREF(Py_None); resultobj = Py_None;
32020 {
32021 if (temp3)
32022 delete arg3;
32023 }
32024 return resultobj;
32025 fail:
32026 {
32027 if (temp3)
32028 delete arg3;
32029 }
32030 return NULL;
32031}
32032
32033
c32bde28 32034static PyObject *_wrap_MenuBar_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
32035 PyObject *resultobj;
32036 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
32037 int arg2 ;
32038 wxString result;
32039 PyObject * obj0 = 0 ;
32040 PyObject * obj1 = 0 ;
32041 char *kwnames[] = {
32042 (char *) "self",(char *) "id", NULL
32043 };
32044
32045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabel",kwnames,&obj0,&obj1)) goto fail;
32046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
32047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 32048 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
32049 if (PyErr_Occurred()) SWIG_fail;
32050 {
32051 PyThreadState* __tstate = wxPyBeginAllowThreads();
32052 result = ((wxMenuBar const *)arg1)->GetLabel(arg2);
32053
32054 wxPyEndAllowThreads(__tstate);
32055 if (PyErr_Occurred()) SWIG_fail;
32056 }
32057 {
32058#if wxUSE_UNICODE
32059 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32060#else
32061 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32062#endif
32063 }
32064 return resultobj;
32065 fail:
32066 return NULL;
32067}
32068
32069
c32bde28 32070static PyObject *_wrap_MenuBar_SetHelpString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
32071 PyObject *resultobj;
32072 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
32073 int arg2 ;
32074 wxString *arg3 = 0 ;
32075 bool temp3 = False ;
32076 PyObject * obj0 = 0 ;
32077 PyObject * obj1 = 0 ;
32078 PyObject * obj2 = 0 ;
32079 char *kwnames[] = {
32080 (char *) "self",(char *) "id",(char *) "helpString", NULL
32081 };
32082
32083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail;
32084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
32085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 32086 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
32087 if (PyErr_Occurred()) SWIG_fail;
32088 {
32089 arg3 = wxString_in_helper(obj2);
32090 if (arg3 == NULL) SWIG_fail;
32091 temp3 = True;
32092 }
32093 {
32094 PyThreadState* __tstate = wxPyBeginAllowThreads();
32095 (arg1)->SetHelpString(arg2,(wxString const &)*arg3);
32096
32097 wxPyEndAllowThreads(__tstate);
32098 if (PyErr_Occurred()) SWIG_fail;
32099 }
32100 Py_INCREF(Py_None); resultobj = Py_None;
32101 {
32102 if (temp3)
32103 delete arg3;
32104 }
32105 return resultobj;
32106 fail:
32107 {
32108 if (temp3)
32109 delete arg3;
32110 }
32111 return NULL;
32112}
32113
32114
c32bde28 32115static PyObject *_wrap_MenuBar_GetHelpString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
32116 PyObject *resultobj;
32117 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
32118 int arg2 ;
32119 wxString result;
32120 PyObject * obj0 = 0 ;
32121 PyObject * obj1 = 0 ;
32122 char *kwnames[] = {
32123 (char *) "self",(char *) "id", NULL
32124 };
32125
32126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetHelpString",kwnames,&obj0,&obj1)) goto fail;
32127 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
32128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 32129 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
32130 if (PyErr_Occurred()) SWIG_fail;
32131 {
32132 PyThreadState* __tstate = wxPyBeginAllowThreads();
32133 result = ((wxMenuBar const *)arg1)->GetHelpString(arg2);
32134
32135 wxPyEndAllowThreads(__tstate);
32136 if (PyErr_Occurred()) SWIG_fail;
32137 }
32138 {
32139#if wxUSE_UNICODE
32140 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32141#else
32142 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32143#endif
32144 }
32145 return resultobj;
32146 fail:
32147 return NULL;
32148}
32149
32150
c32bde28 32151static PyObject *_wrap_MenuBar_GetFrame(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
32152 PyObject *resultobj;
32153 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
32154 wxFrame *result;
32155 PyObject * obj0 = 0 ;
32156 char *kwnames[] = {
32157 (char *) "self", NULL
32158 };
32159
32160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetFrame",kwnames,&obj0)) goto fail;
32161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
32162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32163 {
32164 PyThreadState* __tstate = wxPyBeginAllowThreads();
32165 result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame();
32166
32167 wxPyEndAllowThreads(__tstate);
32168 if (PyErr_Occurred()) SWIG_fail;
32169 }
32170 {
412d302d 32171 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
32172 }
32173 return resultobj;
32174 fail:
32175 return NULL;
32176}
32177
32178
c32bde28 32179static PyObject *_wrap_MenuBar_IsAttached(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
32180 PyObject *resultobj;
32181 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
32182 bool result;
32183 PyObject * obj0 = 0 ;
32184 char *kwnames[] = {
32185 (char *) "self", NULL
32186 };
32187
32188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_IsAttached",kwnames,&obj0)) goto fail;
32189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
32190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32191 {
32192 PyThreadState* __tstate = wxPyBeginAllowThreads();
32193 result = (bool)((wxMenuBar const *)arg1)->IsAttached();
32194
32195 wxPyEndAllowThreads(__tstate);
32196 if (PyErr_Occurred()) SWIG_fail;
32197 }
32198 {
32199 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32200 }
32201 return resultobj;
32202 fail:
32203 return NULL;
32204}
32205
32206
c32bde28 32207static PyObject *_wrap_MenuBar_Attach(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
32208 PyObject *resultobj;
32209 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
32210 wxFrame *arg2 = (wxFrame *) 0 ;
32211 PyObject * obj0 = 0 ;
32212 PyObject * obj1 = 0 ;
32213 char *kwnames[] = {
32214 (char *) "self",(char *) "frame", NULL
32215 };
32216
32217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) goto fail;
32218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
32219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32220 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame,
32221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32222 {
32223 PyThreadState* __tstate = wxPyBeginAllowThreads();
32224 (arg1)->Attach(arg2);
32225
32226 wxPyEndAllowThreads(__tstate);
32227 if (PyErr_Occurred()) SWIG_fail;
32228 }
32229 Py_INCREF(Py_None); resultobj = Py_None;
32230 return resultobj;
32231 fail:
32232 return NULL;
32233}
32234
32235
c32bde28 32236static PyObject *_wrap_MenuBar_Detach(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
32237 PyObject *resultobj;
32238 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
32239 PyObject * obj0 = 0 ;
32240 char *kwnames[] = {
32241 (char *) "self", NULL
32242 };
32243
32244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_Detach",kwnames,&obj0)) goto fail;
32245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
32246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32247 {
32248 PyThreadState* __tstate = wxPyBeginAllowThreads();
32249 (arg1)->Detach();
32250
32251 wxPyEndAllowThreads(__tstate);
32252 if (PyErr_Occurred()) SWIG_fail;
32253 }
32254 Py_INCREF(Py_None); resultobj = Py_None;
32255 return resultobj;
32256 fail:
32257 return NULL;
32258}
32259
32260
c32bde28 32261static PyObject * MenuBar_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
32262 PyObject *obj;
32263 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
32264 SWIG_TypeClientData(SWIGTYPE_p_wxMenuBar, obj);
32265 Py_INCREF(obj);
32266 return Py_BuildValue((char *)"");
32267}
c32bde28 32268static PyObject *_wrap_new_MenuItem(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
32269 PyObject *resultobj;
32270 wxMenu *arg1 = (wxMenu *) NULL ;
32271 int arg2 = (int) wxID_ANY ;
32272 wxString const &arg3_defvalue = wxPyEmptyString ;
32273 wxString *arg3 = (wxString *) &arg3_defvalue ;
32274 wxString const &arg4_defvalue = wxPyEmptyString ;
32275 wxString *arg4 = (wxString *) &arg4_defvalue ;
32276 int arg5 = (int) wxITEM_NORMAL ;
32277 wxMenu *arg6 = (wxMenu *) NULL ;
32278 wxMenuItem *result;
32279 bool temp3 = False ;
32280 bool temp4 = False ;
32281 PyObject * obj0 = 0 ;
32282 PyObject * obj1 = 0 ;
32283 PyObject * obj2 = 0 ;
32284 PyObject * obj3 = 0 ;
32285 PyObject * obj4 = 0 ;
32286 PyObject * obj5 = 0 ;
32287 char *kwnames[] = {
32288 (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL
32289 };
32290
32291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_MenuItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
32292 if (obj0) {
32293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
32294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32295 }
32296 if (obj1) {
c32bde28 32297 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
32298 if (PyErr_Occurred()) SWIG_fail;
32299 }
32300 if (obj2) {
32301 {
32302 arg3 = wxString_in_helper(obj2);
32303 if (arg3 == NULL) SWIG_fail;
32304 temp3 = True;
32305 }
32306 }
32307 if (obj3) {
32308 {
32309 arg4 = wxString_in_helper(obj3);
32310 if (arg4 == NULL) SWIG_fail;
32311 temp4 = True;
32312 }
32313 }
32314 if (obj4) {
c32bde28 32315 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
32316 if (PyErr_Occurred()) SWIG_fail;
32317 }
32318 if (obj5) {
32319 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxMenu,
32320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32321 }
32322 {
32323 PyThreadState* __tstate = wxPyBeginAllowThreads();
32324 result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5,arg6);
32325
32326 wxPyEndAllowThreads(__tstate);
32327 if (PyErr_Occurred()) SWIG_fail;
32328 }
32329 {
412d302d 32330 resultobj = wxPyMake_wxObject(result, 1);
d55e5bfc
RD
32331 }
32332 {
32333 if (temp3)
32334 delete arg3;
32335 }
32336 {
32337 if (temp4)
32338 delete arg4;
32339 }
32340 return resultobj;
32341 fail:
32342 {
32343 if (temp3)
32344 delete arg3;
32345 }
32346 {
32347 if (temp4)
32348 delete arg4;
32349 }
32350 return NULL;
32351}
32352
32353
c32bde28 32354static PyObject *_wrap_MenuItem_GetMenu(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
32355 PyObject *resultobj;
32356 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32357 wxMenu *result;
32358 PyObject * obj0 = 0 ;
32359 char *kwnames[] = {
32360 (char *) "self", NULL
32361 };
32362
32363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMenu",kwnames,&obj0)) goto fail;
32364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32366 {
32367 PyThreadState* __tstate = wxPyBeginAllowThreads();
32368 result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu();
32369
32370 wxPyEndAllowThreads(__tstate);
32371 if (PyErr_Occurred()) SWIG_fail;
32372 }
32373 {
412d302d 32374 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
32375 }
32376 return resultobj;
32377 fail:
32378 return NULL;
32379}
32380
32381
c32bde28 32382static PyObject *_wrap_MenuItem_SetMenu(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
32383 PyObject *resultobj;
32384 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32385 wxMenu *arg2 = (wxMenu *) 0 ;
32386 PyObject * obj0 = 0 ;
32387 PyObject * obj1 = 0 ;
32388 char *kwnames[] = {
32389 (char *) "self",(char *) "menu", NULL
32390 };
32391
32392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) goto fail;
32393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32395 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
32396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32397 {
32398 PyThreadState* __tstate = wxPyBeginAllowThreads();
32399 (arg1)->SetMenu(arg2);
32400
32401 wxPyEndAllowThreads(__tstate);
32402 if (PyErr_Occurred()) SWIG_fail;
32403 }
32404 Py_INCREF(Py_None); resultobj = Py_None;
32405 return resultobj;
32406 fail:
32407 return NULL;
32408}
32409
32410
c32bde28 32411static PyObject *_wrap_MenuItem_SetId(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
32412 PyObject *resultobj;
32413 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32414 int arg2 ;
32415 PyObject * obj0 = 0 ;
32416 PyObject * obj1 = 0 ;
32417 char *kwnames[] = {
32418 (char *) "self",(char *) "id", NULL
32419 };
32420
32421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetId",kwnames,&obj0,&obj1)) goto fail;
32422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 32424 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
32425 if (PyErr_Occurred()) SWIG_fail;
32426 {
32427 PyThreadState* __tstate = wxPyBeginAllowThreads();
32428 (arg1)->SetId(arg2);
32429
32430 wxPyEndAllowThreads(__tstate);
32431 if (PyErr_Occurred()) SWIG_fail;
32432 }
32433 Py_INCREF(Py_None); resultobj = Py_None;
32434 return resultobj;
32435 fail:
32436 return NULL;
32437}
32438
32439
c32bde28 32440static PyObject *_wrap_MenuItem_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
32441 PyObject *resultobj;
32442 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32443 int result;
32444 PyObject * obj0 = 0 ;
32445 char *kwnames[] = {
32446 (char *) "self", NULL
32447 };
32448
32449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetId",kwnames,&obj0)) goto fail;
32450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32452 {
32453 PyThreadState* __tstate = wxPyBeginAllowThreads();
32454 result = (int)((wxMenuItem const *)arg1)->GetId();
32455
32456 wxPyEndAllowThreads(__tstate);
32457 if (PyErr_Occurred()) SWIG_fail;
32458 }
c32bde28 32459 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
32460 return resultobj;
32461 fail:
32462 return NULL;
32463}
32464
32465
c32bde28 32466static PyObject *_wrap_MenuItem_IsSeparator(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
32467 PyObject *resultobj;
32468 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32469 bool result;
32470 PyObject * obj0 = 0 ;
32471 char *kwnames[] = {
32472 (char *) "self", NULL
32473 };
32474
32475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSeparator",kwnames,&obj0)) goto fail;
32476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32478 {
32479 PyThreadState* __tstate = wxPyBeginAllowThreads();
32480 result = (bool)((wxMenuItem const *)arg1)->IsSeparator();
32481
32482 wxPyEndAllowThreads(__tstate);
32483 if (PyErr_Occurred()) SWIG_fail;
32484 }
32485 {
32486 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32487 }
32488 return resultobj;
32489 fail:
32490 return NULL;
32491}
32492
32493
c32bde28 32494static PyObject *_wrap_MenuItem_SetText(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
32495 PyObject *resultobj;
32496 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32497 wxString *arg2 = 0 ;
32498 bool temp2 = False ;
32499 PyObject * obj0 = 0 ;
32500 PyObject * obj1 = 0 ;
32501 char *kwnames[] = {
32502 (char *) "self",(char *) "str", NULL
32503 };
32504
32505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) goto fail;
32506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32508 {
32509 arg2 = wxString_in_helper(obj1);
32510 if (arg2 == NULL) SWIG_fail;
32511 temp2 = True;
32512 }
32513 {
32514 PyThreadState* __tstate = wxPyBeginAllowThreads();
32515 (arg1)->SetText((wxString const &)*arg2);
32516
32517 wxPyEndAllowThreads(__tstate);
32518 if (PyErr_Occurred()) SWIG_fail;
32519 }
32520 Py_INCREF(Py_None); resultobj = Py_None;
32521 {
32522 if (temp2)
32523 delete arg2;
32524 }
32525 return resultobj;
32526 fail:
32527 {
32528 if (temp2)
32529 delete arg2;
32530 }
32531 return NULL;
32532}
32533
32534
c32bde28 32535static PyObject *_wrap_MenuItem_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
32536 PyObject *resultobj;
32537 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32538 wxString result;
32539 PyObject * obj0 = 0 ;
32540 char *kwnames[] = {
32541 (char *) "self", NULL
32542 };
32543
32544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabel",kwnames,&obj0)) goto fail;
32545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32547 {
32548 PyThreadState* __tstate = wxPyBeginAllowThreads();
32549 result = ((wxMenuItem const *)arg1)->GetLabel();
32550
32551 wxPyEndAllowThreads(__tstate);
32552 if (PyErr_Occurred()) SWIG_fail;
32553 }
32554 {
32555#if wxUSE_UNICODE
32556 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32557#else
32558 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32559#endif
32560 }
32561 return resultobj;
32562 fail:
32563 return NULL;
32564}
32565
32566
c32bde28 32567static PyObject *_wrap_MenuItem_GetText(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
32568 PyObject *resultobj;
32569 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32570 wxString *result;
32571 PyObject * obj0 = 0 ;
32572 char *kwnames[] = {
32573 (char *) "self", NULL
32574 };
32575
32576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetText",kwnames,&obj0)) goto fail;
32577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32579 {
32580 PyThreadState* __tstate = wxPyBeginAllowThreads();
32581 {
32582 wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText();
32583 result = (wxString *) &_result_ref;
32584 }
32585
32586 wxPyEndAllowThreads(__tstate);
32587 if (PyErr_Occurred()) SWIG_fail;
32588 }
32589 {
32590#if wxUSE_UNICODE
32591 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
32592#else
32593 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
32594#endif
32595 }
32596 return resultobj;
32597 fail:
32598 return NULL;
32599}
32600
32601
c32bde28 32602static PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
32603 PyObject *resultobj;
32604 wxString *arg1 = 0 ;
32605 wxString result;
32606 bool temp1 = False ;
32607 PyObject * obj0 = 0 ;
32608 char *kwnames[] = {
32609 (char *) "text", NULL
32610 };
32611
32612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) goto fail;
32613 {
32614 arg1 = wxString_in_helper(obj0);
32615 if (arg1 == NULL) SWIG_fail;
32616 temp1 = True;
32617 }
32618 {
32619 PyThreadState* __tstate = wxPyBeginAllowThreads();
32620 result = wxMenuItem::GetLabelFromText((wxString const &)*arg1);
32621
32622 wxPyEndAllowThreads(__tstate);
32623 if (PyErr_Occurred()) SWIG_fail;
32624 }
32625 {
32626#if wxUSE_UNICODE
32627 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32628#else
32629 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32630#endif
32631 }
32632 {
32633 if (temp1)
32634 delete arg1;
32635 }
32636 return resultobj;
32637 fail:
32638 {
32639 if (temp1)
32640 delete arg1;
32641 }
32642 return NULL;
32643}
32644
32645
c32bde28 32646static PyObject *_wrap_MenuItem_GetKind(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
32647 PyObject *resultobj;
32648 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32649 int result;
32650 PyObject * obj0 = 0 ;
32651 char *kwnames[] = {
32652 (char *) "self", NULL
32653 };
32654
32655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetKind",kwnames,&obj0)) goto fail;
32656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32658 {
32659 PyThreadState* __tstate = wxPyBeginAllowThreads();
32660 result = (int)((wxMenuItem const *)arg1)->GetKind();
32661
32662 wxPyEndAllowThreads(__tstate);
32663 if (PyErr_Occurred()) SWIG_fail;
32664 }
c32bde28 32665 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
32666 return resultobj;
32667 fail:
32668 return NULL;
32669}
32670
32671
c32bde28 32672static PyObject *_wrap_MenuItem_SetKind(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
32673 PyObject *resultobj;
32674 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32675 int arg2 ;
32676 PyObject * obj0 = 0 ;
32677 PyObject * obj1 = 0 ;
32678 char *kwnames[] = {
32679 (char *) "self",(char *) "kind", NULL
32680 };
32681
32682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetKind",kwnames,&obj0,&obj1)) goto fail;
32683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 32685 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
32686 if (PyErr_Occurred()) SWIG_fail;
32687 {
32688 PyThreadState* __tstate = wxPyBeginAllowThreads();
32689 (arg1)->SetKind((wxItemKind )arg2);
32690
32691 wxPyEndAllowThreads(__tstate);
32692 if (PyErr_Occurred()) SWIG_fail;
32693 }
32694 Py_INCREF(Py_None); resultobj = Py_None;
32695 return resultobj;
32696 fail:
32697 return NULL;
32698}
32699
32700
c32bde28 32701static PyObject *_wrap_MenuItem_SetCheckable(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
32702 PyObject *resultobj;
32703 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32704 bool arg2 ;
32705 PyObject * obj0 = 0 ;
32706 PyObject * obj1 = 0 ;
32707 char *kwnames[] = {
32708 (char *) "self",(char *) "checkable", NULL
32709 };
32710
32711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) goto fail;
32712 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32713 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 32714 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
32715 if (PyErr_Occurred()) SWIG_fail;
32716 {
32717 PyThreadState* __tstate = wxPyBeginAllowThreads();
32718 (arg1)->SetCheckable(arg2);
32719
32720 wxPyEndAllowThreads(__tstate);
32721 if (PyErr_Occurred()) SWIG_fail;
32722 }
32723 Py_INCREF(Py_None); resultobj = Py_None;
32724 return resultobj;
32725 fail:
32726 return NULL;
32727}
32728
32729
c32bde28 32730static PyObject *_wrap_MenuItem_IsCheckable(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
32731 PyObject *resultobj;
32732 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32733 bool result;
32734 PyObject * obj0 = 0 ;
32735 char *kwnames[] = {
32736 (char *) "self", NULL
32737 };
32738
32739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsCheckable",kwnames,&obj0)) goto fail;
32740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32742 {
32743 PyThreadState* __tstate = wxPyBeginAllowThreads();
32744 result = (bool)((wxMenuItem const *)arg1)->IsCheckable();
32745
32746 wxPyEndAllowThreads(__tstate);
32747 if (PyErr_Occurred()) SWIG_fail;
32748 }
32749 {
32750 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32751 }
32752 return resultobj;
32753 fail:
32754 return NULL;
32755}
32756
32757
c32bde28 32758static PyObject *_wrap_MenuItem_IsSubMenu(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
32759 PyObject *resultobj;
32760 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32761 bool result;
32762 PyObject * obj0 = 0 ;
32763 char *kwnames[] = {
32764 (char *) "self", NULL
32765 };
32766
32767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSubMenu",kwnames,&obj0)) goto fail;
32768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32770 {
32771 PyThreadState* __tstate = wxPyBeginAllowThreads();
32772 result = (bool)((wxMenuItem const *)arg1)->IsSubMenu();
32773
32774 wxPyEndAllowThreads(__tstate);
32775 if (PyErr_Occurred()) SWIG_fail;
32776 }
32777 {
32778 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32779 }
32780 return resultobj;
32781 fail:
32782 return NULL;
32783}
32784
32785
c32bde28 32786static PyObject *_wrap_MenuItem_SetSubMenu(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
32787 PyObject *resultobj;
32788 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32789 wxMenu *arg2 = (wxMenu *) 0 ;
32790 PyObject * obj0 = 0 ;
32791 PyObject * obj1 = 0 ;
32792 char *kwnames[] = {
32793 (char *) "self",(char *) "menu", NULL
32794 };
32795
32796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) goto fail;
32797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32799 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
32800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32801 {
32802 PyThreadState* __tstate = wxPyBeginAllowThreads();
32803 (arg1)->SetSubMenu(arg2);
32804
32805 wxPyEndAllowThreads(__tstate);
32806 if (PyErr_Occurred()) SWIG_fail;
32807 }
32808 Py_INCREF(Py_None); resultobj = Py_None;
32809 return resultobj;
32810 fail:
32811 return NULL;
32812}
32813
32814
c32bde28 32815static PyObject *_wrap_MenuItem_GetSubMenu(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
32816 PyObject *resultobj;
32817 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32818 wxMenu *result;
32819 PyObject * obj0 = 0 ;
32820 char *kwnames[] = {
32821 (char *) "self", NULL
32822 };
32823
32824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetSubMenu",kwnames,&obj0)) goto fail;
32825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32827 {
32828 PyThreadState* __tstate = wxPyBeginAllowThreads();
32829 result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu();
32830
32831 wxPyEndAllowThreads(__tstate);
32832 if (PyErr_Occurred()) SWIG_fail;
32833 }
32834 {
412d302d 32835 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
32836 }
32837 return resultobj;
32838 fail:
32839 return NULL;
32840}
32841
32842
c32bde28 32843static PyObject *_wrap_MenuItem_Enable(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
32844 PyObject *resultobj;
32845 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32846 bool arg2 = (bool) True ;
32847 PyObject * obj0 = 0 ;
32848 PyObject * obj1 = 0 ;
32849 char *kwnames[] = {
32850 (char *) "self",(char *) "enable", NULL
32851 };
32852
32853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) goto fail;
32854 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32855 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32856 if (obj1) {
c32bde28 32857 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
32858 if (PyErr_Occurred()) SWIG_fail;
32859 }
32860 {
32861 PyThreadState* __tstate = wxPyBeginAllowThreads();
32862 (arg1)->Enable(arg2);
32863
32864 wxPyEndAllowThreads(__tstate);
32865 if (PyErr_Occurred()) SWIG_fail;
32866 }
32867 Py_INCREF(Py_None); resultobj = Py_None;
32868 return resultobj;
32869 fail:
32870 return NULL;
32871}
32872
32873
c32bde28 32874static PyObject *_wrap_MenuItem_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
32875 PyObject *resultobj;
32876 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32877 bool result;
32878 PyObject * obj0 = 0 ;
32879 char *kwnames[] = {
32880 (char *) "self", NULL
32881 };
32882
32883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsEnabled",kwnames,&obj0)) goto fail;
32884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32886 {
32887 PyThreadState* __tstate = wxPyBeginAllowThreads();
32888 result = (bool)((wxMenuItem const *)arg1)->IsEnabled();
32889
32890 wxPyEndAllowThreads(__tstate);
32891 if (PyErr_Occurred()) SWIG_fail;
32892 }
32893 {
32894 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32895 }
32896 return resultobj;
32897 fail:
32898 return NULL;
32899}
32900
32901
c32bde28 32902static PyObject *_wrap_MenuItem_Check(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
32903 PyObject *resultobj;
32904 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32905 bool arg2 = (bool) True ;
32906 PyObject * obj0 = 0 ;
32907 PyObject * obj1 = 0 ;
32908 char *kwnames[] = {
32909 (char *) "self",(char *) "check", NULL
32910 };
32911
32912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) goto fail;
32913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32915 if (obj1) {
c32bde28 32916 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
32917 if (PyErr_Occurred()) SWIG_fail;
32918 }
32919 {
32920 PyThreadState* __tstate = wxPyBeginAllowThreads();
32921 (arg1)->Check(arg2);
32922
32923 wxPyEndAllowThreads(__tstate);
32924 if (PyErr_Occurred()) SWIG_fail;
32925 }
32926 Py_INCREF(Py_None); resultobj = Py_None;
32927 return resultobj;
32928 fail:
32929 return NULL;
32930}
32931
32932
c32bde28 32933static PyObject *_wrap_MenuItem_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
32934 PyObject *resultobj;
32935 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32936 bool result;
32937 PyObject * obj0 = 0 ;
32938 char *kwnames[] = {
32939 (char *) "self", NULL
32940 };
32941
32942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsChecked",kwnames,&obj0)) goto fail;
32943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32945 {
32946 PyThreadState* __tstate = wxPyBeginAllowThreads();
32947 result = (bool)((wxMenuItem const *)arg1)->IsChecked();
32948
32949 wxPyEndAllowThreads(__tstate);
32950 if (PyErr_Occurred()) SWIG_fail;
32951 }
32952 {
32953 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32954 }
32955 return resultobj;
32956 fail:
32957 return NULL;
32958}
32959
32960
c32bde28 32961static PyObject *_wrap_MenuItem_Toggle(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
32962 PyObject *resultobj;
32963 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32964 PyObject * obj0 = 0 ;
32965 char *kwnames[] = {
32966 (char *) "self", NULL
32967 };
32968
32969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_Toggle",kwnames,&obj0)) goto fail;
32970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32972 {
32973 PyThreadState* __tstate = wxPyBeginAllowThreads();
32974 (arg1)->Toggle();
32975
32976 wxPyEndAllowThreads(__tstate);
32977 if (PyErr_Occurred()) SWIG_fail;
32978 }
32979 Py_INCREF(Py_None); resultobj = Py_None;
32980 return resultobj;
32981 fail:
32982 return NULL;
32983}
32984
32985
c32bde28 32986static PyObject *_wrap_MenuItem_SetHelp(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
32987 PyObject *resultobj;
32988 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32989 wxString *arg2 = 0 ;
32990 bool temp2 = False ;
32991 PyObject * obj0 = 0 ;
32992 PyObject * obj1 = 0 ;
32993 char *kwnames[] = {
32994 (char *) "self",(char *) "str", NULL
32995 };
32996
32997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) goto fail;
32998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33000 {
33001 arg2 = wxString_in_helper(obj1);
33002 if (arg2 == NULL) SWIG_fail;
33003 temp2 = True;
33004 }
33005 {
33006 PyThreadState* __tstate = wxPyBeginAllowThreads();
33007 (arg1)->SetHelp((wxString const &)*arg2);
33008
33009 wxPyEndAllowThreads(__tstate);
33010 if (PyErr_Occurred()) SWIG_fail;
33011 }
33012 Py_INCREF(Py_None); resultobj = Py_None;
33013 {
33014 if (temp2)
33015 delete arg2;
33016 }
33017 return resultobj;
33018 fail:
33019 {
33020 if (temp2)
33021 delete arg2;
33022 }
33023 return NULL;
33024}
33025
33026
c32bde28 33027static PyObject *_wrap_MenuItem_GetHelp(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
33028 PyObject *resultobj;
33029 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33030 wxString *result;
33031 PyObject * obj0 = 0 ;
33032 char *kwnames[] = {
33033 (char *) "self", NULL
33034 };
33035
33036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetHelp",kwnames,&obj0)) goto fail;
33037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33039 {
33040 PyThreadState* __tstate = wxPyBeginAllowThreads();
33041 {
33042 wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp();
33043 result = (wxString *) &_result_ref;
33044 }
33045
33046 wxPyEndAllowThreads(__tstate);
33047 if (PyErr_Occurred()) SWIG_fail;
33048 }
33049 {
33050#if wxUSE_UNICODE
33051 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33052#else
33053 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33054#endif
33055 }
33056 return resultobj;
33057 fail:
33058 return NULL;
33059}
33060
33061
c32bde28 33062static PyObject *_wrap_MenuItem_GetAccel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
33063 PyObject *resultobj;
33064 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33065 wxAcceleratorEntry *result;
33066 PyObject * obj0 = 0 ;
33067 char *kwnames[] = {
33068 (char *) "self", NULL
33069 };
33070
33071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetAccel",kwnames,&obj0)) goto fail;
33072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33074 {
33075 PyThreadState* __tstate = wxPyBeginAllowThreads();
33076 result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel();
33077
33078 wxPyEndAllowThreads(__tstate);
33079 if (PyErr_Occurred()) SWIG_fail;
33080 }
33081 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0);
33082 return resultobj;
33083 fail:
33084 return NULL;
33085}
33086
33087
c32bde28 33088static PyObject *_wrap_MenuItem_SetAccel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
33089 PyObject *resultobj;
33090 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33091 wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ;
33092 PyObject * obj0 = 0 ;
33093 PyObject * obj1 = 0 ;
33094 char *kwnames[] = {
33095 (char *) "self",(char *) "accel", NULL
33096 };
33097
33098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) goto fail;
33099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33101 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorEntry,
33102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33103 {
33104 PyThreadState* __tstate = wxPyBeginAllowThreads();
33105 (arg1)->SetAccel(arg2);
33106
33107 wxPyEndAllowThreads(__tstate);
33108 if (PyErr_Occurred()) SWIG_fail;
33109 }
33110 Py_INCREF(Py_None); resultobj = Py_None;
33111 return resultobj;
33112 fail:
33113 return NULL;
33114}
33115
33116
c32bde28 33117static PyObject *_wrap_MenuItem_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
33118 PyObject *resultobj;
33119 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33120 wxFont *arg2 = 0 ;
33121 PyObject * obj0 = 0 ;
33122 PyObject * obj1 = 0 ;
33123 char *kwnames[] = {
33124 (char *) "self",(char *) "font", NULL
33125 };
33126
33127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetFont",kwnames,&obj0,&obj1)) goto fail;
33128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33130 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
33131 SWIG_POINTER_EXCEPTION | 0)) == -1)
33132 SWIG_fail;
33133 if (arg2 == NULL) {
33134 PyErr_SetString(PyExc_TypeError,"null reference");
33135 SWIG_fail;
33136 }
33137 {
33138 PyThreadState* __tstate = wxPyBeginAllowThreads();
33139 (arg1)->SetFont((wxFont const &)*arg2);
33140
33141 wxPyEndAllowThreads(__tstate);
33142 if (PyErr_Occurred()) SWIG_fail;
33143 }
33144 Py_INCREF(Py_None); resultobj = Py_None;
33145 return resultobj;
33146 fail:
33147 return NULL;
33148}
33149
33150
c32bde28 33151static PyObject *_wrap_MenuItem_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
33152 PyObject *resultobj;
33153 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33154 wxFont result;
33155 PyObject * obj0 = 0 ;
33156 char *kwnames[] = {
33157 (char *) "self", NULL
33158 };
33159
33160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetFont",kwnames,&obj0)) goto fail;
33161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33163 {
33164 PyThreadState* __tstate = wxPyBeginAllowThreads();
33165 result = (arg1)->GetFont();
33166
33167 wxPyEndAllowThreads(__tstate);
33168 if (PyErr_Occurred()) SWIG_fail;
33169 }
33170 {
33171 wxFont * resultptr;
33172 resultptr = new wxFont((wxFont &) result);
33173 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
33174 }
33175 return resultobj;
33176 fail:
33177 return NULL;
33178}
33179
33180
c32bde28 33181static PyObject *_wrap_MenuItem_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
33182 PyObject *resultobj;
33183 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33184 wxColour *arg2 = 0 ;
33185 wxColour temp2 ;
33186 PyObject * obj0 = 0 ;
33187 PyObject * obj1 = 0 ;
33188 char *kwnames[] = {
33189 (char *) "self",(char *) "colText", NULL
33190 };
33191
33192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
33193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33195 {
33196 arg2 = &temp2;
33197 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33198 }
33199 {
33200 PyThreadState* __tstate = wxPyBeginAllowThreads();
33201 (arg1)->SetTextColour((wxColour const &)*arg2);
33202
33203 wxPyEndAllowThreads(__tstate);
33204 if (PyErr_Occurred()) SWIG_fail;
33205 }
33206 Py_INCREF(Py_None); resultobj = Py_None;
33207 return resultobj;
33208 fail:
33209 return NULL;
33210}
33211
33212
c32bde28 33213static PyObject *_wrap_MenuItem_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
33214 PyObject *resultobj;
33215 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33216 wxColour result;
33217 PyObject * obj0 = 0 ;
33218 char *kwnames[] = {
33219 (char *) "self", NULL
33220 };
33221
33222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetTextColour",kwnames,&obj0)) goto fail;
33223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33225 {
33226 PyThreadState* __tstate = wxPyBeginAllowThreads();
33227 result = (arg1)->GetTextColour();
33228
33229 wxPyEndAllowThreads(__tstate);
33230 if (PyErr_Occurred()) SWIG_fail;
33231 }
33232 {
33233 wxColour * resultptr;
33234 resultptr = new wxColour((wxColour &) result);
33235 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
33236 }
33237 return resultobj;
33238 fail:
33239 return NULL;
33240}
33241
33242
c32bde28 33243static PyObject *_wrap_MenuItem_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
33244 PyObject *resultobj;
33245 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33246 wxColour *arg2 = 0 ;
33247 wxColour temp2 ;
33248 PyObject * obj0 = 0 ;
33249 PyObject * obj1 = 0 ;
33250 char *kwnames[] = {
33251 (char *) "self",(char *) "colBack", NULL
33252 };
33253
33254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
33255 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33257 {
33258 arg2 = &temp2;
33259 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33260 }
33261 {
33262 PyThreadState* __tstate = wxPyBeginAllowThreads();
33263 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
33264
33265 wxPyEndAllowThreads(__tstate);
33266 if (PyErr_Occurred()) SWIG_fail;
33267 }
33268 Py_INCREF(Py_None); resultobj = Py_None;
33269 return resultobj;
33270 fail:
33271 return NULL;
33272}
33273
33274
c32bde28 33275static PyObject *_wrap_MenuItem_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
33276 PyObject *resultobj;
33277 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33278 wxColour result;
33279 PyObject * obj0 = 0 ;
33280 char *kwnames[] = {
33281 (char *) "self", NULL
33282 };
33283
33284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBackgroundColour",kwnames,&obj0)) goto fail;
33285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33287 {
33288 PyThreadState* __tstate = wxPyBeginAllowThreads();
33289 result = (arg1)->GetBackgroundColour();
33290
33291 wxPyEndAllowThreads(__tstate);
33292 if (PyErr_Occurred()) SWIG_fail;
33293 }
33294 {
33295 wxColour * resultptr;
33296 resultptr = new wxColour((wxColour &) result);
33297 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
33298 }
33299 return resultobj;
33300 fail:
33301 return NULL;
33302}
33303
33304
c32bde28 33305static PyObject *_wrap_MenuItem_SetBitmaps(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
33306 PyObject *resultobj;
33307 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33308 wxBitmap *arg2 = 0 ;
33309 wxBitmap const &arg3_defvalue = wxNullBitmap ;
33310 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
33311 PyObject * obj0 = 0 ;
33312 PyObject * obj1 = 0 ;
33313 PyObject * obj2 = 0 ;
33314 char *kwnames[] = {
33315 (char *) "self",(char *) "bmpChecked",(char *) "bmpUnchecked", NULL
33316 };
33317
33318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MenuItem_SetBitmaps",kwnames,&obj0,&obj1,&obj2)) goto fail;
33319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33321 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
33322 SWIG_POINTER_EXCEPTION | 0)) == -1)
33323 SWIG_fail;
33324 if (arg2 == NULL) {
33325 PyErr_SetString(PyExc_TypeError,"null reference");
33326 SWIG_fail;
33327 }
33328 if (obj2) {
33329 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
33330 SWIG_POINTER_EXCEPTION | 0)) == -1)
33331 SWIG_fail;
33332 if (arg3 == NULL) {
33333 PyErr_SetString(PyExc_TypeError,"null reference");
33334 SWIG_fail;
33335 }
33336 }
33337 {
33338 PyThreadState* __tstate = wxPyBeginAllowThreads();
33339 (arg1)->SetBitmaps((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
33340
33341 wxPyEndAllowThreads(__tstate);
33342 if (PyErr_Occurred()) SWIG_fail;
33343 }
33344 Py_INCREF(Py_None); resultobj = Py_None;
33345 return resultobj;
33346 fail:
33347 return NULL;
33348}
33349
33350
c32bde28 33351static PyObject *_wrap_MenuItem_SetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
33352 PyObject *resultobj;
33353 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33354 wxBitmap *arg2 = 0 ;
33355 PyObject * obj0 = 0 ;
33356 PyObject * obj1 = 0 ;
33357 char *kwnames[] = {
33358 (char *) "self",(char *) "bmpDisabled", NULL
33359 };
33360
33361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail;
33362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33364 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
33365 SWIG_POINTER_EXCEPTION | 0)) == -1)
33366 SWIG_fail;
33367 if (arg2 == NULL) {
33368 PyErr_SetString(PyExc_TypeError,"null reference");
33369 SWIG_fail;
33370 }
33371 {
33372 PyThreadState* __tstate = wxPyBeginAllowThreads();
33373 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
33374
33375 wxPyEndAllowThreads(__tstate);
33376 if (PyErr_Occurred()) SWIG_fail;
33377 }
33378 Py_INCREF(Py_None); resultobj = Py_None;
33379 return resultobj;
33380 fail:
33381 return NULL;
33382}
33383
33384
c32bde28 33385static PyObject *_wrap_MenuItem_GetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
33386 PyObject *resultobj;
33387 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33388 wxBitmap *result;
33389 PyObject * obj0 = 0 ;
33390 char *kwnames[] = {
33391 (char *) "self", NULL
33392 };
33393
33394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetDisabledBitmap",kwnames,&obj0)) goto fail;
33395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33397 {
33398 PyThreadState* __tstate = wxPyBeginAllowThreads();
33399 {
33400 wxBitmap const &_result_ref = ((wxMenuItem const *)arg1)->GetDisabledBitmap();
33401 result = (wxBitmap *) &_result_ref;
33402 }
33403
33404 wxPyEndAllowThreads(__tstate);
33405 if (PyErr_Occurred()) SWIG_fail;
33406 }
33407 {
33408 wxBitmap* resultptr = new wxBitmap(*result);
33409 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
33410 }
33411 return resultobj;
33412 fail:
33413 return NULL;
33414}
33415
33416
c32bde28 33417static PyObject *_wrap_MenuItem_SetMarginWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
33418 PyObject *resultobj;
33419 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33420 int arg2 ;
33421 PyObject * obj0 = 0 ;
33422 PyObject * obj1 = 0 ;
33423 char *kwnames[] = {
33424 (char *) "self",(char *) "nWidth", NULL
33425 };
33426
33427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMarginWidth",kwnames,&obj0,&obj1)) goto fail;
33428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 33430 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
33431 if (PyErr_Occurred()) SWIG_fail;
33432 {
33433 PyThreadState* __tstate = wxPyBeginAllowThreads();
33434 (arg1)->SetMarginWidth(arg2);
33435
33436 wxPyEndAllowThreads(__tstate);
33437 if (PyErr_Occurred()) SWIG_fail;
33438 }
33439 Py_INCREF(Py_None); resultobj = Py_None;
33440 return resultobj;
33441 fail:
33442 return NULL;
33443}
33444
33445
c32bde28 33446static PyObject *_wrap_MenuItem_GetMarginWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
33447 PyObject *resultobj;
33448 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33449 int result;
33450 PyObject * obj0 = 0 ;
33451 char *kwnames[] = {
33452 (char *) "self", NULL
33453 };
33454
33455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMarginWidth",kwnames,&obj0)) goto fail;
33456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33458 {
33459 PyThreadState* __tstate = wxPyBeginAllowThreads();
33460 result = (int)(arg1)->GetMarginWidth();
33461
33462 wxPyEndAllowThreads(__tstate);
33463 if (PyErr_Occurred()) SWIG_fail;
33464 }
c32bde28 33465 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
33466 return resultobj;
33467 fail:
33468 return NULL;
33469}
33470
33471
c32bde28 33472static PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
33473 PyObject *resultobj;
33474 int result;
33475 char *kwnames[] = {
33476 NULL
33477 };
33478
33479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MenuItem_GetDefaultMarginWidth",kwnames)) goto fail;
33480 {
33481 PyThreadState* __tstate = wxPyBeginAllowThreads();
33482 result = (int)wxMenuItem::GetDefaultMarginWidth();
33483
33484 wxPyEndAllowThreads(__tstate);
33485 if (PyErr_Occurred()) SWIG_fail;
33486 }
c32bde28 33487 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
33488 return resultobj;
33489 fail:
33490 return NULL;
33491}
33492
33493
c32bde28 33494static PyObject *_wrap_MenuItem_IsOwnerDrawn(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
33495 PyObject *resultobj;
33496 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33497 bool result;
33498 PyObject * obj0 = 0 ;
33499 char *kwnames[] = {
33500 (char *) "self", NULL
33501 };
33502
33503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsOwnerDrawn",kwnames,&obj0)) goto fail;
33504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33506 {
33507 PyThreadState* __tstate = wxPyBeginAllowThreads();
33508 result = (bool)(arg1)->IsOwnerDrawn();
33509
33510 wxPyEndAllowThreads(__tstate);
33511 if (PyErr_Occurred()) SWIG_fail;
33512 }
33513 {
33514 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33515 }
33516 return resultobj;
33517 fail:
33518 return NULL;
33519}
33520
33521
c32bde28 33522static PyObject *_wrap_MenuItem_SetOwnerDrawn(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
33523 PyObject *resultobj;
33524 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33525 bool arg2 = (bool) True ;
33526 PyObject * obj0 = 0 ;
33527 PyObject * obj1 = 0 ;
33528 char *kwnames[] = {
33529 (char *) "self",(char *) "ownerDrawn", NULL
33530 };
33531
33532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_SetOwnerDrawn",kwnames,&obj0,&obj1)) goto fail;
33533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33535 if (obj1) {
c32bde28 33536 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
33537 if (PyErr_Occurred()) SWIG_fail;
33538 }
33539 {
33540 PyThreadState* __tstate = wxPyBeginAllowThreads();
33541 (arg1)->SetOwnerDrawn(arg2);
33542
33543 wxPyEndAllowThreads(__tstate);
33544 if (PyErr_Occurred()) SWIG_fail;
33545 }
33546 Py_INCREF(Py_None); resultobj = Py_None;
33547 return resultobj;
33548 fail:
33549 return NULL;
33550}
33551
33552
c32bde28 33553static PyObject *_wrap_MenuItem_ResetOwnerDrawn(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
33554 PyObject *resultobj;
33555 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33556 PyObject * obj0 = 0 ;
33557 char *kwnames[] = {
33558 (char *) "self", NULL
33559 };
33560
33561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_ResetOwnerDrawn",kwnames,&obj0)) goto fail;
33562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33564 {
33565 PyThreadState* __tstate = wxPyBeginAllowThreads();
33566 (arg1)->ResetOwnerDrawn();
33567
33568 wxPyEndAllowThreads(__tstate);
33569 if (PyErr_Occurred()) SWIG_fail;
33570 }
33571 Py_INCREF(Py_None); resultobj = Py_None;
33572 return resultobj;
33573 fail:
33574 return NULL;
33575}
33576
33577
c32bde28 33578static PyObject *_wrap_MenuItem_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
33579 PyObject *resultobj;
33580 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33581 wxBitmap *arg2 = 0 ;
33582 PyObject * obj0 = 0 ;
33583 PyObject * obj1 = 0 ;
33584 char *kwnames[] = {
33585 (char *) "self",(char *) "bitmap", NULL
33586 };
33587
33588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
33589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33591 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
33592 SWIG_POINTER_EXCEPTION | 0)) == -1)
33593 SWIG_fail;
33594 if (arg2 == NULL) {
33595 PyErr_SetString(PyExc_TypeError,"null reference");
33596 SWIG_fail;
33597 }
33598 {
33599 PyThreadState* __tstate = wxPyBeginAllowThreads();
33600 (arg1)->SetBitmap((wxBitmap const &)*arg2);
33601
33602 wxPyEndAllowThreads(__tstate);
33603 if (PyErr_Occurred()) SWIG_fail;
33604 }
33605 Py_INCREF(Py_None); resultobj = Py_None;
33606 return resultobj;
33607 fail:
33608 return NULL;
33609}
33610
33611
c32bde28 33612static PyObject *_wrap_MenuItem_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
33613 PyObject *resultobj;
33614 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33615 wxBitmap *result;
33616 PyObject * obj0 = 0 ;
33617 char *kwnames[] = {
33618 (char *) "self", NULL
33619 };
33620
33621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBitmap",kwnames,&obj0)) goto fail;
33622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33624 {
33625 PyThreadState* __tstate = wxPyBeginAllowThreads();
33626 {
33627 wxBitmap const &_result_ref = (arg1)->GetBitmap();
33628 result = (wxBitmap *) &_result_ref;
33629 }
33630
33631 wxPyEndAllowThreads(__tstate);
33632 if (PyErr_Occurred()) SWIG_fail;
33633 }
33634 {
33635 wxBitmap* resultptr = new wxBitmap(*result);
33636 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
33637 }
33638 return resultobj;
33639 fail:
33640 return NULL;
33641}
33642
33643
c32bde28 33644static PyObject * MenuItem_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
33645 PyObject *obj;
33646 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
33647 SWIG_TypeClientData(SWIGTYPE_p_wxMenuItem, obj);
33648 Py_INCREF(obj);
33649 return Py_BuildValue((char *)"");
33650}
c32bde28 33651static int _wrap_ControlNameStr_set(PyObject *) {
d55e5bfc
RD
33652 PyErr_SetString(PyExc_TypeError,"Variable ControlNameStr is read-only.");
33653 return 1;
33654}
33655
33656
33657static PyObject *_wrap_ControlNameStr_get() {
33658 PyObject *pyobj;
33659
33660 {
33661#if wxUSE_UNICODE
33662 pyobj = PyUnicode_FromWideChar((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len());
33663#else
33664 pyobj = PyString_FromStringAndSize((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len());
33665#endif
33666 }
33667 return pyobj;
33668}
33669
33670
c32bde28 33671static PyObject *_wrap_new_Control(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
33672 PyObject *resultobj;
33673 wxWindow *arg1 = (wxWindow *) 0 ;
248ed943 33674 int arg2 = (int) -1 ;
d55e5bfc
RD
33675 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33676 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33677 wxSize const &arg4_defvalue = wxDefaultSize ;
33678 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33679 long arg5 = (long) 0 ;
33680 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33681 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33682 wxString const &arg7_defvalue = wxPyControlNameStr ;
33683 wxString *arg7 = (wxString *) &arg7_defvalue ;
33684 wxControl *result;
33685 wxPoint temp3 ;
33686 wxSize temp4 ;
33687 bool temp7 = False ;
33688 PyObject * obj0 = 0 ;
33689 PyObject * obj1 = 0 ;
33690 PyObject * obj2 = 0 ;
33691 PyObject * obj3 = 0 ;
33692 PyObject * obj4 = 0 ;
33693 PyObject * obj5 = 0 ;
33694 PyObject * obj6 = 0 ;
33695 char *kwnames[] = {
33696 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33697 };
33698
248ed943 33699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Control",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
d55e5bfc
RD
33700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
33701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
248ed943 33702 if (obj1) {
c32bde28 33703 arg2 = (int)SWIG_As_int(obj1);
248ed943
RD
33704 if (PyErr_Occurred()) SWIG_fail;
33705 }
d55e5bfc
RD
33706 if (obj2) {
33707 {
33708 arg3 = &temp3;
33709 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33710 }
33711 }
33712 if (obj3) {
33713 {
33714 arg4 = &temp4;
33715 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
33716 }
33717 }
33718 if (obj4) {
c32bde28 33719 arg5 = (long)SWIG_As_long(obj4);
d55e5bfc
RD
33720 if (PyErr_Occurred()) SWIG_fail;
33721 }
33722 if (obj5) {
33723 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
33724 SWIG_POINTER_EXCEPTION | 0)) == -1)
33725 SWIG_fail;
33726 if (arg6 == NULL) {
33727 PyErr_SetString(PyExc_TypeError,"null reference");
33728 SWIG_fail;
33729 }
33730 }
33731 if (obj6) {
33732 {
33733 arg7 = wxString_in_helper(obj6);
33734 if (arg7 == NULL) SWIG_fail;
33735 temp7 = True;
33736 }
33737 }
33738 {
0439c23b 33739 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
33740 PyThreadState* __tstate = wxPyBeginAllowThreads();
33741 result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33742
33743 wxPyEndAllowThreads(__tstate);
110da5b0 33744 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 33745 }
b0f7404b 33746 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxControl, 1);
d55e5bfc
RD
33747 {
33748 if (temp7)
33749 delete arg7;
33750 }
33751 return resultobj;
33752 fail:
33753 {
33754 if (temp7)
33755 delete arg7;
33756 }
33757 return NULL;
33758}
33759
33760
c32bde28 33761static PyObject *_wrap_new_PreControl(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
33762 PyObject *resultobj;
33763 wxControl *result;
33764 char *kwnames[] = {
33765 NULL
33766 };
33767
33768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreControl",kwnames)) goto fail;
33769 {
0439c23b 33770 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
33771 PyThreadState* __tstate = wxPyBeginAllowThreads();
33772 result = (wxControl *)new wxControl();
33773
33774 wxPyEndAllowThreads(__tstate);
110da5b0 33775 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 33776 }
b0f7404b 33777 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxControl, 1);
d55e5bfc
RD
33778 return resultobj;
33779 fail:
33780 return NULL;
33781}
33782
33783
c32bde28 33784static PyObject *_wrap_Control_Create(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
33785 PyObject *resultobj;
33786 wxControl *arg1 = (wxControl *) 0 ;
33787 wxWindow *arg2 = (wxWindow *) 0 ;
248ed943 33788 int arg3 = (int) -1 ;
d55e5bfc
RD
33789 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33790 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33791 wxSize const &arg5_defvalue = wxDefaultSize ;
33792 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33793 long arg6 = (long) 0 ;
33794 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33795 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33796 wxString const &arg8_defvalue = wxPyControlNameStr ;
33797 wxString *arg8 = (wxString *) &arg8_defvalue ;
33798 bool result;
33799 wxPoint temp4 ;
33800 wxSize temp5 ;
33801 bool temp8 = False ;
33802 PyObject * obj0 = 0 ;
33803 PyObject * obj1 = 0 ;
33804 PyObject * obj2 = 0 ;
33805 PyObject * obj3 = 0 ;
33806 PyObject * obj4 = 0 ;
33807 PyObject * obj5 = 0 ;
33808 PyObject * obj6 = 0 ;
33809 PyObject * obj7 = 0 ;
33810 char *kwnames[] = {
33811 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33812 };
33813
248ed943 33814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Control_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
d55e5bfc
RD
33815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl,
33816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33817 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
33818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
248ed943 33819 if (obj2) {
c32bde28 33820 arg3 = (int)SWIG_As_int(obj2);
248ed943
RD
33821 if (PyErr_Occurred()) SWIG_fail;
33822 }
d55e5bfc
RD
33823 if (obj3) {
33824 {
33825 arg4 = &temp4;
33826 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
33827 }
33828 }
33829 if (obj4) {
33830 {
33831 arg5 = &temp5;
33832 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
33833 }
33834 }
33835 if (obj5) {
c32bde28 33836 arg6 = (long)SWIG_As_long(obj5);
d55e5bfc
RD
33837 if (PyErr_Occurred()) SWIG_fail;
33838 }
33839 if (obj6) {
33840 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
33841 SWIG_POINTER_EXCEPTION | 0)) == -1)
33842 SWIG_fail;
33843 if (arg7 == NULL) {
33844 PyErr_SetString(PyExc_TypeError,"null reference");
33845 SWIG_fail;
33846 }
33847 }
33848 if (obj7) {
33849 {
33850 arg8 = wxString_in_helper(obj7);
33851 if (arg8 == NULL) SWIG_fail;
33852 temp8 = True;
33853 }
33854 }
33855 {
33856 PyThreadState* __tstate = wxPyBeginAllowThreads();
33857 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
33858
33859 wxPyEndAllowThreads(__tstate);
33860 if (PyErr_Occurred()) SWIG_fail;
33861 }
33862 {
33863 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33864 }
33865 {
33866 if (temp8)
33867 delete arg8;
33868 }
33869 return resultobj;
33870 fail:
33871 {
33872 if (temp8)
33873 delete arg8;
33874 }
33875 return NULL;
33876}
33877
33878
c32bde28 33879static PyObject *_wrap_Control_Command(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
33880 PyObject *resultobj;
33881 wxControl *arg1 = (wxControl *) 0 ;
33882 wxCommandEvent *arg2 = 0 ;
33883 PyObject * obj0 = 0 ;
33884 PyObject * obj1 = 0 ;
33885 char *kwnames[] = {
33886 (char *) "self",(char *) "event", NULL
33887 };
33888
33889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) goto fail;
33890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl,
33891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33892 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCommandEvent,
33893 SWIG_POINTER_EXCEPTION | 0)) == -1)
33894 SWIG_fail;
33895 if (arg2 == NULL) {
33896 PyErr_SetString(PyExc_TypeError,"null reference");
33897 SWIG_fail;
33898 }
33899 {
33900 PyThreadState* __tstate = wxPyBeginAllowThreads();
33901 (arg1)->Command(*arg2);
33902
33903 wxPyEndAllowThreads(__tstate);
33904 if (PyErr_Occurred()) SWIG_fail;
33905 }
33906 Py_INCREF(Py_None); resultobj = Py_None;
33907 return resultobj;
33908 fail:
33909 return NULL;
33910}
33911
33912
c32bde28 33913static PyObject *_wrap_Control_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
33914 PyObject *resultobj;
33915 wxControl *arg1 = (wxControl *) 0 ;
33916 wxString result;
33917 PyObject * obj0 = 0 ;
33918 char *kwnames[] = {
33919 (char *) "self", NULL
33920 };
33921
33922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_GetLabel",kwnames,&obj0)) goto fail;
33923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl,
33924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33925 {
33926 PyThreadState* __tstate = wxPyBeginAllowThreads();
33927 result = (arg1)->GetLabel();
33928
33929 wxPyEndAllowThreads(__tstate);
33930 if (PyErr_Occurred()) SWIG_fail;
33931 }
33932 {
33933#if wxUSE_UNICODE
33934 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33935#else
33936 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33937#endif
33938 }
33939 return resultobj;
33940 fail:
33941 return NULL;
33942}
33943
33944
c32bde28 33945static PyObject *_wrap_Control_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
33946 PyObject *resultobj;
33947 wxControl *arg1 = (wxControl *) 0 ;
33948 wxString *arg2 = 0 ;
33949 bool temp2 = False ;
33950 PyObject * obj0 = 0 ;
33951 PyObject * obj1 = 0 ;
33952 char *kwnames[] = {
33953 (char *) "self",(char *) "label", NULL
33954 };
33955
33956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_SetLabel",kwnames,&obj0,&obj1)) goto fail;
33957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl,
33958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33959 {
33960 arg2 = wxString_in_helper(obj1);
33961 if (arg2 == NULL) SWIG_fail;
33962 temp2 = True;
33963 }
33964 {
33965 PyThreadState* __tstate = wxPyBeginAllowThreads();
33966 (arg1)->SetLabel((wxString const &)*arg2);
33967
33968 wxPyEndAllowThreads(__tstate);
33969 if (PyErr_Occurred()) SWIG_fail;
33970 }
33971 Py_INCREF(Py_None); resultobj = Py_None;
33972 {
33973 if (temp2)
33974 delete arg2;
33975 }
33976 return resultobj;
33977 fail:
33978 {
33979 if (temp2)
33980 delete arg2;
33981 }
33982 return NULL;
33983}
33984
33985
c32bde28 33986static PyObject *_wrap_Control_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
33987 PyObject *resultobj;
33988 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
33989 wxVisualAttributes result;
33990 PyObject * obj0 = 0 ;
33991 char *kwnames[] = {
33992 (char *) "variant", NULL
33993 };
33994
33995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Control_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
33996 if (obj0) {
c32bde28 33997 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
33998 if (PyErr_Occurred()) SWIG_fail;
33999 }
34000 {
a001823c 34001 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
34002 PyThreadState* __tstate = wxPyBeginAllowThreads();
34003 result = wxControl::GetClassDefaultAttributes((wxWindowVariant )arg1);
34004
34005 wxPyEndAllowThreads(__tstate);
110da5b0 34006 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
34007 }
34008 {
34009 wxVisualAttributes * resultptr;
34010 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
34011 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
34012 }
34013 return resultobj;
34014 fail:
34015 return NULL;
34016}
34017
34018
c32bde28 34019static PyObject * Control_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
34020 PyObject *obj;
34021 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
34022 SWIG_TypeClientData(SWIGTYPE_p_wxControl, obj);
34023 Py_INCREF(obj);
34024 return Py_BuildValue((char *)"");
34025}
c32bde28 34026static PyObject *_wrap_ItemContainer_Append(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
34027 PyObject *resultobj;
34028 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34029 wxString *arg2 = 0 ;
34030 PyObject *arg3 = (PyObject *) NULL ;
34031 int result;
34032 bool temp2 = False ;
34033 PyObject * obj0 = 0 ;
34034 PyObject * obj1 = 0 ;
34035 PyObject * obj2 = 0 ;
34036 char *kwnames[] = {
34037 (char *) "self",(char *) "item",(char *) "clientData", NULL
34038 };
34039
34040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) goto fail;
34041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34043 {
34044 arg2 = wxString_in_helper(obj1);
34045 if (arg2 == NULL) SWIG_fail;
34046 temp2 = True;
34047 }
34048 if (obj2) {
34049 arg3 = obj2;
34050 }
34051 {
34052 PyThreadState* __tstate = wxPyBeginAllowThreads();
34053 result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3);
34054
34055 wxPyEndAllowThreads(__tstate);
34056 if (PyErr_Occurred()) SWIG_fail;
34057 }
c32bde28 34058 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
34059 {
34060 if (temp2)
34061 delete arg2;
34062 }
34063 return resultobj;
34064 fail:
34065 {
34066 if (temp2)
34067 delete arg2;
34068 }
34069 return NULL;
34070}
34071
34072
c32bde28 34073static PyObject *_wrap_ItemContainer_AppendItems(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
34074 PyObject *resultobj;
34075 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34076 wxArrayString *arg2 = 0 ;
34077 bool temp2 = False ;
34078 PyObject * obj0 = 0 ;
34079 PyObject * obj1 = 0 ;
34080 char *kwnames[] = {
34081 (char *) "self",(char *) "strings", NULL
34082 };
34083
34084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) goto fail;
34085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34087 {
34088 if (! PySequence_Check(obj1)) {
34089 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
34090 SWIG_fail;
34091 }
34092 arg2 = new wxArrayString;
34093 temp2 = True;
34094 int i, len=PySequence_Length(obj1);
34095 for (i=0; i<len; i++) {
34096 PyObject* item = PySequence_GetItem(obj1, i);
34097#if wxUSE_UNICODE
34098 PyObject* str = PyObject_Unicode(item);
34099#else
34100 PyObject* str = PyObject_Str(item);
34101#endif
34102 if (PyErr_Occurred()) SWIG_fail;
34103 arg2->Add(Py2wxString(str));
34104 Py_DECREF(item);
34105 Py_DECREF(str);
34106 }
34107 }
34108 {
34109 PyThreadState* __tstate = wxPyBeginAllowThreads();
34110 (arg1)->Append((wxArrayString const &)*arg2);
34111
34112 wxPyEndAllowThreads(__tstate);
34113 if (PyErr_Occurred()) SWIG_fail;
34114 }
34115 Py_INCREF(Py_None); resultobj = Py_None;
34116 {
34117 if (temp2) delete arg2;
34118 }
34119 return resultobj;
34120 fail:
34121 {
34122 if (temp2) delete arg2;
34123 }
34124 return NULL;
34125}
34126
34127
c32bde28 34128static PyObject *_wrap_ItemContainer_Insert(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
34129 PyObject *resultobj;
34130 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34131 wxString *arg2 = 0 ;
34132 int arg3 ;
34133 PyObject *arg4 = (PyObject *) NULL ;
34134 int result;
34135 bool temp2 = False ;
34136 PyObject * obj0 = 0 ;
34137 PyObject * obj1 = 0 ;
34138 PyObject * obj2 = 0 ;
34139 PyObject * obj3 = 0 ;
34140 char *kwnames[] = {
34141 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
34142 };
34143
34144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
34145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34147 {
34148 arg2 = wxString_in_helper(obj1);
34149 if (arg2 == NULL) SWIG_fail;
34150 temp2 = True;
34151 }
c32bde28 34152 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
34153 if (PyErr_Occurred()) SWIG_fail;
34154 if (obj3) {
34155 arg4 = obj3;
34156 }
34157 {
34158 PyThreadState* __tstate = wxPyBeginAllowThreads();
34159 result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
34160
34161 wxPyEndAllowThreads(__tstate);
34162 if (PyErr_Occurred()) SWIG_fail;
34163 }
c32bde28 34164 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
34165 {
34166 if (temp2)
34167 delete arg2;
34168 }
34169 return resultobj;
34170 fail:
34171 {
34172 if (temp2)
34173 delete arg2;
34174 }
34175 return NULL;
34176}
34177
34178
c32bde28 34179static PyObject *_wrap_ItemContainer_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
34180 PyObject *resultobj;
34181 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34182 PyObject * obj0 = 0 ;
34183 char *kwnames[] = {
34184 (char *) "self", NULL
34185 };
34186
34187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_Clear",kwnames,&obj0)) goto fail;
34188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34190 {
34191 PyThreadState* __tstate = wxPyBeginAllowThreads();
34192 (arg1)->Clear();
34193
34194 wxPyEndAllowThreads(__tstate);
34195 if (PyErr_Occurred()) SWIG_fail;
34196 }
34197 Py_INCREF(Py_None); resultobj = Py_None;
34198 return resultobj;
34199 fail:
34200 return NULL;
34201}
34202
34203
c32bde28 34204static PyObject *_wrap_ItemContainer_Delete(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
34205 PyObject *resultobj;
34206 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34207 int arg2 ;
34208 PyObject * obj0 = 0 ;
34209 PyObject * obj1 = 0 ;
34210 char *kwnames[] = {
34211 (char *) "self",(char *) "n", NULL
34212 };
34213
34214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Delete",kwnames,&obj0,&obj1)) goto fail;
34215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 34217 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
34218 if (PyErr_Occurred()) SWIG_fail;
34219 {
34220 PyThreadState* __tstate = wxPyBeginAllowThreads();
34221 (arg1)->Delete(arg2);
34222
34223 wxPyEndAllowThreads(__tstate);
34224 if (PyErr_Occurred()) SWIG_fail;
34225 }
34226 Py_INCREF(Py_None); resultobj = Py_None;
34227 return resultobj;
34228 fail:
34229 return NULL;
34230}
34231
34232
c32bde28 34233static PyObject *_wrap_ItemContainer_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
34234 PyObject *resultobj;
34235 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34236 int result;
34237 PyObject * obj0 = 0 ;
34238 char *kwnames[] = {
34239 (char *) "self", NULL
34240 };
34241
34242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetCount",kwnames,&obj0)) goto fail;
34243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34245 {
34246 PyThreadState* __tstate = wxPyBeginAllowThreads();
34247 result = (int)((wxItemContainer const *)arg1)->GetCount();
34248
34249 wxPyEndAllowThreads(__tstate);
34250 if (PyErr_Occurred()) SWIG_fail;
34251 }
c32bde28 34252 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
34253 return resultobj;
34254 fail:
34255 return NULL;
34256}
34257
34258
c32bde28 34259static PyObject *_wrap_ItemContainer_IsEmpty(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
34260 PyObject *resultobj;
34261 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34262 bool result;
34263 PyObject * obj0 = 0 ;
34264 char *kwnames[] = {
34265 (char *) "self", NULL
34266 };
34267
34268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_IsEmpty",kwnames,&obj0)) goto fail;
34269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34271 {
34272 PyThreadState* __tstate = wxPyBeginAllowThreads();
34273 result = (bool)((wxItemContainer const *)arg1)->IsEmpty();
34274
34275 wxPyEndAllowThreads(__tstate);
34276 if (PyErr_Occurred()) SWIG_fail;
34277 }
34278 {
34279 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34280 }
34281 return resultobj;
34282 fail:
34283 return NULL;
34284}
34285
34286
c32bde28 34287static PyObject *_wrap_ItemContainer_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
34288 PyObject *resultobj;
34289 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34290 int arg2 ;
34291 wxString result;
34292 PyObject * obj0 = 0 ;
34293 PyObject * obj1 = 0 ;
34294 char *kwnames[] = {
34295 (char *) "self",(char *) "n", NULL
34296 };
34297
34298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetString",kwnames,&obj0,&obj1)) goto fail;
34299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 34301 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
34302 if (PyErr_Occurred()) SWIG_fail;
34303 {
34304 PyThreadState* __tstate = wxPyBeginAllowThreads();
34305 result = ((wxItemContainer const *)arg1)->GetString(arg2);
34306
34307 wxPyEndAllowThreads(__tstate);
34308 if (PyErr_Occurred()) SWIG_fail;
34309 }
34310 {
34311#if wxUSE_UNICODE
34312 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34313#else
34314 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34315#endif
34316 }
34317 return resultobj;
34318 fail:
34319 return NULL;
34320}
34321
34322
c32bde28 34323static PyObject *_wrap_ItemContainer_GetStrings(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
34324 PyObject *resultobj;
34325 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34326 wxArrayString result;
34327 PyObject * obj0 = 0 ;
34328 char *kwnames[] = {
34329 (char *) "self", NULL
34330 };
34331
34332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStrings",kwnames,&obj0)) goto fail;
34333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34335 {
34336 PyThreadState* __tstate = wxPyBeginAllowThreads();
34337 result = ((wxItemContainer const *)arg1)->GetStrings();
34338
34339 wxPyEndAllowThreads(__tstate);
34340 if (PyErr_Occurred()) SWIG_fail;
34341 }
34342 {
34343 resultobj = wxArrayString2PyList_helper(result);
34344 }
34345 return resultobj;
34346 fail:
34347 return NULL;
34348}
34349
34350
c32bde28 34351static PyObject *_wrap_ItemContainer_SetString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
34352 PyObject *resultobj;
34353 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34354 int arg2 ;
34355 wxString *arg3 = 0 ;
34356 bool temp3 = False ;
34357 PyObject * obj0 = 0 ;
34358 PyObject * obj1 = 0 ;
34359 PyObject * obj2 = 0 ;
34360 char *kwnames[] = {
34361 (char *) "self",(char *) "n",(char *) "s", NULL
34362 };
34363
34364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
34365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 34367 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
34368 if (PyErr_Occurred()) SWIG_fail;
34369 {
34370 arg3 = wxString_in_helper(obj2);
34371 if (arg3 == NULL) SWIG_fail;
34372 temp3 = True;
34373 }
34374 {
34375 PyThreadState* __tstate = wxPyBeginAllowThreads();
34376 (arg1)->SetString(arg2,(wxString const &)*arg3);
34377
34378 wxPyEndAllowThreads(__tstate);
34379 if (PyErr_Occurred()) SWIG_fail;
34380 }
34381 Py_INCREF(Py_None); resultobj = Py_None;
34382 {
34383 if (temp3)
34384 delete arg3;
34385 }
34386 return resultobj;
34387 fail:
34388 {
34389 if (temp3)
34390 delete arg3;
34391 }
34392 return NULL;
34393}
34394
34395
c32bde28 34396static PyObject *_wrap_ItemContainer_FindString(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
34397 PyObject *resultobj;
34398 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34399 wxString *arg2 = 0 ;
34400 int result;
34401 bool temp2 = False ;
34402 PyObject * obj0 = 0 ;
34403 PyObject * obj1 = 0 ;
34404 char *kwnames[] = {
34405 (char *) "self",(char *) "s", NULL
34406 };
34407
34408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) goto fail;
34409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34411 {
34412 arg2 = wxString_in_helper(obj1);
34413 if (arg2 == NULL) SWIG_fail;
34414 temp2 = True;
34415 }
34416 {
34417 PyThreadState* __tstate = wxPyBeginAllowThreads();
34418 result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2);
34419
34420 wxPyEndAllowThreads(__tstate);
34421 if (PyErr_Occurred()) SWIG_fail;
34422 }
c32bde28 34423 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
34424 {
34425 if (temp2)
34426 delete arg2;
34427 }
34428 return resultobj;
34429 fail:
34430 {
34431 if (temp2)
34432 delete arg2;
34433 }
34434 return NULL;
34435}
34436
34437
c32bde28 34438static PyObject *_wrap_ItemContainer_Select(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
34439 PyObject *resultobj;
34440 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34441 int arg2 ;
34442 PyObject * obj0 = 0 ;
34443 PyObject * obj1 = 0 ;
34444 char *kwnames[] = {
34445 (char *) "self",(char *) "n", NULL
34446 };
34447
34448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Select",kwnames,&obj0,&obj1)) goto fail;
34449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 34451 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
34452 if (PyErr_Occurred()) SWIG_fail;
34453 {
34454 PyThreadState* __tstate = wxPyBeginAllowThreads();
34455 (arg1)->Select(arg2);
34456
34457 wxPyEndAllowThreads(__tstate);
34458 if (PyErr_Occurred()) SWIG_fail;
34459 }
34460 Py_INCREF(Py_None); resultobj = Py_None;
34461 return resultobj;
34462 fail:
34463 return NULL;
34464}
34465
34466
c32bde28 34467static PyObject *_wrap_ItemContainer_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
34468 PyObject *resultobj;
34469 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34470 int result;
34471 PyObject * obj0 = 0 ;
34472 char *kwnames[] = {
34473 (char *) "self", NULL
34474 };
34475
34476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetSelection",kwnames,&obj0)) goto fail;
34477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34479 {
34480 PyThreadState* __tstate = wxPyBeginAllowThreads();
34481 result = (int)((wxItemContainer const *)arg1)->GetSelection();
34482
34483 wxPyEndAllowThreads(__tstate);
34484 if (PyErr_Occurred()) SWIG_fail;
34485 }
c32bde28 34486 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
34487 return resultobj;
34488 fail:
34489 return NULL;
34490}
34491
34492
c32bde28 34493static PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
34494 PyObject *resultobj;
34495 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34496 wxString result;
34497 PyObject * obj0 = 0 ;
34498 char *kwnames[] = {
34499 (char *) "self", NULL
34500 };
34501
34502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStringSelection",kwnames,&obj0)) goto fail;
34503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34505 {
34506 PyThreadState* __tstate = wxPyBeginAllowThreads();
34507 result = ((wxItemContainer const *)arg1)->GetStringSelection();
34508
34509 wxPyEndAllowThreads(__tstate);
34510 if (PyErr_Occurred()) SWIG_fail;
34511 }
34512 {
34513#if wxUSE_UNICODE
34514 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34515#else
34516 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34517#endif
34518 }
34519 return resultobj;
34520 fail:
34521 return NULL;
34522}
34523
34524
c32bde28 34525static PyObject *_wrap_ItemContainer_GetClientData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
34526 PyObject *resultobj;
34527 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34528 int arg2 ;
34529 PyObject *result;
34530 PyObject * obj0 = 0 ;
34531 PyObject * obj1 = 0 ;
34532 char *kwnames[] = {
34533 (char *) "self",(char *) "n", NULL
34534 };
34535
34536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetClientData",kwnames,&obj0,&obj1)) goto fail;
34537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 34539 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
34540 if (PyErr_Occurred()) SWIG_fail;
34541 {
34542 PyThreadState* __tstate = wxPyBeginAllowThreads();
34543 result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2);
34544
34545 wxPyEndAllowThreads(__tstate);
34546 if (PyErr_Occurred()) SWIG_fail;
34547 }
34548 resultobj = result;
34549 return resultobj;
34550 fail:
34551 return NULL;
34552}
34553
34554
c32bde28 34555static PyObject *_wrap_ItemContainer_SetClientData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
34556 PyObject *resultobj;
34557 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34558 int arg2 ;
34559 PyObject *arg3 = (PyObject *) 0 ;
34560 PyObject * obj0 = 0 ;
34561 PyObject * obj1 = 0 ;
34562 PyObject * obj2 = 0 ;
34563 char *kwnames[] = {
34564 (char *) "self",(char *) "n",(char *) "clientData", NULL
34565 };
34566
34567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetClientData",kwnames,&obj0,&obj1,&obj2)) goto fail;
34568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 34570 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
34571 if (PyErr_Occurred()) SWIG_fail;
34572 arg3 = obj2;
34573 {
34574 PyThreadState* __tstate = wxPyBeginAllowThreads();
34575 wxItemContainer_SetClientData(arg1,arg2,arg3);
34576
34577 wxPyEndAllowThreads(__tstate);
34578 if (PyErr_Occurred()) SWIG_fail;
34579 }
34580 Py_INCREF(Py_None); resultobj = Py_None;
34581 return resultobj;
34582 fail:
34583 return NULL;
34584}
34585
34586
c32bde28 34587static PyObject * ItemContainer_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
34588 PyObject *obj;
34589 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
34590 SWIG_TypeClientData(SWIGTYPE_p_wxItemContainer, obj);
34591 Py_INCREF(obj);
34592 return Py_BuildValue((char *)"");
34593}
c32bde28 34594static PyObject * ControlWithItems_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
34595 PyObject *obj;
34596 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
34597 SWIG_TypeClientData(SWIGTYPE_p_wxControlWithItems, obj);
34598 Py_INCREF(obj);
34599 return Py_BuildValue((char *)"");
34600}
c32bde28 34601static PyObject *_wrap_new_SizerItem(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
34602 PyObject *resultobj;
34603 wxSizerItem *result;
34604 char *kwnames[] = {
34605 NULL
34606 };
34607
34608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SizerItem",kwnames)) goto fail;
34609 {
34610 PyThreadState* __tstate = wxPyBeginAllowThreads();
34611 result = (wxSizerItem *)new wxSizerItem();
34612
34613 wxPyEndAllowThreads(__tstate);
34614 if (PyErr_Occurred()) SWIG_fail;
34615 }
34616 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1);
34617 return resultobj;
34618 fail:
34619 return NULL;
34620}
34621
34622
c32bde28 34623static PyObject *_wrap_new_SizerItemWindow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 34624 PyObject *resultobj;
248ed943 34625 wxWindow *arg1 = (wxWindow *) 0 ;
d55e5bfc
RD
34626 int arg2 ;
34627 int arg3 ;
34628 int arg4 ;
248ed943 34629 PyObject *arg5 = (PyObject *) NULL ;
d55e5bfc
RD
34630 wxSizerItem *result;
34631 PyObject * obj0 = 0 ;
34632 PyObject * obj1 = 0 ;
34633 PyObject * obj2 = 0 ;
34634 PyObject * obj3 = 0 ;
34635 PyObject * obj4 = 0 ;
d55e5bfc 34636 char *kwnames[] = {
248ed943 34637 (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
d55e5bfc
RD
34638 };
34639
248ed943
RD
34640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
34641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
34642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 34643 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 34644 if (PyErr_Occurred()) SWIG_fail;
c32bde28 34645 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 34646 if (PyErr_Occurred()) SWIG_fail;
c32bde28 34647 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 34648 if (PyErr_Occurred()) SWIG_fail;
248ed943
RD
34649 if (obj4) {
34650 arg5 = obj4;
34651 }
d55e5bfc
RD
34652 {
34653 PyThreadState* __tstate = wxPyBeginAllowThreads();
248ed943 34654 result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5);
d55e5bfc
RD
34655
34656 wxPyEndAllowThreads(__tstate);
34657 if (PyErr_Occurred()) SWIG_fail;
34658 }
34659 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1);
34660 return resultobj;
34661 fail:
34662 return NULL;
34663}
34664
34665
c32bde28 34666static PyObject *_wrap_new_SizerItemSpacer(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc 34667 PyObject *resultobj;
248ed943 34668 int arg1 ;
d55e5bfc
RD
34669 int arg2 ;
34670 int arg3 ;
34671 int arg4 ;
248ed943
RD
34672 int arg5 ;
34673 PyObject *arg6 = (PyObject *) NULL ;
d55e5bfc
RD
34674 wxSizerItem *result;
34675 PyObject * obj0 = 0 ;
34676 PyObject * obj1 = 0 ;
34677 PyObject * obj2 = 0 ;
34678 PyObject * obj3 = 0 ;
34679 PyObject * obj4 = 0 ;
248ed943 34680 PyObject * obj5 = 0 ;
d55e5bfc 34681 char *kwnames[] = {
248ed943 34682 (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
d55e5bfc
RD
34683 };
34684
248ed943 34685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_SizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
c32bde28 34686 arg1 = (int)SWIG_As_int(obj0);
248ed943 34687 if (PyErr_Occurred()) SWIG_fail;
c32bde28 34688 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 34689 if (PyErr_Occurred()) SWIG_fail;
c32bde28 34690 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 34691 if (PyErr_Occurred()) SWIG_fail;
c32bde28 34692 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 34693 if (PyErr_Occurred()) SWIG_fail;
c32bde28 34694 arg5 = (int)SWIG_As_int(obj4);
248ed943
RD
34695 if (PyErr_Occurred()) SWIG_fail;
34696 if (obj5) {
34697 arg6 = obj5;
34698 }
d55e5bfc
RD
34699 {
34700 PyThreadState* __tstate = wxPyBeginAllowThreads();
248ed943 34701 result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6);
d55e5bfc
RD
34702
34703 wxPyEndAllowThreads(__tstate);
34704 if (PyErr_Occurred()) SWIG_fail;
34705 }
34706 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1);
34707 return resultobj;
34708 fail:
34709 return NULL;
34710}
34711
34712
c32bde28 34713static PyObject *_wrap_new_SizerItemSizer(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
34714 PyObject *resultobj;
34715 wxSizer *arg1 = (wxSizer *) 0 ;
34716 int arg2 ;
34717 int arg3 ;
34718 int arg4 ;
248ed943 34719 PyObject *arg5 = (PyObject *) NULL ;
d55e5bfc
RD
34720 wxSizerItem *result;
34721 PyObject * obj0 = 0 ;
34722 PyObject * obj1 = 0 ;
34723 PyObject * obj2 = 0 ;
34724 PyObject * obj3 = 0 ;
34725 PyObject * obj4 = 0 ;
34726 char *kwnames[] = {
34727 (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
34728 };
34729
248ed943 34730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
34731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
34732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 34733 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 34734 if (PyErr_Occurred()) SWIG_fail;
c32bde28 34735 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 34736 if (PyErr_Occurred()) SWIG_fail;
c32bde28 34737 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 34738 if (PyErr_Occurred()) SWIG_fail;
248ed943
RD
34739 if (obj4) {
34740 arg5 = obj4;
34741 }
d55e5bfc
RD
34742 {
34743 PyThreadState* __tstate = wxPyBeginAllowThreads();
248ed943 34744 result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5);
d55e5bfc
RD
34745
34746 wxPyEndAllowThreads(__tstate);
34747 if (PyErr_Occurred()) SWIG_fail;
34748 }
34749 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1);
34750 return resultobj;
34751 fail:
34752 return NULL;
34753}
34754
34755
c32bde28 34756static PyObject *_wrap_SizerItem_DeleteWindows(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
34757 PyObject *resultobj;
34758 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34759 PyObject * obj0 = 0 ;
34760 char *kwnames[] = {
34761 (char *) "self", NULL
34762 };
34763
34764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DeleteWindows",kwnames,&obj0)) goto fail;
34765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34767 {
34768 PyThreadState* __tstate = wxPyBeginAllowThreads();
34769 (arg1)->DeleteWindows();
34770
34771 wxPyEndAllowThreads(__tstate);
34772 if (PyErr_Occurred()) SWIG_fail;
34773 }
34774 Py_INCREF(Py_None); resultobj = Py_None;
34775 return resultobj;
34776 fail:
34777 return NULL;
34778}
34779
34780
c32bde28 34781static PyObject *_wrap_SizerItem_DetachSizer(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
34782 PyObject *resultobj;
34783 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34784 PyObject * obj0 = 0 ;
34785 char *kwnames[] = {
34786 (char *) "self", NULL
34787 };
34788
34789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DetachSizer",kwnames,&obj0)) goto fail;
34790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34792 {
34793 PyThreadState* __tstate = wxPyBeginAllowThreads();
34794 (arg1)->DetachSizer();
34795
34796 wxPyEndAllowThreads(__tstate);
34797 if (PyErr_Occurred()) SWIG_fail;
34798 }
34799 Py_INCREF(Py_None); resultobj = Py_None;
34800 return resultobj;
34801 fail:
34802 return NULL;
34803}
34804
34805
c32bde28 34806static PyObject *_wrap_SizerItem_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
34807 PyObject *resultobj;
34808 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34809 wxSize result;
34810 PyObject * obj0 = 0 ;
34811 char *kwnames[] = {
34812 (char *) "self", NULL
34813 };
34814
34815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSize",kwnames,&obj0)) goto fail;
34816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34818 {
34819 PyThreadState* __tstate = wxPyBeginAllowThreads();
34820 result = (arg1)->GetSize();
34821
34822 wxPyEndAllowThreads(__tstate);
34823 if (PyErr_Occurred()) SWIG_fail;
34824 }
34825 {
34826 wxSize * resultptr;
34827 resultptr = new wxSize((wxSize &) result);
34828 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
34829 }
34830 return resultobj;
34831 fail:
34832 return NULL;
34833}
34834
34835
c32bde28 34836static PyObject *_wrap_SizerItem_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
34837 PyObject *resultobj;
34838 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34839 wxSize result;
34840 PyObject * obj0 = 0 ;
34841 char *kwnames[] = {
34842 (char *) "self", NULL
34843 };
34844
34845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_CalcMin",kwnames,&obj0)) goto fail;
34846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34848 {
34849 PyThreadState* __tstate = wxPyBeginAllowThreads();
34850 result = (arg1)->CalcMin();
34851
34852 wxPyEndAllowThreads(__tstate);
34853 if (PyErr_Occurred()) SWIG_fail;
34854 }
34855 {
34856 wxSize * resultptr;
34857 resultptr = new wxSize((wxSize &) result);
34858 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
34859 }
34860 return resultobj;
34861 fail:
34862 return NULL;
34863}
34864
34865
c32bde28 34866static PyObject *_wrap_SizerItem_SetDimension(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
34867 PyObject *resultobj;
34868 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34869 wxPoint arg2 ;
34870 wxSize arg3 ;
34871 wxPoint *argp2 ;
34872 wxSize *argp3 ;
34873 PyObject * obj0 = 0 ;
34874 PyObject * obj1 = 0 ;
34875 PyObject * obj2 = 0 ;
34876 char *kwnames[] = {
34877 (char *) "self",(char *) "pos",(char *) "size", NULL
34878 };
34879
34880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail;
34881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34883 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint,
34884 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
34885 arg2 = *argp2;
34886 if ((SWIG_ConvertPtr(obj2,(void **)(&argp3),SWIGTYPE_p_wxSize,
34887 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
34888 arg3 = *argp3;
34889 {
34890 PyThreadState* __tstate = wxPyBeginAllowThreads();
34891 (arg1)->SetDimension(arg2,arg3);
34892
34893 wxPyEndAllowThreads(__tstate);
34894 if (PyErr_Occurred()) SWIG_fail;
34895 }
34896 Py_INCREF(Py_None); resultobj = Py_None;
34897 return resultobj;
34898 fail:
34899 return NULL;
34900}
34901
34902
c32bde28 34903static PyObject *_wrap_SizerItem_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
34904 PyObject *resultobj;
34905 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34906 wxSize result;
34907 PyObject * obj0 = 0 ;
34908 char *kwnames[] = {
34909 (char *) "self", NULL
34910 };
34911
34912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSize",kwnames,&obj0)) goto fail;
34913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34915 {
34916 PyThreadState* __tstate = wxPyBeginAllowThreads();
34917 result = (arg1)->GetMinSize();
34918
34919 wxPyEndAllowThreads(__tstate);
34920 if (PyErr_Occurred()) SWIG_fail;
34921 }
34922 {
34923 wxSize * resultptr;
34924 resultptr = new wxSize((wxSize &) result);
34925 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
34926 }
34927 return resultobj;
34928 fail:
34929 return NULL;
34930}
34931
34932
c32bde28 34933static PyObject *_wrap_SizerItem_GetMinSizeWithBorder(PyObject *, PyObject *args, PyObject *kwargs) {
a001823c
RD
34934 PyObject *resultobj;
34935 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34936 wxSize result;
34937 PyObject * obj0 = 0 ;
34938 char *kwnames[] = {
34939 (char *) "self", NULL
34940 };
34941
34942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSizeWithBorder",kwnames,&obj0)) goto fail;
34943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34945 {
34946 PyThreadState* __tstate = wxPyBeginAllowThreads();
34947 result = ((wxSizerItem const *)arg1)->GetMinSizeWithBorder();
34948
34949 wxPyEndAllowThreads(__tstate);
34950 if (PyErr_Occurred()) SWIG_fail;
34951 }
34952 {
34953 wxSize * resultptr;
34954 resultptr = new wxSize((wxSize &) result);
34955 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
34956 }
34957 return resultobj;
34958 fail:
34959 return NULL;
34960}
34961
34962
c32bde28 34963static PyObject *_wrap_SizerItem_SetInitSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
34964 PyObject *resultobj;
34965 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34966 int arg2 ;
34967 int arg3 ;
34968 PyObject * obj0 = 0 ;
34969 PyObject * obj1 = 0 ;
34970 PyObject * obj2 = 0 ;
34971 char *kwnames[] = {
34972 (char *) "self",(char *) "x",(char *) "y", NULL
34973 };
34974
34975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetInitSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
34976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 34978 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 34979 if (PyErr_Occurred()) SWIG_fail;
c32bde28 34980 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
34981 if (PyErr_Occurred()) SWIG_fail;
34982 {
34983 PyThreadState* __tstate = wxPyBeginAllowThreads();
34984 (arg1)->SetInitSize(arg2,arg3);
34985
34986 wxPyEndAllowThreads(__tstate);
34987 if (PyErr_Occurred()) SWIG_fail;
34988 }
34989 Py_INCREF(Py_None); resultobj = Py_None;
34990 return resultobj;
34991 fail:
34992 return NULL;
34993}
34994
34995
c32bde28 34996static PyObject *_wrap_SizerItem_SetRatioWH(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
34997 PyObject *resultobj;
34998 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34999 int arg2 ;
35000 int arg3 ;
35001 PyObject * obj0 = 0 ;
35002 PyObject * obj1 = 0 ;
35003 PyObject * obj2 = 0 ;
35004 char *kwnames[] = {
35005 (char *) "self",(char *) "width",(char *) "height", NULL
35006 };
35007
35008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetRatioWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
35009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 35011 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 35012 if (PyErr_Occurred()) SWIG_fail;
c32bde28 35013 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
35014 if (PyErr_Occurred()) SWIG_fail;
35015 {
35016 PyThreadState* __tstate = wxPyBeginAllowThreads();
35017 (arg1)->SetRatio(arg2,arg3);
35018
35019 wxPyEndAllowThreads(__tstate);
35020 if (PyErr_Occurred()) SWIG_fail;
35021 }
35022 Py_INCREF(Py_None); resultobj = Py_None;
35023 return resultobj;
35024 fail:
35025 return NULL;
35026}
35027
35028
c32bde28 35029static PyObject *_wrap_SizerItem_SetRatioSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
35030 PyObject *resultobj;
35031 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35032 wxSize arg2 ;
35033 wxSize *argp2 ;
35034 PyObject * obj0 = 0 ;
35035 PyObject * obj1 = 0 ;
35036 char *kwnames[] = {
35037 (char *) "self",(char *) "size", NULL
35038 };
35039
35040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) goto fail;
35041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35043 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize,
35044 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
35045 arg2 = *argp2;
35046 {
35047 PyThreadState* __tstate = wxPyBeginAllowThreads();
35048 (arg1)->SetRatio(arg2);
35049
35050 wxPyEndAllowThreads(__tstate);
35051 if (PyErr_Occurred()) SWIG_fail;
35052 }
35053 Py_INCREF(Py_None); resultobj = Py_None;
35054 return resultobj;
35055 fail:
35056 return NULL;
35057}
35058
35059
c32bde28 35060static PyObject *_wrap_SizerItem_SetRatio(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
35061 PyObject *resultobj;
35062 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35063 float arg2 ;
35064 PyObject * obj0 = 0 ;
35065 PyObject * obj1 = 0 ;
35066 char *kwnames[] = {
35067 (char *) "self",(char *) "ratio", NULL
35068 };
35069
35070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatio",kwnames,&obj0,&obj1)) goto fail;
35071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 35073 arg2 = (float)SWIG_As_float(obj1);
d55e5bfc
RD
35074 if (PyErr_Occurred()) SWIG_fail;
35075 {
35076 PyThreadState* __tstate = wxPyBeginAllowThreads();
35077 (arg1)->SetRatio(arg2);
35078
35079 wxPyEndAllowThreads(__tstate);
35080 if (PyErr_Occurred()) SWIG_fail;
35081 }
35082 Py_INCREF(Py_None); resultobj = Py_None;
35083 return resultobj;
35084 fail:
35085 return NULL;
35086}
35087
35088
c32bde28 35089static PyObject *_wrap_SizerItem_GetRatio(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
35090 PyObject *resultobj;
35091 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35092 float result;
35093 PyObject * obj0 = 0 ;
35094 char *kwnames[] = {
35095 (char *) "self", NULL
35096 };
35097
35098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRatio",kwnames,&obj0)) goto fail;
35099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35101 {
35102 PyThreadState* __tstate = wxPyBeginAllowThreads();
35103 result = (float)(arg1)->GetRatio();
35104
35105 wxPyEndAllowThreads(__tstate);
35106 if (PyErr_Occurred()) SWIG_fail;
35107 }
c32bde28 35108 resultobj = SWIG_From_float((float)result);
d55e5bfc
RD
35109 return resultobj;
35110 fail:
35111 return NULL;
35112}
35113
35114
c32bde28 35115static PyObject *_wrap_SizerItem_IsWindow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
35116 PyObject *resultobj;
35117 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35118 bool result;
35119 PyObject * obj0 = 0 ;
35120 char *kwnames[] = {
35121 (char *) "self", NULL
35122 };
35123
35124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsWindow",kwnames,&obj0)) goto fail;
35125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35127 {
35128 PyThreadState* __tstate = wxPyBeginAllowThreads();
35129 result = (bool)(arg1)->IsWindow();
35130
35131 wxPyEndAllowThreads(__tstate);
35132 if (PyErr_Occurred()) SWIG_fail;
35133 }
35134 {
35135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35136 }
35137 return resultobj;
35138 fail:
35139 return NULL;
35140}
35141
35142
c32bde28 35143static PyObject *_wrap_SizerItem_IsSizer(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
35144 PyObject *resultobj;
35145 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35146 bool result;
35147 PyObject * obj0 = 0 ;
35148 char *kwnames[] = {
35149 (char *) "self", NULL
35150 };
35151
35152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSizer",kwnames,&obj0)) goto fail;
35153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35155 {
35156 PyThreadState* __tstate = wxPyBeginAllowThreads();
35157 result = (bool)(arg1)->IsSizer();
35158
35159 wxPyEndAllowThreads(__tstate);
35160 if (PyErr_Occurred()) SWIG_fail;
35161 }
35162 {
35163 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35164 }
35165 return resultobj;
35166 fail:
35167 return NULL;
35168}
35169
35170
c32bde28 35171static PyObject *_wrap_SizerItem_IsSpacer(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
35172 PyObject *resultobj;
35173 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35174 bool result;
35175 PyObject * obj0 = 0 ;
35176 char *kwnames[] = {
35177 (char *) "self", NULL
35178 };
35179
35180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSpacer",kwnames,&obj0)) goto fail;
35181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35183 {
35184 PyThreadState* __tstate = wxPyBeginAllowThreads();
35185 result = (bool)(arg1)->IsSpacer();
35186
35187 wxPyEndAllowThreads(__tstate);
35188 if (PyErr_Occurred()) SWIG_fail;
35189 }
35190 {
35191 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35192 }
35193 return resultobj;
35194 fail:
35195 return NULL;
35196}
35197
35198
c32bde28 35199static PyObject *_wrap_SizerItem_SetProportion(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
35200 PyObject *resultobj;
35201 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35202 int arg2 ;
35203 PyObject * obj0 = 0 ;
35204 PyObject * obj1 = 0 ;
35205 char *kwnames[] = {
35206 (char *) "self",(char *) "proportion", NULL
35207 };
35208
35209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetProportion",kwnames,&obj0,&obj1)) goto fail;
35210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 35212 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
35213 if (PyErr_Occurred()) SWIG_fail;
35214 {
35215 PyThreadState* __tstate = wxPyBeginAllowThreads();
35216 (arg1)->SetProportion(arg2);
35217
35218 wxPyEndAllowThreads(__tstate);
35219 if (PyErr_Occurred()) SWIG_fail;
35220 }
35221 Py_INCREF(Py_None); resultobj = Py_None;
35222 return resultobj;
35223 fail:
35224 return NULL;
35225}
35226
35227
c32bde28 35228static PyObject *_wrap_SizerItem_GetProportion(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
35229 PyObject *resultobj;
35230 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35231 int result;
35232 PyObject * obj0 = 0 ;
35233 char *kwnames[] = {
35234 (char *) "self", NULL
35235 };
35236
35237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetProportion",kwnames,&obj0)) goto fail;
35238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35240 {
35241 PyThreadState* __tstate = wxPyBeginAllowThreads();
35242 result = (int)(arg1)->GetProportion();
35243
35244 wxPyEndAllowThreads(__tstate);
35245 if (PyErr_Occurred()) SWIG_fail;
35246 }
c32bde28 35247 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
35248 return resultobj;
35249 fail:
35250 return NULL;
35251}
35252
35253
c32bde28 35254static PyObject *_wrap_SizerItem_SetFlag(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
35255 PyObject *resultobj;
35256 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35257 int arg2 ;
35258 PyObject * obj0 = 0 ;
35259 PyObject * obj1 = 0 ;
35260 char *kwnames[] = {
35261 (char *) "self",(char *) "flag", NULL
35262 };
35263
35264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetFlag",kwnames,&obj0,&obj1)) goto fail;
35265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 35267 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
35268 if (PyErr_Occurred()) SWIG_fail;
35269 {
35270 PyThreadState* __tstate = wxPyBeginAllowThreads();
35271 (arg1)->SetFlag(arg2);
35272
35273 wxPyEndAllowThreads(__tstate);
35274 if (PyErr_Occurred()) SWIG_fail;
35275 }
35276 Py_INCREF(Py_None); resultobj = Py_None;
35277 return resultobj;
35278 fail:
35279 return NULL;
35280}
35281
35282
c32bde28 35283static PyObject *_wrap_SizerItem_GetFlag(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
35284 PyObject *resultobj;
35285 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35286 int result;
35287 PyObject * obj0 = 0 ;
35288 char *kwnames[] = {
35289 (char *) "self", NULL
35290 };
35291
35292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetFlag",kwnames,&obj0)) goto fail;
35293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35295 {
35296 PyThreadState* __tstate = wxPyBeginAllowThreads();
35297 result = (int)(arg1)->GetFlag();
35298
35299 wxPyEndAllowThreads(__tstate);
35300 if (PyErr_Occurred()) SWIG_fail;
35301 }
c32bde28 35302 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
35303 return resultobj;
35304 fail:
35305 return NULL;
35306}
35307
35308
c32bde28 35309static PyObject *_wrap_SizerItem_SetBorder(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
35310 PyObject *resultobj;
35311 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35312 int arg2 ;
35313 PyObject * obj0 = 0 ;
35314 PyObject * obj1 = 0 ;
35315 char *kwnames[] = {
35316 (char *) "self",(char *) "border", NULL
35317 };
35318
35319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetBorder",kwnames,&obj0,&obj1)) goto fail;
35320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 35322 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
35323 if (PyErr_Occurred()) SWIG_fail;
35324 {
35325 PyThreadState* __tstate = wxPyBeginAllowThreads();
35326 (arg1)->SetBorder(arg2);
35327
35328 wxPyEndAllowThreads(__tstate);
35329 if (PyErr_Occurred()) SWIG_fail;
35330 }
35331 Py_INCREF(Py_None); resultobj = Py_None;
35332 return resultobj;
35333 fail:
35334 return NULL;
35335}
35336
35337
c32bde28 35338static PyObject *_wrap_SizerItem_GetBorder(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
35339 PyObject *resultobj;
35340 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35341 int result;
35342 PyObject * obj0 = 0 ;
35343 char *kwnames[] = {
35344 (char *) "self", NULL
35345 };
35346
35347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetBorder",kwnames,&obj0)) goto fail;
35348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35350 {
35351 PyThreadState* __tstate = wxPyBeginAllowThreads();
35352 result = (int)(arg1)->GetBorder();
35353
35354 wxPyEndAllowThreads(__tstate);
35355 if (PyErr_Occurred()) SWIG_fail;
35356 }
c32bde28 35357 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
35358 return resultobj;
35359 fail:
35360 return NULL;
35361}
35362
35363
c32bde28 35364static PyObject *_wrap_SizerItem_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
35365 PyObject *resultobj;
35366 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35367 wxWindow *result;
35368 PyObject * obj0 = 0 ;
35369 char *kwnames[] = {
35370 (char *) "self", NULL
35371 };
35372
35373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetWindow",kwnames,&obj0)) goto fail;
35374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35376 {
35377 PyThreadState* __tstate = wxPyBeginAllowThreads();
35378 result = (wxWindow *)(arg1)->GetWindow();
35379
35380 wxPyEndAllowThreads(__tstate);
35381 if (PyErr_Occurred()) SWIG_fail;
35382 }
35383 {
412d302d 35384 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
35385 }
35386 return resultobj;
35387 fail:
35388 return NULL;
35389}
35390
35391
c32bde28 35392static PyObject *_wrap_SizerItem_SetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
35393 PyObject *resultobj;
35394 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35395 wxWindow *arg2 = (wxWindow *) 0 ;
35396 PyObject * obj0 = 0 ;
35397 PyObject * obj1 = 0 ;
35398 char *kwnames[] = {
35399 (char *) "self",(char *) "window", NULL
35400 };
35401
35402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) goto fail;
35403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35405 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
35406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35407 {
35408 PyThreadState* __tstate = wxPyBeginAllowThreads();
35409 (arg1)->SetWindow(arg2);
35410
35411 wxPyEndAllowThreads(__tstate);
35412 if (PyErr_Occurred()) SWIG_fail;
35413 }
35414 Py_INCREF(Py_None); resultobj = Py_None;
35415 return resultobj;
35416 fail:
35417 return NULL;
35418}
35419
35420
c32bde28 35421static PyObject *_wrap_SizerItem_GetSizer(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
35422 PyObject *resultobj;
35423 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35424 wxSizer *result;
35425 PyObject * obj0 = 0 ;
35426 char *kwnames[] = {
35427 (char *) "self", NULL
35428 };
35429
35430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSizer",kwnames,&obj0)) goto fail;
35431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35433 {
35434 PyThreadState* __tstate = wxPyBeginAllowThreads();
35435 result = (wxSizer *)(arg1)->GetSizer();
35436
35437 wxPyEndAllowThreads(__tstate);
35438 if (PyErr_Occurred()) SWIG_fail;
35439 }
35440 {
412d302d 35441 resultobj = wxPyMake_wxSizer(result, 0);
d55e5bfc
RD
35442 }
35443 return resultobj;
35444 fail:
35445 return NULL;
35446}
35447
35448
c32bde28 35449static PyObject *_wrap_SizerItem_SetSizer(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
35450 PyObject *resultobj;
35451 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35452 wxSizer *arg2 = (wxSizer *) 0 ;
35453 PyObject * obj0 = 0 ;
35454 PyObject * obj1 = 0 ;
35455 char *kwnames[] = {
35456 (char *) "self",(char *) "sizer", NULL
35457 };
35458
35459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) goto fail;
35460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35462 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
35463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35464 {
35465 PyThreadState* __tstate = wxPyBeginAllowThreads();
35466 (arg1)->SetSizer(arg2);
35467
35468 wxPyEndAllowThreads(__tstate);
35469 if (PyErr_Occurred()) SWIG_fail;
35470 }
35471 Py_INCREF(Py_None); resultobj = Py_None;
35472 return resultobj;
35473 fail:
35474 return NULL;
35475}
35476
35477
c32bde28 35478static PyObject *_wrap_SizerItem_GetSpacer(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
35479 PyObject *resultobj;
35480 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35481 wxSize *result;
35482 PyObject * obj0 = 0 ;
35483 char *kwnames[] = {
35484 (char *) "self", NULL
35485 };
35486
35487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSpacer",kwnames,&obj0)) goto fail;
35488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35490 {
35491 PyThreadState* __tstate = wxPyBeginAllowThreads();
35492 {
35493 wxSize const &_result_ref = (arg1)->GetSpacer();
35494 result = (wxSize *) &_result_ref;
35495 }
35496
35497 wxPyEndAllowThreads(__tstate);
35498 if (PyErr_Occurred()) SWIG_fail;
35499 }
35500 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0);
35501 return resultobj;
35502 fail:
35503 return NULL;
35504}
35505
35506
c32bde28 35507static PyObject *_wrap_SizerItem_SetSpacer(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
35508 PyObject *resultobj;
35509 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35510 wxSize *arg2 = 0 ;
35511 wxSize temp2 ;
35512 PyObject * obj0 = 0 ;
35513 PyObject * obj1 = 0 ;
35514 char *kwnames[] = {
35515 (char *) "self",(char *) "size", NULL
35516 };
35517
35518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) goto fail;
35519 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35521 {
35522 arg2 = &temp2;
35523 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
35524 }
35525 {
35526 PyThreadState* __tstate = wxPyBeginAllowThreads();
35527 (arg1)->SetSpacer((wxSize const &)*arg2);
35528
35529 wxPyEndAllowThreads(__tstate);
35530 if (PyErr_Occurred()) SWIG_fail;
35531 }
35532 Py_INCREF(Py_None); resultobj = Py_None;
35533 return resultobj;
35534 fail:
35535 return NULL;
35536}
35537
35538
c32bde28 35539static PyObject *_wrap_SizerItem_Show(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
35540 PyObject *resultobj;
35541 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35542 bool arg2 ;
35543 PyObject * obj0 = 0 ;
35544 PyObject * obj1 = 0 ;
35545 char *kwnames[] = {
35546 (char *) "self",(char *) "show", NULL
35547 };
35548
35549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) goto fail;
35550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 35552 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
35553 if (PyErr_Occurred()) SWIG_fail;
35554 {
35555 PyThreadState* __tstate = wxPyBeginAllowThreads();
35556 (arg1)->Show(arg2);
35557
35558 wxPyEndAllowThreads(__tstate);
35559 if (PyErr_Occurred()) SWIG_fail;
35560 }
35561 Py_INCREF(Py_None); resultobj = Py_None;
35562 return resultobj;
35563 fail:
35564 return NULL;
35565}
35566
35567
c32bde28 35568static PyObject *_wrap_SizerItem_IsShown(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
35569 PyObject *resultobj;
35570 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35571 bool result;
35572 PyObject * obj0 = 0 ;
35573 char *kwnames[] = {
35574 (char *) "self", NULL
35575 };
35576
35577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsShown",kwnames,&obj0)) goto fail;
35578 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35580 {
35581 PyThreadState* __tstate = wxPyBeginAllowThreads();
35582 result = (bool)(arg1)->IsShown();
35583
35584 wxPyEndAllowThreads(__tstate);
35585 if (PyErr_Occurred()) SWIG_fail;
35586 }
35587 {
35588 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35589 }
35590 return resultobj;
35591 fail:
35592 return NULL;
35593}
35594
35595
c32bde28 35596static PyObject *_wrap_SizerItem_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
35597 PyObject *resultobj;
35598 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35599 wxPoint result;
35600 PyObject * obj0 = 0 ;
35601 char *kwnames[] = {
35602 (char *) "self", NULL
35603 };
35604
35605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetPosition",kwnames,&obj0)) goto fail;
35606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35608 {
35609 PyThreadState* __tstate = wxPyBeginAllowThreads();
35610 result = (arg1)->GetPosition();
35611
35612 wxPyEndAllowThreads(__tstate);
35613 if (PyErr_Occurred()) SWIG_fail;
35614 }
35615 {
35616 wxPoint * resultptr;
35617 resultptr = new wxPoint((wxPoint &) result);
35618 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
35619 }
35620 return resultobj;
35621 fail:
35622 return NULL;
35623}
35624
35625
c32bde28 35626static PyObject *_wrap_SizerItem_GetUserData(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
35627 PyObject *resultobj;
35628 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35629 PyObject *result;
35630 PyObject * obj0 = 0 ;
35631 char *kwnames[] = {
35632 (char *) "self", NULL
35633 };
35634
35635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetUserData",kwnames,&obj0)) goto fail;
35636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35638 {
35639 PyThreadState* __tstate = wxPyBeginAllowThreads();
35640 result = (PyObject *)wxSizerItem_GetUserData(arg1);
35641
35642 wxPyEndAllowThreads(__tstate);
35643 if (PyErr_Occurred()) SWIG_fail;
35644 }
35645 resultobj = result;
35646 return resultobj;
35647 fail:
35648 return NULL;
35649}
35650
35651
c32bde28 35652static PyObject * SizerItem_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
35653 PyObject *obj;
35654 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
35655 SWIG_TypeClientData(SWIGTYPE_p_wxSizerItem, obj);
35656 Py_INCREF(obj);
35657 return Py_BuildValue((char *)"");
35658}
c32bde28 35659static PyObject *_wrap_Sizer__setOORInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
35660 PyObject *resultobj;
35661 wxSizer *arg1 = (wxSizer *) 0 ;
35662 PyObject *arg2 = (PyObject *) 0 ;
35663 PyObject * obj0 = 0 ;
35664 PyObject * obj1 = 0 ;
35665 char *kwnames[] = {
35666 (char *) "self",(char *) "_self", NULL
35667 };
35668
35669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
35670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35672 arg2 = obj1;
35673 {
35674 PyThreadState* __tstate = wxPyBeginAllowThreads();
35675 wxSizer__setOORInfo(arg1,arg2);
35676
35677 wxPyEndAllowThreads(__tstate);
35678 if (PyErr_Occurred()) SWIG_fail;
35679 }
35680 Py_INCREF(Py_None); resultobj = Py_None;
35681 return resultobj;
35682 fail:
35683 return NULL;
35684}
35685
35686
c32bde28 35687static PyObject *_wrap_Sizer_Add(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
35688 PyObject *resultobj;
35689 wxSizer *arg1 = (wxSizer *) 0 ;
35690 PyObject *arg2 = (PyObject *) 0 ;
35691 int arg3 = (int) 0 ;
35692 int arg4 = (int) 0 ;
35693 int arg5 = (int) 0 ;
35694 PyObject *arg6 = (PyObject *) NULL ;
35695 PyObject * obj0 = 0 ;
35696 PyObject * obj1 = 0 ;
35697 PyObject * obj2 = 0 ;
35698 PyObject * obj3 = 0 ;
35699 PyObject * obj4 = 0 ;
35700 PyObject * obj5 = 0 ;
35701 char *kwnames[] = {
35702 (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
35703 };
35704
35705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
35706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35708 arg2 = obj1;
35709 if (obj2) {
c32bde28 35710 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
35711 if (PyErr_Occurred()) SWIG_fail;
35712 }
35713 if (obj3) {
c32bde28 35714 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
35715 if (PyErr_Occurred()) SWIG_fail;
35716 }
35717 if (obj4) {
c32bde28 35718 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
35719 if (PyErr_Occurred()) SWIG_fail;
35720 }
35721 if (obj5) {
35722 arg6 = obj5;
35723 }
35724 {
35725 PyThreadState* __tstate = wxPyBeginAllowThreads();
35726 wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6);
35727
35728 wxPyEndAllowThreads(__tstate);
35729 if (PyErr_Occurred()) SWIG_fail;
35730 }
35731 Py_INCREF(Py_None); resultobj = Py_None;
35732 return resultobj;
35733 fail:
35734 return NULL;
35735}
35736
35737
c32bde28 35738static PyObject *_wrap_Sizer_Insert(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
35739 PyObject *resultobj;
35740 wxSizer *arg1 = (wxSizer *) 0 ;
35741 int arg2 ;
35742 PyObject *arg3 = (PyObject *) 0 ;
35743 int arg4 = (int) 0 ;
35744 int arg5 = (int) 0 ;
35745 int arg6 = (int) 0 ;
35746 PyObject *arg7 = (PyObject *) NULL ;
35747 PyObject * obj0 = 0 ;
35748 PyObject * obj1 = 0 ;
35749 PyObject * obj2 = 0 ;
35750 PyObject * obj3 = 0 ;
35751 PyObject * obj4 = 0 ;
35752 PyObject * obj5 = 0 ;
35753 PyObject * obj6 = 0 ;
35754 char *kwnames[] = {
35755 (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
35756 };
35757
35758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Sizer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
35759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 35761 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
35762 if (PyErr_Occurred()) SWIG_fail;
35763 arg3 = obj2;
35764 if (obj3) {
c32bde28 35765 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
35766 if (PyErr_Occurred()) SWIG_fail;
35767 }
35768 if (obj4) {
c32bde28 35769 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
35770 if (PyErr_Occurred()) SWIG_fail;
35771 }
35772 if (obj5) {
c32bde28 35773 arg6 = (int)SWIG_As_int(obj5);
d55e5bfc
RD
35774 if (PyErr_Occurred()) SWIG_fail;
35775 }
35776 if (obj6) {
35777 arg7 = obj6;
35778 }
35779 {
35780 PyThreadState* __tstate = wxPyBeginAllowThreads();
35781 wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
35782
35783 wxPyEndAllowThreads(__tstate);
35784 if (PyErr_Occurred()) SWIG_fail;
35785 }
35786 Py_INCREF(Py_None); resultobj = Py_None;
35787 return resultobj;
35788 fail:
35789 return NULL;
35790}
35791
35792
c32bde28 35793static PyObject *_wrap_Sizer_Prepend(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
35794 PyObject *resultobj;
35795 wxSizer *arg1 = (wxSizer *) 0 ;
35796 PyObject *arg2 = (PyObject *) 0 ;
35797 int arg3 = (int) 0 ;
35798 int arg4 = (int) 0 ;
35799 int arg5 = (int) 0 ;
35800 PyObject *arg6 = (PyObject *) NULL ;
35801 PyObject * obj0 = 0 ;
35802 PyObject * obj1 = 0 ;
35803 PyObject * obj2 = 0 ;
35804 PyObject * obj3 = 0 ;
35805 PyObject * obj4 = 0 ;
35806 PyObject * obj5 = 0 ;
35807 char *kwnames[] = {
35808 (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
35809 };
35810
35811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
35812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35814 arg2 = obj1;
35815 if (obj2) {
c32bde28 35816 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
35817 if (PyErr_Occurred()) SWIG_fail;
35818 }
35819 if (obj3) {
c32bde28 35820 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
35821 if (PyErr_Occurred()) SWIG_fail;
35822 }
35823 if (obj4) {
c32bde28 35824 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
35825 if (PyErr_Occurred()) SWIG_fail;
35826 }
35827 if (obj5) {
35828 arg6 = obj5;
35829 }
35830 {
35831 PyThreadState* __tstate = wxPyBeginAllowThreads();
35832 wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6);
35833
35834 wxPyEndAllowThreads(__tstate);
35835 if (PyErr_Occurred()) SWIG_fail;
35836 }
35837 Py_INCREF(Py_None); resultobj = Py_None;
35838 return resultobj;
35839 fail:
35840 return NULL;
35841}
35842
35843
c32bde28 35844static PyObject *_wrap_Sizer_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
35845 PyObject *resultobj;
35846 wxSizer *arg1 = (wxSizer *) 0 ;
35847 PyObject *arg2 = (PyObject *) 0 ;
35848 bool result;
35849 PyObject * obj0 = 0 ;
35850 PyObject * obj1 = 0 ;
35851 char *kwnames[] = {
35852 (char *) "self",(char *) "item", NULL
35853 };
35854
35855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) goto fail;
35856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35858 arg2 = obj1;
35859 {
35860 PyThreadState* __tstate = wxPyBeginAllowThreads();
35861 result = (bool)wxSizer_Remove(arg1,arg2);
35862
35863 wxPyEndAllowThreads(__tstate);
35864 if (PyErr_Occurred()) SWIG_fail;
35865 }
35866 {
35867 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35868 }
35869 return resultobj;
35870 fail:
35871 return NULL;
35872}
35873
35874
c32bde28 35875static PyObject *_wrap_Sizer_Detach(PyObject *, PyObject *args, PyObject *kwargs) {
1a6bba1e
RD
35876 PyObject *resultobj;
35877 wxSizer *arg1 = (wxSizer *) 0 ;
35878 PyObject *arg2 = (PyObject *) 0 ;
35879 bool result;
35880 PyObject * obj0 = 0 ;
35881 PyObject * obj1 = 0 ;
35882 char *kwnames[] = {
35883 (char *) "self",(char *) "item", NULL
35884 };
35885
35886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Detach",kwnames,&obj0,&obj1)) goto fail;
35887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35889 arg2 = obj1;
35890 {
35891 PyThreadState* __tstate = wxPyBeginAllowThreads();
35892 result = (bool)wxSizer_Detach(arg1,arg2);
35893
35894 wxPyEndAllowThreads(__tstate);
35895 if (PyErr_Occurred()) SWIG_fail;
35896 }
35897 {
35898 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35899 }
35900 return resultobj;
35901 fail:
35902 return NULL;
35903}
35904
35905
c32bde28 35906static PyObject *_wrap_Sizer__SetItemMinSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
35907 PyObject *resultobj;
35908 wxSizer *arg1 = (wxSizer *) 0 ;
35909 PyObject *arg2 = (PyObject *) 0 ;
35910 wxSize *arg3 = 0 ;
35911 wxSize temp3 ;
35912 PyObject * obj0 = 0 ;
35913 PyObject * obj1 = 0 ;
35914 PyObject * obj2 = 0 ;
35915 char *kwnames[] = {
35916 (char *) "self",(char *) "item",(char *) "size", NULL
35917 };
35918
35919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
35920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35922 arg2 = obj1;
35923 {
35924 arg3 = &temp3;
35925 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
35926 }
35927 {
35928 PyThreadState* __tstate = wxPyBeginAllowThreads();
35929 wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3);
35930
35931 wxPyEndAllowThreads(__tstate);
35932 if (PyErr_Occurred()) SWIG_fail;
35933 }
35934 Py_INCREF(Py_None); resultobj = Py_None;
35935 return resultobj;
35936 fail:
35937 return NULL;
35938}
35939
35940
c32bde28 35941static PyObject *_wrap_Sizer_AddItem(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
35942 PyObject *resultobj;
35943 wxSizer *arg1 = (wxSizer *) 0 ;
35944 wxSizerItem *arg2 = (wxSizerItem *) 0 ;
35945 PyObject * obj0 = 0 ;
35946 PyObject * obj1 = 0 ;
35947 char *kwnames[] = {
35948 (char *) "self",(char *) "item", NULL
35949 };
35950
35951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) goto fail;
35952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35954 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem,
35955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35956 {
35957 PyThreadState* __tstate = wxPyBeginAllowThreads();
35958 (arg1)->Add(arg2);
35959
35960 wxPyEndAllowThreads(__tstate);
35961 if (PyErr_Occurred()) SWIG_fail;
35962 }
35963 Py_INCREF(Py_None); resultobj = Py_None;
35964 return resultobj;
35965 fail:
35966 return NULL;
35967}
35968
35969
c32bde28 35970static PyObject *_wrap_Sizer_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
35971 PyObject *resultobj;
35972 wxSizer *arg1 = (wxSizer *) 0 ;
35973 size_t arg2 ;
35974 wxSizerItem *arg3 = (wxSizerItem *) 0 ;
35975 PyObject * obj0 = 0 ;
35976 PyObject * obj1 = 0 ;
35977 PyObject * obj2 = 0 ;
35978 char *kwnames[] = {
35979 (char *) "self",(char *) "index",(char *) "item", NULL
35980 };
35981
35982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
35983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 35985 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
d55e5bfc
RD
35986 if (PyErr_Occurred()) SWIG_fail;
35987 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxSizerItem,
35988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35989 {
35990 PyThreadState* __tstate = wxPyBeginAllowThreads();
35991 (arg1)->Insert(arg2,arg3);
35992
35993 wxPyEndAllowThreads(__tstate);
35994 if (PyErr_Occurred()) SWIG_fail;
35995 }
35996 Py_INCREF(Py_None); resultobj = Py_None;
35997 return resultobj;
35998 fail:
35999 return NULL;
36000}
36001
36002
c32bde28 36003static PyObject *_wrap_Sizer_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
36004 PyObject *resultobj;
36005 wxSizer *arg1 = (wxSizer *) 0 ;
36006 wxSizerItem *arg2 = (wxSizerItem *) 0 ;
36007 PyObject * obj0 = 0 ;
36008 PyObject * obj1 = 0 ;
36009 char *kwnames[] = {
36010 (char *) "self",(char *) "item", NULL
36011 };
36012
36013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) goto fail;
36014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36016 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem,
36017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36018 {
36019 PyThreadState* __tstate = wxPyBeginAllowThreads();
36020 (arg1)->Prepend(arg2);
36021
36022 wxPyEndAllowThreads(__tstate);
36023 if (PyErr_Occurred()) SWIG_fail;
36024 }
36025 Py_INCREF(Py_None); resultobj = Py_None;
36026 return resultobj;
36027 fail:
36028 return NULL;
36029}
36030
36031
c32bde28 36032static PyObject *_wrap_Sizer_SetDimension(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
36033 PyObject *resultobj;
36034 wxSizer *arg1 = (wxSizer *) 0 ;
36035 int arg2 ;
36036 int arg3 ;
36037 int arg4 ;
36038 int arg5 ;
36039 PyObject * obj0 = 0 ;
36040 PyObject * obj1 = 0 ;
36041 PyObject * obj2 = 0 ;
36042 PyObject * obj3 = 0 ;
36043 PyObject * obj4 = 0 ;
36044 char *kwnames[] = {
36045 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36046 };
36047
36048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Sizer_SetDimension",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
36049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 36051 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc 36052 if (PyErr_Occurred()) SWIG_fail;
c32bde28 36053 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 36054 if (PyErr_Occurred()) SWIG_fail;
c32bde28 36055 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 36056 if (PyErr_Occurred()) SWIG_fail;
c32bde28 36057 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
36058 if (PyErr_Occurred()) SWIG_fail;
36059 {
36060 PyThreadState* __tstate = wxPyBeginAllowThreads();
36061 (arg1)->SetDimension(arg2,arg3,arg4,arg5);
36062
36063 wxPyEndAllowThreads(__tstate);
36064 if (PyErr_Occurred()) SWIG_fail;
36065 }
36066 Py_INCREF(Py_None); resultobj = Py_None;
36067 return resultobj;
36068 fail:
36069 return NULL;
36070}
36071
36072
c32bde28 36073static PyObject *_wrap_Sizer_SetMinSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
36074 PyObject *resultobj;
36075 wxSizer *arg1 = (wxSizer *) 0 ;
36076 wxSize *arg2 = 0 ;
36077 wxSize temp2 ;
36078 PyObject * obj0 = 0 ;
36079 PyObject * obj1 = 0 ;
36080 char *kwnames[] = {
36081 (char *) "self",(char *) "size", NULL
36082 };
36083
36084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) goto fail;
36085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36087 {
36088 arg2 = &temp2;
36089 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
36090 }
36091 {
36092 PyThreadState* __tstate = wxPyBeginAllowThreads();
36093 (arg1)->SetMinSize((wxSize const &)*arg2);
36094
36095 wxPyEndAllowThreads(__tstate);
36096 if (PyErr_Occurred()) SWIG_fail;
36097 }
36098 Py_INCREF(Py_None); resultobj = Py_None;
36099 return resultobj;
36100 fail:
36101 return NULL;
36102}
36103
36104
c32bde28 36105static PyObject *_wrap_Sizer_GetSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
36106 PyObject *resultobj;
36107 wxSizer *arg1 = (wxSizer *) 0 ;
36108 wxSize result;
36109 PyObject * obj0 = 0 ;
36110 char *kwnames[] = {
36111 (char *) "self", NULL
36112 };
36113
36114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetSize",kwnames,&obj0)) goto fail;
36115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36117 {
36118 PyThreadState* __tstate = wxPyBeginAllowThreads();
36119 result = (arg1)->GetSize();
36120
36121 wxPyEndAllowThreads(__tstate);
36122 if (PyErr_Occurred()) SWIG_fail;
36123 }
36124 {
36125 wxSize * resultptr;
36126 resultptr = new wxSize((wxSize &) result);
36127 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
36128 }
36129 return resultobj;
36130 fail:
36131 return NULL;
36132}
36133
36134
c32bde28 36135static PyObject *_wrap_Sizer_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
36136 PyObject *resultobj;
36137 wxSizer *arg1 = (wxSizer *) 0 ;
36138 wxPoint result;
36139 PyObject * obj0 = 0 ;
36140 char *kwnames[] = {
36141 (char *) "self", NULL
36142 };
36143
36144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetPosition",kwnames,&obj0)) goto fail;
36145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36147 {
36148 PyThreadState* __tstate = wxPyBeginAllowThreads();
36149 result = (arg1)->GetPosition();
36150
36151 wxPyEndAllowThreads(__tstate);
36152 if (PyErr_Occurred()) SWIG_fail;
36153 }
36154 {
36155 wxPoint * resultptr;
36156 resultptr = new wxPoint((wxPoint &) result);
36157 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
36158 }
36159 return resultobj;
36160 fail:
36161 return NULL;
36162}
36163
36164
c32bde28 36165static PyObject *_wrap_Sizer_GetMinSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
36166 PyObject *resultobj;
36167 wxSizer *arg1 = (wxSizer *) 0 ;
36168 wxSize result;
36169 PyObject * obj0 = 0 ;
36170 char *kwnames[] = {
36171 (char *) "self", NULL
36172 };
36173
36174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetMinSize",kwnames,&obj0)) goto fail;
36175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36177 {
36178 PyThreadState* __tstate = wxPyBeginAllowThreads();
36179 result = (arg1)->GetMinSize();
36180
36181 wxPyEndAllowThreads(__tstate);
36182 if (PyErr_Occurred()) SWIG_fail;
36183 }
36184 {
36185 wxSize * resultptr;
36186 resultptr = new wxSize((wxSize &) result);
36187 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
36188 }
36189 return resultobj;
36190 fail:
36191 return NULL;
36192}
36193
36194
c32bde28 36195static PyObject *_wrap_Sizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
36196 PyObject *resultobj;
36197 wxSizer *arg1 = (wxSizer *) 0 ;
36198 PyObject * obj0 = 0 ;
36199 char *kwnames[] = {
36200 (char *) "self", NULL
36201 };
36202
36203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_RecalcSizes",kwnames,&obj0)) goto fail;
36204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36206 {
36207 PyThreadState* __tstate = wxPyBeginAllowThreads();
36208 (arg1)->RecalcSizes();
36209
36210 wxPyEndAllowThreads(__tstate);
36211 if (PyErr_Occurred()) SWIG_fail;
36212 }
36213 Py_INCREF(Py_None); resultobj = Py_None;
36214 return resultobj;
36215 fail:
36216 return NULL;
36217}
36218
36219
c32bde28 36220static PyObject *_wrap_Sizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
36221 PyObject *resultobj;
36222 wxSizer *arg1 = (wxSizer *) 0 ;
36223 wxSize result;
36224 PyObject * obj0 = 0 ;
36225 char *kwnames[] = {
36226 (char *) "self", NULL
36227 };
36228
36229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_CalcMin",kwnames,&obj0)) goto fail;
36230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36232 {
36233 PyThreadState* __tstate = wxPyBeginAllowThreads();
36234 result = (arg1)->CalcMin();
36235
36236 wxPyEndAllowThreads(__tstate);
36237 if (PyErr_Occurred()) SWIG_fail;
36238 }
36239 {
36240 wxSize * resultptr;
36241 resultptr = new wxSize((wxSize &) result);
36242 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
36243 }
36244 return resultobj;
36245 fail:
36246 return NULL;
36247}
36248
36249
c32bde28 36250static PyObject *_wrap_Sizer_Layout(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
36251 PyObject *resultobj;
36252 wxSizer *arg1 = (wxSizer *) 0 ;
36253 PyObject * obj0 = 0 ;
36254 char *kwnames[] = {
36255 (char *) "self", NULL
36256 };
36257
36258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_Layout",kwnames,&obj0)) goto fail;
36259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36261 {
36262 PyThreadState* __tstate = wxPyBeginAllowThreads();
36263 (arg1)->Layout();
36264
36265 wxPyEndAllowThreads(__tstate);
36266 if (PyErr_Occurred()) SWIG_fail;
36267 }
36268 Py_INCREF(Py_None); resultobj = Py_None;
36269 return resultobj;
36270 fail:
36271 return NULL;
36272}
36273
36274
c32bde28 36275static PyObject *_wrap_Sizer_Fit(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
36276 PyObject *resultobj;
36277 wxSizer *arg1 = (wxSizer *) 0 ;
36278 wxWindow *arg2 = (wxWindow *) 0 ;
36279 wxSize result;
36280 PyObject * obj0 = 0 ;
36281 PyObject * obj1 = 0 ;
36282 char *kwnames[] = {
36283 (char *) "self",(char *) "window", NULL
36284 };
36285
36286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) goto fail;
36287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36289 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
36290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36291 {
36292 PyThreadState* __tstate = wxPyBeginAllowThreads();
36293 result = (arg1)->Fit(arg2);
36294
36295 wxPyEndAllowThreads(__tstate);
36296 if (PyErr_Occurred()) SWIG_fail;
36297 }
36298 {
36299 wxSize * resultptr;
36300 resultptr = new wxSize((wxSize &) result);
36301 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
36302 }
36303 return resultobj;
36304 fail:
36305 return NULL;
36306}
36307
36308
c32bde28 36309static PyObject *_wrap_Sizer_FitInside(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
36310 PyObject *resultobj;
36311 wxSizer *arg1 = (wxSizer *) 0 ;
36312 wxWindow *arg2 = (wxWindow *) 0 ;
36313 PyObject * obj0 = 0 ;
36314 PyObject * obj1 = 0 ;
36315 char *kwnames[] = {
36316 (char *) "self",(char *) "window", NULL
36317 };
36318
36319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) goto fail;
36320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36322 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
36323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36324 {
36325 PyThreadState* __tstate = wxPyBeginAllowThreads();
36326 (arg1)->FitInside(arg2);
36327
36328 wxPyEndAllowThreads(__tstate);
36329 if (PyErr_Occurred()) SWIG_fail;
36330 }
36331 Py_INCREF(Py_None); resultobj = Py_None;
36332 return resultobj;
36333 fail:
36334 return NULL;
36335}
36336
36337
c32bde28 36338static PyObject *_wrap_Sizer_SetSizeHints(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
36339 PyObject *resultobj;
36340 wxSizer *arg1 = (wxSizer *) 0 ;
36341 wxWindow *arg2 = (wxWindow *) 0 ;
36342 PyObject * obj0 = 0 ;
36343 PyObject * obj1 = 0 ;
36344 char *kwnames[] = {
36345 (char *) "self",(char *) "window", NULL
36346 };
36347
36348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) goto fail;
36349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36351 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
36352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36353 {
36354 PyThreadState* __tstate = wxPyBeginAllowThreads();
36355 (arg1)->SetSizeHints(arg2);
36356
36357 wxPyEndAllowThreads(__tstate);
36358 if (PyErr_Occurred()) SWIG_fail;
36359 }
36360 Py_INCREF(Py_None); resultobj = Py_None;
36361 return resultobj;
36362 fail:
36363 return NULL;
36364}
36365
36366
c32bde28 36367static PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
36368 PyObject *resultobj;
36369 wxSizer *arg1 = (wxSizer *) 0 ;
36370 wxWindow *arg2 = (wxWindow *) 0 ;
36371 PyObject * obj0 = 0 ;
36372 PyObject * obj1 = 0 ;
36373 char *kwnames[] = {
36374 (char *) "self",(char *) "window", NULL
36375 };
36376
36377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) goto fail;
36378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36380 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
36381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36382 {
36383 PyThreadState* __tstate = wxPyBeginAllowThreads();
36384 (arg1)->SetVirtualSizeHints(arg2);
36385
36386 wxPyEndAllowThreads(__tstate);
36387 if (PyErr_Occurred()) SWIG_fail;
36388 }
36389 Py_INCREF(Py_None); resultobj = Py_None;
36390 return resultobj;
36391 fail:
36392 return NULL;
36393}
36394
36395
c32bde28 36396static PyObject *_wrap_Sizer_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
36397 PyObject *resultobj;
36398 wxSizer *arg1 = (wxSizer *) 0 ;
36399 bool arg2 = (bool) False ;
36400 PyObject * obj0 = 0 ;
36401 PyObject * obj1 = 0 ;
36402 char *kwnames[] = {
248ed943 36403 (char *) "self",(char *) "deleteWindows", NULL
d55e5bfc
RD
36404 };
36405
36406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) goto fail;
36407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36409 if (obj1) {
c32bde28 36410 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
36411 if (PyErr_Occurred()) SWIG_fail;
36412 }
36413 {
36414 PyThreadState* __tstate = wxPyBeginAllowThreads();
36415 (arg1)->Clear(arg2);
36416
36417 wxPyEndAllowThreads(__tstate);
36418 if (PyErr_Occurred()) SWIG_fail;
36419 }
36420 Py_INCREF(Py_None); resultobj = Py_None;
36421 return resultobj;
36422 fail:
36423 return NULL;
36424}
36425
36426
c32bde28 36427static PyObject *_wrap_Sizer_DeleteWindows(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
36428 PyObject *resultobj;
36429 wxSizer *arg1 = (wxSizer *) 0 ;
36430 PyObject * obj0 = 0 ;
36431 char *kwnames[] = {
36432 (char *) "self", NULL
36433 };
36434
36435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_DeleteWindows",kwnames,&obj0)) goto fail;
36436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36438 {
36439 PyThreadState* __tstate = wxPyBeginAllowThreads();
36440 (arg1)->DeleteWindows();
36441
36442 wxPyEndAllowThreads(__tstate);
36443 if (PyErr_Occurred()) SWIG_fail;
36444 }
36445 Py_INCREF(Py_None); resultobj = Py_None;
36446 return resultobj;
36447 fail:
36448 return NULL;
36449}
36450
36451
c32bde28 36452static PyObject *_wrap_Sizer_GetChildren(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
36453 PyObject *resultobj;
36454 wxSizer *arg1 = (wxSizer *) 0 ;
36455 PyObject *result;
36456 PyObject * obj0 = 0 ;
36457 char *kwnames[] = {
36458 (char *) "self", NULL
36459 };
36460
36461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetChildren",kwnames,&obj0)) goto fail;
36462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36464 {
36465 PyThreadState* __tstate = wxPyBeginAllowThreads();
36466 result = (PyObject *)wxSizer_GetChildren(arg1);
36467
36468 wxPyEndAllowThreads(__tstate);
36469 if (PyErr_Occurred()) SWIG_fail;
36470 }
36471 resultobj = result;
36472 return resultobj;
36473 fail:
36474 return NULL;
36475}
36476
36477
c32bde28 36478static PyObject *_wrap_Sizer_Show(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
36479 PyObject *resultobj;
36480 wxSizer *arg1 = (wxSizer *) 0 ;
36481 PyObject *arg2 = (PyObject *) 0 ;
36482 bool arg3 = (bool) True ;
7e63a440
RD
36483 bool arg4 = (bool) False ;
36484 bool result;
d55e5bfc
RD
36485 PyObject * obj0 = 0 ;
36486 PyObject * obj1 = 0 ;
36487 PyObject * obj2 = 0 ;
7e63a440 36488 PyObject * obj3 = 0 ;
d55e5bfc 36489 char *kwnames[] = {
7e63a440 36490 (char *) "self",(char *) "item",(char *) "show",(char *) "recursive", NULL
d55e5bfc
RD
36491 };
36492
7e63a440 36493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Sizer_Show",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
36494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36496 arg2 = obj1;
36497 if (obj2) {
c32bde28 36498 arg3 = (bool)SWIG_As_bool(obj2);
d55e5bfc
RD
36499 if (PyErr_Occurred()) SWIG_fail;
36500 }
7e63a440
RD
36501 if (obj3) {
36502 arg4 = (bool)SWIG_As_bool(obj3);
36503 if (PyErr_Occurred()) SWIG_fail;
36504 }
d55e5bfc
RD
36505 {
36506 PyThreadState* __tstate = wxPyBeginAllowThreads();
7e63a440 36507 result = (bool)wxSizer_Show(arg1,arg2,arg3,arg4);
d55e5bfc
RD
36508
36509 wxPyEndAllowThreads(__tstate);
36510 if (PyErr_Occurred()) SWIG_fail;
36511 }
7e63a440
RD
36512 {
36513 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36514 }
d55e5bfc
RD
36515 return resultobj;
36516 fail:
36517 return NULL;
36518}
36519
36520
c32bde28 36521static PyObject *_wrap_Sizer_IsShown(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
36522 PyObject *resultobj;
36523 wxSizer *arg1 = (wxSizer *) 0 ;
36524 PyObject *arg2 = (PyObject *) 0 ;
36525 bool result;
36526 PyObject * obj0 = 0 ;
36527 PyObject * obj1 = 0 ;
36528 char *kwnames[] = {
36529 (char *) "self",(char *) "item", NULL
36530 };
36531
36532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) goto fail;
36533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36535 arg2 = obj1;
36536 {
36537 PyThreadState* __tstate = wxPyBeginAllowThreads();
36538 result = (bool)wxSizer_IsShown(arg1,arg2);
36539
36540 wxPyEndAllowThreads(__tstate);
36541 if (PyErr_Occurred()) SWIG_fail;
36542 }
36543 {
36544 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36545 }
36546 return resultobj;
36547 fail:
36548 return NULL;
36549}
36550
36551
c32bde28 36552static PyObject *_wrap_Sizer_ShowItems(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
36553 PyObject *resultobj;
36554 wxSizer *arg1 = (wxSizer *) 0 ;
36555 bool arg2 ;
36556 PyObject * obj0 = 0 ;
36557 PyObject * obj1 = 0 ;
36558 char *kwnames[] = {
36559 (char *) "self",(char *) "show", NULL
36560 };
36561
36562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) goto fail;
36563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 36565 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
36566 if (PyErr_Occurred()) SWIG_fail;
36567 {
36568 PyThreadState* __tstate = wxPyBeginAllowThreads();
36569 (arg1)->ShowItems(arg2);
36570
36571 wxPyEndAllowThreads(__tstate);
36572 if (PyErr_Occurred()) SWIG_fail;
36573 }
36574 Py_INCREF(Py_None); resultobj = Py_None;
36575 return resultobj;
36576 fail:
36577 return NULL;
36578}
36579
36580
c32bde28 36581static PyObject * Sizer_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
36582 PyObject *obj;
36583 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
36584 SWIG_TypeClientData(SWIGTYPE_p_wxSizer, obj);
36585 Py_INCREF(obj);
36586 return Py_BuildValue((char *)"");
36587}
c32bde28 36588static PyObject *_wrap_new_PySizer(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
36589 PyObject *resultobj;
36590 wxPySizer *result;
36591 char *kwnames[] = {
36592 NULL
36593 };
36594
36595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PySizer",kwnames)) goto fail;
36596 {
36597 PyThreadState* __tstate = wxPyBeginAllowThreads();
36598 result = (wxPySizer *)new wxPySizer();
36599
36600 wxPyEndAllowThreads(__tstate);
36601 if (PyErr_Occurred()) SWIG_fail;
36602 }
36603 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPySizer, 1);
36604 return resultobj;
36605 fail:
36606 return NULL;
36607}
36608
36609
c32bde28 36610static PyObject *_wrap_PySizer__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
36611 PyObject *resultobj;
36612 wxPySizer *arg1 = (wxPySizer *) 0 ;
36613 PyObject *arg2 = (PyObject *) 0 ;
36614 PyObject *arg3 = (PyObject *) 0 ;
36615 PyObject * obj0 = 0 ;
36616 PyObject * obj1 = 0 ;
36617 PyObject * obj2 = 0 ;
36618 char *kwnames[] = {
36619 (char *) "self",(char *) "self",(char *) "_class", NULL
36620 };
36621
36622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
36623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPySizer,
36624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36625 arg2 = obj1;
36626 arg3 = obj2;
36627 {
36628 PyThreadState* __tstate = wxPyBeginAllowThreads();
36629 (arg1)->_setCallbackInfo(arg2,arg3);
36630
36631 wxPyEndAllowThreads(__tstate);
36632 if (PyErr_Occurred()) SWIG_fail;
36633 }
36634 Py_INCREF(Py_None); resultobj = Py_None;
36635 return resultobj;
36636 fail:
36637 return NULL;
36638}
36639
36640
c32bde28 36641static PyObject * PySizer_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
36642 PyObject *obj;
36643 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
36644 SWIG_TypeClientData(SWIGTYPE_p_wxPySizer, obj);
36645 Py_INCREF(obj);
36646 return Py_BuildValue((char *)"");
36647}
c32bde28 36648static PyObject *_wrap_new_BoxSizer(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
36649 PyObject *resultobj;
36650 int arg1 = (int) wxHORIZONTAL ;
36651 wxBoxSizer *result;
36652 PyObject * obj0 = 0 ;
36653 char *kwnames[] = {
36654 (char *) "orient", NULL
36655 };
36656
36657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BoxSizer",kwnames,&obj0)) goto fail;
36658 if (obj0) {
c32bde28 36659 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
36660 if (PyErr_Occurred()) SWIG_fail;
36661 }
36662 {
36663 PyThreadState* __tstate = wxPyBeginAllowThreads();
36664 result = (wxBoxSizer *)new wxBoxSizer(arg1);
36665
36666 wxPyEndAllowThreads(__tstate);
36667 if (PyErr_Occurred()) SWIG_fail;
36668 }
36669 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBoxSizer, 1);
36670 return resultobj;
36671 fail:
36672 return NULL;
36673}
36674
36675
c32bde28 36676static PyObject *_wrap_BoxSizer_GetOrientation(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
36677 PyObject *resultobj;
36678 wxBoxSizer *arg1 = (wxBoxSizer *) 0 ;
36679 int result;
36680 PyObject * obj0 = 0 ;
36681 char *kwnames[] = {
36682 (char *) "self", NULL
36683 };
36684
36685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_GetOrientation",kwnames,&obj0)) goto fail;
36686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer,
36687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36688 {
36689 PyThreadState* __tstate = wxPyBeginAllowThreads();
36690 result = (int)(arg1)->GetOrientation();
36691
36692 wxPyEndAllowThreads(__tstate);
36693 if (PyErr_Occurred()) SWIG_fail;
36694 }
c32bde28 36695 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
36696 return resultobj;
36697 fail:
36698 return NULL;
36699}
36700
36701
c32bde28 36702static PyObject *_wrap_BoxSizer_SetOrientation(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
36703 PyObject *resultobj;
36704 wxBoxSizer *arg1 = (wxBoxSizer *) 0 ;
36705 int arg2 ;
36706 PyObject * obj0 = 0 ;
36707 PyObject * obj1 = 0 ;
36708 char *kwnames[] = {
36709 (char *) "self",(char *) "orient", NULL
36710 };
36711
36712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BoxSizer_SetOrientation",kwnames,&obj0,&obj1)) goto fail;
36713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer,
36714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 36715 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
36716 if (PyErr_Occurred()) SWIG_fail;
36717 {
36718 PyThreadState* __tstate = wxPyBeginAllowThreads();
36719 (arg1)->SetOrientation(arg2);
36720
36721 wxPyEndAllowThreads(__tstate);
36722 if (PyErr_Occurred()) SWIG_fail;
36723 }
36724 Py_INCREF(Py_None); resultobj = Py_None;
36725 return resultobj;
36726 fail:
36727 return NULL;
36728}
36729
36730
c32bde28 36731static PyObject * BoxSizer_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
36732 PyObject *obj;
36733 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
36734 SWIG_TypeClientData(SWIGTYPE_p_wxBoxSizer, obj);
36735 Py_INCREF(obj);
36736 return Py_BuildValue((char *)"");
36737}
c32bde28 36738static PyObject *_wrap_new_StaticBoxSizer(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
36739 PyObject *resultobj;
36740 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
36741 int arg2 = (int) wxHORIZONTAL ;
36742 wxStaticBoxSizer *result;
36743 PyObject * obj0 = 0 ;
36744 PyObject * obj1 = 0 ;
36745 char *kwnames[] = {
36746 (char *) "box",(char *) "orient", NULL
36747 };
36748
36749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_StaticBoxSizer",kwnames,&obj0,&obj1)) goto fail;
36750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox,
36751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36752 if (obj1) {
c32bde28 36753 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
36754 if (PyErr_Occurred()) SWIG_fail;
36755 }
36756 {
36757 PyThreadState* __tstate = wxPyBeginAllowThreads();
36758 result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2);
36759
36760 wxPyEndAllowThreads(__tstate);
36761 if (PyErr_Occurred()) SWIG_fail;
36762 }
36763 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBoxSizer, 1);
36764 return resultobj;
36765 fail:
36766 return NULL;
36767}
36768
36769
c32bde28 36770static PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
36771 PyObject *resultobj;
36772 wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ;
36773 wxStaticBox *result;
36774 PyObject * obj0 = 0 ;
36775 char *kwnames[] = {
36776 (char *) "self", NULL
36777 };
36778
36779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_GetStaticBox",kwnames,&obj0)) goto fail;
36780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer,
36781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36782 {
36783 PyThreadState* __tstate = wxPyBeginAllowThreads();
36784 result = (wxStaticBox *)(arg1)->GetStaticBox();
36785
36786 wxPyEndAllowThreads(__tstate);
36787 if (PyErr_Occurred()) SWIG_fail;
36788 }
36789 {
412d302d 36790 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
36791 }
36792 return resultobj;
36793 fail:
36794 return NULL;
36795}
36796
36797
c32bde28 36798static PyObject * StaticBoxSizer_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
36799 PyObject *obj;
36800 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
36801 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBoxSizer, obj);
36802 Py_INCREF(obj);
36803 return Py_BuildValue((char *)"");
36804}
c32bde28 36805static PyObject *_wrap_new_GridSizer(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
36806 PyObject *resultobj;
36807 int arg1 = (int) 1 ;
36808 int arg2 = (int) 0 ;
36809 int arg3 = (int) 0 ;
36810 int arg4 = (int) 0 ;
36811 wxGridSizer *result;
36812 PyObject * obj0 = 0 ;
36813 PyObject * obj1 = 0 ;
36814 PyObject * obj2 = 0 ;
36815 PyObject * obj3 = 0 ;
36816 char *kwnames[] = {
36817 (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL
36818 };
36819
36820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_GridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
36821 if (obj0) {
c32bde28 36822 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
36823 if (PyErr_Occurred()) SWIG_fail;
36824 }
36825 if (obj1) {
c32bde28 36826 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
36827 if (PyErr_Occurred()) SWIG_fail;
36828 }
36829 if (obj2) {
c32bde28 36830 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
36831 if (PyErr_Occurred()) SWIG_fail;
36832 }
36833 if (obj3) {
c32bde28 36834 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
36835 if (PyErr_Occurred()) SWIG_fail;
36836 }
36837 {
36838 PyThreadState* __tstate = wxPyBeginAllowThreads();
36839 result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4);
36840
36841 wxPyEndAllowThreads(__tstate);
36842 if (PyErr_Occurred()) SWIG_fail;
36843 }
36844 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridSizer, 1);
36845 return resultobj;
36846 fail:
36847 return NULL;
36848}
36849
36850
c32bde28 36851static PyObject *_wrap_GridSizer_SetCols(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
36852 PyObject *resultobj;
36853 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36854 int arg2 ;
36855 PyObject * obj0 = 0 ;
36856 PyObject * obj1 = 0 ;
36857 char *kwnames[] = {
36858 (char *) "self",(char *) "cols", NULL
36859 };
36860
36861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetCols",kwnames,&obj0,&obj1)) goto fail;
36862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 36864 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
36865 if (PyErr_Occurred()) SWIG_fail;
36866 {
36867 PyThreadState* __tstate = wxPyBeginAllowThreads();
36868 (arg1)->SetCols(arg2);
36869
36870 wxPyEndAllowThreads(__tstate);
36871 if (PyErr_Occurred()) SWIG_fail;
36872 }
36873 Py_INCREF(Py_None); resultobj = Py_None;
36874 return resultobj;
36875 fail:
36876 return NULL;
36877}
36878
36879
c32bde28 36880static PyObject *_wrap_GridSizer_SetRows(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
36881 PyObject *resultobj;
36882 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36883 int arg2 ;
36884 PyObject * obj0 = 0 ;
36885 PyObject * obj1 = 0 ;
36886 char *kwnames[] = {
36887 (char *) "self",(char *) "rows", NULL
36888 };
36889
36890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetRows",kwnames,&obj0,&obj1)) goto fail;
36891 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 36893 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
36894 if (PyErr_Occurred()) SWIG_fail;
36895 {
36896 PyThreadState* __tstate = wxPyBeginAllowThreads();
36897 (arg1)->SetRows(arg2);
36898
36899 wxPyEndAllowThreads(__tstate);
36900 if (PyErr_Occurred()) SWIG_fail;
36901 }
36902 Py_INCREF(Py_None); resultobj = Py_None;
36903 return resultobj;
36904 fail:
36905 return NULL;
36906}
36907
36908
c32bde28 36909static PyObject *_wrap_GridSizer_SetVGap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
36910 PyObject *resultobj;
36911 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36912 int arg2 ;
36913 PyObject * obj0 = 0 ;
36914 PyObject * obj1 = 0 ;
36915 char *kwnames[] = {
36916 (char *) "self",(char *) "gap", NULL
36917 };
36918
36919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetVGap",kwnames,&obj0,&obj1)) goto fail;
36920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 36922 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
36923 if (PyErr_Occurred()) SWIG_fail;
36924 {
36925 PyThreadState* __tstate = wxPyBeginAllowThreads();
36926 (arg1)->SetVGap(arg2);
36927
36928 wxPyEndAllowThreads(__tstate);
36929 if (PyErr_Occurred()) SWIG_fail;
36930 }
36931 Py_INCREF(Py_None); resultobj = Py_None;
36932 return resultobj;
36933 fail:
36934 return NULL;
36935}
36936
36937
c32bde28 36938static PyObject *_wrap_GridSizer_SetHGap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
36939 PyObject *resultobj;
36940 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36941 int arg2 ;
36942 PyObject * obj0 = 0 ;
36943 PyObject * obj1 = 0 ;
36944 char *kwnames[] = {
36945 (char *) "self",(char *) "gap", NULL
36946 };
36947
36948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetHGap",kwnames,&obj0,&obj1)) goto fail;
36949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 36951 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
36952 if (PyErr_Occurred()) SWIG_fail;
36953 {
36954 PyThreadState* __tstate = wxPyBeginAllowThreads();
36955 (arg1)->SetHGap(arg2);
36956
36957 wxPyEndAllowThreads(__tstate);
36958 if (PyErr_Occurred()) SWIG_fail;
36959 }
36960 Py_INCREF(Py_None); resultobj = Py_None;
36961 return resultobj;
36962 fail:
36963 return NULL;
36964}
36965
36966
c32bde28 36967static PyObject *_wrap_GridSizer_GetCols(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
36968 PyObject *resultobj;
36969 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36970 int result;
36971 PyObject * obj0 = 0 ;
36972 char *kwnames[] = {
36973 (char *) "self", NULL
36974 };
36975
36976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetCols",kwnames,&obj0)) goto fail;
36977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36979 {
36980 PyThreadState* __tstate = wxPyBeginAllowThreads();
36981 result = (int)(arg1)->GetCols();
36982
36983 wxPyEndAllowThreads(__tstate);
36984 if (PyErr_Occurred()) SWIG_fail;
36985 }
c32bde28 36986 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
36987 return resultobj;
36988 fail:
36989 return NULL;
36990}
36991
36992
c32bde28 36993static PyObject *_wrap_GridSizer_GetRows(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
36994 PyObject *resultobj;
36995 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36996 int result;
36997 PyObject * obj0 = 0 ;
36998 char *kwnames[] = {
36999 (char *) "self", NULL
37000 };
37001
37002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetRows",kwnames,&obj0)) goto fail;
37003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
37004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37005 {
37006 PyThreadState* __tstate = wxPyBeginAllowThreads();
37007 result = (int)(arg1)->GetRows();
37008
37009 wxPyEndAllowThreads(__tstate);
37010 if (PyErr_Occurred()) SWIG_fail;
37011 }
c32bde28 37012 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
37013 return resultobj;
37014 fail:
37015 return NULL;
37016}
37017
37018
c32bde28 37019static PyObject *_wrap_GridSizer_GetVGap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
37020 PyObject *resultobj;
37021 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
37022 int result;
37023 PyObject * obj0 = 0 ;
37024 char *kwnames[] = {
37025 (char *) "self", NULL
37026 };
37027
37028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetVGap",kwnames,&obj0)) goto fail;
37029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
37030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37031 {
37032 PyThreadState* __tstate = wxPyBeginAllowThreads();
37033 result = (int)(arg1)->GetVGap();
37034
37035 wxPyEndAllowThreads(__tstate);
37036 if (PyErr_Occurred()) SWIG_fail;
37037 }
c32bde28 37038 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
37039 return resultobj;
37040 fail:
37041 return NULL;
37042}
37043
37044
c32bde28 37045static PyObject *_wrap_GridSizer_GetHGap(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
37046 PyObject *resultobj;
37047 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
37048 int result;
37049 PyObject * obj0 = 0 ;
37050 char *kwnames[] = {
37051 (char *) "self", NULL
37052 };
37053
37054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetHGap",kwnames,&obj0)) goto fail;
37055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
37056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37057 {
37058 PyThreadState* __tstate = wxPyBeginAllowThreads();
37059 result = (int)(arg1)->GetHGap();
37060
37061 wxPyEndAllowThreads(__tstate);
37062 if (PyErr_Occurred()) SWIG_fail;
37063 }
c32bde28 37064 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
37065 return resultobj;
37066 fail:
37067 return NULL;
37068}
37069
37070
c32bde28 37071static PyObject * GridSizer_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
37072 PyObject *obj;
37073 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
37074 SWIG_TypeClientData(SWIGTYPE_p_wxGridSizer, obj);
37075 Py_INCREF(obj);
37076 return Py_BuildValue((char *)"");
37077}
c32bde28 37078static PyObject *_wrap_new_FlexGridSizer(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
37079 PyObject *resultobj;
37080 int arg1 = (int) 1 ;
37081 int arg2 = (int) 0 ;
37082 int arg3 = (int) 0 ;
37083 int arg4 = (int) 0 ;
37084 wxFlexGridSizer *result;
37085 PyObject * obj0 = 0 ;
37086 PyObject * obj1 = 0 ;
37087 PyObject * obj2 = 0 ;
37088 PyObject * obj3 = 0 ;
37089 char *kwnames[] = {
37090 (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL
37091 };
37092
37093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_FlexGridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
37094 if (obj0) {
c32bde28 37095 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
37096 if (PyErr_Occurred()) SWIG_fail;
37097 }
37098 if (obj1) {
c32bde28 37099 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
37100 if (PyErr_Occurred()) SWIG_fail;
37101 }
37102 if (obj2) {
c32bde28 37103 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
37104 if (PyErr_Occurred()) SWIG_fail;
37105 }
37106 if (obj3) {
c32bde28 37107 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
37108 if (PyErr_Occurred()) SWIG_fail;
37109 }
37110 {
37111 PyThreadState* __tstate = wxPyBeginAllowThreads();
37112 result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4);
37113
37114 wxPyEndAllowThreads(__tstate);
37115 if (PyErr_Occurred()) SWIG_fail;
37116 }
37117 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFlexGridSizer, 1);
37118 return resultobj;
37119 fail:
37120 return NULL;
37121}
37122
37123
c32bde28 37124static PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
37125 PyObject *resultobj;
37126 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
37127 size_t arg2 ;
37128 int arg3 = (int) 0 ;
37129 PyObject * obj0 = 0 ;
37130 PyObject * obj1 = 0 ;
37131 PyObject * obj2 = 0 ;
37132 char *kwnames[] = {
37133 (char *) "self",(char *) "idx",(char *) "proportion", NULL
37134 };
37135
37136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&obj2)) goto fail;
37137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
37138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 37139 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
d55e5bfc
RD
37140 if (PyErr_Occurred()) SWIG_fail;
37141 if (obj2) {
c32bde28 37142 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
37143 if (PyErr_Occurred()) SWIG_fail;
37144 }
37145 {
37146 PyThreadState* __tstate = wxPyBeginAllowThreads();
37147 (arg1)->AddGrowableRow(arg2,arg3);
37148
37149 wxPyEndAllowThreads(__tstate);
37150 if (PyErr_Occurred()) SWIG_fail;
37151 }
37152 Py_INCREF(Py_None); resultobj = Py_None;
37153 return resultobj;
37154 fail:
37155 return NULL;
37156}
37157
37158
c32bde28 37159static PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
37160 PyObject *resultobj;
37161 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
37162 size_t arg2 ;
37163 PyObject * obj0 = 0 ;
37164 PyObject * obj1 = 0 ;
37165 char *kwnames[] = {
37166 (char *) "self",(char *) "idx", NULL
37167 };
37168
37169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) goto fail;
37170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
37171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 37172 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
d55e5bfc
RD
37173 if (PyErr_Occurred()) SWIG_fail;
37174 {
37175 PyThreadState* __tstate = wxPyBeginAllowThreads();
37176 (arg1)->RemoveGrowableRow(arg2);
37177
37178 wxPyEndAllowThreads(__tstate);
37179 if (PyErr_Occurred()) SWIG_fail;
37180 }
37181 Py_INCREF(Py_None); resultobj = Py_None;
37182 return resultobj;
37183 fail:
37184 return NULL;
37185}
37186
37187
c32bde28 37188static PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
37189 PyObject *resultobj;
37190 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
37191 size_t arg2 ;
37192 int arg3 = (int) 0 ;
37193 PyObject * obj0 = 0 ;
37194 PyObject * obj1 = 0 ;
37195 PyObject * obj2 = 0 ;
37196 char *kwnames[] = {
37197 (char *) "self",(char *) "idx",(char *) "proportion", NULL
37198 };
37199
37200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&obj2)) goto fail;
37201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
37202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 37203 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
d55e5bfc
RD
37204 if (PyErr_Occurred()) SWIG_fail;
37205 if (obj2) {
c32bde28 37206 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
37207 if (PyErr_Occurred()) SWIG_fail;
37208 }
37209 {
37210 PyThreadState* __tstate = wxPyBeginAllowThreads();
37211 (arg1)->AddGrowableCol(arg2,arg3);
37212
37213 wxPyEndAllowThreads(__tstate);
37214 if (PyErr_Occurred()) SWIG_fail;
37215 }
37216 Py_INCREF(Py_None); resultobj = Py_None;
37217 return resultobj;
37218 fail:
37219 return NULL;
37220}
37221
37222
c32bde28 37223static PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
37224 PyObject *resultobj;
37225 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
37226 size_t arg2 ;
37227 PyObject * obj0 = 0 ;
37228 PyObject * obj1 = 0 ;
37229 char *kwnames[] = {
37230 (char *) "self",(char *) "idx", NULL
37231 };
37232
37233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) goto fail;
37234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
37235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 37236 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
d55e5bfc
RD
37237 if (PyErr_Occurred()) SWIG_fail;
37238 {
37239 PyThreadState* __tstate = wxPyBeginAllowThreads();
37240 (arg1)->RemoveGrowableCol(arg2);
37241
37242 wxPyEndAllowThreads(__tstate);
37243 if (PyErr_Occurred()) SWIG_fail;
37244 }
37245 Py_INCREF(Py_None); resultobj = Py_None;
37246 return resultobj;
37247 fail:
37248 return NULL;
37249}
37250
37251
c32bde28 37252static PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
37253 PyObject *resultobj;
37254 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
37255 int arg2 ;
37256 PyObject * obj0 = 0 ;
37257 PyObject * obj1 = 0 ;
37258 char *kwnames[] = {
37259 (char *) "self",(char *) "direction", NULL
37260 };
37261
37262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&obj1)) goto fail;
37263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
37264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 37265 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
37266 if (PyErr_Occurred()) SWIG_fail;
37267 {
37268 PyThreadState* __tstate = wxPyBeginAllowThreads();
37269 (arg1)->SetFlexibleDirection(arg2);
37270
37271 wxPyEndAllowThreads(__tstate);
37272 if (PyErr_Occurred()) SWIG_fail;
37273 }
37274 Py_INCREF(Py_None); resultobj = Py_None;
37275 return resultobj;
37276 fail:
37277 return NULL;
37278}
37279
37280
c32bde28 37281static PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
37282 PyObject *resultobj;
37283 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
37284 int result;
37285 PyObject * obj0 = 0 ;
37286 char *kwnames[] = {
37287 (char *) "self", NULL
37288 };
37289
37290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetFlexibleDirection",kwnames,&obj0)) goto fail;
37291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
37292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37293 {
37294 PyThreadState* __tstate = wxPyBeginAllowThreads();
37295 result = (int)(arg1)->GetFlexibleDirection();
37296
37297 wxPyEndAllowThreads(__tstate);
37298 if (PyErr_Occurred()) SWIG_fail;
37299 }
c32bde28 37300 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
37301 return resultobj;
37302 fail:
37303 return NULL;
37304}
37305
37306
c32bde28 37307static PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
37308 PyObject *resultobj;
37309 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
37310 int arg2 ;
37311 PyObject * obj0 = 0 ;
37312 PyObject * obj1 = 0 ;
37313 char *kwnames[] = {
37314 (char *) "self",(char *) "mode", NULL
37315 };
37316
37317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&obj1)) goto fail;
37318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
37319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 37320 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
37321 if (PyErr_Occurred()) SWIG_fail;
37322 {
37323 PyThreadState* __tstate = wxPyBeginAllowThreads();
37324 (arg1)->SetNonFlexibleGrowMode((wxFlexSizerGrowMode )arg2);
37325
37326 wxPyEndAllowThreads(__tstate);
37327 if (PyErr_Occurred()) SWIG_fail;
37328 }
37329 Py_INCREF(Py_None); resultobj = Py_None;
37330 return resultobj;
37331 fail:
37332 return NULL;
37333}
37334
37335
c32bde28 37336static PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
37337 PyObject *resultobj;
37338 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
37339 int result;
37340 PyObject * obj0 = 0 ;
37341 char *kwnames[] = {
37342 (char *) "self", NULL
37343 };
37344
37345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetNonFlexibleGrowMode",kwnames,&obj0)) goto fail;
37346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
37347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37348 {
37349 PyThreadState* __tstate = wxPyBeginAllowThreads();
37350 result = (int)(arg1)->GetNonFlexibleGrowMode();
37351
37352 wxPyEndAllowThreads(__tstate);
37353 if (PyErr_Occurred()) SWIG_fail;
37354 }
c32bde28 37355 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
37356 return resultobj;
37357 fail:
37358 return NULL;
37359}
37360
37361
c32bde28 37362static PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
37363 PyObject *resultobj;
37364 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
37365 wxArrayInt *result;
37366 PyObject * obj0 = 0 ;
37367 char *kwnames[] = {
37368 (char *) "self", NULL
37369 };
37370
37371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetRowHeights",kwnames,&obj0)) goto fail;
37372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
37373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37374 {
37375 PyThreadState* __tstate = wxPyBeginAllowThreads();
37376 {
37377 wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights();
37378 result = (wxArrayInt *) &_result_ref;
37379 }
37380
37381 wxPyEndAllowThreads(__tstate);
37382 if (PyErr_Occurred()) SWIG_fail;
37383 }
37384 {
37385 resultobj = PyList_New(0);
37386 size_t idx;
37387 for (idx = 0; idx < result->GetCount(); idx += 1) {
37388 PyObject* val = PyInt_FromLong( result->Item(idx) );
37389 PyList_Append(resultobj, val);
37390 Py_DECREF(val);
37391 }
37392 }
37393 return resultobj;
37394 fail:
37395 return NULL;
37396}
37397
37398
c32bde28 37399static PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
37400 PyObject *resultobj;
37401 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
37402 wxArrayInt *result;
37403 PyObject * obj0 = 0 ;
37404 char *kwnames[] = {
37405 (char *) "self", NULL
37406 };
37407
37408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetColWidths",kwnames,&obj0)) goto fail;
37409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
37410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37411 {
37412 PyThreadState* __tstate = wxPyBeginAllowThreads();
37413 {
37414 wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths();
37415 result = (wxArrayInt *) &_result_ref;
37416 }
37417
37418 wxPyEndAllowThreads(__tstate);
37419 if (PyErr_Occurred()) SWIG_fail;
37420 }
37421 {
37422 resultobj = PyList_New(0);
37423 size_t idx;
37424 for (idx = 0; idx < result->GetCount(); idx += 1) {
37425 PyObject* val = PyInt_FromLong( result->Item(idx) );
37426 PyList_Append(resultobj, val);
37427 Py_DECREF(val);
37428 }
37429 }
37430 return resultobj;
37431 fail:
37432 return NULL;
37433}
37434
37435
c32bde28 37436static PyObject * FlexGridSizer_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
37437 PyObject *obj;
37438 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
37439 SWIG_TypeClientData(SWIGTYPE_p_wxFlexGridSizer, obj);
37440 Py_INCREF(obj);
37441 return Py_BuildValue((char *)"");
37442}
c32bde28 37443static PyObject *_wrap_new_GBPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
37444 PyObject *resultobj;
37445 int arg1 = (int) 0 ;
37446 int arg2 = (int) 0 ;
37447 wxGBPosition *result;
37448 PyObject * obj0 = 0 ;
37449 PyObject * obj1 = 0 ;
37450 char *kwnames[] = {
37451 (char *) "row",(char *) "col", NULL
37452 };
37453
37454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBPosition",kwnames,&obj0,&obj1)) goto fail;
37455 if (obj0) {
c32bde28 37456 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
37457 if (PyErr_Occurred()) SWIG_fail;
37458 }
37459 if (obj1) {
c32bde28 37460 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
37461 if (PyErr_Occurred()) SWIG_fail;
37462 }
37463 {
37464 PyThreadState* __tstate = wxPyBeginAllowThreads();
37465 result = (wxGBPosition *)new wxGBPosition(arg1,arg2);
37466
37467 wxPyEndAllowThreads(__tstate);
37468 if (PyErr_Occurred()) SWIG_fail;
37469 }
37470 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBPosition, 1);
37471 return resultobj;
37472 fail:
37473 return NULL;
37474}
37475
37476
c32bde28 37477static PyObject *_wrap_GBPosition_GetRow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
37478 PyObject *resultobj;
37479 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
37480 int result;
37481 PyObject * obj0 = 0 ;
37482 char *kwnames[] = {
37483 (char *) "self", NULL
37484 };
37485
37486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetRow",kwnames,&obj0)) goto fail;
37487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
37488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37489 {
37490 PyThreadState* __tstate = wxPyBeginAllowThreads();
37491 result = (int)((wxGBPosition const *)arg1)->GetRow();
37492
37493 wxPyEndAllowThreads(__tstate);
37494 if (PyErr_Occurred()) SWIG_fail;
37495 }
c32bde28 37496 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
37497 return resultobj;
37498 fail:
37499 return NULL;
37500}
37501
37502
c32bde28 37503static PyObject *_wrap_GBPosition_GetCol(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
37504 PyObject *resultobj;
37505 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
37506 int result;
37507 PyObject * obj0 = 0 ;
37508 char *kwnames[] = {
37509 (char *) "self", NULL
37510 };
37511
37512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetCol",kwnames,&obj0)) goto fail;
37513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
37514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37515 {
37516 PyThreadState* __tstate = wxPyBeginAllowThreads();
37517 result = (int)((wxGBPosition const *)arg1)->GetCol();
37518
37519 wxPyEndAllowThreads(__tstate);
37520 if (PyErr_Occurred()) SWIG_fail;
37521 }
c32bde28 37522 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
37523 return resultobj;
37524 fail:
37525 return NULL;
37526}
37527
37528
c32bde28 37529static PyObject *_wrap_GBPosition_SetRow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
37530 PyObject *resultobj;
37531 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
37532 int arg2 ;
37533 PyObject * obj0 = 0 ;
37534 PyObject * obj1 = 0 ;
37535 char *kwnames[] = {
37536 (char *) "self",(char *) "row", NULL
37537 };
37538
37539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetRow",kwnames,&obj0,&obj1)) goto fail;
37540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
37541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 37542 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
37543 if (PyErr_Occurred()) SWIG_fail;
37544 {
37545 PyThreadState* __tstate = wxPyBeginAllowThreads();
37546 (arg1)->SetRow(arg2);
37547
37548 wxPyEndAllowThreads(__tstate);
37549 if (PyErr_Occurred()) SWIG_fail;
37550 }
37551 Py_INCREF(Py_None); resultobj = Py_None;
37552 return resultobj;
37553 fail:
37554 return NULL;
37555}
37556
37557
c32bde28 37558static PyObject *_wrap_GBPosition_SetCol(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
37559 PyObject *resultobj;
37560 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
37561 int arg2 ;
37562 PyObject * obj0 = 0 ;
37563 PyObject * obj1 = 0 ;
37564 char *kwnames[] = {
37565 (char *) "self",(char *) "col", NULL
37566 };
37567
37568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetCol",kwnames,&obj0,&obj1)) goto fail;
37569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
37570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 37571 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
37572 if (PyErr_Occurred()) SWIG_fail;
37573 {
37574 PyThreadState* __tstate = wxPyBeginAllowThreads();
37575 (arg1)->SetCol(arg2);
37576
37577 wxPyEndAllowThreads(__tstate);
37578 if (PyErr_Occurred()) SWIG_fail;
37579 }
37580 Py_INCREF(Py_None); resultobj = Py_None;
37581 return resultobj;
37582 fail:
37583 return NULL;
37584}
37585
37586
c32bde28 37587static PyObject *_wrap_GBPosition___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
37588 PyObject *resultobj;
37589 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
37590 wxGBPosition *arg2 = 0 ;
37591 bool result;
37592 wxGBPosition temp2 ;
37593 PyObject * obj0 = 0 ;
37594 PyObject * obj1 = 0 ;
37595 char *kwnames[] = {
37596 (char *) "self",(char *) "other", NULL
37597 };
37598
37599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) goto fail;
37600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
37601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37602 {
37603 arg2 = &temp2;
37604 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
37605 }
37606 {
37607 PyThreadState* __tstate = wxPyBeginAllowThreads();
37608 result = (bool)(arg1)->operator ==((wxGBPosition const &)*arg2);
37609
37610 wxPyEndAllowThreads(__tstate);
37611 if (PyErr_Occurred()) SWIG_fail;
37612 }
37613 {
37614 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37615 }
37616 return resultobj;
37617 fail:
37618 return NULL;
37619}
37620
37621
c32bde28 37622static PyObject *_wrap_GBPosition___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
37623 PyObject *resultobj;
37624 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
37625 wxGBPosition *arg2 = 0 ;
37626 bool result;
37627 wxGBPosition temp2 ;
37628 PyObject * obj0 = 0 ;
37629 PyObject * obj1 = 0 ;
37630 char *kwnames[] = {
37631 (char *) "self",(char *) "other", NULL
37632 };
37633
37634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) goto fail;
37635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
37636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37637 {
37638 arg2 = &temp2;
37639 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
37640 }
37641 {
37642 PyThreadState* __tstate = wxPyBeginAllowThreads();
37643 result = (bool)(arg1)->operator !=((wxGBPosition const &)*arg2);
37644
37645 wxPyEndAllowThreads(__tstate);
37646 if (PyErr_Occurred()) SWIG_fail;
37647 }
37648 {
37649 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37650 }
37651 return resultobj;
37652 fail:
37653 return NULL;
37654}
37655
37656
c32bde28 37657static PyObject *_wrap_GBPosition_Set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
37658 PyObject *resultobj;
37659 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
37660 int arg2 = (int) 0 ;
37661 int arg3 = (int) 0 ;
37662 PyObject * obj0 = 0 ;
37663 PyObject * obj1 = 0 ;
37664 PyObject * obj2 = 0 ;
37665 char *kwnames[] = {
37666 (char *) "self",(char *) "row",(char *) "col", NULL
37667 };
37668
37669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBPosition_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
37670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
37671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37672 if (obj1) {
c32bde28 37673 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
37674 if (PyErr_Occurred()) SWIG_fail;
37675 }
37676 if (obj2) {
c32bde28 37677 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
37678 if (PyErr_Occurred()) SWIG_fail;
37679 }
37680 {
37681 PyThreadState* __tstate = wxPyBeginAllowThreads();
37682 wxGBPosition_Set(arg1,arg2,arg3);
37683
37684 wxPyEndAllowThreads(__tstate);
37685 if (PyErr_Occurred()) SWIG_fail;
37686 }
37687 Py_INCREF(Py_None); resultobj = Py_None;
37688 return resultobj;
37689 fail:
37690 return NULL;
37691}
37692
37693
c32bde28 37694static PyObject *_wrap_GBPosition_Get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
37695 PyObject *resultobj;
37696 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
37697 PyObject *result;
37698 PyObject * obj0 = 0 ;
37699 char *kwnames[] = {
37700 (char *) "self", NULL
37701 };
37702
37703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_Get",kwnames,&obj0)) goto fail;
37704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
37705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37706 {
37707 PyThreadState* __tstate = wxPyBeginAllowThreads();
37708 result = (PyObject *)wxGBPosition_Get(arg1);
37709
37710 wxPyEndAllowThreads(__tstate);
37711 if (PyErr_Occurred()) SWIG_fail;
37712 }
37713 resultobj = result;
37714 return resultobj;
37715 fail:
37716 return NULL;
37717}
37718
37719
c32bde28 37720static PyObject * GBPosition_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
37721 PyObject *obj;
37722 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
37723 SWIG_TypeClientData(SWIGTYPE_p_wxGBPosition, obj);
37724 Py_INCREF(obj);
37725 return Py_BuildValue((char *)"");
37726}
c32bde28 37727static PyObject *_wrap_new_GBSpan(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
37728 PyObject *resultobj;
37729 int arg1 = (int) 1 ;
37730 int arg2 = (int) 1 ;
37731 wxGBSpan *result;
37732 PyObject * obj0 = 0 ;
37733 PyObject * obj1 = 0 ;
37734 char *kwnames[] = {
37735 (char *) "rowspan",(char *) "colspan", NULL
37736 };
37737
37738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBSpan",kwnames,&obj0,&obj1)) goto fail;
37739 if (obj0) {
c32bde28 37740 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
37741 if (PyErr_Occurred()) SWIG_fail;
37742 }
37743 if (obj1) {
c32bde28 37744 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
37745 if (PyErr_Occurred()) SWIG_fail;
37746 }
37747 {
37748 PyThreadState* __tstate = wxPyBeginAllowThreads();
37749 result = (wxGBSpan *)new wxGBSpan(arg1,arg2);
37750
37751 wxPyEndAllowThreads(__tstate);
37752 if (PyErr_Occurred()) SWIG_fail;
37753 }
37754 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSpan, 1);
37755 return resultobj;
37756 fail:
37757 return NULL;
37758}
37759
37760
c32bde28 37761static PyObject *_wrap_GBSpan_GetRowspan(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
37762 PyObject *resultobj;
37763 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37764 int result;
37765 PyObject * obj0 = 0 ;
37766 char *kwnames[] = {
37767 (char *) "self", NULL
37768 };
37769
37770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetRowspan",kwnames,&obj0)) goto fail;
37771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37773 {
37774 PyThreadState* __tstate = wxPyBeginAllowThreads();
37775 result = (int)((wxGBSpan const *)arg1)->GetRowspan();
37776
37777 wxPyEndAllowThreads(__tstate);
37778 if (PyErr_Occurred()) SWIG_fail;
37779 }
c32bde28 37780 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
37781 return resultobj;
37782 fail:
37783 return NULL;
37784}
37785
37786
c32bde28 37787static PyObject *_wrap_GBSpan_GetColspan(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
37788 PyObject *resultobj;
37789 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37790 int result;
37791 PyObject * obj0 = 0 ;
37792 char *kwnames[] = {
37793 (char *) "self", NULL
37794 };
37795
37796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetColspan",kwnames,&obj0)) goto fail;
37797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37799 {
37800 PyThreadState* __tstate = wxPyBeginAllowThreads();
37801 result = (int)((wxGBSpan const *)arg1)->GetColspan();
37802
37803 wxPyEndAllowThreads(__tstate);
37804 if (PyErr_Occurred()) SWIG_fail;
37805 }
c32bde28 37806 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
37807 return resultobj;
37808 fail:
37809 return NULL;
37810}
37811
37812
c32bde28 37813static PyObject *_wrap_GBSpan_SetRowspan(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
37814 PyObject *resultobj;
37815 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37816 int arg2 ;
37817 PyObject * obj0 = 0 ;
37818 PyObject * obj1 = 0 ;
37819 char *kwnames[] = {
37820 (char *) "self",(char *) "rowspan", NULL
37821 };
37822
37823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetRowspan",kwnames,&obj0,&obj1)) goto fail;
37824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 37826 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
37827 if (PyErr_Occurred()) SWIG_fail;
37828 {
37829 PyThreadState* __tstate = wxPyBeginAllowThreads();
37830 (arg1)->SetRowspan(arg2);
37831
37832 wxPyEndAllowThreads(__tstate);
37833 if (PyErr_Occurred()) SWIG_fail;
37834 }
37835 Py_INCREF(Py_None); resultobj = Py_None;
37836 return resultobj;
37837 fail:
37838 return NULL;
37839}
37840
37841
c32bde28 37842static PyObject *_wrap_GBSpan_SetColspan(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
37843 PyObject *resultobj;
37844 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37845 int arg2 ;
37846 PyObject * obj0 = 0 ;
37847 PyObject * obj1 = 0 ;
37848 char *kwnames[] = {
37849 (char *) "self",(char *) "colspan", NULL
37850 };
37851
37852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetColspan",kwnames,&obj0,&obj1)) goto fail;
37853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 37855 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
37856 if (PyErr_Occurred()) SWIG_fail;
37857 {
37858 PyThreadState* __tstate = wxPyBeginAllowThreads();
37859 (arg1)->SetColspan(arg2);
37860
37861 wxPyEndAllowThreads(__tstate);
37862 if (PyErr_Occurred()) SWIG_fail;
37863 }
37864 Py_INCREF(Py_None); resultobj = Py_None;
37865 return resultobj;
37866 fail:
37867 return NULL;
37868}
37869
37870
c32bde28 37871static PyObject *_wrap_GBSpan___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
37872 PyObject *resultobj;
37873 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37874 wxGBSpan *arg2 = 0 ;
37875 bool result;
37876 wxGBSpan temp2 ;
37877 PyObject * obj0 = 0 ;
37878 PyObject * obj1 = 0 ;
37879 char *kwnames[] = {
37880 (char *) "self",(char *) "other", NULL
37881 };
37882
37883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
37884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37886 {
37887 arg2 = &temp2;
37888 if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail;
37889 }
37890 {
37891 PyThreadState* __tstate = wxPyBeginAllowThreads();
37892 result = (bool)(arg1)->operator ==((wxGBSpan const &)*arg2);
37893
37894 wxPyEndAllowThreads(__tstate);
37895 if (PyErr_Occurred()) SWIG_fail;
37896 }
37897 {
37898 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37899 }
37900 return resultobj;
37901 fail:
37902 return NULL;
37903}
37904
37905
c32bde28 37906static PyObject *_wrap_GBSpan___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
37907 PyObject *resultobj;
37908 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37909 wxGBSpan *arg2 = 0 ;
37910 bool result;
37911 wxGBSpan temp2 ;
37912 PyObject * obj0 = 0 ;
37913 PyObject * obj1 = 0 ;
37914 char *kwnames[] = {
37915 (char *) "self",(char *) "other", NULL
37916 };
37917
37918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
37919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37921 {
37922 arg2 = &temp2;
37923 if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail;
37924 }
37925 {
37926 PyThreadState* __tstate = wxPyBeginAllowThreads();
37927 result = (bool)(arg1)->operator !=((wxGBSpan const &)*arg2);
37928
37929 wxPyEndAllowThreads(__tstate);
37930 if (PyErr_Occurred()) SWIG_fail;
37931 }
37932 {
37933 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37934 }
37935 return resultobj;
37936 fail:
37937 return NULL;
37938}
37939
37940
c32bde28 37941static PyObject *_wrap_GBSpan_Set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
37942 PyObject *resultobj;
37943 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37944 int arg2 = (int) 1 ;
37945 int arg3 = (int) 1 ;
37946 PyObject * obj0 = 0 ;
37947 PyObject * obj1 = 0 ;
37948 PyObject * obj2 = 0 ;
37949 char *kwnames[] = {
37950 (char *) "self",(char *) "rowspan",(char *) "colspan", NULL
37951 };
37952
37953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBSpan_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
37954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37956 if (obj1) {
c32bde28 37957 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
37958 if (PyErr_Occurred()) SWIG_fail;
37959 }
37960 if (obj2) {
c32bde28 37961 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
37962 if (PyErr_Occurred()) SWIG_fail;
37963 }
37964 {
37965 PyThreadState* __tstate = wxPyBeginAllowThreads();
37966 wxGBSpan_Set(arg1,arg2,arg3);
37967
37968 wxPyEndAllowThreads(__tstate);
37969 if (PyErr_Occurred()) SWIG_fail;
37970 }
37971 Py_INCREF(Py_None); resultobj = Py_None;
37972 return resultobj;
37973 fail:
37974 return NULL;
37975}
37976
37977
c32bde28 37978static PyObject *_wrap_GBSpan_Get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
37979 PyObject *resultobj;
37980 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37981 PyObject *result;
37982 PyObject * obj0 = 0 ;
37983 char *kwnames[] = {
37984 (char *) "self", NULL
37985 };
37986
37987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_Get",kwnames,&obj0)) goto fail;
37988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37990 {
37991 PyThreadState* __tstate = wxPyBeginAllowThreads();
37992 result = (PyObject *)wxGBSpan_Get(arg1);
37993
37994 wxPyEndAllowThreads(__tstate);
37995 if (PyErr_Occurred()) SWIG_fail;
37996 }
37997 resultobj = result;
37998 return resultobj;
37999 fail:
38000 return NULL;
38001}
38002
38003
c32bde28 38004static PyObject * GBSpan_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
38005 PyObject *obj;
38006 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
38007 SWIG_TypeClientData(SWIGTYPE_p_wxGBSpan, obj);
38008 Py_INCREF(obj);
38009 return Py_BuildValue((char *)"");
38010}
c32bde28 38011static int _wrap_DefaultSpan_set(PyObject *) {
d55e5bfc
RD
38012 PyErr_SetString(PyExc_TypeError,"Variable DefaultSpan is read-only.");
38013 return 1;
38014}
38015
38016
38017static PyObject *_wrap_DefaultSpan_get() {
38018 PyObject *pyobj;
38019
38020 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSpan), SWIGTYPE_p_wxGBSpan, 0);
38021 return pyobj;
38022}
38023
38024
c32bde28 38025static PyObject *_wrap_new_GBSizerItem(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
38026 PyObject *resultobj;
38027 wxGBSizerItem *result;
38028 char *kwnames[] = {
38029 NULL
38030 };
38031
38032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GBSizerItem",kwnames)) goto fail;
38033 {
38034 PyThreadState* __tstate = wxPyBeginAllowThreads();
38035 result = (wxGBSizerItem *)new wxGBSizerItem();
38036
38037 wxPyEndAllowThreads(__tstate);
38038 if (PyErr_Occurred()) SWIG_fail;
38039 }
38040 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1);
38041 return resultobj;
38042 fail:
38043 return NULL;
38044}
38045
38046
c32bde28 38047static PyObject *_wrap_new_GBSizerItemWindow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
38048 PyObject *resultobj;
38049 wxWindow *arg1 = (wxWindow *) 0 ;
38050 wxGBPosition *arg2 = 0 ;
38051 wxGBSpan *arg3 = 0 ;
38052 int arg4 ;
38053 int arg5 ;
248ed943 38054 PyObject *arg6 = (PyObject *) NULL ;
d55e5bfc
RD
38055 wxGBSizerItem *result;
38056 wxGBPosition temp2 ;
38057 wxGBSpan temp3 ;
38058 PyObject * obj0 = 0 ;
38059 PyObject * obj1 = 0 ;
38060 PyObject * obj2 = 0 ;
38061 PyObject * obj3 = 0 ;
38062 PyObject * obj4 = 0 ;
38063 PyObject * obj5 = 0 ;
38064 char *kwnames[] = {
38065 (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
38066 };
38067
248ed943 38068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
d55e5bfc
RD
38069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
38070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38071 {
38072 arg2 = &temp2;
38073 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
38074 }
38075 {
38076 arg3 = &temp3;
38077 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
38078 }
c32bde28 38079 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 38080 if (PyErr_Occurred()) SWIG_fail;
c32bde28 38081 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc 38082 if (PyErr_Occurred()) SWIG_fail;
248ed943
RD
38083 if (obj5) {
38084 arg6 = obj5;
38085 }
d55e5bfc
RD
38086 {
38087 PyThreadState* __tstate = wxPyBeginAllowThreads();
248ed943 38088 result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6);
d55e5bfc
RD
38089
38090 wxPyEndAllowThreads(__tstate);
38091 if (PyErr_Occurred()) SWIG_fail;
38092 }
38093 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1);
38094 return resultobj;
38095 fail:
38096 return NULL;
38097}
38098
38099
c32bde28 38100static PyObject *_wrap_new_GBSizerItemSizer(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
38101 PyObject *resultobj;
38102 wxSizer *arg1 = (wxSizer *) 0 ;
38103 wxGBPosition *arg2 = 0 ;
38104 wxGBSpan *arg3 = 0 ;
38105 int arg4 ;
38106 int arg5 ;
248ed943 38107 PyObject *arg6 = (PyObject *) NULL ;
d55e5bfc
RD
38108 wxGBSizerItem *result;
38109 wxGBPosition temp2 ;
38110 wxGBSpan temp3 ;
38111 PyObject * obj0 = 0 ;
38112 PyObject * obj1 = 0 ;
38113 PyObject * obj2 = 0 ;
38114 PyObject * obj3 = 0 ;
38115 PyObject * obj4 = 0 ;
38116 PyObject * obj5 = 0 ;
38117 char *kwnames[] = {
38118 (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
38119 };
38120
248ed943 38121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
d55e5bfc
RD
38122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
38123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38124 {
38125 arg2 = &temp2;
38126 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
38127 }
38128 {
38129 arg3 = &temp3;
38130 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
38131 }
c32bde28 38132 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc 38133 if (PyErr_Occurred()) SWIG_fail;
c32bde28 38134 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc 38135 if (PyErr_Occurred()) SWIG_fail;
248ed943
RD
38136 if (obj5) {
38137 arg6 = obj5;
38138 }
d55e5bfc
RD
38139 {
38140 PyThreadState* __tstate = wxPyBeginAllowThreads();
248ed943 38141 result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6);
d55e5bfc
RD
38142
38143 wxPyEndAllowThreads(__tstate);
38144 if (PyErr_Occurred()) SWIG_fail;
38145 }
38146 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1);
38147 return resultobj;
38148 fail:
38149 return NULL;
38150}
38151
38152
c32bde28 38153static PyObject *_wrap_new_GBSizerItemSpacer(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
38154 PyObject *resultobj;
38155 int arg1 ;
38156 int arg2 ;
38157 wxGBPosition *arg3 = 0 ;
38158 wxGBSpan *arg4 = 0 ;
38159 int arg5 ;
38160 int arg6 ;
248ed943 38161 PyObject *arg7 = (PyObject *) NULL ;
d55e5bfc
RD
38162 wxGBSizerItem *result;
38163 wxGBPosition temp3 ;
38164 wxGBSpan temp4 ;
38165 PyObject * obj0 = 0 ;
38166 PyObject * obj1 = 0 ;
38167 PyObject * obj2 = 0 ;
38168 PyObject * obj3 = 0 ;
38169 PyObject * obj4 = 0 ;
38170 PyObject * obj5 = 0 ;
38171 PyObject * obj6 = 0 ;
38172 char *kwnames[] = {
38173 (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
38174 };
38175
248ed943 38176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:new_GBSizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
c32bde28 38177 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc 38178 if (PyErr_Occurred()) SWIG_fail;
c32bde28 38179 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
38180 if (PyErr_Occurred()) SWIG_fail;
38181 {
38182 arg3 = &temp3;
38183 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
38184 }
38185 {
38186 arg4 = &temp4;
38187 if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail;
38188 }
c32bde28 38189 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc 38190 if (PyErr_Occurred()) SWIG_fail;
c32bde28 38191 arg6 = (int)SWIG_As_int(obj5);
d55e5bfc 38192 if (PyErr_Occurred()) SWIG_fail;
248ed943
RD
38193 if (obj6) {
38194 arg7 = obj6;
38195 }
d55e5bfc
RD
38196 {
38197 PyThreadState* __tstate = wxPyBeginAllowThreads();
248ed943 38198 result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7);
d55e5bfc
RD
38199
38200 wxPyEndAllowThreads(__tstate);
38201 if (PyErr_Occurred()) SWIG_fail;
38202 }
38203 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1);
38204 return resultobj;
38205 fail:
38206 return NULL;
38207}
38208
38209
c32bde28 38210static PyObject *_wrap_GBSizerItem_GetPos(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
38211 PyObject *resultobj;
38212 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
38213 wxGBPosition result;
38214 PyObject * obj0 = 0 ;
38215 char *kwnames[] = {
38216 (char *) "self", NULL
38217 };
38218
38219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetPos",kwnames,&obj0)) goto fail;
38220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
38221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38222 {
38223 PyThreadState* __tstate = wxPyBeginAllowThreads();
38224 result = ((wxGBSizerItem const *)arg1)->GetPos();
38225
38226 wxPyEndAllowThreads(__tstate);
38227 if (PyErr_Occurred()) SWIG_fail;
38228 }
38229 {
38230 wxGBPosition * resultptr;
38231 resultptr = new wxGBPosition((wxGBPosition &) result);
38232 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1);
38233 }
38234 return resultobj;
38235 fail:
38236 return NULL;
38237}
38238
38239
c32bde28 38240static PyObject *_wrap_GBSizerItem_GetSpan(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
38241 PyObject *resultobj;
38242 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
38243 wxGBSpan result;
38244 PyObject * obj0 = 0 ;
38245 char *kwnames[] = {
38246 (char *) "self", NULL
38247 };
38248
38249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetSpan",kwnames,&obj0)) goto fail;
38250 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
38251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38252 {
38253 PyThreadState* __tstate = wxPyBeginAllowThreads();
38254 result = ((wxGBSizerItem const *)arg1)->GetSpan();
38255
38256 wxPyEndAllowThreads(__tstate);
38257 if (PyErr_Occurred()) SWIG_fail;
38258 }
38259 {
38260 wxGBSpan * resultptr;
38261 resultptr = new wxGBSpan((wxGBSpan &) result);
38262 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1);
38263 }
38264 return resultobj;
38265 fail:
38266 return NULL;
38267}
38268
38269
c32bde28 38270static PyObject *_wrap_GBSizerItem_SetPos(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
38271 PyObject *resultobj;
38272 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
38273 wxGBPosition *arg2 = 0 ;
38274 bool result;
38275 wxGBPosition temp2 ;
38276 PyObject * obj0 = 0 ;
38277 PyObject * obj1 = 0 ;
38278 char *kwnames[] = {
38279 (char *) "self",(char *) "pos", NULL
38280 };
38281
38282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) goto fail;
38283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
38284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38285 {
38286 arg2 = &temp2;
38287 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
38288 }
38289 {
38290 PyThreadState* __tstate = wxPyBeginAllowThreads();
38291 result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2);
38292
38293 wxPyEndAllowThreads(__tstate);
38294 if (PyErr_Occurred()) SWIG_fail;
38295 }
38296 {
38297 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38298 }
38299 return resultobj;
38300 fail:
38301 return NULL;
38302}
38303
38304
c32bde28 38305static PyObject *_wrap_GBSizerItem_SetSpan(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
38306 PyObject *resultobj;
38307 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
38308 wxGBSpan *arg2 = 0 ;
38309 bool result;
38310 wxGBSpan temp2 ;
38311 PyObject * obj0 = 0 ;
38312 PyObject * obj1 = 0 ;
38313 char *kwnames[] = {
38314 (char *) "self",(char *) "span", NULL
38315 };
38316
38317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) goto fail;
38318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
38319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38320 {
38321 arg2 = &temp2;
38322 if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail;
38323 }
38324 {
38325 PyThreadState* __tstate = wxPyBeginAllowThreads();
38326 result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2);
38327
38328 wxPyEndAllowThreads(__tstate);
38329 if (PyErr_Occurred()) SWIG_fail;
38330 }
38331 {
38332 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38333 }
38334 return resultobj;
38335 fail:
38336 return NULL;
38337}
38338
38339
c32bde28 38340static PyObject *_wrap_GBSizerItem_Intersects(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
38341 PyObject *resultobj;
38342 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
38343 wxGBSizerItem *arg2 = 0 ;
38344 bool result;
38345 PyObject * obj0 = 0 ;
38346 PyObject * obj1 = 0 ;
248ed943
RD
38347 char *kwnames[] = {
38348 (char *) "self",(char *) "other", NULL
38349 };
d55e5bfc 38350
248ed943 38351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_Intersects",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
38352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
38353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38354 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem,
38355 SWIG_POINTER_EXCEPTION | 0)) == -1)
38356 SWIG_fail;
38357 if (arg2 == NULL) {
38358 PyErr_SetString(PyExc_TypeError,"null reference");
38359 SWIG_fail;
38360 }
38361 {
38362 PyThreadState* __tstate = wxPyBeginAllowThreads();
38363 result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2);
38364
38365 wxPyEndAllowThreads(__tstate);
38366 if (PyErr_Occurred()) SWIG_fail;
38367 }
38368 {
38369 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38370 }
38371 return resultobj;
38372 fail:
38373 return NULL;
38374}
38375
38376
c32bde28 38377static PyObject *_wrap_GBSizerItem_IntersectsPos(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
38378 PyObject *resultobj;
38379 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
38380 wxGBPosition *arg2 = 0 ;
38381 wxGBSpan *arg3 = 0 ;
38382 bool result;
38383 wxGBPosition temp2 ;
38384 wxGBSpan temp3 ;
38385 PyObject * obj0 = 0 ;
38386 PyObject * obj1 = 0 ;
38387 PyObject * obj2 = 0 ;
248ed943
RD
38388 char *kwnames[] = {
38389 (char *) "self",(char *) "pos",(char *) "span", NULL
38390 };
d55e5bfc 38391
248ed943 38392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_IntersectsPos",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
38393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
38394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38395 {
38396 arg2 = &temp2;
38397 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
38398 }
38399 {
38400 arg3 = &temp3;
38401 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
38402 }
38403 {
38404 PyThreadState* __tstate = wxPyBeginAllowThreads();
38405 result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3);
38406
38407 wxPyEndAllowThreads(__tstate);
38408 if (PyErr_Occurred()) SWIG_fail;
38409 }
38410 {
38411 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38412 }
38413 return resultobj;
38414 fail:
38415 return NULL;
38416}
38417
38418
c32bde28 38419static PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
38420 PyObject *resultobj;
38421 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
248ed943 38422 wxGBPosition result;
d55e5bfc 38423 PyObject * obj0 = 0 ;
d55e5bfc 38424 char *kwnames[] = {
248ed943 38425 (char *) "self", NULL
d55e5bfc
RD
38426 };
38427
248ed943 38428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetEndPos",kwnames,&obj0)) goto fail;
d55e5bfc
RD
38429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
38430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d55e5bfc
RD
38431 {
38432 PyThreadState* __tstate = wxPyBeginAllowThreads();
248ed943 38433 result = wxGBSizerItem_GetEndPos(arg1);
d55e5bfc
RD
38434
38435 wxPyEndAllowThreads(__tstate);
38436 if (PyErr_Occurred()) SWIG_fail;
38437 }
248ed943
RD
38438 {
38439 wxGBPosition * resultptr;
38440 resultptr = new wxGBPosition((wxGBPosition &) result);
38441 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1);
38442 }
d55e5bfc
RD
38443 return resultobj;
38444 fail:
38445 return NULL;
38446}
38447
38448
c32bde28 38449static PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
38450 PyObject *resultobj;
38451 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
38452 wxGridBagSizer *result;
38453 PyObject * obj0 = 0 ;
38454 char *kwnames[] = {
38455 (char *) "self", NULL
38456 };
38457
38458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetGBSizer",kwnames,&obj0)) goto fail;
38459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
38460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38461 {
38462 PyThreadState* __tstate = wxPyBeginAllowThreads();
38463 result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer();
38464
38465 wxPyEndAllowThreads(__tstate);
38466 if (PyErr_Occurred()) SWIG_fail;
38467 }
38468 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 0);
38469 return resultobj;
38470 fail:
38471 return NULL;
38472}
38473
38474
c32bde28 38475static PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
38476 PyObject *resultobj;
38477 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
38478 wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ;
38479 PyObject * obj0 = 0 ;
38480 PyObject * obj1 = 0 ;
38481 char *kwnames[] = {
38482 (char *) "self",(char *) "sizer", NULL
38483 };
38484
38485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) goto fail;
38486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
38487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38488 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridBagSizer,
38489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38490 {
38491 PyThreadState* __tstate = wxPyBeginAllowThreads();
38492 (arg1)->SetGBSizer(arg2);
38493
38494 wxPyEndAllowThreads(__tstate);
38495 if (PyErr_Occurred()) SWIG_fail;
38496 }
38497 Py_INCREF(Py_None); resultobj = Py_None;
38498 return resultobj;
38499 fail:
38500 return NULL;
38501}
38502
38503
c32bde28 38504static PyObject * GBSizerItem_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
38505 PyObject *obj;
38506 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
38507 SWIG_TypeClientData(SWIGTYPE_p_wxGBSizerItem, obj);
38508 Py_INCREF(obj);
38509 return Py_BuildValue((char *)"");
38510}
c32bde28 38511static PyObject *_wrap_new_GridBagSizer(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
38512 PyObject *resultobj;
38513 int arg1 = (int) 0 ;
38514 int arg2 = (int) 0 ;
38515 wxGridBagSizer *result;
38516 PyObject * obj0 = 0 ;
38517 PyObject * obj1 = 0 ;
38518 char *kwnames[] = {
38519 (char *) "vgap",(char *) "hgap", NULL
38520 };
38521
38522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridBagSizer",kwnames,&obj0,&obj1)) goto fail;
38523 if (obj0) {
c32bde28 38524 arg1 = (int)SWIG_As_int(obj0);
d55e5bfc
RD
38525 if (PyErr_Occurred()) SWIG_fail;
38526 }
38527 if (obj1) {
c32bde28 38528 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
38529 if (PyErr_Occurred()) SWIG_fail;
38530 }
38531 {
38532 PyThreadState* __tstate = wxPyBeginAllowThreads();
38533 result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2);
38534
38535 wxPyEndAllowThreads(__tstate);
38536 if (PyErr_Occurred()) SWIG_fail;
38537 }
38538 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 1);
38539 return resultobj;
38540 fail:
38541 return NULL;
38542}
38543
38544
c32bde28 38545static PyObject *_wrap_GridBagSizer_Add(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
38546 PyObject *resultobj;
38547 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38548 PyObject *arg2 = (PyObject *) 0 ;
38549 wxGBPosition *arg3 = 0 ;
38550 wxGBSpan const &arg4_defvalue = wxDefaultSpan ;
38551 wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ;
38552 int arg5 = (int) 0 ;
38553 int arg6 = (int) 0 ;
38554 PyObject *arg7 = (PyObject *) NULL ;
38555 bool result;
38556 wxGBPosition temp3 ;
38557 wxGBSpan temp4 ;
38558 PyObject * obj0 = 0 ;
38559 PyObject * obj1 = 0 ;
38560 PyObject * obj2 = 0 ;
38561 PyObject * obj3 = 0 ;
38562 PyObject * obj4 = 0 ;
38563 PyObject * obj5 = 0 ;
38564 PyObject * obj6 = 0 ;
38565 char *kwnames[] = {
38566 (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
38567 };
38568
38569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
38570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38572 arg2 = obj1;
38573 {
38574 arg3 = &temp3;
38575 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
38576 }
38577 if (obj3) {
38578 {
38579 arg4 = &temp4;
38580 if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail;
38581 }
38582 }
38583 if (obj4) {
c32bde28 38584 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
38585 if (PyErr_Occurred()) SWIG_fail;
38586 }
38587 if (obj5) {
c32bde28 38588 arg6 = (int)SWIG_As_int(obj5);
d55e5bfc
RD
38589 if (PyErr_Occurred()) SWIG_fail;
38590 }
38591 if (obj6) {
38592 arg7 = obj6;
38593 }
38594 {
38595 PyThreadState* __tstate = wxPyBeginAllowThreads();
38596 result = (bool)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7);
38597
38598 wxPyEndAllowThreads(__tstate);
38599 if (PyErr_Occurred()) SWIG_fail;
38600 }
38601 {
38602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38603 }
38604 return resultobj;
38605 fail:
38606 return NULL;
38607}
38608
38609
c32bde28 38610static PyObject *_wrap_GridBagSizer_AddItem(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
38611 PyObject *resultobj;
38612 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38613 wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ;
38614 bool result;
38615 PyObject * obj0 = 0 ;
38616 PyObject * obj1 = 0 ;
38617 char *kwnames[] = {
38618 (char *) "self",(char *) "item", NULL
38619 };
38620
38621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) goto fail;
38622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38624 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem,
38625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38626 {
38627 PyThreadState* __tstate = wxPyBeginAllowThreads();
38628 result = (bool)(arg1)->Add(arg2);
38629
38630 wxPyEndAllowThreads(__tstate);
38631 if (PyErr_Occurred()) SWIG_fail;
38632 }
38633 {
38634 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38635 }
38636 return resultobj;
38637 fail:
38638 return NULL;
38639}
38640
38641
c32bde28 38642static PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
38643 PyObject *resultobj;
38644 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38645 wxSize result;
38646 PyObject * obj0 = 0 ;
38647 char *kwnames[] = {
38648 (char *) "self", NULL
38649 };
38650
38651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_GetEmptyCellSize",kwnames,&obj0)) goto fail;
38652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38654 {
38655 PyThreadState* __tstate = wxPyBeginAllowThreads();
38656 result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize();
38657
38658 wxPyEndAllowThreads(__tstate);
38659 if (PyErr_Occurred()) SWIG_fail;
38660 }
38661 {
38662 wxSize * resultptr;
38663 resultptr = new wxSize((wxSize &) result);
38664 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
38665 }
38666 return resultobj;
38667 fail:
38668 return NULL;
38669}
38670
38671
c32bde28 38672static PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
38673 PyObject *resultobj;
38674 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38675 wxSize *arg2 = 0 ;
38676 wxSize temp2 ;
38677 PyObject * obj0 = 0 ;
38678 PyObject * obj1 = 0 ;
38679 char *kwnames[] = {
38680 (char *) "self",(char *) "sz", NULL
38681 };
38682
38683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) goto fail;
38684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38686 {
38687 arg2 = &temp2;
38688 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
38689 }
38690 {
38691 PyThreadState* __tstate = wxPyBeginAllowThreads();
38692 (arg1)->SetEmptyCellSize((wxSize const &)*arg2);
38693
38694 wxPyEndAllowThreads(__tstate);
38695 if (PyErr_Occurred()) SWIG_fail;
38696 }
38697 Py_INCREF(Py_None); resultobj = Py_None;
38698 return resultobj;
38699 fail:
38700 return NULL;
38701}
38702
38703
c32bde28 38704static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *, PyObject *args) {
d55e5bfc
RD
38705 PyObject *resultobj;
38706 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38707 wxWindow *arg2 = (wxWindow *) 0 ;
38708 wxGBPosition result;
38709 PyObject * obj0 = 0 ;
38710 PyObject * obj1 = 0 ;
38711
38712 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail;
38713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38715 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
38716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38717 {
38718 PyThreadState* __tstate = wxPyBeginAllowThreads();
38719 result = (arg1)->GetItemPosition(arg2);
38720
38721 wxPyEndAllowThreads(__tstate);
38722 if (PyErr_Occurred()) SWIG_fail;
38723 }
38724 {
38725 wxGBPosition * resultptr;
38726 resultptr = new wxGBPosition((wxGBPosition &) result);
38727 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1);
38728 }
38729 return resultobj;
38730 fail:
38731 return NULL;
38732}
38733
38734
c32bde28 38735static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *, PyObject *args) {
d55e5bfc
RD
38736 PyObject *resultobj;
38737 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38738 wxSizer *arg2 = (wxSizer *) 0 ;
38739 wxGBPosition result;
38740 PyObject * obj0 = 0 ;
38741 PyObject * obj1 = 0 ;
38742
38743 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail;
38744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38746 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
38747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38748 {
38749 PyThreadState* __tstate = wxPyBeginAllowThreads();
38750 result = (arg1)->GetItemPosition(arg2);
38751
38752 wxPyEndAllowThreads(__tstate);
38753 if (PyErr_Occurred()) SWIG_fail;
38754 }
38755 {
38756 wxGBPosition * resultptr;
38757 resultptr = new wxGBPosition((wxGBPosition &) result);
38758 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1);
38759 }
38760 return resultobj;
38761 fail:
38762 return NULL;
38763}
38764
38765
c32bde28 38766static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *, PyObject *args) {
d55e5bfc
RD
38767 PyObject *resultobj;
38768 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38769 size_t arg2 ;
38770 wxGBPosition result;
38771 PyObject * obj0 = 0 ;
38772 PyObject * obj1 = 0 ;
38773
38774 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail;
38775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 38777 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
d55e5bfc
RD
38778 if (PyErr_Occurred()) SWIG_fail;
38779 {
38780 PyThreadState* __tstate = wxPyBeginAllowThreads();
38781 result = (arg1)->GetItemPosition(arg2);
38782
38783 wxPyEndAllowThreads(__tstate);
38784 if (PyErr_Occurred()) SWIG_fail;
38785 }
38786 {
38787 wxGBPosition * resultptr;
38788 resultptr = new wxGBPosition((wxGBPosition &) result);
38789 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1);
38790 }
38791 return resultobj;
38792 fail:
38793 return NULL;
38794}
38795
38796
38797static PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) {
38798 int argc;
38799 PyObject *argv[3];
38800 int ii;
38801
38802 argc = PyObject_Length(args);
38803 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
38804 argv[ii] = PyTuple_GetItem(args,ii);
38805 }
38806 if (argc == 2) {
38807 int _v;
38808 {
38809 void *ptr;
38810 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38811 _v = 0;
38812 PyErr_Clear();
38813 } else {
38814 _v = 1;
38815 }
38816 }
38817 if (_v) {
38818 {
38819 void *ptr;
38820 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
38821 _v = 0;
38822 PyErr_Clear();
38823 } else {
38824 _v = 1;
38825 }
38826 }
38827 if (_v) {
38828 return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self,args);
38829 }
38830 }
38831 }
38832 if (argc == 2) {
38833 int _v;
38834 {
38835 void *ptr;
38836 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38837 _v = 0;
38838 PyErr_Clear();
38839 } else {
38840 _v = 1;
38841 }
38842 }
38843 if (_v) {
38844 {
38845 void *ptr;
38846 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
38847 _v = 0;
38848 PyErr_Clear();
38849 } else {
38850 _v = 1;
38851 }
38852 }
38853 if (_v) {
38854 return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self,args);
38855 }
38856 }
38857 }
38858 if (argc == 2) {
38859 int _v;
38860 {
38861 void *ptr;
38862 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38863 _v = 0;
38864 PyErr_Clear();
38865 } else {
38866 _v = 1;
38867 }
38868 }
38869 if (_v) {
c32bde28 38870 _v = SWIG_Check_unsigned_SS_long(argv[1]);
d55e5bfc
RD
38871 if (_v) {
38872 return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self,args);
38873 }
38874 }
38875 }
38876
38877 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'");
38878 return NULL;
38879}
38880
38881
c32bde28 38882static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *, PyObject *args) {
d55e5bfc
RD
38883 PyObject *resultobj;
38884 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38885 wxWindow *arg2 = (wxWindow *) 0 ;
38886 wxGBPosition *arg3 = 0 ;
38887 bool result;
38888 wxGBPosition temp3 ;
38889 PyObject * obj0 = 0 ;
38890 PyObject * obj1 = 0 ;
38891 PyObject * obj2 = 0 ;
38892
38893 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail;
38894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38896 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
38897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38898 {
38899 arg3 = &temp3;
38900 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
38901 }
38902 {
38903 PyThreadState* __tstate = wxPyBeginAllowThreads();
38904 result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3);
38905
38906 wxPyEndAllowThreads(__tstate);
38907 if (PyErr_Occurred()) SWIG_fail;
38908 }
38909 {
38910 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38911 }
38912 return resultobj;
38913 fail:
38914 return NULL;
38915}
38916
38917
c32bde28 38918static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *, PyObject *args) {
d55e5bfc
RD
38919 PyObject *resultobj;
38920 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38921 wxSizer *arg2 = (wxSizer *) 0 ;
38922 wxGBPosition *arg3 = 0 ;
38923 bool result;
38924 wxGBPosition temp3 ;
38925 PyObject * obj0 = 0 ;
38926 PyObject * obj1 = 0 ;
38927 PyObject * obj2 = 0 ;
38928
38929 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail;
38930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38932 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
38933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38934 {
38935 arg3 = &temp3;
38936 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
38937 }
38938 {
38939 PyThreadState* __tstate = wxPyBeginAllowThreads();
38940 result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3);
38941
38942 wxPyEndAllowThreads(__tstate);
38943 if (PyErr_Occurred()) SWIG_fail;
38944 }
38945 {
38946 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38947 }
38948 return resultobj;
38949 fail:
38950 return NULL;
38951}
38952
38953
c32bde28 38954static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *, PyObject *args) {
d55e5bfc
RD
38955 PyObject *resultobj;
38956 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38957 size_t arg2 ;
38958 wxGBPosition *arg3 = 0 ;
38959 bool result;
38960 wxGBPosition temp3 ;
38961 PyObject * obj0 = 0 ;
38962 PyObject * obj1 = 0 ;
38963 PyObject * obj2 = 0 ;
38964
38965 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail;
38966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 38968 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
d55e5bfc
RD
38969 if (PyErr_Occurred()) SWIG_fail;
38970 {
38971 arg3 = &temp3;
38972 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
38973 }
38974 {
38975 PyThreadState* __tstate = wxPyBeginAllowThreads();
38976 result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3);
38977
38978 wxPyEndAllowThreads(__tstate);
38979 if (PyErr_Occurred()) SWIG_fail;
38980 }
38981 {
38982 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38983 }
38984 return resultobj;
38985 fail:
38986 return NULL;
38987}
38988
38989
38990static PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) {
38991 int argc;
38992 PyObject *argv[4];
38993 int ii;
38994
38995 argc = PyObject_Length(args);
38996 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
38997 argv[ii] = PyTuple_GetItem(args,ii);
38998 }
38999 if (argc == 3) {
39000 int _v;
39001 {
39002 void *ptr;
39003 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
39004 _v = 0;
39005 PyErr_Clear();
39006 } else {
39007 _v = 1;
39008 }
39009 }
39010 if (_v) {
39011 {
39012 void *ptr;
39013 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
39014 _v = 0;
39015 PyErr_Clear();
39016 } else {
39017 _v = 1;
39018 }
39019 }
39020 if (_v) {
39021 {
39022 _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2);
39023 }
39024 if (_v) {
39025 return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self,args);
39026 }
39027 }
39028 }
39029 }
39030 if (argc == 3) {
39031 int _v;
39032 {
39033 void *ptr;
39034 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
39035 _v = 0;
39036 PyErr_Clear();
39037 } else {
39038 _v = 1;
39039 }
39040 }
39041 if (_v) {
39042 {
39043 void *ptr;
39044 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
39045 _v = 0;
39046 PyErr_Clear();
39047 } else {
39048 _v = 1;
39049 }
39050 }
39051 if (_v) {
39052 {
39053 _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2);
39054 }
39055 if (_v) {
39056 return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self,args);
39057 }
39058 }
39059 }
39060 }
39061 if (argc == 3) {
39062 int _v;
39063 {
39064 void *ptr;
39065 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
39066 _v = 0;
39067 PyErr_Clear();
39068 } else {
39069 _v = 1;
39070 }
39071 }
39072 if (_v) {
c32bde28 39073 _v = SWIG_Check_unsigned_SS_long(argv[1]);
d55e5bfc
RD
39074 if (_v) {
39075 {
39076 _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2);
39077 }
39078 if (_v) {
39079 return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self,args);
39080 }
39081 }
39082 }
39083 }
39084
39085 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'");
39086 return NULL;
39087}
39088
39089
c32bde28 39090static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *, PyObject *args) {
d55e5bfc
RD
39091 PyObject *resultobj;
39092 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39093 wxWindow *arg2 = (wxWindow *) 0 ;
39094 wxGBSpan result;
39095 PyObject * obj0 = 0 ;
39096 PyObject * obj1 = 0 ;
39097
39098 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail;
39099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39101 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39103 {
39104 PyThreadState* __tstate = wxPyBeginAllowThreads();
39105 result = (arg1)->GetItemSpan(arg2);
39106
39107 wxPyEndAllowThreads(__tstate);
39108 if (PyErr_Occurred()) SWIG_fail;
39109 }
39110 {
39111 wxGBSpan * resultptr;
39112 resultptr = new wxGBSpan((wxGBSpan &) result);
39113 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1);
39114 }
39115 return resultobj;
39116 fail:
39117 return NULL;
39118}
39119
39120
c32bde28 39121static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *, PyObject *args) {
d55e5bfc
RD
39122 PyObject *resultobj;
39123 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39124 wxSizer *arg2 = (wxSizer *) 0 ;
39125 wxGBSpan result;
39126 PyObject * obj0 = 0 ;
39127 PyObject * obj1 = 0 ;
39128
39129 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail;
39130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39132 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
39133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39134 {
39135 PyThreadState* __tstate = wxPyBeginAllowThreads();
39136 result = (arg1)->GetItemSpan(arg2);
39137
39138 wxPyEndAllowThreads(__tstate);
39139 if (PyErr_Occurred()) SWIG_fail;
39140 }
39141 {
39142 wxGBSpan * resultptr;
39143 resultptr = new wxGBSpan((wxGBSpan &) result);
39144 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1);
39145 }
39146 return resultobj;
39147 fail:
39148 return NULL;
39149}
39150
39151
c32bde28 39152static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *, PyObject *args) {
d55e5bfc
RD
39153 PyObject *resultobj;
39154 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39155 size_t arg2 ;
39156 wxGBSpan result;
39157 PyObject * obj0 = 0 ;
39158 PyObject * obj1 = 0 ;
39159
39160 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail;
39161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 39163 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
d55e5bfc
RD
39164 if (PyErr_Occurred()) SWIG_fail;
39165 {
39166 PyThreadState* __tstate = wxPyBeginAllowThreads();
39167 result = (arg1)->GetItemSpan(arg2);
39168
39169 wxPyEndAllowThreads(__tstate);
39170 if (PyErr_Occurred()) SWIG_fail;
39171 }
39172 {
39173 wxGBSpan * resultptr;
39174 resultptr = new wxGBSpan((wxGBSpan &) result);
39175 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1);
39176 }
39177 return resultobj;
39178 fail:
39179 return NULL;
39180}
39181
39182
39183static PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) {
39184 int argc;
39185 PyObject *argv[3];
39186 int ii;
39187
39188 argc = PyObject_Length(args);
39189 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
39190 argv[ii] = PyTuple_GetItem(args,ii);
39191 }
39192 if (argc == 2) {
39193 int _v;
39194 {
39195 void *ptr;
39196 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
39197 _v = 0;
39198 PyErr_Clear();
39199 } else {
39200 _v = 1;
39201 }
39202 }
39203 if (_v) {
39204 {
39205 void *ptr;
39206 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
39207 _v = 0;
39208 PyErr_Clear();
39209 } else {
39210 _v = 1;
39211 }
39212 }
39213 if (_v) {
39214 return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self,args);
39215 }
39216 }
39217 }
39218 if (argc == 2) {
39219 int _v;
39220 {
39221 void *ptr;
39222 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
39223 _v = 0;
39224 PyErr_Clear();
39225 } else {
39226 _v = 1;
39227 }
39228 }
39229 if (_v) {
39230 {
39231 void *ptr;
39232 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
39233 _v = 0;
39234 PyErr_Clear();
39235 } else {
39236 _v = 1;
39237 }
39238 }
39239 if (_v) {
39240 return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self,args);
39241 }
39242 }
39243 }
39244 if (argc == 2) {
39245 int _v;
39246 {
39247 void *ptr;
39248 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
39249 _v = 0;
39250 PyErr_Clear();
39251 } else {
39252 _v = 1;
39253 }
39254 }
39255 if (_v) {
c32bde28 39256 _v = SWIG_Check_unsigned_SS_long(argv[1]);
d55e5bfc
RD
39257 if (_v) {
39258 return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self,args);
39259 }
39260 }
39261 }
39262
39263 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'");
39264 return NULL;
39265}
39266
39267
c32bde28 39268static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *, PyObject *args) {
d55e5bfc
RD
39269 PyObject *resultobj;
39270 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39271 wxWindow *arg2 = (wxWindow *) 0 ;
39272 wxGBSpan *arg3 = 0 ;
39273 bool result;
39274 wxGBSpan temp3 ;
39275 PyObject * obj0 = 0 ;
39276 PyObject * obj1 = 0 ;
39277 PyObject * obj2 = 0 ;
39278
39279 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail;
39280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39282 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39284 {
39285 arg3 = &temp3;
39286 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
39287 }
39288 {
39289 PyThreadState* __tstate = wxPyBeginAllowThreads();
39290 result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3);
39291
39292 wxPyEndAllowThreads(__tstate);
39293 if (PyErr_Occurred()) SWIG_fail;
39294 }
39295 {
39296 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39297 }
39298 return resultobj;
39299 fail:
39300 return NULL;
39301}
39302
39303
c32bde28 39304static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *, PyObject *args) {
d55e5bfc
RD
39305 PyObject *resultobj;
39306 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39307 wxSizer *arg2 = (wxSizer *) 0 ;
39308 wxGBSpan *arg3 = 0 ;
39309 bool result;
39310 wxGBSpan temp3 ;
39311 PyObject * obj0 = 0 ;
39312 PyObject * obj1 = 0 ;
39313 PyObject * obj2 = 0 ;
39314
39315 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail;
39316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39318 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
39319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39320 {
39321 arg3 = &temp3;
39322 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
39323 }
39324 {
39325 PyThreadState* __tstate = wxPyBeginAllowThreads();
39326 result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3);
39327
39328 wxPyEndAllowThreads(__tstate);
39329 if (PyErr_Occurred()) SWIG_fail;
39330 }
39331 {
39332 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39333 }
39334 return resultobj;
39335 fail:
39336 return NULL;
39337}
39338
39339
c32bde28 39340static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *, PyObject *args) {
d55e5bfc
RD
39341 PyObject *resultobj;
39342 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39343 size_t arg2 ;
39344 wxGBSpan *arg3 = 0 ;
39345 bool result;
39346 wxGBSpan temp3 ;
39347 PyObject * obj0 = 0 ;
39348 PyObject * obj1 = 0 ;
39349 PyObject * obj2 = 0 ;
39350
39351 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail;
39352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 39354 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
d55e5bfc
RD
39355 if (PyErr_Occurred()) SWIG_fail;
39356 {
39357 arg3 = &temp3;
39358 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
39359 }
39360 {
39361 PyThreadState* __tstate = wxPyBeginAllowThreads();
39362 result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3);
39363
39364 wxPyEndAllowThreads(__tstate);
39365 if (PyErr_Occurred()) SWIG_fail;
39366 }
39367 {
39368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39369 }
39370 return resultobj;
39371 fail:
39372 return NULL;
39373}
39374
39375
39376static PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) {
39377 int argc;
39378 PyObject *argv[4];
39379 int ii;
39380
39381 argc = PyObject_Length(args);
39382 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
39383 argv[ii] = PyTuple_GetItem(args,ii);
39384 }
39385 if (argc == 3) {
39386 int _v;
39387 {
39388 void *ptr;
39389 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
39390 _v = 0;
39391 PyErr_Clear();
39392 } else {
39393 _v = 1;
39394 }
39395 }
39396 if (_v) {
39397 {
39398 void *ptr;
39399 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
39400 _v = 0;
39401 PyErr_Clear();
39402 } else {
39403 _v = 1;
39404 }
39405 }
39406 if (_v) {
39407 {
39408 _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2);
39409 }
39410 if (_v) {
39411 return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self,args);
39412 }
39413 }
39414 }
39415 }
39416 if (argc == 3) {
39417 int _v;
39418 {
39419 void *ptr;
39420 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
39421 _v = 0;
39422 PyErr_Clear();
39423 } else {
39424 _v = 1;
39425 }
39426 }
39427 if (_v) {
39428 {
39429 void *ptr;
39430 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
39431 _v = 0;
39432 PyErr_Clear();
39433 } else {
39434 _v = 1;
39435 }
39436 }
39437 if (_v) {
39438 {
39439 _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2);
39440 }
39441 if (_v) {
39442 return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self,args);
39443 }
39444 }
39445 }
39446 }
39447 if (argc == 3) {
39448 int _v;
39449 {
39450 void *ptr;
39451 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
39452 _v = 0;
39453 PyErr_Clear();
39454 } else {
39455 _v = 1;
39456 }
39457 }
39458 if (_v) {
c32bde28 39459 _v = SWIG_Check_unsigned_SS_long(argv[1]);
d55e5bfc
RD
39460 if (_v) {
39461 {
39462 _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2);
39463 }
39464 if (_v) {
39465 return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self,args);
39466 }
39467 }
39468 }
39469 }
39470
39471 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'");
39472 return NULL;
39473}
39474
39475
c32bde28 39476static PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *, PyObject *args) {
d55e5bfc
RD
39477 PyObject *resultobj;
39478 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39479 wxWindow *arg2 = (wxWindow *) 0 ;
39480 wxGBSizerItem *result;
39481 PyObject * obj0 = 0 ;
39482 PyObject * obj1 = 0 ;
39483
39484 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail;
39485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39487 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39489 {
39490 PyThreadState* __tstate = wxPyBeginAllowThreads();
39491 result = (wxGBSizerItem *)(arg1)->FindItem(arg2);
39492
39493 wxPyEndAllowThreads(__tstate);
39494 if (PyErr_Occurred()) SWIG_fail;
39495 }
39496 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0);
39497 return resultobj;
39498 fail:
39499 return NULL;
39500}
39501
39502
c32bde28 39503static PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *, PyObject *args) {
d55e5bfc
RD
39504 PyObject *resultobj;
39505 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39506 wxSizer *arg2 = (wxSizer *) 0 ;
39507 wxGBSizerItem *result;
39508 PyObject * obj0 = 0 ;
39509 PyObject * obj1 = 0 ;
39510
39511 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail;
39512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39514 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
39515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39516 {
39517 PyThreadState* __tstate = wxPyBeginAllowThreads();
39518 result = (wxGBSizerItem *)(arg1)->FindItem(arg2);
39519
39520 wxPyEndAllowThreads(__tstate);
39521 if (PyErr_Occurred()) SWIG_fail;
39522 }
39523 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0);
39524 return resultobj;
39525 fail:
39526 return NULL;
39527}
39528
39529
39530static PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) {
39531 int argc;
39532 PyObject *argv[3];
39533 int ii;
39534
39535 argc = PyObject_Length(args);
39536 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
39537 argv[ii] = PyTuple_GetItem(args,ii);
39538 }
39539 if (argc == 2) {
39540 int _v;
39541 {
39542 void *ptr;
39543 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
39544 _v = 0;
39545 PyErr_Clear();
39546 } else {
39547 _v = 1;
39548 }
39549 }
39550 if (_v) {
39551 {
39552 void *ptr;
39553 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
39554 _v = 0;
39555 PyErr_Clear();
39556 } else {
39557 _v = 1;
39558 }
39559 }
39560 if (_v) {
39561 return _wrap_GridBagSizer_FindItem__SWIG_0(self,args);
39562 }
39563 }
39564 }
39565 if (argc == 2) {
39566 int _v;
39567 {
39568 void *ptr;
39569 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
39570 _v = 0;
39571 PyErr_Clear();
39572 } else {
39573 _v = 1;
39574 }
39575 }
39576 if (_v) {
39577 {
39578 void *ptr;
39579 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
39580 _v = 0;
39581 PyErr_Clear();
39582 } else {
39583 _v = 1;
39584 }
39585 }
39586 if (_v) {
39587 return _wrap_GridBagSizer_FindItem__SWIG_1(self,args);
39588 }
39589 }
39590 }
39591
39592 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_FindItem'");
39593 return NULL;
39594}
39595
39596
c32bde28 39597static PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
39598 PyObject *resultobj;
39599 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39600 wxGBPosition *arg2 = 0 ;
39601 wxGBSizerItem *result;
39602 wxGBPosition temp2 ;
39603 PyObject * obj0 = 0 ;
39604 PyObject * obj1 = 0 ;
39605 char *kwnames[] = {
39606 (char *) "self",(char *) "pos", NULL
39607 };
39608
39609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) goto fail;
39610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39612 {
39613 arg2 = &temp2;
39614 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
39615 }
39616 {
39617 PyThreadState* __tstate = wxPyBeginAllowThreads();
39618 result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2);
39619
39620 wxPyEndAllowThreads(__tstate);
39621 if (PyErr_Occurred()) SWIG_fail;
39622 }
39623 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0);
39624 return resultobj;
39625 fail:
39626 return NULL;
39627}
39628
39629
c32bde28 39630static PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
39631 PyObject *resultobj;
39632 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39633 wxPoint *arg2 = 0 ;
39634 wxGBSizerItem *result;
39635 wxPoint temp2 ;
39636 PyObject * obj0 = 0 ;
39637 PyObject * obj1 = 0 ;
39638 char *kwnames[] = {
39639 (char *) "self",(char *) "pt", NULL
39640 };
39641
39642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) goto fail;
39643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39645 {
39646 arg2 = &temp2;
39647 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39648 }
39649 {
39650 PyThreadState* __tstate = wxPyBeginAllowThreads();
39651 result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2);
39652
39653 wxPyEndAllowThreads(__tstate);
39654 if (PyErr_Occurred()) SWIG_fail;
39655 }
39656 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0);
39657 return resultobj;
39658 fail:
39659 return NULL;
39660}
39661
39662
c32bde28 39663static PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
39664 PyObject *resultobj;
39665 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39666 wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ;
39667 wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ;
39668 bool result;
39669 PyObject * obj0 = 0 ;
39670 PyObject * obj1 = 0 ;
39671 PyObject * obj2 = 0 ;
248ed943
RD
39672 char *kwnames[] = {
39673 (char *) "self",(char *) "item",(char *) "excludeItem", NULL
39674 };
d55e5bfc 39675
248ed943 39676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GridBagSizer_CheckForIntersection",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
39677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39679 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem,
39680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39681 if (obj2) {
39682 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGBSizerItem,
39683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39684 }
39685 {
39686 PyThreadState* __tstate = wxPyBeginAllowThreads();
39687 result = (bool)(arg1)->CheckForIntersection(arg2,arg3);
39688
39689 wxPyEndAllowThreads(__tstate);
39690 if (PyErr_Occurred()) SWIG_fail;
39691 }
39692 {
39693 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39694 }
39695 return resultobj;
39696 fail:
39697 return NULL;
39698}
39699
39700
c32bde28 39701static PyObject *_wrap_GridBagSizer_CheckForIntersectionPos(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
39702 PyObject *resultobj;
39703 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39704 wxGBPosition *arg2 = 0 ;
39705 wxGBSpan *arg3 = 0 ;
39706 wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ;
39707 bool result;
39708 wxGBPosition temp2 ;
39709 wxGBSpan temp3 ;
39710 PyObject * obj0 = 0 ;
39711 PyObject * obj1 = 0 ;
39712 PyObject * obj2 = 0 ;
39713 PyObject * obj3 = 0 ;
248ed943
RD
39714 char *kwnames[] = {
39715 (char *) "self",(char *) "pos",(char *) "span",(char *) "excludeItem", NULL
39716 };
d55e5bfc 39717
248ed943 39718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:GridBagSizer_CheckForIntersectionPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
39719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39721 {
39722 arg2 = &temp2;
39723 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
39724 }
39725 {
39726 arg3 = &temp3;
39727 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
39728 }
39729 if (obj3) {
39730 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGBSizerItem,
39731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39732 }
39733 {
39734 PyThreadState* __tstate = wxPyBeginAllowThreads();
39735 result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4);
39736
39737 wxPyEndAllowThreads(__tstate);
39738 if (PyErr_Occurred()) SWIG_fail;
39739 }
39740 {
39741 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39742 }
39743 return resultobj;
39744 fail:
39745 return NULL;
39746}
39747
39748
c32bde28 39749static PyObject * GridBagSizer_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
39750 PyObject *obj;
39751 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
39752 SWIG_TypeClientData(SWIGTYPE_p_wxGridBagSizer, obj);
39753 Py_INCREF(obj);
39754 return Py_BuildValue((char *)"");
39755}
c32bde28 39756static PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
39757 PyObject *resultobj;
39758 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39759 int arg2 ;
39760 wxWindow *arg3 = (wxWindow *) 0 ;
39761 int arg4 ;
39762 int arg5 = (int) 0 ;
39763 int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ;
39764 PyObject * obj0 = 0 ;
39765 PyObject * obj1 = 0 ;
39766 PyObject * obj2 = 0 ;
39767 PyObject * obj3 = 0 ;
39768 PyObject * obj4 = 0 ;
39769 PyObject * obj5 = 0 ;
39770 char *kwnames[] = {
39771 (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL
39772 };
39773
39774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:IndividualLayoutConstraint_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
39775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 39777 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
39778 if (PyErr_Occurred()) SWIG_fail;
39779 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
39780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 39781 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
39782 if (PyErr_Occurred()) SWIG_fail;
39783 if (obj4) {
c32bde28 39784 arg5 = (int)SWIG_As_int(obj4);
d55e5bfc
RD
39785 if (PyErr_Occurred()) SWIG_fail;
39786 }
39787 if (obj5) {
c32bde28 39788 arg6 = (int)SWIG_As_int(obj5);
d55e5bfc
RD
39789 if (PyErr_Occurred()) SWIG_fail;
39790 }
39791 {
39792 PyThreadState* __tstate = wxPyBeginAllowThreads();
39793 (arg1)->Set((wxRelationship )arg2,arg3,(wxEdge )arg4,arg5,arg6);
39794
39795 wxPyEndAllowThreads(__tstate);
39796 if (PyErr_Occurred()) SWIG_fail;
39797 }
39798 Py_INCREF(Py_None); resultobj = Py_None;
39799 return resultobj;
39800 fail:
39801 return NULL;
39802}
39803
39804
c32bde28 39805static PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
39806 PyObject *resultobj;
39807 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39808 wxWindow *arg2 = (wxWindow *) 0 ;
39809 int arg3 = (int) 0 ;
39810 PyObject * obj0 = 0 ;
39811 PyObject * obj1 = 0 ;
39812 PyObject * obj2 = 0 ;
39813 char *kwnames[] = {
39814 (char *) "self",(char *) "sibling",(char *) "marg", NULL
39815 };
39816
39817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&obj2)) goto fail;
39818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39820 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39822 if (obj2) {
c32bde28 39823 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
39824 if (PyErr_Occurred()) SWIG_fail;
39825 }
39826 {
39827 PyThreadState* __tstate = wxPyBeginAllowThreads();
39828 (arg1)->LeftOf(arg2,arg3);
39829
39830 wxPyEndAllowThreads(__tstate);
39831 if (PyErr_Occurred()) SWIG_fail;
39832 }
39833 Py_INCREF(Py_None); resultobj = Py_None;
39834 return resultobj;
39835 fail:
39836 return NULL;
39837}
39838
39839
c32bde28 39840static PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
39841 PyObject *resultobj;
39842 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39843 wxWindow *arg2 = (wxWindow *) 0 ;
39844 int arg3 = (int) 0 ;
39845 PyObject * obj0 = 0 ;
39846 PyObject * obj1 = 0 ;
39847 PyObject * obj2 = 0 ;
39848 char *kwnames[] = {
39849 (char *) "self",(char *) "sibling",(char *) "marg", NULL
39850 };
39851
39852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&obj2)) goto fail;
39853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39855 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39857 if (obj2) {
c32bde28 39858 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
39859 if (PyErr_Occurred()) SWIG_fail;
39860 }
39861 {
39862 PyThreadState* __tstate = wxPyBeginAllowThreads();
39863 (arg1)->RightOf(arg2,arg3);
39864
39865 wxPyEndAllowThreads(__tstate);
39866 if (PyErr_Occurred()) SWIG_fail;
39867 }
39868 Py_INCREF(Py_None); resultobj = Py_None;
39869 return resultobj;
39870 fail:
39871 return NULL;
39872}
39873
39874
c32bde28 39875static PyObject *_wrap_IndividualLayoutConstraint_Above(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
39876 PyObject *resultobj;
39877 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39878 wxWindow *arg2 = (wxWindow *) 0 ;
39879 int arg3 = (int) 0 ;
39880 PyObject * obj0 = 0 ;
39881 PyObject * obj1 = 0 ;
39882 PyObject * obj2 = 0 ;
39883 char *kwnames[] = {
39884 (char *) "self",(char *) "sibling",(char *) "marg", NULL
39885 };
39886
39887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&obj2)) goto fail;
39888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39890 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39892 if (obj2) {
c32bde28 39893 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
39894 if (PyErr_Occurred()) SWIG_fail;
39895 }
39896 {
39897 PyThreadState* __tstate = wxPyBeginAllowThreads();
39898 (arg1)->Above(arg2,arg3);
39899
39900 wxPyEndAllowThreads(__tstate);
39901 if (PyErr_Occurred()) SWIG_fail;
39902 }
39903 Py_INCREF(Py_None); resultobj = Py_None;
39904 return resultobj;
39905 fail:
39906 return NULL;
39907}
39908
39909
c32bde28 39910static PyObject *_wrap_IndividualLayoutConstraint_Below(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
39911 PyObject *resultobj;
39912 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39913 wxWindow *arg2 = (wxWindow *) 0 ;
39914 int arg3 = (int) 0 ;
39915 PyObject * obj0 = 0 ;
39916 PyObject * obj1 = 0 ;
39917 PyObject * obj2 = 0 ;
39918 char *kwnames[] = {
39919 (char *) "self",(char *) "sibling",(char *) "marg", NULL
39920 };
39921
39922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&obj2)) goto fail;
39923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39925 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39927 if (obj2) {
c32bde28 39928 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
39929 if (PyErr_Occurred()) SWIG_fail;
39930 }
39931 {
39932 PyThreadState* __tstate = wxPyBeginAllowThreads();
39933 (arg1)->Below(arg2,arg3);
39934
39935 wxPyEndAllowThreads(__tstate);
39936 if (PyErr_Occurred()) SWIG_fail;
39937 }
39938 Py_INCREF(Py_None); resultobj = Py_None;
39939 return resultobj;
39940 fail:
39941 return NULL;
39942}
39943
39944
c32bde28 39945static PyObject *_wrap_IndividualLayoutConstraint_SameAs(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
39946 PyObject *resultobj;
39947 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39948 wxWindow *arg2 = (wxWindow *) 0 ;
39949 int arg3 ;
39950 int arg4 = (int) 0 ;
39951 PyObject * obj0 = 0 ;
39952 PyObject * obj1 = 0 ;
39953 PyObject * obj2 = 0 ;
39954 PyObject * obj3 = 0 ;
39955 char *kwnames[] = {
39956 (char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL
39957 };
39958
39959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
39960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39962 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 39964 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc
RD
39965 if (PyErr_Occurred()) SWIG_fail;
39966 if (obj3) {
c32bde28 39967 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
39968 if (PyErr_Occurred()) SWIG_fail;
39969 }
39970 {
39971 PyThreadState* __tstate = wxPyBeginAllowThreads();
39972 (arg1)->SameAs(arg2,(wxEdge )arg3,arg4);
39973
39974 wxPyEndAllowThreads(__tstate);
39975 if (PyErr_Occurred()) SWIG_fail;
39976 }
39977 Py_INCREF(Py_None); resultobj = Py_None;
39978 return resultobj;
39979 fail:
39980 return NULL;
39981}
39982
39983
c32bde28 39984static PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
39985 PyObject *resultobj;
39986 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39987 wxWindow *arg2 = (wxWindow *) 0 ;
39988 int arg3 ;
39989 int arg4 ;
39990 PyObject * obj0 = 0 ;
39991 PyObject * obj1 = 0 ;
39992 PyObject * obj2 = 0 ;
39993 PyObject * obj3 = 0 ;
39994 char *kwnames[] = {
39995 (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL
39996 };
39997
39998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
39999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40001 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
40002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 40003 arg3 = (int)SWIG_As_int(obj2);
d55e5bfc 40004 if (PyErr_Occurred()) SWIG_fail;
c32bde28 40005 arg4 = (int)SWIG_As_int(obj3);
d55e5bfc
RD
40006 if (PyErr_Occurred()) SWIG_fail;
40007 {
40008 PyThreadState* __tstate = wxPyBeginAllowThreads();
40009 (arg1)->PercentOf(arg2,(wxEdge )arg3,arg4);
40010
40011 wxPyEndAllowThreads(__tstate);
40012 if (PyErr_Occurred()) SWIG_fail;
40013 }
40014 Py_INCREF(Py_None); resultobj = Py_None;
40015 return resultobj;
40016 fail:
40017 return NULL;
40018}
40019
40020
c32bde28 40021static PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
40022 PyObject *resultobj;
40023 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40024 int arg2 ;
40025 PyObject * obj0 = 0 ;
40026 PyObject * obj1 = 0 ;
40027 char *kwnames[] = {
40028 (char *) "self",(char *) "val", NULL
40029 };
40030
40031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&obj1)) goto fail;
40032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 40034 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
40035 if (PyErr_Occurred()) SWIG_fail;
40036 {
40037 PyThreadState* __tstate = wxPyBeginAllowThreads();
40038 (arg1)->Absolute(arg2);
40039
40040 wxPyEndAllowThreads(__tstate);
40041 if (PyErr_Occurred()) SWIG_fail;
40042 }
40043 Py_INCREF(Py_None); resultobj = Py_None;
40044 return resultobj;
40045 fail:
40046 return NULL;
40047}
40048
40049
c32bde28 40050static PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
40051 PyObject *resultobj;
40052 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40053 PyObject * obj0 = 0 ;
40054 char *kwnames[] = {
40055 (char *) "self", NULL
40056 };
40057
40058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_Unconstrained",kwnames,&obj0)) goto fail;
40059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40061 {
40062 PyThreadState* __tstate = wxPyBeginAllowThreads();
40063 (arg1)->Unconstrained();
40064
40065 wxPyEndAllowThreads(__tstate);
40066 if (PyErr_Occurred()) SWIG_fail;
40067 }
40068 Py_INCREF(Py_None); resultobj = Py_None;
40069 return resultobj;
40070 fail:
40071 return NULL;
40072}
40073
40074
c32bde28 40075static PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
40076 PyObject *resultobj;
40077 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40078 PyObject * obj0 = 0 ;
40079 char *kwnames[] = {
40080 (char *) "self", NULL
40081 };
40082
40083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_AsIs",kwnames,&obj0)) goto fail;
40084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40086 {
40087 PyThreadState* __tstate = wxPyBeginAllowThreads();
40088 (arg1)->AsIs();
40089
40090 wxPyEndAllowThreads(__tstate);
40091 if (PyErr_Occurred()) SWIG_fail;
40092 }
40093 Py_INCREF(Py_None); resultobj = Py_None;
40094 return resultobj;
40095 fail:
40096 return NULL;
40097}
40098
40099
c32bde28 40100static PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
40101 PyObject *resultobj;
40102 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40103 wxWindow *result;
40104 PyObject * obj0 = 0 ;
40105 char *kwnames[] = {
40106 (char *) "self", NULL
40107 };
40108
40109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherWindow",kwnames,&obj0)) goto fail;
40110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40112 {
40113 PyThreadState* __tstate = wxPyBeginAllowThreads();
40114 result = (wxWindow *)(arg1)->GetOtherWindow();
40115
40116 wxPyEndAllowThreads(__tstate);
40117 if (PyErr_Occurred()) SWIG_fail;
40118 }
40119 {
412d302d 40120 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
40121 }
40122 return resultobj;
40123 fail:
40124 return NULL;
40125}
40126
40127
c32bde28 40128static PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
40129 PyObject *resultobj;
40130 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40131 int result;
40132 PyObject * obj0 = 0 ;
40133 char *kwnames[] = {
40134 (char *) "self", NULL
40135 };
40136
40137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMyEdge",kwnames,&obj0)) goto fail;
40138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40140 {
40141 PyThreadState* __tstate = wxPyBeginAllowThreads();
40142 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge();
40143
40144 wxPyEndAllowThreads(__tstate);
40145 if (PyErr_Occurred()) SWIG_fail;
40146 }
c32bde28 40147 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
40148 return resultobj;
40149 fail:
40150 return NULL;
40151}
40152
40153
c32bde28 40154static PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
40155 PyObject *resultobj;
40156 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40157 int arg2 ;
40158 PyObject * obj0 = 0 ;
40159 PyObject * obj1 = 0 ;
40160 char *kwnames[] = {
40161 (char *) "self",(char *) "which", NULL
40162 };
40163
40164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&obj1)) goto fail;
40165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 40167 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
40168 if (PyErr_Occurred()) SWIG_fail;
40169 {
40170 PyThreadState* __tstate = wxPyBeginAllowThreads();
40171 (arg1)->SetEdge((wxEdge )arg2);
40172
40173 wxPyEndAllowThreads(__tstate);
40174 if (PyErr_Occurred()) SWIG_fail;
40175 }
40176 Py_INCREF(Py_None); resultobj = Py_None;
40177 return resultobj;
40178 fail:
40179 return NULL;
40180}
40181
40182
c32bde28 40183static PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
40184 PyObject *resultobj;
40185 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40186 int arg2 ;
40187 PyObject * obj0 = 0 ;
40188 PyObject * obj1 = 0 ;
40189 char *kwnames[] = {
40190 (char *) "self",(char *) "v", NULL
40191 };
40192
40193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&obj1)) goto fail;
40194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 40196 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
40197 if (PyErr_Occurred()) SWIG_fail;
40198 {
40199 PyThreadState* __tstate = wxPyBeginAllowThreads();
40200 (arg1)->SetValue(arg2);
40201
40202 wxPyEndAllowThreads(__tstate);
40203 if (PyErr_Occurred()) SWIG_fail;
40204 }
40205 Py_INCREF(Py_None); resultobj = Py_None;
40206 return resultobj;
40207 fail:
40208 return NULL;
40209}
40210
40211
c32bde28 40212static PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
40213 PyObject *resultobj;
40214 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40215 int result;
40216 PyObject * obj0 = 0 ;
40217 char *kwnames[] = {
40218 (char *) "self", NULL
40219 };
40220
40221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMargin",kwnames,&obj0)) goto fail;
40222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40224 {
40225 PyThreadState* __tstate = wxPyBeginAllowThreads();
40226 result = (int)(arg1)->GetMargin();
40227
40228 wxPyEndAllowThreads(__tstate);
40229 if (PyErr_Occurred()) SWIG_fail;
40230 }
c32bde28 40231 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
40232 return resultobj;
40233 fail:
40234 return NULL;
40235}
40236
40237
c32bde28 40238static PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
40239 PyObject *resultobj;
40240 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40241 int arg2 ;
40242 PyObject * obj0 = 0 ;
40243 PyObject * obj1 = 0 ;
40244 char *kwnames[] = {
40245 (char *) "self",(char *) "m", NULL
40246 };
40247
40248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&obj1)) goto fail;
40249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 40251 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
40252 if (PyErr_Occurred()) SWIG_fail;
40253 {
40254 PyThreadState* __tstate = wxPyBeginAllowThreads();
40255 (arg1)->SetMargin(arg2);
40256
40257 wxPyEndAllowThreads(__tstate);
40258 if (PyErr_Occurred()) SWIG_fail;
40259 }
40260 Py_INCREF(Py_None); resultobj = Py_None;
40261 return resultobj;
40262 fail:
40263 return NULL;
40264}
40265
40266
c32bde28 40267static PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
40268 PyObject *resultobj;
40269 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40270 int result;
40271 PyObject * obj0 = 0 ;
40272 char *kwnames[] = {
40273 (char *) "self", NULL
40274 };
40275
40276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetValue",kwnames,&obj0)) goto fail;
40277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40279 {
40280 PyThreadState* __tstate = wxPyBeginAllowThreads();
40281 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue();
40282
40283 wxPyEndAllowThreads(__tstate);
40284 if (PyErr_Occurred()) SWIG_fail;
40285 }
c32bde28 40286 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
40287 return resultobj;
40288 fail:
40289 return NULL;
40290}
40291
40292
c32bde28 40293static PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
40294 PyObject *resultobj;
40295 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40296 int result;
40297 PyObject * obj0 = 0 ;
40298 char *kwnames[] = {
40299 (char *) "self", NULL
40300 };
40301
40302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetPercent",kwnames,&obj0)) goto fail;
40303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40305 {
40306 PyThreadState* __tstate = wxPyBeginAllowThreads();
40307 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent();
40308
40309 wxPyEndAllowThreads(__tstate);
40310 if (PyErr_Occurred()) SWIG_fail;
40311 }
c32bde28 40312 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
40313 return resultobj;
40314 fail:
40315 return NULL;
40316}
40317
40318
c32bde28 40319static PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
40320 PyObject *resultobj;
40321 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40322 int result;
40323 PyObject * obj0 = 0 ;
40324 char *kwnames[] = {
40325 (char *) "self", NULL
40326 };
40327
40328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherEdge",kwnames,&obj0)) goto fail;
40329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40331 {
40332 PyThreadState* __tstate = wxPyBeginAllowThreads();
40333 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge();
40334
40335 wxPyEndAllowThreads(__tstate);
40336 if (PyErr_Occurred()) SWIG_fail;
40337 }
c32bde28 40338 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
40339 return resultobj;
40340 fail:
40341 return NULL;
40342}
40343
40344
c32bde28 40345static PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
40346 PyObject *resultobj;
40347 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40348 bool result;
40349 PyObject * obj0 = 0 ;
40350 char *kwnames[] = {
40351 (char *) "self", NULL
40352 };
40353
40354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetDone",kwnames,&obj0)) goto fail;
40355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40357 {
40358 PyThreadState* __tstate = wxPyBeginAllowThreads();
40359 result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone();
40360
40361 wxPyEndAllowThreads(__tstate);
40362 if (PyErr_Occurred()) SWIG_fail;
40363 }
40364 {
40365 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40366 }
40367 return resultobj;
40368 fail:
40369 return NULL;
40370}
40371
40372
c32bde28 40373static PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
40374 PyObject *resultobj;
40375 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40376 bool arg2 ;
40377 PyObject * obj0 = 0 ;
40378 PyObject * obj1 = 0 ;
40379 char *kwnames[] = {
40380 (char *) "self",(char *) "d", NULL
40381 };
40382
40383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) goto fail;
40384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 40386 arg2 = (bool)SWIG_As_bool(obj1);
d55e5bfc
RD
40387 if (PyErr_Occurred()) SWIG_fail;
40388 {
40389 PyThreadState* __tstate = wxPyBeginAllowThreads();
40390 (arg1)->SetDone(arg2);
40391
40392 wxPyEndAllowThreads(__tstate);
40393 if (PyErr_Occurred()) SWIG_fail;
40394 }
40395 Py_INCREF(Py_None); resultobj = Py_None;
40396 return resultobj;
40397 fail:
40398 return NULL;
40399}
40400
40401
c32bde28 40402static PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
40403 PyObject *resultobj;
40404 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40405 int result;
40406 PyObject * obj0 = 0 ;
40407 char *kwnames[] = {
40408 (char *) "self", NULL
40409 };
40410
40411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetRelationship",kwnames,&obj0)) goto fail;
40412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40414 {
40415 PyThreadState* __tstate = wxPyBeginAllowThreads();
40416 result = (int)(arg1)->GetRelationship();
40417
40418 wxPyEndAllowThreads(__tstate);
40419 if (PyErr_Occurred()) SWIG_fail;
40420 }
c32bde28 40421 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
40422 return resultobj;
40423 fail:
40424 return NULL;
40425}
40426
40427
c32bde28 40428static PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
40429 PyObject *resultobj;
40430 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40431 int arg2 ;
40432 PyObject * obj0 = 0 ;
40433 PyObject * obj1 = 0 ;
40434 char *kwnames[] = {
40435 (char *) "self",(char *) "r", NULL
40436 };
40437
40438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&obj1)) goto fail;
40439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 40441 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
40442 if (PyErr_Occurred()) SWIG_fail;
40443 {
40444 PyThreadState* __tstate = wxPyBeginAllowThreads();
40445 (arg1)->SetRelationship((wxRelationship )arg2);
40446
40447 wxPyEndAllowThreads(__tstate);
40448 if (PyErr_Occurred()) SWIG_fail;
40449 }
40450 Py_INCREF(Py_None); resultobj = Py_None;
40451 return resultobj;
40452 fail:
40453 return NULL;
40454}
40455
40456
c32bde28 40457static PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
40458 PyObject *resultobj;
40459 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40460 wxWindow *arg2 = (wxWindow *) 0 ;
40461 bool result;
40462 PyObject * obj0 = 0 ;
40463 PyObject * obj1 = 0 ;
40464 char *kwnames[] = {
40465 (char *) "self",(char *) "otherW", NULL
40466 };
40467
40468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) goto fail;
40469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40471 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
40472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40473 {
40474 PyThreadState* __tstate = wxPyBeginAllowThreads();
40475 result = (bool)(arg1)->ResetIfWin(arg2);
40476
40477 wxPyEndAllowThreads(__tstate);
40478 if (PyErr_Occurred()) SWIG_fail;
40479 }
40480 {
40481 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40482 }
40483 return resultobj;
40484 fail:
40485 return NULL;
40486}
40487
40488
c32bde28 40489static PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
40490 PyObject *resultobj;
40491 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40492 wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ;
40493 wxWindow *arg3 = (wxWindow *) 0 ;
40494 bool result;
40495 PyObject * obj0 = 0 ;
40496 PyObject * obj1 = 0 ;
40497 PyObject * obj2 = 0 ;
40498 char *kwnames[] = {
40499 (char *) "self",(char *) "constraints",(char *) "win", NULL
40500 };
40501
40502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail;
40503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40505 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints,
40506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40507 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
40508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40509 {
40510 PyThreadState* __tstate = wxPyBeginAllowThreads();
40511 result = (bool)(arg1)->SatisfyConstraint(arg2,arg3);
40512
40513 wxPyEndAllowThreads(__tstate);
40514 if (PyErr_Occurred()) SWIG_fail;
40515 }
40516 {
40517 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40518 }
40519 return resultobj;
40520 fail:
40521 return NULL;
40522}
40523
40524
c32bde28 40525static PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
40526 PyObject *resultobj;
40527 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40528 int arg2 ;
40529 wxWindow *arg3 = (wxWindow *) 0 ;
40530 wxWindow *arg4 = (wxWindow *) 0 ;
40531 int result;
40532 PyObject * obj0 = 0 ;
40533 PyObject * obj1 = 0 ;
40534 PyObject * obj2 = 0 ;
40535 PyObject * obj3 = 0 ;
40536 char *kwnames[] = {
40537 (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL
40538 };
40539
40540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
40541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
c32bde28 40543 arg2 = (int)SWIG_As_int(obj1);
d55e5bfc
RD
40544 if (PyErr_Occurred()) SWIG_fail;
40545 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
40546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40547 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
40548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40549 {
40550 PyThreadState* __tstate = wxPyBeginAllowThreads();
40551 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge((wxEdge )arg2,arg3,arg4);
40552
40553 wxPyEndAllowThreads(__tstate);
40554 if (PyErr_Occurred()) SWIG_fail;
40555 }
c32bde28 40556 resultobj = SWIG_From_int((int)result);
d55e5bfc
RD
40557 return resultobj;
40558 fail:
40559 return NULL;
40560}
40561
40562
c32bde28 40563static PyObject * IndividualLayoutConstraint_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
40564 PyObject *obj;
40565 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
40566 SWIG_TypeClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, obj);
40567 Py_INCREF(obj);
40568 return Py_BuildValue((char *)"");
40569}
c32bde28 40570static PyObject *_wrap_LayoutConstraints_left_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
40571 PyObject *resultobj;
40572 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40573 wxIndividualLayoutConstraint *result;
40574 PyObject * obj0 = 0 ;
40575 char *kwnames[] = {
40576 (char *) "self", NULL
40577 };
40578
40579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_left_get",kwnames,&obj0)) goto fail;
40580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40582 result = (wxIndividualLayoutConstraint *)& ((arg1)->left);
40583
40584 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
40585 return resultobj;
40586 fail:
40587 return NULL;
40588}
40589
40590
c32bde28 40591static PyObject *_wrap_LayoutConstraints_top_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
40592 PyObject *resultobj;
40593 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40594 wxIndividualLayoutConstraint *result;
40595 PyObject * obj0 = 0 ;
40596 char *kwnames[] = {
40597 (char *) "self", NULL
40598 };
40599
40600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_top_get",kwnames,&obj0)) goto fail;
40601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40603 result = (wxIndividualLayoutConstraint *)& ((arg1)->top);
40604
40605 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
40606 return resultobj;
40607 fail:
40608 return NULL;
40609}
40610
40611
c32bde28 40612static PyObject *_wrap_LayoutConstraints_right_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
40613 PyObject *resultobj;
40614 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40615 wxIndividualLayoutConstraint *result;
40616 PyObject * obj0 = 0 ;
40617 char *kwnames[] = {
40618 (char *) "self", NULL
40619 };
40620
40621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_right_get",kwnames,&obj0)) goto fail;
40622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40624 result = (wxIndividualLayoutConstraint *)& ((arg1)->right);
40625
40626 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
40627 return resultobj;
40628 fail:
40629 return NULL;
40630}
40631
40632
c32bde28 40633static PyObject *_wrap_LayoutConstraints_bottom_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
40634 PyObject *resultobj;
40635 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40636 wxIndividualLayoutConstraint *result;
40637 PyObject * obj0 = 0 ;
40638 char *kwnames[] = {
40639 (char *) "self", NULL
40640 };
40641
40642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_bottom_get",kwnames,&obj0)) goto fail;
40643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40645 result = (wxIndividualLayoutConstraint *)& ((arg1)->bottom);
40646
40647 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
40648 return resultobj;
40649 fail:
40650 return NULL;
40651}
40652
40653
c32bde28 40654static PyObject *_wrap_LayoutConstraints_width_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
40655 PyObject *resultobj;
40656 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40657 wxIndividualLayoutConstraint *result;
40658 PyObject * obj0 = 0 ;
40659 char *kwnames[] = {
40660 (char *) "self", NULL
40661 };
40662
40663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_width_get",kwnames,&obj0)) goto fail;
40664 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40665 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40666 result = (wxIndividualLayoutConstraint *)& ((arg1)->width);
40667
40668 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
40669 return resultobj;
40670 fail:
40671 return NULL;
40672}
40673
40674
c32bde28 40675static PyObject *_wrap_LayoutConstraints_height_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
40676 PyObject *resultobj;
40677 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40678 wxIndividualLayoutConstraint *result;
40679 PyObject * obj0 = 0 ;
40680 char *kwnames[] = {
40681 (char *) "self", NULL
40682 };
40683
40684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_height_get",kwnames,&obj0)) goto fail;
40685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40687 result = (wxIndividualLayoutConstraint *)& ((arg1)->height);
40688
40689 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
40690 return resultobj;
40691 fail:
40692 return NULL;
40693}
40694
40695
c32bde28 40696static PyObject *_wrap_LayoutConstraints_centreX_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
40697 PyObject *resultobj;
40698 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40699 wxIndividualLayoutConstraint *result;
40700 PyObject * obj0 = 0 ;
40701 char *kwnames[] = {
40702 (char *) "self", NULL
40703 };
40704
40705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreX_get",kwnames,&obj0)) goto fail;
40706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40708 result = (wxIndividualLayoutConstraint *)& ((arg1)->centreX);
40709
40710 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
40711 return resultobj;
40712 fail:
40713 return NULL;
40714}
40715
40716
c32bde28 40717static PyObject *_wrap_LayoutConstraints_centreY_get(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
40718 PyObject *resultobj;
40719 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40720 wxIndividualLayoutConstraint *result;
40721 PyObject * obj0 = 0 ;
40722 char *kwnames[] = {
40723 (char *) "self", NULL
40724 };
40725
40726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreY_get",kwnames,&obj0)) goto fail;
40727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40729 result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY);
40730
40731 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
40732 return resultobj;
40733 fail:
40734 return NULL;
40735}
40736
40737
c32bde28 40738static PyObject *_wrap_new_LayoutConstraints(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
40739 PyObject *resultobj;
40740 wxLayoutConstraints *result;
40741 char *kwnames[] = {
40742 NULL
40743 };
40744
40745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutConstraints",kwnames)) goto fail;
40746 {
40747 PyThreadState* __tstate = wxPyBeginAllowThreads();
40748 result = (wxLayoutConstraints *)new wxLayoutConstraints();
40749
40750 wxPyEndAllowThreads(__tstate);
40751 if (PyErr_Occurred()) SWIG_fail;
40752 }
40753 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 1);
40754 return resultobj;
40755 fail:
40756 return NULL;
40757}
40758
40759
c32bde28 40760static PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
40761 PyObject *resultobj;
40762 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40763 wxWindow *arg2 = (wxWindow *) 0 ;
40764 int *arg3 = (int *) 0 ;
40765 bool result;
40766 int temp3 ;
c32bde28 40767 int res3 = 0 ;
d55e5bfc
RD
40768 PyObject * obj0 = 0 ;
40769 PyObject * obj1 = 0 ;
40770 char *kwnames[] = {
40771 (char *) "self",(char *) "win", NULL
40772 };
40773
c32bde28 40774 arg3 = &temp3; res3 = SWIG_NEWOBJ;
d55e5bfc
RD
40775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) goto fail;
40776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40778 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
40779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40780 {
40781 PyThreadState* __tstate = wxPyBeginAllowThreads();
40782 result = (bool)(arg1)->SatisfyConstraints(arg2,arg3);
40783
40784 wxPyEndAllowThreads(__tstate);
40785 if (PyErr_Occurred()) SWIG_fail;
40786 }
40787 {
40788 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40789 }
c32bde28
RD
40790 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
40791 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
d55e5bfc
RD
40792 return resultobj;
40793 fail:
40794 return NULL;
40795}
40796
40797
c32bde28 40798static PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
40799 PyObject *resultobj;
40800 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40801 bool result;
40802 PyObject * obj0 = 0 ;
40803 char *kwnames[] = {
40804 (char *) "self", NULL
40805 };
40806
40807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_AreSatisfied",kwnames,&obj0)) goto fail;
40808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40810 {
40811 PyThreadState* __tstate = wxPyBeginAllowThreads();
40812 result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied();
40813
40814 wxPyEndAllowThreads(__tstate);
40815 if (PyErr_Occurred()) SWIG_fail;
40816 }
40817 {
40818 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40819 }
40820 return resultobj;
40821 fail:
40822 return NULL;
40823}
40824
40825
c32bde28 40826static PyObject * LayoutConstraints_swigregister(PyObject *, PyObject *args) {
d55e5bfc
RD
40827 PyObject *obj;
40828 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
40829 SWIG_TypeClientData(SWIGTYPE_p_wxLayoutConstraints, obj);
40830 Py_INCREF(obj);
40831 return Py_BuildValue((char *)"");
40832}
40833static PyMethodDef SwigMethods[] = {
c32bde28
RD
40834 { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS, NULL },
40835 { (char *)"_wxPyFixStockObjects", __wxPyFixStockObjects, METH_VARARGS, NULL },
40836 { (char *)"Object_GetClassName", (PyCFunction) _wrap_Object_GetClassName, METH_VARARGS | METH_KEYWORDS, NULL },
40837 { (char *)"Object_Destroy", (PyCFunction) _wrap_Object_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
40838 { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS, NULL },
40839 { (char *)"Size_width_set", (PyCFunction) _wrap_Size_width_set, METH_VARARGS | METH_KEYWORDS, NULL },
40840 { (char *)"Size_width_get", (PyCFunction) _wrap_Size_width_get, METH_VARARGS | METH_KEYWORDS, NULL },
40841 { (char *)"Size_height_set", (PyCFunction) _wrap_Size_height_set, METH_VARARGS | METH_KEYWORDS, NULL },
40842 { (char *)"Size_height_get", (PyCFunction) _wrap_Size_height_get, METH_VARARGS | METH_KEYWORDS, NULL },
40843 { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS, NULL },
40844 { (char *)"delete_Size", (PyCFunction) _wrap_delete_Size, METH_VARARGS | METH_KEYWORDS, NULL },
40845 { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
40846 { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
40847 { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS, NULL },
40848 { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS, NULL },
40849 { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS, NULL },
40850 { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS, NULL },
40851 { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS, NULL },
40852 { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
40853 { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
40854 { (char *)"Size_GetWidth", (PyCFunction) _wrap_Size_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
40855 { (char *)"Size_GetHeight", (PyCFunction) _wrap_Size_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
40856 { (char *)"Size_IsFullySpecified", (PyCFunction) _wrap_Size_IsFullySpecified, METH_VARARGS | METH_KEYWORDS, NULL },
40857 { (char *)"Size_SetDefaults", (PyCFunction) _wrap_Size_SetDefaults, METH_VARARGS | METH_KEYWORDS, NULL },
40858 { (char *)"Size_Get", (PyCFunction) _wrap_Size_Get, METH_VARARGS | METH_KEYWORDS, NULL },
40859 { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS, NULL },
40860 { (char *)"RealPoint_x_set", (PyCFunction) _wrap_RealPoint_x_set, METH_VARARGS | METH_KEYWORDS, NULL },
40861 { (char *)"RealPoint_x_get", (PyCFunction) _wrap_RealPoint_x_get, METH_VARARGS | METH_KEYWORDS, NULL },
40862 { (char *)"RealPoint_y_set", (PyCFunction) _wrap_RealPoint_y_set, METH_VARARGS | METH_KEYWORDS, NULL },
40863 { (char *)"RealPoint_y_get", (PyCFunction) _wrap_RealPoint_y_get, METH_VARARGS | METH_KEYWORDS, NULL },
40864 { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS, NULL },
40865 { (char *)"delete_RealPoint", (PyCFunction) _wrap_delete_RealPoint, METH_VARARGS | METH_KEYWORDS, NULL },
40866 { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
40867 { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
40868 { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS, NULL },
40869 { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS, NULL },
40870 { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS, NULL },
40871 { (char *)"RealPoint_Get", (PyCFunction) _wrap_RealPoint_Get, METH_VARARGS | METH_KEYWORDS, NULL },
40872 { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS, NULL },
40873 { (char *)"Point_x_set", (PyCFunction) _wrap_Point_x_set, METH_VARARGS | METH_KEYWORDS, NULL },
40874 { (char *)"Point_x_get", (PyCFunction) _wrap_Point_x_get, METH_VARARGS | METH_KEYWORDS, NULL },
40875 { (char *)"Point_y_set", (PyCFunction) _wrap_Point_y_set, METH_VARARGS | METH_KEYWORDS, NULL },
40876 { (char *)"Point_y_get", (PyCFunction) _wrap_Point_y_get, METH_VARARGS | METH_KEYWORDS, NULL },
40877 { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS, NULL },
40878 { (char *)"delete_Point", (PyCFunction) _wrap_delete_Point, METH_VARARGS | METH_KEYWORDS, NULL },
40879 { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
40880 { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
40881 { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS, NULL },
40882 { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS, NULL },
40883 { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS, NULL },
40884 { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS, NULL },
40885 { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS, NULL },
40886 { (char *)"Point_Get", (PyCFunction) _wrap_Point_Get, METH_VARARGS | METH_KEYWORDS, NULL },
40887 { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS, NULL },
40888 { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS, NULL },
40889 { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS, NULL },
40890 { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS, NULL },
40891 { (char *)"delete_Rect", (PyCFunction) _wrap_delete_Rect, METH_VARARGS | METH_KEYWORDS, NULL },
40892 { (char *)"Rect_GetX", (PyCFunction) _wrap_Rect_GetX, METH_VARARGS | METH_KEYWORDS, NULL },
40893 { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS, NULL },
40894 { (char *)"Rect_GetY", (PyCFunction) _wrap_Rect_GetY, METH_VARARGS | METH_KEYWORDS, NULL },
40895 { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS, NULL },
40896 { (char *)"Rect_GetWidth", (PyCFunction) _wrap_Rect_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
40897 { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
40898 { (char *)"Rect_GetHeight", (PyCFunction) _wrap_Rect_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
40899 { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
40900 { (char *)"Rect_GetPosition", (PyCFunction) _wrap_Rect_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
40901 { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
40902 { (char *)"Rect_GetSize", (PyCFunction) _wrap_Rect_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
40903 { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS, NULL },
40904 { (char *)"Rect_GetTopLeft", (PyCFunction) _wrap_Rect_GetTopLeft, METH_VARARGS | METH_KEYWORDS, NULL },
40905 { (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS, NULL },
40906 { (char *)"Rect_GetBottomRight", (PyCFunction) _wrap_Rect_GetBottomRight, METH_VARARGS | METH_KEYWORDS, NULL },
40907 { (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS, NULL },
40908 { (char *)"Rect_GetLeft", (PyCFunction) _wrap_Rect_GetLeft, METH_VARARGS | METH_KEYWORDS, NULL },
40909 { (char *)"Rect_GetTop", (PyCFunction) _wrap_Rect_GetTop, METH_VARARGS | METH_KEYWORDS, NULL },
40910 { (char *)"Rect_GetBottom", (PyCFunction) _wrap_Rect_GetBottom, METH_VARARGS | METH_KEYWORDS, NULL },
40911 { (char *)"Rect_GetRight", (PyCFunction) _wrap_Rect_GetRight, METH_VARARGS | METH_KEYWORDS, NULL },
40912 { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS, NULL },
40913 { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS, NULL },
40914 { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS, NULL },
40915 { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS, NULL },
40916 { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS, NULL },
40917 { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS, NULL },
40918 { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS, NULL },
40919 { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS, NULL },
40920 { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS, NULL },
40921 { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS, NULL },
40922 { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS, NULL },
40923 { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
40924 { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
40925 { (char *)"Rect_InsideXY", (PyCFunction) _wrap_Rect_InsideXY, METH_VARARGS | METH_KEYWORDS, NULL },
40926 { (char *)"Rect_Inside", (PyCFunction) _wrap_Rect_Inside, METH_VARARGS | METH_KEYWORDS, NULL },
40927 { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS, NULL },
40928 { (char *)"Rect_x_set", (PyCFunction) _wrap_Rect_x_set, METH_VARARGS | METH_KEYWORDS, NULL },
40929 { (char *)"Rect_x_get", (PyCFunction) _wrap_Rect_x_get, METH_VARARGS | METH_KEYWORDS, NULL },
40930 { (char *)"Rect_y_set", (PyCFunction) _wrap_Rect_y_set, METH_VARARGS | METH_KEYWORDS, NULL },
40931 { (char *)"Rect_y_get", (PyCFunction) _wrap_Rect_y_get, METH_VARARGS | METH_KEYWORDS, NULL },
40932 { (char *)"Rect_width_set", (PyCFunction) _wrap_Rect_width_set, METH_VARARGS | METH_KEYWORDS, NULL },
40933 { (char *)"Rect_width_get", (PyCFunction) _wrap_Rect_width_get, METH_VARARGS | METH_KEYWORDS, NULL },
40934 { (char *)"Rect_height_set", (PyCFunction) _wrap_Rect_height_set, METH_VARARGS | METH_KEYWORDS, NULL },
40935 { (char *)"Rect_height_get", (PyCFunction) _wrap_Rect_height_get, METH_VARARGS | METH_KEYWORDS, NULL },
40936 { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS, NULL },
40937 { (char *)"Rect_Get", (PyCFunction) _wrap_Rect_Get, METH_VARARGS | METH_KEYWORDS, NULL },
40938 { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS, NULL },
40939 { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL },
40940 { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS, NULL },
40941 { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS, NULL },
40942 { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS, NULL },
40943 { (char *)"Point2D_GetFloor", (PyCFunction) _wrap_Point2D_GetFloor, METH_VARARGS | METH_KEYWORDS, NULL },
40944 { (char *)"Point2D_GetRounded", (PyCFunction) _wrap_Point2D_GetRounded, METH_VARARGS | METH_KEYWORDS, NULL },
40945 { (char *)"Point2D_GetVectorLength", (PyCFunction) _wrap_Point2D_GetVectorLength, METH_VARARGS | METH_KEYWORDS, NULL },
40946 { (char *)"Point2D_GetVectorAngle", (PyCFunction) _wrap_Point2D_GetVectorAngle, METH_VARARGS | METH_KEYWORDS, NULL },
40947 { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS, NULL },
40948 { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS, NULL },
40949 { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS, NULL },
40950 { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS, NULL },
40951 { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS, NULL },
40952 { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS, NULL },
40953 { (char *)"Point2D___neg__", (PyCFunction) _wrap_Point2D___neg__, METH_VARARGS | METH_KEYWORDS, NULL },
40954 { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS, NULL },
40955 { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS, NULL },
40956 { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS, NULL },
40957 { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS, NULL },
40958 { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
40959 { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
40960 { (char *)"Point2D_x_set", (PyCFunction) _wrap_Point2D_x_set, METH_VARARGS | METH_KEYWORDS, NULL },
40961 { (char *)"Point2D_x_get", (PyCFunction) _wrap_Point2D_x_get, METH_VARARGS | METH_KEYWORDS, NULL },
40962 { (char *)"Point2D_y_set", (PyCFunction) _wrap_Point2D_y_set, METH_VARARGS | METH_KEYWORDS, NULL },
40963 { (char *)"Point2D_y_get", (PyCFunction) _wrap_Point2D_y_get, METH_VARARGS | METH_KEYWORDS, NULL },
40964 { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS, NULL },
40965 { (char *)"Point2D_Get", (PyCFunction) _wrap_Point2D_Get, METH_VARARGS | METH_KEYWORDS, NULL },
40966 { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS, NULL },
40967 { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS, NULL },
40968 { (char *)"InputStream_close", (PyCFunction) _wrap_InputStream_close, METH_VARARGS | METH_KEYWORDS, NULL },
40969 { (char *)"InputStream_flush", (PyCFunction) _wrap_InputStream_flush, METH_VARARGS | METH_KEYWORDS, NULL },
40970 { (char *)"InputStream_eof", (PyCFunction) _wrap_InputStream_eof, METH_VARARGS | METH_KEYWORDS, NULL },
40971 { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS, NULL },
40972 { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS, NULL },
40973 { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS, NULL },
40974 { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS, NULL },
40975 { (char *)"InputStream_tell", (PyCFunction) _wrap_InputStream_tell, METH_VARARGS | METH_KEYWORDS, NULL },
40976 { (char *)"InputStream_Peek", (PyCFunction) _wrap_InputStream_Peek, METH_VARARGS | METH_KEYWORDS, NULL },
40977 { (char *)"InputStream_GetC", (PyCFunction) _wrap_InputStream_GetC, METH_VARARGS | METH_KEYWORDS, NULL },
40978 { (char *)"InputStream_LastRead", (PyCFunction) _wrap_InputStream_LastRead, METH_VARARGS | METH_KEYWORDS, NULL },
40979 { (char *)"InputStream_CanRead", (PyCFunction) _wrap_InputStream_CanRead, METH_VARARGS | METH_KEYWORDS, NULL },
40980 { (char *)"InputStream_Eof", (PyCFunction) _wrap_InputStream_Eof, METH_VARARGS | METH_KEYWORDS, NULL },
40981 { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS, NULL },
40982 { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS, NULL },
40983 { (char *)"InputStream_TellI", (PyCFunction) _wrap_InputStream_TellI, METH_VARARGS | METH_KEYWORDS, NULL },
40984 { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS, NULL },
40985 { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS, NULL },
40986 { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS, NULL },
40987 { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS, NULL },
40988 { (char *)"delete_FSFile", (PyCFunction) _wrap_delete_FSFile, METH_VARARGS | METH_KEYWORDS, NULL },
40989 { (char *)"FSFile_GetStream", (PyCFunction) _wrap_FSFile_GetStream, METH_VARARGS | METH_KEYWORDS, NULL },
40990 { (char *)"FSFile_GetMimeType", (PyCFunction) _wrap_FSFile_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL },
40991 { (char *)"FSFile_GetLocation", (PyCFunction) _wrap_FSFile_GetLocation, METH_VARARGS | METH_KEYWORDS, NULL },
40992 { (char *)"FSFile_GetAnchor", (PyCFunction) _wrap_FSFile_GetAnchor, METH_VARARGS | METH_KEYWORDS, NULL },
40993 { (char *)"FSFile_GetModificationTime", (PyCFunction) _wrap_FSFile_GetModificationTime, METH_VARARGS | METH_KEYWORDS, NULL },
40994 { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS, NULL },
40995 { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS, NULL },
40996 { (char *)"new_FileSystemHandler", (PyCFunction) _wrap_new_FileSystemHandler, METH_VARARGS | METH_KEYWORDS, NULL },
40997 { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
40998 { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL },
40999 { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL },
41000 { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL },
41001 { (char *)"FileSystemHandler_FindNext", (PyCFunction) _wrap_FileSystemHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL },
41002 { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS, NULL },
41003 { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS, NULL },
41004 { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS, NULL },
41005 { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS, NULL },
41006 { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS, NULL },
41007 { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS, NULL },
41008 { (char *)"new_FileSystem", (PyCFunction) _wrap_new_FileSystem, METH_VARARGS | METH_KEYWORDS, NULL },
41009 { (char *)"delete_FileSystem", (PyCFunction) _wrap_delete_FileSystem, METH_VARARGS | METH_KEYWORDS, NULL },
41010 { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS, NULL },
41011 { (char *)"FileSystem_GetPath", (PyCFunction) _wrap_FileSystem_GetPath, METH_VARARGS | METH_KEYWORDS, NULL },
41012 { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL },
41013 { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL },
41014 { (char *)"FileSystem_FindNext", (PyCFunction) _wrap_FileSystem_FindNext, METH_VARARGS | METH_KEYWORDS, NULL },
41015 { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41016 { (char *)"FileSystem_CleanUpHandlers", (PyCFunction) _wrap_FileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS, NULL },
41017 { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS, NULL },
41018 { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS, NULL },
41019 { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS, NULL },
41020 { (char *)"new_InternetFSHandler", (PyCFunction) _wrap_new_InternetFSHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41021 { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL },
41022 { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL },
41023 { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS, NULL },
41024 { (char *)"new_ZipFSHandler", (PyCFunction) _wrap_new_ZipFSHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41025 { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL },
41026 { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL },
41027 { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL },
41028 { (char *)"ZipFSHandler_FindNext", (PyCFunction) _wrap_ZipFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL },
41029 { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS, NULL },
41030 { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS, NULL },
41031 { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
41032 { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS, NULL },
41033 { (char *)"new_MemoryFSHandler", (PyCFunction) _wrap_new_MemoryFSHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41034 { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS, NULL },
41035 { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL },
41036 { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL },
41037 { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL },
41038 { (char *)"MemoryFSHandler_FindNext", (PyCFunction) _wrap_MemoryFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS, NULL },
41039 { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS, NULL },
41040 { (char *)"ImageHandler_GetName", (PyCFunction) _wrap_ImageHandler_GetName, METH_VARARGS | METH_KEYWORDS, NULL },
41041 { (char *)"ImageHandler_GetExtension", (PyCFunction) _wrap_ImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS, NULL },
41042 { (char *)"ImageHandler_GetType", (PyCFunction) _wrap_ImageHandler_GetType, METH_VARARGS | METH_KEYWORDS, NULL },
41043 { (char *)"ImageHandler_GetMimeType", (PyCFunction) _wrap_ImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS, NULL },
41044 { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS, NULL },
41045 { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS, NULL },
41046 { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS, NULL },
41047 { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS, NULL },
41048 { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS, NULL },
41049 { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS, NULL },
41050 { (char *)"new_ImageHistogram", (PyCFunction) _wrap_new_ImageHistogram, METH_VARARGS | METH_KEYWORDS, NULL },
41051 { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS, NULL },
41052 { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS, NULL },
41053 { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS, NULL },
41054 { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS, NULL },
41055 { (char *)"delete_Image", (PyCFunction) _wrap_delete_Image, METH_VARARGS | METH_KEYWORDS, NULL },
41056 { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS, NULL },
41057 { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS, NULL },
41058 { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS, NULL },
41059 { (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS, NULL },
41060 { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
41061 { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS, NULL },
41062 { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS, NULL },
41063 { (char *)"Image_Destroy", (PyCFunction) _wrap_Image_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
41064 { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS, NULL },
41065 { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS, NULL },
41066 { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS, NULL },
41067 { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL },
41068 { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS, NULL },
41069 { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS, NULL },
41070 { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS, NULL },
41071 { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS, NULL },
41072 { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS, NULL },
41073 { (char *)"Image_HasAlpha", (PyCFunction) _wrap_Image_HasAlpha, METH_VARARGS | METH_KEYWORDS, NULL },
41074 { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS, NULL },
41075 { (char *)"Image_ConvertAlphaToMask", (PyCFunction) _wrap_Image_ConvertAlphaToMask, METH_VARARGS | METH_KEYWORDS, NULL },
41076 { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS, NULL },
41077 { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS, NULL },
41078 { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL },
41079 { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL },
41080 { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS, NULL },
41081 { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL },
41082 { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS, NULL },
41083 { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS, NULL },
41084 { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS, NULL },
41085 { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS, NULL },
41086 { (char *)"Image_Ok", (PyCFunction) _wrap_Image_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
41087 { (char *)"Image_GetWidth", (PyCFunction) _wrap_Image_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
41088 { (char *)"Image_GetHeight", (PyCFunction) _wrap_Image_GetHeight, METH_VARARGS | METH_KEYWORDS, NULL },
41089 { (char *)"Image_GetSize", (PyCFunction) _wrap_Image_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
41090 { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS, NULL },
41091 { (char *)"Image_Copy", (PyCFunction) _wrap_Image_Copy, METH_VARARGS | METH_KEYWORDS, NULL },
41092 { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS, NULL },
41093 { (char *)"Image_GetData", (PyCFunction) _wrap_Image_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
41094 { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
41095 { (char *)"Image_GetDataBuffer", (PyCFunction) _wrap_Image_GetDataBuffer, METH_VARARGS | METH_KEYWORDS, NULL },
41096 { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS, NULL },
41097 { (char *)"Image_GetAlphaData", (PyCFunction) _wrap_Image_GetAlphaData, METH_VARARGS | METH_KEYWORDS, NULL },
41098 { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS, NULL },
41099 { (char *)"Image_GetAlphaBuffer", (PyCFunction) _wrap_Image_GetAlphaBuffer, METH_VARARGS | METH_KEYWORDS, NULL },
41100 { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS, NULL },
41101 { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL },
41102 { (char *)"Image_GetMaskRed", (PyCFunction) _wrap_Image_GetMaskRed, METH_VARARGS | METH_KEYWORDS, NULL },
41103 { (char *)"Image_GetMaskGreen", (PyCFunction) _wrap_Image_GetMaskGreen, METH_VARARGS | METH_KEYWORDS, NULL },
41104 { (char *)"Image_GetMaskBlue", (PyCFunction) _wrap_Image_GetMaskBlue, METH_VARARGS | METH_KEYWORDS, NULL },
41105 { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS, NULL },
41106 { (char *)"Image_HasMask", (PyCFunction) _wrap_Image_HasMask, METH_VARARGS | METH_KEYWORDS, NULL },
41107 { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS, NULL },
41108 { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS, NULL },
41109 { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS, NULL },
41110 { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS, NULL },
41111 { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS, NULL },
41112 { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS, NULL },
41113 { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL },
41114 { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS, NULL },
41115 { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL },
41116 { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS, NULL },
41117 { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS, NULL },
41118 { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS, NULL },
41119 { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41120 { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41121 { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41122 { (char *)"Image_GetImageExtWildcard", (PyCFunction) _wrap_Image_GetImageExtWildcard, METH_VARARGS | METH_KEYWORDS, NULL },
41123 { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
41124 { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
41125 { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS, NULL },
41126 { (char *)"new_BMPHandler", (PyCFunction) _wrap_new_BMPHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41127 { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS, NULL },
41128 { (char *)"new_ICOHandler", (PyCFunction) _wrap_new_ICOHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41129 { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS, NULL },
41130 { (char *)"new_CURHandler", (PyCFunction) _wrap_new_CURHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41131 { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS, NULL },
41132 { (char *)"new_ANIHandler", (PyCFunction) _wrap_new_ANIHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41133 { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS, NULL },
41134 { (char *)"new_PNGHandler", (PyCFunction) _wrap_new_PNGHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41135 { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS, NULL },
41136 { (char *)"new_GIFHandler", (PyCFunction) _wrap_new_GIFHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41137 { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS, NULL },
41138 { (char *)"new_PCXHandler", (PyCFunction) _wrap_new_PCXHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41139 { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS, NULL },
41140 { (char *)"new_JPEGHandler", (PyCFunction) _wrap_new_JPEGHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41141 { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS, NULL },
41142 { (char *)"new_PNMHandler", (PyCFunction) _wrap_new_PNMHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41143 { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS, NULL },
41144 { (char *)"new_XPMHandler", (PyCFunction) _wrap_new_XPMHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41145 { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS, NULL },
41146 { (char *)"new_TIFFHandler", (PyCFunction) _wrap_new_TIFFHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41147 { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS, NULL },
41148 { (char *)"Quantize_Quantize", (PyCFunction) _wrap_Quantize_Quantize, METH_VARARGS | METH_KEYWORDS, NULL },
41149 { (char *)"Quantize_swigregister", Quantize_swigregister, METH_VARARGS, NULL },
41150 { (char *)"new_EvtHandler", (PyCFunction) _wrap_new_EvtHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41151 { (char *)"EvtHandler_GetNextHandler", (PyCFunction) _wrap_EvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41152 { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction) _wrap_EvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41153 { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41154 { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41155 { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
41156 { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
41157 { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41158 { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41159 { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction) _wrap_EvtHandler_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS, NULL },
41160 { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS, NULL },
41161 { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS, NULL },
41162 { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL },
41163 { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS, NULL },
41164 { (char *)"NewEventType", (PyCFunction) _wrap_NewEventType, METH_VARARGS | METH_KEYWORDS, NULL },
41165 { (char *)"delete_Event", (PyCFunction) _wrap_delete_Event, METH_VARARGS | METH_KEYWORDS, NULL },
41166 { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS, NULL },
41167 { (char *)"Event_GetEventType", (PyCFunction) _wrap_Event_GetEventType, METH_VARARGS | METH_KEYWORDS, NULL },
41168 { (char *)"Event_GetEventObject", (PyCFunction) _wrap_Event_GetEventObject, METH_VARARGS | METH_KEYWORDS, NULL },
41169 { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS, NULL },
41170 { (char *)"Event_GetTimestamp", (PyCFunction) _wrap_Event_GetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL },
41171 { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL },
41172 { (char *)"Event_GetId", (PyCFunction) _wrap_Event_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
41173 { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS, NULL },
41174 { (char *)"Event_IsCommandEvent", (PyCFunction) _wrap_Event_IsCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41175 { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS, NULL },
41176 { (char *)"Event_GetSkipped", (PyCFunction) _wrap_Event_GetSkipped, METH_VARARGS | METH_KEYWORDS, NULL },
41177 { (char *)"Event_ShouldPropagate", (PyCFunction) _wrap_Event_ShouldPropagate, METH_VARARGS | METH_KEYWORDS, NULL },
41178 { (char *)"Event_StopPropagation", (PyCFunction) _wrap_Event_StopPropagation, METH_VARARGS | METH_KEYWORDS, NULL },
41179 { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS, NULL },
41180 { (char *)"Event_Clone", (PyCFunction) _wrap_Event_Clone, METH_VARARGS | METH_KEYWORDS, NULL },
41181 { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS, NULL },
41182 { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS, NULL },
41183 { (char *)"delete_PropagationDisabler", (PyCFunction) _wrap_delete_PropagationDisabler, METH_VARARGS | METH_KEYWORDS, NULL },
41184 { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS, NULL },
41185 { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS, NULL },
41186 { (char *)"delete_PropagateOnce", (PyCFunction) _wrap_delete_PropagateOnce, METH_VARARGS | METH_KEYWORDS, NULL },
41187 { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS, NULL },
41188 { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41189 { (char *)"CommandEvent_GetSelection", (PyCFunction) _wrap_CommandEvent_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
41190 { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS, NULL },
41191 { (char *)"CommandEvent_GetString", (PyCFunction) _wrap_CommandEvent_GetString, METH_VARARGS | METH_KEYWORDS, NULL },
41192 { (char *)"CommandEvent_IsChecked", (PyCFunction) _wrap_CommandEvent_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL },
41193 { (char *)"CommandEvent_IsSelection", (PyCFunction) _wrap_CommandEvent_IsSelection, METH_VARARGS | METH_KEYWORDS, NULL },
41194 { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS, NULL },
41195 { (char *)"CommandEvent_GetExtraLong", (PyCFunction) _wrap_CommandEvent_GetExtraLong, METH_VARARGS | METH_KEYWORDS, NULL },
41196 { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS, NULL },
41197 { (char *)"CommandEvent_GetInt", (PyCFunction) _wrap_CommandEvent_GetInt, METH_VARARGS | METH_KEYWORDS, NULL },
41198 { (char *)"CommandEvent_Clone", (PyCFunction) _wrap_CommandEvent_Clone, METH_VARARGS | METH_KEYWORDS, NULL },
41199 { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS, NULL },
41200 { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41201 { (char *)"NotifyEvent_Veto", (PyCFunction) _wrap_NotifyEvent_Veto, METH_VARARGS | METH_KEYWORDS, NULL },
41202 { (char *)"NotifyEvent_Allow", (PyCFunction) _wrap_NotifyEvent_Allow, METH_VARARGS | METH_KEYWORDS, NULL },
41203 { (char *)"NotifyEvent_IsAllowed", (PyCFunction) _wrap_NotifyEvent_IsAllowed, METH_VARARGS | METH_KEYWORDS, NULL },
41204 { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS, NULL },
41205 { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41206 { (char *)"ScrollEvent_GetOrientation", (PyCFunction) _wrap_ScrollEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL },
41207 { (char *)"ScrollEvent_GetPosition", (PyCFunction) _wrap_ScrollEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
41208 { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL },
41209 { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
41210 { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS, NULL },
41211 { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41212 { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction) _wrap_ScrollWinEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL },
41213 { (char *)"ScrollWinEvent_GetPosition", (PyCFunction) _wrap_ScrollWinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
41214 { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL },
41215 { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
41216 { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS, NULL },
41217 { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41218 { (char *)"MouseEvent_IsButton", (PyCFunction) _wrap_MouseEvent_IsButton, METH_VARARGS | METH_KEYWORDS, NULL },
41219 { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS, NULL },
41220 { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS, NULL },
41221 { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS, NULL },
41222 { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS, NULL },
41223 { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS, NULL },
41224 { (char *)"MouseEvent_GetButton", (PyCFunction) _wrap_MouseEvent_GetButton, METH_VARARGS | METH_KEYWORDS, NULL },
41225 { (char *)"MouseEvent_ControlDown", (PyCFunction) _wrap_MouseEvent_ControlDown, METH_VARARGS | METH_KEYWORDS, NULL },
41226 { (char *)"MouseEvent_MetaDown", (PyCFunction) _wrap_MouseEvent_MetaDown, METH_VARARGS | METH_KEYWORDS, NULL },
41227 { (char *)"MouseEvent_AltDown", (PyCFunction) _wrap_MouseEvent_AltDown, METH_VARARGS | METH_KEYWORDS, NULL },
41228 { (char *)"MouseEvent_ShiftDown", (PyCFunction) _wrap_MouseEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS, NULL },
41229 { (char *)"MouseEvent_CmdDown", (PyCFunction) _wrap_MouseEvent_CmdDown, METH_VARARGS | METH_KEYWORDS, NULL },
41230 { (char *)"MouseEvent_LeftDown", (PyCFunction) _wrap_MouseEvent_LeftDown, METH_VARARGS | METH_KEYWORDS, NULL },
41231 { (char *)"MouseEvent_MiddleDown", (PyCFunction) _wrap_MouseEvent_MiddleDown, METH_VARARGS | METH_KEYWORDS, NULL },
41232 { (char *)"MouseEvent_RightDown", (PyCFunction) _wrap_MouseEvent_RightDown, METH_VARARGS | METH_KEYWORDS, NULL },
41233 { (char *)"MouseEvent_LeftUp", (PyCFunction) _wrap_MouseEvent_LeftUp, METH_VARARGS | METH_KEYWORDS, NULL },
41234 { (char *)"MouseEvent_MiddleUp", (PyCFunction) _wrap_MouseEvent_MiddleUp, METH_VARARGS | METH_KEYWORDS, NULL },
41235 { (char *)"MouseEvent_RightUp", (PyCFunction) _wrap_MouseEvent_RightUp, METH_VARARGS | METH_KEYWORDS, NULL },
41236 { (char *)"MouseEvent_LeftDClick", (PyCFunction) _wrap_MouseEvent_LeftDClick, METH_VARARGS | METH_KEYWORDS, NULL },
41237 { (char *)"MouseEvent_MiddleDClick", (PyCFunction) _wrap_MouseEvent_MiddleDClick, METH_VARARGS | METH_KEYWORDS, NULL },
41238 { (char *)"MouseEvent_RightDClick", (PyCFunction) _wrap_MouseEvent_RightDClick, METH_VARARGS | METH_KEYWORDS, NULL },
41239 { (char *)"MouseEvent_LeftIsDown", (PyCFunction) _wrap_MouseEvent_LeftIsDown, METH_VARARGS | METH_KEYWORDS, NULL },
41240 { (char *)"MouseEvent_MiddleIsDown", (PyCFunction) _wrap_MouseEvent_MiddleIsDown, METH_VARARGS | METH_KEYWORDS, NULL },
41241 { (char *)"MouseEvent_RightIsDown", (PyCFunction) _wrap_MouseEvent_RightIsDown, METH_VARARGS | METH_KEYWORDS, NULL },
41242 { (char *)"MouseEvent_Dragging", (PyCFunction) _wrap_MouseEvent_Dragging, METH_VARARGS | METH_KEYWORDS, NULL },
41243 { (char *)"MouseEvent_Moving", (PyCFunction) _wrap_MouseEvent_Moving, METH_VARARGS | METH_KEYWORDS, NULL },
41244 { (char *)"MouseEvent_Entering", (PyCFunction) _wrap_MouseEvent_Entering, METH_VARARGS | METH_KEYWORDS, NULL },
41245 { (char *)"MouseEvent_Leaving", (PyCFunction) _wrap_MouseEvent_Leaving, METH_VARARGS | METH_KEYWORDS, NULL },
41246 { (char *)"MouseEvent_GetPosition", (PyCFunction) _wrap_MouseEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
41247 { (char *)"MouseEvent_GetPositionTuple", (PyCFunction) _wrap_MouseEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL },
41248 { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS, NULL },
41249 { (char *)"MouseEvent_GetX", (PyCFunction) _wrap_MouseEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL },
41250 { (char *)"MouseEvent_GetY", (PyCFunction) _wrap_MouseEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL },
41251 { (char *)"MouseEvent_GetWheelRotation", (PyCFunction) _wrap_MouseEvent_GetWheelRotation, METH_VARARGS | METH_KEYWORDS, NULL },
41252 { (char *)"MouseEvent_GetWheelDelta", (PyCFunction) _wrap_MouseEvent_GetWheelDelta, METH_VARARGS | METH_KEYWORDS, NULL },
41253 { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction) _wrap_MouseEvent_GetLinesPerAction, METH_VARARGS | METH_KEYWORDS, NULL },
41254 { (char *)"MouseEvent_IsPageScroll", (PyCFunction) _wrap_MouseEvent_IsPageScroll, METH_VARARGS | METH_KEYWORDS, NULL },
41255 { (char *)"MouseEvent_m_x_set", (PyCFunction) _wrap_MouseEvent_m_x_set, METH_VARARGS | METH_KEYWORDS, NULL },
41256 { (char *)"MouseEvent_m_x_get", (PyCFunction) _wrap_MouseEvent_m_x_get, METH_VARARGS | METH_KEYWORDS, NULL },
41257 { (char *)"MouseEvent_m_y_set", (PyCFunction) _wrap_MouseEvent_m_y_set, METH_VARARGS | METH_KEYWORDS, NULL },
41258 { (char *)"MouseEvent_m_y_get", (PyCFunction) _wrap_MouseEvent_m_y_get, METH_VARARGS | METH_KEYWORDS, NULL },
41259 { (char *)"MouseEvent_m_leftDown_set", (PyCFunction) _wrap_MouseEvent_m_leftDown_set, METH_VARARGS | METH_KEYWORDS, NULL },
41260 { (char *)"MouseEvent_m_leftDown_get", (PyCFunction) _wrap_MouseEvent_m_leftDown_get, METH_VARARGS | METH_KEYWORDS, NULL },
41261 { (char *)"MouseEvent_m_middleDown_set", (PyCFunction) _wrap_MouseEvent_m_middleDown_set, METH_VARARGS | METH_KEYWORDS, NULL },
41262 { (char *)"MouseEvent_m_middleDown_get", (PyCFunction) _wrap_MouseEvent_m_middleDown_get, METH_VARARGS | METH_KEYWORDS, NULL },
41263 { (char *)"MouseEvent_m_rightDown_set", (PyCFunction) _wrap_MouseEvent_m_rightDown_set, METH_VARARGS | METH_KEYWORDS, NULL },
41264 { (char *)"MouseEvent_m_rightDown_get", (PyCFunction) _wrap_MouseEvent_m_rightDown_get, METH_VARARGS | METH_KEYWORDS, NULL },
41265 { (char *)"MouseEvent_m_controlDown_set", (PyCFunction) _wrap_MouseEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS, NULL },
41266 { (char *)"MouseEvent_m_controlDown_get", (PyCFunction) _wrap_MouseEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS, NULL },
41267 { (char *)"MouseEvent_m_shiftDown_set", (PyCFunction) _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS, NULL },
41268 { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction) _wrap_MouseEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS, NULL },
41269 { (char *)"MouseEvent_m_altDown_set", (PyCFunction) _wrap_MouseEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS, NULL },
41270 { (char *)"MouseEvent_m_altDown_get", (PyCFunction) _wrap_MouseEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS, NULL },
41271 { (char *)"MouseEvent_m_metaDown_set", (PyCFunction) _wrap_MouseEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS, NULL },
41272 { (char *)"MouseEvent_m_metaDown_get", (PyCFunction) _wrap_MouseEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS, NULL },
41273 { (char *)"MouseEvent_m_wheelRotation_set", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS | METH_KEYWORDS, NULL },
41274 { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_get, METH_VARARGS | METH_KEYWORDS, NULL },
41275 { (char *)"MouseEvent_m_wheelDelta_set", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS | METH_KEYWORDS, NULL },
41276 { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_get, METH_VARARGS | METH_KEYWORDS, NULL },
41277 { (char *)"MouseEvent_m_linesPerAction_set", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS | METH_KEYWORDS, NULL },
41278 { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_get, METH_VARARGS | METH_KEYWORDS, NULL },
41279 { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS, NULL },
41280 { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41281 { (char *)"SetCursorEvent_GetX", (PyCFunction) _wrap_SetCursorEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL },
41282 { (char *)"SetCursorEvent_GetY", (PyCFunction) _wrap_SetCursorEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL },
41283 { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL },
41284 { (char *)"SetCursorEvent_GetCursor", (PyCFunction) _wrap_SetCursorEvent_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL },
41285 { (char *)"SetCursorEvent_HasCursor", (PyCFunction) _wrap_SetCursorEvent_HasCursor, METH_VARARGS | METH_KEYWORDS, NULL },
41286 { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS, NULL },
41287 { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41288 { (char *)"KeyEvent_ControlDown", (PyCFunction) _wrap_KeyEvent_ControlDown, METH_VARARGS | METH_KEYWORDS, NULL },
41289 { (char *)"KeyEvent_MetaDown", (PyCFunction) _wrap_KeyEvent_MetaDown, METH_VARARGS | METH_KEYWORDS, NULL },
41290 { (char *)"KeyEvent_AltDown", (PyCFunction) _wrap_KeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS, NULL },
41291 { (char *)"KeyEvent_ShiftDown", (PyCFunction) _wrap_KeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS, NULL },
41292 { (char *)"KeyEvent_CmdDown", (PyCFunction) _wrap_KeyEvent_CmdDown, METH_VARARGS | METH_KEYWORDS, NULL },
41293 { (char *)"KeyEvent_HasModifiers", (PyCFunction) _wrap_KeyEvent_HasModifiers, METH_VARARGS | METH_KEYWORDS, NULL },
41294 { (char *)"KeyEvent_GetKeyCode", (PyCFunction) _wrap_KeyEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL },
41295 { (char *)"KeyEvent_GetUnicodeKey", (PyCFunction) _wrap_KeyEvent_GetUnicodeKey, METH_VARARGS | METH_KEYWORDS, NULL },
41296 { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction) _wrap_KeyEvent_GetRawKeyCode, METH_VARARGS | METH_KEYWORDS, NULL },
41297 { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction) _wrap_KeyEvent_GetRawKeyFlags, METH_VARARGS | METH_KEYWORDS, NULL },
41298 { (char *)"KeyEvent_GetPosition", (PyCFunction) _wrap_KeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
41299 { (char *)"KeyEvent_GetPositionTuple", (PyCFunction) _wrap_KeyEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL },
41300 { (char *)"KeyEvent_GetX", (PyCFunction) _wrap_KeyEvent_GetX, METH_VARARGS | METH_KEYWORDS, NULL },
41301 { (char *)"KeyEvent_GetY", (PyCFunction) _wrap_KeyEvent_GetY, METH_VARARGS | METH_KEYWORDS, NULL },
41302 { (char *)"KeyEvent_m_x_set", (PyCFunction) _wrap_KeyEvent_m_x_set, METH_VARARGS | METH_KEYWORDS, NULL },
41303 { (char *)"KeyEvent_m_x_get", (PyCFunction) _wrap_KeyEvent_m_x_get, METH_VARARGS | METH_KEYWORDS, NULL },
41304 { (char *)"KeyEvent_m_y_set", (PyCFunction) _wrap_KeyEvent_m_y_set, METH_VARARGS | METH_KEYWORDS, NULL },
41305 { (char *)"KeyEvent_m_y_get", (PyCFunction) _wrap_KeyEvent_m_y_get, METH_VARARGS | METH_KEYWORDS, NULL },
41306 { (char *)"KeyEvent_m_keyCode_set", (PyCFunction) _wrap_KeyEvent_m_keyCode_set, METH_VARARGS | METH_KEYWORDS, NULL },
41307 { (char *)"KeyEvent_m_keyCode_get", (PyCFunction) _wrap_KeyEvent_m_keyCode_get, METH_VARARGS | METH_KEYWORDS, NULL },
41308 { (char *)"KeyEvent_m_controlDown_set", (PyCFunction) _wrap_KeyEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS, NULL },
41309 { (char *)"KeyEvent_m_controlDown_get", (PyCFunction) _wrap_KeyEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS, NULL },
41310 { (char *)"KeyEvent_m_shiftDown_set", (PyCFunction) _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS, NULL },
41311 { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction) _wrap_KeyEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS, NULL },
41312 { (char *)"KeyEvent_m_altDown_set", (PyCFunction) _wrap_KeyEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS, NULL },
41313 { (char *)"KeyEvent_m_altDown_get", (PyCFunction) _wrap_KeyEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS, NULL },
41314 { (char *)"KeyEvent_m_metaDown_set", (PyCFunction) _wrap_KeyEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS, NULL },
41315 { (char *)"KeyEvent_m_metaDown_get", (PyCFunction) _wrap_KeyEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS, NULL },
41316 { (char *)"KeyEvent_m_scanCode_set", (PyCFunction) _wrap_KeyEvent_m_scanCode_set, METH_VARARGS | METH_KEYWORDS, NULL },
41317 { (char *)"KeyEvent_m_scanCode_get", (PyCFunction) _wrap_KeyEvent_m_scanCode_get, METH_VARARGS | METH_KEYWORDS, NULL },
41318 { (char *)"KeyEvent_m_rawCode_set", (PyCFunction) _wrap_KeyEvent_m_rawCode_set, METH_VARARGS | METH_KEYWORDS, NULL },
41319 { (char *)"KeyEvent_m_rawCode_get", (PyCFunction) _wrap_KeyEvent_m_rawCode_get, METH_VARARGS | METH_KEYWORDS, NULL },
41320 { (char *)"KeyEvent_m_rawFlags_set", (PyCFunction) _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS | METH_KEYWORDS, NULL },
41321 { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction) _wrap_KeyEvent_m_rawFlags_get, METH_VARARGS | METH_KEYWORDS, NULL },
41322 { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS, NULL },
41323 { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41324 { (char *)"SizeEvent_GetSize", (PyCFunction) _wrap_SizeEvent_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
41325 { (char *)"SizeEvent_GetRect", (PyCFunction) _wrap_SizeEvent_GetRect, METH_VARARGS | METH_KEYWORDS, NULL },
41326 { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL },
41327 { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS, NULL },
41328 { (char *)"SizeEvent_m_size_set", (PyCFunction) _wrap_SizeEvent_m_size_set, METH_VARARGS | METH_KEYWORDS, NULL },
41329 { (char *)"SizeEvent_m_size_get", (PyCFunction) _wrap_SizeEvent_m_size_get, METH_VARARGS | METH_KEYWORDS, NULL },
41330 { (char *)"SizeEvent_m_rect_set", (PyCFunction) _wrap_SizeEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS, NULL },
41331 { (char *)"SizeEvent_m_rect_get", (PyCFunction) _wrap_SizeEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS, NULL },
41332 { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS, NULL },
41333 { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41334 { (char *)"MoveEvent_GetPosition", (PyCFunction) _wrap_MoveEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
41335 { (char *)"MoveEvent_GetRect", (PyCFunction) _wrap_MoveEvent_GetRect, METH_VARARGS | METH_KEYWORDS, NULL },
41336 { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL },
41337 { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
41338 { (char *)"MoveEvent_m_pos_set", (PyCFunction) _wrap_MoveEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS, NULL },
41339 { (char *)"MoveEvent_m_pos_get", (PyCFunction) _wrap_MoveEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS, NULL },
41340 { (char *)"MoveEvent_m_rect_set", (PyCFunction) _wrap_MoveEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS, NULL },
41341 { (char *)"MoveEvent_m_rect_get", (PyCFunction) _wrap_MoveEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS, NULL },
41342 { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS, NULL },
41343 { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41344 { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS, NULL },
41345 { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41346 { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS, NULL },
41347 { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41348 { (char *)"EraseEvent_GetDC", (PyCFunction) _wrap_EraseEvent_GetDC, METH_VARARGS | METH_KEYWORDS, NULL },
41349 { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS, NULL },
41350 { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41351 { (char *)"FocusEvent_GetWindow", (PyCFunction) _wrap_FocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41352 { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41353 { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS, NULL },
41354 { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41355 { (char *)"ChildFocusEvent_GetWindow", (PyCFunction) _wrap_ChildFocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41356 { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS, NULL },
41357 { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41358 { (char *)"ActivateEvent_GetActive", (PyCFunction) _wrap_ActivateEvent_GetActive, METH_VARARGS | METH_KEYWORDS, NULL },
41359 { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS, NULL },
41360 { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41361 { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS, NULL },
41362 { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41363 { (char *)"MenuEvent_GetMenuId", (PyCFunction) _wrap_MenuEvent_GetMenuId, METH_VARARGS | METH_KEYWORDS, NULL },
41364 { (char *)"MenuEvent_IsPopup", (PyCFunction) _wrap_MenuEvent_IsPopup, METH_VARARGS | METH_KEYWORDS, NULL },
41365 { (char *)"MenuEvent_GetMenu", (PyCFunction) _wrap_MenuEvent_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL },
41366 { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS, NULL },
41367 { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41368 { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS, NULL },
41369 { (char *)"CloseEvent_GetLoggingOff", (PyCFunction) _wrap_CloseEvent_GetLoggingOff, METH_VARARGS | METH_KEYWORDS, NULL },
41370 { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS, NULL },
41371 { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS, NULL },
41372 { (char *)"CloseEvent_CanVeto", (PyCFunction) _wrap_CloseEvent_CanVeto, METH_VARARGS | METH_KEYWORDS, NULL },
41373 { (char *)"CloseEvent_GetVeto", (PyCFunction) _wrap_CloseEvent_GetVeto, METH_VARARGS | METH_KEYWORDS, NULL },
41374 { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS, NULL },
41375 { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41376 { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS, NULL },
41377 { (char *)"ShowEvent_GetShow", (PyCFunction) _wrap_ShowEvent_GetShow, METH_VARARGS | METH_KEYWORDS, NULL },
41378 { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS, NULL },
41379 { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41380 { (char *)"IconizeEvent_Iconized", (PyCFunction) _wrap_IconizeEvent_Iconized, METH_VARARGS | METH_KEYWORDS, NULL },
41381 { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS, NULL },
41382 { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41383 { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS, NULL },
41384 { (char *)"DropFilesEvent_GetPosition", (PyCFunction) _wrap_DropFilesEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
41385 { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction) _wrap_DropFilesEvent_GetNumberOfFiles, METH_VARARGS | METH_KEYWORDS, NULL },
41386 { (char *)"DropFilesEvent_GetFiles", (PyCFunction) _wrap_DropFilesEvent_GetFiles, METH_VARARGS | METH_KEYWORDS, NULL },
41387 { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS, NULL },
41388 { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41389 { (char *)"UpdateUIEvent_GetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetChecked, METH_VARARGS | METH_KEYWORDS, NULL },
41390 { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
41391 { (char *)"UpdateUIEvent_GetText", (PyCFunction) _wrap_UpdateUIEvent_GetText, METH_VARARGS | METH_KEYWORDS, NULL },
41392 { (char *)"UpdateUIEvent_GetSetText", (PyCFunction) _wrap_UpdateUIEvent_GetSetText, METH_VARARGS | METH_KEYWORDS, NULL },
41393 { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetSetChecked, METH_VARARGS | METH_KEYWORDS, NULL },
41394 { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetSetEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
41395 { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS, NULL },
41396 { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS, NULL },
41397 { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS, NULL },
41398 { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS, NULL },
41399 { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_GetUpdateInterval, METH_VARARGS | METH_KEYWORDS, NULL },
41400 { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS, NULL },
41401 { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction) _wrap_UpdateUIEvent_ResetUpdateTime, METH_VARARGS | METH_KEYWORDS, NULL },
41402 { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS, NULL },
41403 { (char *)"UpdateUIEvent_GetMode", (PyCFunction) _wrap_UpdateUIEvent_GetMode, METH_VARARGS | METH_KEYWORDS, NULL },
41404 { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS, NULL },
41405 { (char *)"new_SysColourChangedEvent", (PyCFunction) _wrap_new_SysColourChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41406 { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS, NULL },
41407 { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41408 { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction) _wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41409 { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS, NULL },
41410 { (char *)"new_DisplayChangedEvent", (PyCFunction) _wrap_new_DisplayChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41411 { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS, NULL },
41412 { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41413 { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41414 { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_GetChangedWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41415 { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS, NULL },
41416 { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41417 { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS, NULL },
41418 { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_VARARGS | METH_KEYWORDS, NULL },
41419 { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS, NULL },
41420 { (char *)"new_NavigationKeyEvent", (PyCFunction) _wrap_new_NavigationKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41421 { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction) _wrap_NavigationKeyEvent_GetDirection, METH_VARARGS | METH_KEYWORDS, NULL },
41422 { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS, NULL },
41423 { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_IsWindowChange, METH_VARARGS | METH_KEYWORDS, NULL },
41424 { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS, NULL },
41425 { (char *)"NavigationKeyEvent_SetFlags", (PyCFunction) _wrap_NavigationKeyEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL },
41426 { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_GetCurrentFocus, METH_VARARGS | METH_KEYWORDS, NULL },
41427 { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS, NULL },
41428 { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS, NULL },
41429 { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41430 { (char *)"WindowCreateEvent_GetWindow", (PyCFunction) _wrap_WindowCreateEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41431 { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS, NULL },
41432 { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41433 { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction) _wrap_WindowDestroyEvent_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41434 { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS, NULL },
41435 { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41436 { (char *)"ContextMenuEvent_GetPosition", (PyCFunction) _wrap_ContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
41437 { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
41438 { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS, NULL },
41439 { (char *)"new_IdleEvent", (PyCFunction) _wrap_new_IdleEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41440 { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS, NULL },
41441 { (char *)"IdleEvent_MoreRequested", (PyCFunction) _wrap_IdleEvent_MoreRequested, METH_VARARGS | METH_KEYWORDS, NULL },
41442 { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS, NULL },
41443 { (char *)"IdleEvent_GetMode", (PyCFunction) _wrap_IdleEvent_GetMode, METH_VARARGS | METH_KEYWORDS, NULL },
41444 { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS, NULL },
41445 { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS, NULL },
41446 { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41447 { (char *)"delete_PyEvent", (PyCFunction) _wrap_delete_PyEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41448 { (char *)"PyEvent_SetSelf", (PyCFunction) _wrap_PyEvent_SetSelf, METH_VARARGS | METH_KEYWORDS, NULL },
41449 { (char *)"PyEvent_GetSelf", (PyCFunction) _wrap_PyEvent_GetSelf, METH_VARARGS | METH_KEYWORDS, NULL },
41450 { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS, NULL },
41451 { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41452 { (char *)"delete_PyCommandEvent", (PyCFunction) _wrap_delete_PyCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41453 { (char *)"PyCommandEvent_SetSelf", (PyCFunction) _wrap_PyCommandEvent_SetSelf, METH_VARARGS | METH_KEYWORDS, NULL },
41454 { (char *)"PyCommandEvent_GetSelf", (PyCFunction) _wrap_PyCommandEvent_GetSelf, METH_VARARGS | METH_KEYWORDS, NULL },
41455 { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS, NULL },
41456 { (char *)"new_PyApp", (PyCFunction) _wrap_new_PyApp, METH_VARARGS | METH_KEYWORDS, NULL },
41457 { (char *)"delete_PyApp", (PyCFunction) _wrap_delete_PyApp, METH_VARARGS | METH_KEYWORDS, NULL },
41458 { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
41459 { (char *)"PyApp_GetAppName", (PyCFunction) _wrap_PyApp_GetAppName, METH_VARARGS | METH_KEYWORDS, NULL },
41460 { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS, NULL },
41461 { (char *)"PyApp_GetClassName", (PyCFunction) _wrap_PyApp_GetClassName, METH_VARARGS | METH_KEYWORDS, NULL },
41462 { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS, NULL },
41463 { (char *)"PyApp_GetVendorName", (PyCFunction) _wrap_PyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS, NULL },
41464 { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS, NULL },
41465 { (char *)"PyApp_GetTraits", (PyCFunction) _wrap_PyApp_GetTraits, METH_VARARGS | METH_KEYWORDS, NULL },
41466 { (char *)"PyApp_ProcessPendingEvents", (PyCFunction) _wrap_PyApp_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS, NULL },
41467 { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS, NULL },
41468 { (char *)"PyApp_WakeUpIdle", (PyCFunction) _wrap_PyApp_WakeUpIdle, METH_VARARGS | METH_KEYWORDS, NULL },
41469 { (char *)"PyApp_MainLoop", (PyCFunction) _wrap_PyApp_MainLoop, METH_VARARGS | METH_KEYWORDS, NULL },
41470 { (char *)"PyApp_Exit", (PyCFunction) _wrap_PyApp_Exit, METH_VARARGS | METH_KEYWORDS, NULL },
41471 { (char *)"PyApp_ExitMainLoop", (PyCFunction) _wrap_PyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS, NULL },
41472 { (char *)"PyApp_Pending", (PyCFunction) _wrap_PyApp_Pending, METH_VARARGS | METH_KEYWORDS, NULL },
41473 { (char *)"PyApp_Dispatch", (PyCFunction) _wrap_PyApp_Dispatch, METH_VARARGS | METH_KEYWORDS, NULL },
41474 { (char *)"PyApp_ProcessIdle", (PyCFunction) _wrap_PyApp_ProcessIdle, METH_VARARGS | METH_KEYWORDS, NULL },
41475 { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS, NULL },
41476 { (char *)"PyApp_IsActive", (PyCFunction) _wrap_PyApp_IsActive, METH_VARARGS | METH_KEYWORDS, NULL },
41477 { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41478 { (char *)"PyApp_GetTopWindow", (PyCFunction) _wrap_PyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41479 { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS, NULL },
41480 { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS, NULL },
41481 { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS, NULL },
41482 { (char *)"PyApp_GetUseBestVisual", (PyCFunction) _wrap_PyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS, NULL },
41483 { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS, NULL },
41484 { (char *)"PyApp_GetPrintMode", (PyCFunction) _wrap_PyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS, NULL },
41485 { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS, NULL },
41486 { (char *)"PyApp_GetAssertMode", (PyCFunction) _wrap_PyApp_GetAssertMode, METH_VARARGS | METH_KEYWORDS, NULL },
41487 { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS, NULL },
41488 { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_GetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL },
41489 { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_GetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL },
41490 { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_GetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL },
41491 { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_GetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS, NULL },
41492 { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS, NULL },
41493 { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL },
41494 { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL },
41495 { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL },
41496 { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS, NULL },
41497 { (char *)"PyApp__BootstrapApp", (PyCFunction) _wrap_PyApp__BootstrapApp, METH_VARARGS | METH_KEYWORDS, NULL },
41498 { (char *)"PyApp_GetComCtl32Version", (PyCFunction) _wrap_PyApp_GetComCtl32Version, METH_VARARGS | METH_KEYWORDS, NULL },
41499 { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS, NULL },
41500 { (char *)"Exit", (PyCFunction) _wrap_Exit, METH_VARARGS | METH_KEYWORDS, NULL },
41501 { (char *)"Yield", (PyCFunction) _wrap_Yield, METH_VARARGS | METH_KEYWORDS, NULL },
41502 { (char *)"YieldIfNeeded", (PyCFunction) _wrap_YieldIfNeeded, METH_VARARGS | METH_KEYWORDS, NULL },
41503 { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS, NULL },
41504 { (char *)"WakeUpIdle", (PyCFunction) _wrap_WakeUpIdle, METH_VARARGS | METH_KEYWORDS, NULL },
41505 { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS, NULL },
41506 { (char *)"App_CleanUp", (PyCFunction) _wrap_App_CleanUp, METH_VARARGS | METH_KEYWORDS, NULL },
41507 { (char *)"GetApp", (PyCFunction) _wrap_GetApp, METH_VARARGS | METH_KEYWORDS, NULL },
41508 { (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS, NULL },
41509 { (char *)"delete_AcceleratorEntry", (PyCFunction) _wrap_delete_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS, NULL },
41510 { (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS, NULL },
41511 { (char *)"AcceleratorEntry_GetFlags", (PyCFunction) _wrap_AcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS, NULL },
41512 { (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_AcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL },
41513 { (char *)"AcceleratorEntry_GetCommand", (PyCFunction) _wrap_AcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS, NULL },
41514 { (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS, NULL },
41515 { (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL },
41516 { (char *)"delete_AcceleratorTable", (PyCFunction) _wrap_delete_AcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL },
41517 { (char *)"AcceleratorTable_Ok", (PyCFunction) _wrap_AcceleratorTable_Ok, METH_VARARGS | METH_KEYWORDS, NULL },
41518 { (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS, NULL },
41519 { (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS, NULL },
41520 { (char *)"new_VisualAttributes", (PyCFunction) _wrap_new_VisualAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
41521 { (char *)"delete_VisualAttributes", (PyCFunction) _wrap_delete_VisualAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
41522 { (char *)"VisualAttributes_font_set", (PyCFunction) _wrap_VisualAttributes_font_set, METH_VARARGS | METH_KEYWORDS, NULL },
41523 { (char *)"VisualAttributes_font_get", (PyCFunction) _wrap_VisualAttributes_font_get, METH_VARARGS | METH_KEYWORDS, NULL },
41524 { (char *)"VisualAttributes_colFg_set", (PyCFunction) _wrap_VisualAttributes_colFg_set, METH_VARARGS | METH_KEYWORDS, NULL },
41525 { (char *)"VisualAttributes_colFg_get", (PyCFunction) _wrap_VisualAttributes_colFg_get, METH_VARARGS | METH_KEYWORDS, NULL },
41526 { (char *)"VisualAttributes_colBg_set", (PyCFunction) _wrap_VisualAttributes_colBg_set, METH_VARARGS | METH_KEYWORDS, NULL },
41527 { (char *)"VisualAttributes_colBg_get", (PyCFunction) _wrap_VisualAttributes_colBg_get, METH_VARARGS | METH_KEYWORDS, NULL },
41528 { (char *)"VisualAttributes_swigregister", VisualAttributes_swigregister, METH_VARARGS, NULL },
41529 { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS, NULL },
41530 { (char *)"new_PreWindow", (PyCFunction) _wrap_new_PreWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41531 { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS, NULL },
41532 { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS, NULL },
41533 { (char *)"Window_Destroy", (PyCFunction) _wrap_Window_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
41534 { (char *)"Window_DestroyChildren", (PyCFunction) _wrap_Window_DestroyChildren, METH_VARARGS | METH_KEYWORDS, NULL },
41535 { (char *)"Window_IsBeingDeleted", (PyCFunction) _wrap_Window_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS, NULL },
41536 { (char *)"Window_SetTitle", (PyCFunction) _wrap_Window_SetTitle, METH_VARARGS | METH_KEYWORDS, NULL },
41537 { (char *)"Window_GetTitle", (PyCFunction) _wrap_Window_GetTitle, METH_VARARGS | METH_KEYWORDS, NULL },
41538 { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
41539 { (char *)"Window_GetLabel", (PyCFunction) _wrap_Window_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
41540 { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS, NULL },
41541 { (char *)"Window_GetName", (PyCFunction) _wrap_Window_GetName, METH_VARARGS | METH_KEYWORDS, NULL },
41542 { (char *)"Window_SetWindowVariant", (PyCFunction) _wrap_Window_SetWindowVariant, METH_VARARGS | METH_KEYWORDS, NULL },
41543 { (char *)"Window_GetWindowVariant", (PyCFunction) _wrap_Window_GetWindowVariant, METH_VARARGS | METH_KEYWORDS, NULL },
41544 { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS, NULL },
41545 { (char *)"Window_GetId", (PyCFunction) _wrap_Window_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
41546 { (char *)"Window_NewControlId", (PyCFunction) _wrap_Window_NewControlId, METH_VARARGS | METH_KEYWORDS, NULL },
41547 { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS, NULL },
41548 { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS, NULL },
41549 { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS, NULL },
41550 { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS, NULL },
41551 { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS, NULL },
41552 { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS, NULL },
41553 { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS, NULL },
41554 { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS, NULL },
41555 { (char *)"Window_SetBestFittingSize", (PyCFunction) _wrap_Window_SetBestFittingSize, METH_VARARGS | METH_KEYWORDS, NULL },
41556 { (char *)"Window_Raise", (PyCFunction) _wrap_Window_Raise, METH_VARARGS | METH_KEYWORDS, NULL },
41557 { (char *)"Window_Lower", (PyCFunction) _wrap_Window_Lower, METH_VARARGS | METH_KEYWORDS, NULL },
41558 { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS, NULL },
41559 { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS, NULL },
41560 { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS, NULL },
41561 { (char *)"Window_GetPosition", (PyCFunction) _wrap_Window_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
41562 { (char *)"Window_GetPositionTuple", (PyCFunction) _wrap_Window_GetPositionTuple, METH_VARARGS | METH_KEYWORDS, NULL },
41563 { (char *)"Window_GetSize", (PyCFunction) _wrap_Window_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
41564 { (char *)"Window_GetSizeTuple", (PyCFunction) _wrap_Window_GetSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL },
41565 { (char *)"Window_GetRect", (PyCFunction) _wrap_Window_GetRect, METH_VARARGS | METH_KEYWORDS, NULL },
41566 { (char *)"Window_GetClientSize", (PyCFunction) _wrap_Window_GetClientSize, METH_VARARGS | METH_KEYWORDS, NULL },
41567 { (char *)"Window_GetClientSizeTuple", (PyCFunction) _wrap_Window_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL },
41568 { (char *)"Window_GetClientAreaOrigin", (PyCFunction) _wrap_Window_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS, NULL },
41569 { (char *)"Window_GetClientRect", (PyCFunction) _wrap_Window_GetClientRect, METH_VARARGS | METH_KEYWORDS, NULL },
41570 { (char *)"Window_GetBestSize", (PyCFunction) _wrap_Window_GetBestSize, METH_VARARGS | METH_KEYWORDS, NULL },
41571 { (char *)"Window_GetBestSizeTuple", (PyCFunction) _wrap_Window_GetBestSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL },
41572 { (char *)"Window_InvalidateBestSize", (PyCFunction) _wrap_Window_InvalidateBestSize, METH_VARARGS | METH_KEYWORDS, NULL },
41573 { (char *)"Window_GetBestFittingSize", (PyCFunction) _wrap_Window_GetBestFittingSize, METH_VARARGS | METH_KEYWORDS, NULL },
41574 { (char *)"Window_GetAdjustedBestSize", (PyCFunction) _wrap_Window_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS, NULL },
41575 { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS, NULL },
41576 { (char *)"Window_CenterOnScreen", (PyCFunction) _wrap_Window_CenterOnScreen, METH_VARARGS | METH_KEYWORDS, NULL },
41577 { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS, NULL },
41578 { (char *)"Window_Fit", (PyCFunction) _wrap_Window_Fit, METH_VARARGS | METH_KEYWORDS, NULL },
41579 { (char *)"Window_FitInside", (PyCFunction) _wrap_Window_FitInside, METH_VARARGS | METH_KEYWORDS, NULL },
41580 { (char *)"Window_SetSizeHints", (PyCFunction) _wrap_Window_SetSizeHints, METH_VARARGS | METH_KEYWORDS, NULL },
41581 { (char *)"Window_SetSizeHintsSz", (PyCFunction) _wrap_Window_SetSizeHintsSz, METH_VARARGS | METH_KEYWORDS, NULL },
41582 { (char *)"Window_SetVirtualSizeHints", (PyCFunction) _wrap_Window_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS, NULL },
41583 { (char *)"Window_SetVirtualSizeHintsSz", (PyCFunction) _wrap_Window_SetVirtualSizeHintsSz, METH_VARARGS | METH_KEYWORDS, NULL },
41584 { (char *)"Window_GetMaxSize", (PyCFunction) _wrap_Window_GetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL },
41585 { (char *)"Window_GetMinSize", (PyCFunction) _wrap_Window_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL },
41586 { (char *)"Window_SetMinSize", (PyCFunction) _wrap_Window_SetMinSize, METH_VARARGS | METH_KEYWORDS, NULL },
41587 { (char *)"Window_SetMaxSize", (PyCFunction) _wrap_Window_SetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL },
41588 { (char *)"Window_GetMinWidth", (PyCFunction) _wrap_Window_GetMinWidth, METH_VARARGS | METH_KEYWORDS, NULL },
41589 { (char *)"Window_GetMinHeight", (PyCFunction) _wrap_Window_GetMinHeight, METH_VARARGS | METH_KEYWORDS, NULL },
41590 { (char *)"Window_GetMaxWidth", (PyCFunction) _wrap_Window_GetMaxWidth, METH_VARARGS | METH_KEYWORDS, NULL },
41591 { (char *)"Window_GetMaxHeight", (PyCFunction) _wrap_Window_GetMaxHeight, METH_VARARGS | METH_KEYWORDS, NULL },
41592 { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL },
41593 { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS, NULL },
41594 { (char *)"Window_GetVirtualSize", (PyCFunction) _wrap_Window_GetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL },
41595 { (char *)"Window_GetVirtualSizeTuple", (PyCFunction) _wrap_Window_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS, NULL },
41596 { (char *)"Window_GetBestVirtualSize", (PyCFunction) _wrap_Window_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL },
41597 { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS, NULL },
41598 { (char *)"Window_Hide", (PyCFunction) _wrap_Window_Hide, METH_VARARGS | METH_KEYWORDS, NULL },
41599 { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS, NULL },
41600 { (char *)"Window_Disable", (PyCFunction) _wrap_Window_Disable, METH_VARARGS | METH_KEYWORDS, NULL },
41601 { (char *)"Window_IsShown", (PyCFunction) _wrap_Window_IsShown, METH_VARARGS | METH_KEYWORDS, NULL },
41602 { (char *)"Window_IsEnabled", (PyCFunction) _wrap_Window_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
41603 { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL },
41604 { (char *)"Window_GetWindowStyleFlag", (PyCFunction) _wrap_Window_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL },
41605 { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL },
41606 { (char *)"Window_IsRetained", (PyCFunction) _wrap_Window_IsRetained, METH_VARARGS | METH_KEYWORDS, NULL },
41607 { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS, NULL },
41608 { (char *)"Window_GetExtraStyle", (PyCFunction) _wrap_Window_GetExtraStyle, METH_VARARGS | METH_KEYWORDS, NULL },
41609 { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS, NULL },
41610 { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
41611 { (char *)"Window_GetThemeEnabled", (PyCFunction) _wrap_Window_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
41612 { (char *)"Window_SetFocus", (PyCFunction) _wrap_Window_SetFocus, METH_VARARGS | METH_KEYWORDS, NULL },
41613 { (char *)"Window_SetFocusFromKbd", (PyCFunction) _wrap_Window_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS, NULL },
41614 { (char *)"Window_FindFocus", (PyCFunction) _wrap_Window_FindFocus, METH_VARARGS | METH_KEYWORDS, NULL },
41615 { (char *)"Window_AcceptsFocus", (PyCFunction) _wrap_Window_AcceptsFocus, METH_VARARGS | METH_KEYWORDS, NULL },
41616 { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_Window_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS, NULL },
41617 { (char *)"Window_GetDefaultItem", (PyCFunction) _wrap_Window_GetDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL },
41618 { (char *)"Window_SetDefaultItem", (PyCFunction) _wrap_Window_SetDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL },
41619 { (char *)"Window_SetTmpDefaultItem", (PyCFunction) _wrap_Window_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS, NULL },
41620 { (char *)"Window_Navigate", (PyCFunction) _wrap_Window_Navigate, METH_VARARGS | METH_KEYWORDS, NULL },
41621 { (char *)"Window_MoveAfterInTabOrder", (PyCFunction) _wrap_Window_MoveAfterInTabOrder, METH_VARARGS | METH_KEYWORDS, NULL },
41622 { (char *)"Window_MoveBeforeInTabOrder", (PyCFunction) _wrap_Window_MoveBeforeInTabOrder, METH_VARARGS | METH_KEYWORDS, NULL },
41623 { (char *)"Window_GetChildren", (PyCFunction) _wrap_Window_GetChildren, METH_VARARGS | METH_KEYWORDS, NULL },
41624 { (char *)"Window_GetParent", (PyCFunction) _wrap_Window_GetParent, METH_VARARGS | METH_KEYWORDS, NULL },
41625 { (char *)"Window_GetGrandParent", (PyCFunction) _wrap_Window_GetGrandParent, METH_VARARGS | METH_KEYWORDS, NULL },
41626 { (char *)"Window_IsTopLevel", (PyCFunction) _wrap_Window_IsTopLevel, METH_VARARGS | METH_KEYWORDS, NULL },
41627 { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS, NULL },
41628 { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS, NULL },
41629 { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL },
41630 { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS, NULL },
41631 { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS, NULL },
41632 { (char *)"Window_GetEventHandler", (PyCFunction) _wrap_Window_GetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41633 { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41634 { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41635 { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41636 { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41637 { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS, NULL },
41638 { (char *)"Window_GetValidator", (PyCFunction) _wrap_Window_GetValidator, METH_VARARGS | METH_KEYWORDS, NULL },
41639 { (char *)"Window_Validate", (PyCFunction) _wrap_Window_Validate, METH_VARARGS | METH_KEYWORDS, NULL },
41640 { (char *)"Window_TransferDataToWindow", (PyCFunction) _wrap_Window_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41641 { (char *)"Window_TransferDataFromWindow", (PyCFunction) _wrap_Window_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41642 { (char *)"Window_InitDialog", (PyCFunction) _wrap_Window_InitDialog, METH_VARARGS | METH_KEYWORDS, NULL },
41643 { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL },
41644 { (char *)"Window_GetAcceleratorTable", (PyCFunction) _wrap_Window_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL },
41645 { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS, NULL },
41646 { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS, NULL },
41647 { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS, NULL },
41648 { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS, NULL },
41649 { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS, NULL },
41650 { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS, NULL },
41651 { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS, NULL },
41652 { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS, NULL },
41653 { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS, NULL },
41654 { (char *)"Window_CaptureMouse", (PyCFunction) _wrap_Window_CaptureMouse, METH_VARARGS | METH_KEYWORDS, NULL },
41655 { (char *)"Window_ReleaseMouse", (PyCFunction) _wrap_Window_ReleaseMouse, METH_VARARGS | METH_KEYWORDS, NULL },
41656 { (char *)"Window_GetCapture", (PyCFunction) _wrap_Window_GetCapture, METH_VARARGS | METH_KEYWORDS, NULL },
41657 { (char *)"Window_HasCapture", (PyCFunction) _wrap_Window_HasCapture, METH_VARARGS | METH_KEYWORDS, NULL },
41658 { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS, NULL },
41659 { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS, NULL },
41660 { (char *)"Window_Update", (PyCFunction) _wrap_Window_Update, METH_VARARGS | METH_KEYWORDS, NULL },
41661 { (char *)"Window_ClearBackground", (PyCFunction) _wrap_Window_ClearBackground, METH_VARARGS | METH_KEYWORDS, NULL },
41662 { (char *)"Window_Freeze", (PyCFunction) _wrap_Window_Freeze, METH_VARARGS | METH_KEYWORDS, NULL },
41663 { (char *)"Window_Thaw", (PyCFunction) _wrap_Window_Thaw, METH_VARARGS | METH_KEYWORDS, NULL },
41664 { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS, NULL },
41665 { (char *)"Window_GetUpdateRegion", (PyCFunction) _wrap_Window_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS, NULL },
41666 { (char *)"Window_GetUpdateClientRect", (PyCFunction) _wrap_Window_GetUpdateClientRect, METH_VARARGS | METH_KEYWORDS, NULL },
41667 { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS, NULL },
41668 { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS, NULL },
41669 { (char *)"Window_IsExposedRect", (PyCFunction) _wrap_Window_IsExposedRect, METH_VARARGS | METH_KEYWORDS, NULL },
41670 { (char *)"Window_GetDefaultAttributes", (PyCFunction) _wrap_Window_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
41671 { (char *)"Window_GetClassDefaultAttributes", (PyCFunction) _wrap_Window_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
41672 { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
41673 { (char *)"Window_SetOwnBackgroundColour", (PyCFunction) _wrap_Window_SetOwnBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
41674 { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
41675 { (char *)"Window_SetOwnForegroundColour", (PyCFunction) _wrap_Window_SetOwnForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
41676 { (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
41677 { (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
41678 { (char *)"Window_SetBackgroundStyle", (PyCFunction) _wrap_Window_SetBackgroundStyle, METH_VARARGS | METH_KEYWORDS, NULL },
41679 { (char *)"Window_GetBackgroundStyle", (PyCFunction) _wrap_Window_GetBackgroundStyle, METH_VARARGS | METH_KEYWORDS, NULL },
41680 { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL },
41681 { (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL },
41682 { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
41683 { (char *)"Window_SetOwnFont", (PyCFunction) _wrap_Window_SetOwnFont, METH_VARARGS | METH_KEYWORDS, NULL },
41684 { (char *)"Window_GetFont", (PyCFunction) _wrap_Window_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
41685 { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS, NULL },
41686 { (char *)"Window_GetCaret", (PyCFunction) _wrap_Window_GetCaret, METH_VARARGS | METH_KEYWORDS, NULL },
41687 { (char *)"Window_GetCharHeight", (PyCFunction) _wrap_Window_GetCharHeight, METH_VARARGS | METH_KEYWORDS, NULL },
41688 { (char *)"Window_GetCharWidth", (PyCFunction) _wrap_Window_GetCharWidth, METH_VARARGS | METH_KEYWORDS, NULL },
41689 { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
41690 { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL },
41691 { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS, NULL },
41692 { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS, NULL },
41693 { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS, NULL },
41694 { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS, NULL },
41695 { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL },
41696 { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
41697 { (char *)"Window_GetBorder", _wrap_Window_GetBorder, METH_VARARGS, NULL },
41698 { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS, NULL },
41699 { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS, NULL },
41700 { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS, NULL },
41701 { (char *)"Window_GetHandle", (PyCFunction) _wrap_Window_GetHandle, METH_VARARGS | METH_KEYWORDS, NULL },
7e63a440
RD
41702 { (char *)"Window_AssociateHandle", (PyCFunction) _wrap_Window_AssociateHandle, METH_VARARGS | METH_KEYWORDS, NULL },
41703 { (char *)"Window_DissociateHandle", (PyCFunction) _wrap_Window_DissociateHandle, METH_VARARGS | METH_KEYWORDS, NULL },
c32bde28
RD
41704 { (char *)"Window_OnPaint", (PyCFunction) _wrap_Window_OnPaint, METH_VARARGS | METH_KEYWORDS, NULL },
41705 { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS, NULL },
41706 { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS, NULL },
41707 { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS, NULL },
41708 { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS, NULL },
41709 { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS, NULL },
41710 { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS, NULL },
41711 { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41712 { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS, NULL },
41713 { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS, NULL },
41714 { (char *)"Window_LineUp", (PyCFunction) _wrap_Window_LineUp, METH_VARARGS | METH_KEYWORDS, NULL },
41715 { (char *)"Window_LineDown", (PyCFunction) _wrap_Window_LineDown, METH_VARARGS | METH_KEYWORDS, NULL },
41716 { (char *)"Window_PageUp", (PyCFunction) _wrap_Window_PageUp, METH_VARARGS | METH_KEYWORDS, NULL },
41717 { (char *)"Window_PageDown", (PyCFunction) _wrap_Window_PageDown, METH_VARARGS | METH_KEYWORDS, NULL },
41718 { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS, NULL },
41719 { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS, NULL },
41720 { (char *)"Window_GetHelpText", (PyCFunction) _wrap_Window_GetHelpText, METH_VARARGS | METH_KEYWORDS, NULL },
41721 { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS, NULL },
41722 { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL },
41723 { (char *)"Window_GetToolTip", (PyCFunction) _wrap_Window_GetToolTip, METH_VARARGS | METH_KEYWORDS, NULL },
41724 { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS, NULL },
41725 { (char *)"Window_GetDropTarget", (PyCFunction) _wrap_Window_GetDropTarget, METH_VARARGS | METH_KEYWORDS, NULL },
41726 { (char *)"Window_DragAcceptFiles", (PyCFunction) _wrap_Window_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS, NULL },
41727 { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS, NULL },
41728 { (char *)"Window_GetConstraints", (PyCFunction) _wrap_Window_GetConstraints, METH_VARARGS | METH_KEYWORDS, NULL },
41729 { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS, NULL },
41730 { (char *)"Window_GetAutoLayout", (PyCFunction) _wrap_Window_GetAutoLayout, METH_VARARGS | METH_KEYWORDS, NULL },
41731 { (char *)"Window_Layout", (PyCFunction) _wrap_Window_Layout, METH_VARARGS | METH_KEYWORDS, NULL },
41732 { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS, NULL },
41733 { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS, NULL },
41734 { (char *)"Window_GetSizer", (PyCFunction) _wrap_Window_GetSizer, METH_VARARGS | METH_KEYWORDS, NULL },
41735 { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS, NULL },
41736 { (char *)"Window_GetContainingSizer", (PyCFunction) _wrap_Window_GetContainingSizer, METH_VARARGS | METH_KEYWORDS, NULL },
41737 { (char *)"Window_InheritAttributes", (PyCFunction) _wrap_Window_InheritAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
41738 { (char *)"Window_ShouldInheritColours", (PyCFunction) _wrap_Window_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS, NULL },
41739 { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS, NULL },
41740 { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS, NULL },
41741 { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS, NULL },
41742 { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS, NULL },
41743 { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS, NULL },
41744 { (char *)"new_Validator", (PyCFunction) _wrap_new_Validator, METH_VARARGS | METH_KEYWORDS, NULL },
41745 { (char *)"Validator_Clone", (PyCFunction) _wrap_Validator_Clone, METH_VARARGS | METH_KEYWORDS, NULL },
41746 { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS, NULL },
41747 { (char *)"Validator_TransferToWindow", (PyCFunction) _wrap_Validator_TransferToWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41748 { (char *)"Validator_TransferFromWindow", (PyCFunction) _wrap_Validator_TransferFromWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41749 { (char *)"Validator_GetWindow", (PyCFunction) _wrap_Validator_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41750 { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41751 { (char *)"Validator_IsSilent", (PyCFunction) _wrap_Validator_IsSilent, METH_VARARGS | METH_KEYWORDS, NULL },
41752 { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS, NULL },
41753 { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS, NULL },
41754 { (char *)"new_PyValidator", (PyCFunction) _wrap_new_PyValidator, METH_VARARGS | METH_KEYWORDS, NULL },
41755 { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
41756 { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS, NULL },
41757 { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS, NULL },
41758 { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS, NULL },
41759 { (char *)"Menu_AppendSeparator", (PyCFunction) _wrap_Menu_AppendSeparator, METH_VARARGS | METH_KEYWORDS, NULL },
41760 { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS, NULL },
41761 { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS, NULL },
41762 { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS, NULL },
41763 { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL },
41764 { (char *)"Menu_Break", (PyCFunction) _wrap_Menu_Break, METH_VARARGS | METH_KEYWORDS, NULL },
41765 { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL },
41766 { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS, NULL },
41767 { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL },
41768 { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS, NULL },
41769 { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS, NULL },
41770 { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS, NULL },
41771 { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL },
41772 { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS, NULL },
41773 { (char *)"Menu_PrependSeparator", (PyCFunction) _wrap_Menu_PrependSeparator, METH_VARARGS | METH_KEYWORDS, NULL },
41774 { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS, NULL },
41775 { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS, NULL },
41776 { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS, NULL },
41777 { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS, NULL },
41778 { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS, NULL },
41779 { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS, NULL },
41780 { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL },
41781 { (char *)"Menu_Destroy", (PyCFunction) _wrap_Menu_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
41782 { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS, NULL },
41783 { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS, NULL },
41784 { (char *)"Menu_GetMenuItemCount", (PyCFunction) _wrap_Menu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS, NULL },
41785 { (char *)"Menu_GetMenuItems", (PyCFunction) _wrap_Menu_GetMenuItems, METH_VARARGS | METH_KEYWORDS, NULL },
41786 { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS, NULL },
41787 { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS, NULL },
41788 { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS, NULL },
41789 { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS, NULL },
41790 { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
41791 { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS, NULL },
41792 { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL },
41793 { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
41794 { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
41795 { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS, NULL },
41796 { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS, NULL },
41797 { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS, NULL },
41798 { (char *)"Menu_GetTitle", (PyCFunction) _wrap_Menu_GetTitle, METH_VARARGS | METH_KEYWORDS, NULL },
41799 { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41800 { (char *)"Menu_GetEventHandler", (PyCFunction) _wrap_Menu_GetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL },
41801 { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41802 { (char *)"Menu_GetInvokingWindow", (PyCFunction) _wrap_Menu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41803 { (char *)"Menu_GetStyle", (PyCFunction) _wrap_Menu_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
41804 { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS, NULL },
41805 { (char *)"Menu_GetMenuBar", (PyCFunction) _wrap_Menu_GetMenuBar, METH_VARARGS | METH_KEYWORDS, NULL },
41806 { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS, NULL },
41807 { (char *)"Menu_Detach", (PyCFunction) _wrap_Menu_Detach, METH_VARARGS | METH_KEYWORDS, NULL },
41808 { (char *)"Menu_IsAttached", (PyCFunction) _wrap_Menu_IsAttached, METH_VARARGS | METH_KEYWORDS, NULL },
41809 { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS, NULL },
41810 { (char *)"Menu_GetParent", (PyCFunction) _wrap_Menu_GetParent, METH_VARARGS | METH_KEYWORDS, NULL },
41811 { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS, NULL },
41812 { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS, NULL },
41813 { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS, NULL },
41814 { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS, NULL },
41815 { (char *)"MenuBar_GetMenuCount", (PyCFunction) _wrap_MenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS, NULL },
41816 { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL },
41817 { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS, NULL },
41818 { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS, NULL },
41819 { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS, NULL },
41820 { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS, NULL },
41821 { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS, NULL },
41822 { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS, NULL },
41823 { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS, NULL },
41824 { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS, NULL },
41825 { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS, NULL },
41826 { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS, NULL },
41827 { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS, NULL },
41828 { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL },
41829 { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
41830 { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
41831 { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
41832 { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS, NULL },
41833 { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS, NULL },
41834 { (char *)"MenuBar_GetFrame", (PyCFunction) _wrap_MenuBar_GetFrame, METH_VARARGS | METH_KEYWORDS, NULL },
41835 { (char *)"MenuBar_IsAttached", (PyCFunction) _wrap_MenuBar_IsAttached, METH_VARARGS | METH_KEYWORDS, NULL },
41836 { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS, NULL },
41837 { (char *)"MenuBar_Detach", (PyCFunction) _wrap_MenuBar_Detach, METH_VARARGS | METH_KEYWORDS, NULL },
41838 { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS, NULL },
41839 { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS, NULL },
41840 { (char *)"MenuItem_GetMenu", (PyCFunction) _wrap_MenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL },
41841 { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS, NULL },
41842 { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL },
41843 { (char *)"MenuItem_GetId", (PyCFunction) _wrap_MenuItem_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
41844 { (char *)"MenuItem_IsSeparator", (PyCFunction) _wrap_MenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS, NULL },
41845 { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL },
41846 { (char *)"MenuItem_GetLabel", (PyCFunction) _wrap_MenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
41847 { (char *)"MenuItem_GetText", (PyCFunction) _wrap_MenuItem_GetText, METH_VARARGS | METH_KEYWORDS, NULL },
41848 { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS, NULL },
41849 { (char *)"MenuItem_GetKind", (PyCFunction) _wrap_MenuItem_GetKind, METH_VARARGS | METH_KEYWORDS, NULL },
41850 { (char *)"MenuItem_SetKind", (PyCFunction) _wrap_MenuItem_SetKind, METH_VARARGS | METH_KEYWORDS, NULL },
41851 { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS, NULL },
41852 { (char *)"MenuItem_IsCheckable", (PyCFunction) _wrap_MenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS, NULL },
41853 { (char *)"MenuItem_IsSubMenu", (PyCFunction) _wrap_MenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS, NULL },
41854 { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS, NULL },
41855 { (char *)"MenuItem_GetSubMenu", (PyCFunction) _wrap_MenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS, NULL },
41856 { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS, NULL },
41857 { (char *)"MenuItem_IsEnabled", (PyCFunction) _wrap_MenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
41858 { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS, NULL },
41859 { (char *)"MenuItem_IsChecked", (PyCFunction) _wrap_MenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL },
41860 { (char *)"MenuItem_Toggle", (PyCFunction) _wrap_MenuItem_Toggle, METH_VARARGS | METH_KEYWORDS, NULL },
41861 { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS, NULL },
41862 { (char *)"MenuItem_GetHelp", (PyCFunction) _wrap_MenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL },
41863 { (char *)"MenuItem_GetAccel", (PyCFunction) _wrap_MenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS, NULL },
41864 { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS, NULL },
41865 { (char *)"MenuItem_SetFont", (PyCFunction) _wrap_MenuItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
41866 { (char *)"MenuItem_GetFont", (PyCFunction) _wrap_MenuItem_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
41867 { (char *)"MenuItem_SetTextColour", (PyCFunction) _wrap_MenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
41868 { (char *)"MenuItem_GetTextColour", (PyCFunction) _wrap_MenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
41869 { (char *)"MenuItem_SetBackgroundColour", (PyCFunction) _wrap_MenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
41870 { (char *)"MenuItem_GetBackgroundColour", (PyCFunction) _wrap_MenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
41871 { (char *)"MenuItem_SetBitmaps", (PyCFunction) _wrap_MenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS, NULL },
41872 { (char *)"MenuItem_SetDisabledBitmap", (PyCFunction) _wrap_MenuItem_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
41873 { (char *)"MenuItem_GetDisabledBitmap", (PyCFunction) _wrap_MenuItem_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
41874 { (char *)"MenuItem_SetMarginWidth", (PyCFunction) _wrap_MenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS, NULL },
41875 { (char *)"MenuItem_GetMarginWidth", (PyCFunction) _wrap_MenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS, NULL },
41876 { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_MenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS, NULL },
41877 { (char *)"MenuItem_IsOwnerDrawn", (PyCFunction) _wrap_MenuItem_IsOwnerDrawn, METH_VARARGS | METH_KEYWORDS, NULL },
41878 { (char *)"MenuItem_SetOwnerDrawn", (PyCFunction) _wrap_MenuItem_SetOwnerDrawn, METH_VARARGS | METH_KEYWORDS, NULL },
41879 { (char *)"MenuItem_ResetOwnerDrawn", (PyCFunction) _wrap_MenuItem_ResetOwnerDrawn, METH_VARARGS | METH_KEYWORDS, NULL },
41880 { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
41881 { (char *)"MenuItem_GetBitmap", (PyCFunction) _wrap_MenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
41882 { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS, NULL },
41883 { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS, NULL },
41884 { (char *)"new_PreControl", (PyCFunction) _wrap_new_PreControl, METH_VARARGS | METH_KEYWORDS, NULL },
41885 { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS, NULL },
41886 { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS, NULL },
41887 { (char *)"Control_GetLabel", (PyCFunction) _wrap_Control_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
41888 { (char *)"Control_SetLabel", (PyCFunction) _wrap_Control_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
41889 { (char *)"Control_GetClassDefaultAttributes", (PyCFunction) _wrap_Control_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
41890 { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS, NULL },
41891 { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS, NULL },
41892 { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS, NULL },
41893 { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS, NULL },
41894 { (char *)"ItemContainer_Clear", (PyCFunction) _wrap_ItemContainer_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
41895 { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS, NULL },
41896 { (char *)"ItemContainer_GetCount", (PyCFunction) _wrap_ItemContainer_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
41897 { (char *)"ItemContainer_IsEmpty", (PyCFunction) _wrap_ItemContainer_IsEmpty, METH_VARARGS | METH_KEYWORDS, NULL },
41898 { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS, NULL },
41899 { (char *)"ItemContainer_GetStrings", (PyCFunction) _wrap_ItemContainer_GetStrings, METH_VARARGS | METH_KEYWORDS, NULL },
41900 { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS, NULL },
41901 { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS, NULL },
41902 { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS, NULL },
41903 { (char *)"ItemContainer_GetSelection", (PyCFunction) _wrap_ItemContainer_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
41904 { (char *)"ItemContainer_GetStringSelection", (PyCFunction) _wrap_ItemContainer_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
41905 { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS, NULL },
41906 { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL },
41907 { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS, NULL },
41908 { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS, NULL },
41909 { (char *)"new_SizerItem", (PyCFunction) _wrap_new_SizerItem, METH_VARARGS | METH_KEYWORDS, NULL },
41910 { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41911 { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS, NULL },
41912 { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS, NULL },
41913 { (char *)"SizerItem_DeleteWindows", (PyCFunction) _wrap_SizerItem_DeleteWindows, METH_VARARGS | METH_KEYWORDS, NULL },
41914 { (char *)"SizerItem_DetachSizer", (PyCFunction) _wrap_SizerItem_DetachSizer, METH_VARARGS | METH_KEYWORDS, NULL },
41915 { (char *)"SizerItem_GetSize", (PyCFunction) _wrap_SizerItem_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
41916 { (char *)"SizerItem_CalcMin", (PyCFunction) _wrap_SizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL },
41917 { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS, NULL },
41918 { (char *)"SizerItem_GetMinSize", (PyCFunction) _wrap_SizerItem_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL },
41919 { (char *)"SizerItem_GetMinSizeWithBorder", (PyCFunction) _wrap_SizerItem_GetMinSizeWithBorder, METH_VARARGS | METH_KEYWORDS, NULL },
41920 { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS, NULL },
41921 { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS, NULL },
41922 { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS, NULL },
41923 { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS, NULL },
41924 { (char *)"SizerItem_GetRatio", (PyCFunction) _wrap_SizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS, NULL },
41925 { (char *)"SizerItem_IsWindow", (PyCFunction) _wrap_SizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41926 { (char *)"SizerItem_IsSizer", (PyCFunction) _wrap_SizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS, NULL },
41927 { (char *)"SizerItem_IsSpacer", (PyCFunction) _wrap_SizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS, NULL },
41928 { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS, NULL },
41929 { (char *)"SizerItem_GetProportion", (PyCFunction) _wrap_SizerItem_GetProportion, METH_VARARGS | METH_KEYWORDS, NULL },
41930 { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS, NULL },
41931 { (char *)"SizerItem_GetFlag", (PyCFunction) _wrap_SizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS, NULL },
41932 { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS, NULL },
41933 { (char *)"SizerItem_GetBorder", (PyCFunction) _wrap_SizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS, NULL },
41934 { (char *)"SizerItem_GetWindow", (PyCFunction) _wrap_SizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41935 { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL },
41936 { (char *)"SizerItem_GetSizer", (PyCFunction) _wrap_SizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS, NULL },
41937 { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS, NULL },
41938 { (char *)"SizerItem_GetSpacer", (PyCFunction) _wrap_SizerItem_GetSpacer, METH_VARARGS | METH_KEYWORDS, NULL },
41939 { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS, NULL },
41940 { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS, NULL },
41941 { (char *)"SizerItem_IsShown", (PyCFunction) _wrap_SizerItem_IsShown, METH_VARARGS | METH_KEYWORDS, NULL },
41942 { (char *)"SizerItem_GetPosition", (PyCFunction) _wrap_SizerItem_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
41943 { (char *)"SizerItem_GetUserData", (PyCFunction) _wrap_SizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS, NULL },
41944 { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS, NULL },
41945 { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL },
41946 { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS, NULL },
41947 { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS, NULL },
41948 { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS, NULL },
41949 { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS, NULL },
41950 { (char *)"Sizer_Detach", (PyCFunction) _wrap_Sizer_Detach, METH_VARARGS | METH_KEYWORDS, NULL },
41951 { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS, NULL },
41952 { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS, NULL },
41953 { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL },
41954 { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL },
41955 { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS, NULL },
41956 { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS, NULL },
41957 { (char *)"Sizer_GetSize", (PyCFunction) _wrap_Sizer_GetSize, METH_VARARGS | METH_KEYWORDS, NULL },
41958 { (char *)"Sizer_GetPosition", (PyCFunction) _wrap_Sizer_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
41959 { (char *)"Sizer_GetMinSize", (PyCFunction) _wrap_Sizer_GetMinSize, METH_VARARGS | METH_KEYWORDS, NULL },
41960 { (char *)"Sizer_RecalcSizes", (PyCFunction) _wrap_Sizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL },
41961 { (char *)"Sizer_CalcMin", (PyCFunction) _wrap_Sizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL },
41962 { (char *)"Sizer_Layout", (PyCFunction) _wrap_Sizer_Layout, METH_VARARGS | METH_KEYWORDS, NULL },
41963 { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS, NULL },
41964 { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS, NULL },
41965 { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS, NULL },
41966 { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS, NULL },
41967 { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
41968 { (char *)"Sizer_DeleteWindows", (PyCFunction) _wrap_Sizer_DeleteWindows, METH_VARARGS | METH_KEYWORDS, NULL },
41969 { (char *)"Sizer_GetChildren", (PyCFunction) _wrap_Sizer_GetChildren, METH_VARARGS | METH_KEYWORDS, NULL },
41970 { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS, NULL },
41971 { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS, NULL },
41972 { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS, NULL },
41973 { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS, NULL },
41974 { (char *)"new_PySizer", (PyCFunction) _wrap_new_PySizer, METH_VARARGS | METH_KEYWORDS, NULL },
41975 { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
41976 { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS, NULL },
41977 { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS, NULL },
41978 { (char *)"BoxSizer_GetOrientation", (PyCFunction) _wrap_BoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS, NULL },
41979 { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL },
41980 { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS, NULL },
41981 { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS, NULL },
41982 { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_StaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS, NULL },
41983 { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS, NULL },
41984 { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS, NULL },
41985 { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS, NULL },
41986 { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS, NULL },
41987 { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS, NULL },
41988 { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS, NULL },
41989 { (char *)"GridSizer_GetCols", (PyCFunction) _wrap_GridSizer_GetCols, METH_VARARGS | METH_KEYWORDS, NULL },
41990 { (char *)"GridSizer_GetRows", (PyCFunction) _wrap_GridSizer_GetRows, METH_VARARGS | METH_KEYWORDS, NULL },
41991 { (char *)"GridSizer_GetVGap", (PyCFunction) _wrap_GridSizer_GetVGap, METH_VARARGS | METH_KEYWORDS, NULL },
41992 { (char *)"GridSizer_GetHGap", (PyCFunction) _wrap_GridSizer_GetHGap, METH_VARARGS | METH_KEYWORDS, NULL },
41993 { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS, NULL },
41994 { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS, NULL },
41995 { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS, NULL },
41996 { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS, NULL },
41997 { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS, NULL },
41998 { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS, NULL },
41999 { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS, NULL },
42000 { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_GetFlexibleDirection, METH_VARARGS | METH_KEYWORDS, NULL },
42001 { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS, NULL },
42002 { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS, NULL },
42003 { (char *)"FlexGridSizer_GetRowHeights", (PyCFunction) _wrap_FlexGridSizer_GetRowHeights, METH_VARARGS | METH_KEYWORDS, NULL },
42004 { (char *)"FlexGridSizer_GetColWidths", (PyCFunction) _wrap_FlexGridSizer_GetColWidths, METH_VARARGS | METH_KEYWORDS, NULL },
42005 { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS, NULL },
42006 { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS, NULL },
42007 { (char *)"GBPosition_GetRow", (PyCFunction) _wrap_GBPosition_GetRow, METH_VARARGS | METH_KEYWORDS, NULL },
42008 { (char *)"GBPosition_GetCol", (PyCFunction) _wrap_GBPosition_GetCol, METH_VARARGS | METH_KEYWORDS, NULL },
42009 { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS, NULL },
42010 { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS, NULL },
42011 { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
42012 { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
42013 { (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS, NULL },
42014 { (char *)"GBPosition_Get", (PyCFunction) _wrap_GBPosition_Get, METH_VARARGS | METH_KEYWORDS, NULL },
42015 { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS, NULL },
42016 { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS, NULL },
42017 { (char *)"GBSpan_GetRowspan", (PyCFunction) _wrap_GBSpan_GetRowspan, METH_VARARGS | METH_KEYWORDS, NULL },
42018 { (char *)"GBSpan_GetColspan", (PyCFunction) _wrap_GBSpan_GetColspan, METH_VARARGS | METH_KEYWORDS, NULL },
42019 { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS, NULL },
42020 { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS, NULL },
42021 { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
42022 { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
42023 { (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS, NULL },
42024 { (char *)"GBSpan_Get", (PyCFunction) _wrap_GBSpan_Get, METH_VARARGS | METH_KEYWORDS, NULL },
42025 { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS, NULL },
42026 { (char *)"new_GBSizerItem", (PyCFunction) _wrap_new_GBSizerItem, METH_VARARGS | METH_KEYWORDS, NULL },
42027 { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS, NULL },
42028 { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS, NULL },
42029 { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS, NULL },
42030 { (char *)"GBSizerItem_GetPos", (PyCFunction) _wrap_GBSizerItem_GetPos, METH_VARARGS | METH_KEYWORDS, NULL },
42031 { (char *)"GBSizerItem_GetSpan", (PyCFunction) _wrap_GBSizerItem_GetSpan, METH_VARARGS | METH_KEYWORDS, NULL },
42032 { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS, NULL },
42033 { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS, NULL },
42034 { (char *)"GBSizerItem_Intersects", (PyCFunction) _wrap_GBSizerItem_Intersects, METH_VARARGS | METH_KEYWORDS, NULL },
42035 { (char *)"GBSizerItem_IntersectsPos", (PyCFunction) _wrap_GBSizerItem_IntersectsPos, METH_VARARGS | METH_KEYWORDS, NULL },
42036 { (char *)"GBSizerItem_GetEndPos", (PyCFunction) _wrap_GBSizerItem_GetEndPos, METH_VARARGS | METH_KEYWORDS, NULL },
42037 { (char *)"GBSizerItem_GetGBSizer", (PyCFunction) _wrap_GBSizerItem_GetGBSizer, METH_VARARGS | METH_KEYWORDS, NULL },
42038 { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS, NULL },
42039 { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS, NULL },
42040 { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS, NULL },
42041 { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS, NULL },
42042 { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS, NULL },
42043 { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_GetEmptyCellSize, METH_VARARGS | METH_KEYWORDS, NULL },
42044 { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS, NULL },
42045 { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS, NULL },
42046 { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS, NULL },
42047 { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS, NULL },
42048 { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS, NULL },
42049 { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS, NULL },
42050 { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS, NULL },
42051 { (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS, NULL },
42052 { (char *)"GridBagSizer_CheckForIntersection", (PyCFunction) _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS | METH_KEYWORDS, NULL },
42053 { (char *)"GridBagSizer_CheckForIntersectionPos", (PyCFunction) _wrap_GridBagSizer_CheckForIntersectionPos, METH_VARARGS | METH_KEYWORDS, NULL },
42054 { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS, NULL },
42055 { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS, NULL },
42056 { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS, NULL },
42057 { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS, NULL },
42058 { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS, NULL },
42059 { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS, NULL },
42060 { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS, NULL },
42061 { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS, NULL },
42062 { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS, NULL },
42063 { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_IndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS, NULL },
42064 { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_IndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS, NULL },
42065 { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherWindow, METH_VARARGS | METH_KEYWORDS, NULL },
42066 { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMyEdge, METH_VARARGS | METH_KEYWORDS, NULL },
42067 { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS, NULL },
42068 { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
42069 { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMargin, METH_VARARGS | METH_KEYWORDS, NULL },
42070 { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS, NULL },
42071 { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
42072 { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction) _wrap_IndividualLayoutConstraint_GetPercent, METH_VARARGS | METH_KEYWORDS, NULL },
42073 { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherEdge, METH_VARARGS | METH_KEYWORDS, NULL },
42074 { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_GetDone, METH_VARARGS | METH_KEYWORDS, NULL },
42075 { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS, NULL },
42076 { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_GetRelationship, METH_VARARGS | METH_KEYWORDS, NULL },
42077 { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS, NULL },
42078 { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS, NULL },
42079 { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS, NULL },
42080 { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS, NULL },
42081 { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS, NULL },
42082 { (char *)"LayoutConstraints_left_get", (PyCFunction) _wrap_LayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS, NULL },
42083 { (char *)"LayoutConstraints_top_get", (PyCFunction) _wrap_LayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS, NULL },
42084 { (char *)"LayoutConstraints_right_get", (PyCFunction) _wrap_LayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS, NULL },
42085 { (char *)"LayoutConstraints_bottom_get", (PyCFunction) _wrap_LayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS, NULL },
42086 { (char *)"LayoutConstraints_width_get", (PyCFunction) _wrap_LayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS, NULL },
42087 { (char *)"LayoutConstraints_height_get", (PyCFunction) _wrap_LayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS, NULL },
42088 { (char *)"LayoutConstraints_centreX_get", (PyCFunction) _wrap_LayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS, NULL },
42089 { (char *)"LayoutConstraints_centreY_get", (PyCFunction) _wrap_LayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS, NULL },
42090 { (char *)"new_LayoutConstraints", (PyCFunction) _wrap_new_LayoutConstraints, METH_VARARGS | METH_KEYWORDS, NULL },
42091 { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS, NULL },
42092 { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction) _wrap_LayoutConstraints_AreSatisfied, METH_VARARGS | METH_KEYWORDS, NULL },
42093 { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS, NULL },
42094 { NULL, NULL, 0, NULL }
d55e5bfc
RD
42095};
42096
42097
42098/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
42099
42100static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) {
42101 return (void *)((wxSizerItem *) ((wxGBSizerItem *) x));
42102}
42103static void *_p_wxBoxSizerTo_p_wxSizer(void *x) {
42104 return (void *)((wxSizer *) ((wxBoxSizer *) x));
42105}
42106static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) {
42107 return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x));
42108}
42109static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) {
42110 return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
42111}
42112static void *_p_wxGridSizerTo_p_wxSizer(void *x) {
42113 return (void *)((wxSizer *) ((wxGridSizer *) x));
42114}
42115static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) {
42116 return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x));
42117}
42118static void *_p_wxPySizerTo_p_wxSizer(void *x) {
42119 return (void *)((wxSizer *) ((wxPySizer *) x));
42120}
42121static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) {
42122 return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x));
42123}
42124static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
42125 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
42126}
42127static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
42128 return (void *)((wxEvent *) ((wxMenuEvent *) x));
42129}
42130static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
42131 return (void *)((wxEvent *) ((wxCloseEvent *) x));
42132}
42133static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
42134 return (void *)((wxEvent *) ((wxMouseEvent *) x));
42135}
42136static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
42137 return (void *)((wxEvent *) ((wxEraseEvent *) x));
42138}
42139static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
42140 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
42141}
42142static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
42143 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
42144}
42145static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
42146 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
42147}
42148static void *_p_wxPyEventTo_p_wxEvent(void *x) {
42149 return (void *)((wxEvent *) ((wxPyEvent *) x));
42150}
42151static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
42152 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
42153}
42154static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
42155 return (void *)((wxEvent *) ((wxIdleEvent *) x));
42156}
42157static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
42158 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
42159}
42160static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
42161 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
42162}
42163static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
42164 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
42165}
42166static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
42167 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
42168}
42169static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
42170 return (void *)((wxEvent *) ((wxActivateEvent *) x));
42171}
42172static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
42173 return (void *)((wxEvent *) ((wxSizeEvent *) x));
42174}
42175static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
42176 return (void *)((wxEvent *) ((wxMoveEvent *) x));
42177}
42178static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
42179 return (void *)((wxEvent *) ((wxPaintEvent *) x));
42180}
42181static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
42182 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
42183}
42184static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
42185 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
42186}
42187static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
42188 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
42189}
42190static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
42191 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
42192}
42193static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
42194 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
42195}
42196static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
42197 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
42198}
42199static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
42200 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
42201}
42202static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
42203 return (void *)((wxEvent *) ((wxFocusEvent *) x));
42204}
42205static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
42206 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
42207}
42208static void *_p_wxShowEventTo_p_wxEvent(void *x) {
42209 return (void *)((wxEvent *) ((wxShowEvent *) x));
42210}
42211static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
42212 return (void *)((wxEvent *) ((wxCommandEvent *) x));
42213}
42214static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
42215 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
42216}
42217static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
42218 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
42219}
42220static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
42221 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
42222}
42223static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
42224 return (void *)((wxEvent *) ((wxKeyEvent *) x));
42225}
42226static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
42227 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
42228}
42229static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) {
42230 return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x));
42231}
42232static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) {
42233 return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x));
42234}
42235static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) {
42236 return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x));
42237}
42238static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
42239 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
42240}
42241static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
42242 return (void *)((wxControl *) ((wxControlWithItems *) x));
42243}
42244static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
42245 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
42246}
42247static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
42248 return (void *)((wxEvtHandler *) ((wxWindow *) x));
42249}
42250static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
42251 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
42252}
42253static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
42254 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
42255}
42256static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
42257 return (void *)((wxEvtHandler *) ((wxValidator *) x));
42258}
42259static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
42260 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
42261}
42262static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
42263 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
42264}
42265static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
42266 return (void *)((wxEvtHandler *) ((wxMenu *) x));
42267}
42268static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) {
42269 return (void *)((wxCURHandler *) ((wxANIHandler *) x));
42270}
42271static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) {
42272 return (void *)((wxICOHandler *) ((wxCURHandler *) x));
42273}
42274static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) {
42275 return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x));
42276}
42277static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) {
42278 return (void *)((wxBMPHandler *) ((wxICOHandler *) x));
42279}
42280static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) {
42281 return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x));
42282}
42283static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) {
42284 return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
42285}
42286static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) {
42287 return (void *)((wxImageHandler *) ((wxBMPHandler *) x));
42288}
42289static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) {
42290 return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x));
42291}
42292static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) {
42293 return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
42294}
42295static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) {
42296 return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
42297}
42298static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) {
42299 return (void *)((wxImageHandler *) ((wxPNGHandler *) x));
42300}
42301static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) {
42302 return (void *)((wxImageHandler *) ((wxGIFHandler *) x));
42303}
42304static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) {
42305 return (void *)((wxImageHandler *) ((wxPCXHandler *) x));
42306}
42307static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) {
42308 return (void *)((wxImageHandler *) ((wxJPEGHandler *) x));
42309}
42310static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) {
42311 return (void *)((wxImageHandler *) ((wxPNMHandler *) x));
42312}
42313static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) {
42314 return (void *)((wxImageHandler *) ((wxXPMHandler *) x));
42315}
42316static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) {
42317 return (void *)((wxImageHandler *) ((wxTIFFHandler *) x));
42318}
42319static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) {
42320 return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x));
42321}
42322static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) {
42323 return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x));
42324}
42325static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) {
42326 return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x));
42327}
42328static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) {
42329 return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x));
42330}
42331static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
42332 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
42333}
42334static void *_p_wxMenuEventTo_p_wxObject(void *x) {
42335 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
42336}
42337static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
42338 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
42339}
42340static void *_p_wxEraseEventTo_p_wxObject(void *x) {
42341 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
42342}
42343static void *_p_wxMouseEventTo_p_wxObject(void *x) {
42344 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
42345}
42346static void *_p_wxCloseEventTo_p_wxObject(void *x) {
42347 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
42348}
42349static void *_p_wxValidatorTo_p_wxObject(void *x) {
42350 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
42351}
42352static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
42353 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
42354}
42355static void *_p_wxMenuBarTo_p_wxObject(void *x) {
42356 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
42357}
42358static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
42359 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
42360}
42361static void *_p_wxSizerTo_p_wxObject(void *x) {
42362 return (void *)((wxObject *) ((wxSizer *) x));
42363}
42364static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
42365 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
42366}
42367static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
42368 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
42369}
42370static void *_p_wxMenuTo_p_wxObject(void *x) {
42371 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
42372}
42373static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
42374 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
42375}
42376static void *_p_wxImageTo_p_wxObject(void *x) {
42377 return (void *)((wxObject *) ((wxImage *) x));
42378}
42379static void *_p_wxScrollEventTo_p_wxObject(void *x) {
42380 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
42381}
42382static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
42383 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
42384}
42385static void *_p_wxPyEventTo_p_wxObject(void *x) {
42386 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
42387}
42388static void *_p_wxWindowTo_p_wxObject(void *x) {
42389 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
42390}
42391static void *_p_wxControlTo_p_wxObject(void *x) {
42392 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
42393}
42394static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
42395 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
42396}
42397static void *_p_wxGridSizerTo_p_wxObject(void *x) {
42398 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
42399}
42400static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
42401 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
42402}
42403static void *_p_wxPyAppTo_p_wxObject(void *x) {
42404 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
42405}
42406static void *_p_wxEventTo_p_wxObject(void *x) {
42407 return (void *)((wxObject *) ((wxEvent *) x));
42408}
42409static void *_p_wxActivateEventTo_p_wxObject(void *x) {
42410 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
42411}
42412static void *_p_wxMoveEventTo_p_wxObject(void *x) {
42413 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
42414}
42415static void *_p_wxSizeEventTo_p_wxObject(void *x) {
42416 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
42417}
42418static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
42419 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
42420}
42421static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
42422 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
42423}
42424static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
42425 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
42426}
42427static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
42428 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
42429}
42430static void *_p_wxIdleEventTo_p_wxObject(void *x) {
42431 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
42432}
42433static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
42434 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
42435}
42436static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
42437 return (void *)((wxObject *) ((wxEvtHandler *) x));
42438}
42439static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
42440 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
42441}
42442static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
42443 return (void *)((wxObject *) ((wxImageHandler *) x));
42444}
42445static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
42446 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
42447}
42448static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
42449 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
42450}
42451static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
42452 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
42453}
42454static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
42455 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
42456}
42457static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
42458 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
42459}
42460static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
42461 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
42462}
42463static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
42464 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
42465}
42466static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
42467 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
42468}
42469static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
42470 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
42471}
42472static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
42473 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
42474}
42475static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
42476 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
42477}
42478static void *_p_wxPaintEventTo_p_wxObject(void *x) {
42479 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
42480}
42481static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
42482 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
42483}
42484static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
42485 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
42486}
42487static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
42488 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
42489}
42490static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
42491 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
42492}
42493static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
42494 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
42495}
42496static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
42497 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
42498}
42499static void *_p_wxFileSystemTo_p_wxObject(void *x) {
42500 return (void *)((wxObject *) ((wxFileSystem *) x));
42501}
42502static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
42503 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
42504}
42505static void *_p_wxFocusEventTo_p_wxObject(void *x) {
42506 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
42507}
42508static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
42509 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
42510}
42511static void *_p_wxSizerItemTo_p_wxObject(void *x) {
42512 return (void *)((wxObject *) ((wxSizerItem *) x));
42513}
42514static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
42515 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
42516}
42517static void *_p_wxShowEventTo_p_wxObject(void *x) {
42518 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
42519}
42520static void *_p_wxFSFileTo_p_wxObject(void *x) {
42521 return (void *)((wxObject *) ((wxFSFile *) x));
42522}
42523static void *_p_wxCommandEventTo_p_wxObject(void *x) {
42524 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
42525}
42526static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
42527 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
42528}
42529static void *_p_wxKeyEventTo_p_wxObject(void *x) {
42530 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
42531}
42532static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
42533 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
42534}
42535static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
42536 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
42537}
42538static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
42539 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
42540}
42541static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
42542 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
42543}
42544static void *_p_wxMenuItemTo_p_wxObject(void *x) {
42545 return (void *)((wxObject *) ((wxMenuItem *) x));
42546}
42547static void *_p_wxPySizerTo_p_wxObject(void *x) {
42548 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
42549}
42550static void *_p_wxControlTo_p_wxWindow(void *x) {
42551 return (void *)((wxWindow *) ((wxControl *) x));
42552}
42553static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
42554 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
42555}
42556static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
42557 return (void *)((wxWindow *) ((wxMenuBar *) x));
42558}
42559static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
42560 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
42561}
42562static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
42563 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
42564}
42565static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
42566 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
42567}
42568static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
42569 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
42570}
42571static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
42572 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
42573}
42574static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
42575 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
42576}
42577static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
42578 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
42579}
42580static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
42581 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
42582}
42583static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
42584 return (void *)((wxValidator *) ((wxPyValidator *) x));
42585}
42586static 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}};
42587static 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}};
42588static 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}};
42589static 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}};
42590static 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}};
42591static 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}};
42592static 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}};
42593static 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}};
42594static 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}};
42595static 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}};
42596static 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}};
42597static 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}};
42598static 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}};
42599static 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}};
42600static 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}};
42601static 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}};
42602static 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}};
42603static 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}};
42604static 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}};
42605static 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}};
42606static 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}};
42607static 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}};
42608static 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}};
42609static 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}};
42610static 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}};
42611static 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}};
42612static 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}};
42613static 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}};
42614static 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}};
42615static 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}};
42616static 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}};
42617static 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}};
42618static 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}};
42619static 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}};
42620static 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}};
42621static 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}};
42622static 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}};
42623static 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}};
42624static 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}};
42625static 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}};
42626static 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}};
42627static 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}};
42628static 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}};
42629static 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}};
d55e5bfc
RD
42630static 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}};
42631static 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}};
42632static 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}};
42633static 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}};
c0de73ae 42634static 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}};
d55e5bfc
RD
42635static 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}};
42636static 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}};
42637static 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}};
42638static 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}};
42639static 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}};
42640static 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}};
42641static 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}};
42642static 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}};
42643static 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}};
42644static 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}};
42645static 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}};
42646static 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}};
42647static 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}};
42648static 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}};
42649static 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}};
42650static 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}};
42651static 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}};
42652static 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}};
42653static 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}};
42654static 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}};
42655static 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}};
42656static 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}};
42657static 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}};
42658static 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}};
42659static 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}};
42660static 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}};
42661static 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}};
42662static 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}};
42663static 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}};
42664static 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}};
42665static 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}};
42666static 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}};
42667static 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}};
42668static 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}};
42669static 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}};
42670static 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}};
42671static 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}};
42672static 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}};
42673static 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}};
42674static 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}};
42675static 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}};
42676static 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}};
42677static 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}};
42678static 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}};
42679static 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}};
42680static 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}};
42681static 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}};
42682static 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}};
42683static 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}};
42684static 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}};
42685static 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}};
42686static 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}};
42687static 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}};
42688static 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}};
42689static 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}};
42690static 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}};
42691static 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}};
42692static 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}};
42693static 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}};
c0de73ae 42694static swig_type_info _swigt__p_wxQuantize[] = {{"_p_wxQuantize", 0, "wxQuantize *", 0, 0, 0, 0},{"_p_wxQuantize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
d55e5bfc
RD
42695static 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}};
42696static 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}};
42697static 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}};
42698static 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}};
42699static 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}};
42700static 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}};
42701static 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}};
42702
42703static swig_type_info *swig_types_initial[] = {
42704_swigt__p_wxLayoutConstraints,
42705_swigt__p_wxRealPoint,
42706_swigt__p_wxSizerItem,
42707_swigt__p_wxGBSizerItem,
42708_swigt__p_wxScrollEvent,
42709_swigt__p_wxIndividualLayoutConstraint,
42710_swigt__p_wxSizer,
42711_swigt__p_wxBoxSizer,
42712_swigt__p_wxStaticBoxSizer,
42713_swigt__p_wxGridBagSizer,
42714_swigt__p_wxAcceleratorEntry,
42715_swigt__p_wxUpdateUIEvent,
42716_swigt__p_wxMenu,
42717_swigt__p_wxEvent,
42718_swigt__p_wxGridSizer,
42719_swigt__p_wxFlexGridSizer,
42720_swigt__p_wxInitDialogEvent,
42721_swigt__p_wxItemContainer,
42722_swigt__p_wxNcPaintEvent,
42723_swigt__p_wxPaintEvent,
42724_swigt__p_wxSysColourChangedEvent,
42725_swigt__p_wxMouseCaptureChangedEvent,
42726_swigt__p_wxDisplayChangedEvent,
42727_swigt__p_wxPaletteChangedEvent,
42728_swigt__p_wxControl,
42729_swigt__p_wxFont,
42730_swigt__p_wxMenuBarBase,
42731_swigt__p_wxSetCursorEvent,
42732_swigt__p_wxFSFile,
42733_swigt__p_wxCaret,
42734_swigt__p_wxRegion,
42735_swigt__p_wxPoint2D,
42736_swigt__p_int,
42737_swigt__p_wxSize,
42738_swigt__p_wxDC,
42739_swigt__p_wxPySizer,
42740_swigt__p_wxVisualAttributes,
42741_swigt__p_wxNotifyEvent,
42742_swigt__p_wxPyEvent,
42743_swigt__p_wxPropagationDisabler,
42744_swigt__p_wxAppTraits,
42745_swigt__p_wxArrayString,
42746_swigt__p_wxShowEvent,
42747_swigt__p_wxToolTip,
d55e5bfc
RD
42748_swigt__p_wxIconizeEvent,
42749_swigt__p_wxActivateEvent,
42750_swigt__p_wxMoveEvent,
42751_swigt__p_wxSizeEvent,
c0de73ae 42752_swigt__p_wxMaximizeEvent,
d55e5bfc
RD
42753_swigt__p_wxQueryNewPaletteEvent,
42754_swigt__p_wxWindowCreateEvent,
42755_swigt__p_wxIdleEvent,
42756_swigt__p_wxMenuItem,
42757_swigt__p_wxStaticBox,
42758_swigt__p_long,
42759_swigt__p_wxTIFFHandler,
42760_swigt__p_wxXPMHandler,
42761_swigt__p_wxPNMHandler,
42762_swigt__p_wxJPEGHandler,
42763_swigt__p_wxPCXHandler,
42764_swigt__p_wxGIFHandler,
42765_swigt__p_wxPNGHandler,
42766_swigt__p_wxANIHandler,
42767_swigt__p_wxMemoryFSHandler,
42768_swigt__p_wxEvtHandler,
42769_swigt__p_wxCURHandler,
42770_swigt__p_wxICOHandler,
42771_swigt__p_wxBMPHandler,
42772_swigt__p_wxImageHandler,
42773_swigt__p_wxFileSystemHandler,
42774_swigt__p_wxPyFileSystemHandler,
42775_swigt__p_wxInternetFSHandler,
42776_swigt__p_wxZipFSHandler,
42777_swigt__p_wxRect,
42778_swigt__p_wxGBSpan,
42779_swigt__p_wxPropagateOnce,
42780_swigt__p_wxAcceleratorTable,
42781_swigt__p_char,
42782_swigt__p_wxGBPosition,
42783_swigt__p_wxImage,
42784_swigt__p_wxFrame,
42785_swigt__p_wxScrollWinEvent,
42786_swigt__p_wxImageHistogram,
42787_swigt__p_byte,
42788_swigt__p_wxPoint,
42789_swigt__p_wxCursor,
42790_swigt__p_wxObject,
42791_swigt__p_wxPyInputStream,
42792_swigt__p_wxOutputStream,
42793_swigt__p_wxInputStream,
42794_swigt__p_wxDateTime,
42795_swigt__p_wxKeyEvent,
42796_swigt__p_wxNavigationKeyEvent,
42797_swigt__p_wxWindowDestroyEvent,
42798_swigt__p_wxWindow,
42799_swigt__p_wxMenuBar,
42800_swigt__p_wxFileSystem,
42801_swigt__p_wxBitmap,
42802_swigt__p_wxMenuEvent,
42803_swigt__p_wxContextMenuEvent,
42804_swigt__p_unsigned_char,
42805_swigt__p_wxCloseEvent,
42806_swigt__p_wxEraseEvent,
42807_swigt__p_wxMouseEvent,
42808_swigt__p_wxPyApp,
42809_swigt__p_wxCommandEvent,
42810_swigt__p_wxPyCommandEvent,
42811_swigt__p_wxPyDropTarget,
c0de73ae 42812_swigt__p_wxQuantize,
d55e5bfc
RD
42813_swigt__p_wxChildFocusEvent,
42814_swigt__p_wxFocusEvent,
42815_swigt__p_wxDropFilesEvent,
42816_swigt__p_wxControlWithItems,
42817_swigt__p_wxColour,
42818_swigt__p_wxValidator,
42819_swigt__p_wxPyValidator,
428200
42821};
42822
42823
42824/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
42825
42826static swig_const_info swig_const_table[] = {
c32bde28 42827{0, 0, 0, 0.0, 0, 0}};
d55e5bfc
RD
42828
42829#ifdef __cplusplus
42830}
42831#endif
42832
42833#ifdef __cplusplus
42834extern "C"
42835#endif
42836SWIGEXPORT(void) SWIG_init(void) {
42837 static PyObject *SWIG_globals = 0;
42838 static int typeinit = 0;
42839 PyObject *m, *d;
42840 int i;
42841 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
42842 m = Py_InitModule((char *) SWIG_name, SwigMethods);
42843 d = PyModule_GetDict(m);
42844
42845 if (!typeinit) {
42846 for (i = 0; swig_types_initial[i]; i++) {
42847 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
42848 }
42849 typeinit = 1;
42850 }
42851 SWIG_InstallConstants(d,swig_const_table);
42852
42853
42854#ifndef wxPyUSE_EXPORT
42855 // Make our API structure a CObject so other modules can import it
42856 // from this module.
42857 PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL);
42858 PyDict_SetItemString(d,"_wxPyCoreAPI", cobj);
42859 Py_XDECREF(cobj);
42860#endif
42861
c32bde28
RD
42862 PyDict_SetItemString(d,"NOT_FOUND", SWIG_From_int((int)wxNOT_FOUND));
42863 PyDict_SetItemString(d,"VSCROLL", SWIG_From_int((int)wxVSCROLL));
42864 PyDict_SetItemString(d,"HSCROLL", SWIG_From_int((int)wxHSCROLL));
42865 PyDict_SetItemString(d,"CAPTION", SWIG_From_int((int)wxCAPTION));
42866 PyDict_SetItemString(d,"DOUBLE_BORDER", SWIG_From_int((int)wxDOUBLE_BORDER));
42867 PyDict_SetItemString(d,"SUNKEN_BORDER", SWIG_From_int((int)wxSUNKEN_BORDER));
42868 PyDict_SetItemString(d,"RAISED_BORDER", SWIG_From_int((int)wxRAISED_BORDER));
42869 PyDict_SetItemString(d,"BORDER", SWIG_From_int((int)wxBORDER));
42870 PyDict_SetItemString(d,"SIMPLE_BORDER", SWIG_From_int((int)wxSIMPLE_BORDER));
42871 PyDict_SetItemString(d,"STATIC_BORDER", SWIG_From_int((int)wxSTATIC_BORDER));
42872 PyDict_SetItemString(d,"TRANSPARENT_WINDOW", SWIG_From_int((int)wxTRANSPARENT_WINDOW));
42873 PyDict_SetItemString(d,"NO_BORDER", SWIG_From_int((int)wxNO_BORDER));
42874 PyDict_SetItemString(d,"TAB_TRAVERSAL", SWIG_From_int((int)wxTAB_TRAVERSAL));
42875 PyDict_SetItemString(d,"WANTS_CHARS", SWIG_From_int((int)wxWANTS_CHARS));
42876 PyDict_SetItemString(d,"POPUP_WINDOW", SWIG_From_int((int)wxPOPUP_WINDOW));
42877 PyDict_SetItemString(d,"CENTER_FRAME", SWIG_From_int((int)wxCENTER_FRAME));
42878 PyDict_SetItemString(d,"CENTRE_ON_SCREEN", SWIG_From_int((int)wxCENTRE_ON_SCREEN));
42879 PyDict_SetItemString(d,"CENTER_ON_SCREEN", SWIG_From_int((int)wxCENTER_ON_SCREEN));
42880 PyDict_SetItemString(d,"ED_CLIENT_MARGIN", SWIG_From_int((int)wxED_CLIENT_MARGIN));
42881 PyDict_SetItemString(d,"ED_BUTTONS_BOTTOM", SWIG_From_int((int)wxED_BUTTONS_BOTTOM));
42882 PyDict_SetItemString(d,"ED_BUTTONS_RIGHT", SWIG_From_int((int)wxED_BUTTONS_RIGHT));
42883 PyDict_SetItemString(d,"ED_STATIC_LINE", SWIG_From_int((int)wxED_STATIC_LINE));
42884 PyDict_SetItemString(d,"EXT_DIALOG_STYLE", SWIG_From_int((int)wxEXT_DIALOG_STYLE));
42885 PyDict_SetItemString(d,"CLIP_CHILDREN", SWIG_From_int((int)wxCLIP_CHILDREN));
42886 PyDict_SetItemString(d,"CLIP_SIBLINGS", SWIG_From_int((int)wxCLIP_SIBLINGS));
42887 PyDict_SetItemString(d,"ALWAYS_SHOW_SB", SWIG_From_int((int)wxALWAYS_SHOW_SB));
42888 PyDict_SetItemString(d,"RETAINED", SWIG_From_int((int)wxRETAINED));
42889 PyDict_SetItemString(d,"BACKINGSTORE", SWIG_From_int((int)wxBACKINGSTORE));
42890 PyDict_SetItemString(d,"COLOURED", SWIG_From_int((int)wxCOLOURED));
42891 PyDict_SetItemString(d,"FIXED_LENGTH", SWIG_From_int((int)wxFIXED_LENGTH));
42892 PyDict_SetItemString(d,"LB_NEEDED_SB", SWIG_From_int((int)wxLB_NEEDED_SB));
42893 PyDict_SetItemString(d,"LB_ALWAYS_SB", SWIG_From_int((int)wxLB_ALWAYS_SB));
42894 PyDict_SetItemString(d,"LB_SORT", SWIG_From_int((int)wxLB_SORT));
42895 PyDict_SetItemString(d,"LB_SINGLE", SWIG_From_int((int)wxLB_SINGLE));
42896 PyDict_SetItemString(d,"LB_MULTIPLE", SWIG_From_int((int)wxLB_MULTIPLE));
42897 PyDict_SetItemString(d,"LB_EXTENDED", SWIG_From_int((int)wxLB_EXTENDED));
42898 PyDict_SetItemString(d,"LB_OWNERDRAW", SWIG_From_int((int)wxLB_OWNERDRAW));
42899 PyDict_SetItemString(d,"LB_HSCROLL", SWIG_From_int((int)wxLB_HSCROLL));
42900 PyDict_SetItemString(d,"PROCESS_ENTER", SWIG_From_int((int)wxPROCESS_ENTER));
42901 PyDict_SetItemString(d,"PASSWORD", SWIG_From_int((int)wxPASSWORD));
42902 PyDict_SetItemString(d,"CB_SIMPLE", SWIG_From_int((int)wxCB_SIMPLE));
42903 PyDict_SetItemString(d,"CB_DROPDOWN", SWIG_From_int((int)wxCB_DROPDOWN));
42904 PyDict_SetItemString(d,"CB_SORT", SWIG_From_int((int)wxCB_SORT));
42905 PyDict_SetItemString(d,"CB_READONLY", SWIG_From_int((int)wxCB_READONLY));
42906 PyDict_SetItemString(d,"RA_HORIZONTAL", SWIG_From_int((int)wxRA_HORIZONTAL));
42907 PyDict_SetItemString(d,"RA_VERTICAL", SWIG_From_int((int)wxRA_VERTICAL));
42908 PyDict_SetItemString(d,"RA_SPECIFY_ROWS", SWIG_From_int((int)wxRA_SPECIFY_ROWS));
42909 PyDict_SetItemString(d,"RA_SPECIFY_COLS", SWIG_From_int((int)wxRA_SPECIFY_COLS));
42910 PyDict_SetItemString(d,"RB_GROUP", SWIG_From_int((int)wxRB_GROUP));
42911 PyDict_SetItemString(d,"RB_SINGLE", SWIG_From_int((int)wxRB_SINGLE));
42912 PyDict_SetItemString(d,"SL_HORIZONTAL", SWIG_From_int((int)wxSL_HORIZONTAL));
42913 PyDict_SetItemString(d,"SL_VERTICAL", SWIG_From_int((int)wxSL_VERTICAL));
42914 PyDict_SetItemString(d,"SL_AUTOTICKS", SWIG_From_int((int)wxSL_AUTOTICKS));
42915 PyDict_SetItemString(d,"SL_LABELS", SWIG_From_int((int)wxSL_LABELS));
42916 PyDict_SetItemString(d,"SL_LEFT", SWIG_From_int((int)wxSL_LEFT));
42917 PyDict_SetItemString(d,"SL_TOP", SWIG_From_int((int)wxSL_TOP));
42918 PyDict_SetItemString(d,"SL_RIGHT", SWIG_From_int((int)wxSL_RIGHT));
42919 PyDict_SetItemString(d,"SL_BOTTOM", SWIG_From_int((int)wxSL_BOTTOM));
42920 PyDict_SetItemString(d,"SL_BOTH", SWIG_From_int((int)wxSL_BOTH));
42921 PyDict_SetItemString(d,"SL_SELRANGE", SWIG_From_int((int)wxSL_SELRANGE));
42922 PyDict_SetItemString(d,"SB_HORIZONTAL", SWIG_From_int((int)wxSB_HORIZONTAL));
42923 PyDict_SetItemString(d,"SB_VERTICAL", SWIG_From_int((int)wxSB_VERTICAL));
42924 PyDict_SetItemString(d,"ST_SIZEGRIP", SWIG_From_int((int)wxST_SIZEGRIP));
42925 PyDict_SetItemString(d,"ST_NO_AUTORESIZE", SWIG_From_int((int)wxST_NO_AUTORESIZE));
42926 PyDict_SetItemString(d,"FLOOD_SURFACE", SWIG_From_int((int)wxFLOOD_SURFACE));
42927 PyDict_SetItemString(d,"FLOOD_BORDER", SWIG_From_int((int)wxFLOOD_BORDER));
42928 PyDict_SetItemString(d,"ODDEVEN_RULE", SWIG_From_int((int)wxODDEVEN_RULE));
42929 PyDict_SetItemString(d,"WINDING_RULE", SWIG_From_int((int)wxWINDING_RULE));
42930 PyDict_SetItemString(d,"TOOL_TOP", SWIG_From_int((int)wxTOOL_TOP));
42931 PyDict_SetItemString(d,"TOOL_BOTTOM", SWIG_From_int((int)wxTOOL_BOTTOM));
42932 PyDict_SetItemString(d,"TOOL_LEFT", SWIG_From_int((int)wxTOOL_LEFT));
42933 PyDict_SetItemString(d,"TOOL_RIGHT", SWIG_From_int((int)wxTOOL_RIGHT));
42934 PyDict_SetItemString(d,"OK", SWIG_From_int((int)wxOK));
42935 PyDict_SetItemString(d,"YES_NO", SWIG_From_int((int)wxYES_NO));
42936 PyDict_SetItemString(d,"CANCEL", SWIG_From_int((int)wxCANCEL));
42937 PyDict_SetItemString(d,"YES", SWIG_From_int((int)wxYES));
42938 PyDict_SetItemString(d,"NO", SWIG_From_int((int)wxNO));
42939 PyDict_SetItemString(d,"NO_DEFAULT", SWIG_From_int((int)wxNO_DEFAULT));
42940 PyDict_SetItemString(d,"YES_DEFAULT", SWIG_From_int((int)wxYES_DEFAULT));
42941 PyDict_SetItemString(d,"ICON_EXCLAMATION", SWIG_From_int((int)wxICON_EXCLAMATION));
42942 PyDict_SetItemString(d,"ICON_HAND", SWIG_From_int((int)wxICON_HAND));
42943 PyDict_SetItemString(d,"ICON_QUESTION", SWIG_From_int((int)wxICON_QUESTION));
42944 PyDict_SetItemString(d,"ICON_INFORMATION", SWIG_From_int((int)wxICON_INFORMATION));
42945 PyDict_SetItemString(d,"ICON_STOP", SWIG_From_int((int)wxICON_STOP));
42946 PyDict_SetItemString(d,"ICON_ASTERISK", SWIG_From_int((int)wxICON_ASTERISK));
42947 PyDict_SetItemString(d,"ICON_MASK", SWIG_From_int((int)wxICON_MASK));
42948 PyDict_SetItemString(d,"ICON_WARNING", SWIG_From_int((int)wxICON_WARNING));
42949 PyDict_SetItemString(d,"ICON_ERROR", SWIG_From_int((int)wxICON_ERROR));
42950 PyDict_SetItemString(d,"FORWARD", SWIG_From_int((int)wxFORWARD));
42951 PyDict_SetItemString(d,"BACKWARD", SWIG_From_int((int)wxBACKWARD));
42952 PyDict_SetItemString(d,"RESET", SWIG_From_int((int)wxRESET));
42953 PyDict_SetItemString(d,"HELP", SWIG_From_int((int)wxHELP));
42954 PyDict_SetItemString(d,"MORE", SWIG_From_int((int)wxMORE));
42955 PyDict_SetItemString(d,"SETUP", SWIG_From_int((int)wxSETUP));
42956 PyDict_SetItemString(d,"SIZE_AUTO_WIDTH", SWIG_From_int((int)wxSIZE_AUTO_WIDTH));
42957 PyDict_SetItemString(d,"SIZE_AUTO_HEIGHT", SWIG_From_int((int)wxSIZE_AUTO_HEIGHT));
42958 PyDict_SetItemString(d,"SIZE_AUTO", SWIG_From_int((int)wxSIZE_AUTO));
42959 PyDict_SetItemString(d,"SIZE_USE_EXISTING", SWIG_From_int((int)wxSIZE_USE_EXISTING));
42960 PyDict_SetItemString(d,"SIZE_ALLOW_MINUS_ONE", SWIG_From_int((int)wxSIZE_ALLOW_MINUS_ONE));
42961 PyDict_SetItemString(d,"PORTRAIT", SWIG_From_int((int)wxPORTRAIT));
42962 PyDict_SetItemString(d,"LANDSCAPE", SWIG_From_int((int)wxLANDSCAPE));
42963 PyDict_SetItemString(d,"PRINT_QUALITY_HIGH", SWIG_From_int((int)wxPRINT_QUALITY_HIGH));
42964 PyDict_SetItemString(d,"PRINT_QUALITY_MEDIUM", SWIG_From_int((int)wxPRINT_QUALITY_MEDIUM));
42965 PyDict_SetItemString(d,"PRINT_QUALITY_LOW", SWIG_From_int((int)wxPRINT_QUALITY_LOW));
42966 PyDict_SetItemString(d,"PRINT_QUALITY_DRAFT", SWIG_From_int((int)wxPRINT_QUALITY_DRAFT));
42967 PyDict_SetItemString(d,"ID_ANY", SWIG_From_int((int)wxID_ANY));
42968 PyDict_SetItemString(d,"ID_SEPARATOR", SWIG_From_int((int)wxID_SEPARATOR));
42969 PyDict_SetItemString(d,"ID_LOWEST", SWIG_From_int((int)wxID_LOWEST));
42970 PyDict_SetItemString(d,"ID_OPEN", SWIG_From_int((int)wxID_OPEN));
42971 PyDict_SetItemString(d,"ID_CLOSE", SWIG_From_int((int)wxID_CLOSE));
42972 PyDict_SetItemString(d,"ID_NEW", SWIG_From_int((int)wxID_NEW));
42973 PyDict_SetItemString(d,"ID_SAVE", SWIG_From_int((int)wxID_SAVE));
42974 PyDict_SetItemString(d,"ID_SAVEAS", SWIG_From_int((int)wxID_SAVEAS));
42975 PyDict_SetItemString(d,"ID_REVERT", SWIG_From_int((int)wxID_REVERT));
42976 PyDict_SetItemString(d,"ID_EXIT", SWIG_From_int((int)wxID_EXIT));
42977 PyDict_SetItemString(d,"ID_UNDO", SWIG_From_int((int)wxID_UNDO));
42978 PyDict_SetItemString(d,"ID_REDO", SWIG_From_int((int)wxID_REDO));
42979 PyDict_SetItemString(d,"ID_HELP", SWIG_From_int((int)wxID_HELP));
42980 PyDict_SetItemString(d,"ID_PRINT", SWIG_From_int((int)wxID_PRINT));
42981 PyDict_SetItemString(d,"ID_PRINT_SETUP", SWIG_From_int((int)wxID_PRINT_SETUP));
42982 PyDict_SetItemString(d,"ID_PREVIEW", SWIG_From_int((int)wxID_PREVIEW));
42983 PyDict_SetItemString(d,"ID_ABOUT", SWIG_From_int((int)wxID_ABOUT));
42984 PyDict_SetItemString(d,"ID_HELP_CONTENTS", SWIG_From_int((int)wxID_HELP_CONTENTS));
42985 PyDict_SetItemString(d,"ID_HELP_COMMANDS", SWIG_From_int((int)wxID_HELP_COMMANDS));
42986 PyDict_SetItemString(d,"ID_HELP_PROCEDURES", SWIG_From_int((int)wxID_HELP_PROCEDURES));
42987 PyDict_SetItemString(d,"ID_HELP_CONTEXT", SWIG_From_int((int)wxID_HELP_CONTEXT));
42988 PyDict_SetItemString(d,"ID_CLOSE_ALL", SWIG_From_int((int)wxID_CLOSE_ALL));
42989 PyDict_SetItemString(d,"ID_PREFERENCES", SWIG_From_int((int)wxID_PREFERENCES));
42990 PyDict_SetItemString(d,"ID_CUT", SWIG_From_int((int)wxID_CUT));
42991 PyDict_SetItemString(d,"ID_COPY", SWIG_From_int((int)wxID_COPY));
42992 PyDict_SetItemString(d,"ID_PASTE", SWIG_From_int((int)wxID_PASTE));
42993 PyDict_SetItemString(d,"ID_CLEAR", SWIG_From_int((int)wxID_CLEAR));
42994 PyDict_SetItemString(d,"ID_FIND", SWIG_From_int((int)wxID_FIND));
42995 PyDict_SetItemString(d,"ID_DUPLICATE", SWIG_From_int((int)wxID_DUPLICATE));
42996 PyDict_SetItemString(d,"ID_SELECTALL", SWIG_From_int((int)wxID_SELECTALL));
42997 PyDict_SetItemString(d,"ID_DELETE", SWIG_From_int((int)wxID_DELETE));
42998 PyDict_SetItemString(d,"ID_REPLACE", SWIG_From_int((int)wxID_REPLACE));
42999 PyDict_SetItemString(d,"ID_REPLACE_ALL", SWIG_From_int((int)wxID_REPLACE_ALL));
43000 PyDict_SetItemString(d,"ID_PROPERTIES", SWIG_From_int((int)wxID_PROPERTIES));
43001 PyDict_SetItemString(d,"ID_VIEW_DETAILS", SWIG_From_int((int)wxID_VIEW_DETAILS));
43002 PyDict_SetItemString(d,"ID_VIEW_LARGEICONS", SWIG_From_int((int)wxID_VIEW_LARGEICONS));
43003 PyDict_SetItemString(d,"ID_VIEW_SMALLICONS", SWIG_From_int((int)wxID_VIEW_SMALLICONS));
43004 PyDict_SetItemString(d,"ID_VIEW_LIST", SWIG_From_int((int)wxID_VIEW_LIST));
43005 PyDict_SetItemString(d,"ID_VIEW_SORTDATE", SWIG_From_int((int)wxID_VIEW_SORTDATE));
43006 PyDict_SetItemString(d,"ID_VIEW_SORTNAME", SWIG_From_int((int)wxID_VIEW_SORTNAME));
43007 PyDict_SetItemString(d,"ID_VIEW_SORTSIZE", SWIG_From_int((int)wxID_VIEW_SORTSIZE));
43008 PyDict_SetItemString(d,"ID_VIEW_SORTTYPE", SWIG_From_int((int)wxID_VIEW_SORTTYPE));
43009 PyDict_SetItemString(d,"ID_FILE1", SWIG_From_int((int)wxID_FILE1));
43010 PyDict_SetItemString(d,"ID_FILE2", SWIG_From_int((int)wxID_FILE2));
43011 PyDict_SetItemString(d,"ID_FILE3", SWIG_From_int((int)wxID_FILE3));
43012 PyDict_SetItemString(d,"ID_FILE4", SWIG_From_int((int)wxID_FILE4));
43013 PyDict_SetItemString(d,"ID_FILE5", SWIG_From_int((int)wxID_FILE5));
43014 PyDict_SetItemString(d,"ID_FILE6", SWIG_From_int((int)wxID_FILE6));
43015 PyDict_SetItemString(d,"ID_FILE7", SWIG_From_int((int)wxID_FILE7));
43016 PyDict_SetItemString(d,"ID_FILE8", SWIG_From_int((int)wxID_FILE8));
43017 PyDict_SetItemString(d,"ID_FILE9", SWIG_From_int((int)wxID_FILE9));
43018 PyDict_SetItemString(d,"ID_OK", SWIG_From_int((int)wxID_OK));
43019 PyDict_SetItemString(d,"ID_CANCEL", SWIG_From_int((int)wxID_CANCEL));
43020 PyDict_SetItemString(d,"ID_APPLY", SWIG_From_int((int)wxID_APPLY));
43021 PyDict_SetItemString(d,"ID_YES", SWIG_From_int((int)wxID_YES));
43022 PyDict_SetItemString(d,"ID_NO", SWIG_From_int((int)wxID_NO));
43023 PyDict_SetItemString(d,"ID_STATIC", SWIG_From_int((int)wxID_STATIC));
43024 PyDict_SetItemString(d,"ID_FORWARD", SWIG_From_int((int)wxID_FORWARD));
43025 PyDict_SetItemString(d,"ID_BACKWARD", SWIG_From_int((int)wxID_BACKWARD));
43026 PyDict_SetItemString(d,"ID_DEFAULT", SWIG_From_int((int)wxID_DEFAULT));
43027 PyDict_SetItemString(d,"ID_MORE", SWIG_From_int((int)wxID_MORE));
43028 PyDict_SetItemString(d,"ID_SETUP", SWIG_From_int((int)wxID_SETUP));
43029 PyDict_SetItemString(d,"ID_RESET", SWIG_From_int((int)wxID_RESET));
43030 PyDict_SetItemString(d,"ID_CONTEXT_HELP", SWIG_From_int((int)wxID_CONTEXT_HELP));
43031 PyDict_SetItemString(d,"ID_YESTOALL", SWIG_From_int((int)wxID_YESTOALL));
43032 PyDict_SetItemString(d,"ID_NOTOALL", SWIG_From_int((int)wxID_NOTOALL));
43033 PyDict_SetItemString(d,"ID_ABORT", SWIG_From_int((int)wxID_ABORT));
43034 PyDict_SetItemString(d,"ID_RETRY", SWIG_From_int((int)wxID_RETRY));
43035 PyDict_SetItemString(d,"ID_IGNORE", SWIG_From_int((int)wxID_IGNORE));
43036 PyDict_SetItemString(d,"ID_ADD", SWIG_From_int((int)wxID_ADD));
43037 PyDict_SetItemString(d,"ID_REMOVE", SWIG_From_int((int)wxID_REMOVE));
43038 PyDict_SetItemString(d,"ID_UP", SWIG_From_int((int)wxID_UP));
43039 PyDict_SetItemString(d,"ID_DOWN", SWIG_From_int((int)wxID_DOWN));
43040 PyDict_SetItemString(d,"ID_HOME", SWIG_From_int((int)wxID_HOME));
43041 PyDict_SetItemString(d,"ID_REFRESH", SWIG_From_int((int)wxID_REFRESH));
43042 PyDict_SetItemString(d,"ID_STOP", SWIG_From_int((int)wxID_STOP));
43043 PyDict_SetItemString(d,"ID_INDEX", SWIG_From_int((int)wxID_INDEX));
43044 PyDict_SetItemString(d,"ID_BOLD", SWIG_From_int((int)wxID_BOLD));
43045 PyDict_SetItemString(d,"ID_ITALIC", SWIG_From_int((int)wxID_ITALIC));
43046 PyDict_SetItemString(d,"ID_JUSTIFY_CENTER", SWIG_From_int((int)wxID_JUSTIFY_CENTER));
43047 PyDict_SetItemString(d,"ID_JUSTIFY_FILL", SWIG_From_int((int)wxID_JUSTIFY_FILL));
43048 PyDict_SetItemString(d,"ID_JUSTIFY_RIGHT", SWIG_From_int((int)wxID_JUSTIFY_RIGHT));
43049 PyDict_SetItemString(d,"ID_JUSTIFY_LEFT", SWIG_From_int((int)wxID_JUSTIFY_LEFT));
43050 PyDict_SetItemString(d,"ID_UNDERLINE", SWIG_From_int((int)wxID_UNDERLINE));
43051 PyDict_SetItemString(d,"ID_INDENT", SWIG_From_int((int)wxID_INDENT));
43052 PyDict_SetItemString(d,"ID_UNINDENT", SWIG_From_int((int)wxID_UNINDENT));
43053 PyDict_SetItemString(d,"ID_ZOOM_100", SWIG_From_int((int)wxID_ZOOM_100));
43054 PyDict_SetItemString(d,"ID_ZOOM_FIT", SWIG_From_int((int)wxID_ZOOM_FIT));
43055 PyDict_SetItemString(d,"ID_ZOOM_IN", SWIG_From_int((int)wxID_ZOOM_IN));
43056 PyDict_SetItemString(d,"ID_ZOOM_OUT", SWIG_From_int((int)wxID_ZOOM_OUT));
43057 PyDict_SetItemString(d,"ID_UNDELETE", SWIG_From_int((int)wxID_UNDELETE));
43058 PyDict_SetItemString(d,"ID_REVERT_TO_SAVED", SWIG_From_int((int)wxID_REVERT_TO_SAVED));
43059 PyDict_SetItemString(d,"ID_HIGHEST", SWIG_From_int((int)wxID_HIGHEST));
43060 PyDict_SetItemString(d,"OPEN", SWIG_From_int((int)wxOPEN));
43061 PyDict_SetItemString(d,"SAVE", SWIG_From_int((int)wxSAVE));
43062 PyDict_SetItemString(d,"HIDE_READONLY", SWIG_From_int((int)wxHIDE_READONLY));
43063 PyDict_SetItemString(d,"OVERWRITE_PROMPT", SWIG_From_int((int)wxOVERWRITE_PROMPT));
43064 PyDict_SetItemString(d,"FILE_MUST_EXIST", SWIG_From_int((int)wxFILE_MUST_EXIST));
43065 PyDict_SetItemString(d,"MULTIPLE", SWIG_From_int((int)wxMULTIPLE));
43066 PyDict_SetItemString(d,"CHANGE_DIR", SWIG_From_int((int)wxCHANGE_DIR));
43067 PyDict_SetItemString(d,"ACCEL_ALT", SWIG_From_int((int)wxACCEL_ALT));
43068 PyDict_SetItemString(d,"ACCEL_CTRL", SWIG_From_int((int)wxACCEL_CTRL));
43069 PyDict_SetItemString(d,"ACCEL_SHIFT", SWIG_From_int((int)wxACCEL_SHIFT));
43070 PyDict_SetItemString(d,"ACCEL_NORMAL", SWIG_From_int((int)wxACCEL_NORMAL));
43071 PyDict_SetItemString(d,"PD_AUTO_HIDE", SWIG_From_int((int)wxPD_AUTO_HIDE));
43072 PyDict_SetItemString(d,"PD_APP_MODAL", SWIG_From_int((int)wxPD_APP_MODAL));
43073 PyDict_SetItemString(d,"PD_CAN_ABORT", SWIG_From_int((int)wxPD_CAN_ABORT));
43074 PyDict_SetItemString(d,"PD_ELAPSED_TIME", SWIG_From_int((int)wxPD_ELAPSED_TIME));
43075 PyDict_SetItemString(d,"PD_ESTIMATED_TIME", SWIG_From_int((int)wxPD_ESTIMATED_TIME));
43076 PyDict_SetItemString(d,"PD_REMAINING_TIME", SWIG_From_int((int)wxPD_REMAINING_TIME));
43077 PyDict_SetItemString(d,"DD_NEW_DIR_BUTTON", SWIG_From_int((int)wxDD_NEW_DIR_BUTTON));
43078 PyDict_SetItemString(d,"DD_DEFAULT_STYLE", SWIG_From_int((int)wxDD_DEFAULT_STYLE));
43079 PyDict_SetItemString(d,"MENU_TEAROFF", SWIG_From_int((int)wxMENU_TEAROFF));
43080 PyDict_SetItemString(d,"MB_DOCKABLE", SWIG_From_int((int)wxMB_DOCKABLE));
43081 PyDict_SetItemString(d,"NO_FULL_REPAINT_ON_RESIZE", SWIG_From_int((int)wxNO_FULL_REPAINT_ON_RESIZE));
43082 PyDict_SetItemString(d,"FULL_REPAINT_ON_RESIZE", SWIG_From_int((int)wxFULL_REPAINT_ON_RESIZE));
43083 PyDict_SetItemString(d,"LI_HORIZONTAL", SWIG_From_int((int)wxLI_HORIZONTAL));
43084 PyDict_SetItemString(d,"LI_VERTICAL", SWIG_From_int((int)wxLI_VERTICAL));
43085 PyDict_SetItemString(d,"WS_EX_VALIDATE_RECURSIVELY", SWIG_From_int((int)wxWS_EX_VALIDATE_RECURSIVELY));
43086 PyDict_SetItemString(d,"WS_EX_BLOCK_EVENTS", SWIG_From_int((int)wxWS_EX_BLOCK_EVENTS));
43087 PyDict_SetItemString(d,"WS_EX_TRANSIENT", SWIG_From_int((int)wxWS_EX_TRANSIENT));
43088 PyDict_SetItemString(d,"WS_EX_THEMED_BACKGROUND", SWIG_From_int((int)wxWS_EX_THEMED_BACKGROUND));
43089 PyDict_SetItemString(d,"WS_EX_PROCESS_IDLE", SWIG_From_int((int)wxWS_EX_PROCESS_IDLE));
43090 PyDict_SetItemString(d,"WS_EX_PROCESS_UI_UPDATES", SWIG_From_int((int)wxWS_EX_PROCESS_UI_UPDATES));
43091 PyDict_SetItemString(d,"MM_TEXT", SWIG_From_int((int)wxMM_TEXT));
43092 PyDict_SetItemString(d,"MM_LOMETRIC", SWIG_From_int((int)wxMM_LOMETRIC));
43093 PyDict_SetItemString(d,"MM_HIMETRIC", SWIG_From_int((int)wxMM_HIMETRIC));
43094 PyDict_SetItemString(d,"MM_LOENGLISH", SWIG_From_int((int)wxMM_LOENGLISH));
43095 PyDict_SetItemString(d,"MM_HIENGLISH", SWIG_From_int((int)wxMM_HIENGLISH));
43096 PyDict_SetItemString(d,"MM_TWIPS", SWIG_From_int((int)wxMM_TWIPS));
43097 PyDict_SetItemString(d,"MM_ISOTROPIC", SWIG_From_int((int)wxMM_ISOTROPIC));
43098 PyDict_SetItemString(d,"MM_ANISOTROPIC", SWIG_From_int((int)wxMM_ANISOTROPIC));
43099 PyDict_SetItemString(d,"MM_POINTS", SWIG_From_int((int)wxMM_POINTS));
43100 PyDict_SetItemString(d,"MM_METRIC", SWIG_From_int((int)wxMM_METRIC));
43101 PyDict_SetItemString(d,"CENTRE", SWIG_From_int((int)wxCENTRE));
43102 PyDict_SetItemString(d,"CENTER", SWIG_From_int((int)wxCENTER));
43103 PyDict_SetItemString(d,"HORIZONTAL", SWIG_From_int((int)wxHORIZONTAL));
43104 PyDict_SetItemString(d,"VERTICAL", SWIG_From_int((int)wxVERTICAL));
43105 PyDict_SetItemString(d,"BOTH", SWIG_From_int((int)wxBOTH));
43106 PyDict_SetItemString(d,"LEFT", SWIG_From_int((int)wxLEFT));
43107 PyDict_SetItemString(d,"RIGHT", SWIG_From_int((int)wxRIGHT));
43108 PyDict_SetItemString(d,"UP", SWIG_From_int((int)wxUP));
43109 PyDict_SetItemString(d,"DOWN", SWIG_From_int((int)wxDOWN));
43110 PyDict_SetItemString(d,"TOP", SWIG_From_int((int)wxTOP));
43111 PyDict_SetItemString(d,"BOTTOM", SWIG_From_int((int)wxBOTTOM));
43112 PyDict_SetItemString(d,"NORTH", SWIG_From_int((int)wxNORTH));
43113 PyDict_SetItemString(d,"SOUTH", SWIG_From_int((int)wxSOUTH));
43114 PyDict_SetItemString(d,"WEST", SWIG_From_int((int)wxWEST));
43115 PyDict_SetItemString(d,"EAST", SWIG_From_int((int)wxEAST));
43116 PyDict_SetItemString(d,"ALL", SWIG_From_int((int)wxALL));
43117 PyDict_SetItemString(d,"ALIGN_NOT", SWIG_From_int((int)wxALIGN_NOT));
43118 PyDict_SetItemString(d,"ALIGN_CENTER_HORIZONTAL", SWIG_From_int((int)wxALIGN_CENTER_HORIZONTAL));
43119 PyDict_SetItemString(d,"ALIGN_CENTRE_HORIZONTAL", SWIG_From_int((int)wxALIGN_CENTRE_HORIZONTAL));
43120 PyDict_SetItemString(d,"ALIGN_LEFT", SWIG_From_int((int)wxALIGN_LEFT));
43121 PyDict_SetItemString(d,"ALIGN_TOP", SWIG_From_int((int)wxALIGN_TOP));
43122 PyDict_SetItemString(d,"ALIGN_RIGHT", SWIG_From_int((int)wxALIGN_RIGHT));
43123 PyDict_SetItemString(d,"ALIGN_BOTTOM", SWIG_From_int((int)wxALIGN_BOTTOM));
43124 PyDict_SetItemString(d,"ALIGN_CENTER_VERTICAL", SWIG_From_int((int)wxALIGN_CENTER_VERTICAL));
43125 PyDict_SetItemString(d,"ALIGN_CENTRE_VERTICAL", SWIG_From_int((int)wxALIGN_CENTRE_VERTICAL));
43126 PyDict_SetItemString(d,"ALIGN_CENTER", SWIG_From_int((int)wxALIGN_CENTER));
43127 PyDict_SetItemString(d,"ALIGN_CENTRE", SWIG_From_int((int)wxALIGN_CENTRE));
43128 PyDict_SetItemString(d,"ALIGN_MASK", SWIG_From_int((int)wxALIGN_MASK));
43129 PyDict_SetItemString(d,"STRETCH_NOT", SWIG_From_int((int)wxSTRETCH_NOT));
43130 PyDict_SetItemString(d,"SHRINK", SWIG_From_int((int)wxSHRINK));
43131 PyDict_SetItemString(d,"GROW", SWIG_From_int((int)wxGROW));
43132 PyDict_SetItemString(d,"EXPAND", SWIG_From_int((int)wxEXPAND));
43133 PyDict_SetItemString(d,"SHAPED", SWIG_From_int((int)wxSHAPED));
43134 PyDict_SetItemString(d,"FIXED_MINSIZE", SWIG_From_int((int)wxFIXED_MINSIZE));
43135 PyDict_SetItemString(d,"TILE", SWIG_From_int((int)wxTILE));
43136 PyDict_SetItemString(d,"ADJUST_MINSIZE", SWIG_From_int((int)wxADJUST_MINSIZE));
43137 PyDict_SetItemString(d,"BORDER_DEFAULT", SWIG_From_int((int)wxBORDER_DEFAULT));
43138 PyDict_SetItemString(d,"BORDER_NONE", SWIG_From_int((int)wxBORDER_NONE));
43139 PyDict_SetItemString(d,"BORDER_STATIC", SWIG_From_int((int)wxBORDER_STATIC));
43140 PyDict_SetItemString(d,"BORDER_SIMPLE", SWIG_From_int((int)wxBORDER_SIMPLE));
43141 PyDict_SetItemString(d,"BORDER_RAISED", SWIG_From_int((int)wxBORDER_RAISED));
43142 PyDict_SetItemString(d,"BORDER_SUNKEN", SWIG_From_int((int)wxBORDER_SUNKEN));
43143 PyDict_SetItemString(d,"BORDER_DOUBLE", SWIG_From_int((int)wxBORDER_DOUBLE));
43144 PyDict_SetItemString(d,"BORDER_MASK", SWIG_From_int((int)wxBORDER_MASK));
43145 PyDict_SetItemString(d,"BG_STYLE_SYSTEM", SWIG_From_int((int)wxBG_STYLE_SYSTEM));
43146 PyDict_SetItemString(d,"BG_STYLE_COLOUR", SWIG_From_int((int)wxBG_STYLE_COLOUR));
43147 PyDict_SetItemString(d,"BG_STYLE_CUSTOM", SWIG_From_int((int)wxBG_STYLE_CUSTOM));
43148 PyDict_SetItemString(d,"DEFAULT", SWIG_From_int((int)wxDEFAULT));
43149 PyDict_SetItemString(d,"DECORATIVE", SWIG_From_int((int)wxDECORATIVE));
43150 PyDict_SetItemString(d,"ROMAN", SWIG_From_int((int)wxROMAN));
43151 PyDict_SetItemString(d,"SCRIPT", SWIG_From_int((int)wxSCRIPT));
43152 PyDict_SetItemString(d,"SWISS", SWIG_From_int((int)wxSWISS));
43153 PyDict_SetItemString(d,"MODERN", SWIG_From_int((int)wxMODERN));
43154 PyDict_SetItemString(d,"TELETYPE", SWIG_From_int((int)wxTELETYPE));
43155 PyDict_SetItemString(d,"VARIABLE", SWIG_From_int((int)wxVARIABLE));
43156 PyDict_SetItemString(d,"FIXED", SWIG_From_int((int)wxFIXED));
43157 PyDict_SetItemString(d,"NORMAL", SWIG_From_int((int)wxNORMAL));
43158 PyDict_SetItemString(d,"LIGHT", SWIG_From_int((int)wxLIGHT));
43159 PyDict_SetItemString(d,"BOLD", SWIG_From_int((int)wxBOLD));
43160 PyDict_SetItemString(d,"ITALIC", SWIG_From_int((int)wxITALIC));
43161 PyDict_SetItemString(d,"SLANT", SWIG_From_int((int)wxSLANT));
43162 PyDict_SetItemString(d,"SOLID", SWIG_From_int((int)wxSOLID));
43163 PyDict_SetItemString(d,"DOT", SWIG_From_int((int)wxDOT));
43164 PyDict_SetItemString(d,"LONG_DASH", SWIG_From_int((int)wxLONG_DASH));
43165 PyDict_SetItemString(d,"SHORT_DASH", SWIG_From_int((int)wxSHORT_DASH));
43166 PyDict_SetItemString(d,"DOT_DASH", SWIG_From_int((int)wxDOT_DASH));
43167 PyDict_SetItemString(d,"USER_DASH", SWIG_From_int((int)wxUSER_DASH));
43168 PyDict_SetItemString(d,"TRANSPARENT", SWIG_From_int((int)wxTRANSPARENT));
43169 PyDict_SetItemString(d,"STIPPLE", SWIG_From_int((int)wxSTIPPLE));
43170 PyDict_SetItemString(d,"BDIAGONAL_HATCH", SWIG_From_int((int)wxBDIAGONAL_HATCH));
43171 PyDict_SetItemString(d,"CROSSDIAG_HATCH", SWIG_From_int((int)wxCROSSDIAG_HATCH));
43172 PyDict_SetItemString(d,"FDIAGONAL_HATCH", SWIG_From_int((int)wxFDIAGONAL_HATCH));
43173 PyDict_SetItemString(d,"CROSS_HATCH", SWIG_From_int((int)wxCROSS_HATCH));
43174 PyDict_SetItemString(d,"HORIZONTAL_HATCH", SWIG_From_int((int)wxHORIZONTAL_HATCH));
43175 PyDict_SetItemString(d,"VERTICAL_HATCH", SWIG_From_int((int)wxVERTICAL_HATCH));
43176 PyDict_SetItemString(d,"JOIN_BEVEL", SWIG_From_int((int)wxJOIN_BEVEL));
43177 PyDict_SetItemString(d,"JOIN_MITER", SWIG_From_int((int)wxJOIN_MITER));
43178 PyDict_SetItemString(d,"JOIN_ROUND", SWIG_From_int((int)wxJOIN_ROUND));
43179 PyDict_SetItemString(d,"CAP_ROUND", SWIG_From_int((int)wxCAP_ROUND));
43180 PyDict_SetItemString(d,"CAP_PROJECTING", SWIG_From_int((int)wxCAP_PROJECTING));
43181 PyDict_SetItemString(d,"CAP_BUTT", SWIG_From_int((int)wxCAP_BUTT));
43182 PyDict_SetItemString(d,"CLEAR", SWIG_From_int((int)wxCLEAR));
43183 PyDict_SetItemString(d,"XOR", SWIG_From_int((int)wxXOR));
43184 PyDict_SetItemString(d,"INVERT", SWIG_From_int((int)wxINVERT));
43185 PyDict_SetItemString(d,"OR_REVERSE", SWIG_From_int((int)wxOR_REVERSE));
43186 PyDict_SetItemString(d,"AND_REVERSE", SWIG_From_int((int)wxAND_REVERSE));
43187 PyDict_SetItemString(d,"COPY", SWIG_From_int((int)wxCOPY));
43188 PyDict_SetItemString(d,"AND", SWIG_From_int((int)wxAND));
43189 PyDict_SetItemString(d,"AND_INVERT", SWIG_From_int((int)wxAND_INVERT));
43190 PyDict_SetItemString(d,"NO_OP", SWIG_From_int((int)wxNO_OP));
43191 PyDict_SetItemString(d,"NOR", SWIG_From_int((int)wxNOR));
43192 PyDict_SetItemString(d,"EQUIV", SWIG_From_int((int)wxEQUIV));
43193 PyDict_SetItemString(d,"SRC_INVERT", SWIG_From_int((int)wxSRC_INVERT));
43194 PyDict_SetItemString(d,"OR_INVERT", SWIG_From_int((int)wxOR_INVERT));
43195 PyDict_SetItemString(d,"NAND", SWIG_From_int((int)wxNAND));
43196 PyDict_SetItemString(d,"OR", SWIG_From_int((int)wxOR));
43197 PyDict_SetItemString(d,"SET", SWIG_From_int((int)wxSET));
43198 PyDict_SetItemString(d,"WXK_BACK", SWIG_From_int((int)WXK_BACK));
43199 PyDict_SetItemString(d,"WXK_TAB", SWIG_From_int((int)WXK_TAB));
43200 PyDict_SetItemString(d,"WXK_RETURN", SWIG_From_int((int)WXK_RETURN));
43201 PyDict_SetItemString(d,"WXK_ESCAPE", SWIG_From_int((int)WXK_ESCAPE));
43202 PyDict_SetItemString(d,"WXK_SPACE", SWIG_From_int((int)WXK_SPACE));
43203 PyDict_SetItemString(d,"WXK_DELETE", SWIG_From_int((int)WXK_DELETE));
43204 PyDict_SetItemString(d,"WXK_START", SWIG_From_int((int)WXK_START));
43205 PyDict_SetItemString(d,"WXK_LBUTTON", SWIG_From_int((int)WXK_LBUTTON));
43206 PyDict_SetItemString(d,"WXK_RBUTTON", SWIG_From_int((int)WXK_RBUTTON));
43207 PyDict_SetItemString(d,"WXK_CANCEL", SWIG_From_int((int)WXK_CANCEL));
43208 PyDict_SetItemString(d,"WXK_MBUTTON", SWIG_From_int((int)WXK_MBUTTON));
43209 PyDict_SetItemString(d,"WXK_CLEAR", SWIG_From_int((int)WXK_CLEAR));
43210 PyDict_SetItemString(d,"WXK_SHIFT", SWIG_From_int((int)WXK_SHIFT));
43211 PyDict_SetItemString(d,"WXK_ALT", SWIG_From_int((int)WXK_ALT));
43212 PyDict_SetItemString(d,"WXK_CONTROL", SWIG_From_int((int)WXK_CONTROL));
43213 PyDict_SetItemString(d,"WXK_MENU", SWIG_From_int((int)WXK_MENU));
43214 PyDict_SetItemString(d,"WXK_PAUSE", SWIG_From_int((int)WXK_PAUSE));
43215 PyDict_SetItemString(d,"WXK_CAPITAL", SWIG_From_int((int)WXK_CAPITAL));
43216 PyDict_SetItemString(d,"WXK_PRIOR", SWIG_From_int((int)WXK_PRIOR));
43217 PyDict_SetItemString(d,"WXK_NEXT", SWIG_From_int((int)WXK_NEXT));
43218 PyDict_SetItemString(d,"WXK_END", SWIG_From_int((int)WXK_END));
43219 PyDict_SetItemString(d,"WXK_HOME", SWIG_From_int((int)WXK_HOME));
43220 PyDict_SetItemString(d,"WXK_LEFT", SWIG_From_int((int)WXK_LEFT));
43221 PyDict_SetItemString(d,"WXK_UP", SWIG_From_int((int)WXK_UP));
43222 PyDict_SetItemString(d,"WXK_RIGHT", SWIG_From_int((int)WXK_RIGHT));
43223 PyDict_SetItemString(d,"WXK_DOWN", SWIG_From_int((int)WXK_DOWN));
43224 PyDict_SetItemString(d,"WXK_SELECT", SWIG_From_int((int)WXK_SELECT));
43225 PyDict_SetItemString(d,"WXK_PRINT", SWIG_From_int((int)WXK_PRINT));
43226 PyDict_SetItemString(d,"WXK_EXECUTE", SWIG_From_int((int)WXK_EXECUTE));
43227 PyDict_SetItemString(d,"WXK_SNAPSHOT", SWIG_From_int((int)WXK_SNAPSHOT));
43228 PyDict_SetItemString(d,"WXK_INSERT", SWIG_From_int((int)WXK_INSERT));
43229 PyDict_SetItemString(d,"WXK_HELP", SWIG_From_int((int)WXK_HELP));
43230 PyDict_SetItemString(d,"WXK_NUMPAD0", SWIG_From_int((int)WXK_NUMPAD0));
43231 PyDict_SetItemString(d,"WXK_NUMPAD1", SWIG_From_int((int)WXK_NUMPAD1));
43232 PyDict_SetItemString(d,"WXK_NUMPAD2", SWIG_From_int((int)WXK_NUMPAD2));
43233 PyDict_SetItemString(d,"WXK_NUMPAD3", SWIG_From_int((int)WXK_NUMPAD3));
43234 PyDict_SetItemString(d,"WXK_NUMPAD4", SWIG_From_int((int)WXK_NUMPAD4));
43235 PyDict_SetItemString(d,"WXK_NUMPAD5", SWIG_From_int((int)WXK_NUMPAD5));
43236 PyDict_SetItemString(d,"WXK_NUMPAD6", SWIG_From_int((int)WXK_NUMPAD6));
43237 PyDict_SetItemString(d,"WXK_NUMPAD7", SWIG_From_int((int)WXK_NUMPAD7));
43238 PyDict_SetItemString(d,"WXK_NUMPAD8", SWIG_From_int((int)WXK_NUMPAD8));
43239 PyDict_SetItemString(d,"WXK_NUMPAD9", SWIG_From_int((int)WXK_NUMPAD9));
43240 PyDict_SetItemString(d,"WXK_MULTIPLY", SWIG_From_int((int)WXK_MULTIPLY));
43241 PyDict_SetItemString(d,"WXK_ADD", SWIG_From_int((int)WXK_ADD));
43242 PyDict_SetItemString(d,"WXK_SEPARATOR", SWIG_From_int((int)WXK_SEPARATOR));
43243 PyDict_SetItemString(d,"WXK_SUBTRACT", SWIG_From_int((int)WXK_SUBTRACT));
43244 PyDict_SetItemString(d,"WXK_DECIMAL", SWIG_From_int((int)WXK_DECIMAL));
43245 PyDict_SetItemString(d,"WXK_DIVIDE", SWIG_From_int((int)WXK_DIVIDE));
43246 PyDict_SetItemString(d,"WXK_F1", SWIG_From_int((int)WXK_F1));
43247 PyDict_SetItemString(d,"WXK_F2", SWIG_From_int((int)WXK_F2));
43248 PyDict_SetItemString(d,"WXK_F3", SWIG_From_int((int)WXK_F3));
43249 PyDict_SetItemString(d,"WXK_F4", SWIG_From_int((int)WXK_F4));
43250 PyDict_SetItemString(d,"WXK_F5", SWIG_From_int((int)WXK_F5));
43251 PyDict_SetItemString(d,"WXK_F6", SWIG_From_int((int)WXK_F6));
43252 PyDict_SetItemString(d,"WXK_F7", SWIG_From_int((int)WXK_F7));
43253 PyDict_SetItemString(d,"WXK_F8", SWIG_From_int((int)WXK_F8));
43254 PyDict_SetItemString(d,"WXK_F9", SWIG_From_int((int)WXK_F9));
43255 PyDict_SetItemString(d,"WXK_F10", SWIG_From_int((int)WXK_F10));
43256 PyDict_SetItemString(d,"WXK_F11", SWIG_From_int((int)WXK_F11));
43257 PyDict_SetItemString(d,"WXK_F12", SWIG_From_int((int)WXK_F12));
43258 PyDict_SetItemString(d,"WXK_F13", SWIG_From_int((int)WXK_F13));
43259 PyDict_SetItemString(d,"WXK_F14", SWIG_From_int((int)WXK_F14));
43260 PyDict_SetItemString(d,"WXK_F15", SWIG_From_int((int)WXK_F15));
43261 PyDict_SetItemString(d,"WXK_F16", SWIG_From_int((int)WXK_F16));
43262 PyDict_SetItemString(d,"WXK_F17", SWIG_From_int((int)WXK_F17));
43263 PyDict_SetItemString(d,"WXK_F18", SWIG_From_int((int)WXK_F18));
43264 PyDict_SetItemString(d,"WXK_F19", SWIG_From_int((int)WXK_F19));
43265 PyDict_SetItemString(d,"WXK_F20", SWIG_From_int((int)WXK_F20));
43266 PyDict_SetItemString(d,"WXK_F21", SWIG_From_int((int)WXK_F21));
43267 PyDict_SetItemString(d,"WXK_F22", SWIG_From_int((int)WXK_F22));
43268 PyDict_SetItemString(d,"WXK_F23", SWIG_From_int((int)WXK_F23));
43269 PyDict_SetItemString(d,"WXK_F24", SWIG_From_int((int)WXK_F24));
43270 PyDict_SetItemString(d,"WXK_NUMLOCK", SWIG_From_int((int)WXK_NUMLOCK));
43271 PyDict_SetItemString(d,"WXK_SCROLL", SWIG_From_int((int)WXK_SCROLL));
43272 PyDict_SetItemString(d,"WXK_PAGEUP", SWIG_From_int((int)WXK_PAGEUP));
43273 PyDict_SetItemString(d,"WXK_PAGEDOWN", SWIG_From_int((int)WXK_PAGEDOWN));
43274 PyDict_SetItemString(d,"WXK_NUMPAD_SPACE", SWIG_From_int((int)WXK_NUMPAD_SPACE));
43275 PyDict_SetItemString(d,"WXK_NUMPAD_TAB", SWIG_From_int((int)WXK_NUMPAD_TAB));
43276 PyDict_SetItemString(d,"WXK_NUMPAD_ENTER", SWIG_From_int((int)WXK_NUMPAD_ENTER));
43277 PyDict_SetItemString(d,"WXK_NUMPAD_F1", SWIG_From_int((int)WXK_NUMPAD_F1));
43278 PyDict_SetItemString(d,"WXK_NUMPAD_F2", SWIG_From_int((int)WXK_NUMPAD_F2));
43279 PyDict_SetItemString(d,"WXK_NUMPAD_F3", SWIG_From_int((int)WXK_NUMPAD_F3));
43280 PyDict_SetItemString(d,"WXK_NUMPAD_F4", SWIG_From_int((int)WXK_NUMPAD_F4));
43281 PyDict_SetItemString(d,"WXK_NUMPAD_HOME", SWIG_From_int((int)WXK_NUMPAD_HOME));
43282 PyDict_SetItemString(d,"WXK_NUMPAD_LEFT", SWIG_From_int((int)WXK_NUMPAD_LEFT));
43283 PyDict_SetItemString(d,"WXK_NUMPAD_UP", SWIG_From_int((int)WXK_NUMPAD_UP));
43284 PyDict_SetItemString(d,"WXK_NUMPAD_RIGHT", SWIG_From_int((int)WXK_NUMPAD_RIGHT));
43285 PyDict_SetItemString(d,"WXK_NUMPAD_DOWN", SWIG_From_int((int)WXK_NUMPAD_DOWN));
43286 PyDict_SetItemString(d,"WXK_NUMPAD_PRIOR", SWIG_From_int((int)WXK_NUMPAD_PRIOR));
43287 PyDict_SetItemString(d,"WXK_NUMPAD_PAGEUP", SWIG_From_int((int)WXK_NUMPAD_PAGEUP));
43288 PyDict_SetItemString(d,"WXK_NUMPAD_NEXT", SWIG_From_int((int)WXK_NUMPAD_NEXT));
43289 PyDict_SetItemString(d,"WXK_NUMPAD_PAGEDOWN", SWIG_From_int((int)WXK_NUMPAD_PAGEDOWN));
43290 PyDict_SetItemString(d,"WXK_NUMPAD_END", SWIG_From_int((int)WXK_NUMPAD_END));
43291 PyDict_SetItemString(d,"WXK_NUMPAD_BEGIN", SWIG_From_int((int)WXK_NUMPAD_BEGIN));
43292 PyDict_SetItemString(d,"WXK_NUMPAD_INSERT", SWIG_From_int((int)WXK_NUMPAD_INSERT));
43293 PyDict_SetItemString(d,"WXK_NUMPAD_DELETE", SWIG_From_int((int)WXK_NUMPAD_DELETE));
43294 PyDict_SetItemString(d,"WXK_NUMPAD_EQUAL", SWIG_From_int((int)WXK_NUMPAD_EQUAL));
43295 PyDict_SetItemString(d,"WXK_NUMPAD_MULTIPLY", SWIG_From_int((int)WXK_NUMPAD_MULTIPLY));
43296 PyDict_SetItemString(d,"WXK_NUMPAD_ADD", SWIG_From_int((int)WXK_NUMPAD_ADD));
43297 PyDict_SetItemString(d,"WXK_NUMPAD_SEPARATOR", SWIG_From_int((int)WXK_NUMPAD_SEPARATOR));
43298 PyDict_SetItemString(d,"WXK_NUMPAD_SUBTRACT", SWIG_From_int((int)WXK_NUMPAD_SUBTRACT));
43299 PyDict_SetItemString(d,"WXK_NUMPAD_DECIMAL", SWIG_From_int((int)WXK_NUMPAD_DECIMAL));
43300 PyDict_SetItemString(d,"WXK_NUMPAD_DIVIDE", SWIG_From_int((int)WXK_NUMPAD_DIVIDE));
43301 PyDict_SetItemString(d,"WXK_WINDOWS_LEFT", SWIG_From_int((int)WXK_WINDOWS_LEFT));
43302 PyDict_SetItemString(d,"WXK_WINDOWS_RIGHT", SWIG_From_int((int)WXK_WINDOWS_RIGHT));
43303 PyDict_SetItemString(d,"WXK_WINDOWS_MENU", SWIG_From_int((int)WXK_WINDOWS_MENU));
43304 PyDict_SetItemString(d,"PAPER_NONE", SWIG_From_int((int)wxPAPER_NONE));
43305 PyDict_SetItemString(d,"PAPER_LETTER", SWIG_From_int((int)wxPAPER_LETTER));
43306 PyDict_SetItemString(d,"PAPER_LEGAL", SWIG_From_int((int)wxPAPER_LEGAL));
43307 PyDict_SetItemString(d,"PAPER_A4", SWIG_From_int((int)wxPAPER_A4));
43308 PyDict_SetItemString(d,"PAPER_CSHEET", SWIG_From_int((int)wxPAPER_CSHEET));
43309 PyDict_SetItemString(d,"PAPER_DSHEET", SWIG_From_int((int)wxPAPER_DSHEET));
43310 PyDict_SetItemString(d,"PAPER_ESHEET", SWIG_From_int((int)wxPAPER_ESHEET));
43311 PyDict_SetItemString(d,"PAPER_LETTERSMALL", SWIG_From_int((int)wxPAPER_LETTERSMALL));
43312 PyDict_SetItemString(d,"PAPER_TABLOID", SWIG_From_int((int)wxPAPER_TABLOID));
43313 PyDict_SetItemString(d,"PAPER_LEDGER", SWIG_From_int((int)wxPAPER_LEDGER));
43314 PyDict_SetItemString(d,"PAPER_STATEMENT", SWIG_From_int((int)wxPAPER_STATEMENT));
43315 PyDict_SetItemString(d,"PAPER_EXECUTIVE", SWIG_From_int((int)wxPAPER_EXECUTIVE));
43316 PyDict_SetItemString(d,"PAPER_A3", SWIG_From_int((int)wxPAPER_A3));
43317 PyDict_SetItemString(d,"PAPER_A4SMALL", SWIG_From_int((int)wxPAPER_A4SMALL));
43318 PyDict_SetItemString(d,"PAPER_A5", SWIG_From_int((int)wxPAPER_A5));
43319 PyDict_SetItemString(d,"PAPER_B4", SWIG_From_int((int)wxPAPER_B4));
43320 PyDict_SetItemString(d,"PAPER_B5", SWIG_From_int((int)wxPAPER_B5));
43321 PyDict_SetItemString(d,"PAPER_FOLIO", SWIG_From_int((int)wxPAPER_FOLIO));
43322 PyDict_SetItemString(d,"PAPER_QUARTO", SWIG_From_int((int)wxPAPER_QUARTO));
43323 PyDict_SetItemString(d,"PAPER_10X14", SWIG_From_int((int)wxPAPER_10X14));
43324 PyDict_SetItemString(d,"PAPER_11X17", SWIG_From_int((int)wxPAPER_11X17));
43325 PyDict_SetItemString(d,"PAPER_NOTE", SWIG_From_int((int)wxPAPER_NOTE));
43326 PyDict_SetItemString(d,"PAPER_ENV_9", SWIG_From_int((int)wxPAPER_ENV_9));
43327 PyDict_SetItemString(d,"PAPER_ENV_10", SWIG_From_int((int)wxPAPER_ENV_10));
43328 PyDict_SetItemString(d,"PAPER_ENV_11", SWIG_From_int((int)wxPAPER_ENV_11));
43329 PyDict_SetItemString(d,"PAPER_ENV_12", SWIG_From_int((int)wxPAPER_ENV_12));
43330 PyDict_SetItemString(d,"PAPER_ENV_14", SWIG_From_int((int)wxPAPER_ENV_14));
43331 PyDict_SetItemString(d,"PAPER_ENV_DL", SWIG_From_int((int)wxPAPER_ENV_DL));
43332 PyDict_SetItemString(d,"PAPER_ENV_C5", SWIG_From_int((int)wxPAPER_ENV_C5));
43333 PyDict_SetItemString(d,"PAPER_ENV_C3", SWIG_From_int((int)wxPAPER_ENV_C3));
43334 PyDict_SetItemString(d,"PAPER_ENV_C4", SWIG_From_int((int)wxPAPER_ENV_C4));
43335 PyDict_SetItemString(d,"PAPER_ENV_C6", SWIG_From_int((int)wxPAPER_ENV_C6));
43336 PyDict_SetItemString(d,"PAPER_ENV_C65", SWIG_From_int((int)wxPAPER_ENV_C65));
43337 PyDict_SetItemString(d,"PAPER_ENV_B4", SWIG_From_int((int)wxPAPER_ENV_B4));
43338 PyDict_SetItemString(d,"PAPER_ENV_B5", SWIG_From_int((int)wxPAPER_ENV_B5));
43339 PyDict_SetItemString(d,"PAPER_ENV_B6", SWIG_From_int((int)wxPAPER_ENV_B6));
43340 PyDict_SetItemString(d,"PAPER_ENV_ITALY", SWIG_From_int((int)wxPAPER_ENV_ITALY));
43341 PyDict_SetItemString(d,"PAPER_ENV_MONARCH", SWIG_From_int((int)wxPAPER_ENV_MONARCH));
43342 PyDict_SetItemString(d,"PAPER_ENV_PERSONAL", SWIG_From_int((int)wxPAPER_ENV_PERSONAL));
43343 PyDict_SetItemString(d,"PAPER_FANFOLD_US", SWIG_From_int((int)wxPAPER_FANFOLD_US));
43344 PyDict_SetItemString(d,"PAPER_FANFOLD_STD_GERMAN", SWIG_From_int((int)wxPAPER_FANFOLD_STD_GERMAN));
43345 PyDict_SetItemString(d,"PAPER_FANFOLD_LGL_GERMAN", SWIG_From_int((int)wxPAPER_FANFOLD_LGL_GERMAN));
43346 PyDict_SetItemString(d,"PAPER_ISO_B4", SWIG_From_int((int)wxPAPER_ISO_B4));
43347 PyDict_SetItemString(d,"PAPER_JAPANESE_POSTCARD", SWIG_From_int((int)wxPAPER_JAPANESE_POSTCARD));
43348 PyDict_SetItemString(d,"PAPER_9X11", SWIG_From_int((int)wxPAPER_9X11));
43349 PyDict_SetItemString(d,"PAPER_10X11", SWIG_From_int((int)wxPAPER_10X11));
43350 PyDict_SetItemString(d,"PAPER_15X11", SWIG_From_int((int)wxPAPER_15X11));
43351 PyDict_SetItemString(d,"PAPER_ENV_INVITE", SWIG_From_int((int)wxPAPER_ENV_INVITE));
43352 PyDict_SetItemString(d,"PAPER_LETTER_EXTRA", SWIG_From_int((int)wxPAPER_LETTER_EXTRA));
43353 PyDict_SetItemString(d,"PAPER_LEGAL_EXTRA", SWIG_From_int((int)wxPAPER_LEGAL_EXTRA));
43354 PyDict_SetItemString(d,"PAPER_TABLOID_EXTRA", SWIG_From_int((int)wxPAPER_TABLOID_EXTRA));
43355 PyDict_SetItemString(d,"PAPER_A4_EXTRA", SWIG_From_int((int)wxPAPER_A4_EXTRA));
43356 PyDict_SetItemString(d,"PAPER_LETTER_TRANSVERSE", SWIG_From_int((int)wxPAPER_LETTER_TRANSVERSE));
43357 PyDict_SetItemString(d,"PAPER_A4_TRANSVERSE", SWIG_From_int((int)wxPAPER_A4_TRANSVERSE));
43358 PyDict_SetItemString(d,"PAPER_LETTER_EXTRA_TRANSVERSE", SWIG_From_int((int)wxPAPER_LETTER_EXTRA_TRANSVERSE));
43359 PyDict_SetItemString(d,"PAPER_A_PLUS", SWIG_From_int((int)wxPAPER_A_PLUS));
43360 PyDict_SetItemString(d,"PAPER_B_PLUS", SWIG_From_int((int)wxPAPER_B_PLUS));
43361 PyDict_SetItemString(d,"PAPER_LETTER_PLUS", SWIG_From_int((int)wxPAPER_LETTER_PLUS));
43362 PyDict_SetItemString(d,"PAPER_A4_PLUS", SWIG_From_int((int)wxPAPER_A4_PLUS));
43363 PyDict_SetItemString(d,"PAPER_A5_TRANSVERSE", SWIG_From_int((int)wxPAPER_A5_TRANSVERSE));
43364 PyDict_SetItemString(d,"PAPER_B5_TRANSVERSE", SWIG_From_int((int)wxPAPER_B5_TRANSVERSE));
43365 PyDict_SetItemString(d,"PAPER_A3_EXTRA", SWIG_From_int((int)wxPAPER_A3_EXTRA));
43366 PyDict_SetItemString(d,"PAPER_A5_EXTRA", SWIG_From_int((int)wxPAPER_A5_EXTRA));
43367 PyDict_SetItemString(d,"PAPER_B5_EXTRA", SWIG_From_int((int)wxPAPER_B5_EXTRA));
43368 PyDict_SetItemString(d,"PAPER_A2", SWIG_From_int((int)wxPAPER_A2));
43369 PyDict_SetItemString(d,"PAPER_A3_TRANSVERSE", SWIG_From_int((int)wxPAPER_A3_TRANSVERSE));
43370 PyDict_SetItemString(d,"PAPER_A3_EXTRA_TRANSVERSE", SWIG_From_int((int)wxPAPER_A3_EXTRA_TRANSVERSE));
43371 PyDict_SetItemString(d,"DUPLEX_SIMPLEX", SWIG_From_int((int)wxDUPLEX_SIMPLEX));
43372 PyDict_SetItemString(d,"DUPLEX_HORIZONTAL", SWIG_From_int((int)wxDUPLEX_HORIZONTAL));
43373 PyDict_SetItemString(d,"DUPLEX_VERTICAL", SWIG_From_int((int)wxDUPLEX_VERTICAL));
43374 PyDict_SetItemString(d,"ITEM_SEPARATOR", SWIG_From_int((int)wxITEM_SEPARATOR));
43375 PyDict_SetItemString(d,"ITEM_NORMAL", SWIG_From_int((int)wxITEM_NORMAL));
43376 PyDict_SetItemString(d,"ITEM_CHECK", SWIG_From_int((int)wxITEM_CHECK));
43377 PyDict_SetItemString(d,"ITEM_RADIO", SWIG_From_int((int)wxITEM_RADIO));
43378 PyDict_SetItemString(d,"ITEM_MAX", SWIG_From_int((int)wxITEM_MAX));
43379 PyDict_SetItemString(d,"HT_NOWHERE", SWIG_From_int((int)wxHT_NOWHERE));
43380 PyDict_SetItemString(d,"HT_SCROLLBAR_FIRST", SWIG_From_int((int)wxHT_SCROLLBAR_FIRST));
43381 PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_1", SWIG_From_int((int)wxHT_SCROLLBAR_ARROW_LINE_1));
43382 PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_2", SWIG_From_int((int)wxHT_SCROLLBAR_ARROW_LINE_2));
43383 PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_1", SWIG_From_int((int)wxHT_SCROLLBAR_ARROW_PAGE_1));
43384 PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_2", SWIG_From_int((int)wxHT_SCROLLBAR_ARROW_PAGE_2));
43385 PyDict_SetItemString(d,"HT_SCROLLBAR_THUMB", SWIG_From_int((int)wxHT_SCROLLBAR_THUMB));
43386 PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_1", SWIG_From_int((int)wxHT_SCROLLBAR_BAR_1));
43387 PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_2", SWIG_From_int((int)wxHT_SCROLLBAR_BAR_2));
43388 PyDict_SetItemString(d,"HT_SCROLLBAR_LAST", SWIG_From_int((int)wxHT_SCROLLBAR_LAST));
43389 PyDict_SetItemString(d,"HT_WINDOW_OUTSIDE", SWIG_From_int((int)wxHT_WINDOW_OUTSIDE));
43390 PyDict_SetItemString(d,"HT_WINDOW_INSIDE", SWIG_From_int((int)wxHT_WINDOW_INSIDE));
43391 PyDict_SetItemString(d,"HT_WINDOW_VERT_SCROLLBAR", SWIG_From_int((int)wxHT_WINDOW_VERT_SCROLLBAR));
43392 PyDict_SetItemString(d,"HT_WINDOW_HORZ_SCROLLBAR", SWIG_From_int((int)wxHT_WINDOW_HORZ_SCROLLBAR));
43393 PyDict_SetItemString(d,"HT_WINDOW_CORNER", SWIG_From_int((int)wxHT_WINDOW_CORNER));
43394 PyDict_SetItemString(d,"HT_MAX", SWIG_From_int((int)wxHT_MAX));
43395 PyDict_SetItemString(d,"MOD_NONE", SWIG_From_int((int)wxMOD_NONE));
43396 PyDict_SetItemString(d,"MOD_ALT", SWIG_From_int((int)wxMOD_ALT));
43397 PyDict_SetItemString(d,"MOD_CONTROL", SWIG_From_int((int)wxMOD_CONTROL));
43398 PyDict_SetItemString(d,"MOD_SHIFT", SWIG_From_int((int)wxMOD_SHIFT));
43399 PyDict_SetItemString(d,"MOD_WIN", SWIG_From_int((int)wxMOD_WIN));
43400 PyDict_SetItemString(d,"UPDATE_UI_NONE", SWIG_From_int((int)wxUPDATE_UI_NONE));
43401 PyDict_SetItemString(d,"UPDATE_UI_RECURSE", SWIG_From_int((int)wxUPDATE_UI_RECURSE));
43402 PyDict_SetItemString(d,"UPDATE_UI_FROMIDLE", SWIG_From_int((int)wxUPDATE_UI_FROMIDLE));
d55e5bfc
RD
43403 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
43404 SWIG_addvarlink(SWIG_globals,(char*)"EmptyString",_wrap_EmptyString_get, _wrap_EmptyString_set);
c32bde28
RD
43405 PyDict_SetItemString(d,"BITMAP_TYPE_INVALID", SWIG_From_int((int)wxBITMAP_TYPE_INVALID));
43406 PyDict_SetItemString(d,"BITMAP_TYPE_BMP", SWIG_From_int((int)wxBITMAP_TYPE_BMP));
43407 PyDict_SetItemString(d,"BITMAP_TYPE_ICO", SWIG_From_int((int)wxBITMAP_TYPE_ICO));
43408 PyDict_SetItemString(d,"BITMAP_TYPE_CUR", SWIG_From_int((int)wxBITMAP_TYPE_CUR));
43409 PyDict_SetItemString(d,"BITMAP_TYPE_XBM", SWIG_From_int((int)wxBITMAP_TYPE_XBM));
43410 PyDict_SetItemString(d,"BITMAP_TYPE_XBM_DATA", SWIG_From_int((int)wxBITMAP_TYPE_XBM_DATA));
43411 PyDict_SetItemString(d,"BITMAP_TYPE_XPM", SWIG_From_int((int)wxBITMAP_TYPE_XPM));
43412 PyDict_SetItemString(d,"BITMAP_TYPE_XPM_DATA", SWIG_From_int((int)wxBITMAP_TYPE_XPM_DATA));
43413 PyDict_SetItemString(d,"BITMAP_TYPE_TIF", SWIG_From_int((int)wxBITMAP_TYPE_TIF));
43414 PyDict_SetItemString(d,"BITMAP_TYPE_GIF", SWIG_From_int((int)wxBITMAP_TYPE_GIF));
43415 PyDict_SetItemString(d,"BITMAP_TYPE_PNG", SWIG_From_int((int)wxBITMAP_TYPE_PNG));
43416 PyDict_SetItemString(d,"BITMAP_TYPE_JPEG", SWIG_From_int((int)wxBITMAP_TYPE_JPEG));
43417 PyDict_SetItemString(d,"BITMAP_TYPE_PNM", SWIG_From_int((int)wxBITMAP_TYPE_PNM));
43418 PyDict_SetItemString(d,"BITMAP_TYPE_PCX", SWIG_From_int((int)wxBITMAP_TYPE_PCX));
43419 PyDict_SetItemString(d,"BITMAP_TYPE_PICT", SWIG_From_int((int)wxBITMAP_TYPE_PICT));
43420 PyDict_SetItemString(d,"BITMAP_TYPE_ICON", SWIG_From_int((int)wxBITMAP_TYPE_ICON));
43421 PyDict_SetItemString(d,"BITMAP_TYPE_ANI", SWIG_From_int((int)wxBITMAP_TYPE_ANI));
43422 PyDict_SetItemString(d,"BITMAP_TYPE_IFF", SWIG_From_int((int)wxBITMAP_TYPE_IFF));
43423 PyDict_SetItemString(d,"BITMAP_TYPE_MACCURSOR", SWIG_From_int((int)wxBITMAP_TYPE_MACCURSOR));
43424 PyDict_SetItemString(d,"BITMAP_TYPE_ANY", SWIG_From_int((int)wxBITMAP_TYPE_ANY));
43425 PyDict_SetItemString(d,"CURSOR_NONE", SWIG_From_int((int)wxCURSOR_NONE));
43426 PyDict_SetItemString(d,"CURSOR_ARROW", SWIG_From_int((int)wxCURSOR_ARROW));
43427 PyDict_SetItemString(d,"CURSOR_RIGHT_ARROW", SWIG_From_int((int)wxCURSOR_RIGHT_ARROW));
43428 PyDict_SetItemString(d,"CURSOR_BULLSEYE", SWIG_From_int((int)wxCURSOR_BULLSEYE));
43429 PyDict_SetItemString(d,"CURSOR_CHAR", SWIG_From_int((int)wxCURSOR_CHAR));
43430 PyDict_SetItemString(d,"CURSOR_CROSS", SWIG_From_int((int)wxCURSOR_CROSS));
43431 PyDict_SetItemString(d,"CURSOR_HAND", SWIG_From_int((int)wxCURSOR_HAND));
43432 PyDict_SetItemString(d,"CURSOR_IBEAM", SWIG_From_int((int)wxCURSOR_IBEAM));
43433 PyDict_SetItemString(d,"CURSOR_LEFT_BUTTON", SWIG_From_int((int)wxCURSOR_LEFT_BUTTON));
43434 PyDict_SetItemString(d,"CURSOR_MAGNIFIER", SWIG_From_int((int)wxCURSOR_MAGNIFIER));
43435 PyDict_SetItemString(d,"CURSOR_MIDDLE_BUTTON", SWIG_From_int((int)wxCURSOR_MIDDLE_BUTTON));
43436 PyDict_SetItemString(d,"CURSOR_NO_ENTRY", SWIG_From_int((int)wxCURSOR_NO_ENTRY));
43437 PyDict_SetItemString(d,"CURSOR_PAINT_BRUSH", SWIG_From_int((int)wxCURSOR_PAINT_BRUSH));
43438 PyDict_SetItemString(d,"CURSOR_PENCIL", SWIG_From_int((int)wxCURSOR_PENCIL));
43439 PyDict_SetItemString(d,"CURSOR_POINT_LEFT", SWIG_From_int((int)wxCURSOR_POINT_LEFT));
43440 PyDict_SetItemString(d,"CURSOR_POINT_RIGHT", SWIG_From_int((int)wxCURSOR_POINT_RIGHT));
43441 PyDict_SetItemString(d,"CURSOR_QUESTION_ARROW", SWIG_From_int((int)wxCURSOR_QUESTION_ARROW));
43442 PyDict_SetItemString(d,"CURSOR_RIGHT_BUTTON", SWIG_From_int((int)wxCURSOR_RIGHT_BUTTON));
43443 PyDict_SetItemString(d,"CURSOR_SIZENESW", SWIG_From_int((int)wxCURSOR_SIZENESW));
43444 PyDict_SetItemString(d,"CURSOR_SIZENS", SWIG_From_int((int)wxCURSOR_SIZENS));
43445 PyDict_SetItemString(d,"CURSOR_SIZENWSE", SWIG_From_int((int)wxCURSOR_SIZENWSE));
43446 PyDict_SetItemString(d,"CURSOR_SIZEWE", SWIG_From_int((int)wxCURSOR_SIZEWE));
43447 PyDict_SetItemString(d,"CURSOR_SIZING", SWIG_From_int((int)wxCURSOR_SIZING));
43448 PyDict_SetItemString(d,"CURSOR_SPRAYCAN", SWIG_From_int((int)wxCURSOR_SPRAYCAN));
43449 PyDict_SetItemString(d,"CURSOR_WAIT", SWIG_From_int((int)wxCURSOR_WAIT));
43450 PyDict_SetItemString(d,"CURSOR_WATCH", SWIG_From_int((int)wxCURSOR_WATCH));
43451 PyDict_SetItemString(d,"CURSOR_BLANK", SWIG_From_int((int)wxCURSOR_BLANK));
43452 PyDict_SetItemString(d,"CURSOR_DEFAULT", SWIG_From_int((int)wxCURSOR_DEFAULT));
43453 PyDict_SetItemString(d,"CURSOR_COPY_ARROW", SWIG_From_int((int)wxCURSOR_COPY_ARROW));
43454 PyDict_SetItemString(d,"CURSOR_ARROWWAIT", SWIG_From_int((int)wxCURSOR_ARROWWAIT));
43455 PyDict_SetItemString(d,"CURSOR_MAX", SWIG_From_int((int)wxCURSOR_MAX));
d55e5bfc
RD
43456 SWIG_addvarlink(SWIG_globals,(char*)"DefaultPosition",_wrap_DefaultPosition_get, _wrap_DefaultPosition_set);
43457 SWIG_addvarlink(SWIG_globals,(char*)"DefaultSize",_wrap_DefaultSize_get, _wrap_DefaultSize_set);
c32bde28
RD
43458 PyDict_SetItemString(d,"FromStart", SWIG_From_int((int)wxFromStart));
43459 PyDict_SetItemString(d,"FromCurrent", SWIG_From_int((int)wxFromCurrent));
43460 PyDict_SetItemString(d,"FromEnd", SWIG_From_int((int)wxFromEnd));
d55e5bfc
RD
43461
43462 wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream");
43463
43464
43465 wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler");
43466
43467 SWIG_addvarlink(SWIG_globals,(char*)"NullImage",_wrap_NullImage_get, _wrap_NullImage_set);
43468 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BMP_FORMAT",_wrap_IMAGE_OPTION_BMP_FORMAT_get, _wrap_IMAGE_OPTION_BMP_FORMAT_set);
43469 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set);
43470 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set);
43471 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTION",_wrap_IMAGE_OPTION_RESOLUTION_get, _wrap_IMAGE_OPTION_RESOLUTION_set);
43472 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONUNIT",_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get, _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set);
c32bde28
RD
43473 PyDict_SetItemString(d,"IMAGE_RESOLUTION_INCHES", SWIG_From_int((int)wxIMAGE_RESOLUTION_INCHES));
43474 PyDict_SetItemString(d,"IMAGE_RESOLUTION_CM", SWIG_From_int((int)wxIMAGE_RESOLUTION_CM));
43475 PyDict_SetItemString(d,"BMP_24BPP", SWIG_From_int((int)wxBMP_24BPP));
43476 PyDict_SetItemString(d,"BMP_8BPP", SWIG_From_int((int)wxBMP_8BPP));
43477 PyDict_SetItemString(d,"BMP_8BPP_GREY", SWIG_From_int((int)wxBMP_8BPP_GREY));
43478 PyDict_SetItemString(d,"BMP_8BPP_GRAY", SWIG_From_int((int)wxBMP_8BPP_GRAY));
43479 PyDict_SetItemString(d,"BMP_8BPP_RED", SWIG_From_int((int)wxBMP_8BPP_RED));
43480 PyDict_SetItemString(d,"BMP_8BPP_PALETTE", SWIG_From_int((int)wxBMP_8BPP_PALETTE));
43481 PyDict_SetItemString(d,"BMP_4BPP", SWIG_From_int((int)wxBMP_4BPP));
43482 PyDict_SetItemString(d,"BMP_1BPP", SWIG_From_int((int)wxBMP_1BPP));
43483 PyDict_SetItemString(d,"BMP_1BPP_BW", SWIG_From_int((int)wxBMP_1BPP_BW));
43484 PyDict_SetItemString(d,"QUANTIZE_INCLUDE_WINDOWS_COLOURS", SWIG_From_int((int)wxQUANTIZE_INCLUDE_WINDOWS_COLOURS));
43485 PyDict_SetItemString(d,"QUANTIZE_FILL_DESTINATION_IMAGE", SWIG_From_int((int)wxQUANTIZE_FILL_DESTINATION_IMAGE));
43486 PyDict_SetItemString(d,"EVENT_PROPAGATE_NONE", SWIG_From_int((int)wxEVENT_PROPAGATE_NONE));
43487 PyDict_SetItemString(d,"EVENT_PROPAGATE_MAX", SWIG_From_int((int)wxEVENT_PROPAGATE_MAX));
d55e5bfc
RD
43488 PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL));
43489 PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST));
43490 PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST));
43491 PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED));
43492 PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED));
43493 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED));
43494 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED));
43495 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED));
43496 PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED));
43497 PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED));
43498 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED));
43499 PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED));
43500 PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED));
43501 PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED));
43502 PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED));
43503 PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED));
43504 PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED));
43505 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED));
43506 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER));
43507 PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN));
43508 PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP));
43509 PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN));
43510 PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP));
43511 PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN));
43512 PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP));
43513 PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION));
43514 PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW));
43515 PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW));
43516 PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK));
43517 PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK));
43518 PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK));
43519 PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS));
43520 PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS));
43521 PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS));
43522 PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL));
43523 PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN));
43524 PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP));
43525 PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN));
43526 PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP));
43527 PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN));
43528 PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP));
43529 PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION));
43530 PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW));
43531 PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW));
43532 PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK));
43533 PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK));
43534 PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK));
43535 PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR));
43536 PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK));
43537 PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY));
43538 PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN));
43539 PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP));
43540 PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY));
43541 PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR));
43542 PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP));
43543 PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM));
43544 PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP));
43545 PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN));
43546 PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP));
43547 PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN));
43548 PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK));
43549 PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE));
43550 PyDict_SetItemString(d, "wxEVT_SCROLL_ENDSCROLL", PyInt_FromLong(wxEVT_SCROLL_ENDSCROLL));
43551 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP));
43552 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM));
43553 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP));
43554 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN));
43555 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP));
43556 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN));
43557 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK));
43558 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE));
43559 PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE));
43560 PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE));
43561 PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW));
43562 PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION));
43563 PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION));
43564 PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP));
43565 PyDict_SetItemString(d, "wxEVT_POWER", PyInt_FromLong(wxEVT_POWER));
43566 PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE));
43567 PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE));
43568 PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY));
43569 PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW));
43570 PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE));
43571 PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE));
43572 PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED));
43573 PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT));
43574 PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND));
43575 PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT));
43576 PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON));
43577 PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN));
43578 PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE));
43579 PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT));
43580 PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU));
43581 PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED));
43582 PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED));
43583 PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED));
43584 PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE));
43585 PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED));
43586 PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES));
43587 PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM));
43588 PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM));
43589 PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM));
43590 PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG));
43591 PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE));
43592 PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI));
43593 PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING));
43594 PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING));
43595 PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK));
43596 PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK));
43597 PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK));
43598 PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK));
43599 PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS));
43600 PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS));
43601 PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER));
c32bde28
RD
43602 PyDict_SetItemString(d,"MOUSE_BTN_ANY", SWIG_From_int((int)wxMOUSE_BTN_ANY));
43603 PyDict_SetItemString(d,"MOUSE_BTN_NONE", SWIG_From_int((int)wxMOUSE_BTN_NONE));
43604 PyDict_SetItemString(d,"MOUSE_BTN_LEFT", SWIG_From_int((int)wxMOUSE_BTN_LEFT));
43605 PyDict_SetItemString(d,"MOUSE_BTN_MIDDLE", SWIG_From_int((int)wxMOUSE_BTN_MIDDLE));
43606 PyDict_SetItemString(d,"MOUSE_BTN_RIGHT", SWIG_From_int((int)wxMOUSE_BTN_RIGHT));
43607 PyDict_SetItemString(d,"UPDATE_UI_PROCESS_ALL", SWIG_From_int((int)wxUPDATE_UI_PROCESS_ALL));
43608 PyDict_SetItemString(d,"UPDATE_UI_PROCESS_SPECIFIED", SWIG_From_int((int)wxUPDATE_UI_PROCESS_SPECIFIED));
43609 PyDict_SetItemString(d,"NavigationKeyEvent_IsBackward", SWIG_From_int((int)wxNavigationKeyEvent::IsBackward));
43610 PyDict_SetItemString(d,"NavigationKeyEvent_IsForward", SWIG_From_int((int)wxNavigationKeyEvent::IsForward));
43611 PyDict_SetItemString(d,"NavigationKeyEvent_WinChange", SWIG_From_int((int)wxNavigationKeyEvent::WinChange));
43612 PyDict_SetItemString(d,"IDLE_PROCESS_ALL", SWIG_From_int((int)wxIDLE_PROCESS_ALL));
43613 PyDict_SetItemString(d,"IDLE_PROCESS_SPECIFIED", SWIG_From_int((int)wxIDLE_PROCESS_SPECIFIED));
43614 PyDict_SetItemString(d,"PYAPP_ASSERT_SUPPRESS", SWIG_From_int((int)wxPYAPP_ASSERT_SUPPRESS));
43615 PyDict_SetItemString(d,"PYAPP_ASSERT_EXCEPTION", SWIG_From_int((int)wxPYAPP_ASSERT_EXCEPTION));
43616 PyDict_SetItemString(d,"PYAPP_ASSERT_DIALOG", SWIG_From_int((int)wxPYAPP_ASSERT_DIALOG));
43617 PyDict_SetItemString(d,"PYAPP_ASSERT_LOG", SWIG_From_int((int)wxPYAPP_ASSERT_LOG));
43618 PyDict_SetItemString(d,"PRINT_WINDOWS", SWIG_From_int((int)wxPRINT_WINDOWS));
43619 PyDict_SetItemString(d,"PRINT_POSTSCRIPT", SWIG_From_int((int)wxPRINT_POSTSCRIPT));
d55e5bfc
RD
43620 SWIG_addvarlink(SWIG_globals,(char*)"NullAcceleratorTable",_wrap_NullAcceleratorTable_get, _wrap_NullAcceleratorTable_set);
43621 SWIG_addvarlink(SWIG_globals,(char*)"PanelNameStr",_wrap_PanelNameStr_get, _wrap_PanelNameStr_set);
c32bde28
RD
43622 PyDict_SetItemString(d,"WINDOW_VARIANT_NORMAL", SWIG_From_int((int)wxWINDOW_VARIANT_NORMAL));
43623 PyDict_SetItemString(d,"WINDOW_VARIANT_SMALL", SWIG_From_int((int)wxWINDOW_VARIANT_SMALL));
43624 PyDict_SetItemString(d,"WINDOW_VARIANT_MINI", SWIG_From_int((int)wxWINDOW_VARIANT_MINI));
43625 PyDict_SetItemString(d,"WINDOW_VARIANT_LARGE", SWIG_From_int((int)wxWINDOW_VARIANT_LARGE));
43626 PyDict_SetItemString(d,"WINDOW_VARIANT_MAX", SWIG_From_int((int)wxWINDOW_VARIANT_MAX));
d55e5bfc
RD
43627 SWIG_addvarlink(SWIG_globals,(char*)"DefaultValidator",_wrap_DefaultValidator_get, _wrap_DefaultValidator_set);
43628 SWIG_addvarlink(SWIG_globals,(char*)"ControlNameStr",_wrap_ControlNameStr_get, _wrap_ControlNameStr_set);
c32bde28
RD
43629 PyDict_SetItemString(d,"FLEX_GROWMODE_NONE", SWIG_From_int((int)wxFLEX_GROWMODE_NONE));
43630 PyDict_SetItemString(d,"FLEX_GROWMODE_SPECIFIED", SWIG_From_int((int)wxFLEX_GROWMODE_SPECIFIED));
43631 PyDict_SetItemString(d,"FLEX_GROWMODE_ALL", SWIG_From_int((int)wxFLEX_GROWMODE_ALL));
d55e5bfc 43632 SWIG_addvarlink(SWIG_globals,(char*)"DefaultSpan",_wrap_DefaultSpan_get, _wrap_DefaultSpan_set);
c32bde28
RD
43633 PyDict_SetItemString(d,"Left", SWIG_From_int((int)wxLeft));
43634 PyDict_SetItemString(d,"Top", SWIG_From_int((int)wxTop));
43635 PyDict_SetItemString(d,"Right", SWIG_From_int((int)wxRight));
43636 PyDict_SetItemString(d,"Bottom", SWIG_From_int((int)wxBottom));
43637 PyDict_SetItemString(d,"Width", SWIG_From_int((int)wxWidth));
43638 PyDict_SetItemString(d,"Height", SWIG_From_int((int)wxHeight));
43639 PyDict_SetItemString(d,"Centre", SWIG_From_int((int)wxCentre));
43640 PyDict_SetItemString(d,"Center", SWIG_From_int((int)wxCenter));
43641 PyDict_SetItemString(d,"CentreX", SWIG_From_int((int)wxCentreX));
43642 PyDict_SetItemString(d,"CentreY", SWIG_From_int((int)wxCentreY));
43643 PyDict_SetItemString(d,"Unconstrained", SWIG_From_int((int)wxUnconstrained));
43644 PyDict_SetItemString(d,"AsIs", SWIG_From_int((int)wxAsIs));
43645 PyDict_SetItemString(d,"PercentOf", SWIG_From_int((int)wxPercentOf));
43646 PyDict_SetItemString(d,"Above", SWIG_From_int((int)wxAbove));
43647 PyDict_SetItemString(d,"Below", SWIG_From_int((int)wxBelow));
43648 PyDict_SetItemString(d,"LeftOf", SWIG_From_int((int)wxLeftOf));
43649 PyDict_SetItemString(d,"RightOf", SWIG_From_int((int)wxRightOf));
43650 PyDict_SetItemString(d,"SameAs", SWIG_From_int((int)wxSameAs));
43651 PyDict_SetItemString(d,"Absolute", SWIG_From_int((int)wxAbsolute));
d55e5bfc
RD
43652
43653 // Initialize threading, some globals and such
43654 __wxPyPreStart(d);
43655
43656
43657 // Although these are defined in __version__ they need to be here too so
43658 // that an assert can be done to ensure that the wxPython and the wxWindows
43659 // versions match.
43660 PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION ));
43661 PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION ));
43662 PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER ));
43663
43664}
43665