]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/core_wrap.cpp
Add some ownerdraw methods to ListBox for MSW
[wxWidgets.git] / wxPython / src / msw / core_wrap.cpp
CommitLineData
d14a1e28
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
83448d71 3 * Version 1.3.22
d14a1e28
RD
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
12#define SWIG_NOINCLUDE
13
14#ifdef __cplusplus
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
46#define SWIG_TypeQuery SWIG_Python_TypeQuery
47#define SWIG_TypeClientData SWIG_Python_TypeClientData
9fd4be55
RD
48#define SWIG_PackData SWIG_Python_PackData
49#define SWIG_UnpackData SWIG_Python_UnpackData
50
d14a1e28
RD
51
52/***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62#include <string.h>
63
f0983263
RD
64#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65# if defined(_MSC_VER) || defined(__GNUC__)
66# if defined(STATIC_LINKED)
67# define SWIGEXPORT(a) a
68# define SWIGIMPORT(a) extern a
69# else
70# define SWIGEXPORT(a) __declspec(dllexport) a
71# define SWIGIMPORT(a) extern a
72# endif
73# else
74# if defined(__BORLANDC__)
75# define SWIGEXPORT(a) a _export
76# define SWIGIMPORT(a) a _export
77# else
78# define SWIGEXPORT(a) a
79# define SWIGIMPORT(a) a
80# endif
81# endif
d14a1e28 82#else
f0983263
RD
83# define SWIGEXPORT(a) a
84# define SWIGIMPORT(a) a
d14a1e28
RD
85#endif
86
87#ifdef SWIG_GLOBAL
f0983263 88# define SWIGRUNTIME(a) SWIGEXPORT(a)
d14a1e28 89#else
f0983263 90# define SWIGRUNTIME(a) static a
d14a1e28
RD
91#endif
92
d14a1e28
RD
93#ifdef __cplusplus
94extern "C" {
95#endif
96
97typedef void *(*swig_converter_func)(void *);
98typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100typedef struct swig_type_info {
f0983263 101 const char *name;
d14a1e28
RD
102 swig_converter_func converter;
103 const char *str;
f0983263 104 void *clientdata;
d14a1e28
RD
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108} swig_type_info;
109
110
111SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
f0983263
RD
118SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
d14a1e28
RD
120
121
122#ifdef __cplusplus
123}
124#endif
125
f0983263 126
d14a1e28
RD
127/***********************************************************************
128 * pyrun.swg for wxPython
129 *
130 * Include only the function prototypes and such from SWIG's pyrun.swg,
131 * but not the runtime functions themselves. This helps keep the
132 * wrapper files clean of unnecessary stuff that is in the libpy.c file
133 * anyway.
134 *
135 ************************************************************************/
136
d14a1e28
RD
137#include "Python.h"
138
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
d14a1e28
RD
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)
83448d71 174
d14a1e28
RD
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)
d14a1e28
RD
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
8edf1c75 187typedef double (*py_objasdbl_conv)(PyObject *obj);
d14a1e28 188
f0983263
RD
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[]);
d14a1e28 197
8edf1c75
RD
198/* -----------------------------------------------------------------------------
199 * the needed conversions between C++ and python
200 * ----------------------------------------------------------------------------- */
201/* basic types */
202/*
203 utilities
204*/
205SWIGIMPORT(char* ) SWIG_PyObj_AsCharPtr(PyObject *obj, swig_type_info* pchar_info);
206SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharPtr(const char* cptr);
207SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLong(PyObject * obj);
208SWIGIMPORT(long) SWIG_PyObj_AsLongInRange(PyObject * obj, const char* type,
209 long min_value, long max_value);
210SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLongInRange(PyObject *obj, const char* type,
211 unsigned long max_value);
212SWIGIMPORT(char *) SWIG_PyObj_AsNewCharPtr(PyObject *obj, swig_type_info* pchar_info);
213SWIGIMPORT(void) SWIG_PyObj_AsCharPtrAndSize(PyObject *obj, swig_type_info* pchar_info,
214 char** cptr, size_t* size);
215SWIGIMPORT(void) SWIG_PyObj_AsCharArray(PyObject *obj, swig_type_info* pchar_info,
216 char* carray, size_t size);
217SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharArray(const char* carray, size_t size);
218SWIGIMPORT(float) SWIG_PyObj_AsFloatConv(PyObject *obj, py_objasdbl_conv pyconv);
d14a1e28
RD
219
220
221/* Contract support */
222
423f194a 223#define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
d14a1e28 224
d14a1e28
RD
225#ifdef __cplusplus
226}
227#endif
228
229
230
231/* -------- TYPES TABLE (BEGIN) -------- */
232
233#define SWIGTYPE_p_wxLayoutConstraints swig_types[0]
234#define SWIGTYPE_p_wxRealPoint swig_types[1]
235#define SWIGTYPE_p_wxSizerItem swig_types[2]
236#define SWIGTYPE_p_wxGBSizerItem swig_types[3]
237#define SWIGTYPE_p_wxScrollEvent swig_types[4]
238#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[5]
239#define SWIGTYPE_p_wxSizer swig_types[6]
240#define SWIGTYPE_p_wxBoxSizer swig_types[7]
241#define SWIGTYPE_p_wxStaticBoxSizer swig_types[8]
242#define SWIGTYPE_p_wxGridBagSizer swig_types[9]
243#define SWIGTYPE_p_wxAcceleratorEntry swig_types[10]
244#define SWIGTYPE_p_wxUpdateUIEvent swig_types[11]
245#define SWIGTYPE_p_wxMenu swig_types[12]
246#define SWIGTYPE_p_wxEvent swig_types[13]
247#define SWIGTYPE_p_wxGridSizer swig_types[14]
248#define SWIGTYPE_p_wxFlexGridSizer swig_types[15]
249#define SWIGTYPE_p_wxInitDialogEvent swig_types[16]
250#define SWIGTYPE_p_wxItemContainer swig_types[17]
251#define SWIGTYPE_p_wxNcPaintEvent swig_types[18]
252#define SWIGTYPE_p_wxPaintEvent swig_types[19]
253#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[20]
254#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[21]
255#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[22]
256#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[23]
257#define SWIGTYPE_p_wxControl swig_types[24]
258#define SWIGTYPE_p_wxFont swig_types[25]
259#define SWIGTYPE_p_wxMenuBarBase swig_types[26]
260#define SWIGTYPE_p_wxSetCursorEvent swig_types[27]
261#define SWIGTYPE_p_wxFSFile swig_types[28]
262#define SWIGTYPE_p_wxCaret swig_types[29]
263#define SWIGTYPE_p_wxRegion swig_types[30]
264#define SWIGTYPE_p_wxPoint2D swig_types[31]
265#define SWIGTYPE_p_int swig_types[32]
266#define SWIGTYPE_p_wxSize swig_types[33]
267#define SWIGTYPE_p_wxDC swig_types[34]
268#define SWIGTYPE_p_wxPySizer swig_types[35]
269#define SWIGTYPE_p_wxNotifyEvent swig_types[36]
270#define SWIGTYPE_p_wxPyEvent swig_types[37]
271#define SWIGTYPE_p_wxPropagationDisabler swig_types[38]
272#define SWIGTYPE_p_wxAppTraits swig_types[39]
273#define SWIGTYPE_p_wxArrayString swig_types[40]
274#define SWIGTYPE_p_wxShowEvent swig_types[41]
275#define SWIGTYPE_p_wxToolTip swig_types[42]
4e760a36
RD
276#define SWIGTYPE_p_wxMaximizeEvent swig_types[43]
277#define SWIGTYPE_p_wxIconizeEvent swig_types[44]
278#define SWIGTYPE_p_wxActivateEvent swig_types[45]
279#define SWIGTYPE_p_wxMoveEvent swig_types[46]
280#define SWIGTYPE_p_wxSizeEvent swig_types[47]
d14a1e28
RD
281#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[48]
282#define SWIGTYPE_p_wxWindowCreateEvent swig_types[49]
283#define SWIGTYPE_p_wxIdleEvent swig_types[50]
284#define SWIGTYPE_p_wxMenuItem swig_types[51]
285#define SWIGTYPE_p_wxStaticBox swig_types[52]
286#define SWIGTYPE_p_long swig_types[53]
287#define SWIGTYPE_p_wxTIFFHandler swig_types[54]
288#define SWIGTYPE_p_wxXPMHandler swig_types[55]
289#define SWIGTYPE_p_wxPNMHandler swig_types[56]
290#define SWIGTYPE_p_wxJPEGHandler swig_types[57]
291#define SWIGTYPE_p_wxPCXHandler swig_types[58]
292#define SWIGTYPE_p_wxGIFHandler swig_types[59]
293#define SWIGTYPE_p_wxPNGHandler swig_types[60]
294#define SWIGTYPE_p_wxANIHandler swig_types[61]
295#define SWIGTYPE_p_wxMemoryFSHandler swig_types[62]
4e760a36
RD
296#define SWIGTYPE_p_wxEvtHandler swig_types[63]
297#define SWIGTYPE_p_wxCURHandler swig_types[64]
298#define SWIGTYPE_p_wxICOHandler swig_types[65]
299#define SWIGTYPE_p_wxBMPHandler swig_types[66]
300#define SWIGTYPE_p_wxImageHandler swig_types[67]
301#define SWIGTYPE_p_wxFileSystemHandler swig_types[68]
302#define SWIGTYPE_p_wxPyFileSystemHandler swig_types[69]
303#define SWIGTYPE_p_wxInternetFSHandler swig_types[70]
304#define SWIGTYPE_p_wxZipFSHandler swig_types[71]
d14a1e28
RD
305#define SWIGTYPE_p_wxRect swig_types[72]
306#define SWIGTYPE_p_wxGBSpan swig_types[73]
307#define SWIGTYPE_p_wxPropagateOnce swig_types[74]
308#define SWIGTYPE_p_wxAcceleratorTable swig_types[75]
8edf1c75
RD
309#define SWIGTYPE_p_char swig_types[76]
310#define SWIGTYPE_p_wxGBPosition swig_types[77]
311#define SWIGTYPE_p_wxImage swig_types[78]
312#define SWIGTYPE_p_wxFrame swig_types[79]
313#define SWIGTYPE_p_wxScrollWinEvent swig_types[80]
314#define SWIGTYPE_p_wxImageHistogram swig_types[81]
315#define SWIGTYPE_p_byte swig_types[82]
316#define SWIGTYPE_p_wxPoint swig_types[83]
317#define SWIGTYPE_p_wxCursor swig_types[84]
318#define SWIGTYPE_p_wxObject swig_types[85]
319#define SWIGTYPE_p_wxPyInputStream swig_types[86]
320#define SWIGTYPE_p_wxOutputStream swig_types[87]
321#define SWIGTYPE_p_wxInputStream swig_types[88]
322#define SWIGTYPE_p_wxDateTime swig_types[89]
323#define SWIGTYPE_p_wxKeyEvent swig_types[90]
324#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[91]
325#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[92]
326#define SWIGTYPE_p_wxWindow swig_types[93]
327#define SWIGTYPE_p_wxMenuBar swig_types[94]
4e760a36
RD
328#define SWIGTYPE_p_wxFileSystem swig_types[95]
329#define SWIGTYPE_p_wxBitmap swig_types[96]
330#define SWIGTYPE_p_wxMenuEvent swig_types[97]
331#define SWIGTYPE_p_wxContextMenuEvent swig_types[98]
332#define SWIGTYPE_p_unsigned_char swig_types[99]
333#define SWIGTYPE_p_wxCloseEvent swig_types[100]
334#define SWIGTYPE_p_wxEraseEvent swig_types[101]
335#define SWIGTYPE_p_wxMouseEvent swig_types[102]
336#define SWIGTYPE_p_wxPyApp swig_types[103]
337#define SWIGTYPE_p_wxCommandEvent swig_types[104]
338#define SWIGTYPE_p_wxPyCommandEvent swig_types[105]
339#define SWIGTYPE_p_wxPyDropTarget swig_types[106]
340#define SWIGTYPE_p_wxChildFocusEvent swig_types[107]
341#define SWIGTYPE_p_wxFocusEvent swig_types[108]
342#define SWIGTYPE_p_wxDropFilesEvent swig_types[109]
343#define SWIGTYPE_p_wxControlWithItems swig_types[110]
344#define SWIGTYPE_p_wxColour swig_types[111]
345#define SWIGTYPE_p_wxValidator swig_types[112]
346#define SWIGTYPE_p_wxPyValidator swig_types[113]
347static swig_type_info *swig_types[115];
d14a1e28
RD
348
349/* -------- TYPES TABLE (END) -------- */
350
351
352/*-----------------------------------------------
353 @(target):= _core.so
354 ------------------------------------------------*/
355#define SWIG_init init_core
356
357#define SWIG_name "_core"
358
8edf1c75
RD
359#include <limits.h>
360#include <float.h>
361#include <string.h>
362
363#ifndef SWIGSTATIC
364#ifdef __cplusplus
365#define SWIGSTATIC(a) static inline a
366#else
367#define SWIGSTATIC(a) static a
368#endif
369#endif
370
371#ifndef numeric_cast
372#ifdef __cplusplus
373#ifdef HAVE_NUMERIC_CAST
374#define numeric_cast(type,a) numeric_cast<type>(a)
375#else
376#define numeric_cast(type,a) static_cast<type>(a)
377#endif
378#else
379#define numeric_cast(type,a) (type)(a)
380#endif
381#endif
382
383
384
385#define SWIG_PyObj_FromSignedChar PyInt_FromLong
386#define SWIG_PyObj_FromUnsignedChar PyInt_FromLong
387#define SWIG_PyObj_FromShort PyInt_FromLong
388#define SWIG_PyObj_FromUnsignedShort PyInt_FromLong
389#define SWIG_PyObj_FromInt PyInt_FromLong
390#define SWIG_PyObj_FromLong PyInt_FromLong
391#define SWIG_PyObj_FromFloat PyFloat_FromDouble
392#define SWIG_PyObj_FromDouble PyFloat_FromDouble
393#define SWIG_PyObj_FromFloat PyFloat_FromDouble
394#define SWIG_PyObj_FromDouble PyFloat_FromDouble
395
396
d14a1e28
RD
397#include "wx/wxPython/wxPython_int.h"
398#include "wx/wxPython/pyclasses.h"
399
400
401#ifndef wxPyUSE_EXPORT
402// Helper functions for dealing with SWIG objects and such. These are
403// located here so they know about the SWIG types and functions declared
404// in the wrapper code.
405
406#include <wx/hashmap.h>
407WX_DECLARE_STRING_HASH_MAP( swig_type_info*, wxPyTypeInfoHashMap );
408
409
410// Maintains a hashmap of className to swig_type_info pointers. Given the
411// name of a class either looks up the type info in the cache, or scans the
412// SWIG tables for it.
413extern PyObject* wxPyPtrTypeMap;
414static
415swig_type_info* wxPyFindSwigType(const wxChar* className) {
416
417 static wxPyTypeInfoHashMap* typeInfoCache = NULL;
418
419 if (typeInfoCache == NULL)
420 typeInfoCache = new wxPyTypeInfoHashMap;
421
422 wxString name(className);
423 swig_type_info* swigType = (*typeInfoCache)[name];
424
425 if (! swigType) {
426 // it wasn't in the cache, so look it up from SWIG
427 name.Append(wxT(" *"));
428 swigType = SWIG_Python_TypeQuery(name.mb_str());
429
430 // if it still wasn't found, try looking for a mapped name
431 if (!swigType) {
432 PyObject* item;
433 name = className;
434
435 if ((item = PyDict_GetItemString(wxPyPtrTypeMap,
436 (char*)(const char*)name.mbc_str())) != NULL) {
437 name = wxString(PyString_AsString(item), *wxConvCurrent);
438 name.Append(wxT(" *"));
439 swigType = SWIG_Python_TypeQuery(name.mb_str());
440 }
441 }
442 if (swigType) {
443 // and add it to the map if found
444 (*typeInfoCache)[className] = swigType;
445 }
446 }
447 return swigType;
448}
449
450
451// Check if a class name is a type known to SWIG
452bool wxPyCheckSwigType(const wxChar* className) {
453
454 swig_type_info* swigType = wxPyFindSwigType(className);
455 return swigType != NULL;
456}
457
458
459// Given a pointer to a C++ object and a class name, construct a Python proxy
460// object for it.
461PyObject* wxPyConstructObject(void* ptr,
462 const wxChar* className,
463 int setThisOwn) {
464
465 swig_type_info* swigType = wxPyFindSwigType(className);
466 wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConstructObject"));
467
468 return SWIG_Python_NewPointerObj(ptr, swigType, setThisOwn);
469}
470
471
472// Extract a pointer to the wrapped C++ object from a Python proxy object.
473// Ensures that the proxy object is of the specified (or derived) type. If
474// not able to perform the conversion then a Python exception is set and the
423f194a 475// error should be handled properly in the caller. Returns True on success.
d14a1e28
RD
476bool wxPyConvertSwigPtr(PyObject* obj, void **ptr,
477 const wxChar* className) {
478
479 swig_type_info* swigType = wxPyFindSwigType(className);
423f194a 480 wxCHECK_MSG(swigType != NULL, False, wxT("Unknown type in wxPyConvertSwigPtr"));
d14a1e28
RD
481
482 return SWIG_Python_ConvertPtr(obj, ptr, swigType, SWIG_POINTER_EXCEPTION) != -1;
483}
484
485
486// Make a SWIGified pointer object suitable for a .this attribute
487PyObject* wxPyMakeSwigPtr(void* ptr, const wxChar* className) {
488
489 PyObject* robj = NULL;
490
491 swig_type_info* swigType = wxPyFindSwigType(className);
492 wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConvertSwigPtr"));
493
494#ifdef SWIG_COBJECT_TYPES
495 robj = PyCObject_FromVoidPtrAndDesc((void *) ptr, (char *) swigType->name, NULL);
496#else
497 {
498 char result[1024];
499 char *r = result;
500 *(r++) = '_';
501 r = SWIG_Python_PackData(r, &ptr, sizeof(void *));
502 strcpy(r, swigType->name);
503 robj = PyString_FromString(result);
504 }
505#endif
506
507 return robj;
508}
509
510
511
512
513// Export a C API in a struct. Other modules will be able to load this from
514// the wx.core module and will then have safe access to these functions, even if
515// they are located in another shared library.
516static wxPyCoreAPI API = {
517
518 (p_SWIG_Python_TypeRegister_t)SWIG_Python_TypeRegister,
519 (p_SWIG_Python_TypeCheck_t)SWIG_Python_TypeCheck,
520 (p_SWIG_Python_TypeCast_t)SWIG_Python_TypeCast,
521 (p_SWIG_Python_TypeDynamicCast_t)SWIG_Python_TypeDynamicCast,
522 (p_SWIG_Python_TypeName_t)SWIG_Python_TypeName,
523 (p_SWIG_Python_TypeQuery_t)SWIG_Python_TypeQuery,
524 (p_SWIG_Python_TypeClientData_t)SWIG_Python_TypeClientData,
525 (p_SWIG_Python_newvarlink_t)SWIG_Python_newvarlink,
526 (p_SWIG_Python_addvarlink_t)SWIG_Python_addvarlink,
527 (p_SWIG_Python_ConvertPtr_t)SWIG_Python_ConvertPtr,
528 (p_SWIG_Python_ConvertPacked_t)SWIG_Python_ConvertPacked,
529 (p_SWIG_Python_PackData_t)SWIG_Python_PackData,
530 (p_SWIG_Python_UnpackData_t)SWIG_Python_UnpackData,
531 (p_SWIG_Python_NewPointerObj_t)SWIG_Python_NewPointerObj,
532 (p_SWIG_Python_NewPackedObj_t)SWIG_Python_NewPackedObj,
533 (p_SWIG_Python_InstallConstants_t)SWIG_Python_InstallConstants,
534 (p_SWIG_Python_MustGetPtr_t)SWIG_Python_MustGetPtr,
535
8edf1c75
RD
536 (p_SWIG_PyObj_AsCharPtr_t)SWIG_PyObj_AsCharPtr,
537 (p_SWIG_PyObj_FromCharPtr_t)SWIG_PyObj_FromCharPtr,
538 (p_SWIG_PyObj_AsUnsignedLong_t)SWIG_PyObj_AsUnsignedLong,
539 (p_SWIG_PyObj_AsLongInRange_t)SWIG_PyObj_AsLongInRange,
540 (p_SWIG_PyObj_AsUnsignedLongInRange_t)SWIG_PyObj_AsUnsignedLongInRange,
541 (p_SWIG_PyObj_AsNewCharPtr_t)SWIG_PyObj_AsNewCharPtr,
542 (p_SWIG_PyObj_AsCharPtrAndSize_t)SWIG_PyObj_AsCharPtrAndSize,
543 (p_SWIG_PyObj_AsCharArray_t)SWIG_PyObj_AsCharArray,
544 (p_SWIG_PyObj_FromCharArray_t)SWIG_PyObj_FromCharArray,
545 (p_SWIG_PyObj_AsFloatConv_t)SWIG_PyObj_AsFloatConv,
546
d14a1e28
RD
547 wxPyCheckSwigType,
548 wxPyConstructObject,
549 wxPyConvertSwigPtr,
550 wxPyMakeSwigPtr,
551
552 wxPyBeginAllowThreads,
553 wxPyEndAllowThreads,
554 wxPyBeginBlockThreads,
555 wxPyEndBlockThreads,
556
557 wxPy_ConvertList,
558
559 wxString_in_helper,
560 Py2wxString,
561 wx2PyString,
562
563 byte_LIST_helper,
564 int_LIST_helper,
565 long_LIST_helper,
566 string_LIST_helper,
567 wxPoint_LIST_helper,
568 wxBitmap_LIST_helper,
569 wxString_LIST_helper,
570 wxAcceleratorEntry_LIST_helper,
571
572 wxSize_helper,
573 wxPoint_helper,
574 wxRealPoint_helper,
575 wxRect_helper,
576 wxColour_helper,
577 wxPoint2D_helper,
578
579 wxPySimple_typecheck,
580 wxColour_typecheck,
581
582 wxPyCBH_setCallbackInfo,
583 wxPyCBH_findCallback,
584 wxPyCBH_callCallback,
585 wxPyCBH_callCallbackObj,
586 wxPyCBH_delete,
587
588 wxPyMake_wxObject,
589 wxPyMake_wxSizer,
590 wxPyPtrTypeMap_Add,
591 wxPy2int_seq_helper,
592 wxPy4int_seq_helper,
593 wxArrayString2PyList_helper,
594 wxArrayInt2PyList_helper,
595
596 wxPyClientData_dtor,
597 wxPyUserData_dtor,
598 wxPyOORClientData_dtor,
599
600 wxPyCBInputStream_create,
601
602 wxPyInstance_Check,
603 wxPySwigInstance_Check
604
605};
606
607#endif
608
609
d14a1e28
RD
610#if ! wxUSE_HOTKEY
611enum wxHotkeyModifier
612{
613 wxMOD_NONE = 0,
614 wxMOD_ALT = 1,
615 wxMOD_CONTROL = 2,
616 wxMOD_SHIFT = 4,
617 wxMOD_WIN = 8
618};
619#define wxEVT_HOTKEY 9999
620#endif
621
d03fd34d 622 static const wxString wxPyEmptyString(wxEmptyString);
d14a1e28
RD
623wxString wxObject_GetClassName(wxObject *self){
624 return self->GetClassInfo()->GetClassName();
625 }
626void wxObject_Destroy(wxObject *self){
627 delete self;
628 }
629
630#ifndef __WXMAC__
631#define wxCURSOR_COPY_ARROW wxCURSOR_ARROW
632#endif
633
8edf1c75
RD
634
635SWIGSTATIC(int)
636SWIG_PyObj_AsInt(PyObject *obj)
637{
638 return numeric_cast(int,
639 SWIG_PyObj_AsLongInRange(obj, "int", INT_MIN, INT_MAX));
640}
641
423f194a 642PyObject *wxSize_Get(wxSize *self){
d14a1e28
RD
643 wxPyBeginBlockThreads();
644 PyObject* tup = PyTuple_New(2);
645 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
646 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
647 wxPyEndBlockThreads();
648 return tup;
649 }
8edf1c75
RD
650
651SWIGSTATIC(double)
652SWIG_PyObj_AsDouble(PyObject *obj)
653{
654 return (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) :
655#if HAVE_LONG_LONG
656 (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj));
657#else
658 (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj));
659#endif
660 if (PyErr_Occurred()) {
661 PyErr_Clear();
662 PyErr_SetString(PyExc_TypeError, "a double is expected");
663 }
664}
665
d14a1e28
RD
666void wxRealPoint_Set(wxRealPoint *self,double x,double y){
667 self->x = x;
668 self->y = y;
669 }
423f194a 670PyObject *wxRealPoint_Get(wxRealPoint *self){
d14a1e28
RD
671 wxPyBeginBlockThreads();
672 PyObject* tup = PyTuple_New(2);
673 PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->x));
674 PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->y));
675 wxPyEndBlockThreads();
676 return tup;
677 }
8edf1c75
RD
678
679SWIGSTATIC(long)
680SWIG_PyObj_AsLong(PyObject * obj)
681{
682 return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj);
683}
684
d14a1e28
RD
685void wxPoint_Set(wxPoint *self,long x,long y){
686 self->x = x;
687 self->y = y;
688 }
423f194a 689PyObject *wxPoint_Get(wxPoint *self){
d14a1e28
RD
690 wxPyBeginBlockThreads();
691 PyObject* tup = PyTuple_New(2);
692 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
693 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
694 wxPyEndBlockThreads();
695 return tup;
696 }
697void wxRect_Set(wxRect *self,int x,int y,int width,int height){
698 self->x = x;
699 self->y = y;
700 self->width = width;
701 self->height = height;
702 }
423f194a 703PyObject *wxRect_Get(wxRect *self){
d14a1e28
RD
704 wxPyBeginBlockThreads();
705 PyObject* tup = PyTuple_New(4);
706 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
707 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
708 PyTuple_SET_ITEM(tup, 2, PyInt_FromLong(self->width));
709 PyTuple_SET_ITEM(tup, 3, PyInt_FromLong(self->height));
710 wxPyEndBlockThreads();
711 return tup;
712 }
713
714 PyObject* wxIntersectRect(wxRect* r1, wxRect* r2) {
715 wxRegion reg1(*r1);
716 wxRegion reg2(*r2);
717 wxRect dest(0,0,0,0);
718 PyObject* obj;
719
720 reg1.Intersect(reg2);
721 dest = reg1.GetBox();
722
723 if (dest != wxRect(0,0,0,0)) {
724 wxPyBeginBlockThreads();
725 wxRect* newRect = new wxRect(dest);
423f194a 726 obj = wxPyConstructObject((void*)newRect, wxT("wxRect"), True);
d14a1e28
RD
727 wxPyEndBlockThreads();
728 return obj;
729 }
730 Py_INCREF(Py_None);
731 return Py_None;
732 }
733
734
735static PyObject* t_output_helper(PyObject* target, PyObject* o) {
736 PyObject* o2;
737 PyObject* o3;
738
739 if (!target) {
740 target = o;
741 } else if (target == Py_None) {
742 Py_DECREF(Py_None);
743 target = o;
744 } else {
745 if (!PyTuple_Check(target)) {
746 o2 = target;
747 target = PyTuple_New(1);
748 PyTuple_SetItem(target, 0, o2);
749 }
750 o3 = PyTuple_New(1);
751 PyTuple_SetItem(o3, 0, o);
752
753 o2 = target;
754 target = PySequence_Concat(o2, o3);
755 Py_DECREF(o2);
756 Py_DECREF(o3);
757 }
758 return target;
759}
760
761void wxPoint2D_Set(wxPoint2D *self,double x,double y){
762 self->m_x = x;
763 self->m_y = y;
764 }
423f194a 765PyObject *wxPoint2D_Get(wxPoint2D *self){
d14a1e28
RD
766 wxPyBeginBlockThreads();
767 PyObject* tup = PyTuple_New(2);
768 PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->m_x));
769 PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->m_y));
770 wxPyEndBlockThreads();
771 return tup;
772 }
773
774#include "wx/wxPython/pyistream.h"
775
776wxPyInputStream *new_wxPyInputStream(PyObject *p){
777 wxInputStream* wxis = wxPyCBInputStream::create(p);
778 if (wxis)
779 return new wxPyInputStream(wxis);
780 else
781 return NULL;
782 }
8edf1c75
RD
783
784SWIGSTATIC(PyObject*)
785SWIG_PyObj_FromChar(char c)
786{
787 return PyString_FromStringAndSize(&c,1);
788}
789
790
791SWIGSTATIC(PyObject* )
792SWIG_PyObj_FromUnsignedLong(unsigned long value)
793{
794 return (value > (unsigned long)(LONG_MAX)) ?
795 PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)value);
796}
797
798
799SWIGSTATIC(char)
800SWIG_PyObj_AsChar(PyObject *obj)
801{
802 char c = 0;
803 if (PyInt_Check(obj) || PyLong_Check(obj)) {
804 c = numeric_cast(char,
805 SWIG_PyObj_AsLongInRange(obj, "char",CHAR_MIN, CHAR_MAX));
806 } else {
807 char* cptr; size_t csize;
808 SWIG_PyObj_AsCharPtrAndSize(obj, 0, &cptr, &csize);
809 if (csize == 1) {
810 c = cptr[0];
811 } else {
812 PyErr_SetString(PyExc_TypeError, "a char is expected");
813 }
814 }
815 return c;
816}
817
d14a1e28
RD
818void wxOutputStream_write(wxOutputStream *self,PyObject *obj){
819 // We use only strings for the streams, not unicode
820 PyObject* str = PyObject_Str(obj);
821 if (! str) {
822 PyErr_SetString(PyExc_TypeError, "Unable to convert to string");
823 return;
824 }
825 self->Write(PyString_AS_STRING(str),
826 PyString_GET_SIZE(str));
827 Py_DECREF(str);
828 }
829
830#include "wx/wxPython/pyistream.h"
831
832
833class wxPyFileSystemHandler : public wxFileSystemHandler
834{
835public:
836 wxPyFileSystemHandler() : wxFileSystemHandler() {}
837
838 DEC_PYCALLBACK_BOOL_STRING_pure(CanOpen);
839 DEC_PYCALLBACK_FSF_FSSTRING_pure(OpenFile);
840 DEC_PYCALLBACK_STRING_STRINGINT_pure(FindFirst);
841 DEC_PYCALLBACK_STRING__pure(FindNext);
842
843 wxString GetProtocol(const wxString& location) {
844 return wxFileSystemHandler::GetProtocol(location);
845 }
846
847 wxString GetLeftLocation(const wxString& location) {
848 return wxFileSystemHandler::GetLeftLocation(location);
849 }
850
851 wxString GetAnchor(const wxString& location) {
852 return wxFileSystemHandler::GetAnchor(location);
853 }
854
855 wxString GetRightLocation(const wxString& location) {
856 return wxFileSystemHandler::GetRightLocation(location);
857 }
858
859 wxString GetMimeTypeFromExt(const wxString& location) {
860 return wxFileSystemHandler::GetMimeTypeFromExt(location);
861 }
862
863 PYPRIVATE;
864};
865
866
867IMP_PYCALLBACK_BOOL_STRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, CanOpen);
868IMP_PYCALLBACK_FSF_FSSTRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, OpenFile);
869IMP_PYCALLBACK_STRING_STRINGINT_pure(wxPyFileSystemHandler, wxFileSystemHandler, FindFirst);
870IMP_PYCALLBACK_STRING__pure(wxPyFileSystemHandler, wxFileSystemHandler, FindNext);
871
872
8edf1c75
RD
873SWIGSTATIC(bool)
874SWIG_PyObj_AsBool(PyObject *obj)
875{
876 return PyObject_IsTrue(obj) ? true : false;
877}
878
879
d14a1e28
RD
880 wxString wxFileSystem_URLToFileName(const wxString& url) {
881 wxFileName fname = wxFileSystem::URLToFileName(url);
882 return fname.GetFullPath();
883 }
884
885
886 void __wxMemoryFSHandler_AddFile_wxImage(const wxString& filename,
887 wxImage& image,
888 long type) {
889 wxMemoryFSHandler::AddFile(filename, image, type);
890 }
891
892 void __wxMemoryFSHandler_AddFile_wxBitmap(const wxString& filename,
893 const wxBitmap& bitmap,
894 long type) {
895 wxMemoryFSHandler::AddFile(filename, bitmap, type);
896 }
897
898 void __wxMemoryFSHandler_AddFile_Data(const wxString& filename,
899 PyObject* data) {
900 wxMemoryFSHandler::AddFile(filename,
901 // TODO: Verify data type
902 (void*)PyString_AsString(data),
903 (size_t)PyString_Size(data));
904 }
905
906
907#include "wx/wxPython/pyistream.h"
908
8edf1c75
RD
909
910SWIGSTATIC(unsigned char)
911SWIG_PyObj_AsUnsignedChar(PyObject *obj)
912{
913 return numeric_cast(unsigned char,
914 SWIG_PyObj_AsUnsignedLongInRange(obj, "unsigned char", UCHAR_MAX));
915}
916
d14a1e28
RD
917wxImage *new_wxImage(int width,int height,bool clear){
918 if (width > 0 && height > 0)
919 return new wxImage(width, height, clear);
920 else
921 return new wxImage;
922 }
923wxImage *new_wxImage(wxBitmap const &bitmap){
924 return new wxImage(bitmap.ConvertToImage());
925 }
926wxImage *new_wxImage(int width,int height,unsigned char *data){
927 // Copy the source data so the wxImage can clean it up later
928 unsigned char* copy = (unsigned char*)malloc(width*height*3);
929 if (copy == NULL) {
930 PyErr_NoMemory();
931 return NULL;
932 }
933 memcpy(copy, data, width*height*3);
423f194a 934 return new wxImage(width, height, copy, False);
d14a1e28
RD
935 }
936PyObject *wxImage_GetData(wxImage *self){
937 unsigned char* data = self->GetData();
938 int len = self->GetWidth() * self->GetHeight() * 3;
939 PyObject* rv;
940 wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len));
941 return rv;
942 }
943void wxImage_SetData(wxImage *self,PyObject *data){
944 unsigned char* dataPtr;
945
946 if (! PyString_Check(data)) {
947 PyErr_SetString(PyExc_TypeError, "Expected string object");
948 return /* NULL */ ;
949 }
950
951 size_t len = self->GetWidth() * self->GetHeight() * 3;
952 dataPtr = (unsigned char*) malloc(len);
953 wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) );
954 self->SetData(dataPtr);
955 // wxImage takes ownership of dataPtr...
956 }
957PyObject *wxImage_GetDataBuffer(wxImage *self){
958 unsigned char* data = self->GetData();
959 int len = self->GetWidth() * self->GetHeight() * 3;
960 PyObject* rv;
961 wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) );
962 return rv;
963 }
964void wxImage_SetDataBuffer(wxImage *self,PyObject *data){
965 unsigned char* buffer;
966 int size;
967
968 wxPyBeginBlockThreads();
969 if (!PyArg_Parse(data, "t#", &buffer, &size))
970 goto done;
971
972 if (size != self->GetWidth() * self->GetHeight() * 3) {
973 PyErr_SetString(PyExc_TypeError, "Incorrect buffer size");
974 goto done;
975 }
976 self->SetData(buffer);
977 done:
978 wxPyEndBlockThreads();
979 }
980PyObject *wxImage_GetAlphaData(wxImage *self){
981 unsigned char* data = self->GetAlpha();
982 if (! data) {
983 RETURN_NONE();
984 } else {
985 int len = self->GetWidth() * self->GetHeight();
986 PyObject* rv;
987 wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len) );
988 return rv;
989 }
990 }
991void wxImage_SetAlphaData(wxImage *self,PyObject *data){
992 unsigned char* dataPtr;
993
994 if (! PyString_Check(data)) {
995 PyErr_SetString(PyExc_TypeError, "Expected string object");
996 return /* NULL */ ;
997 }
998
999 size_t len = self->GetWidth() * self->GetHeight();
1000 dataPtr = (unsigned char*) malloc(len);
1001 wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) );
1002 self->SetAlpha(dataPtr);
1003 // wxImage takes ownership of dataPtr...
1004 }
1005PyObject *wxImage_GetAlphaBuffer(wxImage *self){
1006 unsigned char* data = self->GetAlpha();
1007 int len = self->GetWidth() * self->GetHeight();
1008 PyObject* rv;
1009 wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) );
1010 return rv;
1011 }
1012void wxImage_SetAlphaBuffer(wxImage *self,PyObject *data){
1013 unsigned char* buffer;
1014 int size;
1015
1016 wxPyBeginBlockThreads();
1017 if (!PyArg_Parse(data, "t#", &buffer, &size))
1018 goto done;
1019
1020 if (size != self->GetWidth() * self->GetHeight()) {
1021 PyErr_SetString(PyExc_TypeError, "Incorrect buffer size");
1022 goto done;
1023 }
1024 self->SetAlpha(buffer);
1025 done:
1026 wxPyEndBlockThreads();
1027 }
1028wxBitmap wxImage_ConvertToBitmap(wxImage *self){
1029 wxBitmap bitmap(*self);
1030 return bitmap;
1031 }
1032wxBitmap wxImage_ConvertToMonoBitmap(wxImage *self,unsigned char red,unsigned char green,unsigned char blue){
1033 wxImage mono = self->ConvertToMono( red, green, blue );
1034 wxBitmap bitmap( mono, 1 );
1035 return bitmap;
1036 }
1037 static const wxString wxPyIMAGE_OPTION_BMP_FORMAT(wxIMAGE_OPTION_BMP_FORMAT);
1038 static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_X(wxIMAGE_OPTION_CUR_HOTSPOT_X);
1039 static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_Y(wxIMAGE_OPTION_CUR_HOTSPOT_Y);
1040 static const wxString wxPyIMAGE_OPTION_RESOLUTION(wxIMAGE_OPTION_RESOLUTION);
1041 static const wxString wxPyIMAGE_OPTION_RESOLUTIONUNIT(wxIMAGE_OPTION_RESOLUTIONUNIT);
1042void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject *func){
1043 if (PyCallable_Check(func)) {
1044 self->Connect(id, lastId, eventType,
1045 (wxObjectEventFunction) &wxPyCallback::EventThunker,
1046 new wxPyCallback(func));
1047 }
1048 else if (func == Py_None) {
1049 self->Disconnect(id, lastId, eventType,
1050 (wxObjectEventFunction)
1051 &wxPyCallback::EventThunker);
1052 }
1053 else {
1054 PyErr_SetString(PyExc_TypeError, "Expected callable object or None.");
1055 }
1056 }
1057bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType){
1058 return self->Disconnect(id, lastId, eventType,
1059 (wxObjectEventFunction)
1060 &wxPyCallback::EventThunker);
1061 }
1062void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject *_self){
1063 if (_self && _self != Py_None) {
1064 self->SetClientObject(new wxPyOORClientData(_self));
1065 }
1066 else {
1067 wxPyOORClientData* data = (wxPyOORClientData*)self->GetClientObject();
1068 if (data) {
1069 self->SetClientObject(NULL); // This will delete it too
1070 }
1071 }
1072 }
1073int wxKeyEvent_GetUniChar(wxKeyEvent *self){
a64def11
RD
1074 #if wxUSE_UNICODE
1075 return self->m_uniChar;
1076 #else
d14a1e28 1077 return 0;
a64def11 1078 #endif
d14a1e28 1079 }
8edf1c75
RD
1080
1081#define SWIG_PyObj_FromUnsignedInt SWIG_PyObj_FromUnsignedLong
1082
1083
1084SWIGSTATIC(unsigned int)
1085SWIG_PyObj_AsUnsignedInt(PyObject *obj)
1086{
1087 return numeric_cast(unsigned int,
1088 SWIG_PyObj_AsUnsignedLongInRange(obj, "unsigned int", UINT_MAX));
1089}
1090
d14a1e28
RD
1091void wxSizeEvent_SetSize(wxSizeEvent *self,wxSize size){
1092 self->m_size = size;
1093 }
1094void wxMoveEvent_SetPosition(wxMoveEvent *self,wxPoint pos){
1095 self->m_pos = pos;
1096 }
1097PyObject *wxDropFilesEvent_GetFiles(wxDropFilesEvent *self){
1098 int count = self->GetNumberOfFiles();
1099 wxString* files = self->GetFiles();
1100 PyObject* list = PyList_New(count);
1101
1102 if (!list) {
1103 PyErr_SetString(PyExc_MemoryError, "Can't allocate list of files!");
1104 return NULL;
1105 }
1106
1107 for (int i=0; i<count; i++) {
a64def11 1108 PyList_SetItem(list, i, wx2PyString(files[i]));
d14a1e28
RD
1109 }
1110 return list;
1111 }
1112
1113
1114wxPyApp *new_wxPyApp(){
1115 wxPythonApp = new wxPyApp();
1116 return wxPythonApp;
1117 }
1118
1119 void wxApp_CleanUp() {
1120 __wxPyCleanup();
1121 }
1122
1123
1124 wxPyApp* wxGetApp() {
1125 return (wxPyApp*)wxTheApp;
1126 }
1127
1128
1129
423f194a 1130 static const wxString wxPyPanelNameStr(wxPanelNameStr);
d14a1e28
RD
1131PyObject *wxWindow_GetChildren(wxWindow *self){
1132 wxWindowList& list = self->GetChildren();
1133 return wxPy_ConvertList(&list);
1134 }
1135bool wxWindow_RegisterHotKey(wxWindow *self,int hotkeyId,int modifiers,int keycode){
1136
1137
1138
423f194a 1139 return False;
d14a1e28
RD
1140
1141 }
1142bool wxWindow_UnregisterHotKey(wxWindow *self,int hotkeyId){
1143
1144
1145
423f194a 1146 return False;
d14a1e28
RD
1147
1148 }
1149long wxWindow_GetHandle(wxWindow *self){
1150 return wxPyGetWinHandle(self);
1151 }
1152
1153wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) {
1154 return wxWindow::FindWindowById(id, parent);
1155}
1156
1157wxWindow* wxFindWindowByName( const wxString& name,
1158 const wxWindow *parent = NULL ) {
1159 return wxWindow::FindWindowByName(name, parent);
1160}
1161
1162wxWindow* wxFindWindowByLabel( const wxString& label,
1163 const wxWindow *parent = NULL ) {
1164 return wxWindow::FindWindowByLabel(label, parent);
1165}
1166
1167
1168 wxWindow* wxWindow_FromHWND(unsigned long hWnd) {
1169#ifdef __WXMSW__
1170 wxWindow* win = new wxWindow;
1171 win->SetHWND(hWnd);
1172 win->SubclassWin(hWnd);
1173 return win;
1174#else
cbd72d4f 1175 wxPyRaiseNotImplemented();
d14a1e28
RD
1176 return NULL;
1177#endif
1178 }
1179
1180
1181IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate);
1182IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow);
1183IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow);
1184
1185IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator);
1186
1187void wxMenu_Destroy(wxMenu *self){ delete self; }
1188PyObject *wxMenu_GetMenuItems(wxMenu *self){
1189 wxMenuItemList& list = self->GetMenuItems();
1190 return wxPy_ConvertList(&list);
1191 }
d03fd34d 1192 static const wxString wxPyControlNameStr(wxControlNameStr);
d14a1e28
RD
1193int wxItemContainer_Append(wxItemContainer *self,wxString const &item,PyObject *clientData){
1194 if (clientData) {
1195 wxPyClientData* data = new wxPyClientData(clientData);
1196 return self->Append(item, data);
1197 } else
1198 return self->Append(item);
1199 }
1200int wxItemContainer_Insert(wxItemContainer *self,wxString const &item,int pos,PyObject *clientData){
1201 if (clientData) {
1202 wxPyClientData* data = new wxPyClientData(clientData);
1203 return self->Insert(item, pos, data);
1204 } else
1205 return self->Insert(item, pos);
1206 }
1207PyObject *wxItemContainer_GetClientData(wxItemContainer *self,int n){
1208 wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n);
1209 if (data) {
1210 Py_INCREF(data->m_obj);
1211 return data->m_obj;
1212 } else {
1213 Py_INCREF(Py_None);
1214 return Py_None;
1215 }
1216 }
1217void wxItemContainer_SetClientData(wxItemContainer *self,int n,PyObject *clientData){
1218 wxPyClientData* data = new wxPyClientData(clientData);
1219 self->SetClientObject(n, data);
1220 }
1221
1222
8edf1c75
RD
1223
1224SWIGSTATIC(float)
1225SWIG_PyObj_AsFloat(PyObject *obj)
1226{
1227 return SWIG_PyObj_AsFloatConv(obj, SWIG_PyObj_AsDouble);
1228}
1229
d14a1e28
RD
1230PyObject *wxSizerItem_GetUserData(wxSizerItem *self){
1231 wxPyUserData* data = (wxPyUserData*)self->GetUserData();
1232 if (data) {
1233 Py_INCREF(data->m_obj);
1234 return data->m_obj;
1235 } else {
1236 Py_INCREF(Py_None);
1237 return Py_None;
1238 }
1239 }
1240
1241// Figure out the type of the sizer item
1242
1243struct wxPySizerItemInfo {
1244 wxPySizerItemInfo()
423f194a
RD
1245 : window(NULL), sizer(NULL), gotSize(False),
1246 size(wxDefaultSize), gotPos(False), pos(-1)
d14a1e28
RD
1247 {}
1248
1249 wxWindow* window;
1250 wxSizer* sizer;
1251 bool gotSize;
1252 wxSize size;
1253 bool gotPos;
1254 int pos;
1255};
1256
1257static wxPySizerItemInfo wxPySizerItemTypeHelper(PyObject* item, bool checkSize, bool checkIdx ) {
1258
1259 wxPySizerItemInfo info;
1260 wxSize size;
1261 wxSize* sizePtr = &size;
1262
1263 // Find out what the type of the item is
1264 // try wxWindow
1265 if ( ! wxPyConvertSwigPtr(item, (void**)&info.window, wxT("wxWindow")) ) {
1266 PyErr_Clear();
1267 info.window = NULL;
1268
1269 // try wxSizer
1270 if ( ! wxPyConvertSwigPtr(item, (void**)&info.sizer, wxT("wxSizer")) ) {
1271 PyErr_Clear();
1272 info.sizer = NULL;
1273
1274 // try wxSize or (w,h)
1275 if ( checkSize && wxSize_helper(item, &sizePtr)) {
1276 info.size = *sizePtr;
423f194a 1277 info.gotSize = True;
d14a1e28
RD
1278 }
1279
1280 // or a single int
1281 if (checkIdx && PyInt_Check(item)) {
1282 info.pos = PyInt_AsLong(item);
423f194a 1283 info.gotPos = True;
d14a1e28
RD
1284 }
1285 }
1286 }
1287
1288 if ( !(info.window || info.sizer || (checkSize && info.gotSize) || (checkIdx && info.gotPos)) ) {
1289 // no expected type, figure out what kind of error message to generate
1290 if ( !checkSize && !checkIdx )
1291 PyErr_SetString(PyExc_TypeError, "wxWindow or wxSizer expected for item");
1292 else if ( checkSize && !checkIdx )
1293 PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) expected for item");
1294 else if ( !checkSize && checkIdx)
1295 PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer or int (position) expected for item");
1296 else
1297 // can this one happen?
1298 PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) or int (position) expected for item");
1299 }
1300
1301 return info;
1302}
1303
1304void wxSizer__setOORInfo(wxSizer *self,PyObject *_self){
1305 self->SetClientObject(new wxPyOORClientData(_self));
1306 }
1307void wxSizer_Add(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){
1308
1309 wxPyUserData* data = NULL;
1310 wxPyBeginBlockThreads();
423f194a 1311 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False);
d14a1e28
RD
1312 if ( userData && (info.window || info.sizer || info.gotSize) )
1313 data = new wxPyUserData(userData);
1314 wxPyEndBlockThreads();
1315
1316 // Now call the real Add method if a valid item type was found
1317 if ( info.window )
1318 self->Add(info.window, proportion, flag, border, data);
1319 else if ( info.sizer )
1320 self->Add(info.sizer, proportion, flag, border, data);
1321 else if (info.gotSize)
1322 self->Add(info.size.GetWidth(), info.size.GetHeight(),
1323 proportion, flag, border, data);
1324 }
1325void wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion,int flag,int border,PyObject *userData){
1326
1327 wxPyUserData* data = NULL;
1328 wxPyBeginBlockThreads();
423f194a 1329 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False);
d14a1e28
RD
1330 if ( userData && (info.window || info.sizer || info.gotSize) )
1331 data = new wxPyUserData(userData);
1332 wxPyEndBlockThreads();
1333
1334 // Now call the real Insert method if a valid item type was found
1335 if ( info.window )
1336 self->Insert(before, info.window, proportion, flag, border, data);
1337 else if ( info.sizer )
1338 self->Insert(before, info.sizer, proportion, flag, border, data);
1339 else if (info.gotSize)
1340 self->Insert(before, info.size.GetWidth(), info.size.GetHeight(),
1341 proportion, flag, border, data);
1342 }
1343void wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){
1344
1345 wxPyUserData* data = NULL;
1346 wxPyBeginBlockThreads();
423f194a 1347 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False);
d14a1e28
RD
1348 if ( userData && (info.window || info.sizer || info.gotSize) )
1349 data = new wxPyUserData(userData);
1350 wxPyEndBlockThreads();
1351
1352 // Now call the real Prepend method if a valid item type was found
1353 if ( info.window )
1354 self->Prepend(info.window, proportion, flag, border, data);
1355 else if ( info.sizer )
1356 self->Prepend(info.sizer, proportion, flag, border, data);
1357 else if (info.gotSize)
1358 self->Prepend(info.size.GetWidth(), info.size.GetHeight(),
1359 proportion, flag, border, data);
1360 }
1361bool wxSizer_Remove(wxSizer *self,PyObject *item){
1362 wxPyBeginBlockThreads();
423f194a 1363 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True);
d14a1e28
RD
1364 wxPyEndBlockThreads();
1365 if ( info.window )
1366 return self->Remove(info.window);
1367 else if ( info.sizer )
1368 return self->Remove(info.sizer);
1369 else if ( info.gotPos )
1370 return self->Remove(info.pos);
1371 else
423f194a 1372 return False;
d14a1e28 1373 }
423f194a 1374void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize const &size){
d14a1e28 1375 wxPyBeginBlockThreads();
423f194a 1376 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True);
d14a1e28
RD
1377 wxPyEndBlockThreads();
1378 if ( info.window )
1379 self->SetItemMinSize(info.window, size);
1380 else if ( info.sizer )
1381 self->SetItemMinSize(info.sizer, size);
1382 else if ( info.gotPos )
1383 self->SetItemMinSize(info.pos, size);
1384 }
1385PyObject *wxSizer_GetChildren(wxSizer *self){
1386 wxSizerItemList& list = self->GetChildren();
1387 return wxPy_ConvertList(&list);
1388 }
1389void wxSizer_Show(wxSizer *self,PyObject *item,bool show){
423f194a 1390 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False);
d14a1e28
RD
1391 if ( info.window )
1392 self->Show(info.window, show);
1393 else if ( info.sizer )
1394 self->Show(info.sizer, show);
1395 }
1396void wxSizer_Hide(wxSizer *self,PyObject *item){
423f194a 1397 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False);
d14a1e28
RD
1398 if ( info.window )
1399 self->Hide(info.window);
1400 else if ( info.sizer )
1401 self->Hide(info.sizer);
1402 }
1403bool wxSizer_IsShown(wxSizer *self,PyObject *item){
423f194a 1404 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False);
d14a1e28
RD
1405 if ( info.window )
1406 return self->IsShown(info.window);
1407 else if ( info.sizer )
1408 return self->IsShown(info.sizer);
1409 else
423f194a 1410 return False;
d14a1e28
RD
1411 }
1412
1413// See pyclasses.h
1414IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes);
1415IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin);
1416IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer);
1417
1418
1419
1420
1421bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj)
1422{
1423 return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition"));
1424}
1425
1426bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj)
1427{
1428 return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan"));
1429}
1430
1431
423f194a
RD
1432void wxGBPosition_Set(wxGBPosition *self,int row,int col){
1433 self->SetRow(row);
1434 self->SetCol(col);
1435 }
1436PyObject *wxGBPosition_Get(wxGBPosition *self){
d14a1e28
RD
1437 wxPyBeginBlockThreads();
1438 PyObject* tup = PyTuple_New(2);
1439 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow()));
1440 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol()));
1441 wxPyEndBlockThreads();
1442 return tup;
1443 }
423f194a
RD
1444void wxGBSpan_Set(wxGBSpan *self,int rowspan,int colspan){
1445 self->SetRowspan(rowspan);
1446 self->SetColspan(colspan);
1447 }
1448PyObject *wxGBSpan_Get(wxGBSpan *self){
d14a1e28
RD
1449 wxPyBeginBlockThreads();
1450 PyObject* tup = PyTuple_New(2);
1451 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRowspan()));
1452 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetColspan()));
1453 wxPyEndBlockThreads();
1454 return tup;
1455 }
1456bool wxGridBagSizer_Add(wxGridBagSizer *self,PyObject *item,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){
1457
1458 wxPyUserData* data = NULL;
1459 wxPyBeginBlockThreads();
423f194a 1460 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False);
d14a1e28
RD
1461 if ( userData && (info.window || info.sizer || info.gotSize) )
1462 data = new wxPyUserData(userData);
1463 wxPyEndBlockThreads();
1464
1465 // Now call the real Add method if a valid item type was found
1466 if ( info.window )
1467 return self->Add(info.window, pos, span, flag, border, data);
1468 else if ( info.sizer )
1469 return self->Add(info.sizer, pos, span, flag, border, data);
1470 else if (info.gotSize)
1471 return self->Add(info.size.GetWidth(), info.size.GetHeight(),
1472 pos, span, flag, border, data);
423f194a 1473 return False;
d14a1e28
RD
1474 }
1475
1476
1477#ifdef __cplusplus
1478extern "C" {
1479#endif
8edf1c75 1480static int _wrap_EmptyString_set(PyObject *) {
d03fd34d
RD
1481 PyErr_SetString(PyExc_TypeError,"Variable EmptyString is read-only.");
1482 return 1;
1483}
1484
1485
1486static PyObject *_wrap_EmptyString_get() {
1487 PyObject *pyobj;
1488
1489 {
1490#if wxUSE_UNICODE
1491 pyobj = PyUnicode_FromWideChar((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len());
1492#else
1493 pyobj = PyString_FromStringAndSize((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len());
1494#endif
1495 }
1496 return pyobj;
1497}
1498
1499
d14a1e28
RD
1500static PyObject *_wrap_Object_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) {
1501 PyObject *resultobj;
1502 wxObject *arg1 = (wxObject *) 0 ;
1503 wxString result;
1504 PyObject * obj0 = 0 ;
1505 char *kwnames[] = {
1506 (char *) "self", NULL
1507 };
1508
1509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_GetClassName",kwnames,&obj0)) goto fail;
1510 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1511 {
1512 PyThreadState* __tstate = wxPyBeginAllowThreads();
1513 result = wxObject_GetClassName(arg1);
1514
1515 wxPyEndAllowThreads(__tstate);
1516 if (PyErr_Occurred()) SWIG_fail;
1517 }
1518 {
1519#if wxUSE_UNICODE
1520 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
1521#else
1522 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
1523#endif
1524 }
1525 return resultobj;
1526 fail:
1527 return NULL;
1528}
1529
1530
1531static PyObject *_wrap_Object_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
1532 PyObject *resultobj;
1533 wxObject *arg1 = (wxObject *) 0 ;
1534 PyObject * obj0 = 0 ;
1535 char *kwnames[] = {
1536 (char *) "self", NULL
1537 };
1538
1539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_Destroy",kwnames,&obj0)) goto fail;
1540 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1541 {
1542 PyThreadState* __tstate = wxPyBeginAllowThreads();
1543 wxObject_Destroy(arg1);
1544
1545 wxPyEndAllowThreads(__tstate);
1546 if (PyErr_Occurred()) SWIG_fail;
1547 }
1548 Py_INCREF(Py_None); resultobj = Py_None;
1549 return resultobj;
1550 fail:
1551 return NULL;
1552}
1553
1554
1555static PyObject * Object_swigregister(PyObject *self, PyObject *args) {
1556 PyObject *obj;
1557 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1558 SWIG_TypeClientData(SWIGTYPE_p_wxObject, obj);
1559 Py_INCREF(obj);
1560 return Py_BuildValue((char *)"");
1561}
1562static PyObject *_wrap_Size_width_set(PyObject *self, PyObject *args, PyObject *kwargs) {
1563 PyObject *resultobj;
1564 wxSize *arg1 = (wxSize *) 0 ;
1565 int arg2 ;
1566 PyObject * obj0 = 0 ;
8edf1c75 1567 PyObject * obj1 = 0 ;
d14a1e28
RD
1568 char *kwnames[] = {
1569 (char *) "self",(char *) "x", NULL
1570 };
1571
8edf1c75 1572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_width_set",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 1573 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
1574 {
1575 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1576 if (PyErr_Occurred()) SWIG_fail;
1577 }
d14a1e28
RD
1578 if (arg1) (arg1)->x = arg2;
1579
1580 Py_INCREF(Py_None); resultobj = Py_None;
1581 return resultobj;
1582 fail:
1583 return NULL;
1584}
1585
1586
1587static PyObject *_wrap_Size_width_get(PyObject *self, PyObject *args, PyObject *kwargs) {
1588 PyObject *resultobj;
1589 wxSize *arg1 = (wxSize *) 0 ;
1590 int result;
1591 PyObject * obj0 = 0 ;
1592 char *kwnames[] = {
1593 (char *) "self", NULL
1594 };
1595
1596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_width_get",kwnames,&obj0)) goto fail;
1597 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1598 result = (int) ((arg1)->x);
1599
8edf1c75 1600 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
1601 return resultobj;
1602 fail:
1603 return NULL;
1604}
1605
1606
1607static PyObject *_wrap_Size_height_set(PyObject *self, PyObject *args, PyObject *kwargs) {
1608 PyObject *resultobj;
1609 wxSize *arg1 = (wxSize *) 0 ;
1610 int arg2 ;
1611 PyObject * obj0 = 0 ;
8edf1c75 1612 PyObject * obj1 = 0 ;
d14a1e28
RD
1613 char *kwnames[] = {
1614 (char *) "self",(char *) "y", NULL
1615 };
1616
8edf1c75 1617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_height_set",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 1618 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
1619 {
1620 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1621 if (PyErr_Occurred()) SWIG_fail;
1622 }
d14a1e28
RD
1623 if (arg1) (arg1)->y = arg2;
1624
1625 Py_INCREF(Py_None); resultobj = Py_None;
1626 return resultobj;
1627 fail:
1628 return NULL;
1629}
1630
1631
1632static PyObject *_wrap_Size_height_get(PyObject *self, PyObject *args, PyObject *kwargs) {
1633 PyObject *resultobj;
1634 wxSize *arg1 = (wxSize *) 0 ;
1635 int result;
1636 PyObject * obj0 = 0 ;
1637 char *kwnames[] = {
1638 (char *) "self", NULL
1639 };
1640
1641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_height_get",kwnames,&obj0)) goto fail;
1642 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1643 result = (int) ((arg1)->y);
1644
8edf1c75 1645 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
1646 return resultobj;
1647 fail:
1648 return NULL;
1649}
1650
1651
1652static PyObject *_wrap_new_Size(PyObject *self, PyObject *args, PyObject *kwargs) {
1653 PyObject *resultobj;
1654 int arg1 = (int) 0 ;
1655 int arg2 = (int) 0 ;
1656 wxSize *result;
8edf1c75
RD
1657 PyObject * obj0 = 0 ;
1658 PyObject * obj1 = 0 ;
d14a1e28
RD
1659 char *kwnames[] = {
1660 (char *) "w",(char *) "h", NULL
1661 };
1662
8edf1c75
RD
1663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Size",kwnames,&obj0,&obj1)) goto fail;
1664 if (obj0) {
1665 {
1666 arg1 = (int) SWIG_PyObj_AsInt(obj0);
1667 if (PyErr_Occurred()) SWIG_fail;
1668 }
1669 }
1670 if (obj1) {
1671 {
1672 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1673 if (PyErr_Occurred()) SWIG_fail;
1674 }
1675 }
d14a1e28
RD
1676 {
1677 PyThreadState* __tstate = wxPyBeginAllowThreads();
1678 result = (wxSize *)new wxSize(arg1,arg2);
1679
1680 wxPyEndAllowThreads(__tstate);
1681 if (PyErr_Occurred()) SWIG_fail;
1682 }
1683 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSize, 1);
1684 return resultobj;
1685 fail:
1686 return NULL;
1687}
1688
1689
1690static PyObject *_wrap_delete_Size(PyObject *self, PyObject *args, PyObject *kwargs) {
1691 PyObject *resultobj;
1692 wxSize *arg1 = (wxSize *) 0 ;
1693 PyObject * obj0 = 0 ;
1694 char *kwnames[] = {
1695 (char *) "self", NULL
1696 };
1697
1698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Size",kwnames,&obj0)) goto fail;
1699 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1700 {
1701 PyThreadState* __tstate = wxPyBeginAllowThreads();
1702 delete arg1;
1703
1704 wxPyEndAllowThreads(__tstate);
1705 if (PyErr_Occurred()) SWIG_fail;
1706 }
1707 Py_INCREF(Py_None); resultobj = Py_None;
1708 return resultobj;
1709 fail:
1710 return NULL;
1711}
1712
1713
1714static PyObject *_wrap_Size___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1715 PyObject *resultobj;
1716 wxSize *arg1 = (wxSize *) 0 ;
1717 wxSize *arg2 = 0 ;
1718 bool result;
1719 wxSize temp2 ;
1720 PyObject * obj0 = 0 ;
1721 PyObject * obj1 = 0 ;
1722 char *kwnames[] = {
1723 (char *) "self",(char *) "sz", NULL
1724 };
1725
1726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___eq__",kwnames,&obj0,&obj1)) goto fail;
1727 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1728 {
1729 arg2 = &temp2;
1730 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
1731 }
1732 {
1733 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 1734 result = (bool)(arg1)->operator ==((wxSize const &)*arg2);
d14a1e28
RD
1735
1736 wxPyEndAllowThreads(__tstate);
1737 if (PyErr_Occurred()) SWIG_fail;
1738 }
4e760a36 1739 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
1740 return resultobj;
1741 fail:
1742 return NULL;
1743}
1744
1745
1746static PyObject *_wrap_Size___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1747 PyObject *resultobj;
1748 wxSize *arg1 = (wxSize *) 0 ;
1749 wxSize *arg2 = 0 ;
1750 bool result;
1751 wxSize temp2 ;
1752 PyObject * obj0 = 0 ;
1753 PyObject * obj1 = 0 ;
1754 char *kwnames[] = {
1755 (char *) "self",(char *) "sz", NULL
1756 };
1757
1758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___ne__",kwnames,&obj0,&obj1)) goto fail;
1759 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1760 {
1761 arg2 = &temp2;
1762 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
1763 }
1764 {
1765 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 1766 result = (bool)(arg1)->operator !=((wxSize const &)*arg2);
d14a1e28
RD
1767
1768 wxPyEndAllowThreads(__tstate);
1769 if (PyErr_Occurred()) SWIG_fail;
1770 }
4e760a36 1771 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
1772 return resultobj;
1773 fail:
1774 return NULL;
1775}
1776
1777
1778static PyObject *_wrap_Size___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
1779 PyObject *resultobj;
1780 wxSize *arg1 = (wxSize *) 0 ;
1781 wxSize *arg2 = 0 ;
1782 wxSize result;
1783 wxSize temp2 ;
1784 PyObject * obj0 = 0 ;
1785 PyObject * obj1 = 0 ;
1786 char *kwnames[] = {
1787 (char *) "self",(char *) "sz", NULL
1788 };
1789
1790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___add__",kwnames,&obj0,&obj1)) goto fail;
1791 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1792 {
1793 arg2 = &temp2;
1794 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
1795 }
1796 {
1797 PyThreadState* __tstate = wxPyBeginAllowThreads();
1798 result = (arg1)->operator +((wxSize const &)*arg2);
1799
1800 wxPyEndAllowThreads(__tstate);
1801 if (PyErr_Occurred()) SWIG_fail;
1802 }
1803 {
1804 wxSize * resultptr;
1805 resultptr = new wxSize((wxSize &) result);
1806 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
1807 }
1808 return resultobj;
1809 fail:
1810 return NULL;
1811}
1812
1813
1814static PyObject *_wrap_Size___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
1815 PyObject *resultobj;
1816 wxSize *arg1 = (wxSize *) 0 ;
1817 wxSize *arg2 = 0 ;
1818 wxSize result;
1819 wxSize temp2 ;
1820 PyObject * obj0 = 0 ;
1821 PyObject * obj1 = 0 ;
1822 char *kwnames[] = {
1823 (char *) "self",(char *) "sz", NULL
1824 };
1825
1826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___sub__",kwnames,&obj0,&obj1)) goto fail;
1827 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1828 {
1829 arg2 = &temp2;
1830 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
1831 }
1832 {
1833 PyThreadState* __tstate = wxPyBeginAllowThreads();
1834 result = (arg1)->operator -((wxSize const &)*arg2);
1835
1836 wxPyEndAllowThreads(__tstate);
1837 if (PyErr_Occurred()) SWIG_fail;
1838 }
1839 {
1840 wxSize * resultptr;
1841 resultptr = new wxSize((wxSize &) result);
1842 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
1843 }
1844 return resultobj;
1845 fail:
1846 return NULL;
1847}
1848
1849
1850static PyObject *_wrap_Size_IncTo(PyObject *self, PyObject *args, PyObject *kwargs) {
1851 PyObject *resultobj;
1852 wxSize *arg1 = (wxSize *) 0 ;
1853 wxSize *arg2 = 0 ;
1854 wxSize temp2 ;
1855 PyObject * obj0 = 0 ;
1856 PyObject * obj1 = 0 ;
1857 char *kwnames[] = {
1858 (char *) "self",(char *) "sz", NULL
1859 };
1860
1861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_IncTo",kwnames,&obj0,&obj1)) goto fail;
1862 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1863 {
1864 arg2 = &temp2;
1865 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
1866 }
1867 {
1868 PyThreadState* __tstate = wxPyBeginAllowThreads();
1869 (arg1)->IncTo((wxSize const &)*arg2);
1870
1871 wxPyEndAllowThreads(__tstate);
1872 if (PyErr_Occurred()) SWIG_fail;
1873 }
1874 Py_INCREF(Py_None); resultobj = Py_None;
1875 return resultobj;
1876 fail:
1877 return NULL;
1878}
1879
1880
1881static PyObject *_wrap_Size_DecTo(PyObject *self, PyObject *args, PyObject *kwargs) {
1882 PyObject *resultobj;
1883 wxSize *arg1 = (wxSize *) 0 ;
1884 wxSize *arg2 = 0 ;
1885 wxSize temp2 ;
1886 PyObject * obj0 = 0 ;
1887 PyObject * obj1 = 0 ;
1888 char *kwnames[] = {
1889 (char *) "self",(char *) "sz", NULL
1890 };
1891
1892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_DecTo",kwnames,&obj0,&obj1)) goto fail;
1893 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1894 {
1895 arg2 = &temp2;
1896 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
1897 }
1898 {
1899 PyThreadState* __tstate = wxPyBeginAllowThreads();
1900 (arg1)->DecTo((wxSize const &)*arg2);
1901
1902 wxPyEndAllowThreads(__tstate);
1903 if (PyErr_Occurred()) SWIG_fail;
1904 }
1905 Py_INCREF(Py_None); resultobj = Py_None;
1906 return resultobj;
1907 fail:
1908 return NULL;
1909}
1910
1911
1912static PyObject *_wrap_Size_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1913 PyObject *resultobj;
1914 wxSize *arg1 = (wxSize *) 0 ;
1915 int arg2 ;
1916 int arg3 ;
1917 PyObject * obj0 = 0 ;
8edf1c75
RD
1918 PyObject * obj1 = 0 ;
1919 PyObject * obj2 = 0 ;
d14a1e28 1920 char *kwnames[] = {
423f194a 1921 (char *) "self",(char *) "w",(char *) "h", NULL
d14a1e28
RD
1922 };
1923
8edf1c75 1924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 1925 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
1926 {
1927 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1928 if (PyErr_Occurred()) SWIG_fail;
1929 }
1930 {
1931 arg3 = (int) SWIG_PyObj_AsInt(obj2);
1932 if (PyErr_Occurred()) SWIG_fail;
1933 }
d14a1e28
RD
1934 {
1935 PyThreadState* __tstate = wxPyBeginAllowThreads();
1936 (arg1)->Set(arg2,arg3);
1937
1938 wxPyEndAllowThreads(__tstate);
1939 if (PyErr_Occurred()) SWIG_fail;
1940 }
1941 Py_INCREF(Py_None); resultobj = Py_None;
1942 return resultobj;
1943 fail:
1944 return NULL;
1945}
1946
1947
1948static PyObject *_wrap_Size_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1949 PyObject *resultobj;
1950 wxSize *arg1 = (wxSize *) 0 ;
1951 int arg2 ;
1952 PyObject * obj0 = 0 ;
8edf1c75 1953 PyObject * obj1 = 0 ;
d14a1e28
RD
1954 char *kwnames[] = {
1955 (char *) "self",(char *) "w", NULL
1956 };
1957
8edf1c75 1958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetWidth",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 1959 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
1960 {
1961 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1962 if (PyErr_Occurred()) SWIG_fail;
1963 }
d14a1e28
RD
1964 {
1965 PyThreadState* __tstate = wxPyBeginAllowThreads();
1966 (arg1)->SetWidth(arg2);
1967
1968 wxPyEndAllowThreads(__tstate);
1969 if (PyErr_Occurred()) SWIG_fail;
1970 }
1971 Py_INCREF(Py_None); resultobj = Py_None;
1972 return resultobj;
1973 fail:
1974 return NULL;
1975}
1976
1977
1978static PyObject *_wrap_Size_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
1979 PyObject *resultobj;
1980 wxSize *arg1 = (wxSize *) 0 ;
1981 int arg2 ;
1982 PyObject * obj0 = 0 ;
8edf1c75 1983 PyObject * obj1 = 0 ;
d14a1e28
RD
1984 char *kwnames[] = {
1985 (char *) "self",(char *) "h", NULL
1986 };
1987
8edf1c75 1988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetHeight",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 1989 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
1990 {
1991 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1992 if (PyErr_Occurred()) SWIG_fail;
1993 }
d14a1e28
RD
1994 {
1995 PyThreadState* __tstate = wxPyBeginAllowThreads();
1996 (arg1)->SetHeight(arg2);
1997
1998 wxPyEndAllowThreads(__tstate);
1999 if (PyErr_Occurred()) SWIG_fail;
2000 }
2001 Py_INCREF(Py_None); resultobj = Py_None;
2002 return resultobj;
2003 fail:
2004 return NULL;
2005}
2006
2007
2008static PyObject *_wrap_Size_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2009 PyObject *resultobj;
2010 wxSize *arg1 = (wxSize *) 0 ;
2011 int result;
2012 PyObject * obj0 = 0 ;
2013 char *kwnames[] = {
2014 (char *) "self", NULL
2015 };
2016
2017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetWidth",kwnames,&obj0)) goto fail;
2018 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2019 {
2020 PyThreadState* __tstate = wxPyBeginAllowThreads();
2021 result = (int)((wxSize const *)arg1)->GetWidth();
2022
2023 wxPyEndAllowThreads(__tstate);
2024 if (PyErr_Occurred()) SWIG_fail;
2025 }
8edf1c75 2026 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
2027 return resultobj;
2028 fail:
2029 return NULL;
2030}
2031
2032
2033static PyObject *_wrap_Size_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2034 PyObject *resultobj;
2035 wxSize *arg1 = (wxSize *) 0 ;
2036 int result;
2037 PyObject * obj0 = 0 ;
2038 char *kwnames[] = {
2039 (char *) "self", NULL
2040 };
2041
2042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetHeight",kwnames,&obj0)) goto fail;
2043 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2044 {
2045 PyThreadState* __tstate = wxPyBeginAllowThreads();
2046 result = (int)((wxSize const *)arg1)->GetHeight();
2047
2048 wxPyEndAllowThreads(__tstate);
2049 if (PyErr_Occurred()) SWIG_fail;
2050 }
8edf1c75 2051 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
2052 return resultobj;
2053 fail:
2054 return NULL;
2055}
2056
2057
423f194a 2058static PyObject *_wrap_Size_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
2059 PyObject *resultobj;
2060 wxSize *arg1 = (wxSize *) 0 ;
2061 PyObject *result;
2062 PyObject * obj0 = 0 ;
2063 char *kwnames[] = {
2064 (char *) "self", NULL
2065 };
2066
423f194a 2067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_Get",kwnames,&obj0)) goto fail;
d14a1e28
RD
2068 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2069 {
2070 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 2071 result = (PyObject *)wxSize_Get(arg1);
d14a1e28
RD
2072
2073 wxPyEndAllowThreads(__tstate);
2074 if (PyErr_Occurred()) SWIG_fail;
2075 }
2076 resultobj = result;
2077 return resultobj;
2078 fail:
2079 return NULL;
2080}
2081
2082
2083static PyObject * Size_swigregister(PyObject *self, PyObject *args) {
2084 PyObject *obj;
2085 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2086 SWIG_TypeClientData(SWIGTYPE_p_wxSize, obj);
2087 Py_INCREF(obj);
2088 return Py_BuildValue((char *)"");
2089}
2090static PyObject *_wrap_RealPoint_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
2091 PyObject *resultobj;
2092 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2093 double arg2 ;
2094 PyObject * obj0 = 0 ;
8edf1c75 2095 PyObject * obj1 = 0 ;
d14a1e28
RD
2096 char *kwnames[] = {
2097 (char *) "self",(char *) "x", NULL
2098 };
2099
8edf1c75 2100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_x_set",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 2101 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
2102 {
2103 arg2 = (double) SWIG_PyObj_AsDouble(obj1);
2104 if (PyErr_Occurred()) SWIG_fail;
2105 }
d14a1e28
RD
2106 if (arg1) (arg1)->x = arg2;
2107
2108 Py_INCREF(Py_None); resultobj = Py_None;
2109 return resultobj;
2110 fail:
2111 return NULL;
2112}
2113
2114
2115static PyObject *_wrap_RealPoint_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
2116 PyObject *resultobj;
2117 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2118 double result;
2119 PyObject * obj0 = 0 ;
2120 char *kwnames[] = {
2121 (char *) "self", NULL
2122 };
2123
2124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_x_get",kwnames,&obj0)) goto fail;
2125 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2126 result = (double) ((arg1)->x);
2127
8edf1c75 2128 resultobj = SWIG_PyObj_FromDouble((double)result);
d14a1e28
RD
2129 return resultobj;
2130 fail:
2131 return NULL;
2132}
2133
2134
2135static PyObject *_wrap_RealPoint_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
2136 PyObject *resultobj;
2137 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2138 double arg2 ;
2139 PyObject * obj0 = 0 ;
8edf1c75 2140 PyObject * obj1 = 0 ;
d14a1e28
RD
2141 char *kwnames[] = {
2142 (char *) "self",(char *) "y", NULL
2143 };
2144
8edf1c75 2145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_y_set",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 2146 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
2147 {
2148 arg2 = (double) SWIG_PyObj_AsDouble(obj1);
2149 if (PyErr_Occurred()) SWIG_fail;
2150 }
d14a1e28
RD
2151 if (arg1) (arg1)->y = arg2;
2152
2153 Py_INCREF(Py_None); resultobj = Py_None;
2154 return resultobj;
2155 fail:
2156 return NULL;
2157}
2158
2159
2160static PyObject *_wrap_RealPoint_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
2161 PyObject *resultobj;
2162 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2163 double result;
2164 PyObject * obj0 = 0 ;
2165 char *kwnames[] = {
2166 (char *) "self", NULL
2167 };
2168
2169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_y_get",kwnames,&obj0)) goto fail;
2170 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2171 result = (double) ((arg1)->y);
2172
8edf1c75 2173 resultobj = SWIG_PyObj_FromDouble((double)result);
d14a1e28
RD
2174 return resultobj;
2175 fail:
2176 return NULL;
2177}
2178
2179
2180static PyObject *_wrap_new_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
2181 PyObject *resultobj;
2182 double arg1 = (double) 0.0 ;
2183 double arg2 = (double) 0.0 ;
2184 wxRealPoint *result;
8edf1c75
RD
2185 PyObject * obj0 = 0 ;
2186 PyObject * obj1 = 0 ;
d14a1e28
RD
2187 char *kwnames[] = {
2188 (char *) "x",(char *) "y", NULL
2189 };
2190
8edf1c75
RD
2191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RealPoint",kwnames,&obj0,&obj1)) goto fail;
2192 if (obj0) {
2193 {
2194 arg1 = (double) SWIG_PyObj_AsDouble(obj0);
2195 if (PyErr_Occurred()) SWIG_fail;
2196 }
2197 }
2198 if (obj1) {
2199 {
2200 arg2 = (double) SWIG_PyObj_AsDouble(obj1);
2201 if (PyErr_Occurred()) SWIG_fail;
2202 }
2203 }
d14a1e28
RD
2204 {
2205 PyThreadState* __tstate = wxPyBeginAllowThreads();
2206 result = (wxRealPoint *)new wxRealPoint(arg1,arg2);
2207
2208 wxPyEndAllowThreads(__tstate);
2209 if (PyErr_Occurred()) SWIG_fail;
2210 }
2211 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRealPoint, 1);
2212 return resultobj;
2213 fail:
2214 return NULL;
2215}
2216
2217
2218static PyObject *_wrap_delete_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
2219 PyObject *resultobj;
2220 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2221 PyObject * obj0 = 0 ;
2222 char *kwnames[] = {
2223 (char *) "self", NULL
2224 };
2225
2226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RealPoint",kwnames,&obj0)) goto fail;
2227 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2228 {
2229 PyThreadState* __tstate = wxPyBeginAllowThreads();
2230 delete arg1;
2231
2232 wxPyEndAllowThreads(__tstate);
2233 if (PyErr_Occurred()) SWIG_fail;
2234 }
2235 Py_INCREF(Py_None); resultobj = Py_None;
2236 return resultobj;
2237 fail:
2238 return NULL;
2239}
2240
2241
423f194a 2242static PyObject *_wrap_RealPoint___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
2243 PyObject *resultobj;
2244 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2245 wxRealPoint *arg2 = 0 ;
423f194a 2246 bool result;
d14a1e28
RD
2247 wxRealPoint temp2 ;
2248 PyObject * obj0 = 0 ;
2249 PyObject * obj1 = 0 ;
2250 char *kwnames[] = {
2251 (char *) "self",(char *) "pt", NULL
2252 };
2253
423f194a 2254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___eq__",kwnames,&obj0,&obj1)) goto fail;
d14a1e28
RD
2255 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2256 {
2257 arg2 = &temp2;
2258 if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail;
2259 }
2260 {
2261 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 2262 result = (bool)(arg1)->operator ==((wxRealPoint const &)*arg2);
d14a1e28
RD
2263
2264 wxPyEndAllowThreads(__tstate);
2265 if (PyErr_Occurred()) SWIG_fail;
2266 }
4e760a36 2267 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
2268 return resultobj;
2269 fail:
2270 return NULL;
2271}
2272
2273
423f194a 2274static PyObject *_wrap_RealPoint___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
2275 PyObject *resultobj;
2276 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2277 wxRealPoint *arg2 = 0 ;
423f194a 2278 bool result;
d14a1e28
RD
2279 wxRealPoint temp2 ;
2280 PyObject * obj0 = 0 ;
2281 PyObject * obj1 = 0 ;
2282 char *kwnames[] = {
2283 (char *) "self",(char *) "pt", NULL
2284 };
2285
423f194a 2286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___ne__",kwnames,&obj0,&obj1)) goto fail;
d14a1e28
RD
2287 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2288 {
2289 arg2 = &temp2;
2290 if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail;
2291 }
2292 {
2293 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 2294 result = (bool)(arg1)->operator !=((wxRealPoint const &)*arg2);
d14a1e28
RD
2295
2296 wxPyEndAllowThreads(__tstate);
2297 if (PyErr_Occurred()) SWIG_fail;
2298 }
4e760a36 2299 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
2300 return resultobj;
2301 fail:
2302 return NULL;
2303}
2304
2305
423f194a 2306static PyObject *_wrap_RealPoint___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
2307 PyObject *resultobj;
2308 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2309 wxRealPoint *arg2 = 0 ;
423f194a 2310 wxRealPoint result;
d14a1e28
RD
2311 wxRealPoint temp2 ;
2312 PyObject * obj0 = 0 ;
2313 PyObject * obj1 = 0 ;
2314 char *kwnames[] = {
2315 (char *) "self",(char *) "pt", NULL
2316 };
2317
423f194a 2318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___add__",kwnames,&obj0,&obj1)) goto fail;
d14a1e28
RD
2319 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2320 {
2321 arg2 = &temp2;
2322 if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail;
2323 }
2324 {
2325 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 2326 result = (arg1)->operator +((wxRealPoint const &)*arg2);
d14a1e28
RD
2327
2328 wxPyEndAllowThreads(__tstate);
2329 if (PyErr_Occurred()) SWIG_fail;
2330 }
423f194a
RD
2331 {
2332 wxRealPoint * resultptr;
2333 resultptr = new wxRealPoint((wxRealPoint &) result);
2334 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRealPoint, 1);
2335 }
d14a1e28
RD
2336 return resultobj;
2337 fail:
2338 return NULL;
2339}
2340
2341
423f194a 2342static PyObject *_wrap_RealPoint___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
2343 PyObject *resultobj;
2344 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2345 wxRealPoint *arg2 = 0 ;
423f194a 2346 wxRealPoint result;
d14a1e28
RD
2347 wxRealPoint temp2 ;
2348 PyObject * obj0 = 0 ;
2349 PyObject * obj1 = 0 ;
2350 char *kwnames[] = {
2351 (char *) "self",(char *) "pt", NULL
2352 };
2353
423f194a 2354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___sub__",kwnames,&obj0,&obj1)) goto fail;
d14a1e28
RD
2355 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2356 {
2357 arg2 = &temp2;
2358 if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail;
2359 }
2360 {
2361 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 2362 result = (arg1)->operator -((wxRealPoint const &)*arg2);
d14a1e28
RD
2363
2364 wxPyEndAllowThreads(__tstate);
2365 if (PyErr_Occurred()) SWIG_fail;
2366 }
423f194a
RD
2367 {
2368 wxRealPoint * resultptr;
2369 resultptr = new wxRealPoint((wxRealPoint &) result);
2370 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRealPoint, 1);
2371 }
d14a1e28
RD
2372 return resultobj;
2373 fail:
2374 return NULL;
2375}
2376
2377
2378static PyObject *_wrap_RealPoint_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
2379 PyObject *resultobj;
2380 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2381 double arg2 ;
2382 double arg3 ;
2383 PyObject * obj0 = 0 ;
8edf1c75
RD
2384 PyObject * obj1 = 0 ;
2385 PyObject * obj2 = 0 ;
d14a1e28
RD
2386 char *kwnames[] = {
2387 (char *) "self",(char *) "x",(char *) "y", NULL
2388 };
2389
8edf1c75 2390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RealPoint_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 2391 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
2392 {
2393 arg2 = (double) SWIG_PyObj_AsDouble(obj1);
2394 if (PyErr_Occurred()) SWIG_fail;
2395 }
2396 {
2397 arg3 = (double) SWIG_PyObj_AsDouble(obj2);
2398 if (PyErr_Occurred()) SWIG_fail;
2399 }
d14a1e28
RD
2400 {
2401 PyThreadState* __tstate = wxPyBeginAllowThreads();
2402 wxRealPoint_Set(arg1,arg2,arg3);
2403
2404 wxPyEndAllowThreads(__tstate);
2405 if (PyErr_Occurred()) SWIG_fail;
2406 }
2407 Py_INCREF(Py_None); resultobj = Py_None;
2408 return resultobj;
2409 fail:
2410 return NULL;
2411}
2412
2413
423f194a 2414static PyObject *_wrap_RealPoint_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
2415 PyObject *resultobj;
2416 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2417 PyObject *result;
2418 PyObject * obj0 = 0 ;
2419 char *kwnames[] = {
2420 (char *) "self", NULL
2421 };
2422
423f194a 2423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_Get",kwnames,&obj0)) goto fail;
d14a1e28
RD
2424 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRealPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2425 {
2426 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 2427 result = (PyObject *)wxRealPoint_Get(arg1);
d14a1e28
RD
2428
2429 wxPyEndAllowThreads(__tstate);
2430 if (PyErr_Occurred()) SWIG_fail;
2431 }
2432 resultobj = result;
2433 return resultobj;
2434 fail:
2435 return NULL;
2436}
2437
2438
2439static PyObject * RealPoint_swigregister(PyObject *self, PyObject *args) {
2440 PyObject *obj;
2441 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2442 SWIG_TypeClientData(SWIGTYPE_p_wxRealPoint, obj);
2443 Py_INCREF(obj);
2444 return Py_BuildValue((char *)"");
2445}
2446static PyObject *_wrap_Point_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
2447 PyObject *resultobj;
2448 wxPoint *arg1 = (wxPoint *) 0 ;
2449 int arg2 ;
2450 PyObject * obj0 = 0 ;
8edf1c75 2451 PyObject * obj1 = 0 ;
d14a1e28
RD
2452 char *kwnames[] = {
2453 (char *) "self",(char *) "x", NULL
2454 };
2455
8edf1c75 2456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_x_set",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 2457 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
2458 {
2459 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2460 if (PyErr_Occurred()) SWIG_fail;
2461 }
d14a1e28
RD
2462 if (arg1) (arg1)->x = arg2;
2463
2464 Py_INCREF(Py_None); resultobj = Py_None;
2465 return resultobj;
2466 fail:
2467 return NULL;
2468}
2469
2470
2471static PyObject *_wrap_Point_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
2472 PyObject *resultobj;
2473 wxPoint *arg1 = (wxPoint *) 0 ;
2474 int result;
2475 PyObject * obj0 = 0 ;
2476 char *kwnames[] = {
2477 (char *) "self", NULL
2478 };
2479
2480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_x_get",kwnames,&obj0)) goto fail;
2481 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2482 result = (int) ((arg1)->x);
2483
8edf1c75 2484 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
2485 return resultobj;
2486 fail:
2487 return NULL;
2488}
2489
2490
2491static PyObject *_wrap_Point_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
2492 PyObject *resultobj;
2493 wxPoint *arg1 = (wxPoint *) 0 ;
2494 int arg2 ;
2495 PyObject * obj0 = 0 ;
8edf1c75 2496 PyObject * obj1 = 0 ;
d14a1e28
RD
2497 char *kwnames[] = {
2498 (char *) "self",(char *) "y", NULL
2499 };
2500
8edf1c75 2501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_y_set",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 2502 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
2503 {
2504 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2505 if (PyErr_Occurred()) SWIG_fail;
2506 }
d14a1e28
RD
2507 if (arg1) (arg1)->y = arg2;
2508
2509 Py_INCREF(Py_None); resultobj = Py_None;
2510 return resultobj;
2511 fail:
2512 return NULL;
2513}
2514
2515
2516static PyObject *_wrap_Point_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
2517 PyObject *resultobj;
2518 wxPoint *arg1 = (wxPoint *) 0 ;
2519 int result;
2520 PyObject * obj0 = 0 ;
2521 char *kwnames[] = {
2522 (char *) "self", NULL
2523 };
2524
2525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_y_get",kwnames,&obj0)) goto fail;
2526 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2527 result = (int) ((arg1)->y);
2528
8edf1c75 2529 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
2530 return resultobj;
2531 fail:
2532 return NULL;
2533}
2534
2535
2536static PyObject *_wrap_new_Point(PyObject *self, PyObject *args, PyObject *kwargs) {
2537 PyObject *resultobj;
2538 int arg1 = (int) 0 ;
2539 int arg2 = (int) 0 ;
2540 wxPoint *result;
8edf1c75
RD
2541 PyObject * obj0 = 0 ;
2542 PyObject * obj1 = 0 ;
d14a1e28
RD
2543 char *kwnames[] = {
2544 (char *) "x",(char *) "y", NULL
2545 };
2546
8edf1c75
RD
2547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point",kwnames,&obj0,&obj1)) goto fail;
2548 if (obj0) {
2549 {
2550 arg1 = (int) SWIG_PyObj_AsInt(obj0);
2551 if (PyErr_Occurred()) SWIG_fail;
2552 }
2553 }
2554 if (obj1) {
2555 {
2556 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2557 if (PyErr_Occurred()) SWIG_fail;
2558 }
2559 }
d14a1e28
RD
2560 {
2561 PyThreadState* __tstate = wxPyBeginAllowThreads();
2562 result = (wxPoint *)new wxPoint(arg1,arg2);
2563
2564 wxPyEndAllowThreads(__tstate);
2565 if (PyErr_Occurred()) SWIG_fail;
2566 }
2567 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 1);
2568 return resultobj;
2569 fail:
2570 return NULL;
2571}
2572
2573
2574static PyObject *_wrap_delete_Point(PyObject *self, PyObject *args, PyObject *kwargs) {
2575 PyObject *resultobj;
2576 wxPoint *arg1 = (wxPoint *) 0 ;
2577 PyObject * obj0 = 0 ;
2578 char *kwnames[] = {
2579 (char *) "self", NULL
2580 };
2581
2582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Point",kwnames,&obj0)) goto fail;
2583 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2584 {
2585 PyThreadState* __tstate = wxPyBeginAllowThreads();
2586 delete arg1;
2587
2588 wxPyEndAllowThreads(__tstate);
2589 if (PyErr_Occurred()) SWIG_fail;
2590 }
2591 Py_INCREF(Py_None); resultobj = Py_None;
2592 return resultobj;
2593 fail:
2594 return NULL;
2595}
2596
2597
2598static PyObject *_wrap_Point___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
2599 PyObject *resultobj;
2600 wxPoint *arg1 = (wxPoint *) 0 ;
2601 wxPoint *arg2 = 0 ;
2602 bool result;
2603 wxPoint temp2 ;
2604 PyObject * obj0 = 0 ;
2605 PyObject * obj1 = 0 ;
2606 char *kwnames[] = {
423f194a 2607 (char *) "self",(char *) "pt", NULL
d14a1e28
RD
2608 };
2609
2610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___eq__",kwnames,&obj0,&obj1)) goto fail;
2611 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2612 {
2613 arg2 = &temp2;
2614 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
2615 }
2616 {
2617 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 2618 result = (bool)(arg1)->operator ==((wxPoint const &)*arg2);
d14a1e28
RD
2619
2620 wxPyEndAllowThreads(__tstate);
2621 if (PyErr_Occurred()) SWIG_fail;
2622 }
4e760a36 2623 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
2624 return resultobj;
2625 fail:
2626 return NULL;
2627}
2628
2629
2630static PyObject *_wrap_Point___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
2631 PyObject *resultobj;
2632 wxPoint *arg1 = (wxPoint *) 0 ;
2633 wxPoint *arg2 = 0 ;
2634 bool result;
2635 wxPoint temp2 ;
2636 PyObject * obj0 = 0 ;
2637 PyObject * obj1 = 0 ;
2638 char *kwnames[] = {
423f194a 2639 (char *) "self",(char *) "pt", NULL
d14a1e28
RD
2640 };
2641
2642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___ne__",kwnames,&obj0,&obj1)) goto fail;
2643 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2644 {
2645 arg2 = &temp2;
2646 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
2647 }
2648 {
2649 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 2650 result = (bool)(arg1)->operator !=((wxPoint const &)*arg2);
d14a1e28
RD
2651
2652 wxPyEndAllowThreads(__tstate);
2653 if (PyErr_Occurred()) SWIG_fail;
2654 }
4e760a36 2655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
2656 return resultobj;
2657 fail:
2658 return NULL;
2659}
2660
2661
2662static PyObject *_wrap_Point___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
2663 PyObject *resultobj;
2664 wxPoint *arg1 = (wxPoint *) 0 ;
2665 wxPoint *arg2 = 0 ;
2666 wxPoint result;
2667 wxPoint temp2 ;
2668 PyObject * obj0 = 0 ;
2669 PyObject * obj1 = 0 ;
2670 char *kwnames[] = {
423f194a 2671 (char *) "self",(char *) "pt", NULL
d14a1e28
RD
2672 };
2673
2674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___add__",kwnames,&obj0,&obj1)) goto fail;
2675 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2676 {
2677 arg2 = &temp2;
2678 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
2679 }
2680 {
2681 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 2682 result = (arg1)->operator +((wxPoint const &)*arg2);
d14a1e28
RD
2683
2684 wxPyEndAllowThreads(__tstate);
2685 if (PyErr_Occurred()) SWIG_fail;
2686 }
2687 {
2688 wxPoint * resultptr;
2689 resultptr = new wxPoint((wxPoint &) result);
2690 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
2691 }
2692 return resultobj;
2693 fail:
2694 return NULL;
2695}
2696
2697
2698static PyObject *_wrap_Point___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
2699 PyObject *resultobj;
2700 wxPoint *arg1 = (wxPoint *) 0 ;
2701 wxPoint *arg2 = 0 ;
2702 wxPoint result;
2703 wxPoint temp2 ;
2704 PyObject * obj0 = 0 ;
2705 PyObject * obj1 = 0 ;
2706 char *kwnames[] = {
423f194a 2707 (char *) "self",(char *) "pt", NULL
d14a1e28
RD
2708 };
2709
2710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___sub__",kwnames,&obj0,&obj1)) goto fail;
2711 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2712 {
2713 arg2 = &temp2;
2714 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
2715 }
2716 {
2717 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 2718 result = (arg1)->operator -((wxPoint const &)*arg2);
d14a1e28
RD
2719
2720 wxPyEndAllowThreads(__tstate);
2721 if (PyErr_Occurred()) SWIG_fail;
2722 }
2723 {
2724 wxPoint * resultptr;
2725 resultptr = new wxPoint((wxPoint &) result);
2726 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
2727 }
2728 return resultobj;
2729 fail:
2730 return NULL;
2731}
2732
2733
2734static PyObject *_wrap_Point___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
2735 PyObject *resultobj;
2736 wxPoint *arg1 = (wxPoint *) 0 ;
2737 wxPoint *arg2 = 0 ;
2738 wxPoint *result;
2739 wxPoint temp2 ;
2740 PyObject * obj0 = 0 ;
2741 PyObject * obj1 = 0 ;
2742 char *kwnames[] = {
423f194a 2743 (char *) "self",(char *) "pt", NULL
d14a1e28
RD
2744 };
2745
2746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___iadd__",kwnames,&obj0,&obj1)) goto fail;
2747 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2748 {
2749 arg2 = &temp2;
2750 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
2751 }
2752 {
2753 PyThreadState* __tstate = wxPyBeginAllowThreads();
2754 {
2755 wxPoint &_result_ref = (arg1)->operator +=((wxPoint const &)*arg2);
2756 result = (wxPoint *) &_result_ref;
2757 }
2758
2759 wxPyEndAllowThreads(__tstate);
2760 if (PyErr_Occurred()) SWIG_fail;
2761 }
2762 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0);
2763 return resultobj;
2764 fail:
2765 return NULL;
2766}
2767
2768
2769static PyObject *_wrap_Point___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
2770 PyObject *resultobj;
2771 wxPoint *arg1 = (wxPoint *) 0 ;
2772 wxPoint *arg2 = 0 ;
2773 wxPoint *result;
2774 wxPoint temp2 ;
2775 PyObject * obj0 = 0 ;
2776 PyObject * obj1 = 0 ;
2777 char *kwnames[] = {
423f194a 2778 (char *) "self",(char *) "pt", NULL
d14a1e28
RD
2779 };
2780
2781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___isub__",kwnames,&obj0,&obj1)) goto fail;
2782 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2783 {
2784 arg2 = &temp2;
2785 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
2786 }
2787 {
2788 PyThreadState* __tstate = wxPyBeginAllowThreads();
2789 {
2790 wxPoint &_result_ref = (arg1)->operator -=((wxPoint const &)*arg2);
2791 result = (wxPoint *) &_result_ref;
2792 }
2793
2794 wxPyEndAllowThreads(__tstate);
2795 if (PyErr_Occurred()) SWIG_fail;
2796 }
2797 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0);
2798 return resultobj;
2799 fail:
2800 return NULL;
2801}
2802
2803
2804static PyObject *_wrap_Point_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
2805 PyObject *resultobj;
2806 wxPoint *arg1 = (wxPoint *) 0 ;
2807 long arg2 ;
2808 long arg3 ;
2809 PyObject * obj0 = 0 ;
8edf1c75
RD
2810 PyObject * obj1 = 0 ;
2811 PyObject * obj2 = 0 ;
d14a1e28
RD
2812 char *kwnames[] = {
2813 (char *) "self",(char *) "x",(char *) "y", NULL
2814 };
2815
8edf1c75 2816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Point_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 2817 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
2818 {
2819 arg2 = (long) SWIG_PyObj_AsLong(obj1);
2820 if (PyErr_Occurred()) SWIG_fail;
2821 }
2822 {
2823 arg3 = (long) SWIG_PyObj_AsLong(obj2);
2824 if (PyErr_Occurred()) SWIG_fail;
2825 }
d14a1e28
RD
2826 {
2827 PyThreadState* __tstate = wxPyBeginAllowThreads();
2828 wxPoint_Set(arg1,arg2,arg3);
2829
2830 wxPyEndAllowThreads(__tstate);
2831 if (PyErr_Occurred()) SWIG_fail;
2832 }
2833 Py_INCREF(Py_None); resultobj = Py_None;
2834 return resultobj;
2835 fail:
2836 return NULL;
2837}
2838
2839
423f194a 2840static PyObject *_wrap_Point_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
2841 PyObject *resultobj;
2842 wxPoint *arg1 = (wxPoint *) 0 ;
2843 PyObject *result;
2844 PyObject * obj0 = 0 ;
2845 char *kwnames[] = {
2846 (char *) "self", NULL
2847 };
2848
423f194a 2849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_Get",kwnames,&obj0)) goto fail;
d14a1e28
RD
2850 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2851 {
2852 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 2853 result = (PyObject *)wxPoint_Get(arg1);
d14a1e28
RD
2854
2855 wxPyEndAllowThreads(__tstate);
2856 if (PyErr_Occurred()) SWIG_fail;
2857 }
2858 resultobj = result;
2859 return resultobj;
2860 fail:
2861 return NULL;
2862}
2863
2864
2865static PyObject * Point_swigregister(PyObject *self, PyObject *args) {
2866 PyObject *obj;
2867 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2868 SWIG_TypeClientData(SWIGTYPE_p_wxPoint, obj);
2869 Py_INCREF(obj);
2870 return Py_BuildValue((char *)"");
2871}
2872static PyObject *_wrap_new_Rect(PyObject *self, PyObject *args, PyObject *kwargs) {
2873 PyObject *resultobj;
2874 int arg1 = (int) 0 ;
2875 int arg2 = (int) 0 ;
2876 int arg3 = (int) 0 ;
2877 int arg4 = (int) 0 ;
2878 wxRect *result;
8edf1c75
RD
2879 PyObject * obj0 = 0 ;
2880 PyObject * obj1 = 0 ;
2881 PyObject * obj2 = 0 ;
2882 PyObject * obj3 = 0 ;
d14a1e28
RD
2883 char *kwnames[] = {
2884 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
2885 };
2886
8edf1c75
RD
2887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Rect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2888 if (obj0) {
2889 {
2890 arg1 = (int) SWIG_PyObj_AsInt(obj0);
2891 if (PyErr_Occurred()) SWIG_fail;
2892 }
2893 }
2894 if (obj1) {
2895 {
2896 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2897 if (PyErr_Occurred()) SWIG_fail;
2898 }
2899 }
2900 if (obj2) {
2901 {
2902 arg3 = (int) SWIG_PyObj_AsInt(obj2);
2903 if (PyErr_Occurred()) SWIG_fail;
2904 }
2905 }
2906 if (obj3) {
2907 {
2908 arg4 = (int) SWIG_PyObj_AsInt(obj3);
2909 if (PyErr_Occurred()) SWIG_fail;
2910 }
2911 }
d14a1e28
RD
2912 {
2913 PyThreadState* __tstate = wxPyBeginAllowThreads();
2914 result = (wxRect *)new wxRect(arg1,arg2,arg3,arg4);
2915
2916 wxPyEndAllowThreads(__tstate);
2917 if (PyErr_Occurred()) SWIG_fail;
2918 }
2919 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 1);
2920 return resultobj;
2921 fail:
2922 return NULL;
2923}
2924
2925
2926static PyObject *_wrap_new_RectPP(PyObject *self, PyObject *args, PyObject *kwargs) {
2927 PyObject *resultobj;
2928 wxPoint *arg1 = 0 ;
2929 wxPoint *arg2 = 0 ;
2930 wxRect *result;
2931 wxPoint temp1 ;
2932 wxPoint temp2 ;
2933 PyObject * obj0 = 0 ;
2934 PyObject * obj1 = 0 ;
2935 char *kwnames[] = {
2936 (char *) "topLeft",(char *) "bottomRight", NULL
2937 };
2938
2939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPP",kwnames,&obj0,&obj1)) goto fail;
2940 {
2941 arg1 = &temp1;
2942 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
2943 }
2944 {
2945 arg2 = &temp2;
2946 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
2947 }
2948 {
2949 PyThreadState* __tstate = wxPyBeginAllowThreads();
2950 result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxPoint const &)*arg2);
2951
2952 wxPyEndAllowThreads(__tstate);
2953 if (PyErr_Occurred()) SWIG_fail;
2954 }
2955 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 1);
2956 return resultobj;
2957 fail:
2958 return NULL;
2959}
2960
2961
2962static PyObject *_wrap_new_RectPS(PyObject *self, PyObject *args, PyObject *kwargs) {
2963 PyObject *resultobj;
2964 wxPoint *arg1 = 0 ;
2965 wxSize *arg2 = 0 ;
2966 wxRect *result;
2967 wxPoint temp1 ;
2968 wxSize temp2 ;
2969 PyObject * obj0 = 0 ;
2970 PyObject * obj1 = 0 ;
2971 char *kwnames[] = {
2972 (char *) "pos",(char *) "size", NULL
2973 };
2974
2975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPS",kwnames,&obj0,&obj1)) goto fail;
2976 {
2977 arg1 = &temp1;
2978 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
2979 }
2980 {
2981 arg2 = &temp2;
2982 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2983 }
2984 {
2985 PyThreadState* __tstate = wxPyBeginAllowThreads();
2986 result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxSize const &)*arg2);
2987
2988 wxPyEndAllowThreads(__tstate);
2989 if (PyErr_Occurred()) SWIG_fail;
2990 }
2991 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 1);
2992 return resultobj;
2993 fail:
2994 return NULL;
2995}
2996
2997
2998static PyObject *_wrap_delete_Rect(PyObject *self, PyObject *args, PyObject *kwargs) {
2999 PyObject *resultobj;
3000 wxRect *arg1 = (wxRect *) 0 ;
3001 PyObject * obj0 = 0 ;
3002 char *kwnames[] = {
3003 (char *) "self", NULL
3004 };
3005
3006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Rect",kwnames,&obj0)) goto fail;
3007 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3008 {
3009 PyThreadState* __tstate = wxPyBeginAllowThreads();
3010 delete arg1;
3011
3012 wxPyEndAllowThreads(__tstate);
3013 if (PyErr_Occurred()) SWIG_fail;
3014 }
3015 Py_INCREF(Py_None); resultobj = Py_None;
3016 return resultobj;
3017 fail:
3018 return NULL;
3019}
3020
3021
3022static PyObject *_wrap_Rect_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
3023 PyObject *resultobj;
3024 wxRect *arg1 = (wxRect *) 0 ;
3025 int result;
3026 PyObject * obj0 = 0 ;
3027 char *kwnames[] = {
3028 (char *) "self", NULL
3029 };
3030
3031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetX",kwnames,&obj0)) goto fail;
3032 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3033 {
3034 PyThreadState* __tstate = wxPyBeginAllowThreads();
3035 result = (int)((wxRect const *)arg1)->GetX();
3036
3037 wxPyEndAllowThreads(__tstate);
3038 if (PyErr_Occurred()) SWIG_fail;
3039 }
8edf1c75 3040 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
3041 return resultobj;
3042 fail:
3043 return NULL;
3044}
3045
3046
3047static PyObject *_wrap_Rect_SetX(PyObject *self, PyObject *args, PyObject *kwargs) {
3048 PyObject *resultobj;
3049 wxRect *arg1 = (wxRect *) 0 ;
3050 int arg2 ;
3051 PyObject * obj0 = 0 ;
8edf1c75 3052 PyObject * obj1 = 0 ;
d14a1e28
RD
3053 char *kwnames[] = {
3054 (char *) "self",(char *) "x", NULL
3055 };
3056
8edf1c75 3057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetX",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 3058 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
3059 {
3060 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3061 if (PyErr_Occurred()) SWIG_fail;
3062 }
d14a1e28
RD
3063 {
3064 PyThreadState* __tstate = wxPyBeginAllowThreads();
3065 (arg1)->SetX(arg2);
3066
3067 wxPyEndAllowThreads(__tstate);
3068 if (PyErr_Occurred()) SWIG_fail;
3069 }
3070 Py_INCREF(Py_None); resultobj = Py_None;
3071 return resultobj;
3072 fail:
3073 return NULL;
3074}
3075
3076
3077static PyObject *_wrap_Rect_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
3078 PyObject *resultobj;
3079 wxRect *arg1 = (wxRect *) 0 ;
3080 int result;
3081 PyObject * obj0 = 0 ;
3082 char *kwnames[] = {
3083 (char *) "self", NULL
3084 };
3085
3086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetY",kwnames,&obj0)) goto fail;
3087 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3088 {
3089 PyThreadState* __tstate = wxPyBeginAllowThreads();
3090 result = (int)(arg1)->GetY();
3091
3092 wxPyEndAllowThreads(__tstate);
3093 if (PyErr_Occurred()) SWIG_fail;
3094 }
8edf1c75 3095 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
3096 return resultobj;
3097 fail:
3098 return NULL;
3099}
3100
3101
3102static PyObject *_wrap_Rect_SetY(PyObject *self, PyObject *args, PyObject *kwargs) {
3103 PyObject *resultobj;
3104 wxRect *arg1 = (wxRect *) 0 ;
3105 int arg2 ;
3106 PyObject * obj0 = 0 ;
8edf1c75 3107 PyObject * obj1 = 0 ;
d14a1e28
RD
3108 char *kwnames[] = {
3109 (char *) "self",(char *) "y", NULL
3110 };
3111
8edf1c75 3112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetY",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 3113 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
3114 {
3115 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3116 if (PyErr_Occurred()) SWIG_fail;
3117 }
d14a1e28
RD
3118 {
3119 PyThreadState* __tstate = wxPyBeginAllowThreads();
3120 (arg1)->SetY(arg2);
3121
3122 wxPyEndAllowThreads(__tstate);
3123 if (PyErr_Occurred()) SWIG_fail;
3124 }
3125 Py_INCREF(Py_None); resultobj = Py_None;
3126 return resultobj;
3127 fail:
3128 return NULL;
3129}
3130
3131
3132static PyObject *_wrap_Rect_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3133 PyObject *resultobj;
3134 wxRect *arg1 = (wxRect *) 0 ;
3135 int result;
3136 PyObject * obj0 = 0 ;
3137 char *kwnames[] = {
3138 (char *) "self", NULL
3139 };
3140
3141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetWidth",kwnames,&obj0)) goto fail;
3142 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3143 {
3144 PyThreadState* __tstate = wxPyBeginAllowThreads();
3145 result = (int)((wxRect const *)arg1)->GetWidth();
3146
3147 wxPyEndAllowThreads(__tstate);
3148 if (PyErr_Occurred()) SWIG_fail;
3149 }
8edf1c75 3150 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
3151 return resultobj;
3152 fail:
3153 return NULL;
3154}
3155
3156
3157static PyObject *_wrap_Rect_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3158 PyObject *resultobj;
3159 wxRect *arg1 = (wxRect *) 0 ;
3160 int arg2 ;
3161 PyObject * obj0 = 0 ;
8edf1c75 3162 PyObject * obj1 = 0 ;
d14a1e28
RD
3163 char *kwnames[] = {
3164 (char *) "self",(char *) "w", NULL
3165 };
3166
8edf1c75 3167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetWidth",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 3168 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
3169 {
3170 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3171 if (PyErr_Occurred()) SWIG_fail;
3172 }
d14a1e28
RD
3173 {
3174 PyThreadState* __tstate = wxPyBeginAllowThreads();
3175 (arg1)->SetWidth(arg2);
3176
3177 wxPyEndAllowThreads(__tstate);
3178 if (PyErr_Occurred()) SWIG_fail;
3179 }
3180 Py_INCREF(Py_None); resultobj = Py_None;
3181 return resultobj;
3182 fail:
3183 return NULL;
3184}
3185
3186
3187static PyObject *_wrap_Rect_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3188 PyObject *resultobj;
3189 wxRect *arg1 = (wxRect *) 0 ;
3190 int result;
3191 PyObject * obj0 = 0 ;
3192 char *kwnames[] = {
3193 (char *) "self", NULL
3194 };
3195
3196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetHeight",kwnames,&obj0)) goto fail;
3197 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3198 {
3199 PyThreadState* __tstate = wxPyBeginAllowThreads();
3200 result = (int)((wxRect const *)arg1)->GetHeight();
3201
3202 wxPyEndAllowThreads(__tstate);
3203 if (PyErr_Occurred()) SWIG_fail;
3204 }
8edf1c75 3205 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
3206 return resultobj;
3207 fail:
3208 return NULL;
3209}
3210
3211
3212static PyObject *_wrap_Rect_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3213 PyObject *resultobj;
3214 wxRect *arg1 = (wxRect *) 0 ;
3215 int arg2 ;
3216 PyObject * obj0 = 0 ;
8edf1c75 3217 PyObject * obj1 = 0 ;
d14a1e28
RD
3218 char *kwnames[] = {
3219 (char *) "self",(char *) "h", NULL
3220 };
3221
8edf1c75 3222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetHeight",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 3223 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
3224 {
3225 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3226 if (PyErr_Occurred()) SWIG_fail;
3227 }
d14a1e28
RD
3228 {
3229 PyThreadState* __tstate = wxPyBeginAllowThreads();
3230 (arg1)->SetHeight(arg2);
3231
3232 wxPyEndAllowThreads(__tstate);
3233 if (PyErr_Occurred()) SWIG_fail;
3234 }
3235 Py_INCREF(Py_None); resultobj = Py_None;
3236 return resultobj;
3237 fail:
3238 return NULL;
3239}
3240
3241
3242static PyObject *_wrap_Rect_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
3243 PyObject *resultobj;
3244 wxRect *arg1 = (wxRect *) 0 ;
3245 wxPoint result;
3246 PyObject * obj0 = 0 ;
3247 char *kwnames[] = {
3248 (char *) "self", NULL
3249 };
3250
3251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetPosition",kwnames,&obj0)) goto fail;
3252 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3253 {
3254 PyThreadState* __tstate = wxPyBeginAllowThreads();
3255 result = ((wxRect const *)arg1)->GetPosition();
3256
3257 wxPyEndAllowThreads(__tstate);
3258 if (PyErr_Occurred()) SWIG_fail;
3259 }
3260 {
3261 wxPoint * resultptr;
3262 resultptr = new wxPoint((wxPoint &) result);
3263 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
3264 }
3265 return resultobj;
3266 fail:
3267 return NULL;
3268}
3269
3270
3271static PyObject *_wrap_Rect_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
3272 PyObject *resultobj;
3273 wxRect *arg1 = (wxRect *) 0 ;
3274 wxPoint *arg2 = 0 ;
3275 wxPoint temp2 ;
3276 PyObject * obj0 = 0 ;
3277 PyObject * obj1 = 0 ;
3278 char *kwnames[] = {
3279 (char *) "self",(char *) "p", NULL
3280 };
3281
3282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetPosition",kwnames,&obj0,&obj1)) goto fail;
3283 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3284 {
3285 arg2 = &temp2;
3286 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3287 }
3288 {
3289 PyThreadState* __tstate = wxPyBeginAllowThreads();
3290 (arg1)->SetPosition((wxPoint const &)*arg2);
3291
3292 wxPyEndAllowThreads(__tstate);
3293 if (PyErr_Occurred()) SWIG_fail;
3294 }
3295 Py_INCREF(Py_None); resultobj = Py_None;
3296 return resultobj;
3297 fail:
3298 return NULL;
3299}
3300
3301
3302static PyObject *_wrap_Rect_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3303 PyObject *resultobj;
3304 wxRect *arg1 = (wxRect *) 0 ;
3305 wxSize result;
3306 PyObject * obj0 = 0 ;
3307 char *kwnames[] = {
3308 (char *) "self", NULL
3309 };
3310
3311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetSize",kwnames,&obj0)) goto fail;
3312 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3313 {
3314 PyThreadState* __tstate = wxPyBeginAllowThreads();
3315 result = ((wxRect const *)arg1)->GetSize();
3316
3317 wxPyEndAllowThreads(__tstate);
3318 if (PyErr_Occurred()) SWIG_fail;
3319 }
3320 {
3321 wxSize * resultptr;
3322 resultptr = new wxSize((wxSize &) result);
3323 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
3324 }
3325 return resultobj;
3326 fail:
3327 return NULL;
3328}
3329
3330
3331static PyObject *_wrap_Rect_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3332 PyObject *resultobj;
3333 wxRect *arg1 = (wxRect *) 0 ;
3334 wxSize *arg2 = 0 ;
3335 wxSize temp2 ;
3336 PyObject * obj0 = 0 ;
3337 PyObject * obj1 = 0 ;
3338 char *kwnames[] = {
3339 (char *) "self",(char *) "s", NULL
3340 };
3341
3342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetSize",kwnames,&obj0,&obj1)) goto fail;
3343 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3344 {
3345 arg2 = &temp2;
3346 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3347 }
3348 {
3349 PyThreadState* __tstate = wxPyBeginAllowThreads();
3350 (arg1)->SetSize((wxSize const &)*arg2);
3351
3352 wxPyEndAllowThreads(__tstate);
3353 if (PyErr_Occurred()) SWIG_fail;
3354 }
3355 Py_INCREF(Py_None); resultobj = Py_None;
3356 return resultobj;
3357 fail:
3358 return NULL;
3359}
3360
3361
9fd4be55
RD
3362static PyObject *_wrap_Rect_GetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
3363 PyObject *resultobj;
3364 wxRect *arg1 = (wxRect *) 0 ;
3365 wxPoint result;
3366 PyObject * obj0 = 0 ;
3367 char *kwnames[] = {
3368 (char *) "self", NULL
3369 };
3370
3371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTopLeft",kwnames,&obj0)) goto fail;
3372 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3373 {
3374 PyThreadState* __tstate = wxPyBeginAllowThreads();
3375 result = ((wxRect const *)arg1)->GetTopLeft();
3376
3377 wxPyEndAllowThreads(__tstate);
3378 if (PyErr_Occurred()) SWIG_fail;
3379 }
3380 {
3381 wxPoint * resultptr;
3382 resultptr = new wxPoint((wxPoint &) result);
3383 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
3384 }
3385 return resultobj;
3386 fail:
3387 return NULL;
3388}
3389
3390
3391static PyObject *_wrap_Rect_SetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
3392 PyObject *resultobj;
3393 wxRect *arg1 = (wxRect *) 0 ;
3394 wxPoint *arg2 = 0 ;
3395 wxPoint temp2 ;
3396 PyObject * obj0 = 0 ;
3397 PyObject * obj1 = 0 ;
3398 char *kwnames[] = {
3399 (char *) "self",(char *) "p", NULL
3400 };
3401
3402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopLeft",kwnames,&obj0,&obj1)) goto fail;
3403 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3404 {
3405 arg2 = &temp2;
3406 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3407 }
3408 {
3409 PyThreadState* __tstate = wxPyBeginAllowThreads();
3410 (arg1)->SetTopLeft((wxPoint const &)*arg2);
3411
3412 wxPyEndAllowThreads(__tstate);
3413 if (PyErr_Occurred()) SWIG_fail;
3414 }
3415 Py_INCREF(Py_None); resultobj = Py_None;
3416 return resultobj;
3417 fail:
3418 return NULL;
3419}
3420
3421
3422static PyObject *_wrap_Rect_GetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) {
3423 PyObject *resultobj;
3424 wxRect *arg1 = (wxRect *) 0 ;
3425 wxPoint result;
3426 PyObject * obj0 = 0 ;
3427 char *kwnames[] = {
3428 (char *) "self", NULL
3429 };
3430
3431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottomRight",kwnames,&obj0)) goto fail;
3432 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3433 {
3434 PyThreadState* __tstate = wxPyBeginAllowThreads();
3435 result = ((wxRect const *)arg1)->GetBottomRight();
3436
3437 wxPyEndAllowThreads(__tstate);
3438 if (PyErr_Occurred()) SWIG_fail;
3439 }
3440 {
3441 wxPoint * resultptr;
3442 resultptr = new wxPoint((wxPoint &) result);
3443 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
3444 }
3445 return resultobj;
3446 fail:
3447 return NULL;
3448}
3449
3450
3451static PyObject *_wrap_Rect_SetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) {
3452 PyObject *resultobj;
3453 wxRect *arg1 = (wxRect *) 0 ;
3454 wxPoint *arg2 = 0 ;
3455 wxPoint temp2 ;
3456 PyObject * obj0 = 0 ;
3457 PyObject * obj1 = 0 ;
3458 char *kwnames[] = {
3459 (char *) "self",(char *) "p", NULL
3460 };
3461
3462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomRight",kwnames,&obj0,&obj1)) goto fail;
3463 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3464 {
3465 arg2 = &temp2;
3466 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3467 }
3468 {
3469 PyThreadState* __tstate = wxPyBeginAllowThreads();
3470 (arg1)->SetBottomRight((wxPoint const &)*arg2);
3471
3472 wxPyEndAllowThreads(__tstate);
3473 if (PyErr_Occurred()) SWIG_fail;
3474 }
3475 Py_INCREF(Py_None); resultobj = Py_None;
3476 return resultobj;
3477 fail:
3478 return NULL;
3479}
3480
3481
d14a1e28
RD
3482static PyObject *_wrap_Rect_GetLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
3483 PyObject *resultobj;
3484 wxRect *arg1 = (wxRect *) 0 ;
3485 int result;
3486 PyObject * obj0 = 0 ;
3487 char *kwnames[] = {
3488 (char *) "self", NULL
3489 };
3490
3491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetLeft",kwnames,&obj0)) goto fail;
3492 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3493 {
3494 PyThreadState* __tstate = wxPyBeginAllowThreads();
3495 result = (int)((wxRect const *)arg1)->GetLeft();
3496
3497 wxPyEndAllowThreads(__tstate);
3498 if (PyErr_Occurred()) SWIG_fail;
3499 }
8edf1c75 3500 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
3501 return resultobj;
3502 fail:
3503 return NULL;
3504}
3505
3506
3507static PyObject *_wrap_Rect_GetTop(PyObject *self, PyObject *args, PyObject *kwargs) {
3508 PyObject *resultobj;
3509 wxRect *arg1 = (wxRect *) 0 ;
3510 int result;
3511 PyObject * obj0 = 0 ;
3512 char *kwnames[] = {
3513 (char *) "self", NULL
3514 };
3515
3516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTop",kwnames,&obj0)) goto fail;
3517 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3518 {
3519 PyThreadState* __tstate = wxPyBeginAllowThreads();
3520 result = (int)((wxRect const *)arg1)->GetTop();
3521
3522 wxPyEndAllowThreads(__tstate);
3523 if (PyErr_Occurred()) SWIG_fail;
3524 }
8edf1c75 3525 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
3526 return resultobj;
3527 fail:
3528 return NULL;
3529}
3530
3531
3532static PyObject *_wrap_Rect_GetBottom(PyObject *self, PyObject *args, PyObject *kwargs) {
3533 PyObject *resultobj;
3534 wxRect *arg1 = (wxRect *) 0 ;
3535 int result;
3536 PyObject * obj0 = 0 ;
3537 char *kwnames[] = {
3538 (char *) "self", NULL
3539 };
3540
3541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottom",kwnames,&obj0)) goto fail;
3542 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3543 {
3544 PyThreadState* __tstate = wxPyBeginAllowThreads();
3545 result = (int)((wxRect const *)arg1)->GetBottom();
3546
3547 wxPyEndAllowThreads(__tstate);
3548 if (PyErr_Occurred()) SWIG_fail;
3549 }
8edf1c75 3550 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
3551 return resultobj;
3552 fail:
3553 return NULL;
3554}
3555
3556
3557static PyObject *_wrap_Rect_GetRight(PyObject *self, PyObject *args, PyObject *kwargs) {
3558 PyObject *resultobj;
3559 wxRect *arg1 = (wxRect *) 0 ;
3560 int result;
3561 PyObject * obj0 = 0 ;
3562 char *kwnames[] = {
3563 (char *) "self", NULL
3564 };
3565
3566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetRight",kwnames,&obj0)) goto fail;
3567 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3568 {
3569 PyThreadState* __tstate = wxPyBeginAllowThreads();
3570 result = (int)((wxRect const *)arg1)->GetRight();
3571
3572 wxPyEndAllowThreads(__tstate);
3573 if (PyErr_Occurred()) SWIG_fail;
3574 }
8edf1c75 3575 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
3576 return resultobj;
3577 fail:
3578 return NULL;
3579}
3580
3581
3582static PyObject *_wrap_Rect_SetLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
3583 PyObject *resultobj;
3584 wxRect *arg1 = (wxRect *) 0 ;
3585 int arg2 ;
3586 PyObject * obj0 = 0 ;
8edf1c75 3587 PyObject * obj1 = 0 ;
d14a1e28
RD
3588 char *kwnames[] = {
3589 (char *) "self",(char *) "left", NULL
3590 };
3591
8edf1c75 3592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetLeft",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 3593 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
3594 {
3595 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3596 if (PyErr_Occurred()) SWIG_fail;
3597 }
d14a1e28
RD
3598 {
3599 PyThreadState* __tstate = wxPyBeginAllowThreads();
3600 (arg1)->SetLeft(arg2);
3601
3602 wxPyEndAllowThreads(__tstate);
3603 if (PyErr_Occurred()) SWIG_fail;
3604 }
3605 Py_INCREF(Py_None); resultobj = Py_None;
3606 return resultobj;
3607 fail:
3608 return NULL;
3609}
3610
3611
3612static PyObject *_wrap_Rect_SetRight(PyObject *self, PyObject *args, PyObject *kwargs) {
3613 PyObject *resultobj;
3614 wxRect *arg1 = (wxRect *) 0 ;
3615 int arg2 ;
3616 PyObject * obj0 = 0 ;
8edf1c75 3617 PyObject * obj1 = 0 ;
d14a1e28
RD
3618 char *kwnames[] = {
3619 (char *) "self",(char *) "right", NULL
3620 };
3621
8edf1c75 3622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetRight",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 3623 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
3624 {
3625 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3626 if (PyErr_Occurred()) SWIG_fail;
3627 }
d14a1e28
RD
3628 {
3629 PyThreadState* __tstate = wxPyBeginAllowThreads();
3630 (arg1)->SetRight(arg2);
3631
3632 wxPyEndAllowThreads(__tstate);
3633 if (PyErr_Occurred()) SWIG_fail;
3634 }
3635 Py_INCREF(Py_None); resultobj = Py_None;
3636 return resultobj;
3637 fail:
3638 return NULL;
3639}
3640
3641
3642static PyObject *_wrap_Rect_SetTop(PyObject *self, PyObject *args, PyObject *kwargs) {
3643 PyObject *resultobj;
3644 wxRect *arg1 = (wxRect *) 0 ;
3645 int arg2 ;
3646 PyObject * obj0 = 0 ;
8edf1c75 3647 PyObject * obj1 = 0 ;
d14a1e28
RD
3648 char *kwnames[] = {
3649 (char *) "self",(char *) "top", NULL
3650 };
3651
8edf1c75 3652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTop",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 3653 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
3654 {
3655 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3656 if (PyErr_Occurred()) SWIG_fail;
3657 }
d14a1e28
RD
3658 {
3659 PyThreadState* __tstate = wxPyBeginAllowThreads();
3660 (arg1)->SetTop(arg2);
3661
3662 wxPyEndAllowThreads(__tstate);
3663 if (PyErr_Occurred()) SWIG_fail;
3664 }
3665 Py_INCREF(Py_None); resultobj = Py_None;
3666 return resultobj;
3667 fail:
3668 return NULL;
3669}
3670
3671
3672static PyObject *_wrap_Rect_SetBottom(PyObject *self, PyObject *args, PyObject *kwargs) {
3673 PyObject *resultobj;
3674 wxRect *arg1 = (wxRect *) 0 ;
3675 int arg2 ;
3676 PyObject * obj0 = 0 ;
8edf1c75 3677 PyObject * obj1 = 0 ;
d14a1e28
RD
3678 char *kwnames[] = {
3679 (char *) "self",(char *) "bottom", NULL
3680 };
3681
8edf1c75 3682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottom",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 3683 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
3684 {
3685 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3686 if (PyErr_Occurred()) SWIG_fail;
3687 }
d14a1e28
RD
3688 {
3689 PyThreadState* __tstate = wxPyBeginAllowThreads();
3690 (arg1)->SetBottom(arg2);
3691
3692 wxPyEndAllowThreads(__tstate);
3693 if (PyErr_Occurred()) SWIG_fail;
3694 }
3695 Py_INCREF(Py_None); resultobj = Py_None;
3696 return resultobj;
3697 fail:
3698 return NULL;
3699}
3700
3701
3702static PyObject *_wrap_Rect_Inflate(PyObject *self, PyObject *args, PyObject *kwargs) {
3703 PyObject *resultobj;
3704 wxRect *arg1 = (wxRect *) 0 ;
423f194a
RD
3705 int arg2 ;
3706 int arg3 ;
d14a1e28
RD
3707 wxRect *result;
3708 PyObject * obj0 = 0 ;
8edf1c75
RD
3709 PyObject * obj1 = 0 ;
3710 PyObject * obj2 = 0 ;
d14a1e28
RD
3711 char *kwnames[] = {
3712 (char *) "self",(char *) "dx",(char *) "dy", NULL
3713 };
3714
8edf1c75 3715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Inflate",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 3716 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
3717 {
3718 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3719 if (PyErr_Occurred()) SWIG_fail;
3720 }
3721 {
3722 arg3 = (int) SWIG_PyObj_AsInt(obj2);
3723 if (PyErr_Occurred()) SWIG_fail;
3724 }
d14a1e28
RD
3725 {
3726 PyThreadState* __tstate = wxPyBeginAllowThreads();
3727 {
3728 wxRect &_result_ref = (arg1)->Inflate(arg2,arg3);
3729 result = (wxRect *) &_result_ref;
3730 }
3731
3732 wxPyEndAllowThreads(__tstate);
3733 if (PyErr_Occurred()) SWIG_fail;
3734 }
3735 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0);
3736 return resultobj;
3737 fail:
3738 return NULL;
3739}
3740
3741
3742static PyObject *_wrap_Rect_Deflate(PyObject *self, PyObject *args, PyObject *kwargs) {
3743 PyObject *resultobj;
3744 wxRect *arg1 = (wxRect *) 0 ;
423f194a
RD
3745 int arg2 ;
3746 int arg3 ;
d14a1e28
RD
3747 wxRect *result;
3748 PyObject * obj0 = 0 ;
8edf1c75
RD
3749 PyObject * obj1 = 0 ;
3750 PyObject * obj2 = 0 ;
d14a1e28
RD
3751 char *kwnames[] = {
3752 (char *) "self",(char *) "dx",(char *) "dy", NULL
3753 };
3754
8edf1c75 3755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Deflate",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 3756 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
3757 {
3758 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3759 if (PyErr_Occurred()) SWIG_fail;
3760 }
3761 {
3762 arg3 = (int) SWIG_PyObj_AsInt(obj2);
3763 if (PyErr_Occurred()) SWIG_fail;
3764 }
d14a1e28
RD
3765 {
3766 PyThreadState* __tstate = wxPyBeginAllowThreads();
3767 {
3768 wxRect &_result_ref = (arg1)->Deflate(arg2,arg3);
3769 result = (wxRect *) &_result_ref;
3770 }
3771
3772 wxPyEndAllowThreads(__tstate);
3773 if (PyErr_Occurred()) SWIG_fail;
3774 }
3775 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0);
3776 return resultobj;
3777 fail:
3778 return NULL;
3779}
3780
3781
3782static PyObject *_wrap_Rect_OffsetXY(PyObject *self, PyObject *args, PyObject *kwargs) {
3783 PyObject *resultobj;
3784 wxRect *arg1 = (wxRect *) 0 ;
423f194a
RD
3785 int arg2 ;
3786 int arg3 ;
d14a1e28 3787 PyObject * obj0 = 0 ;
8edf1c75
RD
3788 PyObject * obj1 = 0 ;
3789 PyObject * obj2 = 0 ;
d14a1e28
RD
3790 char *kwnames[] = {
3791 (char *) "self",(char *) "dx",(char *) "dy", NULL
3792 };
3793
8edf1c75 3794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_OffsetXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 3795 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
3796 {
3797 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3798 if (PyErr_Occurred()) SWIG_fail;
3799 }
3800 {
3801 arg3 = (int) SWIG_PyObj_AsInt(obj2);
3802 if (PyErr_Occurred()) SWIG_fail;
3803 }
d14a1e28
RD
3804 {
3805 PyThreadState* __tstate = wxPyBeginAllowThreads();
3806 (arg1)->Offset(arg2,arg3);
3807
3808 wxPyEndAllowThreads(__tstate);
3809 if (PyErr_Occurred()) SWIG_fail;
3810 }
3811 Py_INCREF(Py_None); resultobj = Py_None;
3812 return resultobj;
3813 fail:
3814 return NULL;
3815}
3816
3817
3818static PyObject *_wrap_Rect_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
3819 PyObject *resultobj;
3820 wxRect *arg1 = (wxRect *) 0 ;
3821 wxPoint *arg2 = 0 ;
3822 wxPoint temp2 ;
3823 PyObject * obj0 = 0 ;
3824 PyObject * obj1 = 0 ;
3825 char *kwnames[] = {
3826 (char *) "self",(char *) "pt", NULL
3827 };
3828
3829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Offset",kwnames,&obj0,&obj1)) goto fail;
3830 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3831 {
3832 arg2 = &temp2;
3833 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3834 }
3835 {
3836 PyThreadState* __tstate = wxPyBeginAllowThreads();
3837 (arg1)->Offset((wxPoint const &)*arg2);
3838
3839 wxPyEndAllowThreads(__tstate);
3840 if (PyErr_Occurred()) SWIG_fail;
3841 }
3842 Py_INCREF(Py_None); resultobj = Py_None;
3843 return resultobj;
3844 fail:
3845 return NULL;
3846}
3847
3848
3849static PyObject *_wrap_Rect_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
3850 PyObject *resultobj;
3851 wxRect *arg1 = (wxRect *) 0 ;
3852 wxRect *arg2 = 0 ;
3853 wxRect *result;
3854 wxRect temp2 ;
3855 PyObject * obj0 = 0 ;
3856 PyObject * obj1 = 0 ;
3857 char *kwnames[] = {
3858 (char *) "self",(char *) "rect", NULL
3859 };
3860
3861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersect",kwnames,&obj0,&obj1)) goto fail;
3862 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3863 {
3864 arg2 = &temp2;
3865 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3866 }
3867 {
3868 PyThreadState* __tstate = wxPyBeginAllowThreads();
3869 {
3870 wxRect &_result_ref = (arg1)->Intersect((wxRect const &)*arg2);
3871 result = (wxRect *) &_result_ref;
3872 }
3873
3874 wxPyEndAllowThreads(__tstate);
3875 if (PyErr_Occurred()) SWIG_fail;
3876 }
3877 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0);
3878 return resultobj;
3879 fail:
3880 return NULL;
3881}
3882
3883
3884static PyObject *_wrap_Rect___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
3885 PyObject *resultobj;
3886 wxRect *arg1 = (wxRect *) 0 ;
3887 wxRect *arg2 = 0 ;
3888 wxRect result;
3889 wxRect temp2 ;
3890 PyObject * obj0 = 0 ;
3891 PyObject * obj1 = 0 ;
3892 char *kwnames[] = {
3893 (char *) "self",(char *) "rect", NULL
3894 };
3895
3896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___add__",kwnames,&obj0,&obj1)) goto fail;
3897 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3898 {
3899 arg2 = &temp2;
3900 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3901 }
3902 {
3903 PyThreadState* __tstate = wxPyBeginAllowThreads();
3904 result = ((wxRect const *)arg1)->operator +((wxRect const &)*arg2);
3905
3906 wxPyEndAllowThreads(__tstate);
3907 if (PyErr_Occurred()) SWIG_fail;
3908 }
3909 {
3910 wxRect * resultptr;
3911 resultptr = new wxRect((wxRect &) result);
3912 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
3913 }
3914 return resultobj;
3915 fail:
3916 return NULL;
3917}
3918
3919
3920static PyObject *_wrap_Rect___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
3921 PyObject *resultobj;
3922 wxRect *arg1 = (wxRect *) 0 ;
3923 wxRect *arg2 = 0 ;
3924 wxRect *result;
3925 wxRect temp2 ;
3926 PyObject * obj0 = 0 ;
3927 PyObject * obj1 = 0 ;
3928 char *kwnames[] = {
3929 (char *) "self",(char *) "rect", NULL
3930 };
3931
3932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___iadd__",kwnames,&obj0,&obj1)) goto fail;
3933 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3934 {
3935 arg2 = &temp2;
3936 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3937 }
3938 {
3939 PyThreadState* __tstate = wxPyBeginAllowThreads();
3940 {
3941 wxRect &_result_ref = (arg1)->operator +=((wxRect const &)*arg2);
3942 result = (wxRect *) &_result_ref;
3943 }
3944
3945 wxPyEndAllowThreads(__tstate);
3946 if (PyErr_Occurred()) SWIG_fail;
3947 }
3948 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0);
3949 return resultobj;
3950 fail:
3951 return NULL;
3952}
3953
3954
3955static PyObject *_wrap_Rect___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
3956 PyObject *resultobj;
3957 wxRect *arg1 = (wxRect *) 0 ;
3958 wxRect *arg2 = 0 ;
3959 bool result;
3960 wxRect temp2 ;
3961 PyObject * obj0 = 0 ;
3962 PyObject * obj1 = 0 ;
3963 char *kwnames[] = {
3964 (char *) "self",(char *) "rect", NULL
3965 };
3966
3967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___eq__",kwnames,&obj0,&obj1)) goto fail;
3968 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3969 {
3970 arg2 = &temp2;
3971 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3972 }
3973 {
3974 PyThreadState* __tstate = wxPyBeginAllowThreads();
3975 result = (bool)((wxRect const *)arg1)->operator ==((wxRect const &)*arg2);
3976
3977 wxPyEndAllowThreads(__tstate);
3978 if (PyErr_Occurred()) SWIG_fail;
3979 }
4e760a36 3980 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
3981 return resultobj;
3982 fail:
3983 return NULL;
3984}
3985
3986
3987static PyObject *_wrap_Rect___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
3988 PyObject *resultobj;
3989 wxRect *arg1 = (wxRect *) 0 ;
3990 wxRect *arg2 = 0 ;
3991 bool result;
3992 wxRect temp2 ;
3993 PyObject * obj0 = 0 ;
3994 PyObject * obj1 = 0 ;
3995 char *kwnames[] = {
3996 (char *) "self",(char *) "rect", NULL
3997 };
3998
3999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___ne__",kwnames,&obj0,&obj1)) goto fail;
4000 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4001 {
4002 arg2 = &temp2;
4003 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4004 }
4005 {
4006 PyThreadState* __tstate = wxPyBeginAllowThreads();
4007 result = (bool)((wxRect const *)arg1)->operator !=((wxRect const &)*arg2);
4008
4009 wxPyEndAllowThreads(__tstate);
4010 if (PyErr_Occurred()) SWIG_fail;
4011 }
4e760a36 4012 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
4013 return resultobj;
4014 fail:
4015 return NULL;
4016}
4017
4018
4019static PyObject *_wrap_Rect_InsideXY(PyObject *self, PyObject *args, PyObject *kwargs) {
4020 PyObject *resultobj;
4021 wxRect *arg1 = (wxRect *) 0 ;
4022 int arg2 ;
4023 int arg3 ;
4024 bool result;
4025 PyObject * obj0 = 0 ;
8edf1c75
RD
4026 PyObject * obj1 = 0 ;
4027 PyObject * obj2 = 0 ;
d14a1e28
RD
4028 char *kwnames[] = {
4029 (char *) "self",(char *) "x",(char *) "y", NULL
4030 };
4031
8edf1c75 4032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_InsideXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 4033 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
4034 {
4035 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4036 if (PyErr_Occurred()) SWIG_fail;
4037 }
4038 {
4039 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4040 if (PyErr_Occurred()) SWIG_fail;
4041 }
d14a1e28
RD
4042 {
4043 PyThreadState* __tstate = wxPyBeginAllowThreads();
4044 result = (bool)((wxRect const *)arg1)->Inside(arg2,arg3);
4045
4046 wxPyEndAllowThreads(__tstate);
4047 if (PyErr_Occurred()) SWIG_fail;
4048 }
4e760a36 4049 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
4050 return resultobj;
4051 fail:
4052 return NULL;
4053}
4054
4055
4056static PyObject *_wrap_Rect_Inside(PyObject *self, PyObject *args, PyObject *kwargs) {
4057 PyObject *resultobj;
4058 wxRect *arg1 = (wxRect *) 0 ;
4059 wxPoint *arg2 = 0 ;
4060 bool result;
4061 wxPoint temp2 ;
4062 PyObject * obj0 = 0 ;
4063 PyObject * obj1 = 0 ;
4064 char *kwnames[] = {
4065 (char *) "self",(char *) "pt", NULL
4066 };
4067
4068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Inside",kwnames,&obj0,&obj1)) goto fail;
4069 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4070 {
4071 arg2 = &temp2;
4072 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4073 }
4074 {
4075 PyThreadState* __tstate = wxPyBeginAllowThreads();
4076 result = (bool)((wxRect const *)arg1)->Inside((wxPoint const &)*arg2);
4077
4078 wxPyEndAllowThreads(__tstate);
4079 if (PyErr_Occurred()) SWIG_fail;
4080 }
4e760a36 4081 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
4082 return resultobj;
4083 fail:
4084 return NULL;
4085}
4086
4087
4088static PyObject *_wrap_Rect_Intersects(PyObject *self, PyObject *args, PyObject *kwargs) {
4089 PyObject *resultobj;
4090 wxRect *arg1 = (wxRect *) 0 ;
4091 wxRect *arg2 = 0 ;
4092 bool result;
4093 wxRect temp2 ;
4094 PyObject * obj0 = 0 ;
4095 PyObject * obj1 = 0 ;
4096 char *kwnames[] = {
4097 (char *) "self",(char *) "rect", NULL
4098 };
4099
4100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersects",kwnames,&obj0,&obj1)) goto fail;
4101 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4102 {
4103 arg2 = &temp2;
4104 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4105 }
4106 {
4107 PyThreadState* __tstate = wxPyBeginAllowThreads();
4108 result = (bool)((wxRect const *)arg1)->Intersects((wxRect const &)*arg2);
4109
4110 wxPyEndAllowThreads(__tstate);
4111 if (PyErr_Occurred()) SWIG_fail;
4112 }
4e760a36 4113 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
4114 return resultobj;
4115 fail:
4116 return NULL;
4117}
4118
4119
4120static PyObject *_wrap_Rect_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
4121 PyObject *resultobj;
4122 wxRect *arg1 = (wxRect *) 0 ;
4123 int arg2 ;
4124 PyObject * obj0 = 0 ;
8edf1c75 4125 PyObject * obj1 = 0 ;
d14a1e28
RD
4126 char *kwnames[] = {
4127 (char *) "self",(char *) "x", NULL
4128 };
4129
8edf1c75 4130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_x_set",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 4131 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
4132 {
4133 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4134 if (PyErr_Occurred()) SWIG_fail;
4135 }
d14a1e28
RD
4136 if (arg1) (arg1)->x = arg2;
4137
4138 Py_INCREF(Py_None); resultobj = Py_None;
4139 return resultobj;
4140 fail:
4141 return NULL;
4142}
4143
4144
4145static PyObject *_wrap_Rect_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
4146 PyObject *resultobj;
4147 wxRect *arg1 = (wxRect *) 0 ;
4148 int result;
4149 PyObject * obj0 = 0 ;
4150 char *kwnames[] = {
4151 (char *) "self", NULL
4152 };
4153
4154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_x_get",kwnames,&obj0)) goto fail;
4155 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4156 result = (int) ((arg1)->x);
4157
8edf1c75 4158 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
4159 return resultobj;
4160 fail:
4161 return NULL;
4162}
4163
4164
4165static PyObject *_wrap_Rect_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
4166 PyObject *resultobj;
4167 wxRect *arg1 = (wxRect *) 0 ;
4168 int arg2 ;
4169 PyObject * obj0 = 0 ;
8edf1c75 4170 PyObject * obj1 = 0 ;
d14a1e28
RD
4171 char *kwnames[] = {
4172 (char *) "self",(char *) "y", NULL
4173 };
4174
8edf1c75 4175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_y_set",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 4176 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
4177 {
4178 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4179 if (PyErr_Occurred()) SWIG_fail;
4180 }
d14a1e28
RD
4181 if (arg1) (arg1)->y = arg2;
4182
4183 Py_INCREF(Py_None); resultobj = Py_None;
4184 return resultobj;
4185 fail:
4186 return NULL;
4187}
4188
4189
4190static PyObject *_wrap_Rect_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
4191 PyObject *resultobj;
4192 wxRect *arg1 = (wxRect *) 0 ;
4193 int result;
4194 PyObject * obj0 = 0 ;
4195 char *kwnames[] = {
4196 (char *) "self", NULL
4197 };
4198
4199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_y_get",kwnames,&obj0)) goto fail;
4200 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4201 result = (int) ((arg1)->y);
4202
8edf1c75 4203 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
4204 return resultobj;
4205 fail:
4206 return NULL;
4207}
4208
4209
4210static PyObject *_wrap_Rect_width_set(PyObject *self, PyObject *args, PyObject *kwargs) {
4211 PyObject *resultobj;
4212 wxRect *arg1 = (wxRect *) 0 ;
4213 int arg2 ;
4214 PyObject * obj0 = 0 ;
8edf1c75 4215 PyObject * obj1 = 0 ;
d14a1e28
RD
4216 char *kwnames[] = {
4217 (char *) "self",(char *) "width", NULL
4218 };
4219
8edf1c75 4220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_width_set",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 4221 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
4222 {
4223 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4224 if (PyErr_Occurred()) SWIG_fail;
4225 }
d14a1e28
RD
4226 if (arg1) (arg1)->width = arg2;
4227
4228 Py_INCREF(Py_None); resultobj = Py_None;
4229 return resultobj;
4230 fail:
4231 return NULL;
4232}
4233
4234
4235static PyObject *_wrap_Rect_width_get(PyObject *self, PyObject *args, PyObject *kwargs) {
4236 PyObject *resultobj;
4237 wxRect *arg1 = (wxRect *) 0 ;
4238 int result;
4239 PyObject * obj0 = 0 ;
4240 char *kwnames[] = {
4241 (char *) "self", NULL
4242 };
4243
4244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_width_get",kwnames,&obj0)) goto fail;
4245 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4246 result = (int) ((arg1)->width);
4247
8edf1c75 4248 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
4249 return resultobj;
4250 fail:
4251 return NULL;
4252}
4253
4254
4255static PyObject *_wrap_Rect_height_set(PyObject *self, PyObject *args, PyObject *kwargs) {
4256 PyObject *resultobj;
4257 wxRect *arg1 = (wxRect *) 0 ;
4258 int arg2 ;
4259 PyObject * obj0 = 0 ;
8edf1c75 4260 PyObject * obj1 = 0 ;
d14a1e28
RD
4261 char *kwnames[] = {
4262 (char *) "self",(char *) "height", NULL
4263 };
4264
8edf1c75 4265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_height_set",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 4266 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
4267 {
4268 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4269 if (PyErr_Occurred()) SWIG_fail;
4270 }
d14a1e28
RD
4271 if (arg1) (arg1)->height = arg2;
4272
4273 Py_INCREF(Py_None); resultobj = Py_None;
4274 return resultobj;
4275 fail:
4276 return NULL;
4277}
4278
4279
4280static PyObject *_wrap_Rect_height_get(PyObject *self, PyObject *args, PyObject *kwargs) {
4281 PyObject *resultobj;
4282 wxRect *arg1 = (wxRect *) 0 ;
4283 int result;
4284 PyObject * obj0 = 0 ;
4285 char *kwnames[] = {
4286 (char *) "self", NULL
4287 };
4288
4289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_height_get",kwnames,&obj0)) goto fail;
4290 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4291 result = (int) ((arg1)->height);
4292
8edf1c75 4293 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
4294 return resultobj;
4295 fail:
4296 return NULL;
4297}
4298
4299
4300static PyObject *_wrap_Rect_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
4301 PyObject *resultobj;
4302 wxRect *arg1 = (wxRect *) 0 ;
4303 int arg2 = (int) 0 ;
4304 int arg3 = (int) 0 ;
4305 int arg4 = (int) 0 ;
4306 int arg5 = (int) 0 ;
4307 PyObject * obj0 = 0 ;
8edf1c75
RD
4308 PyObject * obj1 = 0 ;
4309 PyObject * obj2 = 0 ;
4310 PyObject * obj3 = 0 ;
4311 PyObject * obj4 = 0 ;
d14a1e28
RD
4312 char *kwnames[] = {
4313 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4314 };
4315
8edf1c75 4316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Rect_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d14a1e28 4317 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
4318 if (obj1) {
4319 {
4320 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4321 if (PyErr_Occurred()) SWIG_fail;
4322 }
4323 }
4324 if (obj2) {
4325 {
4326 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4327 if (PyErr_Occurred()) SWIG_fail;
4328 }
4329 }
4330 if (obj3) {
4331 {
4332 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4333 if (PyErr_Occurred()) SWIG_fail;
4334 }
4335 }
4336 if (obj4) {
4337 {
4338 arg5 = (int) SWIG_PyObj_AsInt(obj4);
4339 if (PyErr_Occurred()) SWIG_fail;
4340 }
4341 }
d14a1e28
RD
4342 {
4343 PyThreadState* __tstate = wxPyBeginAllowThreads();
4344 wxRect_Set(arg1,arg2,arg3,arg4,arg5);
4345
4346 wxPyEndAllowThreads(__tstate);
4347 if (PyErr_Occurred()) SWIG_fail;
4348 }
4349 Py_INCREF(Py_None); resultobj = Py_None;
4350 return resultobj;
4351 fail:
4352 return NULL;
4353}
4354
4355
423f194a 4356static PyObject *_wrap_Rect_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
4357 PyObject *resultobj;
4358 wxRect *arg1 = (wxRect *) 0 ;
4359 PyObject *result;
4360 PyObject * obj0 = 0 ;
4361 char *kwnames[] = {
4362 (char *) "self", NULL
4363 };
4364
423f194a 4365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_Get",kwnames,&obj0)) goto fail;
d14a1e28
RD
4366 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4367 {
4368 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 4369 result = (PyObject *)wxRect_Get(arg1);
d14a1e28
RD
4370
4371 wxPyEndAllowThreads(__tstate);
4372 if (PyErr_Occurred()) SWIG_fail;
4373 }
4374 resultobj = result;
4375 return resultobj;
4376 fail:
4377 return NULL;
4378}
4379
4380
4381static PyObject * Rect_swigregister(PyObject *self, PyObject *args) {
4382 PyObject *obj;
4383 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4384 SWIG_TypeClientData(SWIGTYPE_p_wxRect, obj);
4385 Py_INCREF(obj);
4386 return Py_BuildValue((char *)"");
4387}
4388static PyObject *_wrap_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4389 PyObject *resultobj;
4390 wxRect *arg1 = (wxRect *) 0 ;
4391 wxRect *arg2 = (wxRect *) 0 ;
4392 PyObject *result;
4393 PyObject * obj0 = 0 ;
4394 PyObject * obj1 = 0 ;
4395 char *kwnames[] = {
4396 (char *) "r1",(char *) "r2", NULL
4397 };
4398
4399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IntersectRect",kwnames,&obj0,&obj1)) goto fail;
4400 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4401 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4402 {
4403 PyThreadState* __tstate = wxPyBeginAllowThreads();
4404 result = (PyObject *)wxIntersectRect(arg1,arg2);
4405
4406 wxPyEndAllowThreads(__tstate);
4407 if (PyErr_Occurred()) SWIG_fail;
4408 }
4409 resultobj = result;
4410 return resultobj;
4411 fail:
4412 return NULL;
4413}
4414
4415
4416static PyObject *_wrap_new_Point2D(PyObject *self, PyObject *args, PyObject *kwargs) {
4417 PyObject *resultobj;
4418 double arg1 = (double) 0.0 ;
4419 double arg2 = (double) 0.0 ;
4420 wxPoint2D *result;
8edf1c75
RD
4421 PyObject * obj0 = 0 ;
4422 PyObject * obj1 = 0 ;
d14a1e28
RD
4423 char *kwnames[] = {
4424 (char *) "x",(char *) "y", NULL
4425 };
4426
8edf1c75
RD
4427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point2D",kwnames,&obj0,&obj1)) goto fail;
4428 if (obj0) {
4429 {
4430 arg1 = (double) SWIG_PyObj_AsDouble(obj0);
4431 if (PyErr_Occurred()) SWIG_fail;
4432 }
4433 }
4434 if (obj1) {
4435 {
4436 arg2 = (double) SWIG_PyObj_AsDouble(obj1);
4437 if (PyErr_Occurred()) SWIG_fail;
4438 }
4439 }
d14a1e28
RD
4440 {
4441 PyThreadState* __tstate = wxPyBeginAllowThreads();
4442 result = (wxPoint2D *)new wxPoint2D(arg1,arg2);
4443
4444 wxPyEndAllowThreads(__tstate);
4445 if (PyErr_Occurred()) SWIG_fail;
4446 }
4447 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 1);
4448 return resultobj;
4449 fail:
4450 return NULL;
4451}
4452
4453
4454static PyObject *_wrap_new_Point2DCopy(PyObject *self, PyObject *args, PyObject *kwargs) {
4455 PyObject *resultobj;
4456 wxPoint2D *arg1 = 0 ;
4457 wxPoint2D *result;
4458 wxPoint2D temp1 ;
4459 PyObject * obj0 = 0 ;
4460 char *kwnames[] = {
4461 (char *) "pt", NULL
4462 };
4463
4464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DCopy",kwnames,&obj0)) goto fail;
4465 {
4466 arg1 = &temp1;
4467 if ( ! wxPoint2D_helper(obj0, &arg1)) SWIG_fail;
4468 }
4469 {
4470 PyThreadState* __tstate = wxPyBeginAllowThreads();
4471 result = (wxPoint2D *)new wxPoint2D((wxPoint2D const &)*arg1);
4472
4473 wxPyEndAllowThreads(__tstate);
4474 if (PyErr_Occurred()) SWIG_fail;
4475 }
4476 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 1);
4477 return resultobj;
4478 fail:
4479 return NULL;
4480}
4481
4482
4483static PyObject *_wrap_new_Point2DFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4484 PyObject *resultobj;
4485 wxPoint *arg1 = 0 ;
4486 wxPoint2D *result;
4487 wxPoint temp1 ;
4488 PyObject * obj0 = 0 ;
4489 char *kwnames[] = {
4490 (char *) "pt", NULL
4491 };
4492
4493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DFromPoint",kwnames,&obj0)) goto fail;
4494 {
4495 arg1 = &temp1;
4496 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4497 }
4498 {
4499 PyThreadState* __tstate = wxPyBeginAllowThreads();
4500 result = (wxPoint2D *)new wxPoint2D((wxPoint const &)*arg1);
4501
4502 wxPyEndAllowThreads(__tstate);
4503 if (PyErr_Occurred()) SWIG_fail;
4504 }
4505 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 1);
4506 return resultobj;
4507 fail:
4508 return NULL;
4509}
4510
4511
4512static PyObject *_wrap_Point2D_GetFloor(PyObject *self, PyObject *args, PyObject *kwargs) {
4513 PyObject *resultobj;
4514 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
4515 int *arg2 = (int *) 0 ;
4516 int *arg3 = (int *) 0 ;
4517 int temp2 ;
4518 int temp3 ;
4519 PyObject * obj0 = 0 ;
4520 char *kwnames[] = {
4521 (char *) "self", NULL
4522 };
4523
4524 arg2 = &temp2;
4525 arg3 = &temp3;
4526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetFloor",kwnames,&obj0)) goto fail;
4527 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4528 {
4529 PyThreadState* __tstate = wxPyBeginAllowThreads();
4530 ((wxPoint2D const *)arg1)->GetFloor(arg2,arg3);
4531
4532 wxPyEndAllowThreads(__tstate);
4533 if (PyErr_Occurred()) SWIG_fail;
4534 }
4535 Py_INCREF(Py_None); resultobj = Py_None;
4536 {
4537 PyObject *o = PyInt_FromLong((long) (*arg2));
4538 resultobj = t_output_helper(resultobj,o);
4539 }
4540 {
4541 PyObject *o = PyInt_FromLong((long) (*arg3));
4542 resultobj = t_output_helper(resultobj,o);
4543 }
4544 return resultobj;
4545 fail:
4546 return NULL;
4547}
4548
4549
4550static PyObject *_wrap_Point2D_GetRounded(PyObject *self, PyObject *args, PyObject *kwargs) {
4551 PyObject *resultobj;
4552 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
4553 int *arg2 = (int *) 0 ;
4554 int *arg3 = (int *) 0 ;
4555 int temp2 ;
4556 int temp3 ;
4557 PyObject * obj0 = 0 ;
4558 char *kwnames[] = {
4559 (char *) "self", NULL
4560 };
4561
4562 arg2 = &temp2;
4563 arg3 = &temp3;
4564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetRounded",kwnames,&obj0)) goto fail;
4565 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4566 {
4567 PyThreadState* __tstate = wxPyBeginAllowThreads();
4568 ((wxPoint2D const *)arg1)->GetRounded(arg2,arg3);
4569
4570 wxPyEndAllowThreads(__tstate);
4571 if (PyErr_Occurred()) SWIG_fail;
4572 }
4573 Py_INCREF(Py_None); resultobj = Py_None;
4574 {
4575 PyObject *o = PyInt_FromLong((long) (*arg2));
4576 resultobj = t_output_helper(resultobj,o);
4577 }
4578 {
4579 PyObject *o = PyInt_FromLong((long) (*arg3));
4580 resultobj = t_output_helper(resultobj,o);
4581 }
4582 return resultobj;
4583 fail:
4584 return NULL;
4585}
4586
4587
4588static PyObject *_wrap_Point2D_GetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) {
4589 PyObject *resultobj;
4590 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
4591 double result;
4592 PyObject * obj0 = 0 ;
4593 char *kwnames[] = {
4594 (char *) "self", NULL
4595 };
4596
4597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorLength",kwnames,&obj0)) goto fail;
4598 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4599 {
4600 PyThreadState* __tstate = wxPyBeginAllowThreads();
4601 result = (double)((wxPoint2D const *)arg1)->GetVectorLength();
4602
4603 wxPyEndAllowThreads(__tstate);
4604 if (PyErr_Occurred()) SWIG_fail;
4605 }
8edf1c75 4606 resultobj = SWIG_PyObj_FromDouble((double)result);
d14a1e28
RD
4607 return resultobj;
4608 fail:
4609 return NULL;
4610}
4611
4612
4613static PyObject *_wrap_Point2D_GetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) {
4614 PyObject *resultobj;
4615 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
4616 double result;
4617 PyObject * obj0 = 0 ;
4618 char *kwnames[] = {
4619 (char *) "self", NULL
4620 };
4621
4622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorAngle",kwnames,&obj0)) goto fail;
4623 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4624 {
4625 PyThreadState* __tstate = wxPyBeginAllowThreads();
4626 result = (double)((wxPoint2D const *)arg1)->GetVectorAngle();
4627
4628 wxPyEndAllowThreads(__tstate);
4629 if (PyErr_Occurred()) SWIG_fail;
4630 }
8edf1c75 4631 resultobj = SWIG_PyObj_FromDouble((double)result);
d14a1e28
RD
4632 return resultobj;
4633 fail:
4634 return NULL;
4635}
4636
4637
4638static PyObject *_wrap_Point2D_SetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) {
4639 PyObject *resultobj;
4640 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
4641 double arg2 ;
4642 PyObject * obj0 = 0 ;
8edf1c75 4643 PyObject * obj1 = 0 ;
d14a1e28
RD
4644 char *kwnames[] = {
4645 (char *) "self",(char *) "length", NULL
4646 };
4647
8edf1c75 4648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorLength",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 4649 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
4650 {
4651 arg2 = (double) SWIG_PyObj_AsDouble(obj1);
4652 if (PyErr_Occurred()) SWIG_fail;
4653 }
d14a1e28
RD
4654 {
4655 PyThreadState* __tstate = wxPyBeginAllowThreads();
4656 (arg1)->SetVectorLength(arg2);
4657
4658 wxPyEndAllowThreads(__tstate);
4659 if (PyErr_Occurred()) SWIG_fail;
4660 }
4661 Py_INCREF(Py_None); resultobj = Py_None;
4662 return resultobj;
4663 fail:
4664 return NULL;
4665}
4666
4667
4668static PyObject *_wrap_Point2D_SetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) {
4669 PyObject *resultobj;
4670 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
4671 double arg2 ;
4672 PyObject * obj0 = 0 ;
8edf1c75 4673 PyObject * obj1 = 0 ;
d14a1e28
RD
4674 char *kwnames[] = {
4675 (char *) "self",(char *) "degrees", NULL
4676 };
4677
8edf1c75 4678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorAngle",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 4679 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
4680 {
4681 arg2 = (double) SWIG_PyObj_AsDouble(obj1);
4682 if (PyErr_Occurred()) SWIG_fail;
4683 }
d14a1e28
RD
4684 {
4685 PyThreadState* __tstate = wxPyBeginAllowThreads();
4686 (arg1)->SetVectorAngle(arg2);
4687
4688 wxPyEndAllowThreads(__tstate);
4689 if (PyErr_Occurred()) SWIG_fail;
4690 }
4691 Py_INCREF(Py_None); resultobj = Py_None;
4692 return resultobj;
4693 fail:
4694 return NULL;
4695}
4696
4697
4698static PyObject *_wrap_Point2D_GetDistance(PyObject *self, PyObject *args, PyObject *kwargs) {
4699 PyObject *resultobj;
4700 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
4701 wxPoint2D *arg2 = 0 ;
4702 double result;
4703 wxPoint2D temp2 ;
4704 PyObject * obj0 = 0 ;
4705 PyObject * obj1 = 0 ;
4706 char *kwnames[] = {
4707 (char *) "self",(char *) "pt", NULL
4708 };
4709
4710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistance",kwnames,&obj0,&obj1)) goto fail;
4711 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4712 {
4713 arg2 = &temp2;
4714 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
4715 }
4716 {
4717 PyThreadState* __tstate = wxPyBeginAllowThreads();
4718 result = (double)((wxPoint2D const *)arg1)->GetDistance((wxPoint2D const &)*arg2);
4719
4720 wxPyEndAllowThreads(__tstate);
4721 if (PyErr_Occurred()) SWIG_fail;
4722 }
8edf1c75 4723 resultobj = SWIG_PyObj_FromDouble((double)result);
d14a1e28
RD
4724 return resultobj;
4725 fail:
4726 return NULL;
4727}
4728
4729
4730static PyObject *_wrap_Point2D_GetDistanceSquare(PyObject *self, PyObject *args, PyObject *kwargs) {
4731 PyObject *resultobj;
4732 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
4733 wxPoint2D *arg2 = 0 ;
4734 double result;
4735 wxPoint2D temp2 ;
4736 PyObject * obj0 = 0 ;
4737 PyObject * obj1 = 0 ;
4738 char *kwnames[] = {
4739 (char *) "self",(char *) "pt", NULL
4740 };
4741
4742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistanceSquare",kwnames,&obj0,&obj1)) goto fail;
4743 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4744 {
4745 arg2 = &temp2;
4746 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
4747 }
4748 {
4749 PyThreadState* __tstate = wxPyBeginAllowThreads();
4750 result = (double)((wxPoint2D const *)arg1)->GetDistanceSquare((wxPoint2D const &)*arg2);
4751
4752 wxPyEndAllowThreads(__tstate);
4753 if (PyErr_Occurred()) SWIG_fail;
4754 }
8edf1c75 4755 resultobj = SWIG_PyObj_FromDouble((double)result);
d14a1e28
RD
4756 return resultobj;
4757 fail:
4758 return NULL;
4759}
4760
4761
4762static PyObject *_wrap_Point2D_GetDotProduct(PyObject *self, PyObject *args, PyObject *kwargs) {
4763 PyObject *resultobj;
4764 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
4765 wxPoint2D *arg2 = 0 ;
4766 double result;
4767 wxPoint2D temp2 ;
4768 PyObject * obj0 = 0 ;
4769 PyObject * obj1 = 0 ;
4770 char *kwnames[] = {
4771 (char *) "self",(char *) "vec", NULL
4772 };
4773
4774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDotProduct",kwnames,&obj0,&obj1)) goto fail;
4775 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4776 {
4777 arg2 = &temp2;
4778 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
4779 }
4780 {
4781 PyThreadState* __tstate = wxPyBeginAllowThreads();
4782 result = (double)((wxPoint2D const *)arg1)->GetDotProduct((wxPoint2D const &)*arg2);
4783
4784 wxPyEndAllowThreads(__tstate);
4785 if (PyErr_Occurred()) SWIG_fail;
4786 }
8edf1c75 4787 resultobj = SWIG_PyObj_FromDouble((double)result);
d14a1e28
RD
4788 return resultobj;
4789 fail:
4790 return NULL;
4791}
4792
4793
4794static PyObject *_wrap_Point2D_GetCrossProduct(PyObject *self, PyObject *args, PyObject *kwargs) {
4795 PyObject *resultobj;
4796 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
4797 wxPoint2D *arg2 = 0 ;
4798 double result;
4799 wxPoint2D temp2 ;
4800 PyObject * obj0 = 0 ;
4801 PyObject * obj1 = 0 ;
4802 char *kwnames[] = {
4803 (char *) "self",(char *) "vec", NULL
4804 };
4805
4806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetCrossProduct",kwnames,&obj0,&obj1)) goto fail;
4807 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4808 {
4809 arg2 = &temp2;
4810 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
4811 }
4812 {
4813 PyThreadState* __tstate = wxPyBeginAllowThreads();
4814 result = (double)((wxPoint2D const *)arg1)->GetCrossProduct((wxPoint2D const &)*arg2);
4815
4816 wxPyEndAllowThreads(__tstate);
4817 if (PyErr_Occurred()) SWIG_fail;
4818 }
8edf1c75 4819 resultobj = SWIG_PyObj_FromDouble((double)result);
d14a1e28
RD
4820 return resultobj;
4821 fail:
4822 return NULL;
4823}
4824
4825
4826static PyObject *_wrap_Point2D___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
4827 PyObject *resultobj;
4828 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
4829 wxPoint2D result;
4830 PyObject * obj0 = 0 ;
4831 char *kwnames[] = {
4832 (char *) "self", NULL
4833 };
4834
4835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D___neg__",kwnames,&obj0)) goto fail;
4836 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4837 {
4838 PyThreadState* __tstate = wxPyBeginAllowThreads();
4839 result = (arg1)->operator -();
4840
4841 wxPyEndAllowThreads(__tstate);
4842 if (PyErr_Occurred()) SWIG_fail;
4843 }
4844 {
4845 wxPoint2D * resultptr;
4846 resultptr = new wxPoint2D((wxPoint2D &) result);
4847 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint2D, 1);
4848 }
4849 return resultobj;
4850 fail:
4851 return NULL;
4852}
4853
4854
4855static PyObject *_wrap_Point2D___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
4856 PyObject *resultobj;
4857 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
4858 wxPoint2D *arg2 = 0 ;
4859 wxPoint2D *result;
4860 wxPoint2D temp2 ;
4861 PyObject * obj0 = 0 ;
4862 PyObject * obj1 = 0 ;
4863 char *kwnames[] = {
4864 (char *) "self",(char *) "pt", NULL
4865 };
4866
4867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___iadd__",kwnames,&obj0,&obj1)) goto fail;
4868 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4869 {
4870 arg2 = &temp2;
4871 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
4872 }
4873 {
4874 PyThreadState* __tstate = wxPyBeginAllowThreads();
4875 {
4876 wxPoint2D &_result_ref = (arg1)->operator +=((wxPoint2D const &)*arg2);
4877 result = (wxPoint2D *) &_result_ref;
4878 }
4879
4880 wxPyEndAllowThreads(__tstate);
4881 if (PyErr_Occurred()) SWIG_fail;
4882 }
4883 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 0);
4884 return resultobj;
4885 fail:
4886 return NULL;
4887}
4888
4889
4890static PyObject *_wrap_Point2D___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
4891 PyObject *resultobj;
4892 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
4893 wxPoint2D *arg2 = 0 ;
4894 wxPoint2D *result;
4895 wxPoint2D temp2 ;
4896 PyObject * obj0 = 0 ;
4897 PyObject * obj1 = 0 ;
4898 char *kwnames[] = {
4899 (char *) "self",(char *) "pt", NULL
4900 };
4901
4902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___isub__",kwnames,&obj0,&obj1)) goto fail;
4903 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4904 {
4905 arg2 = &temp2;
4906 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
4907 }
4908 {
4909 PyThreadState* __tstate = wxPyBeginAllowThreads();
4910 {
4911 wxPoint2D &_result_ref = (arg1)->operator -=((wxPoint2D const &)*arg2);
4912 result = (wxPoint2D *) &_result_ref;
4913 }
4914
4915 wxPyEndAllowThreads(__tstate);
4916 if (PyErr_Occurred()) SWIG_fail;
4917 }
4918 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 0);
4919 return resultobj;
4920 fail:
4921 return NULL;
4922}
4923
4924
4925static PyObject *_wrap_Point2D___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
4926 PyObject *resultobj;
4927 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
4928 wxPoint2D *arg2 = 0 ;
4929 wxPoint2D *result;
4930 wxPoint2D temp2 ;
4931 PyObject * obj0 = 0 ;
4932 PyObject * obj1 = 0 ;
4933 char *kwnames[] = {
4934 (char *) "self",(char *) "pt", NULL
4935 };
4936
4937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___imul__",kwnames,&obj0,&obj1)) goto fail;
4938 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4939 {
4940 arg2 = &temp2;
4941 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
4942 }
4943 {
4944 PyThreadState* __tstate = wxPyBeginAllowThreads();
4945 {
4946 wxPoint2D &_result_ref = (arg1)->operator *=((wxPoint2D const &)*arg2);
4947 result = (wxPoint2D *) &_result_ref;
4948 }
4949
4950 wxPyEndAllowThreads(__tstate);
4951 if (PyErr_Occurred()) SWIG_fail;
4952 }
4953 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 0);
4954 return resultobj;
4955 fail:
4956 return NULL;
4957}
4958
4959
4960static PyObject *_wrap_Point2D___idiv__(PyObject *self, PyObject *args, PyObject *kwargs) {
4961 PyObject *resultobj;
4962 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
4963 wxPoint2D *arg2 = 0 ;
4964 wxPoint2D *result;
4965 wxPoint2D temp2 ;
4966 PyObject * obj0 = 0 ;
4967 PyObject * obj1 = 0 ;
4968 char *kwnames[] = {
4969 (char *) "self",(char *) "pt", NULL
4970 };
4971
4972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___idiv__",kwnames,&obj0,&obj1)) goto fail;
4973 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4974 {
4975 arg2 = &temp2;
4976 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
4977 }
4978 {
4979 PyThreadState* __tstate = wxPyBeginAllowThreads();
4980 {
4981 wxPoint2D &_result_ref = (arg1)->operator /=((wxPoint2D const &)*arg2);
4982 result = (wxPoint2D *) &_result_ref;
4983 }
4984
4985 wxPyEndAllowThreads(__tstate);
4986 if (PyErr_Occurred()) SWIG_fail;
4987 }
4988 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint2D, 0);
4989 return resultobj;
4990 fail:
4991 return NULL;
4992}
4993
4994
4995static PyObject *_wrap_Point2D___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
4996 PyObject *resultobj;
4997 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
4998 wxPoint2D *arg2 = 0 ;
4999 bool result;
5000 wxPoint2D temp2 ;
5001 PyObject * obj0 = 0 ;
5002 PyObject * obj1 = 0 ;
5003 char *kwnames[] = {
5004 (char *) "self",(char *) "pt", NULL
5005 };
5006
5007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___eq__",kwnames,&obj0,&obj1)) goto fail;
5008 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5009 {
5010 arg2 = &temp2;
5011 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5012 }
5013 {
5014 PyThreadState* __tstate = wxPyBeginAllowThreads();
5015 result = (bool)((wxPoint2D const *)arg1)->operator ==((wxPoint2D const &)*arg2);
5016
5017 wxPyEndAllowThreads(__tstate);
5018 if (PyErr_Occurred()) SWIG_fail;
5019 }
4e760a36 5020 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
5021 return resultobj;
5022 fail:
5023 return NULL;
5024}
5025
5026
5027static PyObject *_wrap_Point2D___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
5028 PyObject *resultobj;
5029 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5030 wxPoint2D *arg2 = 0 ;
5031 bool result;
5032 wxPoint2D temp2 ;
5033 PyObject * obj0 = 0 ;
5034 PyObject * obj1 = 0 ;
5035 char *kwnames[] = {
5036 (char *) "self",(char *) "pt", NULL
5037 };
5038
5039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___ne__",kwnames,&obj0,&obj1)) goto fail;
5040 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5041 {
5042 arg2 = &temp2;
5043 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5044 }
5045 {
5046 PyThreadState* __tstate = wxPyBeginAllowThreads();
5047 result = (bool)((wxPoint2D const *)arg1)->operator !=((wxPoint2D const &)*arg2);
5048
5049 wxPyEndAllowThreads(__tstate);
5050 if (PyErr_Occurred()) SWIG_fail;
5051 }
4e760a36 5052 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
5053 return resultobj;
5054 fail:
5055 return NULL;
5056}
5057
5058
d14a1e28
RD
5059static PyObject *_wrap_Point2D_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
5060 PyObject *resultobj;
5061 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5062 double arg2 ;
5063 PyObject * obj0 = 0 ;
8edf1c75 5064 PyObject * obj1 = 0 ;
d14a1e28
RD
5065 char *kwnames[] = {
5066 (char *) "self",(char *) "m_x", NULL
5067 };
5068
8edf1c75 5069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_x_set",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 5070 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
5071 {
5072 arg2 = (double) SWIG_PyObj_AsDouble(obj1);
5073 if (PyErr_Occurred()) SWIG_fail;
5074 }
d14a1e28
RD
5075 if (arg1) (arg1)->m_x = arg2;
5076
5077 Py_INCREF(Py_None); resultobj = Py_None;
5078 return resultobj;
5079 fail:
5080 return NULL;
5081}
5082
5083
5084static PyObject *_wrap_Point2D_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
5085 PyObject *resultobj;
5086 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5087 double result;
5088 PyObject * obj0 = 0 ;
5089 char *kwnames[] = {
5090 (char *) "self", NULL
5091 };
5092
5093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_x_get",kwnames,&obj0)) goto fail;
5094 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5095 result = (double) ((arg1)->m_x);
5096
8edf1c75 5097 resultobj = SWIG_PyObj_FromDouble((double)result);
d14a1e28
RD
5098 return resultobj;
5099 fail:
5100 return NULL;
5101}
5102
5103
5104static PyObject *_wrap_Point2D_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
5105 PyObject *resultobj;
5106 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5107 double arg2 ;
5108 PyObject * obj0 = 0 ;
8edf1c75 5109 PyObject * obj1 = 0 ;
d14a1e28
RD
5110 char *kwnames[] = {
5111 (char *) "self",(char *) "m_y", NULL
5112 };
5113
8edf1c75 5114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_y_set",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 5115 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
5116 {
5117 arg2 = (double) SWIG_PyObj_AsDouble(obj1);
5118 if (PyErr_Occurred()) SWIG_fail;
5119 }
d14a1e28
RD
5120 if (arg1) (arg1)->m_y = arg2;
5121
5122 Py_INCREF(Py_None); resultobj = Py_None;
5123 return resultobj;
5124 fail:
5125 return NULL;
5126}
5127
5128
5129static PyObject *_wrap_Point2D_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
5130 PyObject *resultobj;
5131 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5132 double result;
5133 PyObject * obj0 = 0 ;
5134 char *kwnames[] = {
5135 (char *) "self", NULL
5136 };
5137
5138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_y_get",kwnames,&obj0)) goto fail;
5139 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5140 result = (double) ((arg1)->m_y);
5141
8edf1c75 5142 resultobj = SWIG_PyObj_FromDouble((double)result);
d14a1e28
RD
5143 return resultobj;
5144 fail:
5145 return NULL;
5146}
5147
5148
5149static PyObject *_wrap_Point2D_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
5150 PyObject *resultobj;
5151 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5152 double arg2 = (double) 0 ;
5153 double arg3 = (double) 0 ;
5154 PyObject * obj0 = 0 ;
8edf1c75
RD
5155 PyObject * obj1 = 0 ;
5156 PyObject * obj2 = 0 ;
d14a1e28
RD
5157 char *kwnames[] = {
5158 (char *) "self",(char *) "x",(char *) "y", NULL
5159 };
5160
8edf1c75 5161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Point2D_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 5162 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
5163 if (obj1) {
5164 {
5165 arg2 = (double) SWIG_PyObj_AsDouble(obj1);
5166 if (PyErr_Occurred()) SWIG_fail;
5167 }
5168 }
5169 if (obj2) {
5170 {
5171 arg3 = (double) SWIG_PyObj_AsDouble(obj2);
5172 if (PyErr_Occurred()) SWIG_fail;
5173 }
5174 }
d14a1e28
RD
5175 {
5176 PyThreadState* __tstate = wxPyBeginAllowThreads();
5177 wxPoint2D_Set(arg1,arg2,arg3);
5178
5179 wxPyEndAllowThreads(__tstate);
5180 if (PyErr_Occurred()) SWIG_fail;
5181 }
5182 Py_INCREF(Py_None); resultobj = Py_None;
5183 return resultobj;
5184 fail:
5185 return NULL;
5186}
5187
5188
423f194a 5189static PyObject *_wrap_Point2D_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
5190 PyObject *resultobj;
5191 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5192 PyObject *result;
5193 PyObject * obj0 = 0 ;
5194 char *kwnames[] = {
5195 (char *) "self", NULL
5196 };
5197
423f194a 5198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_Get",kwnames,&obj0)) goto fail;
d14a1e28
RD
5199 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPoint2D,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5200 {
5201 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 5202 result = (PyObject *)wxPoint2D_Get(arg1);
d14a1e28
RD
5203
5204 wxPyEndAllowThreads(__tstate);
5205 if (PyErr_Occurred()) SWIG_fail;
5206 }
5207 resultobj = result;
5208 return resultobj;
5209 fail:
5210 return NULL;
5211}
5212
5213
5214static PyObject * Point2D_swigregister(PyObject *self, PyObject *args) {
5215 PyObject *obj;
5216 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5217 SWIG_TypeClientData(SWIGTYPE_p_wxPoint2D, obj);
5218 Py_INCREF(obj);
5219 return Py_BuildValue((char *)"");
5220}
8edf1c75 5221static int _wrap_DefaultPosition_set(PyObject *) {
d14a1e28
RD
5222 PyErr_SetString(PyExc_TypeError,"Variable DefaultPosition is read-only.");
5223 return 1;
5224}
5225
5226
5227static PyObject *_wrap_DefaultPosition_get() {
5228 PyObject *pyobj;
5229
5230 pyobj = SWIG_NewPointerObj((void *) &wxDefaultPosition, SWIGTYPE_p_wxPoint, 0);
5231 return pyobj;
5232}
5233
5234
8edf1c75 5235static int _wrap_DefaultSize_set(PyObject *) {
d14a1e28
RD
5236 PyErr_SetString(PyExc_TypeError,"Variable DefaultSize is read-only.");
5237 return 1;
5238}
5239
5240
5241static PyObject *_wrap_DefaultSize_get() {
5242 PyObject *pyobj;
5243
5244 pyobj = SWIG_NewPointerObj((void *) &wxDefaultSize, SWIGTYPE_p_wxSize, 0);
5245 return pyobj;
5246}
5247
5248
5249static PyObject *_wrap_new_InputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
5250 PyObject *resultobj;
5251 PyObject *arg1 = (PyObject *) 0 ;
5252 wxPyInputStream *result;
5253 PyObject * obj0 = 0 ;
5254 char *kwnames[] = {
5255 (char *) "p", NULL
5256 };
5257
5258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_InputStream",kwnames,&obj0)) goto fail;
5259 arg1 = obj0;
5260 {
5261 PyThreadState* __tstate = wxPyBeginAllowThreads();
5262 result = (wxPyInputStream *)new_wxPyInputStream(arg1);
5263
5264 wxPyEndAllowThreads(__tstate);
5265 if (PyErr_Occurred()) SWIG_fail;
5266 }
5267 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyInputStream, 1);
5268 return resultobj;
5269 fail:
5270 return NULL;
5271}
5272
5273
5274static PyObject *_wrap_InputStream_close(PyObject *self, PyObject *args, PyObject *kwargs) {
5275 PyObject *resultobj;
5276 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5277 PyObject * obj0 = 0 ;
5278 char *kwnames[] = {
5279 (char *) "self", NULL
5280 };
5281
5282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_close",kwnames,&obj0)) goto fail;
5283 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5284 {
5285 PyThreadState* __tstate = wxPyBeginAllowThreads();
5286 (arg1)->close();
5287
5288 wxPyEndAllowThreads(__tstate);
5289 if (PyErr_Occurred()) SWIG_fail;
5290 }
5291 Py_INCREF(Py_None); resultobj = Py_None;
5292 return resultobj;
5293 fail:
5294 return NULL;
5295}
5296
5297
5298static PyObject *_wrap_InputStream_flush(PyObject *self, PyObject *args, PyObject *kwargs) {
5299 PyObject *resultobj;
5300 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5301 PyObject * obj0 = 0 ;
5302 char *kwnames[] = {
5303 (char *) "self", NULL
5304 };
5305
5306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_flush",kwnames,&obj0)) goto fail;
5307 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5308 {
5309 PyThreadState* __tstate = wxPyBeginAllowThreads();
5310 (arg1)->flush();
5311
5312 wxPyEndAllowThreads(__tstate);
5313 if (PyErr_Occurred()) SWIG_fail;
5314 }
5315 Py_INCREF(Py_None); resultobj = Py_None;
5316 return resultobj;
5317 fail:
5318 return NULL;
5319}
5320
5321
5322static PyObject *_wrap_InputStream_eof(PyObject *self, PyObject *args, PyObject *kwargs) {
5323 PyObject *resultobj;
5324 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5325 bool result;
5326 PyObject * obj0 = 0 ;
5327 char *kwnames[] = {
5328 (char *) "self", NULL
5329 };
5330
5331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_eof",kwnames,&obj0)) goto fail;
5332 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5333 {
5334 PyThreadState* __tstate = wxPyBeginAllowThreads();
5335 result = (bool)(arg1)->eof();
5336
5337 wxPyEndAllowThreads(__tstate);
5338 if (PyErr_Occurred()) SWIG_fail;
5339 }
4e760a36 5340 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
5341 return resultobj;
5342 fail:
5343 return NULL;
5344}
5345
5346
5347static PyObject *_wrap_InputStream_read(PyObject *self, PyObject *args, PyObject *kwargs) {
5348 PyObject *resultobj;
5349 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5350 int arg2 = (int) -1 ;
5351 PyObject *result;
5352 PyObject * obj0 = 0 ;
8edf1c75 5353 PyObject * obj1 = 0 ;
d14a1e28
RD
5354 char *kwnames[] = {
5355 (char *) "self",(char *) "size", NULL
5356 };
5357
8edf1c75 5358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_read",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 5359 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
5360 if (obj1) {
5361 {
5362 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5363 if (PyErr_Occurred()) SWIG_fail;
5364 }
5365 }
d14a1e28
RD
5366 {
5367 PyThreadState* __tstate = wxPyBeginAllowThreads();
5368 result = (PyObject *)(arg1)->read(arg2);
5369
5370 wxPyEndAllowThreads(__tstate);
5371 if (PyErr_Occurred()) SWIG_fail;
5372 }
5373 resultobj = result;
5374 return resultobj;
5375 fail:
5376 return NULL;
5377}
5378
5379
5380static PyObject *_wrap_InputStream_readline(PyObject *self, PyObject *args, PyObject *kwargs) {
5381 PyObject *resultobj;
5382 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5383 int arg2 = (int) -1 ;
5384 PyObject *result;
5385 PyObject * obj0 = 0 ;
8edf1c75 5386 PyObject * obj1 = 0 ;
d14a1e28
RD
5387 char *kwnames[] = {
5388 (char *) "self",(char *) "size", NULL
5389 };
5390
8edf1c75 5391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readline",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 5392 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
5393 if (obj1) {
5394 {
5395 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5396 if (PyErr_Occurred()) SWIG_fail;
5397 }
5398 }
d14a1e28
RD
5399 {
5400 PyThreadState* __tstate = wxPyBeginAllowThreads();
5401 result = (PyObject *)(arg1)->readline(arg2);
5402
5403 wxPyEndAllowThreads(__tstate);
5404 if (PyErr_Occurred()) SWIG_fail;
5405 }
5406 resultobj = result;
5407 return resultobj;
5408 fail:
5409 return NULL;
5410}
5411
5412
5413static PyObject *_wrap_InputStream_readlines(PyObject *self, PyObject *args, PyObject *kwargs) {
5414 PyObject *resultobj;
5415 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5416 int arg2 = (int) -1 ;
5417 PyObject *result;
5418 PyObject * obj0 = 0 ;
8edf1c75 5419 PyObject * obj1 = 0 ;
d14a1e28
RD
5420 char *kwnames[] = {
5421 (char *) "self",(char *) "sizehint", NULL
5422 };
5423
8edf1c75 5424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readlines",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 5425 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
5426 if (obj1) {
5427 {
5428 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5429 if (PyErr_Occurred()) SWIG_fail;
5430 }
5431 }
d14a1e28
RD
5432 {
5433 PyThreadState* __tstate = wxPyBeginAllowThreads();
5434 result = (PyObject *)(arg1)->readlines(arg2);
5435
5436 wxPyEndAllowThreads(__tstate);
5437 if (PyErr_Occurred()) SWIG_fail;
5438 }
5439 resultobj = result;
5440 return resultobj;
5441 fail:
5442 return NULL;
5443}
5444
5445
5446static PyObject *_wrap_InputStream_seek(PyObject *self, PyObject *args, PyObject *kwargs) {
5447 PyObject *resultobj;
5448 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5449 int arg2 ;
5450 int arg3 = (int) 0 ;
5451 PyObject * obj0 = 0 ;
8edf1c75
RD
5452 PyObject * obj1 = 0 ;
5453 PyObject * obj2 = 0 ;
d14a1e28
RD
5454 char *kwnames[] = {
5455 (char *) "self",(char *) "offset",(char *) "whence", NULL
5456 };
5457
8edf1c75 5458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_seek",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 5459 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
5460 {
5461 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5462 if (PyErr_Occurred()) SWIG_fail;
5463 }
5464 if (obj2) {
5465 {
5466 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5467 if (PyErr_Occurred()) SWIG_fail;
5468 }
5469 }
d14a1e28
RD
5470 {
5471 PyThreadState* __tstate = wxPyBeginAllowThreads();
5472 (arg1)->seek(arg2,arg3);
5473
5474 wxPyEndAllowThreads(__tstate);
5475 if (PyErr_Occurred()) SWIG_fail;
5476 }
5477 Py_INCREF(Py_None); resultobj = Py_None;
5478 return resultobj;
5479 fail:
5480 return NULL;
5481}
5482
5483
5484static PyObject *_wrap_InputStream_tell(PyObject *self, PyObject *args, PyObject *kwargs) {
5485 PyObject *resultobj;
5486 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5487 int result;
5488 PyObject * obj0 = 0 ;
5489 char *kwnames[] = {
5490 (char *) "self", NULL
5491 };
5492
5493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_tell",kwnames,&obj0)) goto fail;
5494 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5495 {
5496 PyThreadState* __tstate = wxPyBeginAllowThreads();
5497 result = (int)(arg1)->tell();
5498
5499 wxPyEndAllowThreads(__tstate);
5500 if (PyErr_Occurred()) SWIG_fail;
5501 }
8edf1c75 5502 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
5503 return resultobj;
5504 fail:
5505 return NULL;
5506}
5507
5508
5509static PyObject *_wrap_InputStream_Peek(PyObject *self, PyObject *args, PyObject *kwargs) {
5510 PyObject *resultobj;
5511 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5512 char result;
5513 PyObject * obj0 = 0 ;
5514 char *kwnames[] = {
5515 (char *) "self", NULL
5516 };
5517
5518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Peek",kwnames,&obj0)) goto fail;
5519 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5520 {
5521 PyThreadState* __tstate = wxPyBeginAllowThreads();
5522 result = (char)(arg1)->Peek();
5523
5524 wxPyEndAllowThreads(__tstate);
5525 if (PyErr_Occurred()) SWIG_fail;
5526 }
8edf1c75 5527 resultobj = SWIG_PyObj_FromChar((char)result);
d14a1e28
RD
5528 return resultobj;
5529 fail:
5530 return NULL;
5531}
5532
5533
5534static PyObject *_wrap_InputStream_GetC(PyObject *self, PyObject *args, PyObject *kwargs) {
5535 PyObject *resultobj;
5536 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5537 char result;
5538 PyObject * obj0 = 0 ;
5539 char *kwnames[] = {
5540 (char *) "self", NULL
5541 };
5542
5543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_GetC",kwnames,&obj0)) goto fail;
5544 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5545 {
5546 PyThreadState* __tstate = wxPyBeginAllowThreads();
5547 result = (char)(arg1)->GetC();
5548
5549 wxPyEndAllowThreads(__tstate);
5550 if (PyErr_Occurred()) SWIG_fail;
5551 }
8edf1c75 5552 resultobj = SWIG_PyObj_FromChar((char)result);
d14a1e28
RD
5553 return resultobj;
5554 fail:
5555 return NULL;
5556}
5557
5558
5559static PyObject *_wrap_InputStream_LastRead(PyObject *self, PyObject *args, PyObject *kwargs) {
5560 PyObject *resultobj;
5561 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5562 size_t result;
5563 PyObject * obj0 = 0 ;
5564 char *kwnames[] = {
5565 (char *) "self", NULL
5566 };
5567
5568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_LastRead",kwnames,&obj0)) goto fail;
5569 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5570 {
5571 PyThreadState* __tstate = wxPyBeginAllowThreads();
5572 result = (size_t)(arg1)->LastRead();
5573
5574 wxPyEndAllowThreads(__tstate);
5575 if (PyErr_Occurred()) SWIG_fail;
5576 }
8edf1c75 5577 resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result);
d14a1e28
RD
5578 return resultobj;
5579 fail:
5580 return NULL;
5581}
5582
5583
5584static PyObject *_wrap_InputStream_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) {
5585 PyObject *resultobj;
5586 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5587 bool result;
5588 PyObject * obj0 = 0 ;
5589 char *kwnames[] = {
5590 (char *) "self", NULL
5591 };
5592
5593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_CanRead",kwnames,&obj0)) goto fail;
5594 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5595 {
5596 PyThreadState* __tstate = wxPyBeginAllowThreads();
5597 result = (bool)(arg1)->CanRead();
5598
5599 wxPyEndAllowThreads(__tstate);
5600 if (PyErr_Occurred()) SWIG_fail;
5601 }
4e760a36 5602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
5603 return resultobj;
5604 fail:
5605 return NULL;
5606}
5607
5608
5609static PyObject *_wrap_InputStream_Eof(PyObject *self, PyObject *args, PyObject *kwargs) {
5610 PyObject *resultobj;
5611 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5612 bool result;
5613 PyObject * obj0 = 0 ;
5614 char *kwnames[] = {
5615 (char *) "self", NULL
5616 };
5617
5618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Eof",kwnames,&obj0)) goto fail;
5619 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5620 {
5621 PyThreadState* __tstate = wxPyBeginAllowThreads();
5622 result = (bool)(arg1)->Eof();
5623
5624 wxPyEndAllowThreads(__tstate);
5625 if (PyErr_Occurred()) SWIG_fail;
5626 }
4e760a36 5627 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
5628 return resultobj;
5629 fail:
5630 return NULL;
5631}
5632
5633
5634static PyObject *_wrap_InputStream_Ungetch(PyObject *self, PyObject *args, PyObject *kwargs) {
5635 PyObject *resultobj;
5636 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5637 char arg2 ;
5638 bool result;
5639 PyObject * obj0 = 0 ;
8edf1c75 5640 PyObject * obj1 = 0 ;
d14a1e28
RD
5641 char *kwnames[] = {
5642 (char *) "self",(char *) "c", NULL
5643 };
5644
8edf1c75 5645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InputStream_Ungetch",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 5646 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
5647 {
5648 arg2 = (char) SWIG_PyObj_AsChar(obj1);
5649 if (PyErr_Occurred()) SWIG_fail;
5650 }
d14a1e28
RD
5651 {
5652 PyThreadState* __tstate = wxPyBeginAllowThreads();
5653 result = (bool)(arg1)->Ungetch(arg2);
5654
5655 wxPyEndAllowThreads(__tstate);
5656 if (PyErr_Occurred()) SWIG_fail;
5657 }
4e760a36 5658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
5659 return resultobj;
5660 fail:
5661 return NULL;
5662}
5663
5664
5665static PyObject *_wrap_InputStream_SeekI(PyObject *self, PyObject *args, PyObject *kwargs) {
5666 PyObject *resultobj;
5667 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5668 long arg2 ;
5669 int arg3 = (int) wxFromStart ;
5670 long result;
5671 PyObject * obj0 = 0 ;
8edf1c75
RD
5672 PyObject * obj1 = 0 ;
5673 PyObject * obj2 = 0 ;
d14a1e28
RD
5674 char *kwnames[] = {
5675 (char *) "self",(char *) "pos",(char *) "mode", NULL
5676 };
5677
8edf1c75 5678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_SeekI",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 5679 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
5680 {
5681 arg2 = (long) SWIG_PyObj_AsLong(obj1);
5682 if (PyErr_Occurred()) SWIG_fail;
5683 }
5684 if (obj2) {
5685 {
5686 arg3 = (wxSeekMode) SWIG_PyObj_AsInt(obj2);
5687 if (PyErr_Occurred()) SWIG_fail;
5688 }
5689 }
d14a1e28
RD
5690 {
5691 PyThreadState* __tstate = wxPyBeginAllowThreads();
5692 result = (long)(arg1)->SeekI(arg2,(wxSeekMode )arg3);
5693
5694 wxPyEndAllowThreads(__tstate);
5695 if (PyErr_Occurred()) SWIG_fail;
5696 }
8edf1c75 5697 resultobj = SWIG_PyObj_FromLong((long)result);
d14a1e28
RD
5698 return resultobj;
5699 fail:
5700 return NULL;
5701}
5702
5703
5704static PyObject *_wrap_InputStream_TellI(PyObject *self, PyObject *args, PyObject *kwargs) {
5705 PyObject *resultobj;
5706 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5707 long result;
5708 PyObject * obj0 = 0 ;
5709 char *kwnames[] = {
5710 (char *) "self", NULL
5711 };
5712
5713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_TellI",kwnames,&obj0)) goto fail;
5714 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyInputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5715 {
5716 PyThreadState* __tstate = wxPyBeginAllowThreads();
5717 result = (long)(arg1)->TellI();
5718
5719 wxPyEndAllowThreads(__tstate);
5720 if (PyErr_Occurred()) SWIG_fail;
5721 }
8edf1c75 5722 resultobj = SWIG_PyObj_FromLong((long)result);
d14a1e28
RD
5723 return resultobj;
5724 fail:
5725 return NULL;
5726}
5727
5728
5729static PyObject * InputStream_swigregister(PyObject *self, PyObject *args) {
5730 PyObject *obj;
5731 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5732 SWIG_TypeClientData(SWIGTYPE_p_wxPyInputStream, obj);
5733 Py_INCREF(obj);
5734 return Py_BuildValue((char *)"");
5735}
5736static PyObject *_wrap_OutputStream_write(PyObject *self, PyObject *args, PyObject *kwargs) {
5737 PyObject *resultobj;
5738 wxOutputStream *arg1 = (wxOutputStream *) 0 ;
5739 PyObject *arg2 = (PyObject *) 0 ;
5740 PyObject * obj0 = 0 ;
5741 PyObject * obj1 = 0 ;
5742 char *kwnames[] = {
5743 (char *) "self",(char *) "obj", NULL
5744 };
5745
5746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:OutputStream_write",kwnames,&obj0,&obj1)) goto fail;
5747 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxOutputStream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5748 arg2 = obj1;
5749 {
5750 PyThreadState* __tstate = wxPyBeginAllowThreads();
5751 wxOutputStream_write(arg1,arg2);
5752
5753 wxPyEndAllowThreads(__tstate);
5754 if (PyErr_Occurred()) SWIG_fail;
5755 }
5756 Py_INCREF(Py_None); resultobj = Py_None;
5757 return resultobj;
5758 fail:
5759 return NULL;
5760}
5761
5762
5763static PyObject * OutputStream_swigregister(PyObject *self, PyObject *args) {
5764 PyObject *obj;
5765 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5766 SWIG_TypeClientData(SWIGTYPE_p_wxOutputStream, obj);
5767 Py_INCREF(obj);
5768 return Py_BuildValue((char *)"");
5769}
5770static PyObject *_wrap_new_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) {
5771 PyObject *resultobj;
5772 wxInputStream *arg1 = (wxInputStream *) 0 ;
5773 wxString *arg2 = 0 ;
5774 wxString *arg3 = 0 ;
5775 wxString *arg4 = 0 ;
5776 wxDateTime arg5 ;
5777 wxFSFile *result;
5778 wxPyInputStream *temp1 ;
5779 bool created1 ;
423f194a
RD
5780 bool temp2 = False ;
5781 bool temp3 = False ;
5782 bool temp4 = False ;
d14a1e28
RD
5783 wxDateTime *argp5 ;
5784 PyObject * obj0 = 0 ;
5785 PyObject * obj1 = 0 ;
5786 PyObject * obj2 = 0 ;
5787 PyObject * obj3 = 0 ;
5788 PyObject * obj4 = 0 ;
5789 char *kwnames[] = {
5790 (char *) "stream",(char *) "loc",(char *) "mimetype",(char *) "anchor",(char *) "modif", NULL
5791 };
5792
5793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5794 {
5795 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
5796 arg1 = temp1->m_wxis;
423f194a 5797 created1 = False;
d14a1e28
RD
5798 } else {
5799 PyErr_Clear(); // clear the failure of the wxPyConvert above
423f194a 5800 arg1 = wxPyCBInputStream_create(obj0, False);
d14a1e28
RD
5801 if (arg1 == NULL) {
5802 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
5803 SWIG_fail;
5804 }
423f194a 5805 created1 = True;
d14a1e28
RD
5806 }
5807 }
5808 {
5809 arg2 = wxString_in_helper(obj1);
5810 if (arg2 == NULL) SWIG_fail;
423f194a 5811 temp2 = True;
d14a1e28
RD
5812 }
5813 {
5814 arg3 = wxString_in_helper(obj2);
5815 if (arg3 == NULL) SWIG_fail;
423f194a 5816 temp3 = True;
d14a1e28
RD
5817 }
5818 {
5819 arg4 = wxString_in_helper(obj3);
5820 if (arg4 == NULL) SWIG_fail;
423f194a 5821 temp4 = True;
d14a1e28
RD
5822 }
5823 if ((SWIG_ConvertPtr(obj4,(void **) &argp5, SWIGTYPE_p_wxDateTime,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
5824 arg5 = *argp5;
5825 {
5826 PyThreadState* __tstate = wxPyBeginAllowThreads();
5827 result = (wxFSFile *)new wxFSFile(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
5828
5829 wxPyEndAllowThreads(__tstate);
5830 if (PyErr_Occurred()) SWIG_fail;
5831 }
5832 {
5833 resultobj = wxPyMake_wxObject(result);
5834 }
5835 {
5836 if (created1)
5837 delete arg1;
5838 }
5839 {
5840 if (temp2)
5841 delete arg2;
5842 }
5843 {
5844 if (temp3)
5845 delete arg3;
5846 }
5847 {
5848 if (temp4)
5849 delete arg4;
5850 }
5851 return resultobj;
5852 fail:
5853 {
5854 if (created1)
5855 delete arg1;
5856 }
5857 {
5858 if (temp2)
5859 delete arg2;
5860 }
5861 {
5862 if (temp3)
5863 delete arg3;
5864 }
5865 {
5866 if (temp4)
5867 delete arg4;
5868 }
5869 return NULL;
5870}
5871
5872
5873static PyObject *_wrap_delete_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) {
5874 PyObject *resultobj;
5875 wxFSFile *arg1 = (wxFSFile *) 0 ;
5876 PyObject * obj0 = 0 ;
5877 char *kwnames[] = {
5878 (char *) "self", NULL
5879 };
5880
5881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FSFile",kwnames,&obj0)) goto fail;
5882 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5883 {
5884 PyThreadState* __tstate = wxPyBeginAllowThreads();
5885 delete arg1;
5886
5887 wxPyEndAllowThreads(__tstate);
5888 if (PyErr_Occurred()) SWIG_fail;
5889 }
5890 Py_INCREF(Py_None); resultobj = Py_None;
5891 return resultobj;
5892 fail:
5893 return NULL;
5894}
5895
5896
5897static PyObject *_wrap_FSFile_GetStream(PyObject *self, PyObject *args, PyObject *kwargs) {
5898 PyObject *resultobj;
5899 wxFSFile *arg1 = (wxFSFile *) 0 ;
5900 wxInputStream *result;
5901 PyObject * obj0 = 0 ;
5902 char *kwnames[] = {
5903 (char *) "self", NULL
5904 };
5905
5906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetStream",kwnames,&obj0)) goto fail;
5907 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5908 {
5909 PyThreadState* __tstate = wxPyBeginAllowThreads();
5910 result = (wxInputStream *)(arg1)->GetStream();
5911
5912 wxPyEndAllowThreads(__tstate);
5913 if (PyErr_Occurred()) SWIG_fail;
5914 }
5915 {
5916 wxPyInputStream * _ptr = NULL;
5917
5918 if (result) {
5919 _ptr = new wxPyInputStream(result);
5920 }
423f194a 5921 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
d14a1e28
RD
5922 }
5923 return resultobj;
5924 fail:
5925 return NULL;
5926}
5927
5928
5929static PyObject *_wrap_FSFile_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
5930 PyObject *resultobj;
5931 wxFSFile *arg1 = (wxFSFile *) 0 ;
5932 wxString *result;
5933 PyObject * obj0 = 0 ;
5934 char *kwnames[] = {
5935 (char *) "self", NULL
5936 };
5937
5938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetMimeType",kwnames,&obj0)) goto fail;
5939 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5940 {
5941 PyThreadState* __tstate = wxPyBeginAllowThreads();
5942 {
5943 wxString const &_result_ref = (arg1)->GetMimeType();
5944 result = (wxString *) &_result_ref;
5945 }
5946
5947 wxPyEndAllowThreads(__tstate);
5948 if (PyErr_Occurred()) SWIG_fail;
5949 }
f0983263
RD
5950 {
5951#if wxUSE_UNICODE
5952 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
5953#else
5954 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
5955#endif
5956 }
d14a1e28
RD
5957 return resultobj;
5958 fail:
5959 return NULL;
5960}
5961
5962
5963static PyObject *_wrap_FSFile_GetLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
5964 PyObject *resultobj;
5965 wxFSFile *arg1 = (wxFSFile *) 0 ;
5966 wxString *result;
5967 PyObject * obj0 = 0 ;
5968 char *kwnames[] = {
5969 (char *) "self", NULL
5970 };
5971
5972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetLocation",kwnames,&obj0)) goto fail;
5973 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5974 {
5975 PyThreadState* __tstate = wxPyBeginAllowThreads();
5976 {
5977 wxString const &_result_ref = (arg1)->GetLocation();
5978 result = (wxString *) &_result_ref;
5979 }
5980
5981 wxPyEndAllowThreads(__tstate);
5982 if (PyErr_Occurred()) SWIG_fail;
5983 }
f0983263
RD
5984 {
5985#if wxUSE_UNICODE
5986 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
5987#else
5988 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
5989#endif
5990 }
d14a1e28
RD
5991 return resultobj;
5992 fail:
5993 return NULL;
5994}
5995
5996
5997static PyObject *_wrap_FSFile_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) {
5998 PyObject *resultobj;
5999 wxFSFile *arg1 = (wxFSFile *) 0 ;
6000 wxString *result;
6001 PyObject * obj0 = 0 ;
6002 char *kwnames[] = {
6003 (char *) "self", NULL
6004 };
6005
6006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetAnchor",kwnames,&obj0)) goto fail;
6007 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6008 {
6009 PyThreadState* __tstate = wxPyBeginAllowThreads();
6010 {
6011 wxString const &_result_ref = (arg1)->GetAnchor();
6012 result = (wxString *) &_result_ref;
6013 }
6014
6015 wxPyEndAllowThreads(__tstate);
6016 if (PyErr_Occurred()) SWIG_fail;
6017 }
f0983263
RD
6018 {
6019#if wxUSE_UNICODE
6020 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6021#else
6022 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6023#endif
6024 }
d14a1e28
RD
6025 return resultobj;
6026 fail:
6027 return NULL;
6028}
6029
6030
6031static PyObject *_wrap_FSFile_GetModificationTime(PyObject *self, PyObject *args, PyObject *kwargs) {
6032 PyObject *resultobj;
6033 wxFSFile *arg1 = (wxFSFile *) 0 ;
6034 wxDateTime result;
6035 PyObject * obj0 = 0 ;
6036 char *kwnames[] = {
6037 (char *) "self", NULL
6038 };
6039
6040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetModificationTime",kwnames,&obj0)) goto fail;
6041 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFSFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6042 {
6043 PyThreadState* __tstate = wxPyBeginAllowThreads();
6044 result = (arg1)->GetModificationTime();
6045
6046 wxPyEndAllowThreads(__tstate);
6047 if (PyErr_Occurred()) SWIG_fail;
6048 }
6049 {
6050 wxDateTime * resultptr;
6051 resultptr = new wxDateTime((wxDateTime &) result);
6052 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxDateTime, 1);
6053 }
6054 return resultobj;
6055 fail:
6056 return NULL;
6057}
6058
6059
6060static PyObject * FSFile_swigregister(PyObject *self, PyObject *args) {
6061 PyObject *obj;
6062 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6063 SWIG_TypeClientData(SWIGTYPE_p_wxFSFile, obj);
6064 Py_INCREF(obj);
6065 return Py_BuildValue((char *)"");
6066}
6067static PyObject * CPPFileSystemHandler_swigregister(PyObject *self, PyObject *args) {
6068 PyObject *obj;
6069 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6070 SWIG_TypeClientData(SWIGTYPE_p_wxFileSystemHandler, obj);
6071 Py_INCREF(obj);
6072 return Py_BuildValue((char *)"");
6073}
6074static PyObject *_wrap_new_FileSystemHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
6075 PyObject *resultobj;
6076 wxPyFileSystemHandler *result;
6077 char *kwnames[] = {
6078 NULL
6079 };
6080
6081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystemHandler",kwnames)) goto fail;
6082 {
6083 PyThreadState* __tstate = wxPyBeginAllowThreads();
6084 result = (wxPyFileSystemHandler *)new wxPyFileSystemHandler();
6085
6086 wxPyEndAllowThreads(__tstate);
6087 if (PyErr_Occurred()) SWIG_fail;
6088 }
6089 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFileSystemHandler, 1);
6090 return resultobj;
6091 fail:
6092 return NULL;
6093}
6094
6095
6096static PyObject *_wrap_FileSystemHandler__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6097 PyObject *resultobj;
6098 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6099 PyObject *arg2 = (PyObject *) 0 ;
6100 PyObject *arg3 = (PyObject *) 0 ;
6101 PyObject * obj0 = 0 ;
6102 PyObject * obj1 = 0 ;
6103 PyObject * obj2 = 0 ;
6104 char *kwnames[] = {
6105 (char *) "self",(char *) "self",(char *) "_class", NULL
6106 };
6107
6108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
6109 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6110 arg2 = obj1;
6111 arg3 = obj2;
6112 {
6113 PyThreadState* __tstate = wxPyBeginAllowThreads();
6114 (arg1)->_setCallbackInfo(arg2,arg3);
6115
6116 wxPyEndAllowThreads(__tstate);
6117 if (PyErr_Occurred()) SWIG_fail;
6118 }
6119 Py_INCREF(Py_None); resultobj = Py_None;
6120 return resultobj;
6121 fail:
6122 return NULL;
6123}
6124
6125
6126static PyObject *_wrap_FileSystemHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) {
6127 PyObject *resultobj;
6128 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6129 wxString *arg2 = 0 ;
6130 bool result;
423f194a 6131 bool temp2 = False ;
d14a1e28
RD
6132 PyObject * obj0 = 0 ;
6133 PyObject * obj1 = 0 ;
6134 char *kwnames[] = {
6135 (char *) "self",(char *) "location", NULL
6136 };
6137
6138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail;
6139 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6140 {
6141 arg2 = wxString_in_helper(obj1);
6142 if (arg2 == NULL) SWIG_fail;
423f194a 6143 temp2 = True;
d14a1e28
RD
6144 }
6145 {
6146 PyThreadState* __tstate = wxPyBeginAllowThreads();
6147 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
6148
6149 wxPyEndAllowThreads(__tstate);
6150 if (PyErr_Occurred()) SWIG_fail;
6151 }
4e760a36 6152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
6153 {
6154 if (temp2)
6155 delete arg2;
6156 }
6157 return resultobj;
6158 fail:
6159 {
6160 if (temp2)
6161 delete arg2;
6162 }
6163 return NULL;
6164}
6165
6166
6167static PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) {
6168 PyObject *resultobj;
6169 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6170 wxFileSystem *arg2 = 0 ;
6171 wxString *arg3 = 0 ;
6172 wxFSFile *result;
423f194a 6173 bool temp3 = False ;
d14a1e28
RD
6174 PyObject * obj0 = 0 ;
6175 PyObject * obj1 = 0 ;
6176 PyObject * obj2 = 0 ;
6177 char *kwnames[] = {
6178 (char *) "self",(char *) "fs",(char *) "location", NULL
6179 };
6180
6181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
6182 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6183 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6184 if (arg2 == NULL) {
6185 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6186 }
6187 {
6188 arg3 = wxString_in_helper(obj2);
6189 if (arg3 == NULL) SWIG_fail;
423f194a 6190 temp3 = True;
d14a1e28
RD
6191 }
6192 {
6193 PyThreadState* __tstate = wxPyBeginAllowThreads();
6194 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
6195
6196 wxPyEndAllowThreads(__tstate);
6197 if (PyErr_Occurred()) SWIG_fail;
6198 }
6199 {
6200 resultobj = wxPyMake_wxObject(result);
6201 }
6202 {
6203 if (temp3)
6204 delete arg3;
6205 }
6206 return resultobj;
6207 fail:
6208 {
6209 if (temp3)
6210 delete arg3;
6211 }
6212 return NULL;
6213}
6214
6215
6216static PyObject *_wrap_FileSystemHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) {
6217 PyObject *resultobj;
6218 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6219 wxString *arg2 = 0 ;
6220 int arg3 = (int) 0 ;
6221 wxString result;
423f194a 6222 bool temp2 = False ;
d14a1e28
RD
6223 PyObject * obj0 = 0 ;
6224 PyObject * obj1 = 0 ;
8edf1c75 6225 PyObject * obj2 = 0 ;
d14a1e28
RD
6226 char *kwnames[] = {
6227 (char *) "self",(char *) "spec",(char *) "flags", NULL
6228 };
6229
8edf1c75 6230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystemHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28
RD
6231 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6232 {
6233 arg2 = wxString_in_helper(obj1);
6234 if (arg2 == NULL) SWIG_fail;
423f194a 6235 temp2 = True;
d14a1e28 6236 }
8edf1c75
RD
6237 if (obj2) {
6238 {
6239 arg3 = (int) SWIG_PyObj_AsInt(obj2);
6240 if (PyErr_Occurred()) SWIG_fail;
6241 }
6242 }
d14a1e28
RD
6243 {
6244 PyThreadState* __tstate = wxPyBeginAllowThreads();
6245 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
6246
6247 wxPyEndAllowThreads(__tstate);
6248 if (PyErr_Occurred()) SWIG_fail;
6249 }
6250 {
6251#if wxUSE_UNICODE
6252 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6253#else
6254 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6255#endif
6256 }
6257 {
6258 if (temp2)
6259 delete arg2;
6260 }
6261 return resultobj;
6262 fail:
6263 {
6264 if (temp2)
6265 delete arg2;
6266 }
6267 return NULL;
6268}
6269
6270
6271static PyObject *_wrap_FileSystemHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) {
6272 PyObject *resultobj;
6273 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6274 wxString result;
6275 PyObject * obj0 = 0 ;
6276 char *kwnames[] = {
6277 (char *) "self", NULL
6278 };
6279
6280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystemHandler_FindNext",kwnames,&obj0)) goto fail;
6281 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6282 {
6283 PyThreadState* __tstate = wxPyBeginAllowThreads();
6284 result = (arg1)->FindNext();
6285
6286 wxPyEndAllowThreads(__tstate);
6287 if (PyErr_Occurred()) SWIG_fail;
6288 }
6289 {
6290#if wxUSE_UNICODE
6291 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6292#else
6293 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6294#endif
6295 }
6296 return resultobj;
6297 fail:
6298 return NULL;
6299}
6300
6301
6302static PyObject *_wrap_FileSystemHandler_GetProtocol(PyObject *self, PyObject *args, PyObject *kwargs) {
6303 PyObject *resultobj;
6304 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6305 wxString *arg2 = 0 ;
6306 wxString result;
423f194a 6307 bool temp2 = False ;
d14a1e28
RD
6308 PyObject * obj0 = 0 ;
6309 PyObject * obj1 = 0 ;
6310 char *kwnames[] = {
6311 (char *) "self",(char *) "location", NULL
6312 };
6313
6314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetProtocol",kwnames,&obj0,&obj1)) goto fail;
6315 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6316 {
6317 arg2 = wxString_in_helper(obj1);
6318 if (arg2 == NULL) SWIG_fail;
423f194a 6319 temp2 = True;
d14a1e28
RD
6320 }
6321 {
6322 PyThreadState* __tstate = wxPyBeginAllowThreads();
6323 result = (arg1)->GetProtocol((wxString const &)*arg2);
6324
6325 wxPyEndAllowThreads(__tstate);
6326 if (PyErr_Occurred()) SWIG_fail;
6327 }
6328 {
6329#if wxUSE_UNICODE
6330 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6331#else
6332 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6333#endif
6334 }
6335 {
6336 if (temp2)
6337 delete arg2;
6338 }
6339 return resultobj;
6340 fail:
6341 {
6342 if (temp2)
6343 delete arg2;
6344 }
6345 return NULL;
6346}
6347
6348
6349static PyObject *_wrap_FileSystemHandler_GetLeftLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
6350 PyObject *resultobj;
6351 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6352 wxString *arg2 = 0 ;
6353 wxString result;
423f194a 6354 bool temp2 = False ;
d14a1e28
RD
6355 PyObject * obj0 = 0 ;
6356 PyObject * obj1 = 0 ;
6357 char *kwnames[] = {
6358 (char *) "self",(char *) "location", NULL
6359 };
6360
6361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetLeftLocation",kwnames,&obj0,&obj1)) goto fail;
6362 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6363 {
6364 arg2 = wxString_in_helper(obj1);
6365 if (arg2 == NULL) SWIG_fail;
423f194a 6366 temp2 = True;
d14a1e28
RD
6367 }
6368 {
6369 PyThreadState* __tstate = wxPyBeginAllowThreads();
6370 result = (arg1)->GetLeftLocation((wxString const &)*arg2);
6371
6372 wxPyEndAllowThreads(__tstate);
6373 if (PyErr_Occurred()) SWIG_fail;
6374 }
6375 {
6376#if wxUSE_UNICODE
6377 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6378#else
6379 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6380#endif
6381 }
6382 {
6383 if (temp2)
6384 delete arg2;
6385 }
6386 return resultobj;
6387 fail:
6388 {
6389 if (temp2)
6390 delete arg2;
6391 }
6392 return NULL;
6393}
6394
6395
6396static PyObject *_wrap_FileSystemHandler_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) {
6397 PyObject *resultobj;
6398 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6399 wxString *arg2 = 0 ;
6400 wxString result;
423f194a 6401 bool temp2 = False ;
d14a1e28
RD
6402 PyObject * obj0 = 0 ;
6403 PyObject * obj1 = 0 ;
6404 char *kwnames[] = {
6405 (char *) "self",(char *) "location", NULL
6406 };
6407
6408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetAnchor",kwnames,&obj0,&obj1)) goto fail;
6409 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6410 {
6411 arg2 = wxString_in_helper(obj1);
6412 if (arg2 == NULL) SWIG_fail;
423f194a 6413 temp2 = True;
d14a1e28
RD
6414 }
6415 {
6416 PyThreadState* __tstate = wxPyBeginAllowThreads();
6417 result = (arg1)->GetAnchor((wxString const &)*arg2);
6418
6419 wxPyEndAllowThreads(__tstate);
6420 if (PyErr_Occurred()) SWIG_fail;
6421 }
6422 {
6423#if wxUSE_UNICODE
6424 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6425#else
6426 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6427#endif
6428 }
6429 {
6430 if (temp2)
6431 delete arg2;
6432 }
6433 return resultobj;
6434 fail:
6435 {
6436 if (temp2)
6437 delete arg2;
6438 }
6439 return NULL;
6440}
6441
6442
6443static PyObject *_wrap_FileSystemHandler_GetRightLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
6444 PyObject *resultobj;
6445 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6446 wxString *arg2 = 0 ;
6447 wxString result;
423f194a 6448 bool temp2 = False ;
d14a1e28
RD
6449 PyObject * obj0 = 0 ;
6450 PyObject * obj1 = 0 ;
6451 char *kwnames[] = {
6452 (char *) "self",(char *) "location", NULL
6453 };
6454
6455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetRightLocation",kwnames,&obj0,&obj1)) goto fail;
6456 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6457 {
6458 arg2 = wxString_in_helper(obj1);
6459 if (arg2 == NULL) SWIG_fail;
423f194a 6460 temp2 = True;
d14a1e28
RD
6461 }
6462 {
6463 PyThreadState* __tstate = wxPyBeginAllowThreads();
6464 result = (arg1)->GetRightLocation((wxString const &)*arg2);
6465
6466 wxPyEndAllowThreads(__tstate);
6467 if (PyErr_Occurred()) SWIG_fail;
6468 }
6469 {
6470#if wxUSE_UNICODE
6471 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6472#else
6473 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6474#endif
6475 }
6476 {
6477 if (temp2)
6478 delete arg2;
6479 }
6480 return resultobj;
6481 fail:
6482 {
6483 if (temp2)
6484 delete arg2;
6485 }
6486 return NULL;
6487}
6488
6489
6490static PyObject *_wrap_FileSystemHandler_GetMimeTypeFromExt(PyObject *self, PyObject *args, PyObject *kwargs) {
6491 PyObject *resultobj;
6492 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6493 wxString *arg2 = 0 ;
6494 wxString result;
423f194a 6495 bool temp2 = False ;
d14a1e28
RD
6496 PyObject * obj0 = 0 ;
6497 PyObject * obj1 = 0 ;
6498 char *kwnames[] = {
6499 (char *) "self",(char *) "location", NULL
6500 };
6501
6502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetMimeTypeFromExt",kwnames,&obj0,&obj1)) goto fail;
6503 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6504 {
6505 arg2 = wxString_in_helper(obj1);
6506 if (arg2 == NULL) SWIG_fail;
423f194a 6507 temp2 = True;
d14a1e28
RD
6508 }
6509 {
6510 PyThreadState* __tstate = wxPyBeginAllowThreads();
6511 result = (arg1)->GetMimeTypeFromExt((wxString const &)*arg2);
6512
6513 wxPyEndAllowThreads(__tstate);
6514 if (PyErr_Occurred()) SWIG_fail;
6515 }
6516 {
6517#if wxUSE_UNICODE
6518 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6519#else
6520 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6521#endif
6522 }
6523 {
6524 if (temp2)
6525 delete arg2;
6526 }
6527 return resultobj;
6528 fail:
6529 {
6530 if (temp2)
6531 delete arg2;
6532 }
6533 return NULL;
6534}
6535
6536
6537static PyObject * FileSystemHandler_swigregister(PyObject *self, PyObject *args) {
6538 PyObject *obj;
6539 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6540 SWIG_TypeClientData(SWIGTYPE_p_wxPyFileSystemHandler, obj);
6541 Py_INCREF(obj);
6542 return Py_BuildValue((char *)"");
6543}
6544static PyObject *_wrap_new_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) {
6545 PyObject *resultobj;
6546 wxFileSystem *result;
6547 char *kwnames[] = {
6548 NULL
6549 };
6550
6551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystem",kwnames)) goto fail;
6552 {
6553 PyThreadState* __tstate = wxPyBeginAllowThreads();
6554 result = (wxFileSystem *)new wxFileSystem();
6555
6556 wxPyEndAllowThreads(__tstate);
6557 if (PyErr_Occurred()) SWIG_fail;
6558 }
6559 {
6560 resultobj = wxPyMake_wxObject(result);
6561 }
6562 return resultobj;
6563 fail:
6564 return NULL;
6565}
6566
6567
6568static PyObject *_wrap_delete_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) {
6569 PyObject *resultobj;
6570 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
6571 PyObject * obj0 = 0 ;
6572 char *kwnames[] = {
6573 (char *) "self", NULL
6574 };
6575
6576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileSystem",kwnames,&obj0)) goto fail;
6577 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6578 {
6579 PyThreadState* __tstate = wxPyBeginAllowThreads();
6580 delete arg1;
6581
6582 wxPyEndAllowThreads(__tstate);
6583 if (PyErr_Occurred()) SWIG_fail;
6584 }
6585 Py_INCREF(Py_None); resultobj = Py_None;
6586 return resultobj;
6587 fail:
6588 return NULL;
6589}
6590
6591
6592static PyObject *_wrap_FileSystem_ChangePathTo(PyObject *self, PyObject *args, PyObject *kwargs) {
6593 PyObject *resultobj;
6594 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
6595 wxString *arg2 = 0 ;
423f194a
RD
6596 bool arg3 = (bool) False ;
6597 bool temp2 = False ;
d14a1e28
RD
6598 PyObject * obj0 = 0 ;
6599 PyObject * obj1 = 0 ;
6600 PyObject * obj2 = 0 ;
6601 char *kwnames[] = {
6602 (char *) "self",(char *) "location",(char *) "is_dir", NULL
6603 };
6604
6605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_ChangePathTo",kwnames,&obj0,&obj1,&obj2)) goto fail;
6606 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6607 {
6608 arg2 = wxString_in_helper(obj1);
6609 if (arg2 == NULL) SWIG_fail;
423f194a 6610 temp2 = True;
d14a1e28
RD
6611 }
6612 if (obj2) {
83448d71 6613 {
8edf1c75 6614 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
83448d71
RD
6615 if (PyErr_Occurred()) SWIG_fail;
6616 }
d14a1e28
RD
6617 }
6618 {
6619 PyThreadState* __tstate = wxPyBeginAllowThreads();
6620 (arg1)->ChangePathTo((wxString const &)*arg2,arg3);
6621
6622 wxPyEndAllowThreads(__tstate);
6623 if (PyErr_Occurred()) SWIG_fail;
6624 }
6625 Py_INCREF(Py_None); resultobj = Py_None;
6626 {
6627 if (temp2)
6628 delete arg2;
6629 }
6630 return resultobj;
6631 fail:
6632 {
6633 if (temp2)
6634 delete arg2;
6635 }
6636 return NULL;
6637}
6638
6639
6640static PyObject *_wrap_FileSystem_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
6641 PyObject *resultobj;
6642 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
6643 wxString result;
6644 PyObject * obj0 = 0 ;
6645 char *kwnames[] = {
6646 (char *) "self", NULL
6647 };
6648
6649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_GetPath",kwnames,&obj0)) goto fail;
6650 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6651 {
6652 PyThreadState* __tstate = wxPyBeginAllowThreads();
6653 result = (arg1)->GetPath();
6654
6655 wxPyEndAllowThreads(__tstate);
6656 if (PyErr_Occurred()) SWIG_fail;
6657 }
6658 {
6659#if wxUSE_UNICODE
6660 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6661#else
6662 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6663#endif
6664 }
6665 return resultobj;
6666 fail:
6667 return NULL;
6668}
6669
6670
6671static PyObject *_wrap_FileSystem_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) {
6672 PyObject *resultobj;
6673 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
6674 wxString *arg2 = 0 ;
6675 wxFSFile *result;
423f194a 6676 bool temp2 = False ;
d14a1e28
RD
6677 PyObject * obj0 = 0 ;
6678 PyObject * obj1 = 0 ;
6679 char *kwnames[] = {
6680 (char *) "self",(char *) "location", NULL
6681 };
6682
6683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystem_OpenFile",kwnames,&obj0,&obj1)) goto fail;
6684 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6685 {
6686 arg2 = wxString_in_helper(obj1);
6687 if (arg2 == NULL) SWIG_fail;
423f194a 6688 temp2 = True;
d14a1e28
RD
6689 }
6690 {
6691 PyThreadState* __tstate = wxPyBeginAllowThreads();
6692 result = (wxFSFile *)(arg1)->OpenFile((wxString const &)*arg2);
6693
6694 wxPyEndAllowThreads(__tstate);
6695 if (PyErr_Occurred()) SWIG_fail;
6696 }
6697 {
6698 resultobj = wxPyMake_wxObject(result);
6699 }
6700 {
6701 if (temp2)
6702 delete arg2;
6703 }
6704 return resultobj;
6705 fail:
6706 {
6707 if (temp2)
6708 delete arg2;
6709 }
6710 return NULL;
6711}
6712
6713
6714static PyObject *_wrap_FileSystem_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) {
6715 PyObject *resultobj;
6716 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
6717 wxString *arg2 = 0 ;
6718 int arg3 = (int) 0 ;
6719 wxString result;
423f194a 6720 bool temp2 = False ;
d14a1e28
RD
6721 PyObject * obj0 = 0 ;
6722 PyObject * obj1 = 0 ;
8edf1c75 6723 PyObject * obj2 = 0 ;
d14a1e28
RD
6724 char *kwnames[] = {
6725 (char *) "self",(char *) "spec",(char *) "flags", NULL
6726 };
6727
8edf1c75 6728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28
RD
6729 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6730 {
6731 arg2 = wxString_in_helper(obj1);
6732 if (arg2 == NULL) SWIG_fail;
423f194a 6733 temp2 = True;
d14a1e28 6734 }
8edf1c75
RD
6735 if (obj2) {
6736 {
6737 arg3 = (int) SWIG_PyObj_AsInt(obj2);
6738 if (PyErr_Occurred()) SWIG_fail;
6739 }
6740 }
d14a1e28
RD
6741 {
6742 PyThreadState* __tstate = wxPyBeginAllowThreads();
6743 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
6744
6745 wxPyEndAllowThreads(__tstate);
6746 if (PyErr_Occurred()) SWIG_fail;
6747 }
6748 {
6749#if wxUSE_UNICODE
6750 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6751#else
6752 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6753#endif
6754 }
6755 {
6756 if (temp2)
6757 delete arg2;
6758 }
6759 return resultobj;
6760 fail:
6761 {
6762 if (temp2)
6763 delete arg2;
6764 }
6765 return NULL;
6766}
6767
6768
6769static PyObject *_wrap_FileSystem_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) {
6770 PyObject *resultobj;
6771 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
6772 wxString result;
6773 PyObject * obj0 = 0 ;
6774 char *kwnames[] = {
6775 (char *) "self", NULL
6776 };
6777
6778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FindNext",kwnames,&obj0)) goto fail;
6779 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6780 {
6781 PyThreadState* __tstate = wxPyBeginAllowThreads();
6782 result = (arg1)->FindNext();
6783
6784 wxPyEndAllowThreads(__tstate);
6785 if (PyErr_Occurred()) SWIG_fail;
6786 }
6787 {
6788#if wxUSE_UNICODE
6789 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6790#else
6791 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6792#endif
6793 }
6794 return resultobj;
6795 fail:
6796 return NULL;
6797}
6798
6799
6800static PyObject *_wrap_FileSystem_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
6801 PyObject *resultobj;
6802 wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ;
6803 PyObject * obj0 = 0 ;
6804 char *kwnames[] = {
6805 (char *) "handler", NULL
6806 };
6807
6808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_AddHandler",kwnames,&obj0)) goto fail;
6809 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFileSystemHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6810 {
6811 PyThreadState* __tstate = wxPyBeginAllowThreads();
6812 wxFileSystem::AddHandler(arg1);
6813
6814 wxPyEndAllowThreads(__tstate);
6815 if (PyErr_Occurred()) SWIG_fail;
6816 }
6817 Py_INCREF(Py_None); resultobj = Py_None;
6818 return resultobj;
6819 fail:
6820 return NULL;
6821}
6822
6823
6824static PyObject *_wrap_FileSystem_CleanUpHandlers(PyObject *self, PyObject *args, PyObject *kwargs) {
6825 PyObject *resultobj;
6826 char *kwnames[] = {
6827 NULL
6828 };
6829
6830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FileSystem_CleanUpHandlers",kwnames)) goto fail;
6831 {
6832 PyThreadState* __tstate = wxPyBeginAllowThreads();
6833 wxFileSystem::CleanUpHandlers();
6834
6835 wxPyEndAllowThreads(__tstate);
6836 if (PyErr_Occurred()) SWIG_fail;
6837 }
6838 Py_INCREF(Py_None); resultobj = Py_None;
6839 return resultobj;
6840 fail:
6841 return NULL;
6842}
6843
6844
6845static PyObject *_wrap_FileSystem_FileNameToURL(PyObject *self, PyObject *args, PyObject *kwargs) {
6846 PyObject *resultobj;
6847 wxString *arg1 = 0 ;
6848 wxString result;
423f194a 6849 bool temp1 = False ;
d14a1e28
RD
6850 PyObject * obj0 = 0 ;
6851 char *kwnames[] = {
6852 (char *) "filename", NULL
6853 };
6854
6855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FileNameToURL",kwnames,&obj0)) goto fail;
6856 {
6857 arg1 = wxString_in_helper(obj0);
6858 if (arg1 == NULL) SWIG_fail;
423f194a 6859 temp1 = True;
d14a1e28
RD
6860 }
6861 {
6862 PyThreadState* __tstate = wxPyBeginAllowThreads();
6863 result = wxFileSystem::FileNameToURL((wxString const &)*arg1);
6864
6865 wxPyEndAllowThreads(__tstate);
6866 if (PyErr_Occurred()) SWIG_fail;
6867 }
6868 {
6869#if wxUSE_UNICODE
6870 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6871#else
6872 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6873#endif
6874 }
6875 {
6876 if (temp1)
6877 delete arg1;
6878 }
6879 return resultobj;
6880 fail:
6881 {
6882 if (temp1)
6883 delete arg1;
6884 }
6885 return NULL;
6886}
6887
6888
6889static PyObject * FileSystem_swigregister(PyObject *self, PyObject *args) {
6890 PyObject *obj;
6891 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6892 SWIG_TypeClientData(SWIGTYPE_p_wxFileSystem, obj);
6893 Py_INCREF(obj);
6894 return Py_BuildValue((char *)"");
6895}
6896static PyObject *_wrap_FileSystem_URLToFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
6897 PyObject *resultobj;
6898 wxString *arg1 = 0 ;
6899 wxString result;
423f194a 6900 bool temp1 = False ;
d14a1e28
RD
6901 PyObject * obj0 = 0 ;
6902 char *kwnames[] = {
6903 (char *) "url", NULL
6904 };
6905
6906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_URLToFileName",kwnames,&obj0)) goto fail;
6907 {
6908 arg1 = wxString_in_helper(obj0);
6909 if (arg1 == NULL) SWIG_fail;
423f194a 6910 temp1 = True;
d14a1e28
RD
6911 }
6912 {
6913 PyThreadState* __tstate = wxPyBeginAllowThreads();
6914 result = wxFileSystem_URLToFileName((wxString const &)*arg1);
6915
6916 wxPyEndAllowThreads(__tstate);
6917 if (PyErr_Occurred()) SWIG_fail;
6918 }
6919 {
6920#if wxUSE_UNICODE
6921 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6922#else
6923 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6924#endif
6925 }
6926 {
6927 if (temp1)
6928 delete arg1;
6929 }
6930 return resultobj;
6931 fail:
6932 {
6933 if (temp1)
6934 delete arg1;
6935 }
6936 return NULL;
6937}
6938
6939
6940static PyObject *_wrap_new_InternetFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
6941 PyObject *resultobj;
6942 wxInternetFSHandler *result;
6943 char *kwnames[] = {
6944 NULL
6945 };
6946
6947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_InternetFSHandler",kwnames)) goto fail;
6948 {
6949 PyThreadState* __tstate = wxPyBeginAllowThreads();
6950 result = (wxInternetFSHandler *)new wxInternetFSHandler();
6951
6952 wxPyEndAllowThreads(__tstate);
6953 if (PyErr_Occurred()) SWIG_fail;
6954 }
6955 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxInternetFSHandler, 1);
6956 return resultobj;
6957 fail:
6958 return NULL;
6959}
6960
6961
6962static PyObject *_wrap_InternetFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) {
6963 PyObject *resultobj;
6964 wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ;
6965 wxString *arg2 = 0 ;
6966 bool result;
423f194a 6967 bool temp2 = False ;
d14a1e28
RD
6968 PyObject * obj0 = 0 ;
6969 PyObject * obj1 = 0 ;
6970 char *kwnames[] = {
6971 (char *) "self",(char *) "location", NULL
6972 };
6973
6974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InternetFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail;
6975 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxInternetFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6976 {
6977 arg2 = wxString_in_helper(obj1);
6978 if (arg2 == NULL) SWIG_fail;
423f194a 6979 temp2 = True;
d14a1e28
RD
6980 }
6981 {
6982 PyThreadState* __tstate = wxPyBeginAllowThreads();
6983 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
6984
6985 wxPyEndAllowThreads(__tstate);
6986 if (PyErr_Occurred()) SWIG_fail;
6987 }
4e760a36 6988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
6989 {
6990 if (temp2)
6991 delete arg2;
6992 }
6993 return resultobj;
6994 fail:
6995 {
6996 if (temp2)
6997 delete arg2;
6998 }
6999 return NULL;
7000}
7001
7002
7003static PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) {
7004 PyObject *resultobj;
7005 wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ;
7006 wxFileSystem *arg2 = 0 ;
7007 wxString *arg3 = 0 ;
7008 wxFSFile *result;
423f194a 7009 bool temp3 = False ;
d14a1e28
RD
7010 PyObject * obj0 = 0 ;
7011 PyObject * obj1 = 0 ;
7012 PyObject * obj2 = 0 ;
7013 char *kwnames[] = {
7014 (char *) "self",(char *) "fs",(char *) "location", NULL
7015 };
7016
7017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:InternetFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
7018 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxInternetFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7019 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7020 if (arg2 == NULL) {
7021 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7022 }
7023 {
7024 arg3 = wxString_in_helper(obj2);
7025 if (arg3 == NULL) SWIG_fail;
423f194a 7026 temp3 = True;
d14a1e28
RD
7027 }
7028 {
7029 PyThreadState* __tstate = wxPyBeginAllowThreads();
7030 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
7031
7032 wxPyEndAllowThreads(__tstate);
7033 if (PyErr_Occurred()) SWIG_fail;
7034 }
7035 {
7036 resultobj = wxPyMake_wxObject(result);
7037 }
7038 {
7039 if (temp3)
7040 delete arg3;
7041 }
7042 return resultobj;
7043 fail:
7044 {
7045 if (temp3)
7046 delete arg3;
7047 }
7048 return NULL;
7049}
7050
7051
7052static PyObject * InternetFSHandler_swigregister(PyObject *self, PyObject *args) {
7053 PyObject *obj;
7054 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7055 SWIG_TypeClientData(SWIGTYPE_p_wxInternetFSHandler, obj);
7056 Py_INCREF(obj);
7057 return Py_BuildValue((char *)"");
7058}
7059static PyObject *_wrap_new_ZipFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
7060 PyObject *resultobj;
7061 wxZipFSHandler *result;
7062 char *kwnames[] = {
7063 NULL
7064 };
7065
7066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ZipFSHandler",kwnames)) goto fail;
7067 {
7068 PyThreadState* __tstate = wxPyBeginAllowThreads();
7069 result = (wxZipFSHandler *)new wxZipFSHandler();
7070
7071 wxPyEndAllowThreads(__tstate);
7072 if (PyErr_Occurred()) SWIG_fail;
7073 }
7074 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxZipFSHandler, 1);
7075 return resultobj;
7076 fail:
7077 return NULL;
7078}
7079
7080
7081static PyObject *_wrap_ZipFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) {
7082 PyObject *resultobj;
7083 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
7084 wxString *arg2 = 0 ;
7085 bool result;
423f194a 7086 bool temp2 = False ;
d14a1e28
RD
7087 PyObject * obj0 = 0 ;
7088 PyObject * obj1 = 0 ;
7089 char *kwnames[] = {
7090 (char *) "self",(char *) "location", NULL
7091 };
7092
7093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ZipFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail;
7094 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxZipFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7095 {
7096 arg2 = wxString_in_helper(obj1);
7097 if (arg2 == NULL) SWIG_fail;
423f194a 7098 temp2 = True;
d14a1e28
RD
7099 }
7100 {
7101 PyThreadState* __tstate = wxPyBeginAllowThreads();
7102 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
7103
7104 wxPyEndAllowThreads(__tstate);
7105 if (PyErr_Occurred()) SWIG_fail;
7106 }
4e760a36 7107 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
7108 {
7109 if (temp2)
7110 delete arg2;
7111 }
7112 return resultobj;
7113 fail:
7114 {
7115 if (temp2)
7116 delete arg2;
7117 }
7118 return NULL;
7119}
7120
7121
7122static PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) {
7123 PyObject *resultobj;
7124 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
7125 wxFileSystem *arg2 = 0 ;
7126 wxString *arg3 = 0 ;
7127 wxFSFile *result;
423f194a 7128 bool temp3 = False ;
d14a1e28
RD
7129 PyObject * obj0 = 0 ;
7130 PyObject * obj1 = 0 ;
7131 PyObject * obj2 = 0 ;
7132 char *kwnames[] = {
7133 (char *) "self",(char *) "fs",(char *) "location", NULL
7134 };
7135
7136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ZipFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
7137 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxZipFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7138 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7139 if (arg2 == NULL) {
7140 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7141 }
7142 {
7143 arg3 = wxString_in_helper(obj2);
7144 if (arg3 == NULL) SWIG_fail;
423f194a 7145 temp3 = True;
d14a1e28
RD
7146 }
7147 {
7148 PyThreadState* __tstate = wxPyBeginAllowThreads();
7149 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
7150
7151 wxPyEndAllowThreads(__tstate);
7152 if (PyErr_Occurred()) SWIG_fail;
7153 }
7154 {
7155 resultobj = wxPyMake_wxObject(result);
7156 }
7157 {
7158 if (temp3)
7159 delete arg3;
7160 }
7161 return resultobj;
7162 fail:
7163 {
7164 if (temp3)
7165 delete arg3;
7166 }
7167 return NULL;
7168}
7169
7170
7171static PyObject *_wrap_ZipFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) {
7172 PyObject *resultobj;
7173 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
7174 wxString *arg2 = 0 ;
7175 int arg3 = (int) 0 ;
7176 wxString result;
423f194a 7177 bool temp2 = False ;
d14a1e28
RD
7178 PyObject * obj0 = 0 ;
7179 PyObject * obj1 = 0 ;
8edf1c75 7180 PyObject * obj2 = 0 ;
d14a1e28
RD
7181 char *kwnames[] = {
7182 (char *) "self",(char *) "spec",(char *) "flags", NULL
7183 };
7184
8edf1c75 7185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ZipFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28
RD
7186 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxZipFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7187 {
7188 arg2 = wxString_in_helper(obj1);
7189 if (arg2 == NULL) SWIG_fail;
423f194a 7190 temp2 = True;
d14a1e28 7191 }
8edf1c75
RD
7192 if (obj2) {
7193 {
7194 arg3 = (int) SWIG_PyObj_AsInt(obj2);
7195 if (PyErr_Occurred()) SWIG_fail;
7196 }
7197 }
d14a1e28
RD
7198 {
7199 PyThreadState* __tstate = wxPyBeginAllowThreads();
7200 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
7201
7202 wxPyEndAllowThreads(__tstate);
7203 if (PyErr_Occurred()) SWIG_fail;
7204 }
7205 {
7206#if wxUSE_UNICODE
7207 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7208#else
7209 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7210#endif
7211 }
7212 {
7213 if (temp2)
7214 delete arg2;
7215 }
7216 return resultobj;
7217 fail:
7218 {
7219 if (temp2)
7220 delete arg2;
7221 }
7222 return NULL;
7223}
7224
7225
7226static PyObject *_wrap_ZipFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) {
7227 PyObject *resultobj;
7228 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
7229 wxString result;
7230 PyObject * obj0 = 0 ;
7231 char *kwnames[] = {
7232 (char *) "self", NULL
7233 };
7234
7235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ZipFSHandler_FindNext",kwnames,&obj0)) goto fail;
7236 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxZipFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7237 {
7238 PyThreadState* __tstate = wxPyBeginAllowThreads();
7239 result = (arg1)->FindNext();
7240
7241 wxPyEndAllowThreads(__tstate);
7242 if (PyErr_Occurred()) SWIG_fail;
7243 }
7244 {
7245#if wxUSE_UNICODE
7246 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7247#else
7248 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7249#endif
7250 }
7251 return resultobj;
7252 fail:
7253 return NULL;
7254}
7255
7256
7257static PyObject * ZipFSHandler_swigregister(PyObject *self, PyObject *args) {
7258 PyObject *obj;
7259 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7260 SWIG_TypeClientData(SWIGTYPE_p_wxZipFSHandler, obj);
7261 Py_INCREF(obj);
7262 return Py_BuildValue((char *)"");
7263}
7264static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *self, PyObject *args, PyObject *kwargs) {
7265 PyObject *resultobj;
7266 wxString *arg1 = 0 ;
7267 wxImage *arg2 = 0 ;
7268 long arg3 ;
423f194a 7269 bool temp1 = False ;
d14a1e28
RD
7270 PyObject * obj0 = 0 ;
7271 PyObject * obj1 = 0 ;
8edf1c75 7272 PyObject * obj2 = 0 ;
d14a1e28
RD
7273 char *kwnames[] = {
7274 (char *) "filename",(char *) "image",(char *) "type", NULL
7275 };
7276
8edf1c75 7277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28
RD
7278 {
7279 arg1 = wxString_in_helper(obj0);
7280 if (arg1 == NULL) SWIG_fail;
423f194a 7281 temp1 = True;
d14a1e28
RD
7282 }
7283 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7284 if (arg2 == NULL) {
7285 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7286 }
8edf1c75
RD
7287 {
7288 arg3 = (long) SWIG_PyObj_AsLong(obj2);
7289 if (PyErr_Occurred()) SWIG_fail;
7290 }
d14a1e28
RD
7291 {
7292 PyThreadState* __tstate = wxPyBeginAllowThreads();
7293 __wxMemoryFSHandler_AddFile_wxImage((wxString const &)*arg1,*arg2,arg3);
7294
7295 wxPyEndAllowThreads(__tstate);
7296 if (PyErr_Occurred()) SWIG_fail;
7297 }
7298 Py_INCREF(Py_None); resultobj = Py_None;
7299 {
7300 if (temp1)
7301 delete arg1;
7302 }
7303 return resultobj;
7304 fail:
7305 {
7306 if (temp1)
7307 delete arg1;
7308 }
7309 return NULL;
7310}
7311
7312
7313static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
7314 PyObject *resultobj;
7315 wxString *arg1 = 0 ;
7316 wxBitmap *arg2 = 0 ;
7317 long arg3 ;
423f194a 7318 bool temp1 = False ;
d14a1e28
RD
7319 PyObject * obj0 = 0 ;
7320 PyObject * obj1 = 0 ;
8edf1c75 7321 PyObject * obj2 = 0 ;
d14a1e28
RD
7322 char *kwnames[] = {
7323 (char *) "filename",(char *) "bitmap",(char *) "type", NULL
7324 };
7325
8edf1c75 7326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28
RD
7327 {
7328 arg1 = wxString_in_helper(obj0);
7329 if (arg1 == NULL) SWIG_fail;
423f194a 7330 temp1 = True;
d14a1e28
RD
7331 }
7332 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7333 if (arg2 == NULL) {
7334 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7335 }
8edf1c75
RD
7336 {
7337 arg3 = (long) SWIG_PyObj_AsLong(obj2);
7338 if (PyErr_Occurred()) SWIG_fail;
7339 }
d14a1e28
RD
7340 {
7341 PyThreadState* __tstate = wxPyBeginAllowThreads();
7342 __wxMemoryFSHandler_AddFile_wxBitmap((wxString const &)*arg1,(wxBitmap const &)*arg2,arg3);
7343
7344 wxPyEndAllowThreads(__tstate);
7345 if (PyErr_Occurred()) SWIG_fail;
7346 }
7347 Py_INCREF(Py_None); resultobj = Py_None;
7348 {
7349 if (temp1)
7350 delete arg1;
7351 }
7352 return resultobj;
7353 fail:
7354 {
7355 if (temp1)
7356 delete arg1;
7357 }
7358 return NULL;
7359}
7360
7361
7362static PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *self, PyObject *args, PyObject *kwargs) {
7363 PyObject *resultobj;
7364 wxString *arg1 = 0 ;
7365 PyObject *arg2 = (PyObject *) 0 ;
423f194a 7366 bool temp1 = False ;
d14a1e28
RD
7367 PyObject * obj0 = 0 ;
7368 PyObject * obj1 = 0 ;
7369 char *kwnames[] = {
7370 (char *) "filename",(char *) "data", NULL
7371 };
7372
7373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:__wxMemoryFSHandler_AddFile_Data",kwnames,&obj0,&obj1)) goto fail;
7374 {
7375 arg1 = wxString_in_helper(obj0);
7376 if (arg1 == NULL) SWIG_fail;
423f194a 7377 temp1 = True;
d14a1e28
RD
7378 }
7379 arg2 = obj1;
7380 {
7381 PyThreadState* __tstate = wxPyBeginAllowThreads();
7382 __wxMemoryFSHandler_AddFile_Data((wxString const &)*arg1,arg2);
7383
7384 wxPyEndAllowThreads(__tstate);
7385 if (PyErr_Occurred()) SWIG_fail;
7386 }
7387 Py_INCREF(Py_None); resultobj = Py_None;
7388 {
7389 if (temp1)
7390 delete arg1;
7391 }
7392 return resultobj;
7393 fail:
7394 {
7395 if (temp1)
7396 delete arg1;
7397 }
7398 return NULL;
7399}
7400
7401
7402static PyObject *_wrap_new_MemoryFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
7403 PyObject *resultobj;
7404 wxMemoryFSHandler *result;
7405 char *kwnames[] = {
7406 NULL
7407 };
7408
7409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryFSHandler",kwnames)) goto fail;
7410 {
7411 PyThreadState* __tstate = wxPyBeginAllowThreads();
7412 result = (wxMemoryFSHandler *)new wxMemoryFSHandler();
7413
7414 wxPyEndAllowThreads(__tstate);
7415 if (PyErr_Occurred()) SWIG_fail;
7416 }
7417 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryFSHandler, 1);
7418 return resultobj;
7419 fail:
7420 return NULL;
7421}
7422
7423
7424static PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
7425 PyObject *resultobj;
7426 wxString *arg1 = 0 ;
423f194a 7427 bool temp1 = False ;
d14a1e28
RD
7428 PyObject * obj0 = 0 ;
7429 char *kwnames[] = {
7430 (char *) "filename", NULL
7431 };
7432
7433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_RemoveFile",kwnames,&obj0)) goto fail;
7434 {
7435 arg1 = wxString_in_helper(obj0);
7436 if (arg1 == NULL) SWIG_fail;
423f194a 7437 temp1 = True;
d14a1e28
RD
7438 }
7439 {
7440 PyThreadState* __tstate = wxPyBeginAllowThreads();
7441 wxMemoryFSHandler::RemoveFile((wxString const &)*arg1);
7442
7443 wxPyEndAllowThreads(__tstate);
7444 if (PyErr_Occurred()) SWIG_fail;
7445 }
7446 Py_INCREF(Py_None); resultobj = Py_None;
7447 {
7448 if (temp1)
7449 delete arg1;
7450 }
7451 return resultobj;
7452 fail:
7453 {
7454 if (temp1)
7455 delete arg1;
7456 }
7457 return NULL;
7458}
7459
7460
7461static PyObject *_wrap_MemoryFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) {
7462 PyObject *resultobj;
7463 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
7464 wxString *arg2 = 0 ;
7465 bool result;
423f194a 7466 bool temp2 = False ;
d14a1e28
RD
7467 PyObject * obj0 = 0 ;
7468 PyObject * obj1 = 0 ;
7469 char *kwnames[] = {
7470 (char *) "self",(char *) "location", NULL
7471 };
7472
7473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail;
7474 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7475 {
7476 arg2 = wxString_in_helper(obj1);
7477 if (arg2 == NULL) SWIG_fail;
423f194a 7478 temp2 = True;
d14a1e28
RD
7479 }
7480 {
7481 PyThreadState* __tstate = wxPyBeginAllowThreads();
7482 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
7483
7484 wxPyEndAllowThreads(__tstate);
7485 if (PyErr_Occurred()) SWIG_fail;
7486 }
4e760a36 7487 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
7488 {
7489 if (temp2)
7490 delete arg2;
7491 }
7492 return resultobj;
7493 fail:
7494 {
7495 if (temp2)
7496 delete arg2;
7497 }
7498 return NULL;
7499}
7500
7501
7502static PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) {
7503 PyObject *resultobj;
7504 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
7505 wxFileSystem *arg2 = 0 ;
7506 wxString *arg3 = 0 ;
7507 wxFSFile *result;
423f194a 7508 bool temp3 = False ;
d14a1e28
RD
7509 PyObject * obj0 = 0 ;
7510 PyObject * obj1 = 0 ;
7511 PyObject * obj2 = 0 ;
7512 char *kwnames[] = {
7513 (char *) "self",(char *) "fs",(char *) "location", NULL
7514 };
7515
7516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MemoryFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
7517 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7518 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFileSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7519 if (arg2 == NULL) {
7520 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7521 }
7522 {
7523 arg3 = wxString_in_helper(obj2);
7524 if (arg3 == NULL) SWIG_fail;
423f194a 7525 temp3 = True;
d14a1e28
RD
7526 }
7527 {
7528 PyThreadState* __tstate = wxPyBeginAllowThreads();
7529 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
7530
7531 wxPyEndAllowThreads(__tstate);
7532 if (PyErr_Occurred()) SWIG_fail;
7533 }
7534 {
7535 resultobj = wxPyMake_wxObject(result);
7536 }
7537 {
7538 if (temp3)
7539 delete arg3;
7540 }
7541 return resultobj;
7542 fail:
7543 {
7544 if (temp3)
7545 delete arg3;
7546 }
7547 return NULL;
7548}
7549
7550
7551static PyObject *_wrap_MemoryFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) {
7552 PyObject *resultobj;
7553 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
7554 wxString *arg2 = 0 ;
7555 int arg3 = (int) 0 ;
7556 wxString result;
423f194a 7557 bool temp2 = False ;
d14a1e28
RD
7558 PyObject * obj0 = 0 ;
7559 PyObject * obj1 = 0 ;
8edf1c75 7560 PyObject * obj2 = 0 ;
d14a1e28
RD
7561 char *kwnames[] = {
7562 (char *) "self",(char *) "spec",(char *) "flags", NULL
7563 };
7564
8edf1c75 7565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MemoryFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28
RD
7566 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7567 {
7568 arg2 = wxString_in_helper(obj1);
7569 if (arg2 == NULL) SWIG_fail;
423f194a 7570 temp2 = True;
d14a1e28 7571 }
8edf1c75
RD
7572 if (obj2) {
7573 {
7574 arg3 = (int) SWIG_PyObj_AsInt(obj2);
7575 if (PyErr_Occurred()) SWIG_fail;
7576 }
7577 }
d14a1e28
RD
7578 {
7579 PyThreadState* __tstate = wxPyBeginAllowThreads();
7580 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
7581
7582 wxPyEndAllowThreads(__tstate);
7583 if (PyErr_Occurred()) SWIG_fail;
7584 }
7585 {
7586#if wxUSE_UNICODE
7587 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7588#else
7589 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7590#endif
7591 }
7592 {
7593 if (temp2)
7594 delete arg2;
7595 }
7596 return resultobj;
7597 fail:
7598 {
7599 if (temp2)
7600 delete arg2;
7601 }
7602 return NULL;
7603}
7604
7605
7606static PyObject *_wrap_MemoryFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) {
7607 PyObject *resultobj;
7608 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
7609 wxString result;
7610 PyObject * obj0 = 0 ;
7611 char *kwnames[] = {
7612 (char *) "self", NULL
7613 };
7614
7615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_FindNext",kwnames,&obj0)) goto fail;
7616 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryFSHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7617 {
7618 PyThreadState* __tstate = wxPyBeginAllowThreads();
7619 result = (arg1)->FindNext();
7620
7621 wxPyEndAllowThreads(__tstate);
7622 if (PyErr_Occurred()) SWIG_fail;
7623 }
7624 {
7625#if wxUSE_UNICODE
7626 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7627#else
7628 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7629#endif
7630 }
7631 return resultobj;
7632 fail:
7633 return NULL;
7634}
7635
7636
7637static PyObject * MemoryFSHandler_swigregister(PyObject *self, PyObject *args) {
7638 PyObject *obj;
7639 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7640 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryFSHandler, obj);
7641 Py_INCREF(obj);
7642 return Py_BuildValue((char *)"");
7643}
7644static PyObject *_wrap_ImageHandler_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
7645 PyObject *resultobj;
7646 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
7647 wxString result;
7648 PyObject * obj0 = 0 ;
7649 char *kwnames[] = {
7650 (char *) "self", NULL
7651 };
7652
7653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetName",kwnames,&obj0)) goto fail;
7654 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7655 {
7656 PyThreadState* __tstate = wxPyBeginAllowThreads();
7657 result = (arg1)->GetName();
7658
7659 wxPyEndAllowThreads(__tstate);
7660 if (PyErr_Occurred()) SWIG_fail;
7661 }
7662 {
7663#if wxUSE_UNICODE
7664 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7665#else
7666 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7667#endif
7668 }
7669 return resultobj;
7670 fail:
7671 return NULL;
7672}
7673
7674
7675static PyObject *_wrap_ImageHandler_GetExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
7676 PyObject *resultobj;
7677 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
7678 wxString result;
7679 PyObject * obj0 = 0 ;
7680 char *kwnames[] = {
7681 (char *) "self", NULL
7682 };
7683
7684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetExtension",kwnames,&obj0)) goto fail;
7685 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7686 {
7687 PyThreadState* __tstate = wxPyBeginAllowThreads();
7688 result = (arg1)->GetExtension();
7689
7690 wxPyEndAllowThreads(__tstate);
7691 if (PyErr_Occurred()) SWIG_fail;
7692 }
7693 {
7694#if wxUSE_UNICODE
7695 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7696#else
7697 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7698#endif
7699 }
7700 return resultobj;
7701 fail:
7702 return NULL;
7703}
7704
7705
7706static PyObject *_wrap_ImageHandler_GetType(PyObject *self, PyObject *args, PyObject *kwargs) {
7707 PyObject *resultobj;
7708 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
7709 long result;
7710 PyObject * obj0 = 0 ;
7711 char *kwnames[] = {
7712 (char *) "self", NULL
7713 };
7714
7715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetType",kwnames,&obj0)) goto fail;
7716 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7717 {
7718 PyThreadState* __tstate = wxPyBeginAllowThreads();
7719 result = (long)(arg1)->GetType();
7720
7721 wxPyEndAllowThreads(__tstate);
7722 if (PyErr_Occurred()) SWIG_fail;
7723 }
8edf1c75 7724 resultobj = SWIG_PyObj_FromLong((long)result);
d14a1e28
RD
7725 return resultobj;
7726 fail:
7727 return NULL;
7728}
7729
7730
7731static PyObject *_wrap_ImageHandler_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
7732 PyObject *resultobj;
7733 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
7734 wxString result;
7735 PyObject * obj0 = 0 ;
7736 char *kwnames[] = {
7737 (char *) "self", NULL
7738 };
7739
7740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetMimeType",kwnames,&obj0)) goto fail;
7741 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7742 {
7743 PyThreadState* __tstate = wxPyBeginAllowThreads();
7744 result = (arg1)->GetMimeType();
7745
7746 wxPyEndAllowThreads(__tstate);
7747 if (PyErr_Occurred()) SWIG_fail;
7748 }
7749 {
7750#if wxUSE_UNICODE
7751 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7752#else
7753 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7754#endif
7755 }
7756 return resultobj;
7757 fail:
7758 return NULL;
7759}
7760
7761
7762static PyObject *_wrap_ImageHandler_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) {
7763 PyObject *resultobj;
7764 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
7765 wxString *arg2 = 0 ;
7766 bool result;
423f194a 7767 bool temp2 = False ;
d14a1e28
RD
7768 PyObject * obj0 = 0 ;
7769 PyObject * obj1 = 0 ;
7770 char *kwnames[] = {
7771 (char *) "self",(char *) "name", NULL
7772 };
7773
7774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanRead",kwnames,&obj0,&obj1)) goto fail;
7775 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7776 {
7777 arg2 = wxString_in_helper(obj1);
7778 if (arg2 == NULL) SWIG_fail;
423f194a 7779 temp2 = True;
d14a1e28
RD
7780 }
7781 {
7782 PyThreadState* __tstate = wxPyBeginAllowThreads();
7783 result = (bool)(arg1)->CanRead((wxString const &)*arg2);
7784
7785 wxPyEndAllowThreads(__tstate);
7786 if (PyErr_Occurred()) SWIG_fail;
7787 }
4e760a36 7788 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
7789 {
7790 if (temp2)
7791 delete arg2;
7792 }
7793 return resultobj;
7794 fail:
7795 {
7796 if (temp2)
7797 delete arg2;
7798 }
7799 return NULL;
7800}
7801
7802
7803static PyObject *_wrap_ImageHandler_SetName(PyObject *self, PyObject *args, PyObject *kwargs) {
7804 PyObject *resultobj;
7805 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
7806 wxString *arg2 = 0 ;
423f194a 7807 bool temp2 = False ;
d14a1e28
RD
7808 PyObject * obj0 = 0 ;
7809 PyObject * obj1 = 0 ;
7810 char *kwnames[] = {
7811 (char *) "self",(char *) "name", NULL
7812 };
7813
7814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetName",kwnames,&obj0,&obj1)) goto fail;
7815 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7816 {
7817 arg2 = wxString_in_helper(obj1);
7818 if (arg2 == NULL) SWIG_fail;
423f194a 7819 temp2 = True;
d14a1e28
RD
7820 }
7821 {
7822 PyThreadState* __tstate = wxPyBeginAllowThreads();
7823 (arg1)->SetName((wxString const &)*arg2);
7824
7825 wxPyEndAllowThreads(__tstate);
7826 if (PyErr_Occurred()) SWIG_fail;
7827 }
7828 Py_INCREF(Py_None); resultobj = Py_None;
7829 {
7830 if (temp2)
7831 delete arg2;
7832 }
7833 return resultobj;
7834 fail:
7835 {
7836 if (temp2)
7837 delete arg2;
7838 }
7839 return NULL;
7840}
7841
7842
7843static PyObject *_wrap_ImageHandler_SetExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
7844 PyObject *resultobj;
7845 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
7846 wxString *arg2 = 0 ;
423f194a 7847 bool temp2 = False ;
d14a1e28
RD
7848 PyObject * obj0 = 0 ;
7849 PyObject * obj1 = 0 ;
7850 char *kwnames[] = {
7851 (char *) "self",(char *) "extension", NULL
7852 };
7853
7854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetExtension",kwnames,&obj0,&obj1)) goto fail;
7855 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7856 {
7857 arg2 = wxString_in_helper(obj1);
7858 if (arg2 == NULL) SWIG_fail;
423f194a 7859 temp2 = True;
d14a1e28
RD
7860 }
7861 {
7862 PyThreadState* __tstate = wxPyBeginAllowThreads();
7863 (arg1)->SetExtension((wxString const &)*arg2);
7864
7865 wxPyEndAllowThreads(__tstate);
7866 if (PyErr_Occurred()) SWIG_fail;
7867 }
7868 Py_INCREF(Py_None); resultobj = Py_None;
7869 {
7870 if (temp2)
7871 delete arg2;
7872 }
7873 return resultobj;
7874 fail:
7875 {
7876 if (temp2)
7877 delete arg2;
7878 }
7879 return NULL;
7880}
7881
7882
7883static PyObject *_wrap_ImageHandler_SetType(PyObject *self, PyObject *args, PyObject *kwargs) {
7884 PyObject *resultobj;
7885 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
7886 long arg2 ;
7887 PyObject * obj0 = 0 ;
8edf1c75 7888 PyObject * obj1 = 0 ;
d14a1e28
RD
7889 char *kwnames[] = {
7890 (char *) "self",(char *) "type", NULL
7891 };
7892
8edf1c75 7893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetType",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 7894 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
7895 {
7896 arg2 = (long) SWIG_PyObj_AsLong(obj1);
7897 if (PyErr_Occurred()) SWIG_fail;
7898 }
d14a1e28
RD
7899 {
7900 PyThreadState* __tstate = wxPyBeginAllowThreads();
7901 (arg1)->SetType(arg2);
7902
7903 wxPyEndAllowThreads(__tstate);
7904 if (PyErr_Occurred()) SWIG_fail;
7905 }
7906 Py_INCREF(Py_None); resultobj = Py_None;
7907 return resultobj;
7908 fail:
7909 return NULL;
7910}
7911
7912
7913static PyObject *_wrap_ImageHandler_SetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
7914 PyObject *resultobj;
7915 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
7916 wxString *arg2 = 0 ;
423f194a 7917 bool temp2 = False ;
d14a1e28
RD
7918 PyObject * obj0 = 0 ;
7919 PyObject * obj1 = 0 ;
7920 char *kwnames[] = {
7921 (char *) "self",(char *) "mimetype", NULL
7922 };
7923
7924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetMimeType",kwnames,&obj0,&obj1)) goto fail;
7925 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7926 {
7927 arg2 = wxString_in_helper(obj1);
7928 if (arg2 == NULL) SWIG_fail;
423f194a 7929 temp2 = True;
d14a1e28
RD
7930 }
7931 {
7932 PyThreadState* __tstate = wxPyBeginAllowThreads();
7933 (arg1)->SetMimeType((wxString const &)*arg2);
7934
7935 wxPyEndAllowThreads(__tstate);
7936 if (PyErr_Occurred()) SWIG_fail;
7937 }
7938 Py_INCREF(Py_None); resultobj = Py_None;
7939 {
7940 if (temp2)
7941 delete arg2;
7942 }
7943 return resultobj;
7944 fail:
7945 {
7946 if (temp2)
7947 delete arg2;
7948 }
7949 return NULL;
7950}
7951
7952
7953static PyObject * ImageHandler_swigregister(PyObject *self, PyObject *args) {
7954 PyObject *obj;
7955 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7956 SWIG_TypeClientData(SWIGTYPE_p_wxImageHandler, obj);
7957 Py_INCREF(obj);
7958 return Py_BuildValue((char *)"");
7959}
7960static PyObject *_wrap_new_ImageHistogram(PyObject *self, PyObject *args, PyObject *kwargs) {
7961 PyObject *resultobj;
7962 wxImageHistogram *result;
7963 char *kwnames[] = {
7964 NULL
7965 };
7966
7967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ImageHistogram",kwnames)) goto fail;
7968 {
7969 PyThreadState* __tstate = wxPyBeginAllowThreads();
7970 result = (wxImageHistogram *)new wxImageHistogram();
7971
7972 wxPyEndAllowThreads(__tstate);
7973 if (PyErr_Occurred()) SWIG_fail;
7974 }
7975 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImageHistogram, 1);
7976 return resultobj;
7977 fail:
7978 return NULL;
7979}
7980
7981
7982static PyObject *_wrap_ImageHistogram_MakeKey(PyObject *self, PyObject *args, PyObject *kwargs) {
7983 PyObject *resultobj;
7984 unsigned char arg1 ;
7985 unsigned char arg2 ;
7986 unsigned char arg3 ;
7987 unsigned long result;
7988 PyObject * obj0 = 0 ;
7989 PyObject * obj1 = 0 ;
7990 PyObject * obj2 = 0 ;
7991 char *kwnames[] = {
7992 (char *) "r",(char *) "g",(char *) "b", NULL
7993 };
7994
7995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageHistogram_MakeKey",kwnames,&obj0,&obj1,&obj2)) goto fail;
83448d71 7996 {
8edf1c75 7997 arg1 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj0);
83448d71
RD
7998 if (PyErr_Occurred()) SWIG_fail;
7999 }
8000 {
8edf1c75 8001 arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1);
83448d71
RD
8002 if (PyErr_Occurred()) SWIG_fail;
8003 }
8004 {
8edf1c75 8005 arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2);
83448d71
RD
8006 if (PyErr_Occurred()) SWIG_fail;
8007 }
d14a1e28
RD
8008 {
8009 PyThreadState* __tstate = wxPyBeginAllowThreads();
8010 result = (unsigned long)wxImageHistogram::MakeKey(arg1,arg2,arg3);
8011
8012 wxPyEndAllowThreads(__tstate);
8013 if (PyErr_Occurred()) SWIG_fail;
8014 }
8edf1c75 8015 resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result);
d14a1e28
RD
8016 return resultobj;
8017 fail:
8018 return NULL;
8019}
8020
8021
8022static PyObject *_wrap_ImageHistogram_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
8023 PyObject *resultobj;
8024 wxImageHistogram *arg1 = (wxImageHistogram *) 0 ;
8025 unsigned char *arg2 = (unsigned char *) 0 ;
8026 unsigned char *arg3 = (unsigned char *) 0 ;
8027 unsigned char *arg4 = (unsigned char *) 0 ;
8028 unsigned char arg5 = (unsigned char) 1 ;
8029 unsigned char arg6 = (unsigned char) 0 ;
8030 unsigned char arg7 = (unsigned char) 0 ;
8031 bool result;
8032 unsigned char temp2 ;
8033 unsigned char temp3 ;
8034 unsigned char temp4 ;
8035 PyObject * obj0 = 0 ;
8036 PyObject * obj1 = 0 ;
8037 PyObject * obj2 = 0 ;
8038 PyObject * obj3 = 0 ;
8039 char *kwnames[] = {
8040 (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL
8041 };
8042
8043 arg2 = &temp2;
8044 arg3 = &temp3;
8045 arg4 = &temp4;
8046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:ImageHistogram_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8047 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHistogram,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8048 if (obj1) {
83448d71 8049 {
8edf1c75 8050 arg5 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1);
83448d71
RD
8051 if (PyErr_Occurred()) SWIG_fail;
8052 }
d14a1e28
RD
8053 }
8054 if (obj2) {
83448d71 8055 {
8edf1c75 8056 arg6 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2);
83448d71
RD
8057 if (PyErr_Occurred()) SWIG_fail;
8058 }
d14a1e28
RD
8059 }
8060 if (obj3) {
83448d71 8061 {
8edf1c75 8062 arg7 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3);
83448d71
RD
8063 if (PyErr_Occurred()) SWIG_fail;
8064 }
d14a1e28
RD
8065 }
8066 {
8067 PyThreadState* __tstate = wxPyBeginAllowThreads();
8068 result = (bool)((wxImageHistogram const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7);
8069
8070 wxPyEndAllowThreads(__tstate);
8071 if (PyErr_Occurred()) SWIG_fail;
8072 }
4e760a36 8073 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
8074 {
8075 PyObject *o = PyInt_FromLong((long) (*arg2));
8076 resultobj = t_output_helper(resultobj,o);
8077 }
8078 {
8079 PyObject *o = PyInt_FromLong((long) (*arg3));
8080 resultobj = t_output_helper(resultobj,o);
8081 }
8082 {
8083 PyObject *o = PyInt_FromLong((long) (*arg4));
8084 resultobj = t_output_helper(resultobj,o);
8085 }
8086 return resultobj;
8087 fail:
8088 return NULL;
8089}
8090
8091
8092static PyObject * ImageHistogram_swigregister(PyObject *self, PyObject *args) {
8093 PyObject *obj;
8094 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8095 SWIG_TypeClientData(SWIGTYPE_p_wxImageHistogram, obj);
8096 Py_INCREF(obj);
8097 return Py_BuildValue((char *)"");
8098}
8099static PyObject *_wrap_new_Image(PyObject *self, PyObject *args, PyObject *kwargs) {
8100 PyObject *resultobj;
8101 wxString *arg1 = 0 ;
8102 long arg2 = (long) wxBITMAP_TYPE_ANY ;
8103 int arg3 = (int) -1 ;
8104 wxImage *result;
423f194a 8105 bool temp1 = False ;
d14a1e28 8106 PyObject * obj0 = 0 ;
8edf1c75
RD
8107 PyObject * obj1 = 0 ;
8108 PyObject * obj2 = 0 ;
d14a1e28
RD
8109 char *kwnames[] = {
8110 (char *) "name",(char *) "type",(char *) "index", NULL
8111 };
8112
8edf1c75 8113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Image",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28
RD
8114 {
8115 arg1 = wxString_in_helper(obj0);
8116 if (arg1 == NULL) SWIG_fail;
423f194a 8117 temp1 = True;
d14a1e28 8118 }
8edf1c75
RD
8119 if (obj1) {
8120 {
8121 arg2 = (long) SWIG_PyObj_AsLong(obj1);
8122 if (PyErr_Occurred()) SWIG_fail;
8123 }
8124 }
8125 if (obj2) {
8126 {
8127 arg3 = (int) SWIG_PyObj_AsInt(obj2);
8128 if (PyErr_Occurred()) SWIG_fail;
8129 }
8130 }
d14a1e28
RD
8131 {
8132 PyThreadState* __tstate = wxPyBeginAllowThreads();
8133 result = (wxImage *)new wxImage((wxString const &)*arg1,arg2,arg3);
8134
8135 wxPyEndAllowThreads(__tstate);
8136 if (PyErr_Occurred()) SWIG_fail;
8137 }
8138 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1);
8139 {
8140 if (temp1)
8141 delete arg1;
8142 }
8143 return resultobj;
8144 fail:
8145 {
8146 if (temp1)
8147 delete arg1;
8148 }
8149 return NULL;
8150}
8151
8152
8153static PyObject *_wrap_delete_Image(PyObject *self, PyObject *args, PyObject *kwargs) {
8154 PyObject *resultobj;
8155 wxImage *arg1 = (wxImage *) 0 ;
8156 PyObject * obj0 = 0 ;
8157 char *kwnames[] = {
8158 (char *) "self", NULL
8159 };
8160
8161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Image",kwnames,&obj0)) goto fail;
8162 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8163 {
8164 PyThreadState* __tstate = wxPyBeginAllowThreads();
8165 delete arg1;
8166
8167 wxPyEndAllowThreads(__tstate);
8168 if (PyErr_Occurred()) SWIG_fail;
8169 }
8170 Py_INCREF(Py_None); resultobj = Py_None;
8171 return resultobj;
8172 fail:
8173 return NULL;
8174}
8175
8176
8177static PyObject *_wrap_new_ImageFromMime(PyObject *self, PyObject *args, PyObject *kwargs) {
8178 PyObject *resultobj;
8179 wxString *arg1 = 0 ;
8180 wxString *arg2 = 0 ;
8181 int arg3 = (int) -1 ;
8182 wxImage *result;
423f194a
RD
8183 bool temp1 = False ;
8184 bool temp2 = False ;
d14a1e28
RD
8185 PyObject * obj0 = 0 ;
8186 PyObject * obj1 = 0 ;
8edf1c75 8187 PyObject * obj2 = 0 ;
d14a1e28
RD
8188 char *kwnames[] = {
8189 (char *) "name",(char *) "mimetype",(char *) "index", NULL
8190 };
8191
8edf1c75 8192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromMime",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28
RD
8193 {
8194 arg1 = wxString_in_helper(obj0);
8195 if (arg1 == NULL) SWIG_fail;
423f194a 8196 temp1 = True;
d14a1e28
RD
8197 }
8198 {
8199 arg2 = wxString_in_helper(obj1);
8200 if (arg2 == NULL) SWIG_fail;
423f194a 8201 temp2 = True;
d14a1e28 8202 }
8edf1c75
RD
8203 if (obj2) {
8204 {
8205 arg3 = (int) SWIG_PyObj_AsInt(obj2);
8206 if (PyErr_Occurred()) SWIG_fail;
8207 }
8208 }
d14a1e28
RD
8209 {
8210 PyThreadState* __tstate = wxPyBeginAllowThreads();
8211 result = (wxImage *)new wxImage((wxString const &)*arg1,(wxString const &)*arg2,arg3);
8212
8213 wxPyEndAllowThreads(__tstate);
8214 if (PyErr_Occurred()) SWIG_fail;
8215 }
8216 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1);
8217 {
8218 if (temp1)
8219 delete arg1;
8220 }
8221 {
8222 if (temp2)
8223 delete arg2;
8224 }
8225 return resultobj;
8226 fail:
8227 {
8228 if (temp1)
8229 delete arg1;
8230 }
8231 {
8232 if (temp2)
8233 delete arg2;
8234 }
8235 return NULL;
8236}
8237
8238
8239static PyObject *_wrap_new_ImageFromStream(PyObject *self, PyObject *args, PyObject *kwargs) {
8240 PyObject *resultobj;
8241 wxInputStream *arg1 = 0 ;
8242 long arg2 = (long) wxBITMAP_TYPE_ANY ;
8243 int arg3 = (int) -1 ;
8244 wxImage *result;
8245 wxPyInputStream *temp1 ;
8246 bool created1 ;
8247 PyObject * obj0 = 0 ;
8edf1c75
RD
8248 PyObject * obj1 = 0 ;
8249 PyObject * obj2 = 0 ;
d14a1e28
RD
8250 char *kwnames[] = {
8251 (char *) "stream",(char *) "type",(char *) "index", NULL
8252 };
8253
8edf1c75 8254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_ImageFromStream",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28
RD
8255 {
8256 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
8257 arg1 = temp1->m_wxis;
423f194a 8258 created1 = False;
d14a1e28
RD
8259 } else {
8260 PyErr_Clear(); // clear the failure of the wxPyConvert above
423f194a 8261 arg1 = wxPyCBInputStream_create(obj0, False);
d14a1e28
RD
8262 if (arg1 == NULL) {
8263 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
8264 SWIG_fail;
8265 }
423f194a 8266 created1 = True;
d14a1e28
RD
8267 }
8268 }
8edf1c75
RD
8269 if (obj1) {
8270 {
8271 arg2 = (long) SWIG_PyObj_AsLong(obj1);
8272 if (PyErr_Occurred()) SWIG_fail;
8273 }
8274 }
8275 if (obj2) {
8276 {
8277 arg3 = (int) SWIG_PyObj_AsInt(obj2);
8278 if (PyErr_Occurred()) SWIG_fail;
8279 }
8280 }
d14a1e28
RD
8281 {
8282 PyThreadState* __tstate = wxPyBeginAllowThreads();
8283 result = (wxImage *)new wxImage(*arg1,arg2,arg3);
8284
8285 wxPyEndAllowThreads(__tstate);
8286 if (PyErr_Occurred()) SWIG_fail;
8287 }
8288 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1);
8289 {
8290 if (created1)
8291 delete arg1;
8292 }
8293 return resultobj;
8294 fail:
8295 {
8296 if (created1)
8297 delete arg1;
8298 }
8299 return NULL;
8300}
8301
8302
8303static PyObject *_wrap_new_ImageFromStreamMime(PyObject *self, PyObject *args, PyObject *kwargs) {
8304 PyObject *resultobj;
8305 wxInputStream *arg1 = 0 ;
8306 wxString *arg2 = 0 ;
8307 int arg3 = (int) -1 ;
8308 wxImage *result;
8309 wxPyInputStream *temp1 ;
8310 bool created1 ;
423f194a 8311 bool temp2 = False ;
d14a1e28
RD
8312 PyObject * obj0 = 0 ;
8313 PyObject * obj1 = 0 ;
8edf1c75 8314 PyObject * obj2 = 0 ;
d14a1e28
RD
8315 char *kwnames[] = {
8316 (char *) "stream",(char *) "mimetype",(char *) "index", NULL
8317 };
8318
8edf1c75 8319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromStreamMime",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28
RD
8320 {
8321 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
8322 arg1 = temp1->m_wxis;
423f194a 8323 created1 = False;
d14a1e28
RD
8324 } else {
8325 PyErr_Clear(); // clear the failure of the wxPyConvert above
423f194a 8326 arg1 = wxPyCBInputStream_create(obj0, False);
d14a1e28
RD
8327 if (arg1 == NULL) {
8328 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
8329 SWIG_fail;
8330 }
423f194a 8331 created1 = True;
d14a1e28
RD
8332 }
8333 }
8334 {
8335 arg2 = wxString_in_helper(obj1);
8336 if (arg2 == NULL) SWIG_fail;
423f194a 8337 temp2 = True;
d14a1e28 8338 }
8edf1c75
RD
8339 if (obj2) {
8340 {
8341 arg3 = (int) SWIG_PyObj_AsInt(obj2);
8342 if (PyErr_Occurred()) SWIG_fail;
8343 }
8344 }
d14a1e28
RD
8345 {
8346 PyThreadState* __tstate = wxPyBeginAllowThreads();
8347 result = (wxImage *)new wxImage(*arg1,(wxString const &)*arg2,arg3);
8348
8349 wxPyEndAllowThreads(__tstate);
8350 if (PyErr_Occurred()) SWIG_fail;
8351 }
8352 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1);
8353 {
8354 if (created1)
8355 delete arg1;
8356 }
8357 {
8358 if (temp2)
8359 delete arg2;
8360 }
8361 return resultobj;
8362 fail:
8363 {
8364 if (created1)
8365 delete arg1;
8366 }
8367 {
8368 if (temp2)
8369 delete arg2;
8370 }
8371 return NULL;
8372}
8373
8374
8375static PyObject *_wrap_new_EmptyImage(PyObject *self, PyObject *args, PyObject *kwargs) {
8376 PyObject *resultobj;
8377 int arg1 = (int) 0 ;
8378 int arg2 = (int) 0 ;
423f194a 8379 bool arg3 = (bool) True ;
d14a1e28 8380 wxImage *result;
8edf1c75
RD
8381 PyObject * obj0 = 0 ;
8382 PyObject * obj1 = 0 ;
d14a1e28
RD
8383 PyObject * obj2 = 0 ;
8384 char *kwnames[] = {
8385 (char *) "width",(char *) "height",(char *) "clear", NULL
8386 };
8387
8edf1c75
RD
8388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_EmptyImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
8389 if (obj0) {
8390 {
8391 arg1 = (int) SWIG_PyObj_AsInt(obj0);
8392 if (PyErr_Occurred()) SWIG_fail;
8393 }
8394 }
8395 if (obj1) {
8396 {
8397 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8398 if (PyErr_Occurred()) SWIG_fail;
8399 }
8400 }
d14a1e28 8401 if (obj2) {
83448d71 8402 {
8edf1c75 8403 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
83448d71
RD
8404 if (PyErr_Occurred()) SWIG_fail;
8405 }
d14a1e28
RD
8406 }
8407 {
8408 PyThreadState* __tstate = wxPyBeginAllowThreads();
8409 result = (wxImage *)new_wxImage(arg1,arg2,arg3);
8410
8411 wxPyEndAllowThreads(__tstate);
8412 if (PyErr_Occurred()) SWIG_fail;
8413 }
8414 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1);
8415 return resultobj;
8416 fail:
8417 return NULL;
8418}
8419
8420
8421static PyObject *_wrap_new_ImageFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
8422 PyObject *resultobj;
8423 wxBitmap *arg1 = 0 ;
8424 wxImage *result;
8425 PyObject * obj0 = 0 ;
8426 char *kwnames[] = {
8427 (char *) "bitmap", NULL
8428 };
8429
8430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ImageFromBitmap",kwnames,&obj0)) goto fail;
8431 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8432 if (arg1 == NULL) {
8433 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8434 }
8435 {
8436 PyThreadState* __tstate = wxPyBeginAllowThreads();
8437 result = (wxImage *)new_wxImage((wxBitmap const &)*arg1);
8438
8439 wxPyEndAllowThreads(__tstate);
8440 if (PyErr_Occurred()) SWIG_fail;
8441 }
8442 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1);
8443 return resultobj;
8444 fail:
8445 return NULL;
8446}
8447
8448
8449static PyObject *_wrap_new_ImageFromData(PyObject *self, PyObject *args, PyObject *kwargs) {
8450 PyObject *resultobj;
8451 int arg1 ;
8452 int arg2 ;
8453 unsigned char *arg3 = (unsigned char *) 0 ;
8454 wxImage *result;
8edf1c75
RD
8455 PyObject * obj0 = 0 ;
8456 PyObject * obj1 = 0 ;
d14a1e28
RD
8457 PyObject * obj2 = 0 ;
8458 char *kwnames[] = {
8459 (char *) "width",(char *) "height",(char *) "data", NULL
8460 };
8461
8edf1c75
RD
8462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ImageFromData",kwnames,&obj0,&obj1,&obj2)) goto fail;
8463 {
8464 arg1 = (int) SWIG_PyObj_AsInt(obj0);
8465 if (PyErr_Occurred()) SWIG_fail;
8466 }
8467 {
8468 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8469 if (PyErr_Occurred()) SWIG_fail;
8470 }
d14a1e28
RD
8471 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8472 {
8473 PyThreadState* __tstate = wxPyBeginAllowThreads();
8474 result = (wxImage *)new_wxImage(arg1,arg2,arg3);
8475
8476 wxPyEndAllowThreads(__tstate);
8477 if (PyErr_Occurred()) SWIG_fail;
8478 }
8479 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 1);
8480 return resultobj;
8481 fail:
8482 return NULL;
8483}
8484
8485
8486static PyObject *_wrap_Image_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
8487 PyObject *resultobj;
8488 wxImage *arg1 = (wxImage *) 0 ;
8489 int arg2 ;
8490 int arg3 ;
8491 PyObject * obj0 = 0 ;
8edf1c75
RD
8492 PyObject * obj1 = 0 ;
8493 PyObject * obj2 = 0 ;
d14a1e28
RD
8494 char *kwnames[] = {
8495 (char *) "self",(char *) "width",(char *) "height", NULL
8496 };
8497
8edf1c75 8498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Create",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 8499 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
8500 {
8501 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8502 if (PyErr_Occurred()) SWIG_fail;
8503 }
8504 {
8505 arg3 = (int) SWIG_PyObj_AsInt(obj2);
8506 if (PyErr_Occurred()) SWIG_fail;
8507 }
d14a1e28
RD
8508 {
8509 PyThreadState* __tstate = wxPyBeginAllowThreads();
8510 (arg1)->Create(arg2,arg3);
8511
8512 wxPyEndAllowThreads(__tstate);
8513 if (PyErr_Occurred()) SWIG_fail;
8514 }
8515 Py_INCREF(Py_None); resultobj = Py_None;
8516 return resultobj;
8517 fail:
8518 return NULL;
8519}
8520
8521
8522static PyObject *_wrap_Image_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
8523 PyObject *resultobj;
8524 wxImage *arg1 = (wxImage *) 0 ;
8525 PyObject * obj0 = 0 ;
8526 char *kwnames[] = {
8527 (char *) "self", NULL
8528 };
8529
8530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Destroy",kwnames,&obj0)) goto fail;
8531 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8532 {
8533 PyThreadState* __tstate = wxPyBeginAllowThreads();
8534 (arg1)->Destroy();
8535
8536 wxPyEndAllowThreads(__tstate);
8537 if (PyErr_Occurred()) SWIG_fail;
8538 }
8539 Py_INCREF(Py_None); resultobj = Py_None;
8540 return resultobj;
8541 fail:
8542 return NULL;
8543}
8544
8545
8546static PyObject *_wrap_Image_Scale(PyObject *self, PyObject *args, PyObject *kwargs) {
8547 PyObject *resultobj;
8548 wxImage *arg1 = (wxImage *) 0 ;
8549 int arg2 ;
8550 int arg3 ;
8551 SwigValueWrapper< wxImage > result;
8552 PyObject * obj0 = 0 ;
8edf1c75
RD
8553 PyObject * obj1 = 0 ;
8554 PyObject * obj2 = 0 ;
d14a1e28
RD
8555 char *kwnames[] = {
8556 (char *) "self",(char *) "width",(char *) "height", NULL
8557 };
8558
8edf1c75 8559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Scale",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 8560 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
8561 {
8562 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8563 if (PyErr_Occurred()) SWIG_fail;
8564 }
8565 {
8566 arg3 = (int) SWIG_PyObj_AsInt(obj2);
8567 if (PyErr_Occurred()) SWIG_fail;
8568 }
d14a1e28
RD
8569 {
8570 PyThreadState* __tstate = wxPyBeginAllowThreads();
8571 result = (arg1)->Scale(arg2,arg3);
8572
8573 wxPyEndAllowThreads(__tstate);
8574 if (PyErr_Occurred()) SWIG_fail;
8575 }
8576 {
8577 wxImage * resultptr;
8578 resultptr = new wxImage((wxImage &) result);
8579 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1);
8580 }
8581 return resultobj;
8582 fail:
8583 return NULL;
8584}
8585
8586
8587static PyObject *_wrap_Image_ShrinkBy(PyObject *self, PyObject *args, PyObject *kwargs) {
8588 PyObject *resultobj;
8589 wxImage *arg1 = (wxImage *) 0 ;
8590 int arg2 ;
8591 int arg3 ;
8592 SwigValueWrapper< wxImage > result;
8593 PyObject * obj0 = 0 ;
8edf1c75
RD
8594 PyObject * obj1 = 0 ;
8595 PyObject * obj2 = 0 ;
d14a1e28
RD
8596 char *kwnames[] = {
8597 (char *) "self",(char *) "xFactor",(char *) "yFactor", NULL
8598 };
8599
8edf1c75 8600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ShrinkBy",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 8601 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
8602 {
8603 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8604 if (PyErr_Occurred()) SWIG_fail;
8605 }
8606 {
8607 arg3 = (int) SWIG_PyObj_AsInt(obj2);
8608 if (PyErr_Occurred()) SWIG_fail;
8609 }
d14a1e28
RD
8610 {
8611 PyThreadState* __tstate = wxPyBeginAllowThreads();
8612 result = ((wxImage const *)arg1)->ShrinkBy(arg2,arg3);
8613
8614 wxPyEndAllowThreads(__tstate);
8615 if (PyErr_Occurred()) SWIG_fail;
8616 }
8617 {
8618 wxImage * resultptr;
8619 resultptr = new wxImage((wxImage &) result);
8620 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1);
8621 }
8622 return resultobj;
8623 fail:
8624 return NULL;
8625}
8626
8627
8628static PyObject *_wrap_Image_Rescale(PyObject *self, PyObject *args, PyObject *kwargs) {
8629 PyObject *resultobj;
8630 wxImage *arg1 = (wxImage *) 0 ;
8631 int arg2 ;
8632 int arg3 ;
8633 wxImage *result;
8634 PyObject * obj0 = 0 ;
8edf1c75
RD
8635 PyObject * obj1 = 0 ;
8636 PyObject * obj2 = 0 ;
d14a1e28
RD
8637 char *kwnames[] = {
8638 (char *) "self",(char *) "width",(char *) "height", NULL
8639 };
8640
8edf1c75 8641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Rescale",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 8642 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
8643 {
8644 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8645 if (PyErr_Occurred()) SWIG_fail;
8646 }
8647 {
8648 arg3 = (int) SWIG_PyObj_AsInt(obj2);
8649 if (PyErr_Occurred()) SWIG_fail;
8650 }
d14a1e28
RD
8651 {
8652 PyThreadState* __tstate = wxPyBeginAllowThreads();
8653 {
8654 wxImage &_result_ref = (arg1)->Rescale(arg2,arg3);
8655 result = (wxImage *) &_result_ref;
8656 }
8657
8658 wxPyEndAllowThreads(__tstate);
8659 if (PyErr_Occurred()) SWIG_fail;
8660 }
8661 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxImage, 0);
8662 return resultobj;
8663 fail:
8664 return NULL;
8665}
8666
8667
8668static PyObject *_wrap_Image_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
8669 PyObject *resultobj;
8670 wxImage *arg1 = (wxImage *) 0 ;
8671 int arg2 ;
8672 int arg3 ;
8673 unsigned char arg4 ;
8674 unsigned char arg5 ;
8675 unsigned char arg6 ;
8676 PyObject * obj0 = 0 ;
8edf1c75
RD
8677 PyObject * obj1 = 0 ;
8678 PyObject * obj2 = 0 ;
d14a1e28
RD
8679 PyObject * obj3 = 0 ;
8680 PyObject * obj4 = 0 ;
8681 PyObject * obj5 = 0 ;
8682 char *kwnames[] = {
8683 (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "g",(char *) "b", NULL
8684 };
8685
8edf1c75 8686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Image_SetRGB",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
d14a1e28 8687 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 8688 {
8edf1c75
RD
8689 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8690 if (PyErr_Occurred()) SWIG_fail;
8691 }
8692 {
8693 arg3 = (int) SWIG_PyObj_AsInt(obj2);
8694 if (PyErr_Occurred()) SWIG_fail;
8695 }
8696 {
8697 arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3);
83448d71
RD
8698 if (PyErr_Occurred()) SWIG_fail;
8699 }
8700 {
8edf1c75 8701 arg5 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj4);
83448d71
RD
8702 if (PyErr_Occurred()) SWIG_fail;
8703 }
8704 {
8edf1c75 8705 arg6 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj5);
83448d71
RD
8706 if (PyErr_Occurred()) SWIG_fail;
8707 }
d14a1e28
RD
8708 {
8709 PyThreadState* __tstate = wxPyBeginAllowThreads();
8710 (arg1)->SetRGB(arg2,arg3,arg4,arg5,arg6);
8711
8712 wxPyEndAllowThreads(__tstate);
8713 if (PyErr_Occurred()) SWIG_fail;
8714 }
8715 Py_INCREF(Py_None); resultobj = Py_None;
8716 return resultobj;
8717 fail:
8718 return NULL;
8719}
8720
8721
8722static PyObject *_wrap_Image_GetRed(PyObject *self, PyObject *args, PyObject *kwargs) {
8723 PyObject *resultobj;
8724 wxImage *arg1 = (wxImage *) 0 ;
8725 int arg2 ;
8726 int arg3 ;
8727 unsigned char result;
8728 PyObject * obj0 = 0 ;
8edf1c75
RD
8729 PyObject * obj1 = 0 ;
8730 PyObject * obj2 = 0 ;
d14a1e28
RD
8731 char *kwnames[] = {
8732 (char *) "self",(char *) "x",(char *) "y", NULL
8733 };
8734
8edf1c75 8735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetRed",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 8736 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
8737 {
8738 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8739 if (PyErr_Occurred()) SWIG_fail;
8740 }
8741 {
8742 arg3 = (int) SWIG_PyObj_AsInt(obj2);
8743 if (PyErr_Occurred()) SWIG_fail;
8744 }
d14a1e28
RD
8745 {
8746 PyThreadState* __tstate = wxPyBeginAllowThreads();
8747 result = (unsigned char)(arg1)->GetRed(arg2,arg3);
8748
8749 wxPyEndAllowThreads(__tstate);
8750 if (PyErr_Occurred()) SWIG_fail;
8751 }
8edf1c75 8752 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
d14a1e28
RD
8753 return resultobj;
8754 fail:
8755 return NULL;
8756}
8757
8758
8759static PyObject *_wrap_Image_GetGreen(PyObject *self, PyObject *args, PyObject *kwargs) {
8760 PyObject *resultobj;
8761 wxImage *arg1 = (wxImage *) 0 ;
8762 int arg2 ;
8763 int arg3 ;
8764 unsigned char result;
8765 PyObject * obj0 = 0 ;
8edf1c75
RD
8766 PyObject * obj1 = 0 ;
8767 PyObject * obj2 = 0 ;
d14a1e28
RD
8768 char *kwnames[] = {
8769 (char *) "self",(char *) "x",(char *) "y", NULL
8770 };
8771
8edf1c75 8772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetGreen",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 8773 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
8774 {
8775 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8776 if (PyErr_Occurred()) SWIG_fail;
8777 }
8778 {
8779 arg3 = (int) SWIG_PyObj_AsInt(obj2);
8780 if (PyErr_Occurred()) SWIG_fail;
8781 }
d14a1e28
RD
8782 {
8783 PyThreadState* __tstate = wxPyBeginAllowThreads();
8784 result = (unsigned char)(arg1)->GetGreen(arg2,arg3);
8785
8786 wxPyEndAllowThreads(__tstate);
8787 if (PyErr_Occurred()) SWIG_fail;
8788 }
8edf1c75 8789 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
d14a1e28
RD
8790 return resultobj;
8791 fail:
8792 return NULL;
8793}
8794
8795
8796static PyObject *_wrap_Image_GetBlue(PyObject *self, PyObject *args, PyObject *kwargs) {
8797 PyObject *resultobj;
8798 wxImage *arg1 = (wxImage *) 0 ;
8799 int arg2 ;
8800 int arg3 ;
8801 unsigned char result;
8802 PyObject * obj0 = 0 ;
8edf1c75
RD
8803 PyObject * obj1 = 0 ;
8804 PyObject * obj2 = 0 ;
d14a1e28
RD
8805 char *kwnames[] = {
8806 (char *) "self",(char *) "x",(char *) "y", NULL
8807 };
8808
8edf1c75 8809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetBlue",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 8810 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
8811 {
8812 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8813 if (PyErr_Occurred()) SWIG_fail;
8814 }
8815 {
8816 arg3 = (int) SWIG_PyObj_AsInt(obj2);
8817 if (PyErr_Occurred()) SWIG_fail;
8818 }
d14a1e28
RD
8819 {
8820 PyThreadState* __tstate = wxPyBeginAllowThreads();
8821 result = (unsigned char)(arg1)->GetBlue(arg2,arg3);
8822
8823 wxPyEndAllowThreads(__tstate);
8824 if (PyErr_Occurred()) SWIG_fail;
8825 }
8edf1c75 8826 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
d14a1e28
RD
8827 return resultobj;
8828 fail:
8829 return NULL;
8830}
8831
8832
8833static PyObject *_wrap_Image_SetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) {
8834 PyObject *resultobj;
8835 wxImage *arg1 = (wxImage *) 0 ;
8836 int arg2 ;
8837 int arg3 ;
8838 unsigned char arg4 ;
8839 PyObject * obj0 = 0 ;
8edf1c75
RD
8840 PyObject * obj1 = 0 ;
8841 PyObject * obj2 = 0 ;
d14a1e28
RD
8842 PyObject * obj3 = 0 ;
8843 char *kwnames[] = {
8844 (char *) "self",(char *) "x",(char *) "y",(char *) "alpha", NULL
8845 };
8846
8edf1c75 8847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28 8848 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 8849 {
8edf1c75
RD
8850 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8851 if (PyErr_Occurred()) SWIG_fail;
8852 }
8853 {
8854 arg3 = (int) SWIG_PyObj_AsInt(obj2);
8855 if (PyErr_Occurred()) SWIG_fail;
8856 }
8857 {
8858 arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3);
83448d71
RD
8859 if (PyErr_Occurred()) SWIG_fail;
8860 }
d14a1e28
RD
8861 {
8862 PyThreadState* __tstate = wxPyBeginAllowThreads();
8863 (arg1)->SetAlpha(arg2,arg3,arg4);
8864
8865 wxPyEndAllowThreads(__tstate);
8866 if (PyErr_Occurred()) SWIG_fail;
8867 }
8868 Py_INCREF(Py_None); resultobj = Py_None;
8869 return resultobj;
8870 fail:
8871 return NULL;
8872}
8873
8874
8875static PyObject *_wrap_Image_GetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) {
8876 PyObject *resultobj;
8877 wxImage *arg1 = (wxImage *) 0 ;
8878 int arg2 ;
8879 int arg3 ;
8880 unsigned char result;
8881 PyObject * obj0 = 0 ;
8edf1c75
RD
8882 PyObject * obj1 = 0 ;
8883 PyObject * obj2 = 0 ;
d14a1e28
RD
8884 char *kwnames[] = {
8885 (char *) "self",(char *) "x",(char *) "y", NULL
8886 };
8887
8edf1c75 8888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetAlpha",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 8889 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
8890 {
8891 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8892 if (PyErr_Occurred()) SWIG_fail;
8893 }
8894 {
8895 arg3 = (int) SWIG_PyObj_AsInt(obj2);
8896 if (PyErr_Occurred()) SWIG_fail;
8897 }
d14a1e28
RD
8898 {
8899 PyThreadState* __tstate = wxPyBeginAllowThreads();
8900 result = (unsigned char)(arg1)->GetAlpha(arg2,arg3);
8901
8902 wxPyEndAllowThreads(__tstate);
8903 if (PyErr_Occurred()) SWIG_fail;
8904 }
8edf1c75 8905 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
d14a1e28
RD
8906 return resultobj;
8907 fail:
8908 return NULL;
8909}
8910
8911
8912static PyObject *_wrap_Image_HasAlpha(PyObject *self, PyObject *args, PyObject *kwargs) {
8913 PyObject *resultobj;
8914 wxImage *arg1 = (wxImage *) 0 ;
8915 bool result;
8916 PyObject * obj0 = 0 ;
8917 char *kwnames[] = {
8918 (char *) "self", NULL
8919 };
8920
8921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasAlpha",kwnames,&obj0)) goto fail;
8922 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8923 {
8924 PyThreadState* __tstate = wxPyBeginAllowThreads();
8925 result = (bool)(arg1)->HasAlpha();
8926
8927 wxPyEndAllowThreads(__tstate);
8928 if (PyErr_Occurred()) SWIG_fail;
8929 }
4e760a36 8930 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
8931 return resultobj;
8932 fail:
8933 return NULL;
8934}
8935
8936
8937static PyObject *_wrap_Image_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
8938 PyObject *resultobj;
8939 wxImage *arg1 = (wxImage *) 0 ;
8940 byte *arg2 = (byte *) 0 ;
8941 byte *arg3 = (byte *) 0 ;
8942 byte *arg4 = (byte *) 0 ;
8943 byte arg5 = (byte) 0 ;
8944 byte arg6 = (byte) 0 ;
8945 byte arg7 = (byte) 0 ;
8946 bool result;
8947 byte temp2 ;
8948 byte temp3 ;
8949 byte temp4 ;
8950 PyObject * obj0 = 0 ;
8951 PyObject * obj1 = 0 ;
8952 PyObject * obj2 = 0 ;
8953 PyObject * obj3 = 0 ;
8954 char *kwnames[] = {
8955 (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL
8956 };
8957
8958 arg2 = &temp2;
8959 arg3 = &temp3;
8960 arg4 = &temp4;
8961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8962 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8963 if (obj1) {
83448d71 8964 {
8edf1c75 8965 arg5 = (byte) SWIG_PyObj_AsUnsignedChar(obj1);
83448d71
RD
8966 if (PyErr_Occurred()) SWIG_fail;
8967 }
d14a1e28
RD
8968 }
8969 if (obj2) {
83448d71 8970 {
8edf1c75 8971 arg6 = (byte) SWIG_PyObj_AsUnsignedChar(obj2);
83448d71
RD
8972 if (PyErr_Occurred()) SWIG_fail;
8973 }
d14a1e28
RD
8974 }
8975 if (obj3) {
83448d71 8976 {
8edf1c75 8977 arg7 = (byte) SWIG_PyObj_AsUnsignedChar(obj3);
83448d71
RD
8978 if (PyErr_Occurred()) SWIG_fail;
8979 }
d14a1e28
RD
8980 }
8981 {
8982 PyThreadState* __tstate = wxPyBeginAllowThreads();
8983 result = (bool)((wxImage const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7);
8984
8985 wxPyEndAllowThreads(__tstate);
8986 if (PyErr_Occurred()) SWIG_fail;
8987 }
4e760a36 8988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
8989 {
8990 PyObject *o = PyInt_FromLong((long) (*arg2));
8991 resultobj = t_output_helper(resultobj,o);
8992 }
8993 {
8994 PyObject *o = PyInt_FromLong((long) (*arg3));
8995 resultobj = t_output_helper(resultobj,o);
8996 }
8997 {
8998 PyObject *o = PyInt_FromLong((long) (*arg4));
8999 resultobj = t_output_helper(resultobj,o);
9000 }
9001 return resultobj;
9002 fail:
9003 return NULL;
9004}
9005
9006
9007static PyObject *_wrap_Image_SetMaskFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
9008 PyObject *resultobj;
9009 wxImage *arg1 = (wxImage *) 0 ;
9010 wxImage *arg2 = 0 ;
9011 byte arg3 ;
9012 byte arg4 ;
9013 byte arg5 ;
9014 bool result;
9015 PyObject * obj0 = 0 ;
9016 PyObject * obj1 = 0 ;
9017 PyObject * obj2 = 0 ;
9018 PyObject * obj3 = 0 ;
9019 PyObject * obj4 = 0 ;
9020 char *kwnames[] = {
9021 (char *) "self",(char *) "mask",(char *) "mr",(char *) "mg",(char *) "mb", NULL
9022 };
9023
9024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetMaskFromImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
9025 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9026 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9027 if (arg2 == NULL) {
9028 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9029 }
83448d71 9030 {
8edf1c75 9031 arg3 = (byte) SWIG_PyObj_AsUnsignedChar(obj2);
83448d71
RD
9032 if (PyErr_Occurred()) SWIG_fail;
9033 }
9034 {
8edf1c75 9035 arg4 = (byte) SWIG_PyObj_AsUnsignedChar(obj3);
83448d71
RD
9036 if (PyErr_Occurred()) SWIG_fail;
9037 }
9038 {
8edf1c75 9039 arg5 = (byte) SWIG_PyObj_AsUnsignedChar(obj4);
83448d71
RD
9040 if (PyErr_Occurred()) SWIG_fail;
9041 }
d14a1e28
RD
9042 {
9043 PyThreadState* __tstate = wxPyBeginAllowThreads();
9044 result = (bool)(arg1)->SetMaskFromImage((wxImage const &)*arg2,arg3,arg4,arg5);
9045
9046 wxPyEndAllowThreads(__tstate);
9047 if (PyErr_Occurred()) SWIG_fail;
9048 }
4e760a36 9049 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
9050 return resultobj;
9051 fail:
9052 return NULL;
9053}
9054
9055
9056static PyObject *_wrap_Image_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) {
9057 PyObject *resultobj;
9058 wxString *arg1 = 0 ;
9059 bool result;
423f194a 9060 bool temp1 = False ;
d14a1e28
RD
9061 PyObject * obj0 = 0 ;
9062 char *kwnames[] = {
9063 (char *) "name", NULL
9064 };
9065
9066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanRead",kwnames,&obj0)) goto fail;
9067 {
9068 arg1 = wxString_in_helper(obj0);
9069 if (arg1 == NULL) SWIG_fail;
423f194a 9070 temp1 = True;
d14a1e28
RD
9071 }
9072 {
9073 PyThreadState* __tstate = wxPyBeginAllowThreads();
9074 result = (bool)wxImage::CanRead((wxString const &)*arg1);
9075
9076 wxPyEndAllowThreads(__tstate);
9077 if (PyErr_Occurred()) SWIG_fail;
9078 }
4e760a36 9079 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
9080 {
9081 if (temp1)
9082 delete arg1;
9083 }
9084 return resultobj;
9085 fail:
9086 {
9087 if (temp1)
9088 delete arg1;
9089 }
9090 return NULL;
9091}
9092
9093
9094static PyObject *_wrap_Image_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
9095 PyObject *resultobj;
9096 wxString *arg1 = 0 ;
9097 long arg2 = (long) wxBITMAP_TYPE_ANY ;
9098 int result;
423f194a 9099 bool temp1 = False ;
d14a1e28 9100 PyObject * obj0 = 0 ;
8edf1c75 9101 PyObject * obj1 = 0 ;
d14a1e28
RD
9102 char *kwnames[] = {
9103 (char *) "name",(char *) "type", NULL
9104 };
9105
8edf1c75 9106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_GetImageCount",kwnames,&obj0,&obj1)) goto fail;
d14a1e28
RD
9107 {
9108 arg1 = wxString_in_helper(obj0);
9109 if (arg1 == NULL) SWIG_fail;
423f194a 9110 temp1 = True;
d14a1e28 9111 }
8edf1c75
RD
9112 if (obj1) {
9113 {
9114 arg2 = (long) SWIG_PyObj_AsLong(obj1);
9115 if (PyErr_Occurred()) SWIG_fail;
9116 }
9117 }
d14a1e28
RD
9118 {
9119 PyThreadState* __tstate = wxPyBeginAllowThreads();
9120 result = (int)wxImage::GetImageCount((wxString const &)*arg1,arg2);
9121
9122 wxPyEndAllowThreads(__tstate);
9123 if (PyErr_Occurred()) SWIG_fail;
9124 }
8edf1c75 9125 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
9126 {
9127 if (temp1)
9128 delete arg1;
9129 }
9130 return resultobj;
9131 fail:
9132 {
9133 if (temp1)
9134 delete arg1;
9135 }
9136 return NULL;
9137}
9138
9139
9140static PyObject *_wrap_Image_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
9141 PyObject *resultobj;
9142 wxImage *arg1 = (wxImage *) 0 ;
9143 wxString *arg2 = 0 ;
9144 long arg3 = (long) wxBITMAP_TYPE_ANY ;
9145 int arg4 = (int) -1 ;
9146 bool result;
423f194a 9147 bool temp2 = False ;
d14a1e28
RD
9148 PyObject * obj0 = 0 ;
9149 PyObject * obj1 = 0 ;
8edf1c75
RD
9150 PyObject * obj2 = 0 ;
9151 PyObject * obj3 = 0 ;
d14a1e28
RD
9152 char *kwnames[] = {
9153 (char *) "self",(char *) "name",(char *) "type",(char *) "index", NULL
9154 };
9155
8edf1c75 9156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28
RD
9157 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9158 {
9159 arg2 = wxString_in_helper(obj1);
9160 if (arg2 == NULL) SWIG_fail;
423f194a 9161 temp2 = True;
d14a1e28 9162 }
8edf1c75
RD
9163 if (obj2) {
9164 {
9165 arg3 = (long) SWIG_PyObj_AsLong(obj2);
9166 if (PyErr_Occurred()) SWIG_fail;
9167 }
9168 }
9169 if (obj3) {
9170 {
9171 arg4 = (int) SWIG_PyObj_AsInt(obj3);
9172 if (PyErr_Occurred()) SWIG_fail;
9173 }
9174 }
d14a1e28
RD
9175 {
9176 PyThreadState* __tstate = wxPyBeginAllowThreads();
9177 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3,arg4);
9178
9179 wxPyEndAllowThreads(__tstate);
9180 if (PyErr_Occurred()) SWIG_fail;
9181 }
4e760a36 9182 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
9183 {
9184 if (temp2)
9185 delete arg2;
9186 }
9187 return resultobj;
9188 fail:
9189 {
9190 if (temp2)
9191 delete arg2;
9192 }
9193 return NULL;
9194}
9195
9196
9197static PyObject *_wrap_Image_LoadMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) {
9198 PyObject *resultobj;
9199 wxImage *arg1 = (wxImage *) 0 ;
9200 wxString *arg2 = 0 ;
9201 wxString *arg3 = 0 ;
9202 int arg4 = (int) -1 ;
9203 bool result;
423f194a
RD
9204 bool temp2 = False ;
9205 bool temp3 = False ;
d14a1e28
RD
9206 PyObject * obj0 = 0 ;
9207 PyObject * obj1 = 0 ;
9208 PyObject * obj2 = 0 ;
8edf1c75 9209 PyObject * obj3 = 0 ;
d14a1e28
RD
9210 char *kwnames[] = {
9211 (char *) "self",(char *) "name",(char *) "mimetype",(char *) "index", NULL
9212 };
9213
8edf1c75 9214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28
RD
9215 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9216 {
9217 arg2 = wxString_in_helper(obj1);
9218 if (arg2 == NULL) SWIG_fail;
423f194a 9219 temp2 = True;
d14a1e28
RD
9220 }
9221 {
9222 arg3 = wxString_in_helper(obj2);
9223 if (arg3 == NULL) SWIG_fail;
423f194a 9224 temp3 = True;
d14a1e28 9225 }
8edf1c75
RD
9226 if (obj3) {
9227 {
9228 arg4 = (int) SWIG_PyObj_AsInt(obj3);
9229 if (PyErr_Occurred()) SWIG_fail;
9230 }
9231 }
d14a1e28
RD
9232 {
9233 PyThreadState* __tstate = wxPyBeginAllowThreads();
9234 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxString const &)*arg3,arg4);
9235
9236 wxPyEndAllowThreads(__tstate);
9237 if (PyErr_Occurred()) SWIG_fail;
9238 }
4e760a36 9239 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
9240 {
9241 if (temp2)
9242 delete arg2;
9243 }
9244 {
9245 if (temp3)
9246 delete arg3;
9247 }
9248 return resultobj;
9249 fail:
9250 {
9251 if (temp2)
9252 delete arg2;
9253 }
9254 {
9255 if (temp3)
9256 delete arg3;
9257 }
9258 return NULL;
9259}
9260
9261
9262static PyObject *_wrap_Image_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
9263 PyObject *resultobj;
9264 wxImage *arg1 = (wxImage *) 0 ;
9265 wxString *arg2 = 0 ;
9266 int arg3 ;
9267 bool result;
423f194a 9268 bool temp2 = False ;
d14a1e28
RD
9269 PyObject * obj0 = 0 ;
9270 PyObject * obj1 = 0 ;
8edf1c75 9271 PyObject * obj2 = 0 ;
d14a1e28
RD
9272 char *kwnames[] = {
9273 (char *) "self",(char *) "name",(char *) "type", NULL
9274 };
9275
8edf1c75 9276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28
RD
9277 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9278 {
9279 arg2 = wxString_in_helper(obj1);
9280 if (arg2 == NULL) SWIG_fail;
423f194a 9281 temp2 = True;
d14a1e28 9282 }
8edf1c75
RD
9283 {
9284 arg3 = (int) SWIG_PyObj_AsInt(obj2);
9285 if (PyErr_Occurred()) SWIG_fail;
9286 }
d14a1e28
RD
9287 {
9288 PyThreadState* __tstate = wxPyBeginAllowThreads();
9289 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3);
9290
9291 wxPyEndAllowThreads(__tstate);
9292 if (PyErr_Occurred()) SWIG_fail;
9293 }
4e760a36 9294 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
9295 {
9296 if (temp2)
9297 delete arg2;
9298 }
9299 return resultobj;
9300 fail:
9301 {
9302 if (temp2)
9303 delete arg2;
9304 }
9305 return NULL;
9306}
9307
9308
9309static PyObject *_wrap_Image_SaveMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) {
9310 PyObject *resultobj;
9311 wxImage *arg1 = (wxImage *) 0 ;
9312 wxString *arg2 = 0 ;
9313 wxString *arg3 = 0 ;
9314 bool result;
423f194a
RD
9315 bool temp2 = False ;
9316 bool temp3 = False ;
d14a1e28
RD
9317 PyObject * obj0 = 0 ;
9318 PyObject * obj1 = 0 ;
9319 PyObject * obj2 = 0 ;
9320 char *kwnames[] = {
9321 (char *) "self",(char *) "name",(char *) "mimetype", NULL
9322 };
9323
9324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveMimeFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
9325 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9326 {
9327 arg2 = wxString_in_helper(obj1);
9328 if (arg2 == NULL) SWIG_fail;
423f194a 9329 temp2 = True;
d14a1e28
RD
9330 }
9331 {
9332 arg3 = wxString_in_helper(obj2);
9333 if (arg3 == NULL) SWIG_fail;
423f194a 9334 temp3 = True;
d14a1e28
RD
9335 }
9336 {
9337 PyThreadState* __tstate = wxPyBeginAllowThreads();
9338 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxString const &)*arg3);
9339
9340 wxPyEndAllowThreads(__tstate);
9341 if (PyErr_Occurred()) SWIG_fail;
9342 }
4e760a36 9343 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
9344 {
9345 if (temp2)
9346 delete arg2;
9347 }
9348 {
9349 if (temp3)
9350 delete arg3;
9351 }
9352 return resultobj;
9353 fail:
9354 {
9355 if (temp2)
9356 delete arg2;
9357 }
9358 {
9359 if (temp3)
9360 delete arg3;
9361 }
9362 return NULL;
9363}
9364
9365
9366static PyObject *_wrap_Image_CanReadStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9367 PyObject *resultobj;
9368 wxInputStream *arg1 = 0 ;
9369 bool result;
9370 wxPyInputStream *temp1 ;
9371 bool created1 ;
9372 PyObject * obj0 = 0 ;
9373 char *kwnames[] = {
9374 (char *) "stream", NULL
9375 };
9376
9377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanReadStream",kwnames,&obj0)) goto fail;
9378 {
9379 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
9380 arg1 = temp1->m_wxis;
423f194a 9381 created1 = False;
d14a1e28
RD
9382 } else {
9383 PyErr_Clear(); // clear the failure of the wxPyConvert above
423f194a 9384 arg1 = wxPyCBInputStream_create(obj0, False);
d14a1e28
RD
9385 if (arg1 == NULL) {
9386 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
9387 SWIG_fail;
9388 }
423f194a 9389 created1 = True;
d14a1e28
RD
9390 }
9391 }
9392 {
9393 PyThreadState* __tstate = wxPyBeginAllowThreads();
9394 result = (bool)wxImage::CanRead(*arg1);
9395
9396 wxPyEndAllowThreads(__tstate);
9397 if (PyErr_Occurred()) SWIG_fail;
9398 }
4e760a36 9399 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
9400 {
9401 if (created1)
9402 delete arg1;
9403 }
9404 return resultobj;
9405 fail:
9406 {
9407 if (created1)
9408 delete arg1;
9409 }
9410 return NULL;
9411}
9412
9413
9414static PyObject *_wrap_Image_LoadStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9415 PyObject *resultobj;
9416 wxImage *arg1 = (wxImage *) 0 ;
9417 wxInputStream *arg2 = 0 ;
9418 long arg3 = (long) wxBITMAP_TYPE_ANY ;
9419 int arg4 = (int) -1 ;
9420 bool result;
9421 wxPyInputStream *temp2 ;
9422 bool created2 ;
9423 PyObject * obj0 = 0 ;
9424 PyObject * obj1 = 0 ;
8edf1c75
RD
9425 PyObject * obj2 = 0 ;
9426 PyObject * obj3 = 0 ;
d14a1e28
RD
9427 char *kwnames[] = {
9428 (char *) "self",(char *) "stream",(char *) "type",(char *) "index", NULL
9429 };
9430
8edf1c75 9431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28
RD
9432 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9433 {
9434 if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) {
9435 arg2 = temp2->m_wxis;
423f194a 9436 created2 = False;
d14a1e28
RD
9437 } else {
9438 PyErr_Clear(); // clear the failure of the wxPyConvert above
423f194a 9439 arg2 = wxPyCBInputStream_create(obj1, False);
d14a1e28
RD
9440 if (arg2 == NULL) {
9441 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
9442 SWIG_fail;
9443 }
423f194a 9444 created2 = True;
d14a1e28
RD
9445 }
9446 }
8edf1c75
RD
9447 if (obj2) {
9448 {
9449 arg3 = (long) SWIG_PyObj_AsLong(obj2);
9450 if (PyErr_Occurred()) SWIG_fail;
9451 }
9452 }
9453 if (obj3) {
9454 {
9455 arg4 = (int) SWIG_PyObj_AsInt(obj3);
9456 if (PyErr_Occurred()) SWIG_fail;
9457 }
9458 }
d14a1e28
RD
9459 {
9460 PyThreadState* __tstate = wxPyBeginAllowThreads();
9461 result = (bool)(arg1)->LoadFile(*arg2,arg3,arg4);
9462
9463 wxPyEndAllowThreads(__tstate);
9464 if (PyErr_Occurred()) SWIG_fail;
9465 }
4e760a36 9466 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
9467 {
9468 if (created2)
9469 delete arg2;
9470 }
9471 return resultobj;
9472 fail:
9473 {
9474 if (created2)
9475 delete arg2;
9476 }
9477 return NULL;
9478}
9479
9480
9481static PyObject *_wrap_Image_LoadMimeStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9482 PyObject *resultobj;
9483 wxImage *arg1 = (wxImage *) 0 ;
9484 wxInputStream *arg2 = 0 ;
9485 wxString *arg3 = 0 ;
9486 int arg4 = (int) -1 ;
9487 bool result;
9488 wxPyInputStream *temp2 ;
9489 bool created2 ;
423f194a 9490 bool temp3 = False ;
d14a1e28
RD
9491 PyObject * obj0 = 0 ;
9492 PyObject * obj1 = 0 ;
9493 PyObject * obj2 = 0 ;
8edf1c75 9494 PyObject * obj3 = 0 ;
d14a1e28
RD
9495 char *kwnames[] = {
9496 (char *) "self",(char *) "stream",(char *) "mimetype",(char *) "index", NULL
9497 };
9498
8edf1c75 9499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28
RD
9500 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9501 {
9502 if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) {
9503 arg2 = temp2->m_wxis;
423f194a 9504 created2 = False;
d14a1e28
RD
9505 } else {
9506 PyErr_Clear(); // clear the failure of the wxPyConvert above
423f194a 9507 arg2 = wxPyCBInputStream_create(obj1, False);
d14a1e28
RD
9508 if (arg2 == NULL) {
9509 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
9510 SWIG_fail;
9511 }
423f194a 9512 created2 = True;
d14a1e28
RD
9513 }
9514 }
9515 {
9516 arg3 = wxString_in_helper(obj2);
9517 if (arg3 == NULL) SWIG_fail;
423f194a 9518 temp3 = True;
d14a1e28 9519 }
8edf1c75
RD
9520 if (obj3) {
9521 {
9522 arg4 = (int) SWIG_PyObj_AsInt(obj3);
9523 if (PyErr_Occurred()) SWIG_fail;
9524 }
9525 }
d14a1e28
RD
9526 {
9527 PyThreadState* __tstate = wxPyBeginAllowThreads();
9528 result = (bool)(arg1)->LoadFile(*arg2,(wxString const &)*arg3,arg4);
9529
9530 wxPyEndAllowThreads(__tstate);
9531 if (PyErr_Occurred()) SWIG_fail;
9532 }
4e760a36 9533 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
9534 {
9535 if (created2)
9536 delete arg2;
9537 }
9538 {
9539 if (temp3)
9540 delete arg3;
9541 }
9542 return resultobj;
9543 fail:
9544 {
9545 if (created2)
9546 delete arg2;
9547 }
9548 {
9549 if (temp3)
9550 delete arg3;
9551 }
9552 return NULL;
9553}
9554
9555
9556static PyObject *_wrap_Image_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
9557 PyObject *resultobj;
9558 wxImage *arg1 = (wxImage *) 0 ;
9559 bool result;
9560 PyObject * obj0 = 0 ;
9561 char *kwnames[] = {
9562 (char *) "self", NULL
9563 };
9564
9565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Ok",kwnames,&obj0)) goto fail;
9566 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9567 {
9568 PyThreadState* __tstate = wxPyBeginAllowThreads();
9569 result = (bool)(arg1)->Ok();
9570
9571 wxPyEndAllowThreads(__tstate);
9572 if (PyErr_Occurred()) SWIG_fail;
9573 }
4e760a36 9574 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
9575 return resultobj;
9576 fail:
9577 return NULL;
9578}
9579
9580
9581static PyObject *_wrap_Image_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
9582 PyObject *resultobj;
9583 wxImage *arg1 = (wxImage *) 0 ;
9584 int result;
9585 PyObject * obj0 = 0 ;
9586 char *kwnames[] = {
9587 (char *) "self", NULL
9588 };
9589
9590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetWidth",kwnames,&obj0)) goto fail;
9591 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9592 {
9593 PyThreadState* __tstate = wxPyBeginAllowThreads();
9594 result = (int)(arg1)->GetWidth();
9595
9596 wxPyEndAllowThreads(__tstate);
9597 if (PyErr_Occurred()) SWIG_fail;
9598 }
8edf1c75 9599 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
9600 return resultobj;
9601 fail:
9602 return NULL;
9603}
9604
9605
9606static PyObject *_wrap_Image_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
9607 PyObject *resultobj;
9608 wxImage *arg1 = (wxImage *) 0 ;
9609 int result;
9610 PyObject * obj0 = 0 ;
9611 char *kwnames[] = {
9612 (char *) "self", NULL
9613 };
9614
9615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetHeight",kwnames,&obj0)) goto fail;
9616 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9617 {
9618 PyThreadState* __tstate = wxPyBeginAllowThreads();
9619 result = (int)(arg1)->GetHeight();
9620
9621 wxPyEndAllowThreads(__tstate);
9622 if (PyErr_Occurred()) SWIG_fail;
9623 }
8edf1c75 9624 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
9625 return resultobj;
9626 fail:
9627 return NULL;
9628}
9629
9630
9631static PyObject *_wrap_Image_GetSubImage(PyObject *self, PyObject *args, PyObject *kwargs) {
9632 PyObject *resultobj;
9633 wxImage *arg1 = (wxImage *) 0 ;
9634 wxRect *arg2 = 0 ;
9635 SwigValueWrapper< wxImage > result;
9636 wxRect temp2 ;
9637 PyObject * obj0 = 0 ;
9638 PyObject * obj1 = 0 ;
9639 char *kwnames[] = {
9640 (char *) "self",(char *) "rect", NULL
9641 };
9642
9643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetSubImage",kwnames,&obj0,&obj1)) goto fail;
9644 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9645 {
9646 arg2 = &temp2;
9647 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9648 }
9649 {
9650 PyThreadState* __tstate = wxPyBeginAllowThreads();
9651 result = (arg1)->GetSubImage((wxRect const &)*arg2);
9652
9653 wxPyEndAllowThreads(__tstate);
9654 if (PyErr_Occurred()) SWIG_fail;
9655 }
9656 {
9657 wxImage * resultptr;
9658 resultptr = new wxImage((wxImage &) result);
9659 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1);
9660 }
9661 return resultobj;
9662 fail:
9663 return NULL;
9664}
9665
9666
9667static PyObject *_wrap_Image_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
9668 PyObject *resultobj;
9669 wxImage *arg1 = (wxImage *) 0 ;
9670 SwigValueWrapper< wxImage > result;
9671 PyObject * obj0 = 0 ;
9672 char *kwnames[] = {
9673 (char *) "self", NULL
9674 };
9675
9676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Copy",kwnames,&obj0)) goto fail;
9677 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9678 {
9679 PyThreadState* __tstate = wxPyBeginAllowThreads();
9680 result = (arg1)->Copy();
9681
9682 wxPyEndAllowThreads(__tstate);
9683 if (PyErr_Occurred()) SWIG_fail;
9684 }
9685 {
9686 wxImage * resultptr;
9687 resultptr = new wxImage((wxImage &) result);
9688 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1);
9689 }
9690 return resultobj;
9691 fail:
9692 return NULL;
9693}
9694
9695
9696static PyObject *_wrap_Image_Paste(PyObject *self, PyObject *args, PyObject *kwargs) {
9697 PyObject *resultobj;
9698 wxImage *arg1 = (wxImage *) 0 ;
9699 wxImage *arg2 = 0 ;
9700 int arg3 ;
9701 int arg4 ;
9702 PyObject * obj0 = 0 ;
9703 PyObject * obj1 = 0 ;
8edf1c75
RD
9704 PyObject * obj2 = 0 ;
9705 PyObject * obj3 = 0 ;
d14a1e28
RD
9706 char *kwnames[] = {
9707 (char *) "self",(char *) "image",(char *) "x",(char *) "y", NULL
9708 };
9709
8edf1c75 9710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_Paste",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28
RD
9711 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9712 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9713 if (arg2 == NULL) {
9714 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9715 }
8edf1c75
RD
9716 {
9717 arg3 = (int) SWIG_PyObj_AsInt(obj2);
9718 if (PyErr_Occurred()) SWIG_fail;
9719 }
9720 {
9721 arg4 = (int) SWIG_PyObj_AsInt(obj3);
9722 if (PyErr_Occurred()) SWIG_fail;
9723 }
d14a1e28
RD
9724 {
9725 PyThreadState* __tstate = wxPyBeginAllowThreads();
9726 (arg1)->Paste((wxImage const &)*arg2,arg3,arg4);
9727
9728 wxPyEndAllowThreads(__tstate);
9729 if (PyErr_Occurred()) SWIG_fail;
9730 }
9731 Py_INCREF(Py_None); resultobj = Py_None;
9732 return resultobj;
9733 fail:
9734 return NULL;
9735}
9736
9737
9738static PyObject *_wrap_Image_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
9739 PyObject *resultobj;
9740 wxImage *arg1 = (wxImage *) 0 ;
9741 PyObject *result;
9742 PyObject * obj0 = 0 ;
9743 char *kwnames[] = {
9744 (char *) "self", NULL
9745 };
9746
9747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetData",kwnames,&obj0)) goto fail;
9748 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9749 {
9750 PyThreadState* __tstate = wxPyBeginAllowThreads();
9751 result = (PyObject *)wxImage_GetData(arg1);
9752
9753 wxPyEndAllowThreads(__tstate);
9754 if (PyErr_Occurred()) SWIG_fail;
9755 }
9756 resultobj = result;
9757 return resultobj;
9758 fail:
9759 return NULL;
9760}
9761
9762
9763static PyObject *_wrap_Image_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
9764 PyObject *resultobj;
9765 wxImage *arg1 = (wxImage *) 0 ;
9766 PyObject *arg2 = (PyObject *) 0 ;
9767 PyObject * obj0 = 0 ;
9768 PyObject * obj1 = 0 ;
9769 char *kwnames[] = {
9770 (char *) "self",(char *) "data", NULL
9771 };
9772
9773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetData",kwnames,&obj0,&obj1)) goto fail;
9774 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9775 arg2 = obj1;
9776 {
9777 PyThreadState* __tstate = wxPyBeginAllowThreads();
9778 wxImage_SetData(arg1,arg2);
9779
9780 wxPyEndAllowThreads(__tstate);
9781 if (PyErr_Occurred()) SWIG_fail;
9782 }
9783 Py_INCREF(Py_None); resultobj = Py_None;
9784 return resultobj;
9785 fail:
9786 return NULL;
9787}
9788
9789
9790static PyObject *_wrap_Image_GetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
9791 PyObject *resultobj;
9792 wxImage *arg1 = (wxImage *) 0 ;
9793 PyObject *result;
9794 PyObject * obj0 = 0 ;
9795 char *kwnames[] = {
9796 (char *) "self", NULL
9797 };
9798
9799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetDataBuffer",kwnames,&obj0)) goto fail;
9800 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9801 {
9802 PyThreadState* __tstate = wxPyBeginAllowThreads();
9803 result = (PyObject *)wxImage_GetDataBuffer(arg1);
9804
9805 wxPyEndAllowThreads(__tstate);
9806 if (PyErr_Occurred()) SWIG_fail;
9807 }
9808 resultobj = result;
9809 return resultobj;
9810 fail:
9811 return NULL;
9812}
9813
9814
9815static PyObject *_wrap_Image_SetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
9816 PyObject *resultobj;
9817 wxImage *arg1 = (wxImage *) 0 ;
9818 PyObject *arg2 = (PyObject *) 0 ;
9819 PyObject * obj0 = 0 ;
9820 PyObject * obj1 = 0 ;
9821 char *kwnames[] = {
9822 (char *) "self",(char *) "data", NULL
9823 };
9824
9825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetDataBuffer",kwnames,&obj0,&obj1)) goto fail;
9826 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9827 arg2 = obj1;
9828 {
9829 PyThreadState* __tstate = wxPyBeginAllowThreads();
9830 wxImage_SetDataBuffer(arg1,arg2);
9831
9832 wxPyEndAllowThreads(__tstate);
9833 if (PyErr_Occurred()) SWIG_fail;
9834 }
9835 Py_INCREF(Py_None); resultobj = Py_None;
9836 return resultobj;
9837 fail:
9838 return NULL;
9839}
9840
9841
9842static PyObject *_wrap_Image_GetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) {
9843 PyObject *resultobj;
9844 wxImage *arg1 = (wxImage *) 0 ;
9845 PyObject *result;
9846 PyObject * obj0 = 0 ;
9847 char *kwnames[] = {
9848 (char *) "self", NULL
9849 };
9850
9851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaData",kwnames,&obj0)) goto fail;
9852 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9853 {
9854 PyThreadState* __tstate = wxPyBeginAllowThreads();
9855 result = (PyObject *)wxImage_GetAlphaData(arg1);
9856
9857 wxPyEndAllowThreads(__tstate);
9858 if (PyErr_Occurred()) SWIG_fail;
9859 }
9860 resultobj = result;
9861 return resultobj;
9862 fail:
9863 return NULL;
9864}
9865
9866
9867static PyObject *_wrap_Image_SetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) {
9868 PyObject *resultobj;
9869 wxImage *arg1 = (wxImage *) 0 ;
9870 PyObject *arg2 = (PyObject *) 0 ;
9871 PyObject * obj0 = 0 ;
9872 PyObject * obj1 = 0 ;
9873 char *kwnames[] = {
9874 (char *) "self",(char *) "data", NULL
9875 };
9876
9877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaData",kwnames,&obj0,&obj1)) goto fail;
9878 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9879 arg2 = obj1;
9880 {
9881 PyThreadState* __tstate = wxPyBeginAllowThreads();
9882 wxImage_SetAlphaData(arg1,arg2);
9883
9884 wxPyEndAllowThreads(__tstate);
9885 if (PyErr_Occurred()) SWIG_fail;
9886 }
9887 Py_INCREF(Py_None); resultobj = Py_None;
9888 return resultobj;
9889 fail:
9890 return NULL;
9891}
9892
9893
9894static PyObject *_wrap_Image_GetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
9895 PyObject *resultobj;
9896 wxImage *arg1 = (wxImage *) 0 ;
9897 PyObject *result;
9898 PyObject * obj0 = 0 ;
9899 char *kwnames[] = {
9900 (char *) "self", NULL
9901 };
9902
9903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaBuffer",kwnames,&obj0)) goto fail;
9904 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9905 {
9906 PyThreadState* __tstate = wxPyBeginAllowThreads();
9907 result = (PyObject *)wxImage_GetAlphaBuffer(arg1);
9908
9909 wxPyEndAllowThreads(__tstate);
9910 if (PyErr_Occurred()) SWIG_fail;
9911 }
9912 resultobj = result;
9913 return resultobj;
9914 fail:
9915 return NULL;
9916}
9917
9918
9919static PyObject *_wrap_Image_SetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
9920 PyObject *resultobj;
9921 wxImage *arg1 = (wxImage *) 0 ;
9922 PyObject *arg2 = (PyObject *) 0 ;
9923 PyObject * obj0 = 0 ;
9924 PyObject * obj1 = 0 ;
9925 char *kwnames[] = {
9926 (char *) "self",(char *) "data", NULL
9927 };
9928
9929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaBuffer",kwnames,&obj0,&obj1)) goto fail;
9930 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9931 arg2 = obj1;
9932 {
9933 PyThreadState* __tstate = wxPyBeginAllowThreads();
9934 wxImage_SetAlphaBuffer(arg1,arg2);
9935
9936 wxPyEndAllowThreads(__tstate);
9937 if (PyErr_Occurred()) SWIG_fail;
9938 }
9939 Py_INCREF(Py_None); resultobj = Py_None;
9940 return resultobj;
9941 fail:
9942 return NULL;
9943}
9944
9945
9946static PyObject *_wrap_Image_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
9947 PyObject *resultobj;
9948 wxImage *arg1 = (wxImage *) 0 ;
9949 unsigned char arg2 ;
9950 unsigned char arg3 ;
9951 unsigned char arg4 ;
9952 PyObject * obj0 = 0 ;
9953 PyObject * obj1 = 0 ;
9954 PyObject * obj2 = 0 ;
9955 PyObject * obj3 = 0 ;
9956 char *kwnames[] = {
9957 (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL
9958 };
9959
9960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetMaskColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9961 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 9962 {
8edf1c75 9963 arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1);
83448d71
RD
9964 if (PyErr_Occurred()) SWIG_fail;
9965 }
9966 {
8edf1c75 9967 arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2);
83448d71
RD
9968 if (PyErr_Occurred()) SWIG_fail;
9969 }
9970 {
8edf1c75 9971 arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3);
83448d71
RD
9972 if (PyErr_Occurred()) SWIG_fail;
9973 }
d14a1e28
RD
9974 {
9975 PyThreadState* __tstate = wxPyBeginAllowThreads();
9976 (arg1)->SetMaskColour(arg2,arg3,arg4);
9977
9978 wxPyEndAllowThreads(__tstate);
9979 if (PyErr_Occurred()) SWIG_fail;
9980 }
9981 Py_INCREF(Py_None); resultobj = Py_None;
9982 return resultobj;
9983 fail:
9984 return NULL;
9985}
9986
9987
9988static PyObject *_wrap_Image_GetMaskRed(PyObject *self, PyObject *args, PyObject *kwargs) {
9989 PyObject *resultobj;
9990 wxImage *arg1 = (wxImage *) 0 ;
9991 unsigned char result;
9992 PyObject * obj0 = 0 ;
9993 char *kwnames[] = {
9994 (char *) "self", NULL
9995 };
9996
9997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskRed",kwnames,&obj0)) goto fail;
9998 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9999 {
10000 PyThreadState* __tstate = wxPyBeginAllowThreads();
10001 result = (unsigned char)(arg1)->GetMaskRed();
10002
10003 wxPyEndAllowThreads(__tstate);
10004 if (PyErr_Occurred()) SWIG_fail;
10005 }
8edf1c75 10006 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
d14a1e28
RD
10007 return resultobj;
10008 fail:
10009 return NULL;
10010}
10011
10012
10013static PyObject *_wrap_Image_GetMaskGreen(PyObject *self, PyObject *args, PyObject *kwargs) {
10014 PyObject *resultobj;
10015 wxImage *arg1 = (wxImage *) 0 ;
10016 unsigned char result;
10017 PyObject * obj0 = 0 ;
10018 char *kwnames[] = {
10019 (char *) "self", NULL
10020 };
10021
10022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskGreen",kwnames,&obj0)) goto fail;
10023 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10024 {
10025 PyThreadState* __tstate = wxPyBeginAllowThreads();
10026 result = (unsigned char)(arg1)->GetMaskGreen();
10027
10028 wxPyEndAllowThreads(__tstate);
10029 if (PyErr_Occurred()) SWIG_fail;
10030 }
8edf1c75 10031 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
d14a1e28
RD
10032 return resultobj;
10033 fail:
10034 return NULL;
10035}
10036
10037
10038static PyObject *_wrap_Image_GetMaskBlue(PyObject *self, PyObject *args, PyObject *kwargs) {
10039 PyObject *resultobj;
10040 wxImage *arg1 = (wxImage *) 0 ;
10041 unsigned char result;
10042 PyObject * obj0 = 0 ;
10043 char *kwnames[] = {
10044 (char *) "self", NULL
10045 };
10046
10047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskBlue",kwnames,&obj0)) goto fail;
10048 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10049 {
10050 PyThreadState* __tstate = wxPyBeginAllowThreads();
10051 result = (unsigned char)(arg1)->GetMaskBlue();
10052
10053 wxPyEndAllowThreads(__tstate);
10054 if (PyErr_Occurred()) SWIG_fail;
10055 }
8edf1c75 10056 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
d14a1e28
RD
10057 return resultobj;
10058 fail:
10059 return NULL;
10060}
10061
10062
10063static PyObject *_wrap_Image_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
10064 PyObject *resultobj;
10065 wxImage *arg1 = (wxImage *) 0 ;
423f194a 10066 bool arg2 = (bool) True ;
d14a1e28
RD
10067 PyObject * obj0 = 0 ;
10068 PyObject * obj1 = 0 ;
10069 char *kwnames[] = {
10070 (char *) "self",(char *) "mask", NULL
10071 };
10072
10073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_SetMask",kwnames,&obj0,&obj1)) goto fail;
10074 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10075 if (obj1) {
83448d71 10076 {
8edf1c75 10077 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
10078 if (PyErr_Occurred()) SWIG_fail;
10079 }
d14a1e28
RD
10080 }
10081 {
10082 PyThreadState* __tstate = wxPyBeginAllowThreads();
10083 (arg1)->SetMask(arg2);
10084
10085 wxPyEndAllowThreads(__tstate);
10086 if (PyErr_Occurred()) SWIG_fail;
10087 }
10088 Py_INCREF(Py_None); resultobj = Py_None;
10089 return resultobj;
10090 fail:
10091 return NULL;
10092}
10093
10094
10095static PyObject *_wrap_Image_HasMask(PyObject *self, PyObject *args, PyObject *kwargs) {
10096 PyObject *resultobj;
10097 wxImage *arg1 = (wxImage *) 0 ;
10098 bool result;
10099 PyObject * obj0 = 0 ;
10100 char *kwnames[] = {
10101 (char *) "self", NULL
10102 };
10103
10104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasMask",kwnames,&obj0)) goto fail;
10105 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10106 {
10107 PyThreadState* __tstate = wxPyBeginAllowThreads();
10108 result = (bool)(arg1)->HasMask();
10109
10110 wxPyEndAllowThreads(__tstate);
10111 if (PyErr_Occurred()) SWIG_fail;
10112 }
4e760a36 10113 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
10114 return resultobj;
10115 fail:
10116 return NULL;
10117}
10118
10119
10120static PyObject *_wrap_Image_Rotate(PyObject *self, PyObject *args, PyObject *kwargs) {
10121 PyObject *resultobj;
10122 wxImage *arg1 = (wxImage *) 0 ;
10123 double arg2 ;
10124 wxPoint *arg3 = 0 ;
423f194a 10125 bool arg4 = (bool) True ;
d14a1e28
RD
10126 wxPoint *arg5 = (wxPoint *) NULL ;
10127 SwigValueWrapper< wxImage > result;
10128 wxPoint temp3 ;
10129 PyObject * obj0 = 0 ;
8edf1c75 10130 PyObject * obj1 = 0 ;
d14a1e28
RD
10131 PyObject * obj2 = 0 ;
10132 PyObject * obj3 = 0 ;
10133 PyObject * obj4 = 0 ;
10134 char *kwnames[] = {
10135 (char *) "self",(char *) "angle",(char *) "centre_of_rotation",(char *) "interpolating",(char *) "offset_after_rotation", NULL
10136 };
10137
8edf1c75 10138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Image_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d14a1e28 10139 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
10140 {
10141 arg2 = (double) SWIG_PyObj_AsDouble(obj1);
10142 if (PyErr_Occurred()) SWIG_fail;
10143 }
d14a1e28
RD
10144 {
10145 arg3 = &temp3;
10146 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10147 }
10148 if (obj3) {
83448d71 10149 {
8edf1c75 10150 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
83448d71
RD
10151 if (PyErr_Occurred()) SWIG_fail;
10152 }
d14a1e28
RD
10153 }
10154 if (obj4) {
10155 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10156 }
10157 {
10158 PyThreadState* __tstate = wxPyBeginAllowThreads();
10159 result = ((wxImage const *)arg1)->Rotate(arg2,(wxPoint const &)*arg3,arg4,arg5);
10160
10161 wxPyEndAllowThreads(__tstate);
10162 if (PyErr_Occurred()) SWIG_fail;
10163 }
10164 {
10165 wxImage * resultptr;
10166 resultptr = new wxImage((wxImage &) result);
10167 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1);
10168 }
10169 return resultobj;
10170 fail:
10171 return NULL;
10172}
10173
10174
10175static PyObject *_wrap_Image_Rotate90(PyObject *self, PyObject *args, PyObject *kwargs) {
10176 PyObject *resultobj;
10177 wxImage *arg1 = (wxImage *) 0 ;
423f194a 10178 bool arg2 = (bool) True ;
d14a1e28
RD
10179 SwigValueWrapper< wxImage > result;
10180 PyObject * obj0 = 0 ;
10181 PyObject * obj1 = 0 ;
10182 char *kwnames[] = {
10183 (char *) "self",(char *) "clockwise", NULL
10184 };
10185
10186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Rotate90",kwnames,&obj0,&obj1)) goto fail;
10187 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10188 if (obj1) {
83448d71 10189 {
8edf1c75 10190 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
10191 if (PyErr_Occurred()) SWIG_fail;
10192 }
d14a1e28
RD
10193 }
10194 {
10195 PyThreadState* __tstate = wxPyBeginAllowThreads();
10196 result = (arg1)->Rotate90(arg2);
10197
10198 wxPyEndAllowThreads(__tstate);
10199 if (PyErr_Occurred()) SWIG_fail;
10200 }
10201 {
10202 wxImage * resultptr;
10203 resultptr = new wxImage((wxImage &) result);
10204 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1);
10205 }
10206 return resultobj;
10207 fail:
10208 return NULL;
10209}
10210
10211
10212static PyObject *_wrap_Image_Mirror(PyObject *self, PyObject *args, PyObject *kwargs) {
10213 PyObject *resultobj;
10214 wxImage *arg1 = (wxImage *) 0 ;
423f194a 10215 bool arg2 = (bool) True ;
d14a1e28
RD
10216 SwigValueWrapper< wxImage > result;
10217 PyObject * obj0 = 0 ;
10218 PyObject * obj1 = 0 ;
10219 char *kwnames[] = {
10220 (char *) "self",(char *) "horizontally", NULL
10221 };
10222
10223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Mirror",kwnames,&obj0,&obj1)) goto fail;
10224 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10225 if (obj1) {
83448d71 10226 {
8edf1c75 10227 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
10228 if (PyErr_Occurred()) SWIG_fail;
10229 }
d14a1e28
RD
10230 }
10231 {
10232 PyThreadState* __tstate = wxPyBeginAllowThreads();
10233 result = (arg1)->Mirror(arg2);
10234
10235 wxPyEndAllowThreads(__tstate);
10236 if (PyErr_Occurred()) SWIG_fail;
10237 }
10238 {
10239 wxImage * resultptr;
10240 resultptr = new wxImage((wxImage &) result);
10241 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1);
10242 }
10243 return resultobj;
10244 fail:
10245 return NULL;
10246}
10247
10248
10249static PyObject *_wrap_Image_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
10250 PyObject *resultobj;
10251 wxImage *arg1 = (wxImage *) 0 ;
10252 unsigned char arg2 ;
10253 unsigned char arg3 ;
10254 unsigned char arg4 ;
10255 unsigned char arg5 ;
10256 unsigned char arg6 ;
10257 unsigned char arg7 ;
10258 PyObject * obj0 = 0 ;
10259 PyObject * obj1 = 0 ;
10260 PyObject * obj2 = 0 ;
10261 PyObject * obj3 = 0 ;
10262 PyObject * obj4 = 0 ;
10263 PyObject * obj5 = 0 ;
10264 PyObject * obj6 = 0 ;
10265 char *kwnames[] = {
10266 (char *) "self",(char *) "r1",(char *) "g1",(char *) "b1",(char *) "r2",(char *) "g2",(char *) "b2", NULL
10267 };
10268
10269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:Image_Replace",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10270 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 10271 {
8edf1c75 10272 arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1);
83448d71
RD
10273 if (PyErr_Occurred()) SWIG_fail;
10274 }
10275 {
8edf1c75 10276 arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2);
83448d71
RD
10277 if (PyErr_Occurred()) SWIG_fail;
10278 }
10279 {
8edf1c75 10280 arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3);
83448d71
RD
10281 if (PyErr_Occurred()) SWIG_fail;
10282 }
10283 {
8edf1c75 10284 arg5 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj4);
83448d71
RD
10285 if (PyErr_Occurred()) SWIG_fail;
10286 }
10287 {
8edf1c75 10288 arg6 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj5);
83448d71
RD
10289 if (PyErr_Occurred()) SWIG_fail;
10290 }
10291 {
8edf1c75 10292 arg7 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj6);
83448d71
RD
10293 if (PyErr_Occurred()) SWIG_fail;
10294 }
d14a1e28
RD
10295 {
10296 PyThreadState* __tstate = wxPyBeginAllowThreads();
10297 (arg1)->Replace(arg2,arg3,arg4,arg5,arg6,arg7);
10298
10299 wxPyEndAllowThreads(__tstate);
10300 if (PyErr_Occurred()) SWIG_fail;
10301 }
10302 Py_INCREF(Py_None); resultobj = Py_None;
10303 return resultobj;
10304 fail:
10305 return NULL;
10306}
10307
10308
10309static PyObject *_wrap_Image_ConvertToMono(PyObject *self, PyObject *args, PyObject *kwargs) {
10310 PyObject *resultobj;
10311 wxImage *arg1 = (wxImage *) 0 ;
10312 unsigned char arg2 ;
10313 unsigned char arg3 ;
10314 unsigned char arg4 ;
10315 SwigValueWrapper< wxImage > result;
10316 PyObject * obj0 = 0 ;
10317 PyObject * obj1 = 0 ;
10318 PyObject * obj2 = 0 ;
10319 PyObject * obj3 = 0 ;
10320 char *kwnames[] = {
10321 (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL
10322 };
10323
10324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMono",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10325 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 10326 {
8edf1c75 10327 arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1);
83448d71
RD
10328 if (PyErr_Occurred()) SWIG_fail;
10329 }
10330 {
8edf1c75 10331 arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2);
83448d71
RD
10332 if (PyErr_Occurred()) SWIG_fail;
10333 }
10334 {
8edf1c75 10335 arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3);
83448d71
RD
10336 if (PyErr_Occurred()) SWIG_fail;
10337 }
d14a1e28
RD
10338 {
10339 PyThreadState* __tstate = wxPyBeginAllowThreads();
10340 result = ((wxImage const *)arg1)->ConvertToMono(arg2,arg3,arg4);
10341
10342 wxPyEndAllowThreads(__tstate);
10343 if (PyErr_Occurred()) SWIG_fail;
10344 }
10345 {
10346 wxImage * resultptr;
10347 resultptr = new wxImage((wxImage &) result);
10348 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1);
10349 }
10350 return resultobj;
10351 fail:
10352 return NULL;
10353}
10354
10355
10356static PyObject *_wrap_Image_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
10357 PyObject *resultobj;
10358 wxImage *arg1 = (wxImage *) 0 ;
10359 wxString *arg2 = 0 ;
10360 wxString *arg3 = 0 ;
423f194a
RD
10361 bool temp2 = False ;
10362 bool temp3 = False ;
d14a1e28
RD
10363 PyObject * obj0 = 0 ;
10364 PyObject * obj1 = 0 ;
10365 PyObject * obj2 = 0 ;
10366 char *kwnames[] = {
10367 (char *) "self",(char *) "name",(char *) "value", NULL
10368 };
10369
10370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOption",kwnames,&obj0,&obj1,&obj2)) goto fail;
10371 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10372 {
10373 arg2 = wxString_in_helper(obj1);
10374 if (arg2 == NULL) SWIG_fail;
423f194a 10375 temp2 = True;
d14a1e28
RD
10376 }
10377 {
10378 arg3 = wxString_in_helper(obj2);
10379 if (arg3 == NULL) SWIG_fail;
423f194a 10380 temp3 = True;
d14a1e28
RD
10381 }
10382 {
10383 PyThreadState* __tstate = wxPyBeginAllowThreads();
10384 (arg1)->SetOption((wxString const &)*arg2,(wxString const &)*arg3);
10385
10386 wxPyEndAllowThreads(__tstate);
10387 if (PyErr_Occurred()) SWIG_fail;
10388 }
10389 Py_INCREF(Py_None); resultobj = Py_None;
10390 {
10391 if (temp2)
10392 delete arg2;
10393 }
10394 {
10395 if (temp3)
10396 delete arg3;
10397 }
10398 return resultobj;
10399 fail:
10400 {
10401 if (temp2)
10402 delete arg2;
10403 }
10404 {
10405 if (temp3)
10406 delete arg3;
10407 }
10408 return NULL;
10409}
10410
10411
10412static PyObject *_wrap_Image_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
10413 PyObject *resultobj;
10414 wxImage *arg1 = (wxImage *) 0 ;
10415 wxString *arg2 = 0 ;
10416 int arg3 ;
423f194a 10417 bool temp2 = False ;
d14a1e28
RD
10418 PyObject * obj0 = 0 ;
10419 PyObject * obj1 = 0 ;
8edf1c75 10420 PyObject * obj2 = 0 ;
d14a1e28
RD
10421 char *kwnames[] = {
10422 (char *) "self",(char *) "name",(char *) "value", NULL
10423 };
10424
8edf1c75 10425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOptionInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28
RD
10426 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10427 {
10428 arg2 = wxString_in_helper(obj1);
10429 if (arg2 == NULL) SWIG_fail;
423f194a 10430 temp2 = True;
d14a1e28 10431 }
8edf1c75
RD
10432 {
10433 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10434 if (PyErr_Occurred()) SWIG_fail;
10435 }
d14a1e28
RD
10436 {
10437 PyThreadState* __tstate = wxPyBeginAllowThreads();
10438 (arg1)->SetOption((wxString const &)*arg2,arg3);
10439
10440 wxPyEndAllowThreads(__tstate);
10441 if (PyErr_Occurred()) SWIG_fail;
10442 }
10443 Py_INCREF(Py_None); resultobj = Py_None;
10444 {
10445 if (temp2)
10446 delete arg2;
10447 }
10448 return resultobj;
10449 fail:
10450 {
10451 if (temp2)
10452 delete arg2;
10453 }
10454 return NULL;
10455}
10456
10457
10458static PyObject *_wrap_Image_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
10459 PyObject *resultobj;
10460 wxImage *arg1 = (wxImage *) 0 ;
10461 wxString *arg2 = 0 ;
10462 wxString result;
423f194a 10463 bool temp2 = False ;
d14a1e28
RD
10464 PyObject * obj0 = 0 ;
10465 PyObject * obj1 = 0 ;
10466 char *kwnames[] = {
10467 (char *) "self",(char *) "name", NULL
10468 };
10469
10470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOption",kwnames,&obj0,&obj1)) goto fail;
10471 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10472 {
10473 arg2 = wxString_in_helper(obj1);
10474 if (arg2 == NULL) SWIG_fail;
423f194a 10475 temp2 = True;
d14a1e28
RD
10476 }
10477 {
10478 PyThreadState* __tstate = wxPyBeginAllowThreads();
10479 result = ((wxImage const *)arg1)->GetOption((wxString const &)*arg2);
10480
10481 wxPyEndAllowThreads(__tstate);
10482 if (PyErr_Occurred()) SWIG_fail;
10483 }
10484 {
10485#if wxUSE_UNICODE
10486 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10487#else
10488 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10489#endif
10490 }
10491 {
10492 if (temp2)
10493 delete arg2;
10494 }
10495 return resultobj;
10496 fail:
10497 {
10498 if (temp2)
10499 delete arg2;
10500 }
10501 return NULL;
10502}
10503
10504
10505static PyObject *_wrap_Image_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
10506 PyObject *resultobj;
10507 wxImage *arg1 = (wxImage *) 0 ;
10508 wxString *arg2 = 0 ;
10509 int result;
423f194a 10510 bool temp2 = False ;
d14a1e28
RD
10511 PyObject * obj0 = 0 ;
10512 PyObject * obj1 = 0 ;
10513 char *kwnames[] = {
10514 (char *) "self",(char *) "name", NULL
10515 };
10516
10517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOptionInt",kwnames,&obj0,&obj1)) goto fail;
10518 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10519 {
10520 arg2 = wxString_in_helper(obj1);
10521 if (arg2 == NULL) SWIG_fail;
423f194a 10522 temp2 = True;
d14a1e28
RD
10523 }
10524 {
10525 PyThreadState* __tstate = wxPyBeginAllowThreads();
10526 result = (int)((wxImage const *)arg1)->GetOptionInt((wxString const &)*arg2);
10527
10528 wxPyEndAllowThreads(__tstate);
10529 if (PyErr_Occurred()) SWIG_fail;
10530 }
8edf1c75 10531 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
10532 {
10533 if (temp2)
10534 delete arg2;
10535 }
10536 return resultobj;
10537 fail:
10538 {
10539 if (temp2)
10540 delete arg2;
10541 }
10542 return NULL;
10543}
10544
10545
10546static PyObject *_wrap_Image_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) {
10547 PyObject *resultobj;
10548 wxImage *arg1 = (wxImage *) 0 ;
10549 wxString *arg2 = 0 ;
10550 bool result;
423f194a 10551 bool temp2 = False ;
d14a1e28
RD
10552 PyObject * obj0 = 0 ;
10553 PyObject * obj1 = 0 ;
10554 char *kwnames[] = {
10555 (char *) "self",(char *) "name", NULL
10556 };
10557
10558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_HasOption",kwnames,&obj0,&obj1)) goto fail;
10559 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10560 {
10561 arg2 = wxString_in_helper(obj1);
10562 if (arg2 == NULL) SWIG_fail;
423f194a 10563 temp2 = True;
d14a1e28
RD
10564 }
10565 {
10566 PyThreadState* __tstate = wxPyBeginAllowThreads();
10567 result = (bool)((wxImage const *)arg1)->HasOption((wxString const &)*arg2);
10568
10569 wxPyEndAllowThreads(__tstate);
10570 if (PyErr_Occurred()) SWIG_fail;
10571 }
4e760a36 10572 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
10573 {
10574 if (temp2)
10575 delete arg2;
10576 }
10577 return resultobj;
10578 fail:
10579 {
10580 if (temp2)
10581 delete arg2;
10582 }
10583 return NULL;
10584}
10585
10586
10587static PyObject *_wrap_Image_CountColours(PyObject *self, PyObject *args, PyObject *kwargs) {
10588 PyObject *resultobj;
10589 wxImage *arg1 = (wxImage *) 0 ;
10590 unsigned long arg2 = (unsigned long) (unsigned long) -1 ;
10591 unsigned long result;
10592 PyObject * obj0 = 0 ;
10593 PyObject * obj1 = 0 ;
10594 char *kwnames[] = {
10595 (char *) "self",(char *) "stopafter", NULL
10596 };
10597
10598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_CountColours",kwnames,&obj0,&obj1)) goto fail;
10599 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10600 if (obj1) {
83448d71 10601 {
8edf1c75 10602 arg2 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj1);
83448d71
RD
10603 if (PyErr_Occurred()) SWIG_fail;
10604 }
d14a1e28
RD
10605 }
10606 {
10607 PyThreadState* __tstate = wxPyBeginAllowThreads();
10608 result = (unsigned long)(arg1)->CountColours(arg2);
10609
10610 wxPyEndAllowThreads(__tstate);
10611 if (PyErr_Occurred()) SWIG_fail;
10612 }
8edf1c75 10613 resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result);
d14a1e28
RD
10614 return resultobj;
10615 fail:
10616 return NULL;
10617}
10618
10619
10620static PyObject *_wrap_Image_ComputeHistogram(PyObject *self, PyObject *args, PyObject *kwargs) {
10621 PyObject *resultobj;
10622 wxImage *arg1 = (wxImage *) 0 ;
10623 wxImageHistogram *arg2 = 0 ;
10624 unsigned long result;
10625 PyObject * obj0 = 0 ;
10626 PyObject * obj1 = 0 ;
10627 char *kwnames[] = {
10628 (char *) "self",(char *) "h", NULL
10629 };
10630
10631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_ComputeHistogram",kwnames,&obj0,&obj1)) goto fail;
10632 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10633 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageHistogram,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10634 if (arg2 == NULL) {
10635 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
10636 }
10637 {
10638 PyThreadState* __tstate = wxPyBeginAllowThreads();
10639 result = (unsigned long)(arg1)->ComputeHistogram(*arg2);
10640
10641 wxPyEndAllowThreads(__tstate);
10642 if (PyErr_Occurred()) SWIG_fail;
10643 }
8edf1c75 10644 resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result);
d14a1e28
RD
10645 return resultobj;
10646 fail:
10647 return NULL;
10648}
10649
10650
10651static PyObject *_wrap_Image_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
10652 PyObject *resultobj;
10653 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
10654 PyObject * obj0 = 0 ;
10655 char *kwnames[] = {
10656 (char *) "handler", NULL
10657 };
10658
10659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_AddHandler",kwnames,&obj0)) goto fail;
10660 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10661 {
10662 PyThreadState* __tstate = wxPyBeginAllowThreads();
10663 wxImage::AddHandler(arg1);
10664
10665 wxPyEndAllowThreads(__tstate);
10666 if (PyErr_Occurred()) SWIG_fail;
10667 }
10668 Py_INCREF(Py_None); resultobj = Py_None;
10669 return resultobj;
10670 fail:
10671 return NULL;
10672}
10673
10674
10675static PyObject *_wrap_Image_InsertHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
10676 PyObject *resultobj;
10677 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
10678 PyObject * obj0 = 0 ;
10679 char *kwnames[] = {
10680 (char *) "handler", NULL
10681 };
10682
10683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InsertHandler",kwnames,&obj0)) goto fail;
10684 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10685 {
10686 PyThreadState* __tstate = wxPyBeginAllowThreads();
10687 wxImage::InsertHandler(arg1);
10688
10689 wxPyEndAllowThreads(__tstate);
10690 if (PyErr_Occurred()) SWIG_fail;
10691 }
10692 Py_INCREF(Py_None); resultobj = Py_None;
10693 return resultobj;
10694 fail:
10695 return NULL;
10696}
10697
10698
10699static PyObject *_wrap_Image_RemoveHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
10700 PyObject *resultobj;
10701 wxString *arg1 = 0 ;
10702 bool result;
423f194a 10703 bool temp1 = False ;
d14a1e28
RD
10704 PyObject * obj0 = 0 ;
10705 char *kwnames[] = {
10706 (char *) "name", NULL
10707 };
10708
10709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RemoveHandler",kwnames,&obj0)) goto fail;
10710 {
10711 arg1 = wxString_in_helper(obj0);
10712 if (arg1 == NULL) SWIG_fail;
423f194a 10713 temp1 = True;
d14a1e28
RD
10714 }
10715 {
10716 PyThreadState* __tstate = wxPyBeginAllowThreads();
10717 result = (bool)wxImage::RemoveHandler((wxString const &)*arg1);
10718
10719 wxPyEndAllowThreads(__tstate);
10720 if (PyErr_Occurred()) SWIG_fail;
10721 }
4e760a36 10722 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
10723 {
10724 if (temp1)
10725 delete arg1;
10726 }
10727 return resultobj;
10728 fail:
10729 {
10730 if (temp1)
10731 delete arg1;
10732 }
10733 return NULL;
10734}
10735
10736
10737static PyObject *_wrap_Image_GetImageExtWildcard(PyObject *self, PyObject *args, PyObject *kwargs) {
10738 PyObject *resultobj;
10739 wxString result;
10740 char *kwnames[] = {
10741 NULL
10742 };
10743
10744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Image_GetImageExtWildcard",kwnames)) goto fail;
10745 {
10746 PyThreadState* __tstate = wxPyBeginAllowThreads();
10747 result = wxImage::GetImageExtWildcard();
10748
10749 wxPyEndAllowThreads(__tstate);
10750 if (PyErr_Occurred()) SWIG_fail;
10751 }
10752 {
10753#if wxUSE_UNICODE
10754 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10755#else
10756 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10757#endif
10758 }
10759 return resultobj;
10760 fail:
10761 return NULL;
10762}
10763
10764
10765static PyObject *_wrap_Image_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
10766 PyObject *resultobj;
10767 wxImage *arg1 = (wxImage *) 0 ;
10768 wxBitmap result;
10769 PyObject * obj0 = 0 ;
10770 char *kwnames[] = {
10771 (char *) "self", NULL
10772 };
10773
10774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_ConvertToBitmap",kwnames,&obj0)) goto fail;
10775 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10776 {
10777 PyThreadState* __tstate = wxPyBeginAllowThreads();
10778 result = wxImage_ConvertToBitmap(arg1);
10779
10780 wxPyEndAllowThreads(__tstate);
10781 if (PyErr_Occurred()) SWIG_fail;
10782 }
10783 {
10784 wxBitmap * resultptr;
10785 resultptr = new wxBitmap((wxBitmap &) result);
10786 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
10787 }
10788 return resultobj;
10789 fail:
10790 return NULL;
10791}
10792
10793
10794static PyObject *_wrap_Image_ConvertToMonoBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
10795 PyObject *resultobj;
10796 wxImage *arg1 = (wxImage *) 0 ;
10797 unsigned char arg2 ;
10798 unsigned char arg3 ;
10799 unsigned char arg4 ;
10800 wxBitmap result;
10801 PyObject * obj0 = 0 ;
10802 PyObject * obj1 = 0 ;
10803 PyObject * obj2 = 0 ;
10804 PyObject * obj3 = 0 ;
10805 char *kwnames[] = {
10806 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
10807 };
10808
10809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMonoBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10810 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 10811 {
8edf1c75 10812 arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1);
83448d71
RD
10813 if (PyErr_Occurred()) SWIG_fail;
10814 }
10815 {
8edf1c75 10816 arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2);
83448d71
RD
10817 if (PyErr_Occurred()) SWIG_fail;
10818 }
10819 {
8edf1c75 10820 arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3);
83448d71
RD
10821 if (PyErr_Occurred()) SWIG_fail;
10822 }
d14a1e28
RD
10823 {
10824 PyThreadState* __tstate = wxPyBeginAllowThreads();
10825 result = wxImage_ConvertToMonoBitmap(arg1,arg2,arg3,arg4);
10826
10827 wxPyEndAllowThreads(__tstate);
10828 if (PyErr_Occurred()) SWIG_fail;
10829 }
10830 {
10831 wxBitmap * resultptr;
10832 resultptr = new wxBitmap((wxBitmap &) result);
10833 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
10834 }
10835 return resultobj;
10836 fail:
10837 return NULL;
10838}
10839
10840
10841static PyObject * Image_swigregister(PyObject *self, PyObject *args) {
10842 PyObject *obj;
10843 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10844 SWIG_TypeClientData(SWIGTYPE_p_wxImage, obj);
10845 Py_INCREF(obj);
10846 return Py_BuildValue((char *)"");
10847}
10848static PyObject *_wrap_InitAllImageHandlers(PyObject *self, PyObject *args, PyObject *kwargs) {
10849 PyObject *resultobj;
10850 char *kwnames[] = {
10851 NULL
10852 };
10853
10854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":InitAllImageHandlers",kwnames)) goto fail;
10855 {
10856 PyThreadState* __tstate = wxPyBeginAllowThreads();
10857 wxInitAllImageHandlers();
10858
10859 wxPyEndAllowThreads(__tstate);
10860 if (PyErr_Occurred()) SWIG_fail;
10861 }
10862 Py_INCREF(Py_None); resultobj = Py_None;
10863 return resultobj;
10864 fail:
10865 return NULL;
10866}
10867
10868
8edf1c75 10869static int _wrap_NullImage_set(PyObject *) {
d14a1e28
RD
10870 PyErr_SetString(PyExc_TypeError,"Variable NullImage is read-only.");
10871 return 1;
10872}
10873
10874
10875static PyObject *_wrap_NullImage_get() {
10876 PyObject *pyobj;
10877
10878 pyobj = SWIG_NewPointerObj((void *) &wxNullImage, SWIGTYPE_p_wxImage, 0);
10879 return pyobj;
10880}
10881
10882
8edf1c75 10883static int _wrap_IMAGE_OPTION_BMP_FORMAT_set(PyObject *) {
d14a1e28
RD
10884 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_BMP_FORMAT is read-only.");
10885 return 1;
10886}
10887
10888
10889static PyObject *_wrap_IMAGE_OPTION_BMP_FORMAT_get() {
10890 PyObject *pyobj;
10891
10892 {
10893#if wxUSE_UNICODE
10894 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len());
10895#else
10896 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len());
10897#endif
10898 }
10899 return pyobj;
10900}
10901
10902
8edf1c75 10903static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set(PyObject *) {
d14a1e28
RD
10904 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_X is read-only.");
10905 return 1;
10906}
10907
10908
10909static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get() {
10910 PyObject *pyobj;
10911
10912 {
10913#if wxUSE_UNICODE
10914 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len());
10915#else
10916 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len());
10917#endif
10918 }
10919 return pyobj;
10920}
10921
10922
8edf1c75 10923static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set(PyObject *) {
d14a1e28
RD
10924 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_Y is read-only.");
10925 return 1;
10926}
10927
10928
10929static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get() {
10930 PyObject *pyobj;
10931
10932 {
10933#if wxUSE_UNICODE
10934 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len());
10935#else
10936 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len());
10937#endif
10938 }
10939 return pyobj;
10940}
10941
10942
8edf1c75 10943static int _wrap_IMAGE_OPTION_RESOLUTION_set(PyObject *) {
d14a1e28
RD
10944 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTION is read-only.");
10945 return 1;
10946}
10947
10948
10949static PyObject *_wrap_IMAGE_OPTION_RESOLUTION_get() {
10950 PyObject *pyobj;
10951
10952 {
10953#if wxUSE_UNICODE
10954 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len());
10955#else
10956 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len());
10957#endif
10958 }
10959 return pyobj;
10960}
10961
10962
8edf1c75 10963static int _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set(PyObject *) {
d14a1e28
RD
10964 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONUNIT is read-only.");
10965 return 1;
10966}
10967
10968
10969static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get() {
10970 PyObject *pyobj;
10971
10972 {
10973#if wxUSE_UNICODE
10974 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len());
10975#else
10976 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len());
10977#endif
10978 }
10979 return pyobj;
10980}
10981
10982
10983static PyObject *_wrap_new_BMPHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
10984 PyObject *resultobj;
10985 wxBMPHandler *result;
10986 char *kwnames[] = {
10987 NULL
10988 };
10989
10990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_BMPHandler",kwnames)) goto fail;
10991 {
10992 PyThreadState* __tstate = wxPyBeginAllowThreads();
10993 result = (wxBMPHandler *)new wxBMPHandler();
10994
10995 wxPyEndAllowThreads(__tstate);
10996 if (PyErr_Occurred()) SWIG_fail;
10997 }
10998 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBMPHandler, 1);
10999 return resultobj;
11000 fail:
11001 return NULL;
11002}
11003
11004
11005static PyObject * BMPHandler_swigregister(PyObject *self, PyObject *args) {
11006 PyObject *obj;
11007 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11008 SWIG_TypeClientData(SWIGTYPE_p_wxBMPHandler, obj);
11009 Py_INCREF(obj);
11010 return Py_BuildValue((char *)"");
11011}
11012static PyObject *_wrap_new_ICOHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11013 PyObject *resultobj;
11014 wxICOHandler *result;
11015 char *kwnames[] = {
11016 NULL
11017 };
11018
11019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ICOHandler",kwnames)) goto fail;
11020 {
11021 PyThreadState* __tstate = wxPyBeginAllowThreads();
11022 result = (wxICOHandler *)new wxICOHandler();
11023
11024 wxPyEndAllowThreads(__tstate);
11025 if (PyErr_Occurred()) SWIG_fail;
11026 }
11027 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxICOHandler, 1);
11028 return resultobj;
11029 fail:
11030 return NULL;
11031}
11032
11033
11034static PyObject * ICOHandler_swigregister(PyObject *self, PyObject *args) {
11035 PyObject *obj;
11036 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11037 SWIG_TypeClientData(SWIGTYPE_p_wxICOHandler, obj);
11038 Py_INCREF(obj);
11039 return Py_BuildValue((char *)"");
11040}
11041static PyObject *_wrap_new_CURHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11042 PyObject *resultobj;
11043 wxCURHandler *result;
11044 char *kwnames[] = {
11045 NULL
11046 };
11047
11048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_CURHandler",kwnames)) goto fail;
11049 {
11050 PyThreadState* __tstate = wxPyBeginAllowThreads();
11051 result = (wxCURHandler *)new wxCURHandler();
11052
11053 wxPyEndAllowThreads(__tstate);
11054 if (PyErr_Occurred()) SWIG_fail;
11055 }
11056 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCURHandler, 1);
11057 return resultobj;
11058 fail:
11059 return NULL;
11060}
11061
11062
11063static PyObject * CURHandler_swigregister(PyObject *self, PyObject *args) {
11064 PyObject *obj;
11065 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11066 SWIG_TypeClientData(SWIGTYPE_p_wxCURHandler, obj);
11067 Py_INCREF(obj);
11068 return Py_BuildValue((char *)"");
11069}
11070static PyObject *_wrap_new_ANIHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11071 PyObject *resultobj;
11072 wxANIHandler *result;
11073 char *kwnames[] = {
11074 NULL
11075 };
11076
11077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ANIHandler",kwnames)) goto fail;
11078 {
11079 PyThreadState* __tstate = wxPyBeginAllowThreads();
11080 result = (wxANIHandler *)new wxANIHandler();
11081
11082 wxPyEndAllowThreads(__tstate);
11083 if (PyErr_Occurred()) SWIG_fail;
11084 }
11085 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxANIHandler, 1);
11086 return resultobj;
11087 fail:
11088 return NULL;
11089}
11090
11091
11092static PyObject * ANIHandler_swigregister(PyObject *self, PyObject *args) {
11093 PyObject *obj;
11094 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11095 SWIG_TypeClientData(SWIGTYPE_p_wxANIHandler, obj);
11096 Py_INCREF(obj);
11097 return Py_BuildValue((char *)"");
11098}
11099static PyObject *_wrap_new_PNGHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11100 PyObject *resultobj;
11101 wxPNGHandler *result;
11102 char *kwnames[] = {
11103 NULL
11104 };
11105
11106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNGHandler",kwnames)) goto fail;
11107 {
11108 PyThreadState* __tstate = wxPyBeginAllowThreads();
11109 result = (wxPNGHandler *)new wxPNGHandler();
11110
11111 wxPyEndAllowThreads(__tstate);
11112 if (PyErr_Occurred()) SWIG_fail;
11113 }
11114 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPNGHandler, 1);
11115 return resultobj;
11116 fail:
11117 return NULL;
11118}
11119
11120
11121static PyObject * PNGHandler_swigregister(PyObject *self, PyObject *args) {
11122 PyObject *obj;
11123 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11124 SWIG_TypeClientData(SWIGTYPE_p_wxPNGHandler, obj);
11125 Py_INCREF(obj);
11126 return Py_BuildValue((char *)"");
11127}
11128static PyObject *_wrap_new_GIFHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11129 PyObject *resultobj;
11130 wxGIFHandler *result;
11131 char *kwnames[] = {
11132 NULL
11133 };
11134
11135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GIFHandler",kwnames)) goto fail;
11136 {
11137 PyThreadState* __tstate = wxPyBeginAllowThreads();
11138 result = (wxGIFHandler *)new wxGIFHandler();
11139
11140 wxPyEndAllowThreads(__tstate);
11141 if (PyErr_Occurred()) SWIG_fail;
11142 }
11143 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGIFHandler, 1);
11144 return resultobj;
11145 fail:
11146 return NULL;
11147}
11148
11149
11150static PyObject * GIFHandler_swigregister(PyObject *self, PyObject *args) {
11151 PyObject *obj;
11152 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11153 SWIG_TypeClientData(SWIGTYPE_p_wxGIFHandler, obj);
11154 Py_INCREF(obj);
11155 return Py_BuildValue((char *)"");
11156}
11157static PyObject *_wrap_new_PCXHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11158 PyObject *resultobj;
11159 wxPCXHandler *result;
11160 char *kwnames[] = {
11161 NULL
11162 };
11163
11164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PCXHandler",kwnames)) goto fail;
11165 {
11166 PyThreadState* __tstate = wxPyBeginAllowThreads();
11167 result = (wxPCXHandler *)new wxPCXHandler();
11168
11169 wxPyEndAllowThreads(__tstate);
11170 if (PyErr_Occurred()) SWIG_fail;
11171 }
11172 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPCXHandler, 1);
11173 return resultobj;
11174 fail:
11175 return NULL;
11176}
11177
11178
11179static PyObject * PCXHandler_swigregister(PyObject *self, PyObject *args) {
11180 PyObject *obj;
11181 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11182 SWIG_TypeClientData(SWIGTYPE_p_wxPCXHandler, obj);
11183 Py_INCREF(obj);
11184 return Py_BuildValue((char *)"");
11185}
11186static PyObject *_wrap_new_JPEGHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11187 PyObject *resultobj;
11188 wxJPEGHandler *result;
11189 char *kwnames[] = {
11190 NULL
11191 };
11192
11193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_JPEGHandler",kwnames)) goto fail;
11194 {
11195 PyThreadState* __tstate = wxPyBeginAllowThreads();
11196 result = (wxJPEGHandler *)new wxJPEGHandler();
11197
11198 wxPyEndAllowThreads(__tstate);
11199 if (PyErr_Occurred()) SWIG_fail;
11200 }
11201 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxJPEGHandler, 1);
11202 return resultobj;
11203 fail:
11204 return NULL;
11205}
11206
11207
11208static PyObject * JPEGHandler_swigregister(PyObject *self, PyObject *args) {
11209 PyObject *obj;
11210 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11211 SWIG_TypeClientData(SWIGTYPE_p_wxJPEGHandler, obj);
11212 Py_INCREF(obj);
11213 return Py_BuildValue((char *)"");
11214}
11215static PyObject *_wrap_new_PNMHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11216 PyObject *resultobj;
11217 wxPNMHandler *result;
11218 char *kwnames[] = {
11219 NULL
11220 };
11221
11222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNMHandler",kwnames)) goto fail;
11223 {
11224 PyThreadState* __tstate = wxPyBeginAllowThreads();
11225 result = (wxPNMHandler *)new wxPNMHandler();
11226
11227 wxPyEndAllowThreads(__tstate);
11228 if (PyErr_Occurred()) SWIG_fail;
11229 }
11230 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPNMHandler, 1);
11231 return resultobj;
11232 fail:
11233 return NULL;
11234}
11235
11236
11237static PyObject * PNMHandler_swigregister(PyObject *self, PyObject *args) {
11238 PyObject *obj;
11239 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11240 SWIG_TypeClientData(SWIGTYPE_p_wxPNMHandler, obj);
11241 Py_INCREF(obj);
11242 return Py_BuildValue((char *)"");
11243}
11244static PyObject *_wrap_new_XPMHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11245 PyObject *resultobj;
11246 wxXPMHandler *result;
11247 char *kwnames[] = {
11248 NULL
11249 };
11250
11251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XPMHandler",kwnames)) goto fail;
11252 {
11253 PyThreadState* __tstate = wxPyBeginAllowThreads();
11254 result = (wxXPMHandler *)new wxXPMHandler();
11255
11256 wxPyEndAllowThreads(__tstate);
11257 if (PyErr_Occurred()) SWIG_fail;
11258 }
11259 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxXPMHandler, 1);
11260 return resultobj;
11261 fail:
11262 return NULL;
11263}
11264
11265
11266static PyObject * XPMHandler_swigregister(PyObject *self, PyObject *args) {
11267 PyObject *obj;
11268 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11269 SWIG_TypeClientData(SWIGTYPE_p_wxXPMHandler, obj);
11270 Py_INCREF(obj);
11271 return Py_BuildValue((char *)"");
11272}
11273static PyObject *_wrap_new_TIFFHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11274 PyObject *resultobj;
11275 wxTIFFHandler *result;
11276 char *kwnames[] = {
11277 NULL
11278 };
11279
11280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TIFFHandler",kwnames)) goto fail;
11281 {
11282 PyThreadState* __tstate = wxPyBeginAllowThreads();
11283 result = (wxTIFFHandler *)new wxTIFFHandler();
11284
11285 wxPyEndAllowThreads(__tstate);
11286 if (PyErr_Occurred()) SWIG_fail;
11287 }
11288 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTIFFHandler, 1);
11289 return resultobj;
11290 fail:
11291 return NULL;
11292}
11293
11294
11295static PyObject * TIFFHandler_swigregister(PyObject *self, PyObject *args) {
11296 PyObject *obj;
11297 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11298 SWIG_TypeClientData(SWIGTYPE_p_wxTIFFHandler, obj);
11299 Py_INCREF(obj);
11300 return Py_BuildValue((char *)"");
11301}
11302static PyObject *_wrap_new_EvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11303 PyObject *resultobj;
11304 wxEvtHandler *result;
11305 char *kwnames[] = {
11306 NULL
11307 };
11308
11309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EvtHandler",kwnames)) goto fail;
11310 {
11311 PyThreadState* __tstate = wxPyBeginAllowThreads();
11312 result = (wxEvtHandler *)new wxEvtHandler();
11313
11314 wxPyEndAllowThreads(__tstate);
11315 if (PyErr_Occurred()) SWIG_fail;
11316 }
11317 {
11318 resultobj = wxPyMake_wxObject(result);
11319 }
11320 return resultobj;
11321 fail:
11322 return NULL;
11323}
11324
11325
11326static PyObject *_wrap_EvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11327 PyObject *resultobj;
11328 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11329 wxEvtHandler *result;
11330 PyObject * obj0 = 0 ;
11331 char *kwnames[] = {
11332 (char *) "self", NULL
11333 };
11334
11335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetNextHandler",kwnames,&obj0)) goto fail;
11336 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11337 {
11338 PyThreadState* __tstate = wxPyBeginAllowThreads();
11339 result = (wxEvtHandler *)(arg1)->GetNextHandler();
11340
11341 wxPyEndAllowThreads(__tstate);
11342 if (PyErr_Occurred()) SWIG_fail;
11343 }
11344 {
11345 resultobj = wxPyMake_wxObject(result);
11346 }
11347 return resultobj;
11348 fail:
11349 return NULL;
11350}
11351
11352
11353static PyObject *_wrap_EvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11354 PyObject *resultobj;
11355 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11356 wxEvtHandler *result;
11357 PyObject * obj0 = 0 ;
11358 char *kwnames[] = {
11359 (char *) "self", NULL
11360 };
11361
11362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetPreviousHandler",kwnames,&obj0)) goto fail;
11363 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11364 {
11365 PyThreadState* __tstate = wxPyBeginAllowThreads();
11366 result = (wxEvtHandler *)(arg1)->GetPreviousHandler();
11367
11368 wxPyEndAllowThreads(__tstate);
11369 if (PyErr_Occurred()) SWIG_fail;
11370 }
11371 {
11372 resultobj = wxPyMake_wxObject(result);
11373 }
11374 return resultobj;
11375 fail:
11376 return NULL;
11377}
11378
11379
11380static PyObject *_wrap_EvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11381 PyObject *resultobj;
11382 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11383 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
11384 PyObject * obj0 = 0 ;
11385 PyObject * obj1 = 0 ;
11386 char *kwnames[] = {
11387 (char *) "self",(char *) "handler", NULL
11388 };
11389
11390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetNextHandler",kwnames,&obj0,&obj1)) goto fail;
11391 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11392 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11393 {
11394 PyThreadState* __tstate = wxPyBeginAllowThreads();
11395 (arg1)->SetNextHandler(arg2);
11396
11397 wxPyEndAllowThreads(__tstate);
11398 if (PyErr_Occurred()) SWIG_fail;
11399 }
11400 Py_INCREF(Py_None); resultobj = Py_None;
11401 return resultobj;
11402 fail:
11403 return NULL;
11404}
11405
11406
11407static PyObject *_wrap_EvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11408 PyObject *resultobj;
11409 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11410 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
11411 PyObject * obj0 = 0 ;
11412 PyObject * obj1 = 0 ;
11413 char *kwnames[] = {
11414 (char *) "self",(char *) "handler", NULL
11415 };
11416
11417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) goto fail;
11418 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11419 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11420 {
11421 PyThreadState* __tstate = wxPyBeginAllowThreads();
11422 (arg1)->SetPreviousHandler(arg2);
11423
11424 wxPyEndAllowThreads(__tstate);
11425 if (PyErr_Occurred()) SWIG_fail;
11426 }
11427 Py_INCREF(Py_None); resultobj = Py_None;
11428 return resultobj;
11429 fail:
11430 return NULL;
11431}
11432
11433
11434static PyObject *_wrap_EvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
11435 PyObject *resultobj;
11436 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11437 bool result;
11438 PyObject * obj0 = 0 ;
11439 char *kwnames[] = {
11440 (char *) "self", NULL
11441 };
11442
11443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetEvtHandlerEnabled",kwnames,&obj0)) goto fail;
11444 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11445 {
11446 PyThreadState* __tstate = wxPyBeginAllowThreads();
11447 result = (bool)(arg1)->GetEvtHandlerEnabled();
11448
11449 wxPyEndAllowThreads(__tstate);
11450 if (PyErr_Occurred()) SWIG_fail;
11451 }
4e760a36 11452 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
11453 return resultobj;
11454 fail:
11455 return NULL;
11456}
11457
11458
11459static PyObject *_wrap_EvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
11460 PyObject *resultobj;
11461 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11462 bool arg2 ;
11463 PyObject * obj0 = 0 ;
11464 PyObject * obj1 = 0 ;
11465 char *kwnames[] = {
11466 (char *) "self",(char *) "enabled", NULL
11467 };
11468
11469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetEvtHandlerEnabled",kwnames,&obj0,&obj1)) goto fail;
11470 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 11471 {
8edf1c75 11472 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
11473 if (PyErr_Occurred()) SWIG_fail;
11474 }
d14a1e28
RD
11475 {
11476 PyThreadState* __tstate = wxPyBeginAllowThreads();
11477 (arg1)->SetEvtHandlerEnabled(arg2);
11478
11479 wxPyEndAllowThreads(__tstate);
11480 if (PyErr_Occurred()) SWIG_fail;
11481 }
11482 Py_INCREF(Py_None); resultobj = Py_None;
11483 return resultobj;
11484 fail:
11485 return NULL;
11486}
11487
11488
11489static PyObject *_wrap_EvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
11490 PyObject *resultobj;
11491 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11492 wxEvent *arg2 = 0 ;
11493 bool result;
11494 PyObject * obj0 = 0 ;
11495 PyObject * obj1 = 0 ;
11496 char *kwnames[] = {
11497 (char *) "self",(char *) "event", NULL
11498 };
11499
11500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_ProcessEvent",kwnames,&obj0,&obj1)) goto fail;
11501 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11502 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11503 if (arg2 == NULL) {
11504 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11505 }
11506 {
11507 PyThreadState* __tstate = wxPyBeginAllowThreads();
11508 result = (bool)(arg1)->ProcessEvent(*arg2);
11509
11510 wxPyEndAllowThreads(__tstate);
11511 if (PyErr_Occurred()) SWIG_fail;
11512 }
4e760a36 11513 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
11514 return resultobj;
11515 fail:
11516 return NULL;
11517}
11518
11519
11520static PyObject *_wrap_EvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
11521 PyObject *resultobj;
11522 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11523 wxEvent *arg2 = 0 ;
11524 PyObject * obj0 = 0 ;
11525 PyObject * obj1 = 0 ;
11526 char *kwnames[] = {
11527 (char *) "self",(char *) "event", NULL
11528 };
11529
11530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_AddPendingEvent",kwnames,&obj0,&obj1)) goto fail;
11531 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11532 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11533 if (arg2 == NULL) {
11534 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11535 }
11536 {
11537 PyThreadState* __tstate = wxPyBeginAllowThreads();
11538 (arg1)->AddPendingEvent(*arg2);
11539
11540 wxPyEndAllowThreads(__tstate);
11541 if (PyErr_Occurred()) SWIG_fail;
11542 }
11543 Py_INCREF(Py_None); resultobj = Py_None;
11544 return resultobj;
11545 fail:
11546 return NULL;
11547}
11548
11549
11550static PyObject *_wrap_EvtHandler_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) {
11551 PyObject *resultobj;
11552 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11553 PyObject * obj0 = 0 ;
11554 char *kwnames[] = {
11555 (char *) "self", NULL
11556 };
11557
11558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_ProcessPendingEvents",kwnames,&obj0)) goto fail;
11559 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11560 {
11561 PyThreadState* __tstate = wxPyBeginAllowThreads();
11562 (arg1)->ProcessPendingEvents();
11563
11564 wxPyEndAllowThreads(__tstate);
11565 if (PyErr_Occurred()) SWIG_fail;
11566 }
11567 Py_INCREF(Py_None); resultobj = Py_None;
11568 return resultobj;
11569 fail:
11570 return NULL;
11571}
11572
11573
11574static PyObject *_wrap_EvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) {
11575 PyObject *resultobj;
11576 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11577 int arg2 ;
11578 int arg3 ;
11579 int arg4 ;
11580 PyObject *arg5 = (PyObject *) 0 ;
11581 PyObject * obj0 = 0 ;
8edf1c75
RD
11582 PyObject * obj1 = 0 ;
11583 PyObject * obj2 = 0 ;
11584 PyObject * obj3 = 0 ;
d14a1e28
RD
11585 PyObject * obj4 = 0 ;
11586 char *kwnames[] = {
11587 (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType",(char *) "func", NULL
11588 };
11589
8edf1c75 11590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:EvtHandler_Connect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d14a1e28 11591 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
11592 {
11593 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11594 if (PyErr_Occurred()) SWIG_fail;
11595 }
11596 {
11597 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11598 if (PyErr_Occurred()) SWIG_fail;
11599 }
11600 {
11601 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11602 if (PyErr_Occurred()) SWIG_fail;
11603 }
d14a1e28
RD
11604 arg5 = obj4;
11605 {
11606 PyThreadState* __tstate = wxPyBeginAllowThreads();
11607 wxEvtHandler_Connect(arg1,arg2,arg3,arg4,arg5);
11608
11609 wxPyEndAllowThreads(__tstate);
11610 if (PyErr_Occurred()) SWIG_fail;
11611 }
11612 Py_INCREF(Py_None); resultobj = Py_None;
11613 return resultobj;
11614 fail:
11615 return NULL;
11616}
11617
11618
11619static PyObject *_wrap_EvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) {
11620 PyObject *resultobj;
11621 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11622 int arg2 ;
11623 int arg3 = (int) -1 ;
11624 wxEventType arg4 = (wxEventType) wxEVT_NULL ;
11625 bool result;
11626 PyObject * obj0 = 0 ;
8edf1c75
RD
11627 PyObject * obj1 = 0 ;
11628 PyObject * obj2 = 0 ;
11629 PyObject * obj3 = 0 ;
d14a1e28
RD
11630 char *kwnames[] = {
11631 (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType", NULL
11632 };
11633
8edf1c75 11634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:EvtHandler_Disconnect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28 11635 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
11636 {
11637 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11638 if (PyErr_Occurred()) SWIG_fail;
11639 }
11640 if (obj2) {
11641 {
11642 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11643 if (PyErr_Occurred()) SWIG_fail;
11644 }
11645 }
11646 if (obj3) {
11647 {
11648 arg4 = (wxEventType) SWIG_PyObj_AsInt(obj3);
11649 if (PyErr_Occurred()) SWIG_fail;
11650 }
11651 }
d14a1e28
RD
11652 {
11653 PyThreadState* __tstate = wxPyBeginAllowThreads();
11654 result = (bool)wxEvtHandler_Disconnect(arg1,arg2,arg3,arg4);
11655
11656 wxPyEndAllowThreads(__tstate);
11657 if (PyErr_Occurred()) SWIG_fail;
11658 }
4e760a36 11659 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
11660 return resultobj;
11661 fail:
11662 return NULL;
11663}
11664
11665
11666static PyObject *_wrap_EvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
11667 PyObject *resultobj;
11668 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11669 PyObject *arg2 = (PyObject *) 0 ;
11670 PyObject * obj0 = 0 ;
11671 PyObject * obj1 = 0 ;
11672 char *kwnames[] = {
11673 (char *) "self",(char *) "_self", NULL
11674 };
11675
11676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
11677 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11678 arg2 = obj1;
11679 {
11680 PyThreadState* __tstate = wxPyBeginAllowThreads();
11681 wxEvtHandler__setOORInfo(arg1,arg2);
11682
11683 wxPyEndAllowThreads(__tstate);
11684 if (PyErr_Occurred()) SWIG_fail;
11685 }
11686 Py_INCREF(Py_None); resultobj = Py_None;
11687 return resultobj;
11688 fail:
11689 return NULL;
11690}
11691
11692
11693static PyObject * EvtHandler_swigregister(PyObject *self, PyObject *args) {
11694 PyObject *obj;
11695 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11696 SWIG_TypeClientData(SWIGTYPE_p_wxEvtHandler, obj);
11697 Py_INCREF(obj);
11698 return Py_BuildValue((char *)"");
11699}
11700static PyObject *_wrap_NewEventType(PyObject *self, PyObject *args, PyObject *kwargs) {
11701 PyObject *resultobj;
11702 wxEventType result;
11703 char *kwnames[] = {
11704 NULL
11705 };
11706
11707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewEventType",kwnames)) goto fail;
11708 {
11709 PyThreadState* __tstate = wxPyBeginAllowThreads();
11710 result = (wxEventType)wxNewEventType();
11711
11712 wxPyEndAllowThreads(__tstate);
11713 if (PyErr_Occurred()) SWIG_fail;
11714 }
8edf1c75 11715 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
11716 return resultobj;
11717 fail:
11718 return NULL;
11719}
11720
11721
11722static PyObject *_wrap_delete_Event(PyObject *self, PyObject *args, PyObject *kwargs) {
11723 PyObject *resultobj;
11724 wxEvent *arg1 = (wxEvent *) 0 ;
11725 PyObject * obj0 = 0 ;
11726 char *kwnames[] = {
11727 (char *) "self", NULL
11728 };
11729
11730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Event",kwnames,&obj0)) goto fail;
11731 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11732 {
11733 PyThreadState* __tstate = wxPyBeginAllowThreads();
11734 delete arg1;
11735
11736 wxPyEndAllowThreads(__tstate);
11737 if (PyErr_Occurred()) SWIG_fail;
11738 }
11739 Py_INCREF(Py_None); resultobj = Py_None;
11740 return resultobj;
11741 fail:
11742 return NULL;
11743}
11744
11745
11746static PyObject *_wrap_Event_SetEventType(PyObject *self, PyObject *args, PyObject *kwargs) {
11747 PyObject *resultobj;
11748 wxEvent *arg1 = (wxEvent *) 0 ;
11749 wxEventType arg2 ;
11750 PyObject * obj0 = 0 ;
8edf1c75 11751 PyObject * obj1 = 0 ;
d14a1e28
RD
11752 char *kwnames[] = {
11753 (char *) "self",(char *) "typ", NULL
11754 };
11755
8edf1c75 11756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventType",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 11757 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
11758 {
11759 arg2 = (wxEventType) SWIG_PyObj_AsInt(obj1);
11760 if (PyErr_Occurred()) SWIG_fail;
11761 }
d14a1e28
RD
11762 {
11763 PyThreadState* __tstate = wxPyBeginAllowThreads();
11764 (arg1)->SetEventType(arg2);
11765
11766 wxPyEndAllowThreads(__tstate);
11767 if (PyErr_Occurred()) SWIG_fail;
11768 }
11769 Py_INCREF(Py_None); resultobj = Py_None;
11770 return resultobj;
11771 fail:
11772 return NULL;
11773}
11774
11775
11776static PyObject *_wrap_Event_GetEventType(PyObject *self, PyObject *args, PyObject *kwargs) {
11777 PyObject *resultobj;
11778 wxEvent *arg1 = (wxEvent *) 0 ;
11779 wxEventType result;
11780 PyObject * obj0 = 0 ;
11781 char *kwnames[] = {
11782 (char *) "self", NULL
11783 };
11784
11785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventType",kwnames,&obj0)) goto fail;
11786 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11787 {
11788 PyThreadState* __tstate = wxPyBeginAllowThreads();
11789 result = (wxEventType)((wxEvent const *)arg1)->GetEventType();
11790
11791 wxPyEndAllowThreads(__tstate);
11792 if (PyErr_Occurred()) SWIG_fail;
11793 }
8edf1c75 11794 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
11795 return resultobj;
11796 fail:
11797 return NULL;
11798}
11799
11800
11801static PyObject *_wrap_Event_GetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) {
11802 PyObject *resultobj;
11803 wxEvent *arg1 = (wxEvent *) 0 ;
11804 wxObject *result;
11805 PyObject * obj0 = 0 ;
11806 char *kwnames[] = {
11807 (char *) "self", NULL
11808 };
11809
11810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventObject",kwnames,&obj0)) goto fail;
11811 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11812 {
11813 PyThreadState* __tstate = wxPyBeginAllowThreads();
11814 result = (wxObject *)((wxEvent const *)arg1)->GetEventObject();
11815
11816 wxPyEndAllowThreads(__tstate);
11817 if (PyErr_Occurred()) SWIG_fail;
11818 }
11819 {
11820 resultobj = wxPyMake_wxObject(result);
11821 }
11822 return resultobj;
11823 fail:
11824 return NULL;
11825}
11826
11827
11828static PyObject *_wrap_Event_SetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) {
11829 PyObject *resultobj;
11830 wxEvent *arg1 = (wxEvent *) 0 ;
11831 wxObject *arg2 = (wxObject *) 0 ;
11832 PyObject * obj0 = 0 ;
11833 PyObject * obj1 = 0 ;
11834 char *kwnames[] = {
11835 (char *) "self",(char *) "obj", NULL
11836 };
11837
11838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventObject",kwnames,&obj0,&obj1)) goto fail;
11839 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11840 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11841 {
11842 PyThreadState* __tstate = wxPyBeginAllowThreads();
11843 (arg1)->SetEventObject(arg2);
11844
11845 wxPyEndAllowThreads(__tstate);
11846 if (PyErr_Occurred()) SWIG_fail;
11847 }
11848 Py_INCREF(Py_None); resultobj = Py_None;
11849 return resultobj;
11850 fail:
11851 return NULL;
11852}
11853
11854
11855static PyObject *_wrap_Event_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
11856 PyObject *resultobj;
11857 wxEvent *arg1 = (wxEvent *) 0 ;
11858 long result;
11859 PyObject * obj0 = 0 ;
11860 char *kwnames[] = {
11861 (char *) "self", NULL
11862 };
11863
11864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetTimestamp",kwnames,&obj0)) goto fail;
11865 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11866 {
11867 PyThreadState* __tstate = wxPyBeginAllowThreads();
11868 result = (long)((wxEvent const *)arg1)->GetTimestamp();
11869
11870 wxPyEndAllowThreads(__tstate);
11871 if (PyErr_Occurred()) SWIG_fail;
11872 }
8edf1c75 11873 resultobj = SWIG_PyObj_FromLong((long)result);
d14a1e28
RD
11874 return resultobj;
11875 fail:
11876 return NULL;
11877}
11878
11879
11880static PyObject *_wrap_Event_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
11881 PyObject *resultobj;
11882 wxEvent *arg1 = (wxEvent *) 0 ;
11883 long arg2 = (long) 0 ;
11884 PyObject * obj0 = 0 ;
8edf1c75 11885 PyObject * obj1 = 0 ;
d14a1e28
RD
11886 char *kwnames[] = {
11887 (char *) "self",(char *) "ts", NULL
11888 };
11889
8edf1c75 11890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_SetTimestamp",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 11891 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
11892 if (obj1) {
11893 {
11894 arg2 = (long) SWIG_PyObj_AsLong(obj1);
11895 if (PyErr_Occurred()) SWIG_fail;
11896 }
11897 }
d14a1e28
RD
11898 {
11899 PyThreadState* __tstate = wxPyBeginAllowThreads();
11900 (arg1)->SetTimestamp(arg2);
11901
11902 wxPyEndAllowThreads(__tstate);
11903 if (PyErr_Occurred()) SWIG_fail;
11904 }
11905 Py_INCREF(Py_None); resultobj = Py_None;
11906 return resultobj;
11907 fail:
11908 return NULL;
11909}
11910
11911
11912static PyObject *_wrap_Event_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
11913 PyObject *resultobj;
11914 wxEvent *arg1 = (wxEvent *) 0 ;
11915 int result;
11916 PyObject * obj0 = 0 ;
11917 char *kwnames[] = {
11918 (char *) "self", NULL
11919 };
11920
11921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetId",kwnames,&obj0)) goto fail;
11922 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11923 {
11924 PyThreadState* __tstate = wxPyBeginAllowThreads();
11925 result = (int)((wxEvent const *)arg1)->GetId();
11926
11927 wxPyEndAllowThreads(__tstate);
11928 if (PyErr_Occurred()) SWIG_fail;
11929 }
8edf1c75 11930 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
11931 return resultobj;
11932 fail:
11933 return NULL;
11934}
11935
11936
11937static PyObject *_wrap_Event_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
11938 PyObject *resultobj;
11939 wxEvent *arg1 = (wxEvent *) 0 ;
11940 int arg2 ;
11941 PyObject * obj0 = 0 ;
8edf1c75 11942 PyObject * obj1 = 0 ;
d14a1e28
RD
11943 char *kwnames[] = {
11944 (char *) "self",(char *) "Id", NULL
11945 };
11946
8edf1c75 11947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetId",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 11948 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
11949 {
11950 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11951 if (PyErr_Occurred()) SWIG_fail;
11952 }
d14a1e28
RD
11953 {
11954 PyThreadState* __tstate = wxPyBeginAllowThreads();
11955 (arg1)->SetId(arg2);
11956
11957 wxPyEndAllowThreads(__tstate);
11958 if (PyErr_Occurred()) SWIG_fail;
11959 }
11960 Py_INCREF(Py_None); resultobj = Py_None;
11961 return resultobj;
11962 fail:
11963 return NULL;
11964}
11965
11966
11967static PyObject *_wrap_Event_IsCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
11968 PyObject *resultobj;
11969 wxEvent *arg1 = (wxEvent *) 0 ;
11970 bool result;
11971 PyObject * obj0 = 0 ;
11972 char *kwnames[] = {
11973 (char *) "self", NULL
11974 };
11975
11976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_IsCommandEvent",kwnames,&obj0)) goto fail;
11977 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11978 {
11979 PyThreadState* __tstate = wxPyBeginAllowThreads();
11980 result = (bool)((wxEvent const *)arg1)->IsCommandEvent();
11981
11982 wxPyEndAllowThreads(__tstate);
11983 if (PyErr_Occurred()) SWIG_fail;
11984 }
4e760a36 11985 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
11986 return resultobj;
11987 fail:
11988 return NULL;
11989}
11990
11991
11992static PyObject *_wrap_Event_Skip(PyObject *self, PyObject *args, PyObject *kwargs) {
11993 PyObject *resultobj;
11994 wxEvent *arg1 = (wxEvent *) 0 ;
423f194a 11995 bool arg2 = (bool) True ;
d14a1e28
RD
11996 PyObject * obj0 = 0 ;
11997 PyObject * obj1 = 0 ;
11998 char *kwnames[] = {
11999 (char *) "self",(char *) "skip", NULL
12000 };
12001
12002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_Skip",kwnames,&obj0,&obj1)) goto fail;
12003 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12004 if (obj1) {
83448d71 12005 {
8edf1c75 12006 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
12007 if (PyErr_Occurred()) SWIG_fail;
12008 }
d14a1e28
RD
12009 }
12010 {
12011 PyThreadState* __tstate = wxPyBeginAllowThreads();
12012 (arg1)->Skip(arg2);
12013
12014 wxPyEndAllowThreads(__tstate);
12015 if (PyErr_Occurred()) SWIG_fail;
12016 }
12017 Py_INCREF(Py_None); resultobj = Py_None;
12018 return resultobj;
12019 fail:
12020 return NULL;
12021}
12022
12023
12024static PyObject *_wrap_Event_GetSkipped(PyObject *self, PyObject *args, PyObject *kwargs) {
12025 PyObject *resultobj;
12026 wxEvent *arg1 = (wxEvent *) 0 ;
12027 bool result;
12028 PyObject * obj0 = 0 ;
12029 char *kwnames[] = {
12030 (char *) "self", NULL
12031 };
12032
12033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetSkipped",kwnames,&obj0)) goto fail;
12034 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12035 {
12036 PyThreadState* __tstate = wxPyBeginAllowThreads();
12037 result = (bool)((wxEvent const *)arg1)->GetSkipped();
12038
12039 wxPyEndAllowThreads(__tstate);
12040 if (PyErr_Occurred()) SWIG_fail;
12041 }
4e760a36 12042 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
12043 return resultobj;
12044 fail:
12045 return NULL;
12046}
12047
12048
12049static PyObject *_wrap_Event_ShouldPropagate(PyObject *self, PyObject *args, PyObject *kwargs) {
12050 PyObject *resultobj;
12051 wxEvent *arg1 = (wxEvent *) 0 ;
12052 bool result;
12053 PyObject * obj0 = 0 ;
12054 char *kwnames[] = {
12055 (char *) "self", NULL
12056 };
12057
12058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_ShouldPropagate",kwnames,&obj0)) goto fail;
12059 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12060 {
12061 PyThreadState* __tstate = wxPyBeginAllowThreads();
12062 result = (bool)((wxEvent const *)arg1)->ShouldPropagate();
12063
12064 wxPyEndAllowThreads(__tstate);
12065 if (PyErr_Occurred()) SWIG_fail;
12066 }
4e760a36 12067 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
12068 return resultobj;
12069 fail:
12070 return NULL;
12071}
12072
12073
12074static PyObject *_wrap_Event_StopPropagation(PyObject *self, PyObject *args, PyObject *kwargs) {
12075 PyObject *resultobj;
12076 wxEvent *arg1 = (wxEvent *) 0 ;
12077 int result;
12078 PyObject * obj0 = 0 ;
12079 char *kwnames[] = {
12080 (char *) "self", NULL
12081 };
12082
12083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_StopPropagation",kwnames,&obj0)) goto fail;
12084 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12085 {
12086 PyThreadState* __tstate = wxPyBeginAllowThreads();
12087 result = (int)(arg1)->StopPropagation();
12088
12089 wxPyEndAllowThreads(__tstate);
12090 if (PyErr_Occurred()) SWIG_fail;
12091 }
8edf1c75 12092 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
12093 return resultobj;
12094 fail:
12095 return NULL;
12096}
12097
12098
12099static PyObject *_wrap_Event_ResumePropagation(PyObject *self, PyObject *args, PyObject *kwargs) {
12100 PyObject *resultobj;
12101 wxEvent *arg1 = (wxEvent *) 0 ;
12102 int arg2 ;
12103 PyObject * obj0 = 0 ;
8edf1c75 12104 PyObject * obj1 = 0 ;
d14a1e28
RD
12105 char *kwnames[] = {
12106 (char *) "self",(char *) "propagationLevel", NULL
12107 };
12108
8edf1c75 12109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_ResumePropagation",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 12110 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
12111 {
12112 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12113 if (PyErr_Occurred()) SWIG_fail;
12114 }
d14a1e28
RD
12115 {
12116 PyThreadState* __tstate = wxPyBeginAllowThreads();
12117 (arg1)->ResumePropagation(arg2);
12118
12119 wxPyEndAllowThreads(__tstate);
12120 if (PyErr_Occurred()) SWIG_fail;
12121 }
12122 Py_INCREF(Py_None); resultobj = Py_None;
12123 return resultobj;
12124 fail:
12125 return NULL;
12126}
12127
12128
12129static PyObject *_wrap_Event_Clone(PyObject *self, PyObject *args, PyObject *kwargs) {
12130 PyObject *resultobj;
12131 wxEvent *arg1 = (wxEvent *) 0 ;
12132 wxEvent *result;
12133 PyObject * obj0 = 0 ;
12134 char *kwnames[] = {
12135 (char *) "self", NULL
12136 };
12137
12138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_Clone",kwnames,&obj0)) goto fail;
12139 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12140 {
12141 PyThreadState* __tstate = wxPyBeginAllowThreads();
12142 result = (wxEvent *)(arg1)->Clone();
12143
12144 wxPyEndAllowThreads(__tstate);
12145 if (PyErr_Occurred()) SWIG_fail;
12146 }
12147 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEvent, 0);
12148 return resultobj;
12149 fail:
12150 return NULL;
12151}
12152
12153
12154static PyObject * Event_swigregister(PyObject *self, PyObject *args) {
12155 PyObject *obj;
12156 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12157 SWIG_TypeClientData(SWIGTYPE_p_wxEvent, obj);
12158 Py_INCREF(obj);
12159 return Py_BuildValue((char *)"");
12160}
12161static PyObject *_wrap_new_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
12162 PyObject *resultobj;
12163 wxEvent *arg1 = 0 ;
12164 wxPropagationDisabler *result;
12165 PyObject * obj0 = 0 ;
12166 char *kwnames[] = {
12167 (char *) "event", NULL
12168 };
12169
12170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagationDisabler",kwnames,&obj0)) goto fail;
12171 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12172 if (arg1 == NULL) {
12173 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12174 }
12175 {
12176 PyThreadState* __tstate = wxPyBeginAllowThreads();
12177 result = (wxPropagationDisabler *)new wxPropagationDisabler(*arg1);
12178
12179 wxPyEndAllowThreads(__tstate);
12180 if (PyErr_Occurred()) SWIG_fail;
12181 }
12182 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPropagationDisabler, 1);
12183 return resultobj;
12184 fail:
12185 return NULL;
12186}
12187
12188
12189static PyObject *_wrap_delete_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
12190 PyObject *resultobj;
12191 wxPropagationDisabler *arg1 = (wxPropagationDisabler *) 0 ;
12192 PyObject * obj0 = 0 ;
12193 char *kwnames[] = {
12194 (char *) "self", NULL
12195 };
12196
12197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagationDisabler",kwnames,&obj0)) goto fail;
12198 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPropagationDisabler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12199 {
12200 PyThreadState* __tstate = wxPyBeginAllowThreads();
12201 delete arg1;
12202
12203 wxPyEndAllowThreads(__tstate);
12204 if (PyErr_Occurred()) SWIG_fail;
12205 }
12206 Py_INCREF(Py_None); resultobj = Py_None;
12207 return resultobj;
12208 fail:
12209 return NULL;
12210}
12211
12212
12213static PyObject * PropagationDisabler_swigregister(PyObject *self, PyObject *args) {
12214 PyObject *obj;
12215 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12216 SWIG_TypeClientData(SWIGTYPE_p_wxPropagationDisabler, obj);
12217 Py_INCREF(obj);
12218 return Py_BuildValue((char *)"");
12219}
12220static PyObject *_wrap_new_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) {
12221 PyObject *resultobj;
12222 wxEvent *arg1 = 0 ;
12223 wxPropagateOnce *result;
12224 PyObject * obj0 = 0 ;
12225 char *kwnames[] = {
12226 (char *) "event", NULL
12227 };
12228
12229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagateOnce",kwnames,&obj0)) goto fail;
12230 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12231 if (arg1 == NULL) {
12232 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12233 }
12234 {
12235 PyThreadState* __tstate = wxPyBeginAllowThreads();
12236 result = (wxPropagateOnce *)new wxPropagateOnce(*arg1);
12237
12238 wxPyEndAllowThreads(__tstate);
12239 if (PyErr_Occurred()) SWIG_fail;
12240 }
12241 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPropagateOnce, 1);
12242 return resultobj;
12243 fail:
12244 return NULL;
12245}
12246
12247
12248static PyObject *_wrap_delete_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) {
12249 PyObject *resultobj;
12250 wxPropagateOnce *arg1 = (wxPropagateOnce *) 0 ;
12251 PyObject * obj0 = 0 ;
12252 char *kwnames[] = {
12253 (char *) "self", NULL
12254 };
12255
12256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagateOnce",kwnames,&obj0)) goto fail;
12257 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPropagateOnce,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12258 {
12259 PyThreadState* __tstate = wxPyBeginAllowThreads();
12260 delete arg1;
12261
12262 wxPyEndAllowThreads(__tstate);
12263 if (PyErr_Occurred()) SWIG_fail;
12264 }
12265 Py_INCREF(Py_None); resultobj = Py_None;
12266 return resultobj;
12267 fail:
12268 return NULL;
12269}
12270
12271
12272static PyObject * PropagateOnce_swigregister(PyObject *self, PyObject *args) {
12273 PyObject *obj;
12274 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12275 SWIG_TypeClientData(SWIGTYPE_p_wxPropagateOnce, obj);
12276 Py_INCREF(obj);
12277 return Py_BuildValue((char *)"");
12278}
12279static PyObject *_wrap_new_CommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
12280 PyObject *resultobj;
12281 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
12282 int arg2 = (int) 0 ;
12283 wxCommandEvent *result;
8edf1c75
RD
12284 PyObject * obj0 = 0 ;
12285 PyObject * obj1 = 0 ;
d14a1e28
RD
12286 char *kwnames[] = {
12287 (char *) "commandType",(char *) "winid", NULL
12288 };
12289
8edf1c75
RD
12290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CommandEvent",kwnames,&obj0,&obj1)) goto fail;
12291 if (obj0) {
12292 {
12293 arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0);
12294 if (PyErr_Occurred()) SWIG_fail;
12295 }
12296 }
12297 if (obj1) {
12298 {
12299 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12300 if (PyErr_Occurred()) SWIG_fail;
12301 }
12302 }
d14a1e28
RD
12303 {
12304 PyThreadState* __tstate = wxPyBeginAllowThreads();
12305 result = (wxCommandEvent *)new wxCommandEvent(arg1,arg2);
12306
12307 wxPyEndAllowThreads(__tstate);
12308 if (PyErr_Occurred()) SWIG_fail;
12309 }
12310 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCommandEvent, 1);
12311 return resultobj;
12312 fail:
12313 return NULL;
12314}
12315
12316
12317static PyObject *_wrap_CommandEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
12318 PyObject *resultobj;
12319 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12320 int result;
12321 PyObject * obj0 = 0 ;
12322 char *kwnames[] = {
12323 (char *) "self", NULL
12324 };
12325
12326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetSelection",kwnames,&obj0)) goto fail;
12327 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12328 {
12329 PyThreadState* __tstate = wxPyBeginAllowThreads();
12330 result = (int)((wxCommandEvent const *)arg1)->GetSelection();
12331
12332 wxPyEndAllowThreads(__tstate);
12333 if (PyErr_Occurred()) SWIG_fail;
12334 }
8edf1c75 12335 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
12336 return resultobj;
12337 fail:
12338 return NULL;
12339}
12340
12341
12342static PyObject *_wrap_CommandEvent_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
12343 PyObject *resultobj;
12344 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12345 wxString *arg2 = 0 ;
423f194a 12346 bool temp2 = False ;
d14a1e28
RD
12347 PyObject * obj0 = 0 ;
12348 PyObject * obj1 = 0 ;
12349 char *kwnames[] = {
12350 (char *) "self",(char *) "s", NULL
12351 };
12352
12353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetString",kwnames,&obj0,&obj1)) goto fail;
12354 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12355 {
12356 arg2 = wxString_in_helper(obj1);
12357 if (arg2 == NULL) SWIG_fail;
423f194a 12358 temp2 = True;
d14a1e28
RD
12359 }
12360 {
12361 PyThreadState* __tstate = wxPyBeginAllowThreads();
12362 (arg1)->SetString((wxString const &)*arg2);
12363
12364 wxPyEndAllowThreads(__tstate);
12365 if (PyErr_Occurred()) SWIG_fail;
12366 }
12367 Py_INCREF(Py_None); resultobj = Py_None;
12368 {
12369 if (temp2)
12370 delete arg2;
12371 }
12372 return resultobj;
12373 fail:
12374 {
12375 if (temp2)
12376 delete arg2;
12377 }
12378 return NULL;
12379}
12380
12381
12382static PyObject *_wrap_CommandEvent_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
12383 PyObject *resultobj;
12384 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12385 wxString result;
12386 PyObject * obj0 = 0 ;
12387 char *kwnames[] = {
12388 (char *) "self", NULL
12389 };
12390
12391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetString",kwnames,&obj0)) goto fail;
12392 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12393 {
12394 PyThreadState* __tstate = wxPyBeginAllowThreads();
12395 result = ((wxCommandEvent const *)arg1)->GetString();
12396
12397 wxPyEndAllowThreads(__tstate);
12398 if (PyErr_Occurred()) SWIG_fail;
12399 }
12400 {
12401#if wxUSE_UNICODE
12402 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12403#else
12404 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12405#endif
12406 }
12407 return resultobj;
12408 fail:
12409 return NULL;
12410}
12411
12412
12413static PyObject *_wrap_CommandEvent_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
12414 PyObject *resultobj;
12415 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12416 bool result;
12417 PyObject * obj0 = 0 ;
12418 char *kwnames[] = {
12419 (char *) "self", NULL
12420 };
12421
12422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsChecked",kwnames,&obj0)) goto fail;
12423 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12424 {
12425 PyThreadState* __tstate = wxPyBeginAllowThreads();
12426 result = (bool)((wxCommandEvent const *)arg1)->IsChecked();
12427
12428 wxPyEndAllowThreads(__tstate);
12429 if (PyErr_Occurred()) SWIG_fail;
12430 }
4e760a36 12431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
12432 return resultobj;
12433 fail:
12434 return NULL;
12435}
12436
12437
12438static PyObject *_wrap_CommandEvent_IsSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
12439 PyObject *resultobj;
12440 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12441 bool result;
12442 PyObject * obj0 = 0 ;
12443 char *kwnames[] = {
12444 (char *) "self", NULL
12445 };
12446
12447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsSelection",kwnames,&obj0)) goto fail;
12448 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12449 {
12450 PyThreadState* __tstate = wxPyBeginAllowThreads();
12451 result = (bool)((wxCommandEvent const *)arg1)->IsSelection();
12452
12453 wxPyEndAllowThreads(__tstate);
12454 if (PyErr_Occurred()) SWIG_fail;
12455 }
4e760a36 12456 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
12457 return resultobj;
12458 fail:
12459 return NULL;
12460}
12461
12462
12463static PyObject *_wrap_CommandEvent_SetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) {
12464 PyObject *resultobj;
12465 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12466 long arg2 ;
12467 PyObject * obj0 = 0 ;
8edf1c75 12468 PyObject * obj1 = 0 ;
d14a1e28
RD
12469 char *kwnames[] = {
12470 (char *) "self",(char *) "extraLong", NULL
12471 };
12472
8edf1c75 12473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetExtraLong",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 12474 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
12475 {
12476 arg2 = (long) SWIG_PyObj_AsLong(obj1);
12477 if (PyErr_Occurred()) SWIG_fail;
12478 }
d14a1e28
RD
12479 {
12480 PyThreadState* __tstate = wxPyBeginAllowThreads();
12481 (arg1)->SetExtraLong(arg2);
12482
12483 wxPyEndAllowThreads(__tstate);
12484 if (PyErr_Occurred()) SWIG_fail;
12485 }
12486 Py_INCREF(Py_None); resultobj = Py_None;
12487 return resultobj;
12488 fail:
12489 return NULL;
12490}
12491
12492
12493static PyObject *_wrap_CommandEvent_GetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) {
12494 PyObject *resultobj;
12495 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12496 long result;
12497 PyObject * obj0 = 0 ;
12498 char *kwnames[] = {
12499 (char *) "self", NULL
12500 };
12501
12502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetExtraLong",kwnames,&obj0)) goto fail;
12503 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12504 {
12505 PyThreadState* __tstate = wxPyBeginAllowThreads();
12506 result = (long)((wxCommandEvent const *)arg1)->GetExtraLong();
12507
12508 wxPyEndAllowThreads(__tstate);
12509 if (PyErr_Occurred()) SWIG_fail;
12510 }
8edf1c75 12511 resultobj = SWIG_PyObj_FromLong((long)result);
d14a1e28
RD
12512 return resultobj;
12513 fail:
12514 return NULL;
12515}
12516
12517
12518static PyObject *_wrap_CommandEvent_SetInt(PyObject *self, PyObject *args, PyObject *kwargs) {
12519 PyObject *resultobj;
12520 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12521 int arg2 ;
12522 PyObject * obj0 = 0 ;
8edf1c75 12523 PyObject * obj1 = 0 ;
d14a1e28
RD
12524 char *kwnames[] = {
12525 (char *) "self",(char *) "i", NULL
12526 };
12527
8edf1c75 12528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetInt",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 12529 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
12530 {
12531 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12532 if (PyErr_Occurred()) SWIG_fail;
12533 }
d14a1e28
RD
12534 {
12535 PyThreadState* __tstate = wxPyBeginAllowThreads();
12536 (arg1)->SetInt(arg2);
12537
12538 wxPyEndAllowThreads(__tstate);
12539 if (PyErr_Occurred()) SWIG_fail;
12540 }
12541 Py_INCREF(Py_None); resultobj = Py_None;
12542 return resultobj;
12543 fail:
12544 return NULL;
12545}
12546
12547
12548static PyObject *_wrap_CommandEvent_GetInt(PyObject *self, PyObject *args, PyObject *kwargs) {
12549 PyObject *resultobj;
12550 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12551 long result;
12552 PyObject * obj0 = 0 ;
12553 char *kwnames[] = {
12554 (char *) "self", NULL
12555 };
12556
12557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetInt",kwnames,&obj0)) goto fail;
12558 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12559 {
12560 PyThreadState* __tstate = wxPyBeginAllowThreads();
12561 result = (long)((wxCommandEvent const *)arg1)->GetInt();
12562
12563 wxPyEndAllowThreads(__tstate);
12564 if (PyErr_Occurred()) SWIG_fail;
12565 }
8edf1c75 12566 resultobj = SWIG_PyObj_FromLong((long)result);
d14a1e28
RD
12567 return resultobj;
12568 fail:
12569 return NULL;
12570}
12571
12572
12573static PyObject *_wrap_CommandEvent_Clone(PyObject *self, PyObject *args, PyObject *kwargs) {
12574 PyObject *resultobj;
12575 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12576 wxEvent *result;
12577 PyObject * obj0 = 0 ;
12578 char *kwnames[] = {
12579 (char *) "self", NULL
12580 };
12581
12582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_Clone",kwnames,&obj0)) goto fail;
12583 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12584 {
12585 PyThreadState* __tstate = wxPyBeginAllowThreads();
12586 result = (wxEvent *)((wxCommandEvent const *)arg1)->Clone();
12587
12588 wxPyEndAllowThreads(__tstate);
12589 if (PyErr_Occurred()) SWIG_fail;
12590 }
12591 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEvent, 0);
12592 return resultobj;
12593 fail:
12594 return NULL;
12595}
12596
12597
12598static PyObject * CommandEvent_swigregister(PyObject *self, PyObject *args) {
12599 PyObject *obj;
12600 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12601 SWIG_TypeClientData(SWIGTYPE_p_wxCommandEvent, obj);
12602 Py_INCREF(obj);
12603 return Py_BuildValue((char *)"");
12604}
12605static PyObject *_wrap_new_NotifyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
12606 PyObject *resultobj;
12607 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
12608 int arg2 = (int) 0 ;
12609 wxNotifyEvent *result;
8edf1c75
RD
12610 PyObject * obj0 = 0 ;
12611 PyObject * obj1 = 0 ;
d14a1e28
RD
12612 char *kwnames[] = {
12613 (char *) "commandType",(char *) "winid", NULL
12614 };
12615
8edf1c75
RD
12616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_NotifyEvent",kwnames,&obj0,&obj1)) goto fail;
12617 if (obj0) {
12618 {
12619 arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0);
12620 if (PyErr_Occurred()) SWIG_fail;
12621 }
12622 }
12623 if (obj1) {
12624 {
12625 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12626 if (PyErr_Occurred()) SWIG_fail;
12627 }
12628 }
d14a1e28
RD
12629 {
12630 PyThreadState* __tstate = wxPyBeginAllowThreads();
12631 result = (wxNotifyEvent *)new wxNotifyEvent(arg1,arg2);
12632
12633 wxPyEndAllowThreads(__tstate);
12634 if (PyErr_Occurred()) SWIG_fail;
12635 }
12636 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNotifyEvent, 1);
12637 return resultobj;
12638 fail:
12639 return NULL;
12640}
12641
12642
12643static PyObject *_wrap_NotifyEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) {
12644 PyObject *resultobj;
12645 wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ;
12646 PyObject * obj0 = 0 ;
12647 char *kwnames[] = {
12648 (char *) "self", NULL
12649 };
12650
12651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Veto",kwnames,&obj0)) goto fail;
12652 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotifyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12653 {
12654 PyThreadState* __tstate = wxPyBeginAllowThreads();
12655 (arg1)->Veto();
12656
12657 wxPyEndAllowThreads(__tstate);
12658 if (PyErr_Occurred()) SWIG_fail;
12659 }
12660 Py_INCREF(Py_None); resultobj = Py_None;
12661 return resultobj;
12662 fail:
12663 return NULL;
12664}
12665
12666
12667static PyObject *_wrap_NotifyEvent_Allow(PyObject *self, PyObject *args, PyObject *kwargs) {
12668 PyObject *resultobj;
12669 wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ;
12670 PyObject * obj0 = 0 ;
12671 char *kwnames[] = {
12672 (char *) "self", NULL
12673 };
12674
12675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Allow",kwnames,&obj0)) goto fail;
12676 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotifyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12677 {
12678 PyThreadState* __tstate = wxPyBeginAllowThreads();
12679 (arg1)->Allow();
12680
12681 wxPyEndAllowThreads(__tstate);
12682 if (PyErr_Occurred()) SWIG_fail;
12683 }
12684 Py_INCREF(Py_None); resultobj = Py_None;
12685 return resultobj;
12686 fail:
12687 return NULL;
12688}
12689
12690
12691static PyObject *_wrap_NotifyEvent_IsAllowed(PyObject *self, PyObject *args, PyObject *kwargs) {
12692 PyObject *resultobj;
12693 wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ;
12694 bool result;
12695 PyObject * obj0 = 0 ;
12696 char *kwnames[] = {
12697 (char *) "self", NULL
12698 };
12699
12700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_IsAllowed",kwnames,&obj0)) goto fail;
12701 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotifyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12702 {
12703 PyThreadState* __tstate = wxPyBeginAllowThreads();
12704 result = (bool)(arg1)->IsAllowed();
12705
12706 wxPyEndAllowThreads(__tstate);
12707 if (PyErr_Occurred()) SWIG_fail;
12708 }
4e760a36 12709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
12710 return resultobj;
12711 fail:
12712 return NULL;
12713}
12714
12715
12716static PyObject * NotifyEvent_swigregister(PyObject *self, PyObject *args) {
12717 PyObject *obj;
12718 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12719 SWIG_TypeClientData(SWIGTYPE_p_wxNotifyEvent, obj);
12720 Py_INCREF(obj);
12721 return Py_BuildValue((char *)"");
12722}
12723static PyObject *_wrap_new_ScrollEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
12724 PyObject *resultobj;
12725 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
12726 int arg2 = (int) 0 ;
12727 int arg3 = (int) 0 ;
12728 int arg4 = (int) 0 ;
12729 wxScrollEvent *result;
8edf1c75
RD
12730 PyObject * obj0 = 0 ;
12731 PyObject * obj1 = 0 ;
12732 PyObject * obj2 = 0 ;
12733 PyObject * obj3 = 0 ;
d14a1e28
RD
12734 char *kwnames[] = {
12735 (char *) "commandType",(char *) "winid",(char *) "pos",(char *) "orient", NULL
12736 };
12737
8edf1c75
RD
12738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ScrollEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12739 if (obj0) {
12740 {
12741 arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0);
12742 if (PyErr_Occurred()) SWIG_fail;
12743 }
12744 }
12745 if (obj1) {
12746 {
12747 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12748 if (PyErr_Occurred()) SWIG_fail;
12749 }
12750 }
12751 if (obj2) {
12752 {
12753 arg3 = (int) SWIG_PyObj_AsInt(obj2);
12754 if (PyErr_Occurred()) SWIG_fail;
12755 }
12756 }
12757 if (obj3) {
12758 {
12759 arg4 = (int) SWIG_PyObj_AsInt(obj3);
12760 if (PyErr_Occurred()) SWIG_fail;
12761 }
12762 }
d14a1e28
RD
12763 {
12764 PyThreadState* __tstate = wxPyBeginAllowThreads();
12765 result = (wxScrollEvent *)new wxScrollEvent(arg1,arg2,arg3,arg4);
12766
12767 wxPyEndAllowThreads(__tstate);
12768 if (PyErr_Occurred()) SWIG_fail;
12769 }
12770 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollEvent, 1);
12771 return resultobj;
12772 fail:
12773 return NULL;
12774}
12775
12776
12777static PyObject *_wrap_ScrollEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
12778 PyObject *resultobj;
12779 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
12780 int result;
12781 PyObject * obj0 = 0 ;
12782 char *kwnames[] = {
12783 (char *) "self", NULL
12784 };
12785
12786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetOrientation",kwnames,&obj0)) goto fail;
12787 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12788 {
12789 PyThreadState* __tstate = wxPyBeginAllowThreads();
12790 result = (int)((wxScrollEvent const *)arg1)->GetOrientation();
12791
12792 wxPyEndAllowThreads(__tstate);
12793 if (PyErr_Occurred()) SWIG_fail;
12794 }
8edf1c75 12795 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
12796 return resultobj;
12797 fail:
12798 return NULL;
12799}
12800
12801
12802static PyObject *_wrap_ScrollEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
12803 PyObject *resultobj;
12804 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
12805 int result;
12806 PyObject * obj0 = 0 ;
12807 char *kwnames[] = {
12808 (char *) "self", NULL
12809 };
12810
12811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetPosition",kwnames,&obj0)) goto fail;
12812 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12813 {
12814 PyThreadState* __tstate = wxPyBeginAllowThreads();
12815 result = (int)((wxScrollEvent const *)arg1)->GetPosition();
12816
12817 wxPyEndAllowThreads(__tstate);
12818 if (PyErr_Occurred()) SWIG_fail;
12819 }
8edf1c75 12820 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
12821 return resultobj;
12822 fail:
12823 return NULL;
12824}
12825
12826
12827static PyObject *_wrap_ScrollEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
12828 PyObject *resultobj;
12829 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
12830 int arg2 ;
12831 PyObject * obj0 = 0 ;
8edf1c75 12832 PyObject * obj1 = 0 ;
d14a1e28
RD
12833 char *kwnames[] = {
12834 (char *) "self",(char *) "orient", NULL
12835 };
12836
8edf1c75 12837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 12838 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
12839 {
12840 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12841 if (PyErr_Occurred()) SWIG_fail;
12842 }
d14a1e28
RD
12843 {
12844 PyThreadState* __tstate = wxPyBeginAllowThreads();
12845 (arg1)->SetOrientation(arg2);
12846
12847 wxPyEndAllowThreads(__tstate);
12848 if (PyErr_Occurred()) SWIG_fail;
12849 }
12850 Py_INCREF(Py_None); resultobj = Py_None;
12851 return resultobj;
12852 fail:
12853 return NULL;
12854}
12855
12856
12857static PyObject *_wrap_ScrollEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
12858 PyObject *resultobj;
12859 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
12860 int arg2 ;
12861 PyObject * obj0 = 0 ;
8edf1c75 12862 PyObject * obj1 = 0 ;
d14a1e28
RD
12863 char *kwnames[] = {
12864 (char *) "self",(char *) "pos", NULL
12865 };
12866
8edf1c75 12867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 12868 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
12869 {
12870 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12871 if (PyErr_Occurred()) SWIG_fail;
12872 }
d14a1e28
RD
12873 {
12874 PyThreadState* __tstate = wxPyBeginAllowThreads();
12875 (arg1)->SetPosition(arg2);
12876
12877 wxPyEndAllowThreads(__tstate);
12878 if (PyErr_Occurred()) SWIG_fail;
12879 }
12880 Py_INCREF(Py_None); resultobj = Py_None;
12881 return resultobj;
12882 fail:
12883 return NULL;
12884}
12885
12886
12887static PyObject * ScrollEvent_swigregister(PyObject *self, PyObject *args) {
12888 PyObject *obj;
12889 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12890 SWIG_TypeClientData(SWIGTYPE_p_wxScrollEvent, obj);
12891 Py_INCREF(obj);
12892 return Py_BuildValue((char *)"");
12893}
12894static PyObject *_wrap_new_ScrollWinEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
12895 PyObject *resultobj;
12896 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
12897 int arg2 = (int) 0 ;
12898 int arg3 = (int) 0 ;
12899 wxScrollWinEvent *result;
8edf1c75
RD
12900 PyObject * obj0 = 0 ;
12901 PyObject * obj1 = 0 ;
12902 PyObject * obj2 = 0 ;
d14a1e28
RD
12903 char *kwnames[] = {
12904 (char *) "commandType",(char *) "pos",(char *) "orient", NULL
12905 };
12906
8edf1c75
RD
12907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ScrollWinEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
12908 if (obj0) {
12909 {
12910 arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0);
12911 if (PyErr_Occurred()) SWIG_fail;
12912 }
12913 }
12914 if (obj1) {
12915 {
12916 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12917 if (PyErr_Occurred()) SWIG_fail;
12918 }
12919 }
12920 if (obj2) {
12921 {
12922 arg3 = (int) SWIG_PyObj_AsInt(obj2);
12923 if (PyErr_Occurred()) SWIG_fail;
12924 }
12925 }
d14a1e28
RD
12926 {
12927 PyThreadState* __tstate = wxPyBeginAllowThreads();
12928 result = (wxScrollWinEvent *)new wxScrollWinEvent(arg1,arg2,arg3);
12929
12930 wxPyEndAllowThreads(__tstate);
12931 if (PyErr_Occurred()) SWIG_fail;
12932 }
12933 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollWinEvent, 1);
12934 return resultobj;
12935 fail:
12936 return NULL;
12937}
12938
12939
12940static PyObject *_wrap_ScrollWinEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
12941 PyObject *resultobj;
12942 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
12943 int result;
12944 PyObject * obj0 = 0 ;
12945 char *kwnames[] = {
12946 (char *) "self", NULL
12947 };
12948
12949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetOrientation",kwnames,&obj0)) goto fail;
12950 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollWinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12951 {
12952 PyThreadState* __tstate = wxPyBeginAllowThreads();
12953 result = (int)((wxScrollWinEvent const *)arg1)->GetOrientation();
12954
12955 wxPyEndAllowThreads(__tstate);
12956 if (PyErr_Occurred()) SWIG_fail;
12957 }
8edf1c75 12958 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
12959 return resultobj;
12960 fail:
12961 return NULL;
12962}
12963
12964
12965static PyObject *_wrap_ScrollWinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
12966 PyObject *resultobj;
12967 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
12968 int result;
12969 PyObject * obj0 = 0 ;
12970 char *kwnames[] = {
12971 (char *) "self", NULL
12972 };
12973
12974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetPosition",kwnames,&obj0)) goto fail;
12975 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollWinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12976 {
12977 PyThreadState* __tstate = wxPyBeginAllowThreads();
12978 result = (int)((wxScrollWinEvent const *)arg1)->GetPosition();
12979
12980 wxPyEndAllowThreads(__tstate);
12981 if (PyErr_Occurred()) SWIG_fail;
12982 }
8edf1c75 12983 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
12984 return resultobj;
12985 fail:
12986 return NULL;
12987}
12988
12989
12990static PyObject *_wrap_ScrollWinEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
12991 PyObject *resultobj;
12992 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
12993 int arg2 ;
12994 PyObject * obj0 = 0 ;
8edf1c75 12995 PyObject * obj1 = 0 ;
d14a1e28
RD
12996 char *kwnames[] = {
12997 (char *) "self",(char *) "orient", NULL
12998 };
12999
8edf1c75 13000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 13001 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollWinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
13002 {
13003 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13004 if (PyErr_Occurred()) SWIG_fail;
13005 }
d14a1e28
RD
13006 {
13007 PyThreadState* __tstate = wxPyBeginAllowThreads();
13008 (arg1)->SetOrientation(arg2);
13009
13010 wxPyEndAllowThreads(__tstate);
13011 if (PyErr_Occurred()) SWIG_fail;
13012 }
13013 Py_INCREF(Py_None); resultobj = Py_None;
13014 return resultobj;
13015 fail:
13016 return NULL;
13017}
13018
13019
13020static PyObject *_wrap_ScrollWinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
13021 PyObject *resultobj;
13022 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
13023 int arg2 ;
13024 PyObject * obj0 = 0 ;
8edf1c75 13025 PyObject * obj1 = 0 ;
d14a1e28
RD
13026 char *kwnames[] = {
13027 (char *) "self",(char *) "pos", NULL
13028 };
13029
8edf1c75 13030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 13031 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollWinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
13032 {
13033 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13034 if (PyErr_Occurred()) SWIG_fail;
13035 }
d14a1e28
RD
13036 {
13037 PyThreadState* __tstate = wxPyBeginAllowThreads();
13038 (arg1)->SetPosition(arg2);
13039
13040 wxPyEndAllowThreads(__tstate);
13041 if (PyErr_Occurred()) SWIG_fail;
13042 }
13043 Py_INCREF(Py_None); resultobj = Py_None;
13044 return resultobj;
13045 fail:
13046 return NULL;
13047}
13048
13049
13050static PyObject * ScrollWinEvent_swigregister(PyObject *self, PyObject *args) {
13051 PyObject *obj;
13052 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13053 SWIG_TypeClientData(SWIGTYPE_p_wxScrollWinEvent, obj);
13054 Py_INCREF(obj);
13055 return Py_BuildValue((char *)"");
13056}
13057static PyObject *_wrap_new_MouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
13058 PyObject *resultobj;
13059 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
13060 wxMouseEvent *result;
8edf1c75 13061 PyObject * obj0 = 0 ;
d14a1e28
RD
13062 char *kwnames[] = {
13063 (char *) "mouseType", NULL
13064 };
13065
8edf1c75
RD
13066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MouseEvent",kwnames,&obj0)) goto fail;
13067 if (obj0) {
13068 {
13069 arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0);
13070 if (PyErr_Occurred()) SWIG_fail;
13071 }
13072 }
d14a1e28
RD
13073 {
13074 PyThreadState* __tstate = wxPyBeginAllowThreads();
13075 result = (wxMouseEvent *)new wxMouseEvent(arg1);
13076
13077 wxPyEndAllowThreads(__tstate);
13078 if (PyErr_Occurred()) SWIG_fail;
13079 }
13080 {
13081 resultobj = wxPyMake_wxObject(result);
13082 }
13083 return resultobj;
13084 fail:
13085 return NULL;
13086}
13087
13088
13089static PyObject *_wrap_MouseEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) {
13090 PyObject *resultobj;
13091 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13092 bool result;
13093 PyObject * obj0 = 0 ;
13094 char *kwnames[] = {
13095 (char *) "self", NULL
13096 };
13097
13098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsButton",kwnames,&obj0)) goto fail;
13099 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13100 {
13101 PyThreadState* __tstate = wxPyBeginAllowThreads();
13102 result = (bool)((wxMouseEvent const *)arg1)->IsButton();
13103
13104 wxPyEndAllowThreads(__tstate);
13105 if (PyErr_Occurred()) SWIG_fail;
13106 }
4e760a36 13107 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
13108 return resultobj;
13109 fail:
13110 return NULL;
13111}
13112
13113
13114static PyObject *_wrap_MouseEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13115 PyObject *resultobj;
13116 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13117 int arg2 = (int) wxMOUSE_BTN_ANY ;
13118 bool result;
13119 PyObject * obj0 = 0 ;
8edf1c75 13120 PyObject * obj1 = 0 ;
d14a1e28
RD
13121 char *kwnames[] = {
13122 (char *) "self",(char *) "but", NULL
13123 };
13124
8edf1c75 13125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 13126 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
13127 if (obj1) {
13128 {
13129 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13130 if (PyErr_Occurred()) SWIG_fail;
13131 }
13132 }
d14a1e28
RD
13133 {
13134 PyThreadState* __tstate = wxPyBeginAllowThreads();
13135 result = (bool)((wxMouseEvent const *)arg1)->ButtonDown(arg2);
13136
13137 wxPyEndAllowThreads(__tstate);
13138 if (PyErr_Occurred()) SWIG_fail;
13139 }
4e760a36 13140 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
13141 return resultobj;
13142 fail:
13143 return NULL;
13144}
13145
13146
13147static PyObject *_wrap_MouseEvent_ButtonDClick(PyObject *self, PyObject *args, PyObject *kwargs) {
13148 PyObject *resultobj;
13149 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13150 int arg2 = (int) wxMOUSE_BTN_ANY ;
13151 bool result;
13152 PyObject * obj0 = 0 ;
8edf1c75 13153 PyObject * obj1 = 0 ;
d14a1e28
RD
13154 char *kwnames[] = {
13155 (char *) "self",(char *) "but", NULL
13156 };
13157
8edf1c75 13158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDClick",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 13159 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
13160 if (obj1) {
13161 {
13162 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13163 if (PyErr_Occurred()) SWIG_fail;
13164 }
13165 }
d14a1e28
RD
13166 {
13167 PyThreadState* __tstate = wxPyBeginAllowThreads();
13168 result = (bool)((wxMouseEvent const *)arg1)->ButtonDClick(arg2);
13169
13170 wxPyEndAllowThreads(__tstate);
13171 if (PyErr_Occurred()) SWIG_fail;
13172 }
4e760a36 13173 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
13174 return resultobj;
13175 fail:
13176 return NULL;
13177}
13178
13179
13180static PyObject *_wrap_MouseEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) {
13181 PyObject *resultobj;
13182 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13183 int arg2 = (int) wxMOUSE_BTN_ANY ;
13184 bool result;
13185 PyObject * obj0 = 0 ;
8edf1c75 13186 PyObject * obj1 = 0 ;
d14a1e28
RD
13187 char *kwnames[] = {
13188 (char *) "self",(char *) "but", NULL
13189 };
13190
8edf1c75 13191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 13192 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
13193 if (obj1) {
13194 {
13195 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13196 if (PyErr_Occurred()) SWIG_fail;
13197 }
13198 }
d14a1e28
RD
13199 {
13200 PyThreadState* __tstate = wxPyBeginAllowThreads();
13201 result = (bool)((wxMouseEvent const *)arg1)->ButtonUp(arg2);
13202
13203 wxPyEndAllowThreads(__tstate);
13204 if (PyErr_Occurred()) SWIG_fail;
13205 }
4e760a36 13206 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
13207 return resultobj;
13208 fail:
13209 return NULL;
13210}
13211
13212
13213static PyObject *_wrap_MouseEvent_Button(PyObject *self, PyObject *args, PyObject *kwargs) {
13214 PyObject *resultobj;
13215 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13216 int arg2 ;
13217 bool result;
13218 PyObject * obj0 = 0 ;
8edf1c75 13219 PyObject * obj1 = 0 ;
d14a1e28
RD
13220 char *kwnames[] = {
13221 (char *) "self",(char *) "but", NULL
13222 };
13223
8edf1c75 13224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_Button",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 13225 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
13226 {
13227 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13228 if (PyErr_Occurred()) SWIG_fail;
13229 }
d14a1e28
RD
13230 {
13231 PyThreadState* __tstate = wxPyBeginAllowThreads();
13232 result = (bool)((wxMouseEvent const *)arg1)->Button(arg2);
13233
13234 wxPyEndAllowThreads(__tstate);
13235 if (PyErr_Occurred()) SWIG_fail;
13236 }
4e760a36 13237 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
13238 return resultobj;
13239 fail:
13240 return NULL;
13241}
13242
13243
13244static PyObject *_wrap_MouseEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13245 PyObject *resultobj;
13246 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13247 int arg2 ;
13248 bool result;
13249 PyObject * obj0 = 0 ;
8edf1c75 13250 PyObject * obj1 = 0 ;
d14a1e28
RD
13251 char *kwnames[] = {
13252 (char *) "self",(char *) "but", NULL
13253 };
13254
8edf1c75 13255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 13256 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
13257 {
13258 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13259 if (PyErr_Occurred()) SWIG_fail;
13260 }
d14a1e28
RD
13261 {
13262 PyThreadState* __tstate = wxPyBeginAllowThreads();
13263 result = (bool)((wxMouseEvent const *)arg1)->ButtonIsDown(arg2);
13264
13265 wxPyEndAllowThreads(__tstate);
13266 if (PyErr_Occurred()) SWIG_fail;
13267 }
4e760a36 13268 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
13269 return resultobj;
13270 fail:
13271 return NULL;
13272}
13273
13274
13275static PyObject *_wrap_MouseEvent_GetButton(PyObject *self, PyObject *args, PyObject *kwargs) {
13276 PyObject *resultobj;
13277 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13278 int result;
13279 PyObject * obj0 = 0 ;
13280 char *kwnames[] = {
13281 (char *) "self", NULL
13282 };
13283
13284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetButton",kwnames,&obj0)) goto fail;
13285 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13286 {
13287 PyThreadState* __tstate = wxPyBeginAllowThreads();
13288 result = (int)((wxMouseEvent const *)arg1)->GetButton();
13289
13290 wxPyEndAllowThreads(__tstate);
13291 if (PyErr_Occurred()) SWIG_fail;
13292 }
8edf1c75 13293 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
13294 return resultobj;
13295 fail:
13296 return NULL;
13297}
13298
13299
13300static PyObject *_wrap_MouseEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13301 PyObject *resultobj;
13302 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13303 bool result;
13304 PyObject * obj0 = 0 ;
13305 char *kwnames[] = {
13306 (char *) "self", NULL
13307 };
13308
13309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ControlDown",kwnames,&obj0)) goto fail;
13310 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13311 {
13312 PyThreadState* __tstate = wxPyBeginAllowThreads();
13313 result = (bool)((wxMouseEvent const *)arg1)->ControlDown();
13314
13315 wxPyEndAllowThreads(__tstate);
13316 if (PyErr_Occurred()) SWIG_fail;
13317 }
4e760a36 13318 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
13319 return resultobj;
13320 fail:
13321 return NULL;
13322}
13323
13324
13325static PyObject *_wrap_MouseEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13326 PyObject *resultobj;
13327 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13328 bool result;
13329 PyObject * obj0 = 0 ;
13330 char *kwnames[] = {
13331 (char *) "self", NULL
13332 };
13333
13334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MetaDown",kwnames,&obj0)) goto fail;
13335 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13336 {
13337 PyThreadState* __tstate = wxPyBeginAllowThreads();
13338 result = (bool)((wxMouseEvent const *)arg1)->MetaDown();
13339
13340 wxPyEndAllowThreads(__tstate);
13341 if (PyErr_Occurred()) SWIG_fail;
13342 }
4e760a36 13343 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
13344 return resultobj;
13345 fail:
13346 return NULL;
13347}
13348
13349
13350static PyObject *_wrap_MouseEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13351 PyObject *resultobj;
13352 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13353 bool result;
13354 PyObject * obj0 = 0 ;
13355 char *kwnames[] = {
13356 (char *) "self", NULL
13357 };
13358
13359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_AltDown",kwnames,&obj0)) goto fail;
13360 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13361 {
13362 PyThreadState* __tstate = wxPyBeginAllowThreads();
13363 result = (bool)((wxMouseEvent const *)arg1)->AltDown();
13364
13365 wxPyEndAllowThreads(__tstate);
13366 if (PyErr_Occurred()) SWIG_fail;
13367 }
4e760a36 13368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
13369 return resultobj;
13370 fail:
13371 return NULL;
13372}
13373
13374
13375static PyObject *_wrap_MouseEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13376 PyObject *resultobj;
13377 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13378 bool result;
13379 PyObject * obj0 = 0 ;
13380 char *kwnames[] = {
13381 (char *) "self", NULL
13382 };
13383
13384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ShiftDown",kwnames,&obj0)) goto fail;
13385 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13386 {
13387 PyThreadState* __tstate = wxPyBeginAllowThreads();
13388 result = (bool)((wxMouseEvent const *)arg1)->ShiftDown();
13389
13390 wxPyEndAllowThreads(__tstate);
13391 if (PyErr_Occurred()) SWIG_fail;
13392 }
4e760a36 13393 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
13394 return resultobj;
13395 fail:
13396 return NULL;
13397}
13398
13399
13400static PyObject *_wrap_MouseEvent_LeftDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13401 PyObject *resultobj;
13402 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13403 bool result;
13404 PyObject * obj0 = 0 ;
13405 char *kwnames[] = {
13406 (char *) "self", NULL
13407 };
13408
13409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDown",kwnames,&obj0)) goto fail;
13410 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13411 {
13412 PyThreadState* __tstate = wxPyBeginAllowThreads();
13413 result = (bool)((wxMouseEvent const *)arg1)->LeftDown();
13414
13415 wxPyEndAllowThreads(__tstate);
13416 if (PyErr_Occurred()) SWIG_fail;
13417 }
4e760a36 13418 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
13419 return resultobj;
13420 fail:
13421 return NULL;
13422}
13423
13424
13425static PyObject *_wrap_MouseEvent_MiddleDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13426 PyObject *resultobj;
13427 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13428 bool result;
13429 PyObject * obj0 = 0 ;
13430 char *kwnames[] = {
13431 (char *) "self", NULL
13432 };
13433
13434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDown",kwnames,&obj0)) goto fail;
13435 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13436 {
13437 PyThreadState* __tstate = wxPyBeginAllowThreads();
13438 result = (bool)((wxMouseEvent const *)arg1)->MiddleDown();
13439
13440 wxPyEndAllowThreads(__tstate);
13441 if (PyErr_Occurred()) SWIG_fail;
13442 }
4e760a36 13443 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
13444 return resultobj;
13445 fail:
13446 return NULL;
13447}
13448
13449
13450static PyObject *_wrap_MouseEvent_RightDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13451 PyObject *resultobj;
13452 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13453 bool result;
13454 PyObject * obj0 = 0 ;
13455 char *kwnames[] = {
13456 (char *) "self", NULL
13457 };
13458
13459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDown",kwnames,&obj0)) goto fail;
13460 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13461 {
13462 PyThreadState* __tstate = wxPyBeginAllowThreads();
13463 result = (bool)((wxMouseEvent const *)arg1)->RightDown();
13464
13465 wxPyEndAllowThreads(__tstate);
13466 if (PyErr_Occurred()) SWIG_fail;
13467 }
4e760a36 13468 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
13469 return resultobj;
13470 fail:
13471 return NULL;
13472}
13473
13474
13475static PyObject *_wrap_MouseEvent_LeftUp(PyObject *self, PyObject *args, PyObject *kwargs) {
13476 PyObject *resultobj;
13477 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13478 bool result;
13479 PyObject * obj0 = 0 ;
13480 char *kwnames[] = {
13481 (char *) "self", NULL
13482 };
13483
13484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftUp",kwnames,&obj0)) goto fail;
13485 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13486 {
13487 PyThreadState* __tstate = wxPyBeginAllowThreads();
13488 result = (bool)((wxMouseEvent const *)arg1)->LeftUp();
13489
13490 wxPyEndAllowThreads(__tstate);
13491 if (PyErr_Occurred()) SWIG_fail;
13492 }
4e760a36 13493 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
13494 return resultobj;
13495 fail:
13496 return NULL;
13497}
13498
13499
13500static PyObject *_wrap_MouseEvent_MiddleUp(PyObject *self, PyObject *args, PyObject *kwargs) {
13501 PyObject *resultobj;
13502 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13503 bool result;
13504 PyObject * obj0 = 0 ;
13505 char *kwnames[] = {
13506 (char *) "self", NULL
13507 };
13508
13509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleUp",kwnames,&obj0)) goto fail;
13510 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13511 {
13512 PyThreadState* __tstate = wxPyBeginAllowThreads();
13513 result = (bool)((wxMouseEvent const *)arg1)->MiddleUp();
13514
13515 wxPyEndAllowThreads(__tstate);
13516 if (PyErr_Occurred()) SWIG_fail;
13517 }
4e760a36 13518 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
13519 return resultobj;
13520 fail:
13521 return NULL;
13522}
13523
13524
13525static PyObject *_wrap_MouseEvent_RightUp(PyObject *self, PyObject *args, PyObject *kwargs) {
13526 PyObject *resultobj;
13527 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13528 bool result;
13529 PyObject * obj0 = 0 ;
13530 char *kwnames[] = {
13531 (char *) "self", NULL
13532 };
13533
13534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightUp",kwnames,&obj0)) goto fail;
13535 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13536 {
13537 PyThreadState* __tstate = wxPyBeginAllowThreads();
13538 result = (bool)((wxMouseEvent const *)arg1)->RightUp();
13539
13540 wxPyEndAllowThreads(__tstate);
13541 if (PyErr_Occurred()) SWIG_fail;
13542 }
4e760a36 13543 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
13544 return resultobj;
13545 fail:
13546 return NULL;
13547}
13548
13549
13550static PyObject *_wrap_MouseEvent_LeftDClick(PyObject *self, PyObject *args, PyObject *kwargs) {
13551 PyObject *resultobj;
13552 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13553 bool result;
13554 PyObject * obj0 = 0 ;
13555 char *kwnames[] = {
13556 (char *) "self", NULL
13557 };
13558
13559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDClick",kwnames,&obj0)) goto fail;
13560 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13561 {
13562 PyThreadState* __tstate = wxPyBeginAllowThreads();
13563 result = (bool)((wxMouseEvent const *)arg1)->LeftDClick();
13564
13565 wxPyEndAllowThreads(__tstate);
13566 if (PyErr_Occurred()) SWIG_fail;
13567 }
4e760a36 13568 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
13569 return resultobj;
13570 fail:
13571 return NULL;
13572}
13573
13574
13575static PyObject *_wrap_MouseEvent_MiddleDClick(PyObject *self, PyObject *args, PyObject *kwargs) {
13576 PyObject *resultobj;
13577 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13578 bool result;
13579 PyObject * obj0 = 0 ;
13580 char *kwnames[] = {
13581 (char *) "self", NULL
13582 };
13583
13584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDClick",kwnames,&obj0)) goto fail;
13585 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13586 {
13587 PyThreadState* __tstate = wxPyBeginAllowThreads();
13588 result = (bool)((wxMouseEvent const *)arg1)->MiddleDClick();
13589
13590 wxPyEndAllowThreads(__tstate);
13591 if (PyErr_Occurred()) SWIG_fail;
13592 }
4e760a36 13593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
13594 return resultobj;
13595 fail:
13596 return NULL;
13597}
13598
13599
13600static PyObject *_wrap_MouseEvent_RightDClick(PyObject *self, PyObject *args, PyObject *kwargs) {
13601 PyObject *resultobj;
13602 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13603 bool result;
13604 PyObject * obj0 = 0 ;
13605 char *kwnames[] = {
13606 (char *) "self", NULL
13607 };
13608
13609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDClick",kwnames,&obj0)) goto fail;
13610 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13611 {
13612 PyThreadState* __tstate = wxPyBeginAllowThreads();
13613 result = (bool)((wxMouseEvent const *)arg1)->RightDClick();
13614
13615 wxPyEndAllowThreads(__tstate);
13616 if (PyErr_Occurred()) SWIG_fail;
13617 }
4e760a36 13618 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
13619 return resultobj;
13620 fail:
13621 return NULL;
13622}
13623
13624
13625static PyObject *_wrap_MouseEvent_LeftIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13626 PyObject *resultobj;
13627 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13628 bool result;
13629 PyObject * obj0 = 0 ;
13630 char *kwnames[] = {
13631 (char *) "self", NULL
13632 };
13633
13634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftIsDown",kwnames,&obj0)) goto fail;
13635 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13636 {
13637 PyThreadState* __tstate = wxPyBeginAllowThreads();
13638 result = (bool)(arg1)->LeftIsDown();
13639
13640 wxPyEndAllowThreads(__tstate);
13641 if (PyErr_Occurred()) SWIG_fail;
13642 }
4e760a36 13643 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
13644 return resultobj;
13645 fail:
13646 return NULL;
13647}
13648
13649
13650static PyObject *_wrap_MouseEvent_MiddleIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13651 PyObject *resultobj;
13652 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13653 bool result;
13654 PyObject * obj0 = 0 ;
13655 char *kwnames[] = {
13656 (char *) "self", NULL
13657 };
13658
13659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleIsDown",kwnames,&obj0)) goto fail;
13660 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13661 {
13662 PyThreadState* __tstate = wxPyBeginAllowThreads();
13663 result = (bool)(arg1)->MiddleIsDown();
13664
13665 wxPyEndAllowThreads(__tstate);
13666 if (PyErr_Occurred()) SWIG_fail;
13667 }
4e760a36 13668 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
13669 return resultobj;
13670 fail:
13671 return NULL;
13672}
13673
13674
13675static PyObject *_wrap_MouseEvent_RightIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13676 PyObject *resultobj;
13677 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13678 bool result;
13679 PyObject * obj0 = 0 ;
13680 char *kwnames[] = {
13681 (char *) "self", NULL
13682 };
13683
13684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightIsDown",kwnames,&obj0)) goto fail;
13685 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13686 {
13687 PyThreadState* __tstate = wxPyBeginAllowThreads();
13688 result = (bool)(arg1)->RightIsDown();
13689
13690 wxPyEndAllowThreads(__tstate);
13691 if (PyErr_Occurred()) SWIG_fail;
13692 }
4e760a36 13693 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
13694 return resultobj;
13695 fail:
13696 return NULL;
13697}
13698
13699
13700static PyObject *_wrap_MouseEvent_Dragging(PyObject *self, PyObject *args, PyObject *kwargs) {
13701 PyObject *resultobj;
13702 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13703 bool result;
13704 PyObject * obj0 = 0 ;
13705 char *kwnames[] = {
13706 (char *) "self", NULL
13707 };
13708
13709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Dragging",kwnames,&obj0)) goto fail;
13710 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13711 {
13712 PyThreadState* __tstate = wxPyBeginAllowThreads();
13713 result = (bool)((wxMouseEvent const *)arg1)->Dragging();
13714
13715 wxPyEndAllowThreads(__tstate);
13716 if (PyErr_Occurred()) SWIG_fail;
13717 }
4e760a36 13718 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
13719 return resultobj;
13720 fail:
13721 return NULL;
13722}
13723
13724
13725static PyObject *_wrap_MouseEvent_Moving(PyObject *self, PyObject *args, PyObject *kwargs) {
13726 PyObject *resultobj;
13727 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13728 bool result;
13729 PyObject * obj0 = 0 ;
13730 char *kwnames[] = {
13731 (char *) "self", NULL
13732 };
13733
13734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Moving",kwnames,&obj0)) goto fail;
13735 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13736 {
13737 PyThreadState* __tstate = wxPyBeginAllowThreads();
13738 result = (bool)((wxMouseEvent const *)arg1)->Moving();
13739
13740 wxPyEndAllowThreads(__tstate);
13741 if (PyErr_Occurred()) SWIG_fail;
13742 }
4e760a36 13743 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
13744 return resultobj;
13745 fail:
13746 return NULL;
13747}
13748
13749
13750static PyObject *_wrap_MouseEvent_Entering(PyObject *self, PyObject *args, PyObject *kwargs) {
13751 PyObject *resultobj;
13752 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13753 bool result;
13754 PyObject * obj0 = 0 ;
13755 char *kwnames[] = {
13756 (char *) "self", NULL
13757 };
13758
13759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Entering",kwnames,&obj0)) goto fail;
13760 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13761 {
13762 PyThreadState* __tstate = wxPyBeginAllowThreads();
13763 result = (bool)((wxMouseEvent const *)arg1)->Entering();
13764
13765 wxPyEndAllowThreads(__tstate);
13766 if (PyErr_Occurred()) SWIG_fail;
13767 }
4e760a36 13768 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
13769 return resultobj;
13770 fail:
13771 return NULL;
13772}
13773
13774
13775static PyObject *_wrap_MouseEvent_Leaving(PyObject *self, PyObject *args, PyObject *kwargs) {
13776 PyObject *resultobj;
13777 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13778 bool result;
13779 PyObject * obj0 = 0 ;
13780 char *kwnames[] = {
13781 (char *) "self", NULL
13782 };
13783
13784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Leaving",kwnames,&obj0)) goto fail;
13785 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13786 {
13787 PyThreadState* __tstate = wxPyBeginAllowThreads();
13788 result = (bool)((wxMouseEvent const *)arg1)->Leaving();
13789
13790 wxPyEndAllowThreads(__tstate);
13791 if (PyErr_Occurred()) SWIG_fail;
13792 }
4e760a36 13793 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
13794 return resultobj;
13795 fail:
13796 return NULL;
13797}
13798
13799
13800static PyObject *_wrap_MouseEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
13801 PyObject *resultobj;
13802 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13803 wxPoint result;
13804 PyObject * obj0 = 0 ;
13805 char *kwnames[] = {
13806 (char *) "self", NULL
13807 };
13808
13809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPosition",kwnames,&obj0)) goto fail;
13810 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13811 {
13812 PyThreadState* __tstate = wxPyBeginAllowThreads();
13813 result = (arg1)->GetPosition();
13814
13815 wxPyEndAllowThreads(__tstate);
13816 if (PyErr_Occurred()) SWIG_fail;
13817 }
13818 {
13819 wxPoint * resultptr;
13820 resultptr = new wxPoint((wxPoint &) result);
13821 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
13822 }
13823 return resultobj;
13824 fail:
13825 return NULL;
13826}
13827
13828
13829static PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13830 PyObject *resultobj;
13831 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13832 long *arg2 = (long *) 0 ;
13833 long *arg3 = (long *) 0 ;
13834 long temp2 ;
13835 long temp3 ;
13836 PyObject * obj0 = 0 ;
13837 char *kwnames[] = {
13838 (char *) "self", NULL
13839 };
13840
13841 arg2 = &temp2;
13842 arg3 = &temp3;
13843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPositionTuple",kwnames,&obj0)) goto fail;
13844 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13845 {
13846 PyThreadState* __tstate = wxPyBeginAllowThreads();
13847 (arg1)->GetPosition(arg2,arg3);
13848
13849 wxPyEndAllowThreads(__tstate);
13850 if (PyErr_Occurred()) SWIG_fail;
13851 }
13852 Py_INCREF(Py_None); resultobj = Py_None;
13853 {
13854 PyObject *o = PyInt_FromLong((long) (*arg2));
13855 resultobj = t_output_helper(resultobj,o);
13856 }
13857 {
13858 PyObject *o = PyInt_FromLong((long) (*arg3));
13859 resultobj = t_output_helper(resultobj,o);
13860 }
13861 return resultobj;
13862 fail:
13863 return NULL;
13864}
13865
13866
13867static PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
13868 PyObject *resultobj;
13869 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13870 wxDC *arg2 = 0 ;
13871 wxPoint result;
13872 PyObject * obj0 = 0 ;
13873 PyObject * obj1 = 0 ;
13874 char *kwnames[] = {
13875 (char *) "self",(char *) "dc", NULL
13876 };
13877
13878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) goto fail;
13879 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13880 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13881 if (arg2 == NULL) {
13882 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
13883 }
13884 {
13885 PyThreadState* __tstate = wxPyBeginAllowThreads();
13886 result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2);
13887
13888 wxPyEndAllowThreads(__tstate);
13889 if (PyErr_Occurred()) SWIG_fail;
13890 }
13891 {
13892 wxPoint * resultptr;
13893 resultptr = new wxPoint((wxPoint &) result);
13894 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
13895 }
13896 return resultobj;
13897 fail:
13898 return NULL;
13899}
13900
13901
13902static PyObject *_wrap_MouseEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
13903 PyObject *resultobj;
13904 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
423f194a 13905 int result;
d14a1e28
RD
13906 PyObject * obj0 = 0 ;
13907 char *kwnames[] = {
13908 (char *) "self", NULL
13909 };
13910
13911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetX",kwnames,&obj0)) goto fail;
13912 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13913 {
13914 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 13915 result = (int)((wxMouseEvent const *)arg1)->GetX();
d14a1e28
RD
13916
13917 wxPyEndAllowThreads(__tstate);
13918 if (PyErr_Occurred()) SWIG_fail;
13919 }
8edf1c75 13920 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
13921 return resultobj;
13922 fail:
13923 return NULL;
13924}
13925
13926
13927static PyObject *_wrap_MouseEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
13928 PyObject *resultobj;
13929 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
423f194a 13930 int result;
d14a1e28
RD
13931 PyObject * obj0 = 0 ;
13932 char *kwnames[] = {
13933 (char *) "self", NULL
13934 };
13935
13936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetY",kwnames,&obj0)) goto fail;
13937 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13938 {
13939 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 13940 result = (int)((wxMouseEvent const *)arg1)->GetY();
d14a1e28
RD
13941
13942 wxPyEndAllowThreads(__tstate);
13943 if (PyErr_Occurred()) SWIG_fail;
13944 }
8edf1c75 13945 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
13946 return resultobj;
13947 fail:
13948 return NULL;
13949}
13950
13951
13952static PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *self, PyObject *args, PyObject *kwargs) {
13953 PyObject *resultobj;
13954 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13955 int result;
13956 PyObject * obj0 = 0 ;
13957 char *kwnames[] = {
13958 (char *) "self", NULL
13959 };
13960
13961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelRotation",kwnames,&obj0)) goto fail;
13962 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13963 {
13964 PyThreadState* __tstate = wxPyBeginAllowThreads();
13965 result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation();
13966
13967 wxPyEndAllowThreads(__tstate);
13968 if (PyErr_Occurred()) SWIG_fail;
13969 }
8edf1c75 13970 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
13971 return resultobj;
13972 fail:
13973 return NULL;
13974}
13975
13976
13977static PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *self, PyObject *args, PyObject *kwargs) {
13978 PyObject *resultobj;
13979 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13980 int result;
13981 PyObject * obj0 = 0 ;
13982 char *kwnames[] = {
13983 (char *) "self", NULL
13984 };
13985
13986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelDelta",kwnames,&obj0)) goto fail;
13987 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13988 {
13989 PyThreadState* __tstate = wxPyBeginAllowThreads();
13990 result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta();
13991
13992 wxPyEndAllowThreads(__tstate);
13993 if (PyErr_Occurred()) SWIG_fail;
13994 }
8edf1c75 13995 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
13996 return resultobj;
13997 fail:
13998 return NULL;
13999}
14000
14001
14002static PyObject *_wrap_MouseEvent_GetLinesPerAction(PyObject *self, PyObject *args, PyObject *kwargs) {
14003 PyObject *resultobj;
14004 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14005 int result;
14006 PyObject * obj0 = 0 ;
14007 char *kwnames[] = {
14008 (char *) "self", NULL
14009 };
14010
14011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetLinesPerAction",kwnames,&obj0)) goto fail;
14012 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14013 {
14014 PyThreadState* __tstate = wxPyBeginAllowThreads();
14015 result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction();
14016
14017 wxPyEndAllowThreads(__tstate);
14018 if (PyErr_Occurred()) SWIG_fail;
14019 }
8edf1c75 14020 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
14021 return resultobj;
14022 fail:
14023 return NULL;
14024}
14025
14026
14027static PyObject *_wrap_MouseEvent_IsPageScroll(PyObject *self, PyObject *args, PyObject *kwargs) {
14028 PyObject *resultobj;
14029 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14030 bool result;
14031 PyObject * obj0 = 0 ;
14032 char *kwnames[] = {
14033 (char *) "self", NULL
14034 };
14035
14036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsPageScroll",kwnames,&obj0)) goto fail;
14037 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14038 {
14039 PyThreadState* __tstate = wxPyBeginAllowThreads();
14040 result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll();
14041
14042 wxPyEndAllowThreads(__tstate);
14043 if (PyErr_Occurred()) SWIG_fail;
14044 }
4e760a36 14045 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
14046 return resultobj;
14047 fail:
14048 return NULL;
14049}
14050
14051
14052static PyObject *_wrap_MouseEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14053 PyObject *resultobj;
14054 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
423f194a 14055 int arg2 ;
d14a1e28 14056 PyObject * obj0 = 0 ;
8edf1c75 14057 PyObject * obj1 = 0 ;
d14a1e28
RD
14058 char *kwnames[] = {
14059 (char *) "self",(char *) "m_x", NULL
14060 };
14061
8edf1c75 14062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 14063 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
14064 {
14065 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14066 if (PyErr_Occurred()) SWIG_fail;
14067 }
d14a1e28
RD
14068 if (arg1) (arg1)->m_x = arg2;
14069
14070 Py_INCREF(Py_None); resultobj = Py_None;
14071 return resultobj;
14072 fail:
14073 return NULL;
14074}
14075
14076
14077static PyObject *_wrap_MouseEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14078 PyObject *resultobj;
14079 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
423f194a 14080 int result;
d14a1e28
RD
14081 PyObject * obj0 = 0 ;
14082 char *kwnames[] = {
14083 (char *) "self", NULL
14084 };
14085
14086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_x_get",kwnames,&obj0)) goto fail;
14087 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
423f194a 14088 result = (int) ((arg1)->m_x);
d14a1e28 14089
8edf1c75 14090 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
14091 return resultobj;
14092 fail:
14093 return NULL;
14094}
14095
14096
14097static PyObject *_wrap_MouseEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14098 PyObject *resultobj;
14099 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
423f194a 14100 int arg2 ;
d14a1e28 14101 PyObject * obj0 = 0 ;
8edf1c75 14102 PyObject * obj1 = 0 ;
d14a1e28
RD
14103 char *kwnames[] = {
14104 (char *) "self",(char *) "m_y", NULL
14105 };
14106
8edf1c75 14107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 14108 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
14109 {
14110 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14111 if (PyErr_Occurred()) SWIG_fail;
14112 }
d14a1e28
RD
14113 if (arg1) (arg1)->m_y = arg2;
14114
14115 Py_INCREF(Py_None); resultobj = Py_None;
14116 return resultobj;
14117 fail:
14118 return NULL;
14119}
14120
14121
14122static PyObject *_wrap_MouseEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14123 PyObject *resultobj;
14124 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
423f194a 14125 int result;
d14a1e28
RD
14126 PyObject * obj0 = 0 ;
14127 char *kwnames[] = {
14128 (char *) "self", NULL
14129 };
14130
14131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_y_get",kwnames,&obj0)) goto fail;
14132 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
423f194a 14133 result = (int) ((arg1)->m_y);
d14a1e28 14134
8edf1c75 14135 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
14136 return resultobj;
14137 fail:
14138 return NULL;
14139}
14140
14141
14142static PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14143 PyObject *resultobj;
14144 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14145 bool arg2 ;
14146 PyObject * obj0 = 0 ;
14147 PyObject * obj1 = 0 ;
14148 char *kwnames[] = {
14149 (char *) "self",(char *) "m_leftDown", NULL
14150 };
14151
14152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_leftDown_set",kwnames,&obj0,&obj1)) goto fail;
14153 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 14154 {
8edf1c75 14155 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
14156 if (PyErr_Occurred()) SWIG_fail;
14157 }
d14a1e28
RD
14158 if (arg1) (arg1)->m_leftDown = arg2;
14159
14160 Py_INCREF(Py_None); resultobj = Py_None;
14161 return resultobj;
14162 fail:
14163 return NULL;
14164}
14165
14166
14167static PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14168 PyObject *resultobj;
14169 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14170 bool result;
14171 PyObject * obj0 = 0 ;
14172 char *kwnames[] = {
14173 (char *) "self", NULL
14174 };
14175
14176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_leftDown_get",kwnames,&obj0)) goto fail;
14177 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14178 result = (bool) ((arg1)->m_leftDown);
14179
4e760a36 14180 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
14181 return resultobj;
14182 fail:
14183 return NULL;
14184}
14185
14186
14187static PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14188 PyObject *resultobj;
14189 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14190 bool arg2 ;
14191 PyObject * obj0 = 0 ;
14192 PyObject * obj1 = 0 ;
14193 char *kwnames[] = {
14194 (char *) "self",(char *) "m_middleDown", NULL
14195 };
14196
14197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_middleDown_set",kwnames,&obj0,&obj1)) goto fail;
14198 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 14199 {
8edf1c75 14200 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
14201 if (PyErr_Occurred()) SWIG_fail;
14202 }
d14a1e28
RD
14203 if (arg1) (arg1)->m_middleDown = arg2;
14204
14205 Py_INCREF(Py_None); resultobj = Py_None;
14206 return resultobj;
14207 fail:
14208 return NULL;
14209}
14210
14211
14212static PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14213 PyObject *resultobj;
14214 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14215 bool result;
14216 PyObject * obj0 = 0 ;
14217 char *kwnames[] = {
14218 (char *) "self", NULL
14219 };
14220
14221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_middleDown_get",kwnames,&obj0)) goto fail;
14222 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14223 result = (bool) ((arg1)->m_middleDown);
14224
4e760a36 14225 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
14226 return resultobj;
14227 fail:
14228 return NULL;
14229}
14230
14231
14232static PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14233 PyObject *resultobj;
14234 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14235 bool arg2 ;
14236 PyObject * obj0 = 0 ;
14237 PyObject * obj1 = 0 ;
14238 char *kwnames[] = {
14239 (char *) "self",(char *) "m_rightDown", NULL
14240 };
14241
14242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_rightDown_set",kwnames,&obj0,&obj1)) goto fail;
14243 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 14244 {
8edf1c75 14245 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
14246 if (PyErr_Occurred()) SWIG_fail;
14247 }
d14a1e28
RD
14248 if (arg1) (arg1)->m_rightDown = arg2;
14249
14250 Py_INCREF(Py_None); resultobj = Py_None;
14251 return resultobj;
14252 fail:
14253 return NULL;
14254}
14255
14256
14257static PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14258 PyObject *resultobj;
14259 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14260 bool result;
14261 PyObject * obj0 = 0 ;
14262 char *kwnames[] = {
14263 (char *) "self", NULL
14264 };
14265
14266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_rightDown_get",kwnames,&obj0)) goto fail;
14267 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14268 result = (bool) ((arg1)->m_rightDown);
14269
4e760a36 14270 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
14271 return resultobj;
14272 fail:
14273 return NULL;
14274}
14275
14276
14277static PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14278 PyObject *resultobj;
14279 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14280 bool arg2 ;
14281 PyObject * obj0 = 0 ;
14282 PyObject * obj1 = 0 ;
14283 char *kwnames[] = {
14284 (char *) "self",(char *) "m_controlDown", NULL
14285 };
14286
14287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail;
14288 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 14289 {
8edf1c75 14290 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
14291 if (PyErr_Occurred()) SWIG_fail;
14292 }
d14a1e28
RD
14293 if (arg1) (arg1)->m_controlDown = arg2;
14294
14295 Py_INCREF(Py_None); resultobj = Py_None;
14296 return resultobj;
14297 fail:
14298 return NULL;
14299}
14300
14301
14302static PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14303 PyObject *resultobj;
14304 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14305 bool result;
14306 PyObject * obj0 = 0 ;
14307 char *kwnames[] = {
14308 (char *) "self", NULL
14309 };
14310
14311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_controlDown_get",kwnames,&obj0)) goto fail;
14312 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14313 result = (bool) ((arg1)->m_controlDown);
14314
4e760a36 14315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
14316 return resultobj;
14317 fail:
14318 return NULL;
14319}
14320
14321
14322static PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14323 PyObject *resultobj;
14324 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14325 bool arg2 ;
14326 PyObject * obj0 = 0 ;
14327 PyObject * obj1 = 0 ;
14328 char *kwnames[] = {
14329 (char *) "self",(char *) "m_shiftDown", NULL
14330 };
14331
14332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail;
14333 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 14334 {
8edf1c75 14335 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
14336 if (PyErr_Occurred()) SWIG_fail;
14337 }
d14a1e28
RD
14338 if (arg1) (arg1)->m_shiftDown = arg2;
14339
14340 Py_INCREF(Py_None); resultobj = Py_None;
14341 return resultobj;
14342 fail:
14343 return NULL;
14344}
14345
14346
14347static PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14348 PyObject *resultobj;
14349 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14350 bool result;
14351 PyObject * obj0 = 0 ;
14352 char *kwnames[] = {
14353 (char *) "self", NULL
14354 };
14355
14356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_shiftDown_get",kwnames,&obj0)) goto fail;
14357 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14358 result = (bool) ((arg1)->m_shiftDown);
14359
4e760a36 14360 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
14361 return resultobj;
14362 fail:
14363 return NULL;
14364}
14365
14366
14367static PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14368 PyObject *resultobj;
14369 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14370 bool arg2 ;
14371 PyObject * obj0 = 0 ;
14372 PyObject * obj1 = 0 ;
14373 char *kwnames[] = {
14374 (char *) "self",(char *) "m_altDown", NULL
14375 };
14376
14377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail;
14378 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 14379 {
8edf1c75 14380 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
14381 if (PyErr_Occurred()) SWIG_fail;
14382 }
d14a1e28
RD
14383 if (arg1) (arg1)->m_altDown = arg2;
14384
14385 Py_INCREF(Py_None); resultobj = Py_None;
14386 return resultobj;
14387 fail:
14388 return NULL;
14389}
14390
14391
14392static PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14393 PyObject *resultobj;
14394 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14395 bool result;
14396 PyObject * obj0 = 0 ;
14397 char *kwnames[] = {
14398 (char *) "self", NULL
14399 };
14400
14401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_altDown_get",kwnames,&obj0)) goto fail;
14402 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14403 result = (bool) ((arg1)->m_altDown);
14404
4e760a36 14405 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
14406 return resultobj;
14407 fail:
14408 return NULL;
14409}
14410
14411
14412static PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14413 PyObject *resultobj;
14414 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14415 bool arg2 ;
14416 PyObject * obj0 = 0 ;
14417 PyObject * obj1 = 0 ;
14418 char *kwnames[] = {
14419 (char *) "self",(char *) "m_metaDown", NULL
14420 };
14421
14422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail;
14423 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 14424 {
8edf1c75 14425 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
14426 if (PyErr_Occurred()) SWIG_fail;
14427 }
d14a1e28
RD
14428 if (arg1) (arg1)->m_metaDown = arg2;
14429
14430 Py_INCREF(Py_None); resultobj = Py_None;
14431 return resultobj;
14432 fail:
14433 return NULL;
14434}
14435
14436
14437static PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14438 PyObject *resultobj;
14439 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14440 bool result;
14441 PyObject * obj0 = 0 ;
14442 char *kwnames[] = {
14443 (char *) "self", NULL
14444 };
14445
14446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_metaDown_get",kwnames,&obj0)) goto fail;
14447 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14448 result = (bool) ((arg1)->m_metaDown);
14449
4e760a36 14450 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
14451 return resultobj;
14452 fail:
14453 return NULL;
14454}
14455
14456
14457static PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14458 PyObject *resultobj;
14459 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14460 int arg2 ;
14461 PyObject * obj0 = 0 ;
8edf1c75 14462 PyObject * obj1 = 0 ;
d14a1e28
RD
14463 char *kwnames[] = {
14464 (char *) "self",(char *) "m_wheelRotation", NULL
14465 };
14466
8edf1c75 14467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelRotation_set",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 14468 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
14469 {
14470 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14471 if (PyErr_Occurred()) SWIG_fail;
14472 }
d14a1e28
RD
14473 if (arg1) (arg1)->m_wheelRotation = arg2;
14474
14475 Py_INCREF(Py_None); resultobj = Py_None;
14476 return resultobj;
14477 fail:
14478 return NULL;
14479}
14480
14481
14482static PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14483 PyObject *resultobj;
14484 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14485 int result;
14486 PyObject * obj0 = 0 ;
14487 char *kwnames[] = {
14488 (char *) "self", NULL
14489 };
14490
14491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelRotation_get",kwnames,&obj0)) goto fail;
14492 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14493 result = (int) ((arg1)->m_wheelRotation);
14494
8edf1c75 14495 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
14496 return resultobj;
14497 fail:
14498 return NULL;
14499}
14500
14501
14502static PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14503 PyObject *resultobj;
14504 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14505 int arg2 ;
14506 PyObject * obj0 = 0 ;
8edf1c75 14507 PyObject * obj1 = 0 ;
d14a1e28
RD
14508 char *kwnames[] = {
14509 (char *) "self",(char *) "m_wheelDelta", NULL
14510 };
14511
8edf1c75 14512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelDelta_set",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 14513 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
14514 {
14515 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14516 if (PyErr_Occurred()) SWIG_fail;
14517 }
d14a1e28
RD
14518 if (arg1) (arg1)->m_wheelDelta = arg2;
14519
14520 Py_INCREF(Py_None); resultobj = Py_None;
14521 return resultobj;
14522 fail:
14523 return NULL;
14524}
14525
14526
14527static PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14528 PyObject *resultobj;
14529 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14530 int result;
14531 PyObject * obj0 = 0 ;
14532 char *kwnames[] = {
14533 (char *) "self", NULL
14534 };
14535
14536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelDelta_get",kwnames,&obj0)) goto fail;
14537 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14538 result = (int) ((arg1)->m_wheelDelta);
14539
8edf1c75 14540 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
14541 return resultobj;
14542 fail:
14543 return NULL;
14544}
14545
14546
14547static PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14548 PyObject *resultobj;
14549 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14550 int arg2 ;
14551 PyObject * obj0 = 0 ;
8edf1c75 14552 PyObject * obj1 = 0 ;
d14a1e28
RD
14553 char *kwnames[] = {
14554 (char *) "self",(char *) "m_linesPerAction", NULL
14555 };
14556
8edf1c75 14557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_linesPerAction_set",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 14558 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
14559 {
14560 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14561 if (PyErr_Occurred()) SWIG_fail;
14562 }
d14a1e28
RD
14563 if (arg1) (arg1)->m_linesPerAction = arg2;
14564
14565 Py_INCREF(Py_None); resultobj = Py_None;
14566 return resultobj;
14567 fail:
14568 return NULL;
14569}
14570
14571
14572static PyObject *_wrap_MouseEvent_m_linesPerAction_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14573 PyObject *resultobj;
14574 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14575 int result;
14576 PyObject * obj0 = 0 ;
14577 char *kwnames[] = {
14578 (char *) "self", NULL
14579 };
14580
14581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_linesPerAction_get",kwnames,&obj0)) goto fail;
14582 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14583 result = (int) ((arg1)->m_linesPerAction);
14584
8edf1c75 14585 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
14586 return resultobj;
14587 fail:
14588 return NULL;
14589}
14590
14591
14592static PyObject * MouseEvent_swigregister(PyObject *self, PyObject *args) {
14593 PyObject *obj;
14594 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14595 SWIG_TypeClientData(SWIGTYPE_p_wxMouseEvent, obj);
14596 Py_INCREF(obj);
14597 return Py_BuildValue((char *)"");
14598}
14599static PyObject *_wrap_new_SetCursorEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
14600 PyObject *resultobj;
423f194a
RD
14601 int arg1 = (int) 0 ;
14602 int arg2 = (int) 0 ;
d14a1e28 14603 wxSetCursorEvent *result;
8edf1c75
RD
14604 PyObject * obj0 = 0 ;
14605 PyObject * obj1 = 0 ;
d14a1e28
RD
14606 char *kwnames[] = {
14607 (char *) "x",(char *) "y", NULL
14608 };
14609
8edf1c75
RD
14610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SetCursorEvent",kwnames,&obj0,&obj1)) goto fail;
14611 if (obj0) {
14612 {
14613 arg1 = (int) SWIG_PyObj_AsInt(obj0);
14614 if (PyErr_Occurred()) SWIG_fail;
14615 }
14616 }
14617 if (obj1) {
14618 {
14619 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14620 if (PyErr_Occurred()) SWIG_fail;
14621 }
14622 }
d14a1e28
RD
14623 {
14624 PyThreadState* __tstate = wxPyBeginAllowThreads();
14625 result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2);
14626
14627 wxPyEndAllowThreads(__tstate);
14628 if (PyErr_Occurred()) SWIG_fail;
14629 }
14630 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSetCursorEvent, 1);
14631 return resultobj;
14632 fail:
14633 return NULL;
14634}
14635
14636
14637static PyObject *_wrap_SetCursorEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
14638 PyObject *resultobj;
14639 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
423f194a 14640 int result;
d14a1e28
RD
14641 PyObject * obj0 = 0 ;
14642 char *kwnames[] = {
14643 (char *) "self", NULL
14644 };
14645
14646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetX",kwnames,&obj0)) goto fail;
14647 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14648 {
14649 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 14650 result = (int)((wxSetCursorEvent const *)arg1)->GetX();
d14a1e28
RD
14651
14652 wxPyEndAllowThreads(__tstate);
14653 if (PyErr_Occurred()) SWIG_fail;
14654 }
8edf1c75 14655 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
14656 return resultobj;
14657 fail:
14658 return NULL;
14659}
14660
14661
14662static PyObject *_wrap_SetCursorEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
14663 PyObject *resultobj;
14664 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
423f194a 14665 int result;
d14a1e28
RD
14666 PyObject * obj0 = 0 ;
14667 char *kwnames[] = {
14668 (char *) "self", NULL
14669 };
14670
14671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetY",kwnames,&obj0)) goto fail;
14672 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14673 {
14674 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 14675 result = (int)((wxSetCursorEvent const *)arg1)->GetY();
d14a1e28
RD
14676
14677 wxPyEndAllowThreads(__tstate);
14678 if (PyErr_Occurred()) SWIG_fail;
14679 }
8edf1c75 14680 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
14681 return resultobj;
14682 fail:
14683 return NULL;
14684}
14685
14686
14687static PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
14688 PyObject *resultobj;
14689 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
14690 wxCursor *arg2 = 0 ;
14691 PyObject * obj0 = 0 ;
14692 PyObject * obj1 = 0 ;
14693 char *kwnames[] = {
14694 (char *) "self",(char *) "cursor", NULL
14695 };
14696
14697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) goto fail;
14698 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14699 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14700 if (arg2 == NULL) {
14701 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14702 }
14703 {
14704 PyThreadState* __tstate = wxPyBeginAllowThreads();
14705 (arg1)->SetCursor((wxCursor const &)*arg2);
14706
14707 wxPyEndAllowThreads(__tstate);
14708 if (PyErr_Occurred()) SWIG_fail;
14709 }
14710 Py_INCREF(Py_None); resultobj = Py_None;
14711 return resultobj;
14712 fail:
14713 return NULL;
14714}
14715
14716
14717static PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
14718 PyObject *resultobj;
14719 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
14720 wxCursor *result;
14721 PyObject * obj0 = 0 ;
14722 char *kwnames[] = {
14723 (char *) "self", NULL
14724 };
14725
14726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetCursor",kwnames,&obj0)) goto fail;
14727 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14728 {
14729 PyThreadState* __tstate = wxPyBeginAllowThreads();
14730 {
14731 wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor();
14732 result = (wxCursor *) &_result_ref;
14733 }
14734
14735 wxPyEndAllowThreads(__tstate);
14736 if (PyErr_Occurred()) SWIG_fail;
14737 }
14738 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 0);
14739 return resultobj;
14740 fail:
14741 return NULL;
14742}
14743
14744
14745static PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
14746 PyObject *resultobj;
14747 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
14748 bool result;
14749 PyObject * obj0 = 0 ;
14750 char *kwnames[] = {
14751 (char *) "self", NULL
14752 };
14753
14754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_HasCursor",kwnames,&obj0)) goto fail;
14755 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSetCursorEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14756 {
14757 PyThreadState* __tstate = wxPyBeginAllowThreads();
14758 result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor();
14759
14760 wxPyEndAllowThreads(__tstate);
14761 if (PyErr_Occurred()) SWIG_fail;
14762 }
4e760a36 14763 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
14764 return resultobj;
14765 fail:
14766 return NULL;
14767}
14768
14769
14770static PyObject * SetCursorEvent_swigregister(PyObject *self, PyObject *args) {
14771 PyObject *obj;
14772 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14773 SWIG_TypeClientData(SWIGTYPE_p_wxSetCursorEvent, obj);
14774 Py_INCREF(obj);
14775 return Py_BuildValue((char *)"");
14776}
14777static PyObject *_wrap_new_KeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
14778 PyObject *resultobj;
14779 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
14780 wxKeyEvent *result;
8edf1c75 14781 PyObject * obj0 = 0 ;
d14a1e28
RD
14782 char *kwnames[] = {
14783 (char *) "keyType", NULL
14784 };
14785
8edf1c75
RD
14786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_KeyEvent",kwnames,&obj0)) goto fail;
14787 if (obj0) {
14788 {
14789 arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0);
14790 if (PyErr_Occurred()) SWIG_fail;
14791 }
14792 }
d14a1e28
RD
14793 {
14794 PyThreadState* __tstate = wxPyBeginAllowThreads();
14795 result = (wxKeyEvent *)new wxKeyEvent(arg1);
14796
14797 wxPyEndAllowThreads(__tstate);
14798 if (PyErr_Occurred()) SWIG_fail;
14799 }
14800 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxKeyEvent, 1);
14801 return resultobj;
14802 fail:
14803 return NULL;
14804}
14805
14806
14807static PyObject *_wrap_KeyEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14808 PyObject *resultobj;
14809 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
14810 bool result;
14811 PyObject * obj0 = 0 ;
14812 char *kwnames[] = {
14813 (char *) "self", NULL
14814 };
14815
14816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ControlDown",kwnames,&obj0)) goto fail;
14817 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14818 {
14819 PyThreadState* __tstate = wxPyBeginAllowThreads();
14820 result = (bool)((wxKeyEvent const *)arg1)->ControlDown();
14821
14822 wxPyEndAllowThreads(__tstate);
14823 if (PyErr_Occurred()) SWIG_fail;
14824 }
4e760a36 14825 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
14826 return resultobj;
14827 fail:
14828 return NULL;
14829}
14830
14831
14832static PyObject *_wrap_KeyEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14833 PyObject *resultobj;
14834 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
14835 bool result;
14836 PyObject * obj0 = 0 ;
14837 char *kwnames[] = {
14838 (char *) "self", NULL
14839 };
14840
14841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_MetaDown",kwnames,&obj0)) goto fail;
14842 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14843 {
14844 PyThreadState* __tstate = wxPyBeginAllowThreads();
14845 result = (bool)((wxKeyEvent const *)arg1)->MetaDown();
14846
14847 wxPyEndAllowThreads(__tstate);
14848 if (PyErr_Occurred()) SWIG_fail;
14849 }
4e760a36 14850 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
14851 return resultobj;
14852 fail:
14853 return NULL;
14854}
14855
14856
14857static PyObject *_wrap_KeyEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14858 PyObject *resultobj;
14859 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
14860 bool result;
14861 PyObject * obj0 = 0 ;
14862 char *kwnames[] = {
14863 (char *) "self", NULL
14864 };
14865
14866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_AltDown",kwnames,&obj0)) goto fail;
14867 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14868 {
14869 PyThreadState* __tstate = wxPyBeginAllowThreads();
14870 result = (bool)((wxKeyEvent const *)arg1)->AltDown();
14871
14872 wxPyEndAllowThreads(__tstate);
14873 if (PyErr_Occurred()) SWIG_fail;
14874 }
4e760a36 14875 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
14876 return resultobj;
14877 fail:
14878 return NULL;
14879}
14880
14881
14882static PyObject *_wrap_KeyEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14883 PyObject *resultobj;
14884 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
14885 bool result;
14886 PyObject * obj0 = 0 ;
14887 char *kwnames[] = {
14888 (char *) "self", NULL
14889 };
14890
14891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ShiftDown",kwnames,&obj0)) goto fail;
14892 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14893 {
14894 PyThreadState* __tstate = wxPyBeginAllowThreads();
14895 result = (bool)((wxKeyEvent const *)arg1)->ShiftDown();
14896
14897 wxPyEndAllowThreads(__tstate);
14898 if (PyErr_Occurred()) SWIG_fail;
14899 }
4e760a36 14900 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
14901 return resultobj;
14902 fail:
14903 return NULL;
14904}
14905
14906
14907static PyObject *_wrap_KeyEvent_HasModifiers(PyObject *self, PyObject *args, PyObject *kwargs) {
14908 PyObject *resultobj;
14909 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
14910 bool result;
14911 PyObject * obj0 = 0 ;
14912 char *kwnames[] = {
14913 (char *) "self", NULL
14914 };
14915
14916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_HasModifiers",kwnames,&obj0)) goto fail;
14917 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14918 {
14919 PyThreadState* __tstate = wxPyBeginAllowThreads();
14920 result = (bool)((wxKeyEvent const *)arg1)->HasModifiers();
14921
14922 wxPyEndAllowThreads(__tstate);
14923 if (PyErr_Occurred()) SWIG_fail;
14924 }
4e760a36 14925 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
14926 return resultobj;
14927 fail:
14928 return NULL;
14929}
14930
14931
14932static PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
14933 PyObject *resultobj;
14934 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
14935 int result;
14936 PyObject * obj0 = 0 ;
14937 char *kwnames[] = {
14938 (char *) "self", NULL
14939 };
14940
14941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetKeyCode",kwnames,&obj0)) goto fail;
14942 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14943 {
14944 PyThreadState* __tstate = wxPyBeginAllowThreads();
14945 result = (int)((wxKeyEvent const *)arg1)->GetKeyCode();
14946
14947 wxPyEndAllowThreads(__tstate);
14948 if (PyErr_Occurred()) SWIG_fail;
14949 }
8edf1c75 14950 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
14951 return resultobj;
14952 fail:
14953 return NULL;
14954}
14955
14956
14957static PyObject *_wrap_KeyEvent_GetUniChar(PyObject *self, PyObject *args, PyObject *kwargs) {
14958 PyObject *resultobj;
14959 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
14960 int result;
14961 PyObject * obj0 = 0 ;
14962 char *kwnames[] = {
14963 (char *) "self", NULL
14964 };
14965
14966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetUniChar",kwnames,&obj0)) goto fail;
14967 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14968 {
14969 PyThreadState* __tstate = wxPyBeginAllowThreads();
14970 result = (int)wxKeyEvent_GetUniChar(arg1);
14971
14972 wxPyEndAllowThreads(__tstate);
14973 if (PyErr_Occurred()) SWIG_fail;
14974 }
8edf1c75 14975 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
14976 return resultobj;
14977 fail:
14978 return NULL;
14979}
14980
14981
14982static PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
14983 PyObject *resultobj;
14984 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
423f194a 14985 unsigned int result;
d14a1e28
RD
14986 PyObject * obj0 = 0 ;
14987 char *kwnames[] = {
14988 (char *) "self", NULL
14989 };
14990
14991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyCode",kwnames,&obj0)) goto fail;
14992 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14993 {
14994 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 14995 result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyCode();
d14a1e28
RD
14996
14997 wxPyEndAllowThreads(__tstate);
14998 if (PyErr_Occurred()) SWIG_fail;
14999 }
8edf1c75 15000 resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result);
d14a1e28
RD
15001 return resultobj;
15002 fail:
15003 return NULL;
15004}
15005
15006
15007static PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
15008 PyObject *resultobj;
15009 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
423f194a 15010 unsigned int result;
d14a1e28
RD
15011 PyObject * obj0 = 0 ;
15012 char *kwnames[] = {
15013 (char *) "self", NULL
15014 };
15015
15016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyFlags",kwnames,&obj0)) goto fail;
15017 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15018 {
15019 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 15020 result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyFlags();
d14a1e28
RD
15021
15022 wxPyEndAllowThreads(__tstate);
15023 if (PyErr_Occurred()) SWIG_fail;
15024 }
8edf1c75 15025 resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result);
d14a1e28
RD
15026 return resultobj;
15027 fail:
15028 return NULL;
15029}
15030
15031
15032static PyObject *_wrap_KeyEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
15033 PyObject *resultobj;
15034 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15035 wxPoint result;
15036 PyObject * obj0 = 0 ;
15037 char *kwnames[] = {
15038 (char *) "self", NULL
15039 };
15040
15041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPosition",kwnames,&obj0)) goto fail;
15042 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15043 {
15044 PyThreadState* __tstate = wxPyBeginAllowThreads();
15045 result = (arg1)->GetPosition();
15046
15047 wxPyEndAllowThreads(__tstate);
15048 if (PyErr_Occurred()) SWIG_fail;
15049 }
15050 {
15051 wxPoint * resultptr;
15052 resultptr = new wxPoint((wxPoint &) result);
15053 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
15054 }
15055 return resultobj;
15056 fail:
15057 return NULL;
15058}
15059
15060
15061static PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
15062 PyObject *resultobj;
15063 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15064 long *arg2 = (long *) 0 ;
15065 long *arg3 = (long *) 0 ;
15066 long temp2 ;
15067 long temp3 ;
15068 PyObject * obj0 = 0 ;
15069 char *kwnames[] = {
15070 (char *) "self", NULL
15071 };
15072
15073 arg2 = &temp2;
15074 arg3 = &temp3;
15075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPositionTuple",kwnames,&obj0)) goto fail;
15076 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15077 {
15078 PyThreadState* __tstate = wxPyBeginAllowThreads();
15079 (arg1)->GetPosition(arg2,arg3);
15080
15081 wxPyEndAllowThreads(__tstate);
15082 if (PyErr_Occurred()) SWIG_fail;
15083 }
15084 Py_INCREF(Py_None); resultobj = Py_None;
15085 {
15086 PyObject *o = PyInt_FromLong((long) (*arg2));
15087 resultobj = t_output_helper(resultobj,o);
15088 }
15089 {
15090 PyObject *o = PyInt_FromLong((long) (*arg3));
15091 resultobj = t_output_helper(resultobj,o);
15092 }
15093 return resultobj;
15094 fail:
15095 return NULL;
15096}
15097
15098
15099static PyObject *_wrap_KeyEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
15100 PyObject *resultobj;
15101 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
423f194a 15102 int result;
d14a1e28
RD
15103 PyObject * obj0 = 0 ;
15104 char *kwnames[] = {
15105 (char *) "self", NULL
15106 };
15107
15108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetX",kwnames,&obj0)) goto fail;
15109 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15110 {
15111 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 15112 result = (int)((wxKeyEvent const *)arg1)->GetX();
d14a1e28
RD
15113
15114 wxPyEndAllowThreads(__tstate);
15115 if (PyErr_Occurred()) SWIG_fail;
15116 }
8edf1c75 15117 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
15118 return resultobj;
15119 fail:
15120 return NULL;
15121}
15122
15123
15124static PyObject *_wrap_KeyEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
15125 PyObject *resultobj;
15126 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
423f194a 15127 int result;
d14a1e28
RD
15128 PyObject * obj0 = 0 ;
15129 char *kwnames[] = {
15130 (char *) "self", NULL
15131 };
15132
15133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetY",kwnames,&obj0)) goto fail;
15134 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15135 {
15136 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 15137 result = (int)((wxKeyEvent const *)arg1)->GetY();
d14a1e28
RD
15138
15139 wxPyEndAllowThreads(__tstate);
15140 if (PyErr_Occurred()) SWIG_fail;
15141 }
8edf1c75 15142 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
15143 return resultobj;
15144 fail:
15145 return NULL;
15146}
15147
15148
15149static PyObject *_wrap_KeyEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15150 PyObject *resultobj;
15151 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
423f194a 15152 int arg2 ;
d14a1e28 15153 PyObject * obj0 = 0 ;
8edf1c75 15154 PyObject * obj1 = 0 ;
d14a1e28
RD
15155 char *kwnames[] = {
15156 (char *) "self",(char *) "m_x", NULL
15157 };
15158
8edf1c75 15159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 15160 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
15161 {
15162 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15163 if (PyErr_Occurred()) SWIG_fail;
15164 }
d14a1e28
RD
15165 if (arg1) (arg1)->m_x = arg2;
15166
15167 Py_INCREF(Py_None); resultobj = Py_None;
15168 return resultobj;
15169 fail:
15170 return NULL;
15171}
15172
15173
15174static PyObject *_wrap_KeyEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15175 PyObject *resultobj;
15176 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
423f194a 15177 int result;
d14a1e28
RD
15178 PyObject * obj0 = 0 ;
15179 char *kwnames[] = {
15180 (char *) "self", NULL
15181 };
15182
15183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_x_get",kwnames,&obj0)) goto fail;
15184 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
423f194a 15185 result = (int) ((arg1)->m_x);
d14a1e28 15186
8edf1c75 15187 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
15188 return resultobj;
15189 fail:
15190 return NULL;
15191}
15192
15193
15194static PyObject *_wrap_KeyEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15195 PyObject *resultobj;
15196 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
423f194a 15197 int arg2 ;
d14a1e28 15198 PyObject * obj0 = 0 ;
8edf1c75 15199 PyObject * obj1 = 0 ;
d14a1e28
RD
15200 char *kwnames[] = {
15201 (char *) "self",(char *) "m_y", NULL
15202 };
15203
8edf1c75 15204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 15205 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
15206 {
15207 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15208 if (PyErr_Occurred()) SWIG_fail;
15209 }
d14a1e28
RD
15210 if (arg1) (arg1)->m_y = arg2;
15211
15212 Py_INCREF(Py_None); resultobj = Py_None;
15213 return resultobj;
15214 fail:
15215 return NULL;
15216}
15217
15218
15219static PyObject *_wrap_KeyEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15220 PyObject *resultobj;
15221 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
423f194a 15222 int result;
d14a1e28
RD
15223 PyObject * obj0 = 0 ;
15224 char *kwnames[] = {
15225 (char *) "self", NULL
15226 };
15227
15228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_y_get",kwnames,&obj0)) goto fail;
15229 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
423f194a 15230 result = (int) ((arg1)->m_y);
d14a1e28 15231
8edf1c75 15232 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
15233 return resultobj;
15234 fail:
15235 return NULL;
15236}
15237
15238
15239static PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15240 PyObject *resultobj;
15241 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15242 long arg2 ;
15243 PyObject * obj0 = 0 ;
8edf1c75 15244 PyObject * obj1 = 0 ;
d14a1e28
RD
15245 char *kwnames[] = {
15246 (char *) "self",(char *) "m_keyCode", NULL
15247 };
15248
8edf1c75 15249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_keyCode_set",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 15250 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
15251 {
15252 arg2 = (long) SWIG_PyObj_AsLong(obj1);
15253 if (PyErr_Occurred()) SWIG_fail;
15254 }
d14a1e28
RD
15255 if (arg1) (arg1)->m_keyCode = arg2;
15256
15257 Py_INCREF(Py_None); resultobj = Py_None;
15258 return resultobj;
15259 fail:
15260 return NULL;
15261}
15262
15263
15264static PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15265 PyObject *resultobj;
15266 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15267 long result;
15268 PyObject * obj0 = 0 ;
15269 char *kwnames[] = {
15270 (char *) "self", NULL
15271 };
15272
15273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_keyCode_get",kwnames,&obj0)) goto fail;
15274 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15275 result = (long) ((arg1)->m_keyCode);
15276
8edf1c75 15277 resultobj = SWIG_PyObj_FromLong((long)result);
d14a1e28
RD
15278 return resultobj;
15279 fail:
15280 return NULL;
15281}
15282
15283
15284static PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15285 PyObject *resultobj;
15286 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15287 bool arg2 ;
15288 PyObject * obj0 = 0 ;
15289 PyObject * obj1 = 0 ;
15290 char *kwnames[] = {
15291 (char *) "self",(char *) "m_controlDown", NULL
15292 };
15293
15294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail;
15295 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 15296 {
8edf1c75 15297 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
15298 if (PyErr_Occurred()) SWIG_fail;
15299 }
d14a1e28
RD
15300 if (arg1) (arg1)->m_controlDown = arg2;
15301
15302 Py_INCREF(Py_None); resultobj = Py_None;
15303 return resultobj;
15304 fail:
15305 return NULL;
15306}
15307
15308
15309static PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15310 PyObject *resultobj;
15311 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15312 bool result;
15313 PyObject * obj0 = 0 ;
15314 char *kwnames[] = {
15315 (char *) "self", NULL
15316 };
15317
15318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_controlDown_get",kwnames,&obj0)) goto fail;
15319 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15320 result = (bool) ((arg1)->m_controlDown);
15321
4e760a36 15322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
15323 return resultobj;
15324 fail:
15325 return NULL;
15326}
15327
15328
15329static PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15330 PyObject *resultobj;
15331 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15332 bool arg2 ;
15333 PyObject * obj0 = 0 ;
15334 PyObject * obj1 = 0 ;
15335 char *kwnames[] = {
15336 (char *) "self",(char *) "m_shiftDown", NULL
15337 };
15338
15339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail;
15340 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 15341 {
8edf1c75 15342 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
15343 if (PyErr_Occurred()) SWIG_fail;
15344 }
d14a1e28
RD
15345 if (arg1) (arg1)->m_shiftDown = arg2;
15346
15347 Py_INCREF(Py_None); resultobj = Py_None;
15348 return resultobj;
15349 fail:
15350 return NULL;
15351}
15352
15353
15354static PyObject *_wrap_KeyEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15355 PyObject *resultobj;
15356 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15357 bool result;
15358 PyObject * obj0 = 0 ;
15359 char *kwnames[] = {
15360 (char *) "self", NULL
15361 };
15362
15363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_shiftDown_get",kwnames,&obj0)) goto fail;
15364 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15365 result = (bool) ((arg1)->m_shiftDown);
15366
4e760a36 15367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
15368 return resultobj;
15369 fail:
15370 return NULL;
15371}
15372
15373
15374static PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15375 PyObject *resultobj;
15376 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15377 bool arg2 ;
15378 PyObject * obj0 = 0 ;
15379 PyObject * obj1 = 0 ;
15380 char *kwnames[] = {
15381 (char *) "self",(char *) "m_altDown", NULL
15382 };
15383
15384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail;
15385 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 15386 {
8edf1c75 15387 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
15388 if (PyErr_Occurred()) SWIG_fail;
15389 }
d14a1e28
RD
15390 if (arg1) (arg1)->m_altDown = arg2;
15391
15392 Py_INCREF(Py_None); resultobj = Py_None;
15393 return resultobj;
15394 fail:
15395 return NULL;
15396}
15397
15398
15399static PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15400 PyObject *resultobj;
15401 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15402 bool result;
15403 PyObject * obj0 = 0 ;
15404 char *kwnames[] = {
15405 (char *) "self", NULL
15406 };
15407
15408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_altDown_get",kwnames,&obj0)) goto fail;
15409 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15410 result = (bool) ((arg1)->m_altDown);
15411
4e760a36 15412 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
15413 return resultobj;
15414 fail:
15415 return NULL;
15416}
15417
15418
15419static PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15420 PyObject *resultobj;
15421 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15422 bool arg2 ;
15423 PyObject * obj0 = 0 ;
15424 PyObject * obj1 = 0 ;
15425 char *kwnames[] = {
15426 (char *) "self",(char *) "m_metaDown", NULL
15427 };
15428
15429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail;
15430 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 15431 {
8edf1c75 15432 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
15433 if (PyErr_Occurred()) SWIG_fail;
15434 }
d14a1e28
RD
15435 if (arg1) (arg1)->m_metaDown = arg2;
15436
15437 Py_INCREF(Py_None); resultobj = Py_None;
15438 return resultobj;
15439 fail:
15440 return NULL;
15441}
15442
15443
15444static PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15445 PyObject *resultobj;
15446 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15447 bool result;
15448 PyObject * obj0 = 0 ;
15449 char *kwnames[] = {
15450 (char *) "self", NULL
15451 };
15452
15453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_metaDown_get",kwnames,&obj0)) goto fail;
15454 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15455 result = (bool) ((arg1)->m_metaDown);
15456
4e760a36 15457 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
15458 return resultobj;
15459 fail:
15460 return NULL;
15461}
15462
15463
15464static PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15465 PyObject *resultobj;
15466 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15467 bool arg2 ;
15468 PyObject * obj0 = 0 ;
15469 PyObject * obj1 = 0 ;
15470 char *kwnames[] = {
15471 (char *) "self",(char *) "m_scanCode", NULL
15472 };
15473
15474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_scanCode_set",kwnames,&obj0,&obj1)) goto fail;
15475 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 15476 {
8edf1c75 15477 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
15478 if (PyErr_Occurred()) SWIG_fail;
15479 }
d14a1e28
RD
15480 if (arg1) (arg1)->m_scanCode = arg2;
15481
15482 Py_INCREF(Py_None); resultobj = Py_None;
15483 return resultobj;
15484 fail:
15485 return NULL;
15486}
15487
15488
15489static PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15490 PyObject *resultobj;
15491 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15492 bool result;
15493 PyObject * obj0 = 0 ;
15494 char *kwnames[] = {
15495 (char *) "self", NULL
15496 };
15497
15498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_scanCode_get",kwnames,&obj0)) goto fail;
15499 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15500 result = (bool) ((arg1)->m_scanCode);
15501
4e760a36 15502 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
15503 return resultobj;
15504 fail:
15505 return NULL;
15506}
15507
15508
15509static PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15510 PyObject *resultobj;
15511 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
423f194a 15512 unsigned int arg2 ;
d14a1e28
RD
15513 PyObject * obj0 = 0 ;
15514 PyObject * obj1 = 0 ;
15515 char *kwnames[] = {
15516 (char *) "self",(char *) "m_rawCode", NULL
15517 };
15518
15519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawCode_set",kwnames,&obj0,&obj1)) goto fail;
15520 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 15521 {
8edf1c75 15522 arg2 = (unsigned int) SWIG_PyObj_AsUnsignedInt(obj1);
83448d71
RD
15523 if (PyErr_Occurred()) SWIG_fail;
15524 }
d14a1e28
RD
15525 if (arg1) (arg1)->m_rawCode = arg2;
15526
15527 Py_INCREF(Py_None); resultobj = Py_None;
15528 return resultobj;
15529 fail:
15530 return NULL;
15531}
15532
15533
15534static PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15535 PyObject *resultobj;
15536 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
423f194a 15537 unsigned int result;
d14a1e28
RD
15538 PyObject * obj0 = 0 ;
15539 char *kwnames[] = {
15540 (char *) "self", NULL
15541 };
15542
15543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawCode_get",kwnames,&obj0)) goto fail;
15544 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
423f194a 15545 result = (unsigned int) ((arg1)->m_rawCode);
d14a1e28 15546
8edf1c75 15547 resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result);
d14a1e28
RD
15548 return resultobj;
15549 fail:
15550 return NULL;
15551}
15552
15553
15554static PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15555 PyObject *resultobj;
15556 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
423f194a 15557 unsigned int arg2 ;
d14a1e28
RD
15558 PyObject * obj0 = 0 ;
15559 PyObject * obj1 = 0 ;
15560 char *kwnames[] = {
15561 (char *) "self",(char *) "m_rawFlags", NULL
15562 };
15563
15564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawFlags_set",kwnames,&obj0,&obj1)) goto fail;
15565 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 15566 {
8edf1c75 15567 arg2 = (unsigned int) SWIG_PyObj_AsUnsignedInt(obj1);
83448d71
RD
15568 if (PyErr_Occurred()) SWIG_fail;
15569 }
d14a1e28
RD
15570 if (arg1) (arg1)->m_rawFlags = arg2;
15571
15572 Py_INCREF(Py_None); resultobj = Py_None;
15573 return resultobj;
15574 fail:
15575 return NULL;
15576}
15577
15578
15579static PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15580 PyObject *resultobj;
15581 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
423f194a 15582 unsigned int result;
d14a1e28
RD
15583 PyObject * obj0 = 0 ;
15584 char *kwnames[] = {
15585 (char *) "self", NULL
15586 };
15587
15588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawFlags_get",kwnames,&obj0)) goto fail;
15589 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
423f194a 15590 result = (unsigned int) ((arg1)->m_rawFlags);
d14a1e28 15591
8edf1c75 15592 resultobj = SWIG_PyObj_FromUnsignedInt((unsigned int)result);
d14a1e28
RD
15593 return resultobj;
15594 fail:
15595 return NULL;
15596}
15597
15598
15599static PyObject * KeyEvent_swigregister(PyObject *self, PyObject *args) {
15600 PyObject *obj;
15601 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15602 SWIG_TypeClientData(SWIGTYPE_p_wxKeyEvent, obj);
15603 Py_INCREF(obj);
15604 return Py_BuildValue((char *)"");
15605}
15606static PyObject *_wrap_new_SizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
15607 PyObject *resultobj;
15608 wxSize const &arg1_defvalue = wxDefaultSize ;
15609 wxSize *arg1 = (wxSize *) &arg1_defvalue ;
15610 int arg2 = (int) 0 ;
15611 wxSizeEvent *result;
15612 wxSize temp1 ;
15613 PyObject * obj0 = 0 ;
8edf1c75 15614 PyObject * obj1 = 0 ;
d14a1e28
RD
15615 char *kwnames[] = {
15616 (char *) "sz",(char *) "winid", NULL
15617 };
15618
8edf1c75 15619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SizeEvent",kwnames,&obj0,&obj1)) goto fail;
d14a1e28
RD
15620 if (obj0) {
15621 {
15622 arg1 = &temp1;
15623 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
15624 }
15625 }
8edf1c75
RD
15626 if (obj1) {
15627 {
15628 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15629 if (PyErr_Occurred()) SWIG_fail;
15630 }
15631 }
d14a1e28
RD
15632 {
15633 PyThreadState* __tstate = wxPyBeginAllowThreads();
15634 result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2);
15635
15636 wxPyEndAllowThreads(__tstate);
15637 if (PyErr_Occurred()) SWIG_fail;
15638 }
15639 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizeEvent, 1);
15640 return resultobj;
15641 fail:
15642 return NULL;
15643}
15644
15645
15646static PyObject *_wrap_SizeEvent_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
15647 PyObject *resultobj;
15648 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
15649 wxSize result;
15650 PyObject * obj0 = 0 ;
15651 char *kwnames[] = {
15652 (char *) "self", NULL
15653 };
15654
15655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetSize",kwnames,&obj0)) goto fail;
15656 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15657 {
15658 PyThreadState* __tstate = wxPyBeginAllowThreads();
15659 result = ((wxSizeEvent const *)arg1)->GetSize();
15660
15661 wxPyEndAllowThreads(__tstate);
15662 if (PyErr_Occurred()) SWIG_fail;
15663 }
15664 {
15665 wxSize * resultptr;
15666 resultptr = new wxSize((wxSize &) result);
15667 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
15668 }
15669 return resultobj;
15670 fail:
15671 return NULL;
15672}
15673
15674
15675static PyObject *_wrap_SizeEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
15676 PyObject *resultobj;
15677 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
15678 wxRect result;
15679 PyObject * obj0 = 0 ;
15680 char *kwnames[] = {
15681 (char *) "self", NULL
15682 };
15683
15684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetRect",kwnames,&obj0)) goto fail;
15685 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15686 {
15687 PyThreadState* __tstate = wxPyBeginAllowThreads();
15688 result = ((wxSizeEvent const *)arg1)->GetRect();
15689
15690 wxPyEndAllowThreads(__tstate);
15691 if (PyErr_Occurred()) SWIG_fail;
15692 }
15693 {
15694 wxRect * resultptr;
15695 resultptr = new wxRect((wxRect &) result);
15696 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
15697 }
15698 return resultobj;
15699 fail:
15700 return NULL;
15701}
15702
15703
15704static PyObject *_wrap_SizeEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
15705 PyObject *resultobj;
15706 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
15707 wxRect arg2 ;
15708 wxRect *argp2 ;
15709 PyObject * obj0 = 0 ;
15710 PyObject * obj1 = 0 ;
15711 char *kwnames[] = {
15712 (char *) "self",(char *) "rect", NULL
15713 };
15714
15715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) goto fail;
15716 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15717 if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
15718 arg2 = *argp2;
15719 {
15720 PyThreadState* __tstate = wxPyBeginAllowThreads();
15721 (arg1)->SetRect(arg2);
15722
15723 wxPyEndAllowThreads(__tstate);
15724 if (PyErr_Occurred()) SWIG_fail;
15725 }
15726 Py_INCREF(Py_None); resultobj = Py_None;
15727 return resultobj;
15728 fail:
15729 return NULL;
15730}
15731
15732
15733static PyObject *_wrap_SizeEvent_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
15734 PyObject *resultobj;
15735 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
15736 wxSize arg2 ;
15737 wxSize *argp2 ;
15738 PyObject * obj0 = 0 ;
15739 PyObject * obj1 = 0 ;
15740 char *kwnames[] = {
15741 (char *) "self",(char *) "size", NULL
15742 };
15743
15744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) goto fail;
15745 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15746 if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
15747 arg2 = *argp2;
15748 {
15749 PyThreadState* __tstate = wxPyBeginAllowThreads();
15750 wxSizeEvent_SetSize(arg1,arg2);
15751
15752 wxPyEndAllowThreads(__tstate);
15753 if (PyErr_Occurred()) SWIG_fail;
15754 }
15755 Py_INCREF(Py_None); resultobj = Py_None;
15756 return resultobj;
15757 fail:
15758 return NULL;
15759}
15760
15761
15762static PyObject *_wrap_SizeEvent_m_size_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15763 PyObject *resultobj;
15764 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
15765 wxSize *arg2 = (wxSize *) 0 ;
15766 PyObject * obj0 = 0 ;
15767 PyObject * obj1 = 0 ;
15768 char *kwnames[] = {
15769 (char *) "self",(char *) "m_size", NULL
15770 };
15771
15772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_size_set",kwnames,&obj0,&obj1)) goto fail;
15773 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15774 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15775 if (arg1) (arg1)->m_size = *arg2;
15776
15777 Py_INCREF(Py_None); resultobj = Py_None;
15778 return resultobj;
15779 fail:
15780 return NULL;
15781}
15782
15783
15784static PyObject *_wrap_SizeEvent_m_size_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15785 PyObject *resultobj;
15786 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
15787 wxSize *result;
15788 PyObject * obj0 = 0 ;
15789 char *kwnames[] = {
15790 (char *) "self", NULL
15791 };
15792
15793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_size_get",kwnames,&obj0)) goto fail;
15794 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15795 result = (wxSize *)& ((arg1)->m_size);
15796
15797 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSize, 0);
15798 return resultobj;
15799 fail:
15800 return NULL;
15801}
15802
15803
15804static PyObject *_wrap_SizeEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15805 PyObject *resultobj;
15806 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
15807 wxRect *arg2 = (wxRect *) 0 ;
15808 PyObject * obj0 = 0 ;
15809 PyObject * obj1 = 0 ;
15810 char *kwnames[] = {
15811 (char *) "self",(char *) "m_rect", NULL
15812 };
15813
15814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail;
15815 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15816 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15817 if (arg1) (arg1)->m_rect = *arg2;
15818
15819 Py_INCREF(Py_None); resultobj = Py_None;
15820 return resultobj;
15821 fail:
15822 return NULL;
15823}
15824
15825
15826static PyObject *_wrap_SizeEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15827 PyObject *resultobj;
15828 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
15829 wxRect *result;
15830 PyObject * obj0 = 0 ;
15831 char *kwnames[] = {
15832 (char *) "self", NULL
15833 };
15834
15835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_rect_get",kwnames,&obj0)) goto fail;
15836 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15837 result = (wxRect *)& ((arg1)->m_rect);
15838
15839 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0);
15840 return resultobj;
15841 fail:
15842 return NULL;
15843}
15844
15845
15846static PyObject * SizeEvent_swigregister(PyObject *self, PyObject *args) {
15847 PyObject *obj;
15848 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15849 SWIG_TypeClientData(SWIGTYPE_p_wxSizeEvent, obj);
15850 Py_INCREF(obj);
15851 return Py_BuildValue((char *)"");
15852}
15853static PyObject *_wrap_new_MoveEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
15854 PyObject *resultobj;
15855 wxPoint const &arg1_defvalue = wxDefaultPosition ;
15856 wxPoint *arg1 = (wxPoint *) &arg1_defvalue ;
15857 int arg2 = (int) 0 ;
15858 wxMoveEvent *result;
15859 wxPoint temp1 ;
15860 PyObject * obj0 = 0 ;
8edf1c75 15861 PyObject * obj1 = 0 ;
d14a1e28
RD
15862 char *kwnames[] = {
15863 (char *) "pos",(char *) "winid", NULL
15864 };
15865
8edf1c75 15866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MoveEvent",kwnames,&obj0,&obj1)) goto fail;
d14a1e28
RD
15867 if (obj0) {
15868 {
15869 arg1 = &temp1;
15870 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
15871 }
15872 }
8edf1c75
RD
15873 if (obj1) {
15874 {
15875 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15876 if (PyErr_Occurred()) SWIG_fail;
15877 }
15878 }
d14a1e28
RD
15879 {
15880 PyThreadState* __tstate = wxPyBeginAllowThreads();
15881 result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2);
15882
15883 wxPyEndAllowThreads(__tstate);
15884 if (PyErr_Occurred()) SWIG_fail;
15885 }
15886 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMoveEvent, 1);
15887 return resultobj;
15888 fail:
15889 return NULL;
15890}
15891
15892
15893static PyObject *_wrap_MoveEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
15894 PyObject *resultobj;
15895 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
15896 wxPoint result;
15897 PyObject * obj0 = 0 ;
15898 char *kwnames[] = {
15899 (char *) "self", NULL
15900 };
15901
15902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetPosition",kwnames,&obj0)) goto fail;
15903 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15904 {
15905 PyThreadState* __tstate = wxPyBeginAllowThreads();
15906 result = ((wxMoveEvent const *)arg1)->GetPosition();
15907
15908 wxPyEndAllowThreads(__tstate);
15909 if (PyErr_Occurred()) SWIG_fail;
15910 }
15911 {
15912 wxPoint * resultptr;
15913 resultptr = new wxPoint((wxPoint &) result);
15914 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
15915 }
15916 return resultobj;
15917 fail:
15918 return NULL;
15919}
15920
15921
15922static PyObject *_wrap_MoveEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
15923 PyObject *resultobj;
15924 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
15925 wxRect result;
15926 PyObject * obj0 = 0 ;
15927 char *kwnames[] = {
15928 (char *) "self", NULL
15929 };
15930
15931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetRect",kwnames,&obj0)) goto fail;
15932 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15933 {
15934 PyThreadState* __tstate = wxPyBeginAllowThreads();
15935 result = ((wxMoveEvent const *)arg1)->GetRect();
15936
15937 wxPyEndAllowThreads(__tstate);
15938 if (PyErr_Occurred()) SWIG_fail;
15939 }
15940 {
15941 wxRect * resultptr;
15942 resultptr = new wxRect((wxRect &) result);
15943 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
15944 }
15945 return resultobj;
15946 fail:
15947 return NULL;
15948}
15949
15950
15951static PyObject *_wrap_MoveEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
15952 PyObject *resultobj;
15953 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
15954 wxRect arg2 ;
15955 wxRect *argp2 ;
15956 PyObject * obj0 = 0 ;
15957 PyObject * obj1 = 0 ;
15958 char *kwnames[] = {
15959 (char *) "self",(char *) "rect", NULL
15960 };
15961
15962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) goto fail;
15963 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15964 if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
15965 arg2 = *argp2;
15966 {
15967 PyThreadState* __tstate = wxPyBeginAllowThreads();
15968 (arg1)->SetRect(arg2);
15969
15970 wxPyEndAllowThreads(__tstate);
15971 if (PyErr_Occurred()) SWIG_fail;
15972 }
15973 Py_INCREF(Py_None); resultobj = Py_None;
15974 return resultobj;
15975 fail:
15976 return NULL;
15977}
15978
15979
15980static PyObject *_wrap_MoveEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
15981 PyObject *resultobj;
15982 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
15983 wxPoint arg2 ;
15984 wxPoint *argp2 ;
15985 PyObject * obj0 = 0 ;
15986 PyObject * obj1 = 0 ;
15987 char *kwnames[] = {
15988 (char *) "self",(char *) "pos", NULL
15989 };
15990
15991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
15992 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15993 if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
15994 arg2 = *argp2;
15995 {
15996 PyThreadState* __tstate = wxPyBeginAllowThreads();
15997 wxMoveEvent_SetPosition(arg1,arg2);
15998
15999 wxPyEndAllowThreads(__tstate);
16000 if (PyErr_Occurred()) SWIG_fail;
16001 }
16002 Py_INCREF(Py_None); resultobj = Py_None;
16003 return resultobj;
16004 fail:
16005 return NULL;
16006}
16007
16008
16009static PyObject *_wrap_MoveEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16010 PyObject *resultobj;
16011 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16012 wxPoint *arg2 = (wxPoint *) 0 ;
16013 PyObject * obj0 = 0 ;
16014 PyObject * obj1 = 0 ;
16015 char *kwnames[] = {
16016 (char *) "self",(char *) "m_pos", NULL
16017 };
16018
16019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail;
16020 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16021 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16022 if (arg1) (arg1)->m_pos = *arg2;
16023
16024 Py_INCREF(Py_None); resultobj = Py_None;
16025 return resultobj;
16026 fail:
16027 return NULL;
16028}
16029
16030
16031static PyObject *_wrap_MoveEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16032 PyObject *resultobj;
16033 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16034 wxPoint *result;
16035 PyObject * obj0 = 0 ;
16036 char *kwnames[] = {
16037 (char *) "self", NULL
16038 };
16039
16040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_pos_get",kwnames,&obj0)) goto fail;
16041 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16042 result = (wxPoint *)& ((arg1)->m_pos);
16043
16044 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0);
16045 return resultobj;
16046 fail:
16047 return NULL;
16048}
16049
16050
16051static PyObject *_wrap_MoveEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16052 PyObject *resultobj;
16053 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16054 wxRect *arg2 = (wxRect *) 0 ;
16055 PyObject * obj0 = 0 ;
16056 PyObject * obj1 = 0 ;
16057 char *kwnames[] = {
16058 (char *) "self",(char *) "m_rect", NULL
16059 };
16060
16061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail;
16062 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16063 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16064 if (arg1) (arg1)->m_rect = *arg2;
16065
16066 Py_INCREF(Py_None); resultobj = Py_None;
16067 return resultobj;
16068 fail:
16069 return NULL;
16070}
16071
16072
16073static PyObject *_wrap_MoveEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16074 PyObject *resultobj;
16075 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16076 wxRect *result;
16077 PyObject * obj0 = 0 ;
16078 char *kwnames[] = {
16079 (char *) "self", NULL
16080 };
16081
16082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_rect_get",kwnames,&obj0)) goto fail;
16083 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMoveEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16084 result = (wxRect *)& ((arg1)->m_rect);
16085
16086 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRect, 0);
16087 return resultobj;
16088 fail:
16089 return NULL;
16090}
16091
16092
16093static PyObject * MoveEvent_swigregister(PyObject *self, PyObject *args) {
16094 PyObject *obj;
16095 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16096 SWIG_TypeClientData(SWIGTYPE_p_wxMoveEvent, obj);
16097 Py_INCREF(obj);
16098 return Py_BuildValue((char *)"");
16099}
16100static PyObject *_wrap_new_PaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16101 PyObject *resultobj;
16102 int arg1 = (int) 0 ;
16103 wxPaintEvent *result;
8edf1c75 16104 PyObject * obj0 = 0 ;
d14a1e28
RD
16105 char *kwnames[] = {
16106 (char *) "Id", NULL
16107 };
16108
8edf1c75
RD
16109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaintEvent",kwnames,&obj0)) goto fail;
16110 if (obj0) {
16111 {
16112 arg1 = (int) SWIG_PyObj_AsInt(obj0);
16113 if (PyErr_Occurred()) SWIG_fail;
16114 }
16115 }
d14a1e28
RD
16116 {
16117 PyThreadState* __tstate = wxPyBeginAllowThreads();
16118 result = (wxPaintEvent *)new wxPaintEvent(arg1);
16119
16120 wxPyEndAllowThreads(__tstate);
16121 if (PyErr_Occurred()) SWIG_fail;
16122 }
16123 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaintEvent, 1);
16124 return resultobj;
16125 fail:
16126 return NULL;
16127}
16128
16129
16130static PyObject * PaintEvent_swigregister(PyObject *self, PyObject *args) {
16131 PyObject *obj;
16132 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16133 SWIG_TypeClientData(SWIGTYPE_p_wxPaintEvent, obj);
16134 Py_INCREF(obj);
16135 return Py_BuildValue((char *)"");
16136}
16137static PyObject *_wrap_new_NcPaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16138 PyObject *resultobj;
16139 int arg1 = (int) 0 ;
16140 wxNcPaintEvent *result;
8edf1c75 16141 PyObject * obj0 = 0 ;
d14a1e28
RD
16142 char *kwnames[] = {
16143 (char *) "winid", NULL
16144 };
16145
8edf1c75
RD
16146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_NcPaintEvent",kwnames,&obj0)) goto fail;
16147 if (obj0) {
16148 {
16149 arg1 = (int) SWIG_PyObj_AsInt(obj0);
16150 if (PyErr_Occurred()) SWIG_fail;
16151 }
16152 }
d14a1e28
RD
16153 {
16154 PyThreadState* __tstate = wxPyBeginAllowThreads();
16155 result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1);
16156
16157 wxPyEndAllowThreads(__tstate);
16158 if (PyErr_Occurred()) SWIG_fail;
16159 }
16160 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNcPaintEvent, 1);
16161 return resultobj;
16162 fail:
16163 return NULL;
16164}
16165
16166
16167static PyObject * NcPaintEvent_swigregister(PyObject *self, PyObject *args) {
16168 PyObject *obj;
16169 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16170 SWIG_TypeClientData(SWIGTYPE_p_wxNcPaintEvent, obj);
16171 Py_INCREF(obj);
16172 return Py_BuildValue((char *)"");
16173}
16174static PyObject *_wrap_new_EraseEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16175 PyObject *resultobj;
16176 int arg1 = (int) 0 ;
16177 wxDC *arg2 = (wxDC *) (wxDC *) NULL ;
16178 wxEraseEvent *result;
8edf1c75 16179 PyObject * obj0 = 0 ;
d14a1e28
RD
16180 PyObject * obj1 = 0 ;
16181 char *kwnames[] = {
16182 (char *) "Id",(char *) "dc", NULL
16183 };
16184
8edf1c75
RD
16185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EraseEvent",kwnames,&obj0,&obj1)) goto fail;
16186 if (obj0) {
16187 {
16188 arg1 = (int) SWIG_PyObj_AsInt(obj0);
16189 if (PyErr_Occurred()) SWIG_fail;
16190 }
16191 }
d14a1e28
RD
16192 if (obj1) {
16193 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16194 }
16195 {
16196 PyThreadState* __tstate = wxPyBeginAllowThreads();
16197 result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2);
16198
16199 wxPyEndAllowThreads(__tstate);
16200 if (PyErr_Occurred()) SWIG_fail;
16201 }
16202 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEraseEvent, 1);
16203 return resultobj;
16204 fail:
16205 return NULL;
16206}
16207
16208
16209static PyObject *_wrap_EraseEvent_GetDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16210 PyObject *resultobj;
16211 wxEraseEvent *arg1 = (wxEraseEvent *) 0 ;
16212 wxDC *result;
16213 PyObject * obj0 = 0 ;
16214 char *kwnames[] = {
16215 (char *) "self", NULL
16216 };
16217
16218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EraseEvent_GetDC",kwnames,&obj0)) goto fail;
16219 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEraseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16220 {
16221 PyThreadState* __tstate = wxPyBeginAllowThreads();
16222 result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC();
16223
16224 wxPyEndAllowThreads(__tstate);
16225 if (PyErr_Occurred()) SWIG_fail;
16226 }
16227 {
16228 resultobj = wxPyMake_wxObject(result);
16229 }
16230 return resultobj;
16231 fail:
16232 return NULL;
16233}
16234
16235
16236static PyObject * EraseEvent_swigregister(PyObject *self, PyObject *args) {
16237 PyObject *obj;
16238 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16239 SWIG_TypeClientData(SWIGTYPE_p_wxEraseEvent, obj);
16240 Py_INCREF(obj);
16241 return Py_BuildValue((char *)"");
16242}
16243static PyObject *_wrap_new_FocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16244 PyObject *resultobj;
16245 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
16246 int arg2 = (int) 0 ;
16247 wxFocusEvent *result;
8edf1c75
RD
16248 PyObject * obj0 = 0 ;
16249 PyObject * obj1 = 0 ;
d14a1e28
RD
16250 char *kwnames[] = {
16251 (char *) "type",(char *) "winid", NULL
16252 };
16253
8edf1c75
RD
16254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FocusEvent",kwnames,&obj0,&obj1)) goto fail;
16255 if (obj0) {
16256 {
16257 arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0);
16258 if (PyErr_Occurred()) SWIG_fail;
16259 }
16260 }
16261 if (obj1) {
16262 {
16263 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16264 if (PyErr_Occurred()) SWIG_fail;
16265 }
16266 }
d14a1e28
RD
16267 {
16268 PyThreadState* __tstate = wxPyBeginAllowThreads();
16269 result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2);
16270
16271 wxPyEndAllowThreads(__tstate);
16272 if (PyErr_Occurred()) SWIG_fail;
16273 }
16274 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFocusEvent, 1);
16275 return resultobj;
16276 fail:
16277 return NULL;
16278}
16279
16280
16281static PyObject *_wrap_FocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
16282 PyObject *resultobj;
16283 wxFocusEvent *arg1 = (wxFocusEvent *) 0 ;
16284 wxWindow *result;
16285 PyObject * obj0 = 0 ;
16286 char *kwnames[] = {
16287 (char *) "self", NULL
16288 };
16289
16290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FocusEvent_GetWindow",kwnames,&obj0)) goto fail;
16291 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFocusEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16292 {
16293 PyThreadState* __tstate = wxPyBeginAllowThreads();
16294 result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow();
16295
16296 wxPyEndAllowThreads(__tstate);
16297 if (PyErr_Occurred()) SWIG_fail;
16298 }
16299 {
16300 resultobj = wxPyMake_wxObject(result);
16301 }
16302 return resultobj;
16303 fail:
16304 return NULL;
16305}
16306
16307
16308static PyObject *_wrap_FocusEvent_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
16309 PyObject *resultobj;
16310 wxFocusEvent *arg1 = (wxFocusEvent *) 0 ;
16311 wxWindow *arg2 = (wxWindow *) 0 ;
16312 PyObject * obj0 = 0 ;
16313 PyObject * obj1 = 0 ;
16314 char *kwnames[] = {
16315 (char *) "self",(char *) "win", NULL
16316 };
16317
16318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) goto fail;
16319 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFocusEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16320 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16321 {
16322 PyThreadState* __tstate = wxPyBeginAllowThreads();
16323 (arg1)->SetWindow(arg2);
16324
16325 wxPyEndAllowThreads(__tstate);
16326 if (PyErr_Occurred()) SWIG_fail;
16327 }
16328 Py_INCREF(Py_None); resultobj = Py_None;
16329 return resultobj;
16330 fail:
16331 return NULL;
16332}
16333
16334
16335static PyObject * FocusEvent_swigregister(PyObject *self, PyObject *args) {
16336 PyObject *obj;
16337 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16338 SWIG_TypeClientData(SWIGTYPE_p_wxFocusEvent, obj);
16339 Py_INCREF(obj);
16340 return Py_BuildValue((char *)"");
16341}
16342static PyObject *_wrap_new_ChildFocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16343 PyObject *resultobj;
16344 wxWindow *arg1 = (wxWindow *) NULL ;
16345 wxChildFocusEvent *result;
16346 PyObject * obj0 = 0 ;
16347 char *kwnames[] = {
16348 (char *) "win", NULL
16349 };
16350
16351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) goto fail;
16352 if (obj0) {
16353 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16354 }
16355 {
16356 PyThreadState* __tstate = wxPyBeginAllowThreads();
16357 result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1);
16358
16359 wxPyEndAllowThreads(__tstate);
16360 if (PyErr_Occurred()) SWIG_fail;
16361 }
16362 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChildFocusEvent, 1);
16363 return resultobj;
16364 fail:
16365 return NULL;
16366}
16367
16368
16369static PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
16370 PyObject *resultobj;
16371 wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ;
16372 wxWindow *result;
16373 PyObject * obj0 = 0 ;
16374 char *kwnames[] = {
16375 (char *) "self", NULL
16376 };
16377
16378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ChildFocusEvent_GetWindow",kwnames,&obj0)) goto fail;
16379 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChildFocusEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16380 {
16381 PyThreadState* __tstate = wxPyBeginAllowThreads();
16382 result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow();
16383
16384 wxPyEndAllowThreads(__tstate);
16385 if (PyErr_Occurred()) SWIG_fail;
16386 }
16387 {
16388 resultobj = wxPyMake_wxObject(result);
16389 }
16390 return resultobj;
16391 fail:
16392 return NULL;
16393}
16394
16395
16396static PyObject * ChildFocusEvent_swigregister(PyObject *self, PyObject *args) {
16397 PyObject *obj;
16398 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16399 SWIG_TypeClientData(SWIGTYPE_p_wxChildFocusEvent, obj);
16400 Py_INCREF(obj);
16401 return Py_BuildValue((char *)"");
16402}
16403static PyObject *_wrap_new_ActivateEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16404 PyObject *resultobj;
16405 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
423f194a 16406 bool arg2 = (bool) True ;
d14a1e28
RD
16407 int arg3 = (int) 0 ;
16408 wxActivateEvent *result;
8edf1c75 16409 PyObject * obj0 = 0 ;
d14a1e28 16410 PyObject * obj1 = 0 ;
8edf1c75 16411 PyObject * obj2 = 0 ;
d14a1e28
RD
16412 char *kwnames[] = {
16413 (char *) "type",(char *) "active",(char *) "Id", NULL
16414 };
16415
8edf1c75
RD
16416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ActivateEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
16417 if (obj0) {
16418 {
16419 arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0);
16420 if (PyErr_Occurred()) SWIG_fail;
16421 }
16422 }
d14a1e28 16423 if (obj1) {
83448d71 16424 {
8edf1c75
RD
16425 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
16426 if (PyErr_Occurred()) SWIG_fail;
16427 }
16428 }
16429 if (obj2) {
16430 {
16431 arg3 = (int) SWIG_PyObj_AsInt(obj2);
83448d71
RD
16432 if (PyErr_Occurred()) SWIG_fail;
16433 }
d14a1e28
RD
16434 }
16435 {
16436 PyThreadState* __tstate = wxPyBeginAllowThreads();
16437 result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3);
16438
16439 wxPyEndAllowThreads(__tstate);
16440 if (PyErr_Occurred()) SWIG_fail;
16441 }
16442 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxActivateEvent, 1);
16443 return resultobj;
16444 fail:
16445 return NULL;
16446}
16447
16448
16449static PyObject *_wrap_ActivateEvent_GetActive(PyObject *self, PyObject *args, PyObject *kwargs) {
16450 PyObject *resultobj;
16451 wxActivateEvent *arg1 = (wxActivateEvent *) 0 ;
16452 bool result;
16453 PyObject * obj0 = 0 ;
16454 char *kwnames[] = {
16455 (char *) "self", NULL
16456 };
16457
16458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActivateEvent_GetActive",kwnames,&obj0)) goto fail;
16459 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxActivateEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16460 {
16461 PyThreadState* __tstate = wxPyBeginAllowThreads();
16462 result = (bool)((wxActivateEvent const *)arg1)->GetActive();
16463
16464 wxPyEndAllowThreads(__tstate);
16465 if (PyErr_Occurred()) SWIG_fail;
16466 }
4e760a36 16467 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
16468 return resultobj;
16469 fail:
16470 return NULL;
16471}
16472
16473
16474static PyObject * ActivateEvent_swigregister(PyObject *self, PyObject *args) {
16475 PyObject *obj;
16476 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16477 SWIG_TypeClientData(SWIGTYPE_p_wxActivateEvent, obj);
16478 Py_INCREF(obj);
16479 return Py_BuildValue((char *)"");
16480}
16481static PyObject *_wrap_new_InitDialogEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16482 PyObject *resultobj;
16483 int arg1 = (int) 0 ;
16484 wxInitDialogEvent *result;
8edf1c75 16485 PyObject * obj0 = 0 ;
d14a1e28
RD
16486 char *kwnames[] = {
16487 (char *) "Id", NULL
16488 };
16489
8edf1c75
RD
16490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_InitDialogEvent",kwnames,&obj0)) goto fail;
16491 if (obj0) {
16492 {
16493 arg1 = (int) SWIG_PyObj_AsInt(obj0);
16494 if (PyErr_Occurred()) SWIG_fail;
16495 }
16496 }
d14a1e28
RD
16497 {
16498 PyThreadState* __tstate = wxPyBeginAllowThreads();
16499 result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1);
16500
16501 wxPyEndAllowThreads(__tstate);
16502 if (PyErr_Occurred()) SWIG_fail;
16503 }
16504 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxInitDialogEvent, 1);
16505 return resultobj;
16506 fail:
16507 return NULL;
16508}
16509
16510
16511static PyObject * InitDialogEvent_swigregister(PyObject *self, PyObject *args) {
16512 PyObject *obj;
16513 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16514 SWIG_TypeClientData(SWIGTYPE_p_wxInitDialogEvent, obj);
16515 Py_INCREF(obj);
16516 return Py_BuildValue((char *)"");
16517}
16518static PyObject *_wrap_new_MenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16519 PyObject *resultobj;
16520 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
16521 int arg2 = (int) 0 ;
16522 wxMenu *arg3 = (wxMenu *) NULL ;
16523 wxMenuEvent *result;
8edf1c75
RD
16524 PyObject * obj0 = 0 ;
16525 PyObject * obj1 = 0 ;
d14a1e28
RD
16526 PyObject * obj2 = 0 ;
16527 char *kwnames[] = {
16528 (char *) "type",(char *) "winid",(char *) "menu", NULL
16529 };
16530
8edf1c75
RD
16531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_MenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
16532 if (obj0) {
16533 {
16534 arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0);
16535 if (PyErr_Occurred()) SWIG_fail;
16536 }
16537 }
16538 if (obj1) {
16539 {
16540 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16541 if (PyErr_Occurred()) SWIG_fail;
16542 }
16543 }
d14a1e28
RD
16544 if (obj2) {
16545 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16546 }
16547 {
16548 PyThreadState* __tstate = wxPyBeginAllowThreads();
16549 result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3);
16550
16551 wxPyEndAllowThreads(__tstate);
16552 if (PyErr_Occurred()) SWIG_fail;
16553 }
16554 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMenuEvent, 1);
16555 return resultobj;
16556 fail:
16557 return NULL;
16558}
16559
16560
16561static PyObject *_wrap_MenuEvent_GetMenuId(PyObject *self, PyObject *args, PyObject *kwargs) {
16562 PyObject *resultobj;
16563 wxMenuEvent *arg1 = (wxMenuEvent *) 0 ;
16564 int result;
16565 PyObject * obj0 = 0 ;
16566 char *kwnames[] = {
16567 (char *) "self", NULL
16568 };
16569
16570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenuId",kwnames,&obj0)) goto fail;
16571 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16572 {
16573 PyThreadState* __tstate = wxPyBeginAllowThreads();
16574 result = (int)((wxMenuEvent const *)arg1)->GetMenuId();
16575
16576 wxPyEndAllowThreads(__tstate);
16577 if (PyErr_Occurred()) SWIG_fail;
16578 }
8edf1c75 16579 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
16580 return resultobj;
16581 fail:
16582 return NULL;
16583}
16584
16585
16586static PyObject *_wrap_MenuEvent_IsPopup(PyObject *self, PyObject *args, PyObject *kwargs) {
16587 PyObject *resultobj;
16588 wxMenuEvent *arg1 = (wxMenuEvent *) 0 ;
16589 bool result;
16590 PyObject * obj0 = 0 ;
16591 char *kwnames[] = {
16592 (char *) "self", NULL
16593 };
16594
16595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_IsPopup",kwnames,&obj0)) goto fail;
16596 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16597 {
16598 PyThreadState* __tstate = wxPyBeginAllowThreads();
16599 result = (bool)((wxMenuEvent const *)arg1)->IsPopup();
16600
16601 wxPyEndAllowThreads(__tstate);
16602 if (PyErr_Occurred()) SWIG_fail;
16603 }
4e760a36 16604 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
16605 return resultobj;
16606 fail:
16607 return NULL;
16608}
16609
16610
16611static PyObject *_wrap_MenuEvent_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
16612 PyObject *resultobj;
16613 wxMenuEvent *arg1 = (wxMenuEvent *) 0 ;
16614 wxMenu *result;
16615 PyObject * obj0 = 0 ;
16616 char *kwnames[] = {
16617 (char *) "self", NULL
16618 };
16619
16620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenu",kwnames,&obj0)) goto fail;
16621 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16622 {
16623 PyThreadState* __tstate = wxPyBeginAllowThreads();
16624 result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu();
16625
16626 wxPyEndAllowThreads(__tstate);
16627 if (PyErr_Occurred()) SWIG_fail;
16628 }
16629 {
16630 resultobj = wxPyMake_wxObject(result);
16631 }
16632 return resultobj;
16633 fail:
16634 return NULL;
16635}
16636
16637
16638static PyObject * MenuEvent_swigregister(PyObject *self, PyObject *args) {
16639 PyObject *obj;
16640 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16641 SWIG_TypeClientData(SWIGTYPE_p_wxMenuEvent, obj);
16642 Py_INCREF(obj);
16643 return Py_BuildValue((char *)"");
16644}
16645static PyObject *_wrap_new_CloseEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16646 PyObject *resultobj;
16647 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
16648 int arg2 = (int) 0 ;
16649 wxCloseEvent *result;
8edf1c75
RD
16650 PyObject * obj0 = 0 ;
16651 PyObject * obj1 = 0 ;
d14a1e28
RD
16652 char *kwnames[] = {
16653 (char *) "type",(char *) "winid", NULL
16654 };
16655
8edf1c75
RD
16656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CloseEvent",kwnames,&obj0,&obj1)) goto fail;
16657 if (obj0) {
16658 {
16659 arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0);
16660 if (PyErr_Occurred()) SWIG_fail;
16661 }
16662 }
16663 if (obj1) {
16664 {
16665 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16666 if (PyErr_Occurred()) SWIG_fail;
16667 }
16668 }
d14a1e28
RD
16669 {
16670 PyThreadState* __tstate = wxPyBeginAllowThreads();
16671 result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2);
16672
16673 wxPyEndAllowThreads(__tstate);
16674 if (PyErr_Occurred()) SWIG_fail;
16675 }
16676 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCloseEvent, 1);
16677 return resultobj;
16678 fail:
16679 return NULL;
16680}
16681
16682
16683static PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) {
16684 PyObject *resultobj;
16685 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
16686 bool arg2 ;
16687 PyObject * obj0 = 0 ;
16688 PyObject * obj1 = 0 ;
16689 char *kwnames[] = {
16690 (char *) "self",(char *) "logOff", NULL
16691 };
16692
16693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) goto fail;
16694 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 16695 {
8edf1c75 16696 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
16697 if (PyErr_Occurred()) SWIG_fail;
16698 }
d14a1e28
RD
16699 {
16700 PyThreadState* __tstate = wxPyBeginAllowThreads();
16701 (arg1)->SetLoggingOff(arg2);
16702
16703 wxPyEndAllowThreads(__tstate);
16704 if (PyErr_Occurred()) SWIG_fail;
16705 }
16706 Py_INCREF(Py_None); resultobj = Py_None;
16707 return resultobj;
16708 fail:
16709 return NULL;
16710}
16711
16712
16713static PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) {
16714 PyObject *resultobj;
16715 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
16716 bool result;
16717 PyObject * obj0 = 0 ;
16718 char *kwnames[] = {
16719 (char *) "self", NULL
16720 };
16721
16722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetLoggingOff",kwnames,&obj0)) goto fail;
16723 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16724 {
16725 PyThreadState* __tstate = wxPyBeginAllowThreads();
16726 result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff();
16727
16728 wxPyEndAllowThreads(__tstate);
16729 if (PyErr_Occurred()) SWIG_fail;
16730 }
4e760a36 16731 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
16732 return resultobj;
16733 fail:
16734 return NULL;
16735}
16736
16737
16738static PyObject *_wrap_CloseEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) {
16739 PyObject *resultobj;
16740 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
423f194a 16741 bool arg2 = (bool) True ;
d14a1e28
RD
16742 PyObject * obj0 = 0 ;
16743 PyObject * obj1 = 0 ;
16744 char *kwnames[] = {
16745 (char *) "self",(char *) "veto", NULL
16746 };
16747
16748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) goto fail;
16749 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16750 if (obj1) {
83448d71 16751 {
8edf1c75 16752 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
16753 if (PyErr_Occurred()) SWIG_fail;
16754 }
d14a1e28
RD
16755 }
16756 {
16757 PyThreadState* __tstate = wxPyBeginAllowThreads();
16758 (arg1)->Veto(arg2);
16759
16760 wxPyEndAllowThreads(__tstate);
16761 if (PyErr_Occurred()) SWIG_fail;
16762 }
16763 Py_INCREF(Py_None); resultobj = Py_None;
16764 return resultobj;
16765 fail:
16766 return NULL;
16767}
16768
16769
16770static PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *self, PyObject *args, PyObject *kwargs) {
16771 PyObject *resultobj;
16772 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
16773 bool arg2 ;
16774 PyObject * obj0 = 0 ;
16775 PyObject * obj1 = 0 ;
16776 char *kwnames[] = {
16777 (char *) "self",(char *) "canVeto", NULL
16778 };
16779
16780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) goto fail;
16781 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 16782 {
8edf1c75 16783 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
16784 if (PyErr_Occurred()) SWIG_fail;
16785 }
d14a1e28
RD
16786 {
16787 PyThreadState* __tstate = wxPyBeginAllowThreads();
16788 (arg1)->SetCanVeto(arg2);
16789
16790 wxPyEndAllowThreads(__tstate);
16791 if (PyErr_Occurred()) SWIG_fail;
16792 }
16793 Py_INCREF(Py_None); resultobj = Py_None;
16794 return resultobj;
16795 fail:
16796 return NULL;
16797}
16798
16799
16800static PyObject *_wrap_CloseEvent_CanVeto(PyObject *self, PyObject *args, PyObject *kwargs) {
16801 PyObject *resultobj;
16802 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
16803 bool result;
16804 PyObject * obj0 = 0 ;
16805 char *kwnames[] = {
16806 (char *) "self", NULL
16807 };
16808
16809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_CanVeto",kwnames,&obj0)) goto fail;
16810 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16811 {
16812 PyThreadState* __tstate = wxPyBeginAllowThreads();
16813 result = (bool)((wxCloseEvent const *)arg1)->CanVeto();
16814
16815 wxPyEndAllowThreads(__tstate);
16816 if (PyErr_Occurred()) SWIG_fail;
16817 }
4e760a36 16818 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
16819 return resultobj;
16820 fail:
16821 return NULL;
16822}
16823
16824
16825static PyObject *_wrap_CloseEvent_GetVeto(PyObject *self, PyObject *args, PyObject *kwargs) {
16826 PyObject *resultobj;
16827 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
16828 bool result;
16829 PyObject * obj0 = 0 ;
16830 char *kwnames[] = {
16831 (char *) "self", NULL
16832 };
16833
16834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetVeto",kwnames,&obj0)) goto fail;
16835 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCloseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16836 {
16837 PyThreadState* __tstate = wxPyBeginAllowThreads();
16838 result = (bool)((wxCloseEvent const *)arg1)->GetVeto();
16839
16840 wxPyEndAllowThreads(__tstate);
16841 if (PyErr_Occurred()) SWIG_fail;
16842 }
4e760a36 16843 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
16844 return resultobj;
16845 fail:
16846 return NULL;
16847}
16848
16849
16850static PyObject * CloseEvent_swigregister(PyObject *self, PyObject *args) {
16851 PyObject *obj;
16852 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16853 SWIG_TypeClientData(SWIGTYPE_p_wxCloseEvent, obj);
16854 Py_INCREF(obj);
16855 return Py_BuildValue((char *)"");
16856}
16857static PyObject *_wrap_new_ShowEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16858 PyObject *resultobj;
16859 int arg1 = (int) 0 ;
423f194a 16860 bool arg2 = (bool) False ;
d14a1e28 16861 wxShowEvent *result;
8edf1c75 16862 PyObject * obj0 = 0 ;
d14a1e28
RD
16863 PyObject * obj1 = 0 ;
16864 char *kwnames[] = {
16865 (char *) "winid",(char *) "show", NULL
16866 };
16867
8edf1c75
RD
16868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ShowEvent",kwnames,&obj0,&obj1)) goto fail;
16869 if (obj0) {
16870 {
16871 arg1 = (int) SWIG_PyObj_AsInt(obj0);
16872 if (PyErr_Occurred()) SWIG_fail;
16873 }
16874 }
d14a1e28 16875 if (obj1) {
83448d71 16876 {
8edf1c75 16877 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
16878 if (PyErr_Occurred()) SWIG_fail;
16879 }
d14a1e28
RD
16880 }
16881 {
16882 PyThreadState* __tstate = wxPyBeginAllowThreads();
16883 result = (wxShowEvent *)new wxShowEvent(arg1,arg2);
16884
16885 wxPyEndAllowThreads(__tstate);
16886 if (PyErr_Occurred()) SWIG_fail;
16887 }
16888 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxShowEvent, 1);
16889 return resultobj;
16890 fail:
16891 return NULL;
16892}
16893
16894
16895static PyObject *_wrap_ShowEvent_SetShow(PyObject *self, PyObject *args, PyObject *kwargs) {
16896 PyObject *resultobj;
16897 wxShowEvent *arg1 = (wxShowEvent *) 0 ;
16898 bool arg2 ;
16899 PyObject * obj0 = 0 ;
16900 PyObject * obj1 = 0 ;
16901 char *kwnames[] = {
16902 (char *) "self",(char *) "show", NULL
16903 };
16904
16905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) goto fail;
16906 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShowEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 16907 {
8edf1c75 16908 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
16909 if (PyErr_Occurred()) SWIG_fail;
16910 }
d14a1e28
RD
16911 {
16912 PyThreadState* __tstate = wxPyBeginAllowThreads();
16913 (arg1)->SetShow(arg2);
16914
16915 wxPyEndAllowThreads(__tstate);
16916 if (PyErr_Occurred()) SWIG_fail;
16917 }
16918 Py_INCREF(Py_None); resultobj = Py_None;
16919 return resultobj;
16920 fail:
16921 return NULL;
16922}
16923
16924
16925static PyObject *_wrap_ShowEvent_GetShow(PyObject *self, PyObject *args, PyObject *kwargs) {
16926 PyObject *resultobj;
16927 wxShowEvent *arg1 = (wxShowEvent *) 0 ;
16928 bool result;
16929 PyObject * obj0 = 0 ;
16930 char *kwnames[] = {
16931 (char *) "self", NULL
16932 };
16933
16934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShowEvent_GetShow",kwnames,&obj0)) goto fail;
16935 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShowEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16936 {
16937 PyThreadState* __tstate = wxPyBeginAllowThreads();
16938 result = (bool)((wxShowEvent const *)arg1)->GetShow();
16939
16940 wxPyEndAllowThreads(__tstate);
16941 if (PyErr_Occurred()) SWIG_fail;
16942 }
4e760a36 16943 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
16944 return resultobj;
16945 fail:
16946 return NULL;
16947}
16948
16949
16950static PyObject * ShowEvent_swigregister(PyObject *self, PyObject *args) {
16951 PyObject *obj;
16952 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16953 SWIG_TypeClientData(SWIGTYPE_p_wxShowEvent, obj);
16954 Py_INCREF(obj);
16955 return Py_BuildValue((char *)"");
16956}
16957static PyObject *_wrap_new_IconizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16958 PyObject *resultobj;
16959 int arg1 = (int) 0 ;
423f194a 16960 bool arg2 = (bool) True ;
d14a1e28 16961 wxIconizeEvent *result;
8edf1c75 16962 PyObject * obj0 = 0 ;
d14a1e28
RD
16963 PyObject * obj1 = 0 ;
16964 char *kwnames[] = {
16965 (char *) "id",(char *) "iconized", NULL
16966 };
16967
8edf1c75
RD
16968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconizeEvent",kwnames,&obj0,&obj1)) goto fail;
16969 if (obj0) {
16970 {
16971 arg1 = (int) SWIG_PyObj_AsInt(obj0);
16972 if (PyErr_Occurred()) SWIG_fail;
16973 }
16974 }
d14a1e28 16975 if (obj1) {
83448d71 16976 {
8edf1c75 16977 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
16978 if (PyErr_Occurred()) SWIG_fail;
16979 }
d14a1e28
RD
16980 }
16981 {
16982 PyThreadState* __tstate = wxPyBeginAllowThreads();
16983 result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2);
16984
16985 wxPyEndAllowThreads(__tstate);
16986 if (PyErr_Occurred()) SWIG_fail;
16987 }
16988 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconizeEvent, 1);
16989 return resultobj;
16990 fail:
16991 return NULL;
16992}
16993
16994
16995static PyObject *_wrap_IconizeEvent_Iconized(PyObject *self, PyObject *args, PyObject *kwargs) {
16996 PyObject *resultobj;
16997 wxIconizeEvent *arg1 = (wxIconizeEvent *) 0 ;
16998 bool result;
16999 PyObject * obj0 = 0 ;
17000 char *kwnames[] = {
17001 (char *) "self", NULL
17002 };
17003
17004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconizeEvent_Iconized",kwnames,&obj0)) goto fail;
17005 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconizeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17006 {
17007 PyThreadState* __tstate = wxPyBeginAllowThreads();
17008 result = (bool)(arg1)->Iconized();
17009
17010 wxPyEndAllowThreads(__tstate);
17011 if (PyErr_Occurred()) SWIG_fail;
17012 }
4e760a36 17013 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
17014 return resultobj;
17015 fail:
17016 return NULL;
17017}
17018
17019
17020static PyObject * IconizeEvent_swigregister(PyObject *self, PyObject *args) {
17021 PyObject *obj;
17022 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17023 SWIG_TypeClientData(SWIGTYPE_p_wxIconizeEvent, obj);
17024 Py_INCREF(obj);
17025 return Py_BuildValue((char *)"");
17026}
17027static PyObject *_wrap_new_MaximizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17028 PyObject *resultobj;
17029 int arg1 = (int) 0 ;
17030 wxMaximizeEvent *result;
8edf1c75 17031 PyObject * obj0 = 0 ;
d14a1e28
RD
17032 char *kwnames[] = {
17033 (char *) "id", NULL
17034 };
17035
8edf1c75
RD
17036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MaximizeEvent",kwnames,&obj0)) goto fail;
17037 if (obj0) {
17038 {
17039 arg1 = (int) SWIG_PyObj_AsInt(obj0);
17040 if (PyErr_Occurred()) SWIG_fail;
17041 }
17042 }
d14a1e28
RD
17043 {
17044 PyThreadState* __tstate = wxPyBeginAllowThreads();
17045 result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1);
17046
17047 wxPyEndAllowThreads(__tstate);
17048 if (PyErr_Occurred()) SWIG_fail;
17049 }
17050 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMaximizeEvent, 1);
17051 return resultobj;
17052 fail:
17053 return NULL;
17054}
17055
17056
17057static PyObject * MaximizeEvent_swigregister(PyObject *self, PyObject *args) {
17058 PyObject *obj;
17059 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17060 SWIG_TypeClientData(SWIGTYPE_p_wxMaximizeEvent, obj);
17061 Py_INCREF(obj);
17062 return Py_BuildValue((char *)"");
17063}
17064static PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
17065 PyObject *resultobj;
17066 wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ;
17067 wxPoint result;
17068 PyObject * obj0 = 0 ;
17069 char *kwnames[] = {
17070 (char *) "self", NULL
17071 };
17072
17073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetPosition",kwnames,&obj0)) goto fail;
17074 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDropFilesEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17075 {
17076 PyThreadState* __tstate = wxPyBeginAllowThreads();
17077 result = (arg1)->GetPosition();
17078
17079 wxPyEndAllowThreads(__tstate);
17080 if (PyErr_Occurred()) SWIG_fail;
17081 }
17082 {
17083 wxPoint * resultptr;
17084 resultptr = new wxPoint((wxPoint &) result);
17085 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
17086 }
17087 return resultobj;
17088 fail:
17089 return NULL;
17090}
17091
17092
17093static PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
17094 PyObject *resultobj;
17095 wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ;
17096 int result;
17097 PyObject * obj0 = 0 ;
17098 char *kwnames[] = {
17099 (char *) "self", NULL
17100 };
17101
17102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetNumberOfFiles",kwnames,&obj0)) goto fail;
17103 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDropFilesEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17104 {
17105 PyThreadState* __tstate = wxPyBeginAllowThreads();
17106 result = (int)(arg1)->GetNumberOfFiles();
17107
17108 wxPyEndAllowThreads(__tstate);
17109 if (PyErr_Occurred()) SWIG_fail;
17110 }
8edf1c75 17111 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
17112 return resultobj;
17113 fail:
17114 return NULL;
17115}
17116
17117
17118static PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
17119 PyObject *resultobj;
17120 wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ;
17121 PyObject *result;
17122 PyObject * obj0 = 0 ;
17123 char *kwnames[] = {
17124 (char *) "self", NULL
17125 };
17126
17127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetFiles",kwnames,&obj0)) goto fail;
17128 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDropFilesEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17129 {
17130 PyThreadState* __tstate = wxPyBeginAllowThreads();
17131 result = (PyObject *)wxDropFilesEvent_GetFiles(arg1);
17132
17133 wxPyEndAllowThreads(__tstate);
17134 if (PyErr_Occurred()) SWIG_fail;
17135 }
17136 resultobj = result;
17137 return resultobj;
17138 fail:
17139 return NULL;
17140}
17141
17142
17143static PyObject * DropFilesEvent_swigregister(PyObject *self, PyObject *args) {
17144 PyObject *obj;
17145 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17146 SWIG_TypeClientData(SWIGTYPE_p_wxDropFilesEvent, obj);
17147 Py_INCREF(obj);
17148 return Py_BuildValue((char *)"");
17149}
17150static PyObject *_wrap_new_UpdateUIEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17151 PyObject *resultobj;
423f194a 17152 int arg1 = (int) 0 ;
d14a1e28 17153 wxUpdateUIEvent *result;
8edf1c75 17154 PyObject * obj0 = 0 ;
d14a1e28
RD
17155 char *kwnames[] = {
17156 (char *) "commandId", NULL
17157 };
17158
8edf1c75
RD
17159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_UpdateUIEvent",kwnames,&obj0)) goto fail;
17160 if (obj0) {
17161 {
17162 arg1 = (int) SWIG_PyObj_AsInt(obj0);
17163 if (PyErr_Occurred()) SWIG_fail;
17164 }
17165 }
d14a1e28
RD
17166 {
17167 PyThreadState* __tstate = wxPyBeginAllowThreads();
17168 result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1);
17169
17170 wxPyEndAllowThreads(__tstate);
17171 if (PyErr_Occurred()) SWIG_fail;
17172 }
17173 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxUpdateUIEvent, 1);
17174 return resultobj;
17175 fail:
17176 return NULL;
17177}
17178
17179
17180static PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
17181 PyObject *resultobj;
17182 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
17183 bool result;
17184 PyObject * obj0 = 0 ;
17185 char *kwnames[] = {
17186 (char *) "self", NULL
17187 };
17188
17189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetChecked",kwnames,&obj0)) goto fail;
17190 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17191 {
17192 PyThreadState* __tstate = wxPyBeginAllowThreads();
17193 result = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked();
17194
17195 wxPyEndAllowThreads(__tstate);
17196 if (PyErr_Occurred()) SWIG_fail;
17197 }
4e760a36 17198 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
17199 return resultobj;
17200 fail:
17201 return NULL;
17202}
17203
17204
17205static PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
17206 PyObject *resultobj;
17207 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
17208 bool result;
17209 PyObject * obj0 = 0 ;
17210 char *kwnames[] = {
17211 (char *) "self", NULL
17212 };
17213
17214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetEnabled",kwnames,&obj0)) goto fail;
17215 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17216 {
17217 PyThreadState* __tstate = wxPyBeginAllowThreads();
17218 result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled();
17219
17220 wxPyEndAllowThreads(__tstate);
17221 if (PyErr_Occurred()) SWIG_fail;
17222 }
4e760a36 17223 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
17224 return resultobj;
17225 fail:
17226 return NULL;
17227}
17228
17229
17230static PyObject *_wrap_UpdateUIEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
17231 PyObject *resultobj;
17232 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
17233 wxString result;
17234 PyObject * obj0 = 0 ;
17235 char *kwnames[] = {
17236 (char *) "self", NULL
17237 };
17238
17239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetText",kwnames,&obj0)) goto fail;
17240 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17241 {
17242 PyThreadState* __tstate = wxPyBeginAllowThreads();
17243 result = ((wxUpdateUIEvent const *)arg1)->GetText();
17244
17245 wxPyEndAllowThreads(__tstate);
17246 if (PyErr_Occurred()) SWIG_fail;
17247 }
17248 {
17249#if wxUSE_UNICODE
17250 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17251#else
17252 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17253#endif
17254 }
17255 return resultobj;
17256 fail:
17257 return NULL;
17258}
17259
17260
17261static PyObject *_wrap_UpdateUIEvent_GetSetText(PyObject *self, PyObject *args, PyObject *kwargs) {
17262 PyObject *resultobj;
17263 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
17264 bool result;
17265 PyObject * obj0 = 0 ;
17266 char *kwnames[] = {
17267 (char *) "self", NULL
17268 };
17269
17270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetText",kwnames,&obj0)) goto fail;
17271 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17272 {
17273 PyThreadState* __tstate = wxPyBeginAllowThreads();
17274 result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetText();
17275
17276 wxPyEndAllowThreads(__tstate);
17277 if (PyErr_Occurred()) SWIG_fail;
17278 }
4e760a36 17279 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
17280 return resultobj;
17281 fail:
17282 return NULL;
17283}
17284
17285
17286static PyObject *_wrap_UpdateUIEvent_GetSetChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
17287 PyObject *resultobj;
17288 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
17289 bool result;
17290 PyObject * obj0 = 0 ;
17291 char *kwnames[] = {
17292 (char *) "self", NULL
17293 };
17294
17295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetChecked",kwnames,&obj0)) goto fail;
17296 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17297 {
17298 PyThreadState* __tstate = wxPyBeginAllowThreads();
17299 result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked();
17300
17301 wxPyEndAllowThreads(__tstate);
17302 if (PyErr_Occurred()) SWIG_fail;
17303 }
4e760a36 17304 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
17305 return resultobj;
17306 fail:
17307 return NULL;
17308}
17309
17310
17311static PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
17312 PyObject *resultobj;
17313 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
17314 bool result;
17315 PyObject * obj0 = 0 ;
17316 char *kwnames[] = {
17317 (char *) "self", NULL
17318 };
17319
17320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetEnabled",kwnames,&obj0)) goto fail;
17321 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17322 {
17323 PyThreadState* __tstate = wxPyBeginAllowThreads();
17324 result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled();
17325
17326 wxPyEndAllowThreads(__tstate);
17327 if (PyErr_Occurred()) SWIG_fail;
17328 }
4e760a36 17329 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
17330 return resultobj;
17331 fail:
17332 return NULL;
17333}
17334
17335
17336static PyObject *_wrap_UpdateUIEvent_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
17337 PyObject *resultobj;
17338 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
17339 bool arg2 ;
17340 PyObject * obj0 = 0 ;
17341 PyObject * obj1 = 0 ;
17342 char *kwnames[] = {
17343 (char *) "self",(char *) "check", NULL
17344 };
17345
17346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) goto fail;
17347 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 17348 {
8edf1c75 17349 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
17350 if (PyErr_Occurred()) SWIG_fail;
17351 }
d14a1e28
RD
17352 {
17353 PyThreadState* __tstate = wxPyBeginAllowThreads();
17354 (arg1)->Check(arg2);
17355
17356 wxPyEndAllowThreads(__tstate);
17357 if (PyErr_Occurred()) SWIG_fail;
17358 }
17359 Py_INCREF(Py_None); resultobj = Py_None;
17360 return resultobj;
17361 fail:
17362 return NULL;
17363}
17364
17365
17366static PyObject *_wrap_UpdateUIEvent_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
17367 PyObject *resultobj;
17368 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
17369 bool arg2 ;
17370 PyObject * obj0 = 0 ;
17371 PyObject * obj1 = 0 ;
17372 char *kwnames[] = {
17373 (char *) "self",(char *) "enable", NULL
17374 };
17375
17376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) goto fail;
17377 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 17378 {
8edf1c75 17379 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
17380 if (PyErr_Occurred()) SWIG_fail;
17381 }
d14a1e28
RD
17382 {
17383 PyThreadState* __tstate = wxPyBeginAllowThreads();
17384 (arg1)->Enable(arg2);
17385
17386 wxPyEndAllowThreads(__tstate);
17387 if (PyErr_Occurred()) SWIG_fail;
17388 }
17389 Py_INCREF(Py_None); resultobj = Py_None;
17390 return resultobj;
17391 fail:
17392 return NULL;
17393}
17394
17395
17396static PyObject *_wrap_UpdateUIEvent_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
17397 PyObject *resultobj;
17398 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
17399 wxString *arg2 = 0 ;
423f194a 17400 bool temp2 = False ;
d14a1e28
RD
17401 PyObject * obj0 = 0 ;
17402 PyObject * obj1 = 0 ;
17403 char *kwnames[] = {
17404 (char *) "self",(char *) "text", NULL
17405 };
17406
17407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) goto fail;
17408 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxUpdateUIEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17409 {
17410 arg2 = wxString_in_helper(obj1);
17411 if (arg2 == NULL) SWIG_fail;
423f194a 17412 temp2 = True;
d14a1e28
RD
17413 }
17414 {
17415 PyThreadState* __tstate = wxPyBeginAllowThreads();
17416 (arg1)->SetText((wxString const &)*arg2);
17417
17418 wxPyEndAllowThreads(__tstate);
17419 if (PyErr_Occurred()) SWIG_fail;
17420 }
17421 Py_INCREF(Py_None); resultobj = Py_None;
17422 {
17423 if (temp2)
17424 delete arg2;
17425 }
17426 return resultobj;
17427 fail:
17428 {
17429 if (temp2)
17430 delete arg2;
17431 }
17432 return NULL;
17433}
17434
17435
17436static PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
17437 PyObject *resultobj;
17438 long arg1 ;
8edf1c75 17439 PyObject * obj0 = 0 ;
d14a1e28
RD
17440 char *kwnames[] = {
17441 (char *) "updateInterval", NULL
17442 };
17443
8edf1c75
RD
17444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetUpdateInterval",kwnames,&obj0)) goto fail;
17445 {
17446 arg1 = (long) SWIG_PyObj_AsLong(obj0);
17447 if (PyErr_Occurred()) SWIG_fail;
17448 }
d14a1e28
RD
17449 {
17450 PyThreadState* __tstate = wxPyBeginAllowThreads();
17451 wxUpdateUIEvent::SetUpdateInterval(arg1);
17452
17453 wxPyEndAllowThreads(__tstate);
17454 if (PyErr_Occurred()) SWIG_fail;
17455 }
17456 Py_INCREF(Py_None); resultobj = Py_None;
17457 return resultobj;
17458 fail:
17459 return NULL;
17460}
17461
17462
17463static PyObject *_wrap_UpdateUIEvent_GetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
17464 PyObject *resultobj;
17465 long result;
17466 char *kwnames[] = {
17467 NULL
17468 };
17469
17470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetUpdateInterval",kwnames)) goto fail;
17471 {
17472 PyThreadState* __tstate = wxPyBeginAllowThreads();
17473 result = (long)wxUpdateUIEvent::GetUpdateInterval();
17474
17475 wxPyEndAllowThreads(__tstate);
17476 if (PyErr_Occurred()) SWIG_fail;
17477 }
8edf1c75 17478 resultobj = SWIG_PyObj_FromLong((long)result);
d14a1e28
RD
17479 return resultobj;
17480 fail:
17481 return NULL;
17482}
17483
17484
17485static PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *self, PyObject *args, PyObject *kwargs) {
17486 PyObject *resultobj;
17487 wxWindow *arg1 = (wxWindow *) 0 ;
17488 bool result;
17489 PyObject * obj0 = 0 ;
17490 char *kwnames[] = {
17491 (char *) "win", NULL
17492 };
17493
17494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) goto fail;
17495 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17496 {
17497 PyThreadState* __tstate = wxPyBeginAllowThreads();
17498 result = (bool)wxUpdateUIEvent::CanUpdate(arg1);
17499
17500 wxPyEndAllowThreads(__tstate);
17501 if (PyErr_Occurred()) SWIG_fail;
17502 }
4e760a36 17503 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
17504 return resultobj;
17505 fail:
17506 return NULL;
17507}
17508
17509
17510static PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17511 PyObject *resultobj;
17512 char *kwnames[] = {
17513 NULL
17514 };
17515
17516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_ResetUpdateTime",kwnames)) goto fail;
17517 {
17518 PyThreadState* __tstate = wxPyBeginAllowThreads();
17519 wxUpdateUIEvent::ResetUpdateTime();
17520
17521 wxPyEndAllowThreads(__tstate);
17522 if (PyErr_Occurred()) SWIG_fail;
17523 }
17524 Py_INCREF(Py_None); resultobj = Py_None;
17525 return resultobj;
17526 fail:
17527 return NULL;
17528}
17529
17530
17531static PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) {
17532 PyObject *resultobj;
17533 int arg1 ;
8edf1c75 17534 PyObject * obj0 = 0 ;
d14a1e28
RD
17535 char *kwnames[] = {
17536 (char *) "mode", NULL
17537 };
17538
8edf1c75
RD
17539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetMode",kwnames,&obj0)) goto fail;
17540 {
17541 arg1 = (wxUpdateUIMode) SWIG_PyObj_AsInt(obj0);
17542 if (PyErr_Occurred()) SWIG_fail;
17543 }
d14a1e28
RD
17544 {
17545 PyThreadState* __tstate = wxPyBeginAllowThreads();
17546 wxUpdateUIEvent::SetMode((wxUpdateUIMode )arg1);
17547
17548 wxPyEndAllowThreads(__tstate);
17549 if (PyErr_Occurred()) SWIG_fail;
17550 }
17551 Py_INCREF(Py_None); resultobj = Py_None;
17552 return resultobj;
17553 fail:
17554 return NULL;
17555}
17556
17557
17558static PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) {
17559 PyObject *resultobj;
17560 int result;
17561 char *kwnames[] = {
17562 NULL
17563 };
17564
17565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetMode",kwnames)) goto fail;
17566 {
17567 PyThreadState* __tstate = wxPyBeginAllowThreads();
17568 result = (int)wxUpdateUIEvent::GetMode();
17569
17570 wxPyEndAllowThreads(__tstate);
17571 if (PyErr_Occurred()) SWIG_fail;
17572 }
8edf1c75 17573 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
17574 return resultobj;
17575 fail:
17576 return NULL;
17577}
17578
17579
17580static PyObject * UpdateUIEvent_swigregister(PyObject *self, PyObject *args) {
17581 PyObject *obj;
17582 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17583 SWIG_TypeClientData(SWIGTYPE_p_wxUpdateUIEvent, obj);
17584 Py_INCREF(obj);
17585 return Py_BuildValue((char *)"");
17586}
17587static PyObject *_wrap_new_SysColourChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17588 PyObject *resultobj;
17589 wxSysColourChangedEvent *result;
17590 char *kwnames[] = {
17591 NULL
17592 };
17593
17594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SysColourChangedEvent",kwnames)) goto fail;
17595 {
17596 PyThreadState* __tstate = wxPyBeginAllowThreads();
17597 result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent();
17598
17599 wxPyEndAllowThreads(__tstate);
17600 if (PyErr_Occurred()) SWIG_fail;
17601 }
17602 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSysColourChangedEvent, 1);
17603 return resultobj;
17604 fail:
17605 return NULL;
17606}
17607
17608
17609static PyObject * SysColourChangedEvent_swigregister(PyObject *self, PyObject *args) {
17610 PyObject *obj;
17611 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17612 SWIG_TypeClientData(SWIGTYPE_p_wxSysColourChangedEvent, obj);
17613 Py_INCREF(obj);
17614 return Py_BuildValue((char *)"");
17615}
17616static PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17617 PyObject *resultobj;
423f194a 17618 int arg1 = (int) 0 ;
d14a1e28
RD
17619 wxWindow *arg2 = (wxWindow *) NULL ;
17620 wxMouseCaptureChangedEvent *result;
8edf1c75 17621 PyObject * obj0 = 0 ;
d14a1e28
RD
17622 PyObject * obj1 = 0 ;
17623 char *kwnames[] = {
17624 (char *) "winid",(char *) "gainedCapture", NULL
17625 };
17626
8edf1c75
RD
17627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MouseCaptureChangedEvent",kwnames,&obj0,&obj1)) goto fail;
17628 if (obj0) {
17629 {
17630 arg1 = (int) SWIG_PyObj_AsInt(obj0);
17631 if (PyErr_Occurred()) SWIG_fail;
17632 }
17633 }
d14a1e28
RD
17634 if (obj1) {
17635 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17636 }
17637 {
17638 PyThreadState* __tstate = wxPyBeginAllowThreads();
17639 result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2);
17640
17641 wxPyEndAllowThreads(__tstate);
17642 if (PyErr_Occurred()) SWIG_fail;
17643 }
17644 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMouseCaptureChangedEvent, 1);
17645 return resultobj;
17646 fail:
17647 return NULL;
17648}
17649
17650
17651static PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
17652 PyObject *resultobj;
17653 wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ;
17654 wxWindow *result;
17655 PyObject * obj0 = 0 ;
17656 char *kwnames[] = {
17657 (char *) "self", NULL
17658 };
17659
17660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseCaptureChangedEvent_GetCapturedWindow",kwnames,&obj0)) goto fail;
17661 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMouseCaptureChangedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17662 {
17663 PyThreadState* __tstate = wxPyBeginAllowThreads();
17664 result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow();
17665
17666 wxPyEndAllowThreads(__tstate);
17667 if (PyErr_Occurred()) SWIG_fail;
17668 }
17669 {
17670 resultobj = wxPyMake_wxObject(result);
17671 }
17672 return resultobj;
17673 fail:
17674 return NULL;
17675}
17676
17677
17678static PyObject * MouseCaptureChangedEvent_swigregister(PyObject *self, PyObject *args) {
17679 PyObject *obj;
17680 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17681 SWIG_TypeClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, obj);
17682 Py_INCREF(obj);
17683 return Py_BuildValue((char *)"");
17684}
17685static PyObject *_wrap_new_DisplayChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17686 PyObject *resultobj;
17687 wxDisplayChangedEvent *result;
17688 char *kwnames[] = {
17689 NULL
17690 };
17691
17692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DisplayChangedEvent",kwnames)) goto fail;
17693 {
17694 PyThreadState* __tstate = wxPyBeginAllowThreads();
17695 result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent();
17696
17697 wxPyEndAllowThreads(__tstate);
17698 if (PyErr_Occurred()) SWIG_fail;
17699 }
17700 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDisplayChangedEvent, 1);
17701 return resultobj;
17702 fail:
17703 return NULL;
17704}
17705
17706
17707static PyObject * DisplayChangedEvent_swigregister(PyObject *self, PyObject *args) {
17708 PyObject *obj;
17709 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17710 SWIG_TypeClientData(SWIGTYPE_p_wxDisplayChangedEvent, obj);
17711 Py_INCREF(obj);
17712 return Py_BuildValue((char *)"");
17713}
17714static PyObject *_wrap_new_PaletteChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17715 PyObject *resultobj;
423f194a 17716 int arg1 = (int) 0 ;
d14a1e28 17717 wxPaletteChangedEvent *result;
8edf1c75 17718 PyObject * obj0 = 0 ;
d14a1e28
RD
17719 char *kwnames[] = {
17720 (char *) "id", NULL
17721 };
17722
8edf1c75
RD
17723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaletteChangedEvent",kwnames,&obj0)) goto fail;
17724 if (obj0) {
17725 {
17726 arg1 = (int) SWIG_PyObj_AsInt(obj0);
17727 if (PyErr_Occurred()) SWIG_fail;
17728 }
17729 }
d14a1e28
RD
17730 {
17731 PyThreadState* __tstate = wxPyBeginAllowThreads();
17732 result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1);
17733
17734 wxPyEndAllowThreads(__tstate);
17735 if (PyErr_Occurred()) SWIG_fail;
17736 }
17737 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaletteChangedEvent, 1);
17738 return resultobj;
17739 fail:
17740 return NULL;
17741}
17742
17743
17744static PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
17745 PyObject *resultobj;
17746 wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ;
17747 wxWindow *arg2 = (wxWindow *) 0 ;
17748 PyObject * obj0 = 0 ;
17749 PyObject * obj1 = 0 ;
17750 char *kwnames[] = {
17751 (char *) "self",(char *) "win", NULL
17752 };
17753
17754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) goto fail;
17755 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPaletteChangedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17756 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17757 {
17758 PyThreadState* __tstate = wxPyBeginAllowThreads();
17759 (arg1)->SetChangedWindow(arg2);
17760
17761 wxPyEndAllowThreads(__tstate);
17762 if (PyErr_Occurred()) SWIG_fail;
17763 }
17764 Py_INCREF(Py_None); resultobj = Py_None;
17765 return resultobj;
17766 fail:
17767 return NULL;
17768}
17769
17770
17771static PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
17772 PyObject *resultobj;
17773 wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ;
17774 wxWindow *result;
17775 PyObject * obj0 = 0 ;
17776 char *kwnames[] = {
17777 (char *) "self", NULL
17778 };
17779
17780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PaletteChangedEvent_GetChangedWindow",kwnames,&obj0)) goto fail;
17781 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPaletteChangedEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17782 {
17783 PyThreadState* __tstate = wxPyBeginAllowThreads();
17784 result = (wxWindow *)(arg1)->GetChangedWindow();
17785
17786 wxPyEndAllowThreads(__tstate);
17787 if (PyErr_Occurred()) SWIG_fail;
17788 }
17789 {
17790 resultobj = wxPyMake_wxObject(result);
17791 }
17792 return resultobj;
17793 fail:
17794 return NULL;
17795}
17796
17797
17798static PyObject * PaletteChangedEvent_swigregister(PyObject *self, PyObject *args) {
17799 PyObject *obj;
17800 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17801 SWIG_TypeClientData(SWIGTYPE_p_wxPaletteChangedEvent, obj);
17802 Py_INCREF(obj);
17803 return Py_BuildValue((char *)"");
17804}
17805static PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17806 PyObject *resultobj;
423f194a 17807 int arg1 = (int) 0 ;
d14a1e28 17808 wxQueryNewPaletteEvent *result;
8edf1c75 17809 PyObject * obj0 = 0 ;
d14a1e28
RD
17810 char *kwnames[] = {
17811 (char *) "winid", NULL
17812 };
17813
8edf1c75
RD
17814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryNewPaletteEvent",kwnames,&obj0)) goto fail;
17815 if (obj0) {
17816 {
17817 arg1 = (int) SWIG_PyObj_AsInt(obj0);
17818 if (PyErr_Occurred()) SWIG_fail;
17819 }
17820 }
d14a1e28
RD
17821 {
17822 PyThreadState* __tstate = wxPyBeginAllowThreads();
17823 result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1);
17824
17825 wxPyEndAllowThreads(__tstate);
17826 if (PyErr_Occurred()) SWIG_fail;
17827 }
17828 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxQueryNewPaletteEvent, 1);
17829 return resultobj;
17830 fail:
17831 return NULL;
17832}
17833
17834
17835static PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) {
17836 PyObject *resultobj;
17837 wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ;
17838 bool arg2 ;
17839 PyObject * obj0 = 0 ;
17840 PyObject * obj1 = 0 ;
17841 char *kwnames[] = {
17842 (char *) "self",(char *) "realized", NULL
17843 };
17844
17845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) goto fail;
17846 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxQueryNewPaletteEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 17847 {
8edf1c75 17848 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
17849 if (PyErr_Occurred()) SWIG_fail;
17850 }
d14a1e28
RD
17851 {
17852 PyThreadState* __tstate = wxPyBeginAllowThreads();
17853 (arg1)->SetPaletteRealized(arg2);
17854
17855 wxPyEndAllowThreads(__tstate);
17856 if (PyErr_Occurred()) SWIG_fail;
17857 }
17858 Py_INCREF(Py_None); resultobj = Py_None;
17859 return resultobj;
17860 fail:
17861 return NULL;
17862}
17863
17864
17865static PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) {
17866 PyObject *resultobj;
17867 wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ;
17868 bool result;
17869 PyObject * obj0 = 0 ;
17870 char *kwnames[] = {
17871 (char *) "self", NULL
17872 };
17873
17874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryNewPaletteEvent_GetPaletteRealized",kwnames,&obj0)) goto fail;
17875 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxQueryNewPaletteEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17876 {
17877 PyThreadState* __tstate = wxPyBeginAllowThreads();
17878 result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized();
17879
17880 wxPyEndAllowThreads(__tstate);
17881 if (PyErr_Occurred()) SWIG_fail;
17882 }
4e760a36 17883 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
17884 return resultobj;
17885 fail:
17886 return NULL;
17887}
17888
17889
17890static PyObject * QueryNewPaletteEvent_swigregister(PyObject *self, PyObject *args) {
17891 PyObject *obj;
17892 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17893 SWIG_TypeClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, obj);
17894 Py_INCREF(obj);
17895 return Py_BuildValue((char *)"");
17896}
17897static PyObject *_wrap_new_NavigationKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17898 PyObject *resultobj;
17899 wxNavigationKeyEvent *result;
17900 char *kwnames[] = {
17901 NULL
17902 };
17903
17904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NavigationKeyEvent",kwnames)) goto fail;
17905 {
17906 PyThreadState* __tstate = wxPyBeginAllowThreads();
17907 result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent();
17908
17909 wxPyEndAllowThreads(__tstate);
17910 if (PyErr_Occurred()) SWIG_fail;
17911 }
17912 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNavigationKeyEvent, 1);
17913 return resultobj;
17914 fail:
17915 return NULL;
17916}
17917
17918
17919static PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *self, PyObject *args, PyObject *kwargs) {
17920 PyObject *resultobj;
17921 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
17922 bool result;
17923 PyObject * obj0 = 0 ;
17924 char *kwnames[] = {
17925 (char *) "self", NULL
17926 };
17927
17928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetDirection",kwnames,&obj0)) goto fail;
17929 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17930 {
17931 PyThreadState* __tstate = wxPyBeginAllowThreads();
17932 result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection();
17933
17934 wxPyEndAllowThreads(__tstate);
17935 if (PyErr_Occurred()) SWIG_fail;
17936 }
4e760a36 17937 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
17938 return resultobj;
17939 fail:
17940 return NULL;
17941}
17942
17943
17944static PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *self, PyObject *args, PyObject *kwargs) {
17945 PyObject *resultobj;
17946 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
17947 bool arg2 ;
17948 PyObject * obj0 = 0 ;
17949 PyObject * obj1 = 0 ;
17950 char *kwnames[] = {
17951 (char *) "self",(char *) "bForward", NULL
17952 };
17953
17954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) goto fail;
17955 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 17956 {
8edf1c75 17957 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
17958 if (PyErr_Occurred()) SWIG_fail;
17959 }
d14a1e28
RD
17960 {
17961 PyThreadState* __tstate = wxPyBeginAllowThreads();
17962 (arg1)->SetDirection(arg2);
17963
17964 wxPyEndAllowThreads(__tstate);
17965 if (PyErr_Occurred()) SWIG_fail;
17966 }
17967 Py_INCREF(Py_None); resultobj = Py_None;
17968 return resultobj;
17969 fail:
17970 return NULL;
17971}
17972
17973
17974static PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) {
17975 PyObject *resultobj;
17976 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
17977 bool result;
17978 PyObject * obj0 = 0 ;
17979 char *kwnames[] = {
17980 (char *) "self", NULL
17981 };
17982
17983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsWindowChange",kwnames,&obj0)) goto fail;
17984 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17985 {
17986 PyThreadState* __tstate = wxPyBeginAllowThreads();
17987 result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange();
17988
17989 wxPyEndAllowThreads(__tstate);
17990 if (PyErr_Occurred()) SWIG_fail;
17991 }
4e760a36 17992 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
17993 return resultobj;
17994 fail:
17995 return NULL;
17996}
17997
17998
17999static PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) {
18000 PyObject *resultobj;
18001 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
18002 bool arg2 ;
18003 PyObject * obj0 = 0 ;
18004 PyObject * obj1 = 0 ;
18005 char *kwnames[] = {
18006 (char *) "self",(char *) "bIs", NULL
18007 };
18008
18009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) goto fail;
18010 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 18011 {
8edf1c75 18012 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
18013 if (PyErr_Occurred()) SWIG_fail;
18014 }
d14a1e28
RD
18015 {
18016 PyThreadState* __tstate = wxPyBeginAllowThreads();
18017 (arg1)->SetWindowChange(arg2);
18018
18019 wxPyEndAllowThreads(__tstate);
18020 if (PyErr_Occurred()) SWIG_fail;
18021 }
18022 Py_INCREF(Py_None); resultobj = Py_None;
18023 return resultobj;
18024 fail:
18025 return NULL;
18026}
18027
18028
18029static PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
18030 PyObject *resultobj;
18031 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
18032 wxWindow *result;
18033 PyObject * obj0 = 0 ;
18034 char *kwnames[] = {
18035 (char *) "self", NULL
18036 };
18037
18038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetCurrentFocus",kwnames,&obj0)) goto fail;
18039 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18040 {
18041 PyThreadState* __tstate = wxPyBeginAllowThreads();
18042 result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus();
18043
18044 wxPyEndAllowThreads(__tstate);
18045 if (PyErr_Occurred()) SWIG_fail;
18046 }
18047 {
18048 resultobj = wxPyMake_wxObject(result);
18049 }
18050 return resultobj;
18051 fail:
18052 return NULL;
18053}
18054
18055
18056static PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
18057 PyObject *resultobj;
18058 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
18059 wxWindow *arg2 = (wxWindow *) 0 ;
18060 PyObject * obj0 = 0 ;
18061 PyObject * obj1 = 0 ;
18062 char *kwnames[] = {
18063 (char *) "self",(char *) "win", NULL
18064 };
18065
18066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) goto fail;
18067 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNavigationKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18068 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18069 {
18070 PyThreadState* __tstate = wxPyBeginAllowThreads();
18071 (arg1)->SetCurrentFocus(arg2);
18072
18073 wxPyEndAllowThreads(__tstate);
18074 if (PyErr_Occurred()) SWIG_fail;
18075 }
18076 Py_INCREF(Py_None); resultobj = Py_None;
18077 return resultobj;
18078 fail:
18079 return NULL;
18080}
18081
18082
18083static PyObject * NavigationKeyEvent_swigregister(PyObject *self, PyObject *args) {
18084 PyObject *obj;
18085 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18086 SWIG_TypeClientData(SWIGTYPE_p_wxNavigationKeyEvent, obj);
18087 Py_INCREF(obj);
18088 return Py_BuildValue((char *)"");
18089}
18090static PyObject *_wrap_new_WindowCreateEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18091 PyObject *resultobj;
18092 wxWindow *arg1 = (wxWindow *) NULL ;
18093 wxWindowCreateEvent *result;
18094 PyObject * obj0 = 0 ;
18095 char *kwnames[] = {
18096 (char *) "win", NULL
18097 };
18098
18099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) goto fail;
18100 if (obj0) {
18101 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18102 }
18103 {
18104 PyThreadState* __tstate = wxPyBeginAllowThreads();
18105 result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1);
18106
18107 wxPyEndAllowThreads(__tstate);
18108 if (PyErr_Occurred()) SWIG_fail;
18109 }
18110 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowCreateEvent, 1);
18111 return resultobj;
18112 fail:
18113 return NULL;
18114}
18115
18116
18117static PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
18118 PyObject *resultobj;
18119 wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ;
18120 wxWindow *result;
18121 PyObject * obj0 = 0 ;
18122 char *kwnames[] = {
18123 (char *) "self", NULL
18124 };
18125
18126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowCreateEvent_GetWindow",kwnames,&obj0)) goto fail;
18127 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindowCreateEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18128 {
18129 PyThreadState* __tstate = wxPyBeginAllowThreads();
18130 result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow();
18131
18132 wxPyEndAllowThreads(__tstate);
18133 if (PyErr_Occurred()) SWIG_fail;
18134 }
18135 {
18136 resultobj = wxPyMake_wxObject(result);
18137 }
18138 return resultobj;
18139 fail:
18140 return NULL;
18141}
18142
18143
18144static PyObject * WindowCreateEvent_swigregister(PyObject *self, PyObject *args) {
18145 PyObject *obj;
18146 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18147 SWIG_TypeClientData(SWIGTYPE_p_wxWindowCreateEvent, obj);
18148 Py_INCREF(obj);
18149 return Py_BuildValue((char *)"");
18150}
18151static PyObject *_wrap_new_WindowDestroyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18152 PyObject *resultobj;
18153 wxWindow *arg1 = (wxWindow *) NULL ;
18154 wxWindowDestroyEvent *result;
18155 PyObject * obj0 = 0 ;
18156 char *kwnames[] = {
18157 (char *) "win", NULL
18158 };
18159
18160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) goto fail;
18161 if (obj0) {
18162 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18163 }
18164 {
18165 PyThreadState* __tstate = wxPyBeginAllowThreads();
18166 result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1);
18167
18168 wxPyEndAllowThreads(__tstate);
18169 if (PyErr_Occurred()) SWIG_fail;
18170 }
18171 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDestroyEvent, 1);
18172 return resultobj;
18173 fail:
18174 return NULL;
18175}
18176
18177
18178static PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
18179 PyObject *resultobj;
18180 wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ;
18181 wxWindow *result;
18182 PyObject * obj0 = 0 ;
18183 char *kwnames[] = {
18184 (char *) "self", NULL
18185 };
18186
18187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowDestroyEvent_GetWindow",kwnames,&obj0)) goto fail;
18188 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindowDestroyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18189 {
18190 PyThreadState* __tstate = wxPyBeginAllowThreads();
18191 result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow();
18192
18193 wxPyEndAllowThreads(__tstate);
18194 if (PyErr_Occurred()) SWIG_fail;
18195 }
18196 {
18197 resultobj = wxPyMake_wxObject(result);
18198 }
18199 return resultobj;
18200 fail:
18201 return NULL;
18202}
18203
18204
18205static PyObject * WindowDestroyEvent_swigregister(PyObject *self, PyObject *args) {
18206 PyObject *obj;
18207 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18208 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDestroyEvent, obj);
18209 Py_INCREF(obj);
18210 return Py_BuildValue((char *)"");
18211}
18212static PyObject *_wrap_new_ContextMenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18213 PyObject *resultobj;
18214 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
423f194a 18215 int arg2 = (int) 0 ;
d14a1e28
RD
18216 wxPoint const &arg3_defvalue = wxDefaultPosition ;
18217 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
18218 wxContextMenuEvent *result;
18219 wxPoint temp3 ;
8edf1c75
RD
18220 PyObject * obj0 = 0 ;
18221 PyObject * obj1 = 0 ;
d14a1e28
RD
18222 PyObject * obj2 = 0 ;
18223 char *kwnames[] = {
18224 (char *) "type",(char *) "winid",(char *) "pt", NULL
18225 };
18226
8edf1c75
RD
18227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ContextMenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
18228 if (obj0) {
18229 {
18230 arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0);
18231 if (PyErr_Occurred()) SWIG_fail;
18232 }
18233 }
18234 if (obj1) {
18235 {
18236 arg2 = (int) SWIG_PyObj_AsInt(obj1);
18237 if (PyErr_Occurred()) SWIG_fail;
18238 }
18239 }
d14a1e28
RD
18240 if (obj2) {
18241 {
18242 arg3 = &temp3;
18243 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18244 }
18245 }
18246 {
18247 PyThreadState* __tstate = wxPyBeginAllowThreads();
18248 result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3);
18249
18250 wxPyEndAllowThreads(__tstate);
18251 if (PyErr_Occurred()) SWIG_fail;
18252 }
18253 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxContextMenuEvent, 1);
18254 return resultobj;
18255 fail:
18256 return NULL;
18257}
18258
18259
18260static PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
18261 PyObject *resultobj;
18262 wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ;
18263 wxPoint *result;
18264 PyObject * obj0 = 0 ;
18265 char *kwnames[] = {
18266 (char *) "self", NULL
18267 };
18268
18269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextMenuEvent_GetPosition",kwnames,&obj0)) goto fail;
18270 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18271 {
18272 PyThreadState* __tstate = wxPyBeginAllowThreads();
18273 {
18274 wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition();
18275 result = (wxPoint *) &_result_ref;
18276 }
18277
18278 wxPyEndAllowThreads(__tstate);
18279 if (PyErr_Occurred()) SWIG_fail;
18280 }
18281 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0);
18282 return resultobj;
18283 fail:
18284 return NULL;
18285}
18286
18287
18288static PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
18289 PyObject *resultobj;
18290 wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ;
18291 wxPoint *arg2 = 0 ;
18292 wxPoint temp2 ;
18293 PyObject * obj0 = 0 ;
18294 PyObject * obj1 = 0 ;
18295 char *kwnames[] = {
18296 (char *) "self",(char *) "pos", NULL
18297 };
18298
18299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
18300 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextMenuEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18301 {
18302 arg2 = &temp2;
18303 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18304 }
18305 {
18306 PyThreadState* __tstate = wxPyBeginAllowThreads();
18307 (arg1)->SetPosition((wxPoint const &)*arg2);
18308
18309 wxPyEndAllowThreads(__tstate);
18310 if (PyErr_Occurred()) SWIG_fail;
18311 }
18312 Py_INCREF(Py_None); resultobj = Py_None;
18313 return resultobj;
18314 fail:
18315 return NULL;
18316}
18317
18318
18319static PyObject * ContextMenuEvent_swigregister(PyObject *self, PyObject *args) {
18320 PyObject *obj;
18321 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18322 SWIG_TypeClientData(SWIGTYPE_p_wxContextMenuEvent, obj);
18323 Py_INCREF(obj);
18324 return Py_BuildValue((char *)"");
18325}
18326static PyObject *_wrap_new_IdleEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18327 PyObject *resultobj;
18328 wxIdleEvent *result;
18329 char *kwnames[] = {
18330 NULL
18331 };
18332
18333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IdleEvent",kwnames)) goto fail;
18334 {
18335 PyThreadState* __tstate = wxPyBeginAllowThreads();
18336 result = (wxIdleEvent *)new wxIdleEvent();
18337
18338 wxPyEndAllowThreads(__tstate);
18339 if (PyErr_Occurred()) SWIG_fail;
18340 }
18341 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIdleEvent, 1);
18342 return resultobj;
18343 fail:
18344 return NULL;
18345}
18346
18347
18348static PyObject *_wrap_IdleEvent_RequestMore(PyObject *self, PyObject *args, PyObject *kwargs) {
18349 PyObject *resultobj;
18350 wxIdleEvent *arg1 = (wxIdleEvent *) 0 ;
423f194a 18351 bool arg2 = (bool) True ;
d14a1e28
RD
18352 PyObject * obj0 = 0 ;
18353 PyObject * obj1 = 0 ;
18354 char *kwnames[] = {
18355 (char *) "self",(char *) "needMore", NULL
18356 };
18357
18358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) goto fail;
18359 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIdleEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18360 if (obj1) {
83448d71 18361 {
8edf1c75 18362 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
18363 if (PyErr_Occurred()) SWIG_fail;
18364 }
d14a1e28
RD
18365 }
18366 {
18367 PyThreadState* __tstate = wxPyBeginAllowThreads();
18368 (arg1)->RequestMore(arg2);
18369
18370 wxPyEndAllowThreads(__tstate);
18371 if (PyErr_Occurred()) SWIG_fail;
18372 }
18373 Py_INCREF(Py_None); resultobj = Py_None;
18374 return resultobj;
18375 fail:
18376 return NULL;
18377}
18378
18379
18380static PyObject *_wrap_IdleEvent_MoreRequested(PyObject *self, PyObject *args, PyObject *kwargs) {
18381 PyObject *resultobj;
18382 wxIdleEvent *arg1 = (wxIdleEvent *) 0 ;
18383 bool result;
18384 PyObject * obj0 = 0 ;
18385 char *kwnames[] = {
18386 (char *) "self", NULL
18387 };
18388
18389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_MoreRequested",kwnames,&obj0)) goto fail;
18390 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIdleEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18391 {
18392 PyThreadState* __tstate = wxPyBeginAllowThreads();
18393 result = (bool)((wxIdleEvent const *)arg1)->MoreRequested();
18394
18395 wxPyEndAllowThreads(__tstate);
18396 if (PyErr_Occurred()) SWIG_fail;
18397 }
4e760a36 18398 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
18399 return resultobj;
18400 fail:
18401 return NULL;
18402}
18403
18404
18405static PyObject *_wrap_IdleEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) {
18406 PyObject *resultobj;
18407 int arg1 ;
8edf1c75 18408 PyObject * obj0 = 0 ;
d14a1e28
RD
18409 char *kwnames[] = {
18410 (char *) "mode", NULL
18411 };
18412
8edf1c75
RD
18413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_SetMode",kwnames,&obj0)) goto fail;
18414 {
18415 arg1 = (wxIdleMode) SWIG_PyObj_AsInt(obj0);
18416 if (PyErr_Occurred()) SWIG_fail;
18417 }
d14a1e28
RD
18418 {
18419 PyThreadState* __tstate = wxPyBeginAllowThreads();
18420 wxIdleEvent::SetMode((wxIdleMode )arg1);
18421
18422 wxPyEndAllowThreads(__tstate);
18423 if (PyErr_Occurred()) SWIG_fail;
18424 }
18425 Py_INCREF(Py_None); resultobj = Py_None;
18426 return resultobj;
18427 fail:
18428 return NULL;
18429}
18430
18431
18432static PyObject *_wrap_IdleEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) {
18433 PyObject *resultobj;
18434 int result;
18435 char *kwnames[] = {
18436 NULL
18437 };
18438
18439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IdleEvent_GetMode",kwnames)) goto fail;
18440 {
18441 PyThreadState* __tstate = wxPyBeginAllowThreads();
18442 result = (int)wxIdleEvent::GetMode();
18443
18444 wxPyEndAllowThreads(__tstate);
18445 if (PyErr_Occurred()) SWIG_fail;
18446 }
8edf1c75 18447 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
18448 return resultobj;
18449 fail:
18450 return NULL;
18451}
18452
18453
18454static PyObject *_wrap_IdleEvent_CanSend(PyObject *self, PyObject *args, PyObject *kwargs) {
18455 PyObject *resultobj;
18456 wxWindow *arg1 = (wxWindow *) 0 ;
18457 bool result;
18458 PyObject * obj0 = 0 ;
18459 char *kwnames[] = {
18460 (char *) "win", NULL
18461 };
18462
18463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) goto fail;
18464 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18465 {
18466 PyThreadState* __tstate = wxPyBeginAllowThreads();
18467 result = (bool)wxIdleEvent::CanSend(arg1);
18468
18469 wxPyEndAllowThreads(__tstate);
18470 if (PyErr_Occurred()) SWIG_fail;
18471 }
4e760a36 18472 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
18473 return resultobj;
18474 fail:
18475 return NULL;
18476}
18477
18478
18479static PyObject * IdleEvent_swigregister(PyObject *self, PyObject *args) {
18480 PyObject *obj;
18481 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18482 SWIG_TypeClientData(SWIGTYPE_p_wxIdleEvent, obj);
18483 Py_INCREF(obj);
18484 return Py_BuildValue((char *)"");
18485}
18486static PyObject *_wrap_new_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18487 PyObject *resultobj;
18488 int arg1 = (int) 0 ;
18489 wxEventType arg2 = (wxEventType) wxEVT_NULL ;
18490 wxPyEvent *result;
8edf1c75
RD
18491 PyObject * obj0 = 0 ;
18492 PyObject * obj1 = 0 ;
d14a1e28
RD
18493 char *kwnames[] = {
18494 (char *) "winid",(char *) "commandType", NULL
18495 };
18496
8edf1c75
RD
18497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyEvent",kwnames,&obj0,&obj1)) goto fail;
18498 if (obj0) {
18499 {
18500 arg1 = (int) SWIG_PyObj_AsInt(obj0);
18501 if (PyErr_Occurred()) SWIG_fail;
18502 }
18503 }
18504 if (obj1) {
18505 {
18506 arg2 = (wxEventType) SWIG_PyObj_AsInt(obj1);
18507 if (PyErr_Occurred()) SWIG_fail;
18508 }
18509 }
d14a1e28
RD
18510 {
18511 PyThreadState* __tstate = wxPyBeginAllowThreads();
18512 result = (wxPyEvent *)new wxPyEvent(arg1,arg2);
18513
18514 wxPyEndAllowThreads(__tstate);
18515 if (PyErr_Occurred()) SWIG_fail;
18516 }
18517 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyEvent, 1);
18518 return resultobj;
18519 fail:
18520 return NULL;
18521}
18522
18523
18524static PyObject *_wrap_delete_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18525 PyObject *resultobj;
18526 wxPyEvent *arg1 = (wxPyEvent *) 0 ;
18527 PyObject * obj0 = 0 ;
18528 char *kwnames[] = {
18529 (char *) "self", NULL
18530 };
18531
18532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyEvent",kwnames,&obj0)) goto fail;
18533 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18534 {
18535 PyThreadState* __tstate = wxPyBeginAllowThreads();
18536 delete arg1;
18537
18538 wxPyEndAllowThreads(__tstate);
18539 if (PyErr_Occurred()) SWIG_fail;
18540 }
18541 Py_INCREF(Py_None); resultobj = Py_None;
18542 return resultobj;
18543 fail:
18544 return NULL;
18545}
18546
18547
18548static PyObject *_wrap_PyEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) {
18549 PyObject *resultobj;
18550 wxPyEvent *arg1 = (wxPyEvent *) 0 ;
18551 PyObject *arg2 = (PyObject *) 0 ;
18552 PyObject * obj0 = 0 ;
18553 PyObject * obj1 = 0 ;
18554 char *kwnames[] = {
18555 (char *) "self",(char *) "self", NULL
18556 };
18557
18558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail;
18559 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18560 arg2 = obj1;
18561 {
18562 PyThreadState* __tstate = wxPyBeginAllowThreads();
18563 (arg1)->SetSelf(arg2);
18564
18565 wxPyEndAllowThreads(__tstate);
18566 if (PyErr_Occurred()) SWIG_fail;
18567 }
18568 Py_INCREF(Py_None); resultobj = Py_None;
18569 return resultobj;
18570 fail:
18571 return NULL;
18572}
18573
18574
18575static PyObject *_wrap_PyEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) {
18576 PyObject *resultobj;
18577 wxPyEvent *arg1 = (wxPyEvent *) 0 ;
18578 PyObject *result;
18579 PyObject * obj0 = 0 ;
18580 char *kwnames[] = {
18581 (char *) "self", NULL
18582 };
18583
18584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyEvent_GetSelf",kwnames,&obj0)) goto fail;
18585 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18586 {
18587 PyThreadState* __tstate = wxPyBeginAllowThreads();
18588 result = (PyObject *)(arg1)->GetSelf();
18589
18590 wxPyEndAllowThreads(__tstate);
18591 if (PyErr_Occurred()) SWIG_fail;
18592 }
18593 resultobj = result;
18594 return resultobj;
18595 fail:
18596 return NULL;
18597}
18598
18599
18600static PyObject * PyEvent_swigregister(PyObject *self, PyObject *args) {
18601 PyObject *obj;
18602 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18603 SWIG_TypeClientData(SWIGTYPE_p_wxPyEvent, obj);
18604 Py_INCREF(obj);
18605 return Py_BuildValue((char *)"");
18606}
18607static PyObject *_wrap_new_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18608 PyObject *resultobj;
18609 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
18610 int arg2 = (int) 0 ;
18611 wxPyCommandEvent *result;
8edf1c75
RD
18612 PyObject * obj0 = 0 ;
18613 PyObject * obj1 = 0 ;
d14a1e28
RD
18614 char *kwnames[] = {
18615 (char *) "commandType",(char *) "id", NULL
18616 };
18617
8edf1c75
RD
18618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyCommandEvent",kwnames,&obj0,&obj1)) goto fail;
18619 if (obj0) {
18620 {
18621 arg1 = (wxEventType) SWIG_PyObj_AsInt(obj0);
18622 if (PyErr_Occurred()) SWIG_fail;
18623 }
18624 }
18625 if (obj1) {
18626 {
18627 arg2 = (int) SWIG_PyObj_AsInt(obj1);
18628 if (PyErr_Occurred()) SWIG_fail;
18629 }
18630 }
d14a1e28
RD
18631 {
18632 PyThreadState* __tstate = wxPyBeginAllowThreads();
18633 result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2);
18634
18635 wxPyEndAllowThreads(__tstate);
18636 if (PyErr_Occurred()) SWIG_fail;
18637 }
18638 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyCommandEvent, 1);
18639 return resultobj;
18640 fail:
18641 return NULL;
18642}
18643
18644
18645static PyObject *_wrap_delete_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18646 PyObject *resultobj;
18647 wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ;
18648 PyObject * obj0 = 0 ;
18649 char *kwnames[] = {
18650 (char *) "self", NULL
18651 };
18652
18653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyCommandEvent",kwnames,&obj0)) goto fail;
18654 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18655 {
18656 PyThreadState* __tstate = wxPyBeginAllowThreads();
18657 delete arg1;
18658
18659 wxPyEndAllowThreads(__tstate);
18660 if (PyErr_Occurred()) SWIG_fail;
18661 }
18662 Py_INCREF(Py_None); resultobj = Py_None;
18663 return resultobj;
18664 fail:
18665 return NULL;
18666}
18667
18668
18669static PyObject *_wrap_PyCommandEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) {
18670 PyObject *resultobj;
18671 wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ;
18672 PyObject *arg2 = (PyObject *) 0 ;
18673 PyObject * obj0 = 0 ;
18674 PyObject * obj1 = 0 ;
18675 char *kwnames[] = {
18676 (char *) "self",(char *) "self", NULL
18677 };
18678
18679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail;
18680 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18681 arg2 = obj1;
18682 {
18683 PyThreadState* __tstate = wxPyBeginAllowThreads();
18684 (arg1)->SetSelf(arg2);
18685
18686 wxPyEndAllowThreads(__tstate);
18687 if (PyErr_Occurred()) SWIG_fail;
18688 }
18689 Py_INCREF(Py_None); resultobj = Py_None;
18690 return resultobj;
18691 fail:
18692 return NULL;
18693}
18694
18695
18696static PyObject *_wrap_PyCommandEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) {
18697 PyObject *resultobj;
18698 wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ;
18699 PyObject *result;
18700 PyObject * obj0 = 0 ;
18701 char *kwnames[] = {
18702 (char *) "self", NULL
18703 };
18704
18705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCommandEvent_GetSelf",kwnames,&obj0)) goto fail;
18706 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18707 {
18708 PyThreadState* __tstate = wxPyBeginAllowThreads();
18709 result = (PyObject *)(arg1)->GetSelf();
18710
18711 wxPyEndAllowThreads(__tstate);
18712 if (PyErr_Occurred()) SWIG_fail;
18713 }
18714 resultobj = result;
18715 return resultobj;
18716 fail:
18717 return NULL;
18718}
18719
18720
18721static PyObject * PyCommandEvent_swigregister(PyObject *self, PyObject *args) {
18722 PyObject *obj;
18723 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18724 SWIG_TypeClientData(SWIGTYPE_p_wxPyCommandEvent, obj);
18725 Py_INCREF(obj);
18726 return Py_BuildValue((char *)"");
18727}
18728static PyObject *_wrap_new_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) {
18729 PyObject *resultobj;
18730 wxPyApp *result;
18731 char *kwnames[] = {
18732 NULL
18733 };
18734
18735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyApp",kwnames)) goto fail;
18736 {
18737 PyThreadState* __tstate = wxPyBeginAllowThreads();
18738 result = (wxPyApp *)new_wxPyApp();
18739
18740 wxPyEndAllowThreads(__tstate);
18741 if (PyErr_Occurred()) SWIG_fail;
18742 }
18743 {
18744 resultobj = wxPyMake_wxObject(result);
18745 }
18746 return resultobj;
18747 fail:
18748 return NULL;
18749}
18750
18751
18752static PyObject *_wrap_delete_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) {
18753 PyObject *resultobj;
18754 wxPyApp *arg1 = (wxPyApp *) 0 ;
18755 PyObject * obj0 = 0 ;
18756 char *kwnames[] = {
18757 (char *) "self", NULL
18758 };
18759
18760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyApp",kwnames,&obj0)) goto fail;
18761 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18762 {
18763 PyThreadState* __tstate = wxPyBeginAllowThreads();
18764 delete arg1;
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
18776static PyObject *_wrap_PyApp__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
18777 PyObject *resultobj;
18778 wxPyApp *arg1 = (wxPyApp *) 0 ;
18779 PyObject *arg2 = (PyObject *) 0 ;
18780 PyObject *arg3 = (PyObject *) 0 ;
18781 PyObject * obj0 = 0 ;
18782 PyObject * obj1 = 0 ;
18783 PyObject * obj2 = 0 ;
18784 char *kwnames[] = {
18785 (char *) "self",(char *) "self",(char *) "_class", NULL
18786 };
18787
18788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
18789 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18790 arg2 = obj1;
18791 arg3 = obj2;
18792 {
18793 PyThreadState* __tstate = wxPyBeginAllowThreads();
18794 (arg1)->_setCallbackInfo(arg2,arg3);
18795
18796 wxPyEndAllowThreads(__tstate);
18797 if (PyErr_Occurred()) SWIG_fail;
18798 }
18799 Py_INCREF(Py_None); resultobj = Py_None;
18800 return resultobj;
18801 fail:
18802 return NULL;
18803}
18804
18805
18806static PyObject *_wrap_PyApp_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
18807 PyObject *resultobj;
18808 wxPyApp *arg1 = (wxPyApp *) 0 ;
18809 wxString result;
18810 PyObject * obj0 = 0 ;
18811 char *kwnames[] = {
18812 (char *) "self", NULL
18813 };
18814
18815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAppName",kwnames,&obj0)) goto fail;
18816 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18817 {
18818 PyThreadState* __tstate = wxPyBeginAllowThreads();
18819 result = ((wxPyApp const *)arg1)->GetAppName();
18820
18821 wxPyEndAllowThreads(__tstate);
18822 if (PyErr_Occurred()) SWIG_fail;
18823 }
18824 {
18825#if wxUSE_UNICODE
18826 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18827#else
18828 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18829#endif
18830 }
18831 return resultobj;
18832 fail:
18833 return NULL;
18834}
18835
18836
18837static PyObject *_wrap_PyApp_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
18838 PyObject *resultobj;
18839 wxPyApp *arg1 = (wxPyApp *) 0 ;
18840 wxString *arg2 = 0 ;
423f194a 18841 bool temp2 = False ;
d14a1e28
RD
18842 PyObject * obj0 = 0 ;
18843 PyObject * obj1 = 0 ;
18844 char *kwnames[] = {
18845 (char *) "self",(char *) "name", NULL
18846 };
18847
18848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",kwnames,&obj0,&obj1)) goto fail;
18849 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18850 {
18851 arg2 = wxString_in_helper(obj1);
18852 if (arg2 == NULL) SWIG_fail;
423f194a 18853 temp2 = True;
d14a1e28
RD
18854 }
18855 {
18856 PyThreadState* __tstate = wxPyBeginAllowThreads();
18857 (arg1)->SetAppName((wxString const &)*arg2);
18858
18859 wxPyEndAllowThreads(__tstate);
18860 if (PyErr_Occurred()) SWIG_fail;
18861 }
18862 Py_INCREF(Py_None); resultobj = Py_None;
18863 {
18864 if (temp2)
18865 delete arg2;
18866 }
18867 return resultobj;
18868 fail:
18869 {
18870 if (temp2)
18871 delete arg2;
18872 }
18873 return NULL;
18874}
18875
18876
18877static PyObject *_wrap_PyApp_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) {
18878 PyObject *resultobj;
18879 wxPyApp *arg1 = (wxPyApp *) 0 ;
18880 wxString result;
18881 PyObject * obj0 = 0 ;
18882 char *kwnames[] = {
18883 (char *) "self", NULL
18884 };
18885
18886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetClassName",kwnames,&obj0)) goto fail;
18887 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18888 {
18889 PyThreadState* __tstate = wxPyBeginAllowThreads();
18890 result = ((wxPyApp const *)arg1)->GetClassName();
18891
18892 wxPyEndAllowThreads(__tstate);
18893 if (PyErr_Occurred()) SWIG_fail;
18894 }
18895 {
18896#if wxUSE_UNICODE
18897 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18898#else
18899 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18900#endif
18901 }
18902 return resultobj;
18903 fail:
18904 return NULL;
18905}
18906
18907
18908static PyObject *_wrap_PyApp_SetClassName(PyObject *self, PyObject *args, PyObject *kwargs) {
18909 PyObject *resultobj;
18910 wxPyApp *arg1 = (wxPyApp *) 0 ;
18911 wxString *arg2 = 0 ;
423f194a 18912 bool temp2 = False ;
d14a1e28
RD
18913 PyObject * obj0 = 0 ;
18914 PyObject * obj1 = 0 ;
18915 char *kwnames[] = {
18916 (char *) "self",(char *) "name", NULL
18917 };
18918
18919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) goto fail;
18920 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18921 {
18922 arg2 = wxString_in_helper(obj1);
18923 if (arg2 == NULL) SWIG_fail;
423f194a 18924 temp2 = True;
d14a1e28
RD
18925 }
18926 {
18927 PyThreadState* __tstate = wxPyBeginAllowThreads();
18928 (arg1)->SetClassName((wxString const &)*arg2);
18929
18930 wxPyEndAllowThreads(__tstate);
18931 if (PyErr_Occurred()) SWIG_fail;
18932 }
18933 Py_INCREF(Py_None); resultobj = Py_None;
18934 {
18935 if (temp2)
18936 delete arg2;
18937 }
18938 return resultobj;
18939 fail:
18940 {
18941 if (temp2)
18942 delete arg2;
18943 }
18944 return NULL;
18945}
18946
18947
18948static PyObject *_wrap_PyApp_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
18949 PyObject *resultobj;
18950 wxPyApp *arg1 = (wxPyApp *) 0 ;
18951 wxString *result;
18952 PyObject * obj0 = 0 ;
18953 char *kwnames[] = {
18954 (char *) "self", NULL
18955 };
18956
18957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetVendorName",kwnames,&obj0)) goto fail;
18958 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18959 {
18960 PyThreadState* __tstate = wxPyBeginAllowThreads();
18961 {
18962 wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName();
18963 result = (wxString *) &_result_ref;
18964 }
18965
18966 wxPyEndAllowThreads(__tstate);
18967 if (PyErr_Occurred()) SWIG_fail;
18968 }
f0983263
RD
18969 {
18970#if wxUSE_UNICODE
18971 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
18972#else
18973 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
18974#endif
18975 }
d14a1e28
RD
18976 return resultobj;
18977 fail:
18978 return NULL;
18979}
18980
18981
18982static PyObject *_wrap_PyApp_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
18983 PyObject *resultobj;
18984 wxPyApp *arg1 = (wxPyApp *) 0 ;
18985 wxString *arg2 = 0 ;
423f194a 18986 bool temp2 = False ;
d14a1e28
RD
18987 PyObject * obj0 = 0 ;
18988 PyObject * obj1 = 0 ;
18989 char *kwnames[] = {
18990 (char *) "self",(char *) "name", NULL
18991 };
18992
18993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) goto fail;
18994 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18995 {
18996 arg2 = wxString_in_helper(obj1);
18997 if (arg2 == NULL) SWIG_fail;
423f194a 18998 temp2 = True;
d14a1e28
RD
18999 }
19000 {
19001 PyThreadState* __tstate = wxPyBeginAllowThreads();
19002 (arg1)->SetVendorName((wxString const &)*arg2);
19003
19004 wxPyEndAllowThreads(__tstate);
19005 if (PyErr_Occurred()) SWIG_fail;
19006 }
19007 Py_INCREF(Py_None); resultobj = Py_None;
19008 {
19009 if (temp2)
19010 delete arg2;
19011 }
19012 return resultobj;
19013 fail:
19014 {
19015 if (temp2)
19016 delete arg2;
19017 }
19018 return NULL;
19019}
19020
19021
19022static PyObject *_wrap_PyApp_GetTraits(PyObject *self, PyObject *args, PyObject *kwargs) {
19023 PyObject *resultobj;
19024 wxPyApp *arg1 = (wxPyApp *) 0 ;
19025 wxAppTraits *result;
19026 PyObject * obj0 = 0 ;
19027 char *kwnames[] = {
19028 (char *) "self", NULL
19029 };
19030
19031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTraits",kwnames,&obj0)) goto fail;
19032 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19033 {
19034 PyThreadState* __tstate = wxPyBeginAllowThreads();
19035 result = (wxAppTraits *)(arg1)->GetTraits();
19036
19037 wxPyEndAllowThreads(__tstate);
19038 if (PyErr_Occurred()) SWIG_fail;
19039 }
19040 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAppTraits, 0);
19041 return resultobj;
19042 fail:
19043 return NULL;
19044}
19045
19046
19047static PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) {
19048 PyObject *resultobj;
19049 wxPyApp *arg1 = (wxPyApp *) 0 ;
19050 PyObject * obj0 = 0 ;
19051 char *kwnames[] = {
19052 (char *) "self", NULL
19053 };
19054
19055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessPendingEvents",kwnames,&obj0)) goto fail;
19056 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19057 {
19058 PyThreadState* __tstate = wxPyBeginAllowThreads();
19059 (arg1)->ProcessPendingEvents();
19060
19061 wxPyEndAllowThreads(__tstate);
19062 if (PyErr_Occurred()) SWIG_fail;
19063 }
19064 Py_INCREF(Py_None); resultobj = Py_None;
19065 return resultobj;
19066 fail:
19067 return NULL;
19068}
19069
19070
19071static PyObject *_wrap_PyApp_Yield(PyObject *self, PyObject *args, PyObject *kwargs) {
19072 PyObject *resultobj;
19073 wxPyApp *arg1 = (wxPyApp *) 0 ;
423f194a 19074 bool arg2 = (bool) False ;
d14a1e28
RD
19075 bool result;
19076 PyObject * obj0 = 0 ;
19077 PyObject * obj1 = 0 ;
19078 char *kwnames[] = {
19079 (char *) "self",(char *) "onlyIfNeeded", NULL
19080 };
19081
19082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) goto fail;
19083 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19084 if (obj1) {
83448d71 19085 {
8edf1c75 19086 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
19087 if (PyErr_Occurred()) SWIG_fail;
19088 }
d14a1e28
RD
19089 }
19090 {
19091 PyThreadState* __tstate = wxPyBeginAllowThreads();
19092 result = (bool)(arg1)->Yield(arg2);
19093
19094 wxPyEndAllowThreads(__tstate);
19095 if (PyErr_Occurred()) SWIG_fail;
19096 }
4e760a36 19097 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
19098 return resultobj;
19099 fail:
19100 return NULL;
19101}
19102
19103
19104static PyObject *_wrap_PyApp_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) {
19105 PyObject *resultobj;
19106 wxPyApp *arg1 = (wxPyApp *) 0 ;
19107 PyObject * obj0 = 0 ;
19108 char *kwnames[] = {
19109 (char *) "self", NULL
19110 };
19111
19112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_WakeUpIdle",kwnames,&obj0)) goto fail;
19113 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19114 {
19115 PyThreadState* __tstate = wxPyBeginAllowThreads();
19116 (arg1)->WakeUpIdle();
19117
19118 wxPyEndAllowThreads(__tstate);
19119 if (PyErr_Occurred()) SWIG_fail;
19120 }
19121 Py_INCREF(Py_None); resultobj = Py_None;
19122 return resultobj;
19123 fail:
19124 return NULL;
19125}
19126
19127
19128static PyObject *_wrap_PyApp_MainLoop(PyObject *self, PyObject *args, PyObject *kwargs) {
19129 PyObject *resultobj;
19130 wxPyApp *arg1 = (wxPyApp *) 0 ;
19131 int result;
19132 PyObject * obj0 = 0 ;
19133 char *kwnames[] = {
19134 (char *) "self", NULL
19135 };
19136
19137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_MainLoop",kwnames,&obj0)) goto fail;
19138 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19139 {
19140 PyThreadState* __tstate = wxPyBeginAllowThreads();
19141 result = (int)(arg1)->MainLoop();
19142
19143 wxPyEndAllowThreads(__tstate);
19144 if (PyErr_Occurred()) SWIG_fail;
19145 }
8edf1c75 19146 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
19147 return resultobj;
19148 fail:
19149 return NULL;
19150}
19151
19152
19153static PyObject *_wrap_PyApp_Exit(PyObject *self, PyObject *args, PyObject *kwargs) {
19154 PyObject *resultobj;
19155 wxPyApp *arg1 = (wxPyApp *) 0 ;
19156 PyObject * obj0 = 0 ;
19157 char *kwnames[] = {
19158 (char *) "self", NULL
19159 };
19160
19161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Exit",kwnames,&obj0)) goto fail;
19162 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19163 {
19164 PyThreadState* __tstate = wxPyBeginAllowThreads();
19165 (arg1)->Exit();
19166
19167 wxPyEndAllowThreads(__tstate);
19168 if (PyErr_Occurred()) SWIG_fail;
19169 }
19170 Py_INCREF(Py_None); resultobj = Py_None;
19171 return resultobj;
19172 fail:
19173 return NULL;
19174}
19175
19176
19177static PyObject *_wrap_PyApp_ExitMainLoop(PyObject *self, PyObject *args, PyObject *kwargs) {
19178 PyObject *resultobj;
19179 wxPyApp *arg1 = (wxPyApp *) 0 ;
19180 PyObject * obj0 = 0 ;
19181 char *kwnames[] = {
19182 (char *) "self", NULL
19183 };
19184
19185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ExitMainLoop",kwnames,&obj0)) goto fail;
19186 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19187 {
19188 PyThreadState* __tstate = wxPyBeginAllowThreads();
19189 (arg1)->ExitMainLoop();
19190
19191 wxPyEndAllowThreads(__tstate);
19192 if (PyErr_Occurred()) SWIG_fail;
19193 }
19194 Py_INCREF(Py_None); resultobj = Py_None;
19195 return resultobj;
19196 fail:
19197 return NULL;
19198}
19199
19200
19201static PyObject *_wrap_PyApp_Pending(PyObject *self, PyObject *args, PyObject *kwargs) {
19202 PyObject *resultobj;
19203 wxPyApp *arg1 = (wxPyApp *) 0 ;
19204 bool result;
19205 PyObject * obj0 = 0 ;
19206 char *kwnames[] = {
19207 (char *) "self", NULL
19208 };
19209
19210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Pending",kwnames,&obj0)) goto fail;
19211 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19212 {
19213 PyThreadState* __tstate = wxPyBeginAllowThreads();
19214 result = (bool)(arg1)->Pending();
19215
19216 wxPyEndAllowThreads(__tstate);
19217 if (PyErr_Occurred()) SWIG_fail;
19218 }
4e760a36 19219 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
19220 return resultobj;
19221 fail:
19222 return NULL;
19223}
19224
19225
19226static PyObject *_wrap_PyApp_Dispatch(PyObject *self, PyObject *args, PyObject *kwargs) {
19227 PyObject *resultobj;
19228 wxPyApp *arg1 = (wxPyApp *) 0 ;
19229 bool result;
19230 PyObject * obj0 = 0 ;
19231 char *kwnames[] = {
19232 (char *) "self", NULL
19233 };
19234
19235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Dispatch",kwnames,&obj0)) goto fail;
19236 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19237 {
19238 PyThreadState* __tstate = wxPyBeginAllowThreads();
19239 result = (bool)(arg1)->Dispatch();
19240
19241 wxPyEndAllowThreads(__tstate);
19242 if (PyErr_Occurred()) SWIG_fail;
19243 }
4e760a36 19244 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
19245 return resultobj;
19246 fail:
19247 return NULL;
19248}
19249
19250
19251static PyObject *_wrap_PyApp_ProcessIdle(PyObject *self, PyObject *args, PyObject *kwargs) {
19252 PyObject *resultobj;
19253 wxPyApp *arg1 = (wxPyApp *) 0 ;
19254 bool result;
19255 PyObject * obj0 = 0 ;
19256 char *kwnames[] = {
19257 (char *) "self", NULL
19258 };
19259
19260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessIdle",kwnames,&obj0)) goto fail;
19261 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19262 {
19263 PyThreadState* __tstate = wxPyBeginAllowThreads();
19264 result = (bool)(arg1)->ProcessIdle();
19265
19266 wxPyEndAllowThreads(__tstate);
19267 if (PyErr_Occurred()) SWIG_fail;
19268 }
4e760a36 19269 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
19270 return resultobj;
19271 fail:
19272 return NULL;
19273}
19274
19275
19276static PyObject *_wrap_PyApp_SendIdleEvents(PyObject *self, PyObject *args, PyObject *kwargs) {
19277 PyObject *resultobj;
19278 wxPyApp *arg1 = (wxPyApp *) 0 ;
19279 wxWindow *arg2 = (wxWindow *) 0 ;
19280 wxIdleEvent *arg3 = 0 ;
19281 bool result;
19282 PyObject * obj0 = 0 ;
19283 PyObject * obj1 = 0 ;
19284 PyObject * obj2 = 0 ;
19285 char *kwnames[] = {
19286 (char *) "self",(char *) "win",(char *) "event", NULL
19287 };
19288
19289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) goto fail;
19290 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19291 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19292 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxIdleEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19293 if (arg3 == NULL) {
19294 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
19295 }
19296 {
19297 PyThreadState* __tstate = wxPyBeginAllowThreads();
19298 result = (bool)(arg1)->SendIdleEvents(arg2,*arg3);
19299
19300 wxPyEndAllowThreads(__tstate);
19301 if (PyErr_Occurred()) SWIG_fail;
19302 }
4e760a36 19303 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
19304 return resultobj;
19305 fail:
19306 return NULL;
19307}
19308
19309
d14a1e28
RD
19310static PyObject *_wrap_PyApp_IsActive(PyObject *self, PyObject *args, PyObject *kwargs) {
19311 PyObject *resultobj;
19312 wxPyApp *arg1 = (wxPyApp *) 0 ;
19313 bool result;
19314 PyObject * obj0 = 0 ;
19315 char *kwnames[] = {
19316 (char *) "self", NULL
19317 };
19318
19319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_IsActive",kwnames,&obj0)) goto fail;
19320 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19321 {
19322 PyThreadState* __tstate = wxPyBeginAllowThreads();
19323 result = (bool)((wxPyApp const *)arg1)->IsActive();
19324
19325 wxPyEndAllowThreads(__tstate);
19326 if (PyErr_Occurred()) SWIG_fail;
19327 }
4e760a36 19328 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
19329 return resultobj;
19330 fail:
19331 return NULL;
19332}
19333
19334
19335static PyObject *_wrap_PyApp_SetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
19336 PyObject *resultobj;
19337 wxPyApp *arg1 = (wxPyApp *) 0 ;
19338 wxWindow *arg2 = (wxWindow *) 0 ;
19339 PyObject * obj0 = 0 ;
19340 PyObject * obj1 = 0 ;
19341 char *kwnames[] = {
19342 (char *) "self",(char *) "win", NULL
19343 };
19344
19345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) goto fail;
19346 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19347 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19348 {
19349 PyThreadState* __tstate = wxPyBeginAllowThreads();
19350 (arg1)->SetTopWindow(arg2);
19351
19352 wxPyEndAllowThreads(__tstate);
19353 if (PyErr_Occurred()) SWIG_fail;
19354 }
19355 Py_INCREF(Py_None); resultobj = Py_None;
19356 return resultobj;
19357 fail:
19358 return NULL;
19359}
19360
19361
19362static PyObject *_wrap_PyApp_GetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
19363 PyObject *resultobj;
19364 wxPyApp *arg1 = (wxPyApp *) 0 ;
19365 wxWindow *result;
19366 PyObject * obj0 = 0 ;
19367 char *kwnames[] = {
19368 (char *) "self", NULL
19369 };
19370
19371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTopWindow",kwnames,&obj0)) goto fail;
19372 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19373 {
19374 PyThreadState* __tstate = wxPyBeginAllowThreads();
19375 result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow();
19376
19377 wxPyEndAllowThreads(__tstate);
19378 if (PyErr_Occurred()) SWIG_fail;
19379 }
19380 {
19381 resultobj = wxPyMake_wxObject(result);
19382 }
19383 return resultobj;
19384 fail:
19385 return NULL;
19386}
19387
19388
19389static PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) {
19390 PyObject *resultobj;
19391 wxPyApp *arg1 = (wxPyApp *) 0 ;
19392 bool arg2 ;
19393 PyObject * obj0 = 0 ;
19394 PyObject * obj1 = 0 ;
19395 char *kwnames[] = {
19396 (char *) "self",(char *) "flag", NULL
19397 };
19398
19399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) goto fail;
19400 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 19401 {
8edf1c75 19402 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
19403 if (PyErr_Occurred()) SWIG_fail;
19404 }
d14a1e28
RD
19405 {
19406 PyThreadState* __tstate = wxPyBeginAllowThreads();
19407 (arg1)->SetExitOnFrameDelete(arg2);
19408
19409 wxPyEndAllowThreads(__tstate);
19410 if (PyErr_Occurred()) SWIG_fail;
19411 }
19412 Py_INCREF(Py_None); resultobj = Py_None;
19413 return resultobj;
19414 fail:
19415 return NULL;
19416}
19417
19418
19419static PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) {
19420 PyObject *resultobj;
19421 wxPyApp *arg1 = (wxPyApp *) 0 ;
19422 bool result;
19423 PyObject * obj0 = 0 ;
19424 char *kwnames[] = {
19425 (char *) "self", NULL
19426 };
19427
19428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetExitOnFrameDelete",kwnames,&obj0)) goto fail;
19429 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19430 {
19431 PyThreadState* __tstate = wxPyBeginAllowThreads();
19432 result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete();
19433
19434 wxPyEndAllowThreads(__tstate);
19435 if (PyErr_Occurred()) SWIG_fail;
19436 }
4e760a36 19437 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
19438 return resultobj;
19439 fail:
19440 return NULL;
19441}
19442
19443
19444static PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) {
19445 PyObject *resultobj;
19446 wxPyApp *arg1 = (wxPyApp *) 0 ;
19447 bool arg2 ;
19448 PyObject * obj0 = 0 ;
19449 PyObject * obj1 = 0 ;
19450 char *kwnames[] = {
19451 (char *) "self",(char *) "flag", NULL
19452 };
19453
19454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) goto fail;
19455 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 19456 {
8edf1c75 19457 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
19458 if (PyErr_Occurred()) SWIG_fail;
19459 }
d14a1e28
RD
19460 {
19461 PyThreadState* __tstate = wxPyBeginAllowThreads();
19462 (arg1)->SetUseBestVisual(arg2);
19463
19464 wxPyEndAllowThreads(__tstate);
19465 if (PyErr_Occurred()) SWIG_fail;
19466 }
19467 Py_INCREF(Py_None); resultobj = Py_None;
19468 return resultobj;
19469 fail:
19470 return NULL;
19471}
19472
19473
19474static PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) {
19475 PyObject *resultobj;
19476 wxPyApp *arg1 = (wxPyApp *) 0 ;
19477 bool result;
19478 PyObject * obj0 = 0 ;
19479 char *kwnames[] = {
19480 (char *) "self", NULL
19481 };
19482
19483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetUseBestVisual",kwnames,&obj0)) goto fail;
19484 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19485 {
19486 PyThreadState* __tstate = wxPyBeginAllowThreads();
19487 result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual();
19488
19489 wxPyEndAllowThreads(__tstate);
19490 if (PyErr_Occurred()) SWIG_fail;
19491 }
4e760a36 19492 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
19493 return resultobj;
19494 fail:
19495 return NULL;
19496}
19497
19498
19499static PyObject *_wrap_PyApp_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) {
19500 PyObject *resultobj;
19501 wxPyApp *arg1 = (wxPyApp *) 0 ;
19502 int arg2 ;
19503 PyObject * obj0 = 0 ;
8edf1c75 19504 PyObject * obj1 = 0 ;
d14a1e28
RD
19505 char *kwnames[] = {
19506 (char *) "self",(char *) "mode", NULL
19507 };
19508
8edf1c75 19509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetPrintMode",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 19510 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
19511 {
19512 arg2 = (int) SWIG_PyObj_AsInt(obj1);
19513 if (PyErr_Occurred()) SWIG_fail;
19514 }
d14a1e28
RD
19515 {
19516 PyThreadState* __tstate = wxPyBeginAllowThreads();
19517 (arg1)->SetPrintMode(arg2);
19518
19519 wxPyEndAllowThreads(__tstate);
19520 if (PyErr_Occurred()) SWIG_fail;
19521 }
19522 Py_INCREF(Py_None); resultobj = Py_None;
19523 return resultobj;
19524 fail:
19525 return NULL;
19526}
19527
19528
19529static PyObject *_wrap_PyApp_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) {
19530 PyObject *resultobj;
19531 wxPyApp *arg1 = (wxPyApp *) 0 ;
19532 int result;
19533 PyObject * obj0 = 0 ;
19534 char *kwnames[] = {
19535 (char *) "self", NULL
19536 };
19537
19538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetPrintMode",kwnames,&obj0)) goto fail;
19539 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19540 {
19541 PyThreadState* __tstate = wxPyBeginAllowThreads();
19542 result = (int)((wxPyApp const *)arg1)->GetPrintMode();
19543
19544 wxPyEndAllowThreads(__tstate);
19545 if (PyErr_Occurred()) SWIG_fail;
19546 }
8edf1c75 19547 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
19548 return resultobj;
19549 fail:
19550 return NULL;
19551}
19552
19553
44127b65 19554static PyObject *_wrap_PyApp_SetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
19555 PyObject *resultobj;
19556 wxPyApp *arg1 = (wxPyApp *) 0 ;
44127b65 19557 int arg2 ;
d14a1e28 19558 PyObject * obj0 = 0 ;
8edf1c75 19559 PyObject * obj1 = 0 ;
d14a1e28 19560 char *kwnames[] = {
44127b65 19561 (char *) "self",(char *) "mode", NULL
d14a1e28
RD
19562 };
19563
8edf1c75 19564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAssertMode",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 19565 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
19566 {
19567 arg2 = (int) SWIG_PyObj_AsInt(obj1);
19568 if (PyErr_Occurred()) SWIG_fail;
19569 }
d14a1e28
RD
19570 {
19571 PyThreadState* __tstate = wxPyBeginAllowThreads();
44127b65 19572 (arg1)->SetAssertMode(arg2);
d14a1e28
RD
19573
19574 wxPyEndAllowThreads(__tstate);
19575 if (PyErr_Occurred()) SWIG_fail;
19576 }
44127b65 19577 Py_INCREF(Py_None); resultobj = Py_None;
d14a1e28
RD
19578 return resultobj;
19579 fail:
19580 return NULL;
19581}
19582
19583
44127b65 19584static PyObject *_wrap_PyApp_GetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
19585 PyObject *resultobj;
19586 wxPyApp *arg1 = (wxPyApp *) 0 ;
44127b65 19587 int result;
d14a1e28
RD
19588 PyObject * obj0 = 0 ;
19589 char *kwnames[] = {
44127b65 19590 (char *) "self", NULL
d14a1e28
RD
19591 };
19592
44127b65 19593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAssertMode",kwnames,&obj0)) goto fail;
d14a1e28
RD
19594 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19595 {
19596 PyThreadState* __tstate = wxPyBeginAllowThreads();
44127b65 19597 result = (int)(arg1)->GetAssertMode();
d14a1e28
RD
19598
19599 wxPyEndAllowThreads(__tstate);
19600 if (PyErr_Occurred()) SWIG_fail;
19601 }
8edf1c75 19602 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
19603 return resultobj;
19604 fail:
19605 return NULL;
19606}
19607
19608
19609static PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) {
19610 PyObject *resultobj;
19611 bool result;
19612 char *kwnames[] = {
19613 NULL
19614 };
19615
19616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacSupportPCMenuShortcuts",kwnames)) goto fail;
19617 {
19618 PyThreadState* __tstate = wxPyBeginAllowThreads();
19619 result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts();
19620
19621 wxPyEndAllowThreads(__tstate);
19622 if (PyErr_Occurred()) SWIG_fail;
19623 }
4e760a36 19624 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
19625 return resultobj;
19626 fail:
19627 return NULL;
19628}
19629
19630
19631static PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
19632 PyObject *resultobj;
19633 long result;
19634 char *kwnames[] = {
19635 NULL
19636 };
19637
19638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacAboutMenuItemId",kwnames)) goto fail;
19639 {
19640 PyThreadState* __tstate = wxPyBeginAllowThreads();
19641 result = (long)wxPyApp::GetMacAboutMenuItemId();
19642
19643 wxPyEndAllowThreads(__tstate);
19644 if (PyErr_Occurred()) SWIG_fail;
19645 }
8edf1c75 19646 resultobj = SWIG_PyObj_FromLong((long)result);
d14a1e28
RD
19647 return resultobj;
19648 fail:
19649 return NULL;
19650}
19651
19652
19653static PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
19654 PyObject *resultobj;
19655 long result;
19656 char *kwnames[] = {
19657 NULL
19658 };
19659
19660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacPreferencesMenuItemId",kwnames)) goto fail;
19661 {
19662 PyThreadState* __tstate = wxPyBeginAllowThreads();
19663 result = (long)wxPyApp::GetMacPreferencesMenuItemId();
19664
19665 wxPyEndAllowThreads(__tstate);
19666 if (PyErr_Occurred()) SWIG_fail;
19667 }
8edf1c75 19668 resultobj = SWIG_PyObj_FromLong((long)result);
d14a1e28
RD
19669 return resultobj;
19670 fail:
19671 return NULL;
19672}
19673
19674
19675static PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
19676 PyObject *resultobj;
19677 long result;
19678 char *kwnames[] = {
19679 NULL
19680 };
19681
19682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacExitMenuItemId",kwnames)) goto fail;
19683 {
19684 PyThreadState* __tstate = wxPyBeginAllowThreads();
19685 result = (long)wxPyApp::GetMacExitMenuItemId();
19686
19687 wxPyEndAllowThreads(__tstate);
19688 if (PyErr_Occurred()) SWIG_fail;
19689 }
8edf1c75 19690 resultobj = SWIG_PyObj_FromLong((long)result);
d14a1e28
RD
19691 return resultobj;
19692 fail:
19693 return NULL;
19694}
19695
19696
19697static PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) {
19698 PyObject *resultobj;
19699 wxString result;
19700 char *kwnames[] = {
19701 NULL
19702 };
19703
19704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacHelpMenuTitleName",kwnames)) goto fail;
19705 {
19706 PyThreadState* __tstate = wxPyBeginAllowThreads();
19707 result = wxPyApp::GetMacHelpMenuTitleName();
19708
19709 wxPyEndAllowThreads(__tstate);
19710 if (PyErr_Occurred()) SWIG_fail;
19711 }
19712 {
19713#if wxUSE_UNICODE
19714 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19715#else
19716 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19717#endif
19718 }
19719 return resultobj;
19720 fail:
19721 return NULL;
19722}
19723
19724
19725static PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) {
19726 PyObject *resultobj;
19727 bool arg1 ;
19728 PyObject * obj0 = 0 ;
19729 char *kwnames[] = {
19730 (char *) "val", NULL
19731 };
19732
19733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) goto fail;
83448d71 19734 {
8edf1c75 19735 arg1 = (bool) SWIG_PyObj_AsBool(obj0);
83448d71
RD
19736 if (PyErr_Occurred()) SWIG_fail;
19737 }
d14a1e28
RD
19738 {
19739 PyThreadState* __tstate = wxPyBeginAllowThreads();
19740 wxPyApp::SetMacSupportPCMenuShortcuts(arg1);
19741
19742 wxPyEndAllowThreads(__tstate);
19743 if (PyErr_Occurred()) SWIG_fail;
19744 }
19745 Py_INCREF(Py_None); resultobj = Py_None;
19746 return resultobj;
19747 fail:
19748 return NULL;
19749}
19750
19751
19752static PyObject *_wrap_PyApp_SetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
19753 PyObject *resultobj;
19754 long arg1 ;
8edf1c75 19755 PyObject * obj0 = 0 ;
d14a1e28
RD
19756 char *kwnames[] = {
19757 (char *) "val", NULL
19758 };
19759
8edf1c75
RD
19760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacAboutMenuItemId",kwnames,&obj0)) goto fail;
19761 {
19762 arg1 = (long) SWIG_PyObj_AsLong(obj0);
19763 if (PyErr_Occurred()) SWIG_fail;
19764 }
d14a1e28
RD
19765 {
19766 PyThreadState* __tstate = wxPyBeginAllowThreads();
19767 wxPyApp::SetMacAboutMenuItemId(arg1);
19768
19769 wxPyEndAllowThreads(__tstate);
19770 if (PyErr_Occurred()) SWIG_fail;
19771 }
19772 Py_INCREF(Py_None); resultobj = Py_None;
19773 return resultobj;
19774 fail:
19775 return NULL;
19776}
19777
19778
19779static PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
19780 PyObject *resultobj;
19781 long arg1 ;
8edf1c75 19782 PyObject * obj0 = 0 ;
d14a1e28
RD
19783 char *kwnames[] = {
19784 (char *) "val", NULL
19785 };
19786
8edf1c75
RD
19787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacPreferencesMenuItemId",kwnames,&obj0)) goto fail;
19788 {
19789 arg1 = (long) SWIG_PyObj_AsLong(obj0);
19790 if (PyErr_Occurred()) SWIG_fail;
19791 }
d14a1e28
RD
19792 {
19793 PyThreadState* __tstate = wxPyBeginAllowThreads();
19794 wxPyApp::SetMacPreferencesMenuItemId(arg1);
19795
19796 wxPyEndAllowThreads(__tstate);
19797 if (PyErr_Occurred()) SWIG_fail;
19798 }
19799 Py_INCREF(Py_None); resultobj = Py_None;
19800 return resultobj;
19801 fail:
19802 return NULL;
19803}
19804
19805
19806static PyObject *_wrap_PyApp_SetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
19807 PyObject *resultobj;
19808 long arg1 ;
8edf1c75 19809 PyObject * obj0 = 0 ;
d14a1e28
RD
19810 char *kwnames[] = {
19811 (char *) "val", NULL
19812 };
19813
8edf1c75
RD
19814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacExitMenuItemId",kwnames,&obj0)) goto fail;
19815 {
19816 arg1 = (long) SWIG_PyObj_AsLong(obj0);
19817 if (PyErr_Occurred()) SWIG_fail;
19818 }
d14a1e28
RD
19819 {
19820 PyThreadState* __tstate = wxPyBeginAllowThreads();
19821 wxPyApp::SetMacExitMenuItemId(arg1);
19822
19823 wxPyEndAllowThreads(__tstate);
19824 if (PyErr_Occurred()) SWIG_fail;
19825 }
19826 Py_INCREF(Py_None); resultobj = Py_None;
19827 return resultobj;
19828 fail:
19829 return NULL;
19830}
19831
19832
19833static PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) {
19834 PyObject *resultobj;
19835 wxString *arg1 = 0 ;
423f194a 19836 bool temp1 = False ;
d14a1e28
RD
19837 PyObject * obj0 = 0 ;
19838 char *kwnames[] = {
19839 (char *) "val", NULL
19840 };
19841
19842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) goto fail;
19843 {
19844 arg1 = wxString_in_helper(obj0);
19845 if (arg1 == NULL) SWIG_fail;
423f194a 19846 temp1 = True;
d14a1e28
RD
19847 }
19848 {
19849 PyThreadState* __tstate = wxPyBeginAllowThreads();
19850 wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1);
19851
19852 wxPyEndAllowThreads(__tstate);
19853 if (PyErr_Occurred()) SWIG_fail;
19854 }
19855 Py_INCREF(Py_None); resultobj = Py_None;
19856 {
19857 if (temp1)
19858 delete arg1;
19859 }
19860 return resultobj;
19861 fail:
19862 {
19863 if (temp1)
19864 delete arg1;
19865 }
19866 return NULL;
19867}
19868
19869
19870static PyObject *_wrap_PyApp__BootstrapApp(PyObject *self, PyObject *args, PyObject *kwargs) {
19871 PyObject *resultobj;
19872 wxPyApp *arg1 = (wxPyApp *) 0 ;
19873 PyObject * obj0 = 0 ;
19874 char *kwnames[] = {
19875 (char *) "self", NULL
19876 };
19877
19878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp__BootstrapApp",kwnames,&obj0)) goto fail;
19879 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyApp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
19880 {
19881 PyThreadState* __tstate = wxPyBeginAllowThreads();
19882 (arg1)->_BootstrapApp();
19883
19884 wxPyEndAllowThreads(__tstate);
19885 if (PyErr_Occurred()) SWIG_fail;
19886 }
19887 Py_INCREF(Py_None); resultobj = Py_None;
19888 return resultobj;
19889 fail:
19890 return NULL;
19891}
19892
19893
19894static PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *self, PyObject *args, PyObject *kwargs) {
19895 PyObject *resultobj;
19896 int result;
19897 char *kwnames[] = {
19898 NULL
19899 };
19900
19901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetComCtl32Version",kwnames)) goto fail;
19902 {
19903 PyThreadState* __tstate = wxPyBeginAllowThreads();
19904 result = (int)wxPyApp::GetComCtl32Version();
19905
19906 wxPyEndAllowThreads(__tstate);
19907 if (PyErr_Occurred()) SWIG_fail;
19908 }
8edf1c75 19909 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
19910 return resultobj;
19911 fail:
19912 return NULL;
19913}
19914
19915
19916static PyObject * PyApp_swigregister(PyObject *self, PyObject *args) {
19917 PyObject *obj;
19918 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19919 SWIG_TypeClientData(SWIGTYPE_p_wxPyApp, obj);
19920 Py_INCREF(obj);
19921 return Py_BuildValue((char *)"");
19922}
19923static PyObject *_wrap_Exit(PyObject *self, PyObject *args, PyObject *kwargs) {
19924 PyObject *resultobj;
19925 char *kwnames[] = {
19926 NULL
19927 };
19928
19929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Exit",kwnames)) goto fail;
19930 {
19931 PyThreadState* __tstate = wxPyBeginAllowThreads();
19932 wxExit();
19933
19934 wxPyEndAllowThreads(__tstate);
19935 if (PyErr_Occurred()) SWIG_fail;
19936 }
19937 Py_INCREF(Py_None); resultobj = Py_None;
19938 return resultobj;
19939 fail:
19940 return NULL;
19941}
19942
19943
19944static PyObject *_wrap_Yield(PyObject *self, PyObject *args, PyObject *kwargs) {
19945 PyObject *resultobj;
19946 bool result;
19947 char *kwnames[] = {
19948 NULL
19949 };
19950
19951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Yield",kwnames)) goto fail;
19952 {
19953 PyThreadState* __tstate = wxPyBeginAllowThreads();
19954 result = (bool)wxYield();
19955
19956 wxPyEndAllowThreads(__tstate);
19957 if (PyErr_Occurred()) SWIG_fail;
19958 }
4e760a36 19959 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
19960 return resultobj;
19961 fail:
19962 return NULL;
19963}
19964
19965
19966static PyObject *_wrap_YieldIfNeeded(PyObject *self, PyObject *args, PyObject *kwargs) {
19967 PyObject *resultobj;
19968 bool result;
19969 char *kwnames[] = {
19970 NULL
19971 };
19972
19973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":YieldIfNeeded",kwnames)) goto fail;
19974 {
19975 PyThreadState* __tstate = wxPyBeginAllowThreads();
19976 result = (bool)wxYieldIfNeeded();
19977
19978 wxPyEndAllowThreads(__tstate);
19979 if (PyErr_Occurred()) SWIG_fail;
19980 }
4e760a36 19981 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
19982 return resultobj;
19983 fail:
19984 return NULL;
19985}
19986
19987
19988static PyObject *_wrap_SafeYield(PyObject *self, PyObject *args, PyObject *kwargs) {
19989 PyObject *resultobj;
19990 wxWindow *arg1 = (wxWindow *) NULL ;
423f194a 19991 bool arg2 = (bool) False ;
d14a1e28
RD
19992 bool result;
19993 PyObject * obj0 = 0 ;
19994 PyObject * obj1 = 0 ;
19995 char *kwnames[] = {
19996 (char *) "win",(char *) "onlyIfNeeded", NULL
19997 };
19998
19999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) goto fail;
20000 if (obj0) {
20001 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20002 }
20003 if (obj1) {
83448d71 20004 {
8edf1c75 20005 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
20006 if (PyErr_Occurred()) SWIG_fail;
20007 }
d14a1e28
RD
20008 }
20009 {
20010 PyThreadState* __tstate = wxPyBeginAllowThreads();
20011 result = (bool)wxSafeYield(arg1,arg2);
20012
20013 wxPyEndAllowThreads(__tstate);
20014 if (PyErr_Occurred()) SWIG_fail;
20015 }
4e760a36 20016 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
20017 return resultobj;
20018 fail:
20019 return NULL;
20020}
20021
20022
20023static PyObject *_wrap_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) {
20024 PyObject *resultobj;
20025 char *kwnames[] = {
20026 NULL
20027 };
20028
20029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpIdle",kwnames)) goto fail;
20030 {
20031 PyThreadState* __tstate = wxPyBeginAllowThreads();
20032 wxWakeUpIdle();
20033
20034 wxPyEndAllowThreads(__tstate);
20035 if (PyErr_Occurred()) SWIG_fail;
20036 }
20037 Py_INCREF(Py_None); resultobj = Py_None;
20038 return resultobj;
20039 fail:
20040 return NULL;
20041}
20042
20043
20044static PyObject *_wrap_PostEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
20045 PyObject *resultobj;
20046 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
20047 wxEvent *arg2 = 0 ;
20048 PyObject * obj0 = 0 ;
20049 PyObject * obj1 = 0 ;
20050 char *kwnames[] = {
20051 (char *) "dest",(char *) "event", NULL
20052 };
20053
20054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) goto fail;
20055 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20056 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20057 if (arg2 == NULL) {
20058 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
20059 }
20060 {
20061 PyThreadState* __tstate = wxPyBeginAllowThreads();
20062 wxPostEvent(arg1,*arg2);
20063
20064 wxPyEndAllowThreads(__tstate);
20065 if (PyErr_Occurred()) SWIG_fail;
20066 }
20067 Py_INCREF(Py_None); resultobj = Py_None;
20068 return resultobj;
20069 fail:
20070 return NULL;
20071}
20072
20073
20074static PyObject *_wrap_App_CleanUp(PyObject *self, PyObject *args, PyObject *kwargs) {
20075 PyObject *resultobj;
20076 char *kwnames[] = {
20077 NULL
20078 };
20079
20080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":App_CleanUp",kwnames)) goto fail;
20081 {
20082 PyThreadState* __tstate = wxPyBeginAllowThreads();
20083 wxApp_CleanUp();
20084
20085 wxPyEndAllowThreads(__tstate);
20086 if (PyErr_Occurred()) SWIG_fail;
20087 }
20088 Py_INCREF(Py_None); resultobj = Py_None;
20089 return resultobj;
20090 fail:
20091 return NULL;
20092}
20093
20094
20095static PyObject *_wrap_GetApp(PyObject *self, PyObject *args, PyObject *kwargs) {
20096 PyObject *resultobj;
20097 wxPyApp *result;
20098 char *kwnames[] = {
20099 NULL
20100 };
20101
20102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetApp",kwnames)) goto fail;
20103 {
20104 PyThreadState* __tstate = wxPyBeginAllowThreads();
20105 result = (wxPyApp *)wxGetApp();
20106
20107 wxPyEndAllowThreads(__tstate);
20108 if (PyErr_Occurred()) SWIG_fail;
20109 }
20110 {
20111 resultobj = wxPyMake_wxObject(result);
20112 }
20113 return resultobj;
20114 fail:
20115 return NULL;
20116}
20117
20118
41f1cec7
RD
20119static PyObject *_wrap_new_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
20120 PyObject *resultobj;
20121 int arg1 = (int) 0 ;
20122 int arg2 = (int) 0 ;
20123 int arg3 = (int) 0 ;
20124 wxMenuItem *arg4 = (wxMenuItem *) NULL ;
20125 wxAcceleratorEntry *result;
8edf1c75
RD
20126 PyObject * obj0 = 0 ;
20127 PyObject * obj1 = 0 ;
20128 PyObject * obj2 = 0 ;
41f1cec7
RD
20129 PyObject * obj3 = 0 ;
20130 char *kwnames[] = {
20131 (char *) "flags",(char *) "keyCode",(char *) "cmd",(char *) "item", NULL
20132 };
20133
8edf1c75
RD
20134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_AcceleratorEntry",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
20135 if (obj0) {
20136 {
20137 arg1 = (int) SWIG_PyObj_AsInt(obj0);
20138 if (PyErr_Occurred()) SWIG_fail;
20139 }
20140 }
20141 if (obj1) {
20142 {
20143 arg2 = (int) SWIG_PyObj_AsInt(obj1);
20144 if (PyErr_Occurred()) SWIG_fail;
20145 }
20146 }
20147 if (obj2) {
20148 {
20149 arg3 = (int) SWIG_PyObj_AsInt(obj2);
20150 if (PyErr_Occurred()) SWIG_fail;
20151 }
20152 }
41f1cec7
RD
20153 if (obj3) {
20154 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20155 }
20156 {
20157 PyThreadState* __tstate = wxPyBeginAllowThreads();
20158 result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3,arg4);
20159
20160 wxPyEndAllowThreads(__tstate);
20161 if (PyErr_Occurred()) SWIG_fail;
20162 }
20163 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAcceleratorEntry, 1);
20164 return resultobj;
20165 fail:
20166 return NULL;
20167}
20168
20169
20170static PyObject *_wrap_delete_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
20171 PyObject *resultobj;
20172 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
20173 PyObject * obj0 = 0 ;
20174 char *kwnames[] = {
20175 (char *) "self", NULL
20176 };
20177
20178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorEntry",kwnames,&obj0)) goto fail;
20179 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20180 {
20181 PyThreadState* __tstate = wxPyBeginAllowThreads();
20182 delete arg1;
20183
20184 wxPyEndAllowThreads(__tstate);
20185 if (PyErr_Occurred()) SWIG_fail;
20186 }
20187 Py_INCREF(Py_None); resultobj = Py_None;
20188 return resultobj;
20189 fail:
20190 return NULL;
20191}
20192
20193
20194static PyObject *_wrap_AcceleratorEntry_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
20195 PyObject *resultobj;
20196 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
20197 int arg2 ;
20198 int arg3 ;
20199 int arg4 ;
20200 wxMenuItem *arg5 = (wxMenuItem *) NULL ;
20201 PyObject * obj0 = 0 ;
8edf1c75
RD
20202 PyObject * obj1 = 0 ;
20203 PyObject * obj2 = 0 ;
20204 PyObject * obj3 = 0 ;
41f1cec7
RD
20205 PyObject * obj4 = 0 ;
20206 char *kwnames[] = {
20207 (char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd",(char *) "item", NULL
20208 };
20209
8edf1c75 20210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:AcceleratorEntry_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
41f1cec7 20211 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
20212 {
20213 arg2 = (int) SWIG_PyObj_AsInt(obj1);
20214 if (PyErr_Occurred()) SWIG_fail;
20215 }
20216 {
20217 arg3 = (int) SWIG_PyObj_AsInt(obj2);
20218 if (PyErr_Occurred()) SWIG_fail;
20219 }
20220 {
20221 arg4 = (int) SWIG_PyObj_AsInt(obj3);
20222 if (PyErr_Occurred()) SWIG_fail;
20223 }
41f1cec7
RD
20224 if (obj4) {
20225 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20226 }
20227 {
20228 PyThreadState* __tstate = wxPyBeginAllowThreads();
20229 (arg1)->Set(arg2,arg3,arg4,arg5);
20230
20231 wxPyEndAllowThreads(__tstate);
20232 if (PyErr_Occurred()) SWIG_fail;
20233 }
20234 Py_INCREF(Py_None); resultobj = Py_None;
20235 return resultobj;
20236 fail:
20237 return NULL;
20238}
20239
20240
20241static PyObject *_wrap_AcceleratorEntry_SetMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) {
20242 PyObject *resultobj;
20243 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
20244 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
20245 PyObject * obj0 = 0 ;
20246 PyObject * obj1 = 0 ;
20247 char *kwnames[] = {
20248 (char *) "self",(char *) "item", NULL
20249 };
20250
20251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AcceleratorEntry_SetMenuItem",kwnames,&obj0,&obj1)) goto fail;
20252 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20253 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20254 {
20255 PyThreadState* __tstate = wxPyBeginAllowThreads();
20256 (arg1)->SetMenuItem(arg2);
20257
20258 wxPyEndAllowThreads(__tstate);
20259 if (PyErr_Occurred()) SWIG_fail;
20260 }
20261 Py_INCREF(Py_None); resultobj = Py_None;
20262 return resultobj;
20263 fail:
20264 return NULL;
20265}
20266
20267
20268static PyObject *_wrap_AcceleratorEntry_GetMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) {
20269 PyObject *resultobj;
20270 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
20271 wxMenuItem *result;
20272 PyObject * obj0 = 0 ;
20273 char *kwnames[] = {
20274 (char *) "self", NULL
20275 };
20276
20277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetMenuItem",kwnames,&obj0)) goto fail;
20278 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20279 {
20280 PyThreadState* __tstate = wxPyBeginAllowThreads();
20281 result = (wxMenuItem *)((wxAcceleratorEntry const *)arg1)->GetMenuItem();
20282
20283 wxPyEndAllowThreads(__tstate);
20284 if (PyErr_Occurred()) SWIG_fail;
20285 }
20286 {
20287 resultobj = wxPyMake_wxObject(result);
20288 }
20289 return resultobj;
20290 fail:
20291 return NULL;
20292}
20293
20294
20295static PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
20296 PyObject *resultobj;
20297 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
20298 int result;
20299 PyObject * obj0 = 0 ;
20300 char *kwnames[] = {
20301 (char *) "self", NULL
20302 };
20303
20304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetFlags",kwnames,&obj0)) goto fail;
20305 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20306 {
20307 PyThreadState* __tstate = wxPyBeginAllowThreads();
20308 result = (int)(arg1)->GetFlags();
20309
20310 wxPyEndAllowThreads(__tstate);
20311 if (PyErr_Occurred()) SWIG_fail;
20312 }
8edf1c75 20313 resultobj = SWIG_PyObj_FromInt((int)result);
41f1cec7
RD
20314 return resultobj;
20315 fail:
20316 return NULL;
20317}
20318
20319
20320static PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
20321 PyObject *resultobj;
20322 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
20323 int result;
20324 PyObject * obj0 = 0 ;
20325 char *kwnames[] = {
20326 (char *) "self", NULL
20327 };
20328
20329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetKeyCode",kwnames,&obj0)) goto fail;
20330 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20331 {
20332 PyThreadState* __tstate = wxPyBeginAllowThreads();
20333 result = (int)(arg1)->GetKeyCode();
20334
20335 wxPyEndAllowThreads(__tstate);
20336 if (PyErr_Occurred()) SWIG_fail;
20337 }
8edf1c75 20338 resultobj = SWIG_PyObj_FromInt((int)result);
41f1cec7
RD
20339 return resultobj;
20340 fail:
20341 return NULL;
20342}
20343
20344
20345static PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
20346 PyObject *resultobj;
20347 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
20348 int result;
20349 PyObject * obj0 = 0 ;
20350 char *kwnames[] = {
20351 (char *) "self", NULL
20352 };
20353
20354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetCommand",kwnames,&obj0)) goto fail;
20355 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20356 {
20357 PyThreadState* __tstate = wxPyBeginAllowThreads();
20358 result = (int)(arg1)->GetCommand();
20359
20360 wxPyEndAllowThreads(__tstate);
20361 if (PyErr_Occurred()) SWIG_fail;
20362 }
8edf1c75 20363 resultobj = SWIG_PyObj_FromInt((int)result);
41f1cec7
RD
20364 return resultobj;
20365 fail:
20366 return NULL;
20367}
20368
20369
20370static PyObject * AcceleratorEntry_swigregister(PyObject *self, PyObject *args) {
20371 PyObject *obj;
20372 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20373 SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorEntry, obj);
20374 Py_INCREF(obj);
20375 return Py_BuildValue((char *)"");
20376}
20377static PyObject *_wrap_new_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
20378 PyObject *resultobj;
20379 int arg1 ;
20380 wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ;
20381 wxAcceleratorTable *result;
20382 PyObject * obj0 = 0 ;
20383 char *kwnames[] = {
20384 (char *) "n", NULL
20385 };
20386
20387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) goto fail;
20388 {
20389 arg2 = wxAcceleratorEntry_LIST_helper(obj0);
20390 if (arg2) arg1 = PyList_Size(obj0);
20391 else arg1 = 0;
20392 }
20393 {
20394 PyThreadState* __tstate = wxPyBeginAllowThreads();
20395 result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2);
20396
20397 wxPyEndAllowThreads(__tstate);
20398 if (PyErr_Occurred()) SWIG_fail;
20399 }
20400 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAcceleratorTable, 1);
20401 {
20402 delete [] arg2;
20403 }
20404 return resultobj;
20405 fail:
20406 {
20407 delete [] arg2;
20408 }
20409 return NULL;
20410}
20411
20412
20413static PyObject *_wrap_delete_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
20414 PyObject *resultobj;
20415 wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ;
20416 PyObject * obj0 = 0 ;
20417 char *kwnames[] = {
20418 (char *) "self", NULL
20419 };
20420
20421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorTable",kwnames,&obj0)) goto fail;
20422 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorTable,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20423 {
20424 PyThreadState* __tstate = wxPyBeginAllowThreads();
20425 delete arg1;
20426
20427 wxPyEndAllowThreads(__tstate);
20428 if (PyErr_Occurred()) SWIG_fail;
20429 }
20430 Py_INCREF(Py_None); resultobj = Py_None;
20431 return resultobj;
20432 fail:
20433 return NULL;
20434}
20435
20436
20437static PyObject *_wrap_AcceleratorTable_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
20438 PyObject *resultobj;
20439 wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ;
20440 bool result;
20441 PyObject * obj0 = 0 ;
20442 char *kwnames[] = {
20443 (char *) "self", NULL
20444 };
20445
20446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorTable_Ok",kwnames,&obj0)) goto fail;
20447 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxAcceleratorTable,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20448 {
20449 PyThreadState* __tstate = wxPyBeginAllowThreads();
20450 result = (bool)((wxAcceleratorTable const *)arg1)->Ok();
20451
20452 wxPyEndAllowThreads(__tstate);
20453 if (PyErr_Occurred()) SWIG_fail;
20454 }
4e760a36 20455 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41f1cec7
RD
20456 return resultobj;
20457 fail:
20458 return NULL;
20459}
20460
20461
20462static PyObject * AcceleratorTable_swigregister(PyObject *self, PyObject *args) {
20463 PyObject *obj;
20464 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20465 SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorTable, obj);
20466 Py_INCREF(obj);
20467 return Py_BuildValue((char *)"");
20468}
8edf1c75 20469static int _wrap_NullAcceleratorTable_set(PyObject *) {
41f1cec7
RD
20470 PyErr_SetString(PyExc_TypeError,"Variable NullAcceleratorTable is read-only.");
20471 return 1;
20472}
20473
20474
20475static PyObject *_wrap_NullAcceleratorTable_get() {
20476 PyObject *pyobj;
20477
20478 pyobj = SWIG_NewPointerObj((void *) &wxNullAcceleratorTable, SWIGTYPE_p_wxAcceleratorTable, 0);
20479 return pyobj;
20480}
20481
20482
20483static PyObject *_wrap_GetAccelFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
20484 PyObject *resultobj;
20485 wxString *arg1 = 0 ;
20486 wxAcceleratorEntry *result;
20487 bool temp1 = False ;
20488 PyObject * obj0 = 0 ;
20489 char *kwnames[] = {
20490 (char *) "label", NULL
20491 };
20492
20493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) goto fail;
20494 {
20495 arg1 = wxString_in_helper(obj0);
20496 if (arg1 == NULL) SWIG_fail;
20497 temp1 = True;
20498 }
20499 {
20500 PyThreadState* __tstate = wxPyBeginAllowThreads();
20501 result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1);
20502
20503 wxPyEndAllowThreads(__tstate);
20504 if (PyErr_Occurred()) SWIG_fail;
20505 }
20506 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAcceleratorEntry, 0);
20507 {
20508 if (temp1)
20509 delete arg1;
20510 }
20511 return resultobj;
20512 fail:
20513 {
20514 if (temp1)
20515 delete arg1;
20516 }
20517 return NULL;
20518}
20519
20520
8edf1c75 20521static int _wrap_PanelNameStr_set(PyObject *) {
423f194a
RD
20522 PyErr_SetString(PyExc_TypeError,"Variable PanelNameStr is read-only.");
20523 return 1;
20524}
20525
20526
20527static PyObject *_wrap_PanelNameStr_get() {
20528 PyObject *pyobj;
20529
20530 {
20531#if wxUSE_UNICODE
20532 pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len());
20533#else
20534 pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len());
20535#endif
20536 }
20537 return pyobj;
20538}
20539
20540
d14a1e28
RD
20541static PyObject *_wrap_new_Window(PyObject *self, PyObject *args, PyObject *kwargs) {
20542 PyObject *resultobj;
20543 wxWindow *arg1 = (wxWindow *) 0 ;
423f194a 20544 int arg2 ;
d14a1e28
RD
20545 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20546 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20547 wxSize const &arg4_defvalue = wxDefaultSize ;
20548 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20549 long arg5 = (long) 0 ;
20550 wxString const &arg6_defvalue = wxPyPanelNameStr ;
20551 wxString *arg6 = (wxString *) &arg6_defvalue ;
20552 wxWindow *result;
20553 wxPoint temp3 ;
20554 wxSize temp4 ;
423f194a 20555 bool temp6 = False ;
d14a1e28 20556 PyObject * obj0 = 0 ;
8edf1c75 20557 PyObject * obj1 = 0 ;
d14a1e28
RD
20558 PyObject * obj2 = 0 ;
20559 PyObject * obj3 = 0 ;
8edf1c75 20560 PyObject * obj4 = 0 ;
d14a1e28
RD
20561 PyObject * obj5 = 0 ;
20562 char *kwnames[] = {
20563 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20564 };
20565
8edf1c75 20566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Window",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
d14a1e28 20567 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
20568 {
20569 arg2 = (int const) SWIG_PyObj_AsInt(obj1);
20570 if (PyErr_Occurred()) SWIG_fail;
20571 }
d14a1e28
RD
20572 if (obj2) {
20573 {
20574 arg3 = &temp3;
20575 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20576 }
20577 }
20578 if (obj3) {
20579 {
20580 arg4 = &temp4;
20581 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20582 }
20583 }
8edf1c75
RD
20584 if (obj4) {
20585 {
20586 arg5 = (long) SWIG_PyObj_AsLong(obj4);
20587 if (PyErr_Occurred()) SWIG_fail;
20588 }
20589 }
d14a1e28
RD
20590 if (obj5) {
20591 {
20592 arg6 = wxString_in_helper(obj5);
20593 if (arg6 == NULL) SWIG_fail;
423f194a 20594 temp6 = True;
d14a1e28
RD
20595 }
20596 }
20597 {
20598 PyThreadState* __tstate = wxPyBeginAllowThreads();
20599 result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20600
20601 wxPyEndAllowThreads(__tstate);
20602 if (PyErr_Occurred()) SWIG_fail;
20603 }
20604 {
20605 resultobj = wxPyMake_wxObject(result);
20606 }
20607 {
20608 if (temp6)
20609 delete arg6;
20610 }
20611 return resultobj;
20612 fail:
20613 {
20614 if (temp6)
20615 delete arg6;
20616 }
20617 return NULL;
20618}
20619
20620
20621static PyObject *_wrap_new_PreWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
20622 PyObject *resultobj;
20623 wxWindow *result;
20624 char *kwnames[] = {
20625 NULL
20626 };
20627
20628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWindow",kwnames)) goto fail;
20629 {
20630 PyThreadState* __tstate = wxPyBeginAllowThreads();
20631 result = (wxWindow *)new wxWindow();
20632
20633 wxPyEndAllowThreads(__tstate);
20634 if (PyErr_Occurred()) SWIG_fail;
20635 }
20636 {
20637 resultobj = wxPyMake_wxObject(result);
20638 }
20639 return resultobj;
20640 fail:
20641 return NULL;
20642}
20643
20644
20645static PyObject *_wrap_Window_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
20646 PyObject *resultobj;
20647 wxWindow *arg1 = (wxWindow *) 0 ;
20648 wxWindow *arg2 = (wxWindow *) 0 ;
423f194a 20649 int arg3 ;
d14a1e28
RD
20650 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20651 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20652 wxSize const &arg5_defvalue = wxDefaultSize ;
20653 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20654 long arg6 = (long) 0 ;
20655 wxString const &arg7_defvalue = wxPyPanelNameStr ;
20656 wxString *arg7 = (wxString *) &arg7_defvalue ;
20657 bool result;
20658 wxPoint temp4 ;
20659 wxSize temp5 ;
423f194a 20660 bool temp7 = False ;
d14a1e28
RD
20661 PyObject * obj0 = 0 ;
20662 PyObject * obj1 = 0 ;
8edf1c75 20663 PyObject * obj2 = 0 ;
d14a1e28
RD
20664 PyObject * obj3 = 0 ;
20665 PyObject * obj4 = 0 ;
8edf1c75 20666 PyObject * obj5 = 0 ;
d14a1e28
RD
20667 PyObject * obj6 = 0 ;
20668 char *kwnames[] = {
20669 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20670 };
20671
8edf1c75 20672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Window_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
d14a1e28
RD
20673 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20674 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
20675 {
20676 arg3 = (int const) SWIG_PyObj_AsInt(obj2);
20677 if (PyErr_Occurred()) SWIG_fail;
20678 }
d14a1e28
RD
20679 if (obj3) {
20680 {
20681 arg4 = &temp4;
20682 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20683 }
20684 }
20685 if (obj4) {
20686 {
20687 arg5 = &temp5;
20688 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20689 }
20690 }
8edf1c75
RD
20691 if (obj5) {
20692 {
20693 arg6 = (long) SWIG_PyObj_AsLong(obj5);
20694 if (PyErr_Occurred()) SWIG_fail;
20695 }
20696 }
d14a1e28
RD
20697 if (obj6) {
20698 {
20699 arg7 = wxString_in_helper(obj6);
20700 if (arg7 == NULL) SWIG_fail;
423f194a 20701 temp7 = True;
d14a1e28
RD
20702 }
20703 }
20704 {
20705 PyThreadState* __tstate = wxPyBeginAllowThreads();
20706 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20707
20708 wxPyEndAllowThreads(__tstate);
20709 if (PyErr_Occurred()) SWIG_fail;
20710 }
4e760a36 20711 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
20712 {
20713 if (temp7)
20714 delete arg7;
20715 }
20716 return resultobj;
20717 fail:
20718 {
20719 if (temp7)
20720 delete arg7;
20721 }
20722 return NULL;
20723}
20724
20725
20726static PyObject *_wrap_Window_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
20727 PyObject *resultobj;
20728 wxWindow *arg1 = (wxWindow *) 0 ;
423f194a 20729 bool arg2 = (bool) False ;
d14a1e28
RD
20730 bool result;
20731 PyObject * obj0 = 0 ;
20732 PyObject * obj1 = 0 ;
20733 char *kwnames[] = {
20734 (char *) "self",(char *) "force", NULL
20735 };
20736
20737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",kwnames,&obj0,&obj1)) goto fail;
20738 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20739 if (obj1) {
83448d71 20740 {
8edf1c75 20741 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
20742 if (PyErr_Occurred()) SWIG_fail;
20743 }
d14a1e28
RD
20744 }
20745 {
20746 PyThreadState* __tstate = wxPyBeginAllowThreads();
20747 result = (bool)(arg1)->Close(arg2);
20748
20749 wxPyEndAllowThreads(__tstate);
20750 if (PyErr_Occurred()) SWIG_fail;
20751 }
4e760a36 20752 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
20753 return resultobj;
20754 fail:
20755 return NULL;
20756}
20757
20758
20759static PyObject *_wrap_Window_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
20760 PyObject *resultobj;
20761 wxWindow *arg1 = (wxWindow *) 0 ;
20762 bool result;
20763 PyObject * obj0 = 0 ;
20764 char *kwnames[] = {
20765 (char *) "self", NULL
20766 };
20767
20768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Destroy",kwnames,&obj0)) goto fail;
20769 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20770 {
20771 PyThreadState* __tstate = wxPyBeginAllowThreads();
20772 result = (bool)(arg1)->Destroy();
20773
20774 wxPyEndAllowThreads(__tstate);
20775 if (PyErr_Occurred()) SWIG_fail;
20776 }
4e760a36 20777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
20778 return resultobj;
20779 fail:
20780 return NULL;
20781}
20782
20783
20784static PyObject *_wrap_Window_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
20785 PyObject *resultobj;
20786 wxWindow *arg1 = (wxWindow *) 0 ;
20787 bool result;
20788 PyObject * obj0 = 0 ;
20789 char *kwnames[] = {
20790 (char *) "self", NULL
20791 };
20792
20793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DestroyChildren",kwnames,&obj0)) goto fail;
20794 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20795 {
20796 PyThreadState* __tstate = wxPyBeginAllowThreads();
20797 result = (bool)(arg1)->DestroyChildren();
20798
20799 wxPyEndAllowThreads(__tstate);
20800 if (PyErr_Occurred()) SWIG_fail;
20801 }
4e760a36 20802 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
20803 return resultobj;
20804 fail:
20805 return NULL;
20806}
20807
20808
20809static PyObject *_wrap_Window_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) {
20810 PyObject *resultobj;
20811 wxWindow *arg1 = (wxWindow *) 0 ;
20812 bool result;
20813 PyObject * obj0 = 0 ;
20814 char *kwnames[] = {
20815 (char *) "self", NULL
20816 };
20817
20818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsBeingDeleted",kwnames,&obj0)) goto fail;
20819 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20820 {
20821 PyThreadState* __tstate = wxPyBeginAllowThreads();
20822 result = (bool)((wxWindow const *)arg1)->IsBeingDeleted();
20823
20824 wxPyEndAllowThreads(__tstate);
20825 if (PyErr_Occurred()) SWIG_fail;
20826 }
4e760a36 20827 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
20828 return resultobj;
20829 fail:
20830 return NULL;
20831}
20832
20833
20834static PyObject *_wrap_Window_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
20835 PyObject *resultobj;
20836 wxWindow *arg1 = (wxWindow *) 0 ;
20837 wxString *arg2 = 0 ;
423f194a 20838 bool temp2 = False ;
d14a1e28
RD
20839 PyObject * obj0 = 0 ;
20840 PyObject * obj1 = 0 ;
20841 char *kwnames[] = {
20842 (char *) "self",(char *) "title", NULL
20843 };
20844
20845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTitle",kwnames,&obj0,&obj1)) goto fail;
20846 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20847 {
20848 arg2 = wxString_in_helper(obj1);
20849 if (arg2 == NULL) SWIG_fail;
423f194a 20850 temp2 = True;
d14a1e28
RD
20851 }
20852 {
20853 PyThreadState* __tstate = wxPyBeginAllowThreads();
20854 (arg1)->SetTitle((wxString const &)*arg2);
20855
20856 wxPyEndAllowThreads(__tstate);
20857 if (PyErr_Occurred()) SWIG_fail;
20858 }
20859 Py_INCREF(Py_None); resultobj = Py_None;
20860 {
20861 if (temp2)
20862 delete arg2;
20863 }
20864 return resultobj;
20865 fail:
20866 {
20867 if (temp2)
20868 delete arg2;
20869 }
20870 return NULL;
20871}
20872
20873
20874static PyObject *_wrap_Window_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
20875 PyObject *resultobj;
20876 wxWindow *arg1 = (wxWindow *) 0 ;
20877 wxString result;
20878 PyObject * obj0 = 0 ;
20879 char *kwnames[] = {
20880 (char *) "self", NULL
20881 };
20882
20883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetTitle",kwnames,&obj0)) goto fail;
20884 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20885 {
20886 PyThreadState* __tstate = wxPyBeginAllowThreads();
20887 result = ((wxWindow const *)arg1)->GetTitle();
20888
20889 wxPyEndAllowThreads(__tstate);
20890 if (PyErr_Occurred()) SWIG_fail;
20891 }
20892 {
20893#if wxUSE_UNICODE
20894 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20895#else
20896 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20897#endif
20898 }
20899 return resultobj;
20900 fail:
20901 return NULL;
20902}
20903
20904
20905static PyObject *_wrap_Window_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
20906 PyObject *resultobj;
20907 wxWindow *arg1 = (wxWindow *) 0 ;
20908 wxString *arg2 = 0 ;
423f194a 20909 bool temp2 = False ;
d14a1e28
RD
20910 PyObject * obj0 = 0 ;
20911 PyObject * obj1 = 0 ;
20912 char *kwnames[] = {
20913 (char *) "self",(char *) "label", NULL
20914 };
20915
20916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",kwnames,&obj0,&obj1)) goto fail;
20917 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20918 {
20919 arg2 = wxString_in_helper(obj1);
20920 if (arg2 == NULL) SWIG_fail;
423f194a 20921 temp2 = True;
d14a1e28
RD
20922 }
20923 {
20924 PyThreadState* __tstate = wxPyBeginAllowThreads();
20925 (arg1)->SetLabel((wxString const &)*arg2);
20926
20927 wxPyEndAllowThreads(__tstate);
20928 if (PyErr_Occurred()) SWIG_fail;
20929 }
20930 Py_INCREF(Py_None); resultobj = Py_None;
20931 {
20932 if (temp2)
20933 delete arg2;
20934 }
20935 return resultobj;
20936 fail:
20937 {
20938 if (temp2)
20939 delete arg2;
20940 }
20941 return NULL;
20942}
20943
20944
20945static PyObject *_wrap_Window_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
20946 PyObject *resultobj;
20947 wxWindow *arg1 = (wxWindow *) 0 ;
20948 wxString result;
20949 PyObject * obj0 = 0 ;
20950 char *kwnames[] = {
20951 (char *) "self", NULL
20952 };
20953
20954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetLabel",kwnames,&obj0)) goto fail;
20955 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20956 {
20957 PyThreadState* __tstate = wxPyBeginAllowThreads();
20958 result = ((wxWindow const *)arg1)->GetLabel();
20959
20960 wxPyEndAllowThreads(__tstate);
20961 if (PyErr_Occurred()) SWIG_fail;
20962 }
20963 {
20964#if wxUSE_UNICODE
20965 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20966#else
20967 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20968#endif
20969 }
20970 return resultobj;
20971 fail:
20972 return NULL;
20973}
20974
20975
20976static PyObject *_wrap_Window_SetName(PyObject *self, PyObject *args, PyObject *kwargs) {
20977 PyObject *resultobj;
20978 wxWindow *arg1 = (wxWindow *) 0 ;
20979 wxString *arg2 = 0 ;
423f194a 20980 bool temp2 = False ;
d14a1e28
RD
20981 PyObject * obj0 = 0 ;
20982 PyObject * obj1 = 0 ;
20983 char *kwnames[] = {
20984 (char *) "self",(char *) "name", NULL
20985 };
20986
20987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) goto fail;
20988 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
20989 {
20990 arg2 = wxString_in_helper(obj1);
20991 if (arg2 == NULL) SWIG_fail;
423f194a 20992 temp2 = True;
d14a1e28
RD
20993 }
20994 {
20995 PyThreadState* __tstate = wxPyBeginAllowThreads();
20996 (arg1)->SetName((wxString const &)*arg2);
20997
20998 wxPyEndAllowThreads(__tstate);
20999 if (PyErr_Occurred()) SWIG_fail;
21000 }
21001 Py_INCREF(Py_None); resultobj = Py_None;
21002 {
21003 if (temp2)
21004 delete arg2;
21005 }
21006 return resultobj;
21007 fail:
21008 {
21009 if (temp2)
21010 delete arg2;
21011 }
21012 return NULL;
21013}
21014
21015
21016static PyObject *_wrap_Window_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
21017 PyObject *resultobj;
21018 wxWindow *arg1 = (wxWindow *) 0 ;
21019 wxString result;
21020 PyObject * obj0 = 0 ;
21021 char *kwnames[] = {
21022 (char *) "self", NULL
21023 };
21024
21025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetName",kwnames,&obj0)) goto fail;
21026 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21027 {
21028 PyThreadState* __tstate = wxPyBeginAllowThreads();
21029 result = ((wxWindow const *)arg1)->GetName();
21030
21031 wxPyEndAllowThreads(__tstate);
21032 if (PyErr_Occurred()) SWIG_fail;
21033 }
21034 {
21035#if wxUSE_UNICODE
21036 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21037#else
21038 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21039#endif
21040 }
21041 return resultobj;
21042 fail:
21043 return NULL;
21044}
21045
21046
21047static PyObject *_wrap_Window_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
21048 PyObject *resultobj;
21049 wxWindow *arg1 = (wxWindow *) 0 ;
423f194a 21050 int arg2 ;
d14a1e28 21051 PyObject * obj0 = 0 ;
8edf1c75 21052 PyObject * obj1 = 0 ;
d14a1e28
RD
21053 char *kwnames[] = {
21054 (char *) "self",(char *) "winid", NULL
21055 };
21056
8edf1c75 21057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetId",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 21058 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
21059 {
21060 arg2 = (int) SWIG_PyObj_AsInt(obj1);
21061 if (PyErr_Occurred()) SWIG_fail;
21062 }
d14a1e28
RD
21063 {
21064 PyThreadState* __tstate = wxPyBeginAllowThreads();
21065 (arg1)->SetId(arg2);
21066
21067 wxPyEndAllowThreads(__tstate);
21068 if (PyErr_Occurred()) SWIG_fail;
21069 }
21070 Py_INCREF(Py_None); resultobj = Py_None;
21071 return resultobj;
21072 fail:
21073 return NULL;
21074}
21075
21076
21077static PyObject *_wrap_Window_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
21078 PyObject *resultobj;
21079 wxWindow *arg1 = (wxWindow *) 0 ;
423f194a 21080 int result;
d14a1e28
RD
21081 PyObject * obj0 = 0 ;
21082 char *kwnames[] = {
21083 (char *) "self", NULL
21084 };
21085
21086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetId",kwnames,&obj0)) goto fail;
21087 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21088 {
21089 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 21090 result = (int)((wxWindow const *)arg1)->GetId();
d14a1e28
RD
21091
21092 wxPyEndAllowThreads(__tstate);
21093 if (PyErr_Occurred()) SWIG_fail;
21094 }
8edf1c75 21095 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
21096 return resultobj;
21097 fail:
21098 return NULL;
21099}
21100
21101
21102static PyObject *_wrap_Window_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) {
21103 PyObject *resultobj;
21104 int result;
21105 char *kwnames[] = {
21106 NULL
21107 };
21108
21109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_NewControlId",kwnames)) goto fail;
21110 {
21111 PyThreadState* __tstate = wxPyBeginAllowThreads();
21112 result = (int)wxWindow::NewControlId();
21113
21114 wxPyEndAllowThreads(__tstate);
21115 if (PyErr_Occurred()) SWIG_fail;
21116 }
8edf1c75 21117 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
21118 return resultobj;
21119 fail:
21120 return NULL;
21121}
21122
21123
21124static PyObject *_wrap_Window_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) {
21125 PyObject *resultobj;
21126 int arg1 ;
21127 int result;
8edf1c75 21128 PyObject * obj0 = 0 ;
d14a1e28
RD
21129 char *kwnames[] = {
21130 (char *) "winid", NULL
21131 };
21132
8edf1c75
RD
21133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_NextControlId",kwnames,&obj0)) goto fail;
21134 {
21135 arg1 = (int) SWIG_PyObj_AsInt(obj0);
21136 if (PyErr_Occurred()) SWIG_fail;
21137 }
d14a1e28
RD
21138 {
21139 PyThreadState* __tstate = wxPyBeginAllowThreads();
21140 result = (int)wxWindow::NextControlId(arg1);
21141
21142 wxPyEndAllowThreads(__tstate);
21143 if (PyErr_Occurred()) SWIG_fail;
21144 }
8edf1c75 21145 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
21146 return resultobj;
21147 fail:
21148 return NULL;
21149}
21150
21151
21152static PyObject *_wrap_Window_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) {
21153 PyObject *resultobj;
21154 int arg1 ;
21155 int result;
8edf1c75 21156 PyObject * obj0 = 0 ;
d14a1e28
RD
21157 char *kwnames[] = {
21158 (char *) "winid", NULL
21159 };
21160
8edf1c75
RD
21161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PrevControlId",kwnames,&obj0)) goto fail;
21162 {
21163 arg1 = (int) SWIG_PyObj_AsInt(obj0);
21164 if (PyErr_Occurred()) SWIG_fail;
21165 }
d14a1e28
RD
21166 {
21167 PyThreadState* __tstate = wxPyBeginAllowThreads();
21168 result = (int)wxWindow::PrevControlId(arg1);
21169
21170 wxPyEndAllowThreads(__tstate);
21171 if (PyErr_Occurred()) SWIG_fail;
21172 }
8edf1c75 21173 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
21174 return resultobj;
21175 fail:
21176 return NULL;
21177}
21178
21179
21180static PyObject *_wrap_Window_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
21181 PyObject *resultobj;
21182 wxWindow *arg1 = (wxWindow *) 0 ;
21183 wxSize *arg2 = 0 ;
21184 wxSize temp2 ;
21185 PyObject * obj0 = 0 ;
21186 PyObject * obj1 = 0 ;
21187 char *kwnames[] = {
21188 (char *) "self",(char *) "size", NULL
21189 };
21190
21191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) goto fail;
21192 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21193 {
21194 arg2 = &temp2;
21195 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
21196 }
21197 {
21198 PyThreadState* __tstate = wxPyBeginAllowThreads();
21199 (arg1)->SetSize((wxSize const &)*arg2);
21200
21201 wxPyEndAllowThreads(__tstate);
21202 if (PyErr_Occurred()) SWIG_fail;
21203 }
21204 Py_INCREF(Py_None); resultobj = Py_None;
21205 return resultobj;
21206 fail:
21207 return NULL;
21208}
21209
21210
21211static PyObject *_wrap_Window_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) {
21212 PyObject *resultobj;
21213 wxWindow *arg1 = (wxWindow *) 0 ;
21214 int arg2 ;
21215 int arg3 ;
21216 int arg4 ;
21217 int arg5 ;
21218 int arg6 = (int) wxSIZE_AUTO ;
21219 PyObject * obj0 = 0 ;
8edf1c75
RD
21220 PyObject * obj1 = 0 ;
21221 PyObject * obj2 = 0 ;
21222 PyObject * obj3 = 0 ;
21223 PyObject * obj4 = 0 ;
21224 PyObject * obj5 = 0 ;
d14a1e28
RD
21225 char *kwnames[] = {
21226 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
21227 };
21228
8edf1c75 21229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetDimensions",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
d14a1e28 21230 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
21231 {
21232 arg2 = (int) SWIG_PyObj_AsInt(obj1);
21233 if (PyErr_Occurred()) SWIG_fail;
21234 }
21235 {
21236 arg3 = (int) SWIG_PyObj_AsInt(obj2);
21237 if (PyErr_Occurred()) SWIG_fail;
21238 }
21239 {
21240 arg4 = (int) SWIG_PyObj_AsInt(obj3);
21241 if (PyErr_Occurred()) SWIG_fail;
21242 }
21243 {
21244 arg5 = (int) SWIG_PyObj_AsInt(obj4);
21245 if (PyErr_Occurred()) SWIG_fail;
21246 }
21247 if (obj5) {
21248 {
21249 arg6 = (int) SWIG_PyObj_AsInt(obj5);
21250 if (PyErr_Occurred()) SWIG_fail;
21251 }
21252 }
d14a1e28
RD
21253 {
21254 PyThreadState* __tstate = wxPyBeginAllowThreads();
21255 (arg1)->SetSize(arg2,arg3,arg4,arg5,arg6);
21256
21257 wxPyEndAllowThreads(__tstate);
21258 if (PyErr_Occurred()) SWIG_fail;
21259 }
21260 Py_INCREF(Py_None); resultobj = Py_None;
21261 return resultobj;
21262 fail:
21263 return NULL;
21264}
21265
21266
21267static PyObject *_wrap_Window_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
21268 PyObject *resultobj;
21269 wxWindow *arg1 = (wxWindow *) 0 ;
21270 wxRect *arg2 = 0 ;
21271 int arg3 = (int) wxSIZE_AUTO ;
21272 wxRect temp2 ;
21273 PyObject * obj0 = 0 ;
21274 PyObject * obj1 = 0 ;
8edf1c75 21275 PyObject * obj2 = 0 ;
d14a1e28
RD
21276 char *kwnames[] = {
21277 (char *) "self",(char *) "rect",(char *) "sizeFlags", NULL
21278 };
21279
8edf1c75 21280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28
RD
21281 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21282 {
21283 arg2 = &temp2;
21284 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
21285 }
8edf1c75
RD
21286 if (obj2) {
21287 {
21288 arg3 = (int) SWIG_PyObj_AsInt(obj2);
21289 if (PyErr_Occurred()) SWIG_fail;
21290 }
21291 }
d14a1e28
RD
21292 {
21293 PyThreadState* __tstate = wxPyBeginAllowThreads();
21294 (arg1)->SetSize((wxRect const &)*arg2,arg3);
21295
21296 wxPyEndAllowThreads(__tstate);
21297 if (PyErr_Occurred()) SWIG_fail;
21298 }
21299 Py_INCREF(Py_None); resultobj = Py_None;
21300 return resultobj;
21301 fail:
21302 return NULL;
21303}
21304
21305
21306static PyObject *_wrap_Window_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
21307 PyObject *resultobj;
21308 wxWindow *arg1 = (wxWindow *) 0 ;
21309 int arg2 ;
21310 int arg3 ;
21311 PyObject * obj0 = 0 ;
8edf1c75
RD
21312 PyObject * obj1 = 0 ;
21313 PyObject * obj2 = 0 ;
d14a1e28
RD
21314 char *kwnames[] = {
21315 (char *) "self",(char *) "width",(char *) "height", NULL
21316 };
21317
8edf1c75 21318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 21319 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
21320 {
21321 arg2 = (int) SWIG_PyObj_AsInt(obj1);
21322 if (PyErr_Occurred()) SWIG_fail;
21323 }
21324 {
21325 arg3 = (int) SWIG_PyObj_AsInt(obj2);
21326 if (PyErr_Occurred()) SWIG_fail;
21327 }
d14a1e28
RD
21328 {
21329 PyThreadState* __tstate = wxPyBeginAllowThreads();
21330 (arg1)->SetSize(arg2,arg3);
21331
21332 wxPyEndAllowThreads(__tstate);
21333 if (PyErr_Occurred()) SWIG_fail;
21334 }
21335 Py_INCREF(Py_None); resultobj = Py_None;
21336 return resultobj;
21337 fail:
21338 return NULL;
21339}
21340
21341
21342static PyObject *_wrap_Window_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
21343 PyObject *resultobj;
21344 wxWindow *arg1 = (wxWindow *) 0 ;
21345 wxPoint *arg2 = 0 ;
21346 int arg3 = (int) wxSIZE_USE_EXISTING ;
21347 wxPoint temp2 ;
21348 PyObject * obj0 = 0 ;
21349 PyObject * obj1 = 0 ;
8edf1c75 21350 PyObject * obj2 = 0 ;
d14a1e28
RD
21351 char *kwnames[] = {
21352 (char *) "self",(char *) "pt",(char *) "flags", NULL
21353 };
21354
8edf1c75 21355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_Move",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28
RD
21356 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21357 {
21358 arg2 = &temp2;
21359 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
21360 }
8edf1c75
RD
21361 if (obj2) {
21362 {
21363 arg3 = (int) SWIG_PyObj_AsInt(obj2);
21364 if (PyErr_Occurred()) SWIG_fail;
21365 }
21366 }
d14a1e28
RD
21367 {
21368 PyThreadState* __tstate = wxPyBeginAllowThreads();
21369 (arg1)->Move((wxPoint const &)*arg2,arg3);
21370
21371 wxPyEndAllowThreads(__tstate);
21372 if (PyErr_Occurred()) SWIG_fail;
21373 }
21374 Py_INCREF(Py_None); resultobj = Py_None;
21375 return resultobj;
21376 fail:
21377 return NULL;
21378}
21379
21380
21381static PyObject *_wrap_Window_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) {
21382 PyObject *resultobj;
21383 wxWindow *arg1 = (wxWindow *) 0 ;
21384 int arg2 ;
21385 int arg3 ;
21386 int arg4 = (int) wxSIZE_USE_EXISTING ;
21387 PyObject * obj0 = 0 ;
8edf1c75
RD
21388 PyObject * obj1 = 0 ;
21389 PyObject * obj2 = 0 ;
21390 PyObject * obj3 = 0 ;
d14a1e28
RD
21391 char *kwnames[] = {
21392 (char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL
21393 };
21394
8edf1c75 21395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_MoveXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28 21396 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
21397 {
21398 arg2 = (int) SWIG_PyObj_AsInt(obj1);
21399 if (PyErr_Occurred()) SWIG_fail;
21400 }
21401 {
21402 arg3 = (int) SWIG_PyObj_AsInt(obj2);
21403 if (PyErr_Occurred()) SWIG_fail;
21404 }
21405 if (obj3) {
21406 {
21407 arg4 = (int) SWIG_PyObj_AsInt(obj3);
21408 if (PyErr_Occurred()) SWIG_fail;
21409 }
21410 }
d14a1e28
RD
21411 {
21412 PyThreadState* __tstate = wxPyBeginAllowThreads();
21413 (arg1)->Move(arg2,arg3,arg4);
21414
21415 wxPyEndAllowThreads(__tstate);
21416 if (PyErr_Occurred()) SWIG_fail;
21417 }
21418 Py_INCREF(Py_None); resultobj = Py_None;
21419 return resultobj;
21420 fail:
21421 return NULL;
21422}
21423
21424
21425static PyObject *_wrap_Window_Raise(PyObject *self, PyObject *args, PyObject *kwargs) {
21426 PyObject *resultobj;
21427 wxWindow *arg1 = (wxWindow *) 0 ;
21428 PyObject * obj0 = 0 ;
21429 char *kwnames[] = {
21430 (char *) "self", NULL
21431 };
21432
21433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Raise",kwnames,&obj0)) goto fail;
21434 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21435 {
21436 PyThreadState* __tstate = wxPyBeginAllowThreads();
21437 (arg1)->Raise();
21438
21439 wxPyEndAllowThreads(__tstate);
21440 if (PyErr_Occurred()) SWIG_fail;
21441 }
21442 Py_INCREF(Py_None); resultobj = Py_None;
21443 return resultobj;
21444 fail:
21445 return NULL;
21446}
21447
21448
21449static PyObject *_wrap_Window_Lower(PyObject *self, PyObject *args, PyObject *kwargs) {
21450 PyObject *resultobj;
21451 wxWindow *arg1 = (wxWindow *) 0 ;
21452 PyObject * obj0 = 0 ;
21453 char *kwnames[] = {
21454 (char *) "self", NULL
21455 };
21456
21457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Lower",kwnames,&obj0)) goto fail;
21458 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21459 {
21460 PyThreadState* __tstate = wxPyBeginAllowThreads();
21461 (arg1)->Lower();
21462
21463 wxPyEndAllowThreads(__tstate);
21464 if (PyErr_Occurred()) SWIG_fail;
21465 }
21466 Py_INCREF(Py_None); resultobj = Py_None;
21467 return resultobj;
21468 fail:
21469 return NULL;
21470}
21471
21472
21473static PyObject *_wrap_Window_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
21474 PyObject *resultobj;
21475 wxWindow *arg1 = (wxWindow *) 0 ;
21476 wxSize *arg2 = 0 ;
21477 wxSize temp2 ;
21478 PyObject * obj0 = 0 ;
21479 PyObject * obj1 = 0 ;
21480 char *kwnames[] = {
21481 (char *) "self",(char *) "size", NULL
21482 };
21483
21484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) goto fail;
21485 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21486 {
21487 arg2 = &temp2;
21488 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
21489 }
21490 {
21491 PyThreadState* __tstate = wxPyBeginAllowThreads();
21492 (arg1)->SetClientSize((wxSize const &)*arg2);
21493
21494 wxPyEndAllowThreads(__tstate);
21495 if (PyErr_Occurred()) SWIG_fail;
21496 }
21497 Py_INCREF(Py_None); resultobj = Py_None;
21498 return resultobj;
21499 fail:
21500 return NULL;
21501}
21502
21503
21504static PyObject *_wrap_Window_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
21505 PyObject *resultobj;
21506 wxWindow *arg1 = (wxWindow *) 0 ;
21507 int arg2 ;
21508 int arg3 ;
21509 PyObject * obj0 = 0 ;
8edf1c75
RD
21510 PyObject * obj1 = 0 ;
21511 PyObject * obj2 = 0 ;
d14a1e28
RD
21512 char *kwnames[] = {
21513 (char *) "self",(char *) "width",(char *) "height", NULL
21514 };
21515
8edf1c75 21516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetClientSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 21517 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
21518 {
21519 arg2 = (int) SWIG_PyObj_AsInt(obj1);
21520 if (PyErr_Occurred()) SWIG_fail;
21521 }
21522 {
21523 arg3 = (int) SWIG_PyObj_AsInt(obj2);
21524 if (PyErr_Occurred()) SWIG_fail;
21525 }
d14a1e28
RD
21526 {
21527 PyThreadState* __tstate = wxPyBeginAllowThreads();
21528 (arg1)->SetClientSize(arg2,arg3);
21529
21530 wxPyEndAllowThreads(__tstate);
21531 if (PyErr_Occurred()) SWIG_fail;
21532 }
21533 Py_INCREF(Py_None); resultobj = Py_None;
21534 return resultobj;
21535 fail:
21536 return NULL;
21537}
21538
21539
21540static PyObject *_wrap_Window_SetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) {
21541 PyObject *resultobj;
21542 wxWindow *arg1 = (wxWindow *) 0 ;
21543 wxRect *arg2 = 0 ;
21544 wxRect temp2 ;
21545 PyObject * obj0 = 0 ;
21546 PyObject * obj1 = 0 ;
21547 char *kwnames[] = {
21548 (char *) "self",(char *) "rect", NULL
21549 };
21550
21551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) goto fail;
21552 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21553 {
21554 arg2 = &temp2;
21555 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
21556 }
21557 {
21558 PyThreadState* __tstate = wxPyBeginAllowThreads();
21559 (arg1)->SetClientSize((wxRect const &)*arg2);
21560
21561 wxPyEndAllowThreads(__tstate);
21562 if (PyErr_Occurred()) SWIG_fail;
21563 }
21564 Py_INCREF(Py_None); resultobj = Py_None;
21565 return resultobj;
21566 fail:
21567 return NULL;
21568}
21569
21570
21571static PyObject *_wrap_Window_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
21572 PyObject *resultobj;
21573 wxWindow *arg1 = (wxWindow *) 0 ;
21574 wxPoint result;
21575 PyObject * obj0 = 0 ;
21576 char *kwnames[] = {
21577 (char *) "self", NULL
21578 };
21579
21580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPosition",kwnames,&obj0)) goto fail;
21581 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21582 {
21583 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 21584 result = (arg1)->GetPosition();
d14a1e28
RD
21585
21586 wxPyEndAllowThreads(__tstate);
21587 if (PyErr_Occurred()) SWIG_fail;
21588 }
21589 {
21590 wxPoint * resultptr;
21591 resultptr = new wxPoint((wxPoint &) result);
21592 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
21593 }
21594 return resultobj;
21595 fail:
21596 return NULL;
21597}
21598
21599
21600static PyObject *_wrap_Window_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
21601 PyObject *resultobj;
21602 wxWindow *arg1 = (wxWindow *) 0 ;
21603 int *arg2 = (int *) 0 ;
21604 int *arg3 = (int *) 0 ;
21605 int temp2 ;
21606 int temp3 ;
21607 PyObject * obj0 = 0 ;
21608 char *kwnames[] = {
21609 (char *) "self", NULL
21610 };
21611
21612 arg2 = &temp2;
21613 arg3 = &temp3;
21614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPositionTuple",kwnames,&obj0)) goto fail;
21615 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21616 {
21617 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 21618 (arg1)->GetPosition(arg2,arg3);
d14a1e28
RD
21619
21620 wxPyEndAllowThreads(__tstate);
21621 if (PyErr_Occurred()) SWIG_fail;
21622 }
21623 Py_INCREF(Py_None); resultobj = Py_None;
21624 {
21625 PyObject *o = PyInt_FromLong((long) (*arg2));
21626 resultobj = t_output_helper(resultobj,o);
21627 }
21628 {
21629 PyObject *o = PyInt_FromLong((long) (*arg3));
21630 resultobj = t_output_helper(resultobj,o);
21631 }
21632 return resultobj;
21633 fail:
21634 return NULL;
21635}
21636
21637
21638static PyObject *_wrap_Window_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
21639 PyObject *resultobj;
21640 wxWindow *arg1 = (wxWindow *) 0 ;
21641 wxSize result;
21642 PyObject * obj0 = 0 ;
21643 char *kwnames[] = {
21644 (char *) "self", NULL
21645 };
21646
21647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSize",kwnames,&obj0)) goto fail;
21648 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21649 {
21650 PyThreadState* __tstate = wxPyBeginAllowThreads();
21651 result = ((wxWindow const *)arg1)->GetSize();
21652
21653 wxPyEndAllowThreads(__tstate);
21654 if (PyErr_Occurred()) SWIG_fail;
21655 }
21656 {
21657 wxSize * resultptr;
21658 resultptr = new wxSize((wxSize &) result);
21659 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
21660 }
21661 return resultobj;
21662 fail:
21663 return NULL;
21664}
21665
21666
21667static PyObject *_wrap_Window_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
21668 PyObject *resultobj;
21669 wxWindow *arg1 = (wxWindow *) 0 ;
21670 int *arg2 = (int *) 0 ;
21671 int *arg3 = (int *) 0 ;
21672 int temp2 ;
21673 int temp3 ;
21674 PyObject * obj0 = 0 ;
21675 char *kwnames[] = {
21676 (char *) "self", NULL
21677 };
21678
21679 arg2 = &temp2;
21680 arg3 = &temp3;
21681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizeTuple",kwnames,&obj0)) goto fail;
21682 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21683 {
21684 PyThreadState* __tstate = wxPyBeginAllowThreads();
21685 ((wxWindow const *)arg1)->GetSize(arg2,arg3);
21686
21687 wxPyEndAllowThreads(__tstate);
21688 if (PyErr_Occurred()) SWIG_fail;
21689 }
21690 Py_INCREF(Py_None); resultobj = Py_None;
21691 {
21692 PyObject *o = PyInt_FromLong((long) (*arg2));
21693 resultobj = t_output_helper(resultobj,o);
21694 }
21695 {
21696 PyObject *o = PyInt_FromLong((long) (*arg3));
21697 resultobj = t_output_helper(resultobj,o);
21698 }
21699 return resultobj;
21700 fail:
21701 return NULL;
21702}
21703
21704
21705static PyObject *_wrap_Window_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
21706 PyObject *resultobj;
21707 wxWindow *arg1 = (wxWindow *) 0 ;
21708 wxRect result;
21709 PyObject * obj0 = 0 ;
21710 char *kwnames[] = {
21711 (char *) "self", NULL
21712 };
21713
21714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetRect",kwnames,&obj0)) goto fail;
21715 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21716 {
21717 PyThreadState* __tstate = wxPyBeginAllowThreads();
21718 result = ((wxWindow const *)arg1)->GetRect();
21719
21720 wxPyEndAllowThreads(__tstate);
21721 if (PyErr_Occurred()) SWIG_fail;
21722 }
21723 {
21724 wxRect * resultptr;
21725 resultptr = new wxRect((wxRect &) result);
21726 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
21727 }
21728 return resultobj;
21729 fail:
21730 return NULL;
21731}
21732
21733
21734static PyObject *_wrap_Window_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
21735 PyObject *resultobj;
21736 wxWindow *arg1 = (wxWindow *) 0 ;
21737 wxSize result;
21738 PyObject * obj0 = 0 ;
21739 char *kwnames[] = {
21740 (char *) "self", NULL
21741 };
21742
21743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSize",kwnames,&obj0)) goto fail;
21744 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21745 {
21746 PyThreadState* __tstate = wxPyBeginAllowThreads();
21747 result = ((wxWindow const *)arg1)->GetClientSize();
21748
21749 wxPyEndAllowThreads(__tstate);
21750 if (PyErr_Occurred()) SWIG_fail;
21751 }
21752 {
21753 wxSize * resultptr;
21754 resultptr = new wxSize((wxSize &) result);
21755 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
21756 }
21757 return resultobj;
21758 fail:
21759 return NULL;
21760}
21761
21762
21763static PyObject *_wrap_Window_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
21764 PyObject *resultobj;
21765 wxWindow *arg1 = (wxWindow *) 0 ;
21766 int *arg2 = (int *) 0 ;
21767 int *arg3 = (int *) 0 ;
21768 int temp2 ;
21769 int temp3 ;
21770 PyObject * obj0 = 0 ;
21771 char *kwnames[] = {
21772 (char *) "self", NULL
21773 };
21774
21775 arg2 = &temp2;
21776 arg3 = &temp3;
21777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSizeTuple",kwnames,&obj0)) goto fail;
21778 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21779 {
21780 PyThreadState* __tstate = wxPyBeginAllowThreads();
21781 ((wxWindow const *)arg1)->GetClientSize(arg2,arg3);
21782
21783 wxPyEndAllowThreads(__tstate);
21784 if (PyErr_Occurred()) SWIG_fail;
21785 }
21786 Py_INCREF(Py_None); resultobj = Py_None;
21787 {
21788 PyObject *o = PyInt_FromLong((long) (*arg2));
21789 resultobj = t_output_helper(resultobj,o);
21790 }
21791 {
21792 PyObject *o = PyInt_FromLong((long) (*arg3));
21793 resultobj = t_output_helper(resultobj,o);
21794 }
21795 return resultobj;
21796 fail:
21797 return NULL;
21798}
21799
21800
21801static PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
21802 PyObject *resultobj;
21803 wxWindow *arg1 = (wxWindow *) 0 ;
21804 wxPoint result;
21805 PyObject * obj0 = 0 ;
21806 char *kwnames[] = {
21807 (char *) "self", NULL
21808 };
21809
21810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientAreaOrigin",kwnames,&obj0)) goto fail;
21811 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21812 {
21813 PyThreadState* __tstate = wxPyBeginAllowThreads();
21814 result = ((wxWindow const *)arg1)->GetClientAreaOrigin();
21815
21816 wxPyEndAllowThreads(__tstate);
21817 if (PyErr_Occurred()) SWIG_fail;
21818 }
21819 {
21820 wxPoint * resultptr;
21821 resultptr = new wxPoint((wxPoint &) result);
21822 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
21823 }
21824 return resultobj;
21825 fail:
21826 return NULL;
21827}
21828
21829
21830static PyObject *_wrap_Window_GetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) {
21831 PyObject *resultobj;
21832 wxWindow *arg1 = (wxWindow *) 0 ;
21833 wxRect result;
21834 PyObject * obj0 = 0 ;
21835 char *kwnames[] = {
21836 (char *) "self", NULL
21837 };
21838
21839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientRect",kwnames,&obj0)) goto fail;
21840 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21841 {
21842 PyThreadState* __tstate = wxPyBeginAllowThreads();
21843 result = ((wxWindow const *)arg1)->GetClientRect();
21844
21845 wxPyEndAllowThreads(__tstate);
21846 if (PyErr_Occurred()) SWIG_fail;
21847 }
21848 {
21849 wxRect * resultptr;
21850 resultptr = new wxRect((wxRect &) result);
21851 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
21852 }
21853 return resultobj;
21854 fail:
21855 return NULL;
21856}
21857
21858
21859static PyObject *_wrap_Window_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
21860 PyObject *resultobj;
21861 wxWindow *arg1 = (wxWindow *) 0 ;
21862 wxSize result;
21863 PyObject * obj0 = 0 ;
21864 char *kwnames[] = {
21865 (char *) "self", NULL
21866 };
21867
21868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSize",kwnames,&obj0)) goto fail;
21869 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21870 {
21871 PyThreadState* __tstate = wxPyBeginAllowThreads();
21872 result = ((wxWindow const *)arg1)->GetBestSize();
21873
21874 wxPyEndAllowThreads(__tstate);
21875 if (PyErr_Occurred()) SWIG_fail;
21876 }
21877 {
21878 wxSize * resultptr;
21879 resultptr = new wxSize((wxSize &) result);
21880 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
21881 }
21882 return resultobj;
21883 fail:
21884 return NULL;
21885}
21886
21887
21888static PyObject *_wrap_Window_GetBestSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
21889 PyObject *resultobj;
21890 wxWindow *arg1 = (wxWindow *) 0 ;
21891 int *arg2 = (int *) 0 ;
21892 int *arg3 = (int *) 0 ;
21893 int temp2 ;
21894 int temp3 ;
21895 PyObject * obj0 = 0 ;
21896 char *kwnames[] = {
21897 (char *) "self", NULL
21898 };
21899
21900 arg2 = &temp2;
21901 arg3 = &temp3;
21902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSizeTuple",kwnames,&obj0)) goto fail;
21903 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21904 {
21905 PyThreadState* __tstate = wxPyBeginAllowThreads();
21906 ((wxWindow const *)arg1)->GetBestSize(arg2,arg3);
21907
21908 wxPyEndAllowThreads(__tstate);
21909 if (PyErr_Occurred()) SWIG_fail;
21910 }
21911 Py_INCREF(Py_None); resultobj = Py_None;
21912 {
21913 PyObject *o = PyInt_FromLong((long) (*arg2));
21914 resultobj = t_output_helper(resultobj,o);
21915 }
21916 {
21917 PyObject *o = PyInt_FromLong((long) (*arg3));
21918 resultobj = t_output_helper(resultobj,o);
21919 }
21920 return resultobj;
21921 fail:
21922 return NULL;
21923}
21924
21925
21926static PyObject *_wrap_Window_GetAdjustedBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
21927 PyObject *resultobj;
21928 wxWindow *arg1 = (wxWindow *) 0 ;
21929 wxSize result;
21930 PyObject * obj0 = 0 ;
21931 char *kwnames[] = {
21932 (char *) "self", NULL
21933 };
21934
21935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAdjustedBestSize",kwnames,&obj0)) goto fail;
21936 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
21937 {
21938 PyThreadState* __tstate = wxPyBeginAllowThreads();
21939 result = ((wxWindow const *)arg1)->GetAdjustedBestSize();
21940
21941 wxPyEndAllowThreads(__tstate);
21942 if (PyErr_Occurred()) SWIG_fail;
21943 }
21944 {
21945 wxSize * resultptr;
21946 resultptr = new wxSize((wxSize &) result);
21947 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
21948 }
21949 return resultobj;
21950 fail:
21951 return NULL;
21952}
21953
21954
21955static PyObject *_wrap_Window_Center(PyObject *self, PyObject *args, PyObject *kwargs) {
21956 PyObject *resultobj;
21957 wxWindow *arg1 = (wxWindow *) 0 ;
21958 int arg2 = (int) wxBOTH ;
21959 PyObject * obj0 = 0 ;
8edf1c75 21960 PyObject * obj1 = 0 ;
d14a1e28
RD
21961 char *kwnames[] = {
21962 (char *) "self",(char *) "direction", NULL
21963 };
21964
8edf1c75 21965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Center",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 21966 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
21967 if (obj1) {
21968 {
21969 arg2 = (int) SWIG_PyObj_AsInt(obj1);
21970 if (PyErr_Occurred()) SWIG_fail;
21971 }
21972 }
d14a1e28
RD
21973 {
21974 PyThreadState* __tstate = wxPyBeginAllowThreads();
21975 (arg1)->Center(arg2);
21976
21977 wxPyEndAllowThreads(__tstate);
21978 if (PyErr_Occurred()) SWIG_fail;
21979 }
21980 Py_INCREF(Py_None); resultobj = Py_None;
21981 return resultobj;
21982 fail:
21983 return NULL;
21984}
21985
21986
21987static PyObject *_wrap_Window_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) {
21988 PyObject *resultobj;
21989 wxWindow *arg1 = (wxWindow *) 0 ;
21990 int arg2 = (int) wxBOTH ;
21991 PyObject * obj0 = 0 ;
8edf1c75 21992 PyObject * obj1 = 0 ;
d14a1e28
RD
21993 char *kwnames[] = {
21994 (char *) "self",(char *) "dir", NULL
21995 };
21996
8edf1c75 21997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnScreen",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 21998 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
21999 if (obj1) {
22000 {
22001 arg2 = (int) SWIG_PyObj_AsInt(obj1);
22002 if (PyErr_Occurred()) SWIG_fail;
22003 }
22004 }
d14a1e28
RD
22005 {
22006 PyThreadState* __tstate = wxPyBeginAllowThreads();
22007 (arg1)->CenterOnScreen(arg2);
22008
22009 wxPyEndAllowThreads(__tstate);
22010 if (PyErr_Occurred()) SWIG_fail;
22011 }
22012 Py_INCREF(Py_None); resultobj = Py_None;
22013 return resultobj;
22014 fail:
22015 return NULL;
22016}
22017
22018
22019static PyObject *_wrap_Window_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) {
22020 PyObject *resultobj;
22021 wxWindow *arg1 = (wxWindow *) 0 ;
22022 int arg2 = (int) wxBOTH ;
22023 PyObject * obj0 = 0 ;
8edf1c75 22024 PyObject * obj1 = 0 ;
d14a1e28
RD
22025 char *kwnames[] = {
22026 (char *) "self",(char *) "dir", NULL
22027 };
22028
8edf1c75 22029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnParent",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 22030 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
22031 if (obj1) {
22032 {
22033 arg2 = (int) SWIG_PyObj_AsInt(obj1);
22034 if (PyErr_Occurred()) SWIG_fail;
22035 }
22036 }
d14a1e28
RD
22037 {
22038 PyThreadState* __tstate = wxPyBeginAllowThreads();
22039 (arg1)->CenterOnParent(arg2);
22040
22041 wxPyEndAllowThreads(__tstate);
22042 if (PyErr_Occurred()) SWIG_fail;
22043 }
22044 Py_INCREF(Py_None); resultobj = Py_None;
22045 return resultobj;
22046 fail:
22047 return NULL;
22048}
22049
22050
22051static PyObject *_wrap_Window_Fit(PyObject *self, PyObject *args, PyObject *kwargs) {
22052 PyObject *resultobj;
22053 wxWindow *arg1 = (wxWindow *) 0 ;
22054 PyObject * obj0 = 0 ;
22055 char *kwnames[] = {
22056 (char *) "self", NULL
22057 };
22058
22059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Fit",kwnames,&obj0)) goto fail;
22060 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22061 {
22062 PyThreadState* __tstate = wxPyBeginAllowThreads();
22063 (arg1)->Fit();
22064
22065 wxPyEndAllowThreads(__tstate);
22066 if (PyErr_Occurred()) SWIG_fail;
22067 }
22068 Py_INCREF(Py_None); resultobj = Py_None;
22069 return resultobj;
22070 fail:
22071 return NULL;
22072}
22073
22074
22075static PyObject *_wrap_Window_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) {
22076 PyObject *resultobj;
22077 wxWindow *arg1 = (wxWindow *) 0 ;
22078 PyObject * obj0 = 0 ;
22079 char *kwnames[] = {
22080 (char *) "self", NULL
22081 };
22082
22083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FitInside",kwnames,&obj0)) goto fail;
22084 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22085 {
22086 PyThreadState* __tstate = wxPyBeginAllowThreads();
22087 (arg1)->FitInside();
22088
22089 wxPyEndAllowThreads(__tstate);
22090 if (PyErr_Occurred()) SWIG_fail;
22091 }
22092 Py_INCREF(Py_None); resultobj = Py_None;
22093 return resultobj;
22094 fail:
22095 return NULL;
22096}
22097
22098
22099static PyObject *_wrap_Window_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) {
22100 PyObject *resultobj;
22101 wxWindow *arg1 = (wxWindow *) 0 ;
22102 int arg2 ;
22103 int arg3 ;
22104 int arg4 = (int) -1 ;
22105 int arg5 = (int) -1 ;
22106 int arg6 = (int) -1 ;
22107 int arg7 = (int) -1 ;
22108 PyObject * obj0 = 0 ;
8edf1c75
RD
22109 PyObject * obj1 = 0 ;
22110 PyObject * obj2 = 0 ;
22111 PyObject * obj3 = 0 ;
22112 PyObject * obj4 = 0 ;
22113 PyObject * obj5 = 0 ;
22114 PyObject * obj6 = 0 ;
d14a1e28
RD
22115 char *kwnames[] = {
22116 (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH",(char *) "incW",(char *) "incH", NULL
22117 };
22118
8edf1c75 22119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Window_SetSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
d14a1e28 22120 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
22121 {
22122 arg2 = (int) SWIG_PyObj_AsInt(obj1);
22123 if (PyErr_Occurred()) SWIG_fail;
22124 }
22125 {
22126 arg3 = (int) SWIG_PyObj_AsInt(obj2);
22127 if (PyErr_Occurred()) SWIG_fail;
22128 }
22129 if (obj3) {
22130 {
22131 arg4 = (int) SWIG_PyObj_AsInt(obj3);
22132 if (PyErr_Occurred()) SWIG_fail;
22133 }
22134 }
22135 if (obj4) {
22136 {
22137 arg5 = (int) SWIG_PyObj_AsInt(obj4);
22138 if (PyErr_Occurred()) SWIG_fail;
22139 }
22140 }
22141 if (obj5) {
22142 {
22143 arg6 = (int) SWIG_PyObj_AsInt(obj5);
22144 if (PyErr_Occurred()) SWIG_fail;
22145 }
22146 }
22147 if (obj6) {
22148 {
22149 arg7 = (int) SWIG_PyObj_AsInt(obj6);
22150 if (PyErr_Occurred()) SWIG_fail;
22151 }
22152 }
d14a1e28
RD
22153 {
22154 PyThreadState* __tstate = wxPyBeginAllowThreads();
22155 (arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7);
22156
22157 wxPyEndAllowThreads(__tstate);
22158 if (PyErr_Occurred()) SWIG_fail;
22159 }
22160 Py_INCREF(Py_None); resultobj = Py_None;
22161 return resultobj;
22162 fail:
22163 return NULL;
22164}
22165
22166
22167static PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) {
22168 PyObject *resultobj;
22169 wxWindow *arg1 = (wxWindow *) 0 ;
22170 int arg2 ;
22171 int arg3 ;
22172 int arg4 = (int) -1 ;
22173 int arg5 = (int) -1 ;
22174 PyObject * obj0 = 0 ;
8edf1c75
RD
22175 PyObject * obj1 = 0 ;
22176 PyObject * obj2 = 0 ;
22177 PyObject * obj3 = 0 ;
22178 PyObject * obj4 = 0 ;
d14a1e28
RD
22179 char *kwnames[] = {
22180 (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH", NULL
22181 };
22182
8edf1c75 22183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_SetVirtualSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d14a1e28 22184 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
22185 {
22186 arg2 = (int) SWIG_PyObj_AsInt(obj1);
22187 if (PyErr_Occurred()) SWIG_fail;
22188 }
22189 {
22190 arg3 = (int) SWIG_PyObj_AsInt(obj2);
22191 if (PyErr_Occurred()) SWIG_fail;
22192 }
22193 if (obj3) {
22194 {
22195 arg4 = (int) SWIG_PyObj_AsInt(obj3);
22196 if (PyErr_Occurred()) SWIG_fail;
22197 }
22198 }
22199 if (obj4) {
22200 {
22201 arg5 = (int) SWIG_PyObj_AsInt(obj4);
22202 if (PyErr_Occurred()) SWIG_fail;
22203 }
22204 }
d14a1e28
RD
22205 {
22206 PyThreadState* __tstate = wxPyBeginAllowThreads();
22207 (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5);
22208
22209 wxPyEndAllowThreads(__tstate);
22210 if (PyErr_Occurred()) SWIG_fail;
22211 }
22212 Py_INCREF(Py_None); resultobj = Py_None;
22213 return resultobj;
22214 fail:
22215 return NULL;
22216}
22217
22218
22219static PyObject *_wrap_Window_GetMinWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
22220 PyObject *resultobj;
22221 wxWindow *arg1 = (wxWindow *) 0 ;
22222 int result;
22223 PyObject * obj0 = 0 ;
22224 char *kwnames[] = {
22225 (char *) "self", NULL
22226 };
22227
22228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinWidth",kwnames,&obj0)) goto fail;
22229 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22230 {
22231 PyThreadState* __tstate = wxPyBeginAllowThreads();
22232 result = (int)((wxWindow const *)arg1)->GetMinWidth();
22233
22234 wxPyEndAllowThreads(__tstate);
22235 if (PyErr_Occurred()) SWIG_fail;
22236 }
8edf1c75 22237 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
22238 return resultobj;
22239 fail:
22240 return NULL;
22241}
22242
22243
22244static PyObject *_wrap_Window_GetMinHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
22245 PyObject *resultobj;
22246 wxWindow *arg1 = (wxWindow *) 0 ;
22247 int result;
22248 PyObject * obj0 = 0 ;
22249 char *kwnames[] = {
22250 (char *) "self", NULL
22251 };
22252
22253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinHeight",kwnames,&obj0)) goto fail;
22254 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22255 {
22256 PyThreadState* __tstate = wxPyBeginAllowThreads();
22257 result = (int)((wxWindow const *)arg1)->GetMinHeight();
22258
22259 wxPyEndAllowThreads(__tstate);
22260 if (PyErr_Occurred()) SWIG_fail;
22261 }
8edf1c75 22262 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
22263 return resultobj;
22264 fail:
22265 return NULL;
22266}
22267
22268
22269static PyObject *_wrap_Window_GetMaxWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
22270 PyObject *resultobj;
22271 wxWindow *arg1 = (wxWindow *) 0 ;
22272 int result;
22273 PyObject * obj0 = 0 ;
22274 char *kwnames[] = {
22275 (char *) "self", NULL
22276 };
22277
22278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxWidth",kwnames,&obj0)) goto fail;
22279 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22280 {
22281 PyThreadState* __tstate = wxPyBeginAllowThreads();
22282 result = (int)((wxWindow const *)arg1)->GetMaxWidth();
22283
22284 wxPyEndAllowThreads(__tstate);
22285 if (PyErr_Occurred()) SWIG_fail;
22286 }
8edf1c75 22287 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
22288 return resultobj;
22289 fail:
22290 return NULL;
22291}
22292
22293
22294static PyObject *_wrap_Window_GetMaxHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
22295 PyObject *resultobj;
22296 wxWindow *arg1 = (wxWindow *) 0 ;
22297 int result;
22298 PyObject * obj0 = 0 ;
22299 char *kwnames[] = {
22300 (char *) "self", NULL
22301 };
22302
22303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxHeight",kwnames,&obj0)) goto fail;
22304 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22305 {
22306 PyThreadState* __tstate = wxPyBeginAllowThreads();
22307 result = (int)((wxWindow const *)arg1)->GetMaxHeight();
22308
22309 wxPyEndAllowThreads(__tstate);
22310 if (PyErr_Occurred()) SWIG_fail;
22311 }
8edf1c75 22312 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
22313 return resultobj;
22314 fail:
22315 return NULL;
22316}
22317
22318
22319static PyObject *_wrap_Window_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22320 PyObject *resultobj;
22321 wxWindow *arg1 = (wxWindow *) 0 ;
22322 wxSize result;
22323 PyObject * obj0 = 0 ;
22324 char *kwnames[] = {
22325 (char *) "self", NULL
22326 };
22327
22328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxSize",kwnames,&obj0)) goto fail;
22329 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22330 {
22331 PyThreadState* __tstate = wxPyBeginAllowThreads();
22332 result = ((wxWindow const *)arg1)->GetMaxSize();
22333
22334 wxPyEndAllowThreads(__tstate);
22335 if (PyErr_Occurred()) SWIG_fail;
22336 }
22337 {
22338 wxSize * resultptr;
22339 resultptr = new wxSize((wxSize &) result);
22340 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
22341 }
22342 return resultobj;
22343 fail:
22344 return NULL;
22345}
22346
22347
22348static PyObject *_wrap_Window_SetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22349 PyObject *resultobj;
22350 wxWindow *arg1 = (wxWindow *) 0 ;
22351 wxSize *arg2 = 0 ;
22352 wxSize temp2 ;
22353 PyObject * obj0 = 0 ;
22354 PyObject * obj1 = 0 ;
22355 char *kwnames[] = {
22356 (char *) "self",(char *) "size", NULL
22357 };
22358
22359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) goto fail;
22360 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22361 {
22362 arg2 = &temp2;
22363 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
22364 }
22365 {
22366 PyThreadState* __tstate = wxPyBeginAllowThreads();
22367 (arg1)->SetVirtualSize((wxSize const &)*arg2);
22368
22369 wxPyEndAllowThreads(__tstate);
22370 if (PyErr_Occurred()) SWIG_fail;
22371 }
22372 Py_INCREF(Py_None); resultobj = Py_None;
22373 return resultobj;
22374 fail:
22375 return NULL;
22376}
22377
22378
22379static PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
22380 PyObject *resultobj;
22381 wxWindow *arg1 = (wxWindow *) 0 ;
22382 int arg2 ;
22383 int arg3 ;
22384 PyObject * obj0 = 0 ;
8edf1c75
RD
22385 PyObject * obj1 = 0 ;
22386 PyObject * obj2 = 0 ;
d14a1e28
RD
22387 char *kwnames[] = {
22388 (char *) "self",(char *) "w",(char *) "h", NULL
22389 };
22390
8edf1c75 22391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetVirtualSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 22392 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
22393 {
22394 arg2 = (int) SWIG_PyObj_AsInt(obj1);
22395 if (PyErr_Occurred()) SWIG_fail;
22396 }
22397 {
22398 arg3 = (int) SWIG_PyObj_AsInt(obj2);
22399 if (PyErr_Occurred()) SWIG_fail;
22400 }
d14a1e28
RD
22401 {
22402 PyThreadState* __tstate = wxPyBeginAllowThreads();
22403 (arg1)->SetVirtualSize(arg2,arg3);
22404
22405 wxPyEndAllowThreads(__tstate);
22406 if (PyErr_Occurred()) SWIG_fail;
22407 }
22408 Py_INCREF(Py_None); resultobj = Py_None;
22409 return resultobj;
22410 fail:
22411 return NULL;
22412}
22413
22414
22415static PyObject *_wrap_Window_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22416 PyObject *resultobj;
22417 wxWindow *arg1 = (wxWindow *) 0 ;
22418 wxSize result;
22419 PyObject * obj0 = 0 ;
22420 char *kwnames[] = {
22421 (char *) "self", NULL
22422 };
22423
22424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSize",kwnames,&obj0)) goto fail;
22425 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22426 {
22427 PyThreadState* __tstate = wxPyBeginAllowThreads();
22428 result = ((wxWindow const *)arg1)->GetVirtualSize();
22429
22430 wxPyEndAllowThreads(__tstate);
22431 if (PyErr_Occurred()) SWIG_fail;
22432 }
22433 {
22434 wxSize * resultptr;
22435 resultptr = new wxSize((wxSize &) result);
22436 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
22437 }
22438 return resultobj;
22439 fail:
22440 return NULL;
22441}
22442
22443
22444static PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
22445 PyObject *resultobj;
22446 wxWindow *arg1 = (wxWindow *) 0 ;
22447 int *arg2 = (int *) 0 ;
22448 int *arg3 = (int *) 0 ;
22449 int temp2 ;
22450 int temp3 ;
22451 PyObject * obj0 = 0 ;
22452 char *kwnames[] = {
22453 (char *) "self", NULL
22454 };
22455
22456 arg2 = &temp2;
22457 arg3 = &temp3;
22458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSizeTuple",kwnames,&obj0)) goto fail;
22459 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22460 {
22461 PyThreadState* __tstate = wxPyBeginAllowThreads();
22462 ((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3);
22463
22464 wxPyEndAllowThreads(__tstate);
22465 if (PyErr_Occurred()) SWIG_fail;
22466 }
22467 Py_INCREF(Py_None); resultobj = Py_None;
22468 {
22469 PyObject *o = PyInt_FromLong((long) (*arg2));
22470 resultobj = t_output_helper(resultobj,o);
22471 }
22472 {
22473 PyObject *o = PyInt_FromLong((long) (*arg3));
22474 resultobj = t_output_helper(resultobj,o);
22475 }
22476 return resultobj;
22477 fail:
22478 return NULL;
22479}
22480
22481
22482static PyObject *_wrap_Window_GetBestVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22483 PyObject *resultobj;
22484 wxWindow *arg1 = (wxWindow *) 0 ;
22485 wxSize result;
22486 PyObject * obj0 = 0 ;
22487 char *kwnames[] = {
22488 (char *) "self", NULL
22489 };
22490
22491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestVirtualSize",kwnames,&obj0)) goto fail;
22492 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22493 {
22494 PyThreadState* __tstate = wxPyBeginAllowThreads();
22495 result = ((wxWindow const *)arg1)->GetBestVirtualSize();
22496
22497 wxPyEndAllowThreads(__tstate);
22498 if (PyErr_Occurred()) SWIG_fail;
22499 }
22500 {
22501 wxSize * resultptr;
22502 resultptr = new wxSize((wxSize &) result);
22503 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
22504 }
22505 return resultobj;
22506 fail:
22507 return NULL;
22508}
22509
22510
22511static PyObject *_wrap_Window_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
22512 PyObject *resultobj;
22513 wxWindow *arg1 = (wxWindow *) 0 ;
423f194a 22514 bool arg2 = (bool) True ;
d14a1e28
RD
22515 bool result;
22516 PyObject * obj0 = 0 ;
22517 PyObject * obj1 = 0 ;
22518 char *kwnames[] = {
22519 (char *) "self",(char *) "show", NULL
22520 };
22521
22522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) goto fail;
22523 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22524 if (obj1) {
83448d71 22525 {
8edf1c75 22526 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
22527 if (PyErr_Occurred()) SWIG_fail;
22528 }
d14a1e28
RD
22529 }
22530 {
22531 PyThreadState* __tstate = wxPyBeginAllowThreads();
22532 result = (bool)(arg1)->Show(arg2);
22533
22534 wxPyEndAllowThreads(__tstate);
22535 if (PyErr_Occurred()) SWIG_fail;
22536 }
4e760a36 22537 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
22538 return resultobj;
22539 fail:
22540 return NULL;
22541}
22542
22543
22544static PyObject *_wrap_Window_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
22545 PyObject *resultobj;
22546 wxWindow *arg1 = (wxWindow *) 0 ;
22547 bool result;
22548 PyObject * obj0 = 0 ;
22549 char *kwnames[] = {
22550 (char *) "self", NULL
22551 };
22552
22553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Hide",kwnames,&obj0)) goto fail;
22554 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22555 {
22556 PyThreadState* __tstate = wxPyBeginAllowThreads();
22557 result = (bool)(arg1)->Hide();
22558
22559 wxPyEndAllowThreads(__tstate);
22560 if (PyErr_Occurred()) SWIG_fail;
22561 }
4e760a36 22562 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
22563 return resultobj;
22564 fail:
22565 return NULL;
22566}
22567
22568
22569static PyObject *_wrap_Window_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
22570 PyObject *resultobj;
22571 wxWindow *arg1 = (wxWindow *) 0 ;
423f194a 22572 bool arg2 = (bool) True ;
d14a1e28
RD
22573 bool result;
22574 PyObject * obj0 = 0 ;
22575 PyObject * obj1 = 0 ;
22576 char *kwnames[] = {
22577 (char *) "self",(char *) "enable", NULL
22578 };
22579
22580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) goto fail;
22581 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22582 if (obj1) {
83448d71 22583 {
8edf1c75 22584 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
22585 if (PyErr_Occurred()) SWIG_fail;
22586 }
d14a1e28
RD
22587 }
22588 {
22589 PyThreadState* __tstate = wxPyBeginAllowThreads();
22590 result = (bool)(arg1)->Enable(arg2);
22591
22592 wxPyEndAllowThreads(__tstate);
22593 if (PyErr_Occurred()) SWIG_fail;
22594 }
4e760a36 22595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
22596 return resultobj;
22597 fail:
22598 return NULL;
22599}
22600
22601
22602static PyObject *_wrap_Window_Disable(PyObject *self, PyObject *args, PyObject *kwargs) {
22603 PyObject *resultobj;
22604 wxWindow *arg1 = (wxWindow *) 0 ;
22605 bool result;
22606 PyObject * obj0 = 0 ;
22607 char *kwnames[] = {
22608 (char *) "self", NULL
22609 };
22610
22611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Disable",kwnames,&obj0)) goto fail;
22612 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22613 {
22614 PyThreadState* __tstate = wxPyBeginAllowThreads();
22615 result = (bool)(arg1)->Disable();
22616
22617 wxPyEndAllowThreads(__tstate);
22618 if (PyErr_Occurred()) SWIG_fail;
22619 }
4e760a36 22620 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
22621 return resultobj;
22622 fail:
22623 return NULL;
22624}
22625
22626
22627static PyObject *_wrap_Window_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) {
22628 PyObject *resultobj;
22629 wxWindow *arg1 = (wxWindow *) 0 ;
22630 bool result;
22631 PyObject * obj0 = 0 ;
22632 char *kwnames[] = {
22633 (char *) "self", NULL
22634 };
22635
22636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsShown",kwnames,&obj0)) goto fail;
22637 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22638 {
22639 PyThreadState* __tstate = wxPyBeginAllowThreads();
22640 result = (bool)((wxWindow const *)arg1)->IsShown();
22641
22642 wxPyEndAllowThreads(__tstate);
22643 if (PyErr_Occurred()) SWIG_fail;
22644 }
4e760a36 22645 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
22646 return resultobj;
22647 fail:
22648 return NULL;
22649}
22650
22651
22652static PyObject *_wrap_Window_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
22653 PyObject *resultobj;
22654 wxWindow *arg1 = (wxWindow *) 0 ;
22655 bool result;
22656 PyObject * obj0 = 0 ;
22657 char *kwnames[] = {
22658 (char *) "self", NULL
22659 };
22660
22661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsEnabled",kwnames,&obj0)) goto fail;
22662 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22663 {
22664 PyThreadState* __tstate = wxPyBeginAllowThreads();
22665 result = (bool)((wxWindow const *)arg1)->IsEnabled();
22666
22667 wxPyEndAllowThreads(__tstate);
22668 if (PyErr_Occurred()) SWIG_fail;
22669 }
4e760a36 22670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
22671 return resultobj;
22672 fail:
22673 return NULL;
22674}
22675
22676
22677static PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
22678 PyObject *resultobj;
22679 wxWindow *arg1 = (wxWindow *) 0 ;
22680 long arg2 ;
22681 PyObject * obj0 = 0 ;
8edf1c75 22682 PyObject * obj1 = 0 ;
d14a1e28
RD
22683 char *kwnames[] = {
22684 (char *) "self",(char *) "style", NULL
22685 };
22686
8edf1c75 22687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 22688 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
22689 {
22690 arg2 = (long) SWIG_PyObj_AsLong(obj1);
22691 if (PyErr_Occurred()) SWIG_fail;
22692 }
d14a1e28
RD
22693 {
22694 PyThreadState* __tstate = wxPyBeginAllowThreads();
22695 (arg1)->SetWindowStyleFlag(arg2);
22696
22697 wxPyEndAllowThreads(__tstate);
22698 if (PyErr_Occurred()) SWIG_fail;
22699 }
22700 Py_INCREF(Py_None); resultobj = Py_None;
22701 return resultobj;
22702 fail:
22703 return NULL;
22704}
22705
22706
22707static PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
22708 PyObject *resultobj;
22709 wxWindow *arg1 = (wxWindow *) 0 ;
22710 long result;
22711 PyObject * obj0 = 0 ;
22712 char *kwnames[] = {
22713 (char *) "self", NULL
22714 };
22715
22716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyleFlag",kwnames,&obj0)) goto fail;
22717 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22718 {
22719 PyThreadState* __tstate = wxPyBeginAllowThreads();
22720 result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag();
22721
22722 wxPyEndAllowThreads(__tstate);
22723 if (PyErr_Occurred()) SWIG_fail;
22724 }
8edf1c75 22725 resultobj = SWIG_PyObj_FromLong((long)result);
d14a1e28
RD
22726 return resultobj;
22727 fail:
22728 return NULL;
22729}
22730
22731
22732static PyObject *_wrap_Window_SetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
22733 PyObject *resultobj;
22734 wxWindow *arg1 = (wxWindow *) 0 ;
22735 long arg2 ;
22736 PyObject * obj0 = 0 ;
8edf1c75 22737 PyObject * obj1 = 0 ;
d14a1e28
RD
22738 char *kwnames[] = {
22739 (char *) "self",(char *) "style", NULL
22740 };
22741
8edf1c75 22742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyle",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 22743 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
22744 {
22745 arg2 = (long) SWIG_PyObj_AsLong(obj1);
22746 if (PyErr_Occurred()) SWIG_fail;
22747 }
d14a1e28
RD
22748 {
22749 PyThreadState* __tstate = wxPyBeginAllowThreads();
22750 (arg1)->SetWindowStyle(arg2);
22751
22752 wxPyEndAllowThreads(__tstate);
22753 if (PyErr_Occurred()) SWIG_fail;
22754 }
22755 Py_INCREF(Py_None); resultobj = Py_None;
22756 return resultobj;
22757 fail:
22758 return NULL;
22759}
22760
22761
22762static PyObject *_wrap_Window_GetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
22763 PyObject *resultobj;
22764 wxWindow *arg1 = (wxWindow *) 0 ;
22765 long result;
22766 PyObject * obj0 = 0 ;
22767 char *kwnames[] = {
22768 (char *) "self", NULL
22769 };
22770
22771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyle",kwnames,&obj0)) goto fail;
22772 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22773 {
22774 PyThreadState* __tstate = wxPyBeginAllowThreads();
22775 result = (long)((wxWindow const *)arg1)->GetWindowStyle();
22776
22777 wxPyEndAllowThreads(__tstate);
22778 if (PyErr_Occurred()) SWIG_fail;
22779 }
8edf1c75 22780 resultobj = SWIG_PyObj_FromLong((long)result);
d14a1e28
RD
22781 return resultobj;
22782 fail:
22783 return NULL;
22784}
22785
22786
22787static PyObject *_wrap_Window_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
22788 PyObject *resultobj;
22789 wxWindow *arg1 = (wxWindow *) 0 ;
22790 int arg2 ;
22791 bool result;
22792 PyObject * obj0 = 0 ;
8edf1c75 22793 PyObject * obj1 = 0 ;
d14a1e28
RD
22794 char *kwnames[] = {
22795 (char *) "self",(char *) "flag", NULL
22796 };
22797
8edf1c75 22798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasFlag",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 22799 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
22800 {
22801 arg2 = (int) SWIG_PyObj_AsInt(obj1);
22802 if (PyErr_Occurred()) SWIG_fail;
22803 }
d14a1e28
RD
22804 {
22805 PyThreadState* __tstate = wxPyBeginAllowThreads();
22806 result = (bool)((wxWindow const *)arg1)->HasFlag(arg2);
22807
22808 wxPyEndAllowThreads(__tstate);
22809 if (PyErr_Occurred()) SWIG_fail;
22810 }
4e760a36 22811 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
22812 return resultobj;
22813 fail:
22814 return NULL;
22815}
22816
22817
22818static PyObject *_wrap_Window_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) {
22819 PyObject *resultobj;
22820 wxWindow *arg1 = (wxWindow *) 0 ;
22821 bool result;
22822 PyObject * obj0 = 0 ;
22823 char *kwnames[] = {
22824 (char *) "self", NULL
22825 };
22826
22827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsRetained",kwnames,&obj0)) goto fail;
22828 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22829 {
22830 PyThreadState* __tstate = wxPyBeginAllowThreads();
22831 result = (bool)((wxWindow const *)arg1)->IsRetained();
22832
22833 wxPyEndAllowThreads(__tstate);
22834 if (PyErr_Occurred()) SWIG_fail;
22835 }
4e760a36 22836 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
22837 return resultobj;
22838 fail:
22839 return NULL;
22840}
22841
22842
22843static PyObject *_wrap_Window_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
22844 PyObject *resultobj;
22845 wxWindow *arg1 = (wxWindow *) 0 ;
22846 long arg2 ;
22847 PyObject * obj0 = 0 ;
8edf1c75 22848 PyObject * obj1 = 0 ;
d14a1e28
RD
22849 char *kwnames[] = {
22850 (char *) "self",(char *) "exStyle", NULL
22851 };
22852
8edf1c75 22853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetExtraStyle",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 22854 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
22855 {
22856 arg2 = (long) SWIG_PyObj_AsLong(obj1);
22857 if (PyErr_Occurred()) SWIG_fail;
22858 }
d14a1e28
RD
22859 {
22860 PyThreadState* __tstate = wxPyBeginAllowThreads();
22861 (arg1)->SetExtraStyle(arg2);
22862
22863 wxPyEndAllowThreads(__tstate);
22864 if (PyErr_Occurred()) SWIG_fail;
22865 }
22866 Py_INCREF(Py_None); resultobj = Py_None;
22867 return resultobj;
22868 fail:
22869 return NULL;
22870}
22871
22872
22873static PyObject *_wrap_Window_GetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
22874 PyObject *resultobj;
22875 wxWindow *arg1 = (wxWindow *) 0 ;
22876 long result;
22877 PyObject * obj0 = 0 ;
22878 char *kwnames[] = {
22879 (char *) "self", NULL
22880 };
22881
22882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetExtraStyle",kwnames,&obj0)) goto fail;
22883 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22884 {
22885 PyThreadState* __tstate = wxPyBeginAllowThreads();
22886 result = (long)((wxWindow const *)arg1)->GetExtraStyle();
22887
22888 wxPyEndAllowThreads(__tstate);
22889 if (PyErr_Occurred()) SWIG_fail;
22890 }
8edf1c75 22891 resultobj = SWIG_PyObj_FromLong((long)result);
d14a1e28
RD
22892 return resultobj;
22893 fail:
22894 return NULL;
22895}
22896
22897
22898static PyObject *_wrap_Window_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) {
22899 PyObject *resultobj;
22900 wxWindow *arg1 = (wxWindow *) 0 ;
423f194a 22901 bool arg2 = (bool) True ;
d14a1e28
RD
22902 PyObject * obj0 = 0 ;
22903 PyObject * obj1 = 0 ;
22904 char *kwnames[] = {
22905 (char *) "self",(char *) "modal", NULL
22906 };
22907
22908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) goto fail;
22909 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22910 if (obj1) {
83448d71 22911 {
8edf1c75 22912 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
22913 if (PyErr_Occurred()) SWIG_fail;
22914 }
d14a1e28
RD
22915 }
22916 {
22917 PyThreadState* __tstate = wxPyBeginAllowThreads();
22918 (arg1)->MakeModal(arg2);
22919
22920 wxPyEndAllowThreads(__tstate);
22921 if (PyErr_Occurred()) SWIG_fail;
22922 }
22923 Py_INCREF(Py_None); resultobj = Py_None;
22924 return resultobj;
22925 fail:
22926 return NULL;
22927}
22928
22929
22930static PyObject *_wrap_Window_SetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
22931 PyObject *resultobj;
22932 wxWindow *arg1 = (wxWindow *) 0 ;
22933 bool arg2 ;
22934 PyObject * obj0 = 0 ;
22935 PyObject * obj1 = 0 ;
22936 char *kwnames[] = {
22937 (char *) "self",(char *) "enableTheme", NULL
22938 };
22939
22940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) goto fail;
22941 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 22942 {
8edf1c75 22943 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
22944 if (PyErr_Occurred()) SWIG_fail;
22945 }
d14a1e28
RD
22946 {
22947 PyThreadState* __tstate = wxPyBeginAllowThreads();
22948 (arg1)->SetThemeEnabled(arg2);
22949
22950 wxPyEndAllowThreads(__tstate);
22951 if (PyErr_Occurred()) SWIG_fail;
22952 }
22953 Py_INCREF(Py_None); resultobj = Py_None;
22954 return resultobj;
22955 fail:
22956 return NULL;
22957}
22958
22959
22960static PyObject *_wrap_Window_GetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
22961 PyObject *resultobj;
22962 wxWindow *arg1 = (wxWindow *) 0 ;
22963 bool result;
22964 PyObject * obj0 = 0 ;
22965 char *kwnames[] = {
22966 (char *) "self", NULL
22967 };
22968
22969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetThemeEnabled",kwnames,&obj0)) goto fail;
22970 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22971 {
22972 PyThreadState* __tstate = wxPyBeginAllowThreads();
22973 result = (bool)((wxWindow const *)arg1)->GetThemeEnabled();
22974
22975 wxPyEndAllowThreads(__tstate);
22976 if (PyErr_Occurred()) SWIG_fail;
22977 }
4e760a36 22978 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
22979 return resultobj;
22980 fail:
22981 return NULL;
22982}
22983
22984
22985static PyObject *_wrap_Window_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) {
22986 PyObject *resultobj;
22987 wxWindow *arg1 = (wxWindow *) 0 ;
22988 bool result;
22989 PyObject * obj0 = 0 ;
22990 char *kwnames[] = {
22991 (char *) "self", NULL
22992 };
22993
22994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ShouldInheritColours",kwnames,&obj0)) goto fail;
22995 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
22996 {
22997 PyThreadState* __tstate = wxPyBeginAllowThreads();
22998 result = (bool)((wxWindow const *)arg1)->ShouldInheritColours();
22999
23000 wxPyEndAllowThreads(__tstate);
23001 if (PyErr_Occurred()) SWIG_fail;
23002 }
4e760a36 23003 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
23004 return resultobj;
23005 fail:
23006 return NULL;
23007}
23008
23009
23010static PyObject *_wrap_Window_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
23011 PyObject *resultobj;
23012 wxWindow *arg1 = (wxWindow *) 0 ;
23013 PyObject * obj0 = 0 ;
23014 char *kwnames[] = {
23015 (char *) "self", NULL
23016 };
23017
23018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocus",kwnames,&obj0)) goto fail;
23019 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23020 {
23021 PyThreadState* __tstate = wxPyBeginAllowThreads();
23022 (arg1)->SetFocus();
23023
23024 wxPyEndAllowThreads(__tstate);
23025 if (PyErr_Occurred()) SWIG_fail;
23026 }
23027 Py_INCREF(Py_None); resultobj = Py_None;
23028 return resultobj;
23029 fail:
23030 return NULL;
23031}
23032
23033
23034static PyObject *_wrap_Window_SetFocusFromKbd(PyObject *self, PyObject *args, PyObject *kwargs) {
23035 PyObject *resultobj;
23036 wxWindow *arg1 = (wxWindow *) 0 ;
23037 PyObject * obj0 = 0 ;
23038 char *kwnames[] = {
23039 (char *) "self", NULL
23040 };
23041
23042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocusFromKbd",kwnames,&obj0)) goto fail;
23043 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23044 {
23045 PyThreadState* __tstate = wxPyBeginAllowThreads();
23046 (arg1)->SetFocusFromKbd();
23047
23048 wxPyEndAllowThreads(__tstate);
23049 if (PyErr_Occurred()) SWIG_fail;
23050 }
23051 Py_INCREF(Py_None); resultobj = Py_None;
23052 return resultobj;
23053 fail:
23054 return NULL;
23055}
23056
23057
23058static PyObject *_wrap_Window_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
23059 PyObject *resultobj;
23060 wxWindow *result;
23061 char *kwnames[] = {
23062 NULL
23063 };
23064
23065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_FindFocus",kwnames)) goto fail;
23066 {
23067 PyThreadState* __tstate = wxPyBeginAllowThreads();
23068 result = (wxWindow *)wxWindow::FindFocus();
23069
23070 wxPyEndAllowThreads(__tstate);
23071 if (PyErr_Occurred()) SWIG_fail;
23072 }
23073 {
23074 resultobj = wxPyMake_wxObject(result);
23075 }
23076 return resultobj;
23077 fail:
23078 return NULL;
23079}
23080
23081
23082static PyObject *_wrap_Window_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
23083 PyObject *resultobj;
23084 wxWindow *arg1 = (wxWindow *) 0 ;
23085 bool result;
23086 PyObject * obj0 = 0 ;
23087 char *kwnames[] = {
23088 (char *) "self", NULL
23089 };
23090
23091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocus",kwnames,&obj0)) goto fail;
23092 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23093 {
23094 PyThreadState* __tstate = wxPyBeginAllowThreads();
23095 result = (bool)((wxWindow const *)arg1)->AcceptsFocus();
23096
23097 wxPyEndAllowThreads(__tstate);
23098 if (PyErr_Occurred()) SWIG_fail;
23099 }
4e760a36 23100 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
23101 return resultobj;
23102 fail:
23103 return NULL;
23104}
23105
23106
23107static PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) {
23108 PyObject *resultobj;
23109 wxWindow *arg1 = (wxWindow *) 0 ;
23110 bool result;
23111 PyObject * obj0 = 0 ;
23112 char *kwnames[] = {
23113 (char *) "self", NULL
23114 };
23115
23116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail;
23117 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23118 {
23119 PyThreadState* __tstate = wxPyBeginAllowThreads();
23120 result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard();
23121
23122 wxPyEndAllowThreads(__tstate);
23123 if (PyErr_Occurred()) SWIG_fail;
23124 }
4e760a36 23125 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
23126 return resultobj;
23127 fail:
23128 return NULL;
23129}
23130
23131
23132static PyObject *_wrap_Window_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23133 PyObject *resultobj;
23134 wxWindow *arg1 = (wxWindow *) 0 ;
23135 wxWindow *result;
23136 PyObject * obj0 = 0 ;
23137 char *kwnames[] = {
23138 (char *) "self", NULL
23139 };
23140
23141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultItem",kwnames,&obj0)) goto fail;
23142 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23143 {
23144 PyThreadState* __tstate = wxPyBeginAllowThreads();
23145 result = (wxWindow *)((wxWindow const *)arg1)->GetDefaultItem();
23146
23147 wxPyEndAllowThreads(__tstate);
23148 if (PyErr_Occurred()) SWIG_fail;
23149 }
23150 {
23151 resultobj = wxPyMake_wxObject(result);
23152 }
23153 return resultobj;
23154 fail:
23155 return NULL;
23156}
23157
23158
23159static PyObject *_wrap_Window_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23160 PyObject *resultobj;
23161 wxWindow *arg1 = (wxWindow *) 0 ;
23162 wxWindow *arg2 = (wxWindow *) 0 ;
23163 wxWindow *result;
23164 PyObject * obj0 = 0 ;
23165 PyObject * obj1 = 0 ;
23166 char *kwnames[] = {
23167 (char *) "self",(char *) "child", NULL
23168 };
23169
23170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultItem",kwnames,&obj0,&obj1)) goto fail;
23171 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23172 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23173 {
23174 PyThreadState* __tstate = wxPyBeginAllowThreads();
23175 result = (wxWindow *)(arg1)->SetDefaultItem(arg2);
23176
23177 wxPyEndAllowThreads(__tstate);
23178 if (PyErr_Occurred()) SWIG_fail;
23179 }
23180 {
23181 resultobj = wxPyMake_wxObject(result);
23182 }
23183 return resultobj;
23184 fail:
23185 return NULL;
23186}
23187
23188
23189static PyObject *_wrap_Window_SetTmpDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) {
23190 PyObject *resultobj;
23191 wxWindow *arg1 = (wxWindow *) 0 ;
23192 wxWindow *arg2 = (wxWindow *) 0 ;
23193 PyObject * obj0 = 0 ;
23194 PyObject * obj1 = 0 ;
23195 char *kwnames[] = {
23196 (char *) "self",(char *) "win", NULL
23197 };
23198
23199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTmpDefaultItem",kwnames,&obj0,&obj1)) goto fail;
23200 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23201 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23202 {
23203 PyThreadState* __tstate = wxPyBeginAllowThreads();
23204 (arg1)->SetTmpDefaultItem(arg2);
23205
23206 wxPyEndAllowThreads(__tstate);
23207 if (PyErr_Occurred()) SWIG_fail;
23208 }
23209 Py_INCREF(Py_None); resultobj = Py_None;
23210 return resultobj;
23211 fail:
23212 return NULL;
23213}
23214
23215
23216static PyObject *_wrap_Window_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
23217 PyObject *resultobj;
23218 wxWindow *arg1 = (wxWindow *) 0 ;
23219 PyObject *result;
23220 PyObject * obj0 = 0 ;
23221 char *kwnames[] = {
23222 (char *) "self", NULL
23223 };
23224
23225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetChildren",kwnames,&obj0)) goto fail;
23226 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23227 {
23228 PyThreadState* __tstate = wxPyBeginAllowThreads();
23229 result = (PyObject *)wxWindow_GetChildren(arg1);
23230
23231 wxPyEndAllowThreads(__tstate);
23232 if (PyErr_Occurred()) SWIG_fail;
23233 }
23234 resultobj = result;
23235 return resultobj;
23236 fail:
23237 return NULL;
23238}
23239
23240
23241static PyObject *_wrap_Window_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
23242 PyObject *resultobj;
23243 wxWindow *arg1 = (wxWindow *) 0 ;
23244 wxWindow *result;
23245 PyObject * obj0 = 0 ;
23246 char *kwnames[] = {
23247 (char *) "self", NULL
23248 };
23249
23250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetParent",kwnames,&obj0)) goto fail;
23251 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23252 {
23253 PyThreadState* __tstate = wxPyBeginAllowThreads();
23254 result = (wxWindow *)((wxWindow const *)arg1)->GetParent();
23255
23256 wxPyEndAllowThreads(__tstate);
23257 if (PyErr_Occurred()) SWIG_fail;
23258 }
23259 {
23260 resultobj = wxPyMake_wxObject(result);
23261 }
23262 return resultobj;
23263 fail:
23264 return NULL;
23265}
23266
23267
23268static PyObject *_wrap_Window_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) {
23269 PyObject *resultobj;
23270 wxWindow *arg1 = (wxWindow *) 0 ;
23271 wxWindow *result;
23272 PyObject * obj0 = 0 ;
23273 char *kwnames[] = {
23274 (char *) "self", NULL
23275 };
23276
23277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetGrandParent",kwnames,&obj0)) goto fail;
23278 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23279 {
23280 PyThreadState* __tstate = wxPyBeginAllowThreads();
23281 result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent();
23282
23283 wxPyEndAllowThreads(__tstate);
23284 if (PyErr_Occurred()) SWIG_fail;
23285 }
23286 {
23287 resultobj = wxPyMake_wxObject(result);
23288 }
23289 return resultobj;
23290 fail:
23291 return NULL;
23292}
23293
23294
23295static PyObject *_wrap_Window_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
23296 PyObject *resultobj;
23297 wxWindow *arg1 = (wxWindow *) 0 ;
23298 bool result;
23299 PyObject * obj0 = 0 ;
23300 char *kwnames[] = {
23301 (char *) "self", NULL
23302 };
23303
23304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsTopLevel",kwnames,&obj0)) goto fail;
23305 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23306 {
23307 PyThreadState* __tstate = wxPyBeginAllowThreads();
23308 result = (bool)((wxWindow const *)arg1)->IsTopLevel();
23309
23310 wxPyEndAllowThreads(__tstate);
23311 if (PyErr_Occurred()) SWIG_fail;
23312 }
4e760a36 23313 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
23314 return resultobj;
23315 fail:
23316 return NULL;
23317}
23318
23319
23320static PyObject *_wrap_Window_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) {
23321 PyObject *resultobj;
23322 wxWindow *arg1 = (wxWindow *) 0 ;
23323 wxWindow *arg2 = (wxWindow *) 0 ;
23324 bool result;
23325 PyObject * obj0 = 0 ;
23326 PyObject * obj1 = 0 ;
23327 char *kwnames[] = {
23328 (char *) "self",(char *) "newParent", NULL
23329 };
23330
23331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) goto fail;
23332 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23333 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23334 {
23335 PyThreadState* __tstate = wxPyBeginAllowThreads();
23336 result = (bool)(arg1)->Reparent(arg2);
23337
23338 wxPyEndAllowThreads(__tstate);
23339 if (PyErr_Occurred()) SWIG_fail;
23340 }
4e760a36 23341 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
23342 return resultobj;
23343 fail:
23344 return NULL;
23345}
23346
23347
23348static PyObject *_wrap_Window_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) {
23349 PyObject *resultobj;
23350 wxWindow *arg1 = (wxWindow *) 0 ;
23351 wxWindow *arg2 = (wxWindow *) 0 ;
23352 PyObject * obj0 = 0 ;
23353 PyObject * obj1 = 0 ;
23354 char *kwnames[] = {
23355 (char *) "self",(char *) "child", NULL
23356 };
23357
23358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) goto fail;
23359 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23360 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23361 {
23362 PyThreadState* __tstate = wxPyBeginAllowThreads();
23363 (arg1)->AddChild(arg2);
23364
23365 wxPyEndAllowThreads(__tstate);
23366 if (PyErr_Occurred()) SWIG_fail;
23367 }
23368 Py_INCREF(Py_None); resultobj = Py_None;
23369 return resultobj;
23370 fail:
23371 return NULL;
23372}
23373
23374
23375static PyObject *_wrap_Window_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) {
23376 PyObject *resultobj;
23377 wxWindow *arg1 = (wxWindow *) 0 ;
23378 wxWindow *arg2 = (wxWindow *) 0 ;
23379 PyObject * obj0 = 0 ;
23380 PyObject * obj1 = 0 ;
23381 char *kwnames[] = {
23382 (char *) "self",(char *) "child", NULL
23383 };
23384
23385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) goto fail;
23386 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23387 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23388 {
23389 PyThreadState* __tstate = wxPyBeginAllowThreads();
23390 (arg1)->RemoveChild(arg2);
23391
23392 wxPyEndAllowThreads(__tstate);
23393 if (PyErr_Occurred()) SWIG_fail;
23394 }
23395 Py_INCREF(Py_None); resultobj = Py_None;
23396 return resultobj;
23397 fail:
23398 return NULL;
23399}
23400
23401
23402static PyObject *_wrap_Window_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) {
23403 PyObject *resultobj;
23404 wxWindow *arg1 = (wxWindow *) 0 ;
23405 long arg2 ;
23406 wxWindow *result;
23407 PyObject * obj0 = 0 ;
8edf1c75 23408 PyObject * obj1 = 0 ;
d14a1e28
RD
23409 char *kwnames[] = {
23410 (char *) "self",(char *) "winid", NULL
23411 };
23412
8edf1c75 23413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowById",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 23414 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
23415 {
23416 arg2 = (long) SWIG_PyObj_AsLong(obj1);
23417 if (PyErr_Occurred()) SWIG_fail;
23418 }
d14a1e28
RD
23419 {
23420 PyThreadState* __tstate = wxPyBeginAllowThreads();
23421 result = (wxWindow *)(arg1)->FindWindow(arg2);
23422
23423 wxPyEndAllowThreads(__tstate);
23424 if (PyErr_Occurred()) SWIG_fail;
23425 }
23426 {
23427 resultobj = wxPyMake_wxObject(result);
23428 }
23429 return resultobj;
23430 fail:
23431 return NULL;
23432}
23433
23434
23435static PyObject *_wrap_Window_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) {
23436 PyObject *resultobj;
23437 wxWindow *arg1 = (wxWindow *) 0 ;
23438 wxString *arg2 = 0 ;
23439 wxWindow *result;
423f194a 23440 bool temp2 = False ;
d14a1e28
RD
23441 PyObject * obj0 = 0 ;
23442 PyObject * obj1 = 0 ;
23443 char *kwnames[] = {
23444 (char *) "self",(char *) "name", NULL
23445 };
23446
23447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) goto fail;
23448 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23449 {
23450 arg2 = wxString_in_helper(obj1);
23451 if (arg2 == NULL) SWIG_fail;
423f194a 23452 temp2 = True;
d14a1e28
RD
23453 }
23454 {
23455 PyThreadState* __tstate = wxPyBeginAllowThreads();
23456 result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2);
23457
23458 wxPyEndAllowThreads(__tstate);
23459 if (PyErr_Occurred()) SWIG_fail;
23460 }
23461 {
23462 resultobj = wxPyMake_wxObject(result);
23463 }
23464 {
23465 if (temp2)
23466 delete arg2;
23467 }
23468 return resultobj;
23469 fail:
23470 {
23471 if (temp2)
23472 delete arg2;
23473 }
23474 return NULL;
23475}
23476
23477
23478static PyObject *_wrap_Window_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
23479 PyObject *resultobj;
23480 wxWindow *arg1 = (wxWindow *) 0 ;
23481 wxEvtHandler *result;
23482 PyObject * obj0 = 0 ;
23483 char *kwnames[] = {
23484 (char *) "self", NULL
23485 };
23486
23487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetEventHandler",kwnames,&obj0)) goto fail;
23488 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23489 {
23490 PyThreadState* __tstate = wxPyBeginAllowThreads();
23491 result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler();
23492
23493 wxPyEndAllowThreads(__tstate);
23494 if (PyErr_Occurred()) SWIG_fail;
23495 }
23496 {
23497 resultobj = wxPyMake_wxObject(result);
23498 }
23499 return resultobj;
23500 fail:
23501 return NULL;
23502}
23503
23504
23505static PyObject *_wrap_Window_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
23506 PyObject *resultobj;
23507 wxWindow *arg1 = (wxWindow *) 0 ;
23508 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
23509 PyObject * obj0 = 0 ;
23510 PyObject * obj1 = 0 ;
23511 char *kwnames[] = {
23512 (char *) "self",(char *) "handler", NULL
23513 };
23514
23515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) goto fail;
23516 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23517 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23518 {
23519 PyThreadState* __tstate = wxPyBeginAllowThreads();
23520 (arg1)->SetEventHandler(arg2);
23521
23522 wxPyEndAllowThreads(__tstate);
23523 if (PyErr_Occurred()) SWIG_fail;
23524 }
23525 Py_INCREF(Py_None); resultobj = Py_None;
23526 return resultobj;
23527 fail:
23528 return NULL;
23529}
23530
23531
23532static PyObject *_wrap_Window_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
23533 PyObject *resultobj;
23534 wxWindow *arg1 = (wxWindow *) 0 ;
23535 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
23536 PyObject * obj0 = 0 ;
23537 PyObject * obj1 = 0 ;
23538 char *kwnames[] = {
23539 (char *) "self",(char *) "handler", NULL
23540 };
23541
23542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) goto fail;
23543 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23544 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23545 {
23546 PyThreadState* __tstate = wxPyBeginAllowThreads();
23547 (arg1)->PushEventHandler(arg2);
23548
23549 wxPyEndAllowThreads(__tstate);
23550 if (PyErr_Occurred()) SWIG_fail;
23551 }
23552 Py_INCREF(Py_None); resultobj = Py_None;
23553 return resultobj;
23554 fail:
23555 return NULL;
23556}
23557
23558
23559static PyObject *_wrap_Window_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
23560 PyObject *resultobj;
23561 wxWindow *arg1 = (wxWindow *) 0 ;
423f194a 23562 bool arg2 = (bool) False ;
d14a1e28
RD
23563 wxEvtHandler *result;
23564 PyObject * obj0 = 0 ;
23565 PyObject * obj1 = 0 ;
23566 char *kwnames[] = {
23567 (char *) "self",(char *) "deleteHandler", NULL
23568 };
23569
23570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) goto fail;
23571 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23572 if (obj1) {
83448d71 23573 {
8edf1c75 23574 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
23575 if (PyErr_Occurred()) SWIG_fail;
23576 }
d14a1e28
RD
23577 }
23578 {
23579 PyThreadState* __tstate = wxPyBeginAllowThreads();
23580 result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2);
23581
23582 wxPyEndAllowThreads(__tstate);
23583 if (PyErr_Occurred()) SWIG_fail;
23584 }
23585 {
23586 resultobj = wxPyMake_wxObject(result);
23587 }
23588 return resultobj;
23589 fail:
23590 return NULL;
23591}
23592
23593
23594static PyObject *_wrap_Window_RemoveEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
23595 PyObject *resultobj;
23596 wxWindow *arg1 = (wxWindow *) 0 ;
23597 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
23598 bool result;
23599 PyObject * obj0 = 0 ;
23600 PyObject * obj1 = 0 ;
23601 char *kwnames[] = {
23602 (char *) "self",(char *) "handler", NULL
23603 };
23604
23605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) goto fail;
23606 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23607 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23608 {
23609 PyThreadState* __tstate = wxPyBeginAllowThreads();
23610 result = (bool)(arg1)->RemoveEventHandler(arg2);
23611
23612 wxPyEndAllowThreads(__tstate);
23613 if (PyErr_Occurred()) SWIG_fail;
23614 }
4e760a36 23615 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
23616 return resultobj;
23617 fail:
23618 return NULL;
23619}
23620
23621
23622static PyObject *_wrap_Window_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
23623 PyObject *resultobj;
23624 wxWindow *arg1 = (wxWindow *) 0 ;
23625 wxValidator *arg2 = 0 ;
23626 PyObject * obj0 = 0 ;
23627 PyObject * obj1 = 0 ;
23628 char *kwnames[] = {
23629 (char *) "self",(char *) "validator", NULL
23630 };
23631
23632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) goto fail;
23633 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23634 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23635 if (arg2 == NULL) {
23636 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
23637 }
23638 {
23639 PyThreadState* __tstate = wxPyBeginAllowThreads();
23640 (arg1)->SetValidator((wxValidator const &)*arg2);
23641
23642 wxPyEndAllowThreads(__tstate);
23643 if (PyErr_Occurred()) SWIG_fail;
23644 }
23645 Py_INCREF(Py_None); resultobj = Py_None;
23646 return resultobj;
23647 fail:
23648 return NULL;
23649}
23650
23651
23652static PyObject *_wrap_Window_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
23653 PyObject *resultobj;
23654 wxWindow *arg1 = (wxWindow *) 0 ;
23655 wxValidator *result;
23656 PyObject * obj0 = 0 ;
23657 char *kwnames[] = {
23658 (char *) "self", NULL
23659 };
23660
23661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetValidator",kwnames,&obj0)) goto fail;
23662 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23663 {
23664 PyThreadState* __tstate = wxPyBeginAllowThreads();
23665 result = (wxValidator *)(arg1)->GetValidator();
23666
23667 wxPyEndAllowThreads(__tstate);
23668 if (PyErr_Occurred()) SWIG_fail;
23669 }
23670 {
23671 resultobj = wxPyMake_wxObject(result);
23672 }
23673 return resultobj;
23674 fail:
23675 return NULL;
23676}
23677
23678
23679static PyObject *_wrap_Window_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
23680 PyObject *resultobj;
23681 wxWindow *arg1 = (wxWindow *) 0 ;
23682 wxAcceleratorTable *arg2 = 0 ;
23683 PyObject * obj0 = 0 ;
23684 PyObject * obj1 = 0 ;
23685 char *kwnames[] = {
23686 (char *) "self",(char *) "accel", NULL
23687 };
23688
23689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) goto fail;
23690 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23691 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxAcceleratorTable,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23692 if (arg2 == NULL) {
23693 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
23694 }
23695 {
23696 PyThreadState* __tstate = wxPyBeginAllowThreads();
23697 (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2);
23698
23699 wxPyEndAllowThreads(__tstate);
23700 if (PyErr_Occurred()) SWIG_fail;
23701 }
23702 Py_INCREF(Py_None); resultobj = Py_None;
23703 return resultobj;
23704 fail:
23705 return NULL;
23706}
23707
23708
23709static PyObject *_wrap_Window_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
23710 PyObject *resultobj;
23711 wxWindow *arg1 = (wxWindow *) 0 ;
23712 wxAcceleratorTable *result;
23713 PyObject * obj0 = 0 ;
23714 char *kwnames[] = {
23715 (char *) "self", NULL
23716 };
23717
23718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAcceleratorTable",kwnames,&obj0)) goto fail;
23719 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23720 {
23721 PyThreadState* __tstate = wxPyBeginAllowThreads();
23722 result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable();
23723
23724 wxPyEndAllowThreads(__tstate);
23725 if (PyErr_Occurred()) SWIG_fail;
23726 }
23727 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAcceleratorTable, 0);
23728 return resultobj;
23729 fail:
23730 return NULL;
23731}
23732
23733
23734static PyObject *_wrap_Window_RegisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) {
23735 PyObject *resultobj;
23736 wxWindow *arg1 = (wxWindow *) 0 ;
23737 int arg2 ;
23738 int arg3 ;
23739 int arg4 ;
23740 bool result;
23741 PyObject * obj0 = 0 ;
8edf1c75
RD
23742 PyObject * obj1 = 0 ;
23743 PyObject * obj2 = 0 ;
23744 PyObject * obj3 = 0 ;
d14a1e28
RD
23745 char *kwnames[] = {
23746 (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL
23747 };
23748
8edf1c75 23749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_RegisterHotKey",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28 23750 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
23751 {
23752 arg2 = (int) SWIG_PyObj_AsInt(obj1);
23753 if (PyErr_Occurred()) SWIG_fail;
23754 }
23755 {
23756 arg3 = (int) SWIG_PyObj_AsInt(obj2);
23757 if (PyErr_Occurred()) SWIG_fail;
23758 }
23759 {
23760 arg4 = (int) SWIG_PyObj_AsInt(obj3);
23761 if (PyErr_Occurred()) SWIG_fail;
23762 }
d14a1e28
RD
23763 {
23764 PyThreadState* __tstate = wxPyBeginAllowThreads();
23765 result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4);
23766
23767 wxPyEndAllowThreads(__tstate);
23768 if (PyErr_Occurred()) SWIG_fail;
23769 }
4e760a36 23770 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
23771 return resultobj;
23772 fail:
23773 return NULL;
23774}
23775
23776
23777static PyObject *_wrap_Window_UnregisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) {
23778 PyObject *resultobj;
23779 wxWindow *arg1 = (wxWindow *) 0 ;
23780 int arg2 ;
23781 bool result;
23782 PyObject * obj0 = 0 ;
8edf1c75 23783 PyObject * obj1 = 0 ;
d14a1e28
RD
23784 char *kwnames[] = {
23785 (char *) "self",(char *) "hotkeyId", NULL
23786 };
23787
8edf1c75 23788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_UnregisterHotKey",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 23789 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
23790 {
23791 arg2 = (int) SWIG_PyObj_AsInt(obj1);
23792 if (PyErr_Occurred()) SWIG_fail;
23793 }
d14a1e28
RD
23794 {
23795 PyThreadState* __tstate = wxPyBeginAllowThreads();
23796 result = (bool)wxWindow_UnregisterHotKey(arg1,arg2);
23797
23798 wxPyEndAllowThreads(__tstate);
23799 if (PyErr_Occurred()) SWIG_fail;
23800 }
4e760a36 23801 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
23802 return resultobj;
23803 fail:
23804 return NULL;
23805}
23806
23807
23808static PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) {
23809 PyObject *resultobj;
23810 wxWindow *arg1 = (wxWindow *) 0 ;
23811 wxPoint *arg2 = 0 ;
23812 wxPoint result;
23813 wxPoint temp2 ;
23814 PyObject * obj0 = 0 ;
23815 PyObject * obj1 = 0 ;
23816 char *kwnames[] = {
23817 (char *) "self",(char *) "pt", NULL
23818 };
23819
23820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) goto fail;
23821 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23822 {
23823 arg2 = &temp2;
23824 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23825 }
23826 {
23827 PyThreadState* __tstate = wxPyBeginAllowThreads();
23828 result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2);
23829
23830 wxPyEndAllowThreads(__tstate);
23831 if (PyErr_Occurred()) SWIG_fail;
23832 }
23833 {
23834 wxPoint * resultptr;
23835 resultptr = new wxPoint((wxPoint &) result);
23836 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
23837 }
23838 return resultobj;
23839 fail:
23840 return NULL;
23841}
23842
23843
23844static PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) {
23845 PyObject *resultobj;
23846 wxWindow *arg1 = (wxWindow *) 0 ;
23847 wxSize *arg2 = 0 ;
23848 wxSize result;
23849 wxSize temp2 ;
23850 PyObject * obj0 = 0 ;
23851 PyObject * obj1 = 0 ;
23852 char *kwnames[] = {
23853 (char *) "self",(char *) "sz", NULL
23854 };
23855
23856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) goto fail;
23857 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23858 {
23859 arg2 = &temp2;
23860 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
23861 }
23862 {
23863 PyThreadState* __tstate = wxPyBeginAllowThreads();
23864 result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2);
23865
23866 wxPyEndAllowThreads(__tstate);
23867 if (PyErr_Occurred()) SWIG_fail;
23868 }
23869 {
23870 wxSize * resultptr;
23871 resultptr = new wxSize((wxSize &) result);
23872 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
23873 }
23874 return resultobj;
23875 fail:
23876 return NULL;
23877}
23878
23879
23880static PyObject *_wrap_Window_DLG_PNT(PyObject *self, PyObject *args, PyObject *kwargs) {
23881 PyObject *resultobj;
23882 wxWindow *arg1 = (wxWindow *) 0 ;
23883 wxPoint *arg2 = 0 ;
23884 wxPoint result;
23885 wxPoint temp2 ;
23886 PyObject * obj0 = 0 ;
23887 PyObject * obj1 = 0 ;
23888 char *kwnames[] = {
23889 (char *) "self",(char *) "pt", NULL
23890 };
23891
23892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) goto fail;
23893 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23894 {
23895 arg2 = &temp2;
23896 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23897 }
23898 {
23899 PyThreadState* __tstate = wxPyBeginAllowThreads();
23900 result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2);
23901
23902 wxPyEndAllowThreads(__tstate);
23903 if (PyErr_Occurred()) SWIG_fail;
23904 }
23905 {
23906 wxPoint * resultptr;
23907 resultptr = new wxPoint((wxPoint &) result);
23908 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
23909 }
23910 return resultobj;
23911 fail:
23912 return NULL;
23913}
23914
23915
23916static PyObject *_wrap_Window_DLG_SZE(PyObject *self, PyObject *args, PyObject *kwargs) {
23917 PyObject *resultobj;
23918 wxWindow *arg1 = (wxWindow *) 0 ;
23919 wxSize *arg2 = 0 ;
23920 wxSize result;
23921 wxSize temp2 ;
23922 PyObject * obj0 = 0 ;
23923 PyObject * obj1 = 0 ;
23924 char *kwnames[] = {
23925 (char *) "self",(char *) "sz", NULL
23926 };
23927
23928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) goto fail;
23929 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23930 {
23931 arg2 = &temp2;
23932 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
23933 }
23934 {
23935 PyThreadState* __tstate = wxPyBeginAllowThreads();
23936 result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2);
23937
23938 wxPyEndAllowThreads(__tstate);
23939 if (PyErr_Occurred()) SWIG_fail;
23940 }
23941 {
23942 wxSize * resultptr;
23943 resultptr = new wxSize((wxSize &) result);
23944 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
23945 }
23946 return resultobj;
23947 fail:
23948 return NULL;
23949}
23950
23951
23952static PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
23953 PyObject *resultobj;
23954 wxWindow *arg1 = (wxWindow *) 0 ;
23955 wxPoint *arg2 = 0 ;
23956 wxPoint result;
23957 wxPoint temp2 ;
23958 PyObject * obj0 = 0 ;
23959 PyObject * obj1 = 0 ;
23960 char *kwnames[] = {
23961 (char *) "self",(char *) "pt", NULL
23962 };
23963
23964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) goto fail;
23965 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
23966 {
23967 arg2 = &temp2;
23968 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23969 }
23970 {
23971 PyThreadState* __tstate = wxPyBeginAllowThreads();
23972 result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2);
23973
23974 wxPyEndAllowThreads(__tstate);
23975 if (PyErr_Occurred()) SWIG_fail;
23976 }
23977 {
23978 wxPoint * resultptr;
23979 resultptr = new wxPoint((wxPoint &) result);
23980 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
23981 }
23982 return resultobj;
23983 fail:
23984 return NULL;
23985}
23986
23987
23988static PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
23989 PyObject *resultobj;
23990 wxWindow *arg1 = (wxWindow *) 0 ;
23991 wxSize *arg2 = 0 ;
23992 wxSize result;
23993 wxSize temp2 ;
23994 PyObject * obj0 = 0 ;
23995 PyObject * obj1 = 0 ;
23996 char *kwnames[] = {
23997 (char *) "self",(char *) "sz", NULL
23998 };
23999
24000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) goto fail;
24001 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24002 {
24003 arg2 = &temp2;
24004 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
24005 }
24006 {
24007 PyThreadState* __tstate = wxPyBeginAllowThreads();
24008 result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2);
24009
24010 wxPyEndAllowThreads(__tstate);
24011 if (PyErr_Occurred()) SWIG_fail;
24012 }
24013 {
24014 wxSize * resultptr;
24015 resultptr = new wxSize((wxSize &) result);
24016 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
24017 }
24018 return resultobj;
24019 fail:
24020 return NULL;
24021}
24022
24023
24024static PyObject *_wrap_Window_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) {
24025 PyObject *resultobj;
24026 wxWindow *arg1 = (wxWindow *) 0 ;
24027 int arg2 ;
24028 int arg3 ;
24029 PyObject * obj0 = 0 ;
8edf1c75
RD
24030 PyObject * obj1 = 0 ;
24031 PyObject * obj2 = 0 ;
d14a1e28
RD
24032 char *kwnames[] = {
24033 (char *) "self",(char *) "x",(char *) "y", NULL
24034 };
24035
8edf1c75 24036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_WarpPointer",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 24037 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
24038 {
24039 arg2 = (int) SWIG_PyObj_AsInt(obj1);
24040 if (PyErr_Occurred()) SWIG_fail;
24041 }
24042 {
24043 arg3 = (int) SWIG_PyObj_AsInt(obj2);
24044 if (PyErr_Occurred()) SWIG_fail;
24045 }
d14a1e28
RD
24046 {
24047 PyThreadState* __tstate = wxPyBeginAllowThreads();
24048 (arg1)->WarpPointer(arg2,arg3);
24049
24050 wxPyEndAllowThreads(__tstate);
24051 if (PyErr_Occurred()) SWIG_fail;
24052 }
24053 Py_INCREF(Py_None); resultobj = Py_None;
24054 return resultobj;
24055 fail:
24056 return NULL;
24057}
24058
24059
24060static PyObject *_wrap_Window_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) {
24061 PyObject *resultobj;
24062 wxWindow *arg1 = (wxWindow *) 0 ;
24063 PyObject * obj0 = 0 ;
24064 char *kwnames[] = {
24065 (char *) "self", NULL
24066 };
24067
24068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_CaptureMouse",kwnames,&obj0)) goto fail;
24069 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24070 {
24071 PyThreadState* __tstate = wxPyBeginAllowThreads();
24072 (arg1)->CaptureMouse();
24073
24074 wxPyEndAllowThreads(__tstate);
24075 if (PyErr_Occurred()) SWIG_fail;
24076 }
24077 Py_INCREF(Py_None); resultobj = Py_None;
24078 return resultobj;
24079 fail:
24080 return NULL;
24081}
24082
24083
24084static PyObject *_wrap_Window_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) {
24085 PyObject *resultobj;
24086 wxWindow *arg1 = (wxWindow *) 0 ;
24087 PyObject * obj0 = 0 ;
24088 char *kwnames[] = {
24089 (char *) "self", NULL
24090 };
24091
24092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ReleaseMouse",kwnames,&obj0)) goto fail;
24093 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24094 {
24095 PyThreadState* __tstate = wxPyBeginAllowThreads();
24096 (arg1)->ReleaseMouse();
24097
24098 wxPyEndAllowThreads(__tstate);
24099 if (PyErr_Occurred()) SWIG_fail;
24100 }
24101 Py_INCREF(Py_None); resultobj = Py_None;
24102 return resultobj;
24103 fail:
24104 return NULL;
24105}
24106
24107
24108static PyObject *_wrap_Window_GetCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
24109 PyObject *resultobj;
24110 wxWindow *result;
24111 char *kwnames[] = {
24112 NULL
24113 };
24114
24115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_GetCapture",kwnames)) goto fail;
24116 {
24117 PyThreadState* __tstate = wxPyBeginAllowThreads();
24118 result = (wxWindow *)wxWindow::GetCapture();
24119
24120 wxPyEndAllowThreads(__tstate);
24121 if (PyErr_Occurred()) SWIG_fail;
24122 }
24123 {
24124 resultobj = wxPyMake_wxObject(result);
24125 }
24126 return resultobj;
24127 fail:
24128 return NULL;
24129}
24130
24131
24132static PyObject *_wrap_Window_HasCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
24133 PyObject *resultobj;
24134 wxWindow *arg1 = (wxWindow *) 0 ;
24135 bool result;
24136 PyObject * obj0 = 0 ;
24137 char *kwnames[] = {
24138 (char *) "self", NULL
24139 };
24140
24141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasCapture",kwnames,&obj0)) goto fail;
24142 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24143 {
24144 PyThreadState* __tstate = wxPyBeginAllowThreads();
24145 result = (bool)((wxWindow const *)arg1)->HasCapture();
24146
24147 wxPyEndAllowThreads(__tstate);
24148 if (PyErr_Occurred()) SWIG_fail;
24149 }
4e760a36 24150 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
24151 return resultobj;
24152 fail:
24153 return NULL;
24154}
24155
24156
24157static PyObject *_wrap_Window_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) {
24158 PyObject *resultobj;
24159 wxWindow *arg1 = (wxWindow *) 0 ;
423f194a 24160 bool arg2 = (bool) True ;
d14a1e28
RD
24161 wxRect *arg3 = (wxRect *) NULL ;
24162 PyObject * obj0 = 0 ;
24163 PyObject * obj1 = 0 ;
24164 PyObject * obj2 = 0 ;
24165 char *kwnames[] = {
24166 (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL
24167 };
24168
24169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail;
24170 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24171 if (obj1) {
83448d71 24172 {
8edf1c75 24173 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
24174 if (PyErr_Occurred()) SWIG_fail;
24175 }
d14a1e28
RD
24176 }
24177 if (obj2) {
24178 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24179 }
24180 {
24181 PyThreadState* __tstate = wxPyBeginAllowThreads();
24182 (arg1)->Refresh(arg2,(wxRect const *)arg3);
24183
24184 wxPyEndAllowThreads(__tstate);
24185 if (PyErr_Occurred()) SWIG_fail;
24186 }
24187 Py_INCREF(Py_None); resultobj = Py_None;
24188 return resultobj;
24189 fail:
24190 return NULL;
24191}
24192
24193
24194static PyObject *_wrap_Window_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) {
24195 PyObject *resultobj;
24196 wxWindow *arg1 = (wxWindow *) 0 ;
24197 wxRect *arg2 = 0 ;
24198 wxRect temp2 ;
24199 PyObject * obj0 = 0 ;
24200 PyObject * obj1 = 0 ;
24201 char *kwnames[] = {
24202 (char *) "self",(char *) "rect", NULL
24203 };
24204
24205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RefreshRect",kwnames,&obj0,&obj1)) goto fail;
24206 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24207 {
24208 arg2 = &temp2;
24209 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
24210 }
24211 {
24212 PyThreadState* __tstate = wxPyBeginAllowThreads();
24213 (arg1)->RefreshRect((wxRect const &)*arg2);
24214
24215 wxPyEndAllowThreads(__tstate);
24216 if (PyErr_Occurred()) SWIG_fail;
24217 }
24218 Py_INCREF(Py_None); resultobj = Py_None;
24219 return resultobj;
24220 fail:
24221 return NULL;
24222}
24223
24224
24225static PyObject *_wrap_Window_Update(PyObject *self, PyObject *args, PyObject *kwargs) {
24226 PyObject *resultobj;
24227 wxWindow *arg1 = (wxWindow *) 0 ;
24228 PyObject * obj0 = 0 ;
24229 char *kwnames[] = {
24230 (char *) "self", NULL
24231 };
24232
24233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Update",kwnames,&obj0)) goto fail;
24234 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24235 {
24236 PyThreadState* __tstate = wxPyBeginAllowThreads();
24237 (arg1)->Update();
24238
24239 wxPyEndAllowThreads(__tstate);
24240 if (PyErr_Occurred()) SWIG_fail;
24241 }
24242 Py_INCREF(Py_None); resultobj = Py_None;
24243 return resultobj;
24244 fail:
24245 return NULL;
24246}
24247
24248
24249static PyObject *_wrap_Window_ClearBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
24250 PyObject *resultobj;
24251 wxWindow *arg1 = (wxWindow *) 0 ;
24252 PyObject * obj0 = 0 ;
24253 char *kwnames[] = {
24254 (char *) "self", NULL
24255 };
24256
24257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ClearBackground",kwnames,&obj0)) goto fail;
24258 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24259 {
24260 PyThreadState* __tstate = wxPyBeginAllowThreads();
24261 (arg1)->ClearBackground();
24262
24263 wxPyEndAllowThreads(__tstate);
24264 if (PyErr_Occurred()) SWIG_fail;
24265 }
24266 Py_INCREF(Py_None); resultobj = Py_None;
24267 return resultobj;
24268 fail:
24269 return NULL;
24270}
24271
24272
24273static PyObject *_wrap_Window_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) {
24274 PyObject *resultobj;
24275 wxWindow *arg1 = (wxWindow *) 0 ;
24276 PyObject * obj0 = 0 ;
24277 char *kwnames[] = {
24278 (char *) "self", NULL
24279 };
24280
24281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Freeze",kwnames,&obj0)) goto fail;
24282 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24283 {
24284 PyThreadState* __tstate = wxPyBeginAllowThreads();
24285 (arg1)->Freeze();
24286
24287 wxPyEndAllowThreads(__tstate);
24288 if (PyErr_Occurred()) SWIG_fail;
24289 }
24290 Py_INCREF(Py_None); resultobj = Py_None;
24291 return resultobj;
24292 fail:
24293 return NULL;
24294}
24295
24296
24297static PyObject *_wrap_Window_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) {
24298 PyObject *resultobj;
24299 wxWindow *arg1 = (wxWindow *) 0 ;
24300 PyObject * obj0 = 0 ;
24301 char *kwnames[] = {
24302 (char *) "self", NULL
24303 };
24304
24305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Thaw",kwnames,&obj0)) goto fail;
24306 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24307 {
24308 PyThreadState* __tstate = wxPyBeginAllowThreads();
24309 (arg1)->Thaw();
24310
24311 wxPyEndAllowThreads(__tstate);
24312 if (PyErr_Occurred()) SWIG_fail;
24313 }
24314 Py_INCREF(Py_None); resultobj = Py_None;
24315 return resultobj;
24316 fail:
24317 return NULL;
24318}
24319
24320
24321static PyObject *_wrap_Window_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) {
24322 PyObject *resultobj;
24323 wxWindow *arg1 = (wxWindow *) 0 ;
24324 wxDC *arg2 = 0 ;
24325 PyObject * obj0 = 0 ;
24326 PyObject * obj1 = 0 ;
24327 char *kwnames[] = {
24328 (char *) "self",(char *) "dc", NULL
24329 };
24330
24331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) goto fail;
24332 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24333 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24334 if (arg2 == NULL) {
24335 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24336 }
24337 {
24338 PyThreadState* __tstate = wxPyBeginAllowThreads();
24339 (arg1)->PrepareDC(*arg2);
24340
24341 wxPyEndAllowThreads(__tstate);
24342 if (PyErr_Occurred()) SWIG_fail;
24343 }
24344 Py_INCREF(Py_None); resultobj = Py_None;
24345 return resultobj;
24346 fail:
24347 return NULL;
24348}
24349
24350
24351static PyObject *_wrap_Window_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
24352 PyObject *resultobj;
24353 wxWindow *arg1 = (wxWindow *) 0 ;
24354 wxRegion *result;
24355 PyObject * obj0 = 0 ;
24356 char *kwnames[] = {
24357 (char *) "self", NULL
24358 };
24359
24360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateRegion",kwnames,&obj0)) goto fail;
24361 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24362 {
24363 PyThreadState* __tstate = wxPyBeginAllowThreads();
24364 {
24365 wxRegion &_result_ref = (arg1)->GetUpdateRegion();
24366 result = (wxRegion *) &_result_ref;
24367 }
24368
24369 wxPyEndAllowThreads(__tstate);
24370 if (PyErr_Occurred()) SWIG_fail;
24371 }
24372 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 0);
24373 return resultobj;
24374 fail:
24375 return NULL;
24376}
24377
24378
24379static PyObject *_wrap_Window_GetUpdateClientRect(PyObject *self, PyObject *args, PyObject *kwargs) {
24380 PyObject *resultobj;
24381 wxWindow *arg1 = (wxWindow *) 0 ;
24382 wxRect result;
24383 PyObject * obj0 = 0 ;
24384 char *kwnames[] = {
24385 (char *) "self", NULL
24386 };
24387
24388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateClientRect",kwnames,&obj0)) goto fail;
24389 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24390 {
24391 PyThreadState* __tstate = wxPyBeginAllowThreads();
24392 result = ((wxWindow const *)arg1)->GetUpdateClientRect();
24393
24394 wxPyEndAllowThreads(__tstate);
24395 if (PyErr_Occurred()) SWIG_fail;
24396 }
24397 {
24398 wxRect * resultptr;
24399 resultptr = new wxRect((wxRect &) result);
24400 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
24401 }
24402 return resultobj;
24403 fail:
24404 return NULL;
24405}
24406
24407
24408static PyObject *_wrap_Window_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) {
24409 PyObject *resultobj;
24410 wxWindow *arg1 = (wxWindow *) 0 ;
24411 int arg2 ;
24412 int arg3 ;
24413 int arg4 = (int) 1 ;
24414 int arg5 = (int) 1 ;
24415 bool result;
24416 PyObject * obj0 = 0 ;
8edf1c75
RD
24417 PyObject * obj1 = 0 ;
24418 PyObject * obj2 = 0 ;
24419 PyObject * obj3 = 0 ;
24420 PyObject * obj4 = 0 ;
d14a1e28
RD
24421 char *kwnames[] = {
24422 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
24423 };
24424
8edf1c75 24425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_IsExposed",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d14a1e28 24426 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
24427 {
24428 arg2 = (int) SWIG_PyObj_AsInt(obj1);
24429 if (PyErr_Occurred()) SWIG_fail;
24430 }
24431 {
24432 arg3 = (int) SWIG_PyObj_AsInt(obj2);
24433 if (PyErr_Occurred()) SWIG_fail;
24434 }
24435 if (obj3) {
24436 {
24437 arg4 = (int) SWIG_PyObj_AsInt(obj3);
24438 if (PyErr_Occurred()) SWIG_fail;
24439 }
24440 }
24441 if (obj4) {
24442 {
24443 arg5 = (int) SWIG_PyObj_AsInt(obj4);
24444 if (PyErr_Occurred()) SWIG_fail;
24445 }
24446 }
d14a1e28
RD
24447 {
24448 PyThreadState* __tstate = wxPyBeginAllowThreads();
24449 result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5);
24450
24451 wxPyEndAllowThreads(__tstate);
24452 if (PyErr_Occurred()) SWIG_fail;
24453 }
4e760a36 24454 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
24455 return resultobj;
24456 fail:
24457 return NULL;
24458}
24459
24460
24461static PyObject *_wrap_Window_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
24462 PyObject *resultobj;
24463 wxWindow *arg1 = (wxWindow *) 0 ;
24464 wxPoint *arg2 = 0 ;
24465 bool result;
24466 wxPoint temp2 ;
24467 PyObject * obj0 = 0 ;
24468 PyObject * obj1 = 0 ;
24469 char *kwnames[] = {
24470 (char *) "self",(char *) "pt", NULL
24471 };
24472
24473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) goto fail;
24474 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24475 {
24476 arg2 = &temp2;
24477 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
24478 }
24479 {
24480 PyThreadState* __tstate = wxPyBeginAllowThreads();
24481 result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2);
24482
24483 wxPyEndAllowThreads(__tstate);
24484 if (PyErr_Occurred()) SWIG_fail;
24485 }
4e760a36 24486 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
24487 return resultobj;
24488 fail:
24489 return NULL;
24490}
24491
24492
24493static PyObject *_wrap_Window_isExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) {
24494 PyObject *resultobj;
24495 wxWindow *arg1 = (wxWindow *) 0 ;
24496 wxRect *arg2 = 0 ;
24497 bool result;
24498 wxRect temp2 ;
24499 PyObject * obj0 = 0 ;
24500 PyObject * obj1 = 0 ;
24501 char *kwnames[] = {
24502 (char *) "self",(char *) "rect", NULL
24503 };
24504
24505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_isExposedRect",kwnames,&obj0,&obj1)) goto fail;
24506 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24507 {
24508 arg2 = &temp2;
24509 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
24510 }
24511 {
24512 PyThreadState* __tstate = wxPyBeginAllowThreads();
24513 result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2);
24514
24515 wxPyEndAllowThreads(__tstate);
24516 if (PyErr_Occurred()) SWIG_fail;
24517 }
4e760a36 24518 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
24519 return resultobj;
24520 fail:
24521 return NULL;
24522}
24523
24524
24525static PyObject *_wrap_Window_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
24526 PyObject *resultobj;
24527 wxWindow *arg1 = (wxWindow *) 0 ;
24528 wxColour *arg2 = 0 ;
24529 bool result;
24530 wxColour temp2 ;
24531 PyObject * obj0 = 0 ;
24532 PyObject * obj1 = 0 ;
24533 char *kwnames[] = {
24534 (char *) "self",(char *) "colour", NULL
24535 };
24536
24537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
24538 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24539 {
24540 arg2 = &temp2;
24541 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24542 }
24543 {
24544 PyThreadState* __tstate = wxPyBeginAllowThreads();
24545 result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2);
24546
24547 wxPyEndAllowThreads(__tstate);
24548 if (PyErr_Occurred()) SWIG_fail;
24549 }
4e760a36 24550 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
24551 return resultobj;
24552 fail:
24553 return NULL;
24554}
24555
24556
24557static PyObject *_wrap_Window_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
24558 PyObject *resultobj;
24559 wxWindow *arg1 = (wxWindow *) 0 ;
24560 wxColour *arg2 = 0 ;
24561 bool result;
24562 wxColour temp2 ;
24563 PyObject * obj0 = 0 ;
24564 PyObject * obj1 = 0 ;
24565 char *kwnames[] = {
24566 (char *) "self",(char *) "colour", NULL
24567 };
24568
24569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail;
24570 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24571 {
24572 arg2 = &temp2;
24573 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24574 }
24575 {
24576 PyThreadState* __tstate = wxPyBeginAllowThreads();
24577 result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2);
24578
24579 wxPyEndAllowThreads(__tstate);
24580 if (PyErr_Occurred()) SWIG_fail;
24581 }
4e760a36 24582 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
24583 return resultobj;
24584 fail:
24585 return NULL;
24586}
24587
24588
24589static PyObject *_wrap_Window_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
24590 PyObject *resultobj;
24591 wxWindow *arg1 = (wxWindow *) 0 ;
24592 wxColour result;
24593 PyObject * obj0 = 0 ;
24594 char *kwnames[] = {
24595 (char *) "self", NULL
24596 };
24597
24598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundColour",kwnames,&obj0)) goto fail;
24599 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24600 {
24601 PyThreadState* __tstate = wxPyBeginAllowThreads();
24602 result = ((wxWindow const *)arg1)->GetBackgroundColour();
24603
24604 wxPyEndAllowThreads(__tstate);
24605 if (PyErr_Occurred()) SWIG_fail;
24606 }
24607 {
24608 wxColour * resultptr;
24609 resultptr = new wxColour((wxColour &) result);
24610 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
24611 }
24612 return resultobj;
24613 fail:
24614 return NULL;
24615}
24616
24617
24618static PyObject *_wrap_Window_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
24619 PyObject *resultobj;
24620 wxWindow *arg1 = (wxWindow *) 0 ;
24621 wxColour result;
24622 PyObject * obj0 = 0 ;
24623 char *kwnames[] = {
24624 (char *) "self", NULL
24625 };
24626
24627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetForegroundColour",kwnames,&obj0)) goto fail;
24628 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24629 {
24630 PyThreadState* __tstate = wxPyBeginAllowThreads();
24631 result = ((wxWindow const *)arg1)->GetForegroundColour();
24632
24633 wxPyEndAllowThreads(__tstate);
24634 if (PyErr_Occurred()) SWIG_fail;
24635 }
24636 {
24637 wxColour * resultptr;
24638 resultptr = new wxColour((wxColour &) result);
24639 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
24640 }
24641 return resultobj;
24642 fail:
24643 return NULL;
24644}
24645
24646
24647static PyObject *_wrap_Window_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
24648 PyObject *resultobj;
24649 wxWindow *arg1 = (wxWindow *) 0 ;
24650 wxCursor *arg2 = 0 ;
24651 bool result;
24652 PyObject * obj0 = 0 ;
24653 PyObject * obj1 = 0 ;
24654 char *kwnames[] = {
24655 (char *) "self",(char *) "cursor", NULL
24656 };
24657
24658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) goto fail;
24659 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24660 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24661 if (arg2 == NULL) {
24662 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24663 }
24664 {
24665 PyThreadState* __tstate = wxPyBeginAllowThreads();
24666 result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2);
24667
24668 wxPyEndAllowThreads(__tstate);
24669 if (PyErr_Occurred()) SWIG_fail;
24670 }
4e760a36 24671 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
24672 return resultobj;
24673 fail:
24674 return NULL;
24675}
24676
24677
24678static PyObject *_wrap_Window_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
24679 PyObject *resultobj;
24680 wxWindow *arg1 = (wxWindow *) 0 ;
24681 wxCursor *result;
24682 PyObject * obj0 = 0 ;
24683 char *kwnames[] = {
24684 (char *) "self", NULL
24685 };
24686
24687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCursor",kwnames,&obj0)) goto fail;
24688 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24689 {
24690 PyThreadState* __tstate = wxPyBeginAllowThreads();
24691 {
24692 wxCursor &_result_ref = (arg1)->GetCursor();
24693 result = (wxCursor *) &_result_ref;
24694 }
24695
24696 wxPyEndAllowThreads(__tstate);
24697 if (PyErr_Occurred()) SWIG_fail;
24698 }
24699 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 0);
24700 return resultobj;
24701 fail:
24702 return NULL;
24703}
24704
24705
24706static PyObject *_wrap_Window_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
24707 PyObject *resultobj;
24708 wxWindow *arg1 = (wxWindow *) 0 ;
24709 wxFont *arg2 = 0 ;
24710 bool result;
24711 PyObject * obj0 = 0 ;
24712 PyObject * obj1 = 0 ;
24713 char *kwnames[] = {
24714 (char *) "self",(char *) "font", NULL
24715 };
24716
24717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) goto fail;
24718 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24719 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24720 if (arg2 == NULL) {
24721 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
24722 }
24723 {
24724 PyThreadState* __tstate = wxPyBeginAllowThreads();
24725 result = (bool)(arg1)->SetFont((wxFont const &)*arg2);
24726
24727 wxPyEndAllowThreads(__tstate);
24728 if (PyErr_Occurred()) SWIG_fail;
24729 }
4e760a36 24730 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
24731 return resultobj;
24732 fail:
24733 return NULL;
24734}
24735
24736
24737static PyObject *_wrap_Window_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
24738 PyObject *resultobj;
24739 wxWindow *arg1 = (wxWindow *) 0 ;
24740 wxFont *result;
24741 PyObject * obj0 = 0 ;
24742 char *kwnames[] = {
24743 (char *) "self", NULL
24744 };
24745
24746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetFont",kwnames,&obj0)) goto fail;
24747 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24748 {
24749 PyThreadState* __tstate = wxPyBeginAllowThreads();
24750 {
24751 wxFont &_result_ref = (arg1)->GetFont();
24752 result = (wxFont *) &_result_ref;
24753 }
24754
24755 wxPyEndAllowThreads(__tstate);
24756 if (PyErr_Occurred()) SWIG_fail;
24757 }
24758 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
24759 return resultobj;
24760 fail:
24761 return NULL;
24762}
24763
24764
24765static PyObject *_wrap_Window_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) {
24766 PyObject *resultobj;
24767 wxWindow *arg1 = (wxWindow *) 0 ;
24768 wxCaret *arg2 = (wxCaret *) 0 ;
24769 PyObject * obj0 = 0 ;
24770 PyObject * obj1 = 0 ;
24771 char *kwnames[] = {
24772 (char *) "self",(char *) "caret", NULL
24773 };
24774
24775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",kwnames,&obj0,&obj1)) goto fail;
24776 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24777 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCaret,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24778 {
24779 PyThreadState* __tstate = wxPyBeginAllowThreads();
24780 (arg1)->SetCaret(arg2);
24781
24782 wxPyEndAllowThreads(__tstate);
24783 if (PyErr_Occurred()) SWIG_fail;
24784 }
24785 Py_INCREF(Py_None); resultobj = Py_None;
24786 return resultobj;
24787 fail:
24788 return NULL;
24789}
24790
24791
24792static PyObject *_wrap_Window_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) {
24793 PyObject *resultobj;
24794 wxWindow *arg1 = (wxWindow *) 0 ;
24795 wxCaret *result;
24796 PyObject * obj0 = 0 ;
24797 char *kwnames[] = {
24798 (char *) "self", NULL
24799 };
24800
24801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCaret",kwnames,&obj0)) goto fail;
24802 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24803 {
24804 PyThreadState* __tstate = wxPyBeginAllowThreads();
24805 result = (wxCaret *)((wxWindow const *)arg1)->GetCaret();
24806
24807 wxPyEndAllowThreads(__tstate);
24808 if (PyErr_Occurred()) SWIG_fail;
24809 }
24810 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCaret, 0);
24811 return resultobj;
24812 fail:
24813 return NULL;
24814}
24815
24816
24817static PyObject *_wrap_Window_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
24818 PyObject *resultobj;
24819 wxWindow *arg1 = (wxWindow *) 0 ;
24820 int result;
24821 PyObject * obj0 = 0 ;
24822 char *kwnames[] = {
24823 (char *) "self", NULL
24824 };
24825
24826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharHeight",kwnames,&obj0)) goto fail;
24827 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24828 {
24829 PyThreadState* __tstate = wxPyBeginAllowThreads();
24830 result = (int)((wxWindow const *)arg1)->GetCharHeight();
24831
24832 wxPyEndAllowThreads(__tstate);
24833 if (PyErr_Occurred()) SWIG_fail;
24834 }
8edf1c75 24835 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
24836 return resultobj;
24837 fail:
24838 return NULL;
24839}
24840
24841
24842static PyObject *_wrap_Window_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
24843 PyObject *resultobj;
24844 wxWindow *arg1 = (wxWindow *) 0 ;
24845 int result;
24846 PyObject * obj0 = 0 ;
24847 char *kwnames[] = {
24848 (char *) "self", NULL
24849 };
24850
24851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharWidth",kwnames,&obj0)) goto fail;
24852 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24853 {
24854 PyThreadState* __tstate = wxPyBeginAllowThreads();
24855 result = (int)((wxWindow const *)arg1)->GetCharWidth();
24856
24857 wxPyEndAllowThreads(__tstate);
24858 if (PyErr_Occurred()) SWIG_fail;
24859 }
8edf1c75 24860 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
24861 return resultobj;
24862 fail:
24863 return NULL;
24864}
24865
24866
24867static PyObject *_wrap_Window_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
24868 PyObject *resultobj;
24869 wxWindow *arg1 = (wxWindow *) 0 ;
24870 wxString *arg2 = 0 ;
24871 int *arg3 = (int *) 0 ;
24872 int *arg4 = (int *) 0 ;
423f194a 24873 bool temp2 = False ;
d14a1e28
RD
24874 int temp3 ;
24875 int temp4 ;
24876 PyObject * obj0 = 0 ;
24877 PyObject * obj1 = 0 ;
24878 char *kwnames[] = {
24879 (char *) "self",(char *) "string", NULL
24880 };
24881
24882 arg3 = &temp3;
24883 arg4 = &temp4;
24884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
24885 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24886 {
24887 arg2 = wxString_in_helper(obj1);
24888 if (arg2 == NULL) SWIG_fail;
423f194a 24889 temp2 = True;
d14a1e28
RD
24890 }
24891 {
24892 PyThreadState* __tstate = wxPyBeginAllowThreads();
24893 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
24894
24895 wxPyEndAllowThreads(__tstate);
24896 if (PyErr_Occurred()) SWIG_fail;
24897 }
24898 Py_INCREF(Py_None); resultobj = Py_None;
24899 {
24900 PyObject *o = PyInt_FromLong((long) (*arg3));
24901 resultobj = t_output_helper(resultobj,o);
24902 }
24903 {
24904 PyObject *o = PyInt_FromLong((long) (*arg4));
24905 resultobj = t_output_helper(resultobj,o);
24906 }
24907 {
24908 if (temp2)
24909 delete arg2;
24910 }
24911 return resultobj;
24912 fail:
24913 {
24914 if (temp2)
24915 delete arg2;
24916 }
24917 return NULL;
24918}
24919
24920
24921static PyObject *_wrap_Window_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
24922 PyObject *resultobj;
24923 wxWindow *arg1 = (wxWindow *) 0 ;
24924 wxString *arg2 = 0 ;
24925 int *arg3 = (int *) 0 ;
24926 int *arg4 = (int *) 0 ;
24927 int *arg5 = (int *) 0 ;
24928 int *arg6 = (int *) 0 ;
24929 wxFont *arg7 = (wxFont *) NULL ;
423f194a 24930 bool temp2 = False ;
d14a1e28
RD
24931 int temp3 ;
24932 int temp4 ;
24933 int temp5 ;
24934 int temp6 ;
24935 PyObject * obj0 = 0 ;
24936 PyObject * obj1 = 0 ;
24937 PyObject * obj2 = 0 ;
24938 char *kwnames[] = {
24939 (char *) "self",(char *) "string",(char *) "font", NULL
24940 };
24941
24942 arg3 = &temp3;
24943 arg4 = &temp4;
24944 arg5 = &temp5;
24945 arg6 = &temp6;
24946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
24947 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24948 {
24949 arg2 = wxString_in_helper(obj1);
24950 if (arg2 == NULL) SWIG_fail;
423f194a 24951 temp2 = True;
d14a1e28
RD
24952 }
24953 if (obj2) {
24954 if ((SWIG_ConvertPtr(obj2,(void **) &arg7, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
24955 }
24956 {
24957 PyThreadState* __tstate = wxPyBeginAllowThreads();
24958 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7);
24959
24960 wxPyEndAllowThreads(__tstate);
24961 if (PyErr_Occurred()) SWIG_fail;
24962 }
24963 Py_INCREF(Py_None); resultobj = Py_None;
24964 {
24965 PyObject *o = PyInt_FromLong((long) (*arg3));
24966 resultobj = t_output_helper(resultobj,o);
24967 }
24968 {
24969 PyObject *o = PyInt_FromLong((long) (*arg4));
24970 resultobj = t_output_helper(resultobj,o);
24971 }
24972 {
24973 PyObject *o = PyInt_FromLong((long) (*arg5));
24974 resultobj = t_output_helper(resultobj,o);
24975 }
24976 {
24977 PyObject *o = PyInt_FromLong((long) (*arg6));
24978 resultobj = t_output_helper(resultobj,o);
24979 }
24980 {
24981 if (temp2)
24982 delete arg2;
24983 }
24984 return resultobj;
24985 fail:
24986 {
24987 if (temp2)
24988 delete arg2;
24989 }
24990 return NULL;
24991}
24992
24993
24994static PyObject *_wrap_Window_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) {
24995 PyObject *resultobj;
24996 wxWindow *arg1 = (wxWindow *) 0 ;
24997 int *arg2 = (int *) 0 ;
24998 int *arg3 = (int *) 0 ;
24999 int temp2 ;
25000 int temp3 ;
25001 PyObject * obj0 = 0 ;
25002 PyObject * obj1 = 0 ;
25003 PyObject * obj2 = 0 ;
25004 char *kwnames[] = {
25005 (char *) "self",(char *) "x",(char *) "y", NULL
25006 };
25007
25008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
25009 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25010 {
25011 temp2 = PyInt_AsLong(obj1);
25012 if (PyErr_Occurred()) SWIG_fail;
25013 arg2 = &temp2;
25014 }
25015 {
25016 temp3 = PyInt_AsLong(obj2);
25017 if (PyErr_Occurred()) SWIG_fail;
25018 arg3 = &temp3;
25019 }
25020 {
25021 PyThreadState* __tstate = wxPyBeginAllowThreads();
25022 ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3);
25023
25024 wxPyEndAllowThreads(__tstate);
25025 if (PyErr_Occurred()) SWIG_fail;
25026 }
25027 Py_INCREF(Py_None); resultobj = Py_None;
25028 {
25029 PyObject *o = PyInt_FromLong((long) (*arg2));
25030 resultobj = t_output_helper(resultobj,o);
25031 }
25032 {
25033 PyObject *o = PyInt_FromLong((long) (*arg3));
25034 resultobj = t_output_helper(resultobj,o);
25035 }
25036 return resultobj;
25037 fail:
25038 return NULL;
25039}
25040
25041
25042static PyObject *_wrap_Window_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) {
25043 PyObject *resultobj;
25044 wxWindow *arg1 = (wxWindow *) 0 ;
25045 int *arg2 = (int *) 0 ;
25046 int *arg3 = (int *) 0 ;
25047 int temp2 ;
25048 int temp3 ;
25049 PyObject * obj0 = 0 ;
25050 PyObject * obj1 = 0 ;
25051 PyObject * obj2 = 0 ;
25052 char *kwnames[] = {
25053 (char *) "self",(char *) "x",(char *) "y", NULL
25054 };
25055
25056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
25057 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25058 {
25059 temp2 = PyInt_AsLong(obj1);
25060 if (PyErr_Occurred()) SWIG_fail;
25061 arg2 = &temp2;
25062 }
25063 {
25064 temp3 = PyInt_AsLong(obj2);
25065 if (PyErr_Occurred()) SWIG_fail;
25066 arg3 = &temp3;
25067 }
25068 {
25069 PyThreadState* __tstate = wxPyBeginAllowThreads();
25070 ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3);
25071
25072 wxPyEndAllowThreads(__tstate);
25073 if (PyErr_Occurred()) SWIG_fail;
25074 }
25075 Py_INCREF(Py_None); resultobj = Py_None;
25076 {
25077 PyObject *o = PyInt_FromLong((long) (*arg2));
25078 resultobj = t_output_helper(resultobj,o);
25079 }
25080 {
25081 PyObject *o = PyInt_FromLong((long) (*arg3));
25082 resultobj = t_output_helper(resultobj,o);
25083 }
25084 return resultobj;
25085 fail:
25086 return NULL;
25087}
25088
25089
25090static PyObject *_wrap_Window_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) {
25091 PyObject *resultobj;
25092 wxWindow *arg1 = (wxWindow *) 0 ;
25093 wxPoint *arg2 = 0 ;
25094 wxPoint result;
25095 wxPoint temp2 ;
25096 PyObject * obj0 = 0 ;
25097 PyObject * obj1 = 0 ;
25098 char *kwnames[] = {
25099 (char *) "self",(char *) "pt", NULL
25100 };
25101
25102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) goto fail;
25103 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25104 {
25105 arg2 = &temp2;
25106 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
25107 }
25108 {
25109 PyThreadState* __tstate = wxPyBeginAllowThreads();
25110 result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2);
25111
25112 wxPyEndAllowThreads(__tstate);
25113 if (PyErr_Occurred()) SWIG_fail;
25114 }
25115 {
25116 wxPoint * resultptr;
25117 resultptr = new wxPoint((wxPoint &) result);
25118 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
25119 }
25120 return resultobj;
25121 fail:
25122 return NULL;
25123}
25124
25125
25126static PyObject *_wrap_Window_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) {
25127 PyObject *resultobj;
25128 wxWindow *arg1 = (wxWindow *) 0 ;
25129 wxPoint *arg2 = 0 ;
25130 wxPoint result;
25131 wxPoint temp2 ;
25132 PyObject * obj0 = 0 ;
25133 PyObject * obj1 = 0 ;
25134 char *kwnames[] = {
25135 (char *) "self",(char *) "pt", NULL
25136 };
25137
25138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) goto fail;
25139 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25140 {
25141 arg2 = &temp2;
25142 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
25143 }
25144 {
25145 PyThreadState* __tstate = wxPyBeginAllowThreads();
25146 result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2);
25147
25148 wxPyEndAllowThreads(__tstate);
25149 if (PyErr_Occurred()) SWIG_fail;
25150 }
25151 {
25152 wxPoint * resultptr;
25153 resultptr = new wxPoint((wxPoint &) result);
25154 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
25155 }
25156 return resultobj;
25157 fail:
25158 return NULL;
25159}
25160
25161
25162static PyObject *_wrap_Window_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) {
25163 PyObject *resultobj;
25164 wxWindow *arg1 = (wxWindow *) 0 ;
423f194a
RD
25165 int arg2 ;
25166 int arg3 ;
d14a1e28
RD
25167 int result;
25168 PyObject * obj0 = 0 ;
8edf1c75
RD
25169 PyObject * obj1 = 0 ;
25170 PyObject * obj2 = 0 ;
d14a1e28
RD
25171 char *kwnames[] = {
25172 (char *) "self",(char *) "x",(char *) "y", NULL
25173 };
25174
8edf1c75 25175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 25176 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
25177 {
25178 arg2 = (int) SWIG_PyObj_AsInt(obj1);
25179 if (PyErr_Occurred()) SWIG_fail;
25180 }
25181 {
25182 arg3 = (int) SWIG_PyObj_AsInt(obj2);
25183 if (PyErr_Occurred()) SWIG_fail;
25184 }
d14a1e28
RD
25185 {
25186 PyThreadState* __tstate = wxPyBeginAllowThreads();
25187 result = (int)((wxWindow const *)arg1)->HitTest(arg2,arg3);
25188
25189 wxPyEndAllowThreads(__tstate);
25190 if (PyErr_Occurred()) SWIG_fail;
25191 }
8edf1c75 25192 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
25193 return resultobj;
25194 fail:
25195 return NULL;
25196}
25197
25198
25199static PyObject *_wrap_Window_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
25200 PyObject *resultobj;
25201 wxWindow *arg1 = (wxWindow *) 0 ;
25202 wxPoint *arg2 = 0 ;
25203 int result;
25204 wxPoint temp2 ;
25205 PyObject * obj0 = 0 ;
25206 PyObject * obj1 = 0 ;
25207 char *kwnames[] = {
25208 (char *) "self",(char *) "pt", NULL
25209 };
25210
25211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) goto fail;
25212 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25213 {
25214 arg2 = &temp2;
25215 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
25216 }
25217 {
25218 PyThreadState* __tstate = wxPyBeginAllowThreads();
25219 result = (int)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2);
25220
25221 wxPyEndAllowThreads(__tstate);
25222 if (PyErr_Occurred()) SWIG_fail;
25223 }
8edf1c75 25224 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
25225 return resultobj;
25226 fail:
25227 return NULL;
25228}
25229
25230
25231static PyObject *_wrap_Window_GetBorderFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
25232 PyObject *resultobj;
25233 wxWindow *arg1 = (wxWindow *) 0 ;
25234 long arg2 ;
25235 int result;
25236 PyObject * obj0 = 0 ;
8edf1c75 25237 PyObject * obj1 = 0 ;
d14a1e28
RD
25238 char *kwnames[] = {
25239 (char *) "self",(char *) "flags", NULL
25240 };
25241
8edf1c75 25242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetBorderFlags",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 25243 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
25244 {
25245 arg2 = (long) SWIG_PyObj_AsLong(obj1);
25246 if (PyErr_Occurred()) SWIG_fail;
25247 }
d14a1e28
RD
25248 {
25249 PyThreadState* __tstate = wxPyBeginAllowThreads();
25250 result = (int)((wxWindow const *)arg1)->GetBorder(arg2);
25251
25252 wxPyEndAllowThreads(__tstate);
25253 if (PyErr_Occurred()) SWIG_fail;
25254 }
8edf1c75 25255 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
25256 return resultobj;
25257 fail:
25258 return NULL;
25259}
25260
25261
25262static PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) {
25263 PyObject *resultobj;
25264 wxWindow *arg1 = (wxWindow *) 0 ;
25265 int result;
25266 PyObject * obj0 = 0 ;
25267 char *kwnames[] = {
25268 (char *) "self", NULL
25269 };
25270
25271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBorder",kwnames,&obj0)) goto fail;
25272 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25273 {
25274 PyThreadState* __tstate = wxPyBeginAllowThreads();
25275 result = (int)((wxWindow const *)arg1)->GetBorder();
25276
25277 wxPyEndAllowThreads(__tstate);
25278 if (PyErr_Occurred()) SWIG_fail;
25279 }
8edf1c75 25280 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
25281 return resultobj;
25282 fail:
25283 return NULL;
25284}
25285
25286
25287static PyObject *_wrap_Window_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) {
25288 PyObject *resultobj;
25289 wxWindow *arg1 = (wxWindow *) 0 ;
25290 long arg2 = (long) wxUPDATE_UI_NONE ;
25291 PyObject * obj0 = 0 ;
8edf1c75 25292 PyObject * obj1 = 0 ;
d14a1e28
RD
25293 char *kwnames[] = {
25294 (char *) "self",(char *) "flags", NULL
25295 };
25296
8edf1c75 25297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_UpdateWindowUI",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 25298 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
25299 if (obj1) {
25300 {
25301 arg2 = (long) SWIG_PyObj_AsLong(obj1);
25302 if (PyErr_Occurred()) SWIG_fail;
25303 }
25304 }
d14a1e28
RD
25305 {
25306 PyThreadState* __tstate = wxPyBeginAllowThreads();
25307 (arg1)->UpdateWindowUI(arg2);
25308
25309 wxPyEndAllowThreads(__tstate);
25310 if (PyErr_Occurred()) SWIG_fail;
25311 }
25312 Py_INCREF(Py_None); resultobj = Py_None;
25313 return resultobj;
25314 fail:
25315 return NULL;
25316}
25317
25318
25319static PyObject *_wrap_Window_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) {
25320 PyObject *resultobj;
25321 wxWindow *arg1 = (wxWindow *) 0 ;
25322 wxMenu *arg2 = (wxMenu *) 0 ;
25323 int arg3 ;
25324 int arg4 ;
25325 bool result;
25326 PyObject * obj0 = 0 ;
25327 PyObject * obj1 = 0 ;
8edf1c75
RD
25328 PyObject * obj2 = 0 ;
25329 PyObject * obj3 = 0 ;
d14a1e28
RD
25330 char *kwnames[] = {
25331 (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL
25332 };
25333
8edf1c75 25334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_PopupMenuXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28
RD
25335 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25336 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
25337 {
25338 arg3 = (int) SWIG_PyObj_AsInt(obj2);
25339 if (PyErr_Occurred()) SWIG_fail;
25340 }
25341 {
25342 arg4 = (int) SWIG_PyObj_AsInt(obj3);
25343 if (PyErr_Occurred()) SWIG_fail;
25344 }
d14a1e28
RD
25345 {
25346 PyThreadState* __tstate = wxPyBeginAllowThreads();
25347 result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4);
25348
25349 wxPyEndAllowThreads(__tstate);
25350 if (PyErr_Occurred()) SWIG_fail;
25351 }
4e760a36 25352 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
25353 return resultobj;
25354 fail:
25355 return NULL;
25356}
25357
25358
25359static PyObject *_wrap_Window_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
25360 PyObject *resultobj;
25361 wxWindow *arg1 = (wxWindow *) 0 ;
25362 wxMenu *arg2 = (wxMenu *) 0 ;
25363 wxPoint *arg3 = 0 ;
25364 bool result;
25365 wxPoint temp3 ;
25366 PyObject * obj0 = 0 ;
25367 PyObject * obj1 = 0 ;
25368 PyObject * obj2 = 0 ;
25369 char *kwnames[] = {
25370 (char *) "self",(char *) "menu",(char *) "pos", NULL
25371 };
25372
25373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail;
25374 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25375 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25376 {
25377 arg3 = &temp3;
25378 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25379 }
25380 {
25381 PyThreadState* __tstate = wxPyBeginAllowThreads();
25382 result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3);
25383
25384 wxPyEndAllowThreads(__tstate);
25385 if (PyErr_Occurred()) SWIG_fail;
25386 }
4e760a36 25387 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
25388 return resultobj;
25389 fail:
25390 return NULL;
25391}
25392
25393
25394static PyObject *_wrap_Window_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
25395 PyObject *resultobj;
25396 wxWindow *arg1 = (wxWindow *) 0 ;
25397 long result;
25398 PyObject * obj0 = 0 ;
25399 char *kwnames[] = {
25400 (char *) "self", NULL
25401 };
25402
25403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHandle",kwnames,&obj0)) goto fail;
25404 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25405 {
25406 PyThreadState* __tstate = wxPyBeginAllowThreads();
25407 result = (long)wxWindow_GetHandle(arg1);
25408
25409 wxPyEndAllowThreads(__tstate);
25410 if (PyErr_Occurred()) SWIG_fail;
25411 }
8edf1c75 25412 resultobj = SWIG_PyObj_FromLong((long)result);
d14a1e28
RD
25413 return resultobj;
25414 fail:
25415 return NULL;
25416}
25417
25418
25419static PyObject *_wrap_Window_OnPaint(PyObject *self, PyObject *args, PyObject *kwargs) {
25420 PyObject *resultobj;
25421 wxWindow *arg1 = (wxWindow *) 0 ;
25422 wxPaintEvent *arg2 = 0 ;
25423 PyObject * obj0 = 0 ;
25424 PyObject * obj1 = 0 ;
25425 char *kwnames[] = {
25426 (char *) "self",(char *) "event", NULL
25427 };
25428
25429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_OnPaint",kwnames,&obj0,&obj1)) goto fail;
25430 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25431 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPaintEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25432 if (arg2 == NULL) {
25433 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
25434 }
25435 {
25436 PyThreadState* __tstate = wxPyBeginAllowThreads();
25437 (arg1)->OnPaint(*arg2);
25438
25439 wxPyEndAllowThreads(__tstate);
25440 if (PyErr_Occurred()) SWIG_fail;
25441 }
25442 Py_INCREF(Py_None); resultobj = Py_None;
25443 return resultobj;
25444 fail:
25445 return NULL;
25446}
25447
25448
25449static PyObject *_wrap_Window_HasScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) {
25450 PyObject *resultobj;
25451 wxWindow *arg1 = (wxWindow *) 0 ;
25452 int arg2 ;
25453 bool result;
25454 PyObject * obj0 = 0 ;
8edf1c75 25455 PyObject * obj1 = 0 ;
d14a1e28
RD
25456 char *kwnames[] = {
25457 (char *) "self",(char *) "orient", NULL
25458 };
25459
8edf1c75 25460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasScrollbar",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 25461 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
25462 {
25463 arg2 = (int) SWIG_PyObj_AsInt(obj1);
25464 if (PyErr_Occurred()) SWIG_fail;
25465 }
d14a1e28
RD
25466 {
25467 PyThreadState* __tstate = wxPyBeginAllowThreads();
25468 result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2);
25469
25470 wxPyEndAllowThreads(__tstate);
25471 if (PyErr_Occurred()) SWIG_fail;
25472 }
4e760a36 25473 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
25474 return resultobj;
25475 fail:
25476 return NULL;
25477}
25478
25479
25480static PyObject *_wrap_Window_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) {
25481 PyObject *resultobj;
25482 wxWindow *arg1 = (wxWindow *) 0 ;
25483 int arg2 ;
25484 int arg3 ;
25485 int arg4 ;
25486 int arg5 ;
423f194a 25487 bool arg6 = (bool) True ;
d14a1e28 25488 PyObject * obj0 = 0 ;
8edf1c75
RD
25489 PyObject * obj1 = 0 ;
25490 PyObject * obj2 = 0 ;
25491 PyObject * obj3 = 0 ;
25492 PyObject * obj4 = 0 ;
d14a1e28
RD
25493 PyObject * obj5 = 0 ;
25494 char *kwnames[] = {
25495 (char *) "self",(char *) "orient",(char *) "pos",(char *) "thumbvisible",(char *) "range",(char *) "refresh", NULL
25496 };
25497
8edf1c75 25498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
d14a1e28 25499 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
25500 {
25501 arg2 = (int) SWIG_PyObj_AsInt(obj1);
25502 if (PyErr_Occurred()) SWIG_fail;
25503 }
25504 {
25505 arg3 = (int) SWIG_PyObj_AsInt(obj2);
25506 if (PyErr_Occurred()) SWIG_fail;
25507 }
25508 {
25509 arg4 = (int) SWIG_PyObj_AsInt(obj3);
25510 if (PyErr_Occurred()) SWIG_fail;
25511 }
25512 {
25513 arg5 = (int) SWIG_PyObj_AsInt(obj4);
25514 if (PyErr_Occurred()) SWIG_fail;
25515 }
d14a1e28 25516 if (obj5) {
83448d71 25517 {
8edf1c75 25518 arg6 = (bool) SWIG_PyObj_AsBool(obj5);
83448d71
RD
25519 if (PyErr_Occurred()) SWIG_fail;
25520 }
d14a1e28
RD
25521 }
25522 {
25523 PyThreadState* __tstate = wxPyBeginAllowThreads();
25524 (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6);
25525
25526 wxPyEndAllowThreads(__tstate);
25527 if (PyErr_Occurred()) SWIG_fail;
25528 }
25529 Py_INCREF(Py_None); resultobj = Py_None;
25530 return resultobj;
25531 fail:
25532 return NULL;
25533}
25534
25535
25536static PyObject *_wrap_Window_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) {
25537 PyObject *resultobj;
25538 wxWindow *arg1 = (wxWindow *) 0 ;
25539 int arg2 ;
25540 int arg3 ;
423f194a 25541 bool arg4 = (bool) True ;
d14a1e28 25542 PyObject * obj0 = 0 ;
8edf1c75
RD
25543 PyObject * obj1 = 0 ;
25544 PyObject * obj2 = 0 ;
d14a1e28
RD
25545 PyObject * obj3 = 0 ;
25546 char *kwnames[] = {
25547 (char *) "self",(char *) "orient",(char *) "pos",(char *) "refresh", NULL
25548 };
25549
8edf1c75 25550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_SetScrollPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28 25551 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
25552 {
25553 arg2 = (int) SWIG_PyObj_AsInt(obj1);
25554 if (PyErr_Occurred()) SWIG_fail;
25555 }
25556 {
25557 arg3 = (int) SWIG_PyObj_AsInt(obj2);
25558 if (PyErr_Occurred()) SWIG_fail;
25559 }
d14a1e28 25560 if (obj3) {
83448d71 25561 {
8edf1c75 25562 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
83448d71
RD
25563 if (PyErr_Occurred()) SWIG_fail;
25564 }
d14a1e28
RD
25565 }
25566 {
25567 PyThreadState* __tstate = wxPyBeginAllowThreads();
25568 (arg1)->SetScrollPos(arg2,arg3,arg4);
25569
25570 wxPyEndAllowThreads(__tstate);
25571 if (PyErr_Occurred()) SWIG_fail;
25572 }
25573 Py_INCREF(Py_None); resultobj = Py_None;
25574 return resultobj;
25575 fail:
25576 return NULL;
25577}
25578
25579
25580static PyObject *_wrap_Window_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) {
25581 PyObject *resultobj;
25582 wxWindow *arg1 = (wxWindow *) 0 ;
25583 int arg2 ;
25584 int result;
25585 PyObject * obj0 = 0 ;
8edf1c75 25586 PyObject * obj1 = 0 ;
d14a1e28
RD
25587 char *kwnames[] = {
25588 (char *) "self",(char *) "orient", NULL
25589 };
25590
8edf1c75 25591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollPos",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 25592 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
25593 {
25594 arg2 = (int) SWIG_PyObj_AsInt(obj1);
25595 if (PyErr_Occurred()) SWIG_fail;
25596 }
d14a1e28
RD
25597 {
25598 PyThreadState* __tstate = wxPyBeginAllowThreads();
25599 result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2);
25600
25601 wxPyEndAllowThreads(__tstate);
25602 if (PyErr_Occurred()) SWIG_fail;
25603 }
8edf1c75 25604 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
25605 return resultobj;
25606 fail:
25607 return NULL;
25608}
25609
25610
25611static PyObject *_wrap_Window_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) {
25612 PyObject *resultobj;
25613 wxWindow *arg1 = (wxWindow *) 0 ;
25614 int arg2 ;
25615 int result;
25616 PyObject * obj0 = 0 ;
8edf1c75 25617 PyObject * obj1 = 0 ;
d14a1e28
RD
25618 char *kwnames[] = {
25619 (char *) "self",(char *) "orient", NULL
25620 };
25621
8edf1c75 25622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollThumb",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 25623 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
25624 {
25625 arg2 = (int) SWIG_PyObj_AsInt(obj1);
25626 if (PyErr_Occurred()) SWIG_fail;
25627 }
d14a1e28
RD
25628 {
25629 PyThreadState* __tstate = wxPyBeginAllowThreads();
25630 result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2);
25631
25632 wxPyEndAllowThreads(__tstate);
25633 if (PyErr_Occurred()) SWIG_fail;
25634 }
8edf1c75 25635 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
25636 return resultobj;
25637 fail:
25638 return NULL;
25639}
25640
25641
25642static PyObject *_wrap_Window_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) {
25643 PyObject *resultobj;
25644 wxWindow *arg1 = (wxWindow *) 0 ;
25645 int arg2 ;
25646 int result;
25647 PyObject * obj0 = 0 ;
8edf1c75 25648 PyObject * obj1 = 0 ;
d14a1e28
RD
25649 char *kwnames[] = {
25650 (char *) "self",(char *) "orient", NULL
25651 };
25652
8edf1c75 25653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollRange",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 25654 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
25655 {
25656 arg2 = (int) SWIG_PyObj_AsInt(obj1);
25657 if (PyErr_Occurred()) SWIG_fail;
25658 }
d14a1e28
RD
25659 {
25660 PyThreadState* __tstate = wxPyBeginAllowThreads();
25661 result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2);
25662
25663 wxPyEndAllowThreads(__tstate);
25664 if (PyErr_Occurred()) SWIG_fail;
25665 }
8edf1c75 25666 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
25667 return resultobj;
25668 fail:
25669 return NULL;
25670}
25671
25672
25673static PyObject *_wrap_Window_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
25674 PyObject *resultobj;
25675 wxWindow *arg1 = (wxWindow *) 0 ;
25676 int arg2 ;
25677 int arg3 ;
25678 wxRect *arg4 = (wxRect *) NULL ;
25679 PyObject * obj0 = 0 ;
8edf1c75
RD
25680 PyObject * obj1 = 0 ;
25681 PyObject * obj2 = 0 ;
d14a1e28
RD
25682 PyObject * obj3 = 0 ;
25683 char *kwnames[] = {
25684 (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL
25685 };
25686
8edf1c75 25687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_ScrollWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28 25688 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
25689 {
25690 arg2 = (int) SWIG_PyObj_AsInt(obj1);
25691 if (PyErr_Occurred()) SWIG_fail;
25692 }
25693 {
25694 arg3 = (int) SWIG_PyObj_AsInt(obj2);
25695 if (PyErr_Occurred()) SWIG_fail;
25696 }
d14a1e28
RD
25697 if (obj3) {
25698 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25699 }
25700 {
25701 PyThreadState* __tstate = wxPyBeginAllowThreads();
25702 (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4);
25703
25704 wxPyEndAllowThreads(__tstate);
25705 if (PyErr_Occurred()) SWIG_fail;
25706 }
25707 Py_INCREF(Py_None); resultobj = Py_None;
25708 return resultobj;
25709 fail:
25710 return NULL;
25711}
25712
25713
25714static PyObject *_wrap_Window_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) {
25715 PyObject *resultobj;
25716 wxWindow *arg1 = (wxWindow *) 0 ;
25717 int arg2 ;
25718 bool result;
25719 PyObject * obj0 = 0 ;
8edf1c75 25720 PyObject * obj1 = 0 ;
d14a1e28
RD
25721 char *kwnames[] = {
25722 (char *) "self",(char *) "lines", NULL
25723 };
25724
8edf1c75 25725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollLines",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 25726 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
25727 {
25728 arg2 = (int) SWIG_PyObj_AsInt(obj1);
25729 if (PyErr_Occurred()) SWIG_fail;
25730 }
d14a1e28
RD
25731 {
25732 PyThreadState* __tstate = wxPyBeginAllowThreads();
25733 result = (bool)(arg1)->ScrollLines(arg2);
25734
25735 wxPyEndAllowThreads(__tstate);
25736 if (PyErr_Occurred()) SWIG_fail;
25737 }
4e760a36 25738 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
25739 return resultobj;
25740 fail:
25741 return NULL;
25742}
25743
25744
25745static PyObject *_wrap_Window_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) {
25746 PyObject *resultobj;
25747 wxWindow *arg1 = (wxWindow *) 0 ;
25748 int arg2 ;
25749 bool result;
25750 PyObject * obj0 = 0 ;
8edf1c75 25751 PyObject * obj1 = 0 ;
d14a1e28
RD
25752 char *kwnames[] = {
25753 (char *) "self",(char *) "pages", NULL
25754 };
25755
8edf1c75 25756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollPages",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 25757 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
25758 {
25759 arg2 = (int) SWIG_PyObj_AsInt(obj1);
25760 if (PyErr_Occurred()) SWIG_fail;
25761 }
d14a1e28
RD
25762 {
25763 PyThreadState* __tstate = wxPyBeginAllowThreads();
25764 result = (bool)(arg1)->ScrollPages(arg2);
25765
25766 wxPyEndAllowThreads(__tstate);
25767 if (PyErr_Occurred()) SWIG_fail;
25768 }
4e760a36 25769 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
25770 return resultobj;
25771 fail:
25772 return NULL;
25773}
25774
25775
25776static PyObject *_wrap_Window_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) {
25777 PyObject *resultobj;
25778 wxWindow *arg1 = (wxWindow *) 0 ;
25779 bool result;
25780 PyObject * obj0 = 0 ;
25781 char *kwnames[] = {
25782 (char *) "self", NULL
25783 };
25784
25785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineUp",kwnames,&obj0)) goto fail;
25786 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25787 {
25788 PyThreadState* __tstate = wxPyBeginAllowThreads();
25789 result = (bool)(arg1)->LineUp();
25790
25791 wxPyEndAllowThreads(__tstate);
25792 if (PyErr_Occurred()) SWIG_fail;
25793 }
4e760a36 25794 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
25795 return resultobj;
25796 fail:
25797 return NULL;
25798}
25799
25800
25801static PyObject *_wrap_Window_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) {
25802 PyObject *resultobj;
25803 wxWindow *arg1 = (wxWindow *) 0 ;
25804 bool result;
25805 PyObject * obj0 = 0 ;
25806 char *kwnames[] = {
25807 (char *) "self", NULL
25808 };
25809
25810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineDown",kwnames,&obj0)) goto fail;
25811 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25812 {
25813 PyThreadState* __tstate = wxPyBeginAllowThreads();
25814 result = (bool)(arg1)->LineDown();
25815
25816 wxPyEndAllowThreads(__tstate);
25817 if (PyErr_Occurred()) SWIG_fail;
25818 }
4e760a36 25819 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
25820 return resultobj;
25821 fail:
25822 return NULL;
25823}
25824
25825
25826static PyObject *_wrap_Window_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) {
25827 PyObject *resultobj;
25828 wxWindow *arg1 = (wxWindow *) 0 ;
25829 bool result;
25830 PyObject * obj0 = 0 ;
25831 char *kwnames[] = {
25832 (char *) "self", NULL
25833 };
25834
25835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageUp",kwnames,&obj0)) goto fail;
25836 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25837 {
25838 PyThreadState* __tstate = wxPyBeginAllowThreads();
25839 result = (bool)(arg1)->PageUp();
25840
25841 wxPyEndAllowThreads(__tstate);
25842 if (PyErr_Occurred()) SWIG_fail;
25843 }
4e760a36 25844 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
25845 return resultobj;
25846 fail:
25847 return NULL;
25848}
25849
25850
25851static PyObject *_wrap_Window_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) {
25852 PyObject *resultobj;
25853 wxWindow *arg1 = (wxWindow *) 0 ;
25854 bool result;
25855 PyObject * obj0 = 0 ;
25856 char *kwnames[] = {
25857 (char *) "self", NULL
25858 };
25859
25860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageDown",kwnames,&obj0)) goto fail;
25861 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25862 {
25863 PyThreadState* __tstate = wxPyBeginAllowThreads();
25864 result = (bool)(arg1)->PageDown();
25865
25866 wxPyEndAllowThreads(__tstate);
25867 if (PyErr_Occurred()) SWIG_fail;
25868 }
4e760a36 25869 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
25870 return resultobj;
25871 fail:
25872 return NULL;
25873}
25874
25875
25876static PyObject *_wrap_Window_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) {
25877 PyObject *resultobj;
25878 wxWindow *arg1 = (wxWindow *) 0 ;
25879 wxString *arg2 = 0 ;
423f194a 25880 bool temp2 = False ;
d14a1e28
RD
25881 PyObject * obj0 = 0 ;
25882 PyObject * obj1 = 0 ;
25883 char *kwnames[] = {
25884 (char *) "self",(char *) "text", NULL
25885 };
25886
25887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) goto fail;
25888 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25889 {
25890 arg2 = wxString_in_helper(obj1);
25891 if (arg2 == NULL) SWIG_fail;
423f194a 25892 temp2 = True;
d14a1e28
RD
25893 }
25894 {
25895 PyThreadState* __tstate = wxPyBeginAllowThreads();
25896 (arg1)->SetHelpText((wxString const &)*arg2);
25897
25898 wxPyEndAllowThreads(__tstate);
25899 if (PyErr_Occurred()) SWIG_fail;
25900 }
25901 Py_INCREF(Py_None); resultobj = Py_None;
25902 {
25903 if (temp2)
25904 delete arg2;
25905 }
25906 return resultobj;
25907 fail:
25908 {
25909 if (temp2)
25910 delete arg2;
25911 }
25912 return NULL;
25913}
25914
25915
25916static PyObject *_wrap_Window_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) {
25917 PyObject *resultobj;
25918 wxWindow *arg1 = (wxWindow *) 0 ;
25919 wxString *arg2 = 0 ;
423f194a 25920 bool temp2 = False ;
d14a1e28
RD
25921 PyObject * obj0 = 0 ;
25922 PyObject * obj1 = 0 ;
25923 char *kwnames[] = {
25924 (char *) "self",(char *) "text", NULL
25925 };
25926
25927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) goto fail;
25928 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25929 {
25930 arg2 = wxString_in_helper(obj1);
25931 if (arg2 == NULL) SWIG_fail;
423f194a 25932 temp2 = True;
d14a1e28
RD
25933 }
25934 {
25935 PyThreadState* __tstate = wxPyBeginAllowThreads();
25936 (arg1)->SetHelpTextForId((wxString const &)*arg2);
25937
25938 wxPyEndAllowThreads(__tstate);
25939 if (PyErr_Occurred()) SWIG_fail;
25940 }
25941 Py_INCREF(Py_None); resultobj = Py_None;
25942 {
25943 if (temp2)
25944 delete arg2;
25945 }
25946 return resultobj;
25947 fail:
25948 {
25949 if (temp2)
25950 delete arg2;
25951 }
25952 return NULL;
25953}
25954
25955
25956static PyObject *_wrap_Window_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) {
25957 PyObject *resultobj;
25958 wxWindow *arg1 = (wxWindow *) 0 ;
25959 wxString result;
25960 PyObject * obj0 = 0 ;
25961 char *kwnames[] = {
25962 (char *) "self", NULL
25963 };
25964
25965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHelpText",kwnames,&obj0)) goto fail;
25966 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
25967 {
25968 PyThreadState* __tstate = wxPyBeginAllowThreads();
25969 result = ((wxWindow const *)arg1)->GetHelpText();
25970
25971 wxPyEndAllowThreads(__tstate);
25972 if (PyErr_Occurred()) SWIG_fail;
25973 }
25974 {
25975#if wxUSE_UNICODE
25976 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25977#else
25978 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25979#endif
25980 }
25981 return resultobj;
25982 fail:
25983 return NULL;
25984}
25985
25986
25987static PyObject *_wrap_Window_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) {
25988 PyObject *resultobj;
25989 wxWindow *arg1 = (wxWindow *) 0 ;
25990 wxString *arg2 = 0 ;
423f194a 25991 bool temp2 = False ;
d14a1e28
RD
25992 PyObject * obj0 = 0 ;
25993 PyObject * obj1 = 0 ;
25994 char *kwnames[] = {
25995 (char *) "self",(char *) "tip", NULL
25996 };
25997
25998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) goto fail;
25999 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26000 {
26001 arg2 = wxString_in_helper(obj1);
26002 if (arg2 == NULL) SWIG_fail;
423f194a 26003 temp2 = True;
d14a1e28
RD
26004 }
26005 {
26006 PyThreadState* __tstate = wxPyBeginAllowThreads();
26007 (arg1)->SetToolTip((wxString const &)*arg2);
26008
26009 wxPyEndAllowThreads(__tstate);
26010 if (PyErr_Occurred()) SWIG_fail;
26011 }
26012 Py_INCREF(Py_None); resultobj = Py_None;
26013 {
26014 if (temp2)
26015 delete arg2;
26016 }
26017 return resultobj;
26018 fail:
26019 {
26020 if (temp2)
26021 delete arg2;
26022 }
26023 return NULL;
26024}
26025
26026
26027static PyObject *_wrap_Window_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
26028 PyObject *resultobj;
26029 wxWindow *arg1 = (wxWindow *) 0 ;
26030 wxToolTip *arg2 = (wxToolTip *) 0 ;
26031 PyObject * obj0 = 0 ;
26032 PyObject * obj1 = 0 ;
26033 char *kwnames[] = {
26034 (char *) "self",(char *) "tip", NULL
26035 };
26036
26037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) goto fail;
26038 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26039 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxToolTip,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26040 {
26041 PyThreadState* __tstate = wxPyBeginAllowThreads();
26042 (arg1)->SetToolTip(arg2);
26043
26044 wxPyEndAllowThreads(__tstate);
26045 if (PyErr_Occurred()) SWIG_fail;
26046 }
26047 Py_INCREF(Py_None); resultobj = Py_None;
26048 return resultobj;
26049 fail:
26050 return NULL;
26051}
26052
26053
26054static PyObject *_wrap_Window_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
26055 PyObject *resultobj;
26056 wxWindow *arg1 = (wxWindow *) 0 ;
26057 wxToolTip *result;
26058 PyObject * obj0 = 0 ;
26059 char *kwnames[] = {
26060 (char *) "self", NULL
26061 };
26062
26063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetToolTip",kwnames,&obj0)) goto fail;
26064 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26065 {
26066 PyThreadState* __tstate = wxPyBeginAllowThreads();
26067 result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip();
26068
26069 wxPyEndAllowThreads(__tstate);
26070 if (PyErr_Occurred()) SWIG_fail;
26071 }
26072 {
26073 resultobj = wxPyMake_wxObject(result);
26074 }
26075 return resultobj;
26076 fail:
26077 return NULL;
26078}
26079
26080
26081static PyObject *_wrap_Window_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26082 PyObject *resultobj;
26083 wxWindow *arg1 = (wxWindow *) 0 ;
44127b65 26084 wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ;
d14a1e28
RD
26085 PyObject * obj0 = 0 ;
26086 PyObject * obj1 = 0 ;
26087 char *kwnames[] = {
26088 (char *) "self",(char *) "dropTarget", NULL
26089 };
26090
26091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) goto fail;
26092 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
58203fa6 26093 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPyDropTarget,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
d14a1e28
RD
26094 {
26095 PyThreadState* __tstate = wxPyBeginAllowThreads();
26096 (arg1)->SetDropTarget(arg2);
26097
26098 wxPyEndAllowThreads(__tstate);
26099 if (PyErr_Occurred()) SWIG_fail;
26100 }
26101 Py_INCREF(Py_None); resultobj = Py_None;
26102 return resultobj;
26103 fail:
26104 return NULL;
26105}
26106
26107
26108static PyObject *_wrap_Window_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26109 PyObject *resultobj;
26110 wxWindow *arg1 = (wxWindow *) 0 ;
44127b65 26111 wxPyDropTarget *result;
d14a1e28
RD
26112 PyObject * obj0 = 0 ;
26113 char *kwnames[] = {
26114 (char *) "self", NULL
26115 };
26116
26117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDropTarget",kwnames,&obj0)) goto fail;
26118 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26119 {
26120 PyThreadState* __tstate = wxPyBeginAllowThreads();
44127b65 26121 result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget();
d14a1e28
RD
26122
26123 wxPyEndAllowThreads(__tstate);
26124 if (PyErr_Occurred()) SWIG_fail;
26125 }
44127b65 26126 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyDropTarget, 0);
d14a1e28
RD
26127 return resultobj;
26128 fail:
26129 return NULL;
26130}
26131
26132
26133static PyObject *_wrap_Window_DragAcceptFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
26134 PyObject *resultobj;
26135 wxWindow *arg1 = (wxWindow *) 0 ;
26136 bool arg2 ;
26137 PyObject * obj0 = 0 ;
26138 PyObject * obj1 = 0 ;
26139 char *kwnames[] = {
26140 (char *) "self",(char *) "accept", NULL
26141 };
26142
26143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DragAcceptFiles",kwnames,&obj0,&obj1)) goto fail;
26144 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 26145 {
8edf1c75 26146 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
26147 if (PyErr_Occurred()) SWIG_fail;
26148 }
d14a1e28
RD
26149 {
26150 PyThreadState* __tstate = wxPyBeginAllowThreads();
26151 (arg1)->DragAcceptFiles(arg2);
26152
26153 wxPyEndAllowThreads(__tstate);
26154 if (PyErr_Occurred()) SWIG_fail;
26155 }
26156 Py_INCREF(Py_None); resultobj = Py_None;
26157 return resultobj;
26158 fail:
26159 return NULL;
26160}
26161
26162
26163static PyObject *_wrap_Window_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
26164 PyObject *resultobj;
26165 wxWindow *arg1 = (wxWindow *) 0 ;
26166 wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ;
26167 PyObject * obj0 = 0 ;
26168 PyObject * obj1 = 0 ;
26169 char *kwnames[] = {
26170 (char *) "self",(char *) "constraints", NULL
26171 };
26172
26173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) goto fail;
26174 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26175 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26176 {
26177 PyThreadState* __tstate = wxPyBeginAllowThreads();
26178 (arg1)->SetConstraints(arg2);
26179
26180 wxPyEndAllowThreads(__tstate);
26181 if (PyErr_Occurred()) SWIG_fail;
26182 }
26183 Py_INCREF(Py_None); resultobj = Py_None;
26184 return resultobj;
26185 fail:
26186 return NULL;
26187}
26188
26189
26190static PyObject *_wrap_Window_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
26191 PyObject *resultobj;
26192 wxWindow *arg1 = (wxWindow *) 0 ;
26193 wxLayoutConstraints *result;
26194 PyObject * obj0 = 0 ;
26195 char *kwnames[] = {
26196 (char *) "self", NULL
26197 };
26198
26199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetConstraints",kwnames,&obj0)) goto fail;
26200 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26201 {
26202 PyThreadState* __tstate = wxPyBeginAllowThreads();
26203 result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints();
26204
26205 wxPyEndAllowThreads(__tstate);
26206 if (PyErr_Occurred()) SWIG_fail;
26207 }
26208 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLayoutConstraints, 0);
26209 return resultobj;
26210 fail:
26211 return NULL;
26212}
26213
26214
26215static PyObject *_wrap_Window_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) {
26216 PyObject *resultobj;
26217 wxWindow *arg1 = (wxWindow *) 0 ;
26218 bool arg2 ;
26219 PyObject * obj0 = 0 ;
26220 PyObject * obj1 = 0 ;
26221 char *kwnames[] = {
26222 (char *) "self",(char *) "autoLayout", NULL
26223 };
26224
26225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) goto fail;
26226 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 26227 {
8edf1c75 26228 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
26229 if (PyErr_Occurred()) SWIG_fail;
26230 }
d14a1e28
RD
26231 {
26232 PyThreadState* __tstate = wxPyBeginAllowThreads();
26233 (arg1)->SetAutoLayout(arg2);
26234
26235 wxPyEndAllowThreads(__tstate);
26236 if (PyErr_Occurred()) SWIG_fail;
26237 }
26238 Py_INCREF(Py_None); resultobj = Py_None;
26239 return resultobj;
26240 fail:
26241 return NULL;
26242}
26243
26244
26245static PyObject *_wrap_Window_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) {
26246 PyObject *resultobj;
26247 wxWindow *arg1 = (wxWindow *) 0 ;
26248 bool result;
26249 PyObject * obj0 = 0 ;
26250 char *kwnames[] = {
26251 (char *) "self", NULL
26252 };
26253
26254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAutoLayout",kwnames,&obj0)) goto fail;
26255 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26256 {
26257 PyThreadState* __tstate = wxPyBeginAllowThreads();
26258 result = (bool)((wxWindow const *)arg1)->GetAutoLayout();
26259
26260 wxPyEndAllowThreads(__tstate);
26261 if (PyErr_Occurred()) SWIG_fail;
26262 }
4e760a36 26263 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
26264 return resultobj;
26265 fail:
26266 return NULL;
26267}
26268
26269
26270static PyObject *_wrap_Window_Layout(PyObject *self, PyObject *args, PyObject *kwargs) {
26271 PyObject *resultobj;
26272 wxWindow *arg1 = (wxWindow *) 0 ;
26273 bool result;
26274 PyObject * obj0 = 0 ;
26275 char *kwnames[] = {
26276 (char *) "self", NULL
26277 };
26278
26279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Layout",kwnames,&obj0)) goto fail;
26280 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26281 {
26282 PyThreadState* __tstate = wxPyBeginAllowThreads();
26283 result = (bool)(arg1)->Layout();
26284
26285 wxPyEndAllowThreads(__tstate);
26286 if (PyErr_Occurred()) SWIG_fail;
26287 }
4e760a36 26288 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
26289 return resultobj;
26290 fail:
26291 return NULL;
26292}
26293
26294
26295static PyObject *_wrap_Window_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
26296 PyObject *resultobj;
26297 wxWindow *arg1 = (wxWindow *) 0 ;
26298 wxSizer *arg2 = (wxSizer *) 0 ;
423f194a 26299 bool arg3 = (bool) True ;
d14a1e28
RD
26300 PyObject * obj0 = 0 ;
26301 PyObject * obj1 = 0 ;
26302 PyObject * obj2 = 0 ;
26303 char *kwnames[] = {
26304 (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL
26305 };
26306
26307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) goto fail;
26308 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26309 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26310 if (obj2) {
83448d71 26311 {
8edf1c75 26312 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
83448d71
RD
26313 if (PyErr_Occurred()) SWIG_fail;
26314 }
d14a1e28
RD
26315 }
26316 {
26317 PyThreadState* __tstate = wxPyBeginAllowThreads();
26318 (arg1)->SetSizer(arg2,arg3);
26319
26320 wxPyEndAllowThreads(__tstate);
26321 if (PyErr_Occurred()) SWIG_fail;
26322 }
26323 Py_INCREF(Py_None); resultobj = Py_None;
26324 return resultobj;
26325 fail:
26326 return NULL;
26327}
26328
26329
26330static PyObject *_wrap_Window_SetSizerAndFit(PyObject *self, PyObject *args, PyObject *kwargs) {
26331 PyObject *resultobj;
26332 wxWindow *arg1 = (wxWindow *) 0 ;
26333 wxSizer *arg2 = (wxSizer *) 0 ;
423f194a 26334 bool arg3 = (bool) True ;
d14a1e28
RD
26335 PyObject * obj0 = 0 ;
26336 PyObject * obj1 = 0 ;
26337 PyObject * obj2 = 0 ;
26338 char *kwnames[] = {
26339 (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL
26340 };
26341
26342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) goto fail;
26343 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26344 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26345 if (obj2) {
83448d71 26346 {
8edf1c75 26347 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
83448d71
RD
26348 if (PyErr_Occurred()) SWIG_fail;
26349 }
d14a1e28
RD
26350 }
26351 {
26352 PyThreadState* __tstate = wxPyBeginAllowThreads();
26353 (arg1)->SetSizerAndFit(arg2,arg3);
26354
26355 wxPyEndAllowThreads(__tstate);
26356 if (PyErr_Occurred()) SWIG_fail;
26357 }
26358 Py_INCREF(Py_None); resultobj = Py_None;
26359 return resultobj;
26360 fail:
26361 return NULL;
26362}
26363
26364
26365static PyObject *_wrap_Window_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
26366 PyObject *resultobj;
26367 wxWindow *arg1 = (wxWindow *) 0 ;
26368 wxSizer *result;
26369 PyObject * obj0 = 0 ;
26370 char *kwnames[] = {
26371 (char *) "self", NULL
26372 };
26373
26374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizer",kwnames,&obj0)) goto fail;
26375 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26376 {
26377 PyThreadState* __tstate = wxPyBeginAllowThreads();
26378 result = (wxSizer *)((wxWindow const *)arg1)->GetSizer();
26379
26380 wxPyEndAllowThreads(__tstate);
26381 if (PyErr_Occurred()) SWIG_fail;
26382 }
26383 {
26384 resultobj = wxPyMake_wxSizer(result);
26385 }
26386 return resultobj;
26387 fail:
26388 return NULL;
26389}
26390
26391
26392static PyObject *_wrap_Window_SetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
26393 PyObject *resultobj;
26394 wxWindow *arg1 = (wxWindow *) 0 ;
26395 wxSizer *arg2 = (wxSizer *) 0 ;
26396 PyObject * obj0 = 0 ;
26397 PyObject * obj1 = 0 ;
26398 char *kwnames[] = {
26399 (char *) "self",(char *) "sizer", NULL
26400 };
26401
26402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) goto fail;
26403 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26404 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26405 {
26406 PyThreadState* __tstate = wxPyBeginAllowThreads();
26407 (arg1)->SetContainingSizer(arg2);
26408
26409 wxPyEndAllowThreads(__tstate);
26410 if (PyErr_Occurred()) SWIG_fail;
26411 }
26412 Py_INCREF(Py_None); resultobj = Py_None;
26413 return resultobj;
26414 fail:
26415 return NULL;
26416}
26417
26418
26419static PyObject *_wrap_Window_GetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
26420 PyObject *resultobj;
26421 wxWindow *arg1 = (wxWindow *) 0 ;
26422 wxSizer *result;
26423 PyObject * obj0 = 0 ;
26424 char *kwnames[] = {
26425 (char *) "self", NULL
26426 };
26427
26428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetContainingSizer",kwnames,&obj0)) goto fail;
26429 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26430 {
26431 PyThreadState* __tstate = wxPyBeginAllowThreads();
26432 result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer();
26433
26434 wxPyEndAllowThreads(__tstate);
26435 if (PyErr_Occurred()) SWIG_fail;
26436 }
26437 {
26438 resultobj = wxPyMake_wxSizer(result);
26439 }
26440 return resultobj;
26441 fail:
26442 return NULL;
26443}
26444
26445
26446static PyObject * Window_swigregister(PyObject *self, PyObject *args) {
26447 PyObject *obj;
26448 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26449 SWIG_TypeClientData(SWIGTYPE_p_wxWindow, obj);
26450 Py_INCREF(obj);
26451 return Py_BuildValue((char *)"");
26452}
26453static PyObject *_wrap_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) {
26454 PyObject *resultobj;
26455 long arg1 ;
26456 wxWindow *arg2 = (wxWindow *) NULL ;
26457 wxWindow *result;
8edf1c75 26458 PyObject * obj0 = 0 ;
d14a1e28
RD
26459 PyObject * obj1 = 0 ;
26460 char *kwnames[] = {
26461 (char *) "id",(char *) "parent", NULL
26462 };
26463
8edf1c75
RD
26464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowById",kwnames,&obj0,&obj1)) goto fail;
26465 {
26466 arg1 = (long) SWIG_PyObj_AsLong(obj0);
26467 if (PyErr_Occurred()) SWIG_fail;
26468 }
d14a1e28
RD
26469 if (obj1) {
26470 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26471 }
26472 {
26473 PyThreadState* __tstate = wxPyBeginAllowThreads();
26474 result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2);
26475
26476 wxPyEndAllowThreads(__tstate);
26477 if (PyErr_Occurred()) SWIG_fail;
26478 }
26479 {
26480 resultobj = wxPyMake_wxObject(result);
26481 }
26482 return resultobj;
26483 fail:
26484 return NULL;
26485}
26486
26487
26488static PyObject *_wrap_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) {
26489 PyObject *resultobj;
26490 wxString *arg1 = 0 ;
26491 wxWindow *arg2 = (wxWindow *) NULL ;
26492 wxWindow *result;
423f194a 26493 bool temp1 = False ;
d14a1e28
RD
26494 PyObject * obj0 = 0 ;
26495 PyObject * obj1 = 0 ;
26496 char *kwnames[] = {
26497 (char *) "name",(char *) "parent", NULL
26498 };
26499
26500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) goto fail;
26501 {
26502 arg1 = wxString_in_helper(obj0);
26503 if (arg1 == NULL) SWIG_fail;
423f194a 26504 temp1 = True;
d14a1e28
RD
26505 }
26506 if (obj1) {
26507 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26508 }
26509 {
26510 PyThreadState* __tstate = wxPyBeginAllowThreads();
26511 result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2);
26512
26513 wxPyEndAllowThreads(__tstate);
26514 if (PyErr_Occurred()) SWIG_fail;
26515 }
26516 {
26517 resultobj = wxPyMake_wxObject(result);
26518 }
26519 {
26520 if (temp1)
26521 delete arg1;
26522 }
26523 return resultobj;
26524 fail:
26525 {
26526 if (temp1)
26527 delete arg1;
26528 }
26529 return NULL;
26530}
26531
26532
26533static PyObject *_wrap_FindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
26534 PyObject *resultobj;
26535 wxString *arg1 = 0 ;
26536 wxWindow *arg2 = (wxWindow *) NULL ;
26537 wxWindow *result;
423f194a 26538 bool temp1 = False ;
d14a1e28
RD
26539 PyObject * obj0 = 0 ;
26540 PyObject * obj1 = 0 ;
26541 char *kwnames[] = {
26542 (char *) "label",(char *) "parent", NULL
26543 };
26544
26545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) goto fail;
26546 {
26547 arg1 = wxString_in_helper(obj0);
26548 if (arg1 == NULL) SWIG_fail;
423f194a 26549 temp1 = True;
d14a1e28
RD
26550 }
26551 if (obj1) {
26552 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26553 }
26554 {
26555 PyThreadState* __tstate = wxPyBeginAllowThreads();
26556 result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2);
26557
26558 wxPyEndAllowThreads(__tstate);
26559 if (PyErr_Occurred()) SWIG_fail;
26560 }
26561 {
26562 resultobj = wxPyMake_wxObject(result);
26563 }
26564 {
26565 if (temp1)
26566 delete arg1;
26567 }
26568 return resultobj;
26569 fail:
26570 {
26571 if (temp1)
26572 delete arg1;
26573 }
26574 return NULL;
26575}
26576
26577
26578static PyObject *_wrap_Window_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) {
26579 PyObject *resultobj;
26580 unsigned long arg1 ;
26581 wxWindow *result;
26582 PyObject * obj0 = 0 ;
26583 char *kwnames[] = {
26584 (char *) "hWnd", NULL
26585 };
26586
26587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FromHWND",kwnames,&obj0)) goto fail;
83448d71 26588 {
8edf1c75 26589 arg1 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj0);
83448d71
RD
26590 if (PyErr_Occurred()) SWIG_fail;
26591 }
d14a1e28
RD
26592 {
26593 PyThreadState* __tstate = wxPyBeginAllowThreads();
26594 result = (wxWindow *)wxWindow_FromHWND(arg1);
26595
26596 wxPyEndAllowThreads(__tstate);
26597 if (PyErr_Occurred()) SWIG_fail;
26598 }
26599 {
26600 resultobj = wxPyMake_wxObject(result);
26601 }
26602 return resultobj;
26603 fail:
26604 return NULL;
26605}
26606
26607
26608static PyObject *_wrap_new_Validator(PyObject *self, PyObject *args, PyObject *kwargs) {
26609 PyObject *resultobj;
26610 wxValidator *result;
26611 char *kwnames[] = {
26612 NULL
26613 };
26614
26615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Validator",kwnames)) goto fail;
26616 {
26617 PyThreadState* __tstate = wxPyBeginAllowThreads();
26618 result = (wxValidator *)new wxValidator();
26619
26620 wxPyEndAllowThreads(__tstate);
26621 if (PyErr_Occurred()) SWIG_fail;
26622 }
26623 {
26624 resultobj = wxPyMake_wxObject(result);
26625 }
26626 return resultobj;
26627 fail:
26628 return NULL;
26629}
26630
26631
26632static PyObject *_wrap_Validator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) {
26633 PyObject *resultobj;
26634 wxValidator *arg1 = (wxValidator *) 0 ;
26635 wxValidator *result;
26636 PyObject * obj0 = 0 ;
26637 char *kwnames[] = {
26638 (char *) "self", NULL
26639 };
26640
26641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_Clone",kwnames,&obj0)) goto fail;
26642 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26643 {
26644 PyThreadState* __tstate = wxPyBeginAllowThreads();
26645 result = (wxValidator *)(arg1)->Clone();
26646
26647 wxPyEndAllowThreads(__tstate);
26648 if (PyErr_Occurred()) SWIG_fail;
26649 }
26650 {
26651 resultobj = wxPyMake_wxObject(result);
26652 }
26653 return resultobj;
26654 fail:
26655 return NULL;
26656}
26657
26658
26659static PyObject *_wrap_Validator_Validate(PyObject *self, PyObject *args, PyObject *kwargs) {
26660 PyObject *resultobj;
26661 wxValidator *arg1 = (wxValidator *) 0 ;
26662 wxWindow *arg2 = (wxWindow *) 0 ;
26663 bool result;
26664 PyObject * obj0 = 0 ;
26665 PyObject * obj1 = 0 ;
26666 char *kwnames[] = {
26667 (char *) "self",(char *) "parent", NULL
26668 };
26669
26670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) goto fail;
26671 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26672 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26673 {
26674 PyThreadState* __tstate = wxPyBeginAllowThreads();
26675 result = (bool)(arg1)->Validate(arg2);
26676
26677 wxPyEndAllowThreads(__tstate);
26678 if (PyErr_Occurred()) SWIG_fail;
26679 }
4e760a36 26680 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
26681 return resultobj;
26682 fail:
26683 return NULL;
26684}
26685
26686
26687static PyObject *_wrap_Validator_TransferToWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
26688 PyObject *resultobj;
26689 wxValidator *arg1 = (wxValidator *) 0 ;
26690 bool result;
26691 PyObject * obj0 = 0 ;
26692 char *kwnames[] = {
26693 (char *) "self", NULL
26694 };
26695
26696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferToWindow",kwnames,&obj0)) goto fail;
26697 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26698 {
26699 PyThreadState* __tstate = wxPyBeginAllowThreads();
26700 result = (bool)(arg1)->TransferToWindow();
26701
26702 wxPyEndAllowThreads(__tstate);
26703 if (PyErr_Occurred()) SWIG_fail;
26704 }
4e760a36 26705 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
26706 return resultobj;
26707 fail:
26708 return NULL;
26709}
26710
26711
26712static PyObject *_wrap_Validator_TransferFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
26713 PyObject *resultobj;
26714 wxValidator *arg1 = (wxValidator *) 0 ;
26715 bool result;
26716 PyObject * obj0 = 0 ;
26717 char *kwnames[] = {
26718 (char *) "self", NULL
26719 };
26720
26721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferFromWindow",kwnames,&obj0)) goto fail;
26722 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26723 {
26724 PyThreadState* __tstate = wxPyBeginAllowThreads();
26725 result = (bool)(arg1)->TransferFromWindow();
26726
26727 wxPyEndAllowThreads(__tstate);
26728 if (PyErr_Occurred()) SWIG_fail;
26729 }
4e760a36 26730 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
26731 return resultobj;
26732 fail:
26733 return NULL;
26734}
26735
26736
26737static PyObject *_wrap_Validator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
26738 PyObject *resultobj;
26739 wxValidator *arg1 = (wxValidator *) 0 ;
26740 wxWindow *result;
26741 PyObject * obj0 = 0 ;
26742 char *kwnames[] = {
26743 (char *) "self", NULL
26744 };
26745
26746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_GetWindow",kwnames,&obj0)) goto fail;
26747 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26748 {
26749 PyThreadState* __tstate = wxPyBeginAllowThreads();
26750 result = (wxWindow *)(arg1)->GetWindow();
26751
26752 wxPyEndAllowThreads(__tstate);
26753 if (PyErr_Occurred()) SWIG_fail;
26754 }
26755 {
26756 resultobj = wxPyMake_wxObject(result);
26757 }
26758 return resultobj;
26759 fail:
26760 return NULL;
26761}
26762
26763
26764static PyObject *_wrap_Validator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
26765 PyObject *resultobj;
26766 wxValidator *arg1 = (wxValidator *) 0 ;
26767 wxWindow *arg2 = (wxWindow *) 0 ;
26768 PyObject * obj0 = 0 ;
26769 PyObject * obj1 = 0 ;
26770 char *kwnames[] = {
26771 (char *) "self",(char *) "window", NULL
26772 };
26773
26774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) goto fail;
26775 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26776 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26777 {
26778 PyThreadState* __tstate = wxPyBeginAllowThreads();
26779 (arg1)->SetWindow(arg2);
26780
26781 wxPyEndAllowThreads(__tstate);
26782 if (PyErr_Occurred()) SWIG_fail;
26783 }
26784 Py_INCREF(Py_None); resultobj = Py_None;
26785 return resultobj;
26786 fail:
26787 return NULL;
26788}
26789
26790
26791static PyObject *_wrap_Validator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) {
26792 PyObject *resultobj;
26793 bool result;
26794 char *kwnames[] = {
26795 NULL
26796 };
26797
26798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Validator_IsSilent",kwnames)) goto fail;
26799 {
26800 PyThreadState* __tstate = wxPyBeginAllowThreads();
26801 result = (bool)wxValidator::IsSilent();
26802
26803 wxPyEndAllowThreads(__tstate);
26804 if (PyErr_Occurred()) SWIG_fail;
26805 }
4e760a36 26806 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
26807 return resultobj;
26808 fail:
26809 return NULL;
26810}
26811
26812
26813static PyObject *_wrap_Validator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) {
26814 PyObject *resultobj;
423f194a 26815 int arg1 = (int) True ;
8edf1c75 26816 PyObject * obj0 = 0 ;
d14a1e28
RD
26817 char *kwnames[] = {
26818 (char *) "doIt", NULL
26819 };
26820
8edf1c75
RD
26821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Validator_SetBellOnError",kwnames,&obj0)) goto fail;
26822 if (obj0) {
26823 {
26824 arg1 = (int) SWIG_PyObj_AsInt(obj0);
26825 if (PyErr_Occurred()) SWIG_fail;
26826 }
26827 }
d14a1e28
RD
26828 {
26829 PyThreadState* __tstate = wxPyBeginAllowThreads();
26830 wxValidator::SetBellOnError(arg1);
26831
26832 wxPyEndAllowThreads(__tstate);
26833 if (PyErr_Occurred()) SWIG_fail;
26834 }
26835 Py_INCREF(Py_None); resultobj = Py_None;
26836 return resultobj;
26837 fail:
26838 return NULL;
26839}
26840
26841
26842static PyObject * Validator_swigregister(PyObject *self, PyObject *args) {
26843 PyObject *obj;
26844 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26845 SWIG_TypeClientData(SWIGTYPE_p_wxValidator, obj);
26846 Py_INCREF(obj);
26847 return Py_BuildValue((char *)"");
26848}
26849static PyObject *_wrap_new_PyValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
26850 PyObject *resultobj;
26851 wxPyValidator *result;
26852 char *kwnames[] = {
26853 NULL
26854 };
26855
26856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyValidator",kwnames)) goto fail;
26857 {
26858 PyThreadState* __tstate = wxPyBeginAllowThreads();
26859 result = (wxPyValidator *)new wxPyValidator();
26860
26861 wxPyEndAllowThreads(__tstate);
26862 if (PyErr_Occurred()) SWIG_fail;
26863 }
26864 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyValidator, 1);
26865 return resultobj;
26866 fail:
26867 return NULL;
26868}
26869
26870
26871static PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26872 PyObject *resultobj;
26873 wxPyValidator *arg1 = (wxPyValidator *) 0 ;
26874 PyObject *arg2 = (PyObject *) 0 ;
26875 PyObject *arg3 = (PyObject *) 0 ;
423f194a 26876 int arg4 = (int) True ;
d14a1e28
RD
26877 PyObject * obj0 = 0 ;
26878 PyObject * obj1 = 0 ;
26879 PyObject * obj2 = 0 ;
8edf1c75 26880 PyObject * obj3 = 0 ;
d14a1e28
RD
26881 char *kwnames[] = {
26882 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
26883 };
26884
8edf1c75 26885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28
RD
26886 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
26887 arg2 = obj1;
26888 arg3 = obj2;
8edf1c75
RD
26889 if (obj3) {
26890 {
26891 arg4 = (int) SWIG_PyObj_AsInt(obj3);
26892 if (PyErr_Occurred()) SWIG_fail;
26893 }
26894 }
d14a1e28
RD
26895 {
26896 PyThreadState* __tstate = wxPyBeginAllowThreads();
26897 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
26898
26899 wxPyEndAllowThreads(__tstate);
26900 if (PyErr_Occurred()) SWIG_fail;
26901 }
26902 Py_INCREF(Py_None); resultobj = Py_None;
26903 return resultobj;
26904 fail:
26905 return NULL;
26906}
26907
26908
26909static PyObject * PyValidator_swigregister(PyObject *self, PyObject *args) {
26910 PyObject *obj;
26911 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26912 SWIG_TypeClientData(SWIGTYPE_p_wxPyValidator, obj);
26913 Py_INCREF(obj);
26914 return Py_BuildValue((char *)"");
26915}
8edf1c75 26916static int _wrap_DefaultValidator_set(PyObject *) {
d14a1e28
RD
26917 PyErr_SetString(PyExc_TypeError,"Variable DefaultValidator is read-only.");
26918 return 1;
26919}
26920
26921
26922static PyObject *_wrap_DefaultValidator_get() {
26923 PyObject *pyobj;
26924
26925 pyobj = SWIG_NewPointerObj((void *) &wxDefaultValidator, SWIGTYPE_p_wxValidator, 0);
26926 return pyobj;
26927}
26928
26929
26930static PyObject *_wrap_new_Menu(PyObject *self, PyObject *args, PyObject *kwargs) {
26931 PyObject *resultobj;
26932 wxString const &arg1_defvalue = wxPyEmptyString ;
26933 wxString *arg1 = (wxString *) &arg1_defvalue ;
26934 long arg2 = (long) 0 ;
26935 wxMenu *result;
423f194a 26936 bool temp1 = False ;
d14a1e28 26937 PyObject * obj0 = 0 ;
8edf1c75 26938 PyObject * obj1 = 0 ;
d14a1e28
RD
26939 char *kwnames[] = {
26940 (char *) "title",(char *) "style", NULL
26941 };
26942
8edf1c75 26943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Menu",kwnames,&obj0,&obj1)) goto fail;
d14a1e28
RD
26944 if (obj0) {
26945 {
26946 arg1 = wxString_in_helper(obj0);
26947 if (arg1 == NULL) SWIG_fail;
423f194a 26948 temp1 = True;
d14a1e28
RD
26949 }
26950 }
8edf1c75
RD
26951 if (obj1) {
26952 {
26953 arg2 = (long) SWIG_PyObj_AsLong(obj1);
26954 if (PyErr_Occurred()) SWIG_fail;
26955 }
26956 }
d14a1e28
RD
26957 {
26958 PyThreadState* __tstate = wxPyBeginAllowThreads();
26959 result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2);
26960
26961 wxPyEndAllowThreads(__tstate);
26962 if (PyErr_Occurred()) SWIG_fail;
26963 }
26964 {
26965 resultobj = wxPyMake_wxObject(result);
26966 }
26967 {
26968 if (temp1)
26969 delete arg1;
26970 }
26971 return resultobj;
26972 fail:
26973 {
26974 if (temp1)
26975 delete arg1;
26976 }
26977 return NULL;
26978}
26979
26980
26981static PyObject *_wrap_Menu_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
26982 PyObject *resultobj;
26983 wxMenu *arg1 = (wxMenu *) 0 ;
26984 int arg2 ;
26985 wxString *arg3 = 0 ;
26986 wxString const &arg4_defvalue = wxPyEmptyString ;
26987 wxString *arg4 = (wxString *) &arg4_defvalue ;
26988 int arg5 = (int) wxITEM_NORMAL ;
83448d71 26989 wxMenuItem *result;
423f194a
RD
26990 bool temp3 = False ;
26991 bool temp4 = False ;
d14a1e28 26992 PyObject * obj0 = 0 ;
8edf1c75 26993 PyObject * obj1 = 0 ;
d14a1e28
RD
26994 PyObject * obj2 = 0 ;
26995 PyObject * obj3 = 0 ;
8edf1c75 26996 PyObject * obj4 = 0 ;
d14a1e28 26997 char *kwnames[] = {
f0983263 26998 (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL
d14a1e28
RD
26999 };
27000
8edf1c75 27001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d14a1e28 27002 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
27003 {
27004 arg2 = (int) SWIG_PyObj_AsInt(obj1);
27005 if (PyErr_Occurred()) SWIG_fail;
27006 }
d14a1e28
RD
27007 {
27008 arg3 = wxString_in_helper(obj2);
27009 if (arg3 == NULL) SWIG_fail;
423f194a 27010 temp3 = True;
d14a1e28
RD
27011 }
27012 if (obj3) {
27013 {
27014 arg4 = wxString_in_helper(obj3);
27015 if (arg4 == NULL) SWIG_fail;
423f194a 27016 temp4 = True;
d14a1e28
RD
27017 }
27018 }
8edf1c75
RD
27019 if (obj4) {
27020 {
27021 arg5 = (wxItemKind) SWIG_PyObj_AsInt(obj4);
27022 if (PyErr_Occurred()) SWIG_fail;
27023 }
27024 }
d14a1e28
RD
27025 {
27026 PyThreadState* __tstate = wxPyBeginAllowThreads();
83448d71 27027 result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5);
d14a1e28
RD
27028
27029 wxPyEndAllowThreads(__tstate);
27030 if (PyErr_Occurred()) SWIG_fail;
27031 }
83448d71
RD
27032 {
27033 resultobj = wxPyMake_wxObject(result);
27034 }
d14a1e28
RD
27035 {
27036 if (temp3)
27037 delete arg3;
27038 }
27039 {
27040 if (temp4)
27041 delete arg4;
27042 }
27043 return resultobj;
27044 fail:
27045 {
27046 if (temp3)
27047 delete arg3;
27048 }
27049 {
27050 if (temp4)
27051 delete arg4;
27052 }
27053 return NULL;
27054}
27055
27056
27057static PyObject *_wrap_Menu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
27058 PyObject *resultobj;
27059 wxMenu *arg1 = (wxMenu *) 0 ;
83448d71 27060 wxMenuItem *result;
d14a1e28
RD
27061 PyObject * obj0 = 0 ;
27062 char *kwnames[] = {
27063 (char *) "self", NULL
27064 };
27065
27066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_AppendSeparator",kwnames,&obj0)) goto fail;
27067 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27068 {
27069 PyThreadState* __tstate = wxPyBeginAllowThreads();
83448d71 27070 result = (wxMenuItem *)(arg1)->AppendSeparator();
d14a1e28
RD
27071
27072 wxPyEndAllowThreads(__tstate);
27073 if (PyErr_Occurred()) SWIG_fail;
27074 }
83448d71
RD
27075 {
27076 resultobj = wxPyMake_wxObject(result);
27077 }
d14a1e28
RD
27078 return resultobj;
27079 fail:
27080 return NULL;
27081}
27082
27083
27084static PyObject *_wrap_Menu_AppendCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) {
27085 PyObject *resultobj;
27086 wxMenu *arg1 = (wxMenu *) 0 ;
27087 int arg2 ;
27088 wxString *arg3 = 0 ;
27089 wxString const &arg4_defvalue = wxPyEmptyString ;
27090 wxString *arg4 = (wxString *) &arg4_defvalue ;
83448d71 27091 wxMenuItem *result;
423f194a
RD
27092 bool temp3 = False ;
27093 bool temp4 = False ;
d14a1e28 27094 PyObject * obj0 = 0 ;
8edf1c75 27095 PyObject * obj1 = 0 ;
d14a1e28
RD
27096 PyObject * obj2 = 0 ;
27097 PyObject * obj3 = 0 ;
27098 char *kwnames[] = {
f0983263 27099 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
d14a1e28
RD
27100 };
27101
8edf1c75 27102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28 27103 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
27104 {
27105 arg2 = (int) SWIG_PyObj_AsInt(obj1);
27106 if (PyErr_Occurred()) SWIG_fail;
27107 }
d14a1e28
RD
27108 {
27109 arg3 = wxString_in_helper(obj2);
27110 if (arg3 == NULL) SWIG_fail;
423f194a 27111 temp3 = True;
d14a1e28
RD
27112 }
27113 if (obj3) {
27114 {
27115 arg4 = wxString_in_helper(obj3);
27116 if (arg4 == NULL) SWIG_fail;
423f194a 27117 temp4 = True;
d14a1e28
RD
27118 }
27119 }
27120 {
27121 PyThreadState* __tstate = wxPyBeginAllowThreads();
83448d71 27122 result = (wxMenuItem *)(arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
d14a1e28
RD
27123
27124 wxPyEndAllowThreads(__tstate);
27125 if (PyErr_Occurred()) SWIG_fail;
27126 }
83448d71
RD
27127 {
27128 resultobj = wxPyMake_wxObject(result);
27129 }
d14a1e28
RD
27130 {
27131 if (temp3)
27132 delete arg3;
27133 }
27134 {
27135 if (temp4)
27136 delete arg4;
27137 }
27138 return resultobj;
27139 fail:
27140 {
27141 if (temp3)
27142 delete arg3;
27143 }
27144 {
27145 if (temp4)
27146 delete arg4;
27147 }
27148 return NULL;
27149}
27150
27151
27152static PyObject *_wrap_Menu_AppendRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) {
27153 PyObject *resultobj;
27154 wxMenu *arg1 = (wxMenu *) 0 ;
27155 int arg2 ;
27156 wxString *arg3 = 0 ;
27157 wxString const &arg4_defvalue = wxPyEmptyString ;
27158 wxString *arg4 = (wxString *) &arg4_defvalue ;
83448d71 27159 wxMenuItem *result;
423f194a
RD
27160 bool temp3 = False ;
27161 bool temp4 = False ;
d14a1e28 27162 PyObject * obj0 = 0 ;
8edf1c75 27163 PyObject * obj1 = 0 ;
d14a1e28
RD
27164 PyObject * obj2 = 0 ;
27165 PyObject * obj3 = 0 ;
27166 char *kwnames[] = {
f0983263 27167 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
d14a1e28
RD
27168 };
27169
8edf1c75 27170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28 27171 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
27172 {
27173 arg2 = (int) SWIG_PyObj_AsInt(obj1);
27174 if (PyErr_Occurred()) SWIG_fail;
27175 }
d14a1e28
RD
27176 {
27177 arg3 = wxString_in_helper(obj2);
27178 if (arg3 == NULL) SWIG_fail;
423f194a 27179 temp3 = True;
d14a1e28
RD
27180 }
27181 if (obj3) {
27182 {
27183 arg4 = wxString_in_helper(obj3);
27184 if (arg4 == NULL) SWIG_fail;
423f194a 27185 temp4 = True;
d14a1e28
RD
27186 }
27187 }
27188 {
27189 PyThreadState* __tstate = wxPyBeginAllowThreads();
83448d71 27190 result = (wxMenuItem *)(arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
d14a1e28
RD
27191
27192 wxPyEndAllowThreads(__tstate);
27193 if (PyErr_Occurred()) SWIG_fail;
27194 }
83448d71
RD
27195 {
27196 resultobj = wxPyMake_wxObject(result);
27197 }
d14a1e28
RD
27198 {
27199 if (temp3)
27200 delete arg3;
27201 }
27202 {
27203 if (temp4)
27204 delete arg4;
27205 }
27206 return resultobj;
27207 fail:
27208 {
27209 if (temp3)
27210 delete arg3;
27211 }
27212 {
27213 if (temp4)
27214 delete arg4;
27215 }
27216 return NULL;
27217}
27218
27219
27220static PyObject *_wrap_Menu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
27221 PyObject *resultobj;
27222 wxMenu *arg1 = (wxMenu *) 0 ;
27223 int arg2 ;
27224 wxString *arg3 = 0 ;
27225 wxMenu *arg4 = (wxMenu *) 0 ;
27226 wxString const &arg5_defvalue = wxPyEmptyString ;
27227 wxString *arg5 = (wxString *) &arg5_defvalue ;
83448d71 27228 wxMenuItem *result;
423f194a
RD
27229 bool temp3 = False ;
27230 bool temp5 = False ;
d14a1e28 27231 PyObject * obj0 = 0 ;
8edf1c75 27232 PyObject * obj1 = 0 ;
d14a1e28
RD
27233 PyObject * obj2 = 0 ;
27234 PyObject * obj3 = 0 ;
27235 PyObject * obj4 = 0 ;
27236 char *kwnames[] = {
f0983263 27237 (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL
d14a1e28
RD
27238 };
27239
8edf1c75 27240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_AppendMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d14a1e28 27241 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
27242 {
27243 arg2 = (int) SWIG_PyObj_AsInt(obj1);
27244 if (PyErr_Occurred()) SWIG_fail;
27245 }
d14a1e28
RD
27246 {
27247 arg3 = wxString_in_helper(obj2);
27248 if (arg3 == NULL) SWIG_fail;
423f194a 27249 temp3 = True;
d14a1e28
RD
27250 }
27251 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27252 if (obj4) {
27253 {
27254 arg5 = wxString_in_helper(obj4);
27255 if (arg5 == NULL) SWIG_fail;
423f194a 27256 temp5 = True;
d14a1e28
RD
27257 }
27258 }
27259 {
27260 PyThreadState* __tstate = wxPyBeginAllowThreads();
83448d71 27261 result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5);
d14a1e28
RD
27262
27263 wxPyEndAllowThreads(__tstate);
27264 if (PyErr_Occurred()) SWIG_fail;
27265 }
83448d71
RD
27266 {
27267 resultobj = wxPyMake_wxObject(result);
27268 }
d14a1e28
RD
27269 {
27270 if (temp3)
27271 delete arg3;
27272 }
27273 {
27274 if (temp5)
27275 delete arg5;
27276 }
27277 return resultobj;
27278 fail:
27279 {
27280 if (temp3)
27281 delete arg3;
27282 }
27283 {
27284 if (temp5)
27285 delete arg5;
27286 }
27287 return NULL;
27288}
27289
27290
27291static PyObject *_wrap_Menu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) {
27292 PyObject *resultobj;
27293 wxMenu *arg1 = (wxMenu *) 0 ;
27294 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
83448d71 27295 wxMenuItem *result;
d14a1e28
RD
27296 PyObject * obj0 = 0 ;
27297 PyObject * obj1 = 0 ;
27298 char *kwnames[] = {
27299 (char *) "self",(char *) "item", NULL
27300 };
27301
27302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) goto fail;
27303 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27304 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27305 {
27306 PyThreadState* __tstate = wxPyBeginAllowThreads();
83448d71 27307 result = (wxMenuItem *)(arg1)->Append(arg2);
d14a1e28
RD
27308
27309 wxPyEndAllowThreads(__tstate);
27310 if (PyErr_Occurred()) SWIG_fail;
27311 }
83448d71
RD
27312 {
27313 resultobj = wxPyMake_wxObject(result);
27314 }
d14a1e28
RD
27315 return resultobj;
27316 fail:
27317 return NULL;
27318}
27319
27320
27321static PyObject *_wrap_Menu_Break(PyObject *self, PyObject *args, PyObject *kwargs) {
27322 PyObject *resultobj;
27323 wxMenu *arg1 = (wxMenu *) 0 ;
27324 PyObject * obj0 = 0 ;
27325 char *kwnames[] = {
27326 (char *) "self", NULL
27327 };
27328
27329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Break",kwnames,&obj0)) goto fail;
27330 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27331 {
27332 PyThreadState* __tstate = wxPyBeginAllowThreads();
27333 (arg1)->Break();
27334
27335 wxPyEndAllowThreads(__tstate);
27336 if (PyErr_Occurred()) SWIG_fail;
27337 }
27338 Py_INCREF(Py_None); resultobj = Py_None;
27339 return resultobj;
27340 fail:
27341 return NULL;
27342}
27343
27344
27345static PyObject *_wrap_Menu_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
27346 PyObject *resultobj;
27347 wxMenu *arg1 = (wxMenu *) 0 ;
27348 size_t arg2 ;
27349 wxMenuItem *arg3 = (wxMenuItem *) 0 ;
83448d71 27350 wxMenuItem *result;
d14a1e28
RD
27351 PyObject * obj0 = 0 ;
27352 PyObject * obj1 = 0 ;
27353 PyObject * obj2 = 0 ;
27354 char *kwnames[] = {
27355 (char *) "self",(char *) "pos",(char *) "item", NULL
27356 };
27357
27358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
27359 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 27360 {
8edf1c75 27361 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
83448d71
RD
27362 if (PyErr_Occurred()) SWIG_fail;
27363 }
d14a1e28
RD
27364 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27365 {
27366 PyThreadState* __tstate = wxPyBeginAllowThreads();
83448d71 27367 result = (wxMenuItem *)(arg1)->Insert(arg2,arg3);
d14a1e28
RD
27368
27369 wxPyEndAllowThreads(__tstate);
27370 if (PyErr_Occurred()) SWIG_fail;
27371 }
83448d71
RD
27372 {
27373 resultobj = wxPyMake_wxObject(result);
27374 }
d14a1e28
RD
27375 return resultobj;
27376 fail:
27377 return NULL;
27378}
27379
27380
27381static PyObject *_wrap_Menu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
27382 PyObject *resultobj;
27383 wxMenu *arg1 = (wxMenu *) 0 ;
27384 size_t arg2 ;
27385 int arg3 ;
27386 wxString *arg4 = 0 ;
27387 wxString const &arg5_defvalue = wxPyEmptyString ;
27388 wxString *arg5 = (wxString *) &arg5_defvalue ;
27389 int arg6 = (int) wxITEM_NORMAL ;
83448d71 27390 wxMenuItem *result;
423f194a
RD
27391 bool temp4 = False ;
27392 bool temp5 = False ;
d14a1e28
RD
27393 PyObject * obj0 = 0 ;
27394 PyObject * obj1 = 0 ;
8edf1c75 27395 PyObject * obj2 = 0 ;
d14a1e28
RD
27396 PyObject * obj3 = 0 ;
27397 PyObject * obj4 = 0 ;
8edf1c75 27398 PyObject * obj5 = 0 ;
d14a1e28 27399 char *kwnames[] = {
f0983263 27400 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL
d14a1e28
RD
27401 };
27402
8edf1c75 27403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Menu_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
d14a1e28 27404 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 27405 {
8edf1c75
RD
27406 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
27407 if (PyErr_Occurred()) SWIG_fail;
27408 }
27409 {
27410 arg3 = (int) SWIG_PyObj_AsInt(obj2);
83448d71
RD
27411 if (PyErr_Occurred()) SWIG_fail;
27412 }
d14a1e28
RD
27413 {
27414 arg4 = wxString_in_helper(obj3);
27415 if (arg4 == NULL) SWIG_fail;
423f194a 27416 temp4 = True;
d14a1e28
RD
27417 }
27418 if (obj4) {
27419 {
27420 arg5 = wxString_in_helper(obj4);
27421 if (arg5 == NULL) SWIG_fail;
423f194a 27422 temp5 = True;
d14a1e28
RD
27423 }
27424 }
8edf1c75
RD
27425 if (obj5) {
27426 {
27427 arg6 = (wxItemKind) SWIG_PyObj_AsInt(obj5);
27428 if (PyErr_Occurred()) SWIG_fail;
27429 }
27430 }
d14a1e28
RD
27431 {
27432 PyThreadState* __tstate = wxPyBeginAllowThreads();
83448d71 27433 result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxItemKind )arg6);
d14a1e28
RD
27434
27435 wxPyEndAllowThreads(__tstate);
27436 if (PyErr_Occurred()) SWIG_fail;
27437 }
83448d71
RD
27438 {
27439 resultobj = wxPyMake_wxObject(result);
27440 }
d14a1e28
RD
27441 {
27442 if (temp4)
27443 delete arg4;
27444 }
27445 {
27446 if (temp5)
27447 delete arg5;
27448 }
27449 return resultobj;
27450 fail:
27451 {
27452 if (temp4)
27453 delete arg4;
27454 }
27455 {
27456 if (temp5)
27457 delete arg5;
27458 }
27459 return NULL;
27460}
27461
27462
27463static PyObject *_wrap_Menu_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
27464 PyObject *resultobj;
27465 wxMenu *arg1 = (wxMenu *) 0 ;
27466 size_t arg2 ;
83448d71 27467 wxMenuItem *result;
d14a1e28
RD
27468 PyObject * obj0 = 0 ;
27469 PyObject * obj1 = 0 ;
27470 char *kwnames[] = {
27471 (char *) "self",(char *) "pos", NULL
27472 };
27473
27474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) goto fail;
27475 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 27476 {
8edf1c75 27477 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
83448d71
RD
27478 if (PyErr_Occurred()) SWIG_fail;
27479 }
d14a1e28
RD
27480 {
27481 PyThreadState* __tstate = wxPyBeginAllowThreads();
83448d71 27482 result = (wxMenuItem *)(arg1)->InsertSeparator(arg2);
d14a1e28
RD
27483
27484 wxPyEndAllowThreads(__tstate);
27485 if (PyErr_Occurred()) SWIG_fail;
27486 }
83448d71
RD
27487 {
27488 resultobj = wxPyMake_wxObject(result);
27489 }
d14a1e28
RD
27490 return resultobj;
27491 fail:
27492 return NULL;
27493}
27494
27495
27496static PyObject *_wrap_Menu_InsertCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) {
27497 PyObject *resultobj;
27498 wxMenu *arg1 = (wxMenu *) 0 ;
27499 size_t arg2 ;
27500 int arg3 ;
27501 wxString *arg4 = 0 ;
27502 wxString const &arg5_defvalue = wxPyEmptyString ;
27503 wxString *arg5 = (wxString *) &arg5_defvalue ;
83448d71 27504 wxMenuItem *result;
423f194a
RD
27505 bool temp4 = False ;
27506 bool temp5 = False ;
d14a1e28
RD
27507 PyObject * obj0 = 0 ;
27508 PyObject * obj1 = 0 ;
8edf1c75 27509 PyObject * obj2 = 0 ;
d14a1e28
RD
27510 PyObject * obj3 = 0 ;
27511 PyObject * obj4 = 0 ;
27512 char *kwnames[] = {
f0983263 27513 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL
d14a1e28
RD
27514 };
27515
8edf1c75 27516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d14a1e28 27517 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 27518 {
8edf1c75
RD
27519 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
27520 if (PyErr_Occurred()) SWIG_fail;
27521 }
27522 {
27523 arg3 = (int) SWIG_PyObj_AsInt(obj2);
83448d71
RD
27524 if (PyErr_Occurred()) SWIG_fail;
27525 }
d14a1e28
RD
27526 {
27527 arg4 = wxString_in_helper(obj3);
27528 if (arg4 == NULL) SWIG_fail;
423f194a 27529 temp4 = True;
d14a1e28
RD
27530 }
27531 if (obj4) {
27532 {
27533 arg5 = wxString_in_helper(obj4);
27534 if (arg5 == NULL) SWIG_fail;
423f194a 27535 temp5 = True;
d14a1e28
RD
27536 }
27537 }
27538 {
27539 PyThreadState* __tstate = wxPyBeginAllowThreads();
83448d71 27540 result = (wxMenuItem *)(arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5);
d14a1e28
RD
27541
27542 wxPyEndAllowThreads(__tstate);
27543 if (PyErr_Occurred()) SWIG_fail;
27544 }
83448d71
RD
27545 {
27546 resultobj = wxPyMake_wxObject(result);
27547 }
d14a1e28
RD
27548 {
27549 if (temp4)
27550 delete arg4;
27551 }
27552 {
27553 if (temp5)
27554 delete arg5;
27555 }
27556 return resultobj;
27557 fail:
27558 {
27559 if (temp4)
27560 delete arg4;
27561 }
27562 {
27563 if (temp5)
27564 delete arg5;
27565 }
27566 return NULL;
27567}
27568
27569
27570static PyObject *_wrap_Menu_InsertRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) {
27571 PyObject *resultobj;
27572 wxMenu *arg1 = (wxMenu *) 0 ;
27573 size_t arg2 ;
27574 int arg3 ;
27575 wxString *arg4 = 0 ;
27576 wxString const &arg5_defvalue = wxPyEmptyString ;
27577 wxString *arg5 = (wxString *) &arg5_defvalue ;
83448d71 27578 wxMenuItem *result;
423f194a
RD
27579 bool temp4 = False ;
27580 bool temp5 = False ;
d14a1e28
RD
27581 PyObject * obj0 = 0 ;
27582 PyObject * obj1 = 0 ;
8edf1c75 27583 PyObject * obj2 = 0 ;
d14a1e28
RD
27584 PyObject * obj3 = 0 ;
27585 PyObject * obj4 = 0 ;
27586 char *kwnames[] = {
f0983263 27587 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL
d14a1e28
RD
27588 };
27589
8edf1c75 27590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d14a1e28 27591 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 27592 {
8edf1c75
RD
27593 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
27594 if (PyErr_Occurred()) SWIG_fail;
27595 }
27596 {
27597 arg3 = (int) SWIG_PyObj_AsInt(obj2);
83448d71
RD
27598 if (PyErr_Occurred()) SWIG_fail;
27599 }
d14a1e28
RD
27600 {
27601 arg4 = wxString_in_helper(obj3);
27602 if (arg4 == NULL) SWIG_fail;
423f194a 27603 temp4 = True;
d14a1e28
RD
27604 }
27605 if (obj4) {
27606 {
27607 arg5 = wxString_in_helper(obj4);
27608 if (arg5 == NULL) SWIG_fail;
423f194a 27609 temp5 = True;
d14a1e28
RD
27610 }
27611 }
27612 {
27613 PyThreadState* __tstate = wxPyBeginAllowThreads();
83448d71 27614 result = (wxMenuItem *)(arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5);
d14a1e28
RD
27615
27616 wxPyEndAllowThreads(__tstate);
27617 if (PyErr_Occurred()) SWIG_fail;
27618 }
83448d71
RD
27619 {
27620 resultobj = wxPyMake_wxObject(result);
27621 }
d14a1e28
RD
27622 {
27623 if (temp4)
27624 delete arg4;
27625 }
27626 {
27627 if (temp5)
27628 delete arg5;
27629 }
27630 return resultobj;
27631 fail:
27632 {
27633 if (temp4)
27634 delete arg4;
27635 }
27636 {
27637 if (temp5)
27638 delete arg5;
27639 }
27640 return NULL;
27641}
27642
27643
27644static PyObject *_wrap_Menu_InsertMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
27645 PyObject *resultobj;
27646 wxMenu *arg1 = (wxMenu *) 0 ;
27647 size_t arg2 ;
27648 int arg3 ;
27649 wxString *arg4 = 0 ;
27650 wxMenu *arg5 = (wxMenu *) 0 ;
27651 wxString const &arg6_defvalue = wxPyEmptyString ;
27652 wxString *arg6 = (wxString *) &arg6_defvalue ;
83448d71 27653 wxMenuItem *result;
423f194a
RD
27654 bool temp4 = False ;
27655 bool temp6 = False ;
d14a1e28
RD
27656 PyObject * obj0 = 0 ;
27657 PyObject * obj1 = 0 ;
8edf1c75 27658 PyObject * obj2 = 0 ;
d14a1e28
RD
27659 PyObject * obj3 = 0 ;
27660 PyObject * obj4 = 0 ;
27661 PyObject * obj5 = 0 ;
27662 char *kwnames[] = {
f0983263 27663 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL
d14a1e28
RD
27664 };
27665
8edf1c75 27666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
d14a1e28 27667 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 27668 {
8edf1c75
RD
27669 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
27670 if (PyErr_Occurred()) SWIG_fail;
27671 }
27672 {
27673 arg3 = (int) SWIG_PyObj_AsInt(obj2);
83448d71
RD
27674 if (PyErr_Occurred()) SWIG_fail;
27675 }
d14a1e28
RD
27676 {
27677 arg4 = wxString_in_helper(obj3);
27678 if (arg4 == NULL) SWIG_fail;
423f194a 27679 temp4 = True;
d14a1e28
RD
27680 }
27681 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27682 if (obj5) {
27683 {
27684 arg6 = wxString_in_helper(obj5);
27685 if (arg6 == NULL) SWIG_fail;
423f194a 27686 temp6 = True;
d14a1e28
RD
27687 }
27688 }
27689 {
27690 PyThreadState* __tstate = wxPyBeginAllowThreads();
83448d71 27691 result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6);
d14a1e28
RD
27692
27693 wxPyEndAllowThreads(__tstate);
27694 if (PyErr_Occurred()) SWIG_fail;
27695 }
83448d71
RD
27696 {
27697 resultobj = wxPyMake_wxObject(result);
27698 }
d14a1e28
RD
27699 {
27700 if (temp4)
27701 delete arg4;
27702 }
27703 {
27704 if (temp6)
27705 delete arg6;
27706 }
27707 return resultobj;
27708 fail:
27709 {
27710 if (temp4)
27711 delete arg4;
27712 }
27713 {
27714 if (temp6)
27715 delete arg6;
27716 }
27717 return NULL;
27718}
27719
27720
27721static PyObject *_wrap_Menu_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) {
27722 PyObject *resultobj;
27723 wxMenu *arg1 = (wxMenu *) 0 ;
27724 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
83448d71 27725 wxMenuItem *result;
d14a1e28
RD
27726 PyObject * obj0 = 0 ;
27727 PyObject * obj1 = 0 ;
27728 char *kwnames[] = {
27729 (char *) "self",(char *) "item", NULL
27730 };
27731
27732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) goto fail;
27733 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27734 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27735 {
27736 PyThreadState* __tstate = wxPyBeginAllowThreads();
83448d71 27737 result = (wxMenuItem *)(arg1)->Prepend(arg2);
d14a1e28
RD
27738
27739 wxPyEndAllowThreads(__tstate);
27740 if (PyErr_Occurred()) SWIG_fail;
27741 }
83448d71
RD
27742 {
27743 resultobj = wxPyMake_wxObject(result);
27744 }
d14a1e28
RD
27745 return resultobj;
27746 fail:
27747 return NULL;
27748}
27749
27750
27751static PyObject *_wrap_Menu_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) {
27752 PyObject *resultobj;
27753 wxMenu *arg1 = (wxMenu *) 0 ;
27754 int arg2 ;
27755 wxString *arg3 = 0 ;
27756 wxString const &arg4_defvalue = wxPyEmptyString ;
27757 wxString *arg4 = (wxString *) &arg4_defvalue ;
27758 int arg5 = (int) wxITEM_NORMAL ;
83448d71 27759 wxMenuItem *result;
423f194a
RD
27760 bool temp3 = False ;
27761 bool temp4 = False ;
d14a1e28 27762 PyObject * obj0 = 0 ;
8edf1c75 27763 PyObject * obj1 = 0 ;
d14a1e28
RD
27764 PyObject * obj2 = 0 ;
27765 PyObject * obj3 = 0 ;
8edf1c75 27766 PyObject * obj4 = 0 ;
d14a1e28 27767 char *kwnames[] = {
f0983263 27768 (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL
d14a1e28
RD
27769 };
27770
8edf1c75 27771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d14a1e28 27772 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
27773 {
27774 arg2 = (int) SWIG_PyObj_AsInt(obj1);
27775 if (PyErr_Occurred()) SWIG_fail;
27776 }
d14a1e28
RD
27777 {
27778 arg3 = wxString_in_helper(obj2);
27779 if (arg3 == NULL) SWIG_fail;
423f194a 27780 temp3 = True;
d14a1e28
RD
27781 }
27782 if (obj3) {
27783 {
27784 arg4 = wxString_in_helper(obj3);
27785 if (arg4 == NULL) SWIG_fail;
423f194a 27786 temp4 = True;
d14a1e28
RD
27787 }
27788 }
8edf1c75
RD
27789 if (obj4) {
27790 {
27791 arg5 = (wxItemKind) SWIG_PyObj_AsInt(obj4);
27792 if (PyErr_Occurred()) SWIG_fail;
27793 }
27794 }
d14a1e28
RD
27795 {
27796 PyThreadState* __tstate = wxPyBeginAllowThreads();
83448d71 27797 result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5);
d14a1e28
RD
27798
27799 wxPyEndAllowThreads(__tstate);
27800 if (PyErr_Occurred()) SWIG_fail;
27801 }
83448d71
RD
27802 {
27803 resultobj = wxPyMake_wxObject(result);
27804 }
d14a1e28
RD
27805 {
27806 if (temp3)
27807 delete arg3;
27808 }
27809 {
27810 if (temp4)
27811 delete arg4;
27812 }
27813 return resultobj;
27814 fail:
27815 {
27816 if (temp3)
27817 delete arg3;
27818 }
27819 {
27820 if (temp4)
27821 delete arg4;
27822 }
27823 return NULL;
27824}
27825
27826
27827static PyObject *_wrap_Menu_PrependSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
27828 PyObject *resultobj;
27829 wxMenu *arg1 = (wxMenu *) 0 ;
83448d71 27830 wxMenuItem *result;
d14a1e28
RD
27831 PyObject * obj0 = 0 ;
27832 char *kwnames[] = {
27833 (char *) "self", NULL
27834 };
27835
27836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_PrependSeparator",kwnames,&obj0)) goto fail;
27837 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
27838 {
27839 PyThreadState* __tstate = wxPyBeginAllowThreads();
83448d71 27840 result = (wxMenuItem *)(arg1)->PrependSeparator();
d14a1e28
RD
27841
27842 wxPyEndAllowThreads(__tstate);
27843 if (PyErr_Occurred()) SWIG_fail;
27844 }
83448d71
RD
27845 {
27846 resultobj = wxPyMake_wxObject(result);
27847 }
d14a1e28
RD
27848 return resultobj;
27849 fail:
27850 return NULL;
27851}
27852
27853
27854static PyObject *_wrap_Menu_PrependCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) {
27855 PyObject *resultobj;
27856 wxMenu *arg1 = (wxMenu *) 0 ;
27857 int arg2 ;
27858 wxString *arg3 = 0 ;
27859 wxString const &arg4_defvalue = wxPyEmptyString ;
27860 wxString *arg4 = (wxString *) &arg4_defvalue ;
83448d71 27861 wxMenuItem *result;
423f194a
RD
27862 bool temp3 = False ;
27863 bool temp4 = False ;
d14a1e28 27864 PyObject * obj0 = 0 ;
8edf1c75 27865 PyObject * obj1 = 0 ;
d14a1e28
RD
27866 PyObject * obj2 = 0 ;
27867 PyObject * obj3 = 0 ;
27868 char *kwnames[] = {
f0983263 27869 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
d14a1e28
RD
27870 };
27871
8edf1c75 27872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28 27873 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
27874 {
27875 arg2 = (int) SWIG_PyObj_AsInt(obj1);
27876 if (PyErr_Occurred()) SWIG_fail;
27877 }
d14a1e28
RD
27878 {
27879 arg3 = wxString_in_helper(obj2);
27880 if (arg3 == NULL) SWIG_fail;
423f194a 27881 temp3 = True;
d14a1e28
RD
27882 }
27883 if (obj3) {
27884 {
27885 arg4 = wxString_in_helper(obj3);
27886 if (arg4 == NULL) SWIG_fail;
423f194a 27887 temp4 = True;
d14a1e28
RD
27888 }
27889 }
27890 {
27891 PyThreadState* __tstate = wxPyBeginAllowThreads();
83448d71 27892 result = (wxMenuItem *)(arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
d14a1e28
RD
27893
27894 wxPyEndAllowThreads(__tstate);
27895 if (PyErr_Occurred()) SWIG_fail;
27896 }
83448d71
RD
27897 {
27898 resultobj = wxPyMake_wxObject(result);
27899 }
d14a1e28
RD
27900 {
27901 if (temp3)
27902 delete arg3;
27903 }
27904 {
27905 if (temp4)
27906 delete arg4;
27907 }
27908 return resultobj;
27909 fail:
27910 {
27911 if (temp3)
27912 delete arg3;
27913 }
27914 {
27915 if (temp4)
27916 delete arg4;
27917 }
27918 return NULL;
27919}
27920
27921
27922static PyObject *_wrap_Menu_PrependRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) {
27923 PyObject *resultobj;
27924 wxMenu *arg1 = (wxMenu *) 0 ;
27925 int arg2 ;
27926 wxString *arg3 = 0 ;
27927 wxString const &arg4_defvalue = wxPyEmptyString ;
27928 wxString *arg4 = (wxString *) &arg4_defvalue ;
83448d71 27929 wxMenuItem *result;
423f194a
RD
27930 bool temp3 = False ;
27931 bool temp4 = False ;
d14a1e28 27932 PyObject * obj0 = 0 ;
8edf1c75 27933 PyObject * obj1 = 0 ;
d14a1e28
RD
27934 PyObject * obj2 = 0 ;
27935 PyObject * obj3 = 0 ;
27936 char *kwnames[] = {
f0983263 27937 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
d14a1e28
RD
27938 };
27939
8edf1c75 27940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28 27941 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
27942 {
27943 arg2 = (int) SWIG_PyObj_AsInt(obj1);
27944 if (PyErr_Occurred()) SWIG_fail;
27945 }
d14a1e28
RD
27946 {
27947 arg3 = wxString_in_helper(obj2);
27948 if (arg3 == NULL) SWIG_fail;
423f194a 27949 temp3 = True;
d14a1e28
RD
27950 }
27951 if (obj3) {
27952 {
27953 arg4 = wxString_in_helper(obj3);
27954 if (arg4 == NULL) SWIG_fail;
423f194a 27955 temp4 = True;
d14a1e28
RD
27956 }
27957 }
27958 {
27959 PyThreadState* __tstate = wxPyBeginAllowThreads();
83448d71 27960 result = (wxMenuItem *)(arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
d14a1e28
RD
27961
27962 wxPyEndAllowThreads(__tstate);
27963 if (PyErr_Occurred()) SWIG_fail;
27964 }
83448d71
RD
27965 {
27966 resultobj = wxPyMake_wxObject(result);
27967 }
d14a1e28
RD
27968 {
27969 if (temp3)
27970 delete arg3;
27971 }
27972 {
27973 if (temp4)
27974 delete arg4;
27975 }
27976 return resultobj;
27977 fail:
27978 {
27979 if (temp3)
27980 delete arg3;
27981 }
27982 {
27983 if (temp4)
27984 delete arg4;
27985 }
27986 return NULL;
27987}
27988
27989
27990static PyObject *_wrap_Menu_PrependMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
27991 PyObject *resultobj;
27992 wxMenu *arg1 = (wxMenu *) 0 ;
27993 int arg2 ;
27994 wxString *arg3 = 0 ;
27995 wxMenu *arg4 = (wxMenu *) 0 ;
27996 wxString const &arg5_defvalue = wxPyEmptyString ;
27997 wxString *arg5 = (wxString *) &arg5_defvalue ;
83448d71 27998 wxMenuItem *result;
423f194a
RD
27999 bool temp3 = False ;
28000 bool temp5 = False ;
d14a1e28 28001 PyObject * obj0 = 0 ;
8edf1c75 28002 PyObject * obj1 = 0 ;
d14a1e28
RD
28003 PyObject * obj2 = 0 ;
28004 PyObject * obj3 = 0 ;
28005 PyObject * obj4 = 0 ;
28006 char *kwnames[] = {
f0983263 28007 (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL
d14a1e28
RD
28008 };
28009
8edf1c75 28010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_PrependMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d14a1e28 28011 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
28012 {
28013 arg2 = (int) SWIG_PyObj_AsInt(obj1);
28014 if (PyErr_Occurred()) SWIG_fail;
28015 }
d14a1e28
RD
28016 {
28017 arg3 = wxString_in_helper(obj2);
28018 if (arg3 == NULL) SWIG_fail;
423f194a 28019 temp3 = True;
d14a1e28
RD
28020 }
28021 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28022 if (obj4) {
28023 {
28024 arg5 = wxString_in_helper(obj4);
28025 if (arg5 == NULL) SWIG_fail;
423f194a 28026 temp5 = True;
d14a1e28
RD
28027 }
28028 }
28029 {
28030 PyThreadState* __tstate = wxPyBeginAllowThreads();
83448d71 28031 result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5);
d14a1e28
RD
28032
28033 wxPyEndAllowThreads(__tstate);
28034 if (PyErr_Occurred()) SWIG_fail;
28035 }
83448d71
RD
28036 {
28037 resultobj = wxPyMake_wxObject(result);
28038 }
d14a1e28
RD
28039 {
28040 if (temp3)
28041 delete arg3;
28042 }
28043 {
28044 if (temp5)
28045 delete arg5;
28046 }
28047 return resultobj;
28048 fail:
28049 {
28050 if (temp3)
28051 delete arg3;
28052 }
28053 {
28054 if (temp5)
28055 delete arg5;
28056 }
28057 return NULL;
28058}
28059
28060
28061static PyObject *_wrap_Menu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
28062 PyObject *resultobj;
28063 wxMenu *arg1 = (wxMenu *) 0 ;
28064 int arg2 ;
28065 wxMenuItem *result;
28066 PyObject * obj0 = 0 ;
8edf1c75 28067 PyObject * obj1 = 0 ;
d14a1e28 28068 char *kwnames[] = {
f0983263 28069 (char *) "self",(char *) "id", NULL
d14a1e28
RD
28070 };
28071
8edf1c75 28072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Remove",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 28073 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
28074 {
28075 arg2 = (int) SWIG_PyObj_AsInt(obj1);
28076 if (PyErr_Occurred()) SWIG_fail;
28077 }
d14a1e28
RD
28078 {
28079 PyThreadState* __tstate = wxPyBeginAllowThreads();
28080 result = (wxMenuItem *)(arg1)->Remove(arg2);
28081
28082 wxPyEndAllowThreads(__tstate);
28083 if (PyErr_Occurred()) SWIG_fail;
28084 }
28085 {
28086 resultobj = wxPyMake_wxObject(result);
28087 }
28088 return resultobj;
28089 fail:
28090 return NULL;
28091}
28092
28093
28094static PyObject *_wrap_Menu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) {
28095 PyObject *resultobj;
28096 wxMenu *arg1 = (wxMenu *) 0 ;
28097 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
28098 wxMenuItem *result;
28099 PyObject * obj0 = 0 ;
28100 PyObject * obj1 = 0 ;
28101 char *kwnames[] = {
28102 (char *) "self",(char *) "item", NULL
28103 };
28104
28105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) goto fail;
28106 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28107 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28108 {
28109 PyThreadState* __tstate = wxPyBeginAllowThreads();
28110 result = (wxMenuItem *)(arg1)->Remove(arg2);
28111
28112 wxPyEndAllowThreads(__tstate);
28113 if (PyErr_Occurred()) SWIG_fail;
28114 }
28115 {
28116 resultobj = wxPyMake_wxObject(result);
28117 }
28118 return resultobj;
28119 fail:
28120 return NULL;
28121}
28122
28123
28124static PyObject *_wrap_Menu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
28125 PyObject *resultobj;
28126 wxMenu *arg1 = (wxMenu *) 0 ;
28127 int arg2 ;
28128 bool result;
28129 PyObject * obj0 = 0 ;
8edf1c75 28130 PyObject * obj1 = 0 ;
d14a1e28 28131 char *kwnames[] = {
f0983263 28132 (char *) "self",(char *) "id", NULL
d14a1e28
RD
28133 };
28134
8edf1c75 28135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Delete",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 28136 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
28137 {
28138 arg2 = (int) SWIG_PyObj_AsInt(obj1);
28139 if (PyErr_Occurred()) SWIG_fail;
28140 }
d14a1e28
RD
28141 {
28142 PyThreadState* __tstate = wxPyBeginAllowThreads();
28143 result = (bool)(arg1)->Delete(arg2);
28144
28145 wxPyEndAllowThreads(__tstate);
28146 if (PyErr_Occurred()) SWIG_fail;
28147 }
4e760a36 28148 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
28149 return resultobj;
28150 fail:
28151 return NULL;
28152}
28153
28154
28155static PyObject *_wrap_Menu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) {
28156 PyObject *resultobj;
28157 wxMenu *arg1 = (wxMenu *) 0 ;
28158 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
28159 bool result;
28160 PyObject * obj0 = 0 ;
28161 PyObject * obj1 = 0 ;
28162 char *kwnames[] = {
28163 (char *) "self",(char *) "item", NULL
28164 };
28165
28166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) goto fail;
28167 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28168 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28169 {
28170 PyThreadState* __tstate = wxPyBeginAllowThreads();
28171 result = (bool)(arg1)->Delete(arg2);
28172
28173 wxPyEndAllowThreads(__tstate);
28174 if (PyErr_Occurred()) SWIG_fail;
28175 }
4e760a36 28176 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
28177 return resultobj;
28178 fail:
28179 return NULL;
28180}
28181
28182
28183static PyObject *_wrap_Menu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
28184 PyObject *resultobj;
28185 wxMenu *arg1 = (wxMenu *) 0 ;
28186 PyObject * obj0 = 0 ;
28187 char *kwnames[] = {
28188 (char *) "self", NULL
28189 };
28190
28191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Destroy",kwnames,&obj0)) goto fail;
28192 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28193 {
28194 PyThreadState* __tstate = wxPyBeginAllowThreads();
28195 wxMenu_Destroy(arg1);
28196
28197 wxPyEndAllowThreads(__tstate);
28198 if (PyErr_Occurred()) SWIG_fail;
28199 }
28200 Py_INCREF(Py_None); resultobj = Py_None;
28201 return resultobj;
28202 fail:
28203 return NULL;
28204}
28205
28206
28207static PyObject *_wrap_Menu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) {
28208 PyObject *resultobj;
28209 wxMenu *arg1 = (wxMenu *) 0 ;
28210 int arg2 ;
28211 bool result;
28212 PyObject * obj0 = 0 ;
8edf1c75 28213 PyObject * obj1 = 0 ;
d14a1e28 28214 char *kwnames[] = {
f0983263 28215 (char *) "self",(char *) "id", NULL
d14a1e28
RD
28216 };
28217
8edf1c75 28218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyId",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 28219 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
28220 {
28221 arg2 = (int) SWIG_PyObj_AsInt(obj1);
28222 if (PyErr_Occurred()) SWIG_fail;
28223 }
d14a1e28
RD
28224 {
28225 PyThreadState* __tstate = wxPyBeginAllowThreads();
28226 result = (bool)(arg1)->Destroy(arg2);
28227
28228 wxPyEndAllowThreads(__tstate);
28229 if (PyErr_Occurred()) SWIG_fail;
28230 }
4e760a36 28231 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
28232 return resultobj;
28233 fail:
28234 return NULL;
28235}
28236
28237
28238static PyObject *_wrap_Menu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) {
28239 PyObject *resultobj;
28240 wxMenu *arg1 = (wxMenu *) 0 ;
28241 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
28242 bool result;
28243 PyObject * obj0 = 0 ;
28244 PyObject * obj1 = 0 ;
28245 char *kwnames[] = {
28246 (char *) "self",(char *) "item", NULL
28247 };
28248
28249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) goto fail;
28250 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28251 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28252 {
28253 PyThreadState* __tstate = wxPyBeginAllowThreads();
28254 result = (bool)(arg1)->Destroy(arg2);
28255
28256 wxPyEndAllowThreads(__tstate);
28257 if (PyErr_Occurred()) SWIG_fail;
28258 }
4e760a36 28259 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
28260 return resultobj;
28261 fail:
28262 return NULL;
28263}
28264
28265
28266static PyObject *_wrap_Menu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
28267 PyObject *resultobj;
28268 wxMenu *arg1 = (wxMenu *) 0 ;
28269 size_t result;
28270 PyObject * obj0 = 0 ;
28271 char *kwnames[] = {
28272 (char *) "self", NULL
28273 };
28274
28275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItemCount",kwnames,&obj0)) goto fail;
28276 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28277 {
28278 PyThreadState* __tstate = wxPyBeginAllowThreads();
28279 result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount();
28280
28281 wxPyEndAllowThreads(__tstate);
28282 if (PyErr_Occurred()) SWIG_fail;
28283 }
8edf1c75 28284 resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result);
d14a1e28
RD
28285 return resultobj;
28286 fail:
28287 return NULL;
28288}
28289
28290
28291static PyObject *_wrap_Menu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) {
28292 PyObject *resultobj;
28293 wxMenu *arg1 = (wxMenu *) 0 ;
28294 PyObject *result;
28295 PyObject * obj0 = 0 ;
28296 char *kwnames[] = {
28297 (char *) "self", NULL
28298 };
28299
28300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItems",kwnames,&obj0)) goto fail;
28301 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28302 {
28303 PyThreadState* __tstate = wxPyBeginAllowThreads();
28304 result = (PyObject *)wxMenu_GetMenuItems(arg1);
28305
28306 wxPyEndAllowThreads(__tstate);
28307 if (PyErr_Occurred()) SWIG_fail;
28308 }
28309 resultobj = result;
28310 return resultobj;
28311 fail:
28312 return NULL;
28313}
28314
28315
28316static PyObject *_wrap_Menu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) {
28317 PyObject *resultobj;
28318 wxMenu *arg1 = (wxMenu *) 0 ;
28319 wxString *arg2 = 0 ;
28320 int result;
423f194a 28321 bool temp2 = False ;
d14a1e28
RD
28322 PyObject * obj0 = 0 ;
28323 PyObject * obj1 = 0 ;
28324 char *kwnames[] = {
28325 (char *) "self",(char *) "item", NULL
28326 };
28327
28328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) goto fail;
28329 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28330 {
28331 arg2 = wxString_in_helper(obj1);
28332 if (arg2 == NULL) SWIG_fail;
423f194a 28333 temp2 = True;
d14a1e28
RD
28334 }
28335 {
28336 PyThreadState* __tstate = wxPyBeginAllowThreads();
28337 result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2);
28338
28339 wxPyEndAllowThreads(__tstate);
28340 if (PyErr_Occurred()) SWIG_fail;
28341 }
8edf1c75 28342 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
28343 {
28344 if (temp2)
28345 delete arg2;
28346 }
28347 return resultobj;
28348 fail:
28349 {
28350 if (temp2)
28351 delete arg2;
28352 }
28353 return NULL;
28354}
28355
28356
28357static PyObject *_wrap_Menu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) {
28358 PyObject *resultobj;
28359 wxMenu *arg1 = (wxMenu *) 0 ;
28360 int arg2 ;
28361 wxMenuItem *result;
28362 PyObject * obj0 = 0 ;
8edf1c75 28363 PyObject * obj1 = 0 ;
d14a1e28 28364 char *kwnames[] = {
f0983263 28365 (char *) "self",(char *) "id", NULL
d14a1e28
RD
28366 };
28367
8edf1c75 28368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemById",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 28369 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
28370 {
28371 arg2 = (int) SWIG_PyObj_AsInt(obj1);
28372 if (PyErr_Occurred()) SWIG_fail;
28373 }
d14a1e28
RD
28374 {
28375 PyThreadState* __tstate = wxPyBeginAllowThreads();
28376 result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2);
28377
28378 wxPyEndAllowThreads(__tstate);
28379 if (PyErr_Occurred()) SWIG_fail;
28380 }
28381 {
28382 resultobj = wxPyMake_wxObject(result);
28383 }
28384 return resultobj;
28385 fail:
28386 return NULL;
28387}
28388
28389
28390static PyObject *_wrap_Menu_FindItemByPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
28391 PyObject *resultobj;
28392 wxMenu *arg1 = (wxMenu *) 0 ;
28393 size_t arg2 ;
28394 wxMenuItem *result;
28395 PyObject * obj0 = 0 ;
28396 PyObject * obj1 = 0 ;
28397 char *kwnames[] = {
28398 (char *) "self",(char *) "position", NULL
28399 };
28400
28401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) goto fail;
28402 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 28403 {
8edf1c75 28404 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
83448d71
RD
28405 if (PyErr_Occurred()) SWIG_fail;
28406 }
d14a1e28
RD
28407 {
28408 PyThreadState* __tstate = wxPyBeginAllowThreads();
28409 result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2);
28410
28411 wxPyEndAllowThreads(__tstate);
28412 if (PyErr_Occurred()) SWIG_fail;
28413 }
28414 {
28415 resultobj = wxPyMake_wxObject(result);
28416 }
28417 return resultobj;
28418 fail:
28419 return NULL;
28420}
28421
28422
28423static PyObject *_wrap_Menu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
28424 PyObject *resultobj;
28425 wxMenu *arg1 = (wxMenu *) 0 ;
28426 int arg2 ;
28427 bool arg3 ;
28428 PyObject * obj0 = 0 ;
8edf1c75 28429 PyObject * obj1 = 0 ;
d14a1e28
RD
28430 PyObject * obj2 = 0 ;
28431 char *kwnames[] = {
f0983263 28432 (char *) "self",(char *) "id",(char *) "enable", NULL
d14a1e28
RD
28433 };
28434
8edf1c75 28435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 28436 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 28437 {
8edf1c75
RD
28438 arg2 = (int) SWIG_PyObj_AsInt(obj1);
28439 if (PyErr_Occurred()) SWIG_fail;
28440 }
28441 {
28442 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
83448d71
RD
28443 if (PyErr_Occurred()) SWIG_fail;
28444 }
d14a1e28
RD
28445 {
28446 PyThreadState* __tstate = wxPyBeginAllowThreads();
28447 (arg1)->Enable(arg2,arg3);
28448
28449 wxPyEndAllowThreads(__tstate);
28450 if (PyErr_Occurred()) SWIG_fail;
28451 }
28452 Py_INCREF(Py_None); resultobj = Py_None;
28453 return resultobj;
28454 fail:
28455 return NULL;
28456}
28457
28458
28459static PyObject *_wrap_Menu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
28460 PyObject *resultobj;
28461 wxMenu *arg1 = (wxMenu *) 0 ;
28462 int arg2 ;
28463 bool result;
28464 PyObject * obj0 = 0 ;
8edf1c75 28465 PyObject * obj1 = 0 ;
d14a1e28 28466 char *kwnames[] = {
f0983263 28467 (char *) "self",(char *) "id", NULL
d14a1e28
RD
28468 };
28469
8edf1c75 28470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsEnabled",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 28471 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
28472 {
28473 arg2 = (int) SWIG_PyObj_AsInt(obj1);
28474 if (PyErr_Occurred()) SWIG_fail;
28475 }
d14a1e28
RD
28476 {
28477 PyThreadState* __tstate = wxPyBeginAllowThreads();
28478 result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2);
28479
28480 wxPyEndAllowThreads(__tstate);
28481 if (PyErr_Occurred()) SWIG_fail;
28482 }
4e760a36 28483 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
28484 return resultobj;
28485 fail:
28486 return NULL;
28487}
28488
28489
28490static PyObject *_wrap_Menu_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
28491 PyObject *resultobj;
28492 wxMenu *arg1 = (wxMenu *) 0 ;
28493 int arg2 ;
28494 bool arg3 ;
28495 PyObject * obj0 = 0 ;
8edf1c75 28496 PyObject * obj1 = 0 ;
d14a1e28
RD
28497 PyObject * obj2 = 0 ;
28498 char *kwnames[] = {
f0983263 28499 (char *) "self",(char *) "id",(char *) "check", NULL
d14a1e28
RD
28500 };
28501
8edf1c75 28502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Check",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 28503 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 28504 {
8edf1c75
RD
28505 arg2 = (int) SWIG_PyObj_AsInt(obj1);
28506 if (PyErr_Occurred()) SWIG_fail;
28507 }
28508 {
28509 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
83448d71
RD
28510 if (PyErr_Occurred()) SWIG_fail;
28511 }
d14a1e28
RD
28512 {
28513 PyThreadState* __tstate = wxPyBeginAllowThreads();
28514 (arg1)->Check(arg2,arg3);
28515
28516 wxPyEndAllowThreads(__tstate);
28517 if (PyErr_Occurred()) SWIG_fail;
28518 }
28519 Py_INCREF(Py_None); resultobj = Py_None;
28520 return resultobj;
28521 fail:
28522 return NULL;
28523}
28524
28525
28526static PyObject *_wrap_Menu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
28527 PyObject *resultobj;
28528 wxMenu *arg1 = (wxMenu *) 0 ;
28529 int arg2 ;
28530 bool result;
28531 PyObject * obj0 = 0 ;
8edf1c75 28532 PyObject * obj1 = 0 ;
d14a1e28 28533 char *kwnames[] = {
f0983263 28534 (char *) "self",(char *) "id", NULL
d14a1e28
RD
28535 };
28536
8edf1c75 28537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsChecked",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 28538 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
28539 {
28540 arg2 = (int) SWIG_PyObj_AsInt(obj1);
28541 if (PyErr_Occurred()) SWIG_fail;
28542 }
d14a1e28
RD
28543 {
28544 PyThreadState* __tstate = wxPyBeginAllowThreads();
28545 result = (bool)((wxMenu const *)arg1)->IsChecked(arg2);
28546
28547 wxPyEndAllowThreads(__tstate);
28548 if (PyErr_Occurred()) SWIG_fail;
28549 }
4e760a36 28550 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
28551 return resultobj;
28552 fail:
28553 return NULL;
28554}
28555
28556
28557static PyObject *_wrap_Menu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
28558 PyObject *resultobj;
28559 wxMenu *arg1 = (wxMenu *) 0 ;
28560 int arg2 ;
28561 wxString *arg3 = 0 ;
423f194a 28562 bool temp3 = False ;
d14a1e28 28563 PyObject * obj0 = 0 ;
8edf1c75 28564 PyObject * obj1 = 0 ;
d14a1e28
RD
28565 PyObject * obj2 = 0 ;
28566 char *kwnames[] = {
f0983263 28567 (char *) "self",(char *) "id",(char *) "label", NULL
d14a1e28
RD
28568 };
28569
8edf1c75 28570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 28571 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
28572 {
28573 arg2 = (int) SWIG_PyObj_AsInt(obj1);
28574 if (PyErr_Occurred()) SWIG_fail;
28575 }
d14a1e28
RD
28576 {
28577 arg3 = wxString_in_helper(obj2);
28578 if (arg3 == NULL) SWIG_fail;
423f194a 28579 temp3 = True;
d14a1e28
RD
28580 }
28581 {
28582 PyThreadState* __tstate = wxPyBeginAllowThreads();
28583 (arg1)->SetLabel(arg2,(wxString const &)*arg3);
28584
28585 wxPyEndAllowThreads(__tstate);
28586 if (PyErr_Occurred()) SWIG_fail;
28587 }
28588 Py_INCREF(Py_None); resultobj = Py_None;
28589 {
28590 if (temp3)
28591 delete arg3;
28592 }
28593 return resultobj;
28594 fail:
28595 {
28596 if (temp3)
28597 delete arg3;
28598 }
28599 return NULL;
28600}
28601
28602
28603static PyObject *_wrap_Menu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
28604 PyObject *resultobj;
28605 wxMenu *arg1 = (wxMenu *) 0 ;
28606 int arg2 ;
28607 wxString result;
28608 PyObject * obj0 = 0 ;
8edf1c75 28609 PyObject * obj1 = 0 ;
d14a1e28 28610 char *kwnames[] = {
f0983263 28611 (char *) "self",(char *) "id", NULL
d14a1e28
RD
28612 };
28613
8edf1c75 28614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetLabel",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 28615 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
28616 {
28617 arg2 = (int) SWIG_PyObj_AsInt(obj1);
28618 if (PyErr_Occurred()) SWIG_fail;
28619 }
d14a1e28
RD
28620 {
28621 PyThreadState* __tstate = wxPyBeginAllowThreads();
28622 result = ((wxMenu const *)arg1)->GetLabel(arg2);
28623
28624 wxPyEndAllowThreads(__tstate);
28625 if (PyErr_Occurred()) SWIG_fail;
28626 }
28627 {
28628#if wxUSE_UNICODE
28629 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28630#else
28631 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28632#endif
28633 }
28634 return resultobj;
28635 fail:
28636 return NULL;
28637}
28638
28639
28640static PyObject *_wrap_Menu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
28641 PyObject *resultobj;
28642 wxMenu *arg1 = (wxMenu *) 0 ;
28643 int arg2 ;
28644 wxString *arg3 = 0 ;
423f194a 28645 bool temp3 = False ;
d14a1e28 28646 PyObject * obj0 = 0 ;
8edf1c75 28647 PyObject * obj1 = 0 ;
d14a1e28
RD
28648 PyObject * obj2 = 0 ;
28649 char *kwnames[] = {
f0983263 28650 (char *) "self",(char *) "id",(char *) "helpString", NULL
d14a1e28
RD
28651 };
28652
8edf1c75 28653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 28654 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
28655 {
28656 arg2 = (int) SWIG_PyObj_AsInt(obj1);
28657 if (PyErr_Occurred()) SWIG_fail;
28658 }
d14a1e28
RD
28659 {
28660 arg3 = wxString_in_helper(obj2);
28661 if (arg3 == NULL) SWIG_fail;
423f194a 28662 temp3 = True;
d14a1e28
RD
28663 }
28664 {
28665 PyThreadState* __tstate = wxPyBeginAllowThreads();
28666 (arg1)->SetHelpString(arg2,(wxString const &)*arg3);
28667
28668 wxPyEndAllowThreads(__tstate);
28669 if (PyErr_Occurred()) SWIG_fail;
28670 }
28671 Py_INCREF(Py_None); resultobj = Py_None;
28672 {
28673 if (temp3)
28674 delete arg3;
28675 }
28676 return resultobj;
28677 fail:
28678 {
28679 if (temp3)
28680 delete arg3;
28681 }
28682 return NULL;
28683}
28684
28685
28686static PyObject *_wrap_Menu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
28687 PyObject *resultobj;
28688 wxMenu *arg1 = (wxMenu *) 0 ;
28689 int arg2 ;
28690 wxString result;
28691 PyObject * obj0 = 0 ;
8edf1c75 28692 PyObject * obj1 = 0 ;
d14a1e28 28693 char *kwnames[] = {
f0983263 28694 (char *) "self",(char *) "id", NULL
d14a1e28
RD
28695 };
28696
8edf1c75 28697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetHelpString",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 28698 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
28699 {
28700 arg2 = (int) SWIG_PyObj_AsInt(obj1);
28701 if (PyErr_Occurred()) SWIG_fail;
28702 }
d14a1e28
RD
28703 {
28704 PyThreadState* __tstate = wxPyBeginAllowThreads();
28705 result = ((wxMenu const *)arg1)->GetHelpString(arg2);
28706
28707 wxPyEndAllowThreads(__tstate);
28708 if (PyErr_Occurred()) SWIG_fail;
28709 }
28710 {
28711#if wxUSE_UNICODE
28712 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28713#else
28714 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28715#endif
28716 }
28717 return resultobj;
28718 fail:
28719 return NULL;
28720}
28721
28722
28723static PyObject *_wrap_Menu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
28724 PyObject *resultobj;
28725 wxMenu *arg1 = (wxMenu *) 0 ;
28726 wxString *arg2 = 0 ;
423f194a 28727 bool temp2 = False ;
d14a1e28
RD
28728 PyObject * obj0 = 0 ;
28729 PyObject * obj1 = 0 ;
28730 char *kwnames[] = {
28731 (char *) "self",(char *) "title", NULL
28732 };
28733
28734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) goto fail;
28735 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28736 {
28737 arg2 = wxString_in_helper(obj1);
28738 if (arg2 == NULL) SWIG_fail;
423f194a 28739 temp2 = True;
d14a1e28
RD
28740 }
28741 {
28742 PyThreadState* __tstate = wxPyBeginAllowThreads();
28743 (arg1)->SetTitle((wxString const &)*arg2);
28744
28745 wxPyEndAllowThreads(__tstate);
28746 if (PyErr_Occurred()) SWIG_fail;
28747 }
28748 Py_INCREF(Py_None); resultobj = Py_None;
28749 {
28750 if (temp2)
28751 delete arg2;
28752 }
28753 return resultobj;
28754 fail:
28755 {
28756 if (temp2)
28757 delete arg2;
28758 }
28759 return NULL;
28760}
28761
28762
28763static PyObject *_wrap_Menu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
28764 PyObject *resultobj;
28765 wxMenu *arg1 = (wxMenu *) 0 ;
28766 wxString result;
28767 PyObject * obj0 = 0 ;
28768 char *kwnames[] = {
28769 (char *) "self", NULL
28770 };
28771
28772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetTitle",kwnames,&obj0)) goto fail;
28773 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28774 {
28775 PyThreadState* __tstate = wxPyBeginAllowThreads();
28776 result = ((wxMenu const *)arg1)->GetTitle();
28777
28778 wxPyEndAllowThreads(__tstate);
28779 if (PyErr_Occurred()) SWIG_fail;
28780 }
28781 {
28782#if wxUSE_UNICODE
28783 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28784#else
28785 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28786#endif
28787 }
28788 return resultobj;
28789 fail:
28790 return NULL;
28791}
28792
28793
28794static PyObject *_wrap_Menu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
28795 PyObject *resultobj;
28796 wxMenu *arg1 = (wxMenu *) 0 ;
28797 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
28798 PyObject * obj0 = 0 ;
28799 PyObject * obj1 = 0 ;
28800 char *kwnames[] = {
28801 (char *) "self",(char *) "handler", NULL
28802 };
28803
28804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) goto fail;
28805 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28806 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28807 {
28808 PyThreadState* __tstate = wxPyBeginAllowThreads();
28809 (arg1)->SetEventHandler(arg2);
28810
28811 wxPyEndAllowThreads(__tstate);
28812 if (PyErr_Occurred()) SWIG_fail;
28813 }
28814 Py_INCREF(Py_None); resultobj = Py_None;
28815 return resultobj;
28816 fail:
28817 return NULL;
28818}
28819
28820
28821static PyObject *_wrap_Menu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
28822 PyObject *resultobj;
28823 wxMenu *arg1 = (wxMenu *) 0 ;
28824 wxEvtHandler *result;
28825 PyObject * obj0 = 0 ;
28826 char *kwnames[] = {
28827 (char *) "self", NULL
28828 };
28829
28830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetEventHandler",kwnames,&obj0)) goto fail;
28831 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28832 {
28833 PyThreadState* __tstate = wxPyBeginAllowThreads();
28834 result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler();
28835
28836 wxPyEndAllowThreads(__tstate);
28837 if (PyErr_Occurred()) SWIG_fail;
28838 }
28839 {
28840 resultobj = wxPyMake_wxObject(result);
28841 }
28842 return resultobj;
28843 fail:
28844 return NULL;
28845}
28846
28847
28848static PyObject *_wrap_Menu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
28849 PyObject *resultobj;
28850 wxMenu *arg1 = (wxMenu *) 0 ;
28851 wxWindow *arg2 = (wxWindow *) 0 ;
28852 PyObject * obj0 = 0 ;
28853 PyObject * obj1 = 0 ;
28854 char *kwnames[] = {
28855 (char *) "self",(char *) "win", NULL
28856 };
28857
28858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) goto fail;
28859 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28860 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28861 {
28862 PyThreadState* __tstate = wxPyBeginAllowThreads();
28863 (arg1)->SetInvokingWindow(arg2);
28864
28865 wxPyEndAllowThreads(__tstate);
28866 if (PyErr_Occurred()) SWIG_fail;
28867 }
28868 Py_INCREF(Py_None); resultobj = Py_None;
28869 return resultobj;
28870 fail:
28871 return NULL;
28872}
28873
28874
28875static PyObject *_wrap_Menu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
28876 PyObject *resultobj;
28877 wxMenu *arg1 = (wxMenu *) 0 ;
28878 wxWindow *result;
28879 PyObject * obj0 = 0 ;
28880 char *kwnames[] = {
28881 (char *) "self", NULL
28882 };
28883
28884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetInvokingWindow",kwnames,&obj0)) goto fail;
28885 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28886 {
28887 PyThreadState* __tstate = wxPyBeginAllowThreads();
28888 result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow();
28889
28890 wxPyEndAllowThreads(__tstate);
28891 if (PyErr_Occurred()) SWIG_fail;
28892 }
28893 {
28894 resultobj = wxPyMake_wxObject(result);
28895 }
28896 return resultobj;
28897 fail:
28898 return NULL;
28899}
28900
28901
28902static PyObject *_wrap_Menu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
28903 PyObject *resultobj;
28904 wxMenu *arg1 = (wxMenu *) 0 ;
28905 long result;
28906 PyObject * obj0 = 0 ;
28907 char *kwnames[] = {
28908 (char *) "self", NULL
28909 };
28910
28911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetStyle",kwnames,&obj0)) goto fail;
28912 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28913 {
28914 PyThreadState* __tstate = wxPyBeginAllowThreads();
28915 result = (long)((wxMenu const *)arg1)->GetStyle();
28916
28917 wxPyEndAllowThreads(__tstate);
28918 if (PyErr_Occurred()) SWIG_fail;
28919 }
8edf1c75 28920 resultobj = SWIG_PyObj_FromLong((long)result);
d14a1e28
RD
28921 return resultobj;
28922 fail:
28923 return NULL;
28924}
28925
28926
28927static PyObject *_wrap_Menu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) {
28928 PyObject *resultobj;
28929 wxMenu *arg1 = (wxMenu *) 0 ;
28930 wxEvtHandler *arg2 = (wxEvtHandler *) NULL ;
28931 PyObject * obj0 = 0 ;
28932 PyObject * obj1 = 0 ;
28933 char *kwnames[] = {
28934 (char *) "self",(char *) "source", NULL
28935 };
28936
28937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) goto fail;
28938 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28939 if (obj1) {
28940 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxEvtHandler,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28941 }
28942 {
28943 PyThreadState* __tstate = wxPyBeginAllowThreads();
28944 (arg1)->UpdateUI(arg2);
28945
28946 wxPyEndAllowThreads(__tstate);
28947 if (PyErr_Occurred()) SWIG_fail;
28948 }
28949 Py_INCREF(Py_None); resultobj = Py_None;
28950 return resultobj;
28951 fail:
28952 return NULL;
28953}
28954
28955
28956static PyObject *_wrap_Menu_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) {
28957 PyObject *resultobj;
28958 wxMenu *arg1 = (wxMenu *) 0 ;
28959 wxMenuBar *result;
28960 PyObject * obj0 = 0 ;
28961 char *kwnames[] = {
28962 (char *) "self", NULL
28963 };
28964
28965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuBar",kwnames,&obj0)) goto fail;
28966 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28967 {
28968 PyThreadState* __tstate = wxPyBeginAllowThreads();
28969 result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar();
28970
28971 wxPyEndAllowThreads(__tstate);
28972 if (PyErr_Occurred()) SWIG_fail;
28973 }
28974 {
28975 resultobj = wxPyMake_wxObject(result);
28976 }
28977 return resultobj;
28978 fail:
28979 return NULL;
28980}
28981
28982
28983static PyObject *_wrap_Menu_Attach(PyObject *self, PyObject *args, PyObject *kwargs) {
28984 PyObject *resultobj;
28985 wxMenu *arg1 = (wxMenu *) 0 ;
28986 wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ;
28987 PyObject * obj0 = 0 ;
28988 PyObject * obj1 = 0 ;
28989 char *kwnames[] = {
28990 (char *) "self",(char *) "menubar", NULL
28991 };
28992
28993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) goto fail;
28994 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28995 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenuBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
28996 {
28997 PyThreadState* __tstate = wxPyBeginAllowThreads();
28998 (arg1)->Attach(arg2);
28999
29000 wxPyEndAllowThreads(__tstate);
29001 if (PyErr_Occurred()) SWIG_fail;
29002 }
29003 Py_INCREF(Py_None); resultobj = Py_None;
29004 return resultobj;
29005 fail:
29006 return NULL;
29007}
29008
29009
29010static PyObject *_wrap_Menu_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
29011 PyObject *resultobj;
29012 wxMenu *arg1 = (wxMenu *) 0 ;
29013 PyObject * obj0 = 0 ;
29014 char *kwnames[] = {
29015 (char *) "self", NULL
29016 };
29017
29018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Detach",kwnames,&obj0)) goto fail;
29019 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29020 {
29021 PyThreadState* __tstate = wxPyBeginAllowThreads();
29022 (arg1)->Detach();
29023
29024 wxPyEndAllowThreads(__tstate);
29025 if (PyErr_Occurred()) SWIG_fail;
29026 }
29027 Py_INCREF(Py_None); resultobj = Py_None;
29028 return resultobj;
29029 fail:
29030 return NULL;
29031}
29032
29033
29034static PyObject *_wrap_Menu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) {
29035 PyObject *resultobj;
29036 wxMenu *arg1 = (wxMenu *) 0 ;
29037 bool result;
29038 PyObject * obj0 = 0 ;
29039 char *kwnames[] = {
29040 (char *) "self", NULL
29041 };
29042
29043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_IsAttached",kwnames,&obj0)) goto fail;
29044 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29045 {
29046 PyThreadState* __tstate = wxPyBeginAllowThreads();
29047 result = (bool)((wxMenu const *)arg1)->IsAttached();
29048
29049 wxPyEndAllowThreads(__tstate);
29050 if (PyErr_Occurred()) SWIG_fail;
29051 }
4e760a36 29052 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
29053 return resultobj;
29054 fail:
29055 return NULL;
29056}
29057
29058
29059static PyObject *_wrap_Menu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
29060 PyObject *resultobj;
29061 wxMenu *arg1 = (wxMenu *) 0 ;
29062 wxMenu *arg2 = (wxMenu *) 0 ;
29063 PyObject * obj0 = 0 ;
29064 PyObject * obj1 = 0 ;
29065 char *kwnames[] = {
29066 (char *) "self",(char *) "parent", NULL
29067 };
29068
29069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) goto fail;
29070 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29071 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29072 {
29073 PyThreadState* __tstate = wxPyBeginAllowThreads();
29074 (arg1)->SetParent(arg2);
29075
29076 wxPyEndAllowThreads(__tstate);
29077 if (PyErr_Occurred()) SWIG_fail;
29078 }
29079 Py_INCREF(Py_None); resultobj = Py_None;
29080 return resultobj;
29081 fail:
29082 return NULL;
29083}
29084
29085
29086static PyObject *_wrap_Menu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
29087 PyObject *resultobj;
29088 wxMenu *arg1 = (wxMenu *) 0 ;
29089 wxMenu *result;
29090 PyObject * obj0 = 0 ;
29091 char *kwnames[] = {
29092 (char *) "self", NULL
29093 };
29094
29095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetParent",kwnames,&obj0)) goto fail;
29096 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29097 {
29098 PyThreadState* __tstate = wxPyBeginAllowThreads();
29099 result = (wxMenu *)((wxMenu const *)arg1)->GetParent();
29100
29101 wxPyEndAllowThreads(__tstate);
29102 if (PyErr_Occurred()) SWIG_fail;
29103 }
29104 {
29105 resultobj = wxPyMake_wxObject(result);
29106 }
29107 return resultobj;
29108 fail:
29109 return NULL;
29110}
29111
29112
29113static PyObject * Menu_swigregister(PyObject *self, PyObject *args) {
29114 PyObject *obj;
29115 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29116 SWIG_TypeClientData(SWIGTYPE_p_wxMenu, obj);
29117 Py_INCREF(obj);
29118 return Py_BuildValue((char *)"");
29119}
29120static PyObject *_wrap_new_MenuBar(PyObject *self, PyObject *args, PyObject *kwargs) {
29121 PyObject *resultobj;
29122 long arg1 = (long) 0 ;
29123 wxMenuBar *result;
8edf1c75 29124 PyObject * obj0 = 0 ;
d14a1e28
RD
29125 char *kwnames[] = {
29126 (char *) "style", NULL
29127 };
29128
8edf1c75
RD
29129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MenuBar",kwnames,&obj0)) goto fail;
29130 if (obj0) {
29131 {
29132 arg1 = (long) SWIG_PyObj_AsLong(obj0);
29133 if (PyErr_Occurred()) SWIG_fail;
29134 }
29135 }
d14a1e28
RD
29136 {
29137 PyThreadState* __tstate = wxPyBeginAllowThreads();
29138 result = (wxMenuBar *)new wxMenuBar(arg1);
29139
29140 wxPyEndAllowThreads(__tstate);
29141 if (PyErr_Occurred()) SWIG_fail;
29142 }
29143 {
29144 resultobj = wxPyMake_wxObject(result);
29145 }
29146 return resultobj;
29147 fail:
29148 return NULL;
29149}
29150
29151
29152static PyObject *_wrap_MenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
29153 PyObject *resultobj;
29154 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29155 wxMenu *arg2 = (wxMenu *) 0 ;
29156 wxString *arg3 = 0 ;
29157 bool result;
423f194a 29158 bool temp3 = False ;
d14a1e28
RD
29159 PyObject * obj0 = 0 ;
29160 PyObject * obj1 = 0 ;
29161 PyObject * obj2 = 0 ;
29162 char *kwnames[] = {
29163 (char *) "self",(char *) "menu",(char *) "title", NULL
29164 };
29165
29166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) goto fail;
29167 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29168 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29169 {
29170 arg3 = wxString_in_helper(obj2);
29171 if (arg3 == NULL) SWIG_fail;
423f194a 29172 temp3 = True;
d14a1e28
RD
29173 }
29174 {
29175 PyThreadState* __tstate = wxPyBeginAllowThreads();
29176 result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3);
29177
29178 wxPyEndAllowThreads(__tstate);
29179 if (PyErr_Occurred()) SWIG_fail;
29180 }
4e760a36 29181 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
29182 {
29183 if (temp3)
29184 delete arg3;
29185 }
29186 return resultobj;
29187 fail:
29188 {
29189 if (temp3)
29190 delete arg3;
29191 }
29192 return NULL;
29193}
29194
29195
29196static PyObject *_wrap_MenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
29197 PyObject *resultobj;
29198 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29199 size_t arg2 ;
29200 wxMenu *arg3 = (wxMenu *) 0 ;
29201 wxString *arg4 = 0 ;
29202 bool result;
423f194a 29203 bool temp4 = False ;
d14a1e28
RD
29204 PyObject * obj0 = 0 ;
29205 PyObject * obj1 = 0 ;
29206 PyObject * obj2 = 0 ;
29207 PyObject * obj3 = 0 ;
29208 char *kwnames[] = {
29209 (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL
29210 };
29211
29212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
29213 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 29214 {
8edf1c75 29215 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
83448d71
RD
29216 if (PyErr_Occurred()) SWIG_fail;
29217 }
d14a1e28
RD
29218 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29219 {
29220 arg4 = wxString_in_helper(obj3);
29221 if (arg4 == NULL) SWIG_fail;
423f194a 29222 temp4 = True;
d14a1e28
RD
29223 }
29224 {
29225 PyThreadState* __tstate = wxPyBeginAllowThreads();
29226 result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4);
29227
29228 wxPyEndAllowThreads(__tstate);
29229 if (PyErr_Occurred()) SWIG_fail;
29230 }
4e760a36 29231 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
29232 {
29233 if (temp4)
29234 delete arg4;
29235 }
29236 return resultobj;
29237 fail:
29238 {
29239 if (temp4)
29240 delete arg4;
29241 }
29242 return NULL;
29243}
29244
29245
29246static PyObject *_wrap_MenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) {
29247 PyObject *resultobj;
29248 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29249 size_t result;
29250 PyObject * obj0 = 0 ;
29251 char *kwnames[] = {
29252 (char *) "self", NULL
29253 };
29254
29255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetMenuCount",kwnames,&obj0)) goto fail;
29256 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29257 {
29258 PyThreadState* __tstate = wxPyBeginAllowThreads();
29259 result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount();
29260
29261 wxPyEndAllowThreads(__tstate);
29262 if (PyErr_Occurred()) SWIG_fail;
29263 }
8edf1c75 29264 resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result);
d14a1e28
RD
29265 return resultobj;
29266 fail:
29267 return NULL;
29268}
29269
29270
29271static PyObject *_wrap_MenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
29272 PyObject *resultobj;
29273 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29274 size_t arg2 ;
29275 wxMenu *result;
29276 PyObject * obj0 = 0 ;
29277 PyObject * obj1 = 0 ;
29278 char *kwnames[] = {
29279 (char *) "self",(char *) "pos", NULL
29280 };
29281
29282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) goto fail;
29283 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 29284 {
8edf1c75 29285 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
83448d71
RD
29286 if (PyErr_Occurred()) SWIG_fail;
29287 }
d14a1e28
RD
29288 {
29289 PyThreadState* __tstate = wxPyBeginAllowThreads();
29290 result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2);
29291
29292 wxPyEndAllowThreads(__tstate);
29293 if (PyErr_Occurred()) SWIG_fail;
29294 }
29295 {
29296 resultobj = wxPyMake_wxObject(result);
29297 }
29298 return resultobj;
29299 fail:
29300 return NULL;
29301}
29302
29303
29304static PyObject *_wrap_MenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
29305 PyObject *resultobj;
29306 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29307 size_t arg2 ;
29308 wxMenu *arg3 = (wxMenu *) 0 ;
29309 wxString *arg4 = 0 ;
29310 wxMenu *result;
423f194a 29311 bool temp4 = False ;
d14a1e28
RD
29312 PyObject * obj0 = 0 ;
29313 PyObject * obj1 = 0 ;
29314 PyObject * obj2 = 0 ;
29315 PyObject * obj3 = 0 ;
29316 char *kwnames[] = {
29317 (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL
29318 };
29319
29320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
29321 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 29322 {
8edf1c75 29323 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
83448d71
RD
29324 if (PyErr_Occurred()) SWIG_fail;
29325 }
d14a1e28
RD
29326 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29327 {
29328 arg4 = wxString_in_helper(obj3);
29329 if (arg4 == NULL) SWIG_fail;
423f194a 29330 temp4 = True;
d14a1e28
RD
29331 }
29332 {
29333 PyThreadState* __tstate = wxPyBeginAllowThreads();
29334 result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
29335
29336 wxPyEndAllowThreads(__tstate);
29337 if (PyErr_Occurred()) SWIG_fail;
29338 }
29339 {
29340 resultobj = wxPyMake_wxObject(result);
29341 }
29342 {
29343 if (temp4)
29344 delete arg4;
29345 }
29346 return resultobj;
29347 fail:
29348 {
29349 if (temp4)
29350 delete arg4;
29351 }
29352 return NULL;
29353}
29354
29355
29356static PyObject *_wrap_MenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
29357 PyObject *resultobj;
29358 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29359 size_t arg2 ;
29360 wxMenu *result;
29361 PyObject * obj0 = 0 ;
29362 PyObject * obj1 = 0 ;
29363 char *kwnames[] = {
29364 (char *) "self",(char *) "pos", NULL
29365 };
29366
29367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) goto fail;
29368 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 29369 {
8edf1c75 29370 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
83448d71
RD
29371 if (PyErr_Occurred()) SWIG_fail;
29372 }
d14a1e28
RD
29373 {
29374 PyThreadState* __tstate = wxPyBeginAllowThreads();
29375 result = (wxMenu *)(arg1)->Remove(arg2);
29376
29377 wxPyEndAllowThreads(__tstate);
29378 if (PyErr_Occurred()) SWIG_fail;
29379 }
29380 {
29381 resultobj = wxPyMake_wxObject(result);
29382 }
29383 return resultobj;
29384 fail:
29385 return NULL;
29386}
29387
29388
29389static PyObject *_wrap_MenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) {
29390 PyObject *resultobj;
29391 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29392 size_t arg2 ;
29393 bool arg3 ;
29394 PyObject * obj0 = 0 ;
29395 PyObject * obj1 = 0 ;
29396 PyObject * obj2 = 0 ;
29397 char *kwnames[] = {
29398 (char *) "self",(char *) "pos",(char *) "enable", NULL
29399 };
29400
29401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) goto fail;
29402 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 29403 {
8edf1c75 29404 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
83448d71
RD
29405 if (PyErr_Occurred()) SWIG_fail;
29406 }
29407 {
8edf1c75 29408 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
83448d71
RD
29409 if (PyErr_Occurred()) SWIG_fail;
29410 }
d14a1e28
RD
29411 {
29412 PyThreadState* __tstate = wxPyBeginAllowThreads();
29413 (arg1)->EnableTop(arg2,arg3);
29414
29415 wxPyEndAllowThreads(__tstate);
29416 if (PyErr_Occurred()) SWIG_fail;
29417 }
29418 Py_INCREF(Py_None); resultobj = Py_None;
29419 return resultobj;
29420 fail:
29421 return NULL;
29422}
29423
29424
29425static PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *self, PyObject *args, PyObject *kwargs) {
29426 PyObject *resultobj;
29427 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29428 size_t arg2 ;
29429 bool result;
29430 PyObject * obj0 = 0 ;
29431 PyObject * obj1 = 0 ;
29432 char *kwnames[] = {
29433 (char *) "self",(char *) "pos", NULL
29434 };
29435
29436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) goto fail;
29437 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 29438 {
8edf1c75 29439 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
83448d71
RD
29440 if (PyErr_Occurred()) SWIG_fail;
29441 }
d14a1e28
RD
29442 {
29443 PyThreadState* __tstate = wxPyBeginAllowThreads();
29444 result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2);
29445
29446 wxPyEndAllowThreads(__tstate);
29447 if (PyErr_Occurred()) SWIG_fail;
29448 }
4e760a36 29449 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
29450 return resultobj;
29451 fail:
29452 return NULL;
29453}
29454
29455
29456static PyObject *_wrap_MenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) {
29457 PyObject *resultobj;
29458 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29459 size_t arg2 ;
29460 wxString *arg3 = 0 ;
423f194a 29461 bool temp3 = False ;
d14a1e28
RD
29462 PyObject * obj0 = 0 ;
29463 PyObject * obj1 = 0 ;
29464 PyObject * obj2 = 0 ;
29465 char *kwnames[] = {
29466 (char *) "self",(char *) "pos",(char *) "label", NULL
29467 };
29468
29469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) goto fail;
29470 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 29471 {
8edf1c75 29472 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
83448d71
RD
29473 if (PyErr_Occurred()) SWIG_fail;
29474 }
d14a1e28
RD
29475 {
29476 arg3 = wxString_in_helper(obj2);
29477 if (arg3 == NULL) SWIG_fail;
423f194a 29478 temp3 = True;
d14a1e28
RD
29479 }
29480 {
29481 PyThreadState* __tstate = wxPyBeginAllowThreads();
29482 (arg1)->SetLabelTop(arg2,(wxString const &)*arg3);
29483
29484 wxPyEndAllowThreads(__tstate);
29485 if (PyErr_Occurred()) SWIG_fail;
29486 }
29487 Py_INCREF(Py_None); resultobj = Py_None;
29488 {
29489 if (temp3)
29490 delete arg3;
29491 }
29492 return resultobj;
29493 fail:
29494 {
29495 if (temp3)
29496 delete arg3;
29497 }
29498 return NULL;
29499}
29500
29501
29502static PyObject *_wrap_MenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) {
29503 PyObject *resultobj;
29504 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29505 size_t arg2 ;
29506 wxString result;
29507 PyObject * obj0 = 0 ;
29508 PyObject * obj1 = 0 ;
29509 char *kwnames[] = {
29510 (char *) "self",(char *) "pos", NULL
29511 };
29512
29513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) goto fail;
29514 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 29515 {
8edf1c75 29516 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
83448d71
RD
29517 if (PyErr_Occurred()) SWIG_fail;
29518 }
d14a1e28
RD
29519 {
29520 PyThreadState* __tstate = wxPyBeginAllowThreads();
29521 result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2);
29522
29523 wxPyEndAllowThreads(__tstate);
29524 if (PyErr_Occurred()) SWIG_fail;
29525 }
29526 {
29527#if wxUSE_UNICODE
29528 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29529#else
29530 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29531#endif
29532 }
29533 return resultobj;
29534 fail:
29535 return NULL;
29536}
29537
29538
29539static PyObject *_wrap_MenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29540 PyObject *resultobj;
29541 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29542 wxString *arg2 = 0 ;
29543 wxString *arg3 = 0 ;
29544 int result;
423f194a
RD
29545 bool temp2 = False ;
29546 bool temp3 = False ;
d14a1e28
RD
29547 PyObject * obj0 = 0 ;
29548 PyObject * obj1 = 0 ;
29549 PyObject * obj2 = 0 ;
29550 char *kwnames[] = {
29551 (char *) "self",(char *) "menu",(char *) "item", NULL
29552 };
29553
29554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
29555 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29556 {
29557 arg2 = wxString_in_helper(obj1);
29558 if (arg2 == NULL) SWIG_fail;
423f194a 29559 temp2 = True;
d14a1e28
RD
29560 }
29561 {
29562 arg3 = wxString_in_helper(obj2);
29563 if (arg3 == NULL) SWIG_fail;
423f194a 29564 temp3 = True;
d14a1e28
RD
29565 }
29566 {
29567 PyThreadState* __tstate = wxPyBeginAllowThreads();
29568 result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3);
29569
29570 wxPyEndAllowThreads(__tstate);
29571 if (PyErr_Occurred()) SWIG_fail;
29572 }
8edf1c75 29573 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
29574 {
29575 if (temp2)
29576 delete arg2;
29577 }
29578 {
29579 if (temp3)
29580 delete arg3;
29581 }
29582 return resultobj;
29583 fail:
29584 {
29585 if (temp2)
29586 delete arg2;
29587 }
29588 {
29589 if (temp3)
29590 delete arg3;
29591 }
29592 return NULL;
29593}
29594
29595
29596static PyObject *_wrap_MenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) {
29597 PyObject *resultobj;
29598 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29599 int arg2 ;
29600 wxMenuItem *result;
29601 PyObject * obj0 = 0 ;
8edf1c75 29602 PyObject * obj1 = 0 ;
d14a1e28 29603 char *kwnames[] = {
f0983263 29604 (char *) "self",(char *) "id", NULL
d14a1e28
RD
29605 };
29606
8edf1c75 29607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindItemById",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 29608 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
29609 {
29610 arg2 = (int) SWIG_PyObj_AsInt(obj1);
29611 if (PyErr_Occurred()) SWIG_fail;
29612 }
d14a1e28
RD
29613 {
29614 PyThreadState* __tstate = wxPyBeginAllowThreads();
29615 result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2);
29616
29617 wxPyEndAllowThreads(__tstate);
29618 if (PyErr_Occurred()) SWIG_fail;
29619 }
29620 {
29621 resultobj = wxPyMake_wxObject(result);
29622 }
29623 return resultobj;
29624 fail:
29625 return NULL;
29626}
29627
29628
29629static PyObject *_wrap_MenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
29630 PyObject *resultobj;
29631 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29632 wxString *arg2 = 0 ;
29633 int result;
423f194a 29634 bool temp2 = False ;
d14a1e28
RD
29635 PyObject * obj0 = 0 ;
29636 PyObject * obj1 = 0 ;
29637 char *kwnames[] = {
29638 (char *) "self",(char *) "title", NULL
29639 };
29640
29641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) goto fail;
29642 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29643 {
29644 arg2 = wxString_in_helper(obj1);
29645 if (arg2 == NULL) SWIG_fail;
423f194a 29646 temp2 = True;
d14a1e28
RD
29647 }
29648 {
29649 PyThreadState* __tstate = wxPyBeginAllowThreads();
29650 result = (int)((wxMenuBar const *)arg1)->FindMenu((wxString const &)*arg2);
29651
29652 wxPyEndAllowThreads(__tstate);
29653 if (PyErr_Occurred()) SWIG_fail;
29654 }
8edf1c75 29655 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
29656 {
29657 if (temp2)
29658 delete arg2;
29659 }
29660 return resultobj;
29661 fail:
29662 {
29663 if (temp2)
29664 delete arg2;
29665 }
29666 return NULL;
29667}
29668
29669
29670static PyObject *_wrap_MenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
29671 PyObject *resultobj;
29672 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29673 int arg2 ;
29674 bool arg3 ;
29675 PyObject * obj0 = 0 ;
8edf1c75 29676 PyObject * obj1 = 0 ;
d14a1e28
RD
29677 PyObject * obj2 = 0 ;
29678 char *kwnames[] = {
f0983263 29679 (char *) "self",(char *) "id",(char *) "enable", NULL
d14a1e28
RD
29680 };
29681
8edf1c75 29682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 29683 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 29684 {
8edf1c75
RD
29685 arg2 = (int) SWIG_PyObj_AsInt(obj1);
29686 if (PyErr_Occurred()) SWIG_fail;
29687 }
29688 {
29689 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
83448d71
RD
29690 if (PyErr_Occurred()) SWIG_fail;
29691 }
d14a1e28
RD
29692 {
29693 PyThreadState* __tstate = wxPyBeginAllowThreads();
29694 (arg1)->Enable(arg2,arg3);
29695
29696 wxPyEndAllowThreads(__tstate);
29697 if (PyErr_Occurred()) SWIG_fail;
29698 }
29699 Py_INCREF(Py_None); resultobj = Py_None;
29700 return resultobj;
29701 fail:
29702 return NULL;
29703}
29704
29705
29706static PyObject *_wrap_MenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
29707 PyObject *resultobj;
29708 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29709 int arg2 ;
29710 bool arg3 ;
29711 PyObject * obj0 = 0 ;
8edf1c75 29712 PyObject * obj1 = 0 ;
d14a1e28
RD
29713 PyObject * obj2 = 0 ;
29714 char *kwnames[] = {
f0983263 29715 (char *) "self",(char *) "id",(char *) "check", NULL
d14a1e28
RD
29716 };
29717
8edf1c75 29718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Check",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 29719 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 29720 {
8edf1c75
RD
29721 arg2 = (int) SWIG_PyObj_AsInt(obj1);
29722 if (PyErr_Occurred()) SWIG_fail;
29723 }
29724 {
29725 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
83448d71
RD
29726 if (PyErr_Occurred()) SWIG_fail;
29727 }
d14a1e28
RD
29728 {
29729 PyThreadState* __tstate = wxPyBeginAllowThreads();
29730 (arg1)->Check(arg2,arg3);
29731
29732 wxPyEndAllowThreads(__tstate);
29733 if (PyErr_Occurred()) SWIG_fail;
29734 }
29735 Py_INCREF(Py_None); resultobj = Py_None;
29736 return resultobj;
29737 fail:
29738 return NULL;
29739}
29740
29741
29742static PyObject *_wrap_MenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
29743 PyObject *resultobj;
29744 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29745 int arg2 ;
29746 bool result;
29747 PyObject * obj0 = 0 ;
8edf1c75 29748 PyObject * obj1 = 0 ;
d14a1e28 29749 char *kwnames[] = {
f0983263 29750 (char *) "self",(char *) "id", NULL
d14a1e28
RD
29751 };
29752
8edf1c75 29753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsChecked",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 29754 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
29755 {
29756 arg2 = (int) SWIG_PyObj_AsInt(obj1);
29757 if (PyErr_Occurred()) SWIG_fail;
29758 }
d14a1e28
RD
29759 {
29760 PyThreadState* __tstate = wxPyBeginAllowThreads();
29761 result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2);
29762
29763 wxPyEndAllowThreads(__tstate);
29764 if (PyErr_Occurred()) SWIG_fail;
29765 }
4e760a36 29766 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
29767 return resultobj;
29768 fail:
29769 return NULL;
29770}
29771
29772
29773static PyObject *_wrap_MenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
29774 PyObject *resultobj;
29775 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29776 int arg2 ;
29777 bool result;
29778 PyObject * obj0 = 0 ;
8edf1c75 29779 PyObject * obj1 = 0 ;
d14a1e28 29780 char *kwnames[] = {
f0983263 29781 (char *) "self",(char *) "id", NULL
d14a1e28
RD
29782 };
29783
8edf1c75 29784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabled",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 29785 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
29786 {
29787 arg2 = (int) SWIG_PyObj_AsInt(obj1);
29788 if (PyErr_Occurred()) SWIG_fail;
29789 }
d14a1e28
RD
29790 {
29791 PyThreadState* __tstate = wxPyBeginAllowThreads();
29792 result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2);
29793
29794 wxPyEndAllowThreads(__tstate);
29795 if (PyErr_Occurred()) SWIG_fail;
29796 }
4e760a36 29797 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
29798 return resultobj;
29799 fail:
29800 return NULL;
29801}
29802
29803
29804static PyObject *_wrap_MenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
29805 PyObject *resultobj;
29806 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29807 int arg2 ;
29808 wxString *arg3 = 0 ;
423f194a 29809 bool temp3 = False ;
d14a1e28 29810 PyObject * obj0 = 0 ;
8edf1c75 29811 PyObject * obj1 = 0 ;
d14a1e28
RD
29812 PyObject * obj2 = 0 ;
29813 char *kwnames[] = {
f0983263 29814 (char *) "self",(char *) "id",(char *) "label", NULL
d14a1e28
RD
29815 };
29816
8edf1c75 29817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 29818 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
29819 {
29820 arg2 = (int) SWIG_PyObj_AsInt(obj1);
29821 if (PyErr_Occurred()) SWIG_fail;
29822 }
d14a1e28
RD
29823 {
29824 arg3 = wxString_in_helper(obj2);
29825 if (arg3 == NULL) SWIG_fail;
423f194a 29826 temp3 = True;
d14a1e28
RD
29827 }
29828 {
29829 PyThreadState* __tstate = wxPyBeginAllowThreads();
29830 (arg1)->SetLabel(arg2,(wxString const &)*arg3);
29831
29832 wxPyEndAllowThreads(__tstate);
29833 if (PyErr_Occurred()) SWIG_fail;
29834 }
29835 Py_INCREF(Py_None); resultobj = Py_None;
29836 {
29837 if (temp3)
29838 delete arg3;
29839 }
29840 return resultobj;
29841 fail:
29842 {
29843 if (temp3)
29844 delete arg3;
29845 }
29846 return NULL;
29847}
29848
29849
29850static PyObject *_wrap_MenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
29851 PyObject *resultobj;
29852 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29853 int arg2 ;
29854 wxString result;
29855 PyObject * obj0 = 0 ;
8edf1c75 29856 PyObject * obj1 = 0 ;
d14a1e28 29857 char *kwnames[] = {
f0983263 29858 (char *) "self",(char *) "id", NULL
d14a1e28
RD
29859 };
29860
8edf1c75 29861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabel",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 29862 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
29863 {
29864 arg2 = (int) SWIG_PyObj_AsInt(obj1);
29865 if (PyErr_Occurred()) SWIG_fail;
29866 }
d14a1e28
RD
29867 {
29868 PyThreadState* __tstate = wxPyBeginAllowThreads();
29869 result = ((wxMenuBar const *)arg1)->GetLabel(arg2);
29870
29871 wxPyEndAllowThreads(__tstate);
29872 if (PyErr_Occurred()) SWIG_fail;
29873 }
29874 {
29875#if wxUSE_UNICODE
29876 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29877#else
29878 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29879#endif
29880 }
29881 return resultobj;
29882 fail:
29883 return NULL;
29884}
29885
29886
29887static PyObject *_wrap_MenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
29888 PyObject *resultobj;
29889 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29890 int arg2 ;
29891 wxString *arg3 = 0 ;
423f194a 29892 bool temp3 = False ;
d14a1e28 29893 PyObject * obj0 = 0 ;
8edf1c75 29894 PyObject * obj1 = 0 ;
d14a1e28
RD
29895 PyObject * obj2 = 0 ;
29896 char *kwnames[] = {
f0983263 29897 (char *) "self",(char *) "id",(char *) "helpString", NULL
d14a1e28
RD
29898 };
29899
8edf1c75 29900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 29901 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
29902 {
29903 arg2 = (int) SWIG_PyObj_AsInt(obj1);
29904 if (PyErr_Occurred()) SWIG_fail;
29905 }
d14a1e28
RD
29906 {
29907 arg3 = wxString_in_helper(obj2);
29908 if (arg3 == NULL) SWIG_fail;
423f194a 29909 temp3 = True;
d14a1e28
RD
29910 }
29911 {
29912 PyThreadState* __tstate = wxPyBeginAllowThreads();
29913 (arg1)->SetHelpString(arg2,(wxString const &)*arg3);
29914
29915 wxPyEndAllowThreads(__tstate);
29916 if (PyErr_Occurred()) SWIG_fail;
29917 }
29918 Py_INCREF(Py_None); resultobj = Py_None;
29919 {
29920 if (temp3)
29921 delete arg3;
29922 }
29923 return resultobj;
29924 fail:
29925 {
29926 if (temp3)
29927 delete arg3;
29928 }
29929 return NULL;
29930}
29931
29932
29933static PyObject *_wrap_MenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
29934 PyObject *resultobj;
29935 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29936 int arg2 ;
29937 wxString result;
29938 PyObject * obj0 = 0 ;
8edf1c75 29939 PyObject * obj1 = 0 ;
d14a1e28 29940 char *kwnames[] = {
f0983263 29941 (char *) "self",(char *) "id", NULL
d14a1e28
RD
29942 };
29943
8edf1c75 29944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetHelpString",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 29945 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
29946 {
29947 arg2 = (int) SWIG_PyObj_AsInt(obj1);
29948 if (PyErr_Occurred()) SWIG_fail;
29949 }
d14a1e28
RD
29950 {
29951 PyThreadState* __tstate = wxPyBeginAllowThreads();
29952 result = ((wxMenuBar const *)arg1)->GetHelpString(arg2);
29953
29954 wxPyEndAllowThreads(__tstate);
29955 if (PyErr_Occurred()) SWIG_fail;
29956 }
29957 {
29958#if wxUSE_UNICODE
29959 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29960#else
29961 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29962#endif
29963 }
29964 return resultobj;
29965 fail:
29966 return NULL;
29967}
29968
29969
29970static PyObject *_wrap_MenuBar_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
29971 PyObject *resultobj;
29972 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
29973 wxFrame *result;
29974 PyObject * obj0 = 0 ;
29975 char *kwnames[] = {
29976 (char *) "self", NULL
29977 };
29978
29979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetFrame",kwnames,&obj0)) goto fail;
29980 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
29981 {
29982 PyThreadState* __tstate = wxPyBeginAllowThreads();
29983 result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame();
29984
29985 wxPyEndAllowThreads(__tstate);
29986 if (PyErr_Occurred()) SWIG_fail;
29987 }
29988 {
29989 resultobj = wxPyMake_wxObject(result);
29990 }
29991 return resultobj;
29992 fail:
29993 return NULL;
29994}
29995
29996
29997static PyObject *_wrap_MenuBar_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) {
29998 PyObject *resultobj;
29999 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
30000 bool result;
30001 PyObject * obj0 = 0 ;
30002 char *kwnames[] = {
30003 (char *) "self", NULL
30004 };
30005
30006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_IsAttached",kwnames,&obj0)) goto fail;
30007 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30008 {
30009 PyThreadState* __tstate = wxPyBeginAllowThreads();
30010 result = (bool)((wxMenuBar const *)arg1)->IsAttached();
30011
30012 wxPyEndAllowThreads(__tstate);
30013 if (PyErr_Occurred()) SWIG_fail;
30014 }
4e760a36 30015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
30016 return resultobj;
30017 fail:
30018 return NULL;
30019}
30020
30021
30022static PyObject *_wrap_MenuBar_Attach(PyObject *self, PyObject *args, PyObject *kwargs) {
30023 PyObject *resultobj;
30024 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
30025 wxFrame *arg2 = (wxFrame *) 0 ;
30026 PyObject * obj0 = 0 ;
30027 PyObject * obj1 = 0 ;
30028 char *kwnames[] = {
30029 (char *) "self",(char *) "frame", NULL
30030 };
30031
30032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) goto fail;
30033 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30034 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFrame,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30035 {
30036 PyThreadState* __tstate = wxPyBeginAllowThreads();
30037 (arg1)->Attach(arg2);
30038
30039 wxPyEndAllowThreads(__tstate);
30040 if (PyErr_Occurred()) SWIG_fail;
30041 }
30042 Py_INCREF(Py_None); resultobj = Py_None;
30043 return resultobj;
30044 fail:
30045 return NULL;
30046}
30047
30048
30049static PyObject *_wrap_MenuBar_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
30050 PyObject *resultobj;
30051 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
30052 PyObject * obj0 = 0 ;
30053 char *kwnames[] = {
30054 (char *) "self", NULL
30055 };
30056
30057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_Detach",kwnames,&obj0)) goto fail;
30058 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30059 {
30060 PyThreadState* __tstate = wxPyBeginAllowThreads();
30061 (arg1)->Detach();
30062
30063 wxPyEndAllowThreads(__tstate);
30064 if (PyErr_Occurred()) SWIG_fail;
30065 }
30066 Py_INCREF(Py_None); resultobj = Py_None;
30067 return resultobj;
30068 fail:
30069 return NULL;
30070}
30071
30072
30073static PyObject * MenuBar_swigregister(PyObject *self, PyObject *args) {
30074 PyObject *obj;
30075 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30076 SWIG_TypeClientData(SWIGTYPE_p_wxMenuBar, obj);
30077 Py_INCREF(obj);
30078 return Py_BuildValue((char *)"");
30079}
30080static PyObject *_wrap_new_MenuItem(PyObject *self, PyObject *args, PyObject *kwargs) {
30081 PyObject *resultobj;
30082 wxMenu *arg1 = (wxMenu *) NULL ;
30083 int arg2 = (int) wxID_SEPARATOR ;
30084 wxString const &arg3_defvalue = wxPyEmptyString ;
30085 wxString *arg3 = (wxString *) &arg3_defvalue ;
30086 wxString const &arg4_defvalue = wxPyEmptyString ;
30087 wxString *arg4 = (wxString *) &arg4_defvalue ;
30088 int arg5 = (int) wxITEM_NORMAL ;
30089 wxMenu *arg6 = (wxMenu *) NULL ;
30090 wxMenuItem *result;
423f194a
RD
30091 bool temp3 = False ;
30092 bool temp4 = False ;
d14a1e28 30093 PyObject * obj0 = 0 ;
8edf1c75 30094 PyObject * obj1 = 0 ;
d14a1e28
RD
30095 PyObject * obj2 = 0 ;
30096 PyObject * obj3 = 0 ;
8edf1c75 30097 PyObject * obj4 = 0 ;
d14a1e28
RD
30098 PyObject * obj5 = 0 ;
30099 char *kwnames[] = {
30100 (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL
30101 };
30102
8edf1c75 30103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_MenuItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
d14a1e28
RD
30104 if (obj0) {
30105 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30106 }
8edf1c75
RD
30107 if (obj1) {
30108 {
30109 arg2 = (int) SWIG_PyObj_AsInt(obj1);
30110 if (PyErr_Occurred()) SWIG_fail;
30111 }
30112 }
d14a1e28
RD
30113 if (obj2) {
30114 {
30115 arg3 = wxString_in_helper(obj2);
30116 if (arg3 == NULL) SWIG_fail;
423f194a 30117 temp3 = True;
d14a1e28
RD
30118 }
30119 }
30120 if (obj3) {
30121 {
30122 arg4 = wxString_in_helper(obj3);
30123 if (arg4 == NULL) SWIG_fail;
423f194a 30124 temp4 = True;
d14a1e28
RD
30125 }
30126 }
8edf1c75
RD
30127 if (obj4) {
30128 {
30129 arg5 = (wxItemKind) SWIG_PyObj_AsInt(obj4);
30130 if (PyErr_Occurred()) SWIG_fail;
30131 }
30132 }
d14a1e28
RD
30133 if (obj5) {
30134 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30135 }
30136 {
30137 PyThreadState* __tstate = wxPyBeginAllowThreads();
30138 result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5,arg6);
30139
30140 wxPyEndAllowThreads(__tstate);
30141 if (PyErr_Occurred()) SWIG_fail;
30142 }
30143 {
30144 resultobj = wxPyMake_wxObject(result);
30145 }
30146 {
30147 if (temp3)
30148 delete arg3;
30149 }
30150 {
30151 if (temp4)
30152 delete arg4;
30153 }
30154 return resultobj;
30155 fail:
30156 {
30157 if (temp3)
30158 delete arg3;
30159 }
30160 {
30161 if (temp4)
30162 delete arg4;
30163 }
30164 return NULL;
30165}
30166
30167
30168static PyObject *_wrap_MenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
30169 PyObject *resultobj;
30170 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30171 wxMenu *result;
30172 PyObject * obj0 = 0 ;
30173 char *kwnames[] = {
30174 (char *) "self", NULL
30175 };
30176
30177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMenu",kwnames,&obj0)) goto fail;
30178 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30179 {
30180 PyThreadState* __tstate = wxPyBeginAllowThreads();
30181 result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu();
30182
30183 wxPyEndAllowThreads(__tstate);
30184 if (PyErr_Occurred()) SWIG_fail;
30185 }
30186 {
30187 resultobj = wxPyMake_wxObject(result);
30188 }
30189 return resultobj;
30190 fail:
30191 return NULL;
30192}
30193
30194
30195static PyObject *_wrap_MenuItem_SetMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
30196 PyObject *resultobj;
30197 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30198 wxMenu *arg2 = (wxMenu *) 0 ;
30199 PyObject * obj0 = 0 ;
30200 PyObject * obj1 = 0 ;
30201 char *kwnames[] = {
30202 (char *) "self",(char *) "menu", NULL
30203 };
30204
30205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) goto fail;
30206 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30207 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30208 {
30209 PyThreadState* __tstate = wxPyBeginAllowThreads();
30210 (arg1)->SetMenu(arg2);
30211
30212 wxPyEndAllowThreads(__tstate);
30213 if (PyErr_Occurred()) SWIG_fail;
30214 }
30215 Py_INCREF(Py_None); resultobj = Py_None;
30216 return resultobj;
30217 fail:
30218 return NULL;
30219}
30220
30221
30222static PyObject *_wrap_MenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
30223 PyObject *resultobj;
30224 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30225 int arg2 ;
30226 PyObject * obj0 = 0 ;
8edf1c75 30227 PyObject * obj1 = 0 ;
d14a1e28 30228 char *kwnames[] = {
f0983263 30229 (char *) "self",(char *) "id", NULL
d14a1e28
RD
30230 };
30231
8edf1c75 30232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetId",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 30233 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
30234 {
30235 arg2 = (int) SWIG_PyObj_AsInt(obj1);
30236 if (PyErr_Occurred()) SWIG_fail;
30237 }
d14a1e28
RD
30238 {
30239 PyThreadState* __tstate = wxPyBeginAllowThreads();
30240 (arg1)->SetId(arg2);
30241
30242 wxPyEndAllowThreads(__tstate);
30243 if (PyErr_Occurred()) SWIG_fail;
30244 }
30245 Py_INCREF(Py_None); resultobj = Py_None;
30246 return resultobj;
30247 fail:
30248 return NULL;
30249}
30250
30251
30252static PyObject *_wrap_MenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
30253 PyObject *resultobj;
30254 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30255 int result;
30256 PyObject * obj0 = 0 ;
30257 char *kwnames[] = {
30258 (char *) "self", NULL
30259 };
30260
30261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetId",kwnames,&obj0)) goto fail;
30262 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30263 {
30264 PyThreadState* __tstate = wxPyBeginAllowThreads();
30265 result = (int)((wxMenuItem const *)arg1)->GetId();
30266
30267 wxPyEndAllowThreads(__tstate);
30268 if (PyErr_Occurred()) SWIG_fail;
30269 }
8edf1c75 30270 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
30271 return resultobj;
30272 fail:
30273 return NULL;
30274}
30275
30276
30277static PyObject *_wrap_MenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
30278 PyObject *resultobj;
30279 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30280 bool result;
30281 PyObject * obj0 = 0 ;
30282 char *kwnames[] = {
30283 (char *) "self", NULL
30284 };
30285
30286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSeparator",kwnames,&obj0)) goto fail;
30287 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30288 {
30289 PyThreadState* __tstate = wxPyBeginAllowThreads();
30290 result = (bool)((wxMenuItem const *)arg1)->IsSeparator();
30291
30292 wxPyEndAllowThreads(__tstate);
30293 if (PyErr_Occurred()) SWIG_fail;
30294 }
4e760a36 30295 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
30296 return resultobj;
30297 fail:
30298 return NULL;
30299}
30300
30301
30302static PyObject *_wrap_MenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
30303 PyObject *resultobj;
30304 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30305 wxString *arg2 = 0 ;
423f194a 30306 bool temp2 = False ;
d14a1e28
RD
30307 PyObject * obj0 = 0 ;
30308 PyObject * obj1 = 0 ;
30309 char *kwnames[] = {
30310 (char *) "self",(char *) "str", NULL
30311 };
30312
30313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) goto fail;
30314 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30315 {
30316 arg2 = wxString_in_helper(obj1);
30317 if (arg2 == NULL) SWIG_fail;
423f194a 30318 temp2 = True;
d14a1e28
RD
30319 }
30320 {
30321 PyThreadState* __tstate = wxPyBeginAllowThreads();
30322 (arg1)->SetText((wxString const &)*arg2);
30323
30324 wxPyEndAllowThreads(__tstate);
30325 if (PyErr_Occurred()) SWIG_fail;
30326 }
30327 Py_INCREF(Py_None); resultobj = Py_None;
30328 {
30329 if (temp2)
30330 delete arg2;
30331 }
30332 return resultobj;
30333 fail:
30334 {
30335 if (temp2)
30336 delete arg2;
30337 }
30338 return NULL;
30339}
30340
30341
30342static PyObject *_wrap_MenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
30343 PyObject *resultobj;
30344 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30345 wxString result;
30346 PyObject * obj0 = 0 ;
30347 char *kwnames[] = {
30348 (char *) "self", NULL
30349 };
30350
30351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabel",kwnames,&obj0)) goto fail;
30352 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30353 {
30354 PyThreadState* __tstate = wxPyBeginAllowThreads();
30355 result = ((wxMenuItem const *)arg1)->GetLabel();
30356
30357 wxPyEndAllowThreads(__tstate);
30358 if (PyErr_Occurred()) SWIG_fail;
30359 }
30360 {
30361#if wxUSE_UNICODE
30362 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30363#else
30364 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30365#endif
30366 }
30367 return resultobj;
30368 fail:
30369 return NULL;
30370}
30371
30372
30373static PyObject *_wrap_MenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
30374 PyObject *resultobj;
30375 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30376 wxString *result;
30377 PyObject * obj0 = 0 ;
30378 char *kwnames[] = {
30379 (char *) "self", NULL
30380 };
30381
30382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetText",kwnames,&obj0)) goto fail;
30383 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30384 {
30385 PyThreadState* __tstate = wxPyBeginAllowThreads();
30386 {
30387 wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText();
30388 result = (wxString *) &_result_ref;
30389 }
30390
30391 wxPyEndAllowThreads(__tstate);
30392 if (PyErr_Occurred()) SWIG_fail;
30393 }
f0983263
RD
30394 {
30395#if wxUSE_UNICODE
30396 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
30397#else
30398 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
30399#endif
30400 }
d14a1e28
RD
30401 return resultobj;
30402 fail:
30403 return NULL;
30404}
30405
30406
30407static PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) {
30408 PyObject *resultobj;
30409 wxString *arg1 = 0 ;
30410 wxString result;
423f194a 30411 bool temp1 = False ;
d14a1e28
RD
30412 PyObject * obj0 = 0 ;
30413 char *kwnames[] = {
30414 (char *) "text", NULL
30415 };
30416
30417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) goto fail;
30418 {
30419 arg1 = wxString_in_helper(obj0);
30420 if (arg1 == NULL) SWIG_fail;
423f194a 30421 temp1 = True;
d14a1e28
RD
30422 }
30423 {
30424 PyThreadState* __tstate = wxPyBeginAllowThreads();
30425 result = wxMenuItem::GetLabelFromText((wxString const &)*arg1);
30426
30427 wxPyEndAllowThreads(__tstate);
30428 if (PyErr_Occurred()) SWIG_fail;
30429 }
30430 {
30431#if wxUSE_UNICODE
30432 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30433#else
30434 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30435#endif
30436 }
30437 {
30438 if (temp1)
30439 delete arg1;
30440 }
30441 return resultobj;
30442 fail:
30443 {
30444 if (temp1)
30445 delete arg1;
30446 }
30447 return NULL;
30448}
30449
30450
30451static PyObject *_wrap_MenuItem_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) {
30452 PyObject *resultobj;
30453 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30454 int result;
30455 PyObject * obj0 = 0 ;
30456 char *kwnames[] = {
30457 (char *) "self", NULL
30458 };
30459
30460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetKind",kwnames,&obj0)) goto fail;
30461 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30462 {
30463 PyThreadState* __tstate = wxPyBeginAllowThreads();
30464 result = (int)((wxMenuItem const *)arg1)->GetKind();
30465
30466 wxPyEndAllowThreads(__tstate);
30467 if (PyErr_Occurred()) SWIG_fail;
30468 }
8edf1c75 30469 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
30470 return resultobj;
30471 fail:
30472 return NULL;
30473}
30474
30475
30476static PyObject *_wrap_MenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) {
30477 PyObject *resultobj;
30478 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30479 bool arg2 ;
30480 PyObject * obj0 = 0 ;
30481 PyObject * obj1 = 0 ;
30482 char *kwnames[] = {
30483 (char *) "self",(char *) "checkable", NULL
30484 };
30485
30486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) goto fail;
30487 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 30488 {
8edf1c75 30489 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
30490 if (PyErr_Occurred()) SWIG_fail;
30491 }
d14a1e28
RD
30492 {
30493 PyThreadState* __tstate = wxPyBeginAllowThreads();
30494 (arg1)->SetCheckable(arg2);
30495
30496 wxPyEndAllowThreads(__tstate);
30497 if (PyErr_Occurred()) SWIG_fail;
30498 }
30499 Py_INCREF(Py_None); resultobj = Py_None;
30500 return resultobj;
30501 fail:
30502 return NULL;
30503}
30504
30505
30506static PyObject *_wrap_MenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) {
30507 PyObject *resultobj;
30508 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30509 bool result;
30510 PyObject * obj0 = 0 ;
30511 char *kwnames[] = {
30512 (char *) "self", NULL
30513 };
30514
30515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsCheckable",kwnames,&obj0)) goto fail;
30516 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30517 {
30518 PyThreadState* __tstate = wxPyBeginAllowThreads();
30519 result = (bool)((wxMenuItem const *)arg1)->IsCheckable();
30520
30521 wxPyEndAllowThreads(__tstate);
30522 if (PyErr_Occurred()) SWIG_fail;
30523 }
4e760a36 30524 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
30525 return resultobj;
30526 fail:
30527 return NULL;
30528}
30529
30530
30531static PyObject *_wrap_MenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
30532 PyObject *resultobj;
30533 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30534 bool result;
30535 PyObject * obj0 = 0 ;
30536 char *kwnames[] = {
30537 (char *) "self", NULL
30538 };
30539
30540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSubMenu",kwnames,&obj0)) goto fail;
30541 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30542 {
30543 PyThreadState* __tstate = wxPyBeginAllowThreads();
30544 result = (bool)((wxMenuItem const *)arg1)->IsSubMenu();
30545
30546 wxPyEndAllowThreads(__tstate);
30547 if (PyErr_Occurred()) SWIG_fail;
30548 }
4e760a36 30549 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
30550 return resultobj;
30551 fail:
30552 return NULL;
30553}
30554
30555
30556static PyObject *_wrap_MenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
30557 PyObject *resultobj;
30558 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30559 wxMenu *arg2 = (wxMenu *) 0 ;
30560 PyObject * obj0 = 0 ;
30561 PyObject * obj1 = 0 ;
30562 char *kwnames[] = {
30563 (char *) "self",(char *) "menu", NULL
30564 };
30565
30566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) goto fail;
30567 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30568 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMenu,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30569 {
30570 PyThreadState* __tstate = wxPyBeginAllowThreads();
30571 (arg1)->SetSubMenu(arg2);
30572
30573 wxPyEndAllowThreads(__tstate);
30574 if (PyErr_Occurred()) SWIG_fail;
30575 }
30576 Py_INCREF(Py_None); resultobj = Py_None;
30577 return resultobj;
30578 fail:
30579 return NULL;
30580}
30581
30582
30583static PyObject *_wrap_MenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
30584 PyObject *resultobj;
30585 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30586 wxMenu *result;
30587 PyObject * obj0 = 0 ;
30588 char *kwnames[] = {
30589 (char *) "self", NULL
30590 };
30591
30592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetSubMenu",kwnames,&obj0)) goto fail;
30593 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30594 {
30595 PyThreadState* __tstate = wxPyBeginAllowThreads();
30596 result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu();
30597
30598 wxPyEndAllowThreads(__tstate);
30599 if (PyErr_Occurred()) SWIG_fail;
30600 }
30601 {
30602 resultobj = wxPyMake_wxObject(result);
30603 }
30604 return resultobj;
30605 fail:
30606 return NULL;
30607}
30608
30609
30610static PyObject *_wrap_MenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
30611 PyObject *resultobj;
30612 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
423f194a 30613 bool arg2 = (bool) True ;
d14a1e28
RD
30614 PyObject * obj0 = 0 ;
30615 PyObject * obj1 = 0 ;
30616 char *kwnames[] = {
30617 (char *) "self",(char *) "enable", NULL
30618 };
30619
30620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) goto fail;
30621 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30622 if (obj1) {
83448d71 30623 {
8edf1c75 30624 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
30625 if (PyErr_Occurred()) SWIG_fail;
30626 }
d14a1e28
RD
30627 }
30628 {
30629 PyThreadState* __tstate = wxPyBeginAllowThreads();
30630 (arg1)->Enable(arg2);
30631
30632 wxPyEndAllowThreads(__tstate);
30633 if (PyErr_Occurred()) SWIG_fail;
30634 }
30635 Py_INCREF(Py_None); resultobj = Py_None;
30636 return resultobj;
30637 fail:
30638 return NULL;
30639}
30640
30641
30642static PyObject *_wrap_MenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
30643 PyObject *resultobj;
30644 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30645 bool result;
30646 PyObject * obj0 = 0 ;
30647 char *kwnames[] = {
30648 (char *) "self", NULL
30649 };
30650
30651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsEnabled",kwnames,&obj0)) goto fail;
30652 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30653 {
30654 PyThreadState* __tstate = wxPyBeginAllowThreads();
30655 result = (bool)((wxMenuItem const *)arg1)->IsEnabled();
30656
30657 wxPyEndAllowThreads(__tstate);
30658 if (PyErr_Occurred()) SWIG_fail;
30659 }
4e760a36 30660 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
30661 return resultobj;
30662 fail:
30663 return NULL;
30664}
30665
30666
30667static PyObject *_wrap_MenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
30668 PyObject *resultobj;
30669 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
423f194a 30670 bool arg2 = (bool) True ;
d14a1e28
RD
30671 PyObject * obj0 = 0 ;
30672 PyObject * obj1 = 0 ;
30673 char *kwnames[] = {
30674 (char *) "self",(char *) "check", NULL
30675 };
30676
30677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) goto fail;
30678 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30679 if (obj1) {
83448d71 30680 {
8edf1c75 30681 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
30682 if (PyErr_Occurred()) SWIG_fail;
30683 }
d14a1e28
RD
30684 }
30685 {
30686 PyThreadState* __tstate = wxPyBeginAllowThreads();
30687 (arg1)->Check(arg2);
30688
30689 wxPyEndAllowThreads(__tstate);
30690 if (PyErr_Occurred()) SWIG_fail;
30691 }
30692 Py_INCREF(Py_None); resultobj = Py_None;
30693 return resultobj;
30694 fail:
30695 return NULL;
30696}
30697
30698
30699static PyObject *_wrap_MenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
30700 PyObject *resultobj;
30701 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30702 bool result;
30703 PyObject * obj0 = 0 ;
30704 char *kwnames[] = {
30705 (char *) "self", NULL
30706 };
30707
30708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsChecked",kwnames,&obj0)) goto fail;
30709 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30710 {
30711 PyThreadState* __tstate = wxPyBeginAllowThreads();
30712 result = (bool)((wxMenuItem const *)arg1)->IsChecked();
30713
30714 wxPyEndAllowThreads(__tstate);
30715 if (PyErr_Occurred()) SWIG_fail;
30716 }
4e760a36 30717 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
30718 return resultobj;
30719 fail:
30720 return NULL;
30721}
30722
30723
30724static PyObject *_wrap_MenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
30725 PyObject *resultobj;
30726 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30727 PyObject * obj0 = 0 ;
30728 char *kwnames[] = {
30729 (char *) "self", NULL
30730 };
30731
30732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_Toggle",kwnames,&obj0)) goto fail;
30733 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30734 {
30735 PyThreadState* __tstate = wxPyBeginAllowThreads();
30736 (arg1)->Toggle();
30737
30738 wxPyEndAllowThreads(__tstate);
30739 if (PyErr_Occurred()) SWIG_fail;
30740 }
30741 Py_INCREF(Py_None); resultobj = Py_None;
30742 return resultobj;
30743 fail:
30744 return NULL;
30745}
30746
30747
30748static PyObject *_wrap_MenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
30749 PyObject *resultobj;
30750 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30751 wxString *arg2 = 0 ;
423f194a 30752 bool temp2 = False ;
d14a1e28
RD
30753 PyObject * obj0 = 0 ;
30754 PyObject * obj1 = 0 ;
30755 char *kwnames[] = {
30756 (char *) "self",(char *) "str", NULL
30757 };
30758
30759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) goto fail;
30760 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30761 {
30762 arg2 = wxString_in_helper(obj1);
30763 if (arg2 == NULL) SWIG_fail;
423f194a 30764 temp2 = True;
d14a1e28
RD
30765 }
30766 {
30767 PyThreadState* __tstate = wxPyBeginAllowThreads();
30768 (arg1)->SetHelp((wxString const &)*arg2);
30769
30770 wxPyEndAllowThreads(__tstate);
30771 if (PyErr_Occurred()) SWIG_fail;
30772 }
30773 Py_INCREF(Py_None); resultobj = Py_None;
30774 {
30775 if (temp2)
30776 delete arg2;
30777 }
30778 return resultobj;
30779 fail:
30780 {
30781 if (temp2)
30782 delete arg2;
30783 }
30784 return NULL;
30785}
30786
30787
30788static PyObject *_wrap_MenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
30789 PyObject *resultobj;
30790 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30791 wxString *result;
30792 PyObject * obj0 = 0 ;
30793 char *kwnames[] = {
30794 (char *) "self", NULL
30795 };
30796
30797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetHelp",kwnames,&obj0)) goto fail;
30798 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30799 {
30800 PyThreadState* __tstate = wxPyBeginAllowThreads();
30801 {
30802 wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp();
30803 result = (wxString *) &_result_ref;
30804 }
30805
30806 wxPyEndAllowThreads(__tstate);
30807 if (PyErr_Occurred()) SWIG_fail;
30808 }
f0983263
RD
30809 {
30810#if wxUSE_UNICODE
30811 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
30812#else
30813 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
30814#endif
30815 }
d14a1e28
RD
30816 return resultobj;
30817 fail:
30818 return NULL;
30819}
30820
30821
30822static PyObject *_wrap_MenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) {
30823 PyObject *resultobj;
30824 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30825 wxAcceleratorEntry *result;
30826 PyObject * obj0 = 0 ;
30827 char *kwnames[] = {
30828 (char *) "self", NULL
30829 };
30830
30831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetAccel",kwnames,&obj0)) goto fail;
30832 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30833 {
30834 PyThreadState* __tstate = wxPyBeginAllowThreads();
30835 result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel();
30836
30837 wxPyEndAllowThreads(__tstate);
30838 if (PyErr_Occurred()) SWIG_fail;
30839 }
30840 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxAcceleratorEntry, 0);
30841 return resultobj;
30842 fail:
30843 return NULL;
30844}
30845
30846
30847static PyObject *_wrap_MenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) {
30848 PyObject *resultobj;
30849 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30850 wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ;
30851 PyObject * obj0 = 0 ;
30852 PyObject * obj1 = 0 ;
30853 char *kwnames[] = {
30854 (char *) "self",(char *) "accel", NULL
30855 };
30856
30857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) goto fail;
30858 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30859 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxAcceleratorEntry,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30860 {
30861 PyThreadState* __tstate = wxPyBeginAllowThreads();
30862 (arg1)->SetAccel(arg2);
30863
30864 wxPyEndAllowThreads(__tstate);
30865 if (PyErr_Occurred()) SWIG_fail;
30866 }
30867 Py_INCREF(Py_None); resultobj = Py_None;
30868 return resultobj;
30869 fail:
30870 return NULL;
30871}
30872
30873
30874static PyObject *_wrap_MenuItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
30875 PyObject *resultobj;
30876 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30877 wxFont *arg2 = 0 ;
30878 PyObject * obj0 = 0 ;
30879 PyObject * obj1 = 0 ;
30880 char *kwnames[] = {
30881 (char *) "self",(char *) "font", NULL
30882 };
30883
30884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetFont",kwnames,&obj0,&obj1)) goto fail;
30885 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30886 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30887 if (arg2 == NULL) {
30888 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
30889 }
30890 {
30891 PyThreadState* __tstate = wxPyBeginAllowThreads();
30892 (arg1)->SetFont((wxFont const &)*arg2);
30893
30894 wxPyEndAllowThreads(__tstate);
30895 if (PyErr_Occurred()) SWIG_fail;
30896 }
30897 Py_INCREF(Py_None); resultobj = Py_None;
30898 return resultobj;
30899 fail:
30900 return NULL;
30901}
30902
30903
30904static PyObject *_wrap_MenuItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
30905 PyObject *resultobj;
30906 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30907 wxFont result;
30908 PyObject * obj0 = 0 ;
30909 char *kwnames[] = {
30910 (char *) "self", NULL
30911 };
30912
30913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetFont",kwnames,&obj0)) goto fail;
30914 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30915 {
30916 PyThreadState* __tstate = wxPyBeginAllowThreads();
30917 result = (arg1)->GetFont();
30918
30919 wxPyEndAllowThreads(__tstate);
30920 if (PyErr_Occurred()) SWIG_fail;
30921 }
30922 {
30923 wxFont * resultptr;
30924 resultptr = new wxFont((wxFont &) result);
30925 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1);
30926 }
30927 return resultobj;
30928 fail:
30929 return NULL;
30930}
30931
30932
30933static PyObject *_wrap_MenuItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
30934 PyObject *resultobj;
30935 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30936 wxColour *arg2 = 0 ;
30937 wxColour temp2 ;
30938 PyObject * obj0 = 0 ;
30939 PyObject * obj1 = 0 ;
30940 char *kwnames[] = {
30941 (char *) "self",(char *) "colText", NULL
30942 };
30943
30944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
30945 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30946 {
30947 arg2 = &temp2;
30948 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30949 }
30950 {
30951 PyThreadState* __tstate = wxPyBeginAllowThreads();
30952 (arg1)->SetTextColour((wxColour const &)*arg2);
30953
30954 wxPyEndAllowThreads(__tstate);
30955 if (PyErr_Occurred()) SWIG_fail;
30956 }
30957 Py_INCREF(Py_None); resultobj = Py_None;
30958 return resultobj;
30959 fail:
30960 return NULL;
30961}
30962
30963
30964static PyObject *_wrap_MenuItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
30965 PyObject *resultobj;
30966 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30967 wxColour result;
30968 PyObject * obj0 = 0 ;
30969 char *kwnames[] = {
30970 (char *) "self", NULL
30971 };
30972
30973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetTextColour",kwnames,&obj0)) goto fail;
30974 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
30975 {
30976 PyThreadState* __tstate = wxPyBeginAllowThreads();
30977 result = (arg1)->GetTextColour();
30978
30979 wxPyEndAllowThreads(__tstate);
30980 if (PyErr_Occurred()) SWIG_fail;
30981 }
30982 {
30983 wxColour * resultptr;
30984 resultptr = new wxColour((wxColour &) result);
30985 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
30986 }
30987 return resultobj;
30988 fail:
30989 return NULL;
30990}
30991
30992
30993static PyObject *_wrap_MenuItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
30994 PyObject *resultobj;
30995 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
30996 wxColour *arg2 = 0 ;
30997 wxColour temp2 ;
30998 PyObject * obj0 = 0 ;
30999 PyObject * obj1 = 0 ;
31000 char *kwnames[] = {
31001 (char *) "self",(char *) "colBack", NULL
31002 };
31003
31004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
31005 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31006 {
31007 arg2 = &temp2;
31008 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
31009 }
31010 {
31011 PyThreadState* __tstate = wxPyBeginAllowThreads();
31012 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
31013
31014 wxPyEndAllowThreads(__tstate);
31015 if (PyErr_Occurred()) SWIG_fail;
31016 }
31017 Py_INCREF(Py_None); resultobj = Py_None;
31018 return resultobj;
31019 fail:
31020 return NULL;
31021}
31022
31023
31024static PyObject *_wrap_MenuItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
31025 PyObject *resultobj;
31026 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
31027 wxColour result;
31028 PyObject * obj0 = 0 ;
31029 char *kwnames[] = {
31030 (char *) "self", NULL
31031 };
31032
31033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBackgroundColour",kwnames,&obj0)) goto fail;
31034 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31035 {
31036 PyThreadState* __tstate = wxPyBeginAllowThreads();
31037 result = (arg1)->GetBackgroundColour();
31038
31039 wxPyEndAllowThreads(__tstate);
31040 if (PyErr_Occurred()) SWIG_fail;
31041 }
31042 {
31043 wxColour * resultptr;
31044 resultptr = new wxColour((wxColour &) result);
31045 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
31046 }
31047 return resultobj;
31048 fail:
31049 return NULL;
31050}
31051
31052
31053static PyObject *_wrap_MenuItem_SetBitmaps(PyObject *self, PyObject *args, PyObject *kwargs) {
31054 PyObject *resultobj;
31055 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
31056 wxBitmap *arg2 = 0 ;
31057 wxBitmap const &arg3_defvalue = wxNullBitmap ;
31058 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
31059 PyObject * obj0 = 0 ;
31060 PyObject * obj1 = 0 ;
31061 PyObject * obj2 = 0 ;
31062 char *kwnames[] = {
31063 (char *) "self",(char *) "bmpChecked",(char *) "bmpUnchecked", NULL
31064 };
31065
31066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MenuItem_SetBitmaps",kwnames,&obj0,&obj1,&obj2)) goto fail;
31067 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31068 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31069 if (arg2 == NULL) {
31070 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
31071 }
31072 if (obj2) {
31073 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31074 if (arg3 == NULL) {
31075 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
31076 }
31077 }
31078 {
31079 PyThreadState* __tstate = wxPyBeginAllowThreads();
31080 (arg1)->SetBitmaps((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
31081
31082 wxPyEndAllowThreads(__tstate);
31083 if (PyErr_Occurred()) SWIG_fail;
31084 }
31085 Py_INCREF(Py_None); resultobj = Py_None;
31086 return resultobj;
31087 fail:
31088 return NULL;
31089}
31090
31091
31092static PyObject *_wrap_MenuItem_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
31093 PyObject *resultobj;
31094 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
31095 wxBitmap *arg2 = 0 ;
31096 PyObject * obj0 = 0 ;
31097 PyObject * obj1 = 0 ;
31098 char *kwnames[] = {
31099 (char *) "self",(char *) "bmpDisabled", NULL
31100 };
31101
31102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail;
31103 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31104 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31105 if (arg2 == NULL) {
31106 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
31107 }
31108 {
31109 PyThreadState* __tstate = wxPyBeginAllowThreads();
31110 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
31111
31112 wxPyEndAllowThreads(__tstate);
31113 if (PyErr_Occurred()) SWIG_fail;
31114 }
31115 Py_INCREF(Py_None); resultobj = Py_None;
31116 return resultobj;
31117 fail:
31118 return NULL;
31119}
31120
31121
31122static PyObject *_wrap_MenuItem_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
31123 PyObject *resultobj;
31124 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
31125 wxBitmap *result;
31126 PyObject * obj0 = 0 ;
31127 char *kwnames[] = {
31128 (char *) "self", NULL
31129 };
31130
31131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetDisabledBitmap",kwnames,&obj0)) goto fail;
31132 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31133 {
31134 PyThreadState* __tstate = wxPyBeginAllowThreads();
31135 {
31136 wxBitmap const &_result_ref = ((wxMenuItem const *)arg1)->GetDisabledBitmap();
31137 result = (wxBitmap *) &_result_ref;
31138 }
31139
31140 wxPyEndAllowThreads(__tstate);
31141 if (PyErr_Occurred()) SWIG_fail;
31142 }
31143 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0);
31144 return resultobj;
31145 fail:
31146 return NULL;
31147}
31148
31149
31150static PyObject *_wrap_MenuItem_SetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
31151 PyObject *resultobj;
31152 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
31153 int arg2 ;
31154 PyObject * obj0 = 0 ;
8edf1c75 31155 PyObject * obj1 = 0 ;
d14a1e28
RD
31156 char *kwnames[] = {
31157 (char *) "self",(char *) "nWidth", NULL
31158 };
31159
8edf1c75 31160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMarginWidth",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 31161 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
31162 {
31163 arg2 = (int) SWIG_PyObj_AsInt(obj1);
31164 if (PyErr_Occurred()) SWIG_fail;
31165 }
d14a1e28
RD
31166 {
31167 PyThreadState* __tstate = wxPyBeginAllowThreads();
31168 (arg1)->SetMarginWidth(arg2);
31169
31170 wxPyEndAllowThreads(__tstate);
31171 if (PyErr_Occurred()) SWIG_fail;
31172 }
31173 Py_INCREF(Py_None); resultobj = Py_None;
31174 return resultobj;
31175 fail:
31176 return NULL;
31177}
31178
31179
31180static PyObject *_wrap_MenuItem_GetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
31181 PyObject *resultobj;
31182 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
31183 int result;
31184 PyObject * obj0 = 0 ;
31185 char *kwnames[] = {
31186 (char *) "self", NULL
31187 };
31188
31189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMarginWidth",kwnames,&obj0)) goto fail;
31190 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31191 {
31192 PyThreadState* __tstate = wxPyBeginAllowThreads();
31193 result = (int)(arg1)->GetMarginWidth();
31194
31195 wxPyEndAllowThreads(__tstate);
31196 if (PyErr_Occurred()) SWIG_fail;
31197 }
8edf1c75 31198 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
31199 return resultobj;
31200 fail:
31201 return NULL;
31202}
31203
31204
31205static PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
31206 PyObject *resultobj;
31207 int result;
31208 char *kwnames[] = {
31209 NULL
31210 };
31211
31212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MenuItem_GetDefaultMarginWidth",kwnames)) goto fail;
31213 {
31214 PyThreadState* __tstate = wxPyBeginAllowThreads();
31215 result = (int)wxMenuItem::GetDefaultMarginWidth();
31216
31217 wxPyEndAllowThreads(__tstate);
31218 if (PyErr_Occurred()) SWIG_fail;
31219 }
8edf1c75 31220 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
31221 return resultobj;
31222 fail:
31223 return NULL;
31224}
31225
31226
31227static PyObject *_wrap_MenuItem_IsOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) {
31228 PyObject *resultobj;
31229 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
31230 bool result;
31231 PyObject * obj0 = 0 ;
31232 char *kwnames[] = {
31233 (char *) "self", NULL
31234 };
31235
31236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsOwnerDrawn",kwnames,&obj0)) goto fail;
31237 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31238 {
31239 PyThreadState* __tstate = wxPyBeginAllowThreads();
31240 result = (bool)(arg1)->IsOwnerDrawn();
31241
31242 wxPyEndAllowThreads(__tstate);
31243 if (PyErr_Occurred()) SWIG_fail;
31244 }
4e760a36 31245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
31246 return resultobj;
31247 fail:
31248 return NULL;
31249}
31250
31251
31252static PyObject *_wrap_MenuItem_SetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) {
31253 PyObject *resultobj;
31254 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
423f194a 31255 bool arg2 = (bool) True ;
d14a1e28
RD
31256 PyObject * obj0 = 0 ;
31257 PyObject * obj1 = 0 ;
31258 char *kwnames[] = {
31259 (char *) "self",(char *) "ownerDrawn", NULL
31260 };
31261
31262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_SetOwnerDrawn",kwnames,&obj0,&obj1)) goto fail;
31263 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31264 if (obj1) {
83448d71 31265 {
8edf1c75 31266 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
31267 if (PyErr_Occurred()) SWIG_fail;
31268 }
d14a1e28
RD
31269 }
31270 {
31271 PyThreadState* __tstate = wxPyBeginAllowThreads();
31272 (arg1)->SetOwnerDrawn(arg2);
31273
31274 wxPyEndAllowThreads(__tstate);
31275 if (PyErr_Occurred()) SWIG_fail;
31276 }
31277 Py_INCREF(Py_None); resultobj = Py_None;
31278 return resultobj;
31279 fail:
31280 return NULL;
31281}
31282
31283
31284static PyObject *_wrap_MenuItem_ResetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) {
31285 PyObject *resultobj;
31286 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
31287 PyObject * obj0 = 0 ;
31288 char *kwnames[] = {
31289 (char *) "self", NULL
31290 };
31291
31292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_ResetOwnerDrawn",kwnames,&obj0)) goto fail;
31293 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31294 {
31295 PyThreadState* __tstate = wxPyBeginAllowThreads();
31296 (arg1)->ResetOwnerDrawn();
31297
31298 wxPyEndAllowThreads(__tstate);
31299 if (PyErr_Occurred()) SWIG_fail;
31300 }
31301 Py_INCREF(Py_None); resultobj = Py_None;
31302 return resultobj;
31303 fail:
31304 return NULL;
31305}
31306
31307
31308static PyObject *_wrap_MenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
31309 PyObject *resultobj;
31310 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
31311 wxBitmap *arg2 = 0 ;
31312 PyObject * obj0 = 0 ;
31313 PyObject * obj1 = 0 ;
31314 char *kwnames[] = {
31315 (char *) "self",(char *) "bitmap", NULL
31316 };
31317
31318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
31319 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31320 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31321 if (arg2 == NULL) {
31322 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
31323 }
31324 {
31325 PyThreadState* __tstate = wxPyBeginAllowThreads();
31326 (arg1)->SetBitmap((wxBitmap const &)*arg2);
31327
31328 wxPyEndAllowThreads(__tstate);
31329 if (PyErr_Occurred()) SWIG_fail;
31330 }
31331 Py_INCREF(Py_None); resultobj = Py_None;
31332 return resultobj;
31333 fail:
31334 return NULL;
31335}
31336
31337
31338static PyObject *_wrap_MenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
31339 PyObject *resultobj;
31340 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
31341 wxBitmap *result;
31342 PyObject * obj0 = 0 ;
31343 char *kwnames[] = {
31344 (char *) "self", NULL
31345 };
31346
31347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBitmap",kwnames,&obj0)) goto fail;
31348 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMenuItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31349 {
31350 PyThreadState* __tstate = wxPyBeginAllowThreads();
31351 {
31352 wxBitmap const &_result_ref = (arg1)->GetBitmap();
31353 result = (wxBitmap *) &_result_ref;
31354 }
31355
31356 wxPyEndAllowThreads(__tstate);
31357 if (PyErr_Occurred()) SWIG_fail;
31358 }
31359 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0);
31360 return resultobj;
31361 fail:
31362 return NULL;
31363}
31364
31365
31366static PyObject * MenuItem_swigregister(PyObject *self, PyObject *args) {
31367 PyObject *obj;
31368 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
31369 SWIG_TypeClientData(SWIGTYPE_p_wxMenuItem, obj);
31370 Py_INCREF(obj);
31371 return Py_BuildValue((char *)"");
31372}
8edf1c75 31373static int _wrap_ControlNameStr_set(PyObject *) {
d03fd34d
RD
31374 PyErr_SetString(PyExc_TypeError,"Variable ControlNameStr is read-only.");
31375 return 1;
31376}
31377
31378
31379static PyObject *_wrap_ControlNameStr_get() {
31380 PyObject *pyobj;
31381
31382 {
31383#if wxUSE_UNICODE
31384 pyobj = PyUnicode_FromWideChar((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len());
31385#else
31386 pyobj = PyString_FromStringAndSize((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len());
31387#endif
31388 }
31389 return pyobj;
31390}
31391
31392
d14a1e28
RD
31393static PyObject *_wrap_new_Control(PyObject *self, PyObject *args, PyObject *kwargs) {
31394 PyObject *resultobj;
31395 wxWindow *arg1 = (wxWindow *) 0 ;
423f194a 31396 int arg2 ;
d14a1e28
RD
31397 wxPoint const &arg3_defvalue = wxDefaultPosition ;
31398 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
31399 wxSize const &arg4_defvalue = wxDefaultSize ;
31400 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
31401 long arg5 = (long) 0 ;
31402 wxValidator const &arg6_defvalue = wxDefaultValidator ;
31403 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
31404 wxString const &arg7_defvalue = wxPyControlNameStr ;
31405 wxString *arg7 = (wxString *) &arg7_defvalue ;
31406 wxControl *result;
31407 wxPoint temp3 ;
31408 wxSize temp4 ;
423f194a 31409 bool temp7 = False ;
d14a1e28 31410 PyObject * obj0 = 0 ;
8edf1c75 31411 PyObject * obj1 = 0 ;
d14a1e28
RD
31412 PyObject * obj2 = 0 ;
31413 PyObject * obj3 = 0 ;
8edf1c75 31414 PyObject * obj4 = 0 ;
d14a1e28
RD
31415 PyObject * obj5 = 0 ;
31416 PyObject * obj6 = 0 ;
31417 char *kwnames[] = {
31418 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31419 };
31420
8edf1c75 31421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_Control",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
d14a1e28 31422 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
31423 {
31424 arg2 = (int) SWIG_PyObj_AsInt(obj1);
31425 if (PyErr_Occurred()) SWIG_fail;
31426 }
d14a1e28
RD
31427 if (obj2) {
31428 {
31429 arg3 = &temp3;
31430 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31431 }
31432 }
31433 if (obj3) {
31434 {
31435 arg4 = &temp4;
31436 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
31437 }
31438 }
8edf1c75
RD
31439 if (obj4) {
31440 {
31441 arg5 = (long) SWIG_PyObj_AsLong(obj4);
31442 if (PyErr_Occurred()) SWIG_fail;
31443 }
31444 }
d14a1e28
RD
31445 if (obj5) {
31446 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31447 if (arg6 == NULL) {
31448 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
31449 }
31450 }
31451 if (obj6) {
31452 {
31453 arg7 = wxString_in_helper(obj6);
31454 if (arg7 == NULL) SWIG_fail;
423f194a 31455 temp7 = True;
d14a1e28
RD
31456 }
31457 }
31458 {
31459 PyThreadState* __tstate = wxPyBeginAllowThreads();
31460 result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
31461
31462 wxPyEndAllowThreads(__tstate);
31463 if (PyErr_Occurred()) SWIG_fail;
31464 }
31465 {
31466 resultobj = wxPyMake_wxObject(result);
31467 }
31468 {
31469 if (temp7)
31470 delete arg7;
31471 }
31472 return resultobj;
31473 fail:
31474 {
31475 if (temp7)
31476 delete arg7;
31477 }
31478 return NULL;
31479}
31480
31481
31482static PyObject *_wrap_new_PreControl(PyObject *self, PyObject *args, PyObject *kwargs) {
31483 PyObject *resultobj;
31484 wxControl *result;
31485 char *kwnames[] = {
31486 NULL
31487 };
31488
31489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreControl",kwnames)) goto fail;
31490 {
31491 PyThreadState* __tstate = wxPyBeginAllowThreads();
31492 result = (wxControl *)new wxControl();
31493
31494 wxPyEndAllowThreads(__tstate);
31495 if (PyErr_Occurred()) SWIG_fail;
31496 }
31497 {
31498 resultobj = wxPyMake_wxObject(result);
31499 }
31500 return resultobj;
31501 fail:
31502 return NULL;
31503}
31504
31505
31506static PyObject *_wrap_Control_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
31507 PyObject *resultobj;
31508 wxControl *arg1 = (wxControl *) 0 ;
31509 wxWindow *arg2 = (wxWindow *) 0 ;
423f194a 31510 int arg3 ;
d14a1e28
RD
31511 wxPoint const &arg4_defvalue = wxDefaultPosition ;
31512 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
31513 wxSize const &arg5_defvalue = wxDefaultSize ;
31514 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
31515 long arg6 = (long) 0 ;
31516 wxValidator const &arg7_defvalue = wxDefaultValidator ;
31517 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
31518 wxString const &arg8_defvalue = wxPyControlNameStr ;
31519 wxString *arg8 = (wxString *) &arg8_defvalue ;
31520 bool result;
31521 wxPoint temp4 ;
31522 wxSize temp5 ;
423f194a 31523 bool temp8 = False ;
d14a1e28
RD
31524 PyObject * obj0 = 0 ;
31525 PyObject * obj1 = 0 ;
8edf1c75 31526 PyObject * obj2 = 0 ;
d14a1e28
RD
31527 PyObject * obj3 = 0 ;
31528 PyObject * obj4 = 0 ;
8edf1c75 31529 PyObject * obj5 = 0 ;
d14a1e28
RD
31530 PyObject * obj6 = 0 ;
31531 PyObject * obj7 = 0 ;
31532 char *kwnames[] = {
31533 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31534 };
31535
8edf1c75 31536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:Control_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
d14a1e28
RD
31537 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31538 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
31539 {
31540 arg3 = (int) SWIG_PyObj_AsInt(obj2);
31541 if (PyErr_Occurred()) SWIG_fail;
31542 }
d14a1e28
RD
31543 if (obj3) {
31544 {
31545 arg4 = &temp4;
31546 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
31547 }
31548 }
31549 if (obj4) {
31550 {
31551 arg5 = &temp5;
31552 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
31553 }
31554 }
8edf1c75
RD
31555 if (obj5) {
31556 {
31557 arg6 = (long) SWIG_PyObj_AsLong(obj5);
31558 if (PyErr_Occurred()) SWIG_fail;
31559 }
31560 }
d14a1e28
RD
31561 if (obj6) {
31562 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31563 if (arg7 == NULL) {
31564 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
31565 }
31566 }
31567 if (obj7) {
31568 {
31569 arg8 = wxString_in_helper(obj7);
31570 if (arg8 == NULL) SWIG_fail;
423f194a 31571 temp8 = True;
d14a1e28
RD
31572 }
31573 }
31574 {
31575 PyThreadState* __tstate = wxPyBeginAllowThreads();
31576 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
31577
31578 wxPyEndAllowThreads(__tstate);
31579 if (PyErr_Occurred()) SWIG_fail;
31580 }
4e760a36 31581 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
31582 {
31583 if (temp8)
31584 delete arg8;
31585 }
31586 return resultobj;
31587 fail:
31588 {
31589 if (temp8)
31590 delete arg8;
31591 }
31592 return NULL;
31593}
31594
31595
31596static PyObject *_wrap_Control_Command(PyObject *self, PyObject *args, PyObject *kwargs) {
31597 PyObject *resultobj;
31598 wxControl *arg1 = (wxControl *) 0 ;
31599 wxCommandEvent *arg2 = 0 ;
31600 PyObject * obj0 = 0 ;
31601 PyObject * obj1 = 0 ;
31602 char *kwnames[] = {
31603 (char *) "self",(char *) "event", NULL
31604 };
31605
31606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) goto fail;
31607 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31608 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCommandEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31609 if (arg2 == NULL) {
31610 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
31611 }
31612 {
31613 PyThreadState* __tstate = wxPyBeginAllowThreads();
31614 (arg1)->Command(*arg2);
31615
31616 wxPyEndAllowThreads(__tstate);
31617 if (PyErr_Occurred()) SWIG_fail;
31618 }
31619 Py_INCREF(Py_None); resultobj = Py_None;
31620 return resultobj;
31621 fail:
31622 return NULL;
31623}
31624
31625
31626static PyObject *_wrap_Control_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
31627 PyObject *resultobj;
31628 wxControl *arg1 = (wxControl *) 0 ;
31629 wxString result;
31630 PyObject * obj0 = 0 ;
31631 char *kwnames[] = {
31632 (char *) "self", NULL
31633 };
31634
31635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_GetLabel",kwnames,&obj0)) goto fail;
31636 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31637 {
31638 PyThreadState* __tstate = wxPyBeginAllowThreads();
31639 result = (arg1)->GetLabel();
31640
31641 wxPyEndAllowThreads(__tstate);
31642 if (PyErr_Occurred()) SWIG_fail;
31643 }
31644 {
31645#if wxUSE_UNICODE
31646 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
31647#else
31648 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
31649#endif
31650 }
31651 return resultobj;
31652 fail:
31653 return NULL;
31654}
31655
31656
31657static PyObject *_wrap_Control_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
31658 PyObject *resultobj;
31659 wxControl *arg1 = (wxControl *) 0 ;
31660 wxString *arg2 = 0 ;
423f194a 31661 bool temp2 = False ;
d14a1e28
RD
31662 PyObject * obj0 = 0 ;
31663 PyObject * obj1 = 0 ;
31664 char *kwnames[] = {
31665 (char *) "self",(char *) "label", NULL
31666 };
31667
31668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_SetLabel",kwnames,&obj0,&obj1)) goto fail;
31669 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31670 {
31671 arg2 = wxString_in_helper(obj1);
31672 if (arg2 == NULL) SWIG_fail;
423f194a 31673 temp2 = True;
d14a1e28
RD
31674 }
31675 {
31676 PyThreadState* __tstate = wxPyBeginAllowThreads();
31677 (arg1)->SetLabel((wxString const &)*arg2);
31678
31679 wxPyEndAllowThreads(__tstate);
31680 if (PyErr_Occurred()) SWIG_fail;
31681 }
31682 Py_INCREF(Py_None); resultobj = Py_None;
31683 {
31684 if (temp2)
31685 delete arg2;
31686 }
31687 return resultobj;
31688 fail:
31689 {
31690 if (temp2)
31691 delete arg2;
31692 }
31693 return NULL;
31694}
31695
31696
31697static PyObject * Control_swigregister(PyObject *self, PyObject *args) {
31698 PyObject *obj;
31699 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
31700 SWIG_TypeClientData(SWIGTYPE_p_wxControl, obj);
31701 Py_INCREF(obj);
31702 return Py_BuildValue((char *)"");
31703}
31704static PyObject *_wrap_ItemContainer_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
31705 PyObject *resultobj;
31706 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
31707 wxString *arg2 = 0 ;
31708 PyObject *arg3 = (PyObject *) NULL ;
31709 int result;
423f194a 31710 bool temp2 = False ;
d14a1e28
RD
31711 PyObject * obj0 = 0 ;
31712 PyObject * obj1 = 0 ;
31713 PyObject * obj2 = 0 ;
31714 char *kwnames[] = {
31715 (char *) "self",(char *) "item",(char *) "clientData", NULL
31716 };
31717
31718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) goto fail;
31719 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31720 {
31721 arg2 = wxString_in_helper(obj1);
31722 if (arg2 == NULL) SWIG_fail;
423f194a 31723 temp2 = True;
d14a1e28
RD
31724 }
31725 if (obj2) {
31726 arg3 = obj2;
31727 }
31728 {
31729 PyThreadState* __tstate = wxPyBeginAllowThreads();
31730 result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3);
31731
31732 wxPyEndAllowThreads(__tstate);
31733 if (PyErr_Occurred()) SWIG_fail;
31734 }
8edf1c75 31735 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
31736 {
31737 if (temp2)
31738 delete arg2;
31739 }
31740 return resultobj;
31741 fail:
31742 {
31743 if (temp2)
31744 delete arg2;
31745 }
31746 return NULL;
31747}
31748
31749
31750static PyObject *_wrap_ItemContainer_AppendItems(PyObject *self, PyObject *args, PyObject *kwargs) {
31751 PyObject *resultobj;
31752 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
31753 wxArrayString *arg2 = 0 ;
db914595 31754 bool temp2 = False ;
d14a1e28
RD
31755 PyObject * obj0 = 0 ;
31756 PyObject * obj1 = 0 ;
31757 char *kwnames[] = {
31758 (char *) "self",(char *) "strings", NULL
31759 };
31760
31761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) goto fail;
31762 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31763 {
31764 if (! PySequence_Check(obj1)) {
31765 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
31766 SWIG_fail;
31767 }
31768 arg2 = new wxArrayString;
db914595 31769 temp2 = True;
d14a1e28
RD
31770 int i, len=PySequence_Length(obj1);
31771 for (i=0; i<len; i++) {
31772 PyObject* item = PySequence_GetItem(obj1, i);
31773#if wxUSE_UNICODE
31774 PyObject* str = PyObject_Unicode(item);
31775#else
31776 PyObject* str = PyObject_Str(item);
31777#endif
31778 arg2->Add(Py2wxString(str));
31779 Py_DECREF(item);
31780 Py_DECREF(str);
31781 }
31782 }
31783 {
31784 PyThreadState* __tstate = wxPyBeginAllowThreads();
31785 (arg1)->Append((wxArrayString const &)*arg2);
31786
31787 wxPyEndAllowThreads(__tstate);
31788 if (PyErr_Occurred()) SWIG_fail;
31789 }
31790 Py_INCREF(Py_None); resultobj = Py_None;
31791 {
db914595 31792 if (temp2) delete arg2;
d14a1e28
RD
31793 }
31794 return resultobj;
31795 fail:
31796 {
db914595 31797 if (temp2) delete arg2;
d14a1e28
RD
31798 }
31799 return NULL;
31800}
31801
31802
31803static PyObject *_wrap_ItemContainer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
31804 PyObject *resultobj;
31805 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
31806 wxString *arg2 = 0 ;
31807 int arg3 ;
31808 PyObject *arg4 = (PyObject *) NULL ;
31809 int result;
423f194a 31810 bool temp2 = False ;
d14a1e28
RD
31811 PyObject * obj0 = 0 ;
31812 PyObject * obj1 = 0 ;
8edf1c75 31813 PyObject * obj2 = 0 ;
d14a1e28
RD
31814 PyObject * obj3 = 0 ;
31815 char *kwnames[] = {
31816 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
31817 };
31818
8edf1c75 31819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28
RD
31820 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31821 {
31822 arg2 = wxString_in_helper(obj1);
31823 if (arg2 == NULL) SWIG_fail;
423f194a 31824 temp2 = True;
d14a1e28 31825 }
8edf1c75
RD
31826 {
31827 arg3 = (int) SWIG_PyObj_AsInt(obj2);
31828 if (PyErr_Occurred()) SWIG_fail;
31829 }
d14a1e28
RD
31830 if (obj3) {
31831 arg4 = obj3;
31832 }
31833 {
31834 PyThreadState* __tstate = wxPyBeginAllowThreads();
31835 result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
31836
31837 wxPyEndAllowThreads(__tstate);
31838 if (PyErr_Occurred()) SWIG_fail;
31839 }
8edf1c75 31840 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
31841 {
31842 if (temp2)
31843 delete arg2;
31844 }
31845 return resultobj;
31846 fail:
31847 {
31848 if (temp2)
31849 delete arg2;
31850 }
31851 return NULL;
31852}
31853
31854
31855static PyObject *_wrap_ItemContainer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
31856 PyObject *resultobj;
31857 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
31858 PyObject * obj0 = 0 ;
31859 char *kwnames[] = {
31860 (char *) "self", NULL
31861 };
31862
31863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_Clear",kwnames,&obj0)) goto fail;
31864 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31865 {
31866 PyThreadState* __tstate = wxPyBeginAllowThreads();
31867 (arg1)->Clear();
31868
31869 wxPyEndAllowThreads(__tstate);
31870 if (PyErr_Occurred()) SWIG_fail;
31871 }
31872 Py_INCREF(Py_None); resultobj = Py_None;
31873 return resultobj;
31874 fail:
31875 return NULL;
31876}
31877
31878
31879static PyObject *_wrap_ItemContainer_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
31880 PyObject *resultobj;
31881 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
31882 int arg2 ;
31883 PyObject * obj0 = 0 ;
8edf1c75 31884 PyObject * obj1 = 0 ;
d14a1e28
RD
31885 char *kwnames[] = {
31886 (char *) "self",(char *) "n", NULL
31887 };
31888
8edf1c75 31889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Delete",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 31890 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
31891 {
31892 arg2 = (int) SWIG_PyObj_AsInt(obj1);
31893 if (PyErr_Occurred()) SWIG_fail;
31894 }
d14a1e28
RD
31895 {
31896 PyThreadState* __tstate = wxPyBeginAllowThreads();
31897 (arg1)->Delete(arg2);
31898
31899 wxPyEndAllowThreads(__tstate);
31900 if (PyErr_Occurred()) SWIG_fail;
31901 }
31902 Py_INCREF(Py_None); resultobj = Py_None;
31903 return resultobj;
31904 fail:
31905 return NULL;
31906}
31907
31908
31909static PyObject *_wrap_ItemContainer_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
31910 PyObject *resultobj;
31911 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
31912 int result;
31913 PyObject * obj0 = 0 ;
31914 char *kwnames[] = {
31915 (char *) "self", NULL
31916 };
31917
31918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetCount",kwnames,&obj0)) goto fail;
31919 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31920 {
31921 PyThreadState* __tstate = wxPyBeginAllowThreads();
31922 result = (int)((wxItemContainer const *)arg1)->GetCount();
31923
31924 wxPyEndAllowThreads(__tstate);
31925 if (PyErr_Occurred()) SWIG_fail;
31926 }
8edf1c75 31927 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
31928 return resultobj;
31929 fail:
31930 return NULL;
31931}
31932
31933
31934static PyObject *_wrap_ItemContainer_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
31935 PyObject *resultobj;
31936 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
31937 bool result;
31938 PyObject * obj0 = 0 ;
31939 char *kwnames[] = {
31940 (char *) "self", NULL
31941 };
31942
31943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_IsEmpty",kwnames,&obj0)) goto fail;
31944 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
31945 {
31946 PyThreadState* __tstate = wxPyBeginAllowThreads();
31947 result = (bool)((wxItemContainer const *)arg1)->IsEmpty();
31948
31949 wxPyEndAllowThreads(__tstate);
31950 if (PyErr_Occurred()) SWIG_fail;
31951 }
4e760a36 31952 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
31953 return resultobj;
31954 fail:
31955 return NULL;
31956}
31957
31958
31959static PyObject *_wrap_ItemContainer_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
31960 PyObject *resultobj;
31961 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
31962 int arg2 ;
31963 wxString result;
31964 PyObject * obj0 = 0 ;
8edf1c75 31965 PyObject * obj1 = 0 ;
d14a1e28
RD
31966 char *kwnames[] = {
31967 (char *) "self",(char *) "n", NULL
31968 };
31969
8edf1c75 31970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetString",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 31971 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
31972 {
31973 arg2 = (int) SWIG_PyObj_AsInt(obj1);
31974 if (PyErr_Occurred()) SWIG_fail;
31975 }
d14a1e28
RD
31976 {
31977 PyThreadState* __tstate = wxPyBeginAllowThreads();
31978 result = ((wxItemContainer const *)arg1)->GetString(arg2);
31979
31980 wxPyEndAllowThreads(__tstate);
31981 if (PyErr_Occurred()) SWIG_fail;
31982 }
31983 {
31984#if wxUSE_UNICODE
31985 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
31986#else
31987 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
31988#endif
31989 }
31990 return resultobj;
31991 fail:
31992 return NULL;
31993}
31994
31995
31996static PyObject *_wrap_ItemContainer_GetStrings(PyObject *self, PyObject *args, PyObject *kwargs) {
31997 PyObject *resultobj;
31998 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
31999 wxArrayString result;
32000 PyObject * obj0 = 0 ;
32001 char *kwnames[] = {
32002 (char *) "self", NULL
32003 };
32004
32005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStrings",kwnames,&obj0)) goto fail;
32006 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32007 {
32008 PyThreadState* __tstate = wxPyBeginAllowThreads();
32009 result = ((wxItemContainer const *)arg1)->GetStrings();
32010
32011 wxPyEndAllowThreads(__tstate);
32012 if (PyErr_Occurred()) SWIG_fail;
32013 }
32014 {
32015 resultobj = wxArrayString2PyList_helper(result);
32016 }
32017 return resultobj;
32018 fail:
32019 return NULL;
32020}
32021
32022
32023static PyObject *_wrap_ItemContainer_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
32024 PyObject *resultobj;
32025 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
32026 int arg2 ;
32027 wxString *arg3 = 0 ;
423f194a 32028 bool temp3 = False ;
d14a1e28 32029 PyObject * obj0 = 0 ;
8edf1c75 32030 PyObject * obj1 = 0 ;
d14a1e28
RD
32031 PyObject * obj2 = 0 ;
32032 char *kwnames[] = {
32033 (char *) "self",(char *) "n",(char *) "s", NULL
32034 };
32035
8edf1c75 32036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 32037 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
32038 {
32039 arg2 = (int) SWIG_PyObj_AsInt(obj1);
32040 if (PyErr_Occurred()) SWIG_fail;
32041 }
d14a1e28
RD
32042 {
32043 arg3 = wxString_in_helper(obj2);
32044 if (arg3 == NULL) SWIG_fail;
423f194a 32045 temp3 = True;
d14a1e28
RD
32046 }
32047 {
32048 PyThreadState* __tstate = wxPyBeginAllowThreads();
32049 (arg1)->SetString(arg2,(wxString const &)*arg3);
32050
32051 wxPyEndAllowThreads(__tstate);
32052 if (PyErr_Occurred()) SWIG_fail;
32053 }
32054 Py_INCREF(Py_None); resultobj = Py_None;
32055 {
32056 if (temp3)
32057 delete arg3;
32058 }
32059 return resultobj;
32060 fail:
32061 {
32062 if (temp3)
32063 delete arg3;
32064 }
32065 return NULL;
32066}
32067
32068
32069static PyObject *_wrap_ItemContainer_FindString(PyObject *self, PyObject *args, PyObject *kwargs) {
32070 PyObject *resultobj;
32071 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
32072 wxString *arg2 = 0 ;
32073 int result;
423f194a 32074 bool temp2 = False ;
d14a1e28
RD
32075 PyObject * obj0 = 0 ;
32076 PyObject * obj1 = 0 ;
32077 char *kwnames[] = {
32078 (char *) "self",(char *) "s", NULL
32079 };
32080
32081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) goto fail;
32082 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32083 {
32084 arg2 = wxString_in_helper(obj1);
32085 if (arg2 == NULL) SWIG_fail;
423f194a 32086 temp2 = True;
d14a1e28
RD
32087 }
32088 {
32089 PyThreadState* __tstate = wxPyBeginAllowThreads();
32090 result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2);
32091
32092 wxPyEndAllowThreads(__tstate);
32093 if (PyErr_Occurred()) SWIG_fail;
32094 }
8edf1c75 32095 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
32096 {
32097 if (temp2)
32098 delete arg2;
32099 }
32100 return resultobj;
32101 fail:
32102 {
32103 if (temp2)
32104 delete arg2;
32105 }
32106 return NULL;
32107}
32108
32109
32110static PyObject *_wrap_ItemContainer_Select(PyObject *self, PyObject *args, PyObject *kwargs) {
32111 PyObject *resultobj;
32112 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
32113 int arg2 ;
32114 PyObject * obj0 = 0 ;
8edf1c75 32115 PyObject * obj1 = 0 ;
d14a1e28
RD
32116 char *kwnames[] = {
32117 (char *) "self",(char *) "n", NULL
32118 };
32119
8edf1c75 32120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Select",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 32121 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
32122 {
32123 arg2 = (int) SWIG_PyObj_AsInt(obj1);
32124 if (PyErr_Occurred()) SWIG_fail;
32125 }
d14a1e28
RD
32126 {
32127 PyThreadState* __tstate = wxPyBeginAllowThreads();
32128 (arg1)->Select(arg2);
32129
32130 wxPyEndAllowThreads(__tstate);
32131 if (PyErr_Occurred()) SWIG_fail;
32132 }
32133 Py_INCREF(Py_None); resultobj = Py_None;
32134 return resultobj;
32135 fail:
32136 return NULL;
32137}
32138
32139
32140static PyObject *_wrap_ItemContainer_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
32141 PyObject *resultobj;
32142 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
32143 int result;
32144 PyObject * obj0 = 0 ;
32145 char *kwnames[] = {
32146 (char *) "self", NULL
32147 };
32148
32149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetSelection",kwnames,&obj0)) goto fail;
32150 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32151 {
32152 PyThreadState* __tstate = wxPyBeginAllowThreads();
32153 result = (int)((wxItemContainer const *)arg1)->GetSelection();
32154
32155 wxPyEndAllowThreads(__tstate);
32156 if (PyErr_Occurred()) SWIG_fail;
32157 }
8edf1c75 32158 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
32159 return resultobj;
32160 fail:
32161 return NULL;
32162}
32163
32164
32165static PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
32166 PyObject *resultobj;
32167 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
32168 wxString result;
32169 PyObject * obj0 = 0 ;
32170 char *kwnames[] = {
32171 (char *) "self", NULL
32172 };
32173
32174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStringSelection",kwnames,&obj0)) goto fail;
32175 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32176 {
32177 PyThreadState* __tstate = wxPyBeginAllowThreads();
32178 result = ((wxItemContainer const *)arg1)->GetStringSelection();
32179
32180 wxPyEndAllowThreads(__tstate);
32181 if (PyErr_Occurred()) SWIG_fail;
32182 }
32183 {
32184#if wxUSE_UNICODE
32185 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32186#else
32187 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32188#endif
32189 }
32190 return resultobj;
32191 fail:
32192 return NULL;
32193}
32194
32195
32196static PyObject *_wrap_ItemContainer_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
32197 PyObject *resultobj;
32198 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
32199 int arg2 ;
32200 PyObject *result;
32201 PyObject * obj0 = 0 ;
8edf1c75 32202 PyObject * obj1 = 0 ;
d14a1e28
RD
32203 char *kwnames[] = {
32204 (char *) "self",(char *) "n", NULL
32205 };
32206
8edf1c75 32207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetClientData",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 32208 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
32209 {
32210 arg2 = (int) SWIG_PyObj_AsInt(obj1);
32211 if (PyErr_Occurred()) SWIG_fail;
32212 }
d14a1e28
RD
32213 {
32214 PyThreadState* __tstate = wxPyBeginAllowThreads();
32215 result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2);
32216
32217 wxPyEndAllowThreads(__tstate);
32218 if (PyErr_Occurred()) SWIG_fail;
32219 }
32220 resultobj = result;
32221 return resultobj;
32222 fail:
32223 return NULL;
32224}
32225
32226
32227static PyObject *_wrap_ItemContainer_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
32228 PyObject *resultobj;
32229 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
32230 int arg2 ;
32231 PyObject *arg3 = (PyObject *) 0 ;
32232 PyObject * obj0 = 0 ;
8edf1c75 32233 PyObject * obj1 = 0 ;
d14a1e28
RD
32234 PyObject * obj2 = 0 ;
32235 char *kwnames[] = {
32236 (char *) "self",(char *) "n",(char *) "clientData", NULL
32237 };
32238
8edf1c75 32239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetClientData",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 32240 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxItemContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
32241 {
32242 arg2 = (int) SWIG_PyObj_AsInt(obj1);
32243 if (PyErr_Occurred()) SWIG_fail;
32244 }
d14a1e28
RD
32245 arg3 = obj2;
32246 {
32247 PyThreadState* __tstate = wxPyBeginAllowThreads();
32248 wxItemContainer_SetClientData(arg1,arg2,arg3);
32249
32250 wxPyEndAllowThreads(__tstate);
32251 if (PyErr_Occurred()) SWIG_fail;
32252 }
32253 Py_INCREF(Py_None); resultobj = Py_None;
32254 return resultobj;
32255 fail:
32256 return NULL;
32257}
32258
32259
32260static PyObject * ItemContainer_swigregister(PyObject *self, PyObject *args) {
32261 PyObject *obj;
32262 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
32263 SWIG_TypeClientData(SWIGTYPE_p_wxItemContainer, obj);
32264 Py_INCREF(obj);
32265 return Py_BuildValue((char *)"");
32266}
32267static PyObject * ControlWithItems_swigregister(PyObject *self, PyObject *args) {
32268 PyObject *obj;
32269 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
32270 SWIG_TypeClientData(SWIGTYPE_p_wxControlWithItems, obj);
32271 Py_INCREF(obj);
32272 return Py_BuildValue((char *)"");
32273}
32274static PyObject *_wrap_new_SizerItem(PyObject *self, PyObject *args, PyObject *kwargs) {
32275 PyObject *resultobj;
32276 wxSizerItem *result;
32277 char *kwnames[] = {
32278 NULL
32279 };
32280
32281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SizerItem",kwnames)) goto fail;
32282 {
32283 PyThreadState* __tstate = wxPyBeginAllowThreads();
32284 result = (wxSizerItem *)new wxSizerItem();
32285
32286 wxPyEndAllowThreads(__tstate);
32287 if (PyErr_Occurred()) SWIG_fail;
32288 }
32289 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizerItem, 1);
32290 return resultobj;
32291 fail:
32292 return NULL;
32293}
32294
32295
32296static PyObject *_wrap_new_SizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) {
32297 PyObject *resultobj;
32298 int arg1 ;
32299 int arg2 ;
32300 int arg3 ;
32301 int arg4 ;
32302 int arg5 ;
32303 wxObject *arg6 = (wxObject *) 0 ;
32304 wxSizerItem *result;
8edf1c75
RD
32305 PyObject * obj0 = 0 ;
32306 PyObject * obj1 = 0 ;
32307 PyObject * obj2 = 0 ;
32308 PyObject * obj3 = 0 ;
32309 PyObject * obj4 = 0 ;
d14a1e28
RD
32310 PyObject * obj5 = 0 ;
32311 char *kwnames[] = {
32312 (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
32313 };
32314
8edf1c75
RD
32315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_SizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
32316 {
32317 arg1 = (int) SWIG_PyObj_AsInt(obj0);
32318 if (PyErr_Occurred()) SWIG_fail;
32319 }
32320 {
32321 arg2 = (int) SWIG_PyObj_AsInt(obj1);
32322 if (PyErr_Occurred()) SWIG_fail;
32323 }
32324 {
32325 arg3 = (int) SWIG_PyObj_AsInt(obj2);
32326 if (PyErr_Occurred()) SWIG_fail;
32327 }
32328 {
32329 arg4 = (int) SWIG_PyObj_AsInt(obj3);
32330 if (PyErr_Occurred()) SWIG_fail;
32331 }
32332 {
32333 arg5 = (int) SWIG_PyObj_AsInt(obj4);
32334 if (PyErr_Occurred()) SWIG_fail;
32335 }
d14a1e28
RD
32336 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32337 {
32338 PyThreadState* __tstate = wxPyBeginAllowThreads();
32339 result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6);
32340
32341 wxPyEndAllowThreads(__tstate);
32342 if (PyErr_Occurred()) SWIG_fail;
32343 }
32344 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizerItem, 1);
32345 return resultobj;
32346 fail:
32347 return NULL;
32348}
32349
32350
32351static PyObject *_wrap_new_SizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
32352 PyObject *resultobj;
32353 wxWindow *arg1 = (wxWindow *) 0 ;
32354 int arg2 ;
32355 int arg3 ;
32356 int arg4 ;
32357 wxObject *arg5 = (wxObject *) 0 ;
32358 wxSizerItem *result;
32359 PyObject * obj0 = 0 ;
8edf1c75
RD
32360 PyObject * obj1 = 0 ;
32361 PyObject * obj2 = 0 ;
32362 PyObject * obj3 = 0 ;
d14a1e28
RD
32363 PyObject * obj4 = 0 ;
32364 char *kwnames[] = {
32365 (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
32366 };
32367
8edf1c75 32368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_SizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d14a1e28 32369 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
32370 {
32371 arg2 = (int) SWIG_PyObj_AsInt(obj1);
32372 if (PyErr_Occurred()) SWIG_fail;
32373 }
32374 {
32375 arg3 = (int) SWIG_PyObj_AsInt(obj2);
32376 if (PyErr_Occurred()) SWIG_fail;
32377 }
32378 {
32379 arg4 = (int) SWIG_PyObj_AsInt(obj3);
32380 if (PyErr_Occurred()) SWIG_fail;
32381 }
d14a1e28
RD
32382 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32383 {
32384 PyThreadState* __tstate = wxPyBeginAllowThreads();
32385 result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5);
32386
32387 wxPyEndAllowThreads(__tstate);
32388 if (PyErr_Occurred()) SWIG_fail;
32389 }
32390 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizerItem, 1);
32391 return resultobj;
32392 fail:
32393 return NULL;
32394}
32395
32396
32397static PyObject *_wrap_new_SizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
32398 PyObject *resultobj;
32399 wxSizer *arg1 = (wxSizer *) 0 ;
32400 int arg2 ;
32401 int arg3 ;
32402 int arg4 ;
32403 wxObject *arg5 = (wxObject *) 0 ;
32404 wxSizerItem *result;
32405 PyObject * obj0 = 0 ;
8edf1c75
RD
32406 PyObject * obj1 = 0 ;
32407 PyObject * obj2 = 0 ;
32408 PyObject * obj3 = 0 ;
d14a1e28
RD
32409 PyObject * obj4 = 0 ;
32410 char *kwnames[] = {
32411 (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
32412 };
32413
8edf1c75 32414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_SizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d14a1e28 32415 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
32416 {
32417 arg2 = (int) SWIG_PyObj_AsInt(obj1);
32418 if (PyErr_Occurred()) SWIG_fail;
32419 }
32420 {
32421 arg3 = (int) SWIG_PyObj_AsInt(obj2);
32422 if (PyErr_Occurred()) SWIG_fail;
32423 }
32424 {
32425 arg4 = (int) SWIG_PyObj_AsInt(obj3);
32426 if (PyErr_Occurred()) SWIG_fail;
32427 }
d14a1e28
RD
32428 if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32429 {
32430 PyThreadState* __tstate = wxPyBeginAllowThreads();
32431 result = (wxSizerItem *)new wxSizerItem(arg1,arg2,arg3,arg4,arg5);
32432
32433 wxPyEndAllowThreads(__tstate);
32434 if (PyErr_Occurred()) SWIG_fail;
32435 }
32436 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSizerItem, 1);
32437 return resultobj;
32438 fail:
32439 return NULL;
32440}
32441
32442
32443static PyObject *_wrap_SizerItem_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) {
32444 PyObject *resultobj;
32445 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32446 PyObject * obj0 = 0 ;
32447 char *kwnames[] = {
32448 (char *) "self", NULL
32449 };
32450
32451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DeleteWindows",kwnames,&obj0)) goto fail;
32452 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32453 {
32454 PyThreadState* __tstate = wxPyBeginAllowThreads();
32455 (arg1)->DeleteWindows();
32456
32457 wxPyEndAllowThreads(__tstate);
32458 if (PyErr_Occurred()) SWIG_fail;
32459 }
32460 Py_INCREF(Py_None); resultobj = Py_None;
32461 return resultobj;
32462 fail:
32463 return NULL;
32464}
32465
32466
32467static PyObject *_wrap_SizerItem_DetachSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
32468 PyObject *resultobj;
32469 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32470 PyObject * obj0 = 0 ;
32471 char *kwnames[] = {
32472 (char *) "self", NULL
32473 };
32474
32475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DetachSizer",kwnames,&obj0)) goto fail;
32476 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32477 {
32478 PyThreadState* __tstate = wxPyBeginAllowThreads();
32479 (arg1)->DetachSizer();
32480
32481 wxPyEndAllowThreads(__tstate);
32482 if (PyErr_Occurred()) SWIG_fail;
32483 }
32484 Py_INCREF(Py_None); resultobj = Py_None;
32485 return resultobj;
32486 fail:
32487 return NULL;
32488}
32489
32490
32491static PyObject *_wrap_SizerItem_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
32492 PyObject *resultobj;
32493 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32494 wxSize result;
32495 PyObject * obj0 = 0 ;
32496 char *kwnames[] = {
32497 (char *) "self", NULL
32498 };
32499
32500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSize",kwnames,&obj0)) goto fail;
32501 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32502 {
32503 PyThreadState* __tstate = wxPyBeginAllowThreads();
32504 result = (arg1)->GetSize();
32505
32506 wxPyEndAllowThreads(__tstate);
32507 if (PyErr_Occurred()) SWIG_fail;
32508 }
32509 {
32510 wxSize * resultptr;
32511 resultptr = new wxSize((wxSize &) result);
32512 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
32513 }
32514 return resultobj;
32515 fail:
32516 return NULL;
32517}
32518
32519
32520static PyObject *_wrap_SizerItem_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
32521 PyObject *resultobj;
32522 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32523 wxSize result;
32524 PyObject * obj0 = 0 ;
32525 char *kwnames[] = {
32526 (char *) "self", NULL
32527 };
32528
32529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_CalcMin",kwnames,&obj0)) goto fail;
32530 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32531 {
32532 PyThreadState* __tstate = wxPyBeginAllowThreads();
32533 result = (arg1)->CalcMin();
32534
32535 wxPyEndAllowThreads(__tstate);
32536 if (PyErr_Occurred()) SWIG_fail;
32537 }
32538 {
32539 wxSize * resultptr;
32540 resultptr = new wxSize((wxSize &) result);
32541 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
32542 }
32543 return resultobj;
32544 fail:
32545 return NULL;
32546}
32547
32548
32549static PyObject *_wrap_SizerItem_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) {
32550 PyObject *resultobj;
32551 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32552 wxPoint arg2 ;
32553 wxSize arg3 ;
32554 wxPoint *argp2 ;
32555 wxSize *argp3 ;
32556 PyObject * obj0 = 0 ;
32557 PyObject * obj1 = 0 ;
32558 PyObject * obj2 = 0 ;
32559 char *kwnames[] = {
32560 (char *) "self",(char *) "pos",(char *) "size", NULL
32561 };
32562
32563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail;
32564 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32565 if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
32566 arg2 = *argp2;
32567 if ((SWIG_ConvertPtr(obj2,(void **) &argp3, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
32568 arg3 = *argp3;
32569 {
32570 PyThreadState* __tstate = wxPyBeginAllowThreads();
32571 (arg1)->SetDimension(arg2,arg3);
32572
32573 wxPyEndAllowThreads(__tstate);
32574 if (PyErr_Occurred()) SWIG_fail;
32575 }
32576 Py_INCREF(Py_None); resultobj = Py_None;
32577 return resultobj;
32578 fail:
32579 return NULL;
32580}
32581
32582
32583static PyObject *_wrap_SizerItem_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) {
32584 PyObject *resultobj;
32585 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32586 wxSize result;
32587 PyObject * obj0 = 0 ;
32588 char *kwnames[] = {
32589 (char *) "self", NULL
32590 };
32591
32592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSize",kwnames,&obj0)) goto fail;
32593 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32594 {
32595 PyThreadState* __tstate = wxPyBeginAllowThreads();
32596 result = (arg1)->GetMinSize();
32597
32598 wxPyEndAllowThreads(__tstate);
32599 if (PyErr_Occurred()) SWIG_fail;
32600 }
32601 {
32602 wxSize * resultptr;
32603 resultptr = new wxSize((wxSize &) result);
32604 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
32605 }
32606 return resultobj;
32607 fail:
32608 return NULL;
32609}
32610
32611
32612static PyObject *_wrap_SizerItem_SetInitSize(PyObject *self, PyObject *args, PyObject *kwargs) {
32613 PyObject *resultobj;
32614 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32615 int arg2 ;
32616 int arg3 ;
32617 PyObject * obj0 = 0 ;
8edf1c75
RD
32618 PyObject * obj1 = 0 ;
32619 PyObject * obj2 = 0 ;
d14a1e28
RD
32620 char *kwnames[] = {
32621 (char *) "self",(char *) "x",(char *) "y", NULL
32622 };
32623
8edf1c75 32624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetInitSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 32625 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
32626 {
32627 arg2 = (int) SWIG_PyObj_AsInt(obj1);
32628 if (PyErr_Occurred()) SWIG_fail;
32629 }
32630 {
32631 arg3 = (int) SWIG_PyObj_AsInt(obj2);
32632 if (PyErr_Occurred()) SWIG_fail;
32633 }
d14a1e28
RD
32634 {
32635 PyThreadState* __tstate = wxPyBeginAllowThreads();
32636 (arg1)->SetInitSize(arg2,arg3);
32637
32638 wxPyEndAllowThreads(__tstate);
32639 if (PyErr_Occurred()) SWIG_fail;
32640 }
32641 Py_INCREF(Py_None); resultobj = Py_None;
32642 return resultobj;
32643 fail:
32644 return NULL;
32645}
32646
32647
32648static PyObject *_wrap_SizerItem_SetRatioWH(PyObject *self, PyObject *args, PyObject *kwargs) {
32649 PyObject *resultobj;
32650 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32651 int arg2 ;
32652 int arg3 ;
32653 PyObject * obj0 = 0 ;
8edf1c75
RD
32654 PyObject * obj1 = 0 ;
32655 PyObject * obj2 = 0 ;
d14a1e28
RD
32656 char *kwnames[] = {
32657 (char *) "self",(char *) "width",(char *) "height", NULL
32658 };
32659
8edf1c75 32660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetRatioWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 32661 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
32662 {
32663 arg2 = (int) SWIG_PyObj_AsInt(obj1);
32664 if (PyErr_Occurred()) SWIG_fail;
32665 }
32666 {
32667 arg3 = (int) SWIG_PyObj_AsInt(obj2);
32668 if (PyErr_Occurred()) SWIG_fail;
32669 }
d14a1e28
RD
32670 {
32671 PyThreadState* __tstate = wxPyBeginAllowThreads();
32672 (arg1)->SetRatio(arg2,arg3);
32673
32674 wxPyEndAllowThreads(__tstate);
32675 if (PyErr_Occurred()) SWIG_fail;
32676 }
32677 Py_INCREF(Py_None); resultobj = Py_None;
32678 return resultobj;
32679 fail:
32680 return NULL;
32681}
32682
32683
32684static PyObject *_wrap_SizerItem_SetRatioSize(PyObject *self, PyObject *args, PyObject *kwargs) {
32685 PyObject *resultobj;
32686 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32687 wxSize arg2 ;
32688 wxSize *argp2 ;
32689 PyObject * obj0 = 0 ;
32690 PyObject * obj1 = 0 ;
32691 char *kwnames[] = {
32692 (char *) "self",(char *) "size", NULL
32693 };
32694
32695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) goto fail;
32696 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32697 if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxSize,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
32698 arg2 = *argp2;
32699 {
32700 PyThreadState* __tstate = wxPyBeginAllowThreads();
32701 (arg1)->SetRatio(arg2);
32702
32703 wxPyEndAllowThreads(__tstate);
32704 if (PyErr_Occurred()) SWIG_fail;
32705 }
32706 Py_INCREF(Py_None); resultobj = Py_None;
32707 return resultobj;
32708 fail:
32709 return NULL;
32710}
32711
32712
32713static PyObject *_wrap_SizerItem_SetRatio(PyObject *self, PyObject *args, PyObject *kwargs) {
32714 PyObject *resultobj;
32715 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32716 float arg2 ;
32717 PyObject * obj0 = 0 ;
8edf1c75 32718 PyObject * obj1 = 0 ;
d14a1e28
RD
32719 char *kwnames[] = {
32720 (char *) "self",(char *) "ratio", NULL
32721 };
32722
8edf1c75 32723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatio",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 32724 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
32725 {
32726 arg2 = (float) SWIG_PyObj_AsFloat(obj1);
32727 if (PyErr_Occurred()) SWIG_fail;
32728 }
d14a1e28
RD
32729 {
32730 PyThreadState* __tstate = wxPyBeginAllowThreads();
32731 (arg1)->SetRatio(arg2);
32732
32733 wxPyEndAllowThreads(__tstate);
32734 if (PyErr_Occurred()) SWIG_fail;
32735 }
32736 Py_INCREF(Py_None); resultobj = Py_None;
32737 return resultobj;
32738 fail:
32739 return NULL;
32740}
32741
32742
32743static PyObject *_wrap_SizerItem_GetRatio(PyObject *self, PyObject *args, PyObject *kwargs) {
32744 PyObject *resultobj;
32745 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32746 float result;
32747 PyObject * obj0 = 0 ;
32748 char *kwnames[] = {
32749 (char *) "self", NULL
32750 };
32751
32752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRatio",kwnames,&obj0)) goto fail;
32753 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32754 {
32755 PyThreadState* __tstate = wxPyBeginAllowThreads();
32756 result = (float)(arg1)->GetRatio();
32757
32758 wxPyEndAllowThreads(__tstate);
32759 if (PyErr_Occurred()) SWIG_fail;
32760 }
8edf1c75 32761 resultobj = SWIG_PyObj_FromFloat((float)result);
d14a1e28
RD
32762 return resultobj;
32763 fail:
32764 return NULL;
32765}
32766
32767
32768static PyObject *_wrap_SizerItem_IsWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
32769 PyObject *resultobj;
32770 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32771 bool result;
32772 PyObject * obj0 = 0 ;
32773 char *kwnames[] = {
32774 (char *) "self", NULL
32775 };
32776
32777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsWindow",kwnames,&obj0)) goto fail;
32778 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32779 {
32780 PyThreadState* __tstate = wxPyBeginAllowThreads();
32781 result = (bool)(arg1)->IsWindow();
32782
32783 wxPyEndAllowThreads(__tstate);
32784 if (PyErr_Occurred()) SWIG_fail;
32785 }
4e760a36 32786 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
32787 return resultobj;
32788 fail:
32789 return NULL;
32790}
32791
32792
32793static PyObject *_wrap_SizerItem_IsSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
32794 PyObject *resultobj;
32795 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32796 bool result;
32797 PyObject * obj0 = 0 ;
32798 char *kwnames[] = {
32799 (char *) "self", NULL
32800 };
32801
32802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSizer",kwnames,&obj0)) goto fail;
32803 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32804 {
32805 PyThreadState* __tstate = wxPyBeginAllowThreads();
32806 result = (bool)(arg1)->IsSizer();
32807
32808 wxPyEndAllowThreads(__tstate);
32809 if (PyErr_Occurred()) SWIG_fail;
32810 }
4e760a36 32811 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
32812 return resultobj;
32813 fail:
32814 return NULL;
32815}
32816
32817
32818static PyObject *_wrap_SizerItem_IsSpacer(PyObject *self, PyObject *args, PyObject *kwargs) {
32819 PyObject *resultobj;
32820 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32821 bool result;
32822 PyObject * obj0 = 0 ;
32823 char *kwnames[] = {
32824 (char *) "self", NULL
32825 };
32826
32827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSpacer",kwnames,&obj0)) goto fail;
32828 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32829 {
32830 PyThreadState* __tstate = wxPyBeginAllowThreads();
32831 result = (bool)(arg1)->IsSpacer();
32832
32833 wxPyEndAllowThreads(__tstate);
32834 if (PyErr_Occurred()) SWIG_fail;
32835 }
4e760a36 32836 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
32837 return resultobj;
32838 fail:
32839 return NULL;
32840}
32841
32842
32843static PyObject *_wrap_SizerItem_SetProportion(PyObject *self, PyObject *args, PyObject *kwargs) {
32844 PyObject *resultobj;
32845 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32846 int arg2 ;
32847 PyObject * obj0 = 0 ;
8edf1c75 32848 PyObject * obj1 = 0 ;
d14a1e28
RD
32849 char *kwnames[] = {
32850 (char *) "self",(char *) "proportion", NULL
32851 };
32852
8edf1c75 32853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetProportion",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 32854 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
32855 {
32856 arg2 = (int) SWIG_PyObj_AsInt(obj1);
32857 if (PyErr_Occurred()) SWIG_fail;
32858 }
d14a1e28
RD
32859 {
32860 PyThreadState* __tstate = wxPyBeginAllowThreads();
32861 (arg1)->SetProportion(arg2);
32862
32863 wxPyEndAllowThreads(__tstate);
32864 if (PyErr_Occurred()) SWIG_fail;
32865 }
32866 Py_INCREF(Py_None); resultobj = Py_None;
32867 return resultobj;
32868 fail:
32869 return NULL;
32870}
32871
32872
32873static PyObject *_wrap_SizerItem_GetProportion(PyObject *self, PyObject *args, PyObject *kwargs) {
32874 PyObject *resultobj;
32875 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32876 int result;
32877 PyObject * obj0 = 0 ;
32878 char *kwnames[] = {
32879 (char *) "self", NULL
32880 };
32881
32882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetProportion",kwnames,&obj0)) goto fail;
32883 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32884 {
32885 PyThreadState* __tstate = wxPyBeginAllowThreads();
32886 result = (int)(arg1)->GetProportion();
32887
32888 wxPyEndAllowThreads(__tstate);
32889 if (PyErr_Occurred()) SWIG_fail;
32890 }
8edf1c75 32891 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
32892 return resultobj;
32893 fail:
32894 return NULL;
32895}
32896
32897
32898static PyObject *_wrap_SizerItem_SetFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
32899 PyObject *resultobj;
32900 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32901 int arg2 ;
32902 PyObject * obj0 = 0 ;
8edf1c75 32903 PyObject * obj1 = 0 ;
d14a1e28
RD
32904 char *kwnames[] = {
32905 (char *) "self",(char *) "flag", NULL
32906 };
32907
8edf1c75 32908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetFlag",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 32909 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
32910 {
32911 arg2 = (int) SWIG_PyObj_AsInt(obj1);
32912 if (PyErr_Occurred()) SWIG_fail;
32913 }
d14a1e28
RD
32914 {
32915 PyThreadState* __tstate = wxPyBeginAllowThreads();
32916 (arg1)->SetFlag(arg2);
32917
32918 wxPyEndAllowThreads(__tstate);
32919 if (PyErr_Occurred()) SWIG_fail;
32920 }
32921 Py_INCREF(Py_None); resultobj = Py_None;
32922 return resultobj;
32923 fail:
32924 return NULL;
32925}
32926
32927
32928static PyObject *_wrap_SizerItem_GetFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
32929 PyObject *resultobj;
32930 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32931 int result;
32932 PyObject * obj0 = 0 ;
32933 char *kwnames[] = {
32934 (char *) "self", NULL
32935 };
32936
32937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetFlag",kwnames,&obj0)) goto fail;
32938 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32939 {
32940 PyThreadState* __tstate = wxPyBeginAllowThreads();
32941 result = (int)(arg1)->GetFlag();
32942
32943 wxPyEndAllowThreads(__tstate);
32944 if (PyErr_Occurred()) SWIG_fail;
32945 }
8edf1c75 32946 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
32947 return resultobj;
32948 fail:
32949 return NULL;
32950}
32951
32952
32953static PyObject *_wrap_SizerItem_SetBorder(PyObject *self, PyObject *args, PyObject *kwargs) {
32954 PyObject *resultobj;
32955 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32956 int arg2 ;
32957 PyObject * obj0 = 0 ;
8edf1c75 32958 PyObject * obj1 = 0 ;
d14a1e28
RD
32959 char *kwnames[] = {
32960 (char *) "self",(char *) "border", NULL
32961 };
32962
8edf1c75 32963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetBorder",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 32964 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
32965 {
32966 arg2 = (int) SWIG_PyObj_AsInt(obj1);
32967 if (PyErr_Occurred()) SWIG_fail;
32968 }
d14a1e28
RD
32969 {
32970 PyThreadState* __tstate = wxPyBeginAllowThreads();
32971 (arg1)->SetBorder(arg2);
32972
32973 wxPyEndAllowThreads(__tstate);
32974 if (PyErr_Occurred()) SWIG_fail;
32975 }
32976 Py_INCREF(Py_None); resultobj = Py_None;
32977 return resultobj;
32978 fail:
32979 return NULL;
32980}
32981
32982
32983static PyObject *_wrap_SizerItem_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) {
32984 PyObject *resultobj;
32985 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
32986 int result;
32987 PyObject * obj0 = 0 ;
32988 char *kwnames[] = {
32989 (char *) "self", NULL
32990 };
32991
32992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetBorder",kwnames,&obj0)) goto fail;
32993 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
32994 {
32995 PyThreadState* __tstate = wxPyBeginAllowThreads();
32996 result = (int)(arg1)->GetBorder();
32997
32998 wxPyEndAllowThreads(__tstate);
32999 if (PyErr_Occurred()) SWIG_fail;
33000 }
8edf1c75 33001 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
33002 return resultobj;
33003 fail:
33004 return NULL;
33005}
33006
33007
33008static PyObject *_wrap_SizerItem_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
33009 PyObject *resultobj;
33010 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
33011 wxWindow *result;
33012 PyObject * obj0 = 0 ;
33013 char *kwnames[] = {
33014 (char *) "self", NULL
33015 };
33016
33017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetWindow",kwnames,&obj0)) goto fail;
33018 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33019 {
33020 PyThreadState* __tstate = wxPyBeginAllowThreads();
33021 result = (wxWindow *)(arg1)->GetWindow();
33022
33023 wxPyEndAllowThreads(__tstate);
33024 if (PyErr_Occurred()) SWIG_fail;
33025 }
33026 {
33027 resultobj = wxPyMake_wxObject(result);
33028 }
33029 return resultobj;
33030 fail:
33031 return NULL;
33032}
33033
33034
33035static PyObject *_wrap_SizerItem_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
33036 PyObject *resultobj;
33037 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
33038 wxWindow *arg2 = (wxWindow *) 0 ;
33039 PyObject * obj0 = 0 ;
33040 PyObject * obj1 = 0 ;
33041 char *kwnames[] = {
33042 (char *) "self",(char *) "window", NULL
33043 };
33044
33045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) goto fail;
33046 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33047 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33048 {
33049 PyThreadState* __tstate = wxPyBeginAllowThreads();
33050 (arg1)->SetWindow(arg2);
33051
33052 wxPyEndAllowThreads(__tstate);
33053 if (PyErr_Occurred()) SWIG_fail;
33054 }
33055 Py_INCREF(Py_None); resultobj = Py_None;
33056 return resultobj;
33057 fail:
33058 return NULL;
33059}
33060
33061
33062static PyObject *_wrap_SizerItem_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
33063 PyObject *resultobj;
33064 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
33065 wxSizer *result;
33066 PyObject * obj0 = 0 ;
33067 char *kwnames[] = {
33068 (char *) "self", NULL
33069 };
33070
33071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSizer",kwnames,&obj0)) goto fail;
33072 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33073 {
33074 PyThreadState* __tstate = wxPyBeginAllowThreads();
33075 result = (wxSizer *)(arg1)->GetSizer();
33076
33077 wxPyEndAllowThreads(__tstate);
33078 if (PyErr_Occurred()) SWIG_fail;
33079 }
33080 {
33081 resultobj = wxPyMake_wxSizer(result);
33082 }
33083 return resultobj;
33084 fail:
33085 return NULL;
33086}
33087
33088
33089static PyObject *_wrap_SizerItem_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
33090 PyObject *resultobj;
33091 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
33092 wxSizer *arg2 = (wxSizer *) 0 ;
33093 PyObject * obj0 = 0 ;
33094 PyObject * obj1 = 0 ;
33095 char *kwnames[] = {
33096 (char *) "self",(char *) "sizer", NULL
33097 };
33098
33099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) goto fail;
33100 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33101 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33102 {
33103 PyThreadState* __tstate = wxPyBeginAllowThreads();
33104 (arg1)->SetSizer(arg2);
33105
33106 wxPyEndAllowThreads(__tstate);
33107 if (PyErr_Occurred()) SWIG_fail;
33108 }
33109 Py_INCREF(Py_None); resultobj = Py_None;
33110 return resultobj;
33111 fail:
33112 return NULL;
33113}
33114
33115
33116static PyObject *_wrap_SizerItem_GetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) {
33117 PyObject *resultobj;
33118 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
33119 wxSize *result;
33120 PyObject * obj0 = 0 ;
33121 char *kwnames[] = {
33122 (char *) "self", NULL
33123 };
33124
33125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSpacer",kwnames,&obj0)) goto fail;
33126 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33127 {
33128 PyThreadState* __tstate = wxPyBeginAllowThreads();
33129 {
33130 wxSize const &_result_ref = (arg1)->GetSpacer();
33131 result = (wxSize *) &_result_ref;
33132 }
33133
33134 wxPyEndAllowThreads(__tstate);
33135 if (PyErr_Occurred()) SWIG_fail;
33136 }
33137 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSize, 0);
33138 return resultobj;
33139 fail:
33140 return NULL;
33141}
33142
33143
33144static PyObject *_wrap_SizerItem_SetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) {
33145 PyObject *resultobj;
33146 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
33147 wxSize *arg2 = 0 ;
33148 wxSize temp2 ;
33149 PyObject * obj0 = 0 ;
33150 PyObject * obj1 = 0 ;
33151 char *kwnames[] = {
33152 (char *) "self",(char *) "size", NULL
33153 };
33154
33155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) goto fail;
33156 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33157 {
33158 arg2 = &temp2;
33159 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
33160 }
33161 {
33162 PyThreadState* __tstate = wxPyBeginAllowThreads();
33163 (arg1)->SetSpacer((wxSize const &)*arg2);
33164
33165 wxPyEndAllowThreads(__tstate);
33166 if (PyErr_Occurred()) SWIG_fail;
33167 }
33168 Py_INCREF(Py_None); resultobj = Py_None;
33169 return resultobj;
33170 fail:
33171 return NULL;
33172}
33173
33174
33175static PyObject *_wrap_SizerItem_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
33176 PyObject *resultobj;
33177 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
33178 bool arg2 ;
33179 PyObject * obj0 = 0 ;
33180 PyObject * obj1 = 0 ;
33181 char *kwnames[] = {
33182 (char *) "self",(char *) "show", NULL
33183 };
33184
33185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) goto fail;
33186 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 33187 {
8edf1c75 33188 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
33189 if (PyErr_Occurred()) SWIG_fail;
33190 }
d14a1e28
RD
33191 {
33192 PyThreadState* __tstate = wxPyBeginAllowThreads();
33193 (arg1)->Show(arg2);
33194
33195 wxPyEndAllowThreads(__tstate);
33196 if (PyErr_Occurred()) SWIG_fail;
33197 }
33198 Py_INCREF(Py_None); resultobj = Py_None;
33199 return resultobj;
33200 fail:
33201 return NULL;
33202}
33203
33204
33205static PyObject *_wrap_SizerItem_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) {
33206 PyObject *resultobj;
33207 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
33208 bool result;
33209 PyObject * obj0 = 0 ;
33210 char *kwnames[] = {
33211 (char *) "self", NULL
33212 };
33213
33214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsShown",kwnames,&obj0)) goto fail;
33215 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33216 {
33217 PyThreadState* __tstate = wxPyBeginAllowThreads();
33218 result = (bool)(arg1)->IsShown();
33219
33220 wxPyEndAllowThreads(__tstate);
33221 if (PyErr_Occurred()) SWIG_fail;
33222 }
4e760a36 33223 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
33224 return resultobj;
33225 fail:
33226 return NULL;
33227}
33228
33229
33230static PyObject *_wrap_SizerItem_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
33231 PyObject *resultobj;
33232 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
33233 wxPoint result;
33234 PyObject * obj0 = 0 ;
33235 char *kwnames[] = {
33236 (char *) "self", NULL
33237 };
33238
33239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetPosition",kwnames,&obj0)) goto fail;
33240 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33241 {
33242 PyThreadState* __tstate = wxPyBeginAllowThreads();
33243 result = (arg1)->GetPosition();
33244
33245 wxPyEndAllowThreads(__tstate);
33246 if (PyErr_Occurred()) SWIG_fail;
33247 }
33248 {
33249 wxPoint * resultptr;
33250 resultptr = new wxPoint((wxPoint &) result);
33251 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
33252 }
33253 return resultobj;
33254 fail:
33255 return NULL;
33256}
33257
33258
33259static PyObject *_wrap_SizerItem_GetUserData(PyObject *self, PyObject *args, PyObject *kwargs) {
33260 PyObject *resultobj;
33261 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
33262 PyObject *result;
33263 PyObject * obj0 = 0 ;
33264 char *kwnames[] = {
33265 (char *) "self", NULL
33266 };
33267
33268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetUserData",kwnames,&obj0)) goto fail;
33269 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33270 {
33271 PyThreadState* __tstate = wxPyBeginAllowThreads();
33272 result = (PyObject *)wxSizerItem_GetUserData(arg1);
33273
33274 wxPyEndAllowThreads(__tstate);
33275 if (PyErr_Occurred()) SWIG_fail;
33276 }
33277 resultobj = result;
33278 return resultobj;
33279 fail:
33280 return NULL;
33281}
33282
33283
33284static PyObject * SizerItem_swigregister(PyObject *self, PyObject *args) {
33285 PyObject *obj;
33286 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
33287 SWIG_TypeClientData(SWIGTYPE_p_wxSizerItem, obj);
33288 Py_INCREF(obj);
33289 return Py_BuildValue((char *)"");
33290}
33291static PyObject *_wrap_Sizer__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
33292 PyObject *resultobj;
33293 wxSizer *arg1 = (wxSizer *) 0 ;
33294 PyObject *arg2 = (PyObject *) 0 ;
33295 PyObject * obj0 = 0 ;
33296 PyObject * obj1 = 0 ;
33297 char *kwnames[] = {
33298 (char *) "self",(char *) "_self", NULL
33299 };
33300
33301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
33302 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33303 arg2 = obj1;
33304 {
33305 PyThreadState* __tstate = wxPyBeginAllowThreads();
33306 wxSizer__setOORInfo(arg1,arg2);
33307
33308 wxPyEndAllowThreads(__tstate);
33309 if (PyErr_Occurred()) SWIG_fail;
33310 }
33311 Py_INCREF(Py_None); resultobj = Py_None;
33312 return resultobj;
33313 fail:
33314 return NULL;
33315}
33316
33317
33318static PyObject *_wrap_Sizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
33319 PyObject *resultobj;
33320 wxSizer *arg1 = (wxSizer *) 0 ;
33321 PyObject *arg2 = (PyObject *) 0 ;
33322 int arg3 = (int) 0 ;
33323 int arg4 = (int) 0 ;
33324 int arg5 = (int) 0 ;
33325 PyObject *arg6 = (PyObject *) NULL ;
33326 PyObject * obj0 = 0 ;
33327 PyObject * obj1 = 0 ;
8edf1c75
RD
33328 PyObject * obj2 = 0 ;
33329 PyObject * obj3 = 0 ;
33330 PyObject * obj4 = 0 ;
d14a1e28
RD
33331 PyObject * obj5 = 0 ;
33332 char *kwnames[] = {
33333 (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
33334 };
33335
8edf1c75 33336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
d14a1e28
RD
33337 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33338 arg2 = obj1;
8edf1c75
RD
33339 if (obj2) {
33340 {
33341 arg3 = (int) SWIG_PyObj_AsInt(obj2);
33342 if (PyErr_Occurred()) SWIG_fail;
33343 }
33344 }
33345 if (obj3) {
33346 {
33347 arg4 = (int) SWIG_PyObj_AsInt(obj3);
33348 if (PyErr_Occurred()) SWIG_fail;
33349 }
33350 }
33351 if (obj4) {
33352 {
33353 arg5 = (int) SWIG_PyObj_AsInt(obj4);
33354 if (PyErr_Occurred()) SWIG_fail;
33355 }
33356 }
d14a1e28
RD
33357 if (obj5) {
33358 arg6 = obj5;
33359 }
33360 {
33361 PyThreadState* __tstate = wxPyBeginAllowThreads();
33362 wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6);
33363
33364 wxPyEndAllowThreads(__tstate);
33365 if (PyErr_Occurred()) SWIG_fail;
33366 }
33367 Py_INCREF(Py_None); resultobj = Py_None;
33368 return resultobj;
33369 fail:
33370 return NULL;
33371}
33372
33373
33374static PyObject *_wrap_Sizer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
33375 PyObject *resultobj;
33376 wxSizer *arg1 = (wxSizer *) 0 ;
33377 int arg2 ;
33378 PyObject *arg3 = (PyObject *) 0 ;
33379 int arg4 = (int) 0 ;
33380 int arg5 = (int) 0 ;
33381 int arg6 = (int) 0 ;
33382 PyObject *arg7 = (PyObject *) NULL ;
33383 PyObject * obj0 = 0 ;
8edf1c75 33384 PyObject * obj1 = 0 ;
d14a1e28 33385 PyObject * obj2 = 0 ;
8edf1c75
RD
33386 PyObject * obj3 = 0 ;
33387 PyObject * obj4 = 0 ;
33388 PyObject * obj5 = 0 ;
d14a1e28
RD
33389 PyObject * obj6 = 0 ;
33390 char *kwnames[] = {
33391 (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
33392 };
33393
8edf1c75 33394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Sizer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
d14a1e28 33395 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
33396 {
33397 arg2 = (int) SWIG_PyObj_AsInt(obj1);
33398 if (PyErr_Occurred()) SWIG_fail;
33399 }
d14a1e28 33400 arg3 = obj2;
8edf1c75
RD
33401 if (obj3) {
33402 {
33403 arg4 = (int) SWIG_PyObj_AsInt(obj3);
33404 if (PyErr_Occurred()) SWIG_fail;
33405 }
33406 }
33407 if (obj4) {
33408 {
33409 arg5 = (int) SWIG_PyObj_AsInt(obj4);
33410 if (PyErr_Occurred()) SWIG_fail;
33411 }
33412 }
33413 if (obj5) {
33414 {
33415 arg6 = (int) SWIG_PyObj_AsInt(obj5);
33416 if (PyErr_Occurred()) SWIG_fail;
33417 }
33418 }
d14a1e28
RD
33419 if (obj6) {
33420 arg7 = obj6;
33421 }
33422 {
33423 PyThreadState* __tstate = wxPyBeginAllowThreads();
33424 wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
33425
33426 wxPyEndAllowThreads(__tstate);
33427 if (PyErr_Occurred()) SWIG_fail;
33428 }
33429 Py_INCREF(Py_None); resultobj = Py_None;
33430 return resultobj;
33431 fail:
33432 return NULL;
33433}
33434
33435
33436static PyObject *_wrap_Sizer_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) {
33437 PyObject *resultobj;
33438 wxSizer *arg1 = (wxSizer *) 0 ;
33439 PyObject *arg2 = (PyObject *) 0 ;
33440 int arg3 = (int) 0 ;
33441 int arg4 = (int) 0 ;
33442 int arg5 = (int) 0 ;
33443 PyObject *arg6 = (PyObject *) NULL ;
33444 PyObject * obj0 = 0 ;
33445 PyObject * obj1 = 0 ;
8edf1c75
RD
33446 PyObject * obj2 = 0 ;
33447 PyObject * obj3 = 0 ;
33448 PyObject * obj4 = 0 ;
d14a1e28
RD
33449 PyObject * obj5 = 0 ;
33450 char *kwnames[] = {
33451 (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
33452 };
33453
8edf1c75 33454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
d14a1e28
RD
33455 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33456 arg2 = obj1;
8edf1c75
RD
33457 if (obj2) {
33458 {
33459 arg3 = (int) SWIG_PyObj_AsInt(obj2);
33460 if (PyErr_Occurred()) SWIG_fail;
33461 }
33462 }
33463 if (obj3) {
33464 {
33465 arg4 = (int) SWIG_PyObj_AsInt(obj3);
33466 if (PyErr_Occurred()) SWIG_fail;
33467 }
33468 }
33469 if (obj4) {
33470 {
33471 arg5 = (int) SWIG_PyObj_AsInt(obj4);
33472 if (PyErr_Occurred()) SWIG_fail;
33473 }
33474 }
d14a1e28
RD
33475 if (obj5) {
33476 arg6 = obj5;
33477 }
33478 {
33479 PyThreadState* __tstate = wxPyBeginAllowThreads();
33480 wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6);
33481
33482 wxPyEndAllowThreads(__tstate);
33483 if (PyErr_Occurred()) SWIG_fail;
33484 }
33485 Py_INCREF(Py_None); resultobj = Py_None;
33486 return resultobj;
33487 fail:
33488 return NULL;
33489}
33490
33491
33492static PyObject *_wrap_Sizer_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
33493 PyObject *resultobj;
33494 wxSizer *arg1 = (wxSizer *) 0 ;
33495 PyObject *arg2 = (PyObject *) 0 ;
33496 bool result;
33497 PyObject * obj0 = 0 ;
33498 PyObject * obj1 = 0 ;
33499 char *kwnames[] = {
33500 (char *) "self",(char *) "item", NULL
33501 };
33502
33503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) goto fail;
33504 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33505 arg2 = obj1;
33506 {
33507 PyThreadState* __tstate = wxPyBeginAllowThreads();
33508 result = (bool)wxSizer_Remove(arg1,arg2);
33509
33510 wxPyEndAllowThreads(__tstate);
33511 if (PyErr_Occurred()) SWIG_fail;
33512 }
4e760a36 33513 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
33514 return resultobj;
33515 fail:
33516 return NULL;
33517}
33518
33519
33520static PyObject *_wrap_Sizer__SetItemMinSize(PyObject *self, PyObject *args, PyObject *kwargs) {
33521 PyObject *resultobj;
33522 wxSizer *arg1 = (wxSizer *) 0 ;
33523 PyObject *arg2 = (PyObject *) 0 ;
423f194a
RD
33524 wxSize *arg3 = 0 ;
33525 wxSize temp3 ;
d14a1e28
RD
33526 PyObject * obj0 = 0 ;
33527 PyObject * obj1 = 0 ;
33528 PyObject * obj2 = 0 ;
33529 char *kwnames[] = {
33530 (char *) "self",(char *) "item",(char *) "size", NULL
33531 };
33532
33533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
33534 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33535 arg2 = obj1;
423f194a
RD
33536 {
33537 arg3 = &temp3;
33538 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
33539 }
d14a1e28
RD
33540 {
33541 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 33542 wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3);
d14a1e28
RD
33543
33544 wxPyEndAllowThreads(__tstate);
33545 if (PyErr_Occurred()) SWIG_fail;
33546 }
33547 Py_INCREF(Py_None); resultobj = Py_None;
33548 return resultobj;
33549 fail:
33550 return NULL;
33551}
33552
33553
33554static PyObject *_wrap_Sizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) {
33555 PyObject *resultobj;
33556 wxSizer *arg1 = (wxSizer *) 0 ;
33557 wxSizerItem *arg2 = (wxSizerItem *) 0 ;
33558 PyObject * obj0 = 0 ;
33559 PyObject * obj1 = 0 ;
33560 char *kwnames[] = {
33561 (char *) "self",(char *) "item", NULL
33562 };
33563
33564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) goto fail;
33565 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33566 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33567 {
33568 PyThreadState* __tstate = wxPyBeginAllowThreads();
33569 (arg1)->Add(arg2);
33570
33571 wxPyEndAllowThreads(__tstate);
33572 if (PyErr_Occurred()) SWIG_fail;
33573 }
33574 Py_INCREF(Py_None); resultobj = Py_None;
33575 return resultobj;
33576 fail:
33577 return NULL;
33578}
33579
33580
33581static PyObject *_wrap_Sizer_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
33582 PyObject *resultobj;
33583 wxSizer *arg1 = (wxSizer *) 0 ;
33584 size_t arg2 ;
33585 wxSizerItem *arg3 = (wxSizerItem *) 0 ;
33586 PyObject * obj0 = 0 ;
33587 PyObject * obj1 = 0 ;
33588 PyObject * obj2 = 0 ;
33589 char *kwnames[] = {
33590 (char *) "self",(char *) "index",(char *) "item", NULL
33591 };
33592
33593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
33594 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 33595 {
8edf1c75 33596 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
83448d71
RD
33597 if (PyErr_Occurred()) SWIG_fail;
33598 }
d14a1e28
RD
33599 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33600 {
33601 PyThreadState* __tstate = wxPyBeginAllowThreads();
33602 (arg1)->Insert(arg2,arg3);
33603
33604 wxPyEndAllowThreads(__tstate);
33605 if (PyErr_Occurred()) SWIG_fail;
33606 }
33607 Py_INCREF(Py_None); resultobj = Py_None;
33608 return resultobj;
33609 fail:
33610 return NULL;
33611}
33612
33613
33614static PyObject *_wrap_Sizer_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) {
33615 PyObject *resultobj;
33616 wxSizer *arg1 = (wxSizer *) 0 ;
33617 wxSizerItem *arg2 = (wxSizerItem *) 0 ;
33618 PyObject * obj0 = 0 ;
33619 PyObject * obj1 = 0 ;
33620 char *kwnames[] = {
33621 (char *) "self",(char *) "item", NULL
33622 };
33623
33624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) goto fail;
33625 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33626 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33627 {
33628 PyThreadState* __tstate = wxPyBeginAllowThreads();
33629 (arg1)->Prepend(arg2);
33630
33631 wxPyEndAllowThreads(__tstate);
33632 if (PyErr_Occurred()) SWIG_fail;
33633 }
33634 Py_INCREF(Py_None); resultobj = Py_None;
33635 return resultobj;
33636 fail:
33637 return NULL;
33638}
33639
33640
33641static PyObject *_wrap_Sizer_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) {
33642 PyObject *resultobj;
33643 wxSizer *arg1 = (wxSizer *) 0 ;
33644 int arg2 ;
33645 int arg3 ;
33646 int arg4 ;
33647 int arg5 ;
33648 PyObject * obj0 = 0 ;
8edf1c75
RD
33649 PyObject * obj1 = 0 ;
33650 PyObject * obj2 = 0 ;
33651 PyObject * obj3 = 0 ;
33652 PyObject * obj4 = 0 ;
d14a1e28
RD
33653 char *kwnames[] = {
33654 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
33655 };
33656
8edf1c75 33657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Sizer_SetDimension",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d14a1e28 33658 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
33659 {
33660 arg2 = (int) SWIG_PyObj_AsInt(obj1);
33661 if (PyErr_Occurred()) SWIG_fail;
33662 }
33663 {
33664 arg3 = (int) SWIG_PyObj_AsInt(obj2);
33665 if (PyErr_Occurred()) SWIG_fail;
33666 }
33667 {
33668 arg4 = (int) SWIG_PyObj_AsInt(obj3);
33669 if (PyErr_Occurred()) SWIG_fail;
33670 }
33671 {
33672 arg5 = (int) SWIG_PyObj_AsInt(obj4);
33673 if (PyErr_Occurred()) SWIG_fail;
33674 }
d14a1e28
RD
33675 {
33676 PyThreadState* __tstate = wxPyBeginAllowThreads();
33677 (arg1)->SetDimension(arg2,arg3,arg4,arg5);
33678
33679 wxPyEndAllowThreads(__tstate);
33680 if (PyErr_Occurred()) SWIG_fail;
33681 }
33682 Py_INCREF(Py_None); resultobj = Py_None;
33683 return resultobj;
33684 fail:
33685 return NULL;
33686}
33687
33688
33689static PyObject *_wrap_Sizer_SetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) {
33690 PyObject *resultobj;
33691 wxSizer *arg1 = (wxSizer *) 0 ;
a64def11
RD
33692 wxSize *arg2 = 0 ;
33693 wxSize temp2 ;
d14a1e28
RD
33694 PyObject * obj0 = 0 ;
33695 PyObject * obj1 = 0 ;
33696 char *kwnames[] = {
33697 (char *) "self",(char *) "size", NULL
33698 };
33699
33700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) goto fail;
33701 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
a64def11
RD
33702 {
33703 arg2 = &temp2;
33704 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
33705 }
d14a1e28
RD
33706 {
33707 PyThreadState* __tstate = wxPyBeginAllowThreads();
a64def11 33708 (arg1)->SetMinSize((wxSize const &)*arg2);
d14a1e28
RD
33709
33710 wxPyEndAllowThreads(__tstate);
33711 if (PyErr_Occurred()) SWIG_fail;
33712 }
33713 Py_INCREF(Py_None); resultobj = Py_None;
33714 return resultobj;
33715 fail:
33716 return NULL;
33717}
33718
33719
33720static PyObject *_wrap_Sizer_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
33721 PyObject *resultobj;
33722 wxSizer *arg1 = (wxSizer *) 0 ;
33723 wxSize result;
33724 PyObject * obj0 = 0 ;
33725 char *kwnames[] = {
33726 (char *) "self", NULL
33727 };
33728
33729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetSize",kwnames,&obj0)) goto fail;
33730 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33731 {
33732 PyThreadState* __tstate = wxPyBeginAllowThreads();
33733 result = (arg1)->GetSize();
33734
33735 wxPyEndAllowThreads(__tstate);
33736 if (PyErr_Occurred()) SWIG_fail;
33737 }
33738 {
33739 wxSize * resultptr;
33740 resultptr = new wxSize((wxSize &) result);
33741 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
33742 }
33743 return resultobj;
33744 fail:
33745 return NULL;
33746}
33747
33748
33749static PyObject *_wrap_Sizer_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
33750 PyObject *resultobj;
33751 wxSizer *arg1 = (wxSizer *) 0 ;
33752 wxPoint result;
33753 PyObject * obj0 = 0 ;
33754 char *kwnames[] = {
33755 (char *) "self", NULL
33756 };
33757
33758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetPosition",kwnames,&obj0)) goto fail;
33759 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33760 {
33761 PyThreadState* __tstate = wxPyBeginAllowThreads();
33762 result = (arg1)->GetPosition();
33763
33764 wxPyEndAllowThreads(__tstate);
33765 if (PyErr_Occurred()) SWIG_fail;
33766 }
33767 {
33768 wxPoint * resultptr;
33769 resultptr = new wxPoint((wxPoint &) result);
33770 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
33771 }
33772 return resultobj;
33773 fail:
33774 return NULL;
33775}
33776
33777
33778static PyObject *_wrap_Sizer_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) {
33779 PyObject *resultobj;
33780 wxSizer *arg1 = (wxSizer *) 0 ;
33781 wxSize result;
33782 PyObject * obj0 = 0 ;
33783 char *kwnames[] = {
33784 (char *) "self", NULL
33785 };
33786
33787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetMinSize",kwnames,&obj0)) goto fail;
33788 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33789 {
33790 PyThreadState* __tstate = wxPyBeginAllowThreads();
33791 result = (arg1)->GetMinSize();
33792
33793 wxPyEndAllowThreads(__tstate);
33794 if (PyErr_Occurred()) SWIG_fail;
33795 }
33796 {
33797 wxSize * resultptr;
33798 resultptr = new wxSize((wxSize &) result);
33799 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
33800 }
33801 return resultobj;
33802 fail:
33803 return NULL;
33804}
33805
33806
33807static PyObject *_wrap_Sizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
33808 PyObject *resultobj;
33809 wxSizer *arg1 = (wxSizer *) 0 ;
33810 PyObject * obj0 = 0 ;
33811 char *kwnames[] = {
33812 (char *) "self", NULL
33813 };
33814
33815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_RecalcSizes",kwnames,&obj0)) goto fail;
33816 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33817 {
33818 PyThreadState* __tstate = wxPyBeginAllowThreads();
33819 (arg1)->RecalcSizes();
33820
33821 wxPyEndAllowThreads(__tstate);
33822 if (PyErr_Occurred()) SWIG_fail;
33823 }
33824 Py_INCREF(Py_None); resultobj = Py_None;
33825 return resultobj;
33826 fail:
33827 return NULL;
33828}
33829
33830
33831static PyObject *_wrap_Sizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
33832 PyObject *resultobj;
33833 wxSizer *arg1 = (wxSizer *) 0 ;
33834 wxSize result;
33835 PyObject * obj0 = 0 ;
33836 char *kwnames[] = {
33837 (char *) "self", NULL
33838 };
33839
33840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_CalcMin",kwnames,&obj0)) goto fail;
33841 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33842 {
33843 PyThreadState* __tstate = wxPyBeginAllowThreads();
33844 result = (arg1)->CalcMin();
33845
33846 wxPyEndAllowThreads(__tstate);
33847 if (PyErr_Occurred()) SWIG_fail;
33848 }
33849 {
33850 wxSize * resultptr;
33851 resultptr = new wxSize((wxSize &) result);
33852 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
33853 }
33854 return resultobj;
33855 fail:
33856 return NULL;
33857}
33858
33859
33860static PyObject *_wrap_Sizer_Layout(PyObject *self, PyObject *args, PyObject *kwargs) {
33861 PyObject *resultobj;
33862 wxSizer *arg1 = (wxSizer *) 0 ;
33863 PyObject * obj0 = 0 ;
33864 char *kwnames[] = {
33865 (char *) "self", NULL
33866 };
33867
33868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_Layout",kwnames,&obj0)) goto fail;
33869 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33870 {
33871 PyThreadState* __tstate = wxPyBeginAllowThreads();
33872 (arg1)->Layout();
33873
33874 wxPyEndAllowThreads(__tstate);
33875 if (PyErr_Occurred()) SWIG_fail;
33876 }
33877 Py_INCREF(Py_None); resultobj = Py_None;
33878 return resultobj;
33879 fail:
33880 return NULL;
33881}
33882
33883
33884static PyObject *_wrap_Sizer_Fit(PyObject *self, PyObject *args, PyObject *kwargs) {
33885 PyObject *resultobj;
33886 wxSizer *arg1 = (wxSizer *) 0 ;
33887 wxWindow *arg2 = (wxWindow *) 0 ;
33888 wxSize result;
33889 PyObject * obj0 = 0 ;
33890 PyObject * obj1 = 0 ;
33891 char *kwnames[] = {
33892 (char *) "self",(char *) "window", NULL
33893 };
33894
33895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) goto fail;
33896 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33897 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33898 {
33899 PyThreadState* __tstate = wxPyBeginAllowThreads();
33900 result = (arg1)->Fit(arg2);
33901
33902 wxPyEndAllowThreads(__tstate);
33903 if (PyErr_Occurred()) SWIG_fail;
33904 }
33905 {
33906 wxSize * resultptr;
33907 resultptr = new wxSize((wxSize &) result);
33908 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
33909 }
33910 return resultobj;
33911 fail:
33912 return NULL;
33913}
33914
33915
33916static PyObject *_wrap_Sizer_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) {
33917 PyObject *resultobj;
33918 wxSizer *arg1 = (wxSizer *) 0 ;
33919 wxWindow *arg2 = (wxWindow *) 0 ;
33920 PyObject * obj0 = 0 ;
33921 PyObject * obj1 = 0 ;
33922 char *kwnames[] = {
33923 (char *) "self",(char *) "window", NULL
33924 };
33925
33926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) goto fail;
33927 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33928 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33929 {
33930 PyThreadState* __tstate = wxPyBeginAllowThreads();
33931 (arg1)->FitInside(arg2);
33932
33933 wxPyEndAllowThreads(__tstate);
33934 if (PyErr_Occurred()) SWIG_fail;
33935 }
33936 Py_INCREF(Py_None); resultobj = Py_None;
33937 return resultobj;
33938 fail:
33939 return NULL;
33940}
33941
33942
33943static PyObject *_wrap_Sizer_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) {
33944 PyObject *resultobj;
33945 wxSizer *arg1 = (wxSizer *) 0 ;
33946 wxWindow *arg2 = (wxWindow *) 0 ;
33947 PyObject * obj0 = 0 ;
33948 PyObject * obj1 = 0 ;
33949 char *kwnames[] = {
33950 (char *) "self",(char *) "window", NULL
33951 };
33952
33953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) goto fail;
33954 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33955 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33956 {
33957 PyThreadState* __tstate = wxPyBeginAllowThreads();
33958 (arg1)->SetSizeHints(arg2);
33959
33960 wxPyEndAllowThreads(__tstate);
33961 if (PyErr_Occurred()) SWIG_fail;
33962 }
33963 Py_INCREF(Py_None); resultobj = Py_None;
33964 return resultobj;
33965 fail:
33966 return NULL;
33967}
33968
33969
33970static PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) {
33971 PyObject *resultobj;
33972 wxSizer *arg1 = (wxSizer *) 0 ;
33973 wxWindow *arg2 = (wxWindow *) 0 ;
33974 PyObject * obj0 = 0 ;
33975 PyObject * obj1 = 0 ;
33976 char *kwnames[] = {
33977 (char *) "self",(char *) "window", NULL
33978 };
33979
33980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) goto fail;
33981 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33982 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
33983 {
33984 PyThreadState* __tstate = wxPyBeginAllowThreads();
33985 (arg1)->SetVirtualSizeHints(arg2);
33986
33987 wxPyEndAllowThreads(__tstate);
33988 if (PyErr_Occurred()) SWIG_fail;
33989 }
33990 Py_INCREF(Py_None); resultobj = Py_None;
33991 return resultobj;
33992 fail:
33993 return NULL;
33994}
33995
33996
33997static PyObject *_wrap_Sizer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
33998 PyObject *resultobj;
33999 wxSizer *arg1 = (wxSizer *) 0 ;
423f194a 34000 bool arg2 = (bool) False ;
d14a1e28
RD
34001 PyObject * obj0 = 0 ;
34002 PyObject * obj1 = 0 ;
34003 char *kwnames[] = {
34004 (char *) "self",(char *) "delete_windows", NULL
34005 };
34006
34007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) goto fail;
34008 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34009 if (obj1) {
83448d71 34010 {
8edf1c75 34011 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
34012 if (PyErr_Occurred()) SWIG_fail;
34013 }
d14a1e28
RD
34014 }
34015 {
34016 PyThreadState* __tstate = wxPyBeginAllowThreads();
34017 (arg1)->Clear(arg2);
34018
34019 wxPyEndAllowThreads(__tstate);
34020 if (PyErr_Occurred()) SWIG_fail;
34021 }
34022 Py_INCREF(Py_None); resultobj = Py_None;
34023 return resultobj;
34024 fail:
34025 return NULL;
34026}
34027
34028
34029static PyObject *_wrap_Sizer_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) {
34030 PyObject *resultobj;
34031 wxSizer *arg1 = (wxSizer *) 0 ;
34032 PyObject * obj0 = 0 ;
34033 char *kwnames[] = {
34034 (char *) "self", NULL
34035 };
34036
34037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_DeleteWindows",kwnames,&obj0)) goto fail;
34038 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34039 {
34040 PyThreadState* __tstate = wxPyBeginAllowThreads();
34041 (arg1)->DeleteWindows();
34042
34043 wxPyEndAllowThreads(__tstate);
34044 if (PyErr_Occurred()) SWIG_fail;
34045 }
34046 Py_INCREF(Py_None); resultobj = Py_None;
34047 return resultobj;
34048 fail:
34049 return NULL;
34050}
34051
34052
34053static PyObject *_wrap_Sizer_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
34054 PyObject *resultobj;
34055 wxSizer *arg1 = (wxSizer *) 0 ;
34056 PyObject *result;
34057 PyObject * obj0 = 0 ;
34058 char *kwnames[] = {
34059 (char *) "self", NULL
34060 };
34061
34062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetChildren",kwnames,&obj0)) goto fail;
34063 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34064 {
34065 PyThreadState* __tstate = wxPyBeginAllowThreads();
34066 result = (PyObject *)wxSizer_GetChildren(arg1);
34067
34068 wxPyEndAllowThreads(__tstate);
34069 if (PyErr_Occurred()) SWIG_fail;
34070 }
34071 resultobj = result;
34072 return resultobj;
34073 fail:
34074 return NULL;
34075}
34076
34077
34078static PyObject *_wrap_Sizer_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
34079 PyObject *resultobj;
34080 wxSizer *arg1 = (wxSizer *) 0 ;
34081 PyObject *arg2 = (PyObject *) 0 ;
423f194a 34082 bool arg3 = (bool) True ;
d14a1e28
RD
34083 PyObject * obj0 = 0 ;
34084 PyObject * obj1 = 0 ;
34085 PyObject * obj2 = 0 ;
34086 char *kwnames[] = {
34087 (char *) "self",(char *) "item",(char *) "show", NULL
34088 };
34089
34090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Sizer_Show",kwnames,&obj0,&obj1,&obj2)) goto fail;
34091 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34092 arg2 = obj1;
34093 if (obj2) {
83448d71 34094 {
8edf1c75 34095 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
83448d71
RD
34096 if (PyErr_Occurred()) SWIG_fail;
34097 }
d14a1e28
RD
34098 }
34099 {
34100 PyThreadState* __tstate = wxPyBeginAllowThreads();
34101 wxSizer_Show(arg1,arg2,arg3);
34102
34103 wxPyEndAllowThreads(__tstate);
34104 if (PyErr_Occurred()) SWIG_fail;
34105 }
34106 Py_INCREF(Py_None); resultobj = Py_None;
34107 return resultobj;
34108 fail:
34109 return NULL;
34110}
34111
34112
34113static PyObject *_wrap_Sizer_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
34114 PyObject *resultobj;
34115 wxSizer *arg1 = (wxSizer *) 0 ;
34116 PyObject *arg2 = (PyObject *) 0 ;
34117 PyObject * obj0 = 0 ;
34118 PyObject * obj1 = 0 ;
34119 char *kwnames[] = {
34120 (char *) "self",(char *) "item", NULL
34121 };
34122
34123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Hide",kwnames,&obj0,&obj1)) goto fail;
34124 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34125 arg2 = obj1;
34126 {
34127 PyThreadState* __tstate = wxPyBeginAllowThreads();
34128 wxSizer_Hide(arg1,arg2);
34129
34130 wxPyEndAllowThreads(__tstate);
34131 if (PyErr_Occurred()) SWIG_fail;
34132 }
34133 Py_INCREF(Py_None); resultobj = Py_None;
34134 return resultobj;
34135 fail:
34136 return NULL;
34137}
34138
34139
34140static PyObject *_wrap_Sizer_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) {
34141 PyObject *resultobj;
34142 wxSizer *arg1 = (wxSizer *) 0 ;
34143 PyObject *arg2 = (PyObject *) 0 ;
34144 bool result;
34145 PyObject * obj0 = 0 ;
34146 PyObject * obj1 = 0 ;
34147 char *kwnames[] = {
34148 (char *) "self",(char *) "item", NULL
34149 };
34150
34151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) goto fail;
34152 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34153 arg2 = obj1;
34154 {
34155 PyThreadState* __tstate = wxPyBeginAllowThreads();
34156 result = (bool)wxSizer_IsShown(arg1,arg2);
34157
34158 wxPyEndAllowThreads(__tstate);
34159 if (PyErr_Occurred()) SWIG_fail;
34160 }
4e760a36 34161 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
34162 return resultobj;
34163 fail:
34164 return NULL;
34165}
34166
34167
34168static PyObject *_wrap_Sizer_ShowItems(PyObject *self, PyObject *args, PyObject *kwargs) {
34169 PyObject *resultobj;
34170 wxSizer *arg1 = (wxSizer *) 0 ;
34171 bool arg2 ;
34172 PyObject * obj0 = 0 ;
34173 PyObject * obj1 = 0 ;
34174 char *kwnames[] = {
34175 (char *) "self",(char *) "show", NULL
34176 };
34177
34178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) goto fail;
34179 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 34180 {
8edf1c75 34181 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
34182 if (PyErr_Occurred()) SWIG_fail;
34183 }
d14a1e28
RD
34184 {
34185 PyThreadState* __tstate = wxPyBeginAllowThreads();
34186 (arg1)->ShowItems(arg2);
34187
34188 wxPyEndAllowThreads(__tstate);
34189 if (PyErr_Occurred()) SWIG_fail;
34190 }
34191 Py_INCREF(Py_None); resultobj = Py_None;
34192 return resultobj;
34193 fail:
34194 return NULL;
34195}
34196
34197
34198static PyObject * Sizer_swigregister(PyObject *self, PyObject *args) {
34199 PyObject *obj;
34200 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
34201 SWIG_TypeClientData(SWIGTYPE_p_wxSizer, obj);
34202 Py_INCREF(obj);
34203 return Py_BuildValue((char *)"");
34204}
34205static PyObject *_wrap_new_PySizer(PyObject *self, PyObject *args, PyObject *kwargs) {
34206 PyObject *resultobj;
34207 wxPySizer *result;
34208 char *kwnames[] = {
34209 NULL
34210 };
34211
34212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PySizer",kwnames)) goto fail;
34213 {
34214 PyThreadState* __tstate = wxPyBeginAllowThreads();
34215 result = (wxPySizer *)new wxPySizer();
34216
34217 wxPyEndAllowThreads(__tstate);
34218 if (PyErr_Occurred()) SWIG_fail;
34219 }
34220 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPySizer, 1);
34221 return resultobj;
34222 fail:
34223 return NULL;
34224}
34225
34226
34227static PyObject *_wrap_PySizer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
34228 PyObject *resultobj;
34229 wxPySizer *arg1 = (wxPySizer *) 0 ;
34230 PyObject *arg2 = (PyObject *) 0 ;
34231 PyObject *arg3 = (PyObject *) 0 ;
34232 PyObject * obj0 = 0 ;
34233 PyObject * obj1 = 0 ;
34234 PyObject * obj2 = 0 ;
34235 char *kwnames[] = {
34236 (char *) "self",(char *) "self",(char *) "_class", NULL
34237 };
34238
34239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
34240 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPySizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34241 arg2 = obj1;
34242 arg3 = obj2;
34243 {
34244 PyThreadState* __tstate = wxPyBeginAllowThreads();
34245 (arg1)->_setCallbackInfo(arg2,arg3);
34246
34247 wxPyEndAllowThreads(__tstate);
34248 if (PyErr_Occurred()) SWIG_fail;
34249 }
34250 Py_INCREF(Py_None); resultobj = Py_None;
34251 return resultobj;
34252 fail:
34253 return NULL;
34254}
34255
34256
34257static PyObject * PySizer_swigregister(PyObject *self, PyObject *args) {
34258 PyObject *obj;
34259 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
34260 SWIG_TypeClientData(SWIGTYPE_p_wxPySizer, obj);
34261 Py_INCREF(obj);
34262 return Py_BuildValue((char *)"");
34263}
34264static PyObject *_wrap_new_BoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
34265 PyObject *resultobj;
34266 int arg1 = (int) wxHORIZONTAL ;
34267 wxBoxSizer *result;
8edf1c75 34268 PyObject * obj0 = 0 ;
d14a1e28
RD
34269 char *kwnames[] = {
34270 (char *) "orient", NULL
34271 };
34272
8edf1c75
RD
34273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BoxSizer",kwnames,&obj0)) goto fail;
34274 if (obj0) {
34275 {
34276 arg1 = (int) SWIG_PyObj_AsInt(obj0);
34277 if (PyErr_Occurred()) SWIG_fail;
34278 }
34279 }
d14a1e28
RD
34280 {
34281 PyThreadState* __tstate = wxPyBeginAllowThreads();
34282 result = (wxBoxSizer *)new wxBoxSizer(arg1);
34283
34284 wxPyEndAllowThreads(__tstate);
34285 if (PyErr_Occurred()) SWIG_fail;
34286 }
34287 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBoxSizer, 1);
34288 return resultobj;
34289 fail:
34290 return NULL;
34291}
34292
34293
34294static PyObject *_wrap_BoxSizer_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
34295 PyObject *resultobj;
34296 wxBoxSizer *arg1 = (wxBoxSizer *) 0 ;
34297 int result;
34298 PyObject * obj0 = 0 ;
34299 char *kwnames[] = {
34300 (char *) "self", NULL
34301 };
34302
34303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_GetOrientation",kwnames,&obj0)) goto fail;
34304 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34305 {
34306 PyThreadState* __tstate = wxPyBeginAllowThreads();
34307 result = (int)(arg1)->GetOrientation();
34308
34309 wxPyEndAllowThreads(__tstate);
34310 if (PyErr_Occurred()) SWIG_fail;
34311 }
8edf1c75 34312 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
34313 return resultobj;
34314 fail:
34315 return NULL;
34316}
34317
34318
34319static PyObject *_wrap_BoxSizer_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
34320 PyObject *resultobj;
34321 wxBoxSizer *arg1 = (wxBoxSizer *) 0 ;
34322 int arg2 ;
34323 PyObject * obj0 = 0 ;
8edf1c75 34324 PyObject * obj1 = 0 ;
d14a1e28
RD
34325 char *kwnames[] = {
34326 (char *) "self",(char *) "orient", NULL
34327 };
34328
8edf1c75 34329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BoxSizer_SetOrientation",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 34330 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
34331 {
34332 arg2 = (int) SWIG_PyObj_AsInt(obj1);
34333 if (PyErr_Occurred()) SWIG_fail;
34334 }
d14a1e28
RD
34335 {
34336 PyThreadState* __tstate = wxPyBeginAllowThreads();
34337 (arg1)->SetOrientation(arg2);
34338
34339 wxPyEndAllowThreads(__tstate);
34340 if (PyErr_Occurred()) SWIG_fail;
34341 }
34342 Py_INCREF(Py_None); resultobj = Py_None;
34343 return resultobj;
34344 fail:
34345 return NULL;
34346}
34347
34348
34349static PyObject *_wrap_BoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
34350 PyObject *resultobj;
34351 wxBoxSizer *arg1 = (wxBoxSizer *) 0 ;
34352 PyObject * obj0 = 0 ;
34353 char *kwnames[] = {
34354 (char *) "self", NULL
34355 };
34356
34357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_RecalcSizes",kwnames,&obj0)) goto fail;
34358 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34359 {
34360 PyThreadState* __tstate = wxPyBeginAllowThreads();
34361 (arg1)->RecalcSizes();
34362
34363 wxPyEndAllowThreads(__tstate);
34364 if (PyErr_Occurred()) SWIG_fail;
34365 }
34366 Py_INCREF(Py_None); resultobj = Py_None;
34367 return resultobj;
34368 fail:
34369 return NULL;
34370}
34371
34372
34373static PyObject *_wrap_BoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
34374 PyObject *resultobj;
34375 wxBoxSizer *arg1 = (wxBoxSizer *) 0 ;
34376 wxSize result;
34377 PyObject * obj0 = 0 ;
34378 char *kwnames[] = {
34379 (char *) "self", NULL
34380 };
34381
34382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_CalcMin",kwnames,&obj0)) goto fail;
34383 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34384 {
34385 PyThreadState* __tstate = wxPyBeginAllowThreads();
34386 result = (arg1)->CalcMin();
34387
34388 wxPyEndAllowThreads(__tstate);
34389 if (PyErr_Occurred()) SWIG_fail;
34390 }
34391 {
34392 wxSize * resultptr;
34393 resultptr = new wxSize((wxSize &) result);
34394 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
34395 }
34396 return resultobj;
34397 fail:
34398 return NULL;
34399}
34400
34401
34402static PyObject * BoxSizer_swigregister(PyObject *self, PyObject *args) {
34403 PyObject *obj;
34404 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
34405 SWIG_TypeClientData(SWIGTYPE_p_wxBoxSizer, obj);
34406 Py_INCREF(obj);
34407 return Py_BuildValue((char *)"");
34408}
34409static PyObject *_wrap_new_StaticBoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
34410 PyObject *resultobj;
34411 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
34412 int arg2 = (int) wxHORIZONTAL ;
34413 wxStaticBoxSizer *result;
34414 PyObject * obj0 = 0 ;
8edf1c75 34415 PyObject * obj1 = 0 ;
d14a1e28
RD
34416 char *kwnames[] = {
34417 (char *) "box",(char *) "orient", NULL
34418 };
34419
8edf1c75 34420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_StaticBoxSizer",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 34421 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
34422 if (obj1) {
34423 {
34424 arg2 = (int) SWIG_PyObj_AsInt(obj1);
34425 if (PyErr_Occurred()) SWIG_fail;
34426 }
34427 }
d14a1e28
RD
34428 {
34429 PyThreadState* __tstate = wxPyBeginAllowThreads();
34430 result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2);
34431
34432 wxPyEndAllowThreads(__tstate);
34433 if (PyErr_Occurred()) SWIG_fail;
34434 }
34435 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticBoxSizer, 1);
34436 return resultobj;
34437 fail:
34438 return NULL;
34439}
34440
34441
34442static PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) {
34443 PyObject *resultobj;
34444 wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ;
34445 wxStaticBox *result;
34446 PyObject * obj0 = 0 ;
34447 char *kwnames[] = {
34448 (char *) "self", NULL
34449 };
34450
34451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_GetStaticBox",kwnames,&obj0)) goto fail;
34452 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34453 {
34454 PyThreadState* __tstate = wxPyBeginAllowThreads();
34455 result = (wxStaticBox *)(arg1)->GetStaticBox();
34456
34457 wxPyEndAllowThreads(__tstate);
34458 if (PyErr_Occurred()) SWIG_fail;
34459 }
34460 {
34461 resultobj = wxPyMake_wxObject(result);
34462 }
34463 return resultobj;
34464 fail:
34465 return NULL;
34466}
34467
34468
34469static PyObject *_wrap_StaticBoxSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
34470 PyObject *resultobj;
34471 wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ;
34472 PyObject * obj0 = 0 ;
34473 char *kwnames[] = {
34474 (char *) "self", NULL
34475 };
34476
34477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_RecalcSizes",kwnames,&obj0)) goto fail;
34478 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34479 {
34480 PyThreadState* __tstate = wxPyBeginAllowThreads();
34481 (arg1)->RecalcSizes();
34482
34483 wxPyEndAllowThreads(__tstate);
34484 if (PyErr_Occurred()) SWIG_fail;
34485 }
34486 Py_INCREF(Py_None); resultobj = Py_None;
34487 return resultobj;
34488 fail:
34489 return NULL;
34490}
34491
34492
34493static PyObject *_wrap_StaticBoxSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
34494 PyObject *resultobj;
34495 wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ;
34496 wxSize result;
34497 PyObject * obj0 = 0 ;
34498 char *kwnames[] = {
34499 (char *) "self", NULL
34500 };
34501
34502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_CalcMin",kwnames,&obj0)) goto fail;
34503 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBoxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34504 {
34505 PyThreadState* __tstate = wxPyBeginAllowThreads();
34506 result = (arg1)->CalcMin();
34507
34508 wxPyEndAllowThreads(__tstate);
34509 if (PyErr_Occurred()) SWIG_fail;
34510 }
34511 {
34512 wxSize * resultptr;
34513 resultptr = new wxSize((wxSize &) result);
34514 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
34515 }
34516 return resultobj;
34517 fail:
34518 return NULL;
34519}
34520
34521
34522static PyObject * StaticBoxSizer_swigregister(PyObject *self, PyObject *args) {
34523 PyObject *obj;
34524 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
34525 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBoxSizer, obj);
34526 Py_INCREF(obj);
34527 return Py_BuildValue((char *)"");
34528}
34529static PyObject *_wrap_new_GridSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
34530 PyObject *resultobj;
34531 int arg1 = (int) 1 ;
34532 int arg2 = (int) 0 ;
34533 int arg3 = (int) 0 ;
34534 int arg4 = (int) 0 ;
34535 wxGridSizer *result;
8edf1c75
RD
34536 PyObject * obj0 = 0 ;
34537 PyObject * obj1 = 0 ;
34538 PyObject * obj2 = 0 ;
34539 PyObject * obj3 = 0 ;
d14a1e28
RD
34540 char *kwnames[] = {
34541 (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL
34542 };
34543
8edf1c75
RD
34544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_GridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
34545 if (obj0) {
34546 {
34547 arg1 = (int) SWIG_PyObj_AsInt(obj0);
34548 if (PyErr_Occurred()) SWIG_fail;
34549 }
34550 }
34551 if (obj1) {
34552 {
34553 arg2 = (int) SWIG_PyObj_AsInt(obj1);
34554 if (PyErr_Occurred()) SWIG_fail;
34555 }
34556 }
34557 if (obj2) {
34558 {
34559 arg3 = (int) SWIG_PyObj_AsInt(obj2);
34560 if (PyErr_Occurred()) SWIG_fail;
34561 }
34562 }
34563 if (obj3) {
34564 {
34565 arg4 = (int) SWIG_PyObj_AsInt(obj3);
34566 if (PyErr_Occurred()) SWIG_fail;
34567 }
34568 }
d14a1e28
RD
34569 {
34570 PyThreadState* __tstate = wxPyBeginAllowThreads();
34571 result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4);
34572
34573 wxPyEndAllowThreads(__tstate);
34574 if (PyErr_Occurred()) SWIG_fail;
34575 }
34576 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridSizer, 1);
34577 return resultobj;
34578 fail:
34579 return NULL;
34580}
34581
34582
34583static PyObject *_wrap_GridSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
34584 PyObject *resultobj;
34585 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
34586 PyObject * obj0 = 0 ;
34587 char *kwnames[] = {
34588 (char *) "self", NULL
34589 };
34590
34591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_RecalcSizes",kwnames,&obj0)) goto fail;
34592 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34593 {
34594 PyThreadState* __tstate = wxPyBeginAllowThreads();
34595 (arg1)->RecalcSizes();
34596
34597 wxPyEndAllowThreads(__tstate);
34598 if (PyErr_Occurred()) SWIG_fail;
34599 }
34600 Py_INCREF(Py_None); resultobj = Py_None;
34601 return resultobj;
34602 fail:
34603 return NULL;
34604}
34605
34606
34607static PyObject *_wrap_GridSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
34608 PyObject *resultobj;
34609 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
34610 wxSize result;
34611 PyObject * obj0 = 0 ;
34612 char *kwnames[] = {
34613 (char *) "self", NULL
34614 };
34615
34616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_CalcMin",kwnames,&obj0)) goto fail;
34617 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34618 {
34619 PyThreadState* __tstate = wxPyBeginAllowThreads();
34620 result = (arg1)->CalcMin();
34621
34622 wxPyEndAllowThreads(__tstate);
34623 if (PyErr_Occurred()) SWIG_fail;
34624 }
34625 {
34626 wxSize * resultptr;
34627 resultptr = new wxSize((wxSize &) result);
34628 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
34629 }
34630 return resultobj;
34631 fail:
34632 return NULL;
34633}
34634
34635
34636static PyObject *_wrap_GridSizer_SetCols(PyObject *self, PyObject *args, PyObject *kwargs) {
34637 PyObject *resultobj;
34638 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
34639 int arg2 ;
34640 PyObject * obj0 = 0 ;
8edf1c75 34641 PyObject * obj1 = 0 ;
d14a1e28
RD
34642 char *kwnames[] = {
34643 (char *) "self",(char *) "cols", NULL
34644 };
34645
8edf1c75 34646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetCols",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 34647 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
34648 {
34649 arg2 = (int) SWIG_PyObj_AsInt(obj1);
34650 if (PyErr_Occurred()) SWIG_fail;
34651 }
d14a1e28
RD
34652 {
34653 PyThreadState* __tstate = wxPyBeginAllowThreads();
34654 (arg1)->SetCols(arg2);
34655
34656 wxPyEndAllowThreads(__tstate);
34657 if (PyErr_Occurred()) SWIG_fail;
34658 }
34659 Py_INCREF(Py_None); resultobj = Py_None;
34660 return resultobj;
34661 fail:
34662 return NULL;
34663}
34664
34665
34666static PyObject *_wrap_GridSizer_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) {
34667 PyObject *resultobj;
34668 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
34669 int arg2 ;
34670 PyObject * obj0 = 0 ;
8edf1c75 34671 PyObject * obj1 = 0 ;
d14a1e28
RD
34672 char *kwnames[] = {
34673 (char *) "self",(char *) "rows", NULL
34674 };
34675
8edf1c75 34676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetRows",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 34677 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
34678 {
34679 arg2 = (int) SWIG_PyObj_AsInt(obj1);
34680 if (PyErr_Occurred()) SWIG_fail;
34681 }
d14a1e28
RD
34682 {
34683 PyThreadState* __tstate = wxPyBeginAllowThreads();
34684 (arg1)->SetRows(arg2);
34685
34686 wxPyEndAllowThreads(__tstate);
34687 if (PyErr_Occurred()) SWIG_fail;
34688 }
34689 Py_INCREF(Py_None); resultobj = Py_None;
34690 return resultobj;
34691 fail:
34692 return NULL;
34693}
34694
34695
34696static PyObject *_wrap_GridSizer_SetVGap(PyObject *self, PyObject *args, PyObject *kwargs) {
34697 PyObject *resultobj;
34698 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
34699 int arg2 ;
34700 PyObject * obj0 = 0 ;
8edf1c75 34701 PyObject * obj1 = 0 ;
d14a1e28
RD
34702 char *kwnames[] = {
34703 (char *) "self",(char *) "gap", NULL
34704 };
34705
8edf1c75 34706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetVGap",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 34707 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
34708 {
34709 arg2 = (int) SWIG_PyObj_AsInt(obj1);
34710 if (PyErr_Occurred()) SWIG_fail;
34711 }
d14a1e28
RD
34712 {
34713 PyThreadState* __tstate = wxPyBeginAllowThreads();
34714 (arg1)->SetVGap(arg2);
34715
34716 wxPyEndAllowThreads(__tstate);
34717 if (PyErr_Occurred()) SWIG_fail;
34718 }
34719 Py_INCREF(Py_None); resultobj = Py_None;
34720 return resultobj;
34721 fail:
34722 return NULL;
34723}
34724
34725
34726static PyObject *_wrap_GridSizer_SetHGap(PyObject *self, PyObject *args, PyObject *kwargs) {
34727 PyObject *resultobj;
34728 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
34729 int arg2 ;
34730 PyObject * obj0 = 0 ;
8edf1c75 34731 PyObject * obj1 = 0 ;
d14a1e28
RD
34732 char *kwnames[] = {
34733 (char *) "self",(char *) "gap", NULL
34734 };
34735
8edf1c75 34736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetHGap",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 34737 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
34738 {
34739 arg2 = (int) SWIG_PyObj_AsInt(obj1);
34740 if (PyErr_Occurred()) SWIG_fail;
34741 }
d14a1e28
RD
34742 {
34743 PyThreadState* __tstate = wxPyBeginAllowThreads();
34744 (arg1)->SetHGap(arg2);
34745
34746 wxPyEndAllowThreads(__tstate);
34747 if (PyErr_Occurred()) SWIG_fail;
34748 }
34749 Py_INCREF(Py_None); resultobj = Py_None;
34750 return resultobj;
34751 fail:
34752 return NULL;
34753}
34754
34755
34756static PyObject *_wrap_GridSizer_GetCols(PyObject *self, PyObject *args, PyObject *kwargs) {
34757 PyObject *resultobj;
34758 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
34759 int result;
34760 PyObject * obj0 = 0 ;
34761 char *kwnames[] = {
34762 (char *) "self", NULL
34763 };
34764
34765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetCols",kwnames,&obj0)) goto fail;
34766 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34767 {
34768 PyThreadState* __tstate = wxPyBeginAllowThreads();
34769 result = (int)(arg1)->GetCols();
34770
34771 wxPyEndAllowThreads(__tstate);
34772 if (PyErr_Occurred()) SWIG_fail;
34773 }
8edf1c75 34774 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
34775 return resultobj;
34776 fail:
34777 return NULL;
34778}
34779
34780
34781static PyObject *_wrap_GridSizer_GetRows(PyObject *self, PyObject *args, PyObject *kwargs) {
34782 PyObject *resultobj;
34783 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
34784 int result;
34785 PyObject * obj0 = 0 ;
34786 char *kwnames[] = {
34787 (char *) "self", NULL
34788 };
34789
34790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetRows",kwnames,&obj0)) goto fail;
34791 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34792 {
34793 PyThreadState* __tstate = wxPyBeginAllowThreads();
34794 result = (int)(arg1)->GetRows();
34795
34796 wxPyEndAllowThreads(__tstate);
34797 if (PyErr_Occurred()) SWIG_fail;
34798 }
8edf1c75 34799 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
34800 return resultobj;
34801 fail:
34802 return NULL;
34803}
34804
34805
34806static PyObject *_wrap_GridSizer_GetVGap(PyObject *self, PyObject *args, PyObject *kwargs) {
34807 PyObject *resultobj;
34808 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
34809 int result;
34810 PyObject * obj0 = 0 ;
34811 char *kwnames[] = {
34812 (char *) "self", NULL
34813 };
34814
34815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetVGap",kwnames,&obj0)) goto fail;
34816 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34817 {
34818 PyThreadState* __tstate = wxPyBeginAllowThreads();
34819 result = (int)(arg1)->GetVGap();
34820
34821 wxPyEndAllowThreads(__tstate);
34822 if (PyErr_Occurred()) SWIG_fail;
34823 }
8edf1c75 34824 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
34825 return resultobj;
34826 fail:
34827 return NULL;
34828}
34829
34830
34831static PyObject *_wrap_GridSizer_GetHGap(PyObject *self, PyObject *args, PyObject *kwargs) {
34832 PyObject *resultobj;
34833 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
34834 int result;
34835 PyObject * obj0 = 0 ;
34836 char *kwnames[] = {
34837 (char *) "self", NULL
34838 };
34839
34840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetHGap",kwnames,&obj0)) goto fail;
34841 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34842 {
34843 PyThreadState* __tstate = wxPyBeginAllowThreads();
34844 result = (int)(arg1)->GetHGap();
34845
34846 wxPyEndAllowThreads(__tstate);
34847 if (PyErr_Occurred()) SWIG_fail;
34848 }
8edf1c75 34849 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
34850 return resultobj;
34851 fail:
34852 return NULL;
34853}
34854
34855
34856static PyObject * GridSizer_swigregister(PyObject *self, PyObject *args) {
34857 PyObject *obj;
34858 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
34859 SWIG_TypeClientData(SWIGTYPE_p_wxGridSizer, obj);
34860 Py_INCREF(obj);
34861 return Py_BuildValue((char *)"");
34862}
34863static PyObject *_wrap_new_FlexGridSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
34864 PyObject *resultobj;
34865 int arg1 = (int) 1 ;
34866 int arg2 = (int) 0 ;
34867 int arg3 = (int) 0 ;
34868 int arg4 = (int) 0 ;
34869 wxFlexGridSizer *result;
8edf1c75
RD
34870 PyObject * obj0 = 0 ;
34871 PyObject * obj1 = 0 ;
34872 PyObject * obj2 = 0 ;
34873 PyObject * obj3 = 0 ;
d14a1e28
RD
34874 char *kwnames[] = {
34875 (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL
34876 };
34877
8edf1c75
RD
34878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_FlexGridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
34879 if (obj0) {
34880 {
34881 arg1 = (int) SWIG_PyObj_AsInt(obj0);
34882 if (PyErr_Occurred()) SWIG_fail;
34883 }
34884 }
34885 if (obj1) {
34886 {
34887 arg2 = (int) SWIG_PyObj_AsInt(obj1);
34888 if (PyErr_Occurred()) SWIG_fail;
34889 }
34890 }
34891 if (obj2) {
34892 {
34893 arg3 = (int) SWIG_PyObj_AsInt(obj2);
34894 if (PyErr_Occurred()) SWIG_fail;
34895 }
34896 }
34897 if (obj3) {
34898 {
34899 arg4 = (int) SWIG_PyObj_AsInt(obj3);
34900 if (PyErr_Occurred()) SWIG_fail;
34901 }
34902 }
d14a1e28
RD
34903 {
34904 PyThreadState* __tstate = wxPyBeginAllowThreads();
34905 result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4);
34906
34907 wxPyEndAllowThreads(__tstate);
34908 if (PyErr_Occurred()) SWIG_fail;
34909 }
34910 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFlexGridSizer, 1);
34911 return resultobj;
34912 fail:
34913 return NULL;
34914}
34915
34916
34917static PyObject *_wrap_FlexGridSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
34918 PyObject *resultobj;
34919 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
34920 PyObject * obj0 = 0 ;
34921 char *kwnames[] = {
34922 (char *) "self", NULL
34923 };
34924
34925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_RecalcSizes",kwnames,&obj0)) goto fail;
34926 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34927 {
34928 PyThreadState* __tstate = wxPyBeginAllowThreads();
34929 (arg1)->RecalcSizes();
34930
34931 wxPyEndAllowThreads(__tstate);
34932 if (PyErr_Occurred()) SWIG_fail;
34933 }
34934 Py_INCREF(Py_None); resultobj = Py_None;
34935 return resultobj;
34936 fail:
34937 return NULL;
34938}
34939
34940
34941static PyObject *_wrap_FlexGridSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
34942 PyObject *resultobj;
34943 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
34944 wxSize result;
34945 PyObject * obj0 = 0 ;
34946 char *kwnames[] = {
34947 (char *) "self", NULL
34948 };
34949
34950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_CalcMin",kwnames,&obj0)) goto fail;
34951 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
34952 {
34953 PyThreadState* __tstate = wxPyBeginAllowThreads();
34954 result = (arg1)->CalcMin();
34955
34956 wxPyEndAllowThreads(__tstate);
34957 if (PyErr_Occurred()) SWIG_fail;
34958 }
34959 {
34960 wxSize * resultptr;
34961 resultptr = new wxSize((wxSize &) result);
34962 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
34963 }
34964 return resultobj;
34965 fail:
34966 return NULL;
34967}
34968
34969
34970static PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) {
34971 PyObject *resultobj;
34972 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
34973 size_t arg2 ;
34974 int arg3 = (int) 0 ;
34975 PyObject * obj0 = 0 ;
34976 PyObject * obj1 = 0 ;
8edf1c75 34977 PyObject * obj2 = 0 ;
d14a1e28
RD
34978 char *kwnames[] = {
34979 (char *) "self",(char *) "idx",(char *) "proportion", NULL
34980 };
34981
8edf1c75 34982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 34983 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 34984 {
8edf1c75 34985 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
83448d71
RD
34986 if (PyErr_Occurred()) SWIG_fail;
34987 }
8edf1c75
RD
34988 if (obj2) {
34989 {
34990 arg3 = (int) SWIG_PyObj_AsInt(obj2);
34991 if (PyErr_Occurred()) SWIG_fail;
34992 }
34993 }
d14a1e28
RD
34994 {
34995 PyThreadState* __tstate = wxPyBeginAllowThreads();
34996 (arg1)->AddGrowableRow(arg2,arg3);
34997
34998 wxPyEndAllowThreads(__tstate);
34999 if (PyErr_Occurred()) SWIG_fail;
35000 }
35001 Py_INCREF(Py_None); resultobj = Py_None;
35002 return resultobj;
35003 fail:
35004 return NULL;
35005}
35006
35007
35008static PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) {
35009 PyObject *resultobj;
35010 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
35011 size_t arg2 ;
35012 PyObject * obj0 = 0 ;
35013 PyObject * obj1 = 0 ;
35014 char *kwnames[] = {
35015 (char *) "self",(char *) "idx", NULL
35016 };
35017
35018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) goto fail;
35019 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 35020 {
8edf1c75 35021 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
83448d71
RD
35022 if (PyErr_Occurred()) SWIG_fail;
35023 }
d14a1e28
RD
35024 {
35025 PyThreadState* __tstate = wxPyBeginAllowThreads();
35026 (arg1)->RemoveGrowableRow(arg2);
35027
35028 wxPyEndAllowThreads(__tstate);
35029 if (PyErr_Occurred()) SWIG_fail;
35030 }
35031 Py_INCREF(Py_None); resultobj = Py_None;
35032 return resultobj;
35033 fail:
35034 return NULL;
35035}
35036
35037
35038static PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) {
35039 PyObject *resultobj;
35040 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
35041 size_t arg2 ;
35042 int arg3 = (int) 0 ;
35043 PyObject * obj0 = 0 ;
35044 PyObject * obj1 = 0 ;
8edf1c75 35045 PyObject * obj2 = 0 ;
d14a1e28
RD
35046 char *kwnames[] = {
35047 (char *) "self",(char *) "idx",(char *) "proportion", NULL
35048 };
35049
8edf1c75 35050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28 35051 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 35052 {
8edf1c75 35053 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
83448d71
RD
35054 if (PyErr_Occurred()) SWIG_fail;
35055 }
8edf1c75
RD
35056 if (obj2) {
35057 {
35058 arg3 = (int) SWIG_PyObj_AsInt(obj2);
35059 if (PyErr_Occurred()) SWIG_fail;
35060 }
35061 }
d14a1e28
RD
35062 {
35063 PyThreadState* __tstate = wxPyBeginAllowThreads();
35064 (arg1)->AddGrowableCol(arg2,arg3);
35065
35066 wxPyEndAllowThreads(__tstate);
35067 if (PyErr_Occurred()) SWIG_fail;
35068 }
35069 Py_INCREF(Py_None); resultobj = Py_None;
35070 return resultobj;
35071 fail:
35072 return NULL;
35073}
35074
35075
35076static PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) {
35077 PyObject *resultobj;
35078 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
35079 size_t arg2 ;
35080 PyObject * obj0 = 0 ;
35081 PyObject * obj1 = 0 ;
35082 char *kwnames[] = {
35083 (char *) "self",(char *) "idx", NULL
35084 };
35085
35086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) goto fail;
35087 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 35088 {
8edf1c75 35089 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
83448d71
RD
35090 if (PyErr_Occurred()) SWIG_fail;
35091 }
d14a1e28
RD
35092 {
35093 PyThreadState* __tstate = wxPyBeginAllowThreads();
35094 (arg1)->RemoveGrowableCol(arg2);
35095
35096 wxPyEndAllowThreads(__tstate);
35097 if (PyErr_Occurred()) SWIG_fail;
35098 }
35099 Py_INCREF(Py_None); resultobj = Py_None;
35100 return resultobj;
35101 fail:
35102 return NULL;
35103}
35104
35105
35106static PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) {
35107 PyObject *resultobj;
35108 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
35109 int arg2 ;
35110 PyObject * obj0 = 0 ;
8edf1c75 35111 PyObject * obj1 = 0 ;
d14a1e28
RD
35112 char *kwnames[] = {
35113 (char *) "self",(char *) "direction", NULL
35114 };
35115
8edf1c75 35116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 35117 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
35118 {
35119 arg2 = (int) SWIG_PyObj_AsInt(obj1);
35120 if (PyErr_Occurred()) SWIG_fail;
35121 }
d14a1e28
RD
35122 {
35123 PyThreadState* __tstate = wxPyBeginAllowThreads();
35124 (arg1)->SetFlexibleDirection(arg2);
35125
35126 wxPyEndAllowThreads(__tstate);
35127 if (PyErr_Occurred()) SWIG_fail;
35128 }
35129 Py_INCREF(Py_None); resultobj = Py_None;
35130 return resultobj;
35131 fail:
35132 return NULL;
35133}
35134
35135
35136static PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) {
35137 PyObject *resultobj;
35138 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
35139 int result;
35140 PyObject * obj0 = 0 ;
35141 char *kwnames[] = {
35142 (char *) "self", NULL
35143 };
35144
35145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetFlexibleDirection",kwnames,&obj0)) goto fail;
35146 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35147 {
35148 PyThreadState* __tstate = wxPyBeginAllowThreads();
35149 result = (int)(arg1)->GetFlexibleDirection();
35150
35151 wxPyEndAllowThreads(__tstate);
35152 if (PyErr_Occurred()) SWIG_fail;
35153 }
8edf1c75 35154 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
35155 return resultobj;
35156 fail:
35157 return NULL;
35158}
35159
35160
35161static PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) {
35162 PyObject *resultobj;
35163 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
35164 int arg2 ;
35165 PyObject * obj0 = 0 ;
8edf1c75 35166 PyObject * obj1 = 0 ;
d14a1e28
RD
35167 char *kwnames[] = {
35168 (char *) "self",(char *) "mode", NULL
35169 };
35170
8edf1c75 35171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 35172 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
35173 {
35174 arg2 = (wxFlexSizerGrowMode) SWIG_PyObj_AsInt(obj1);
35175 if (PyErr_Occurred()) SWIG_fail;
35176 }
d14a1e28
RD
35177 {
35178 PyThreadState* __tstate = wxPyBeginAllowThreads();
35179 (arg1)->SetNonFlexibleGrowMode((wxFlexSizerGrowMode )arg2);
35180
35181 wxPyEndAllowThreads(__tstate);
35182 if (PyErr_Occurred()) SWIG_fail;
35183 }
35184 Py_INCREF(Py_None); resultobj = Py_None;
35185 return resultobj;
35186 fail:
35187 return NULL;
35188}
35189
35190
35191static PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) {
35192 PyObject *resultobj;
35193 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
35194 int result;
35195 PyObject * obj0 = 0 ;
35196 char *kwnames[] = {
35197 (char *) "self", NULL
35198 };
35199
35200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetNonFlexibleGrowMode",kwnames,&obj0)) goto fail;
35201 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35202 {
35203 PyThreadState* __tstate = wxPyBeginAllowThreads();
35204 result = (int)(arg1)->GetNonFlexibleGrowMode();
35205
35206 wxPyEndAllowThreads(__tstate);
35207 if (PyErr_Occurred()) SWIG_fail;
35208 }
8edf1c75 35209 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
35210 return resultobj;
35211 fail:
35212 return NULL;
35213}
35214
35215
423f194a
RD
35216static PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *self, PyObject *args, PyObject *kwargs) {
35217 PyObject *resultobj;
35218 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
35219 wxArrayInt *result;
35220 PyObject * obj0 = 0 ;
35221 char *kwnames[] = {
35222 (char *) "self", NULL
35223 };
35224
35225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetRowHeights",kwnames,&obj0)) goto fail;
35226 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35227 {
35228 PyThreadState* __tstate = wxPyBeginAllowThreads();
35229 {
35230 wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights();
35231 result = (wxArrayInt *) &_result_ref;
35232 }
35233
35234 wxPyEndAllowThreads(__tstate);
35235 if (PyErr_Occurred()) SWIG_fail;
35236 }
35237 {
35238 resultobj = PyList_New(0);
35239 size_t idx;
35240 for (idx = 0; idx < result->GetCount(); idx += 1) {
35241 PyObject* val = PyInt_FromLong( result->Item(idx) );
35242 PyList_Append(resultobj, val);
35243 Py_DECREF(val);
35244 }
35245 }
35246 return resultobj;
35247 fail:
35248 return NULL;
35249}
35250
35251
35252static PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *self, PyObject *args, PyObject *kwargs) {
35253 PyObject *resultobj;
35254 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
35255 wxArrayInt *result;
35256 PyObject * obj0 = 0 ;
35257 char *kwnames[] = {
35258 (char *) "self", NULL
35259 };
35260
35261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetColWidths",kwnames,&obj0)) goto fail;
35262 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFlexGridSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35263 {
35264 PyThreadState* __tstate = wxPyBeginAllowThreads();
35265 {
35266 wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths();
35267 result = (wxArrayInt *) &_result_ref;
35268 }
35269
35270 wxPyEndAllowThreads(__tstate);
35271 if (PyErr_Occurred()) SWIG_fail;
35272 }
35273 {
35274 resultobj = PyList_New(0);
35275 size_t idx;
35276 for (idx = 0; idx < result->GetCount(); idx += 1) {
35277 PyObject* val = PyInt_FromLong( result->Item(idx) );
35278 PyList_Append(resultobj, val);
35279 Py_DECREF(val);
35280 }
35281 }
35282 return resultobj;
35283 fail:
35284 return NULL;
35285}
35286
35287
d14a1e28
RD
35288static PyObject * FlexGridSizer_swigregister(PyObject *self, PyObject *args) {
35289 PyObject *obj;
35290 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
35291 SWIG_TypeClientData(SWIGTYPE_p_wxFlexGridSizer, obj);
35292 Py_INCREF(obj);
35293 return Py_BuildValue((char *)"");
35294}
35295static PyObject *_wrap_new_GBPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
35296 PyObject *resultobj;
35297 int arg1 = (int) 0 ;
35298 int arg2 = (int) 0 ;
35299 wxGBPosition *result;
8edf1c75
RD
35300 PyObject * obj0 = 0 ;
35301 PyObject * obj1 = 0 ;
d14a1e28
RD
35302 char *kwnames[] = {
35303 (char *) "row",(char *) "col", NULL
35304 };
35305
8edf1c75
RD
35306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBPosition",kwnames,&obj0,&obj1)) goto fail;
35307 if (obj0) {
35308 {
35309 arg1 = (int) SWIG_PyObj_AsInt(obj0);
35310 if (PyErr_Occurred()) SWIG_fail;
35311 }
35312 }
35313 if (obj1) {
35314 {
35315 arg2 = (int) SWIG_PyObj_AsInt(obj1);
35316 if (PyErr_Occurred()) SWIG_fail;
35317 }
35318 }
d14a1e28
RD
35319 {
35320 PyThreadState* __tstate = wxPyBeginAllowThreads();
35321 result = (wxGBPosition *)new wxGBPosition(arg1,arg2);
35322
35323 wxPyEndAllowThreads(__tstate);
35324 if (PyErr_Occurred()) SWIG_fail;
35325 }
35326 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBPosition, 1);
35327 return resultobj;
35328 fail:
35329 return NULL;
35330}
35331
35332
35333static PyObject *_wrap_GBPosition_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
35334 PyObject *resultobj;
35335 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
35336 int result;
35337 PyObject * obj0 = 0 ;
35338 char *kwnames[] = {
35339 (char *) "self", NULL
35340 };
35341
35342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetRow",kwnames,&obj0)) goto fail;
35343 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35344 {
35345 PyThreadState* __tstate = wxPyBeginAllowThreads();
35346 result = (int)((wxGBPosition const *)arg1)->GetRow();
35347
35348 wxPyEndAllowThreads(__tstate);
35349 if (PyErr_Occurred()) SWIG_fail;
35350 }
8edf1c75 35351 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
35352 return resultobj;
35353 fail:
35354 return NULL;
35355}
35356
35357
35358static PyObject *_wrap_GBPosition_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
35359 PyObject *resultobj;
35360 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
35361 int result;
35362 PyObject * obj0 = 0 ;
35363 char *kwnames[] = {
35364 (char *) "self", NULL
35365 };
35366
35367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetCol",kwnames,&obj0)) goto fail;
35368 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35369 {
35370 PyThreadState* __tstate = wxPyBeginAllowThreads();
35371 result = (int)((wxGBPosition const *)arg1)->GetCol();
35372
35373 wxPyEndAllowThreads(__tstate);
35374 if (PyErr_Occurred()) SWIG_fail;
35375 }
8edf1c75 35376 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
35377 return resultobj;
35378 fail:
35379 return NULL;
35380}
35381
35382
35383static PyObject *_wrap_GBPosition_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
35384 PyObject *resultobj;
35385 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
35386 int arg2 ;
35387 PyObject * obj0 = 0 ;
8edf1c75 35388 PyObject * obj1 = 0 ;
d14a1e28
RD
35389 char *kwnames[] = {
35390 (char *) "self",(char *) "row", NULL
35391 };
35392
8edf1c75 35393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetRow",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 35394 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
35395 {
35396 arg2 = (int) SWIG_PyObj_AsInt(obj1);
35397 if (PyErr_Occurred()) SWIG_fail;
35398 }
d14a1e28
RD
35399 {
35400 PyThreadState* __tstate = wxPyBeginAllowThreads();
35401 (arg1)->SetRow(arg2);
35402
35403 wxPyEndAllowThreads(__tstate);
35404 if (PyErr_Occurred()) SWIG_fail;
35405 }
35406 Py_INCREF(Py_None); resultobj = Py_None;
35407 return resultobj;
35408 fail:
35409 return NULL;
35410}
35411
35412
35413static PyObject *_wrap_GBPosition_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
35414 PyObject *resultobj;
35415 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
35416 int arg2 ;
35417 PyObject * obj0 = 0 ;
8edf1c75 35418 PyObject * obj1 = 0 ;
d14a1e28
RD
35419 char *kwnames[] = {
35420 (char *) "self",(char *) "col", NULL
35421 };
35422
8edf1c75 35423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetCol",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 35424 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
35425 {
35426 arg2 = (int) SWIG_PyObj_AsInt(obj1);
35427 if (PyErr_Occurred()) SWIG_fail;
35428 }
d14a1e28
RD
35429 {
35430 PyThreadState* __tstate = wxPyBeginAllowThreads();
35431 (arg1)->SetCol(arg2);
35432
35433 wxPyEndAllowThreads(__tstate);
35434 if (PyErr_Occurred()) SWIG_fail;
35435 }
35436 Py_INCREF(Py_None); resultobj = Py_None;
35437 return resultobj;
35438 fail:
35439 return NULL;
35440}
35441
35442
35443static PyObject *_wrap_GBPosition___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
35444 PyObject *resultobj;
35445 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
35446 wxGBPosition *arg2 = 0 ;
35447 bool result;
35448 wxGBPosition temp2 ;
35449 PyObject * obj0 = 0 ;
35450 PyObject * obj1 = 0 ;
35451 char *kwnames[] = {
35452 (char *) "self",(char *) "p", NULL
35453 };
35454
35455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) goto fail;
35456 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35457 {
35458 arg2 = &temp2;
35459 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
35460 }
35461 {
35462 PyThreadState* __tstate = wxPyBeginAllowThreads();
35463 result = (bool)((wxGBPosition const *)arg1)->operator ==((wxGBPosition const &)*arg2);
35464
35465 wxPyEndAllowThreads(__tstate);
35466 if (PyErr_Occurred()) SWIG_fail;
35467 }
4e760a36 35468 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
35469 return resultobj;
35470 fail:
35471 return NULL;
35472}
35473
35474
35475static PyObject *_wrap_GBPosition___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
35476 PyObject *resultobj;
35477 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
35478 wxGBPosition *arg2 = 0 ;
35479 bool result;
35480 wxGBPosition temp2 ;
35481 PyObject * obj0 = 0 ;
35482 PyObject * obj1 = 0 ;
35483 char *kwnames[] = {
35484 (char *) "self",(char *) "p", NULL
35485 };
35486
35487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) goto fail;
35488 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35489 {
35490 arg2 = &temp2;
35491 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
35492 }
35493 {
35494 PyThreadState* __tstate = wxPyBeginAllowThreads();
35495 result = (bool)((wxGBPosition const *)arg1)->operator !=((wxGBPosition const &)*arg2);
35496
35497 wxPyEndAllowThreads(__tstate);
35498 if (PyErr_Occurred()) SWIG_fail;
35499 }
4e760a36 35500 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
35501 return resultobj;
35502 fail:
35503 return NULL;
35504}
35505
35506
423f194a
RD
35507static PyObject *_wrap_GBPosition_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
35508 PyObject *resultobj;
35509 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
35510 int arg2 = (int) 0 ;
35511 int arg3 = (int) 0 ;
35512 PyObject * obj0 = 0 ;
8edf1c75
RD
35513 PyObject * obj1 = 0 ;
35514 PyObject * obj2 = 0 ;
423f194a
RD
35515 char *kwnames[] = {
35516 (char *) "self",(char *) "row",(char *) "col", NULL
35517 };
35518
8edf1c75 35519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBPosition_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
423f194a 35520 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
35521 if (obj1) {
35522 {
35523 arg2 = (int) SWIG_PyObj_AsInt(obj1);
35524 if (PyErr_Occurred()) SWIG_fail;
35525 }
35526 }
35527 if (obj2) {
35528 {
35529 arg3 = (int) SWIG_PyObj_AsInt(obj2);
35530 if (PyErr_Occurred()) SWIG_fail;
35531 }
35532 }
423f194a
RD
35533 {
35534 PyThreadState* __tstate = wxPyBeginAllowThreads();
35535 wxGBPosition_Set(arg1,arg2,arg3);
35536
35537 wxPyEndAllowThreads(__tstate);
35538 if (PyErr_Occurred()) SWIG_fail;
35539 }
35540 Py_INCREF(Py_None); resultobj = Py_None;
35541 return resultobj;
35542 fail:
35543 return NULL;
35544}
35545
35546
35547static PyObject *_wrap_GBPosition_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
35548 PyObject *resultobj;
35549 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
35550 PyObject *result;
35551 PyObject * obj0 = 0 ;
35552 char *kwnames[] = {
35553 (char *) "self", NULL
35554 };
35555
423f194a 35556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_Get",kwnames,&obj0)) goto fail;
d14a1e28
RD
35557 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBPosition,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35558 {
35559 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 35560 result = (PyObject *)wxGBPosition_Get(arg1);
d14a1e28
RD
35561
35562 wxPyEndAllowThreads(__tstate);
35563 if (PyErr_Occurred()) SWIG_fail;
35564 }
35565 resultobj = result;
35566 return resultobj;
35567 fail:
35568 return NULL;
35569}
35570
35571
35572static PyObject * GBPosition_swigregister(PyObject *self, PyObject *args) {
35573 PyObject *obj;
35574 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
35575 SWIG_TypeClientData(SWIGTYPE_p_wxGBPosition, obj);
35576 Py_INCREF(obj);
35577 return Py_BuildValue((char *)"");
35578}
35579static PyObject *_wrap_new_GBSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
35580 PyObject *resultobj;
35581 int arg1 = (int) 1 ;
35582 int arg2 = (int) 1 ;
35583 wxGBSpan *result;
8edf1c75
RD
35584 PyObject * obj0 = 0 ;
35585 PyObject * obj1 = 0 ;
d14a1e28
RD
35586 char *kwnames[] = {
35587 (char *) "rowspan",(char *) "colspan", NULL
35588 };
35589
8edf1c75
RD
35590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBSpan",kwnames,&obj0,&obj1)) goto fail;
35591 if (obj0) {
35592 {
35593 arg1 = (int) SWIG_PyObj_AsInt(obj0);
35594 if (PyErr_Occurred()) SWIG_fail;
35595 }
35596 }
35597 if (obj1) {
35598 {
35599 arg2 = (int) SWIG_PyObj_AsInt(obj1);
35600 if (PyErr_Occurred()) SWIG_fail;
35601 }
35602 }
d14a1e28
RD
35603 {
35604 PyThreadState* __tstate = wxPyBeginAllowThreads();
35605 result = (wxGBSpan *)new wxGBSpan(arg1,arg2);
35606
35607 wxPyEndAllowThreads(__tstate);
35608 if (PyErr_Occurred()) SWIG_fail;
35609 }
35610 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSpan, 1);
35611 return resultobj;
35612 fail:
35613 return NULL;
35614}
35615
35616
35617static PyObject *_wrap_GBSpan_GetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) {
35618 PyObject *resultobj;
35619 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
35620 int result;
35621 PyObject * obj0 = 0 ;
35622 char *kwnames[] = {
35623 (char *) "self", NULL
35624 };
35625
35626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetRowspan",kwnames,&obj0)) goto fail;
35627 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35628 {
35629 PyThreadState* __tstate = wxPyBeginAllowThreads();
35630 result = (int)((wxGBSpan const *)arg1)->GetRowspan();
35631
35632 wxPyEndAllowThreads(__tstate);
35633 if (PyErr_Occurred()) SWIG_fail;
35634 }
8edf1c75 35635 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
35636 return resultobj;
35637 fail:
35638 return NULL;
35639}
35640
35641
35642static PyObject *_wrap_GBSpan_GetColspan(PyObject *self, PyObject *args, PyObject *kwargs) {
35643 PyObject *resultobj;
35644 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
35645 int result;
35646 PyObject * obj0 = 0 ;
35647 char *kwnames[] = {
35648 (char *) "self", NULL
35649 };
35650
35651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetColspan",kwnames,&obj0)) goto fail;
35652 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35653 {
35654 PyThreadState* __tstate = wxPyBeginAllowThreads();
35655 result = (int)((wxGBSpan const *)arg1)->GetColspan();
35656
35657 wxPyEndAllowThreads(__tstate);
35658 if (PyErr_Occurred()) SWIG_fail;
35659 }
8edf1c75 35660 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
35661 return resultobj;
35662 fail:
35663 return NULL;
35664}
35665
35666
35667static PyObject *_wrap_GBSpan_SetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) {
35668 PyObject *resultobj;
35669 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
35670 int arg2 ;
35671 PyObject * obj0 = 0 ;
8edf1c75 35672 PyObject * obj1 = 0 ;
d14a1e28
RD
35673 char *kwnames[] = {
35674 (char *) "self",(char *) "rowspan", NULL
35675 };
35676
8edf1c75 35677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetRowspan",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 35678 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
35679 {
35680 arg2 = (int) SWIG_PyObj_AsInt(obj1);
35681 if (PyErr_Occurred()) SWIG_fail;
35682 }
d14a1e28
RD
35683 {
35684 PyThreadState* __tstate = wxPyBeginAllowThreads();
35685 (arg1)->SetRowspan(arg2);
35686
35687 wxPyEndAllowThreads(__tstate);
35688 if (PyErr_Occurred()) SWIG_fail;
35689 }
35690 Py_INCREF(Py_None); resultobj = Py_None;
35691 return resultobj;
35692 fail:
35693 return NULL;
35694}
35695
35696
35697static PyObject *_wrap_GBSpan_SetColspan(PyObject *self, PyObject *args, PyObject *kwargs) {
35698 PyObject *resultobj;
35699 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
35700 int arg2 ;
35701 PyObject * obj0 = 0 ;
8edf1c75 35702 PyObject * obj1 = 0 ;
d14a1e28
RD
35703 char *kwnames[] = {
35704 (char *) "self",(char *) "colspan", NULL
35705 };
35706
8edf1c75 35707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetColspan",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 35708 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
35709 {
35710 arg2 = (int) SWIG_PyObj_AsInt(obj1);
35711 if (PyErr_Occurred()) SWIG_fail;
35712 }
d14a1e28
RD
35713 {
35714 PyThreadState* __tstate = wxPyBeginAllowThreads();
35715 (arg1)->SetColspan(arg2);
35716
35717 wxPyEndAllowThreads(__tstate);
35718 if (PyErr_Occurred()) SWIG_fail;
35719 }
35720 Py_INCREF(Py_None); resultobj = Py_None;
35721 return resultobj;
35722 fail:
35723 return NULL;
35724}
35725
35726
35727static PyObject *_wrap_GBSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
35728 PyObject *resultobj;
35729 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
35730 wxGBSpan *arg2 = 0 ;
35731 bool result;
35732 wxGBSpan temp2 ;
35733 PyObject * obj0 = 0 ;
35734 PyObject * obj1 = 0 ;
35735 char *kwnames[] = {
35736 (char *) "self",(char *) "o", NULL
35737 };
35738
35739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
35740 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35741 {
35742 arg2 = &temp2;
35743 if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail;
35744 }
35745 {
35746 PyThreadState* __tstate = wxPyBeginAllowThreads();
35747 result = (bool)((wxGBSpan const *)arg1)->operator ==((wxGBSpan const &)*arg2);
35748
35749 wxPyEndAllowThreads(__tstate);
35750 if (PyErr_Occurred()) SWIG_fail;
35751 }
4e760a36 35752 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
35753 return resultobj;
35754 fail:
35755 return NULL;
35756}
35757
35758
35759static PyObject *_wrap_GBSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
35760 PyObject *resultobj;
35761 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
35762 wxGBSpan *arg2 = 0 ;
35763 bool result;
35764 wxGBSpan temp2 ;
35765 PyObject * obj0 = 0 ;
35766 PyObject * obj1 = 0 ;
35767 char *kwnames[] = {
35768 (char *) "self",(char *) "o", NULL
35769 };
35770
35771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
35772 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35773 {
35774 arg2 = &temp2;
35775 if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail;
35776 }
35777 {
35778 PyThreadState* __tstate = wxPyBeginAllowThreads();
35779 result = (bool)((wxGBSpan const *)arg1)->operator !=((wxGBSpan const &)*arg2);
35780
35781 wxPyEndAllowThreads(__tstate);
35782 if (PyErr_Occurred()) SWIG_fail;
35783 }
4e760a36 35784 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
35785 return resultobj;
35786 fail:
35787 return NULL;
35788}
35789
35790
423f194a
RD
35791static PyObject *_wrap_GBSpan_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
35792 PyObject *resultobj;
35793 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
35794 int arg2 = (int) 1 ;
35795 int arg3 = (int) 1 ;
35796 PyObject * obj0 = 0 ;
8edf1c75
RD
35797 PyObject * obj1 = 0 ;
35798 PyObject * obj2 = 0 ;
423f194a
RD
35799 char *kwnames[] = {
35800 (char *) "self",(char *) "rowspan",(char *) "colspan", NULL
35801 };
35802
8edf1c75 35803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBSpan_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
423f194a 35804 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
35805 if (obj1) {
35806 {
35807 arg2 = (int) SWIG_PyObj_AsInt(obj1);
35808 if (PyErr_Occurred()) SWIG_fail;
35809 }
35810 }
35811 if (obj2) {
35812 {
35813 arg3 = (int) SWIG_PyObj_AsInt(obj2);
35814 if (PyErr_Occurred()) SWIG_fail;
35815 }
35816 }
423f194a
RD
35817 {
35818 PyThreadState* __tstate = wxPyBeginAllowThreads();
35819 wxGBSpan_Set(arg1,arg2,arg3);
35820
35821 wxPyEndAllowThreads(__tstate);
35822 if (PyErr_Occurred()) SWIG_fail;
35823 }
35824 Py_INCREF(Py_None); resultobj = Py_None;
35825 return resultobj;
35826 fail:
35827 return NULL;
35828}
35829
35830
35831static PyObject *_wrap_GBSpan_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
d14a1e28
RD
35832 PyObject *resultobj;
35833 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
35834 PyObject *result;
35835 PyObject * obj0 = 0 ;
35836 char *kwnames[] = {
35837 (char *) "self", NULL
35838 };
35839
423f194a 35840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_Get",kwnames,&obj0)) goto fail;
d14a1e28
RD
35841 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSpan,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35842 {
35843 PyThreadState* __tstate = wxPyBeginAllowThreads();
423f194a 35844 result = (PyObject *)wxGBSpan_Get(arg1);
d14a1e28
RD
35845
35846 wxPyEndAllowThreads(__tstate);
35847 if (PyErr_Occurred()) SWIG_fail;
35848 }
35849 resultobj = result;
35850 return resultobj;
35851 fail:
35852 return NULL;
35853}
35854
35855
35856static PyObject * GBSpan_swigregister(PyObject *self, PyObject *args) {
35857 PyObject *obj;
35858 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
35859 SWIG_TypeClientData(SWIGTYPE_p_wxGBSpan, obj);
35860 Py_INCREF(obj);
35861 return Py_BuildValue((char *)"");
35862}
8edf1c75 35863static int _wrap_DefaultSpan_set(PyObject *) {
d14a1e28
RD
35864 PyErr_SetString(PyExc_TypeError,"Variable DefaultSpan is read-only.");
35865 return 1;
35866}
35867
35868
35869static PyObject *_wrap_DefaultSpan_get() {
35870 PyObject *pyobj;
35871
35872 pyobj = SWIG_NewPointerObj((void *) &wxDefaultSpan, SWIGTYPE_p_wxGBSpan, 0);
35873 return pyobj;
35874}
35875
35876
35877static PyObject *_wrap_new_GBSizerItem(PyObject *self, PyObject *args, PyObject *kwargs) {
35878 PyObject *resultobj;
35879 wxGBSizerItem *result;
35880 char *kwnames[] = {
35881 NULL
35882 };
35883
35884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GBSizerItem",kwnames)) goto fail;
35885 {
35886 PyThreadState* __tstate = wxPyBeginAllowThreads();
35887 result = (wxGBSizerItem *)new wxGBSizerItem();
35888
35889 wxPyEndAllowThreads(__tstate);
35890 if (PyErr_Occurred()) SWIG_fail;
35891 }
35892 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 1);
35893 return resultobj;
35894 fail:
35895 return NULL;
35896}
35897
35898
35899static PyObject *_wrap_new_GBSizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
35900 PyObject *resultobj;
35901 wxWindow *arg1 = (wxWindow *) 0 ;
35902 wxGBPosition *arg2 = 0 ;
35903 wxGBSpan *arg3 = 0 ;
35904 int arg4 ;
35905 int arg5 ;
35906 wxObject *arg6 = (wxObject *) 0 ;
35907 wxGBSizerItem *result;
35908 wxGBPosition temp2 ;
35909 wxGBSpan temp3 ;
35910 PyObject * obj0 = 0 ;
35911 PyObject * obj1 = 0 ;
35912 PyObject * obj2 = 0 ;
8edf1c75
RD
35913 PyObject * obj3 = 0 ;
35914 PyObject * obj4 = 0 ;
d14a1e28
RD
35915 PyObject * obj5 = 0 ;
35916 char *kwnames[] = {
35917 (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
35918 };
35919
8edf1c75 35920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
d14a1e28
RD
35921 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35922 {
35923 arg2 = &temp2;
35924 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
35925 }
35926 {
35927 arg3 = &temp3;
35928 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
35929 }
8edf1c75
RD
35930 {
35931 arg4 = (int) SWIG_PyObj_AsInt(obj3);
35932 if (PyErr_Occurred()) SWIG_fail;
35933 }
35934 {
35935 arg5 = (int) SWIG_PyObj_AsInt(obj4);
35936 if (PyErr_Occurred()) SWIG_fail;
35937 }
d14a1e28
RD
35938 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35939 {
35940 PyThreadState* __tstate = wxPyBeginAllowThreads();
35941 result = (wxGBSizerItem *)new wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6);
35942
35943 wxPyEndAllowThreads(__tstate);
35944 if (PyErr_Occurred()) SWIG_fail;
35945 }
35946 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 1);
35947 return resultobj;
35948 fail:
35949 return NULL;
35950}
35951
35952
35953static PyObject *_wrap_new_GBSizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
35954 PyObject *resultobj;
35955 wxSizer *arg1 = (wxSizer *) 0 ;
35956 wxGBPosition *arg2 = 0 ;
35957 wxGBSpan *arg3 = 0 ;
35958 int arg4 ;
35959 int arg5 ;
35960 wxObject *arg6 = (wxObject *) 0 ;
35961 wxGBSizerItem *result;
35962 wxGBPosition temp2 ;
35963 wxGBSpan temp3 ;
35964 PyObject * obj0 = 0 ;
35965 PyObject * obj1 = 0 ;
35966 PyObject * obj2 = 0 ;
8edf1c75
RD
35967 PyObject * obj3 = 0 ;
35968 PyObject * obj4 = 0 ;
d14a1e28
RD
35969 PyObject * obj5 = 0 ;
35970 char *kwnames[] = {
35971 (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
35972 };
35973
8edf1c75 35974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
d14a1e28
RD
35975 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35976 {
35977 arg2 = &temp2;
35978 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
35979 }
35980 {
35981 arg3 = &temp3;
35982 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
35983 }
8edf1c75
RD
35984 {
35985 arg4 = (int) SWIG_PyObj_AsInt(obj3);
35986 if (PyErr_Occurred()) SWIG_fail;
35987 }
35988 {
35989 arg5 = (int) SWIG_PyObj_AsInt(obj4);
35990 if (PyErr_Occurred()) SWIG_fail;
35991 }
d14a1e28
RD
35992 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
35993 {
35994 PyThreadState* __tstate = wxPyBeginAllowThreads();
35995 result = (wxGBSizerItem *)new wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6);
35996
35997 wxPyEndAllowThreads(__tstate);
35998 if (PyErr_Occurred()) SWIG_fail;
35999 }
36000 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 1);
36001 return resultobj;
36002 fail:
36003 return NULL;
36004}
36005
36006
36007static PyObject *_wrap_new_GBSizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) {
36008 PyObject *resultobj;
36009 int arg1 ;
36010 int arg2 ;
36011 wxGBPosition *arg3 = 0 ;
36012 wxGBSpan *arg4 = 0 ;
36013 int arg5 ;
36014 int arg6 ;
36015 wxObject *arg7 = (wxObject *) 0 ;
36016 wxGBSizerItem *result;
36017 wxGBPosition temp3 ;
36018 wxGBSpan temp4 ;
8edf1c75
RD
36019 PyObject * obj0 = 0 ;
36020 PyObject * obj1 = 0 ;
d14a1e28
RD
36021 PyObject * obj2 = 0 ;
36022 PyObject * obj3 = 0 ;
8edf1c75
RD
36023 PyObject * obj4 = 0 ;
36024 PyObject * obj5 = 0 ;
d14a1e28
RD
36025 PyObject * obj6 = 0 ;
36026 char *kwnames[] = {
36027 (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
36028 };
36029
8edf1c75
RD
36030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:new_GBSizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
36031 {
36032 arg1 = (int) SWIG_PyObj_AsInt(obj0);
36033 if (PyErr_Occurred()) SWIG_fail;
36034 }
36035 {
36036 arg2 = (int) SWIG_PyObj_AsInt(obj1);
36037 if (PyErr_Occurred()) SWIG_fail;
36038 }
d14a1e28
RD
36039 {
36040 arg3 = &temp3;
36041 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
36042 }
36043 {
36044 arg4 = &temp4;
36045 if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail;
36046 }
8edf1c75
RD
36047 {
36048 arg5 = (int) SWIG_PyObj_AsInt(obj4);
36049 if (PyErr_Occurred()) SWIG_fail;
36050 }
36051 {
36052 arg6 = (int) SWIG_PyObj_AsInt(obj5);
36053 if (PyErr_Occurred()) SWIG_fail;
36054 }
d14a1e28
RD
36055 if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36056 {
36057 PyThreadState* __tstate = wxPyBeginAllowThreads();
36058 result = (wxGBSizerItem *)new wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7);
36059
36060 wxPyEndAllowThreads(__tstate);
36061 if (PyErr_Occurred()) SWIG_fail;
36062 }
36063 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 1);
36064 return resultobj;
36065 fail:
36066 return NULL;
36067}
36068
36069
36070static PyObject *_wrap_GBSizerItem_GetPos(PyObject *self, PyObject *args, PyObject *kwargs) {
36071 PyObject *resultobj;
36072 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
36073 wxGBPosition result;
36074 PyObject * obj0 = 0 ;
36075 char *kwnames[] = {
36076 (char *) "self", NULL
36077 };
36078
36079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetPos",kwnames,&obj0)) goto fail;
36080 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36081 {
36082 PyThreadState* __tstate = wxPyBeginAllowThreads();
36083 result = ((wxGBSizerItem const *)arg1)->GetPos();
36084
36085 wxPyEndAllowThreads(__tstate);
36086 if (PyErr_Occurred()) SWIG_fail;
36087 }
36088 {
36089 wxGBPosition * resultptr;
36090 resultptr = new wxGBPosition((wxGBPosition &) result);
36091 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBPosition, 1);
36092 }
36093 return resultobj;
36094 fail:
36095 return NULL;
36096}
36097
36098
36099static PyObject *_wrap_GBSizerItem_GetSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
36100 PyObject *resultobj;
36101 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
36102 wxGBSpan result;
36103 PyObject * obj0 = 0 ;
36104 char *kwnames[] = {
36105 (char *) "self", NULL
36106 };
36107
36108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetSpan",kwnames,&obj0)) goto fail;
36109 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36110 {
36111 PyThreadState* __tstate = wxPyBeginAllowThreads();
36112 result = ((wxGBSizerItem const *)arg1)->GetSpan();
36113
36114 wxPyEndAllowThreads(__tstate);
36115 if (PyErr_Occurred()) SWIG_fail;
36116 }
36117 {
36118 wxGBSpan * resultptr;
36119 resultptr = new wxGBSpan((wxGBSpan &) result);
36120 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBSpan, 1);
36121 }
36122 return resultobj;
36123 fail:
36124 return NULL;
36125}
36126
36127
36128static PyObject *_wrap_GBSizerItem_SetPos(PyObject *self, PyObject *args, PyObject *kwargs) {
36129 PyObject *resultobj;
36130 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
36131 wxGBPosition *arg2 = 0 ;
36132 bool result;
36133 wxGBPosition temp2 ;
36134 PyObject * obj0 = 0 ;
36135 PyObject * obj1 = 0 ;
36136 char *kwnames[] = {
36137 (char *) "self",(char *) "pos", NULL
36138 };
36139
36140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) goto fail;
36141 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36142 {
36143 arg2 = &temp2;
36144 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
36145 }
36146 {
36147 PyThreadState* __tstate = wxPyBeginAllowThreads();
36148 result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2);
36149
36150 wxPyEndAllowThreads(__tstate);
36151 if (PyErr_Occurred()) SWIG_fail;
36152 }
4e760a36 36153 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
36154 return resultobj;
36155 fail:
36156 return NULL;
36157}
36158
36159
36160static PyObject *_wrap_GBSizerItem_SetSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
36161 PyObject *resultobj;
36162 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
36163 wxGBSpan *arg2 = 0 ;
36164 bool result;
36165 wxGBSpan temp2 ;
36166 PyObject * obj0 = 0 ;
36167 PyObject * obj1 = 0 ;
36168 char *kwnames[] = {
36169 (char *) "self",(char *) "span", NULL
36170 };
36171
36172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) goto fail;
36173 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36174 {
36175 arg2 = &temp2;
36176 if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail;
36177 }
36178 {
36179 PyThreadState* __tstate = wxPyBeginAllowThreads();
36180 result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2);
36181
36182 wxPyEndAllowThreads(__tstate);
36183 if (PyErr_Occurred()) SWIG_fail;
36184 }
4e760a36 36185 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
36186 return resultobj;
36187 fail:
36188 return NULL;
36189}
36190
36191
36192static PyObject *_wrap_GBSizerItem_Intersects__SWIG_0(PyObject *self, PyObject *args) {
36193 PyObject *resultobj;
36194 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
36195 wxGBSizerItem *arg2 = 0 ;
36196 bool result;
36197 PyObject * obj0 = 0 ;
36198 PyObject * obj1 = 0 ;
36199
36200 if(!PyArg_ParseTuple(args,(char *)"OO:GBSizerItem_Intersects",&obj0,&obj1)) goto fail;
36201 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36202 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36203 if (arg2 == NULL) {
36204 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
36205 }
36206 {
36207 PyThreadState* __tstate = wxPyBeginAllowThreads();
36208 result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2);
36209
36210 wxPyEndAllowThreads(__tstate);
36211 if (PyErr_Occurred()) SWIG_fail;
36212 }
4e760a36 36213 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
36214 return resultobj;
36215 fail:
36216 return NULL;
36217}
36218
36219
36220static PyObject *_wrap_GBSizerItem_Intersects__SWIG_1(PyObject *self, PyObject *args) {
36221 PyObject *resultobj;
36222 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
36223 wxGBPosition *arg2 = 0 ;
36224 wxGBSpan *arg3 = 0 ;
36225 bool result;
36226 wxGBPosition temp2 ;
36227 wxGBSpan temp3 ;
36228 PyObject * obj0 = 0 ;
36229 PyObject * obj1 = 0 ;
36230 PyObject * obj2 = 0 ;
36231
36232 if(!PyArg_ParseTuple(args,(char *)"OOO:GBSizerItem_Intersects",&obj0,&obj1,&obj2)) goto fail;
36233 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36234 {
36235 arg2 = &temp2;
36236 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
36237 }
36238 {
36239 arg3 = &temp3;
36240 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
36241 }
36242 {
36243 PyThreadState* __tstate = wxPyBeginAllowThreads();
36244 result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3);
36245
36246 wxPyEndAllowThreads(__tstate);
36247 if (PyErr_Occurred()) SWIG_fail;
36248 }
4e760a36 36249 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
36250 return resultobj;
36251 fail:
36252 return NULL;
36253}
36254
36255
36256static PyObject *_wrap_GBSizerItem_Intersects(PyObject *self, PyObject *args) {
36257 int argc;
36258 PyObject *argv[4];
36259 int ii;
36260
36261 argc = PyObject_Length(args);
36262 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
36263 argv[ii] = PyTuple_GetItem(args,ii);
36264 }
36265 if (argc == 2) {
36266 int _v;
36267 {
36268 void *ptr;
36269 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) {
36270 _v = 0;
36271 PyErr_Clear();
36272 } else {
36273 _v = 1;
36274 }
36275 }
36276 if (_v) {
36277 {
36278 void *ptr;
36279 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) {
36280 _v = 0;
36281 PyErr_Clear();
36282 } else {
36283 _v = 1;
36284 }
36285 }
36286 if (_v) {
36287 return _wrap_GBSizerItem_Intersects__SWIG_0(self,args);
36288 }
36289 }
36290 }
36291 if (argc == 3) {
36292 int _v;
36293 {
36294 void *ptr;
36295 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) {
36296 _v = 0;
36297 PyErr_Clear();
36298 } else {
36299 _v = 1;
36300 }
36301 }
36302 if (_v) {
36303 {
36304 _v = wxPySimple_typecheck(argv[1], wxT("wxGBPosition"), 2);
36305 }
36306 if (_v) {
36307 {
36308 _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2);
36309 }
36310 if (_v) {
36311 return _wrap_GBSizerItem_Intersects__SWIG_1(self,args);
36312 }
36313 }
36314 }
36315 }
36316
36317 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GBSizerItem_Intersects'");
36318 return NULL;
36319}
36320
36321
36322static PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *self, PyObject *args, PyObject *kwargs) {
36323 PyObject *resultobj;
36324 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
36325 int *arg2 = 0 ;
36326 int *arg3 = 0 ;
36327 PyObject * obj0 = 0 ;
36328 PyObject * obj1 = 0 ;
36329 PyObject * obj2 = 0 ;
36330 char *kwnames[] = {
36331 (char *) "self",(char *) "row",(char *) "col", NULL
36332 };
36333
36334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_GetEndPos",kwnames,&obj0,&obj1,&obj2)) goto fail;
36335 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36336 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36337 if (arg2 == NULL) {
36338 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
36339 }
36340 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_int,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36341 if (arg3 == NULL) {
36342 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
36343 }
36344 {
36345 PyThreadState* __tstate = wxPyBeginAllowThreads();
36346 (arg1)->GetEndPos(*arg2,*arg3);
36347
36348 wxPyEndAllowThreads(__tstate);
36349 if (PyErr_Occurred()) SWIG_fail;
36350 }
36351 Py_INCREF(Py_None); resultobj = Py_None;
36352 return resultobj;
36353 fail:
36354 return NULL;
36355}
36356
36357
36358static PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
36359 PyObject *resultobj;
36360 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
36361 wxGridBagSizer *result;
36362 PyObject * obj0 = 0 ;
36363 char *kwnames[] = {
36364 (char *) "self", NULL
36365 };
36366
36367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetGBSizer",kwnames,&obj0)) goto fail;
36368 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36369 {
36370 PyThreadState* __tstate = wxPyBeginAllowThreads();
36371 result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer();
36372
36373 wxPyEndAllowThreads(__tstate);
36374 if (PyErr_Occurred()) SWIG_fail;
36375 }
36376 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridBagSizer, 0);
36377 return resultobj;
36378 fail:
36379 return NULL;
36380}
36381
36382
36383static PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
36384 PyObject *resultobj;
36385 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
36386 wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ;
36387 PyObject * obj0 = 0 ;
36388 PyObject * obj1 = 0 ;
36389 char *kwnames[] = {
36390 (char *) "self",(char *) "sizer", NULL
36391 };
36392
36393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) goto fail;
36394 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36395 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36396 {
36397 PyThreadState* __tstate = wxPyBeginAllowThreads();
36398 (arg1)->SetGBSizer(arg2);
36399
36400 wxPyEndAllowThreads(__tstate);
36401 if (PyErr_Occurred()) SWIG_fail;
36402 }
36403 Py_INCREF(Py_None); resultobj = Py_None;
36404 return resultobj;
36405 fail:
36406 return NULL;
36407}
36408
36409
36410static PyObject * GBSizerItem_swigregister(PyObject *self, PyObject *args) {
36411 PyObject *obj;
36412 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
36413 SWIG_TypeClientData(SWIGTYPE_p_wxGBSizerItem, obj);
36414 Py_INCREF(obj);
36415 return Py_BuildValue((char *)"");
36416}
36417static PyObject *_wrap_new_GridBagSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
36418 PyObject *resultobj;
36419 int arg1 = (int) 0 ;
36420 int arg2 = (int) 0 ;
36421 wxGridBagSizer *result;
8edf1c75
RD
36422 PyObject * obj0 = 0 ;
36423 PyObject * obj1 = 0 ;
d14a1e28
RD
36424 char *kwnames[] = {
36425 (char *) "vgap",(char *) "hgap", NULL
36426 };
36427
8edf1c75
RD
36428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridBagSizer",kwnames,&obj0,&obj1)) goto fail;
36429 if (obj0) {
36430 {
36431 arg1 = (int) SWIG_PyObj_AsInt(obj0);
36432 if (PyErr_Occurred()) SWIG_fail;
36433 }
36434 }
36435 if (obj1) {
36436 {
36437 arg2 = (int) SWIG_PyObj_AsInt(obj1);
36438 if (PyErr_Occurred()) SWIG_fail;
36439 }
36440 }
d14a1e28
RD
36441 {
36442 PyThreadState* __tstate = wxPyBeginAllowThreads();
36443 result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2);
36444
36445 wxPyEndAllowThreads(__tstate);
36446 if (PyErr_Occurred()) SWIG_fail;
36447 }
36448 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGridBagSizer, 1);
36449 return resultobj;
36450 fail:
36451 return NULL;
36452}
36453
36454
36455static PyObject *_wrap_GridBagSizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
36456 PyObject *resultobj;
36457 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
36458 PyObject *arg2 = (PyObject *) 0 ;
36459 wxGBPosition *arg3 = 0 ;
36460 wxGBSpan const &arg4_defvalue = wxDefaultSpan ;
36461 wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ;
36462 int arg5 = (int) 0 ;
36463 int arg6 = (int) 0 ;
36464 PyObject *arg7 = (PyObject *) NULL ;
36465 bool result;
36466 wxGBPosition temp3 ;
36467 wxGBSpan temp4 ;
36468 PyObject * obj0 = 0 ;
36469 PyObject * obj1 = 0 ;
36470 PyObject * obj2 = 0 ;
36471 PyObject * obj3 = 0 ;
8edf1c75
RD
36472 PyObject * obj4 = 0 ;
36473 PyObject * obj5 = 0 ;
d14a1e28
RD
36474 PyObject * obj6 = 0 ;
36475 char *kwnames[] = {
36476 (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
36477 };
36478
8edf1c75 36479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
d14a1e28
RD
36480 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36481 arg2 = obj1;
36482 {
36483 arg3 = &temp3;
36484 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
36485 }
36486 if (obj3) {
36487 {
36488 arg4 = &temp4;
36489 if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail;
36490 }
36491 }
8edf1c75
RD
36492 if (obj4) {
36493 {
36494 arg5 = (int) SWIG_PyObj_AsInt(obj4);
36495 if (PyErr_Occurred()) SWIG_fail;
36496 }
36497 }
36498 if (obj5) {
36499 {
36500 arg6 = (int) SWIG_PyObj_AsInt(obj5);
36501 if (PyErr_Occurred()) SWIG_fail;
36502 }
36503 }
d14a1e28
RD
36504 if (obj6) {
36505 arg7 = obj6;
36506 }
36507 {
36508 PyThreadState* __tstate = wxPyBeginAllowThreads();
36509 result = (bool)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7);
36510
36511 wxPyEndAllowThreads(__tstate);
36512 if (PyErr_Occurred()) SWIG_fail;
36513 }
4e760a36 36514 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
36515 return resultobj;
36516 fail:
36517 return NULL;
36518}
36519
36520
36521static PyObject *_wrap_GridBagSizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) {
36522 PyObject *resultobj;
36523 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
36524 wxGBSizerItem *arg2 = (wxGBSizerItem *) 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:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) goto fail;
36533 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36534 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36535 {
36536 PyThreadState* __tstate = wxPyBeginAllowThreads();
36537 result = (bool)(arg1)->Add(arg2);
36538
36539 wxPyEndAllowThreads(__tstate);
36540 if (PyErr_Occurred()) SWIG_fail;
36541 }
4e760a36 36542 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
36543 return resultobj;
36544 fail:
36545 return NULL;
36546}
36547
36548
36549static PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) {
36550 PyObject *resultobj;
36551 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
36552 wxSize result;
36553 PyObject * obj0 = 0 ;
36554 char *kwnames[] = {
36555 (char *) "self", NULL
36556 };
36557
36558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_GetEmptyCellSize",kwnames,&obj0)) goto fail;
36559 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36560 {
36561 PyThreadState* __tstate = wxPyBeginAllowThreads();
36562 result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize();
36563
36564 wxPyEndAllowThreads(__tstate);
36565 if (PyErr_Occurred()) SWIG_fail;
36566 }
36567 {
36568 wxSize * resultptr;
36569 resultptr = new wxSize((wxSize &) result);
36570 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
36571 }
36572 return resultobj;
36573 fail:
36574 return NULL;
36575}
36576
36577
36578static PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) {
36579 PyObject *resultobj;
36580 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
36581 wxSize *arg2 = 0 ;
36582 wxSize temp2 ;
36583 PyObject * obj0 = 0 ;
36584 PyObject * obj1 = 0 ;
36585 char *kwnames[] = {
36586 (char *) "self",(char *) "sz", NULL
36587 };
36588
36589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) goto fail;
36590 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36591 {
36592 arg2 = &temp2;
36593 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
36594 }
36595 {
36596 PyThreadState* __tstate = wxPyBeginAllowThreads();
36597 (arg1)->SetEmptyCellSize((wxSize const &)*arg2);
36598
36599 wxPyEndAllowThreads(__tstate);
36600 if (PyErr_Occurred()) SWIG_fail;
36601 }
36602 Py_INCREF(Py_None); resultobj = Py_None;
36603 return resultobj;
36604 fail:
36605 return NULL;
36606}
36607
36608
36609static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *self, PyObject *args) {
36610 PyObject *resultobj;
36611 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
36612 wxWindow *arg2 = (wxWindow *) 0 ;
36613 wxGBPosition result;
36614 PyObject * obj0 = 0 ;
36615 PyObject * obj1 = 0 ;
36616
36617 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail;
36618 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36619 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36620 {
36621 PyThreadState* __tstate = wxPyBeginAllowThreads();
36622 result = (arg1)->GetItemPosition(arg2);
36623
36624 wxPyEndAllowThreads(__tstate);
36625 if (PyErr_Occurred()) SWIG_fail;
36626 }
36627 {
36628 wxGBPosition * resultptr;
36629 resultptr = new wxGBPosition((wxGBPosition &) result);
36630 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBPosition, 1);
36631 }
36632 return resultobj;
36633 fail:
36634 return NULL;
36635}
36636
36637
36638static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *self, PyObject *args) {
36639 PyObject *resultobj;
36640 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
36641 wxSizer *arg2 = (wxSizer *) 0 ;
36642 wxGBPosition result;
36643 PyObject * obj0 = 0 ;
36644 PyObject * obj1 = 0 ;
36645
36646 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail;
36647 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36648 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36649 {
36650 PyThreadState* __tstate = wxPyBeginAllowThreads();
36651 result = (arg1)->GetItemPosition(arg2);
36652
36653 wxPyEndAllowThreads(__tstate);
36654 if (PyErr_Occurred()) SWIG_fail;
36655 }
36656 {
36657 wxGBPosition * resultptr;
36658 resultptr = new wxGBPosition((wxGBPosition &) result);
36659 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBPosition, 1);
36660 }
36661 return resultobj;
36662 fail:
36663 return NULL;
36664}
36665
36666
36667static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *self, PyObject *args) {
36668 PyObject *resultobj;
36669 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
36670 size_t arg2 ;
36671 wxGBPosition result;
36672 PyObject * obj0 = 0 ;
36673 PyObject * obj1 = 0 ;
36674
36675 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail;
36676 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 36677 {
8edf1c75 36678 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
83448d71
RD
36679 if (PyErr_Occurred()) SWIG_fail;
36680 }
d14a1e28
RD
36681 {
36682 PyThreadState* __tstate = wxPyBeginAllowThreads();
36683 result = (arg1)->GetItemPosition(arg2);
36684
36685 wxPyEndAllowThreads(__tstate);
36686 if (PyErr_Occurred()) SWIG_fail;
36687 }
36688 {
36689 wxGBPosition * resultptr;
36690 resultptr = new wxGBPosition((wxGBPosition &) result);
36691 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBPosition, 1);
36692 }
36693 return resultobj;
36694 fail:
36695 return NULL;
36696}
36697
36698
36699static PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) {
36700 int argc;
36701 PyObject *argv[3];
36702 int ii;
36703
36704 argc = PyObject_Length(args);
36705 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
36706 argv[ii] = PyTuple_GetItem(args,ii);
36707 }
36708 if (argc == 2) {
36709 int _v;
36710 {
36711 void *ptr;
36712 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
36713 _v = 0;
36714 PyErr_Clear();
36715 } else {
36716 _v = 1;
36717 }
36718 }
36719 if (_v) {
36720 {
36721 void *ptr;
36722 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
36723 _v = 0;
36724 PyErr_Clear();
36725 } else {
36726 _v = 1;
36727 }
36728 }
36729 if (_v) {
36730 return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self,args);
36731 }
36732 }
36733 }
36734 if (argc == 2) {
36735 int _v;
36736 {
36737 void *ptr;
36738 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
36739 _v = 0;
36740 PyErr_Clear();
36741 } else {
36742 _v = 1;
36743 }
36744 }
36745 if (_v) {
36746 {
36747 void *ptr;
36748 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
36749 _v = 0;
36750 PyErr_Clear();
36751 } else {
36752 _v = 1;
36753 }
36754 }
36755 if (_v) {
36756 return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self,args);
36757 }
36758 }
36759 }
36760 if (argc == 2) {
36761 int _v;
36762 {
36763 void *ptr;
36764 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
36765 _v = 0;
36766 PyErr_Clear();
36767 } else {
36768 _v = 1;
36769 }
36770 }
36771 if (_v) {
36772 {
8edf1c75 36773 SWIG_PyObj_AsUnsignedLong(argv[1]);
83448d71
RD
36774 if (PyErr_Occurred()) {
36775 _v = 0;
36776 PyErr_Clear();
36777 } else {
36778 _v = 1;
36779 }
d14a1e28
RD
36780 }
36781 if (_v) {
36782 return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self,args);
36783 }
36784 }
36785 }
36786
36787 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'");
36788 return NULL;
36789}
36790
36791
36792static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *self, PyObject *args) {
36793 PyObject *resultobj;
36794 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
36795 wxWindow *arg2 = (wxWindow *) 0 ;
36796 wxGBPosition *arg3 = 0 ;
36797 bool result;
36798 wxGBPosition temp3 ;
36799 PyObject * obj0 = 0 ;
36800 PyObject * obj1 = 0 ;
36801 PyObject * obj2 = 0 ;
36802
36803 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail;
36804 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36805 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36806 {
36807 arg3 = &temp3;
36808 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
36809 }
36810 {
36811 PyThreadState* __tstate = wxPyBeginAllowThreads();
36812 result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3);
36813
36814 wxPyEndAllowThreads(__tstate);
36815 if (PyErr_Occurred()) SWIG_fail;
36816 }
4e760a36 36817 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
36818 return resultobj;
36819 fail:
36820 return NULL;
36821}
36822
36823
36824static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *self, PyObject *args) {
36825 PyObject *resultobj;
36826 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
36827 wxSizer *arg2 = (wxSizer *) 0 ;
36828 wxGBPosition *arg3 = 0 ;
36829 bool result;
36830 wxGBPosition temp3 ;
36831 PyObject * obj0 = 0 ;
36832 PyObject * obj1 = 0 ;
36833 PyObject * obj2 = 0 ;
36834
36835 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail;
36836 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36837 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
36838 {
36839 arg3 = &temp3;
36840 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
36841 }
36842 {
36843 PyThreadState* __tstate = wxPyBeginAllowThreads();
36844 result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3);
36845
36846 wxPyEndAllowThreads(__tstate);
36847 if (PyErr_Occurred()) SWIG_fail;
36848 }
4e760a36 36849 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
36850 return resultobj;
36851 fail:
36852 return NULL;
36853}
36854
36855
36856static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *self, PyObject *args) {
36857 PyObject *resultobj;
36858 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
36859 size_t arg2 ;
36860 wxGBPosition *arg3 = 0 ;
36861 bool result;
36862 wxGBPosition temp3 ;
36863 PyObject * obj0 = 0 ;
36864 PyObject * obj1 = 0 ;
36865 PyObject * obj2 = 0 ;
36866
36867 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail;
36868 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 36869 {
8edf1c75 36870 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
83448d71
RD
36871 if (PyErr_Occurred()) SWIG_fail;
36872 }
d14a1e28
RD
36873 {
36874 arg3 = &temp3;
36875 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
36876 }
36877 {
36878 PyThreadState* __tstate = wxPyBeginAllowThreads();
36879 result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3);
36880
36881 wxPyEndAllowThreads(__tstate);
36882 if (PyErr_Occurred()) SWIG_fail;
36883 }
4e760a36 36884 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
36885 return resultobj;
36886 fail:
36887 return NULL;
36888}
36889
36890
36891static PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) {
36892 int argc;
36893 PyObject *argv[4];
36894 int ii;
36895
36896 argc = PyObject_Length(args);
36897 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
36898 argv[ii] = PyTuple_GetItem(args,ii);
36899 }
36900 if (argc == 3) {
36901 int _v;
36902 {
36903 void *ptr;
36904 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
36905 _v = 0;
36906 PyErr_Clear();
36907 } else {
36908 _v = 1;
36909 }
36910 }
36911 if (_v) {
36912 {
36913 void *ptr;
36914 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
36915 _v = 0;
36916 PyErr_Clear();
36917 } else {
36918 _v = 1;
36919 }
36920 }
36921 if (_v) {
36922 {
36923 _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2);
36924 }
36925 if (_v) {
36926 return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self,args);
36927 }
36928 }
36929 }
36930 }
36931 if (argc == 3) {
36932 int _v;
36933 {
36934 void *ptr;
36935 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
36936 _v = 0;
36937 PyErr_Clear();
36938 } else {
36939 _v = 1;
36940 }
36941 }
36942 if (_v) {
36943 {
36944 void *ptr;
36945 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
36946 _v = 0;
36947 PyErr_Clear();
36948 } else {
36949 _v = 1;
36950 }
36951 }
36952 if (_v) {
36953 {
36954 _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2);
36955 }
36956 if (_v) {
36957 return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self,args);
36958 }
36959 }
36960 }
36961 }
36962 if (argc == 3) {
36963 int _v;
36964 {
36965 void *ptr;
36966 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
36967 _v = 0;
36968 PyErr_Clear();
36969 } else {
36970 _v = 1;
36971 }
36972 }
36973 if (_v) {
36974 {
8edf1c75 36975 SWIG_PyObj_AsUnsignedLong(argv[1]);
83448d71
RD
36976 if (PyErr_Occurred()) {
36977 _v = 0;
36978 PyErr_Clear();
36979 } else {
36980 _v = 1;
36981 }
d14a1e28
RD
36982 }
36983 if (_v) {
36984 {
36985 _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2);
36986 }
36987 if (_v) {
36988 return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self,args);
36989 }
36990 }
36991 }
36992 }
36993
36994 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'");
36995 return NULL;
36996}
36997
36998
36999static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *self, PyObject *args) {
37000 PyObject *resultobj;
37001 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
37002 wxWindow *arg2 = (wxWindow *) 0 ;
37003 wxGBSpan result;
37004 PyObject * obj0 = 0 ;
37005 PyObject * obj1 = 0 ;
37006
37007 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail;
37008 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37009 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37010 {
37011 PyThreadState* __tstate = wxPyBeginAllowThreads();
37012 result = (arg1)->GetItemSpan(arg2);
37013
37014 wxPyEndAllowThreads(__tstate);
37015 if (PyErr_Occurred()) SWIG_fail;
37016 }
37017 {
37018 wxGBSpan * resultptr;
37019 resultptr = new wxGBSpan((wxGBSpan &) result);
37020 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBSpan, 1);
37021 }
37022 return resultobj;
37023 fail:
37024 return NULL;
37025}
37026
37027
37028static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *self, PyObject *args) {
37029 PyObject *resultobj;
37030 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
37031 wxSizer *arg2 = (wxSizer *) 0 ;
37032 wxGBSpan result;
37033 PyObject * obj0 = 0 ;
37034 PyObject * obj1 = 0 ;
37035
37036 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail;
37037 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37038 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37039 {
37040 PyThreadState* __tstate = wxPyBeginAllowThreads();
37041 result = (arg1)->GetItemSpan(arg2);
37042
37043 wxPyEndAllowThreads(__tstate);
37044 if (PyErr_Occurred()) SWIG_fail;
37045 }
37046 {
37047 wxGBSpan * resultptr;
37048 resultptr = new wxGBSpan((wxGBSpan &) result);
37049 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBSpan, 1);
37050 }
37051 return resultobj;
37052 fail:
37053 return NULL;
37054}
37055
37056
37057static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *self, PyObject *args) {
37058 PyObject *resultobj;
37059 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
37060 size_t arg2 ;
37061 wxGBSpan result;
37062 PyObject * obj0 = 0 ;
37063 PyObject * obj1 = 0 ;
37064
37065 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail;
37066 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 37067 {
8edf1c75 37068 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
83448d71
RD
37069 if (PyErr_Occurred()) SWIG_fail;
37070 }
d14a1e28
RD
37071 {
37072 PyThreadState* __tstate = wxPyBeginAllowThreads();
37073 result = (arg1)->GetItemSpan(arg2);
37074
37075 wxPyEndAllowThreads(__tstate);
37076 if (PyErr_Occurred()) SWIG_fail;
37077 }
37078 {
37079 wxGBSpan * resultptr;
37080 resultptr = new wxGBSpan((wxGBSpan &) result);
37081 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxGBSpan, 1);
37082 }
37083 return resultobj;
37084 fail:
37085 return NULL;
37086}
37087
37088
37089static PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) {
37090 int argc;
37091 PyObject *argv[3];
37092 int ii;
37093
37094 argc = PyObject_Length(args);
37095 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
37096 argv[ii] = PyTuple_GetItem(args,ii);
37097 }
37098 if (argc == 2) {
37099 int _v;
37100 {
37101 void *ptr;
37102 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
37103 _v = 0;
37104 PyErr_Clear();
37105 } else {
37106 _v = 1;
37107 }
37108 }
37109 if (_v) {
37110 {
37111 void *ptr;
37112 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
37113 _v = 0;
37114 PyErr_Clear();
37115 } else {
37116 _v = 1;
37117 }
37118 }
37119 if (_v) {
37120 return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self,args);
37121 }
37122 }
37123 }
37124 if (argc == 2) {
37125 int _v;
37126 {
37127 void *ptr;
37128 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
37129 _v = 0;
37130 PyErr_Clear();
37131 } else {
37132 _v = 1;
37133 }
37134 }
37135 if (_v) {
37136 {
37137 void *ptr;
37138 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
37139 _v = 0;
37140 PyErr_Clear();
37141 } else {
37142 _v = 1;
37143 }
37144 }
37145 if (_v) {
37146 return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self,args);
37147 }
37148 }
37149 }
37150 if (argc == 2) {
37151 int _v;
37152 {
37153 void *ptr;
37154 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
37155 _v = 0;
37156 PyErr_Clear();
37157 } else {
37158 _v = 1;
37159 }
37160 }
37161 if (_v) {
37162 {
8edf1c75 37163 SWIG_PyObj_AsUnsignedLong(argv[1]);
83448d71
RD
37164 if (PyErr_Occurred()) {
37165 _v = 0;
37166 PyErr_Clear();
37167 } else {
37168 _v = 1;
37169 }
d14a1e28
RD
37170 }
37171 if (_v) {
37172 return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self,args);
37173 }
37174 }
37175 }
37176
37177 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'");
37178 return NULL;
37179}
37180
37181
37182static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *self, PyObject *args) {
37183 PyObject *resultobj;
37184 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
37185 wxWindow *arg2 = (wxWindow *) 0 ;
37186 wxGBSpan *arg3 = 0 ;
37187 bool result;
37188 wxGBSpan temp3 ;
37189 PyObject * obj0 = 0 ;
37190 PyObject * obj1 = 0 ;
37191 PyObject * obj2 = 0 ;
37192
37193 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail;
37194 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37195 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37196 {
37197 arg3 = &temp3;
37198 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
37199 }
37200 {
37201 PyThreadState* __tstate = wxPyBeginAllowThreads();
37202 result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3);
37203
37204 wxPyEndAllowThreads(__tstate);
37205 if (PyErr_Occurred()) SWIG_fail;
37206 }
4e760a36 37207 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
37208 return resultobj;
37209 fail:
37210 return NULL;
37211}
37212
37213
37214static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *self, PyObject *args) {
37215 PyObject *resultobj;
37216 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
37217 wxSizer *arg2 = (wxSizer *) 0 ;
37218 wxGBSpan *arg3 = 0 ;
37219 bool result;
37220 wxGBSpan temp3 ;
37221 PyObject * obj0 = 0 ;
37222 PyObject * obj1 = 0 ;
37223 PyObject * obj2 = 0 ;
37224
37225 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail;
37226 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37227 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37228 {
37229 arg3 = &temp3;
37230 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
37231 }
37232 {
37233 PyThreadState* __tstate = wxPyBeginAllowThreads();
37234 result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3);
37235
37236 wxPyEndAllowThreads(__tstate);
37237 if (PyErr_Occurred()) SWIG_fail;
37238 }
4e760a36 37239 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
37240 return resultobj;
37241 fail:
37242 return NULL;
37243}
37244
37245
37246static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *self, PyObject *args) {
37247 PyObject *resultobj;
37248 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
37249 size_t arg2 ;
37250 wxGBSpan *arg3 = 0 ;
37251 bool result;
37252 wxGBSpan temp3 ;
37253 PyObject * obj0 = 0 ;
37254 PyObject * obj1 = 0 ;
37255 PyObject * obj2 = 0 ;
37256
37257 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail;
37258 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 37259 {
8edf1c75 37260 arg2 = (size_t) SWIG_PyObj_AsUnsignedLong(obj1);
83448d71
RD
37261 if (PyErr_Occurred()) SWIG_fail;
37262 }
d14a1e28
RD
37263 {
37264 arg3 = &temp3;
37265 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
37266 }
37267 {
37268 PyThreadState* __tstate = wxPyBeginAllowThreads();
37269 result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3);
37270
37271 wxPyEndAllowThreads(__tstate);
37272 if (PyErr_Occurred()) SWIG_fail;
37273 }
4e760a36 37274 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
37275 return resultobj;
37276 fail:
37277 return NULL;
37278}
37279
37280
37281static PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) {
37282 int argc;
37283 PyObject *argv[4];
37284 int ii;
37285
37286 argc = PyObject_Length(args);
37287 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
37288 argv[ii] = PyTuple_GetItem(args,ii);
37289 }
37290 if (argc == 3) {
37291 int _v;
37292 {
37293 void *ptr;
37294 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
37295 _v = 0;
37296 PyErr_Clear();
37297 } else {
37298 _v = 1;
37299 }
37300 }
37301 if (_v) {
37302 {
37303 void *ptr;
37304 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
37305 _v = 0;
37306 PyErr_Clear();
37307 } else {
37308 _v = 1;
37309 }
37310 }
37311 if (_v) {
37312 {
37313 _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2);
37314 }
37315 if (_v) {
37316 return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self,args);
37317 }
37318 }
37319 }
37320 }
37321 if (argc == 3) {
37322 int _v;
37323 {
37324 void *ptr;
37325 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
37326 _v = 0;
37327 PyErr_Clear();
37328 } else {
37329 _v = 1;
37330 }
37331 }
37332 if (_v) {
37333 {
37334 void *ptr;
37335 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
37336 _v = 0;
37337 PyErr_Clear();
37338 } else {
37339 _v = 1;
37340 }
37341 }
37342 if (_v) {
37343 {
37344 _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2);
37345 }
37346 if (_v) {
37347 return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self,args);
37348 }
37349 }
37350 }
37351 }
37352 if (argc == 3) {
37353 int _v;
37354 {
37355 void *ptr;
37356 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
37357 _v = 0;
37358 PyErr_Clear();
37359 } else {
37360 _v = 1;
37361 }
37362 }
37363 if (_v) {
37364 {
8edf1c75 37365 SWIG_PyObj_AsUnsignedLong(argv[1]);
83448d71
RD
37366 if (PyErr_Occurred()) {
37367 _v = 0;
37368 PyErr_Clear();
37369 } else {
37370 _v = 1;
37371 }
d14a1e28
RD
37372 }
37373 if (_v) {
37374 {
37375 _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2);
37376 }
37377 if (_v) {
37378 return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self,args);
37379 }
37380 }
37381 }
37382 }
37383
37384 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'");
37385 return NULL;
37386}
37387
37388
37389static PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *self, PyObject *args) {
37390 PyObject *resultobj;
37391 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
37392 wxWindow *arg2 = (wxWindow *) 0 ;
37393 wxGBSizerItem *result;
37394 PyObject * obj0 = 0 ;
37395 PyObject * obj1 = 0 ;
37396
37397 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail;
37398 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37399 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37400 {
37401 PyThreadState* __tstate = wxPyBeginAllowThreads();
37402 result = (wxGBSizerItem *)(arg1)->FindItem(arg2);
37403
37404 wxPyEndAllowThreads(__tstate);
37405 if (PyErr_Occurred()) SWIG_fail;
37406 }
37407 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0);
37408 return resultobj;
37409 fail:
37410 return NULL;
37411}
37412
37413
37414static PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *self, PyObject *args) {
37415 PyObject *resultobj;
37416 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
37417 wxSizer *arg2 = (wxSizer *) 0 ;
37418 wxGBSizerItem *result;
37419 PyObject * obj0 = 0 ;
37420 PyObject * obj1 = 0 ;
37421
37422 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail;
37423 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37424 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37425 {
37426 PyThreadState* __tstate = wxPyBeginAllowThreads();
37427 result = (wxGBSizerItem *)(arg1)->FindItem(arg2);
37428
37429 wxPyEndAllowThreads(__tstate);
37430 if (PyErr_Occurred()) SWIG_fail;
37431 }
37432 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0);
37433 return resultobj;
37434 fail:
37435 return NULL;
37436}
37437
37438
37439static PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) {
37440 int argc;
37441 PyObject *argv[3];
37442 int ii;
37443
37444 argc = PyObject_Length(args);
37445 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
37446 argv[ii] = PyTuple_GetItem(args,ii);
37447 }
37448 if (argc == 2) {
37449 int _v;
37450 {
37451 void *ptr;
37452 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
37453 _v = 0;
37454 PyErr_Clear();
37455 } else {
37456 _v = 1;
37457 }
37458 }
37459 if (_v) {
37460 {
37461 void *ptr;
37462 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
37463 _v = 0;
37464 PyErr_Clear();
37465 } else {
37466 _v = 1;
37467 }
37468 }
37469 if (_v) {
37470 return _wrap_GridBagSizer_FindItem__SWIG_0(self,args);
37471 }
37472 }
37473 }
37474 if (argc == 2) {
37475 int _v;
37476 {
37477 void *ptr;
37478 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
37479 _v = 0;
37480 PyErr_Clear();
37481 } else {
37482 _v = 1;
37483 }
37484 }
37485 if (_v) {
37486 {
37487 void *ptr;
37488 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
37489 _v = 0;
37490 PyErr_Clear();
37491 } else {
37492 _v = 1;
37493 }
37494 }
37495 if (_v) {
37496 return _wrap_GridBagSizer_FindItem__SWIG_1(self,args);
37497 }
37498 }
37499 }
37500
37501 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_FindItem'");
37502 return NULL;
37503}
37504
37505
37506static PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
37507 PyObject *resultobj;
37508 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
37509 wxGBPosition *arg2 = 0 ;
37510 wxGBSizerItem *result;
37511 wxGBPosition temp2 ;
37512 PyObject * obj0 = 0 ;
37513 PyObject * obj1 = 0 ;
37514 char *kwnames[] = {
37515 (char *) "self",(char *) "pos", NULL
37516 };
37517
37518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) goto fail;
37519 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37520 {
37521 arg2 = &temp2;
37522 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
37523 }
37524 {
37525 PyThreadState* __tstate = wxPyBeginAllowThreads();
37526 result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2);
37527
37528 wxPyEndAllowThreads(__tstate);
37529 if (PyErr_Occurred()) SWIG_fail;
37530 }
37531 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0);
37532 return resultobj;
37533 fail:
37534 return NULL;
37535}
37536
37537
423f194a
RD
37538static PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
37539 PyObject *resultobj;
37540 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
37541 wxPoint *arg2 = 0 ;
37542 wxGBSizerItem *result;
37543 wxPoint temp2 ;
37544 PyObject * obj0 = 0 ;
37545 PyObject * obj1 = 0 ;
37546 char *kwnames[] = {
37547 (char *) "self",(char *) "pt", NULL
37548 };
37549
37550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) goto fail;
37551 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37552 {
37553 arg2 = &temp2;
37554 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
37555 }
37556 {
37557 PyThreadState* __tstate = wxPyBeginAllowThreads();
37558 result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2);
37559
37560 wxPyEndAllowThreads(__tstate);
37561 if (PyErr_Occurred()) SWIG_fail;
37562 }
37563 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0);
37564 return resultobj;
37565 fail:
37566 return NULL;
37567}
37568
37569
d14a1e28
RD
37570static PyObject *_wrap_GridBagSizer_FindItemWithData(PyObject *self, PyObject *args, PyObject *kwargs) {
37571 PyObject *resultobj;
37572 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
37573 wxObject *arg2 = (wxObject *) 0 ;
37574 wxGBSizerItem *result;
37575 PyObject * obj0 = 0 ;
37576 PyObject * obj1 = 0 ;
37577 char *kwnames[] = {
37578 (char *) "self",(char *) "userData", NULL
37579 };
37580
37581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemWithData",kwnames,&obj0,&obj1)) goto fail;
37582 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37583 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37584 {
37585 PyThreadState* __tstate = wxPyBeginAllowThreads();
37586 result = (wxGBSizerItem *)(arg1)->FindItemWithData((wxObject const *)arg2);
37587
37588 wxPyEndAllowThreads(__tstate);
37589 if (PyErr_Occurred()) SWIG_fail;
37590 }
37591 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGBSizerItem, 0);
37592 return resultobj;
37593 fail:
37594 return NULL;
37595}
37596
37597
37598static PyObject *_wrap_GridBagSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
37599 PyObject *resultobj;
37600 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
37601 PyObject * obj0 = 0 ;
37602 char *kwnames[] = {
37603 (char *) "self", NULL
37604 };
37605
37606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_RecalcSizes",kwnames,&obj0)) goto fail;
37607 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37608 {
37609 PyThreadState* __tstate = wxPyBeginAllowThreads();
37610 (arg1)->RecalcSizes();
37611
37612 wxPyEndAllowThreads(__tstate);
37613 if (PyErr_Occurred()) SWIG_fail;
37614 }
37615 Py_INCREF(Py_None); resultobj = Py_None;
37616 return resultobj;
37617 fail:
37618 return NULL;
37619}
37620
37621
37622static PyObject *_wrap_GridBagSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
37623 PyObject *resultobj;
37624 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
37625 wxSize result;
37626 PyObject * obj0 = 0 ;
37627 char *kwnames[] = {
37628 (char *) "self", NULL
37629 };
37630
37631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_CalcMin",kwnames,&obj0)) goto fail;
37632 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37633 {
37634 PyThreadState* __tstate = wxPyBeginAllowThreads();
37635 result = (arg1)->CalcMin();
37636
37637 wxPyEndAllowThreads(__tstate);
37638 if (PyErr_Occurred()) SWIG_fail;
37639 }
37640 {
37641 wxSize * resultptr;
37642 resultptr = new wxSize((wxSize &) result);
37643 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
37644 }
37645 return resultobj;
37646 fail:
37647 return NULL;
37648}
37649
37650
37651static PyObject *_wrap_GridBagSizer_CheckForIntersection__SWIG_0(PyObject *self, PyObject *args) {
37652 PyObject *resultobj;
37653 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
37654 wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ;
37655 wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ;
37656 bool result;
37657 PyObject * obj0 = 0 ;
37658 PyObject * obj1 = 0 ;
37659 PyObject * obj2 = 0 ;
37660
37661 if(!PyArg_ParseTuple(args,(char *)"OO|O:GridBagSizer_CheckForIntersection",&obj0,&obj1,&obj2)) goto fail;
37662 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37663 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37664 if (obj2) {
37665 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37666 }
37667 {
37668 PyThreadState* __tstate = wxPyBeginAllowThreads();
37669 result = (bool)(arg1)->CheckForIntersection(arg2,arg3);
37670
37671 wxPyEndAllowThreads(__tstate);
37672 if (PyErr_Occurred()) SWIG_fail;
37673 }
4e760a36 37674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
37675 return resultobj;
37676 fail:
37677 return NULL;
37678}
37679
37680
37681static PyObject *_wrap_GridBagSizer_CheckForIntersection__SWIG_1(PyObject *self, PyObject *args) {
37682 PyObject *resultobj;
37683 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
37684 wxGBPosition *arg2 = 0 ;
37685 wxGBSpan *arg3 = 0 ;
37686 wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ;
37687 bool result;
37688 wxGBPosition temp2 ;
37689 wxGBSpan temp3 ;
37690 PyObject * obj0 = 0 ;
37691 PyObject * obj1 = 0 ;
37692 PyObject * obj2 = 0 ;
37693 PyObject * obj3 = 0 ;
37694
37695 if(!PyArg_ParseTuple(args,(char *)"OOO|O:GridBagSizer_CheckForIntersection",&obj0,&obj1,&obj2,&obj3)) goto fail;
37696 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGridBagSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37697 {
37698 arg2 = &temp2;
37699 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
37700 }
37701 {
37702 arg3 = &temp3;
37703 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
37704 }
37705 if (obj3) {
37706 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxGBSizerItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37707 }
37708 {
37709 PyThreadState* __tstate = wxPyBeginAllowThreads();
37710 result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4);
37711
37712 wxPyEndAllowThreads(__tstate);
37713 if (PyErr_Occurred()) SWIG_fail;
37714 }
4e760a36 37715 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
37716 return resultobj;
37717 fail:
37718 return NULL;
37719}
37720
37721
37722static PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *self, PyObject *args) {
37723 int argc;
37724 PyObject *argv[5];
37725 int ii;
37726
37727 argc = PyObject_Length(args);
37728 for (ii = 0; (ii < argc) && (ii < 4); ii++) {
37729 argv[ii] = PyTuple_GetItem(args,ii);
37730 }
37731 if ((argc >= 2) && (argc <= 3)) {
37732 int _v;
37733 {
37734 void *ptr;
37735 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
37736 _v = 0;
37737 PyErr_Clear();
37738 } else {
37739 _v = 1;
37740 }
37741 }
37742 if (_v) {
37743 {
37744 void *ptr;
37745 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) {
37746 _v = 0;
37747 PyErr_Clear();
37748 } else {
37749 _v = 1;
37750 }
37751 }
37752 if (_v) {
37753 if (argc <= 2) {
37754 return _wrap_GridBagSizer_CheckForIntersection__SWIG_0(self,args);
37755 }
37756 {
37757 void *ptr;
37758 if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) {
37759 _v = 0;
37760 PyErr_Clear();
37761 } else {
37762 _v = 1;
37763 }
37764 }
37765 if (_v) {
37766 return _wrap_GridBagSizer_CheckForIntersection__SWIG_0(self,args);
37767 }
37768 }
37769 }
37770 }
37771 if ((argc >= 3) && (argc <= 4)) {
37772 int _v;
37773 {
37774 void *ptr;
37775 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
37776 _v = 0;
37777 PyErr_Clear();
37778 } else {
37779 _v = 1;
37780 }
37781 }
37782 if (_v) {
37783 {
37784 _v = wxPySimple_typecheck(argv[1], wxT("wxGBPosition"), 2);
37785 }
37786 if (_v) {
37787 {
37788 _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2);
37789 }
37790 if (_v) {
37791 if (argc <= 3) {
37792 return _wrap_GridBagSizer_CheckForIntersection__SWIG_1(self,args);
37793 }
37794 {
37795 void *ptr;
37796 if (SWIG_ConvertPtr(argv[3], (void **) &ptr, SWIGTYPE_p_wxGBSizerItem, 0) == -1) {
37797 _v = 0;
37798 PyErr_Clear();
37799 } else {
37800 _v = 1;
37801 }
37802 }
37803 if (_v) {
37804 return _wrap_GridBagSizer_CheckForIntersection__SWIG_1(self,args);
37805 }
37806 }
37807 }
37808 }
37809 }
37810
37811 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_CheckForIntersection'");
37812 return NULL;
37813}
37814
37815
37816static PyObject * GridBagSizer_swigregister(PyObject *self, PyObject *args) {
37817 PyObject *obj;
37818 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
37819 SWIG_TypeClientData(SWIGTYPE_p_wxGridBagSizer, obj);
37820 Py_INCREF(obj);
37821 return Py_BuildValue((char *)"");
37822}
37823static PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
37824 PyObject *resultobj;
37825 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
37826 int arg2 ;
37827 wxWindow *arg3 = (wxWindow *) 0 ;
37828 int arg4 ;
37829 int arg5 = (int) 0 ;
37830 int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ;
37831 PyObject * obj0 = 0 ;
8edf1c75 37832 PyObject * obj1 = 0 ;
d14a1e28 37833 PyObject * obj2 = 0 ;
8edf1c75
RD
37834 PyObject * obj3 = 0 ;
37835 PyObject * obj4 = 0 ;
37836 PyObject * obj5 = 0 ;
d14a1e28
RD
37837 char *kwnames[] = {
37838 (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL
37839 };
37840
8edf1c75 37841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:IndividualLayoutConstraint_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
d14a1e28 37842 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
37843 {
37844 arg2 = (wxRelationship) SWIG_PyObj_AsInt(obj1);
37845 if (PyErr_Occurred()) SWIG_fail;
37846 }
d14a1e28 37847 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
37848 {
37849 arg4 = (wxEdge) SWIG_PyObj_AsInt(obj3);
37850 if (PyErr_Occurred()) SWIG_fail;
37851 }
37852 if (obj4) {
37853 {
37854 arg5 = (int) SWIG_PyObj_AsInt(obj4);
37855 if (PyErr_Occurred()) SWIG_fail;
37856 }
37857 }
37858 if (obj5) {
37859 {
37860 arg6 = (int) SWIG_PyObj_AsInt(obj5);
37861 if (PyErr_Occurred()) SWIG_fail;
37862 }
37863 }
d14a1e28
RD
37864 {
37865 PyThreadState* __tstate = wxPyBeginAllowThreads();
37866 (arg1)->Set((wxRelationship )arg2,arg3,(wxEdge )arg4,arg5,arg6);
37867
37868 wxPyEndAllowThreads(__tstate);
37869 if (PyErr_Occurred()) SWIG_fail;
37870 }
37871 Py_INCREF(Py_None); resultobj = Py_None;
37872 return resultobj;
37873 fail:
37874 return NULL;
37875}
37876
37877
37878static PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *self, PyObject *args, PyObject *kwargs) {
37879 PyObject *resultobj;
37880 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
37881 wxWindow *arg2 = (wxWindow *) 0 ;
37882 int arg3 = (int) 0 ;
37883 PyObject * obj0 = 0 ;
37884 PyObject * obj1 = 0 ;
8edf1c75 37885 PyObject * obj2 = 0 ;
d14a1e28
RD
37886 char *kwnames[] = {
37887 (char *) "self",(char *) "sibling",(char *) "marg", NULL
37888 };
37889
8edf1c75 37890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28
RD
37891 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37892 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
37893 if (obj2) {
37894 {
37895 arg3 = (int) SWIG_PyObj_AsInt(obj2);
37896 if (PyErr_Occurred()) SWIG_fail;
37897 }
37898 }
d14a1e28
RD
37899 {
37900 PyThreadState* __tstate = wxPyBeginAllowThreads();
37901 (arg1)->LeftOf(arg2,arg3);
37902
37903 wxPyEndAllowThreads(__tstate);
37904 if (PyErr_Occurred()) SWIG_fail;
37905 }
37906 Py_INCREF(Py_None); resultobj = Py_None;
37907 return resultobj;
37908 fail:
37909 return NULL;
37910}
37911
37912
37913static PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *self, PyObject *args, PyObject *kwargs) {
37914 PyObject *resultobj;
37915 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
37916 wxWindow *arg2 = (wxWindow *) 0 ;
37917 int arg3 = (int) 0 ;
37918 PyObject * obj0 = 0 ;
37919 PyObject * obj1 = 0 ;
8edf1c75 37920 PyObject * obj2 = 0 ;
d14a1e28
RD
37921 char *kwnames[] = {
37922 (char *) "self",(char *) "sibling",(char *) "marg", NULL
37923 };
37924
8edf1c75 37925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28
RD
37926 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37927 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
37928 if (obj2) {
37929 {
37930 arg3 = (int) SWIG_PyObj_AsInt(obj2);
37931 if (PyErr_Occurred()) SWIG_fail;
37932 }
37933 }
d14a1e28
RD
37934 {
37935 PyThreadState* __tstate = wxPyBeginAllowThreads();
37936 (arg1)->RightOf(arg2,arg3);
37937
37938 wxPyEndAllowThreads(__tstate);
37939 if (PyErr_Occurred()) SWIG_fail;
37940 }
37941 Py_INCREF(Py_None); resultobj = Py_None;
37942 return resultobj;
37943 fail:
37944 return NULL;
37945}
37946
37947
37948static PyObject *_wrap_IndividualLayoutConstraint_Above(PyObject *self, PyObject *args, PyObject *kwargs) {
37949 PyObject *resultobj;
37950 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
37951 wxWindow *arg2 = (wxWindow *) 0 ;
37952 int arg3 = (int) 0 ;
37953 PyObject * obj0 = 0 ;
37954 PyObject * obj1 = 0 ;
8edf1c75 37955 PyObject * obj2 = 0 ;
d14a1e28
RD
37956 char *kwnames[] = {
37957 (char *) "self",(char *) "sibling",(char *) "marg", NULL
37958 };
37959
8edf1c75 37960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28
RD
37961 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37962 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
37963 if (obj2) {
37964 {
37965 arg3 = (int) SWIG_PyObj_AsInt(obj2);
37966 if (PyErr_Occurred()) SWIG_fail;
37967 }
37968 }
d14a1e28
RD
37969 {
37970 PyThreadState* __tstate = wxPyBeginAllowThreads();
37971 (arg1)->Above(arg2,arg3);
37972
37973 wxPyEndAllowThreads(__tstate);
37974 if (PyErr_Occurred()) SWIG_fail;
37975 }
37976 Py_INCREF(Py_None); resultobj = Py_None;
37977 return resultobj;
37978 fail:
37979 return NULL;
37980}
37981
37982
37983static PyObject *_wrap_IndividualLayoutConstraint_Below(PyObject *self, PyObject *args, PyObject *kwargs) {
37984 PyObject *resultobj;
37985 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
37986 wxWindow *arg2 = (wxWindow *) 0 ;
37987 int arg3 = (int) 0 ;
37988 PyObject * obj0 = 0 ;
37989 PyObject * obj1 = 0 ;
8edf1c75 37990 PyObject * obj2 = 0 ;
d14a1e28
RD
37991 char *kwnames[] = {
37992 (char *) "self",(char *) "sibling",(char *) "marg", NULL
37993 };
37994
8edf1c75 37995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&obj2)) goto fail;
d14a1e28
RD
37996 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
37997 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
37998 if (obj2) {
37999 {
38000 arg3 = (int) SWIG_PyObj_AsInt(obj2);
38001 if (PyErr_Occurred()) SWIG_fail;
38002 }
38003 }
d14a1e28
RD
38004 {
38005 PyThreadState* __tstate = wxPyBeginAllowThreads();
38006 (arg1)->Below(arg2,arg3);
38007
38008 wxPyEndAllowThreads(__tstate);
38009 if (PyErr_Occurred()) SWIG_fail;
38010 }
38011 Py_INCREF(Py_None); resultobj = Py_None;
38012 return resultobj;
38013 fail:
38014 return NULL;
38015}
38016
38017
38018static PyObject *_wrap_IndividualLayoutConstraint_SameAs(PyObject *self, PyObject *args, PyObject *kwargs) {
38019 PyObject *resultobj;
38020 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
38021 wxWindow *arg2 = (wxWindow *) 0 ;
38022 int arg3 ;
38023 int arg4 = (int) 0 ;
38024 PyObject * obj0 = 0 ;
38025 PyObject * obj1 = 0 ;
8edf1c75
RD
38026 PyObject * obj2 = 0 ;
38027 PyObject * obj3 = 0 ;
d14a1e28
RD
38028 char *kwnames[] = {
38029 (char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL
38030 };
38031
8edf1c75 38032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28
RD
38033 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38034 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
38035 {
38036 arg3 = (wxEdge) SWIG_PyObj_AsInt(obj2);
38037 if (PyErr_Occurred()) SWIG_fail;
38038 }
38039 if (obj3) {
38040 {
38041 arg4 = (int) SWIG_PyObj_AsInt(obj3);
38042 if (PyErr_Occurred()) SWIG_fail;
38043 }
38044 }
d14a1e28
RD
38045 {
38046 PyThreadState* __tstate = wxPyBeginAllowThreads();
38047 (arg1)->SameAs(arg2,(wxEdge )arg3,arg4);
38048
38049 wxPyEndAllowThreads(__tstate);
38050 if (PyErr_Occurred()) SWIG_fail;
38051 }
38052 Py_INCREF(Py_None); resultobj = Py_None;
38053 return resultobj;
38054 fail:
38055 return NULL;
38056}
38057
38058
38059static PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *self, PyObject *args, PyObject *kwargs) {
38060 PyObject *resultobj;
38061 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
38062 wxWindow *arg2 = (wxWindow *) 0 ;
38063 int arg3 ;
38064 int arg4 ;
38065 PyObject * obj0 = 0 ;
38066 PyObject * obj1 = 0 ;
8edf1c75
RD
38067 PyObject * obj2 = 0 ;
38068 PyObject * obj3 = 0 ;
d14a1e28
RD
38069 char *kwnames[] = {
38070 (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL
38071 };
38072
8edf1c75 38073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28
RD
38074 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38075 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
38076 {
38077 arg3 = (wxEdge) SWIG_PyObj_AsInt(obj2);
38078 if (PyErr_Occurred()) SWIG_fail;
38079 }
38080 {
38081 arg4 = (int) SWIG_PyObj_AsInt(obj3);
38082 if (PyErr_Occurred()) SWIG_fail;
38083 }
d14a1e28
RD
38084 {
38085 PyThreadState* __tstate = wxPyBeginAllowThreads();
38086 (arg1)->PercentOf(arg2,(wxEdge )arg3,arg4);
38087
38088 wxPyEndAllowThreads(__tstate);
38089 if (PyErr_Occurred()) SWIG_fail;
38090 }
38091 Py_INCREF(Py_None); resultobj = Py_None;
38092 return resultobj;
38093 fail:
38094 return NULL;
38095}
38096
38097
38098static PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *self, PyObject *args, PyObject *kwargs) {
38099 PyObject *resultobj;
38100 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
38101 int arg2 ;
38102 PyObject * obj0 = 0 ;
8edf1c75 38103 PyObject * obj1 = 0 ;
d14a1e28
RD
38104 char *kwnames[] = {
38105 (char *) "self",(char *) "val", NULL
38106 };
38107
8edf1c75 38108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 38109 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
38110 {
38111 arg2 = (int) SWIG_PyObj_AsInt(obj1);
38112 if (PyErr_Occurred()) SWIG_fail;
38113 }
d14a1e28
RD
38114 {
38115 PyThreadState* __tstate = wxPyBeginAllowThreads();
38116 (arg1)->Absolute(arg2);
38117
38118 wxPyEndAllowThreads(__tstate);
38119 if (PyErr_Occurred()) SWIG_fail;
38120 }
38121 Py_INCREF(Py_None); resultobj = Py_None;
38122 return resultobj;
38123 fail:
38124 return NULL;
38125}
38126
38127
38128static PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *self, PyObject *args, PyObject *kwargs) {
38129 PyObject *resultobj;
38130 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
38131 PyObject * obj0 = 0 ;
38132 char *kwnames[] = {
38133 (char *) "self", NULL
38134 };
38135
38136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_Unconstrained",kwnames,&obj0)) goto fail;
38137 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38138 {
38139 PyThreadState* __tstate = wxPyBeginAllowThreads();
38140 (arg1)->Unconstrained();
38141
38142 wxPyEndAllowThreads(__tstate);
38143 if (PyErr_Occurred()) SWIG_fail;
38144 }
38145 Py_INCREF(Py_None); resultobj = Py_None;
38146 return resultobj;
38147 fail:
38148 return NULL;
38149}
38150
38151
38152static PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *self, PyObject *args, PyObject *kwargs) {
38153 PyObject *resultobj;
38154 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
38155 PyObject * obj0 = 0 ;
38156 char *kwnames[] = {
38157 (char *) "self", NULL
38158 };
38159
38160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_AsIs",kwnames,&obj0)) goto fail;
38161 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38162 {
38163 PyThreadState* __tstate = wxPyBeginAllowThreads();
38164 (arg1)->AsIs();
38165
38166 wxPyEndAllowThreads(__tstate);
38167 if (PyErr_Occurred()) SWIG_fail;
38168 }
38169 Py_INCREF(Py_None); resultobj = Py_None;
38170 return resultobj;
38171 fail:
38172 return NULL;
38173}
38174
38175
38176static PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
38177 PyObject *resultobj;
38178 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
38179 wxWindow *result;
38180 PyObject * obj0 = 0 ;
38181 char *kwnames[] = {
38182 (char *) "self", NULL
38183 };
38184
38185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherWindow",kwnames,&obj0)) goto fail;
38186 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38187 {
38188 PyThreadState* __tstate = wxPyBeginAllowThreads();
38189 result = (wxWindow *)(arg1)->GetOtherWindow();
38190
38191 wxPyEndAllowThreads(__tstate);
38192 if (PyErr_Occurred()) SWIG_fail;
38193 }
38194 {
38195 resultobj = wxPyMake_wxObject(result);
38196 }
38197 return resultobj;
38198 fail:
38199 return NULL;
38200}
38201
38202
38203static PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
38204 PyObject *resultobj;
38205 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
38206 int result;
38207 PyObject * obj0 = 0 ;
38208 char *kwnames[] = {
38209 (char *) "self", NULL
38210 };
38211
38212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMyEdge",kwnames,&obj0)) goto fail;
38213 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38214 {
38215 PyThreadState* __tstate = wxPyBeginAllowThreads();
38216 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge();
38217
38218 wxPyEndAllowThreads(__tstate);
38219 if (PyErr_Occurred()) SWIG_fail;
38220 }
8edf1c75 38221 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
38222 return resultobj;
38223 fail:
38224 return NULL;
38225}
38226
38227
38228static PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
38229 PyObject *resultobj;
38230 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
38231 int arg2 ;
38232 PyObject * obj0 = 0 ;
8edf1c75 38233 PyObject * obj1 = 0 ;
d14a1e28
RD
38234 char *kwnames[] = {
38235 (char *) "self",(char *) "which", NULL
38236 };
38237
8edf1c75 38238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 38239 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
38240 {
38241 arg2 = (wxEdge) SWIG_PyObj_AsInt(obj1);
38242 if (PyErr_Occurred()) SWIG_fail;
38243 }
d14a1e28
RD
38244 {
38245 PyThreadState* __tstate = wxPyBeginAllowThreads();
38246 (arg1)->SetEdge((wxEdge )arg2);
38247
38248 wxPyEndAllowThreads(__tstate);
38249 if (PyErr_Occurred()) SWIG_fail;
38250 }
38251 Py_INCREF(Py_None); resultobj = Py_None;
38252 return resultobj;
38253 fail:
38254 return NULL;
38255}
38256
38257
38258static PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
38259 PyObject *resultobj;
38260 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
38261 int arg2 ;
38262 PyObject * obj0 = 0 ;
8edf1c75 38263 PyObject * obj1 = 0 ;
d14a1e28
RD
38264 char *kwnames[] = {
38265 (char *) "self",(char *) "v", NULL
38266 };
38267
8edf1c75 38268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 38269 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
38270 {
38271 arg2 = (int) SWIG_PyObj_AsInt(obj1);
38272 if (PyErr_Occurred()) SWIG_fail;
38273 }
d14a1e28
RD
38274 {
38275 PyThreadState* __tstate = wxPyBeginAllowThreads();
38276 (arg1)->SetValue(arg2);
38277
38278 wxPyEndAllowThreads(__tstate);
38279 if (PyErr_Occurred()) SWIG_fail;
38280 }
38281 Py_INCREF(Py_None); resultobj = Py_None;
38282 return resultobj;
38283 fail:
38284 return NULL;
38285}
38286
38287
38288static PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *self, PyObject *args, PyObject *kwargs) {
38289 PyObject *resultobj;
38290 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
38291 int result;
38292 PyObject * obj0 = 0 ;
38293 char *kwnames[] = {
38294 (char *) "self", NULL
38295 };
38296
38297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMargin",kwnames,&obj0)) goto fail;
38298 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38299 {
38300 PyThreadState* __tstate = wxPyBeginAllowThreads();
38301 result = (int)(arg1)->GetMargin();
38302
38303 wxPyEndAllowThreads(__tstate);
38304 if (PyErr_Occurred()) SWIG_fail;
38305 }
8edf1c75 38306 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
38307 return resultobj;
38308 fail:
38309 return NULL;
38310}
38311
38312
38313static PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *self, PyObject *args, PyObject *kwargs) {
38314 PyObject *resultobj;
38315 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
38316 int arg2 ;
38317 PyObject * obj0 = 0 ;
8edf1c75 38318 PyObject * obj1 = 0 ;
d14a1e28
RD
38319 char *kwnames[] = {
38320 (char *) "self",(char *) "m", NULL
38321 };
38322
8edf1c75 38323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 38324 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
38325 {
38326 arg2 = (int) SWIG_PyObj_AsInt(obj1);
38327 if (PyErr_Occurred()) SWIG_fail;
38328 }
d14a1e28
RD
38329 {
38330 PyThreadState* __tstate = wxPyBeginAllowThreads();
38331 (arg1)->SetMargin(arg2);
38332
38333 wxPyEndAllowThreads(__tstate);
38334 if (PyErr_Occurred()) SWIG_fail;
38335 }
38336 Py_INCREF(Py_None); resultobj = Py_None;
38337 return resultobj;
38338 fail:
38339 return NULL;
38340}
38341
38342
38343static PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
38344 PyObject *resultobj;
38345 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
38346 int result;
38347 PyObject * obj0 = 0 ;
38348 char *kwnames[] = {
38349 (char *) "self", NULL
38350 };
38351
38352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetValue",kwnames,&obj0)) goto fail;
38353 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38354 {
38355 PyThreadState* __tstate = wxPyBeginAllowThreads();
38356 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue();
38357
38358 wxPyEndAllowThreads(__tstate);
38359 if (PyErr_Occurred()) SWIG_fail;
38360 }
8edf1c75 38361 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
38362 return resultobj;
38363 fail:
38364 return NULL;
38365}
38366
38367
38368static PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *self, PyObject *args, PyObject *kwargs) {
38369 PyObject *resultobj;
38370 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
38371 int result;
38372 PyObject * obj0 = 0 ;
38373 char *kwnames[] = {
38374 (char *) "self", NULL
38375 };
38376
38377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetPercent",kwnames,&obj0)) goto fail;
38378 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38379 {
38380 PyThreadState* __tstate = wxPyBeginAllowThreads();
38381 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent();
38382
38383 wxPyEndAllowThreads(__tstate);
38384 if (PyErr_Occurred()) SWIG_fail;
38385 }
8edf1c75 38386 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
38387 return resultobj;
38388 fail:
38389 return NULL;
38390}
38391
38392
38393static PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
38394 PyObject *resultobj;
38395 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
38396 int result;
38397 PyObject * obj0 = 0 ;
38398 char *kwnames[] = {
38399 (char *) "self", NULL
38400 };
38401
38402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherEdge",kwnames,&obj0)) goto fail;
38403 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38404 {
38405 PyThreadState* __tstate = wxPyBeginAllowThreads();
38406 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge();
38407
38408 wxPyEndAllowThreads(__tstate);
38409 if (PyErr_Occurred()) SWIG_fail;
38410 }
8edf1c75 38411 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
38412 return resultobj;
38413 fail:
38414 return NULL;
38415}
38416
38417
38418static PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *self, PyObject *args, PyObject *kwargs) {
38419 PyObject *resultobj;
38420 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
38421 bool result;
38422 PyObject * obj0 = 0 ;
38423 char *kwnames[] = {
38424 (char *) "self", NULL
38425 };
38426
38427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetDone",kwnames,&obj0)) goto fail;
38428 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38429 {
38430 PyThreadState* __tstate = wxPyBeginAllowThreads();
38431 result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone();
38432
38433 wxPyEndAllowThreads(__tstate);
38434 if (PyErr_Occurred()) SWIG_fail;
38435 }
4e760a36 38436 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
38437 return resultobj;
38438 fail:
38439 return NULL;
38440}
38441
38442
38443static PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *self, PyObject *args, PyObject *kwargs) {
38444 PyObject *resultobj;
38445 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
38446 bool arg2 ;
38447 PyObject * obj0 = 0 ;
38448 PyObject * obj1 = 0 ;
38449 char *kwnames[] = {
38450 (char *) "self",(char *) "d", NULL
38451 };
38452
38453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) goto fail;
38454 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
83448d71 38455 {
8edf1c75 38456 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
83448d71
RD
38457 if (PyErr_Occurred()) SWIG_fail;
38458 }
d14a1e28
RD
38459 {
38460 PyThreadState* __tstate = wxPyBeginAllowThreads();
38461 (arg1)->SetDone(arg2);
38462
38463 wxPyEndAllowThreads(__tstate);
38464 if (PyErr_Occurred()) SWIG_fail;
38465 }
38466 Py_INCREF(Py_None); resultobj = Py_None;
38467 return resultobj;
38468 fail:
38469 return NULL;
38470}
38471
38472
38473static PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) {
38474 PyObject *resultobj;
38475 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
38476 int result;
38477 PyObject * obj0 = 0 ;
38478 char *kwnames[] = {
38479 (char *) "self", NULL
38480 };
38481
38482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetRelationship",kwnames,&obj0)) goto fail;
38483 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38484 {
38485 PyThreadState* __tstate = wxPyBeginAllowThreads();
38486 result = (int)(arg1)->GetRelationship();
38487
38488 wxPyEndAllowThreads(__tstate);
38489 if (PyErr_Occurred()) SWIG_fail;
38490 }
8edf1c75 38491 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
38492 return resultobj;
38493 fail:
38494 return NULL;
38495}
38496
38497
38498static PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) {
38499 PyObject *resultobj;
38500 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
38501 int arg2 ;
38502 PyObject * obj0 = 0 ;
8edf1c75 38503 PyObject * obj1 = 0 ;
d14a1e28
RD
38504 char *kwnames[] = {
38505 (char *) "self",(char *) "r", NULL
38506 };
38507
8edf1c75 38508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&obj1)) goto fail;
d14a1e28 38509 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
38510 {
38511 arg2 = (wxRelationship) SWIG_PyObj_AsInt(obj1);
38512 if (PyErr_Occurred()) SWIG_fail;
38513 }
d14a1e28
RD
38514 {
38515 PyThreadState* __tstate = wxPyBeginAllowThreads();
38516 (arg1)->SetRelationship((wxRelationship )arg2);
38517
38518 wxPyEndAllowThreads(__tstate);
38519 if (PyErr_Occurred()) SWIG_fail;
38520 }
38521 Py_INCREF(Py_None); resultobj = Py_None;
38522 return resultobj;
38523 fail:
38524 return NULL;
38525}
38526
38527
38528static PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *self, PyObject *args, PyObject *kwargs) {
38529 PyObject *resultobj;
38530 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
38531 wxWindow *arg2 = (wxWindow *) 0 ;
38532 bool result;
38533 PyObject * obj0 = 0 ;
38534 PyObject * obj1 = 0 ;
38535 char *kwnames[] = {
38536 (char *) "self",(char *) "otherW", NULL
38537 };
38538
38539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) goto fail;
38540 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38541 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38542 {
38543 PyThreadState* __tstate = wxPyBeginAllowThreads();
38544 result = (bool)(arg1)->ResetIfWin(arg2);
38545
38546 wxPyEndAllowThreads(__tstate);
38547 if (PyErr_Occurred()) SWIG_fail;
38548 }
4e760a36 38549 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
38550 return resultobj;
38551 fail:
38552 return NULL;
38553}
38554
38555
38556static PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *self, PyObject *args, PyObject *kwargs) {
38557 PyObject *resultobj;
38558 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
38559 wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ;
38560 wxWindow *arg3 = (wxWindow *) 0 ;
38561 bool result;
38562 PyObject * obj0 = 0 ;
38563 PyObject * obj1 = 0 ;
38564 PyObject * obj2 = 0 ;
38565 char *kwnames[] = {
38566 (char *) "self",(char *) "constraints",(char *) "win", NULL
38567 };
38568
38569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail;
38570 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38571 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38572 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38573 {
38574 PyThreadState* __tstate = wxPyBeginAllowThreads();
38575 result = (bool)(arg1)->SatisfyConstraint(arg2,arg3);
38576
38577 wxPyEndAllowThreads(__tstate);
38578 if (PyErr_Occurred()) SWIG_fail;
38579 }
4e760a36 38580 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
38581 return resultobj;
38582 fail:
38583 return NULL;
38584}
38585
38586
38587static PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
38588 PyObject *resultobj;
38589 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
38590 int arg2 ;
38591 wxWindow *arg3 = (wxWindow *) 0 ;
38592 wxWindow *arg4 = (wxWindow *) 0 ;
38593 int result;
38594 PyObject * obj0 = 0 ;
8edf1c75 38595 PyObject * obj1 = 0 ;
d14a1e28
RD
38596 PyObject * obj2 = 0 ;
38597 PyObject * obj3 = 0 ;
38598 char *kwnames[] = {
38599 (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL
38600 };
38601
8edf1c75 38602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d14a1e28 38603 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIndividualLayoutConstraint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8edf1c75
RD
38604 {
38605 arg2 = (wxEdge) SWIG_PyObj_AsInt(obj1);
38606 if (PyErr_Occurred()) SWIG_fail;
38607 }
d14a1e28
RD
38608 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38609 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38610 {
38611 PyThreadState* __tstate = wxPyBeginAllowThreads();
38612 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge((wxEdge )arg2,arg3,arg4);
38613
38614 wxPyEndAllowThreads(__tstate);
38615 if (PyErr_Occurred()) SWIG_fail;
38616 }
8edf1c75 38617 resultobj = SWIG_PyObj_FromInt((int)result);
d14a1e28
RD
38618 return resultobj;
38619 fail:
38620 return NULL;
38621}
38622
38623
38624static PyObject * IndividualLayoutConstraint_swigregister(PyObject *self, PyObject *args) {
38625 PyObject *obj;
38626 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
38627 SWIG_TypeClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, obj);
38628 Py_INCREF(obj);
38629 return Py_BuildValue((char *)"");
38630}
38631static PyObject *_wrap_LayoutConstraints_left_get(PyObject *self, PyObject *args, PyObject *kwargs) {
38632 PyObject *resultobj;
38633 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
38634 wxIndividualLayoutConstraint *result;
38635 PyObject * obj0 = 0 ;
38636 char *kwnames[] = {
38637 (char *) "self", NULL
38638 };
38639
38640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_left_get",kwnames,&obj0)) goto fail;
38641 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38642 result = (wxIndividualLayoutConstraint *)& ((arg1)->left);
38643
38644 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
38645 return resultobj;
38646 fail:
38647 return NULL;
38648}
38649
38650
38651static PyObject *_wrap_LayoutConstraints_top_get(PyObject *self, PyObject *args, PyObject *kwargs) {
38652 PyObject *resultobj;
38653 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
38654 wxIndividualLayoutConstraint *result;
38655 PyObject * obj0 = 0 ;
38656 char *kwnames[] = {
38657 (char *) "self", NULL
38658 };
38659
38660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_top_get",kwnames,&obj0)) goto fail;
38661 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38662 result = (wxIndividualLayoutConstraint *)& ((arg1)->top);
38663
38664 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
38665 return resultobj;
38666 fail:
38667 return NULL;
38668}
38669
38670
38671static PyObject *_wrap_LayoutConstraints_right_get(PyObject *self, PyObject *args, PyObject *kwargs) {
38672 PyObject *resultobj;
38673 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
38674 wxIndividualLayoutConstraint *result;
38675 PyObject * obj0 = 0 ;
38676 char *kwnames[] = {
38677 (char *) "self", NULL
38678 };
38679
38680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_right_get",kwnames,&obj0)) goto fail;
38681 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38682 result = (wxIndividualLayoutConstraint *)& ((arg1)->right);
38683
38684 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
38685 return resultobj;
38686 fail:
38687 return NULL;
38688}
38689
38690
38691static PyObject *_wrap_LayoutConstraints_bottom_get(PyObject *self, PyObject *args, PyObject *kwargs) {
38692 PyObject *resultobj;
38693 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
38694 wxIndividualLayoutConstraint *result;
38695 PyObject * obj0 = 0 ;
38696 char *kwnames[] = {
38697 (char *) "self", NULL
38698 };
38699
38700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_bottom_get",kwnames,&obj0)) goto fail;
38701 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38702 result = (wxIndividualLayoutConstraint *)& ((arg1)->bottom);
38703
38704 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
38705 return resultobj;
38706 fail:
38707 return NULL;
38708}
38709
38710
38711static PyObject *_wrap_LayoutConstraints_width_get(PyObject *self, PyObject *args, PyObject *kwargs) {
38712 PyObject *resultobj;
38713 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
38714 wxIndividualLayoutConstraint *result;
38715 PyObject * obj0 = 0 ;
38716 char *kwnames[] = {
38717 (char *) "self", NULL
38718 };
38719
38720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_width_get",kwnames,&obj0)) goto fail;
38721 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38722 result = (wxIndividualLayoutConstraint *)& ((arg1)->width);
38723
38724 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
38725 return resultobj;
38726 fail:
38727 return NULL;
38728}
38729
38730
38731static PyObject *_wrap_LayoutConstraints_height_get(PyObject *self, PyObject *args, PyObject *kwargs) {
38732 PyObject *resultobj;
38733 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
38734 wxIndividualLayoutConstraint *result;
38735 PyObject * obj0 = 0 ;
38736 char *kwnames[] = {
38737 (char *) "self", NULL
38738 };
38739
38740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_height_get",kwnames,&obj0)) goto fail;
38741 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38742 result = (wxIndividualLayoutConstraint *)& ((arg1)->height);
38743
38744 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
38745 return resultobj;
38746 fail:
38747 return NULL;
38748}
38749
38750
38751static PyObject *_wrap_LayoutConstraints_centreX_get(PyObject *self, PyObject *args, PyObject *kwargs) {
38752 PyObject *resultobj;
38753 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
38754 wxIndividualLayoutConstraint *result;
38755 PyObject * obj0 = 0 ;
38756 char *kwnames[] = {
38757 (char *) "self", NULL
38758 };
38759
38760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreX_get",kwnames,&obj0)) goto fail;
38761 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38762 result = (wxIndividualLayoutConstraint *)& ((arg1)->centreX);
38763
38764 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
38765 return resultobj;
38766 fail:
38767 return NULL;
38768}
38769
38770
38771static PyObject *_wrap_LayoutConstraints_centreY_get(PyObject *self, PyObject *args, PyObject *kwargs) {
38772 PyObject *resultobj;
38773 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
38774 wxIndividualLayoutConstraint *result;
38775 PyObject * obj0 = 0 ;
38776 char *kwnames[] = {
38777 (char *) "self", NULL
38778 };
38779
38780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreY_get",kwnames,&obj0)) goto fail;
38781 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38782 result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY);
38783
38784 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
38785 return resultobj;
38786 fail:
38787 return NULL;
38788}
38789
38790
38791static PyObject *_wrap_new_LayoutConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
38792 PyObject *resultobj;
38793 wxLayoutConstraints *result;
38794 char *kwnames[] = {
38795 NULL
38796 };
38797
38798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutConstraints",kwnames)) goto fail;
38799 {
38800 PyThreadState* __tstate = wxPyBeginAllowThreads();
38801 result = (wxLayoutConstraints *)new wxLayoutConstraints();
38802
38803 wxPyEndAllowThreads(__tstate);
38804 if (PyErr_Occurred()) SWIG_fail;
38805 }
38806 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLayoutConstraints, 1);
38807 return resultobj;
38808 fail:
38809 return NULL;
38810}
38811
38812
38813static PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
38814 PyObject *resultobj;
38815 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
38816 wxWindow *arg2 = (wxWindow *) 0 ;
38817 int *arg3 = (int *) 0 ;
38818 bool result;
38819 int temp3 ;
38820 PyObject * obj0 = 0 ;
38821 PyObject * obj1 = 0 ;
38822 char *kwnames[] = {
38823 (char *) "self",(char *) "win", NULL
38824 };
38825
38826 arg3 = &temp3;
38827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) goto fail;
38828 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38829 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38830 {
38831 PyThreadState* __tstate = wxPyBeginAllowThreads();
38832 result = (bool)(arg1)->SatisfyConstraints(arg2,arg3);
38833
38834 wxPyEndAllowThreads(__tstate);
38835 if (PyErr_Occurred()) SWIG_fail;
38836 }
4e760a36 38837 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
38838 {
38839 PyObject *o = PyInt_FromLong((long) (*arg3));
38840 resultobj = t_output_helper(resultobj,o);
38841 }
38842 return resultobj;
38843 fail:
38844 return NULL;
38845}
38846
38847
38848static PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *self, PyObject *args, PyObject *kwargs) {
38849 PyObject *resultobj;
38850 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
38851 bool result;
38852 PyObject * obj0 = 0 ;
38853 char *kwnames[] = {
38854 (char *) "self", NULL
38855 };
38856
38857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_AreSatisfied",kwnames,&obj0)) goto fail;
38858 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLayoutConstraints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
38859 {
38860 PyThreadState* __tstate = wxPyBeginAllowThreads();
38861 result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied();
38862
38863 wxPyEndAllowThreads(__tstate);
38864 if (PyErr_Occurred()) SWIG_fail;
38865 }
4e760a36 38866 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d14a1e28
RD
38867 return resultobj;
38868 fail:
38869 return NULL;
38870}
38871
38872
38873static PyObject * LayoutConstraints_swigregister(PyObject *self, PyObject *args) {
38874 PyObject *obj;
38875 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
38876 SWIG_TypeClientData(SWIGTYPE_p_wxLayoutConstraints, obj);
38877 Py_INCREF(obj);
38878 return Py_BuildValue((char *)"");
38879}
38880static PyMethodDef SwigMethods[] = {
38881 { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS },
d03fd34d 38882 { (char *)"_wxPyFixStockObjects", __wxPyFixStockObjects, METH_VARARGS },
d14a1e28
RD
38883 { (char *)"Object_GetClassName", (PyCFunction) _wrap_Object_GetClassName, METH_VARARGS | METH_KEYWORDS },
38884 { (char *)"Object_Destroy", (PyCFunction) _wrap_Object_Destroy, METH_VARARGS | METH_KEYWORDS },
38885 { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS },
38886 { (char *)"Size_width_set", (PyCFunction) _wrap_Size_width_set, METH_VARARGS | METH_KEYWORDS },
38887 { (char *)"Size_width_get", (PyCFunction) _wrap_Size_width_get, METH_VARARGS | METH_KEYWORDS },
38888 { (char *)"Size_height_set", (PyCFunction) _wrap_Size_height_set, METH_VARARGS | METH_KEYWORDS },
38889 { (char *)"Size_height_get", (PyCFunction) _wrap_Size_height_get, METH_VARARGS | METH_KEYWORDS },
38890 { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS },
38891 { (char *)"delete_Size", (PyCFunction) _wrap_delete_Size, METH_VARARGS | METH_KEYWORDS },
38892 { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS },
38893 { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS },
38894 { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS },
38895 { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS },
38896 { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS },
38897 { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS },
38898 { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS },
38899 { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS },
38900 { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS },
38901 { (char *)"Size_GetWidth", (PyCFunction) _wrap_Size_GetWidth, METH_VARARGS | METH_KEYWORDS },
38902 { (char *)"Size_GetHeight", (PyCFunction) _wrap_Size_GetHeight, METH_VARARGS | METH_KEYWORDS },
423f194a 38903 { (char *)"Size_Get", (PyCFunction) _wrap_Size_Get, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
38904 { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS },
38905 { (char *)"RealPoint_x_set", (PyCFunction) _wrap_RealPoint_x_set, METH_VARARGS | METH_KEYWORDS },
38906 { (char *)"RealPoint_x_get", (PyCFunction) _wrap_RealPoint_x_get, METH_VARARGS | METH_KEYWORDS },
38907 { (char *)"RealPoint_y_set", (PyCFunction) _wrap_RealPoint_y_set, METH_VARARGS | METH_KEYWORDS },
38908 { (char *)"RealPoint_y_get", (PyCFunction) _wrap_RealPoint_y_get, METH_VARARGS | METH_KEYWORDS },
38909 { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS },
38910 { (char *)"delete_RealPoint", (PyCFunction) _wrap_delete_RealPoint, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
38911 { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS },
38912 { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS },
423f194a
RD
38913 { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS },
38914 { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS },
d14a1e28 38915 { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS },
423f194a 38916 { (char *)"RealPoint_Get", (PyCFunction) _wrap_RealPoint_Get, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
38917 { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS },
38918 { (char *)"Point_x_set", (PyCFunction) _wrap_Point_x_set, METH_VARARGS | METH_KEYWORDS },
38919 { (char *)"Point_x_get", (PyCFunction) _wrap_Point_x_get, METH_VARARGS | METH_KEYWORDS },
38920 { (char *)"Point_y_set", (PyCFunction) _wrap_Point_y_set, METH_VARARGS | METH_KEYWORDS },
38921 { (char *)"Point_y_get", (PyCFunction) _wrap_Point_y_get, METH_VARARGS | METH_KEYWORDS },
38922 { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS },
38923 { (char *)"delete_Point", (PyCFunction) _wrap_delete_Point, METH_VARARGS | METH_KEYWORDS },
38924 { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS },
38925 { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS },
38926 { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS },
38927 { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS },
38928 { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS },
38929 { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS },
38930 { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS },
423f194a 38931 { (char *)"Point_Get", (PyCFunction) _wrap_Point_Get, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
38932 { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS },
38933 { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS },
38934 { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS },
38935 { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS },
38936 { (char *)"delete_Rect", (PyCFunction) _wrap_delete_Rect, METH_VARARGS | METH_KEYWORDS },
38937 { (char *)"Rect_GetX", (PyCFunction) _wrap_Rect_GetX, METH_VARARGS | METH_KEYWORDS },
38938 { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS },
38939 { (char *)"Rect_GetY", (PyCFunction) _wrap_Rect_GetY, METH_VARARGS | METH_KEYWORDS },
38940 { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS },
38941 { (char *)"Rect_GetWidth", (PyCFunction) _wrap_Rect_GetWidth, METH_VARARGS | METH_KEYWORDS },
38942 { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS },
38943 { (char *)"Rect_GetHeight", (PyCFunction) _wrap_Rect_GetHeight, METH_VARARGS | METH_KEYWORDS },
38944 { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS },
38945 { (char *)"Rect_GetPosition", (PyCFunction) _wrap_Rect_GetPosition, METH_VARARGS | METH_KEYWORDS },
38946 { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS },
38947 { (char *)"Rect_GetSize", (PyCFunction) _wrap_Rect_GetSize, METH_VARARGS | METH_KEYWORDS },
38948 { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS },
9fd4be55
RD
38949 { (char *)"Rect_GetTopLeft", (PyCFunction) _wrap_Rect_GetTopLeft, METH_VARARGS | METH_KEYWORDS },
38950 { (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS },
38951 { (char *)"Rect_GetBottomRight", (PyCFunction) _wrap_Rect_GetBottomRight, METH_VARARGS | METH_KEYWORDS },
38952 { (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
38953 { (char *)"Rect_GetLeft", (PyCFunction) _wrap_Rect_GetLeft, METH_VARARGS | METH_KEYWORDS },
38954 { (char *)"Rect_GetTop", (PyCFunction) _wrap_Rect_GetTop, METH_VARARGS | METH_KEYWORDS },
38955 { (char *)"Rect_GetBottom", (PyCFunction) _wrap_Rect_GetBottom, METH_VARARGS | METH_KEYWORDS },
38956 { (char *)"Rect_GetRight", (PyCFunction) _wrap_Rect_GetRight, METH_VARARGS | METH_KEYWORDS },
38957 { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS },
38958 { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS },
38959 { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS },
38960 { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS },
38961 { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS },
38962 { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS },
38963 { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS },
38964 { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS },
38965 { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS },
38966 { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS },
38967 { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS },
38968 { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS },
38969 { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS },
38970 { (char *)"Rect_InsideXY", (PyCFunction) _wrap_Rect_InsideXY, METH_VARARGS | METH_KEYWORDS },
38971 { (char *)"Rect_Inside", (PyCFunction) _wrap_Rect_Inside, METH_VARARGS | METH_KEYWORDS },
38972 { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS },
38973 { (char *)"Rect_x_set", (PyCFunction) _wrap_Rect_x_set, METH_VARARGS | METH_KEYWORDS },
38974 { (char *)"Rect_x_get", (PyCFunction) _wrap_Rect_x_get, METH_VARARGS | METH_KEYWORDS },
38975 { (char *)"Rect_y_set", (PyCFunction) _wrap_Rect_y_set, METH_VARARGS | METH_KEYWORDS },
38976 { (char *)"Rect_y_get", (PyCFunction) _wrap_Rect_y_get, METH_VARARGS | METH_KEYWORDS },
38977 { (char *)"Rect_width_set", (PyCFunction) _wrap_Rect_width_set, METH_VARARGS | METH_KEYWORDS },
38978 { (char *)"Rect_width_get", (PyCFunction) _wrap_Rect_width_get, METH_VARARGS | METH_KEYWORDS },
38979 { (char *)"Rect_height_set", (PyCFunction) _wrap_Rect_height_set, METH_VARARGS | METH_KEYWORDS },
38980 { (char *)"Rect_height_get", (PyCFunction) _wrap_Rect_height_get, METH_VARARGS | METH_KEYWORDS },
38981 { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS },
423f194a 38982 { (char *)"Rect_Get", (PyCFunction) _wrap_Rect_Get, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
38983 { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS },
38984 { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS },
38985 { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS },
38986 { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS },
38987 { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS },
38988 { (char *)"Point2D_GetFloor", (PyCFunction) _wrap_Point2D_GetFloor, METH_VARARGS | METH_KEYWORDS },
38989 { (char *)"Point2D_GetRounded", (PyCFunction) _wrap_Point2D_GetRounded, METH_VARARGS | METH_KEYWORDS },
38990 { (char *)"Point2D_GetVectorLength", (PyCFunction) _wrap_Point2D_GetVectorLength, METH_VARARGS | METH_KEYWORDS },
38991 { (char *)"Point2D_GetVectorAngle", (PyCFunction) _wrap_Point2D_GetVectorAngle, METH_VARARGS | METH_KEYWORDS },
38992 { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS },
38993 { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS },
38994 { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS },
38995 { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS },
38996 { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS },
38997 { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS },
38998 { (char *)"Point2D___neg__", (PyCFunction) _wrap_Point2D___neg__, METH_VARARGS | METH_KEYWORDS },
38999 { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS },
39000 { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS },
39001 { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS },
39002 { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS },
39003 { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS },
39004 { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
39005 { (char *)"Point2D_x_set", (PyCFunction) _wrap_Point2D_x_set, METH_VARARGS | METH_KEYWORDS },
39006 { (char *)"Point2D_x_get", (PyCFunction) _wrap_Point2D_x_get, METH_VARARGS | METH_KEYWORDS },
39007 { (char *)"Point2D_y_set", (PyCFunction) _wrap_Point2D_y_set, METH_VARARGS | METH_KEYWORDS },
39008 { (char *)"Point2D_y_get", (PyCFunction) _wrap_Point2D_y_get, METH_VARARGS | METH_KEYWORDS },
39009 { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS },
423f194a 39010 { (char *)"Point2D_Get", (PyCFunction) _wrap_Point2D_Get, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
39011 { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS },
39012 { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS },
39013 { (char *)"InputStream_close", (PyCFunction) _wrap_InputStream_close, METH_VARARGS | METH_KEYWORDS },
39014 { (char *)"InputStream_flush", (PyCFunction) _wrap_InputStream_flush, METH_VARARGS | METH_KEYWORDS },
39015 { (char *)"InputStream_eof", (PyCFunction) _wrap_InputStream_eof, METH_VARARGS | METH_KEYWORDS },
39016 { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS },
39017 { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS },
39018 { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS },
39019 { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS },
39020 { (char *)"InputStream_tell", (PyCFunction) _wrap_InputStream_tell, METH_VARARGS | METH_KEYWORDS },
39021 { (char *)"InputStream_Peek", (PyCFunction) _wrap_InputStream_Peek, METH_VARARGS | METH_KEYWORDS },
39022 { (char *)"InputStream_GetC", (PyCFunction) _wrap_InputStream_GetC, METH_VARARGS | METH_KEYWORDS },
39023 { (char *)"InputStream_LastRead", (PyCFunction) _wrap_InputStream_LastRead, METH_VARARGS | METH_KEYWORDS },
39024 { (char *)"InputStream_CanRead", (PyCFunction) _wrap_InputStream_CanRead, METH_VARARGS | METH_KEYWORDS },
39025 { (char *)"InputStream_Eof", (PyCFunction) _wrap_InputStream_Eof, METH_VARARGS | METH_KEYWORDS },
39026 { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS },
39027 { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS },
39028 { (char *)"InputStream_TellI", (PyCFunction) _wrap_InputStream_TellI, METH_VARARGS | METH_KEYWORDS },
39029 { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS },
39030 { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS },
39031 { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS },
39032 { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS },
39033 { (char *)"delete_FSFile", (PyCFunction) _wrap_delete_FSFile, METH_VARARGS | METH_KEYWORDS },
39034 { (char *)"FSFile_GetStream", (PyCFunction) _wrap_FSFile_GetStream, METH_VARARGS | METH_KEYWORDS },
39035 { (char *)"FSFile_GetMimeType", (PyCFunction) _wrap_FSFile_GetMimeType, METH_VARARGS | METH_KEYWORDS },
39036 { (char *)"FSFile_GetLocation", (PyCFunction) _wrap_FSFile_GetLocation, METH_VARARGS | METH_KEYWORDS },
39037 { (char *)"FSFile_GetAnchor", (PyCFunction) _wrap_FSFile_GetAnchor, METH_VARARGS | METH_KEYWORDS },
39038 { (char *)"FSFile_GetModificationTime", (PyCFunction) _wrap_FSFile_GetModificationTime, METH_VARARGS | METH_KEYWORDS },
39039 { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS },
39040 { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS },
39041 { (char *)"new_FileSystemHandler", (PyCFunction) _wrap_new_FileSystemHandler, METH_VARARGS | METH_KEYWORDS },
39042 { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
39043 { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS },
39044 { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS },
39045 { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS },
39046 { (char *)"FileSystemHandler_FindNext", (PyCFunction) _wrap_FileSystemHandler_FindNext, METH_VARARGS | METH_KEYWORDS },
39047 { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS },
39048 { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS },
39049 { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS },
39050 { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS },
39051 { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS },
39052 { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS },
39053 { (char *)"new_FileSystem", (PyCFunction) _wrap_new_FileSystem, METH_VARARGS | METH_KEYWORDS },
39054 { (char *)"delete_FileSystem", (PyCFunction) _wrap_delete_FileSystem, METH_VARARGS | METH_KEYWORDS },
39055 { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS },
39056 { (char *)"FileSystem_GetPath", (PyCFunction) _wrap_FileSystem_GetPath, METH_VARARGS | METH_KEYWORDS },
39057 { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS },
39058 { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS },
39059 { (char *)"FileSystem_FindNext", (PyCFunction) _wrap_FileSystem_FindNext, METH_VARARGS | METH_KEYWORDS },
39060 { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS },
39061 { (char *)"FileSystem_CleanUpHandlers", (PyCFunction) _wrap_FileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS },
39062 { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS },
39063 { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS },
39064 { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS },
39065 { (char *)"new_InternetFSHandler", (PyCFunction) _wrap_new_InternetFSHandler, METH_VARARGS | METH_KEYWORDS },
39066 { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS },
39067 { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS },
39068 { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS },
39069 { (char *)"new_ZipFSHandler", (PyCFunction) _wrap_new_ZipFSHandler, METH_VARARGS | METH_KEYWORDS },
39070 { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS },
39071 { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS },
39072 { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS },
39073 { (char *)"ZipFSHandler_FindNext", (PyCFunction) _wrap_ZipFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS },
39074 { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS },
39075 { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS },
39076 { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS },
39077 { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS },
39078 { (char *)"new_MemoryFSHandler", (PyCFunction) _wrap_new_MemoryFSHandler, METH_VARARGS | METH_KEYWORDS },
39079 { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS },
39080 { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS },
39081 { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS },
39082 { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS },
39083 { (char *)"MemoryFSHandler_FindNext", (PyCFunction) _wrap_MemoryFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS },
39084 { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS },
39085 { (char *)"ImageHandler_GetName", (PyCFunction) _wrap_ImageHandler_GetName, METH_VARARGS | METH_KEYWORDS },
39086 { (char *)"ImageHandler_GetExtension", (PyCFunction) _wrap_ImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS },
39087 { (char *)"ImageHandler_GetType", (PyCFunction) _wrap_ImageHandler_GetType, METH_VARARGS | METH_KEYWORDS },
39088 { (char *)"ImageHandler_GetMimeType", (PyCFunction) _wrap_ImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS },
39089 { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS },
39090 { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS },
39091 { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS },
39092 { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS },
39093 { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS },
39094 { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS },
39095 { (char *)"new_ImageHistogram", (PyCFunction) _wrap_new_ImageHistogram, METH_VARARGS | METH_KEYWORDS },
39096 { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS },
39097 { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS },
39098 { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS },
39099 { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS },
39100 { (char *)"delete_Image", (PyCFunction) _wrap_delete_Image, METH_VARARGS | METH_KEYWORDS },
39101 { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS },
39102 { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS },
39103 { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS },
39104 { (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS },
39105 { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS },
39106 { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS },
39107 { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS },
39108 { (char *)"Image_Destroy", (PyCFunction) _wrap_Image_Destroy, METH_VARARGS | METH_KEYWORDS },
39109 { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS },
39110 { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS },
39111 { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS },
39112 { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS },
39113 { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS },
39114 { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS },
39115 { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS },
39116 { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS },
39117 { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS },
39118 { (char *)"Image_HasAlpha", (PyCFunction) _wrap_Image_HasAlpha, METH_VARARGS | METH_KEYWORDS },
39119 { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS },
39120 { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS },
39121 { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS },
39122 { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS },
39123 { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS },
39124 { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS },
39125 { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS },
39126 { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS },
39127 { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS },
39128 { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS },
39129 { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS },
39130 { (char *)"Image_Ok", (PyCFunction) _wrap_Image_Ok, METH_VARARGS | METH_KEYWORDS },
39131 { (char *)"Image_GetWidth", (PyCFunction) _wrap_Image_GetWidth, METH_VARARGS | METH_KEYWORDS },
39132 { (char *)"Image_GetHeight", (PyCFunction) _wrap_Image_GetHeight, METH_VARARGS | METH_KEYWORDS },
39133 { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS },
39134 { (char *)"Image_Copy", (PyCFunction) _wrap_Image_Copy, METH_VARARGS | METH_KEYWORDS },
39135 { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS },
39136 { (char *)"Image_GetData", (PyCFunction) _wrap_Image_GetData, METH_VARARGS | METH_KEYWORDS },
39137 { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS },
39138 { (char *)"Image_GetDataBuffer", (PyCFunction) _wrap_Image_GetDataBuffer, METH_VARARGS | METH_KEYWORDS },
39139 { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS },
39140 { (char *)"Image_GetAlphaData", (PyCFunction) _wrap_Image_GetAlphaData, METH_VARARGS | METH_KEYWORDS },
39141 { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS },
39142 { (char *)"Image_GetAlphaBuffer", (PyCFunction) _wrap_Image_GetAlphaBuffer, METH_VARARGS | METH_KEYWORDS },
39143 { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS },
39144 { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
39145 { (char *)"Image_GetMaskRed", (PyCFunction) _wrap_Image_GetMaskRed, METH_VARARGS | METH_KEYWORDS },
39146 { (char *)"Image_GetMaskGreen", (PyCFunction) _wrap_Image_GetMaskGreen, METH_VARARGS | METH_KEYWORDS },
39147 { (char *)"Image_GetMaskBlue", (PyCFunction) _wrap_Image_GetMaskBlue, METH_VARARGS | METH_KEYWORDS },
39148 { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS },
39149 { (char *)"Image_HasMask", (PyCFunction) _wrap_Image_HasMask, METH_VARARGS | METH_KEYWORDS },
39150 { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS },
39151 { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS },
39152 { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS },
39153 { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS },
39154 { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS },
39155 { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS },
39156 { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS },
39157 { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS },
39158 { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS },
39159 { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS },
39160 { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS },
39161 { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS },
39162 { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS },
39163 { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS },
39164 { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS },
39165 { (char *)"Image_GetImageExtWildcard", (PyCFunction) _wrap_Image_GetImageExtWildcard, METH_VARARGS | METH_KEYWORDS },
39166 { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
39167 { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS },
39168 { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS },
39169 { (char *)"InitAllImageHandlers", (PyCFunction) _wrap_InitAllImageHandlers, METH_VARARGS | METH_KEYWORDS },
39170 { (char *)"new_BMPHandler", (PyCFunction) _wrap_new_BMPHandler, METH_VARARGS | METH_KEYWORDS },
39171 { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS },
39172 { (char *)"new_ICOHandler", (PyCFunction) _wrap_new_ICOHandler, METH_VARARGS | METH_KEYWORDS },
39173 { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS },
39174 { (char *)"new_CURHandler", (PyCFunction) _wrap_new_CURHandler, METH_VARARGS | METH_KEYWORDS },
39175 { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS },
39176 { (char *)"new_ANIHandler", (PyCFunction) _wrap_new_ANIHandler, METH_VARARGS | METH_KEYWORDS },
39177 { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS },
39178 { (char *)"new_PNGHandler", (PyCFunction) _wrap_new_PNGHandler, METH_VARARGS | METH_KEYWORDS },
39179 { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS },
39180 { (char *)"new_GIFHandler", (PyCFunction) _wrap_new_GIFHandler, METH_VARARGS | METH_KEYWORDS },
39181 { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS },
39182 { (char *)"new_PCXHandler", (PyCFunction) _wrap_new_PCXHandler, METH_VARARGS | METH_KEYWORDS },
39183 { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS },
39184 { (char *)"new_JPEGHandler", (PyCFunction) _wrap_new_JPEGHandler, METH_VARARGS | METH_KEYWORDS },
39185 { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS },
39186 { (char *)"new_PNMHandler", (PyCFunction) _wrap_new_PNMHandler, METH_VARARGS | METH_KEYWORDS },
39187 { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS },
39188 { (char *)"new_XPMHandler", (PyCFunction) _wrap_new_XPMHandler, METH_VARARGS | METH_KEYWORDS },
39189 { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS },
39190 { (char *)"new_TIFFHandler", (PyCFunction) _wrap_new_TIFFHandler, METH_VARARGS | METH_KEYWORDS },
39191 { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS },
39192 { (char *)"new_EvtHandler", (PyCFunction) _wrap_new_EvtHandler, METH_VARARGS | METH_KEYWORDS },
39193 { (char *)"EvtHandler_GetNextHandler", (PyCFunction) _wrap_EvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS },
39194 { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction) _wrap_EvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS },
39195 { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS },
39196 { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS },
39197 { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS },
39198 { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS },
39199 { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS },
39200 { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS },
39201 { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction) _wrap_EvtHandler_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS },
39202 { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS },
39203 { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS },
39204 { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS },
39205 { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS },
39206 { (char *)"NewEventType", (PyCFunction) _wrap_NewEventType, METH_VARARGS | METH_KEYWORDS },
39207 { (char *)"delete_Event", (PyCFunction) _wrap_delete_Event, METH_VARARGS | METH_KEYWORDS },
39208 { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS },
39209 { (char *)"Event_GetEventType", (PyCFunction) _wrap_Event_GetEventType, METH_VARARGS | METH_KEYWORDS },
39210 { (char *)"Event_GetEventObject", (PyCFunction) _wrap_Event_GetEventObject, METH_VARARGS | METH_KEYWORDS },
39211 { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS },
39212 { (char *)"Event_GetTimestamp", (PyCFunction) _wrap_Event_GetTimestamp, METH_VARARGS | METH_KEYWORDS },
39213 { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS },
39214 { (char *)"Event_GetId", (PyCFunction) _wrap_Event_GetId, METH_VARARGS | METH_KEYWORDS },
39215 { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS },
39216 { (char *)"Event_IsCommandEvent", (PyCFunction) _wrap_Event_IsCommandEvent, METH_VARARGS | METH_KEYWORDS },
39217 { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS },
39218 { (char *)"Event_GetSkipped", (PyCFunction) _wrap_Event_GetSkipped, METH_VARARGS | METH_KEYWORDS },
39219 { (char *)"Event_ShouldPropagate", (PyCFunction) _wrap_Event_ShouldPropagate, METH_VARARGS | METH_KEYWORDS },
39220 { (char *)"Event_StopPropagation", (PyCFunction) _wrap_Event_StopPropagation, METH_VARARGS | METH_KEYWORDS },
39221 { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS },
39222 { (char *)"Event_Clone", (PyCFunction) _wrap_Event_Clone, METH_VARARGS | METH_KEYWORDS },
39223 { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS },
39224 { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS },
39225 { (char *)"delete_PropagationDisabler", (PyCFunction) _wrap_delete_PropagationDisabler, METH_VARARGS | METH_KEYWORDS },
39226 { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS },
39227 { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS },
39228 { (char *)"delete_PropagateOnce", (PyCFunction) _wrap_delete_PropagateOnce, METH_VARARGS | METH_KEYWORDS },
39229 { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS },
39230 { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS },
39231 { (char *)"CommandEvent_GetSelection", (PyCFunction) _wrap_CommandEvent_GetSelection, METH_VARARGS | METH_KEYWORDS },
39232 { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS },
39233 { (char *)"CommandEvent_GetString", (PyCFunction) _wrap_CommandEvent_GetString, METH_VARARGS | METH_KEYWORDS },
39234 { (char *)"CommandEvent_IsChecked", (PyCFunction) _wrap_CommandEvent_IsChecked, METH_VARARGS | METH_KEYWORDS },
39235 { (char *)"CommandEvent_IsSelection", (PyCFunction) _wrap_CommandEvent_IsSelection, METH_VARARGS | METH_KEYWORDS },
39236 { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS },
39237 { (char *)"CommandEvent_GetExtraLong", (PyCFunction) _wrap_CommandEvent_GetExtraLong, METH_VARARGS | METH_KEYWORDS },
39238 { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS },
39239 { (char *)"CommandEvent_GetInt", (PyCFunction) _wrap_CommandEvent_GetInt, METH_VARARGS | METH_KEYWORDS },
39240 { (char *)"CommandEvent_Clone", (PyCFunction) _wrap_CommandEvent_Clone, METH_VARARGS | METH_KEYWORDS },
39241 { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS },
39242 { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS },
39243 { (char *)"NotifyEvent_Veto", (PyCFunction) _wrap_NotifyEvent_Veto, METH_VARARGS | METH_KEYWORDS },
39244 { (char *)"NotifyEvent_Allow", (PyCFunction) _wrap_NotifyEvent_Allow, METH_VARARGS | METH_KEYWORDS },
39245 { (char *)"NotifyEvent_IsAllowed", (PyCFunction) _wrap_NotifyEvent_IsAllowed, METH_VARARGS | METH_KEYWORDS },
39246 { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS },
39247 { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS },
39248 { (char *)"ScrollEvent_GetOrientation", (PyCFunction) _wrap_ScrollEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS },
39249 { (char *)"ScrollEvent_GetPosition", (PyCFunction) _wrap_ScrollEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
39250 { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS },
39251 { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
39252 { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS },
39253 { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS },
39254 { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction) _wrap_ScrollWinEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS },
39255 { (char *)"ScrollWinEvent_GetPosition", (PyCFunction) _wrap_ScrollWinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
39256 { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS },
39257 { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
39258 { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS },
39259 { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS },
39260 { (char *)"MouseEvent_IsButton", (PyCFunction) _wrap_MouseEvent_IsButton, METH_VARARGS | METH_KEYWORDS },
39261 { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS },
39262 { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS },
39263 { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS },
39264 { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS },
39265 { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS },
39266 { (char *)"MouseEvent_GetButton", (PyCFunction) _wrap_MouseEvent_GetButton, METH_VARARGS | METH_KEYWORDS },
39267 { (char *)"MouseEvent_ControlDown", (PyCFunction) _wrap_MouseEvent_ControlDown, METH_VARARGS | METH_KEYWORDS },
39268 { (char *)"MouseEvent_MetaDown", (PyCFunction) _wrap_MouseEvent_MetaDown, METH_VARARGS | METH_KEYWORDS },
39269 { (char *)"MouseEvent_AltDown", (PyCFunction) _wrap_MouseEvent_AltDown, METH_VARARGS | METH_KEYWORDS },
39270 { (char *)"MouseEvent_ShiftDown", (PyCFunction) _wrap_MouseEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS },
39271 { (char *)"MouseEvent_LeftDown", (PyCFunction) _wrap_MouseEvent_LeftDown, METH_VARARGS | METH_KEYWORDS },
39272 { (char *)"MouseEvent_MiddleDown", (PyCFunction) _wrap_MouseEvent_MiddleDown, METH_VARARGS | METH_KEYWORDS },
39273 { (char *)"MouseEvent_RightDown", (PyCFunction) _wrap_MouseEvent_RightDown, METH_VARARGS | METH_KEYWORDS },
39274 { (char *)"MouseEvent_LeftUp", (PyCFunction) _wrap_MouseEvent_LeftUp, METH_VARARGS | METH_KEYWORDS },
39275 { (char *)"MouseEvent_MiddleUp", (PyCFunction) _wrap_MouseEvent_MiddleUp, METH_VARARGS | METH_KEYWORDS },
39276 { (char *)"MouseEvent_RightUp", (PyCFunction) _wrap_MouseEvent_RightUp, METH_VARARGS | METH_KEYWORDS },
39277 { (char *)"MouseEvent_LeftDClick", (PyCFunction) _wrap_MouseEvent_LeftDClick, METH_VARARGS | METH_KEYWORDS },
39278 { (char *)"MouseEvent_MiddleDClick", (PyCFunction) _wrap_MouseEvent_MiddleDClick, METH_VARARGS | METH_KEYWORDS },
39279 { (char *)"MouseEvent_RightDClick", (PyCFunction) _wrap_MouseEvent_RightDClick, METH_VARARGS | METH_KEYWORDS },
39280 { (char *)"MouseEvent_LeftIsDown", (PyCFunction) _wrap_MouseEvent_LeftIsDown, METH_VARARGS | METH_KEYWORDS },
39281 { (char *)"MouseEvent_MiddleIsDown", (PyCFunction) _wrap_MouseEvent_MiddleIsDown, METH_VARARGS | METH_KEYWORDS },
39282 { (char *)"MouseEvent_RightIsDown", (PyCFunction) _wrap_MouseEvent_RightIsDown, METH_VARARGS | METH_KEYWORDS },
39283 { (char *)"MouseEvent_Dragging", (PyCFunction) _wrap_MouseEvent_Dragging, METH_VARARGS | METH_KEYWORDS },
39284 { (char *)"MouseEvent_Moving", (PyCFunction) _wrap_MouseEvent_Moving, METH_VARARGS | METH_KEYWORDS },
39285 { (char *)"MouseEvent_Entering", (PyCFunction) _wrap_MouseEvent_Entering, METH_VARARGS | METH_KEYWORDS },
39286 { (char *)"MouseEvent_Leaving", (PyCFunction) _wrap_MouseEvent_Leaving, METH_VARARGS | METH_KEYWORDS },
39287 { (char *)"MouseEvent_GetPosition", (PyCFunction) _wrap_MouseEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
39288 { (char *)"MouseEvent_GetPositionTuple", (PyCFunction) _wrap_MouseEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
39289 { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS },
39290 { (char *)"MouseEvent_GetX", (PyCFunction) _wrap_MouseEvent_GetX, METH_VARARGS | METH_KEYWORDS },
39291 { (char *)"MouseEvent_GetY", (PyCFunction) _wrap_MouseEvent_GetY, METH_VARARGS | METH_KEYWORDS },
39292 { (char *)"MouseEvent_GetWheelRotation", (PyCFunction) _wrap_MouseEvent_GetWheelRotation, METH_VARARGS | METH_KEYWORDS },
39293 { (char *)"MouseEvent_GetWheelDelta", (PyCFunction) _wrap_MouseEvent_GetWheelDelta, METH_VARARGS | METH_KEYWORDS },
39294 { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction) _wrap_MouseEvent_GetLinesPerAction, METH_VARARGS | METH_KEYWORDS },
39295 { (char *)"MouseEvent_IsPageScroll", (PyCFunction) _wrap_MouseEvent_IsPageScroll, METH_VARARGS | METH_KEYWORDS },
39296 { (char *)"MouseEvent_m_x_set", (PyCFunction) _wrap_MouseEvent_m_x_set, METH_VARARGS | METH_KEYWORDS },
39297 { (char *)"MouseEvent_m_x_get", (PyCFunction) _wrap_MouseEvent_m_x_get, METH_VARARGS | METH_KEYWORDS },
39298 { (char *)"MouseEvent_m_y_set", (PyCFunction) _wrap_MouseEvent_m_y_set, METH_VARARGS | METH_KEYWORDS },
39299 { (char *)"MouseEvent_m_y_get", (PyCFunction) _wrap_MouseEvent_m_y_get, METH_VARARGS | METH_KEYWORDS },
39300 { (char *)"MouseEvent_m_leftDown_set", (PyCFunction) _wrap_MouseEvent_m_leftDown_set, METH_VARARGS | METH_KEYWORDS },
39301 { (char *)"MouseEvent_m_leftDown_get", (PyCFunction) _wrap_MouseEvent_m_leftDown_get, METH_VARARGS | METH_KEYWORDS },
39302 { (char *)"MouseEvent_m_middleDown_set", (PyCFunction) _wrap_MouseEvent_m_middleDown_set, METH_VARARGS | METH_KEYWORDS },
39303 { (char *)"MouseEvent_m_middleDown_get", (PyCFunction) _wrap_MouseEvent_m_middleDown_get, METH_VARARGS | METH_KEYWORDS },
39304 { (char *)"MouseEvent_m_rightDown_set", (PyCFunction) _wrap_MouseEvent_m_rightDown_set, METH_VARARGS | METH_KEYWORDS },
39305 { (char *)"MouseEvent_m_rightDown_get", (PyCFunction) _wrap_MouseEvent_m_rightDown_get, METH_VARARGS | METH_KEYWORDS },
39306 { (char *)"MouseEvent_m_controlDown_set", (PyCFunction) _wrap_MouseEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS },
39307 { (char *)"MouseEvent_m_controlDown_get", (PyCFunction) _wrap_MouseEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS },
39308 { (char *)"MouseEvent_m_shiftDown_set", (PyCFunction) _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS },
39309 { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction) _wrap_MouseEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS },
39310 { (char *)"MouseEvent_m_altDown_set", (PyCFunction) _wrap_MouseEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS },
39311 { (char *)"MouseEvent_m_altDown_get", (PyCFunction) _wrap_MouseEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS },
39312 { (char *)"MouseEvent_m_metaDown_set", (PyCFunction) _wrap_MouseEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS },
39313 { (char *)"MouseEvent_m_metaDown_get", (PyCFunction) _wrap_MouseEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS },
39314 { (char *)"MouseEvent_m_wheelRotation_set", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS | METH_KEYWORDS },
39315 { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_get, METH_VARARGS | METH_KEYWORDS },
39316 { (char *)"MouseEvent_m_wheelDelta_set", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS | METH_KEYWORDS },
39317 { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_get, METH_VARARGS | METH_KEYWORDS },
39318 { (char *)"MouseEvent_m_linesPerAction_set", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS | METH_KEYWORDS },
39319 { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_get, METH_VARARGS | METH_KEYWORDS },
39320 { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS },
39321 { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS },
39322 { (char *)"SetCursorEvent_GetX", (PyCFunction) _wrap_SetCursorEvent_GetX, METH_VARARGS | METH_KEYWORDS },
39323 { (char *)"SetCursorEvent_GetY", (PyCFunction) _wrap_SetCursorEvent_GetY, METH_VARARGS | METH_KEYWORDS },
39324 { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS },
39325 { (char *)"SetCursorEvent_GetCursor", (PyCFunction) _wrap_SetCursorEvent_GetCursor, METH_VARARGS | METH_KEYWORDS },
39326 { (char *)"SetCursorEvent_HasCursor", (PyCFunction) _wrap_SetCursorEvent_HasCursor, METH_VARARGS | METH_KEYWORDS },
39327 { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS },
39328 { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS },
39329 { (char *)"KeyEvent_ControlDown", (PyCFunction) _wrap_KeyEvent_ControlDown, METH_VARARGS | METH_KEYWORDS },
39330 { (char *)"KeyEvent_MetaDown", (PyCFunction) _wrap_KeyEvent_MetaDown, METH_VARARGS | METH_KEYWORDS },
39331 { (char *)"KeyEvent_AltDown", (PyCFunction) _wrap_KeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS },
39332 { (char *)"KeyEvent_ShiftDown", (PyCFunction) _wrap_KeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS },
39333 { (char *)"KeyEvent_HasModifiers", (PyCFunction) _wrap_KeyEvent_HasModifiers, METH_VARARGS | METH_KEYWORDS },
39334 { (char *)"KeyEvent_GetKeyCode", (PyCFunction) _wrap_KeyEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS },
39335 { (char *)"KeyEvent_GetUniChar", (PyCFunction) _wrap_KeyEvent_GetUniChar, METH_VARARGS | METH_KEYWORDS },
39336 { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction) _wrap_KeyEvent_GetRawKeyCode, METH_VARARGS | METH_KEYWORDS },
39337 { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction) _wrap_KeyEvent_GetRawKeyFlags, METH_VARARGS | METH_KEYWORDS },
39338 { (char *)"KeyEvent_GetPosition", (PyCFunction) _wrap_KeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
39339 { (char *)"KeyEvent_GetPositionTuple", (PyCFunction) _wrap_KeyEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
39340 { (char *)"KeyEvent_GetX", (PyCFunction) _wrap_KeyEvent_GetX, METH_VARARGS | METH_KEYWORDS },
39341 { (char *)"KeyEvent_GetY", (PyCFunction) _wrap_KeyEvent_GetY, METH_VARARGS | METH_KEYWORDS },
39342 { (char *)"KeyEvent_m_x_set", (PyCFunction) _wrap_KeyEvent_m_x_set, METH_VARARGS | METH_KEYWORDS },
39343 { (char *)"KeyEvent_m_x_get", (PyCFunction) _wrap_KeyEvent_m_x_get, METH_VARARGS | METH_KEYWORDS },
39344 { (char *)"KeyEvent_m_y_set", (PyCFunction) _wrap_KeyEvent_m_y_set, METH_VARARGS | METH_KEYWORDS },
39345 { (char *)"KeyEvent_m_y_get", (PyCFunction) _wrap_KeyEvent_m_y_get, METH_VARARGS | METH_KEYWORDS },
39346 { (char *)"KeyEvent_m_keyCode_set", (PyCFunction) _wrap_KeyEvent_m_keyCode_set, METH_VARARGS | METH_KEYWORDS },
39347 { (char *)"KeyEvent_m_keyCode_get", (PyCFunction) _wrap_KeyEvent_m_keyCode_get, METH_VARARGS | METH_KEYWORDS },
39348 { (char *)"KeyEvent_m_controlDown_set", (PyCFunction) _wrap_KeyEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS },
39349 { (char *)"KeyEvent_m_controlDown_get", (PyCFunction) _wrap_KeyEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS },
39350 { (char *)"KeyEvent_m_shiftDown_set", (PyCFunction) _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS },
39351 { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction) _wrap_KeyEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS },
39352 { (char *)"KeyEvent_m_altDown_set", (PyCFunction) _wrap_KeyEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS },
39353 { (char *)"KeyEvent_m_altDown_get", (PyCFunction) _wrap_KeyEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS },
39354 { (char *)"KeyEvent_m_metaDown_set", (PyCFunction) _wrap_KeyEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS },
39355 { (char *)"KeyEvent_m_metaDown_get", (PyCFunction) _wrap_KeyEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS },
39356 { (char *)"KeyEvent_m_scanCode_set", (PyCFunction) _wrap_KeyEvent_m_scanCode_set, METH_VARARGS | METH_KEYWORDS },
39357 { (char *)"KeyEvent_m_scanCode_get", (PyCFunction) _wrap_KeyEvent_m_scanCode_get, METH_VARARGS | METH_KEYWORDS },
39358 { (char *)"KeyEvent_m_rawCode_set", (PyCFunction) _wrap_KeyEvent_m_rawCode_set, METH_VARARGS | METH_KEYWORDS },
39359 { (char *)"KeyEvent_m_rawCode_get", (PyCFunction) _wrap_KeyEvent_m_rawCode_get, METH_VARARGS | METH_KEYWORDS },
39360 { (char *)"KeyEvent_m_rawFlags_set", (PyCFunction) _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS | METH_KEYWORDS },
39361 { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction) _wrap_KeyEvent_m_rawFlags_get, METH_VARARGS | METH_KEYWORDS },
39362 { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS },
39363 { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS },
39364 { (char *)"SizeEvent_GetSize", (PyCFunction) _wrap_SizeEvent_GetSize, METH_VARARGS | METH_KEYWORDS },
39365 { (char *)"SizeEvent_GetRect", (PyCFunction) _wrap_SizeEvent_GetRect, METH_VARARGS | METH_KEYWORDS },
39366 { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS },
39367 { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS },
39368 { (char *)"SizeEvent_m_size_set", (PyCFunction) _wrap_SizeEvent_m_size_set, METH_VARARGS | METH_KEYWORDS },
39369 { (char *)"SizeEvent_m_size_get", (PyCFunction) _wrap_SizeEvent_m_size_get, METH_VARARGS | METH_KEYWORDS },
39370 { (char *)"SizeEvent_m_rect_set", (PyCFunction) _wrap_SizeEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS },
39371 { (char *)"SizeEvent_m_rect_get", (PyCFunction) _wrap_SizeEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS },
39372 { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS },
39373 { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS },
39374 { (char *)"MoveEvent_GetPosition", (PyCFunction) _wrap_MoveEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
39375 { (char *)"MoveEvent_GetRect", (PyCFunction) _wrap_MoveEvent_GetRect, METH_VARARGS | METH_KEYWORDS },
39376 { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS },
39377 { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
39378 { (char *)"MoveEvent_m_pos_set", (PyCFunction) _wrap_MoveEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS },
39379 { (char *)"MoveEvent_m_pos_get", (PyCFunction) _wrap_MoveEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS },
39380 { (char *)"MoveEvent_m_rect_set", (PyCFunction) _wrap_MoveEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS },
39381 { (char *)"MoveEvent_m_rect_get", (PyCFunction) _wrap_MoveEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS },
39382 { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS },
39383 { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS },
39384 { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS },
39385 { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS },
39386 { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS },
39387 { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS },
39388 { (char *)"EraseEvent_GetDC", (PyCFunction) _wrap_EraseEvent_GetDC, METH_VARARGS | METH_KEYWORDS },
39389 { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS },
39390 { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS },
39391 { (char *)"FocusEvent_GetWindow", (PyCFunction) _wrap_FocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS },
39392 { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS },
39393 { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS },
39394 { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS },
39395 { (char *)"ChildFocusEvent_GetWindow", (PyCFunction) _wrap_ChildFocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS },
39396 { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS },
39397 { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS },
39398 { (char *)"ActivateEvent_GetActive", (PyCFunction) _wrap_ActivateEvent_GetActive, METH_VARARGS | METH_KEYWORDS },
39399 { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS },
39400 { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS },
39401 { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS },
39402 { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS },
39403 { (char *)"MenuEvent_GetMenuId", (PyCFunction) _wrap_MenuEvent_GetMenuId, METH_VARARGS | METH_KEYWORDS },
39404 { (char *)"MenuEvent_IsPopup", (PyCFunction) _wrap_MenuEvent_IsPopup, METH_VARARGS | METH_KEYWORDS },
39405 { (char *)"MenuEvent_GetMenu", (PyCFunction) _wrap_MenuEvent_GetMenu, METH_VARARGS | METH_KEYWORDS },
39406 { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS },
39407 { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS },
39408 { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS },
39409 { (char *)"CloseEvent_GetLoggingOff", (PyCFunction) _wrap_CloseEvent_GetLoggingOff, METH_VARARGS | METH_KEYWORDS },
39410 { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS },
39411 { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS },
39412 { (char *)"CloseEvent_CanVeto", (PyCFunction) _wrap_CloseEvent_CanVeto, METH_VARARGS | METH_KEYWORDS },
39413 { (char *)"CloseEvent_GetVeto", (PyCFunction) _wrap_CloseEvent_GetVeto, METH_VARARGS | METH_KEYWORDS },
39414 { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS },
39415 { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS },
39416 { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS },
39417 { (char *)"ShowEvent_GetShow", (PyCFunction) _wrap_ShowEvent_GetShow, METH_VARARGS | METH_KEYWORDS },
39418 { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS },
39419 { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS },
39420 { (char *)"IconizeEvent_Iconized", (PyCFunction) _wrap_IconizeEvent_Iconized, METH_VARARGS | METH_KEYWORDS },
39421 { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS },
39422 { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS },
39423 { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS },
39424 { (char *)"DropFilesEvent_GetPosition", (PyCFunction) _wrap_DropFilesEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
39425 { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction) _wrap_DropFilesEvent_GetNumberOfFiles, METH_VARARGS | METH_KEYWORDS },
39426 { (char *)"DropFilesEvent_GetFiles", (PyCFunction) _wrap_DropFilesEvent_GetFiles, METH_VARARGS | METH_KEYWORDS },
39427 { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS },
39428 { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS },
39429 { (char *)"UpdateUIEvent_GetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetChecked, METH_VARARGS | METH_KEYWORDS },
39430 { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetEnabled, METH_VARARGS | METH_KEYWORDS },
39431 { (char *)"UpdateUIEvent_GetText", (PyCFunction) _wrap_UpdateUIEvent_GetText, METH_VARARGS | METH_KEYWORDS },
39432 { (char *)"UpdateUIEvent_GetSetText", (PyCFunction) _wrap_UpdateUIEvent_GetSetText, METH_VARARGS | METH_KEYWORDS },
39433 { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetSetChecked, METH_VARARGS | METH_KEYWORDS },
39434 { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetSetEnabled, METH_VARARGS | METH_KEYWORDS },
39435 { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS },
39436 { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS },
39437 { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS },
39438 { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS },
39439 { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_GetUpdateInterval, METH_VARARGS | METH_KEYWORDS },
39440 { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS },
39441 { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction) _wrap_UpdateUIEvent_ResetUpdateTime, METH_VARARGS | METH_KEYWORDS },
39442 { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS },
39443 { (char *)"UpdateUIEvent_GetMode", (PyCFunction) _wrap_UpdateUIEvent_GetMode, METH_VARARGS | METH_KEYWORDS },
39444 { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS },
39445 { (char *)"new_SysColourChangedEvent", (PyCFunction) _wrap_new_SysColourChangedEvent, METH_VARARGS | METH_KEYWORDS },
39446 { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS },
39447 { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS },
39448 { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction) _wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_VARARGS | METH_KEYWORDS },
39449 { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS },
39450 { (char *)"new_DisplayChangedEvent", (PyCFunction) _wrap_new_DisplayChangedEvent, METH_VARARGS | METH_KEYWORDS },
39451 { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS },
39452 { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS },
39453 { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS },
39454 { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_GetChangedWindow, METH_VARARGS | METH_KEYWORDS },
39455 { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS },
39456 { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS },
39457 { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS },
39458 { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_VARARGS | METH_KEYWORDS },
39459 { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS },
39460 { (char *)"new_NavigationKeyEvent", (PyCFunction) _wrap_new_NavigationKeyEvent, METH_VARARGS | METH_KEYWORDS },
39461 { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction) _wrap_NavigationKeyEvent_GetDirection, METH_VARARGS | METH_KEYWORDS },
39462 { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS },
39463 { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_IsWindowChange, METH_VARARGS | METH_KEYWORDS },
39464 { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS },
39465 { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_GetCurrentFocus, METH_VARARGS | METH_KEYWORDS },
39466 { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS },
39467 { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS },
39468 { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS },
39469 { (char *)"WindowCreateEvent_GetWindow", (PyCFunction) _wrap_WindowCreateEvent_GetWindow, METH_VARARGS | METH_KEYWORDS },
39470 { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS },
39471 { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS },
39472 { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction) _wrap_WindowDestroyEvent_GetWindow, METH_VARARGS | METH_KEYWORDS },
39473 { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS },
39474 { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS },
39475 { (char *)"ContextMenuEvent_GetPosition", (PyCFunction) _wrap_ContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
39476 { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
39477 { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS },
39478 { (char *)"new_IdleEvent", (PyCFunction) _wrap_new_IdleEvent, METH_VARARGS | METH_KEYWORDS },
39479 { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS },
39480 { (char *)"IdleEvent_MoreRequested", (PyCFunction) _wrap_IdleEvent_MoreRequested, METH_VARARGS | METH_KEYWORDS },
39481 { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS },
39482 { (char *)"IdleEvent_GetMode", (PyCFunction) _wrap_IdleEvent_GetMode, METH_VARARGS | METH_KEYWORDS },
39483 { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS },
39484 { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS },
39485 { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS },
39486 { (char *)"delete_PyEvent", (PyCFunction) _wrap_delete_PyEvent, METH_VARARGS | METH_KEYWORDS },
39487 { (char *)"PyEvent_SetSelf", (PyCFunction) _wrap_PyEvent_SetSelf, METH_VARARGS | METH_KEYWORDS },
39488 { (char *)"PyEvent_GetSelf", (PyCFunction) _wrap_PyEvent_GetSelf, METH_VARARGS | METH_KEYWORDS },
39489 { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS },
39490 { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS },
39491 { (char *)"delete_PyCommandEvent", (PyCFunction) _wrap_delete_PyCommandEvent, METH_VARARGS | METH_KEYWORDS },
39492 { (char *)"PyCommandEvent_SetSelf", (PyCFunction) _wrap_PyCommandEvent_SetSelf, METH_VARARGS | METH_KEYWORDS },
39493 { (char *)"PyCommandEvent_GetSelf", (PyCFunction) _wrap_PyCommandEvent_GetSelf, METH_VARARGS | METH_KEYWORDS },
39494 { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS },
39495 { (char *)"new_PyApp", (PyCFunction) _wrap_new_PyApp, METH_VARARGS | METH_KEYWORDS },
39496 { (char *)"delete_PyApp", (PyCFunction) _wrap_delete_PyApp, METH_VARARGS | METH_KEYWORDS },
39497 { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
39498 { (char *)"PyApp_GetAppName", (PyCFunction) _wrap_PyApp_GetAppName, METH_VARARGS | METH_KEYWORDS },
39499 { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS },
39500 { (char *)"PyApp_GetClassName", (PyCFunction) _wrap_PyApp_GetClassName, METH_VARARGS | METH_KEYWORDS },
39501 { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS },
39502 { (char *)"PyApp_GetVendorName", (PyCFunction) _wrap_PyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS },
39503 { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS },
39504 { (char *)"PyApp_GetTraits", (PyCFunction) _wrap_PyApp_GetTraits, METH_VARARGS | METH_KEYWORDS },
39505 { (char *)"PyApp_ProcessPendingEvents", (PyCFunction) _wrap_PyApp_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS },
39506 { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS },
39507 { (char *)"PyApp_WakeUpIdle", (PyCFunction) _wrap_PyApp_WakeUpIdle, METH_VARARGS | METH_KEYWORDS },
39508 { (char *)"PyApp_MainLoop", (PyCFunction) _wrap_PyApp_MainLoop, METH_VARARGS | METH_KEYWORDS },
39509 { (char *)"PyApp_Exit", (PyCFunction) _wrap_PyApp_Exit, METH_VARARGS | METH_KEYWORDS },
39510 { (char *)"PyApp_ExitMainLoop", (PyCFunction) _wrap_PyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS },
39511 { (char *)"PyApp_Pending", (PyCFunction) _wrap_PyApp_Pending, METH_VARARGS | METH_KEYWORDS },
39512 { (char *)"PyApp_Dispatch", (PyCFunction) _wrap_PyApp_Dispatch, METH_VARARGS | METH_KEYWORDS },
39513 { (char *)"PyApp_ProcessIdle", (PyCFunction) _wrap_PyApp_ProcessIdle, METH_VARARGS | METH_KEYWORDS },
39514 { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
39515 { (char *)"PyApp_IsActive", (PyCFunction) _wrap_PyApp_IsActive, METH_VARARGS | METH_KEYWORDS },
39516 { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS },
39517 { (char *)"PyApp_GetTopWindow", (PyCFunction) _wrap_PyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS },
39518 { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS },
39519 { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS },
39520 { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS },
39521 { (char *)"PyApp_GetUseBestVisual", (PyCFunction) _wrap_PyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS },
39522 { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS },
39523 { (char *)"PyApp_GetPrintMode", (PyCFunction) _wrap_PyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS },
d14a1e28 39524 { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS },
44127b65 39525 { (char *)"PyApp_GetAssertMode", (PyCFunction) _wrap_PyApp_GetAssertMode, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
39526 { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS },
39527 { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_GetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS },
39528 { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_GetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS },
39529 { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_GetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS },
39530 { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_GetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS },
39531 { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS },
39532 { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS },
39533 { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS },
39534 { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS },
39535 { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS },
39536 { (char *)"PyApp__BootstrapApp", (PyCFunction) _wrap_PyApp__BootstrapApp, METH_VARARGS | METH_KEYWORDS },
39537 { (char *)"PyApp_GetComCtl32Version", (PyCFunction) _wrap_PyApp_GetComCtl32Version, METH_VARARGS | METH_KEYWORDS },
39538 { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS },
39539 { (char *)"Exit", (PyCFunction) _wrap_Exit, METH_VARARGS | METH_KEYWORDS },
39540 { (char *)"Yield", (PyCFunction) _wrap_Yield, METH_VARARGS | METH_KEYWORDS },
39541 { (char *)"YieldIfNeeded", (PyCFunction) _wrap_YieldIfNeeded, METH_VARARGS | METH_KEYWORDS },
39542 { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS },
39543 { (char *)"WakeUpIdle", (PyCFunction) _wrap_WakeUpIdle, METH_VARARGS | METH_KEYWORDS },
39544 { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS },
39545 { (char *)"App_CleanUp", (PyCFunction) _wrap_App_CleanUp, METH_VARARGS | METH_KEYWORDS },
39546 { (char *)"GetApp", (PyCFunction) _wrap_GetApp, METH_VARARGS | METH_KEYWORDS },
41f1cec7
RD
39547 { (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS },
39548 { (char *)"delete_AcceleratorEntry", (PyCFunction) _wrap_delete_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS },
39549 { (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS },
39550 { (char *)"AcceleratorEntry_SetMenuItem", (PyCFunction) _wrap_AcceleratorEntry_SetMenuItem, METH_VARARGS | METH_KEYWORDS },
39551 { (char *)"AcceleratorEntry_GetMenuItem", (PyCFunction) _wrap_AcceleratorEntry_GetMenuItem, METH_VARARGS | METH_KEYWORDS },
39552 { (char *)"AcceleratorEntry_GetFlags", (PyCFunction) _wrap_AcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS },
39553 { (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_AcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS },
39554 { (char *)"AcceleratorEntry_GetCommand", (PyCFunction) _wrap_AcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS },
39555 { (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS },
39556 { (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS },
39557 { (char *)"delete_AcceleratorTable", (PyCFunction) _wrap_delete_AcceleratorTable, METH_VARARGS | METH_KEYWORDS },
39558 { (char *)"AcceleratorTable_Ok", (PyCFunction) _wrap_AcceleratorTable_Ok, METH_VARARGS | METH_KEYWORDS },
39559 { (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS },
39560 { (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
39561 { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS },
39562 { (char *)"new_PreWindow", (PyCFunction) _wrap_new_PreWindow, METH_VARARGS | METH_KEYWORDS },
39563 { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS },
39564 { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS },
39565 { (char *)"Window_Destroy", (PyCFunction) _wrap_Window_Destroy, METH_VARARGS | METH_KEYWORDS },
39566 { (char *)"Window_DestroyChildren", (PyCFunction) _wrap_Window_DestroyChildren, METH_VARARGS | METH_KEYWORDS },
39567 { (char *)"Window_IsBeingDeleted", (PyCFunction) _wrap_Window_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS },
39568 { (char *)"Window_SetTitle", (PyCFunction) _wrap_Window_SetTitle, METH_VARARGS | METH_KEYWORDS },
39569 { (char *)"Window_GetTitle", (PyCFunction) _wrap_Window_GetTitle, METH_VARARGS | METH_KEYWORDS },
39570 { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS },
39571 { (char *)"Window_GetLabel", (PyCFunction) _wrap_Window_GetLabel, METH_VARARGS | METH_KEYWORDS },
39572 { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS },
39573 { (char *)"Window_GetName", (PyCFunction) _wrap_Window_GetName, METH_VARARGS | METH_KEYWORDS },
39574 { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS },
39575 { (char *)"Window_GetId", (PyCFunction) _wrap_Window_GetId, METH_VARARGS | METH_KEYWORDS },
39576 { (char *)"Window_NewControlId", (PyCFunction) _wrap_Window_NewControlId, METH_VARARGS | METH_KEYWORDS },
39577 { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS },
39578 { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS },
39579 { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS },
39580 { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS },
39581 { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS },
39582 { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS },
39583 { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS },
39584 { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS },
39585 { (char *)"Window_Raise", (PyCFunction) _wrap_Window_Raise, METH_VARARGS | METH_KEYWORDS },
39586 { (char *)"Window_Lower", (PyCFunction) _wrap_Window_Lower, METH_VARARGS | METH_KEYWORDS },
39587 { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS },
39588 { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS },
39589 { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS },
39590 { (char *)"Window_GetPosition", (PyCFunction) _wrap_Window_GetPosition, METH_VARARGS | METH_KEYWORDS },
39591 { (char *)"Window_GetPositionTuple", (PyCFunction) _wrap_Window_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
39592 { (char *)"Window_GetSize", (PyCFunction) _wrap_Window_GetSize, METH_VARARGS | METH_KEYWORDS },
39593 { (char *)"Window_GetSizeTuple", (PyCFunction) _wrap_Window_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
39594 { (char *)"Window_GetRect", (PyCFunction) _wrap_Window_GetRect, METH_VARARGS | METH_KEYWORDS },
39595 { (char *)"Window_GetClientSize", (PyCFunction) _wrap_Window_GetClientSize, METH_VARARGS | METH_KEYWORDS },
39596 { (char *)"Window_GetClientSizeTuple", (PyCFunction) _wrap_Window_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS },
39597 { (char *)"Window_GetClientAreaOrigin", (PyCFunction) _wrap_Window_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS },
39598 { (char *)"Window_GetClientRect", (PyCFunction) _wrap_Window_GetClientRect, METH_VARARGS | METH_KEYWORDS },
39599 { (char *)"Window_GetBestSize", (PyCFunction) _wrap_Window_GetBestSize, METH_VARARGS | METH_KEYWORDS },
39600 { (char *)"Window_GetBestSizeTuple", (PyCFunction) _wrap_Window_GetBestSizeTuple, METH_VARARGS | METH_KEYWORDS },
39601 { (char *)"Window_GetAdjustedBestSize", (PyCFunction) _wrap_Window_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS },
39602 { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS },
39603 { (char *)"Window_CenterOnScreen", (PyCFunction) _wrap_Window_CenterOnScreen, METH_VARARGS | METH_KEYWORDS },
39604 { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS },
39605 { (char *)"Window_Fit", (PyCFunction) _wrap_Window_Fit, METH_VARARGS | METH_KEYWORDS },
39606 { (char *)"Window_FitInside", (PyCFunction) _wrap_Window_FitInside, METH_VARARGS | METH_KEYWORDS },
39607 { (char *)"Window_SetSizeHints", (PyCFunction) _wrap_Window_SetSizeHints, METH_VARARGS | METH_KEYWORDS },
39608 { (char *)"Window_SetVirtualSizeHints", (PyCFunction) _wrap_Window_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS },
39609 { (char *)"Window_GetMinWidth", (PyCFunction) _wrap_Window_GetMinWidth, METH_VARARGS | METH_KEYWORDS },
39610 { (char *)"Window_GetMinHeight", (PyCFunction) _wrap_Window_GetMinHeight, METH_VARARGS | METH_KEYWORDS },
39611 { (char *)"Window_GetMaxWidth", (PyCFunction) _wrap_Window_GetMaxWidth, METH_VARARGS | METH_KEYWORDS },
39612 { (char *)"Window_GetMaxHeight", (PyCFunction) _wrap_Window_GetMaxHeight, METH_VARARGS | METH_KEYWORDS },
39613 { (char *)"Window_GetMaxSize", (PyCFunction) _wrap_Window_GetMaxSize, METH_VARARGS | METH_KEYWORDS },
39614 { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS },
39615 { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS },
39616 { (char *)"Window_GetVirtualSize", (PyCFunction) _wrap_Window_GetVirtualSize, METH_VARARGS | METH_KEYWORDS },
39617 { (char *)"Window_GetVirtualSizeTuple", (PyCFunction) _wrap_Window_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS },
39618 { (char *)"Window_GetBestVirtualSize", (PyCFunction) _wrap_Window_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS },
39619 { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS },
39620 { (char *)"Window_Hide", (PyCFunction) _wrap_Window_Hide, METH_VARARGS | METH_KEYWORDS },
39621 { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS },
39622 { (char *)"Window_Disable", (PyCFunction) _wrap_Window_Disable, METH_VARARGS | METH_KEYWORDS },
39623 { (char *)"Window_IsShown", (PyCFunction) _wrap_Window_IsShown, METH_VARARGS | METH_KEYWORDS },
39624 { (char *)"Window_IsEnabled", (PyCFunction) _wrap_Window_IsEnabled, METH_VARARGS | METH_KEYWORDS },
39625 { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
39626 { (char *)"Window_GetWindowStyleFlag", (PyCFunction) _wrap_Window_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
39627 { (char *)"Window_SetWindowStyle", (PyCFunction) _wrap_Window_SetWindowStyle, METH_VARARGS | METH_KEYWORDS },
39628 { (char *)"Window_GetWindowStyle", (PyCFunction) _wrap_Window_GetWindowStyle, METH_VARARGS | METH_KEYWORDS },
39629 { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS },
39630 { (char *)"Window_IsRetained", (PyCFunction) _wrap_Window_IsRetained, METH_VARARGS | METH_KEYWORDS },
39631 { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS },
39632 { (char *)"Window_GetExtraStyle", (PyCFunction) _wrap_Window_GetExtraStyle, METH_VARARGS | METH_KEYWORDS },
39633 { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS },
39634 { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS },
39635 { (char *)"Window_GetThemeEnabled", (PyCFunction) _wrap_Window_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS },
39636 { (char *)"Window_ShouldInheritColours", (PyCFunction) _wrap_Window_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS },
39637 { (char *)"Window_SetFocus", (PyCFunction) _wrap_Window_SetFocus, METH_VARARGS | METH_KEYWORDS },
39638 { (char *)"Window_SetFocusFromKbd", (PyCFunction) _wrap_Window_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS },
39639 { (char *)"Window_FindFocus", (PyCFunction) _wrap_Window_FindFocus, METH_VARARGS | METH_KEYWORDS },
39640 { (char *)"Window_AcceptsFocus", (PyCFunction) _wrap_Window_AcceptsFocus, METH_VARARGS | METH_KEYWORDS },
39641 { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_Window_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS },
39642 { (char *)"Window_GetDefaultItem", (PyCFunction) _wrap_Window_GetDefaultItem, METH_VARARGS | METH_KEYWORDS },
39643 { (char *)"Window_SetDefaultItem", (PyCFunction) _wrap_Window_SetDefaultItem, METH_VARARGS | METH_KEYWORDS },
39644 { (char *)"Window_SetTmpDefaultItem", (PyCFunction) _wrap_Window_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS },
39645 { (char *)"Window_GetChildren", (PyCFunction) _wrap_Window_GetChildren, METH_VARARGS | METH_KEYWORDS },
39646 { (char *)"Window_GetParent", (PyCFunction) _wrap_Window_GetParent, METH_VARARGS | METH_KEYWORDS },
39647 { (char *)"Window_GetGrandParent", (PyCFunction) _wrap_Window_GetGrandParent, METH_VARARGS | METH_KEYWORDS },
39648 { (char *)"Window_IsTopLevel", (PyCFunction) _wrap_Window_IsTopLevel, METH_VARARGS | METH_KEYWORDS },
39649 { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS },
39650 { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS },
39651 { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS },
39652 { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS },
39653 { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS },
39654 { (char *)"Window_GetEventHandler", (PyCFunction) _wrap_Window_GetEventHandler, METH_VARARGS | METH_KEYWORDS },
39655 { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS },
39656 { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS },
39657 { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS },
39658 { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS },
39659 { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS },
39660 { (char *)"Window_GetValidator", (PyCFunction) _wrap_Window_GetValidator, METH_VARARGS | METH_KEYWORDS },
39661 { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS },
39662 { (char *)"Window_GetAcceleratorTable", (PyCFunction) _wrap_Window_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS },
39663 { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS },
39664 { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS },
39665 { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS },
39666 { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS },
39667 { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS },
39668 { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS },
39669 { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS },
39670 { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS },
39671 { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS },
39672 { (char *)"Window_CaptureMouse", (PyCFunction) _wrap_Window_CaptureMouse, METH_VARARGS | METH_KEYWORDS },
39673 { (char *)"Window_ReleaseMouse", (PyCFunction) _wrap_Window_ReleaseMouse, METH_VARARGS | METH_KEYWORDS },
39674 { (char *)"Window_GetCapture", (PyCFunction) _wrap_Window_GetCapture, METH_VARARGS | METH_KEYWORDS },
39675 { (char *)"Window_HasCapture", (PyCFunction) _wrap_Window_HasCapture, METH_VARARGS | METH_KEYWORDS },
39676 { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS },
39677 { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS },
39678 { (char *)"Window_Update", (PyCFunction) _wrap_Window_Update, METH_VARARGS | METH_KEYWORDS },
39679 { (char *)"Window_ClearBackground", (PyCFunction) _wrap_Window_ClearBackground, METH_VARARGS | METH_KEYWORDS },
39680 { (char *)"Window_Freeze", (PyCFunction) _wrap_Window_Freeze, METH_VARARGS | METH_KEYWORDS },
39681 { (char *)"Window_Thaw", (PyCFunction) _wrap_Window_Thaw, METH_VARARGS | METH_KEYWORDS },
39682 { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS },
39683 { (char *)"Window_GetUpdateRegion", (PyCFunction) _wrap_Window_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS },
39684 { (char *)"Window_GetUpdateClientRect", (PyCFunction) _wrap_Window_GetUpdateClientRect, METH_VARARGS | METH_KEYWORDS },
39685 { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS },
39686 { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS },
39687 { (char *)"Window_isExposedRect", (PyCFunction) _wrap_Window_isExposedRect, METH_VARARGS | METH_KEYWORDS },
39688 { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
39689 { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS },
39690 { (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
39691 { (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS },
39692 { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS },
39693 { (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS },
39694 { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS },
39695 { (char *)"Window_GetFont", (PyCFunction) _wrap_Window_GetFont, METH_VARARGS | METH_KEYWORDS },
39696 { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS },
39697 { (char *)"Window_GetCaret", (PyCFunction) _wrap_Window_GetCaret, METH_VARARGS | METH_KEYWORDS },
39698 { (char *)"Window_GetCharHeight", (PyCFunction) _wrap_Window_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
39699 { (char *)"Window_GetCharWidth", (PyCFunction) _wrap_Window_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
39700 { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
39701 { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
39702 { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS },
39703 { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS },
39704 { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS },
39705 { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS },
39706 { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS },
39707 { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS },
39708 { (char *)"Window_GetBorderFlags", (PyCFunction) _wrap_Window_GetBorderFlags, METH_VARARGS | METH_KEYWORDS },
39709 { (char *)"Window_GetBorder", (PyCFunction) _wrap_Window_GetBorder, METH_VARARGS | METH_KEYWORDS },
39710 { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS },
39711 { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS },
39712 { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS },
39713 { (char *)"Window_GetHandle", (PyCFunction) _wrap_Window_GetHandle, METH_VARARGS | METH_KEYWORDS },
39714 { (char *)"Window_OnPaint", (PyCFunction) _wrap_Window_OnPaint, METH_VARARGS | METH_KEYWORDS },
39715 { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS },
39716 { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS },
39717 { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS },
39718 { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS },
39719 { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS },
39720 { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS },
39721 { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS },
39722 { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS },
39723 { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS },
39724 { (char *)"Window_LineUp", (PyCFunction) _wrap_Window_LineUp, METH_VARARGS | METH_KEYWORDS },
39725 { (char *)"Window_LineDown", (PyCFunction) _wrap_Window_LineDown, METH_VARARGS | METH_KEYWORDS },
39726 { (char *)"Window_PageUp", (PyCFunction) _wrap_Window_PageUp, METH_VARARGS | METH_KEYWORDS },
39727 { (char *)"Window_PageDown", (PyCFunction) _wrap_Window_PageDown, METH_VARARGS | METH_KEYWORDS },
39728 { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS },
39729 { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS },
39730 { (char *)"Window_GetHelpText", (PyCFunction) _wrap_Window_GetHelpText, METH_VARARGS | METH_KEYWORDS },
39731 { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS },
39732 { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS },
39733 { (char *)"Window_GetToolTip", (PyCFunction) _wrap_Window_GetToolTip, METH_VARARGS | METH_KEYWORDS },
39734 { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS },
39735 { (char *)"Window_GetDropTarget", (PyCFunction) _wrap_Window_GetDropTarget, METH_VARARGS | METH_KEYWORDS },
39736 { (char *)"Window_DragAcceptFiles", (PyCFunction) _wrap_Window_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS },
39737 { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS },
39738 { (char *)"Window_GetConstraints", (PyCFunction) _wrap_Window_GetConstraints, METH_VARARGS | METH_KEYWORDS },
39739 { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS },
39740 { (char *)"Window_GetAutoLayout", (PyCFunction) _wrap_Window_GetAutoLayout, METH_VARARGS | METH_KEYWORDS },
39741 { (char *)"Window_Layout", (PyCFunction) _wrap_Window_Layout, METH_VARARGS | METH_KEYWORDS },
39742 { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS },
39743 { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS },
39744 { (char *)"Window_GetSizer", (PyCFunction) _wrap_Window_GetSizer, METH_VARARGS | METH_KEYWORDS },
39745 { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS },
39746 { (char *)"Window_GetContainingSizer", (PyCFunction) _wrap_Window_GetContainingSizer, METH_VARARGS | METH_KEYWORDS },
39747 { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS },
39748 { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS },
39749 { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS },
39750 { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS },
39751 { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS },
39752 { (char *)"new_Validator", (PyCFunction) _wrap_new_Validator, METH_VARARGS | METH_KEYWORDS },
39753 { (char *)"Validator_Clone", (PyCFunction) _wrap_Validator_Clone, METH_VARARGS | METH_KEYWORDS },
39754 { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS },
39755 { (char *)"Validator_TransferToWindow", (PyCFunction) _wrap_Validator_TransferToWindow, METH_VARARGS | METH_KEYWORDS },
39756 { (char *)"Validator_TransferFromWindow", (PyCFunction) _wrap_Validator_TransferFromWindow, METH_VARARGS | METH_KEYWORDS },
39757 { (char *)"Validator_GetWindow", (PyCFunction) _wrap_Validator_GetWindow, METH_VARARGS | METH_KEYWORDS },
39758 { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS },
39759 { (char *)"Validator_IsSilent", (PyCFunction) _wrap_Validator_IsSilent, METH_VARARGS | METH_KEYWORDS },
39760 { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS },
39761 { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS },
39762 { (char *)"new_PyValidator", (PyCFunction) _wrap_new_PyValidator, METH_VARARGS | METH_KEYWORDS },
39763 { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
39764 { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS },
39765 { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS },
39766 { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS },
39767 { (char *)"Menu_AppendSeparator", (PyCFunction) _wrap_Menu_AppendSeparator, METH_VARARGS | METH_KEYWORDS },
39768 { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS },
39769 { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS },
39770 { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS },
39771 { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS },
39772 { (char *)"Menu_Break", (PyCFunction) _wrap_Menu_Break, METH_VARARGS | METH_KEYWORDS },
39773 { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS },
39774 { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS },
39775 { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS },
39776 { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS },
39777 { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS },
39778 { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS },
39779 { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS },
39780 { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS },
39781 { (char *)"Menu_PrependSeparator", (PyCFunction) _wrap_Menu_PrependSeparator, METH_VARARGS | METH_KEYWORDS },
39782 { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS },
39783 { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS },
39784 { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS },
39785 { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS },
39786 { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS },
39787 { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS },
39788 { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS },
39789 { (char *)"Menu_Destroy", (PyCFunction) _wrap_Menu_Destroy, METH_VARARGS | METH_KEYWORDS },
39790 { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS },
39791 { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS },
39792 { (char *)"Menu_GetMenuItemCount", (PyCFunction) _wrap_Menu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS },
39793 { (char *)"Menu_GetMenuItems", (PyCFunction) _wrap_Menu_GetMenuItems, METH_VARARGS | METH_KEYWORDS },
39794 { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS },
39795 { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS },
39796 { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS },
39797 { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS },
39798 { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS },
39799 { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS },
39800 { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS },
39801 { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS },
39802 { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS },
39803 { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS },
39804 { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS },
39805 { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS },
39806 { (char *)"Menu_GetTitle", (PyCFunction) _wrap_Menu_GetTitle, METH_VARARGS | METH_KEYWORDS },
39807 { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS },
39808 { (char *)"Menu_GetEventHandler", (PyCFunction) _wrap_Menu_GetEventHandler, METH_VARARGS | METH_KEYWORDS },
39809 { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS },
39810 { (char *)"Menu_GetInvokingWindow", (PyCFunction) _wrap_Menu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS },
39811 { (char *)"Menu_GetStyle", (PyCFunction) _wrap_Menu_GetStyle, METH_VARARGS | METH_KEYWORDS },
39812 { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS },
39813 { (char *)"Menu_GetMenuBar", (PyCFunction) _wrap_Menu_GetMenuBar, METH_VARARGS | METH_KEYWORDS },
39814 { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS },
39815 { (char *)"Menu_Detach", (PyCFunction) _wrap_Menu_Detach, METH_VARARGS | METH_KEYWORDS },
39816 { (char *)"Menu_IsAttached", (PyCFunction) _wrap_Menu_IsAttached, METH_VARARGS | METH_KEYWORDS },
39817 { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS },
39818 { (char *)"Menu_GetParent", (PyCFunction) _wrap_Menu_GetParent, METH_VARARGS | METH_KEYWORDS },
39819 { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS },
39820 { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS },
39821 { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS },
39822 { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS },
39823 { (char *)"MenuBar_GetMenuCount", (PyCFunction) _wrap_MenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS },
39824 { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS },
39825 { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS },
39826 { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS },
39827 { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS },
39828 { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS },
39829 { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS },
39830 { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS },
39831 { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS },
39832 { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS },
39833 { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS },
39834 { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS },
39835 { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS },
39836 { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS },
39837 { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS },
39838 { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS },
39839 { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS },
39840 { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS },
39841 { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS },
39842 { (char *)"MenuBar_GetFrame", (PyCFunction) _wrap_MenuBar_GetFrame, METH_VARARGS | METH_KEYWORDS },
39843 { (char *)"MenuBar_IsAttached", (PyCFunction) _wrap_MenuBar_IsAttached, METH_VARARGS | METH_KEYWORDS },
39844 { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS },
39845 { (char *)"MenuBar_Detach", (PyCFunction) _wrap_MenuBar_Detach, METH_VARARGS | METH_KEYWORDS },
39846 { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS },
39847 { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS },
39848 { (char *)"MenuItem_GetMenu", (PyCFunction) _wrap_MenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS },
39849 { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS },
39850 { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS },
39851 { (char *)"MenuItem_GetId", (PyCFunction) _wrap_MenuItem_GetId, METH_VARARGS | METH_KEYWORDS },
39852 { (char *)"MenuItem_IsSeparator", (PyCFunction) _wrap_MenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS },
39853 { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS },
39854 { (char *)"MenuItem_GetLabel", (PyCFunction) _wrap_MenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS },
39855 { (char *)"MenuItem_GetText", (PyCFunction) _wrap_MenuItem_GetText, METH_VARARGS | METH_KEYWORDS },
39856 { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS },
39857 { (char *)"MenuItem_GetKind", (PyCFunction) _wrap_MenuItem_GetKind, METH_VARARGS | METH_KEYWORDS },
39858 { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS },
39859 { (char *)"MenuItem_IsCheckable", (PyCFunction) _wrap_MenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS },
39860 { (char *)"MenuItem_IsSubMenu", (PyCFunction) _wrap_MenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS },
39861 { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS },
39862 { (char *)"MenuItem_GetSubMenu", (PyCFunction) _wrap_MenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS },
39863 { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS },
39864 { (char *)"MenuItem_IsEnabled", (PyCFunction) _wrap_MenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS },
39865 { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS },
39866 { (char *)"MenuItem_IsChecked", (PyCFunction) _wrap_MenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS },
39867 { (char *)"MenuItem_Toggle", (PyCFunction) _wrap_MenuItem_Toggle, METH_VARARGS | METH_KEYWORDS },
39868 { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS },
39869 { (char *)"MenuItem_GetHelp", (PyCFunction) _wrap_MenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS },
39870 { (char *)"MenuItem_GetAccel", (PyCFunction) _wrap_MenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS },
39871 { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS },
39872 { (char *)"MenuItem_SetFont", (PyCFunction) _wrap_MenuItem_SetFont, METH_VARARGS | METH_KEYWORDS },
39873 { (char *)"MenuItem_GetFont", (PyCFunction) _wrap_MenuItem_GetFont, METH_VARARGS | METH_KEYWORDS },
39874 { (char *)"MenuItem_SetTextColour", (PyCFunction) _wrap_MenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS },
39875 { (char *)"MenuItem_GetTextColour", (PyCFunction) _wrap_MenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS },
39876 { (char *)"MenuItem_SetBackgroundColour", (PyCFunction) _wrap_MenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
39877 { (char *)"MenuItem_GetBackgroundColour", (PyCFunction) _wrap_MenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
39878 { (char *)"MenuItem_SetBitmaps", (PyCFunction) _wrap_MenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS },
39879 { (char *)"MenuItem_SetDisabledBitmap", (PyCFunction) _wrap_MenuItem_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS },
39880 { (char *)"MenuItem_GetDisabledBitmap", (PyCFunction) _wrap_MenuItem_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS },
39881 { (char *)"MenuItem_SetMarginWidth", (PyCFunction) _wrap_MenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS },
39882 { (char *)"MenuItem_GetMarginWidth", (PyCFunction) _wrap_MenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS },
39883 { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_MenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS },
39884 { (char *)"MenuItem_IsOwnerDrawn", (PyCFunction) _wrap_MenuItem_IsOwnerDrawn, METH_VARARGS | METH_KEYWORDS },
39885 { (char *)"MenuItem_SetOwnerDrawn", (PyCFunction) _wrap_MenuItem_SetOwnerDrawn, METH_VARARGS | METH_KEYWORDS },
39886 { (char *)"MenuItem_ResetOwnerDrawn", (PyCFunction) _wrap_MenuItem_ResetOwnerDrawn, METH_VARARGS | METH_KEYWORDS },
39887 { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS },
39888 { (char *)"MenuItem_GetBitmap", (PyCFunction) _wrap_MenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS },
39889 { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS },
39890 { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS },
39891 { (char *)"new_PreControl", (PyCFunction) _wrap_new_PreControl, METH_VARARGS | METH_KEYWORDS },
39892 { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS },
39893 { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS },
39894 { (char *)"Control_GetLabel", (PyCFunction) _wrap_Control_GetLabel, METH_VARARGS | METH_KEYWORDS },
39895 { (char *)"Control_SetLabel", (PyCFunction) _wrap_Control_SetLabel, METH_VARARGS | METH_KEYWORDS },
39896 { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS },
39897 { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS },
39898 { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS },
39899 { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS },
39900 { (char *)"ItemContainer_Clear", (PyCFunction) _wrap_ItemContainer_Clear, METH_VARARGS | METH_KEYWORDS },
39901 { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS },
39902 { (char *)"ItemContainer_GetCount", (PyCFunction) _wrap_ItemContainer_GetCount, METH_VARARGS | METH_KEYWORDS },
39903 { (char *)"ItemContainer_IsEmpty", (PyCFunction) _wrap_ItemContainer_IsEmpty, METH_VARARGS | METH_KEYWORDS },
39904 { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS },
39905 { (char *)"ItemContainer_GetStrings", (PyCFunction) _wrap_ItemContainer_GetStrings, METH_VARARGS | METH_KEYWORDS },
39906 { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS },
39907 { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS },
39908 { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS },
39909 { (char *)"ItemContainer_GetSelection", (PyCFunction) _wrap_ItemContainer_GetSelection, METH_VARARGS | METH_KEYWORDS },
39910 { (char *)"ItemContainer_GetStringSelection", (PyCFunction) _wrap_ItemContainer_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
39911 { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS },
39912 { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS },
39913 { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS },
39914 { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS },
39915 { (char *)"new_SizerItem", (PyCFunction) _wrap_new_SizerItem, METH_VARARGS | METH_KEYWORDS },
39916 { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS },
39917 { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS },
39918 { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS },
39919 { (char *)"SizerItem_DeleteWindows", (PyCFunction) _wrap_SizerItem_DeleteWindows, METH_VARARGS | METH_KEYWORDS },
39920 { (char *)"SizerItem_DetachSizer", (PyCFunction) _wrap_SizerItem_DetachSizer, METH_VARARGS | METH_KEYWORDS },
39921 { (char *)"SizerItem_GetSize", (PyCFunction) _wrap_SizerItem_GetSize, METH_VARARGS | METH_KEYWORDS },
39922 { (char *)"SizerItem_CalcMin", (PyCFunction) _wrap_SizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS },
39923 { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS },
39924 { (char *)"SizerItem_GetMinSize", (PyCFunction) _wrap_SizerItem_GetMinSize, METH_VARARGS | METH_KEYWORDS },
39925 { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS },
39926 { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS },
39927 { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS },
39928 { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS },
39929 { (char *)"SizerItem_GetRatio", (PyCFunction) _wrap_SizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS },
39930 { (char *)"SizerItem_IsWindow", (PyCFunction) _wrap_SizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS },
39931 { (char *)"SizerItem_IsSizer", (PyCFunction) _wrap_SizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS },
39932 { (char *)"SizerItem_IsSpacer", (PyCFunction) _wrap_SizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS },
39933 { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS },
39934 { (char *)"SizerItem_GetProportion", (PyCFunction) _wrap_SizerItem_GetProportion, METH_VARARGS | METH_KEYWORDS },
39935 { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS },
39936 { (char *)"SizerItem_GetFlag", (PyCFunction) _wrap_SizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS },
39937 { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS },
39938 { (char *)"SizerItem_GetBorder", (PyCFunction) _wrap_SizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS },
39939 { (char *)"SizerItem_GetWindow", (PyCFunction) _wrap_SizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS },
39940 { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS },
39941 { (char *)"SizerItem_GetSizer", (PyCFunction) _wrap_SizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS },
39942 { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS },
39943 { (char *)"SizerItem_GetSpacer", (PyCFunction) _wrap_SizerItem_GetSpacer, METH_VARARGS | METH_KEYWORDS },
39944 { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS },
39945 { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS },
39946 { (char *)"SizerItem_IsShown", (PyCFunction) _wrap_SizerItem_IsShown, METH_VARARGS | METH_KEYWORDS },
39947 { (char *)"SizerItem_GetPosition", (PyCFunction) _wrap_SizerItem_GetPosition, METH_VARARGS | METH_KEYWORDS },
39948 { (char *)"SizerItem_GetUserData", (PyCFunction) _wrap_SizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS },
39949 { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS },
39950 { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS },
39951 { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS },
39952 { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS },
39953 { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS },
39954 { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS },
39955 { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS },
39956 { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS },
39957 { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS },
39958 { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS },
39959 { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS },
39960 { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS },
39961 { (char *)"Sizer_GetSize", (PyCFunction) _wrap_Sizer_GetSize, METH_VARARGS | METH_KEYWORDS },
39962 { (char *)"Sizer_GetPosition", (PyCFunction) _wrap_Sizer_GetPosition, METH_VARARGS | METH_KEYWORDS },
39963 { (char *)"Sizer_GetMinSize", (PyCFunction) _wrap_Sizer_GetMinSize, METH_VARARGS | METH_KEYWORDS },
39964 { (char *)"Sizer_RecalcSizes", (PyCFunction) _wrap_Sizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
39965 { (char *)"Sizer_CalcMin", (PyCFunction) _wrap_Sizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
39966 { (char *)"Sizer_Layout", (PyCFunction) _wrap_Sizer_Layout, METH_VARARGS | METH_KEYWORDS },
39967 { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS },
39968 { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS },
39969 { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS },
39970 { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS },
39971 { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS },
39972 { (char *)"Sizer_DeleteWindows", (PyCFunction) _wrap_Sizer_DeleteWindows, METH_VARARGS | METH_KEYWORDS },
39973 { (char *)"Sizer_GetChildren", (PyCFunction) _wrap_Sizer_GetChildren, METH_VARARGS | METH_KEYWORDS },
39974 { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS },
39975 { (char *)"Sizer_Hide", (PyCFunction) _wrap_Sizer_Hide, METH_VARARGS | METH_KEYWORDS },
39976 { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS },
39977 { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS },
39978 { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS },
39979 { (char *)"new_PySizer", (PyCFunction) _wrap_new_PySizer, METH_VARARGS | METH_KEYWORDS },
39980 { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
39981 { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS },
39982 { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS },
39983 { (char *)"BoxSizer_GetOrientation", (PyCFunction) _wrap_BoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS },
39984 { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS },
39985 { (char *)"BoxSizer_RecalcSizes", (PyCFunction) _wrap_BoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
39986 { (char *)"BoxSizer_CalcMin", (PyCFunction) _wrap_BoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
39987 { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS },
39988 { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS },
39989 { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_StaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS },
39990 { (char *)"StaticBoxSizer_RecalcSizes", (PyCFunction) _wrap_StaticBoxSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
39991 { (char *)"StaticBoxSizer_CalcMin", (PyCFunction) _wrap_StaticBoxSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
39992 { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS },
39993 { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS },
39994 { (char *)"GridSizer_RecalcSizes", (PyCFunction) _wrap_GridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
39995 { (char *)"GridSizer_CalcMin", (PyCFunction) _wrap_GridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
39996 { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS },
39997 { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS },
39998 { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS },
39999 { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS },
40000 { (char *)"GridSizer_GetCols", (PyCFunction) _wrap_GridSizer_GetCols, METH_VARARGS | METH_KEYWORDS },
40001 { (char *)"GridSizer_GetRows", (PyCFunction) _wrap_GridSizer_GetRows, METH_VARARGS | METH_KEYWORDS },
40002 { (char *)"GridSizer_GetVGap", (PyCFunction) _wrap_GridSizer_GetVGap, METH_VARARGS | METH_KEYWORDS },
40003 { (char *)"GridSizer_GetHGap", (PyCFunction) _wrap_GridSizer_GetHGap, METH_VARARGS | METH_KEYWORDS },
40004 { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS },
40005 { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS },
40006 { (char *)"FlexGridSizer_RecalcSizes", (PyCFunction) _wrap_FlexGridSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
40007 { (char *)"FlexGridSizer_CalcMin", (PyCFunction) _wrap_FlexGridSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
40008 { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS },
40009 { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS },
40010 { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS },
40011 { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS },
40012 { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS },
40013 { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_GetFlexibleDirection, METH_VARARGS | METH_KEYWORDS },
40014 { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS },
40015 { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS },
423f194a
RD
40016 { (char *)"FlexGridSizer_GetRowHeights", (PyCFunction) _wrap_FlexGridSizer_GetRowHeights, METH_VARARGS | METH_KEYWORDS },
40017 { (char *)"FlexGridSizer_GetColWidths", (PyCFunction) _wrap_FlexGridSizer_GetColWidths, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
40018 { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS },
40019 { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS },
40020 { (char *)"GBPosition_GetRow", (PyCFunction) _wrap_GBPosition_GetRow, METH_VARARGS | METH_KEYWORDS },
40021 { (char *)"GBPosition_GetCol", (PyCFunction) _wrap_GBPosition_GetCol, METH_VARARGS | METH_KEYWORDS },
40022 { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS },
40023 { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS },
40024 { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS },
40025 { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS },
423f194a
RD
40026 { (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS },
40027 { (char *)"GBPosition_Get", (PyCFunction) _wrap_GBPosition_Get, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
40028 { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS },
40029 { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS },
40030 { (char *)"GBSpan_GetRowspan", (PyCFunction) _wrap_GBSpan_GetRowspan, METH_VARARGS | METH_KEYWORDS },
40031 { (char *)"GBSpan_GetColspan", (PyCFunction) _wrap_GBSpan_GetColspan, METH_VARARGS | METH_KEYWORDS },
40032 { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS },
40033 { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS },
40034 { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS },
40035 { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS },
423f194a
RD
40036 { (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS },
40037 { (char *)"GBSpan_Get", (PyCFunction) _wrap_GBSpan_Get, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
40038 { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS },
40039 { (char *)"new_GBSizerItem", (PyCFunction) _wrap_new_GBSizerItem, METH_VARARGS | METH_KEYWORDS },
40040 { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS },
40041 { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS },
40042 { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS },
40043 { (char *)"GBSizerItem_GetPos", (PyCFunction) _wrap_GBSizerItem_GetPos, METH_VARARGS | METH_KEYWORDS },
40044 { (char *)"GBSizerItem_GetSpan", (PyCFunction) _wrap_GBSizerItem_GetSpan, METH_VARARGS | METH_KEYWORDS },
40045 { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS },
40046 { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS },
40047 { (char *)"GBSizerItem_Intersects", _wrap_GBSizerItem_Intersects, METH_VARARGS },
40048 { (char *)"GBSizerItem_GetEndPos", (PyCFunction) _wrap_GBSizerItem_GetEndPos, METH_VARARGS | METH_KEYWORDS },
40049 { (char *)"GBSizerItem_GetGBSizer", (PyCFunction) _wrap_GBSizerItem_GetGBSizer, METH_VARARGS | METH_KEYWORDS },
40050 { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS },
40051 { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS },
40052 { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS },
40053 { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS },
40054 { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS },
40055 { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_GetEmptyCellSize, METH_VARARGS | METH_KEYWORDS },
40056 { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS },
40057 { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS },
40058 { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS },
40059 { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS },
40060 { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS },
40061 { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS },
40062 { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS },
423f194a 40063 { (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS },
d14a1e28
RD
40064 { (char *)"GridBagSizer_FindItemWithData", (PyCFunction) _wrap_GridBagSizer_FindItemWithData, METH_VARARGS | METH_KEYWORDS },
40065 { (char *)"GridBagSizer_RecalcSizes", (PyCFunction) _wrap_GridBagSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
40066 { (char *)"GridBagSizer_CalcMin", (PyCFunction) _wrap_GridBagSizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
40067 { (char *)"GridBagSizer_CheckForIntersection", _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS },
40068 { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS },
40069 { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS },
40070 { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS },
40071 { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS },
40072 { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS },
40073 { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS },
40074 { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS },
40075 { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS },
40076 { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS },
40077 { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_IndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS },
40078 { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_IndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS },
40079 { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherWindow, METH_VARARGS | METH_KEYWORDS },
40080 { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMyEdge, METH_VARARGS | METH_KEYWORDS },
40081 { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS },
40082 { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS },
40083 { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMargin, METH_VARARGS | METH_KEYWORDS },
40084 { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS },
40085 { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_GetValue, METH_VARARGS | METH_KEYWORDS },
40086 { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction) _wrap_IndividualLayoutConstraint_GetPercent, METH_VARARGS | METH_KEYWORDS },
40087 { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherEdge, METH_VARARGS | METH_KEYWORDS },
40088 { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_GetDone, METH_VARARGS | METH_KEYWORDS },
40089 { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS },
40090 { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_GetRelationship, METH_VARARGS | METH_KEYWORDS },
40091 { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS },
40092 { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS },
40093 { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS },
40094 { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS },
40095 { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS },
40096 { (char *)"LayoutConstraints_left_get", (PyCFunction) _wrap_LayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS },
40097 { (char *)"LayoutConstraints_top_get", (PyCFunction) _wrap_LayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS },
40098 { (char *)"LayoutConstraints_right_get", (PyCFunction) _wrap_LayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS },
40099 { (char *)"LayoutConstraints_bottom_get", (PyCFunction) _wrap_LayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS },
40100 { (char *)"LayoutConstraints_width_get", (PyCFunction) _wrap_LayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS },
40101 { (char *)"LayoutConstraints_height_get", (PyCFunction) _wrap_LayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS },
40102 { (char *)"LayoutConstraints_centreX_get", (PyCFunction) _wrap_LayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS },
40103 { (char *)"LayoutConstraints_centreY_get", (PyCFunction) _wrap_LayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS },
40104 { (char *)"new_LayoutConstraints", (PyCFunction) _wrap_new_LayoutConstraints, METH_VARARGS | METH_KEYWORDS },
40105 { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS },
40106 { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction) _wrap_LayoutConstraints_AreSatisfied, METH_VARARGS | METH_KEYWORDS },
40107 { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS },
40108 { NULL, NULL }
40109};
40110
40111
40112/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
40113
40114static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) {
40115 return (void *)((wxSizerItem *) ((wxGBSizerItem *) x));
40116}
40117static void *_p_wxBoxSizerTo_p_wxSizer(void *x) {
40118 return (void *)((wxSizer *) ((wxBoxSizer *) x));
40119}
40120static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) {
40121 return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x));
40122}
40123static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) {
40124 return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
40125}
40126static void *_p_wxGridSizerTo_p_wxSizer(void *x) {
40127 return (void *)((wxSizer *) ((wxGridSizer *) x));
40128}
40129static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) {
40130 return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x));
40131}
40132static void *_p_wxPySizerTo_p_wxSizer(void *x) {
40133 return (void *)((wxSizer *) ((wxPySizer *) x));
40134}
40135static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) {
40136 return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x));
40137}
40138static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
40139 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
40140}
40141static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
40142 return (void *)((wxEvent *) ((wxMenuEvent *) x));
40143}
40144static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
40145 return (void *)((wxEvent *) ((wxCloseEvent *) x));
40146}
40147static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
40148 return (void *)((wxEvent *) ((wxMouseEvent *) x));
40149}
40150static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
40151 return (void *)((wxEvent *) ((wxEraseEvent *) x));
40152}
40153static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
40154 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
40155}
40156static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
40157 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
40158}
40159static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
40160 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
40161}
40162static void *_p_wxPyEventTo_p_wxEvent(void *x) {
40163 return (void *)((wxEvent *) ((wxPyEvent *) x));
40164}
40165static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
40166 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
40167}
40168static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
40169 return (void *)((wxEvent *) ((wxIdleEvent *) x));
40170}
40171static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
40172 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
40173}
40174static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
40175 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
40176}
40177static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
40178 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
40179}
40180static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
40181 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
40182}
40183static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
40184 return (void *)((wxEvent *) ((wxActivateEvent *) x));
40185}
40186static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
40187 return (void *)((wxEvent *) ((wxSizeEvent *) x));
40188}
40189static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
40190 return (void *)((wxEvent *) ((wxMoveEvent *) x));
40191}
40192static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
40193 return (void *)((wxEvent *) ((wxPaintEvent *) x));
40194}
40195static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
40196 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
40197}
40198static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
40199 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
40200}
40201static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
40202 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
40203}
40204static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
40205 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
40206}
40207static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
40208 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
40209}
40210static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
40211 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
40212}
40213static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
40214 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
40215}
40216static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
40217 return (void *)((wxEvent *) ((wxFocusEvent *) x));
40218}
40219static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
40220 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
40221}
40222static void *_p_wxShowEventTo_p_wxEvent(void *x) {
40223 return (void *)((wxEvent *) ((wxShowEvent *) x));
40224}
40225static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
40226 return (void *)((wxEvent *) ((wxCommandEvent *) x));
40227}
40228static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
40229 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
40230}
40231static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
40232 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
40233}
40234static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
40235 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
40236}
40237static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
40238 return (void *)((wxEvent *) ((wxKeyEvent *) x));
40239}
40240static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
40241 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
40242}
40243static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) {
40244 return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x));
40245}
40246static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) {
40247 return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x));
40248}
40249static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) {
40250 return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x));
40251}
40252static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
40253 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
40254}
40255static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
40256 return (void *)((wxControl *) ((wxControlWithItems *) x));
40257}
40258static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
40259 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
40260}
40261static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
40262 return (void *)((wxEvtHandler *) ((wxWindow *) x));
40263}
40264static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
40265 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
40266}
40267static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
40268 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
40269}
40270static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
40271 return (void *)((wxEvtHandler *) ((wxValidator *) x));
40272}
40273static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
40274 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
40275}
40276static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
40277 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
40278}
40279static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
40280 return (void *)((wxEvtHandler *) ((wxMenu *) x));
40281}
40282static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) {
40283 return (void *)((wxCURHandler *) ((wxANIHandler *) x));
40284}
40285static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) {
40286 return (void *)((wxICOHandler *) ((wxCURHandler *) x));
40287}
40288static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) {
40289 return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x));
40290}
40291static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) {
40292 return (void *)((wxBMPHandler *) ((wxICOHandler *) x));
40293}
40294static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) {
40295 return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x));
40296}
40297static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) {
40298 return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
40299}
40300static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) {
40301 return (void *)((wxImageHandler *) ((wxBMPHandler *) x));
40302}
40303static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) {
40304 return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x));
40305}
40306static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) {
40307 return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
40308}
40309static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) {
40310 return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
40311}
40312static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) {
40313 return (void *)((wxImageHandler *) ((wxPNGHandler *) x));
40314}
40315static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) {
40316 return (void *)((wxImageHandler *) ((wxGIFHandler *) x));
40317}
40318static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) {
40319 return (void *)((wxImageHandler *) ((wxPCXHandler *) x));
40320}
40321static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) {
40322 return (void *)((wxImageHandler *) ((wxJPEGHandler *) x));
40323}
40324static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) {
40325 return (void *)((wxImageHandler *) ((wxPNMHandler *) x));
40326}
40327static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) {
40328 return (void *)((wxImageHandler *) ((wxXPMHandler *) x));
40329}
40330static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) {
40331 return (void *)((wxImageHandler *) ((wxTIFFHandler *) x));
40332}
40333static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) {
40334 return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x));
40335}
40336static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) {
40337 return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x));
40338}
40339static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) {
40340 return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x));
40341}
40342static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) {
40343 return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x));
40344}
40345static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
40346 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
40347}
40348static void *_p_wxMenuEventTo_p_wxObject(void *x) {
40349 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
40350}
40351static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
40352 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
40353}
40354static void *_p_wxEraseEventTo_p_wxObject(void *x) {
40355 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
40356}
40357static void *_p_wxMouseEventTo_p_wxObject(void *x) {
40358 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
40359}
40360static void *_p_wxCloseEventTo_p_wxObject(void *x) {
40361 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
40362}
40363static void *_p_wxValidatorTo_p_wxObject(void *x) {
40364 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
40365}
40366static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
40367 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
40368}
40369static void *_p_wxMenuBarTo_p_wxObject(void *x) {
40370 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
40371}
40372static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
40373 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
40374}
40375static void *_p_wxSizerTo_p_wxObject(void *x) {
40376 return (void *)((wxObject *) ((wxSizer *) x));
40377}
40378static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
40379 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
40380}
40381static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
40382 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
40383}
40384static void *_p_wxMenuTo_p_wxObject(void *x) {
40385 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
40386}
40387static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
40388 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
40389}
40390static void *_p_wxImageTo_p_wxObject(void *x) {
40391 return (void *)((wxObject *) ((wxImage *) x));
40392}
40393static void *_p_wxScrollEventTo_p_wxObject(void *x) {
40394 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
40395}
40396static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
40397 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
40398}
40399static void *_p_wxPyEventTo_p_wxObject(void *x) {
40400 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
40401}
40402static void *_p_wxWindowTo_p_wxObject(void *x) {
40403 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
40404}
40405static void *_p_wxControlTo_p_wxObject(void *x) {
40406 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
40407}
41f1cec7
RD
40408static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
40409 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
40410}
d14a1e28
RD
40411static void *_p_wxGridSizerTo_p_wxObject(void *x) {
40412 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
40413}
40414static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
40415 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
40416}
40417static void *_p_wxPyAppTo_p_wxObject(void *x) {
40418 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
40419}
40420static void *_p_wxEventTo_p_wxObject(void *x) {
40421 return (void *)((wxObject *) ((wxEvent *) x));
40422}
40423static void *_p_wxActivateEventTo_p_wxObject(void *x) {
40424 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
40425}
40426static void *_p_wxMoveEventTo_p_wxObject(void *x) {
40427 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
40428}
40429static void *_p_wxSizeEventTo_p_wxObject(void *x) {
40430 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
40431}
40432static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
40433 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
40434}
40435static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
40436 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
40437}
40438static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
40439 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
40440}
40441static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
40442 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
40443}
40444static void *_p_wxIdleEventTo_p_wxObject(void *x) {
40445 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
40446}
40447static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
40448 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
40449}
40450static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
40451 return (void *)((wxObject *) ((wxEvtHandler *) x));
40452}
40453static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
40454 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
40455}
40456static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
40457 return (void *)((wxObject *) ((wxImageHandler *) x));
40458}
40459static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
40460 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
40461}
40462static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
40463 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
40464}
40465static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
40466 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
40467}
40468static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
40469 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
40470}
40471static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
40472 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
40473}
40474static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
40475 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
40476}
40477static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
40478 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
40479}
40480static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
40481 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
40482}
40483static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
40484 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
40485}
40486static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
40487 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
40488}
40489static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
40490 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
40491}
40492static void *_p_wxPaintEventTo_p_wxObject(void *x) {
40493 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
40494}
40495static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
40496 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
40497}
40498static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
40499 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
40500}
40501static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
40502 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
40503}
40504static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
40505 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
40506}
40507static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
40508 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
40509}
40510static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
40511 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
40512}
40513static void *_p_wxFileSystemTo_p_wxObject(void *x) {
40514 return (void *)((wxObject *) ((wxFileSystem *) x));
40515}
40516static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
40517 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
40518}
40519static void *_p_wxFocusEventTo_p_wxObject(void *x) {
40520 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
40521}
40522static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
40523 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
40524}
40525static void *_p_wxSizerItemTo_p_wxObject(void *x) {
40526 return (void *)((wxObject *) ((wxSizerItem *) x));
40527}
40528static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
40529 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
40530}
40531static void *_p_wxShowEventTo_p_wxObject(void *x) {
40532 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
40533}
40534static void *_p_wxFSFileTo_p_wxObject(void *x) {
40535 return (void *)((wxObject *) ((wxFSFile *) x));
40536}
40537static void *_p_wxCommandEventTo_p_wxObject(void *x) {
40538 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
40539}
40540static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
40541 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
40542}
40543static void *_p_wxKeyEventTo_p_wxObject(void *x) {
40544 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
40545}
40546static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
40547 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
40548}
40549static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
40550 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
40551}
40552static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
40553 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
40554}
40555static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
40556 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
40557}
40558static void *_p_wxMenuItemTo_p_wxObject(void *x) {
40559 return (void *)((wxObject *) ((wxMenuItem *) x));
40560}
40561static void *_p_wxPySizerTo_p_wxObject(void *x) {
40562 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
40563}
40564static void *_p_wxControlTo_p_wxWindow(void *x) {
40565 return (void *)((wxWindow *) ((wxControl *) x));
40566}
40567static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
40568 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
40569}
40570static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
40571 return (void *)((wxWindow *) ((wxMenuBar *) x));
40572}
40573static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
40574 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
40575}
40576static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
40577 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
40578}
40579static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
40580 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
40581}
40582static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
40583 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
40584}
40585static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
40586 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
40587}
40588static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
40589 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
40590}
40591static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
40592 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
40593}
40594static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
40595 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
40596}
40597static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
40598 return (void *)((wxValidator *) ((wxPyValidator *) x));
40599}
40600static swig_type_info _swigt__p_wxLayoutConstraints[] = {{"_p_wxLayoutConstraints", 0, "wxLayoutConstraints *", 0},{"_p_wxLayoutConstraints"},{0}};
40601static swig_type_info _swigt__p_wxRealPoint[] = {{"_p_wxRealPoint", 0, "wxRealPoint *", 0},{"_p_wxRealPoint"},{0}};
40602static swig_type_info _swigt__p_wxSizerItem[] = {{"_p_wxSizerItem", 0, "wxSizerItem *", 0},{"_p_wxSizerItem"},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxSizerItem},{0}};
40603static swig_type_info _swigt__p_wxGBSizerItem[] = {{"_p_wxGBSizerItem", 0, "wxGBSizerItem *", 0},{"_p_wxGBSizerItem"},{0}};
40604static swig_type_info _swigt__p_wxScrollEvent[] = {{"_p_wxScrollEvent", 0, "wxScrollEvent *", 0},{"_p_wxScrollEvent"},{0}};
40605static swig_type_info _swigt__p_wxIndividualLayoutConstraint[] = {{"_p_wxIndividualLayoutConstraint", 0, "wxIndividualLayoutConstraint *", 0},{"_p_wxIndividualLayoutConstraint"},{0}};
40606static swig_type_info _swigt__p_wxSizer[] = {{"_p_wxSizer", 0, "wxSizer *", 0},{"_p_wxSizer"},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxSizer},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxSizer},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxSizer},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxSizer},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxSizer},{"_p_wxPySizer", _p_wxPySizerTo_p_wxSizer},{0}};
40607static swig_type_info _swigt__p_wxBoxSizer[] = {{"_p_wxBoxSizer", 0, "wxBoxSizer *", 0},{"_p_wxBoxSizer"},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxBoxSizer},{0}};
40608static swig_type_info _swigt__p_wxStaticBoxSizer[] = {{"_p_wxStaticBoxSizer", 0, "wxStaticBoxSizer *", 0},{"_p_wxStaticBoxSizer"},{0}};
40609static swig_type_info _swigt__p_wxGridBagSizer[] = {{"_p_wxGridBagSizer", 0, "wxGridBagSizer *", 0},{"_p_wxGridBagSizer"},{0}};
40610static swig_type_info _swigt__p_wxAcceleratorEntry[] = {{"_p_wxAcceleratorEntry", 0, "wxAcceleratorEntry *", 0},{"_p_wxAcceleratorEntry"},{0}};
40611static swig_type_info _swigt__p_wxUpdateUIEvent[] = {{"_p_wxUpdateUIEvent", 0, "wxUpdateUIEvent *", 0},{"_p_wxUpdateUIEvent"},{0}};
40612static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0},{"_p_wxMenu"},{0}};
40613static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent},{"_p_wxEvent"},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent},{0}};
40614static swig_type_info _swigt__p_wxGridSizer[] = {{"_p_wxGridSizer", 0, "wxGridSizer *", 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxGridSizer},{"_p_wxGridSizer"},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxGridSizer},{0}};
40615static swig_type_info _swigt__p_wxFlexGridSizer[] = {{"_p_wxFlexGridSizer", 0, "wxFlexGridSizer *", 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxFlexGridSizer},{"_p_wxFlexGridSizer"},{0}};
40616static swig_type_info _swigt__p_wxInitDialogEvent[] = {{"_p_wxInitDialogEvent", 0, "wxInitDialogEvent *", 0},{"_p_wxInitDialogEvent"},{0}};
40617static swig_type_info _swigt__p_wxItemContainer[] = {{"_p_wxItemContainer", 0, "wxItemContainer *", 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxItemContainer},{"_p_wxItemContainer"},{0}};
40618static swig_type_info _swigt__p_wxNcPaintEvent[] = {{"_p_wxNcPaintEvent", 0, "wxNcPaintEvent *", 0},{"_p_wxNcPaintEvent"},{0}};
40619static swig_type_info _swigt__p_wxPaintEvent[] = {{"_p_wxPaintEvent", 0, "wxPaintEvent *", 0},{"_p_wxPaintEvent"},{0}};
40620static swig_type_info _swigt__p_wxSysColourChangedEvent[] = {{"_p_wxSysColourChangedEvent", 0, "wxSysColourChangedEvent *", 0},{"_p_wxSysColourChangedEvent"},{0}};
40621static swig_type_info _swigt__p_wxMouseCaptureChangedEvent[] = {{"_p_wxMouseCaptureChangedEvent", 0, "wxMouseCaptureChangedEvent *", 0},{"_p_wxMouseCaptureChangedEvent"},{0}};
40622static swig_type_info _swigt__p_wxDisplayChangedEvent[] = {{"_p_wxDisplayChangedEvent", 0, "wxDisplayChangedEvent *", 0},{"_p_wxDisplayChangedEvent"},{0}};
40623static swig_type_info _swigt__p_wxPaletteChangedEvent[] = {{"_p_wxPaletteChangedEvent", 0, "wxPaletteChangedEvent *", 0},{"_p_wxPaletteChangedEvent"},{0}};
40624static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0},{"_p_wxControl"},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl},{0}};
40625static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}};
40626static swig_type_info _swigt__p_wxMenuBarBase[] = {{"_p_wxMenuBarBase", 0, "wxMenuBarBase *", 0},{"_p_wxMenuBarBase"},{0}};
40627static swig_type_info _swigt__p_wxSetCursorEvent[] = {{"_p_wxSetCursorEvent", 0, "wxSetCursorEvent *", 0},{"_p_wxSetCursorEvent"},{0}};
40628static swig_type_info _swigt__p_wxFSFile[] = {{"_p_wxFSFile", 0, "wxFSFile *", 0},{"_p_wxFSFile"},{0}};
40629static swig_type_info _swigt__p_wxCaret[] = {{"_p_wxCaret", 0, "wxCaret *", 0},{"_p_wxCaret"},{0}};
40630static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}};
40631static swig_type_info _swigt__p_wxPoint2D[] = {{"_p_wxPoint2D", 0, "wxPoint2D *", 0},{"_p_wxPoint2D"},{0}};
40632static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}};
40633static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}};
40634static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}};
40635static swig_type_info _swigt__p_wxPySizer[] = {{"_p_wxPySizer", 0, "wxPySizer *", 0},{"_p_wxPySizer"},{0}};
40636static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0},{"_p_wxNotifyEvent"},{0}};
40637static swig_type_info _swigt__p_wxPyEvent[] = {{"_p_wxPyEvent", 0, "wxPyEvent *", 0},{"_p_wxPyEvent"},{0}};
40638static swig_type_info _swigt__p_wxPropagationDisabler[] = {{"_p_wxPropagationDisabler", 0, "wxPropagationDisabler *", 0},{"_p_wxPropagationDisabler"},{0}};
40639static swig_type_info _swigt__p_wxAppTraits[] = {{"_p_wxAppTraits", 0, "wxAppTraits *", 0},{"_p_wxAppTraits"},{0}};
40640static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0},{"_p_wxArrayString"},{0}};
40641static swig_type_info _swigt__p_wxShowEvent[] = {{"_p_wxShowEvent", 0, "wxShowEvent *", 0},{"_p_wxShowEvent"},{0}};
40642static swig_type_info _swigt__p_wxToolTip[] = {{"_p_wxToolTip", 0, "wxToolTip *", 0},{"_p_wxToolTip"},{0}};
4e760a36 40643static swig_type_info _swigt__p_wxMaximizeEvent[] = {{"_p_wxMaximizeEvent", 0, "wxMaximizeEvent *", 0},{"_p_wxMaximizeEvent"},{0}};
d14a1e28
RD
40644static swig_type_info _swigt__p_wxIconizeEvent[] = {{"_p_wxIconizeEvent", 0, "wxIconizeEvent *", 0},{"_p_wxIconizeEvent"},{0}};
40645static swig_type_info _swigt__p_wxActivateEvent[] = {{"_p_wxActivateEvent", 0, "wxActivateEvent *", 0},{"_p_wxActivateEvent"},{0}};
40646static swig_type_info _swigt__p_wxMoveEvent[] = {{"_p_wxMoveEvent", 0, "wxMoveEvent *", 0},{"_p_wxMoveEvent"},{0}};
40647static swig_type_info _swigt__p_wxSizeEvent[] = {{"_p_wxSizeEvent", 0, "wxSizeEvent *", 0},{"_p_wxSizeEvent"},{0}};
40648static swig_type_info _swigt__p_wxQueryNewPaletteEvent[] = {{"_p_wxQueryNewPaletteEvent", 0, "wxQueryNewPaletteEvent *", 0},{"_p_wxQueryNewPaletteEvent"},{0}};
40649static swig_type_info _swigt__p_wxWindowCreateEvent[] = {{"_p_wxWindowCreateEvent", 0, "wxWindowCreateEvent *", 0},{"_p_wxWindowCreateEvent"},{0}};
40650static swig_type_info _swigt__p_wxIdleEvent[] = {{"_p_wxIdleEvent", 0, "wxIdleEvent *", 0},{"_p_wxIdleEvent"},{0}};
40651static swig_type_info _swigt__p_wxMenuItem[] = {{"_p_wxMenuItem", 0, "wxMenuItem *", 0},{"_p_wxMenuItem"},{0}};
40652static swig_type_info _swigt__p_wxStaticBox[] = {{"_p_wxStaticBox", 0, "wxStaticBox *", 0},{"_p_wxStaticBox"},{0}};
40653static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0},{"_p_long"},{0}};
40654static swig_type_info _swigt__p_wxTIFFHandler[] = {{"_p_wxTIFFHandler", 0, "wxTIFFHandler *", 0},{"_p_wxTIFFHandler"},{0}};
40655static swig_type_info _swigt__p_wxXPMHandler[] = {{"_p_wxXPMHandler", 0, "wxXPMHandler *", 0},{"_p_wxXPMHandler"},{0}};
40656static swig_type_info _swigt__p_wxPNMHandler[] = {{"_p_wxPNMHandler", 0, "wxPNMHandler *", 0},{"_p_wxPNMHandler"},{0}};
40657static swig_type_info _swigt__p_wxJPEGHandler[] = {{"_p_wxJPEGHandler", 0, "wxJPEGHandler *", 0},{"_p_wxJPEGHandler"},{0}};
40658static swig_type_info _swigt__p_wxPCXHandler[] = {{"_p_wxPCXHandler", 0, "wxPCXHandler *", 0},{"_p_wxPCXHandler"},{0}};
40659static swig_type_info _swigt__p_wxGIFHandler[] = {{"_p_wxGIFHandler", 0, "wxGIFHandler *", 0},{"_p_wxGIFHandler"},{0}};
40660static swig_type_info _swigt__p_wxPNGHandler[] = {{"_p_wxPNGHandler", 0, "wxPNGHandler *", 0},{"_p_wxPNGHandler"},{0}};
40661static swig_type_info _swigt__p_wxANIHandler[] = {{"_p_wxANIHandler", 0, "wxANIHandler *", 0},{"_p_wxANIHandler"},{0}};
40662static swig_type_info _swigt__p_wxMemoryFSHandler[] = {{"_p_wxMemoryFSHandler", 0, "wxMemoryFSHandler *", 0},{"_p_wxMemoryFSHandler"},{0}};
40663static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler},{"_p_wxEvtHandler"},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler},{0}};
40664static swig_type_info _swigt__p_wxCURHandler[] = {{"_p_wxCURHandler", 0, "wxCURHandler *", 0},{"_p_wxCURHandler"},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxCURHandler},{0}};
40665static swig_type_info _swigt__p_wxICOHandler[] = {{"_p_wxICOHandler", 0, "wxICOHandler *", 0},{"_p_wxICOHandler"},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxICOHandler},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxICOHandler},{0}};
40666static swig_type_info _swigt__p_wxBMPHandler[] = {{"_p_wxBMPHandler", 0, "wxBMPHandler *", 0},{"_p_wxBMPHandler"},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxBMPHandler},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxBMPHandler},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxBMPHandler},{0}};
40667static swig_type_info _swigt__p_wxImageHandler[] = {{"_p_wxImageHandler", 0, "wxImageHandler *", 0},{"_p_wxImageHandler"},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxImageHandler},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxImageHandler},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxImageHandler},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxImageHandler},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxImageHandler},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxImageHandler},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxImageHandler},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxImageHandler},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxImageHandler},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxImageHandler},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxImageHandler},{0}};
40668static swig_type_info _swigt__p_wxFileSystemHandler[] = {{"_p_wxFileSystemHandler", 0, "wxFileSystemHandler *", 0},{"_p_wxFileSystemHandler"},{"_p_wxPyFileSystemHandler", _p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler},{"_p_wxInternetFSHandler", _p_wxInternetFSHandlerTo_p_wxFileSystemHandler},{"_p_wxZipFSHandler", _p_wxZipFSHandlerTo_p_wxFileSystemHandler},{"_p_wxMemoryFSHandler", _p_wxMemoryFSHandlerTo_p_wxFileSystemHandler},{0}};
40669static swig_type_info _swigt__p_wxPyFileSystemHandler[] = {{"_p_wxPyFileSystemHandler", 0, "wxPyFileSystemHandler *", 0},{"_p_wxPyFileSystemHandler"},{0}};
40670static swig_type_info _swigt__p_wxInternetFSHandler[] = {{"_p_wxInternetFSHandler", 0, "wxInternetFSHandler *", 0},{"_p_wxInternetFSHandler"},{0}};
4e760a36 40671static swig_type_info _swigt__p_wxZipFSHandler[] = {{"_p_wxZipFSHandler", 0, "wxZipFSHandler *", 0},{"_p_wxZipFSHandler"},{0}};
d14a1e28
RD
40672static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}};
40673static swig_type_info _swigt__p_wxGBSpan[] = {{"_p_wxGBSpan", 0, "wxGBSpan *", 0},{"_p_wxGBSpan"},{0}};
40674static swig_type_info _swigt__p_wxPropagateOnce[] = {{"_p_wxPropagateOnce", 0, "wxPropagateOnce *", 0},{"_p_wxPropagateOnce"},{0}};
40675static swig_type_info _swigt__p_wxAcceleratorTable[] = {{"_p_wxAcceleratorTable", 0, "wxAcceleratorTable *", 0},{"_p_wxAcceleratorTable"},{0}};
8edf1c75 40676static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}};
d14a1e28
RD
40677static swig_type_info _swigt__p_wxGBPosition[] = {{"_p_wxGBPosition", 0, "wxGBPosition *", 0},{"_p_wxGBPosition"},{0}};
40678static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0},{"_p_wxImage"},{0}};
40679static swig_type_info _swigt__p_wxFrame[] = {{"_p_wxFrame", 0, "wxFrame *", 0},{"_p_wxFrame"},{0}};
40680static swig_type_info _swigt__p_wxScrollWinEvent[] = {{"_p_wxScrollWinEvent", 0, "wxScrollWinEvent *", 0},{"_p_wxScrollWinEvent"},{0}};
40681static swig_type_info _swigt__p_wxImageHistogram[] = {{"_p_wxImageHistogram", 0, "wxImageHistogram *", 0},{"_p_wxImageHistogram"},{0}};
40682static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "byte *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
40683static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}};
40684static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}};
41f1cec7 40685static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject},{"_p_wxSizer", _p_wxSizerTo_p_wxObject},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject},{"_p_wxMenu", _p_wxMenuTo_p_wxObject},{"_p_wxEvent", _p_wxEventTo_p_wxObject},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject},{"_p_wxControl", _p_wxControlTo_p_wxObject},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject},{"_p_wxImage", _p_wxImageTo_p_wxObject},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject},{"_p_wxObject"},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject},{"_p_wxWindow", _p_wxWindowTo_p_wxObject},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject},{0}};
d14a1e28
RD
40686static swig_type_info _swigt__p_wxPyInputStream[] = {{"_p_wxPyInputStream", 0, "wxPyInputStream *", 0},{"_p_wxPyInputStream"},{0}};
40687static swig_type_info _swigt__p_wxOutputStream[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0},{"_p_wxOutputStream"},{0}};
40688static swig_type_info _swigt__p_wxInputStream[] = {{"_p_wxInputStream", 0, "wxInputStream *", 0},{"_p_wxInputStream"},{0}};
40689static swig_type_info _swigt__p_wxDateTime[] = {{"_p_wxDateTime", 0, "wxDateTime *", 0},{"_p_wxDateTime"},{0}};
40690static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0},{"_p_wxKeyEvent"},{0}};
40691static swig_type_info _swigt__p_wxNavigationKeyEvent[] = {{"_p_wxNavigationKeyEvent", 0, "wxNavigationKeyEvent *", 0},{"_p_wxNavigationKeyEvent"},{0}};
40692static swig_type_info _swigt__p_wxWindowDestroyEvent[] = {{"_p_wxWindowDestroyEvent", 0, "wxWindowDestroyEvent *", 0},{"_p_wxWindowDestroyEvent"},{0}};
40693static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow},{"_p_wxWindow"},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow},{0}};
40694static swig_type_info _swigt__p_wxMenuBar[] = {{"_p_wxMenuBar", 0, "wxMenuBar *", 0},{"_p_wxMenuBar"},{0}};
d14a1e28
RD
40695static swig_type_info _swigt__p_wxFileSystem[] = {{"_p_wxFileSystem", 0, "wxFileSystem *", 0},{"_p_wxFileSystem"},{0}};
40696static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}};
40697static swig_type_info _swigt__p_wxMenuEvent[] = {{"_p_wxMenuEvent", 0, "wxMenuEvent *", 0},{"_p_wxMenuEvent"},{0}};
40698static swig_type_info _swigt__p_wxContextMenuEvent[] = {{"_p_wxContextMenuEvent", 0, "wxContextMenuEvent *", 0},{"_p_wxContextMenuEvent"},{0}};
40699static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
40700static swig_type_info _swigt__p_wxCloseEvent[] = {{"_p_wxCloseEvent", 0, "wxCloseEvent *", 0},{"_p_wxCloseEvent"},{0}};
40701static swig_type_info _swigt__p_wxEraseEvent[] = {{"_p_wxEraseEvent", 0, "wxEraseEvent *", 0},{"_p_wxEraseEvent"},{0}};
40702static swig_type_info _swigt__p_wxMouseEvent[] = {{"_p_wxMouseEvent", 0, "wxMouseEvent *", 0},{"_p_wxMouseEvent"},{0}};
40703static swig_type_info _swigt__p_wxPyApp[] = {{"_p_wxPyApp", 0, "wxPyApp *", 0},{"_p_wxPyApp"},{0}};
40704static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent},{"_p_wxCommandEvent"},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent},{0}};
40705static swig_type_info _swigt__p_wxPyCommandEvent[] = {{"_p_wxPyCommandEvent", 0, "wxPyCommandEvent *", 0},{"_p_wxPyCommandEvent"},{0}};
44127b65 40706static swig_type_info _swigt__p_wxPyDropTarget[] = {{"_p_wxPyDropTarget", 0, "wxPyDropTarget *", 0},{"_p_wxPyDropTarget"},{0}};
d14a1e28
RD
40707static swig_type_info _swigt__p_wxChildFocusEvent[] = {{"_p_wxChildFocusEvent", 0, "wxChildFocusEvent *", 0},{"_p_wxChildFocusEvent"},{0}};
40708static swig_type_info _swigt__p_wxFocusEvent[] = {{"_p_wxFocusEvent", 0, "wxFocusEvent *", 0},{"_p_wxFocusEvent"},{0}};
40709static swig_type_info _swigt__p_wxDropFilesEvent[] = {{"_p_wxDropFilesEvent", 0, "wxDropFilesEvent *", 0},{"_p_wxDropFilesEvent"},{0}};
40710static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0},{"_p_wxControlWithItems"},{0}};
40711static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}};
40712static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0},{"_p_wxValidator"},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator},{0}};
40713static swig_type_info _swigt__p_wxPyValidator[] = {{"_p_wxPyValidator", 0, "wxPyValidator *", 0},{"_p_wxPyValidator"},{0}};
40714
40715static swig_type_info *swig_types_initial[] = {
40716_swigt__p_wxLayoutConstraints,
40717_swigt__p_wxRealPoint,
40718_swigt__p_wxSizerItem,
40719_swigt__p_wxGBSizerItem,
40720_swigt__p_wxScrollEvent,
40721_swigt__p_wxIndividualLayoutConstraint,
40722_swigt__p_wxSizer,
40723_swigt__p_wxBoxSizer,
40724_swigt__p_wxStaticBoxSizer,
40725_swigt__p_wxGridBagSizer,
40726_swigt__p_wxAcceleratorEntry,
40727_swigt__p_wxUpdateUIEvent,
40728_swigt__p_wxMenu,
40729_swigt__p_wxEvent,
40730_swigt__p_wxGridSizer,
40731_swigt__p_wxFlexGridSizer,
40732_swigt__p_wxInitDialogEvent,
40733_swigt__p_wxItemContainer,
40734_swigt__p_wxNcPaintEvent,
40735_swigt__p_wxPaintEvent,
40736_swigt__p_wxSysColourChangedEvent,
40737_swigt__p_wxMouseCaptureChangedEvent,
40738_swigt__p_wxDisplayChangedEvent,
40739_swigt__p_wxPaletteChangedEvent,
40740_swigt__p_wxControl,
40741_swigt__p_wxFont,
40742_swigt__p_wxMenuBarBase,
40743_swigt__p_wxSetCursorEvent,
40744_swigt__p_wxFSFile,
40745_swigt__p_wxCaret,
40746_swigt__p_wxRegion,
40747_swigt__p_wxPoint2D,
40748_swigt__p_int,
40749_swigt__p_wxSize,
40750_swigt__p_wxDC,
40751_swigt__p_wxPySizer,
40752_swigt__p_wxNotifyEvent,
40753_swigt__p_wxPyEvent,
40754_swigt__p_wxPropagationDisabler,
40755_swigt__p_wxAppTraits,
40756_swigt__p_wxArrayString,
40757_swigt__p_wxShowEvent,
40758_swigt__p_wxToolTip,
4e760a36 40759_swigt__p_wxMaximizeEvent,
d14a1e28
RD
40760_swigt__p_wxIconizeEvent,
40761_swigt__p_wxActivateEvent,
40762_swigt__p_wxMoveEvent,
40763_swigt__p_wxSizeEvent,
40764_swigt__p_wxQueryNewPaletteEvent,
40765_swigt__p_wxWindowCreateEvent,
40766_swigt__p_wxIdleEvent,
40767_swigt__p_wxMenuItem,
40768_swigt__p_wxStaticBox,
40769_swigt__p_long,
40770_swigt__p_wxTIFFHandler,
40771_swigt__p_wxXPMHandler,
40772_swigt__p_wxPNMHandler,
40773_swigt__p_wxJPEGHandler,
40774_swigt__p_wxPCXHandler,
40775_swigt__p_wxGIFHandler,
40776_swigt__p_wxPNGHandler,
40777_swigt__p_wxANIHandler,
40778_swigt__p_wxMemoryFSHandler,
40779_swigt__p_wxEvtHandler,
40780_swigt__p_wxCURHandler,
40781_swigt__p_wxICOHandler,
40782_swigt__p_wxBMPHandler,
40783_swigt__p_wxImageHandler,
40784_swigt__p_wxFileSystemHandler,
40785_swigt__p_wxPyFileSystemHandler,
40786_swigt__p_wxInternetFSHandler,
4e760a36 40787_swigt__p_wxZipFSHandler,
d14a1e28
RD
40788_swigt__p_wxRect,
40789_swigt__p_wxGBSpan,
40790_swigt__p_wxPropagateOnce,
40791_swigt__p_wxAcceleratorTable,
8edf1c75 40792_swigt__p_char,
d14a1e28
RD
40793_swigt__p_wxGBPosition,
40794_swigt__p_wxImage,
40795_swigt__p_wxFrame,
40796_swigt__p_wxScrollWinEvent,
40797_swigt__p_wxImageHistogram,
40798_swigt__p_byte,
40799_swigt__p_wxPoint,
40800_swigt__p_wxCursor,
40801_swigt__p_wxObject,
40802_swigt__p_wxPyInputStream,
40803_swigt__p_wxOutputStream,
40804_swigt__p_wxInputStream,
40805_swigt__p_wxDateTime,
40806_swigt__p_wxKeyEvent,
40807_swigt__p_wxNavigationKeyEvent,
40808_swigt__p_wxWindowDestroyEvent,
40809_swigt__p_wxWindow,
40810_swigt__p_wxMenuBar,
d14a1e28
RD
40811_swigt__p_wxFileSystem,
40812_swigt__p_wxBitmap,
40813_swigt__p_wxMenuEvent,
40814_swigt__p_wxContextMenuEvent,
40815_swigt__p_unsigned_char,
40816_swigt__p_wxCloseEvent,
40817_swigt__p_wxEraseEvent,
40818_swigt__p_wxMouseEvent,
40819_swigt__p_wxPyApp,
40820_swigt__p_wxCommandEvent,
40821_swigt__p_wxPyCommandEvent,
44127b65 40822_swigt__p_wxPyDropTarget,
d14a1e28
RD
40823_swigt__p_wxChildFocusEvent,
40824_swigt__p_wxFocusEvent,
40825_swigt__p_wxDropFilesEvent,
40826_swigt__p_wxControlWithItems,
40827_swigt__p_wxColour,
40828_swigt__p_wxValidator,
40829_swigt__p_wxPyValidator,
408300
40831};
40832
40833
40834/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
40835
40836static swig_const_info swig_const_table[] = {
d14a1e28
RD
40837{0}};
40838
40839#ifdef __cplusplus
40840}
40841#endif
40842
40843#ifdef __cplusplus
40844extern "C"
40845#endif
40846SWIGEXPORT(void) SWIG_init(void) {
40847 static PyObject *SWIG_globals = 0;
40848 static int typeinit = 0;
40849 PyObject *m, *d;
40850 int i;
40851 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
40852 m = Py_InitModule((char *) SWIG_name, SwigMethods);
40853 d = PyModule_GetDict(m);
40854
40855 if (!typeinit) {
40856 for (i = 0; swig_types_initial[i]; i++) {
40857 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
40858 }
40859 typeinit = 1;
40860 }
40861 SWIG_InstallConstants(d,swig_const_table);
40862
40863
40864#ifndef wxPyUSE_EXPORT
40865 // Make our API structure a CObject so other modules can import it
40866 // from this module.
40867 PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL);
40868 PyDict_SetItemString(d,"_wxPyCoreAPI", cobj);
40869 Py_XDECREF(cobj);
40870#endif
40871
8edf1c75
RD
40872 PyDict_SetItemString(d,"NOT_FOUND", SWIG_PyObj_FromInt((int)wxNOT_FOUND));
40873 PyDict_SetItemString(d,"VSCROLL", SWIG_PyObj_FromInt((int)wxVSCROLL));
40874 PyDict_SetItemString(d,"HSCROLL", SWIG_PyObj_FromInt((int)wxHSCROLL));
40875 PyDict_SetItemString(d,"CAPTION", SWIG_PyObj_FromInt((int)wxCAPTION));
40876 PyDict_SetItemString(d,"DOUBLE_BORDER", SWIG_PyObj_FromInt((int)wxDOUBLE_BORDER));
40877 PyDict_SetItemString(d,"SUNKEN_BORDER", SWIG_PyObj_FromInt((int)wxSUNKEN_BORDER));
40878 PyDict_SetItemString(d,"RAISED_BORDER", SWIG_PyObj_FromInt((int)wxRAISED_BORDER));
40879 PyDict_SetItemString(d,"BORDER", SWIG_PyObj_FromInt((int)wxBORDER));
40880 PyDict_SetItemString(d,"SIMPLE_BORDER", SWIG_PyObj_FromInt((int)wxSIMPLE_BORDER));
40881 PyDict_SetItemString(d,"STATIC_BORDER", SWIG_PyObj_FromInt((int)wxSTATIC_BORDER));
40882 PyDict_SetItemString(d,"TRANSPARENT_WINDOW", SWIG_PyObj_FromInt((int)wxTRANSPARENT_WINDOW));
40883 PyDict_SetItemString(d,"NO_BORDER", SWIG_PyObj_FromInt((int)wxNO_BORDER));
40884 PyDict_SetItemString(d,"USER_COLOURS", SWIG_PyObj_FromInt((int)wxUSER_COLOURS));
40885 PyDict_SetItemString(d,"NO_3D", SWIG_PyObj_FromInt((int)wxNO_3D));
40886 PyDict_SetItemString(d,"TAB_TRAVERSAL", SWIG_PyObj_FromInt((int)wxTAB_TRAVERSAL));
40887 PyDict_SetItemString(d,"WANTS_CHARS", SWIG_PyObj_FromInt((int)wxWANTS_CHARS));
40888 PyDict_SetItemString(d,"POPUP_WINDOW", SWIG_PyObj_FromInt((int)wxPOPUP_WINDOW));
40889 PyDict_SetItemString(d,"CENTER_FRAME", SWIG_PyObj_FromInt((int)wxCENTER_FRAME));
40890 PyDict_SetItemString(d,"CENTRE_ON_SCREEN", SWIG_PyObj_FromInt((int)wxCENTRE_ON_SCREEN));
40891 PyDict_SetItemString(d,"CENTER_ON_SCREEN", SWIG_PyObj_FromInt((int)wxCENTER_ON_SCREEN));
40892 PyDict_SetItemString(d,"STAY_ON_TOP", SWIG_PyObj_FromInt((int)wxSTAY_ON_TOP));
40893 PyDict_SetItemString(d,"ICONIZE", SWIG_PyObj_FromInt((int)wxICONIZE));
40894 PyDict_SetItemString(d,"MINIMIZE", SWIG_PyObj_FromInt((int)wxMINIMIZE));
40895 PyDict_SetItemString(d,"MAXIMIZE", SWIG_PyObj_FromInt((int)wxMAXIMIZE));
40896 PyDict_SetItemString(d,"CLOSE_BOX", SWIG_PyObj_FromInt((int)wxCLOSE_BOX));
40897 PyDict_SetItemString(d,"THICK_FRAME", SWIG_PyObj_FromInt((int)wxTHICK_FRAME));
40898 PyDict_SetItemString(d,"SYSTEM_MENU", SWIG_PyObj_FromInt((int)wxSYSTEM_MENU));
40899 PyDict_SetItemString(d,"MINIMIZE_BOX", SWIG_PyObj_FromInt((int)wxMINIMIZE_BOX));
40900 PyDict_SetItemString(d,"MAXIMIZE_BOX", SWIG_PyObj_FromInt((int)wxMAXIMIZE_BOX));
40901 PyDict_SetItemString(d,"TINY_CAPTION_HORIZ", SWIG_PyObj_FromInt((int)wxTINY_CAPTION_HORIZ));
40902 PyDict_SetItemString(d,"TINY_CAPTION_VERT", SWIG_PyObj_FromInt((int)wxTINY_CAPTION_VERT));
40903 PyDict_SetItemString(d,"RESIZE_BOX", SWIG_PyObj_FromInt((int)wxRESIZE_BOX));
40904 PyDict_SetItemString(d,"RESIZE_BORDER", SWIG_PyObj_FromInt((int)wxRESIZE_BORDER));
40905 PyDict_SetItemString(d,"DIALOG_MODAL", SWIG_PyObj_FromInt((int)wxDIALOG_MODAL));
40906 PyDict_SetItemString(d,"DIALOG_MODELESS", SWIG_PyObj_FromInt((int)wxDIALOG_MODELESS));
40907 PyDict_SetItemString(d,"DIALOG_NO_PARENT", SWIG_PyObj_FromInt((int)wxDIALOG_NO_PARENT));
40908 PyDict_SetItemString(d,"DEFAULT_FRAME_STYLE", SWIG_PyObj_FromInt((int)wxDEFAULT_FRAME_STYLE));
40909 PyDict_SetItemString(d,"DEFAULT_DIALOG_STYLE", SWIG_PyObj_FromInt((int)wxDEFAULT_DIALOG_STYLE));
40910 PyDict_SetItemString(d,"FRAME_TOOL_WINDOW", SWIG_PyObj_FromInt((int)wxFRAME_TOOL_WINDOW));
40911 PyDict_SetItemString(d,"FRAME_FLOAT_ON_PARENT", SWIG_PyObj_FromInt((int)wxFRAME_FLOAT_ON_PARENT));
40912 PyDict_SetItemString(d,"FRAME_NO_WINDOW_MENU", SWIG_PyObj_FromInt((int)wxFRAME_NO_WINDOW_MENU));
40913 PyDict_SetItemString(d,"FRAME_NO_TASKBAR", SWIG_PyObj_FromInt((int)wxFRAME_NO_TASKBAR));
40914 PyDict_SetItemString(d,"FRAME_SHAPED", SWIG_PyObj_FromInt((int)wxFRAME_SHAPED));
40915 PyDict_SetItemString(d,"ED_CLIENT_MARGIN", SWIG_PyObj_FromInt((int)wxED_CLIENT_MARGIN));
40916 PyDict_SetItemString(d,"ED_BUTTONS_BOTTOM", SWIG_PyObj_FromInt((int)wxED_BUTTONS_BOTTOM));
40917 PyDict_SetItemString(d,"ED_BUTTONS_RIGHT", SWIG_PyObj_FromInt((int)wxED_BUTTONS_RIGHT));
40918 PyDict_SetItemString(d,"ED_STATIC_LINE", SWIG_PyObj_FromInt((int)wxED_STATIC_LINE));
40919 PyDict_SetItemString(d,"EXT_DIALOG_STYLE", SWIG_PyObj_FromInt((int)wxEXT_DIALOG_STYLE));
40920 PyDict_SetItemString(d,"CLIP_CHILDREN", SWIG_PyObj_FromInt((int)wxCLIP_CHILDREN));
40921 PyDict_SetItemString(d,"CLIP_SIBLINGS", SWIG_PyObj_FromInt((int)wxCLIP_SIBLINGS));
40922 PyDict_SetItemString(d,"RETAINED", SWIG_PyObj_FromInt((int)wxRETAINED));
40923 PyDict_SetItemString(d,"BACKINGSTORE", SWIG_PyObj_FromInt((int)wxBACKINGSTORE));
40924 PyDict_SetItemString(d,"COLOURED", SWIG_PyObj_FromInt((int)wxCOLOURED));
40925 PyDict_SetItemString(d,"FIXED_LENGTH", SWIG_PyObj_FromInt((int)wxFIXED_LENGTH));
40926 PyDict_SetItemString(d,"LB_NEEDED_SB", SWIG_PyObj_FromInt((int)wxLB_NEEDED_SB));
40927 PyDict_SetItemString(d,"LB_ALWAYS_SB", SWIG_PyObj_FromInt((int)wxLB_ALWAYS_SB));
40928 PyDict_SetItemString(d,"LB_SORT", SWIG_PyObj_FromInt((int)wxLB_SORT));
40929 PyDict_SetItemString(d,"LB_SINGLE", SWIG_PyObj_FromInt((int)wxLB_SINGLE));
40930 PyDict_SetItemString(d,"LB_MULTIPLE", SWIG_PyObj_FromInt((int)wxLB_MULTIPLE));
40931 PyDict_SetItemString(d,"LB_EXTENDED", SWIG_PyObj_FromInt((int)wxLB_EXTENDED));
40932 PyDict_SetItemString(d,"LB_OWNERDRAW", SWIG_PyObj_FromInt((int)wxLB_OWNERDRAW));
40933 PyDict_SetItemString(d,"LB_HSCROLL", SWIG_PyObj_FromInt((int)wxLB_HSCROLL));
40934 PyDict_SetItemString(d,"PROCESS_ENTER", SWIG_PyObj_FromInt((int)wxPROCESS_ENTER));
40935 PyDict_SetItemString(d,"PASSWORD", SWIG_PyObj_FromInt((int)wxPASSWORD));
40936 PyDict_SetItemString(d,"CB_SIMPLE", SWIG_PyObj_FromInt((int)wxCB_SIMPLE));
40937 PyDict_SetItemString(d,"CB_DROPDOWN", SWIG_PyObj_FromInt((int)wxCB_DROPDOWN));
40938 PyDict_SetItemString(d,"CB_SORT", SWIG_PyObj_FromInt((int)wxCB_SORT));
40939 PyDict_SetItemString(d,"CB_READONLY", SWIG_PyObj_FromInt((int)wxCB_READONLY));
40940 PyDict_SetItemString(d,"RA_HORIZONTAL", SWIG_PyObj_FromInt((int)wxRA_HORIZONTAL));
40941 PyDict_SetItemString(d,"RA_VERTICAL", SWIG_PyObj_FromInt((int)wxRA_VERTICAL));
40942 PyDict_SetItemString(d,"RA_SPECIFY_ROWS", SWIG_PyObj_FromInt((int)wxRA_SPECIFY_ROWS));
40943 PyDict_SetItemString(d,"RA_SPECIFY_COLS", SWIG_PyObj_FromInt((int)wxRA_SPECIFY_COLS));
40944 PyDict_SetItemString(d,"RB_GROUP", SWIG_PyObj_FromInt((int)wxRB_GROUP));
40945 PyDict_SetItemString(d,"RB_SINGLE", SWIG_PyObj_FromInt((int)wxRB_SINGLE));
40946 PyDict_SetItemString(d,"SL_HORIZONTAL", SWIG_PyObj_FromInt((int)wxSL_HORIZONTAL));
40947 PyDict_SetItemString(d,"SL_VERTICAL", SWIG_PyObj_FromInt((int)wxSL_VERTICAL));
40948 PyDict_SetItemString(d,"SL_AUTOTICKS", SWIG_PyObj_FromInt((int)wxSL_AUTOTICKS));
40949 PyDict_SetItemString(d,"SL_LABELS", SWIG_PyObj_FromInt((int)wxSL_LABELS));
40950 PyDict_SetItemString(d,"SL_LEFT", SWIG_PyObj_FromInt((int)wxSL_LEFT));
40951 PyDict_SetItemString(d,"SL_TOP", SWIG_PyObj_FromInt((int)wxSL_TOP));
40952 PyDict_SetItemString(d,"SL_RIGHT", SWIG_PyObj_FromInt((int)wxSL_RIGHT));
40953 PyDict_SetItemString(d,"SL_BOTTOM", SWIG_PyObj_FromInt((int)wxSL_BOTTOM));
40954 PyDict_SetItemString(d,"SL_BOTH", SWIG_PyObj_FromInt((int)wxSL_BOTH));
40955 PyDict_SetItemString(d,"SL_SELRANGE", SWIG_PyObj_FromInt((int)wxSL_SELRANGE));
40956 PyDict_SetItemString(d,"SB_HORIZONTAL", SWIG_PyObj_FromInt((int)wxSB_HORIZONTAL));
40957 PyDict_SetItemString(d,"SB_VERTICAL", SWIG_PyObj_FromInt((int)wxSB_VERTICAL));
40958 PyDict_SetItemString(d,"ST_SIZEGRIP", SWIG_PyObj_FromInt((int)wxST_SIZEGRIP));
40959 PyDict_SetItemString(d,"ST_NO_AUTORESIZE", SWIG_PyObj_FromInt((int)wxST_NO_AUTORESIZE));
40960 PyDict_SetItemString(d,"FLOOD_SURFACE", SWIG_PyObj_FromInt((int)wxFLOOD_SURFACE));
40961 PyDict_SetItemString(d,"FLOOD_BORDER", SWIG_PyObj_FromInt((int)wxFLOOD_BORDER));
40962 PyDict_SetItemString(d,"ODDEVEN_RULE", SWIG_PyObj_FromInt((int)wxODDEVEN_RULE));
40963 PyDict_SetItemString(d,"WINDING_RULE", SWIG_PyObj_FromInt((int)wxWINDING_RULE));
40964 PyDict_SetItemString(d,"TOOL_TOP", SWIG_PyObj_FromInt((int)wxTOOL_TOP));
40965 PyDict_SetItemString(d,"TOOL_BOTTOM", SWIG_PyObj_FromInt((int)wxTOOL_BOTTOM));
40966 PyDict_SetItemString(d,"TOOL_LEFT", SWIG_PyObj_FromInt((int)wxTOOL_LEFT));
40967 PyDict_SetItemString(d,"TOOL_RIGHT", SWIG_PyObj_FromInt((int)wxTOOL_RIGHT));
40968 PyDict_SetItemString(d,"OK", SWIG_PyObj_FromInt((int)wxOK));
40969 PyDict_SetItemString(d,"YES_NO", SWIG_PyObj_FromInt((int)wxYES_NO));
40970 PyDict_SetItemString(d,"CANCEL", SWIG_PyObj_FromInt((int)wxCANCEL));
40971 PyDict_SetItemString(d,"YES", SWIG_PyObj_FromInt((int)wxYES));
40972 PyDict_SetItemString(d,"NO", SWIG_PyObj_FromInt((int)wxNO));
40973 PyDict_SetItemString(d,"NO_DEFAULT", SWIG_PyObj_FromInt((int)wxNO_DEFAULT));
40974 PyDict_SetItemString(d,"YES_DEFAULT", SWIG_PyObj_FromInt((int)wxYES_DEFAULT));
40975 PyDict_SetItemString(d,"ICON_EXCLAMATION", SWIG_PyObj_FromInt((int)wxICON_EXCLAMATION));
40976 PyDict_SetItemString(d,"ICON_HAND", SWIG_PyObj_FromInt((int)wxICON_HAND));
40977 PyDict_SetItemString(d,"ICON_QUESTION", SWIG_PyObj_FromInt((int)wxICON_QUESTION));
40978 PyDict_SetItemString(d,"ICON_INFORMATION", SWIG_PyObj_FromInt((int)wxICON_INFORMATION));
40979 PyDict_SetItemString(d,"ICON_STOP", SWIG_PyObj_FromInt((int)wxICON_STOP));
40980 PyDict_SetItemString(d,"ICON_ASTERISK", SWIG_PyObj_FromInt((int)wxICON_ASTERISK));
40981 PyDict_SetItemString(d,"ICON_MASK", SWIG_PyObj_FromInt((int)wxICON_MASK));
40982 PyDict_SetItemString(d,"ICON_WARNING", SWIG_PyObj_FromInt((int)wxICON_WARNING));
40983 PyDict_SetItemString(d,"ICON_ERROR", SWIG_PyObj_FromInt((int)wxICON_ERROR));
40984 PyDict_SetItemString(d,"FORWARD", SWIG_PyObj_FromInt((int)wxFORWARD));
40985 PyDict_SetItemString(d,"BACKWARD", SWIG_PyObj_FromInt((int)wxBACKWARD));
40986 PyDict_SetItemString(d,"RESET", SWIG_PyObj_FromInt((int)wxRESET));
40987 PyDict_SetItemString(d,"HELP", SWIG_PyObj_FromInt((int)wxHELP));
40988 PyDict_SetItemString(d,"MORE", SWIG_PyObj_FromInt((int)wxMORE));
40989 PyDict_SetItemString(d,"SETUP", SWIG_PyObj_FromInt((int)wxSETUP));
40990 PyDict_SetItemString(d,"SIZE_AUTO_WIDTH", SWIG_PyObj_FromInt((int)wxSIZE_AUTO_WIDTH));
40991 PyDict_SetItemString(d,"SIZE_AUTO_HEIGHT", SWIG_PyObj_FromInt((int)wxSIZE_AUTO_HEIGHT));
40992 PyDict_SetItemString(d,"SIZE_AUTO", SWIG_PyObj_FromInt((int)wxSIZE_AUTO));
40993 PyDict_SetItemString(d,"SIZE_USE_EXISTING", SWIG_PyObj_FromInt((int)wxSIZE_USE_EXISTING));
40994 PyDict_SetItemString(d,"SIZE_ALLOW_MINUS_ONE", SWIG_PyObj_FromInt((int)wxSIZE_ALLOW_MINUS_ONE));
40995 PyDict_SetItemString(d,"PORTRAIT", SWIG_PyObj_FromInt((int)wxPORTRAIT));
40996 PyDict_SetItemString(d,"LANDSCAPE", SWIG_PyObj_FromInt((int)wxLANDSCAPE));
40997 PyDict_SetItemString(d,"PRINT_QUALITY_HIGH", SWIG_PyObj_FromInt((int)wxPRINT_QUALITY_HIGH));
40998 PyDict_SetItemString(d,"PRINT_QUALITY_MEDIUM", SWIG_PyObj_FromInt((int)wxPRINT_QUALITY_MEDIUM));
40999 PyDict_SetItemString(d,"PRINT_QUALITY_LOW", SWIG_PyObj_FromInt((int)wxPRINT_QUALITY_LOW));
41000 PyDict_SetItemString(d,"PRINT_QUALITY_DRAFT", SWIG_PyObj_FromInt((int)wxPRINT_QUALITY_DRAFT));
41001 PyDict_SetItemString(d,"ID_ANY", SWIG_PyObj_FromInt((int)wxID_ANY));
41002 PyDict_SetItemString(d,"ID_SEPARATOR", SWIG_PyObj_FromInt((int)wxID_SEPARATOR));
41003 PyDict_SetItemString(d,"ID_LOWEST", SWIG_PyObj_FromInt((int)wxID_LOWEST));
41004 PyDict_SetItemString(d,"ID_OPEN", SWIG_PyObj_FromInt((int)wxID_OPEN));
41005 PyDict_SetItemString(d,"ID_CLOSE", SWIG_PyObj_FromInt((int)wxID_CLOSE));
41006 PyDict_SetItemString(d,"ID_NEW", SWIG_PyObj_FromInt((int)wxID_NEW));
41007 PyDict_SetItemString(d,"ID_SAVE", SWIG_PyObj_FromInt((int)wxID_SAVE));
41008 PyDict_SetItemString(d,"ID_SAVEAS", SWIG_PyObj_FromInt((int)wxID_SAVEAS));
41009 PyDict_SetItemString(d,"ID_REVERT", SWIG_PyObj_FromInt((int)wxID_REVERT));
41010 PyDict_SetItemString(d,"ID_EXIT", SWIG_PyObj_FromInt((int)wxID_EXIT));
41011 PyDict_SetItemString(d,"ID_UNDO", SWIG_PyObj_FromInt((int)wxID_UNDO));
41012 PyDict_SetItemString(d,"ID_REDO", SWIG_PyObj_FromInt((int)wxID_REDO));
41013 PyDict_SetItemString(d,"ID_HELP", SWIG_PyObj_FromInt((int)wxID_HELP));
41014 PyDict_SetItemString(d,"ID_PRINT", SWIG_PyObj_FromInt((int)wxID_PRINT));
41015 PyDict_SetItemString(d,"ID_PRINT_SETUP", SWIG_PyObj_FromInt((int)wxID_PRINT_SETUP));
41016 PyDict_SetItemString(d,"ID_PREVIEW", SWIG_PyObj_FromInt((int)wxID_PREVIEW));
41017 PyDict_SetItemString(d,"ID_ABOUT", SWIG_PyObj_FromInt((int)wxID_ABOUT));
41018 PyDict_SetItemString(d,"ID_HELP_CONTENTS", SWIG_PyObj_FromInt((int)wxID_HELP_CONTENTS));
41019 PyDict_SetItemString(d,"ID_HELP_COMMANDS", SWIG_PyObj_FromInt((int)wxID_HELP_COMMANDS));
41020 PyDict_SetItemString(d,"ID_HELP_PROCEDURES", SWIG_PyObj_FromInt((int)wxID_HELP_PROCEDURES));
41021 PyDict_SetItemString(d,"ID_HELP_CONTEXT", SWIG_PyObj_FromInt((int)wxID_HELP_CONTEXT));
41022 PyDict_SetItemString(d,"ID_CLOSE_ALL", SWIG_PyObj_FromInt((int)wxID_CLOSE_ALL));
41023 PyDict_SetItemString(d,"ID_PREFERENCES", SWIG_PyObj_FromInt((int)wxID_PREFERENCES));
41024 PyDict_SetItemString(d,"ID_CUT", SWIG_PyObj_FromInt((int)wxID_CUT));
41025 PyDict_SetItemString(d,"ID_COPY", SWIG_PyObj_FromInt((int)wxID_COPY));
41026 PyDict_SetItemString(d,"ID_PASTE", SWIG_PyObj_FromInt((int)wxID_PASTE));
41027 PyDict_SetItemString(d,"ID_CLEAR", SWIG_PyObj_FromInt((int)wxID_CLEAR));
41028 PyDict_SetItemString(d,"ID_FIND", SWIG_PyObj_FromInt((int)wxID_FIND));
41029 PyDict_SetItemString(d,"ID_DUPLICATE", SWIG_PyObj_FromInt((int)wxID_DUPLICATE));
41030 PyDict_SetItemString(d,"ID_SELECTALL", SWIG_PyObj_FromInt((int)wxID_SELECTALL));
41031 PyDict_SetItemString(d,"ID_DELETE", SWIG_PyObj_FromInt((int)wxID_DELETE));
41032 PyDict_SetItemString(d,"ID_REPLACE", SWIG_PyObj_FromInt((int)wxID_REPLACE));
41033 PyDict_SetItemString(d,"ID_REPLACE_ALL", SWIG_PyObj_FromInt((int)wxID_REPLACE_ALL));
41034 PyDict_SetItemString(d,"ID_PROPERTIES", SWIG_PyObj_FromInt((int)wxID_PROPERTIES));
41035 PyDict_SetItemString(d,"ID_VIEW_DETAILS", SWIG_PyObj_FromInt((int)wxID_VIEW_DETAILS));
41036 PyDict_SetItemString(d,"ID_VIEW_LARGEICONS", SWIG_PyObj_FromInt((int)wxID_VIEW_LARGEICONS));
41037 PyDict_SetItemString(d,"ID_VIEW_SMALLICONS", SWIG_PyObj_FromInt((int)wxID_VIEW_SMALLICONS));
41038 PyDict_SetItemString(d,"ID_VIEW_LIST", SWIG_PyObj_FromInt((int)wxID_VIEW_LIST));
41039 PyDict_SetItemString(d,"ID_VIEW_SORTDATE", SWIG_PyObj_FromInt((int)wxID_VIEW_SORTDATE));
41040 PyDict_SetItemString(d,"ID_VIEW_SORTNAME", SWIG_PyObj_FromInt((int)wxID_VIEW_SORTNAME));
41041 PyDict_SetItemString(d,"ID_VIEW_SORTSIZE", SWIG_PyObj_FromInt((int)wxID_VIEW_SORTSIZE));
41042 PyDict_SetItemString(d,"ID_VIEW_SORTTYPE", SWIG_PyObj_FromInt((int)wxID_VIEW_SORTTYPE));
41043 PyDict_SetItemString(d,"ID_FILE1", SWIG_PyObj_FromInt((int)wxID_FILE1));
41044 PyDict_SetItemString(d,"ID_FILE2", SWIG_PyObj_FromInt((int)wxID_FILE2));
41045 PyDict_SetItemString(d,"ID_FILE3", SWIG_PyObj_FromInt((int)wxID_FILE3));
41046 PyDict_SetItemString(d,"ID_FILE4", SWIG_PyObj_FromInt((int)wxID_FILE4));
41047 PyDict_SetItemString(d,"ID_FILE5", SWIG_PyObj_FromInt((int)wxID_FILE5));
41048 PyDict_SetItemString(d,"ID_FILE6", SWIG_PyObj_FromInt((int)wxID_FILE6));
41049 PyDict_SetItemString(d,"ID_FILE7", SWIG_PyObj_FromInt((int)wxID_FILE7));
41050 PyDict_SetItemString(d,"ID_FILE8", SWIG_PyObj_FromInt((int)wxID_FILE8));
41051 PyDict_SetItemString(d,"ID_FILE9", SWIG_PyObj_FromInt((int)wxID_FILE9));
41052 PyDict_SetItemString(d,"ID_OK", SWIG_PyObj_FromInt((int)wxID_OK));
41053 PyDict_SetItemString(d,"ID_CANCEL", SWIG_PyObj_FromInt((int)wxID_CANCEL));
41054 PyDict_SetItemString(d,"ID_APPLY", SWIG_PyObj_FromInt((int)wxID_APPLY));
41055 PyDict_SetItemString(d,"ID_YES", SWIG_PyObj_FromInt((int)wxID_YES));
41056 PyDict_SetItemString(d,"ID_NO", SWIG_PyObj_FromInt((int)wxID_NO));
41057 PyDict_SetItemString(d,"ID_STATIC", SWIG_PyObj_FromInt((int)wxID_STATIC));
41058 PyDict_SetItemString(d,"ID_FORWARD", SWIG_PyObj_FromInt((int)wxID_FORWARD));
41059 PyDict_SetItemString(d,"ID_BACKWARD", SWIG_PyObj_FromInt((int)wxID_BACKWARD));
41060 PyDict_SetItemString(d,"ID_DEFAULT", SWIG_PyObj_FromInt((int)wxID_DEFAULT));
41061 PyDict_SetItemString(d,"ID_MORE", SWIG_PyObj_FromInt((int)wxID_MORE));
41062 PyDict_SetItemString(d,"ID_SETUP", SWIG_PyObj_FromInt((int)wxID_SETUP));
41063 PyDict_SetItemString(d,"ID_RESET", SWIG_PyObj_FromInt((int)wxID_RESET));
41064 PyDict_SetItemString(d,"ID_CONTEXT_HELP", SWIG_PyObj_FromInt((int)wxID_CONTEXT_HELP));
41065 PyDict_SetItemString(d,"ID_YESTOALL", SWIG_PyObj_FromInt((int)wxID_YESTOALL));
41066 PyDict_SetItemString(d,"ID_NOTOALL", SWIG_PyObj_FromInt((int)wxID_NOTOALL));
41067 PyDict_SetItemString(d,"ID_ABORT", SWIG_PyObj_FromInt((int)wxID_ABORT));
41068 PyDict_SetItemString(d,"ID_RETRY", SWIG_PyObj_FromInt((int)wxID_RETRY));
41069 PyDict_SetItemString(d,"ID_IGNORE", SWIG_PyObj_FromInt((int)wxID_IGNORE));
41070 PyDict_SetItemString(d,"ID_HIGHEST", SWIG_PyObj_FromInt((int)wxID_HIGHEST));
41071 PyDict_SetItemString(d,"OPEN", SWIG_PyObj_FromInt((int)wxOPEN));
41072 PyDict_SetItemString(d,"SAVE", SWIG_PyObj_FromInt((int)wxSAVE));
41073 PyDict_SetItemString(d,"HIDE_READONLY", SWIG_PyObj_FromInt((int)wxHIDE_READONLY));
41074 PyDict_SetItemString(d,"OVERWRITE_PROMPT", SWIG_PyObj_FromInt((int)wxOVERWRITE_PROMPT));
41075 PyDict_SetItemString(d,"FILE_MUST_EXIST", SWIG_PyObj_FromInt((int)wxFILE_MUST_EXIST));
41076 PyDict_SetItemString(d,"MULTIPLE", SWIG_PyObj_FromInt((int)wxMULTIPLE));
41077 PyDict_SetItemString(d,"CHANGE_DIR", SWIG_PyObj_FromInt((int)wxCHANGE_DIR));
41078 PyDict_SetItemString(d,"ACCEL_ALT", SWIG_PyObj_FromInt((int)wxACCEL_ALT));
41079 PyDict_SetItemString(d,"ACCEL_CTRL", SWIG_PyObj_FromInt((int)wxACCEL_CTRL));
41080 PyDict_SetItemString(d,"ACCEL_SHIFT", SWIG_PyObj_FromInt((int)wxACCEL_SHIFT));
41081 PyDict_SetItemString(d,"ACCEL_NORMAL", SWIG_PyObj_FromInt((int)wxACCEL_NORMAL));
41082 PyDict_SetItemString(d,"PD_AUTO_HIDE", SWIG_PyObj_FromInt((int)wxPD_AUTO_HIDE));
41083 PyDict_SetItemString(d,"PD_APP_MODAL", SWIG_PyObj_FromInt((int)wxPD_APP_MODAL));
41084 PyDict_SetItemString(d,"PD_CAN_ABORT", SWIG_PyObj_FromInt((int)wxPD_CAN_ABORT));
41085 PyDict_SetItemString(d,"PD_ELAPSED_TIME", SWIG_PyObj_FromInt((int)wxPD_ELAPSED_TIME));
41086 PyDict_SetItemString(d,"PD_ESTIMATED_TIME", SWIG_PyObj_FromInt((int)wxPD_ESTIMATED_TIME));
41087 PyDict_SetItemString(d,"PD_REMAINING_TIME", SWIG_PyObj_FromInt((int)wxPD_REMAINING_TIME));
41088 PyDict_SetItemString(d,"DD_NEW_DIR_BUTTON", SWIG_PyObj_FromInt((int)wxDD_NEW_DIR_BUTTON));
41089 PyDict_SetItemString(d,"DD_DEFAULT_STYLE", SWIG_PyObj_FromInt((int)wxDD_DEFAULT_STYLE));
41090 PyDict_SetItemString(d,"MENU_TEAROFF", SWIG_PyObj_FromInt((int)wxMENU_TEAROFF));
41091 PyDict_SetItemString(d,"MB_DOCKABLE", SWIG_PyObj_FromInt((int)wxMB_DOCKABLE));
41092 PyDict_SetItemString(d,"NO_FULL_REPAINT_ON_RESIZE", SWIG_PyObj_FromInt((int)wxNO_FULL_REPAINT_ON_RESIZE));
41093 PyDict_SetItemString(d,"FULL_REPAINT_ON_RESIZE", SWIG_PyObj_FromInt((int)wxFULL_REPAINT_ON_RESIZE));
41094 PyDict_SetItemString(d,"LI_HORIZONTAL", SWIG_PyObj_FromInt((int)wxLI_HORIZONTAL));
41095 PyDict_SetItemString(d,"LI_VERTICAL", SWIG_PyObj_FromInt((int)wxLI_VERTICAL));
41096 PyDict_SetItemString(d,"WS_EX_VALIDATE_RECURSIVELY", SWIG_PyObj_FromInt((int)wxWS_EX_VALIDATE_RECURSIVELY));
41097 PyDict_SetItemString(d,"WS_EX_BLOCK_EVENTS", SWIG_PyObj_FromInt((int)wxWS_EX_BLOCK_EVENTS));
41098 PyDict_SetItemString(d,"WS_EX_TRANSIENT", SWIG_PyObj_FromInt((int)wxWS_EX_TRANSIENT));
41099 PyDict_SetItemString(d,"WS_EX_THEMED_BACKGROUND", SWIG_PyObj_FromInt((int)wxWS_EX_THEMED_BACKGROUND));
41100 PyDict_SetItemString(d,"WS_EX_PROCESS_IDLE", SWIG_PyObj_FromInt((int)wxWS_EX_PROCESS_IDLE));
41101 PyDict_SetItemString(d,"WS_EX_PROCESS_UI_UPDATES", SWIG_PyObj_FromInt((int)wxWS_EX_PROCESS_UI_UPDATES));
41102 PyDict_SetItemString(d,"MM_TEXT", SWIG_PyObj_FromInt((int)wxMM_TEXT));
41103 PyDict_SetItemString(d,"MM_LOMETRIC", SWIG_PyObj_FromInt((int)wxMM_LOMETRIC));
41104 PyDict_SetItemString(d,"MM_HIMETRIC", SWIG_PyObj_FromInt((int)wxMM_HIMETRIC));
41105 PyDict_SetItemString(d,"MM_LOENGLISH", SWIG_PyObj_FromInt((int)wxMM_LOENGLISH));
41106 PyDict_SetItemString(d,"MM_HIENGLISH", SWIG_PyObj_FromInt((int)wxMM_HIENGLISH));
41107 PyDict_SetItemString(d,"MM_TWIPS", SWIG_PyObj_FromInt((int)wxMM_TWIPS));
41108 PyDict_SetItemString(d,"MM_ISOTROPIC", SWIG_PyObj_FromInt((int)wxMM_ISOTROPIC));
41109 PyDict_SetItemString(d,"MM_ANISOTROPIC", SWIG_PyObj_FromInt((int)wxMM_ANISOTROPIC));
41110 PyDict_SetItemString(d,"MM_POINTS", SWIG_PyObj_FromInt((int)wxMM_POINTS));
41111 PyDict_SetItemString(d,"MM_METRIC", SWIG_PyObj_FromInt((int)wxMM_METRIC));
41112 PyDict_SetItemString(d,"CENTRE", SWIG_PyObj_FromInt((int)wxCENTRE));
41113 PyDict_SetItemString(d,"CENTER", SWIG_PyObj_FromInt((int)wxCENTER));
41114 PyDict_SetItemString(d,"HORIZONTAL", SWIG_PyObj_FromInt((int)wxHORIZONTAL));
41115 PyDict_SetItemString(d,"VERTICAL", SWIG_PyObj_FromInt((int)wxVERTICAL));
41116 PyDict_SetItemString(d,"BOTH", SWIG_PyObj_FromInt((int)wxBOTH));
41117 PyDict_SetItemString(d,"LEFT", SWIG_PyObj_FromInt((int)wxLEFT));
41118 PyDict_SetItemString(d,"RIGHT", SWIG_PyObj_FromInt((int)wxRIGHT));
41119 PyDict_SetItemString(d,"UP", SWIG_PyObj_FromInt((int)wxUP));
41120 PyDict_SetItemString(d,"DOWN", SWIG_PyObj_FromInt((int)wxDOWN));
41121 PyDict_SetItemString(d,"TOP", SWIG_PyObj_FromInt((int)wxTOP));
41122 PyDict_SetItemString(d,"BOTTOM", SWIG_PyObj_FromInt((int)wxBOTTOM));
41123 PyDict_SetItemString(d,"NORTH", SWIG_PyObj_FromInt((int)wxNORTH));
41124 PyDict_SetItemString(d,"SOUTH", SWIG_PyObj_FromInt((int)wxSOUTH));
41125 PyDict_SetItemString(d,"WEST", SWIG_PyObj_FromInt((int)wxWEST));
41126 PyDict_SetItemString(d,"EAST", SWIG_PyObj_FromInt((int)wxEAST));
41127 PyDict_SetItemString(d,"ALL", SWIG_PyObj_FromInt((int)wxALL));
41128 PyDict_SetItemString(d,"ALIGN_NOT", SWIG_PyObj_FromInt((int)wxALIGN_NOT));
41129 PyDict_SetItemString(d,"ALIGN_CENTER_HORIZONTAL", SWIG_PyObj_FromInt((int)wxALIGN_CENTER_HORIZONTAL));
41130 PyDict_SetItemString(d,"ALIGN_CENTRE_HORIZONTAL", SWIG_PyObj_FromInt((int)wxALIGN_CENTRE_HORIZONTAL));
41131 PyDict_SetItemString(d,"ALIGN_LEFT", SWIG_PyObj_FromInt((int)wxALIGN_LEFT));
41132 PyDict_SetItemString(d,"ALIGN_TOP", SWIG_PyObj_FromInt((int)wxALIGN_TOP));
41133 PyDict_SetItemString(d,"ALIGN_RIGHT", SWIG_PyObj_FromInt((int)wxALIGN_RIGHT));
41134 PyDict_SetItemString(d,"ALIGN_BOTTOM", SWIG_PyObj_FromInt((int)wxALIGN_BOTTOM));
41135 PyDict_SetItemString(d,"ALIGN_CENTER_VERTICAL", SWIG_PyObj_FromInt((int)wxALIGN_CENTER_VERTICAL));
41136 PyDict_SetItemString(d,"ALIGN_CENTRE_VERTICAL", SWIG_PyObj_FromInt((int)wxALIGN_CENTRE_VERTICAL));
41137 PyDict_SetItemString(d,"ALIGN_CENTER", SWIG_PyObj_FromInt((int)wxALIGN_CENTER));
41138 PyDict_SetItemString(d,"ALIGN_CENTRE", SWIG_PyObj_FromInt((int)wxALIGN_CENTRE));
41139 PyDict_SetItemString(d,"ALIGN_MASK", SWIG_PyObj_FromInt((int)wxALIGN_MASK));
41140 PyDict_SetItemString(d,"STRETCH_NOT", SWIG_PyObj_FromInt((int)wxSTRETCH_NOT));
41141 PyDict_SetItemString(d,"SHRINK", SWIG_PyObj_FromInt((int)wxSHRINK));
41142 PyDict_SetItemString(d,"GROW", SWIG_PyObj_FromInt((int)wxGROW));
41143 PyDict_SetItemString(d,"EXPAND", SWIG_PyObj_FromInt((int)wxEXPAND));
41144 PyDict_SetItemString(d,"SHAPED", SWIG_PyObj_FromInt((int)wxSHAPED));
41145 PyDict_SetItemString(d,"ADJUST_MINSIZE", SWIG_PyObj_FromInt((int)wxADJUST_MINSIZE));
41146 PyDict_SetItemString(d,"TILE", SWIG_PyObj_FromInt((int)wxTILE));
41147 PyDict_SetItemString(d,"BORDER_DEFAULT", SWIG_PyObj_FromInt((int)wxBORDER_DEFAULT));
41148 PyDict_SetItemString(d,"BORDER_NONE", SWIG_PyObj_FromInt((int)wxBORDER_NONE));
41149 PyDict_SetItemString(d,"BORDER_STATIC", SWIG_PyObj_FromInt((int)wxBORDER_STATIC));
41150 PyDict_SetItemString(d,"BORDER_SIMPLE", SWIG_PyObj_FromInt((int)wxBORDER_SIMPLE));
41151 PyDict_SetItemString(d,"BORDER_RAISED", SWIG_PyObj_FromInt((int)wxBORDER_RAISED));
41152 PyDict_SetItemString(d,"BORDER_SUNKEN", SWIG_PyObj_FromInt((int)wxBORDER_SUNKEN));
41153 PyDict_SetItemString(d,"BORDER_DOUBLE", SWIG_PyObj_FromInt((int)wxBORDER_DOUBLE));
41154 PyDict_SetItemString(d,"BORDER_MASK", SWIG_PyObj_FromInt((int)wxBORDER_MASK));
41155 PyDict_SetItemString(d,"DEFAULT", SWIG_PyObj_FromInt((int)wxDEFAULT));
41156 PyDict_SetItemString(d,"DECORATIVE", SWIG_PyObj_FromInt((int)wxDECORATIVE));
41157 PyDict_SetItemString(d,"ROMAN", SWIG_PyObj_FromInt((int)wxROMAN));
41158 PyDict_SetItemString(d,"SCRIPT", SWIG_PyObj_FromInt((int)wxSCRIPT));
41159 PyDict_SetItemString(d,"SWISS", SWIG_PyObj_FromInt((int)wxSWISS));
41160 PyDict_SetItemString(d,"MODERN", SWIG_PyObj_FromInt((int)wxMODERN));
41161 PyDict_SetItemString(d,"TELETYPE", SWIG_PyObj_FromInt((int)wxTELETYPE));
41162 PyDict_SetItemString(d,"VARIABLE", SWIG_PyObj_FromInt((int)wxVARIABLE));
41163 PyDict_SetItemString(d,"FIXED", SWIG_PyObj_FromInt((int)wxFIXED));
41164 PyDict_SetItemString(d,"NORMAL", SWIG_PyObj_FromInt((int)wxNORMAL));
41165 PyDict_SetItemString(d,"LIGHT", SWIG_PyObj_FromInt((int)wxLIGHT));
41166 PyDict_SetItemString(d,"BOLD", SWIG_PyObj_FromInt((int)wxBOLD));
41167 PyDict_SetItemString(d,"ITALIC", SWIG_PyObj_FromInt((int)wxITALIC));
41168 PyDict_SetItemString(d,"SLANT", SWIG_PyObj_FromInt((int)wxSLANT));
41169 PyDict_SetItemString(d,"SOLID", SWIG_PyObj_FromInt((int)wxSOLID));
41170 PyDict_SetItemString(d,"DOT", SWIG_PyObj_FromInt((int)wxDOT));
41171 PyDict_SetItemString(d,"LONG_DASH", SWIG_PyObj_FromInt((int)wxLONG_DASH));
41172 PyDict_SetItemString(d,"SHORT_DASH", SWIG_PyObj_FromInt((int)wxSHORT_DASH));
41173 PyDict_SetItemString(d,"DOT_DASH", SWIG_PyObj_FromInt((int)wxDOT_DASH));
41174 PyDict_SetItemString(d,"USER_DASH", SWIG_PyObj_FromInt((int)wxUSER_DASH));
41175 PyDict_SetItemString(d,"TRANSPARENT", SWIG_PyObj_FromInt((int)wxTRANSPARENT));
41176 PyDict_SetItemString(d,"STIPPLE", SWIG_PyObj_FromInt((int)wxSTIPPLE));
41177 PyDict_SetItemString(d,"BDIAGONAL_HATCH", SWIG_PyObj_FromInt((int)wxBDIAGONAL_HATCH));
41178 PyDict_SetItemString(d,"CROSSDIAG_HATCH", SWIG_PyObj_FromInt((int)wxCROSSDIAG_HATCH));
41179 PyDict_SetItemString(d,"FDIAGONAL_HATCH", SWIG_PyObj_FromInt((int)wxFDIAGONAL_HATCH));
41180 PyDict_SetItemString(d,"CROSS_HATCH", SWIG_PyObj_FromInt((int)wxCROSS_HATCH));
41181 PyDict_SetItemString(d,"HORIZONTAL_HATCH", SWIG_PyObj_FromInt((int)wxHORIZONTAL_HATCH));
41182 PyDict_SetItemString(d,"VERTICAL_HATCH", SWIG_PyObj_FromInt((int)wxVERTICAL_HATCH));
41183 PyDict_SetItemString(d,"JOIN_BEVEL", SWIG_PyObj_FromInt((int)wxJOIN_BEVEL));
41184 PyDict_SetItemString(d,"JOIN_MITER", SWIG_PyObj_FromInt((int)wxJOIN_MITER));
41185 PyDict_SetItemString(d,"JOIN_ROUND", SWIG_PyObj_FromInt((int)wxJOIN_ROUND));
41186 PyDict_SetItemString(d,"CAP_ROUND", SWIG_PyObj_FromInt((int)wxCAP_ROUND));
41187 PyDict_SetItemString(d,"CAP_PROJECTING", SWIG_PyObj_FromInt((int)wxCAP_PROJECTING));
41188 PyDict_SetItemString(d,"CAP_BUTT", SWIG_PyObj_FromInt((int)wxCAP_BUTT));
41189 PyDict_SetItemString(d,"CLEAR", SWIG_PyObj_FromInt((int)wxCLEAR));
41190 PyDict_SetItemString(d,"XOR", SWIG_PyObj_FromInt((int)wxXOR));
41191 PyDict_SetItemString(d,"INVERT", SWIG_PyObj_FromInt((int)wxINVERT));
41192 PyDict_SetItemString(d,"OR_REVERSE", SWIG_PyObj_FromInt((int)wxOR_REVERSE));
41193 PyDict_SetItemString(d,"AND_REVERSE", SWIG_PyObj_FromInt((int)wxAND_REVERSE));
41194 PyDict_SetItemString(d,"COPY", SWIG_PyObj_FromInt((int)wxCOPY));
41195 PyDict_SetItemString(d,"AND", SWIG_PyObj_FromInt((int)wxAND));
41196 PyDict_SetItemString(d,"AND_INVERT", SWIG_PyObj_FromInt((int)wxAND_INVERT));
41197 PyDict_SetItemString(d,"NO_OP", SWIG_PyObj_FromInt((int)wxNO_OP));
41198 PyDict_SetItemString(d,"NOR", SWIG_PyObj_FromInt((int)wxNOR));
41199 PyDict_SetItemString(d,"EQUIV", SWIG_PyObj_FromInt((int)wxEQUIV));
41200 PyDict_SetItemString(d,"SRC_INVERT", SWIG_PyObj_FromInt((int)wxSRC_INVERT));
41201 PyDict_SetItemString(d,"OR_INVERT", SWIG_PyObj_FromInt((int)wxOR_INVERT));
41202 PyDict_SetItemString(d,"NAND", SWIG_PyObj_FromInt((int)wxNAND));
41203 PyDict_SetItemString(d,"OR", SWIG_PyObj_FromInt((int)wxOR));
41204 PyDict_SetItemString(d,"SET", SWIG_PyObj_FromInt((int)wxSET));
41205 PyDict_SetItemString(d,"WXK_BACK", SWIG_PyObj_FromInt((int)WXK_BACK));
41206 PyDict_SetItemString(d,"WXK_TAB", SWIG_PyObj_FromInt((int)WXK_TAB));
41207 PyDict_SetItemString(d,"WXK_RETURN", SWIG_PyObj_FromInt((int)WXK_RETURN));
41208 PyDict_SetItemString(d,"WXK_ESCAPE", SWIG_PyObj_FromInt((int)WXK_ESCAPE));
41209 PyDict_SetItemString(d,"WXK_SPACE", SWIG_PyObj_FromInt((int)WXK_SPACE));
41210 PyDict_SetItemString(d,"WXK_DELETE", SWIG_PyObj_FromInt((int)WXK_DELETE));
41211 PyDict_SetItemString(d,"WXK_START", SWIG_PyObj_FromInt((int)WXK_START));
41212 PyDict_SetItemString(d,"WXK_LBUTTON", SWIG_PyObj_FromInt((int)WXK_LBUTTON));
41213 PyDict_SetItemString(d,"WXK_RBUTTON", SWIG_PyObj_FromInt((int)WXK_RBUTTON));
41214 PyDict_SetItemString(d,"WXK_CANCEL", SWIG_PyObj_FromInt((int)WXK_CANCEL));
41215 PyDict_SetItemString(d,"WXK_MBUTTON", SWIG_PyObj_FromInt((int)WXK_MBUTTON));
41216 PyDict_SetItemString(d,"WXK_CLEAR", SWIG_PyObj_FromInt((int)WXK_CLEAR));
41217 PyDict_SetItemString(d,"WXK_SHIFT", SWIG_PyObj_FromInt((int)WXK_SHIFT));
41218 PyDict_SetItemString(d,"WXK_ALT", SWIG_PyObj_FromInt((int)WXK_ALT));
41219 PyDict_SetItemString(d,"WXK_CONTROL", SWIG_PyObj_FromInt((int)WXK_CONTROL));
41220 PyDict_SetItemString(d,"WXK_MENU", SWIG_PyObj_FromInt((int)WXK_MENU));
41221 PyDict_SetItemString(d,"WXK_PAUSE", SWIG_PyObj_FromInt((int)WXK_PAUSE));
41222 PyDict_SetItemString(d,"WXK_CAPITAL", SWIG_PyObj_FromInt((int)WXK_CAPITAL));
41223 PyDict_SetItemString(d,"WXK_PRIOR", SWIG_PyObj_FromInt((int)WXK_PRIOR));
41224 PyDict_SetItemString(d,"WXK_NEXT", SWIG_PyObj_FromInt((int)WXK_NEXT));
41225 PyDict_SetItemString(d,"WXK_END", SWIG_PyObj_FromInt((int)WXK_END));
41226 PyDict_SetItemString(d,"WXK_HOME", SWIG_PyObj_FromInt((int)WXK_HOME));
41227 PyDict_SetItemString(d,"WXK_LEFT", SWIG_PyObj_FromInt((int)WXK_LEFT));
41228 PyDict_SetItemString(d,"WXK_UP", SWIG_PyObj_FromInt((int)WXK_UP));
41229 PyDict_SetItemString(d,"WXK_RIGHT", SWIG_PyObj_FromInt((int)WXK_RIGHT));
41230 PyDict_SetItemString(d,"WXK_DOWN", SWIG_PyObj_FromInt((int)WXK_DOWN));
41231 PyDict_SetItemString(d,"WXK_SELECT", SWIG_PyObj_FromInt((int)WXK_SELECT));
41232 PyDict_SetItemString(d,"WXK_PRINT", SWIG_PyObj_FromInt((int)WXK_PRINT));
41233 PyDict_SetItemString(d,"WXK_EXECUTE", SWIG_PyObj_FromInt((int)WXK_EXECUTE));
41234 PyDict_SetItemString(d,"WXK_SNAPSHOT", SWIG_PyObj_FromInt((int)WXK_SNAPSHOT));
41235 PyDict_SetItemString(d,"WXK_INSERT", SWIG_PyObj_FromInt((int)WXK_INSERT));
41236 PyDict_SetItemString(d,"WXK_HELP", SWIG_PyObj_FromInt((int)WXK_HELP));
41237 PyDict_SetItemString(d,"WXK_NUMPAD0", SWIG_PyObj_FromInt((int)WXK_NUMPAD0));
41238 PyDict_SetItemString(d,"WXK_NUMPAD1", SWIG_PyObj_FromInt((int)WXK_NUMPAD1));
41239 PyDict_SetItemString(d,"WXK_NUMPAD2", SWIG_PyObj_FromInt((int)WXK_NUMPAD2));
41240 PyDict_SetItemString(d,"WXK_NUMPAD3", SWIG_PyObj_FromInt((int)WXK_NUMPAD3));
41241 PyDict_SetItemString(d,"WXK_NUMPAD4", SWIG_PyObj_FromInt((int)WXK_NUMPAD4));
41242 PyDict_SetItemString(d,"WXK_NUMPAD5", SWIG_PyObj_FromInt((int)WXK_NUMPAD5));
41243 PyDict_SetItemString(d,"WXK_NUMPAD6", SWIG_PyObj_FromInt((int)WXK_NUMPAD6));
41244 PyDict_SetItemString(d,"WXK_NUMPAD7", SWIG_PyObj_FromInt((int)WXK_NUMPAD7));
41245 PyDict_SetItemString(d,"WXK_NUMPAD8", SWIG_PyObj_FromInt((int)WXK_NUMPAD8));
41246 PyDict_SetItemString(d,"WXK_NUMPAD9", SWIG_PyObj_FromInt((int)WXK_NUMPAD9));
41247 PyDict_SetItemString(d,"WXK_MULTIPLY", SWIG_PyObj_FromInt((int)WXK_MULTIPLY));
41248 PyDict_SetItemString(d,"WXK_ADD", SWIG_PyObj_FromInt((int)WXK_ADD));
41249 PyDict_SetItemString(d,"WXK_SEPARATOR", SWIG_PyObj_FromInt((int)WXK_SEPARATOR));
41250 PyDict_SetItemString(d,"WXK_SUBTRACT", SWIG_PyObj_FromInt((int)WXK_SUBTRACT));
41251 PyDict_SetItemString(d,"WXK_DECIMAL", SWIG_PyObj_FromInt((int)WXK_DECIMAL));
41252 PyDict_SetItemString(d,"WXK_DIVIDE", SWIG_PyObj_FromInt((int)WXK_DIVIDE));
41253 PyDict_SetItemString(d,"WXK_F1", SWIG_PyObj_FromInt((int)WXK_F1));
41254 PyDict_SetItemString(d,"WXK_F2", SWIG_PyObj_FromInt((int)WXK_F2));
41255 PyDict_SetItemString(d,"WXK_F3", SWIG_PyObj_FromInt((int)WXK_F3));
41256 PyDict_SetItemString(d,"WXK_F4", SWIG_PyObj_FromInt((int)WXK_F4));
41257 PyDict_SetItemString(d,"WXK_F5", SWIG_PyObj_FromInt((int)WXK_F5));
41258 PyDict_SetItemString(d,"WXK_F6", SWIG_PyObj_FromInt((int)WXK_F6));
41259 PyDict_SetItemString(d,"WXK_F7", SWIG_PyObj_FromInt((int)WXK_F7));
41260 PyDict_SetItemString(d,"WXK_F8", SWIG_PyObj_FromInt((int)WXK_F8));
41261 PyDict_SetItemString(d,"WXK_F9", SWIG_PyObj_FromInt((int)WXK_F9));
41262 PyDict_SetItemString(d,"WXK_F10", SWIG_PyObj_FromInt((int)WXK_F10));
41263 PyDict_SetItemString(d,"WXK_F11", SWIG_PyObj_FromInt((int)WXK_F11));
41264 PyDict_SetItemString(d,"WXK_F12", SWIG_PyObj_FromInt((int)WXK_F12));
41265 PyDict_SetItemString(d,"WXK_F13", SWIG_PyObj_FromInt((int)WXK_F13));
41266 PyDict_SetItemString(d,"WXK_F14", SWIG_PyObj_FromInt((int)WXK_F14));
41267 PyDict_SetItemString(d,"WXK_F15", SWIG_PyObj_FromInt((int)WXK_F15));
41268 PyDict_SetItemString(d,"WXK_F16", SWIG_PyObj_FromInt((int)WXK_F16));
41269 PyDict_SetItemString(d,"WXK_F17", SWIG_PyObj_FromInt((int)WXK_F17));
41270 PyDict_SetItemString(d,"WXK_F18", SWIG_PyObj_FromInt((int)WXK_F18));
41271 PyDict_SetItemString(d,"WXK_F19", SWIG_PyObj_FromInt((int)WXK_F19));
41272 PyDict_SetItemString(d,"WXK_F20", SWIG_PyObj_FromInt((int)WXK_F20));
41273 PyDict_SetItemString(d,"WXK_F21", SWIG_PyObj_FromInt((int)WXK_F21));
41274 PyDict_SetItemString(d,"WXK_F22", SWIG_PyObj_FromInt((int)WXK_F22));
41275 PyDict_SetItemString(d,"WXK_F23", SWIG_PyObj_FromInt((int)WXK_F23));
41276 PyDict_SetItemString(d,"WXK_F24", SWIG_PyObj_FromInt((int)WXK_F24));
41277 PyDict_SetItemString(d,"WXK_NUMLOCK", SWIG_PyObj_FromInt((int)WXK_NUMLOCK));
41278 PyDict_SetItemString(d,"WXK_SCROLL", SWIG_PyObj_FromInt((int)WXK_SCROLL));
41279 PyDict_SetItemString(d,"WXK_PAGEUP", SWIG_PyObj_FromInt((int)WXK_PAGEUP));
41280 PyDict_SetItemString(d,"WXK_PAGEDOWN", SWIG_PyObj_FromInt((int)WXK_PAGEDOWN));
41281 PyDict_SetItemString(d,"WXK_NUMPAD_SPACE", SWIG_PyObj_FromInt((int)WXK_NUMPAD_SPACE));
41282 PyDict_SetItemString(d,"WXK_NUMPAD_TAB", SWIG_PyObj_FromInt((int)WXK_NUMPAD_TAB));
41283 PyDict_SetItemString(d,"WXK_NUMPAD_ENTER", SWIG_PyObj_FromInt((int)WXK_NUMPAD_ENTER));
41284 PyDict_SetItemString(d,"WXK_NUMPAD_F1", SWIG_PyObj_FromInt((int)WXK_NUMPAD_F1));
41285 PyDict_SetItemString(d,"WXK_NUMPAD_F2", SWIG_PyObj_FromInt((int)WXK_NUMPAD_F2));
41286 PyDict_SetItemString(d,"WXK_NUMPAD_F3", SWIG_PyObj_FromInt((int)WXK_NUMPAD_F3));
41287 PyDict_SetItemString(d,"WXK_NUMPAD_F4", SWIG_PyObj_FromInt((int)WXK_NUMPAD_F4));
41288 PyDict_SetItemString(d,"WXK_NUMPAD_HOME", SWIG_PyObj_FromInt((int)WXK_NUMPAD_HOME));
41289 PyDict_SetItemString(d,"WXK_NUMPAD_LEFT", SWIG_PyObj_FromInt((int)WXK_NUMPAD_LEFT));
41290 PyDict_SetItemString(d,"WXK_NUMPAD_UP", SWIG_PyObj_FromInt((int)WXK_NUMPAD_UP));
41291 PyDict_SetItemString(d,"WXK_NUMPAD_RIGHT", SWIG_PyObj_FromInt((int)WXK_NUMPAD_RIGHT));
41292 PyDict_SetItemString(d,"WXK_NUMPAD_DOWN", SWIG_PyObj_FromInt((int)WXK_NUMPAD_DOWN));
41293 PyDict_SetItemString(d,"WXK_NUMPAD_PRIOR", SWIG_PyObj_FromInt((int)WXK_NUMPAD_PRIOR));
41294 PyDict_SetItemString(d,"WXK_NUMPAD_PAGEUP", SWIG_PyObj_FromInt((int)WXK_NUMPAD_PAGEUP));
41295 PyDict_SetItemString(d,"WXK_NUMPAD_NEXT", SWIG_PyObj_FromInt((int)WXK_NUMPAD_NEXT));
41296 PyDict_SetItemString(d,"WXK_NUMPAD_PAGEDOWN", SWIG_PyObj_FromInt((int)WXK_NUMPAD_PAGEDOWN));
41297 PyDict_SetItemString(d,"WXK_NUMPAD_END", SWIG_PyObj_FromInt((int)WXK_NUMPAD_END));
41298 PyDict_SetItemString(d,"WXK_NUMPAD_BEGIN", SWIG_PyObj_FromInt((int)WXK_NUMPAD_BEGIN));
41299 PyDict_SetItemString(d,"WXK_NUMPAD_INSERT", SWIG_PyObj_FromInt((int)WXK_NUMPAD_INSERT));
41300 PyDict_SetItemString(d,"WXK_NUMPAD_DELETE", SWIG_PyObj_FromInt((int)WXK_NUMPAD_DELETE));
41301 PyDict_SetItemString(d,"WXK_NUMPAD_EQUAL", SWIG_PyObj_FromInt((int)WXK_NUMPAD_EQUAL));
41302 PyDict_SetItemString(d,"WXK_NUMPAD_MULTIPLY", SWIG_PyObj_FromInt((int)WXK_NUMPAD_MULTIPLY));
41303 PyDict_SetItemString(d,"WXK_NUMPAD_ADD", SWIG_PyObj_FromInt((int)WXK_NUMPAD_ADD));
41304 PyDict_SetItemString(d,"WXK_NUMPAD_SEPARATOR", SWIG_PyObj_FromInt((int)WXK_NUMPAD_SEPARATOR));
41305 PyDict_SetItemString(d,"WXK_NUMPAD_SUBTRACT", SWIG_PyObj_FromInt((int)WXK_NUMPAD_SUBTRACT));
41306 PyDict_SetItemString(d,"WXK_NUMPAD_DECIMAL", SWIG_PyObj_FromInt((int)WXK_NUMPAD_DECIMAL));
41307 PyDict_SetItemString(d,"WXK_NUMPAD_DIVIDE", SWIG_PyObj_FromInt((int)WXK_NUMPAD_DIVIDE));
41308 PyDict_SetItemString(d,"WXK_WINDOWS_LEFT", SWIG_PyObj_FromInt((int)WXK_WINDOWS_LEFT));
41309 PyDict_SetItemString(d,"WXK_WINDOWS_RIGHT", SWIG_PyObj_FromInt((int)WXK_WINDOWS_RIGHT));
41310 PyDict_SetItemString(d,"WXK_WINDOWS_MENU", SWIG_PyObj_FromInt((int)WXK_WINDOWS_MENU));
41311 PyDict_SetItemString(d,"PAPER_NONE", SWIG_PyObj_FromInt((int)wxPAPER_NONE));
41312 PyDict_SetItemString(d,"PAPER_LETTER", SWIG_PyObj_FromInt((int)wxPAPER_LETTER));
41313 PyDict_SetItemString(d,"PAPER_LEGAL", SWIG_PyObj_FromInt((int)wxPAPER_LEGAL));
41314 PyDict_SetItemString(d,"PAPER_A4", SWIG_PyObj_FromInt((int)wxPAPER_A4));
41315 PyDict_SetItemString(d,"PAPER_CSHEET", SWIG_PyObj_FromInt((int)wxPAPER_CSHEET));
41316 PyDict_SetItemString(d,"PAPER_DSHEET", SWIG_PyObj_FromInt((int)wxPAPER_DSHEET));
41317 PyDict_SetItemString(d,"PAPER_ESHEET", SWIG_PyObj_FromInt((int)wxPAPER_ESHEET));
41318 PyDict_SetItemString(d,"PAPER_LETTERSMALL", SWIG_PyObj_FromInt((int)wxPAPER_LETTERSMALL));
41319 PyDict_SetItemString(d,"PAPER_TABLOID", SWIG_PyObj_FromInt((int)wxPAPER_TABLOID));
41320 PyDict_SetItemString(d,"PAPER_LEDGER", SWIG_PyObj_FromInt((int)wxPAPER_LEDGER));
41321 PyDict_SetItemString(d,"PAPER_STATEMENT", SWIG_PyObj_FromInt((int)wxPAPER_STATEMENT));
41322 PyDict_SetItemString(d,"PAPER_EXECUTIVE", SWIG_PyObj_FromInt((int)wxPAPER_EXECUTIVE));
41323 PyDict_SetItemString(d,"PAPER_A3", SWIG_PyObj_FromInt((int)wxPAPER_A3));
41324 PyDict_SetItemString(d,"PAPER_A4SMALL", SWIG_PyObj_FromInt((int)wxPAPER_A4SMALL));
41325 PyDict_SetItemString(d,"PAPER_A5", SWIG_PyObj_FromInt((int)wxPAPER_A5));
41326 PyDict_SetItemString(d,"PAPER_B4", SWIG_PyObj_FromInt((int)wxPAPER_B4));
41327 PyDict_SetItemString(d,"PAPER_B5", SWIG_PyObj_FromInt((int)wxPAPER_B5));
41328 PyDict_SetItemString(d,"PAPER_FOLIO", SWIG_PyObj_FromInt((int)wxPAPER_FOLIO));
41329 PyDict_SetItemString(d,"PAPER_QUARTO", SWIG_PyObj_FromInt((int)wxPAPER_QUARTO));
41330 PyDict_SetItemString(d,"PAPER_10X14", SWIG_PyObj_FromInt((int)wxPAPER_10X14));
41331 PyDict_SetItemString(d,"PAPER_11X17", SWIG_PyObj_FromInt((int)wxPAPER_11X17));
41332 PyDict_SetItemString(d,"PAPER_NOTE", SWIG_PyObj_FromInt((int)wxPAPER_NOTE));
41333 PyDict_SetItemString(d,"PAPER_ENV_9", SWIG_PyObj_FromInt((int)wxPAPER_ENV_9));
41334 PyDict_SetItemString(d,"PAPER_ENV_10", SWIG_PyObj_FromInt((int)wxPAPER_ENV_10));
41335 PyDict_SetItemString(d,"PAPER_ENV_11", SWIG_PyObj_FromInt((int)wxPAPER_ENV_11));
41336 PyDict_SetItemString(d,"PAPER_ENV_12", SWIG_PyObj_FromInt((int)wxPAPER_ENV_12));
41337 PyDict_SetItemString(d,"PAPER_ENV_14", SWIG_PyObj_FromInt((int)wxPAPER_ENV_14));
41338 PyDict_SetItemString(d,"PAPER_ENV_DL", SWIG_PyObj_FromInt((int)wxPAPER_ENV_DL));
41339 PyDict_SetItemString(d,"PAPER_ENV_C5", SWIG_PyObj_FromInt((int)wxPAPER_ENV_C5));
41340 PyDict_SetItemString(d,"PAPER_ENV_C3", SWIG_PyObj_FromInt((int)wxPAPER_ENV_C3));
41341 PyDict_SetItemString(d,"PAPER_ENV_C4", SWIG_PyObj_FromInt((int)wxPAPER_ENV_C4));
41342 PyDict_SetItemString(d,"PAPER_ENV_C6", SWIG_PyObj_FromInt((int)wxPAPER_ENV_C6));
41343 PyDict_SetItemString(d,"PAPER_ENV_C65", SWIG_PyObj_FromInt((int)wxPAPER_ENV_C65));
41344 PyDict_SetItemString(d,"PAPER_ENV_B4", SWIG_PyObj_FromInt((int)wxPAPER_ENV_B4));
41345 PyDict_SetItemString(d,"PAPER_ENV_B5", SWIG_PyObj_FromInt((int)wxPAPER_ENV_B5));
41346 PyDict_SetItemString(d,"PAPER_ENV_B6", SWIG_PyObj_FromInt((int)wxPAPER_ENV_B6));
41347 PyDict_SetItemString(d,"PAPER_ENV_ITALY", SWIG_PyObj_FromInt((int)wxPAPER_ENV_ITALY));
41348 PyDict_SetItemString(d,"PAPER_ENV_MONARCH", SWIG_PyObj_FromInt((int)wxPAPER_ENV_MONARCH));
41349 PyDict_SetItemString(d,"PAPER_ENV_PERSONAL", SWIG_PyObj_FromInt((int)wxPAPER_ENV_PERSONAL));
41350 PyDict_SetItemString(d,"PAPER_FANFOLD_US", SWIG_PyObj_FromInt((int)wxPAPER_FANFOLD_US));
41351 PyDict_SetItemString(d,"PAPER_FANFOLD_STD_GERMAN", SWIG_PyObj_FromInt((int)wxPAPER_FANFOLD_STD_GERMAN));
41352 PyDict_SetItemString(d,"PAPER_FANFOLD_LGL_GERMAN", SWIG_PyObj_FromInt((int)wxPAPER_FANFOLD_LGL_GERMAN));
41353 PyDict_SetItemString(d,"PAPER_ISO_B4", SWIG_PyObj_FromInt((int)wxPAPER_ISO_B4));
41354 PyDict_SetItemString(d,"PAPER_JAPANESE_POSTCARD", SWIG_PyObj_FromInt((int)wxPAPER_JAPANESE_POSTCARD));
41355 PyDict_SetItemString(d,"PAPER_9X11", SWIG_PyObj_FromInt((int)wxPAPER_9X11));
41356 PyDict_SetItemString(d,"PAPER_10X11", SWIG_PyObj_FromInt((int)wxPAPER_10X11));
41357 PyDict_SetItemString(d,"PAPER_15X11", SWIG_PyObj_FromInt((int)wxPAPER_15X11));
41358 PyDict_SetItemString(d,"PAPER_ENV_INVITE", SWIG_PyObj_FromInt((int)wxPAPER_ENV_INVITE));
41359 PyDict_SetItemString(d,"PAPER_LETTER_EXTRA", SWIG_PyObj_FromInt((int)wxPAPER_LETTER_EXTRA));
41360 PyDict_SetItemString(d,"PAPER_LEGAL_EXTRA", SWIG_PyObj_FromInt((int)wxPAPER_LEGAL_EXTRA));
41361 PyDict_SetItemString(d,"PAPER_TABLOID_EXTRA", SWIG_PyObj_FromInt((int)wxPAPER_TABLOID_EXTRA));
41362 PyDict_SetItemString(d,"PAPER_A4_EXTRA", SWIG_PyObj_FromInt((int)wxPAPER_A4_EXTRA));
41363 PyDict_SetItemString(d,"PAPER_LETTER_TRANSVERSE", SWIG_PyObj_FromInt((int)wxPAPER_LETTER_TRANSVERSE));
41364 PyDict_SetItemString(d,"PAPER_A4_TRANSVERSE", SWIG_PyObj_FromInt((int)wxPAPER_A4_TRANSVERSE));
41365 PyDict_SetItemString(d,"PAPER_LETTER_EXTRA_TRANSVERSE", SWIG_PyObj_FromInt((int)wxPAPER_LETTER_EXTRA_TRANSVERSE));
41366 PyDict_SetItemString(d,"PAPER_A_PLUS", SWIG_PyObj_FromInt((int)wxPAPER_A_PLUS));
41367 PyDict_SetItemString(d,"PAPER_B_PLUS", SWIG_PyObj_FromInt((int)wxPAPER_B_PLUS));
41368 PyDict_SetItemString(d,"PAPER_LETTER_PLUS", SWIG_PyObj_FromInt((int)wxPAPER_LETTER_PLUS));
41369 PyDict_SetItemString(d,"PAPER_A4_PLUS", SWIG_PyObj_FromInt((int)wxPAPER_A4_PLUS));
41370 PyDict_SetItemString(d,"PAPER_A5_TRANSVERSE", SWIG_PyObj_FromInt((int)wxPAPER_A5_TRANSVERSE));
41371 PyDict_SetItemString(d,"PAPER_B5_TRANSVERSE", SWIG_PyObj_FromInt((int)wxPAPER_B5_TRANSVERSE));
41372 PyDict_SetItemString(d,"PAPER_A3_EXTRA", SWIG_PyObj_FromInt((int)wxPAPER_A3_EXTRA));
41373 PyDict_SetItemString(d,"PAPER_A5_EXTRA", SWIG_PyObj_FromInt((int)wxPAPER_A5_EXTRA));
41374 PyDict_SetItemString(d,"PAPER_B5_EXTRA", SWIG_PyObj_FromInt((int)wxPAPER_B5_EXTRA));
41375 PyDict_SetItemString(d,"PAPER_A2", SWIG_PyObj_FromInt((int)wxPAPER_A2));
41376 PyDict_SetItemString(d,"PAPER_A3_TRANSVERSE", SWIG_PyObj_FromInt((int)wxPAPER_A3_TRANSVERSE));
41377 PyDict_SetItemString(d,"PAPER_A3_EXTRA_TRANSVERSE", SWIG_PyObj_FromInt((int)wxPAPER_A3_EXTRA_TRANSVERSE));
41378 PyDict_SetItemString(d,"DUPLEX_SIMPLEX", SWIG_PyObj_FromInt((int)wxDUPLEX_SIMPLEX));
41379 PyDict_SetItemString(d,"DUPLEX_HORIZONTAL", SWIG_PyObj_FromInt((int)wxDUPLEX_HORIZONTAL));
41380 PyDict_SetItemString(d,"DUPLEX_VERTICAL", SWIG_PyObj_FromInt((int)wxDUPLEX_VERTICAL));
41381 PyDict_SetItemString(d,"ITEM_SEPARATOR", SWIG_PyObj_FromInt((int)wxITEM_SEPARATOR));
41382 PyDict_SetItemString(d,"ITEM_NORMAL", SWIG_PyObj_FromInt((int)wxITEM_NORMAL));
41383 PyDict_SetItemString(d,"ITEM_CHECK", SWIG_PyObj_FromInt((int)wxITEM_CHECK));
41384 PyDict_SetItemString(d,"ITEM_RADIO", SWIG_PyObj_FromInt((int)wxITEM_RADIO));
41385 PyDict_SetItemString(d,"ITEM_MAX", SWIG_PyObj_FromInt((int)wxITEM_MAX));
41386 PyDict_SetItemString(d,"HT_NOWHERE", SWIG_PyObj_FromInt((int)wxHT_NOWHERE));
41387 PyDict_SetItemString(d,"HT_SCROLLBAR_FIRST", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_FIRST));
41388 PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_1", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_1));
41389 PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_2", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_2));
41390 PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_1", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_1));
41391 PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_2", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_2));
41392 PyDict_SetItemString(d,"HT_SCROLLBAR_THUMB", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_THUMB));
41393 PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_1", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_BAR_1));
41394 PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_2", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_BAR_2));
41395 PyDict_SetItemString(d,"HT_SCROLLBAR_LAST", SWIG_PyObj_FromInt((int)wxHT_SCROLLBAR_LAST));
41396 PyDict_SetItemString(d,"HT_WINDOW_OUTSIDE", SWIG_PyObj_FromInt((int)wxHT_WINDOW_OUTSIDE));
41397 PyDict_SetItemString(d,"HT_WINDOW_INSIDE", SWIG_PyObj_FromInt((int)wxHT_WINDOW_INSIDE));
41398 PyDict_SetItemString(d,"HT_WINDOW_VERT_SCROLLBAR", SWIG_PyObj_FromInt((int)wxHT_WINDOW_VERT_SCROLLBAR));
41399 PyDict_SetItemString(d,"HT_WINDOW_HORZ_SCROLLBAR", SWIG_PyObj_FromInt((int)wxHT_WINDOW_HORZ_SCROLLBAR));
41400 PyDict_SetItemString(d,"HT_WINDOW_CORNER", SWIG_PyObj_FromInt((int)wxHT_WINDOW_CORNER));
41401 PyDict_SetItemString(d,"HT_MAX", SWIG_PyObj_FromInt((int)wxHT_MAX));
41402 PyDict_SetItemString(d,"MOD_NONE", SWIG_PyObj_FromInt((int)wxMOD_NONE));
41403 PyDict_SetItemString(d,"MOD_ALT", SWIG_PyObj_FromInt((int)wxMOD_ALT));
41404 PyDict_SetItemString(d,"MOD_CONTROL", SWIG_PyObj_FromInt((int)wxMOD_CONTROL));
41405 PyDict_SetItemString(d,"MOD_SHIFT", SWIG_PyObj_FromInt((int)wxMOD_SHIFT));
41406 PyDict_SetItemString(d,"MOD_WIN", SWIG_PyObj_FromInt((int)wxMOD_WIN));
41407 PyDict_SetItemString(d,"UPDATE_UI_NONE", SWIG_PyObj_FromInt((int)wxUPDATE_UI_NONE));
41408 PyDict_SetItemString(d,"UPDATE_UI_RECURSE", SWIG_PyObj_FromInt((int)wxUPDATE_UI_RECURSE));
41409 PyDict_SetItemString(d,"UPDATE_UI_FROMIDLE", SWIG_PyObj_FromInt((int)wxUPDATE_UI_FROMIDLE));
d14a1e28 41410 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
d03fd34d 41411 SWIG_addvarlink(SWIG_globals,(char*)"EmptyString",_wrap_EmptyString_get, _wrap_EmptyString_set);
8edf1c75
RD
41412 PyDict_SetItemString(d,"BITMAP_TYPE_INVALID", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_INVALID));
41413 PyDict_SetItemString(d,"BITMAP_TYPE_BMP", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_BMP));
41414 PyDict_SetItemString(d,"BITMAP_TYPE_ICO", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_ICO));
41415 PyDict_SetItemString(d,"BITMAP_TYPE_CUR", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_CUR));
41416 PyDict_SetItemString(d,"BITMAP_TYPE_XBM", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_XBM));
41417 PyDict_SetItemString(d,"BITMAP_TYPE_XBM_DATA", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_XBM_DATA));
41418 PyDict_SetItemString(d,"BITMAP_TYPE_XPM", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_XPM));
41419 PyDict_SetItemString(d,"BITMAP_TYPE_XPM_DATA", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_XPM_DATA));
41420 PyDict_SetItemString(d,"BITMAP_TYPE_TIF", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_TIF));
41421 PyDict_SetItemString(d,"BITMAP_TYPE_GIF", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_GIF));
41422 PyDict_SetItemString(d,"BITMAP_TYPE_PNG", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_PNG));
41423 PyDict_SetItemString(d,"BITMAP_TYPE_JPEG", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_JPEG));
41424 PyDict_SetItemString(d,"BITMAP_TYPE_PNM", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_PNM));
41425 PyDict_SetItemString(d,"BITMAP_TYPE_PCX", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_PCX));
41426 PyDict_SetItemString(d,"BITMAP_TYPE_PICT", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_PICT));
41427 PyDict_SetItemString(d,"BITMAP_TYPE_ICON", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_ICON));
41428 PyDict_SetItemString(d,"BITMAP_TYPE_ANI", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_ANI));
41429 PyDict_SetItemString(d,"BITMAP_TYPE_IFF", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_IFF));
41430 PyDict_SetItemString(d,"BITMAP_TYPE_MACCURSOR", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_MACCURSOR));
41431 PyDict_SetItemString(d,"BITMAP_TYPE_ANY", SWIG_PyObj_FromInt((int)wxBITMAP_TYPE_ANY));
41432 PyDict_SetItemString(d,"CURSOR_NONE", SWIG_PyObj_FromInt((int)wxCURSOR_NONE));
41433 PyDict_SetItemString(d,"CURSOR_ARROW", SWIG_PyObj_FromInt((int)wxCURSOR_ARROW));
41434 PyDict_SetItemString(d,"CURSOR_RIGHT_ARROW", SWIG_PyObj_FromInt((int)wxCURSOR_RIGHT_ARROW));
41435 PyDict_SetItemString(d,"CURSOR_BULLSEYE", SWIG_PyObj_FromInt((int)wxCURSOR_BULLSEYE));
41436 PyDict_SetItemString(d,"CURSOR_CHAR", SWIG_PyObj_FromInt((int)wxCURSOR_CHAR));
41437 PyDict_SetItemString(d,"CURSOR_CROSS", SWIG_PyObj_FromInt((int)wxCURSOR_CROSS));
41438 PyDict_SetItemString(d,"CURSOR_HAND", SWIG_PyObj_FromInt((int)wxCURSOR_HAND));
41439 PyDict_SetItemString(d,"CURSOR_IBEAM", SWIG_PyObj_FromInt((int)wxCURSOR_IBEAM));
41440 PyDict_SetItemString(d,"CURSOR_LEFT_BUTTON", SWIG_PyObj_FromInt((int)wxCURSOR_LEFT_BUTTON));
41441 PyDict_SetItemString(d,"CURSOR_MAGNIFIER", SWIG_PyObj_FromInt((int)wxCURSOR_MAGNIFIER));
41442 PyDict_SetItemString(d,"CURSOR_MIDDLE_BUTTON", SWIG_PyObj_FromInt((int)wxCURSOR_MIDDLE_BUTTON));
41443 PyDict_SetItemString(d,"CURSOR_NO_ENTRY", SWIG_PyObj_FromInt((int)wxCURSOR_NO_ENTRY));
41444 PyDict_SetItemString(d,"CURSOR_PAINT_BRUSH", SWIG_PyObj_FromInt((int)wxCURSOR_PAINT_BRUSH));
41445 PyDict_SetItemString(d,"CURSOR_PENCIL", SWIG_PyObj_FromInt((int)wxCURSOR_PENCIL));
41446 PyDict_SetItemString(d,"CURSOR_POINT_LEFT", SWIG_PyObj_FromInt((int)wxCURSOR_POINT_LEFT));
41447 PyDict_SetItemString(d,"CURSOR_POINT_RIGHT", SWIG_PyObj_FromInt((int)wxCURSOR_POINT_RIGHT));
41448 PyDict_SetItemString(d,"CURSOR_QUESTION_ARROW", SWIG_PyObj_FromInt((int)wxCURSOR_QUESTION_ARROW));
41449 PyDict_SetItemString(d,"CURSOR_RIGHT_BUTTON", SWIG_PyObj_FromInt((int)wxCURSOR_RIGHT_BUTTON));
41450 PyDict_SetItemString(d,"CURSOR_SIZENESW", SWIG_PyObj_FromInt((int)wxCURSOR_SIZENESW));
41451 PyDict_SetItemString(d,"CURSOR_SIZENS", SWIG_PyObj_FromInt((int)wxCURSOR_SIZENS));
41452 PyDict_SetItemString(d,"CURSOR_SIZENWSE", SWIG_PyObj_FromInt((int)wxCURSOR_SIZENWSE));
41453 PyDict_SetItemString(d,"CURSOR_SIZEWE", SWIG_PyObj_FromInt((int)wxCURSOR_SIZEWE));
41454 PyDict_SetItemString(d,"CURSOR_SIZING", SWIG_PyObj_FromInt((int)wxCURSOR_SIZING));
41455 PyDict_SetItemString(d,"CURSOR_SPRAYCAN", SWIG_PyObj_FromInt((int)wxCURSOR_SPRAYCAN));
41456 PyDict_SetItemString(d,"CURSOR_WAIT", SWIG_PyObj_FromInt((int)wxCURSOR_WAIT));
41457 PyDict_SetItemString(d,"CURSOR_WATCH", SWIG_PyObj_FromInt((int)wxCURSOR_WATCH));
41458 PyDict_SetItemString(d,"CURSOR_BLANK", SWIG_PyObj_FromInt((int)wxCURSOR_BLANK));
41459 PyDict_SetItemString(d,"CURSOR_DEFAULT", SWIG_PyObj_FromInt((int)wxCURSOR_DEFAULT));
41460 PyDict_SetItemString(d,"CURSOR_COPY_ARROW", SWIG_PyObj_FromInt((int)wxCURSOR_COPY_ARROW));
41461 PyDict_SetItemString(d,"CURSOR_ARROWWAIT", SWIG_PyObj_FromInt((int)wxCURSOR_ARROWWAIT));
41462 PyDict_SetItemString(d,"CURSOR_MAX", SWIG_PyObj_FromInt((int)wxCURSOR_MAX));
d14a1e28
RD
41463 SWIG_addvarlink(SWIG_globals,(char*)"DefaultPosition",_wrap_DefaultPosition_get, _wrap_DefaultPosition_set);
41464 SWIG_addvarlink(SWIG_globals,(char*)"DefaultSize",_wrap_DefaultSize_get, _wrap_DefaultSize_set);
8edf1c75
RD
41465 PyDict_SetItemString(d,"FromStart", SWIG_PyObj_FromInt((int)wxFromStart));
41466 PyDict_SetItemString(d,"FromCurrent", SWIG_PyObj_FromInt((int)wxFromCurrent));
41467 PyDict_SetItemString(d,"FromEnd", SWIG_PyObj_FromInt((int)wxFromEnd));
d14a1e28
RD
41468
41469 wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream");
41470
41471
41472 wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler");
41473
41474 SWIG_addvarlink(SWIG_globals,(char*)"NullImage",_wrap_NullImage_get, _wrap_NullImage_set);
41475 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BMP_FORMAT",_wrap_IMAGE_OPTION_BMP_FORMAT_get, _wrap_IMAGE_OPTION_BMP_FORMAT_set);
41476 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set);
41477 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set);
41478 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTION",_wrap_IMAGE_OPTION_RESOLUTION_get, _wrap_IMAGE_OPTION_RESOLUTION_set);
41479 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONUNIT",_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get, _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set);
8edf1c75
RD
41480 PyDict_SetItemString(d,"IMAGE_RESOLUTION_INCHES", SWIG_PyObj_FromInt((int)wxIMAGE_RESOLUTION_INCHES));
41481 PyDict_SetItemString(d,"IMAGE_RESOLUTION_CM", SWIG_PyObj_FromInt((int)wxIMAGE_RESOLUTION_CM));
41482 PyDict_SetItemString(d,"BMP_24BPP", SWIG_PyObj_FromInt((int)wxBMP_24BPP));
41483 PyDict_SetItemString(d,"BMP_8BPP", SWIG_PyObj_FromInt((int)wxBMP_8BPP));
41484 PyDict_SetItemString(d,"BMP_8BPP_GREY", SWIG_PyObj_FromInt((int)wxBMP_8BPP_GREY));
41485 PyDict_SetItemString(d,"BMP_8BPP_GRAY", SWIG_PyObj_FromInt((int)wxBMP_8BPP_GRAY));
41486 PyDict_SetItemString(d,"BMP_8BPP_RED", SWIG_PyObj_FromInt((int)wxBMP_8BPP_RED));
41487 PyDict_SetItemString(d,"BMP_8BPP_PALETTE", SWIG_PyObj_FromInt((int)wxBMP_8BPP_PALETTE));
41488 PyDict_SetItemString(d,"BMP_4BPP", SWIG_PyObj_FromInt((int)wxBMP_4BPP));
41489 PyDict_SetItemString(d,"BMP_1BPP", SWIG_PyObj_FromInt((int)wxBMP_1BPP));
41490 PyDict_SetItemString(d,"BMP_1BPP_BW", SWIG_PyObj_FromInt((int)wxBMP_1BPP_BW));
41491 PyDict_SetItemString(d,"EVENT_PROPAGATE_NONE", SWIG_PyObj_FromInt((int)wxEVENT_PROPAGATE_NONE));
41492 PyDict_SetItemString(d,"EVENT_PROPAGATE_MAX", SWIG_PyObj_FromInt((int)wxEVENT_PROPAGATE_MAX));
d14a1e28
RD
41493 PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL));
41494 PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST));
41495 PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST));
41496 PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED));
41497 PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED));
41498 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED));
41499 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED));
41500 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED));
41501 PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED));
41502 PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED));
41503 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED));
41504 PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED));
41505 PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED));
41506 PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED));
41507 PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED));
41508 PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED));
41509 PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED));
41510 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED));
41511 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER));
41512 PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN));
41513 PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP));
41514 PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN));
41515 PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP));
41516 PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN));
41517 PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP));
41518 PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION));
41519 PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW));
41520 PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW));
41521 PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK));
41522 PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK));
41523 PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK));
41524 PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS));
41525 PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS));
41526 PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS));
41527 PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL));
41528 PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN));
41529 PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP));
41530 PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN));
41531 PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP));
41532 PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN));
41533 PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP));
41534 PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION));
41535 PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW));
41536 PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW));
41537 PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK));
41538 PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK));
41539 PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK));
41540 PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR));
41541 PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK));
41542 PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY));
41543 PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN));
41544 PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP));
41545 PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY));
41546 PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR));
41547 PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP));
41548 PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM));
41549 PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP));
41550 PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN));
41551 PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP));
41552 PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN));
41553 PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK));
41554 PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE));
41555 PyDict_SetItemString(d, "wxEVT_SCROLL_ENDSCROLL", PyInt_FromLong(wxEVT_SCROLL_ENDSCROLL));
41556 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP));
41557 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM));
41558 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP));
41559 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN));
41560 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP));
41561 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN));
41562 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK));
41563 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE));
41564 PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE));
41565 PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE));
41566 PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW));
41567 PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION));
41568 PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION));
41569 PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP));
41570 PyDict_SetItemString(d, "wxEVT_POWER", PyInt_FromLong(wxEVT_POWER));
41571 PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE));
41572 PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE));
41573 PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY));
41574 PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW));
41575 PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE));
41576 PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE));
41577 PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED));
41578 PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT));
41579 PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND));
41580 PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT));
41581 PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON));
41582 PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN));
41583 PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE));
41584 PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT));
41585 PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU));
41586 PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED));
41587 PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED));
41588 PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED));
41589 PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE));
41590 PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED));
41591 PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES));
41592 PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM));
41593 PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM));
41594 PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM));
41595 PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG));
41596 PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE));
41597 PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI));
41598 PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING));
41599 PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING));
41600 PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK));
41601 PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK));
41602 PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK));
41603 PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK));
41604 PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS));
41605 PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS));
41606 PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER));
8edf1c75
RD
41607 PyDict_SetItemString(d,"MOUSE_BTN_ANY", SWIG_PyObj_FromInt((int)wxMOUSE_BTN_ANY));
41608 PyDict_SetItemString(d,"MOUSE_BTN_NONE", SWIG_PyObj_FromInt((int)wxMOUSE_BTN_NONE));
41609 PyDict_SetItemString(d,"MOUSE_BTN_LEFT", SWIG_PyObj_FromInt((int)wxMOUSE_BTN_LEFT));
41610 PyDict_SetItemString(d,"MOUSE_BTN_MIDDLE", SWIG_PyObj_FromInt((int)wxMOUSE_BTN_MIDDLE));
41611 PyDict_SetItemString(d,"MOUSE_BTN_RIGHT", SWIG_PyObj_FromInt((int)wxMOUSE_BTN_RIGHT));
41612 PyDict_SetItemString(d,"UPDATE_UI_PROCESS_ALL", SWIG_PyObj_FromInt((int)wxUPDATE_UI_PROCESS_ALL));
41613 PyDict_SetItemString(d,"UPDATE_UI_PROCESS_SPECIFIED", SWIG_PyObj_FromInt((int)wxUPDATE_UI_PROCESS_SPECIFIED));
41614 PyDict_SetItemString(d,"IDLE_PROCESS_ALL", SWIG_PyObj_FromInt((int)wxIDLE_PROCESS_ALL));
41615 PyDict_SetItemString(d,"IDLE_PROCESS_SPECIFIED", SWIG_PyObj_FromInt((int)wxIDLE_PROCESS_SPECIFIED));
41616 PyDict_SetItemString(d,"PYAPP_ASSERT_SUPPRESS", SWIG_PyObj_FromInt((int)wxPYAPP_ASSERT_SUPPRESS));
41617 PyDict_SetItemString(d,"PYAPP_ASSERT_EXCEPTION", SWIG_PyObj_FromInt((int)wxPYAPP_ASSERT_EXCEPTION));
41618 PyDict_SetItemString(d,"PYAPP_ASSERT_DIALOG", SWIG_PyObj_FromInt((int)wxPYAPP_ASSERT_DIALOG));
41619 PyDict_SetItemString(d,"PYAPP_ASSERT_LOG", SWIG_PyObj_FromInt((int)wxPYAPP_ASSERT_LOG));
41620 PyDict_SetItemString(d,"PRINT_WINDOWS", SWIG_PyObj_FromInt((int)wxPRINT_WINDOWS));
41621 PyDict_SetItemString(d,"PRINT_POSTSCRIPT", SWIG_PyObj_FromInt((int)wxPRINT_POSTSCRIPT));
41f1cec7 41622 SWIG_addvarlink(SWIG_globals,(char*)"NullAcceleratorTable",_wrap_NullAcceleratorTable_get, _wrap_NullAcceleratorTable_set);
423f194a 41623 SWIG_addvarlink(SWIG_globals,(char*)"PanelNameStr",_wrap_PanelNameStr_get, _wrap_PanelNameStr_set);
d14a1e28 41624 SWIG_addvarlink(SWIG_globals,(char*)"DefaultValidator",_wrap_DefaultValidator_get, _wrap_DefaultValidator_set);
d03fd34d 41625 SWIG_addvarlink(SWIG_globals,(char*)"ControlNameStr",_wrap_ControlNameStr_get, _wrap_ControlNameStr_set);
8edf1c75
RD
41626 PyDict_SetItemString(d,"FLEX_GROWMODE_NONE", SWIG_PyObj_FromInt((int)wxFLEX_GROWMODE_NONE));
41627 PyDict_SetItemString(d,"FLEX_GROWMODE_SPECIFIED", SWIG_PyObj_FromInt((int)wxFLEX_GROWMODE_SPECIFIED));
41628 PyDict_SetItemString(d,"FLEX_GROWMODE_ALL", SWIG_PyObj_FromInt((int)wxFLEX_GROWMODE_ALL));
d14a1e28 41629 SWIG_addvarlink(SWIG_globals,(char*)"DefaultSpan",_wrap_DefaultSpan_get, _wrap_DefaultSpan_set);
8edf1c75
RD
41630 PyDict_SetItemString(d,"Left", SWIG_PyObj_FromInt((int)wxLeft));
41631 PyDict_SetItemString(d,"Top", SWIG_PyObj_FromInt((int)wxTop));
41632 PyDict_SetItemString(d,"Right", SWIG_PyObj_FromInt((int)wxRight));
41633 PyDict_SetItemString(d,"Bottom", SWIG_PyObj_FromInt((int)wxBottom));
41634 PyDict_SetItemString(d,"Width", SWIG_PyObj_FromInt((int)wxWidth));
41635 PyDict_SetItemString(d,"Height", SWIG_PyObj_FromInt((int)wxHeight));
41636 PyDict_SetItemString(d,"Centre", SWIG_PyObj_FromInt((int)wxCentre));
41637 PyDict_SetItemString(d,"Center", SWIG_PyObj_FromInt((int)wxCenter));
41638 PyDict_SetItemString(d,"CentreX", SWIG_PyObj_FromInt((int)wxCentreX));
41639 PyDict_SetItemString(d,"CentreY", SWIG_PyObj_FromInt((int)wxCentreY));
41640 PyDict_SetItemString(d,"Unconstrained", SWIG_PyObj_FromInt((int)wxUnconstrained));
41641 PyDict_SetItemString(d,"AsIs", SWIG_PyObj_FromInt((int)wxAsIs));
41642 PyDict_SetItemString(d,"PercentOf", SWIG_PyObj_FromInt((int)wxPercentOf));
41643 PyDict_SetItemString(d,"Above", SWIG_PyObj_FromInt((int)wxAbove));
41644 PyDict_SetItemString(d,"Below", SWIG_PyObj_FromInt((int)wxBelow));
41645 PyDict_SetItemString(d,"LeftOf", SWIG_PyObj_FromInt((int)wxLeftOf));
41646 PyDict_SetItemString(d,"RightOf", SWIG_PyObj_FromInt((int)wxRightOf));
41647 PyDict_SetItemString(d,"SameAs", SWIG_PyObj_FromInt((int)wxSameAs));
41648 PyDict_SetItemString(d,"Absolute", SWIG_PyObj_FromInt((int)wxAbsolute));
d14a1e28
RD
41649
41650 // Initialize threading, some globals and such
41651 __wxPyPreStart(d);
41652
41653
41654 // Although these are defined in __version__ they need to be here too so
41655 // that an assert can be done to ensure that the wxPython and the wxWindows
41656 // versions match.
41657 PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION ));
41658 PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION ));
41659 PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER ));
41660
41661}
41662