]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/_core_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / msw / _core_wrap.cpp
CommitLineData
d55e5bfc
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
12#define SWIG_NOINCLUDE
13
14#ifdef __cplusplus
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27};
28#endif
29
30
31#include "Python.h"
32
33/*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41#define SWIG_TypeRegister SWIG_Python_TypeRegister
42#define SWIG_TypeCheck SWIG_Python_TypeCheck
43#define SWIG_TypeCast SWIG_Python_TypeCast
44#define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45#define SWIG_TypeName SWIG_Python_TypeName
46#define SWIG_TypeQuery SWIG_Python_TypeQuery
47#define SWIG_TypeClientData SWIG_Python_TypeClientData
48#define SWIG_PackData SWIG_Python_PackData
49#define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52/***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62#include <string.h>
63
64#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65# if defined(_MSC_VER) || defined(__GNUC__)
66# if defined(STATIC_LINKED)
67# define SWIGEXPORT(a) a
68# define SWIGIMPORT(a) extern a
69# else
70# define SWIGEXPORT(a) __declspec(dllexport) a
71# define SWIGIMPORT(a) extern a
72# endif
73# else
74# if defined(__BORLANDC__)
75# define SWIGEXPORT(a) a _export
76# define SWIGIMPORT(a) a _export
77# else
78# define SWIGEXPORT(a) a
79# define SWIGIMPORT(a) a
80# endif
81# endif
82#else
83# define SWIGEXPORT(a) a
84# define SWIGIMPORT(a) a
85#endif
86
87#ifdef SWIG_GLOBAL
88# define SWIGRUNTIME(a) SWIGEXPORT(a)
89#else
90# define SWIGRUNTIME(a) static a
91#endif
92
93#ifdef __cplusplus
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 {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108} swig_type_info;
109
110
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 *);
118SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122#ifdef __cplusplus
123}
124#endif
125
126/***********************************************************************
127 * pyrun.swg for wxPython
128 *
129 * Include only the function prototypes and such from SWIG's pyrun.swg,
130 * but not the runtime functions themselves. This helps keep the
131 * wrapper files clean of unnecessary stuff that is in the libpy.c file
132 * anyway.
133 *
134 ************************************************************************/
135
136#include "Python.h"
137
138#ifdef __cplusplus
139extern "C" {
140#endif
141
142#define SWIG_PY_INT 1
143#define SWIG_PY_FLOAT 2
144#define SWIG_PY_STRING 3
145#define SWIG_PY_POINTER 4
146#define SWIG_PY_BINARY 5
147
148/* Flags for pointer conversion */
149
150#define SWIG_POINTER_EXCEPTION 0x1
151#define SWIG_POINTER_DISOWN 0x2
152
153/* Exception handling in wrappers */
154#define SWIG_fail goto fail
155
156/* Constant information structure */
157typedef struct swig_const_info {
158 int type;
159 char *name;
160 long lvalue;
161 double dvalue;
162 void *pvalue;
163 swig_type_info **ptype;
164} swig_const_info;
165
166/* Common SWIG API */
167#define SWIG_ConvertPtr(obj, pp, type, flags) \
168 SWIG_Python_ConvertPtr(obj, pp, type, flags)
169#define SWIG_NewPointerObj(p, type, flags) \
170 SWIG_Python_NewPointerObj(p, type, flags)
171#define SWIG_MustGetPtr(p, type, argnum, flags) \
172 SWIG_Python_MustGetPtr(p, type, argnum, flags)
173
174/* Python-specific SWIG API */
175#define SWIG_newvarlink() \
176 SWIG_Python_newvarlink()
177#define SWIG_addvarlink(p, name, get_attr, set_attr) \
178 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
179#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
180 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
181#define SWIG_NewPackedObj(ptr, sz, type) \
182 SWIG_Python_NewPackedObj(ptr, sz, type)
183#define SWIG_InstallConstants(d, constants) \
184 SWIG_Python_InstallConstants(d, constants)
185
186typedef double (*py_objasdbl_conv)(PyObject *obj);
187
188SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
189SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
190SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
191SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
192SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
193SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
194SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
195SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
196
197
198/* Contract support */
199
200#define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
201
202#ifdef __cplusplus
203}
204#endif
205
206
207/* -------- TYPES TABLE (BEGIN) -------- */
208
209#define SWIGTYPE_p_wxLayoutConstraints swig_types[0]
210#define SWIGTYPE_p_wxRealPoint swig_types[1]
211#define SWIGTYPE_p_wxSizerItem swig_types[2]
212#define SWIGTYPE_p_wxGBSizerItem swig_types[3]
213#define SWIGTYPE_p_wxScrollEvent swig_types[4]
214#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[5]
215#define SWIGTYPE_p_wxSizer swig_types[6]
216#define SWIGTYPE_p_wxBoxSizer swig_types[7]
217#define SWIGTYPE_p_wxStaticBoxSizer swig_types[8]
218#define SWIGTYPE_p_wxGridBagSizer swig_types[9]
219#define SWIGTYPE_p_wxAcceleratorEntry swig_types[10]
220#define SWIGTYPE_p_wxUpdateUIEvent swig_types[11]
221#define SWIGTYPE_p_wxMenu swig_types[12]
222#define SWIGTYPE_p_wxEvent swig_types[13]
223#define SWIGTYPE_p_wxGridSizer swig_types[14]
224#define SWIGTYPE_p_wxFlexGridSizer swig_types[15]
225#define SWIGTYPE_p_wxInitDialogEvent swig_types[16]
226#define SWIGTYPE_p_wxItemContainer swig_types[17]
227#define SWIGTYPE_p_wxNcPaintEvent swig_types[18]
228#define SWIGTYPE_p_wxPaintEvent swig_types[19]
229#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[20]
230#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[21]
231#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[22]
232#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[23]
233#define SWIGTYPE_p_wxControl swig_types[24]
234#define SWIGTYPE_p_wxFont swig_types[25]
235#define SWIGTYPE_p_wxMenuBarBase swig_types[26]
236#define SWIGTYPE_p_wxSetCursorEvent swig_types[27]
237#define SWIGTYPE_p_wxFSFile swig_types[28]
238#define SWIGTYPE_p_wxCaret swig_types[29]
239#define SWIGTYPE_p_wxRegion swig_types[30]
240#define SWIGTYPE_p_wxPoint2D swig_types[31]
241#define SWIGTYPE_p_int swig_types[32]
242#define SWIGTYPE_p_wxSize swig_types[33]
243#define SWIGTYPE_p_wxDC swig_types[34]
244#define SWIGTYPE_p_wxPySizer swig_types[35]
245#define SWIGTYPE_p_wxVisualAttributes swig_types[36]
246#define SWIGTYPE_p_wxNotifyEvent swig_types[37]
247#define SWIGTYPE_p_wxPyEvent swig_types[38]
248#define SWIGTYPE_p_wxPropagationDisabler swig_types[39]
249#define SWIGTYPE_p_wxAppTraits swig_types[40]
250#define SWIGTYPE_p_wxArrayString swig_types[41]
251#define SWIGTYPE_p_wxShowEvent swig_types[42]
252#define SWIGTYPE_p_wxToolTip swig_types[43]
253#define SWIGTYPE_p_wxMaximizeEvent swig_types[44]
254#define SWIGTYPE_p_wxIconizeEvent swig_types[45]
255#define SWIGTYPE_p_wxActivateEvent swig_types[46]
256#define SWIGTYPE_p_wxMoveEvent swig_types[47]
257#define SWIGTYPE_p_wxSizeEvent swig_types[48]
258#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[49]
259#define SWIGTYPE_p_wxWindowCreateEvent swig_types[50]
260#define SWIGTYPE_p_wxIdleEvent swig_types[51]
261#define SWIGTYPE_p_wxMenuItem swig_types[52]
262#define SWIGTYPE_p_wxStaticBox swig_types[53]
263#define SWIGTYPE_p_long swig_types[54]
264#define SWIGTYPE_p_wxTIFFHandler swig_types[55]
265#define SWIGTYPE_p_wxXPMHandler swig_types[56]
266#define SWIGTYPE_p_wxPNMHandler swig_types[57]
267#define SWIGTYPE_p_wxJPEGHandler swig_types[58]
268#define SWIGTYPE_p_wxPCXHandler swig_types[59]
269#define SWIGTYPE_p_wxGIFHandler swig_types[60]
270#define SWIGTYPE_p_wxPNGHandler swig_types[61]
271#define SWIGTYPE_p_wxANIHandler swig_types[62]
272#define SWIGTYPE_p_wxMemoryFSHandler swig_types[63]
273#define SWIGTYPE_p_wxEvtHandler swig_types[64]
274#define SWIGTYPE_p_wxCURHandler swig_types[65]
275#define SWIGTYPE_p_wxICOHandler swig_types[66]
276#define SWIGTYPE_p_wxBMPHandler swig_types[67]
277#define SWIGTYPE_p_wxImageHandler swig_types[68]
278#define SWIGTYPE_p_wxFileSystemHandler swig_types[69]
279#define SWIGTYPE_p_wxPyFileSystemHandler swig_types[70]
280#define SWIGTYPE_p_wxInternetFSHandler swig_types[71]
281#define SWIGTYPE_p_wxZipFSHandler swig_types[72]
282#define SWIGTYPE_p_wxRect swig_types[73]
283#define SWIGTYPE_p_wxGBSpan swig_types[74]
284#define SWIGTYPE_p_wxPropagateOnce swig_types[75]
285#define SWIGTYPE_p_wxAcceleratorTable swig_types[76]
286#define SWIGTYPE_p_char swig_types[77]
287#define SWIGTYPE_p_wxGBPosition swig_types[78]
288#define SWIGTYPE_p_wxImage swig_types[79]
289#define SWIGTYPE_p_wxFrame swig_types[80]
290#define SWIGTYPE_p_wxScrollWinEvent swig_types[81]
291#define SWIGTYPE_p_wxImageHistogram swig_types[82]
292#define SWIGTYPE_p_byte swig_types[83]
293#define SWIGTYPE_p_wxPoint swig_types[84]
294#define SWIGTYPE_p_wxCursor swig_types[85]
295#define SWIGTYPE_p_wxObject swig_types[86]
296#define SWIGTYPE_p_wxPyInputStream swig_types[87]
297#define SWIGTYPE_p_wxOutputStream swig_types[88]
298#define SWIGTYPE_p_wxInputStream swig_types[89]
299#define SWIGTYPE_p_wxDateTime swig_types[90]
300#define SWIGTYPE_p_wxKeyEvent swig_types[91]
301#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[92]
302#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[93]
303#define SWIGTYPE_p_wxWindow swig_types[94]
304#define SWIGTYPE_p_wxMenuBar swig_types[95]
305#define SWIGTYPE_p_wxFileSystem swig_types[96]
306#define SWIGTYPE_p_wxBitmap swig_types[97]
307#define SWIGTYPE_p_wxMenuEvent swig_types[98]
308#define SWIGTYPE_p_wxContextMenuEvent swig_types[99]
309#define SWIGTYPE_p_unsigned_char swig_types[100]
310#define SWIGTYPE_p_wxCloseEvent swig_types[101]
311#define SWIGTYPE_p_wxEraseEvent swig_types[102]
312#define SWIGTYPE_p_wxMouseEvent swig_types[103]
313#define SWIGTYPE_p_wxPyApp swig_types[104]
314#define SWIGTYPE_p_wxCommandEvent swig_types[105]
315#define SWIGTYPE_p_wxPyCommandEvent swig_types[106]
316#define SWIGTYPE_p_wxPyDropTarget swig_types[107]
317#define SWIGTYPE_p_wxChildFocusEvent swig_types[108]
318#define SWIGTYPE_p_wxFocusEvent swig_types[109]
319#define SWIGTYPE_p_wxDropFilesEvent swig_types[110]
320#define SWIGTYPE_p_wxControlWithItems swig_types[111]
321#define SWIGTYPE_p_wxColour swig_types[112]
322#define SWIGTYPE_p_wxValidator swig_types[113]
323#define SWIGTYPE_p_wxPyValidator swig_types[114]
324static swig_type_info *swig_types[116];
325
326/* -------- TYPES TABLE (END) -------- */
327
328
329/*-----------------------------------------------
330 @(target):= _core_.so
331 ------------------------------------------------*/
332#define SWIG_init init_core_
333
334#define SWIG_name "_core_"
335
336/* Auxiliar swig macros */
337
338#ifdef __cplusplus
339#define SWIGSTATICINLINE(a) static inline a
340#define SWIGSTATIC(a) static a
341#define swig_new_array(type, size) (new type[(size)])
342#define swig_delete_array(cptr) delete[] cptr
343#define swig_const_cast(type,a) const_cast<type>(a)
344#define swig_static_cast(type,a) static_cast<type>(a)
345#define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a)
346
347#ifdef HAVE_NUMERIC_CAST
348#define swig_numeric_cast(type,a) numeric_cast<type>(a)
349#else
350#define swig_numeric_cast(type,a) static_cast<type>(a)
351#endif
352
353#else /* C case */
354
355#define SWIGSTATICINLINE(a) static a
356#define SWIGSTATIC(a) static a
357#define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type)))
358#define swig_delete_array(cptr) free((char*)cptr)
359#define swig_const_cast(type,a) (type)(a)
360#define swig_static_cast(type,a) (type)(a)
361#define swig_reinterpret_cast(type,a) (type)(a)
362#define swig_numeric_cast(type,a) (type)(a)
363
364#endif /* __cplusplus */
365
366
367#define SWIG_FromSignedChar PyInt_FromLong
368#define SWIG_FromUnsignedChar PyInt_FromLong
369#define SWIG_FromShort PyInt_FromLong
370#define SWIG_FromUnsignedShort PyInt_FromLong
371#define SWIG_FromInt PyInt_FromLong
372#define SWIG_FromLong PyInt_FromLong
373#define SWIG_FromFloat PyFloat_FromDouble
374#define SWIG_FromDouble PyFloat_FromDouble
375#define SWIG_FromFloat PyFloat_FromDouble
376#define SWIG_FromDouble PyFloat_FromDouble
377
378
379#include "wx/wxPython/wxPython_int.h"
380#include "wx/wxPython/pyclasses.h"
381
382
383#ifndef wxPyUSE_EXPORT
384// Helper functions for dealing with SWIG objects and such. These are
385// located here so they know about the SWIG types and functions declared
386// in the wrapper code.
387
388#include <wx/hashmap.h>
389WX_DECLARE_STRING_HASH_MAP( swig_type_info*, wxPyTypeInfoHashMap );
390
391
392// Maintains a hashmap of className to swig_type_info pointers. Given the
393// name of a class either looks up the type info in the cache, or scans the
394// SWIG tables for it.
395extern PyObject* wxPyPtrTypeMap;
396static
397swig_type_info* wxPyFindSwigType(const wxChar* className) {
398
399 static wxPyTypeInfoHashMap* typeInfoCache = NULL;
400
401 if (typeInfoCache == NULL)
402 typeInfoCache = new wxPyTypeInfoHashMap;
403
404 wxString name(className);
405 swig_type_info* swigType = (*typeInfoCache)[name];
406
407 if (! swigType) {
408 // it wasn't in the cache, so look it up from SWIG
409 name.Append(wxT(" *"));
410 swigType = SWIG_Python_TypeQuery(name.mb_str());
411
412 // if it still wasn't found, try looking for a mapped name
413 if (!swigType) {
414 PyObject* item;
415 name = className;
416
417 if ((item = PyDict_GetItemString(wxPyPtrTypeMap,
418 (char*)(const char*)name.mbc_str())) != NULL) {
419 name = wxString(PyString_AsString(item), *wxConvCurrent);
420 name.Append(wxT(" *"));
421 swigType = SWIG_Python_TypeQuery(name.mb_str());
422 }
423 }
424 if (swigType) {
425 // and add it to the map if found
426 (*typeInfoCache)[className] = swigType;
427 }
428 }
429 return swigType;
430}
431
432
433// Check if a class name is a type known to SWIG
434bool wxPyCheckSwigType(const wxChar* className) {
435
436 swig_type_info* swigType = wxPyFindSwigType(className);
437 return swigType != NULL;
438}
439
440
441// Given a pointer to a C++ object and a class name, construct a Python proxy
442// object for it.
443PyObject* wxPyConstructObject(void* ptr,
444 const wxChar* className,
445 int setThisOwn) {
446
447 swig_type_info* swigType = wxPyFindSwigType(className);
448 wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConstructObject"));
449
450 return SWIG_Python_NewPointerObj(ptr, swigType, setThisOwn);
451}
452
453
454// Extract a pointer to the wrapped C++ object from a Python proxy object.
455// Ensures that the proxy object is of the specified (or derived) type. If
456// not able to perform the conversion then a Python exception is set and the
457// error should be handled properly in the caller. Returns True on success.
458bool wxPyConvertSwigPtr(PyObject* obj, void **ptr,
459 const wxChar* className) {
460
461 swig_type_info* swigType = wxPyFindSwigType(className);
462 wxCHECK_MSG(swigType != NULL, False, wxT("Unknown type in wxPyConvertSwigPtr"));
463
464 return SWIG_Python_ConvertPtr(obj, ptr, swigType, SWIG_POINTER_EXCEPTION) != -1;
465}
466
467
468// Make a SWIGified pointer object suitable for a .this attribute
469PyObject* wxPyMakeSwigPtr(void* ptr, const wxChar* className) {
470
471 PyObject* robj = NULL;
472
473 swig_type_info* swigType = wxPyFindSwigType(className);
474 wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConvertSwigPtr"));
475
476#ifdef SWIG_COBJECT_TYPES
477 robj = PyCObject_FromVoidPtrAndDesc((void *) ptr, (char *) swigType->name, NULL);
478#else
479 {
480 char result[1024];
481 char *r = result;
482 *(r++) = '_';
483 r = SWIG_Python_PackData(r, &ptr, sizeof(void *));
484 strcpy(r, swigType->name);
485 robj = PyString_FromString(result);
486 }
487#endif
488
489 return robj;
490}
491
492
493
494
495// Export a C API in a struct. Other modules will be able to load this from
496// the wx._core_ module and will then have safe access to these functions,
497// even if they are located in another shared library.
498static wxPyCoreAPI API = {
499
500 (p_SWIG_Python_TypeRegister_t)SWIG_Python_TypeRegister,
501 (p_SWIG_Python_TypeCheck_t)SWIG_Python_TypeCheck,
502 (p_SWIG_Python_TypeCast_t)SWIG_Python_TypeCast,
503 (p_SWIG_Python_TypeDynamicCast_t)SWIG_Python_TypeDynamicCast,
504 (p_SWIG_Python_TypeName_t)SWIG_Python_TypeName,
505 (p_SWIG_Python_TypeQuery_t)SWIG_Python_TypeQuery,
506 (p_SWIG_Python_TypeClientData_t)SWIG_Python_TypeClientData,
507 (p_SWIG_Python_newvarlink_t)SWIG_Python_newvarlink,
508 (p_SWIG_Python_addvarlink_t)SWIG_Python_addvarlink,
509 (p_SWIG_Python_ConvertPtr_t)SWIG_Python_ConvertPtr,
510 (p_SWIG_Python_ConvertPacked_t)SWIG_Python_ConvertPacked,
511 (p_SWIG_Python_PackData_t)SWIG_Python_PackData,
512 (p_SWIG_Python_UnpackData_t)SWIG_Python_UnpackData,
513 (p_SWIG_Python_NewPointerObj_t)SWIG_Python_NewPointerObj,
514 (p_SWIG_Python_NewPackedObj_t)SWIG_Python_NewPackedObj,
515 (p_SWIG_Python_InstallConstants_t)SWIG_Python_InstallConstants,
516 (p_SWIG_Python_MustGetPtr_t)SWIG_Python_MustGetPtr,
517
518 wxPyCheckSwigType,
519 wxPyConstructObject,
520 wxPyConvertSwigPtr,
521 wxPyMakeSwigPtr,
522
523 wxPyBeginAllowThreads,
524 wxPyEndAllowThreads,
525 wxPyBeginBlockThreads,
526 wxPyEndBlockThreads,
527
528 wxPy_ConvertList,
529
530 wxString_in_helper,
531 Py2wxString,
532 wx2PyString,
533
534 byte_LIST_helper,
535 int_LIST_helper,
536 long_LIST_helper,
537 string_LIST_helper,
538 wxPoint_LIST_helper,
539 wxBitmap_LIST_helper,
540 wxString_LIST_helper,
541 wxAcceleratorEntry_LIST_helper,
542
543 wxSize_helper,
544 wxPoint_helper,
545 wxRealPoint_helper,
546 wxRect_helper,
547 wxColour_helper,
548 wxPoint2D_helper,
549
550 wxPySimple_typecheck,
551 wxColour_typecheck,
552
553 wxPyCBH_setCallbackInfo,
554 wxPyCBH_findCallback,
555 wxPyCBH_callCallback,
556 wxPyCBH_callCallbackObj,
557 wxPyCBH_delete,
558
559 wxPyMake_wxObject,
560 wxPyMake_wxSizer,
561 wxPyPtrTypeMap_Add,
562 wxPy2int_seq_helper,
563 wxPy4int_seq_helper,
564 wxArrayString2PyList_helper,
565 wxArrayInt2PyList_helper,
566
567 wxPyClientData_dtor,
568 wxPyUserData_dtor,
569 wxPyOORClientData_dtor,
570
571 wxPyCBInputStream_create,
572
573 wxPyInstance_Check,
0439c23b
RD
574 wxPySwigInstance_Check,
575
576 wxPyCheckForApp
d55e5bfc
RD
577
578};
579
580#endif
581
582
583#if ! wxUSE_HOTKEY
584enum wxHotkeyModifier
585{
586 wxMOD_NONE = 0,
587 wxMOD_ALT = 1,
588 wxMOD_CONTROL = 2,
589 wxMOD_SHIFT = 4,
590 wxMOD_WIN = 8
591};
592#define wxEVT_HOTKEY 9999
593#endif
594
595 static const wxString wxPyEmptyString(wxEmptyString);
596wxString wxObject_GetClassName(wxObject *self){
597 return self->GetClassInfo()->GetClassName();
598 }
599void wxObject_Destroy(wxObject *self){
600 delete self;
601 }
602
603#ifndef __WXMAC__
604#define wxCURSOR_COPY_ARROW wxCURSOR_ARROW
605#endif
606
607
608#include <limits.h>
609
610
611SWIGSTATICINLINE(long)
612SWIG_CheckLongInRange(long value, const char* type,
613 long min_value, long max_value)
614{
615 if (!PyErr_Occurred()) {
616 if (value < min_value) {
617 PyObject *err =
618 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
619 value, type, min_value);
620
621 PyErr_SetObject(PyExc_OverflowError, err);
622 Py_DECREF(err);
623 } else if (value > max_value) {
624 PyObject *err =
625 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
626 value, type, max_value);
627 PyErr_SetObject(PyExc_OverflowError, err);
628 Py_DECREF(err);
629 }
630 }
631 return value;
632}
633
634
635SWIGSTATICINLINE(long)
636SWIG_AsLong(PyObject * obj)
637{
638 if (PyNumber_Check(obj))
639 return PyInt_AsLong(obj);
640 else {
641 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
642 obj->ob_type->tp_name);
643 PyErr_SetObject(PyExc_TypeError, errmsg);
644 Py_DECREF(errmsg);
645 return 0;
646 }
647}
648
649
650#if INT_MAX != LONG_MAX
651SWIGSTATICINLINE(int)
652SWIG_AsInt(PyObject *obj)
653{
654 return swig_numeric_cast(int,
655 SWIG_CheckLongInRange(SWIG_AsLong(obj),
656 "int", INT_MIN, INT_MAX));
657}
658#else
659#define SWIG_AsInt SWIG_AsLong
660#endif
661
662
663SWIGSTATICINLINE(int)
664SWIG_CheckInt(PyObject* obj)
665{
666 SWIG_AsInt(obj);
667 if (PyErr_Occurred()) {
668 PyErr_Clear();
669 return 0;
670 } else {
671 return 1;
672 }
673}
674
675PyObject *wxSize_Get(wxSize *self){
676 bool blocked = wxPyBeginBlockThreads();
677 PyObject* tup = PyTuple_New(2);
678 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
679 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
680 wxPyEndBlockThreads(blocked);
681 return tup;
682 }
683
684SWIGSTATICINLINE(double)
685SWIG_AsDouble(PyObject *obj)
686{
687 if (PyNumber_Check(obj))
688 return PyFloat_AsDouble(obj);
689 else {
690 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
691 obj->ob_type->tp_name);
692 PyErr_SetObject(PyExc_TypeError, errmsg);
693 Py_DECREF(errmsg);
694 return 0;
695 }
696}
697
698
699SWIGSTATICINLINE(int)
700SWIG_CheckDouble(PyObject* obj)
701{
702 SWIG_AsDouble(obj);
703 if (PyErr_Occurred()) {
704 PyErr_Clear();
705 return 0;
706 } else {
707 return 1;
708 }
709}
710
711void wxRealPoint_Set(wxRealPoint *self,double x,double y){
712 self->x = x;
713 self->y = y;
714 }
715PyObject *wxRealPoint_Get(wxRealPoint *self){
716 bool blocked = wxPyBeginBlockThreads();
717 PyObject* tup = PyTuple_New(2);
718 PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->x));
719 PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->y));
720 wxPyEndBlockThreads(blocked);
721 return tup;
722 }
723
724SWIGSTATICINLINE(int)
725SWIG_CheckLong(PyObject* obj)
726{
727 SWIG_AsLong(obj);
728 if (PyErr_Occurred()) {
729 PyErr_Clear();
730 return 0;
731 } else {
732 return 1;
733 }
734}
735
736void wxPoint_Set(wxPoint *self,long x,long y){
737 self->x = x;
738 self->y = y;
739 }
740PyObject *wxPoint_Get(wxPoint *self){
741 bool blocked = wxPyBeginBlockThreads();
742 PyObject* tup = PyTuple_New(2);
743 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
744 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
745 wxPyEndBlockThreads(blocked);
746 return tup;
747 }
748void wxRect_Set(wxRect *self,int x,int y,int width,int height){
749 self->x = x;
750 self->y = y;
751 self->width = width;
752 self->height = height;
753 }
754PyObject *wxRect_Get(wxRect *self){
755 bool blocked = wxPyBeginBlockThreads();
756 PyObject* tup = PyTuple_New(4);
757 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
758 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
759 PyTuple_SET_ITEM(tup, 2, PyInt_FromLong(self->width));
760 PyTuple_SET_ITEM(tup, 3, PyInt_FromLong(self->height));
761 wxPyEndBlockThreads(blocked);
762 return tup;
763 }
764
765 PyObject* wxIntersectRect(wxRect* r1, wxRect* r2) {
766 wxRegion reg1(*r1);
767 wxRegion reg2(*r2);
768 wxRect dest(0,0,0,0);
769 PyObject* obj;
770
771 reg1.Intersect(reg2);
772 dest = reg1.GetBox();
773
774 if (dest != wxRect(0,0,0,0)) {
775 bool blocked = wxPyBeginBlockThreads();
776 wxRect* newRect = new wxRect(dest);
777 obj = wxPyConstructObject((void*)newRect, wxT("wxRect"), True);
778 wxPyEndBlockThreads(blocked);
779 return obj;
780 }
781 Py_INCREF(Py_None);
782 return Py_None;
783 }
784
785
786static PyObject* t_output_helper(PyObject* target, PyObject* o) {
787 PyObject* o2;
788 PyObject* o3;
789
790 if (!target) {
791 target = o;
792 } else if (target == Py_None) {
793 Py_DECREF(Py_None);
794 target = o;
795 } else {
796 if (!PyTuple_Check(target)) {
797 o2 = target;
798 target = PyTuple_New(1);
799 PyTuple_SetItem(target, 0, o2);
800 }
801 o3 = PyTuple_New(1);
802 PyTuple_SetItem(o3, 0, o);
803
804 o2 = target;
805 target = PySequence_Concat(o2, o3);
806 Py_DECREF(o2);
807 Py_DECREF(o3);
808 }
809 return target;
810}
811
812void wxPoint2D_Set(wxPoint2D *self,double x,double y){
813 self->m_x = x;
814 self->m_y = y;
815 }
816PyObject *wxPoint2D_Get(wxPoint2D *self){
817 bool blocked = wxPyBeginBlockThreads();
818 PyObject* tup = PyTuple_New(2);
819 PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->m_x));
820 PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->m_y));
821 wxPyEndBlockThreads(blocked);
822 return tup;
823 }
824
825#include "wx/wxPython/pyistream.h"
826
827wxPyInputStream *new_wxPyInputStream(PyObject *p){
828 wxInputStream* wxis = wxPyCBInputStream::create(p);
829 if (wxis)
830 return new wxPyInputStream(wxis);
831 else
832 return NULL;
833 }
834
835SWIGSTATICINLINE(PyObject*)
836SWIG_FromChar(char c)
837{
838 return PyString_FromStringAndSize(&c,1);
839}
840
841
842SWIGSTATICINLINE(PyObject* )
843SWIG_FromUnsignedLong(unsigned long value)
844{
845 return (value > LONG_MAX) ?
846 PyLong_FromUnsignedLong(value)
847 : PyInt_FromLong(swig_numeric_cast(long,value));
848}
849
850
851/* returns '1' if the input is a raw char*, '0' if is a PyString */
852SWIGSTATIC(int)
853SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* size)
854{
855 static swig_type_info* pchar_info = 0;
856 int psize = 0;
857 if (!pchar_info) pchar_info = SWIG_TypeQuery("char *");
858
859 if (SWIG_ConvertPtr(obj, swig_reinterpret_cast(void **,cptr), pchar_info, 0) == -1) {
860 PyErr_Clear();
861 PyString_AsStringAndSize(obj, cptr, &psize);
862 if (PyErr_Occurred()) {
863 PyErr_Clear();
864 PyErr_SetString(PyExc_TypeError,"a string is expected");
865 }
866 if (size) *size = psize;
867 return 0;
868 } else {
869 if (size) *size = (*cptr) ? (strlen(*cptr) + 1) : 0;
870 return 1;
871 }
872}
873
874
875SWIGSTATIC(void)
876SWIG_AsCharArray(PyObject *obj, char* carray, size_t size)
877{
878 char* cptr; size_t csize;
879 SWIG_AsCharPtrAndSize(obj, &cptr, &csize);
880 if (PyErr_Occurred()) {
881 PyErr_Clear();
882 PyObject *err =
883 PyString_FromFormat("a char array of size %d is expected", size);
884 PyErr_SetObject(PyExc_TypeError, err);
885 Py_DECREF(err);
886 } else {
887 /* in C (but not in C++) you can do:
888
889 char x[5] = "hello";
890
891 ie, assing the array using an extra '0' char.
892 */
893#ifndef __cplusplus
894 if ((csize == size + 1) && !(cptr[csize-1])) --csize;
895#endif
896 if (csize > size) {
897 PyObject *err =
898 PyString_FromFormat("a char array of maximum size %d is expected",
899 size);
900 PyErr_SetObject(PyExc_TypeError, err);
901 Py_DECREF(err);
902 } else {
903 if (csize) memcpy(carray, cptr, csize);
904 if (csize < size) memset(carray + csize, 0, size - csize);
905 }
906 }
907}
908
909
910SWIGSTATICINLINE(char)
911SWIG_AsChar(PyObject *obj)
912{
913 char c = 0;
914 if (PyInt_Check(obj) || PyLong_Check(obj)) {
915 c = swig_numeric_cast(char,
916 SWIG_CheckLongInRange(SWIG_AsLong(obj),
917 "char", CHAR_MIN, CHAR_MAX));
918 } else {
919 SWIG_AsCharArray(obj, &c, 1);
920 if (PyErr_Occurred()) {
921 PyErr_Clear();
922 PyErr_SetString(PyExc_TypeError, "a char is expected");
923 }
924 }
925 return c;
926}
927
928
929SWIGSTATICINLINE(int)
930SWIG_CheckChar(PyObject* obj)
931{
932 SWIG_AsChar(obj);
933 if (PyErr_Occurred()) {
934 PyErr_Clear();
935 return 0;
936 } else {
937 return 1;
938 }
939}
940
941void wxOutputStream_write(wxOutputStream *self,PyObject *obj){
942 // We use only strings for the streams, not unicode
943 PyObject* str = PyObject_Str(obj);
944 if (! str) {
945 PyErr_SetString(PyExc_TypeError, "Unable to convert to string");
946 return;
947 }
948 self->Write(PyString_AS_STRING(str),
949 PyString_GET_SIZE(str));
950 Py_DECREF(str);
951 }
952
953#include "wx/wxPython/pyistream.h"
954
955
956class wxPyFileSystemHandler : public wxFileSystemHandler
957{
958public:
959 wxPyFileSystemHandler() : wxFileSystemHandler() {}
960
961 DEC_PYCALLBACK_BOOL_STRING_pure(CanOpen);
962 DEC_PYCALLBACK_FSF_FSSTRING_pure(OpenFile);
963 DEC_PYCALLBACK_STRING_STRINGINT_pure(FindFirst);
964 DEC_PYCALLBACK_STRING__pure(FindNext);
965
966 wxString GetProtocol(const wxString& location) {
967 return wxFileSystemHandler::GetProtocol(location);
968 }
969
970 wxString GetLeftLocation(const wxString& location) {
971 return wxFileSystemHandler::GetLeftLocation(location);
972 }
973
974 wxString GetAnchor(const wxString& location) {
975 return wxFileSystemHandler::GetAnchor(location);
976 }
977
978 wxString GetRightLocation(const wxString& location) {
979 return wxFileSystemHandler::GetRightLocation(location);
980 }
981
982 wxString GetMimeTypeFromExt(const wxString& location) {
983 return wxFileSystemHandler::GetMimeTypeFromExt(location);
984 }
985
986 PYPRIVATE;
987};
988
989
990IMP_PYCALLBACK_BOOL_STRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, CanOpen);
991IMP_PYCALLBACK_FSF_FSSTRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, OpenFile);
992IMP_PYCALLBACK_STRING_STRINGINT_pure(wxPyFileSystemHandler, wxFileSystemHandler, FindFirst);
993IMP_PYCALLBACK_STRING__pure(wxPyFileSystemHandler, wxFileSystemHandler, FindNext);
994
995
996SWIGSTATICINLINE(bool)
997SWIG_AsBool(PyObject *obj)
998{
999 return PyObject_IsTrue(obj) ? true : false;
1000}
1001
1002
1003SWIGSTATICINLINE(int)
1004SWIG_CheckBool(PyObject* obj)
1005{
1006 SWIG_AsBool(obj);
1007 if (PyErr_Occurred()) {
1008 PyErr_Clear();
1009 return 0;
1010 } else {
1011 return 1;
1012 }
1013}
1014
1015
1016 wxString wxFileSystem_URLToFileName(const wxString& url) {
1017 wxFileName fname = wxFileSystem::URLToFileName(url);
1018 return fname.GetFullPath();
1019 }
1020
1021
1022 void __wxMemoryFSHandler_AddFile_wxImage(const wxString& filename,
1023 wxImage& image,
1024 long type) {
1025 wxMemoryFSHandler::AddFile(filename, image, type);
1026 }
1027
1028 void __wxMemoryFSHandler_AddFile_wxBitmap(const wxString& filename,
1029 const wxBitmap& bitmap,
1030 long type) {
1031 wxMemoryFSHandler::AddFile(filename, bitmap, type);
1032 }
1033
1034 void __wxMemoryFSHandler_AddFile_Data(const wxString& filename,
1035 PyObject* data) {
1036 wxMemoryFSHandler::AddFile(filename,
1037 // TODO: Verify data type
1038 (void*)PyString_AsString(data),
1039 (size_t)PyString_Size(data));
1040 }
1041
1042
1043#include "wx/wxPython/pyistream.h"
1044
1045
1046SWIGSTATICINLINE(unsigned long)
1047SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type,
1048 unsigned long max_value)
1049{
1050 if (!PyErr_Occurred()) {
1051 if (value > max_value) {
1052 PyObject *err =
1053 PyString_FromFormat("value %ld is greater than '%s' minimum %ld",
1054 value, type, max_value);
1055 PyErr_SetObject(PyExc_OverflowError, err);
1056 Py_DECREF(err);
1057 }
1058 }
1059 return value;
1060}
1061
1062
1063SWIGSTATICINLINE(unsigned long)
1064SWIG_AsUnsignedLong(PyObject * obj)
1065{
1066 if (PyLong_Check(obj)) {
1067 return PyLong_AsUnsignedLong(obj);
1068 } else {
1069 long i = SWIG_AsLong(obj);
1070 if ( !PyErr_Occurred() && (i < 0)) {
1071 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
1072 }
1073 return i;
1074 }
1075}
1076
1077
1078SWIGSTATICINLINE(unsigned char)
1079SWIG_AsUnsignedChar(PyObject *obj)
1080{
1081 return swig_numeric_cast(unsigned char,
1082 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
1083 "unsigned char", UCHAR_MAX));
1084}
1085
1086
1087SWIGSTATICINLINE(int)
1088SWIG_CheckUnsignedChar(PyObject* obj)
1089{
1090 SWIG_AsUnsignedChar(obj);
1091 if (PyErr_Occurred()) {
1092 PyErr_Clear();
1093 return 0;
1094 } else {
1095 return 1;
1096 }
1097}
1098
c24da6d6 1099wxImage *new_wxImage(int width,int height,bool clear){
d55e5bfc
RD
1100 if (width > 0 && height > 0)
1101 return new wxImage(width, height, clear);
1102 else
1103 return new wxImage;
1104 }
d55e5bfc
RD
1105wxImage *new_wxImage(wxBitmap const &bitmap){
1106 return new wxImage(bitmap.ConvertToImage());
1107 }
1108wxImage *new_wxImage(int width,int height,unsigned char *data){
1109 // Copy the source data so the wxImage can clean it up later
1110 unsigned char* copy = (unsigned char*)malloc(width*height*3);
1111 if (copy == NULL) {
1112 PyErr_NoMemory();
1113 return NULL;
1114 }
1115 memcpy(copy, data, width*height*3);
1116 return new wxImage(width, height, copy, False);
1117 }
1118wxSize wxImage_GetSize(wxImage *self){
1119 wxSize size(self->GetWidth(), self->GetHeight());
1120 return size;
1121 }
1122PyObject *wxImage_GetData(wxImage *self){
1123 unsigned char* data = self->GetData();
1124 int len = self->GetWidth() * self->GetHeight() * 3;
1125 PyObject* rv;
1126 wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len));
1127 return rv;
1128 }
1129void wxImage_SetData(wxImage *self,PyObject *data){
1130 unsigned char* dataPtr;
1131
1132 if (! PyString_Check(data)) {
1133 PyErr_SetString(PyExc_TypeError, "Expected string object");
1134 return /* NULL */ ;
1135 }
1136
1137 size_t len = self->GetWidth() * self->GetHeight() * 3;
1138 dataPtr = (unsigned char*) malloc(len);
1139 wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) );
1140 self->SetData(dataPtr);
1141 // wxImage takes ownership of dataPtr...
1142 }
1143PyObject *wxImage_GetDataBuffer(wxImage *self){
1144 unsigned char* data = self->GetData();
1145 int len = self->GetWidth() * self->GetHeight() * 3;
1146 PyObject* rv;
1147 wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) );
1148 return rv;
1149 }
1150void wxImage_SetDataBuffer(wxImage *self,PyObject *data){
1151 unsigned char* buffer;
1152 int size;
1153
1154 bool blocked = wxPyBeginBlockThreads();
1155 if (!PyArg_Parse(data, "t#", &buffer, &size))
1156 goto done;
1157
1158 if (size != self->GetWidth() * self->GetHeight() * 3) {
1159 PyErr_SetString(PyExc_TypeError, "Incorrect buffer size");
1160 goto done;
1161 }
1162 self->SetData(buffer);
1163 done:
1164 wxPyEndBlockThreads(blocked);
1165 }
1166PyObject *wxImage_GetAlphaData(wxImage *self){
1167 unsigned char* data = self->GetAlpha();
1168 if (! data) {
1169 RETURN_NONE();
1170 } else {
1171 int len = self->GetWidth() * self->GetHeight();
1172 PyObject* rv;
1173 wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len) );
1174 return rv;
1175 }
1176 }
1177void wxImage_SetAlphaData(wxImage *self,PyObject *data){
1178 unsigned char* dataPtr;
1179
1180 if (! PyString_Check(data)) {
1181 PyErr_SetString(PyExc_TypeError, "Expected string object");
1182 return /* NULL */ ;
1183 }
1184
1185 size_t len = self->GetWidth() * self->GetHeight();
1186 dataPtr = (unsigned char*) malloc(len);
1187 wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) );
1188 self->SetAlpha(dataPtr);
1189 // wxImage takes ownership of dataPtr...
1190 }
1191PyObject *wxImage_GetAlphaBuffer(wxImage *self){
1192 unsigned char* data = self->GetAlpha();
1193 int len = self->GetWidth() * self->GetHeight();
1194 PyObject* rv;
1195 wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) );
1196 return rv;
1197 }
1198void wxImage_SetAlphaBuffer(wxImage *self,PyObject *data){
1199 unsigned char* buffer;
1200 int size;
1201
1202 bool blocked = wxPyBeginBlockThreads();
1203 if (!PyArg_Parse(data, "t#", &buffer, &size))
1204 goto done;
1205
1206 if (size != self->GetWidth() * self->GetHeight()) {
1207 PyErr_SetString(PyExc_TypeError, "Incorrect buffer size");
1208 goto done;
1209 }
1210 self->SetAlpha(buffer);
1211 done:
1212 wxPyEndBlockThreads(blocked);
1213 }
1214
1215SWIGSTATICINLINE(int)
1216SWIG_CheckUnsignedLong(PyObject* obj)
1217{
1218 SWIG_AsUnsignedLong(obj);
1219 if (PyErr_Occurred()) {
1220 PyErr_Clear();
1221 return 0;
1222 } else {
1223 return 1;
1224 }
1225}
1226
1227wxBitmap wxImage_ConvertToBitmap(wxImage *self){
1228 wxBitmap bitmap(*self);
1229 return bitmap;
1230 }
1231wxBitmap wxImage_ConvertToMonoBitmap(wxImage *self,unsigned char red,unsigned char green,unsigned char blue){
1232 wxImage mono = self->ConvertToMono( red, green, blue );
1233 wxBitmap bitmap( mono, 1 );
1234 return bitmap;
1235 }
1236 static const wxString wxPyIMAGE_OPTION_BMP_FORMAT(wxIMAGE_OPTION_BMP_FORMAT);
1237 static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_X(wxIMAGE_OPTION_CUR_HOTSPOT_X);
1238 static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_Y(wxIMAGE_OPTION_CUR_HOTSPOT_Y);
1239 static const wxString wxPyIMAGE_OPTION_RESOLUTION(wxIMAGE_OPTION_RESOLUTION);
1240 static const wxString wxPyIMAGE_OPTION_RESOLUTIONUNIT(wxIMAGE_OPTION_RESOLUTIONUNIT);
1241void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject *func){
1242 if (PyCallable_Check(func)) {
1243 self->Connect(id, lastId, eventType,
1244 (wxObjectEventFunction) &wxPyCallback::EventThunker,
1245 new wxPyCallback(func));
1246 }
1247 else if (func == Py_None) {
1248 self->Disconnect(id, lastId, eventType,
1249 (wxObjectEventFunction)
1250 &wxPyCallback::EventThunker);
1251 }
1252 else {
1253 wxPyBLOCK_THREADS(
1254 PyErr_SetString(PyExc_TypeError, "Expected callable object or None."));
1255 }
1256 }
1257bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType){
1258 return self->Disconnect(id, lastId, eventType,
1259 (wxObjectEventFunction)
1260 &wxPyCallback::EventThunker);
1261 }
1262void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject *_self){
1263 if (_self && _self != Py_None) {
1264 self->SetClientObject(new wxPyOORClientData(_self));
1265 }
1266 else {
1267 wxPyOORClientData* data = (wxPyOORClientData*)self->GetClientObject();
1268 if (data) {
1269 self->SetClientObject(NULL); // This will delete it too
1270 }
1271 }
1272 }
1273int wxKeyEvent_GetUniChar(wxKeyEvent *self){
1274 #if wxUSE_UNICODE
1275 return self->m_uniChar;
1276 #else
1277 return 0;
1278 #endif
1279 }
1280
1281#if UINT_MAX < LONG_MAX
1282#define SWIG_FromUnsignedInt SWIG_FromLong
1283#else
1284#define SWIG_FromUnsignedInt SWIG_FromUnsignedLong
1285#endif
1286
1287
1288#if UINT_MAX != ULONG_MAX
1289SWIGSTATICINLINE(unsigned int)
1290SWIG_AsUnsignedInt(PyObject *obj)
1291{
1292 return swig_numeric_cast(unsigned int,
1293 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
1294 "unsigned int", UINT_MAX));
1295}
1296#else
1297#define SWIG_AsUnsignedInt SWIG_AsUnsignedLong
1298#endif
1299
1300
1301SWIGSTATICINLINE(int)
1302SWIG_CheckUnsignedInt(PyObject* obj)
1303{
1304 SWIG_AsUnsignedInt(obj);
1305 if (PyErr_Occurred()) {
1306 PyErr_Clear();
1307 return 0;
1308 } else {
1309 return 1;
1310 }
1311}
1312
1313void wxSizeEvent_SetSize(wxSizeEvent *self,wxSize size){
1314 self->m_size = size;
1315 }
1316void wxMoveEvent_SetPosition(wxMoveEvent *self,wxPoint pos){
1317 self->m_pos = pos;
1318 }
1319PyObject *wxDropFilesEvent_GetFiles(wxDropFilesEvent *self){
1320 int count = self->GetNumberOfFiles();
1321 wxString* files = self->GetFiles();
1322 PyObject* list = PyList_New(count);
1323
1324 if (!list) {
1325 PyErr_SetString(PyExc_MemoryError, "Can't allocate list of files!");
1326 return NULL;
1327 }
1328
1329 for (int i=0; i<count; i++) {
1330 PyList_SetItem(list, i, wx2PyString(files[i]));
1331 }
1332 return list;
1333 }
1334
1335
1336wxPyApp *new_wxPyApp(){
1337 wxPythonApp = new wxPyApp();
1338 return wxPythonApp;
1339 }
1340
1341 void wxApp_CleanUp() {
1342 __wxPyCleanup();
1343 }
1344
1345
caef1a4d 1346 wxPyApp* wxPyGetApp() { return (wxPyApp*)wxTheApp; }
d55e5bfc
RD
1347
1348
1349
1350 static const wxString wxPyPanelNameStr(wxPanelNameStr);
1351wxVisualAttributes *new_wxVisualAttributes(){ return new wxVisualAttributes; }
f20a2e1f 1352void delete_wxVisualAttributes(wxVisualAttributes *self){ delete self; }
d55e5bfc
RD
1353PyObject *wxWindow_GetChildren(wxWindow *self){
1354 wxWindowList& list = self->GetChildren();
1355 return wxPy_ConvertList(&list);
1356 }
1357bool wxWindow_RegisterHotKey(wxWindow *self,int hotkeyId,int modifiers,int keycode){
1358 #if wxUSE_HOTKEY
1359 return self->RegisterHotKey(hotkeyId, modifiers, keycode);
1360 #else
1361 return False;
1362 #endif
1363 }
1364bool wxWindow_UnregisterHotKey(wxWindow *self,int hotkeyId){
1365
1366
1367
1368 return False;
1369
1370 }
1371long wxWindow_GetHandle(wxWindow *self){
1372 return wxPyGetWinHandle(self);
1373 }
1374
1375wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) {
1376 return wxWindow::FindWindowById(id, parent);
1377}
1378
1379wxWindow* wxFindWindowByName( const wxString& name,
1380 const wxWindow *parent = NULL ) {
1381 return wxWindow::FindWindowByName(name, parent);
1382}
1383
1384wxWindow* wxFindWindowByLabel( const wxString& label,
1385 const wxWindow *parent = NULL ) {
1386 return wxWindow::FindWindowByLabel(label, parent);
1387}
1388
1389
1390#ifdef __WXMSW__
1391#include <wx/msw/private.h> // to get wxGetWindowId
1392#endif
1393
1394
1395 wxWindow* wxWindow_FromHWND(wxWindow* parent, unsigned long _hWnd) {
1396#ifdef __WXMSW__
1397 WXHWND hWnd = (WXHWND)_hWnd;
1398 long id = wxGetWindowId(hWnd);
1399 wxWindow* win = new wxWindow;
1400 parent->AddChild(win);
1401 win->SetEventHandler(win);
1402 win->SetHWND(hWnd);
1403 win->SetId(id);
1404 win->SubclassWin(hWnd);
1405 win->AdoptAttributesFromHWND();
1406 win->SetupColours();
1407 return win;
1408#else
1409 wxPyRaiseNotImplemented();
1410 return NULL;
1411#endif
1412 }
1413
1414
1415IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate);
1416IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow);
1417IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow);
1418
1419IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator);
1420
1421void wxMenu_Destroy(wxMenu *self){ delete self; }
1422PyObject *wxMenu_GetMenuItems(wxMenu *self){
1423 wxMenuItemList& list = self->GetMenuItems();
1424 return wxPy_ConvertList(&list);
1425 }
1426 static const wxString wxPyControlNameStr(wxControlNameStr);
1427int wxItemContainer_Append(wxItemContainer *self,wxString const &item,PyObject *clientData){
1428 if (clientData) {
1429 wxPyClientData* data = new wxPyClientData(clientData);
1430 return self->Append(item, data);
1431 } else
1432 return self->Append(item);
1433 }
1434int wxItemContainer_Insert(wxItemContainer *self,wxString const &item,int pos,PyObject *clientData){
1435 if (clientData) {
1436 wxPyClientData* data = new wxPyClientData(clientData);
1437 return self->Insert(item, pos, data);
1438 } else
1439 return self->Insert(item, pos);
1440 }
1441PyObject *wxItemContainer_GetClientData(wxItemContainer *self,int n){
1442 wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n);
1443 if (data) {
1444 Py_INCREF(data->m_obj);
1445 return data->m_obj;
1446 } else {
1447 Py_INCREF(Py_None);
1448 return Py_None;
1449 }
1450 }
1451void wxItemContainer_SetClientData(wxItemContainer *self,int n,PyObject *clientData){
1452 wxPyClientData* data = new wxPyClientData(clientData);
1453 self->SetClientObject(n, data);
1454 }
1455
1456
248ed943
RD
1457wxSizerItem *new_wxSizerItem(wxWindow *window,int proportion,int flag,int border,PyObject *userData){
1458 wxPyUserData* data = NULL;
1459 if ( userData ) {
1460 bool blocked = wxPyBeginBlockThreads();
1461 data = new wxPyUserData(userData);
1462 wxPyEndBlockThreads(blocked);
1463 }
1464 return new wxSizerItem(window, proportion, flag, border, data);
1465 }
1466wxSizerItem *new_wxSizerItem(int width,int height,int proportion,int flag,int border,PyObject *userData){
1467 wxPyUserData* data = NULL;
1468 if ( userData ) {
1469 bool blocked = wxPyBeginBlockThreads();
1470 data = new wxPyUserData(userData);
1471 wxPyEndBlockThreads(blocked);
1472 }
1473 return new wxSizerItem(width, height, proportion, flag, border, data);
1474 }
1475wxSizerItem *new_wxSizerItem(wxSizer *sizer,int proportion,int flag,int border,PyObject *userData){
1476 wxPyUserData* data = NULL;
1477 if ( userData ) {
1478 bool blocked = wxPyBeginBlockThreads();
1479 data = new wxPyUserData(userData);
1480 wxPyEndBlockThreads(blocked);
1481 }
1482 return new wxSizerItem(sizer, proportion, flag, border, data);
1483 }
d55e5bfc
RD
1484
1485#include <float.h>
1486
1487SWIGSTATIC(float)
1488SWIG_FloatCast(double value)
1489{
1490 float f = 0;
1491 if (!PyErr_Occurred()) {
1492 if (value < FLT_MIN) {
1493 PyObject *err =
1494 PyString_FromFormat("value %g is less than float minimum %g",
1495 value, FLT_MIN);
1496 PyErr_SetObject(PyExc_OverflowError, err);
1497 Py_DECREF(err);
1498 } else if (value > FLT_MAX) {
1499 PyObject *err =
1500 PyString_FromFormat("value %g is greater than float maximum %g",
1501 value, FLT_MAX);
1502 PyErr_SetObject(PyExc_OverflowError, err);
1503 Py_DECREF(err);
1504 } else {
1505 f = swig_numeric_cast(float, value);
1506 }
1507 }
1508 return f;
1509}
1510
1511
1512SWIGSTATICINLINE(float)
1513SWIG_AsFloat(PyObject *obj)
1514{
1515 return SWIG_FloatCast(SWIG_AsDouble(obj));
1516}
1517
1518
1519SWIGSTATICINLINE(int)
1520SWIG_CheckFloat(PyObject* obj)
1521{
1522 SWIG_AsFloat(obj);
1523 if (PyErr_Occurred()) {
1524 PyErr_Clear();
1525 return 0;
1526 } else {
1527 return 1;
1528 }
1529}
1530
1531PyObject *wxSizerItem_GetUserData(wxSizerItem *self){
1532 wxPyUserData* data = (wxPyUserData*)self->GetUserData();
1533 if (data) {
1534 Py_INCREF(data->m_obj);
1535 return data->m_obj;
1536 } else {
1537 Py_INCREF(Py_None);
1538 return Py_None;
1539 }
1540 }
1541
1542// Figure out the type of the sizer item
1543
1544struct wxPySizerItemInfo {
1545 wxPySizerItemInfo()
1546 : window(NULL), sizer(NULL), gotSize(False),
1547 size(wxDefaultSize), gotPos(False), pos(-1)
1548 {}
1549
1550 wxWindow* window;
1551 wxSizer* sizer;
1552 bool gotSize;
1553 wxSize size;
1554 bool gotPos;
1555 int pos;
1556};
1557
1558static wxPySizerItemInfo wxPySizerItemTypeHelper(PyObject* item, bool checkSize, bool checkIdx ) {
1559
1560 wxPySizerItemInfo info;
1561 wxSize size;
1562 wxSize* sizePtr = &size;
1563
1564 // Find out what the type of the item is
1565 // try wxWindow
1566 if ( ! wxPyConvertSwigPtr(item, (void**)&info.window, wxT("wxWindow")) ) {
1567 PyErr_Clear();
1568 info.window = NULL;
1569
1570 // try wxSizer
1571 if ( ! wxPyConvertSwigPtr(item, (void**)&info.sizer, wxT("wxSizer")) ) {
1572 PyErr_Clear();
1573 info.sizer = NULL;
1574
1575 // try wxSize or (w,h)
1576 if ( checkSize && wxSize_helper(item, &sizePtr)) {
1577 info.size = *sizePtr;
1578 info.gotSize = True;
1579 }
1580
1581 // or a single int
1582 if (checkIdx && PyInt_Check(item)) {
1583 info.pos = PyInt_AsLong(item);
1584 info.gotPos = True;
1585 }
1586 }
1587 }
1588
1589 if ( !(info.window || info.sizer || (checkSize && info.gotSize) || (checkIdx && info.gotPos)) ) {
1590 // no expected type, figure out what kind of error message to generate
1591 if ( !checkSize && !checkIdx )
1592 PyErr_SetString(PyExc_TypeError, "wxWindow or wxSizer expected for item");
1593 else if ( checkSize && !checkIdx )
1594 PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) expected for item");
1595 else if ( !checkSize && checkIdx)
1596 PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer or int (position) expected for item");
1597 else
1598 // can this one happen?
1599 PyErr_SetString(PyExc_TypeError, "wxWindow, wxSizer, wxSize, or (w,h) or int (position) expected for item");
1600 }
1601
1602 return info;
1603}
1604
1605void wxSizer__setOORInfo(wxSizer *self,PyObject *_self){
1606 self->SetClientObject(new wxPyOORClientData(_self));
1607 }
1608void wxSizer_Add(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){
1609
1610 wxPyUserData* data = NULL;
1611 bool blocked = wxPyBeginBlockThreads();
1612 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False);
1613 if ( userData && (info.window || info.sizer || info.gotSize) )
1614 data = new wxPyUserData(userData);
1615 wxPyEndBlockThreads(blocked);
1616
1617 // Now call the real Add method if a valid item type was found
1618 if ( info.window )
1619 self->Add(info.window, proportion, flag, border, data);
1620 else if ( info.sizer )
1621 self->Add(info.sizer, proportion, flag, border, data);
1622 else if (info.gotSize)
1623 self->Add(info.size.GetWidth(), info.size.GetHeight(),
1624 proportion, flag, border, data);
1625 }
1626void wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion,int flag,int border,PyObject *userData){
1627
1628 wxPyUserData* data = NULL;
1629 bool blocked = wxPyBeginBlockThreads();
1630 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False);
1631 if ( userData && (info.window || info.sizer || info.gotSize) )
1632 data = new wxPyUserData(userData);
1633 wxPyEndBlockThreads(blocked);
1634
1635 // Now call the real Insert method if a valid item type was found
1636 if ( info.window )
1637 self->Insert(before, info.window, proportion, flag, border, data);
1638 else if ( info.sizer )
1639 self->Insert(before, info.sizer, proportion, flag, border, data);
1640 else if (info.gotSize)
1641 self->Insert(before, info.size.GetWidth(), info.size.GetHeight(),
1642 proportion, flag, border, data);
1643 }
1644void wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){
1645
1646 wxPyUserData* data = NULL;
1647 bool blocked = wxPyBeginBlockThreads();
1648 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False);
1649 if ( userData && (info.window || info.sizer || info.gotSize) )
1650 data = new wxPyUserData(userData);
1651 wxPyEndBlockThreads(blocked);
1652
1653 // Now call the real Prepend method if a valid item type was found
1654 if ( info.window )
1655 self->Prepend(info.window, proportion, flag, border, data);
1656 else if ( info.sizer )
1657 self->Prepend(info.sizer, proportion, flag, border, data);
1658 else if (info.gotSize)
1659 self->Prepend(info.size.GetWidth(), info.size.GetHeight(),
1660 proportion, flag, border, data);
1661 }
1662bool wxSizer_Remove(wxSizer *self,PyObject *item){
1663 bool blocked = wxPyBeginBlockThreads();
1664 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True);
1665 wxPyEndBlockThreads(blocked);
1666 if ( info.window )
1667 return self->Remove(info.window);
1668 else if ( info.sizer )
1669 return self->Remove(info.sizer);
1670 else if ( info.gotPos )
1671 return self->Remove(info.pos);
1672 else
1673 return False;
1674 }
1a6bba1e
RD
1675bool wxSizer_Detach(wxSizer *self,PyObject *item){
1676 bool blocked = wxPyBeginBlockThreads();
1677 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True);
1678 wxPyEndBlockThreads(blocked);
1679 if ( info.window )
1680 return self->Detach(info.window);
1681 else if ( info.sizer )
1682 return self->Detach(info.sizer);
1683 else if ( info.gotPos )
1684 return self->Detach(info.pos);
1685 else
1686 return False;
1687 }
d55e5bfc
RD
1688void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize const &size){
1689 bool blocked = wxPyBeginBlockThreads();
1690 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True);
1691 wxPyEndBlockThreads(blocked);
1692 if ( info.window )
1693 self->SetItemMinSize(info.window, size);
1694 else if ( info.sizer )
1695 self->SetItemMinSize(info.sizer, size);
1696 else if ( info.gotPos )
1697 self->SetItemMinSize(info.pos, size);
1698 }
1699PyObject *wxSizer_GetChildren(wxSizer *self){
1700 wxSizerItemList& list = self->GetChildren();
1701 return wxPy_ConvertList(&list);
1702 }
1703void wxSizer_Show(wxSizer *self,PyObject *item,bool show){
c24da6d6 1704 bool blocked = wxPyBeginBlockThreads();
248ed943 1705 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True);
c24da6d6 1706 wxPyEndBlockThreads(blocked);
d55e5bfc
RD
1707 if ( info.window )
1708 self->Show(info.window, show);
1709 else if ( info.sizer )
1710 self->Show(info.sizer, show);
248ed943
RD
1711 else if ( info.gotPos )
1712 self->Show(info.pos, show);
d55e5bfc
RD
1713 }
1714bool wxSizer_IsShown(wxSizer *self,PyObject *item){
c24da6d6 1715 bool blocked = wxPyBeginBlockThreads();
d55e5bfc 1716 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False);
c24da6d6 1717 wxPyEndBlockThreads(blocked);
d55e5bfc
RD
1718 if ( info.window )
1719 return self->IsShown(info.window);
1720 else if ( info.sizer )
1721 return self->IsShown(info.sizer);
248ed943
RD
1722 else if ( info.gotPos )
1723 return self->IsShown(info.pos);
d55e5bfc
RD
1724 else
1725 return False;
1726 }
1727
1728// See pyclasses.h
1729IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes);
1730IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin);
1731IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer);
1732
1733
1734
1735
1736bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj)
1737{
1738 if (source == Py_None) {
1739 **obj = wxGBPosition(-1,-1);
1740 return True;
1741 }
1742 return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition"));
1743}
1744
1745bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj)
1746{
1747 if (source == Py_None) {
1748 **obj = wxGBSpan(-1,-1);
1749 return True;
1750 }
1751 return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan"));
1752}
1753
1754
1755void wxGBPosition_Set(wxGBPosition *self,int row,int col){
1756 self->SetRow(row);
1757 self->SetCol(col);
1758 }
1759PyObject *wxGBPosition_Get(wxGBPosition *self){
1760 bool blocked = wxPyBeginBlockThreads();
1761 PyObject* tup = PyTuple_New(2);
1762 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow()));
1763 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol()));
1764 wxPyEndBlockThreads(blocked);
1765 return tup;
1766 }
1767void wxGBSpan_Set(wxGBSpan *self,int rowspan,int colspan){
1768 self->SetRowspan(rowspan);
1769 self->SetColspan(colspan);
1770 }
1771PyObject *wxGBSpan_Get(wxGBSpan *self){
1772 bool blocked = wxPyBeginBlockThreads();
1773 PyObject* tup = PyTuple_New(2);
1774 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRowspan()));
1775 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetColspan()));
1776 wxPyEndBlockThreads(blocked);
1777 return tup;
1778 }
248ed943
RD
1779wxGBSizerItem *new_wxGBSizerItem(wxWindow *window,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){
1780 wxPyUserData* data = NULL;
1781 if ( userData ) {
1782 bool blocked = wxPyBeginBlockThreads();
1783 data = new wxPyUserData(userData);
1784 wxPyEndBlockThreads(blocked);
1785 }
1786 return new wxGBSizerItem(window, pos, span, flag, border, data);
1787 }
1788wxGBSizerItem *new_wxGBSizerItem(wxSizer *sizer,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){
1789 wxPyUserData* data = NULL;
1790 if ( userData ) {
1791 bool blocked = wxPyBeginBlockThreads();
1792 data = new wxPyUserData(userData);
1793 wxPyEndBlockThreads(blocked);
1794 }
1795 return new wxGBSizerItem(sizer, pos, span, flag, border, data);
1796 }
1797wxGBSizerItem *new_wxGBSizerItem(int width,int height,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){
1798 wxPyUserData* data = NULL;
1799 if ( userData ) {
1800 bool blocked = wxPyBeginBlockThreads();
1801 data = new wxPyUserData(userData);
1802 wxPyEndBlockThreads(blocked);
1803 }
1804 return new wxGBSizerItem(width, height, pos, span, flag, border, data);
1805 }
1806wxGBPosition wxGBSizerItem_GetEndPos(wxGBSizerItem *self){
1807 int row, col;
1808 self->GetEndPos(row, col);
1809 return wxGBPosition(row, col);
1810 }
d55e5bfc
RD
1811bool wxGridBagSizer_Add(wxGridBagSizer *self,PyObject *item,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){
1812
1813 wxPyUserData* data = NULL;
1814 bool blocked = wxPyBeginBlockThreads();
1815 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False);
1816 if ( userData && (info.window || info.sizer || info.gotSize) )
1817 data = new wxPyUserData(userData);
1818 wxPyEndBlockThreads(blocked);
1819
1820 // Now call the real Add method if a valid item type was found
1821 if ( info.window )
1822 return self->Add(info.window, pos, span, flag, border, data);
1823 else if ( info.sizer )
1824 return self->Add(info.sizer, pos, span, flag, border, data);
1825 else if (info.gotSize)
1826 return self->Add(info.size.GetWidth(), info.size.GetHeight(),
1827 pos, span, flag, border, data);
1828 return False;
1829 }
1830
1831
1832#ifdef __cplusplus
1833extern "C" {
1834#endif
1835static int _wrap_EmptyString_set(PyObject *_val) {
1836 PyErr_SetString(PyExc_TypeError,"Variable EmptyString is read-only.");
1837 return 1;
1838}
1839
1840
1841static PyObject *_wrap_EmptyString_get() {
1842 PyObject *pyobj;
1843
1844 {
1845#if wxUSE_UNICODE
1846 pyobj = PyUnicode_FromWideChar((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len());
1847#else
1848 pyobj = PyString_FromStringAndSize((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len());
1849#endif
1850 }
1851 return pyobj;
1852}
1853
1854
1855static PyObject *_wrap_Object_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) {
1856 PyObject *resultobj;
1857 wxObject *arg1 = (wxObject *) 0 ;
1858 wxString result;
1859 PyObject * obj0 = 0 ;
1860 char *kwnames[] = {
1861 (char *) "self", NULL
1862 };
1863
1864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_GetClassName",kwnames,&obj0)) goto fail;
1865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject,
1866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1867 {
1868 PyThreadState* __tstate = wxPyBeginAllowThreads();
1869 result = wxObject_GetClassName(arg1);
1870
1871 wxPyEndAllowThreads(__tstate);
1872 if (PyErr_Occurred()) SWIG_fail;
1873 }
1874 {
1875#if wxUSE_UNICODE
1876 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
1877#else
1878 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
1879#endif
1880 }
1881 return resultobj;
1882 fail:
1883 return NULL;
1884}
1885
1886
1887static PyObject *_wrap_Object_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
1888 PyObject *resultobj;
1889 wxObject *arg1 = (wxObject *) 0 ;
1890 PyObject * obj0 = 0 ;
1891 char *kwnames[] = {
1892 (char *) "self", NULL
1893 };
1894
1895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_Destroy",kwnames,&obj0)) goto fail;
1896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject,
1897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1898 {
1899 PyThreadState* __tstate = wxPyBeginAllowThreads();
1900 wxObject_Destroy(arg1);
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 * Object_swigregister(PyObject *self, PyObject *args) {
1913 PyObject *obj;
1914 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1915 SWIG_TypeClientData(SWIGTYPE_p_wxObject, obj);
1916 Py_INCREF(obj);
1917 return Py_BuildValue((char *)"");
1918}
1919static PyObject *_wrap_Size_width_set(PyObject *self, PyObject *args, PyObject *kwargs) {
1920 PyObject *resultobj;
1921 wxSize *arg1 = (wxSize *) 0 ;
1922 int arg2 ;
1923 PyObject * obj0 = 0 ;
1924 PyObject * obj1 = 0 ;
1925 char *kwnames[] = {
1926 (char *) "self",(char *) "x", NULL
1927 };
1928
1929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_width_set",kwnames,&obj0,&obj1)) goto fail;
1930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
1931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1932 arg2 = (int) SWIG_AsInt(obj1);
1933 if (PyErr_Occurred()) SWIG_fail;
1934 if (arg1) (arg1)->x = arg2;
1935
1936 Py_INCREF(Py_None); resultobj = Py_None;
1937 return resultobj;
1938 fail:
1939 return NULL;
1940}
1941
1942
1943static PyObject *_wrap_Size_width_get(PyObject *self, PyObject *args, PyObject *kwargs) {
1944 PyObject *resultobj;
1945 wxSize *arg1 = (wxSize *) 0 ;
1946 int result;
1947 PyObject * obj0 = 0 ;
1948 char *kwnames[] = {
1949 (char *) "self", NULL
1950 };
1951
1952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_width_get",kwnames,&obj0)) goto fail;
1953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
1954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1955 result = (int) ((arg1)->x);
1956
1957 resultobj = SWIG_FromInt((int)result);
1958 return resultobj;
1959 fail:
1960 return NULL;
1961}
1962
1963
1964static PyObject *_wrap_Size_height_set(PyObject *self, PyObject *args, PyObject *kwargs) {
1965 PyObject *resultobj;
1966 wxSize *arg1 = (wxSize *) 0 ;
1967 int arg2 ;
1968 PyObject * obj0 = 0 ;
1969 PyObject * obj1 = 0 ;
1970 char *kwnames[] = {
1971 (char *) "self",(char *) "y", NULL
1972 };
1973
1974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_height_set",kwnames,&obj0,&obj1)) goto fail;
1975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
1976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1977 arg2 = (int) SWIG_AsInt(obj1);
1978 if (PyErr_Occurred()) SWIG_fail;
1979 if (arg1) (arg1)->y = arg2;
1980
1981 Py_INCREF(Py_None); resultobj = Py_None;
1982 return resultobj;
1983 fail:
1984 return NULL;
1985}
1986
1987
1988static PyObject *_wrap_Size_height_get(PyObject *self, PyObject *args, PyObject *kwargs) {
1989 PyObject *resultobj;
1990 wxSize *arg1 = (wxSize *) 0 ;
1991 int result;
1992 PyObject * obj0 = 0 ;
1993 char *kwnames[] = {
1994 (char *) "self", NULL
1995 };
1996
1997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_height_get",kwnames,&obj0)) goto fail;
1998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
1999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2000 result = (int) ((arg1)->y);
2001
2002 resultobj = SWIG_FromInt((int)result);
2003 return resultobj;
2004 fail:
2005 return NULL;
2006}
2007
2008
2009static PyObject *_wrap_new_Size(PyObject *self, PyObject *args, PyObject *kwargs) {
2010 PyObject *resultobj;
2011 int arg1 = (int) 0 ;
2012 int arg2 = (int) 0 ;
2013 wxSize *result;
2014 PyObject * obj0 = 0 ;
2015 PyObject * obj1 = 0 ;
2016 char *kwnames[] = {
2017 (char *) "w",(char *) "h", NULL
2018 };
2019
2020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Size",kwnames,&obj0,&obj1)) goto fail;
2021 if (obj0) {
2022 arg1 = (int) SWIG_AsInt(obj0);
2023 if (PyErr_Occurred()) SWIG_fail;
2024 }
2025 if (obj1) {
2026 arg2 = (int) SWIG_AsInt(obj1);
2027 if (PyErr_Occurred()) SWIG_fail;
2028 }
2029 {
2030 PyThreadState* __tstate = wxPyBeginAllowThreads();
2031 result = (wxSize *)new wxSize(arg1,arg2);
2032
2033 wxPyEndAllowThreads(__tstate);
2034 if (PyErr_Occurred()) SWIG_fail;
2035 }
2036 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 1);
2037 return resultobj;
2038 fail:
2039 return NULL;
2040}
2041
2042
2043static PyObject *_wrap_delete_Size(PyObject *self, PyObject *args, PyObject *kwargs) {
2044 PyObject *resultobj;
2045 wxSize *arg1 = (wxSize *) 0 ;
2046 PyObject * obj0 = 0 ;
2047 char *kwnames[] = {
2048 (char *) "self", NULL
2049 };
2050
2051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Size",kwnames,&obj0)) goto fail;
2052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2054 {
2055 PyThreadState* __tstate = wxPyBeginAllowThreads();
2056 delete arg1;
2057
2058 wxPyEndAllowThreads(__tstate);
2059 if (PyErr_Occurred()) SWIG_fail;
2060 }
2061 Py_INCREF(Py_None); resultobj = Py_None;
2062 return resultobj;
2063 fail:
2064 return NULL;
2065}
2066
2067
2068static PyObject *_wrap_Size___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
2069 PyObject *resultobj;
2070 wxSize *arg1 = (wxSize *) 0 ;
2071 wxSize *arg2 = 0 ;
2072 bool result;
2073 wxSize temp2 ;
2074 PyObject * obj0 = 0 ;
2075 PyObject * obj1 = 0 ;
2076 char *kwnames[] = {
2077 (char *) "self",(char *) "sz", NULL
2078 };
2079
2080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___eq__",kwnames,&obj0,&obj1)) goto fail;
2081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2083 {
2084 arg2 = &temp2;
2085 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2086 }
2087 {
2088 PyThreadState* __tstate = wxPyBeginAllowThreads();
2089 result = (bool)(arg1)->operator ==((wxSize const &)*arg2);
2090
2091 wxPyEndAllowThreads(__tstate);
2092 if (PyErr_Occurred()) SWIG_fail;
2093 }
2094 {
2095 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2096 }
2097 return resultobj;
2098 fail:
2099 return NULL;
2100}
2101
2102
2103static PyObject *_wrap_Size___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
2104 PyObject *resultobj;
2105 wxSize *arg1 = (wxSize *) 0 ;
2106 wxSize *arg2 = 0 ;
2107 bool result;
2108 wxSize temp2 ;
2109 PyObject * obj0 = 0 ;
2110 PyObject * obj1 = 0 ;
2111 char *kwnames[] = {
2112 (char *) "self",(char *) "sz", NULL
2113 };
2114
2115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___ne__",kwnames,&obj0,&obj1)) goto fail;
2116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2118 {
2119 arg2 = &temp2;
2120 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2121 }
2122 {
2123 PyThreadState* __tstate = wxPyBeginAllowThreads();
2124 result = (bool)(arg1)->operator !=((wxSize const &)*arg2);
2125
2126 wxPyEndAllowThreads(__tstate);
2127 if (PyErr_Occurred()) SWIG_fail;
2128 }
2129 {
2130 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2131 }
2132 return resultobj;
2133 fail:
2134 return NULL;
2135}
2136
2137
2138static PyObject *_wrap_Size___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
2139 PyObject *resultobj;
2140 wxSize *arg1 = (wxSize *) 0 ;
2141 wxSize *arg2 = 0 ;
2142 wxSize result;
2143 wxSize temp2 ;
2144 PyObject * obj0 = 0 ;
2145 PyObject * obj1 = 0 ;
2146 char *kwnames[] = {
2147 (char *) "self",(char *) "sz", NULL
2148 };
2149
2150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___add__",kwnames,&obj0,&obj1)) goto fail;
2151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2153 {
2154 arg2 = &temp2;
2155 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2156 }
2157 {
2158 PyThreadState* __tstate = wxPyBeginAllowThreads();
2159 result = (arg1)->operator +((wxSize const &)*arg2);
2160
2161 wxPyEndAllowThreads(__tstate);
2162 if (PyErr_Occurred()) SWIG_fail;
2163 }
2164 {
2165 wxSize * resultptr;
2166 resultptr = new wxSize((wxSize &) result);
2167 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
2168 }
2169 return resultobj;
2170 fail:
2171 return NULL;
2172}
2173
2174
2175static PyObject *_wrap_Size___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
2176 PyObject *resultobj;
2177 wxSize *arg1 = (wxSize *) 0 ;
2178 wxSize *arg2 = 0 ;
2179 wxSize result;
2180 wxSize temp2 ;
2181 PyObject * obj0 = 0 ;
2182 PyObject * obj1 = 0 ;
2183 char *kwnames[] = {
2184 (char *) "self",(char *) "sz", NULL
2185 };
2186
2187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___sub__",kwnames,&obj0,&obj1)) goto fail;
2188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2190 {
2191 arg2 = &temp2;
2192 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2193 }
2194 {
2195 PyThreadState* __tstate = wxPyBeginAllowThreads();
2196 result = (arg1)->operator -((wxSize const &)*arg2);
2197
2198 wxPyEndAllowThreads(__tstate);
2199 if (PyErr_Occurred()) SWIG_fail;
2200 }
2201 {
2202 wxSize * resultptr;
2203 resultptr = new wxSize((wxSize &) result);
2204 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
2205 }
2206 return resultobj;
2207 fail:
2208 return NULL;
2209}
2210
2211
2212static PyObject *_wrap_Size_IncTo(PyObject *self, PyObject *args, PyObject *kwargs) {
2213 PyObject *resultobj;
2214 wxSize *arg1 = (wxSize *) 0 ;
2215 wxSize *arg2 = 0 ;
2216 wxSize temp2 ;
2217 PyObject * obj0 = 0 ;
2218 PyObject * obj1 = 0 ;
2219 char *kwnames[] = {
2220 (char *) "self",(char *) "sz", NULL
2221 };
2222
2223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_IncTo",kwnames,&obj0,&obj1)) goto fail;
2224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2226 {
2227 arg2 = &temp2;
2228 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2229 }
2230 {
2231 PyThreadState* __tstate = wxPyBeginAllowThreads();
2232 (arg1)->IncTo((wxSize const &)*arg2);
2233
2234 wxPyEndAllowThreads(__tstate);
2235 if (PyErr_Occurred()) SWIG_fail;
2236 }
2237 Py_INCREF(Py_None); resultobj = Py_None;
2238 return resultobj;
2239 fail:
2240 return NULL;
2241}
2242
2243
2244static PyObject *_wrap_Size_DecTo(PyObject *self, PyObject *args, PyObject *kwargs) {
2245 PyObject *resultobj;
2246 wxSize *arg1 = (wxSize *) 0 ;
2247 wxSize *arg2 = 0 ;
2248 wxSize temp2 ;
2249 PyObject * obj0 = 0 ;
2250 PyObject * obj1 = 0 ;
2251 char *kwnames[] = {
2252 (char *) "self",(char *) "sz", NULL
2253 };
2254
2255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_DecTo",kwnames,&obj0,&obj1)) goto fail;
2256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2258 {
2259 arg2 = &temp2;
2260 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2261 }
2262 {
2263 PyThreadState* __tstate = wxPyBeginAllowThreads();
2264 (arg1)->DecTo((wxSize const &)*arg2);
2265
2266 wxPyEndAllowThreads(__tstate);
2267 if (PyErr_Occurred()) SWIG_fail;
2268 }
2269 Py_INCREF(Py_None); resultobj = Py_None;
2270 return resultobj;
2271 fail:
2272 return NULL;
2273}
2274
2275
2276static PyObject *_wrap_Size_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
2277 PyObject *resultobj;
2278 wxSize *arg1 = (wxSize *) 0 ;
2279 int arg2 ;
2280 int arg3 ;
2281 PyObject * obj0 = 0 ;
2282 PyObject * obj1 = 0 ;
2283 PyObject * obj2 = 0 ;
2284 char *kwnames[] = {
2285 (char *) "self",(char *) "w",(char *) "h", NULL
2286 };
2287
2288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
2289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2291 arg2 = (int) SWIG_AsInt(obj1);
2292 if (PyErr_Occurred()) SWIG_fail;
2293 arg3 = (int) SWIG_AsInt(obj2);
2294 if (PyErr_Occurred()) SWIG_fail;
2295 {
2296 PyThreadState* __tstate = wxPyBeginAllowThreads();
2297 (arg1)->Set(arg2,arg3);
2298
2299 wxPyEndAllowThreads(__tstate);
2300 if (PyErr_Occurred()) SWIG_fail;
2301 }
2302 Py_INCREF(Py_None); resultobj = Py_None;
2303 return resultobj;
2304 fail:
2305 return NULL;
2306}
2307
2308
2309static PyObject *_wrap_Size_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2310 PyObject *resultobj;
2311 wxSize *arg1 = (wxSize *) 0 ;
2312 int arg2 ;
2313 PyObject * obj0 = 0 ;
2314 PyObject * obj1 = 0 ;
2315 char *kwnames[] = {
2316 (char *) "self",(char *) "w", NULL
2317 };
2318
2319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2322 arg2 = (int) SWIG_AsInt(obj1);
2323 if (PyErr_Occurred()) SWIG_fail;
2324 {
2325 PyThreadState* __tstate = wxPyBeginAllowThreads();
2326 (arg1)->SetWidth(arg2);
2327
2328 wxPyEndAllowThreads(__tstate);
2329 if (PyErr_Occurred()) SWIG_fail;
2330 }
2331 Py_INCREF(Py_None); resultobj = Py_None;
2332 return resultobj;
2333 fail:
2334 return NULL;
2335}
2336
2337
2338static PyObject *_wrap_Size_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2339 PyObject *resultobj;
2340 wxSize *arg1 = (wxSize *) 0 ;
2341 int arg2 ;
2342 PyObject * obj0 = 0 ;
2343 PyObject * obj1 = 0 ;
2344 char *kwnames[] = {
2345 (char *) "self",(char *) "h", NULL
2346 };
2347
2348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetHeight",kwnames,&obj0,&obj1)) goto fail;
2349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2351 arg2 = (int) SWIG_AsInt(obj1);
2352 if (PyErr_Occurred()) SWIG_fail;
2353 {
2354 PyThreadState* __tstate = wxPyBeginAllowThreads();
2355 (arg1)->SetHeight(arg2);
2356
2357 wxPyEndAllowThreads(__tstate);
2358 if (PyErr_Occurred()) SWIG_fail;
2359 }
2360 Py_INCREF(Py_None); resultobj = Py_None;
2361 return resultobj;
2362 fail:
2363 return NULL;
2364}
2365
2366
2367static PyObject *_wrap_Size_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2368 PyObject *resultobj;
2369 wxSize *arg1 = (wxSize *) 0 ;
2370 int result;
2371 PyObject * obj0 = 0 ;
2372 char *kwnames[] = {
2373 (char *) "self", NULL
2374 };
2375
2376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetWidth",kwnames,&obj0)) goto fail;
2377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2379 {
2380 PyThreadState* __tstate = wxPyBeginAllowThreads();
2381 result = (int)((wxSize const *)arg1)->GetWidth();
2382
2383 wxPyEndAllowThreads(__tstate);
2384 if (PyErr_Occurred()) SWIG_fail;
2385 }
2386 resultobj = SWIG_FromInt((int)result);
2387 return resultobj;
2388 fail:
2389 return NULL;
2390}
2391
2392
2393static PyObject *_wrap_Size_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2394 PyObject *resultobj;
2395 wxSize *arg1 = (wxSize *) 0 ;
2396 int result;
2397 PyObject * obj0 = 0 ;
2398 char *kwnames[] = {
2399 (char *) "self", NULL
2400 };
2401
2402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetHeight",kwnames,&obj0)) goto fail;
2403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2405 {
2406 PyThreadState* __tstate = wxPyBeginAllowThreads();
2407 result = (int)((wxSize const *)arg1)->GetHeight();
2408
2409 wxPyEndAllowThreads(__tstate);
2410 if (PyErr_Occurred()) SWIG_fail;
2411 }
2412 resultobj = SWIG_FromInt((int)result);
2413 return resultobj;
2414 fail:
2415 return NULL;
2416}
2417
2418
2419static PyObject *_wrap_Size_IsFullySpecified(PyObject *self, PyObject *args, PyObject *kwargs) {
2420 PyObject *resultobj;
2421 wxSize *arg1 = (wxSize *) 0 ;
2422 bool result;
2423 PyObject * obj0 = 0 ;
2424 char *kwnames[] = {
2425 (char *) "self", NULL
2426 };
2427
2428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_IsFullySpecified",kwnames,&obj0)) goto fail;
2429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2431 {
2432 PyThreadState* __tstate = wxPyBeginAllowThreads();
2433 result = (bool)((wxSize const *)arg1)->IsFullySpecified();
2434
2435 wxPyEndAllowThreads(__tstate);
2436 if (PyErr_Occurred()) SWIG_fail;
2437 }
2438 {
2439 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2440 }
2441 return resultobj;
2442 fail:
2443 return NULL;
2444}
2445
2446
2447static PyObject *_wrap_Size_SetDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
2448 PyObject *resultobj;
2449 wxSize *arg1 = (wxSize *) 0 ;
2450 wxSize *arg2 = 0 ;
2451 wxSize temp2 ;
2452 PyObject * obj0 = 0 ;
2453 PyObject * obj1 = 0 ;
2454 char *kwnames[] = {
2455 (char *) "self",(char *) "size", NULL
2456 };
2457
2458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetDefaults",kwnames,&obj0,&obj1)) goto fail;
2459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2461 {
2462 arg2 = &temp2;
2463 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2464 }
2465 {
2466 PyThreadState* __tstate = wxPyBeginAllowThreads();
2467 (arg1)->SetDefaults((wxSize const &)*arg2);
2468
2469 wxPyEndAllowThreads(__tstate);
2470 if (PyErr_Occurred()) SWIG_fail;
2471 }
2472 Py_INCREF(Py_None); resultobj = Py_None;
2473 return resultobj;
2474 fail:
2475 return NULL;
2476}
2477
2478
2479static PyObject *_wrap_Size_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
2480 PyObject *resultobj;
2481 wxSize *arg1 = (wxSize *) 0 ;
2482 PyObject *result;
2483 PyObject * obj0 = 0 ;
2484 char *kwnames[] = {
2485 (char *) "self", NULL
2486 };
2487
2488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_Get",kwnames,&obj0)) goto fail;
2489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2491 {
2492 PyThreadState* __tstate = wxPyBeginAllowThreads();
2493 result = (PyObject *)wxSize_Get(arg1);
2494
2495 wxPyEndAllowThreads(__tstate);
2496 if (PyErr_Occurred()) SWIG_fail;
2497 }
2498 resultobj = result;
2499 return resultobj;
2500 fail:
2501 return NULL;
2502}
2503
2504
2505static PyObject * Size_swigregister(PyObject *self, PyObject *args) {
2506 PyObject *obj;
2507 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2508 SWIG_TypeClientData(SWIGTYPE_p_wxSize, obj);
2509 Py_INCREF(obj);
2510 return Py_BuildValue((char *)"");
2511}
2512static PyObject *_wrap_RealPoint_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
2513 PyObject *resultobj;
2514 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2515 double arg2 ;
2516 PyObject * obj0 = 0 ;
2517 PyObject * obj1 = 0 ;
2518 char *kwnames[] = {
2519 (char *) "self",(char *) "x", NULL
2520 };
2521
2522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_x_set",kwnames,&obj0,&obj1)) goto fail;
2523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2525 arg2 = (double) SWIG_AsDouble(obj1);
2526 if (PyErr_Occurred()) SWIG_fail;
2527 if (arg1) (arg1)->x = arg2;
2528
2529 Py_INCREF(Py_None); resultobj = Py_None;
2530 return resultobj;
2531 fail:
2532 return NULL;
2533}
2534
2535
2536static PyObject *_wrap_RealPoint_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
2537 PyObject *resultobj;
2538 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2539 double result;
2540 PyObject * obj0 = 0 ;
2541 char *kwnames[] = {
2542 (char *) "self", NULL
2543 };
2544
2545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_x_get",kwnames,&obj0)) goto fail;
2546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2548 result = (double) ((arg1)->x);
2549
2550 resultobj = SWIG_FromDouble((double)result);
2551 return resultobj;
2552 fail:
2553 return NULL;
2554}
2555
2556
2557static PyObject *_wrap_RealPoint_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
2558 PyObject *resultobj;
2559 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2560 double arg2 ;
2561 PyObject * obj0 = 0 ;
2562 PyObject * obj1 = 0 ;
2563 char *kwnames[] = {
2564 (char *) "self",(char *) "y", NULL
2565 };
2566
2567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_y_set",kwnames,&obj0,&obj1)) goto fail;
2568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2570 arg2 = (double) SWIG_AsDouble(obj1);
2571 if (PyErr_Occurred()) SWIG_fail;
2572 if (arg1) (arg1)->y = arg2;
2573
2574 Py_INCREF(Py_None); resultobj = Py_None;
2575 return resultobj;
2576 fail:
2577 return NULL;
2578}
2579
2580
2581static PyObject *_wrap_RealPoint_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
2582 PyObject *resultobj;
2583 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2584 double result;
2585 PyObject * obj0 = 0 ;
2586 char *kwnames[] = {
2587 (char *) "self", NULL
2588 };
2589
2590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_y_get",kwnames,&obj0)) goto fail;
2591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2593 result = (double) ((arg1)->y);
2594
2595 resultobj = SWIG_FromDouble((double)result);
2596 return resultobj;
2597 fail:
2598 return NULL;
2599}
2600
2601
2602static PyObject *_wrap_new_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
2603 PyObject *resultobj;
2604 double arg1 = (double) 0.0 ;
2605 double arg2 = (double) 0.0 ;
2606 wxRealPoint *result;
2607 PyObject * obj0 = 0 ;
2608 PyObject * obj1 = 0 ;
2609 char *kwnames[] = {
2610 (char *) "x",(char *) "y", NULL
2611 };
2612
2613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RealPoint",kwnames,&obj0,&obj1)) goto fail;
2614 if (obj0) {
2615 arg1 = (double) SWIG_AsDouble(obj0);
2616 if (PyErr_Occurred()) SWIG_fail;
2617 }
2618 if (obj1) {
2619 arg2 = (double) SWIG_AsDouble(obj1);
2620 if (PyErr_Occurred()) SWIG_fail;
2621 }
2622 {
2623 PyThreadState* __tstate = wxPyBeginAllowThreads();
2624 result = (wxRealPoint *)new wxRealPoint(arg1,arg2);
2625
2626 wxPyEndAllowThreads(__tstate);
2627 if (PyErr_Occurred()) SWIG_fail;
2628 }
2629 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRealPoint, 1);
2630 return resultobj;
2631 fail:
2632 return NULL;
2633}
2634
2635
2636static PyObject *_wrap_delete_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
2637 PyObject *resultobj;
2638 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2639 PyObject * obj0 = 0 ;
2640 char *kwnames[] = {
2641 (char *) "self", NULL
2642 };
2643
2644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RealPoint",kwnames,&obj0)) goto fail;
2645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2647 {
2648 PyThreadState* __tstate = wxPyBeginAllowThreads();
2649 delete arg1;
2650
2651 wxPyEndAllowThreads(__tstate);
2652 if (PyErr_Occurred()) SWIG_fail;
2653 }
2654 Py_INCREF(Py_None); resultobj = Py_None;
2655 return resultobj;
2656 fail:
2657 return NULL;
2658}
2659
2660
2661static PyObject *_wrap_RealPoint___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
2662 PyObject *resultobj;
2663 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2664 wxRealPoint *arg2 = 0 ;
2665 bool result;
2666 wxRealPoint temp2 ;
2667 PyObject * obj0 = 0 ;
2668 PyObject * obj1 = 0 ;
2669 char *kwnames[] = {
2670 (char *) "self",(char *) "pt", NULL
2671 };
2672
2673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___eq__",kwnames,&obj0,&obj1)) goto fail;
2674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2676 {
2677 arg2 = &temp2;
2678 if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail;
2679 }
2680 {
2681 PyThreadState* __tstate = wxPyBeginAllowThreads();
2682 result = (bool)(arg1)->operator ==((wxRealPoint const &)*arg2);
2683
2684 wxPyEndAllowThreads(__tstate);
2685 if (PyErr_Occurred()) SWIG_fail;
2686 }
2687 {
2688 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2689 }
2690 return resultobj;
2691 fail:
2692 return NULL;
2693}
2694
2695
2696static PyObject *_wrap_RealPoint___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
2697 PyObject *resultobj;
2698 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2699 wxRealPoint *arg2 = 0 ;
2700 bool result;
2701 wxRealPoint temp2 ;
2702 PyObject * obj0 = 0 ;
2703 PyObject * obj1 = 0 ;
2704 char *kwnames[] = {
2705 (char *) "self",(char *) "pt", NULL
2706 };
2707
2708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___ne__",kwnames,&obj0,&obj1)) goto fail;
2709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2711 {
2712 arg2 = &temp2;
2713 if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail;
2714 }
2715 {
2716 PyThreadState* __tstate = wxPyBeginAllowThreads();
2717 result = (bool)(arg1)->operator !=((wxRealPoint const &)*arg2);
2718
2719 wxPyEndAllowThreads(__tstate);
2720 if (PyErr_Occurred()) SWIG_fail;
2721 }
2722 {
2723 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2724 }
2725 return resultobj;
2726 fail:
2727 return NULL;
2728}
2729
2730
2731static PyObject *_wrap_RealPoint___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
2732 PyObject *resultobj;
2733 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2734 wxRealPoint *arg2 = 0 ;
2735 wxRealPoint result;
2736 wxRealPoint temp2 ;
2737 PyObject * obj0 = 0 ;
2738 PyObject * obj1 = 0 ;
2739 char *kwnames[] = {
2740 (char *) "self",(char *) "pt", NULL
2741 };
2742
2743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___add__",kwnames,&obj0,&obj1)) goto fail;
2744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2746 {
2747 arg2 = &temp2;
2748 if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail;
2749 }
2750 {
2751 PyThreadState* __tstate = wxPyBeginAllowThreads();
2752 result = (arg1)->operator +((wxRealPoint const &)*arg2);
2753
2754 wxPyEndAllowThreads(__tstate);
2755 if (PyErr_Occurred()) SWIG_fail;
2756 }
2757 {
2758 wxRealPoint * resultptr;
2759 resultptr = new wxRealPoint((wxRealPoint &) result);
2760 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1);
2761 }
2762 return resultobj;
2763 fail:
2764 return NULL;
2765}
2766
2767
2768static PyObject *_wrap_RealPoint___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
2769 PyObject *resultobj;
2770 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2771 wxRealPoint *arg2 = 0 ;
2772 wxRealPoint result;
2773 wxRealPoint temp2 ;
2774 PyObject * obj0 = 0 ;
2775 PyObject * obj1 = 0 ;
2776 char *kwnames[] = {
2777 (char *) "self",(char *) "pt", NULL
2778 };
2779
2780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___sub__",kwnames,&obj0,&obj1)) goto fail;
2781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2783 {
2784 arg2 = &temp2;
2785 if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail;
2786 }
2787 {
2788 PyThreadState* __tstate = wxPyBeginAllowThreads();
2789 result = (arg1)->operator -((wxRealPoint const &)*arg2);
2790
2791 wxPyEndAllowThreads(__tstate);
2792 if (PyErr_Occurred()) SWIG_fail;
2793 }
2794 {
2795 wxRealPoint * resultptr;
2796 resultptr = new wxRealPoint((wxRealPoint &) result);
2797 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1);
2798 }
2799 return resultobj;
2800 fail:
2801 return NULL;
2802}
2803
2804
2805static PyObject *_wrap_RealPoint_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
2806 PyObject *resultobj;
2807 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2808 double arg2 ;
2809 double arg3 ;
2810 PyObject * obj0 = 0 ;
2811 PyObject * obj1 = 0 ;
2812 PyObject * obj2 = 0 ;
2813 char *kwnames[] = {
2814 (char *) "self",(char *) "x",(char *) "y", NULL
2815 };
2816
2817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RealPoint_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
2818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2820 arg2 = (double) SWIG_AsDouble(obj1);
2821 if (PyErr_Occurred()) SWIG_fail;
2822 arg3 = (double) SWIG_AsDouble(obj2);
2823 if (PyErr_Occurred()) SWIG_fail;
2824 {
2825 PyThreadState* __tstate = wxPyBeginAllowThreads();
2826 wxRealPoint_Set(arg1,arg2,arg3);
2827
2828 wxPyEndAllowThreads(__tstate);
2829 if (PyErr_Occurred()) SWIG_fail;
2830 }
2831 Py_INCREF(Py_None); resultobj = Py_None;
2832 return resultobj;
2833 fail:
2834 return NULL;
2835}
2836
2837
2838static PyObject *_wrap_RealPoint_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
2839 PyObject *resultobj;
2840 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2841 PyObject *result;
2842 PyObject * obj0 = 0 ;
2843 char *kwnames[] = {
2844 (char *) "self", NULL
2845 };
2846
2847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_Get",kwnames,&obj0)) goto fail;
2848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2850 {
2851 PyThreadState* __tstate = wxPyBeginAllowThreads();
2852 result = (PyObject *)wxRealPoint_Get(arg1);
2853
2854 wxPyEndAllowThreads(__tstate);
2855 if (PyErr_Occurred()) SWIG_fail;
2856 }
2857 resultobj = result;
2858 return resultobj;
2859 fail:
2860 return NULL;
2861}
2862
2863
2864static PyObject * RealPoint_swigregister(PyObject *self, PyObject *args) {
2865 PyObject *obj;
2866 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2867 SWIG_TypeClientData(SWIGTYPE_p_wxRealPoint, obj);
2868 Py_INCREF(obj);
2869 return Py_BuildValue((char *)"");
2870}
2871static PyObject *_wrap_Point_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
2872 PyObject *resultobj;
2873 wxPoint *arg1 = (wxPoint *) 0 ;
2874 int arg2 ;
2875 PyObject * obj0 = 0 ;
2876 PyObject * obj1 = 0 ;
2877 char *kwnames[] = {
2878 (char *) "self",(char *) "x", NULL
2879 };
2880
2881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_x_set",kwnames,&obj0,&obj1)) goto fail;
2882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
2883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2884 arg2 = (int) SWIG_AsInt(obj1);
2885 if (PyErr_Occurred()) SWIG_fail;
2886 if (arg1) (arg1)->x = arg2;
2887
2888 Py_INCREF(Py_None); resultobj = Py_None;
2889 return resultobj;
2890 fail:
2891 return NULL;
2892}
2893
2894
2895static PyObject *_wrap_Point_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
2896 PyObject *resultobj;
2897 wxPoint *arg1 = (wxPoint *) 0 ;
2898 int result;
2899 PyObject * obj0 = 0 ;
2900 char *kwnames[] = {
2901 (char *) "self", NULL
2902 };
2903
2904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_x_get",kwnames,&obj0)) goto fail;
2905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
2906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2907 result = (int) ((arg1)->x);
2908
2909 resultobj = SWIG_FromInt((int)result);
2910 return resultobj;
2911 fail:
2912 return NULL;
2913}
2914
2915
2916static PyObject *_wrap_Point_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
2917 PyObject *resultobj;
2918 wxPoint *arg1 = (wxPoint *) 0 ;
2919 int arg2 ;
2920 PyObject * obj0 = 0 ;
2921 PyObject * obj1 = 0 ;
2922 char *kwnames[] = {
2923 (char *) "self",(char *) "y", NULL
2924 };
2925
2926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_y_set",kwnames,&obj0,&obj1)) goto fail;
2927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
2928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2929 arg2 = (int) SWIG_AsInt(obj1);
2930 if (PyErr_Occurred()) SWIG_fail;
2931 if (arg1) (arg1)->y = arg2;
2932
2933 Py_INCREF(Py_None); resultobj = Py_None;
2934 return resultobj;
2935 fail:
2936 return NULL;
2937}
2938
2939
2940static PyObject *_wrap_Point_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
2941 PyObject *resultobj;
2942 wxPoint *arg1 = (wxPoint *) 0 ;
2943 int result;
2944 PyObject * obj0 = 0 ;
2945 char *kwnames[] = {
2946 (char *) "self", NULL
2947 };
2948
2949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_y_get",kwnames,&obj0)) goto fail;
2950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
2951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2952 result = (int) ((arg1)->y);
2953
2954 resultobj = SWIG_FromInt((int)result);
2955 return resultobj;
2956 fail:
2957 return NULL;
2958}
2959
2960
2961static PyObject *_wrap_new_Point(PyObject *self, PyObject *args, PyObject *kwargs) {
2962 PyObject *resultobj;
2963 int arg1 = (int) 0 ;
2964 int arg2 = (int) 0 ;
2965 wxPoint *result;
2966 PyObject * obj0 = 0 ;
2967 PyObject * obj1 = 0 ;
2968 char *kwnames[] = {
2969 (char *) "x",(char *) "y", NULL
2970 };
2971
2972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point",kwnames,&obj0,&obj1)) goto fail;
2973 if (obj0) {
2974 arg1 = (int) SWIG_AsInt(obj0);
2975 if (PyErr_Occurred()) SWIG_fail;
2976 }
2977 if (obj1) {
2978 arg2 = (int) SWIG_AsInt(obj1);
2979 if (PyErr_Occurred()) SWIG_fail;
2980 }
2981 {
2982 PyThreadState* __tstate = wxPyBeginAllowThreads();
2983 result = (wxPoint *)new wxPoint(arg1,arg2);
2984
2985 wxPyEndAllowThreads(__tstate);
2986 if (PyErr_Occurred()) SWIG_fail;
2987 }
2988 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1);
2989 return resultobj;
2990 fail:
2991 return NULL;
2992}
2993
2994
2995static PyObject *_wrap_delete_Point(PyObject *self, PyObject *args, PyObject *kwargs) {
2996 PyObject *resultobj;
2997 wxPoint *arg1 = (wxPoint *) 0 ;
2998 PyObject * obj0 = 0 ;
2999 char *kwnames[] = {
3000 (char *) "self", NULL
3001 };
3002
3003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Point",kwnames,&obj0)) goto fail;
3004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3006 {
3007 PyThreadState* __tstate = wxPyBeginAllowThreads();
3008 delete arg1;
3009
3010 wxPyEndAllowThreads(__tstate);
3011 if (PyErr_Occurred()) SWIG_fail;
3012 }
3013 Py_INCREF(Py_None); resultobj = Py_None;
3014 return resultobj;
3015 fail:
3016 return NULL;
3017}
3018
3019
3020static PyObject *_wrap_Point___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
3021 PyObject *resultobj;
3022 wxPoint *arg1 = (wxPoint *) 0 ;
3023 wxPoint *arg2 = 0 ;
3024 bool result;
3025 wxPoint temp2 ;
3026 PyObject * obj0 = 0 ;
3027 PyObject * obj1 = 0 ;
3028 char *kwnames[] = {
3029 (char *) "self",(char *) "pt", NULL
3030 };
3031
3032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___eq__",kwnames,&obj0,&obj1)) goto fail;
3033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3035 {
3036 arg2 = &temp2;
3037 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3038 }
3039 {
3040 PyThreadState* __tstate = wxPyBeginAllowThreads();
3041 result = (bool)(arg1)->operator ==((wxPoint const &)*arg2);
3042
3043 wxPyEndAllowThreads(__tstate);
3044 if (PyErr_Occurred()) SWIG_fail;
3045 }
3046 {
3047 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3048 }
3049 return resultobj;
3050 fail:
3051 return NULL;
3052}
3053
3054
3055static PyObject *_wrap_Point___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
3056 PyObject *resultobj;
3057 wxPoint *arg1 = (wxPoint *) 0 ;
3058 wxPoint *arg2 = 0 ;
3059 bool result;
3060 wxPoint temp2 ;
3061 PyObject * obj0 = 0 ;
3062 PyObject * obj1 = 0 ;
3063 char *kwnames[] = {
3064 (char *) "self",(char *) "pt", NULL
3065 };
3066
3067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___ne__",kwnames,&obj0,&obj1)) goto fail;
3068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3070 {
3071 arg2 = &temp2;
3072 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3073 }
3074 {
3075 PyThreadState* __tstate = wxPyBeginAllowThreads();
3076 result = (bool)(arg1)->operator !=((wxPoint const &)*arg2);
3077
3078 wxPyEndAllowThreads(__tstate);
3079 if (PyErr_Occurred()) SWIG_fail;
3080 }
3081 {
3082 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3083 }
3084 return resultobj;
3085 fail:
3086 return NULL;
3087}
3088
3089
3090static PyObject *_wrap_Point___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
3091 PyObject *resultobj;
3092 wxPoint *arg1 = (wxPoint *) 0 ;
3093 wxPoint *arg2 = 0 ;
3094 wxPoint result;
3095 wxPoint temp2 ;
3096 PyObject * obj0 = 0 ;
3097 PyObject * obj1 = 0 ;
3098 char *kwnames[] = {
3099 (char *) "self",(char *) "pt", NULL
3100 };
3101
3102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___add__",kwnames,&obj0,&obj1)) goto fail;
3103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3105 {
3106 arg2 = &temp2;
3107 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3108 }
3109 {
3110 PyThreadState* __tstate = wxPyBeginAllowThreads();
3111 result = (arg1)->operator +((wxPoint const &)*arg2);
3112
3113 wxPyEndAllowThreads(__tstate);
3114 if (PyErr_Occurred()) SWIG_fail;
3115 }
3116 {
3117 wxPoint * resultptr;
3118 resultptr = new wxPoint((wxPoint &) result);
3119 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
3120 }
3121 return resultobj;
3122 fail:
3123 return NULL;
3124}
3125
3126
3127static PyObject *_wrap_Point___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
3128 PyObject *resultobj;
3129 wxPoint *arg1 = (wxPoint *) 0 ;
3130 wxPoint *arg2 = 0 ;
3131 wxPoint result;
3132 wxPoint temp2 ;
3133 PyObject * obj0 = 0 ;
3134 PyObject * obj1 = 0 ;
3135 char *kwnames[] = {
3136 (char *) "self",(char *) "pt", NULL
3137 };
3138
3139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___sub__",kwnames,&obj0,&obj1)) goto fail;
3140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3142 {
3143 arg2 = &temp2;
3144 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3145 }
3146 {
3147 PyThreadState* __tstate = wxPyBeginAllowThreads();
3148 result = (arg1)->operator -((wxPoint const &)*arg2);
3149
3150 wxPyEndAllowThreads(__tstate);
3151 if (PyErr_Occurred()) SWIG_fail;
3152 }
3153 {
3154 wxPoint * resultptr;
3155 resultptr = new wxPoint((wxPoint &) result);
3156 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
3157 }
3158 return resultobj;
3159 fail:
3160 return NULL;
3161}
3162
3163
3164static PyObject *_wrap_Point___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
3165 PyObject *resultobj;
3166 wxPoint *arg1 = (wxPoint *) 0 ;
3167 wxPoint *arg2 = 0 ;
3168 wxPoint *result;
3169 wxPoint temp2 ;
3170 PyObject * obj0 = 0 ;
3171 PyObject * obj1 = 0 ;
3172 char *kwnames[] = {
3173 (char *) "self",(char *) "pt", NULL
3174 };
3175
3176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___iadd__",kwnames,&obj0,&obj1)) goto fail;
3177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3179 {
3180 arg2 = &temp2;
3181 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3182 }
3183 {
3184 PyThreadState* __tstate = wxPyBeginAllowThreads();
3185 {
3186 wxPoint &_result_ref = (arg1)->operator +=((wxPoint const &)*arg2);
3187 result = (wxPoint *) &_result_ref;
3188 }
3189
3190 wxPyEndAllowThreads(__tstate);
3191 if (PyErr_Occurred()) SWIG_fail;
3192 }
3193 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
3194 return resultobj;
3195 fail:
3196 return NULL;
3197}
3198
3199
3200static PyObject *_wrap_Point___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
3201 PyObject *resultobj;
3202 wxPoint *arg1 = (wxPoint *) 0 ;
3203 wxPoint *arg2 = 0 ;
3204 wxPoint *result;
3205 wxPoint temp2 ;
3206 PyObject * obj0 = 0 ;
3207 PyObject * obj1 = 0 ;
3208 char *kwnames[] = {
3209 (char *) "self",(char *) "pt", NULL
3210 };
3211
3212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___isub__",kwnames,&obj0,&obj1)) goto fail;
3213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3215 {
3216 arg2 = &temp2;
3217 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3218 }
3219 {
3220 PyThreadState* __tstate = wxPyBeginAllowThreads();
3221 {
3222 wxPoint &_result_ref = (arg1)->operator -=((wxPoint const &)*arg2);
3223 result = (wxPoint *) &_result_ref;
3224 }
3225
3226 wxPyEndAllowThreads(__tstate);
3227 if (PyErr_Occurred()) SWIG_fail;
3228 }
3229 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
3230 return resultobj;
3231 fail:
3232 return NULL;
3233}
3234
3235
3236static PyObject *_wrap_Point_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
3237 PyObject *resultobj;
3238 wxPoint *arg1 = (wxPoint *) 0 ;
3239 long arg2 ;
3240 long arg3 ;
3241 PyObject * obj0 = 0 ;
3242 PyObject * obj1 = 0 ;
3243 PyObject * obj2 = 0 ;
3244 char *kwnames[] = {
3245 (char *) "self",(char *) "x",(char *) "y", NULL
3246 };
3247
3248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Point_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
3249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3251 arg2 = (long) SWIG_AsLong(obj1);
3252 if (PyErr_Occurred()) SWIG_fail;
3253 arg3 = (long) SWIG_AsLong(obj2);
3254 if (PyErr_Occurred()) SWIG_fail;
3255 {
3256 PyThreadState* __tstate = wxPyBeginAllowThreads();
3257 wxPoint_Set(arg1,arg2,arg3);
3258
3259 wxPyEndAllowThreads(__tstate);
3260 if (PyErr_Occurred()) SWIG_fail;
3261 }
3262 Py_INCREF(Py_None); resultobj = Py_None;
3263 return resultobj;
3264 fail:
3265 return NULL;
3266}
3267
3268
3269static PyObject *_wrap_Point_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
3270 PyObject *resultobj;
3271 wxPoint *arg1 = (wxPoint *) 0 ;
3272 PyObject *result;
3273 PyObject * obj0 = 0 ;
3274 char *kwnames[] = {
3275 (char *) "self", NULL
3276 };
3277
3278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_Get",kwnames,&obj0)) goto fail;
3279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3281 {
3282 PyThreadState* __tstate = wxPyBeginAllowThreads();
3283 result = (PyObject *)wxPoint_Get(arg1);
3284
3285 wxPyEndAllowThreads(__tstate);
3286 if (PyErr_Occurred()) SWIG_fail;
3287 }
3288 resultobj = result;
3289 return resultobj;
3290 fail:
3291 return NULL;
3292}
3293
3294
3295static PyObject * Point_swigregister(PyObject *self, PyObject *args) {
3296 PyObject *obj;
3297 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3298 SWIG_TypeClientData(SWIGTYPE_p_wxPoint, obj);
3299 Py_INCREF(obj);
3300 return Py_BuildValue((char *)"");
3301}
3302static PyObject *_wrap_new_Rect(PyObject *self, PyObject *args, PyObject *kwargs) {
3303 PyObject *resultobj;
3304 int arg1 = (int) 0 ;
3305 int arg2 = (int) 0 ;
3306 int arg3 = (int) 0 ;
3307 int arg4 = (int) 0 ;
3308 wxRect *result;
3309 PyObject * obj0 = 0 ;
3310 PyObject * obj1 = 0 ;
3311 PyObject * obj2 = 0 ;
3312 PyObject * obj3 = 0 ;
3313 char *kwnames[] = {
3314 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
3315 };
3316
3317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Rect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3318 if (obj0) {
3319 arg1 = (int) SWIG_AsInt(obj0);
3320 if (PyErr_Occurred()) SWIG_fail;
3321 }
3322 if (obj1) {
3323 arg2 = (int) SWIG_AsInt(obj1);
3324 if (PyErr_Occurred()) SWIG_fail;
3325 }
3326 if (obj2) {
3327 arg3 = (int) SWIG_AsInt(obj2);
3328 if (PyErr_Occurred()) SWIG_fail;
3329 }
3330 if (obj3) {
3331 arg4 = (int) SWIG_AsInt(obj3);
3332 if (PyErr_Occurred()) SWIG_fail;
3333 }
3334 {
3335 PyThreadState* __tstate = wxPyBeginAllowThreads();
3336 result = (wxRect *)new wxRect(arg1,arg2,arg3,arg4);
3337
3338 wxPyEndAllowThreads(__tstate);
3339 if (PyErr_Occurred()) SWIG_fail;
3340 }
3341 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1);
3342 return resultobj;
3343 fail:
3344 return NULL;
3345}
3346
3347
3348static PyObject *_wrap_new_RectPP(PyObject *self, PyObject *args, PyObject *kwargs) {
3349 PyObject *resultobj;
3350 wxPoint *arg1 = 0 ;
3351 wxPoint *arg2 = 0 ;
3352 wxRect *result;
3353 wxPoint temp1 ;
3354 wxPoint temp2 ;
3355 PyObject * obj0 = 0 ;
3356 PyObject * obj1 = 0 ;
3357 char *kwnames[] = {
3358 (char *) "topLeft",(char *) "bottomRight", NULL
3359 };
3360
3361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPP",kwnames,&obj0,&obj1)) goto fail;
3362 {
3363 arg1 = &temp1;
3364 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
3365 }
3366 {
3367 arg2 = &temp2;
3368 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3369 }
3370 {
3371 PyThreadState* __tstate = wxPyBeginAllowThreads();
3372 result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxPoint const &)*arg2);
3373
3374 wxPyEndAllowThreads(__tstate);
3375 if (PyErr_Occurred()) SWIG_fail;
3376 }
3377 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1);
3378 return resultobj;
3379 fail:
3380 return NULL;
3381}
3382
3383
3384static PyObject *_wrap_new_RectPS(PyObject *self, PyObject *args, PyObject *kwargs) {
3385 PyObject *resultobj;
3386 wxPoint *arg1 = 0 ;
3387 wxSize *arg2 = 0 ;
3388 wxRect *result;
3389 wxPoint temp1 ;
3390 wxSize temp2 ;
3391 PyObject * obj0 = 0 ;
3392 PyObject * obj1 = 0 ;
3393 char *kwnames[] = {
3394 (char *) "pos",(char *) "size", NULL
3395 };
3396
3397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPS",kwnames,&obj0,&obj1)) goto fail;
3398 {
3399 arg1 = &temp1;
3400 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
3401 }
3402 {
3403 arg2 = &temp2;
3404 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3405 }
3406 {
3407 PyThreadState* __tstate = wxPyBeginAllowThreads();
3408 result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxSize const &)*arg2);
3409
3410 wxPyEndAllowThreads(__tstate);
3411 if (PyErr_Occurred()) SWIG_fail;
3412 }
3413 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1);
3414 return resultobj;
3415 fail:
3416 return NULL;
3417}
3418
3419
3420static PyObject *_wrap_delete_Rect(PyObject *self, PyObject *args, PyObject *kwargs) {
3421 PyObject *resultobj;
3422 wxRect *arg1 = (wxRect *) 0 ;
3423 PyObject * obj0 = 0 ;
3424 char *kwnames[] = {
3425 (char *) "self", NULL
3426 };
3427
3428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Rect",kwnames,&obj0)) goto fail;
3429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3431 {
3432 PyThreadState* __tstate = wxPyBeginAllowThreads();
3433 delete arg1;
3434
3435 wxPyEndAllowThreads(__tstate);
3436 if (PyErr_Occurred()) SWIG_fail;
3437 }
3438 Py_INCREF(Py_None); resultobj = Py_None;
3439 return resultobj;
3440 fail:
3441 return NULL;
3442}
3443
3444
3445static PyObject *_wrap_Rect_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
3446 PyObject *resultobj;
3447 wxRect *arg1 = (wxRect *) 0 ;
3448 int result;
3449 PyObject * obj0 = 0 ;
3450 char *kwnames[] = {
3451 (char *) "self", NULL
3452 };
3453
3454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetX",kwnames,&obj0)) goto fail;
3455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3457 {
3458 PyThreadState* __tstate = wxPyBeginAllowThreads();
3459 result = (int)((wxRect const *)arg1)->GetX();
3460
3461 wxPyEndAllowThreads(__tstate);
3462 if (PyErr_Occurred()) SWIG_fail;
3463 }
3464 resultobj = SWIG_FromInt((int)result);
3465 return resultobj;
3466 fail:
3467 return NULL;
3468}
3469
3470
3471static PyObject *_wrap_Rect_SetX(PyObject *self, PyObject *args, PyObject *kwargs) {
3472 PyObject *resultobj;
3473 wxRect *arg1 = (wxRect *) 0 ;
3474 int arg2 ;
3475 PyObject * obj0 = 0 ;
3476 PyObject * obj1 = 0 ;
3477 char *kwnames[] = {
3478 (char *) "self",(char *) "x", NULL
3479 };
3480
3481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetX",kwnames,&obj0,&obj1)) goto fail;
3482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3484 arg2 = (int) SWIG_AsInt(obj1);
3485 if (PyErr_Occurred()) SWIG_fail;
3486 {
3487 PyThreadState* __tstate = wxPyBeginAllowThreads();
3488 (arg1)->SetX(arg2);
3489
3490 wxPyEndAllowThreads(__tstate);
3491 if (PyErr_Occurred()) SWIG_fail;
3492 }
3493 Py_INCREF(Py_None); resultobj = Py_None;
3494 return resultobj;
3495 fail:
3496 return NULL;
3497}
3498
3499
3500static PyObject *_wrap_Rect_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
3501 PyObject *resultobj;
3502 wxRect *arg1 = (wxRect *) 0 ;
3503 int result;
3504 PyObject * obj0 = 0 ;
3505 char *kwnames[] = {
3506 (char *) "self", NULL
3507 };
3508
3509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetY",kwnames,&obj0)) goto fail;
3510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3512 {
3513 PyThreadState* __tstate = wxPyBeginAllowThreads();
3514 result = (int)(arg1)->GetY();
3515
3516 wxPyEndAllowThreads(__tstate);
3517 if (PyErr_Occurred()) SWIG_fail;
3518 }
3519 resultobj = SWIG_FromInt((int)result);
3520 return resultobj;
3521 fail:
3522 return NULL;
3523}
3524
3525
3526static PyObject *_wrap_Rect_SetY(PyObject *self, PyObject *args, PyObject *kwargs) {
3527 PyObject *resultobj;
3528 wxRect *arg1 = (wxRect *) 0 ;
3529 int arg2 ;
3530 PyObject * obj0 = 0 ;
3531 PyObject * obj1 = 0 ;
3532 char *kwnames[] = {
3533 (char *) "self",(char *) "y", NULL
3534 };
3535
3536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetY",kwnames,&obj0,&obj1)) goto fail;
3537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3539 arg2 = (int) SWIG_AsInt(obj1);
3540 if (PyErr_Occurred()) SWIG_fail;
3541 {
3542 PyThreadState* __tstate = wxPyBeginAllowThreads();
3543 (arg1)->SetY(arg2);
3544
3545 wxPyEndAllowThreads(__tstate);
3546 if (PyErr_Occurred()) SWIG_fail;
3547 }
3548 Py_INCREF(Py_None); resultobj = Py_None;
3549 return resultobj;
3550 fail:
3551 return NULL;
3552}
3553
3554
3555static PyObject *_wrap_Rect_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3556 PyObject *resultobj;
3557 wxRect *arg1 = (wxRect *) 0 ;
3558 int result;
3559 PyObject * obj0 = 0 ;
3560 char *kwnames[] = {
3561 (char *) "self", NULL
3562 };
3563
3564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetWidth",kwnames,&obj0)) goto fail;
3565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3567 {
3568 PyThreadState* __tstate = wxPyBeginAllowThreads();
3569 result = (int)((wxRect const *)arg1)->GetWidth();
3570
3571 wxPyEndAllowThreads(__tstate);
3572 if (PyErr_Occurred()) SWIG_fail;
3573 }
3574 resultobj = SWIG_FromInt((int)result);
3575 return resultobj;
3576 fail:
3577 return NULL;
3578}
3579
3580
3581static PyObject *_wrap_Rect_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3582 PyObject *resultobj;
3583 wxRect *arg1 = (wxRect *) 0 ;
3584 int arg2 ;
3585 PyObject * obj0 = 0 ;
3586 PyObject * obj1 = 0 ;
3587 char *kwnames[] = {
3588 (char *) "self",(char *) "w", NULL
3589 };
3590
3591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3594 arg2 = (int) SWIG_AsInt(obj1);
3595 if (PyErr_Occurred()) SWIG_fail;
3596 {
3597 PyThreadState* __tstate = wxPyBeginAllowThreads();
3598 (arg1)->SetWidth(arg2);
3599
3600 wxPyEndAllowThreads(__tstate);
3601 if (PyErr_Occurred()) SWIG_fail;
3602 }
3603 Py_INCREF(Py_None); resultobj = Py_None;
3604 return resultobj;
3605 fail:
3606 return NULL;
3607}
3608
3609
3610static PyObject *_wrap_Rect_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3611 PyObject *resultobj;
3612 wxRect *arg1 = (wxRect *) 0 ;
3613 int result;
3614 PyObject * obj0 = 0 ;
3615 char *kwnames[] = {
3616 (char *) "self", NULL
3617 };
3618
3619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetHeight",kwnames,&obj0)) goto fail;
3620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3622 {
3623 PyThreadState* __tstate = wxPyBeginAllowThreads();
3624 result = (int)((wxRect const *)arg1)->GetHeight();
3625
3626 wxPyEndAllowThreads(__tstate);
3627 if (PyErr_Occurred()) SWIG_fail;
3628 }
3629 resultobj = SWIG_FromInt((int)result);
3630 return resultobj;
3631 fail:
3632 return NULL;
3633}
3634
3635
3636static PyObject *_wrap_Rect_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3637 PyObject *resultobj;
3638 wxRect *arg1 = (wxRect *) 0 ;
3639 int arg2 ;
3640 PyObject * obj0 = 0 ;
3641 PyObject * obj1 = 0 ;
3642 char *kwnames[] = {
3643 (char *) "self",(char *) "h", NULL
3644 };
3645
3646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3649 arg2 = (int) SWIG_AsInt(obj1);
3650 if (PyErr_Occurred()) SWIG_fail;
3651 {
3652 PyThreadState* __tstate = wxPyBeginAllowThreads();
3653 (arg1)->SetHeight(arg2);
3654
3655 wxPyEndAllowThreads(__tstate);
3656 if (PyErr_Occurred()) SWIG_fail;
3657 }
3658 Py_INCREF(Py_None); resultobj = Py_None;
3659 return resultobj;
3660 fail:
3661 return NULL;
3662}
3663
3664
3665static PyObject *_wrap_Rect_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
3666 PyObject *resultobj;
3667 wxRect *arg1 = (wxRect *) 0 ;
3668 wxPoint result;
3669 PyObject * obj0 = 0 ;
3670 char *kwnames[] = {
3671 (char *) "self", NULL
3672 };
3673
3674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetPosition",kwnames,&obj0)) goto fail;
3675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3677 {
3678 PyThreadState* __tstate = wxPyBeginAllowThreads();
3679 result = ((wxRect const *)arg1)->GetPosition();
3680
3681 wxPyEndAllowThreads(__tstate);
3682 if (PyErr_Occurred()) SWIG_fail;
3683 }
3684 {
3685 wxPoint * resultptr;
3686 resultptr = new wxPoint((wxPoint &) result);
3687 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
3688 }
3689 return resultobj;
3690 fail:
3691 return NULL;
3692}
3693
3694
3695static PyObject *_wrap_Rect_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
3696 PyObject *resultobj;
3697 wxRect *arg1 = (wxRect *) 0 ;
3698 wxPoint *arg2 = 0 ;
3699 wxPoint temp2 ;
3700 PyObject * obj0 = 0 ;
3701 PyObject * obj1 = 0 ;
3702 char *kwnames[] = {
3703 (char *) "self",(char *) "p", NULL
3704 };
3705
3706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetPosition",kwnames,&obj0,&obj1)) goto fail;
3707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3709 {
3710 arg2 = &temp2;
3711 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3712 }
3713 {
3714 PyThreadState* __tstate = wxPyBeginAllowThreads();
3715 (arg1)->SetPosition((wxPoint const &)*arg2);
3716
3717 wxPyEndAllowThreads(__tstate);
3718 if (PyErr_Occurred()) SWIG_fail;
3719 }
3720 Py_INCREF(Py_None); resultobj = Py_None;
3721 return resultobj;
3722 fail:
3723 return NULL;
3724}
3725
3726
3727static PyObject *_wrap_Rect_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3728 PyObject *resultobj;
3729 wxRect *arg1 = (wxRect *) 0 ;
3730 wxSize result;
3731 PyObject * obj0 = 0 ;
3732 char *kwnames[] = {
3733 (char *) "self", NULL
3734 };
3735
3736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetSize",kwnames,&obj0)) goto fail;
3737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3739 {
3740 PyThreadState* __tstate = wxPyBeginAllowThreads();
3741 result = ((wxRect const *)arg1)->GetSize();
3742
3743 wxPyEndAllowThreads(__tstate);
3744 if (PyErr_Occurred()) SWIG_fail;
3745 }
3746 {
3747 wxSize * resultptr;
3748 resultptr = new wxSize((wxSize &) result);
3749 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3750 }
3751 return resultobj;
3752 fail:
3753 return NULL;
3754}
3755
3756
3757static PyObject *_wrap_Rect_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3758 PyObject *resultobj;
3759 wxRect *arg1 = (wxRect *) 0 ;
3760 wxSize *arg2 = 0 ;
3761 wxSize temp2 ;
3762 PyObject * obj0 = 0 ;
3763 PyObject * obj1 = 0 ;
3764 char *kwnames[] = {
3765 (char *) "self",(char *) "s", NULL
3766 };
3767
3768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetSize",kwnames,&obj0,&obj1)) goto fail;
3769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3771 {
3772 arg2 = &temp2;
3773 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3774 }
3775 {
3776 PyThreadState* __tstate = wxPyBeginAllowThreads();
3777 (arg1)->SetSize((wxSize const &)*arg2);
3778
3779 wxPyEndAllowThreads(__tstate);
3780 if (PyErr_Occurred()) SWIG_fail;
3781 }
3782 Py_INCREF(Py_None); resultobj = Py_None;
3783 return resultobj;
3784 fail:
3785 return NULL;
3786}
3787
3788
3789static PyObject *_wrap_Rect_GetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
3790 PyObject *resultobj;
3791 wxRect *arg1 = (wxRect *) 0 ;
3792 wxPoint result;
3793 PyObject * obj0 = 0 ;
3794 char *kwnames[] = {
3795 (char *) "self", NULL
3796 };
3797
3798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTopLeft",kwnames,&obj0)) goto fail;
3799 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3801 {
3802 PyThreadState* __tstate = wxPyBeginAllowThreads();
3803 result = ((wxRect const *)arg1)->GetTopLeft();
3804
3805 wxPyEndAllowThreads(__tstate);
3806 if (PyErr_Occurred()) SWIG_fail;
3807 }
3808 {
3809 wxPoint * resultptr;
3810 resultptr = new wxPoint((wxPoint &) result);
3811 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
3812 }
3813 return resultobj;
3814 fail:
3815 return NULL;
3816}
3817
3818
3819static PyObject *_wrap_Rect_SetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
3820 PyObject *resultobj;
3821 wxRect *arg1 = (wxRect *) 0 ;
3822 wxPoint *arg2 = 0 ;
3823 wxPoint temp2 ;
3824 PyObject * obj0 = 0 ;
3825 PyObject * obj1 = 0 ;
3826 char *kwnames[] = {
3827 (char *) "self",(char *) "p", NULL
3828 };
3829
3830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopLeft",kwnames,&obj0,&obj1)) goto fail;
3831 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3833 {
3834 arg2 = &temp2;
3835 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3836 }
3837 {
3838 PyThreadState* __tstate = wxPyBeginAllowThreads();
3839 (arg1)->SetTopLeft((wxPoint const &)*arg2);
3840
3841 wxPyEndAllowThreads(__tstate);
3842 if (PyErr_Occurred()) SWIG_fail;
3843 }
3844 Py_INCREF(Py_None); resultobj = Py_None;
3845 return resultobj;
3846 fail:
3847 return NULL;
3848}
3849
3850
3851static PyObject *_wrap_Rect_GetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) {
3852 PyObject *resultobj;
3853 wxRect *arg1 = (wxRect *) 0 ;
3854 wxPoint result;
3855 PyObject * obj0 = 0 ;
3856 char *kwnames[] = {
3857 (char *) "self", NULL
3858 };
3859
3860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottomRight",kwnames,&obj0)) goto fail;
3861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3863 {
3864 PyThreadState* __tstate = wxPyBeginAllowThreads();
3865 result = ((wxRect const *)arg1)->GetBottomRight();
3866
3867 wxPyEndAllowThreads(__tstate);
3868 if (PyErr_Occurred()) SWIG_fail;
3869 }
3870 {
3871 wxPoint * resultptr;
3872 resultptr = new wxPoint((wxPoint &) result);
3873 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
3874 }
3875 return resultobj;
3876 fail:
3877 return NULL;
3878}
3879
3880
3881static PyObject *_wrap_Rect_SetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) {
3882 PyObject *resultobj;
3883 wxRect *arg1 = (wxRect *) 0 ;
3884 wxPoint *arg2 = 0 ;
3885 wxPoint temp2 ;
3886 PyObject * obj0 = 0 ;
3887 PyObject * obj1 = 0 ;
3888 char *kwnames[] = {
3889 (char *) "self",(char *) "p", NULL
3890 };
3891
3892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomRight",kwnames,&obj0,&obj1)) goto fail;
3893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3895 {
3896 arg2 = &temp2;
3897 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3898 }
3899 {
3900 PyThreadState* __tstate = wxPyBeginAllowThreads();
3901 (arg1)->SetBottomRight((wxPoint const &)*arg2);
3902
3903 wxPyEndAllowThreads(__tstate);
3904 if (PyErr_Occurred()) SWIG_fail;
3905 }
3906 Py_INCREF(Py_None); resultobj = Py_None;
3907 return resultobj;
3908 fail:
3909 return NULL;
3910}
3911
3912
3913static PyObject *_wrap_Rect_GetLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
3914 PyObject *resultobj;
3915 wxRect *arg1 = (wxRect *) 0 ;
3916 int result;
3917 PyObject * obj0 = 0 ;
3918 char *kwnames[] = {
3919 (char *) "self", NULL
3920 };
3921
3922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetLeft",kwnames,&obj0)) goto fail;
3923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3925 {
3926 PyThreadState* __tstate = wxPyBeginAllowThreads();
3927 result = (int)((wxRect const *)arg1)->GetLeft();
3928
3929 wxPyEndAllowThreads(__tstate);
3930 if (PyErr_Occurred()) SWIG_fail;
3931 }
3932 resultobj = SWIG_FromInt((int)result);
3933 return resultobj;
3934 fail:
3935 return NULL;
3936}
3937
3938
3939static PyObject *_wrap_Rect_GetTop(PyObject *self, PyObject *args, PyObject *kwargs) {
3940 PyObject *resultobj;
3941 wxRect *arg1 = (wxRect *) 0 ;
3942 int result;
3943 PyObject * obj0 = 0 ;
3944 char *kwnames[] = {
3945 (char *) "self", NULL
3946 };
3947
3948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTop",kwnames,&obj0)) goto fail;
3949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3951 {
3952 PyThreadState* __tstate = wxPyBeginAllowThreads();
3953 result = (int)((wxRect const *)arg1)->GetTop();
3954
3955 wxPyEndAllowThreads(__tstate);
3956 if (PyErr_Occurred()) SWIG_fail;
3957 }
3958 resultobj = SWIG_FromInt((int)result);
3959 return resultobj;
3960 fail:
3961 return NULL;
3962}
3963
3964
3965static PyObject *_wrap_Rect_GetBottom(PyObject *self, PyObject *args, PyObject *kwargs) {
3966 PyObject *resultobj;
3967 wxRect *arg1 = (wxRect *) 0 ;
3968 int result;
3969 PyObject * obj0 = 0 ;
3970 char *kwnames[] = {
3971 (char *) "self", NULL
3972 };
3973
3974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottom",kwnames,&obj0)) goto fail;
3975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3977 {
3978 PyThreadState* __tstate = wxPyBeginAllowThreads();
3979 result = (int)((wxRect const *)arg1)->GetBottom();
3980
3981 wxPyEndAllowThreads(__tstate);
3982 if (PyErr_Occurred()) SWIG_fail;
3983 }
3984 resultobj = SWIG_FromInt((int)result);
3985 return resultobj;
3986 fail:
3987 return NULL;
3988}
3989
3990
3991static PyObject *_wrap_Rect_GetRight(PyObject *self, PyObject *args, PyObject *kwargs) {
3992 PyObject *resultobj;
3993 wxRect *arg1 = (wxRect *) 0 ;
3994 int result;
3995 PyObject * obj0 = 0 ;
3996 char *kwnames[] = {
3997 (char *) "self", NULL
3998 };
3999
4000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetRight",kwnames,&obj0)) goto fail;
4001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4003 {
4004 PyThreadState* __tstate = wxPyBeginAllowThreads();
4005 result = (int)((wxRect const *)arg1)->GetRight();
4006
4007 wxPyEndAllowThreads(__tstate);
4008 if (PyErr_Occurred()) SWIG_fail;
4009 }
4010 resultobj = SWIG_FromInt((int)result);
4011 return resultobj;
4012 fail:
4013 return NULL;
4014}
4015
4016
4017static PyObject *_wrap_Rect_SetLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
4018 PyObject *resultobj;
4019 wxRect *arg1 = (wxRect *) 0 ;
4020 int arg2 ;
4021 PyObject * obj0 = 0 ;
4022 PyObject * obj1 = 0 ;
4023 char *kwnames[] = {
4024 (char *) "self",(char *) "left", NULL
4025 };
4026
4027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetLeft",kwnames,&obj0,&obj1)) goto fail;
4028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4030 arg2 = (int) SWIG_AsInt(obj1);
4031 if (PyErr_Occurred()) SWIG_fail;
4032 {
4033 PyThreadState* __tstate = wxPyBeginAllowThreads();
4034 (arg1)->SetLeft(arg2);
4035
4036 wxPyEndAllowThreads(__tstate);
4037 if (PyErr_Occurred()) SWIG_fail;
4038 }
4039 Py_INCREF(Py_None); resultobj = Py_None;
4040 return resultobj;
4041 fail:
4042 return NULL;
4043}
4044
4045
4046static PyObject *_wrap_Rect_SetRight(PyObject *self, PyObject *args, PyObject *kwargs) {
4047 PyObject *resultobj;
4048 wxRect *arg1 = (wxRect *) 0 ;
4049 int arg2 ;
4050 PyObject * obj0 = 0 ;
4051 PyObject * obj1 = 0 ;
4052 char *kwnames[] = {
4053 (char *) "self",(char *) "right", NULL
4054 };
4055
4056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetRight",kwnames,&obj0,&obj1)) goto fail;
4057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4059 arg2 = (int) SWIG_AsInt(obj1);
4060 if (PyErr_Occurred()) SWIG_fail;
4061 {
4062 PyThreadState* __tstate = wxPyBeginAllowThreads();
4063 (arg1)->SetRight(arg2);
4064
4065 wxPyEndAllowThreads(__tstate);
4066 if (PyErr_Occurred()) SWIG_fail;
4067 }
4068 Py_INCREF(Py_None); resultobj = Py_None;
4069 return resultobj;
4070 fail:
4071 return NULL;
4072}
4073
4074
4075static PyObject *_wrap_Rect_SetTop(PyObject *self, PyObject *args, PyObject *kwargs) {
4076 PyObject *resultobj;
4077 wxRect *arg1 = (wxRect *) 0 ;
4078 int arg2 ;
4079 PyObject * obj0 = 0 ;
4080 PyObject * obj1 = 0 ;
4081 char *kwnames[] = {
4082 (char *) "self",(char *) "top", NULL
4083 };
4084
4085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTop",kwnames,&obj0,&obj1)) goto fail;
4086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4088 arg2 = (int) SWIG_AsInt(obj1);
4089 if (PyErr_Occurred()) SWIG_fail;
4090 {
4091 PyThreadState* __tstate = wxPyBeginAllowThreads();
4092 (arg1)->SetTop(arg2);
4093
4094 wxPyEndAllowThreads(__tstate);
4095 if (PyErr_Occurred()) SWIG_fail;
4096 }
4097 Py_INCREF(Py_None); resultobj = Py_None;
4098 return resultobj;
4099 fail:
4100 return NULL;
4101}
4102
4103
4104static PyObject *_wrap_Rect_SetBottom(PyObject *self, PyObject *args, PyObject *kwargs) {
4105 PyObject *resultobj;
4106 wxRect *arg1 = (wxRect *) 0 ;
4107 int arg2 ;
4108 PyObject * obj0 = 0 ;
4109 PyObject * obj1 = 0 ;
4110 char *kwnames[] = {
4111 (char *) "self",(char *) "bottom", NULL
4112 };
4113
4114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottom",kwnames,&obj0,&obj1)) goto fail;
4115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4117 arg2 = (int) SWIG_AsInt(obj1);
4118 if (PyErr_Occurred()) SWIG_fail;
4119 {
4120 PyThreadState* __tstate = wxPyBeginAllowThreads();
4121 (arg1)->SetBottom(arg2);
4122
4123 wxPyEndAllowThreads(__tstate);
4124 if (PyErr_Occurred()) SWIG_fail;
4125 }
4126 Py_INCREF(Py_None); resultobj = Py_None;
4127 return resultobj;
4128 fail:
4129 return NULL;
4130}
4131
4132
4133static PyObject *_wrap_Rect_Inflate(PyObject *self, PyObject *args, PyObject *kwargs) {
4134 PyObject *resultobj;
4135 wxRect *arg1 = (wxRect *) 0 ;
4136 int arg2 ;
4137 int arg3 ;
4138 wxRect *result;
4139 PyObject * obj0 = 0 ;
4140 PyObject * obj1 = 0 ;
4141 PyObject * obj2 = 0 ;
4142 char *kwnames[] = {
4143 (char *) "self",(char *) "dx",(char *) "dy", NULL
4144 };
4145
4146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Inflate",kwnames,&obj0,&obj1,&obj2)) goto fail;
4147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4149 arg2 = (int) SWIG_AsInt(obj1);
4150 if (PyErr_Occurred()) SWIG_fail;
4151 arg3 = (int) SWIG_AsInt(obj2);
4152 if (PyErr_Occurred()) SWIG_fail;
4153 {
4154 PyThreadState* __tstate = wxPyBeginAllowThreads();
4155 {
4156 wxRect &_result_ref = (arg1)->Inflate(arg2,arg3);
4157 result = (wxRect *) &_result_ref;
4158 }
4159
4160 wxPyEndAllowThreads(__tstate);
4161 if (PyErr_Occurred()) SWIG_fail;
4162 }
4163 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0);
4164 return resultobj;
4165 fail:
4166 return NULL;
4167}
4168
4169
4170static PyObject *_wrap_Rect_Deflate(PyObject *self, PyObject *args, PyObject *kwargs) {
4171 PyObject *resultobj;
4172 wxRect *arg1 = (wxRect *) 0 ;
4173 int arg2 ;
4174 int arg3 ;
4175 wxRect *result;
4176 PyObject * obj0 = 0 ;
4177 PyObject * obj1 = 0 ;
4178 PyObject * obj2 = 0 ;
4179 char *kwnames[] = {
4180 (char *) "self",(char *) "dx",(char *) "dy", NULL
4181 };
4182
4183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Deflate",kwnames,&obj0,&obj1,&obj2)) goto fail;
4184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4186 arg2 = (int) SWIG_AsInt(obj1);
4187 if (PyErr_Occurred()) SWIG_fail;
4188 arg3 = (int) SWIG_AsInt(obj2);
4189 if (PyErr_Occurred()) SWIG_fail;
4190 {
4191 PyThreadState* __tstate = wxPyBeginAllowThreads();
4192 {
4193 wxRect &_result_ref = (arg1)->Deflate(arg2,arg3);
4194 result = (wxRect *) &_result_ref;
4195 }
4196
4197 wxPyEndAllowThreads(__tstate);
4198 if (PyErr_Occurred()) SWIG_fail;
4199 }
4200 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0);
4201 return resultobj;
4202 fail:
4203 return NULL;
4204}
4205
4206
4207static PyObject *_wrap_Rect_OffsetXY(PyObject *self, PyObject *args, PyObject *kwargs) {
4208 PyObject *resultobj;
4209 wxRect *arg1 = (wxRect *) 0 ;
4210 int arg2 ;
4211 int arg3 ;
4212 PyObject * obj0 = 0 ;
4213 PyObject * obj1 = 0 ;
4214 PyObject * obj2 = 0 ;
4215 char *kwnames[] = {
4216 (char *) "self",(char *) "dx",(char *) "dy", NULL
4217 };
4218
4219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_OffsetXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
4220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4222 arg2 = (int) SWIG_AsInt(obj1);
4223 if (PyErr_Occurred()) SWIG_fail;
4224 arg3 = (int) SWIG_AsInt(obj2);
4225 if (PyErr_Occurred()) SWIG_fail;
4226 {
4227 PyThreadState* __tstate = wxPyBeginAllowThreads();
4228 (arg1)->Offset(arg2,arg3);
4229
4230 wxPyEndAllowThreads(__tstate);
4231 if (PyErr_Occurred()) SWIG_fail;
4232 }
4233 Py_INCREF(Py_None); resultobj = Py_None;
4234 return resultobj;
4235 fail:
4236 return NULL;
4237}
4238
4239
4240static PyObject *_wrap_Rect_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
4241 PyObject *resultobj;
4242 wxRect *arg1 = (wxRect *) 0 ;
4243 wxPoint *arg2 = 0 ;
4244 wxPoint temp2 ;
4245 PyObject * obj0 = 0 ;
4246 PyObject * obj1 = 0 ;
4247 char *kwnames[] = {
4248 (char *) "self",(char *) "pt", NULL
4249 };
4250
4251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Offset",kwnames,&obj0,&obj1)) goto fail;
4252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4254 {
4255 arg2 = &temp2;
4256 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4257 }
4258 {
4259 PyThreadState* __tstate = wxPyBeginAllowThreads();
4260 (arg1)->Offset((wxPoint const &)*arg2);
4261
4262 wxPyEndAllowThreads(__tstate);
4263 if (PyErr_Occurred()) SWIG_fail;
4264 }
4265 Py_INCREF(Py_None); resultobj = Py_None;
4266 return resultobj;
4267 fail:
4268 return NULL;
4269}
4270
4271
4272static PyObject *_wrap_Rect_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
4273 PyObject *resultobj;
4274 wxRect *arg1 = (wxRect *) 0 ;
4275 wxRect *arg2 = 0 ;
4276 wxRect *result;
4277 wxRect temp2 ;
4278 PyObject * obj0 = 0 ;
4279 PyObject * obj1 = 0 ;
4280 char *kwnames[] = {
4281 (char *) "self",(char *) "rect", NULL
4282 };
4283
4284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersect",kwnames,&obj0,&obj1)) goto fail;
4285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4287 {
4288 arg2 = &temp2;
4289 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4290 }
4291 {
4292 PyThreadState* __tstate = wxPyBeginAllowThreads();
4293 {
4294 wxRect &_result_ref = (arg1)->Intersect((wxRect const &)*arg2);
4295 result = (wxRect *) &_result_ref;
4296 }
4297
4298 wxPyEndAllowThreads(__tstate);
4299 if (PyErr_Occurred()) SWIG_fail;
4300 }
4301 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0);
4302 return resultobj;
4303 fail:
4304 return NULL;
4305}
4306
4307
4308static PyObject *_wrap_Rect___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
4309 PyObject *resultobj;
4310 wxRect *arg1 = (wxRect *) 0 ;
4311 wxRect *arg2 = 0 ;
4312 wxRect result;
4313 wxRect temp2 ;
4314 PyObject * obj0 = 0 ;
4315 PyObject * obj1 = 0 ;
4316 char *kwnames[] = {
4317 (char *) "self",(char *) "rect", NULL
4318 };
4319
4320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___add__",kwnames,&obj0,&obj1)) goto fail;
4321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4323 {
4324 arg2 = &temp2;
4325 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4326 }
4327 {
4328 PyThreadState* __tstate = wxPyBeginAllowThreads();
4329 result = ((wxRect const *)arg1)->operator +((wxRect const &)*arg2);
4330
4331 wxPyEndAllowThreads(__tstate);
4332 if (PyErr_Occurred()) SWIG_fail;
4333 }
4334 {
4335 wxRect * resultptr;
4336 resultptr = new wxRect((wxRect &) result);
4337 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
4338 }
4339 return resultobj;
4340 fail:
4341 return NULL;
4342}
4343
4344
4345static PyObject *_wrap_Rect___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
4346 PyObject *resultobj;
4347 wxRect *arg1 = (wxRect *) 0 ;
4348 wxRect *arg2 = 0 ;
4349 wxRect *result;
4350 wxRect temp2 ;
4351 PyObject * obj0 = 0 ;
4352 PyObject * obj1 = 0 ;
4353 char *kwnames[] = {
4354 (char *) "self",(char *) "rect", NULL
4355 };
4356
4357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___iadd__",kwnames,&obj0,&obj1)) goto fail;
4358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4360 {
4361 arg2 = &temp2;
4362 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4363 }
4364 {
4365 PyThreadState* __tstate = wxPyBeginAllowThreads();
4366 {
4367 wxRect &_result_ref = (arg1)->operator +=((wxRect const &)*arg2);
4368 result = (wxRect *) &_result_ref;
4369 }
4370
4371 wxPyEndAllowThreads(__tstate);
4372 if (PyErr_Occurred()) SWIG_fail;
4373 }
4374 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0);
4375 return resultobj;
4376 fail:
4377 return NULL;
4378}
4379
4380
4381static PyObject *_wrap_Rect___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
4382 PyObject *resultobj;
4383 wxRect *arg1 = (wxRect *) 0 ;
4384 wxRect *arg2 = 0 ;
4385 bool result;
4386 wxRect temp2 ;
4387 PyObject * obj0 = 0 ;
4388 PyObject * obj1 = 0 ;
4389 char *kwnames[] = {
4390 (char *) "self",(char *) "rect", NULL
4391 };
4392
4393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___eq__",kwnames,&obj0,&obj1)) goto fail;
4394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4396 {
4397 arg2 = &temp2;
4398 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4399 }
4400 {
4401 PyThreadState* __tstate = wxPyBeginAllowThreads();
4402 result = (bool)((wxRect const *)arg1)->operator ==((wxRect const &)*arg2);
4403
4404 wxPyEndAllowThreads(__tstate);
4405 if (PyErr_Occurred()) SWIG_fail;
4406 }
4407 {
4408 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4409 }
4410 return resultobj;
4411 fail:
4412 return NULL;
4413}
4414
4415
4416static PyObject *_wrap_Rect___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
4417 PyObject *resultobj;
4418 wxRect *arg1 = (wxRect *) 0 ;
4419 wxRect *arg2 = 0 ;
4420 bool result;
4421 wxRect temp2 ;
4422 PyObject * obj0 = 0 ;
4423 PyObject * obj1 = 0 ;
4424 char *kwnames[] = {
4425 (char *) "self",(char *) "rect", NULL
4426 };
4427
4428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___ne__",kwnames,&obj0,&obj1)) goto fail;
4429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4431 {
4432 arg2 = &temp2;
4433 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4434 }
4435 {
4436 PyThreadState* __tstate = wxPyBeginAllowThreads();
4437 result = (bool)((wxRect const *)arg1)->operator !=((wxRect const &)*arg2);
4438
4439 wxPyEndAllowThreads(__tstate);
4440 if (PyErr_Occurred()) SWIG_fail;
4441 }
4442 {
4443 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4444 }
4445 return resultobj;
4446 fail:
4447 return NULL;
4448}
4449
4450
4451static PyObject *_wrap_Rect_InsideXY(PyObject *self, PyObject *args, PyObject *kwargs) {
4452 PyObject *resultobj;
4453 wxRect *arg1 = (wxRect *) 0 ;
4454 int arg2 ;
4455 int arg3 ;
4456 bool result;
4457 PyObject * obj0 = 0 ;
4458 PyObject * obj1 = 0 ;
4459 PyObject * obj2 = 0 ;
4460 char *kwnames[] = {
4461 (char *) "self",(char *) "x",(char *) "y", NULL
4462 };
4463
4464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_InsideXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
4465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4467 arg2 = (int) SWIG_AsInt(obj1);
4468 if (PyErr_Occurred()) SWIG_fail;
4469 arg3 = (int) SWIG_AsInt(obj2);
4470 if (PyErr_Occurred()) SWIG_fail;
4471 {
4472 PyThreadState* __tstate = wxPyBeginAllowThreads();
4473 result = (bool)((wxRect const *)arg1)->Inside(arg2,arg3);
4474
4475 wxPyEndAllowThreads(__tstate);
4476 if (PyErr_Occurred()) SWIG_fail;
4477 }
4478 {
4479 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4480 }
4481 return resultobj;
4482 fail:
4483 return NULL;
4484}
4485
4486
4487static PyObject *_wrap_Rect_Inside(PyObject *self, PyObject *args, PyObject *kwargs) {
4488 PyObject *resultobj;
4489 wxRect *arg1 = (wxRect *) 0 ;
4490 wxPoint *arg2 = 0 ;
4491 bool result;
4492 wxPoint temp2 ;
4493 PyObject * obj0 = 0 ;
4494 PyObject * obj1 = 0 ;
4495 char *kwnames[] = {
4496 (char *) "self",(char *) "pt", NULL
4497 };
4498
4499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Inside",kwnames,&obj0,&obj1)) goto fail;
4500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4502 {
4503 arg2 = &temp2;
4504 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4505 }
4506 {
4507 PyThreadState* __tstate = wxPyBeginAllowThreads();
4508 result = (bool)((wxRect const *)arg1)->Inside((wxPoint const &)*arg2);
4509
4510 wxPyEndAllowThreads(__tstate);
4511 if (PyErr_Occurred()) SWIG_fail;
4512 }
4513 {
4514 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4515 }
4516 return resultobj;
4517 fail:
4518 return NULL;
4519}
4520
4521
4522static PyObject *_wrap_Rect_Intersects(PyObject *self, PyObject *args, PyObject *kwargs) {
4523 PyObject *resultobj;
4524 wxRect *arg1 = (wxRect *) 0 ;
4525 wxRect *arg2 = 0 ;
4526 bool result;
4527 wxRect temp2 ;
4528 PyObject * obj0 = 0 ;
4529 PyObject * obj1 = 0 ;
4530 char *kwnames[] = {
4531 (char *) "self",(char *) "rect", NULL
4532 };
4533
4534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersects",kwnames,&obj0,&obj1)) goto fail;
4535 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4537 {
4538 arg2 = &temp2;
4539 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4540 }
4541 {
4542 PyThreadState* __tstate = wxPyBeginAllowThreads();
4543 result = (bool)((wxRect const *)arg1)->Intersects((wxRect const &)*arg2);
4544
4545 wxPyEndAllowThreads(__tstate);
4546 if (PyErr_Occurred()) SWIG_fail;
4547 }
4548 {
4549 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4550 }
4551 return resultobj;
4552 fail:
4553 return NULL;
4554}
4555
4556
4557static PyObject *_wrap_Rect_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
4558 PyObject *resultobj;
4559 wxRect *arg1 = (wxRect *) 0 ;
4560 int arg2 ;
4561 PyObject * obj0 = 0 ;
4562 PyObject * obj1 = 0 ;
4563 char *kwnames[] = {
4564 (char *) "self",(char *) "x", NULL
4565 };
4566
4567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_x_set",kwnames,&obj0,&obj1)) goto fail;
4568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4570 arg2 = (int) SWIG_AsInt(obj1);
4571 if (PyErr_Occurred()) SWIG_fail;
4572 if (arg1) (arg1)->x = arg2;
4573
4574 Py_INCREF(Py_None); resultobj = Py_None;
4575 return resultobj;
4576 fail:
4577 return NULL;
4578}
4579
4580
4581static PyObject *_wrap_Rect_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
4582 PyObject *resultobj;
4583 wxRect *arg1 = (wxRect *) 0 ;
4584 int result;
4585 PyObject * obj0 = 0 ;
4586 char *kwnames[] = {
4587 (char *) "self", NULL
4588 };
4589
4590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_x_get",kwnames,&obj0)) goto fail;
4591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4593 result = (int) ((arg1)->x);
4594
4595 resultobj = SWIG_FromInt((int)result);
4596 return resultobj;
4597 fail:
4598 return NULL;
4599}
4600
4601
4602static PyObject *_wrap_Rect_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
4603 PyObject *resultobj;
4604 wxRect *arg1 = (wxRect *) 0 ;
4605 int arg2 ;
4606 PyObject * obj0 = 0 ;
4607 PyObject * obj1 = 0 ;
4608 char *kwnames[] = {
4609 (char *) "self",(char *) "y", NULL
4610 };
4611
4612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_y_set",kwnames,&obj0,&obj1)) goto fail;
4613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4615 arg2 = (int) SWIG_AsInt(obj1);
4616 if (PyErr_Occurred()) SWIG_fail;
4617 if (arg1) (arg1)->y = arg2;
4618
4619 Py_INCREF(Py_None); resultobj = Py_None;
4620 return resultobj;
4621 fail:
4622 return NULL;
4623}
4624
4625
4626static PyObject *_wrap_Rect_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
4627 PyObject *resultobj;
4628 wxRect *arg1 = (wxRect *) 0 ;
4629 int result;
4630 PyObject * obj0 = 0 ;
4631 char *kwnames[] = {
4632 (char *) "self", NULL
4633 };
4634
4635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_y_get",kwnames,&obj0)) goto fail;
4636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4638 result = (int) ((arg1)->y);
4639
4640 resultobj = SWIG_FromInt((int)result);
4641 return resultobj;
4642 fail:
4643 return NULL;
4644}
4645
4646
4647static PyObject *_wrap_Rect_width_set(PyObject *self, PyObject *args, PyObject *kwargs) {
4648 PyObject *resultobj;
4649 wxRect *arg1 = (wxRect *) 0 ;
4650 int arg2 ;
4651 PyObject * obj0 = 0 ;
4652 PyObject * obj1 = 0 ;
4653 char *kwnames[] = {
4654 (char *) "self",(char *) "width", NULL
4655 };
4656
4657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_width_set",kwnames,&obj0,&obj1)) goto fail;
4658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4660 arg2 = (int) SWIG_AsInt(obj1);
4661 if (PyErr_Occurred()) SWIG_fail;
4662 if (arg1) (arg1)->width = arg2;
4663
4664 Py_INCREF(Py_None); resultobj = Py_None;
4665 return resultobj;
4666 fail:
4667 return NULL;
4668}
4669
4670
4671static PyObject *_wrap_Rect_width_get(PyObject *self, PyObject *args, PyObject *kwargs) {
4672 PyObject *resultobj;
4673 wxRect *arg1 = (wxRect *) 0 ;
4674 int result;
4675 PyObject * obj0 = 0 ;
4676 char *kwnames[] = {
4677 (char *) "self", NULL
4678 };
4679
4680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_width_get",kwnames,&obj0)) goto fail;
4681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4683 result = (int) ((arg1)->width);
4684
4685 resultobj = SWIG_FromInt((int)result);
4686 return resultobj;
4687 fail:
4688 return NULL;
4689}
4690
4691
4692static PyObject *_wrap_Rect_height_set(PyObject *self, PyObject *args, PyObject *kwargs) {
4693 PyObject *resultobj;
4694 wxRect *arg1 = (wxRect *) 0 ;
4695 int arg2 ;
4696 PyObject * obj0 = 0 ;
4697 PyObject * obj1 = 0 ;
4698 char *kwnames[] = {
4699 (char *) "self",(char *) "height", NULL
4700 };
4701
4702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_height_set",kwnames,&obj0,&obj1)) goto fail;
4703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4705 arg2 = (int) SWIG_AsInt(obj1);
4706 if (PyErr_Occurred()) SWIG_fail;
4707 if (arg1) (arg1)->height = arg2;
4708
4709 Py_INCREF(Py_None); resultobj = Py_None;
4710 return resultobj;
4711 fail:
4712 return NULL;
4713}
4714
4715
4716static PyObject *_wrap_Rect_height_get(PyObject *self, PyObject *args, PyObject *kwargs) {
4717 PyObject *resultobj;
4718 wxRect *arg1 = (wxRect *) 0 ;
4719 int result;
4720 PyObject * obj0 = 0 ;
4721 char *kwnames[] = {
4722 (char *) "self", NULL
4723 };
4724
4725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_height_get",kwnames,&obj0)) goto fail;
4726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4728 result = (int) ((arg1)->height);
4729
4730 resultobj = SWIG_FromInt((int)result);
4731 return resultobj;
4732 fail:
4733 return NULL;
4734}
4735
4736
4737static PyObject *_wrap_Rect_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
4738 PyObject *resultobj;
4739 wxRect *arg1 = (wxRect *) 0 ;
4740 int arg2 = (int) 0 ;
4741 int arg3 = (int) 0 ;
4742 int arg4 = (int) 0 ;
4743 int arg5 = (int) 0 ;
4744 PyObject * obj0 = 0 ;
4745 PyObject * obj1 = 0 ;
4746 PyObject * obj2 = 0 ;
4747 PyObject * obj3 = 0 ;
4748 PyObject * obj4 = 0 ;
4749 char *kwnames[] = {
4750 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4751 };
4752
4753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Rect_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4756 if (obj1) {
4757 arg2 = (int) SWIG_AsInt(obj1);
4758 if (PyErr_Occurred()) SWIG_fail;
4759 }
4760 if (obj2) {
4761 arg3 = (int) SWIG_AsInt(obj2);
4762 if (PyErr_Occurred()) SWIG_fail;
4763 }
4764 if (obj3) {
4765 arg4 = (int) SWIG_AsInt(obj3);
4766 if (PyErr_Occurred()) SWIG_fail;
4767 }
4768 if (obj4) {
4769 arg5 = (int) SWIG_AsInt(obj4);
4770 if (PyErr_Occurred()) SWIG_fail;
4771 }
4772 {
4773 PyThreadState* __tstate = wxPyBeginAllowThreads();
4774 wxRect_Set(arg1,arg2,arg3,arg4,arg5);
4775
4776 wxPyEndAllowThreads(__tstate);
4777 if (PyErr_Occurred()) SWIG_fail;
4778 }
4779 Py_INCREF(Py_None); resultobj = Py_None;
4780 return resultobj;
4781 fail:
4782 return NULL;
4783}
4784
4785
4786static PyObject *_wrap_Rect_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
4787 PyObject *resultobj;
4788 wxRect *arg1 = (wxRect *) 0 ;
4789 PyObject *result;
4790 PyObject * obj0 = 0 ;
4791 char *kwnames[] = {
4792 (char *) "self", NULL
4793 };
4794
4795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_Get",kwnames,&obj0)) goto fail;
4796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4798 {
4799 PyThreadState* __tstate = wxPyBeginAllowThreads();
4800 result = (PyObject *)wxRect_Get(arg1);
4801
4802 wxPyEndAllowThreads(__tstate);
4803 if (PyErr_Occurred()) SWIG_fail;
4804 }
4805 resultobj = result;
4806 return resultobj;
4807 fail:
4808 return NULL;
4809}
4810
4811
4812static PyObject * Rect_swigregister(PyObject *self, PyObject *args) {
4813 PyObject *obj;
4814 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4815 SWIG_TypeClientData(SWIGTYPE_p_wxRect, obj);
4816 Py_INCREF(obj);
4817 return Py_BuildValue((char *)"");
4818}
4819static PyObject *_wrap_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4820 PyObject *resultobj;
4821 wxRect *arg1 = (wxRect *) 0 ;
4822 wxRect *arg2 = (wxRect *) 0 ;
4823 PyObject *result;
4824 PyObject * obj0 = 0 ;
4825 PyObject * obj1 = 0 ;
4826 char *kwnames[] = {
4827 (char *) "r1",(char *) "r2", NULL
4828 };
4829
4830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IntersectRect",kwnames,&obj0,&obj1)) goto fail;
4831 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4833 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
4834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4835 {
0439c23b 4836 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4837 PyThreadState* __tstate = wxPyBeginAllowThreads();
4838 result = (PyObject *)wxIntersectRect(arg1,arg2);
4839
4840 wxPyEndAllowThreads(__tstate);
0439c23b 4841 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4842 }
4843 resultobj = result;
4844 return resultobj;
4845 fail:
4846 return NULL;
4847}
4848
4849
4850static PyObject *_wrap_new_Point2D(PyObject *self, PyObject *args, PyObject *kwargs) {
4851 PyObject *resultobj;
4852 double arg1 = (double) 0.0 ;
4853 double arg2 = (double) 0.0 ;
4854 wxPoint2D *result;
4855 PyObject * obj0 = 0 ;
4856 PyObject * obj1 = 0 ;
4857 char *kwnames[] = {
4858 (char *) "x",(char *) "y", NULL
4859 };
4860
4861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point2D",kwnames,&obj0,&obj1)) goto fail;
4862 if (obj0) {
4863 arg1 = (double) SWIG_AsDouble(obj0);
4864 if (PyErr_Occurred()) SWIG_fail;
4865 }
4866 if (obj1) {
4867 arg2 = (double) SWIG_AsDouble(obj1);
4868 if (PyErr_Occurred()) SWIG_fail;
4869 }
4870 {
4871 PyThreadState* __tstate = wxPyBeginAllowThreads();
4872 result = (wxPoint2D *)new wxPoint2D(arg1,arg2);
4873
4874 wxPyEndAllowThreads(__tstate);
4875 if (PyErr_Occurred()) SWIG_fail;
4876 }
4877 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1);
4878 return resultobj;
4879 fail:
4880 return NULL;
4881}
4882
4883
4884static PyObject *_wrap_new_Point2DCopy(PyObject *self, PyObject *args, PyObject *kwargs) {
4885 PyObject *resultobj;
4886 wxPoint2D *arg1 = 0 ;
4887 wxPoint2D *result;
4888 wxPoint2D temp1 ;
4889 PyObject * obj0 = 0 ;
4890 char *kwnames[] = {
4891 (char *) "pt", NULL
4892 };
4893
4894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DCopy",kwnames,&obj0)) goto fail;
4895 {
4896 arg1 = &temp1;
4897 if ( ! wxPoint2D_helper(obj0, &arg1)) SWIG_fail;
4898 }
4899 {
4900 PyThreadState* __tstate = wxPyBeginAllowThreads();
4901 result = (wxPoint2D *)new wxPoint2D((wxPoint2D const &)*arg1);
4902
4903 wxPyEndAllowThreads(__tstate);
4904 if (PyErr_Occurred()) SWIG_fail;
4905 }
4906 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1);
4907 return resultobj;
4908 fail:
4909 return NULL;
4910}
4911
4912
4913static PyObject *_wrap_new_Point2DFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4914 PyObject *resultobj;
4915 wxPoint *arg1 = 0 ;
4916 wxPoint2D *result;
4917 wxPoint temp1 ;
4918 PyObject * obj0 = 0 ;
4919 char *kwnames[] = {
4920 (char *) "pt", NULL
4921 };
4922
4923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DFromPoint",kwnames,&obj0)) goto fail;
4924 {
4925 arg1 = &temp1;
4926 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4927 }
4928 {
4929 PyThreadState* __tstate = wxPyBeginAllowThreads();
4930 result = (wxPoint2D *)new wxPoint2D((wxPoint const &)*arg1);
4931
4932 wxPyEndAllowThreads(__tstate);
4933 if (PyErr_Occurred()) SWIG_fail;
4934 }
4935 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1);
4936 return resultobj;
4937 fail:
4938 return NULL;
4939}
4940
4941
4942static PyObject *_wrap_Point2D_GetFloor(PyObject *self, PyObject *args, PyObject *kwargs) {
4943 PyObject *resultobj;
4944 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
4945 int *arg2 = (int *) 0 ;
4946 int *arg3 = (int *) 0 ;
4947 int temp2 ;
4948 int temp3 ;
4949 PyObject * obj0 = 0 ;
4950 char *kwnames[] = {
4951 (char *) "self", NULL
4952 };
4953
4954 arg2 = &temp2;
4955 arg3 = &temp3;
4956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetFloor",kwnames,&obj0)) goto fail;
4957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
4958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4959 {
4960 PyThreadState* __tstate = wxPyBeginAllowThreads();
4961 ((wxPoint2D const *)arg1)->GetFloor(arg2,arg3);
4962
4963 wxPyEndAllowThreads(__tstate);
4964 if (PyErr_Occurred()) SWIG_fail;
4965 }
4966 Py_INCREF(Py_None); resultobj = Py_None;
4967 {
4968 PyObject *o = PyInt_FromLong((long) (*arg2));
4969 resultobj = t_output_helper(resultobj,o);
4970 }
4971 {
4972 PyObject *o = PyInt_FromLong((long) (*arg3));
4973 resultobj = t_output_helper(resultobj,o);
4974 }
4975 return resultobj;
4976 fail:
4977 return NULL;
4978}
4979
4980
4981static PyObject *_wrap_Point2D_GetRounded(PyObject *self, PyObject *args, PyObject *kwargs) {
4982 PyObject *resultobj;
4983 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
4984 int *arg2 = (int *) 0 ;
4985 int *arg3 = (int *) 0 ;
4986 int temp2 ;
4987 int temp3 ;
4988 PyObject * obj0 = 0 ;
4989 char *kwnames[] = {
4990 (char *) "self", NULL
4991 };
4992
4993 arg2 = &temp2;
4994 arg3 = &temp3;
4995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetRounded",kwnames,&obj0)) goto fail;
4996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
4997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4998 {
4999 PyThreadState* __tstate = wxPyBeginAllowThreads();
5000 ((wxPoint2D const *)arg1)->GetRounded(arg2,arg3);
5001
5002 wxPyEndAllowThreads(__tstate);
5003 if (PyErr_Occurred()) SWIG_fail;
5004 }
5005 Py_INCREF(Py_None); resultobj = Py_None;
5006 {
5007 PyObject *o = PyInt_FromLong((long) (*arg2));
5008 resultobj = t_output_helper(resultobj,o);
5009 }
5010 {
5011 PyObject *o = PyInt_FromLong((long) (*arg3));
5012 resultobj = t_output_helper(resultobj,o);
5013 }
5014 return resultobj;
5015 fail:
5016 return NULL;
5017}
5018
5019
5020static PyObject *_wrap_Point2D_GetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) {
5021 PyObject *resultobj;
5022 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5023 double result;
5024 PyObject * obj0 = 0 ;
5025 char *kwnames[] = {
5026 (char *) "self", NULL
5027 };
5028
5029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorLength",kwnames,&obj0)) goto fail;
5030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5032 {
5033 PyThreadState* __tstate = wxPyBeginAllowThreads();
5034 result = (double)((wxPoint2D const *)arg1)->GetVectorLength();
5035
5036 wxPyEndAllowThreads(__tstate);
5037 if (PyErr_Occurred()) SWIG_fail;
5038 }
5039 resultobj = SWIG_FromDouble((double)result);
5040 return resultobj;
5041 fail:
5042 return NULL;
5043}
5044
5045
5046static PyObject *_wrap_Point2D_GetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) {
5047 PyObject *resultobj;
5048 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5049 double result;
5050 PyObject * obj0 = 0 ;
5051 char *kwnames[] = {
5052 (char *) "self", NULL
5053 };
5054
5055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorAngle",kwnames,&obj0)) goto fail;
5056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5058 {
5059 PyThreadState* __tstate = wxPyBeginAllowThreads();
5060 result = (double)((wxPoint2D const *)arg1)->GetVectorAngle();
5061
5062 wxPyEndAllowThreads(__tstate);
5063 if (PyErr_Occurred()) SWIG_fail;
5064 }
5065 resultobj = SWIG_FromDouble((double)result);
5066 return resultobj;
5067 fail:
5068 return NULL;
5069}
5070
5071
5072static PyObject *_wrap_Point2D_SetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) {
5073 PyObject *resultobj;
5074 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5075 double arg2 ;
5076 PyObject * obj0 = 0 ;
5077 PyObject * obj1 = 0 ;
5078 char *kwnames[] = {
5079 (char *) "self",(char *) "length", NULL
5080 };
5081
5082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorLength",kwnames,&obj0,&obj1)) goto fail;
5083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5085 arg2 = (double) SWIG_AsDouble(obj1);
5086 if (PyErr_Occurred()) SWIG_fail;
5087 {
5088 PyThreadState* __tstate = wxPyBeginAllowThreads();
5089 (arg1)->SetVectorLength(arg2);
5090
5091 wxPyEndAllowThreads(__tstate);
5092 if (PyErr_Occurred()) SWIG_fail;
5093 }
5094 Py_INCREF(Py_None); resultobj = Py_None;
5095 return resultobj;
5096 fail:
5097 return NULL;
5098}
5099
5100
5101static PyObject *_wrap_Point2D_SetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) {
5102 PyObject *resultobj;
5103 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5104 double arg2 ;
5105 PyObject * obj0 = 0 ;
5106 PyObject * obj1 = 0 ;
5107 char *kwnames[] = {
5108 (char *) "self",(char *) "degrees", NULL
5109 };
5110
5111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorAngle",kwnames,&obj0,&obj1)) goto fail;
5112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5114 arg2 = (double) SWIG_AsDouble(obj1);
5115 if (PyErr_Occurred()) SWIG_fail;
5116 {
5117 PyThreadState* __tstate = wxPyBeginAllowThreads();
5118 (arg1)->SetVectorAngle(arg2);
5119
5120 wxPyEndAllowThreads(__tstate);
5121 if (PyErr_Occurred()) SWIG_fail;
5122 }
5123 Py_INCREF(Py_None); resultobj = Py_None;
5124 return resultobj;
5125 fail:
5126 return NULL;
5127}
5128
5129
5130static PyObject *_wrap_Point2D_GetDistance(PyObject *self, PyObject *args, PyObject *kwargs) {
5131 PyObject *resultobj;
5132 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5133 wxPoint2D *arg2 = 0 ;
5134 double result;
5135 wxPoint2D temp2 ;
5136 PyObject * obj0 = 0 ;
5137 PyObject * obj1 = 0 ;
5138 char *kwnames[] = {
5139 (char *) "self",(char *) "pt", NULL
5140 };
5141
5142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistance",kwnames,&obj0,&obj1)) goto fail;
5143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5145 {
5146 arg2 = &temp2;
5147 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5148 }
5149 {
5150 PyThreadState* __tstate = wxPyBeginAllowThreads();
5151 result = (double)((wxPoint2D const *)arg1)->GetDistance((wxPoint2D const &)*arg2);
5152
5153 wxPyEndAllowThreads(__tstate);
5154 if (PyErr_Occurred()) SWIG_fail;
5155 }
5156 resultobj = SWIG_FromDouble((double)result);
5157 return resultobj;
5158 fail:
5159 return NULL;
5160}
5161
5162
5163static PyObject *_wrap_Point2D_GetDistanceSquare(PyObject *self, PyObject *args, PyObject *kwargs) {
5164 PyObject *resultobj;
5165 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5166 wxPoint2D *arg2 = 0 ;
5167 double result;
5168 wxPoint2D temp2 ;
5169 PyObject * obj0 = 0 ;
5170 PyObject * obj1 = 0 ;
5171 char *kwnames[] = {
5172 (char *) "self",(char *) "pt", NULL
5173 };
5174
5175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistanceSquare",kwnames,&obj0,&obj1)) goto fail;
5176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5178 {
5179 arg2 = &temp2;
5180 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5181 }
5182 {
5183 PyThreadState* __tstate = wxPyBeginAllowThreads();
5184 result = (double)((wxPoint2D const *)arg1)->GetDistanceSquare((wxPoint2D const &)*arg2);
5185
5186 wxPyEndAllowThreads(__tstate);
5187 if (PyErr_Occurred()) SWIG_fail;
5188 }
5189 resultobj = SWIG_FromDouble((double)result);
5190 return resultobj;
5191 fail:
5192 return NULL;
5193}
5194
5195
5196static PyObject *_wrap_Point2D_GetDotProduct(PyObject *self, PyObject *args, PyObject *kwargs) {
5197 PyObject *resultobj;
5198 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5199 wxPoint2D *arg2 = 0 ;
5200 double result;
5201 wxPoint2D temp2 ;
5202 PyObject * obj0 = 0 ;
5203 PyObject * obj1 = 0 ;
5204 char *kwnames[] = {
5205 (char *) "self",(char *) "vec", NULL
5206 };
5207
5208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDotProduct",kwnames,&obj0,&obj1)) goto fail;
5209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5211 {
5212 arg2 = &temp2;
5213 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5214 }
5215 {
5216 PyThreadState* __tstate = wxPyBeginAllowThreads();
5217 result = (double)((wxPoint2D const *)arg1)->GetDotProduct((wxPoint2D const &)*arg2);
5218
5219 wxPyEndAllowThreads(__tstate);
5220 if (PyErr_Occurred()) SWIG_fail;
5221 }
5222 resultobj = SWIG_FromDouble((double)result);
5223 return resultobj;
5224 fail:
5225 return NULL;
5226}
5227
5228
5229static PyObject *_wrap_Point2D_GetCrossProduct(PyObject *self, PyObject *args, PyObject *kwargs) {
5230 PyObject *resultobj;
5231 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5232 wxPoint2D *arg2 = 0 ;
5233 double result;
5234 wxPoint2D temp2 ;
5235 PyObject * obj0 = 0 ;
5236 PyObject * obj1 = 0 ;
5237 char *kwnames[] = {
5238 (char *) "self",(char *) "vec", NULL
5239 };
5240
5241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetCrossProduct",kwnames,&obj0,&obj1)) goto fail;
5242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5244 {
5245 arg2 = &temp2;
5246 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5247 }
5248 {
5249 PyThreadState* __tstate = wxPyBeginAllowThreads();
5250 result = (double)((wxPoint2D const *)arg1)->GetCrossProduct((wxPoint2D const &)*arg2);
5251
5252 wxPyEndAllowThreads(__tstate);
5253 if (PyErr_Occurred()) SWIG_fail;
5254 }
5255 resultobj = SWIG_FromDouble((double)result);
5256 return resultobj;
5257 fail:
5258 return NULL;
5259}
5260
5261
5262static PyObject *_wrap_Point2D___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
5263 PyObject *resultobj;
5264 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5265 wxPoint2D result;
5266 PyObject * obj0 = 0 ;
5267 char *kwnames[] = {
5268 (char *) "self", NULL
5269 };
5270
5271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D___neg__",kwnames,&obj0)) goto fail;
5272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5274 {
5275 PyThreadState* __tstate = wxPyBeginAllowThreads();
5276 result = (arg1)->operator -();
5277
5278 wxPyEndAllowThreads(__tstate);
5279 if (PyErr_Occurred()) SWIG_fail;
5280 }
5281 {
5282 wxPoint2D * resultptr;
5283 resultptr = new wxPoint2D((wxPoint2D &) result);
5284 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint2D, 1);
5285 }
5286 return resultobj;
5287 fail:
5288 return NULL;
5289}
5290
5291
5292static PyObject *_wrap_Point2D___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
5293 PyObject *resultobj;
5294 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5295 wxPoint2D *arg2 = 0 ;
5296 wxPoint2D *result;
5297 wxPoint2D temp2 ;
5298 PyObject * obj0 = 0 ;
5299 PyObject * obj1 = 0 ;
5300 char *kwnames[] = {
5301 (char *) "self",(char *) "pt", NULL
5302 };
5303
5304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___iadd__",kwnames,&obj0,&obj1)) goto fail;
5305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5307 {
5308 arg2 = &temp2;
5309 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5310 }
5311 {
5312 PyThreadState* __tstate = wxPyBeginAllowThreads();
5313 {
5314 wxPoint2D &_result_ref = (arg1)->operator +=((wxPoint2D const &)*arg2);
5315 result = (wxPoint2D *) &_result_ref;
5316 }
5317
5318 wxPyEndAllowThreads(__tstate);
5319 if (PyErr_Occurred()) SWIG_fail;
5320 }
5321 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0);
5322 return resultobj;
5323 fail:
5324 return NULL;
5325}
5326
5327
5328static PyObject *_wrap_Point2D___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
5329 PyObject *resultobj;
5330 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5331 wxPoint2D *arg2 = 0 ;
5332 wxPoint2D *result;
5333 wxPoint2D temp2 ;
5334 PyObject * obj0 = 0 ;
5335 PyObject * obj1 = 0 ;
5336 char *kwnames[] = {
5337 (char *) "self",(char *) "pt", NULL
5338 };
5339
5340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___isub__",kwnames,&obj0,&obj1)) goto fail;
5341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5343 {
5344 arg2 = &temp2;
5345 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5346 }
5347 {
5348 PyThreadState* __tstate = wxPyBeginAllowThreads();
5349 {
5350 wxPoint2D &_result_ref = (arg1)->operator -=((wxPoint2D const &)*arg2);
5351 result = (wxPoint2D *) &_result_ref;
5352 }
5353
5354 wxPyEndAllowThreads(__tstate);
5355 if (PyErr_Occurred()) SWIG_fail;
5356 }
5357 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0);
5358 return resultobj;
5359 fail:
5360 return NULL;
5361}
5362
5363
5364static PyObject *_wrap_Point2D___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
5365 PyObject *resultobj;
5366 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5367 wxPoint2D *arg2 = 0 ;
5368 wxPoint2D *result;
5369 wxPoint2D temp2 ;
5370 PyObject * obj0 = 0 ;
5371 PyObject * obj1 = 0 ;
5372 char *kwnames[] = {
5373 (char *) "self",(char *) "pt", NULL
5374 };
5375
5376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___imul__",kwnames,&obj0,&obj1)) goto fail;
5377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5379 {
5380 arg2 = &temp2;
5381 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5382 }
5383 {
5384 PyThreadState* __tstate = wxPyBeginAllowThreads();
5385 {
5386 wxPoint2D &_result_ref = (arg1)->operator *=((wxPoint2D const &)*arg2);
5387 result = (wxPoint2D *) &_result_ref;
5388 }
5389
5390 wxPyEndAllowThreads(__tstate);
5391 if (PyErr_Occurred()) SWIG_fail;
5392 }
5393 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0);
5394 return resultobj;
5395 fail:
5396 return NULL;
5397}
5398
5399
5400static PyObject *_wrap_Point2D___idiv__(PyObject *self, PyObject *args, PyObject *kwargs) {
5401 PyObject *resultobj;
5402 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5403 wxPoint2D *arg2 = 0 ;
5404 wxPoint2D *result;
5405 wxPoint2D temp2 ;
5406 PyObject * obj0 = 0 ;
5407 PyObject * obj1 = 0 ;
5408 char *kwnames[] = {
5409 (char *) "self",(char *) "pt", NULL
5410 };
5411
5412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___idiv__",kwnames,&obj0,&obj1)) goto fail;
5413 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5415 {
5416 arg2 = &temp2;
5417 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5418 }
5419 {
5420 PyThreadState* __tstate = wxPyBeginAllowThreads();
5421 {
5422 wxPoint2D &_result_ref = (arg1)->operator /=((wxPoint2D const &)*arg2);
5423 result = (wxPoint2D *) &_result_ref;
5424 }
5425
5426 wxPyEndAllowThreads(__tstate);
5427 if (PyErr_Occurred()) SWIG_fail;
5428 }
5429 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0);
5430 return resultobj;
5431 fail:
5432 return NULL;
5433}
5434
5435
5436static PyObject *_wrap_Point2D___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
5437 PyObject *resultobj;
5438 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5439 wxPoint2D *arg2 = 0 ;
5440 bool result;
5441 wxPoint2D temp2 ;
5442 PyObject * obj0 = 0 ;
5443 PyObject * obj1 = 0 ;
5444 char *kwnames[] = {
5445 (char *) "self",(char *) "pt", NULL
5446 };
5447
5448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___eq__",kwnames,&obj0,&obj1)) goto fail;
5449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5451 {
5452 arg2 = &temp2;
5453 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5454 }
5455 {
5456 PyThreadState* __tstate = wxPyBeginAllowThreads();
5457 result = (bool)((wxPoint2D const *)arg1)->operator ==((wxPoint2D const &)*arg2);
5458
5459 wxPyEndAllowThreads(__tstate);
5460 if (PyErr_Occurred()) SWIG_fail;
5461 }
5462 {
5463 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5464 }
5465 return resultobj;
5466 fail:
5467 return NULL;
5468}
5469
5470
5471static PyObject *_wrap_Point2D___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
5472 PyObject *resultobj;
5473 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5474 wxPoint2D *arg2 = 0 ;
5475 bool result;
5476 wxPoint2D temp2 ;
5477 PyObject * obj0 = 0 ;
5478 PyObject * obj1 = 0 ;
5479 char *kwnames[] = {
5480 (char *) "self",(char *) "pt", NULL
5481 };
5482
5483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___ne__",kwnames,&obj0,&obj1)) goto fail;
5484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5486 {
5487 arg2 = &temp2;
5488 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5489 }
5490 {
5491 PyThreadState* __tstate = wxPyBeginAllowThreads();
5492 result = (bool)((wxPoint2D const *)arg1)->operator !=((wxPoint2D const &)*arg2);
5493
5494 wxPyEndAllowThreads(__tstate);
5495 if (PyErr_Occurred()) SWIG_fail;
5496 }
5497 {
5498 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5499 }
5500 return resultobj;
5501 fail:
5502 return NULL;
5503}
5504
5505
5506static PyObject *_wrap_Point2D_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
5507 PyObject *resultobj;
5508 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5509 double arg2 ;
5510 PyObject * obj0 = 0 ;
5511 PyObject * obj1 = 0 ;
5512 char *kwnames[] = {
5513 (char *) "self",(char *) "m_x", NULL
5514 };
5515
5516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_x_set",kwnames,&obj0,&obj1)) goto fail;
5517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5519 arg2 = (double) SWIG_AsDouble(obj1);
5520 if (PyErr_Occurred()) SWIG_fail;
5521 if (arg1) (arg1)->m_x = arg2;
5522
5523 Py_INCREF(Py_None); resultobj = Py_None;
5524 return resultobj;
5525 fail:
5526 return NULL;
5527}
5528
5529
5530static PyObject *_wrap_Point2D_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
5531 PyObject *resultobj;
5532 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5533 double result;
5534 PyObject * obj0 = 0 ;
5535 char *kwnames[] = {
5536 (char *) "self", NULL
5537 };
5538
5539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_x_get",kwnames,&obj0)) goto fail;
5540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5542 result = (double) ((arg1)->m_x);
5543
5544 resultobj = SWIG_FromDouble((double)result);
5545 return resultobj;
5546 fail:
5547 return NULL;
5548}
5549
5550
5551static PyObject *_wrap_Point2D_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
5552 PyObject *resultobj;
5553 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5554 double arg2 ;
5555 PyObject * obj0 = 0 ;
5556 PyObject * obj1 = 0 ;
5557 char *kwnames[] = {
5558 (char *) "self",(char *) "m_y", NULL
5559 };
5560
5561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_y_set",kwnames,&obj0,&obj1)) goto fail;
5562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5564 arg2 = (double) SWIG_AsDouble(obj1);
5565 if (PyErr_Occurred()) SWIG_fail;
5566 if (arg1) (arg1)->m_y = arg2;
5567
5568 Py_INCREF(Py_None); resultobj = Py_None;
5569 return resultobj;
5570 fail:
5571 return NULL;
5572}
5573
5574
5575static PyObject *_wrap_Point2D_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
5576 PyObject *resultobj;
5577 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5578 double result;
5579 PyObject * obj0 = 0 ;
5580 char *kwnames[] = {
5581 (char *) "self", NULL
5582 };
5583
5584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_y_get",kwnames,&obj0)) goto fail;
5585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5587 result = (double) ((arg1)->m_y);
5588
5589 resultobj = SWIG_FromDouble((double)result);
5590 return resultobj;
5591 fail:
5592 return NULL;
5593}
5594
5595
5596static PyObject *_wrap_Point2D_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
5597 PyObject *resultobj;
5598 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5599 double arg2 = (double) 0 ;
5600 double arg3 = (double) 0 ;
5601 PyObject * obj0 = 0 ;
5602 PyObject * obj1 = 0 ;
5603 PyObject * obj2 = 0 ;
5604 char *kwnames[] = {
5605 (char *) "self",(char *) "x",(char *) "y", NULL
5606 };
5607
5608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Point2D_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
5609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5611 if (obj1) {
5612 arg2 = (double) SWIG_AsDouble(obj1);
5613 if (PyErr_Occurred()) SWIG_fail;
5614 }
5615 if (obj2) {
5616 arg3 = (double) SWIG_AsDouble(obj2);
5617 if (PyErr_Occurred()) SWIG_fail;
5618 }
5619 {
5620 PyThreadState* __tstate = wxPyBeginAllowThreads();
5621 wxPoint2D_Set(arg1,arg2,arg3);
5622
5623 wxPyEndAllowThreads(__tstate);
5624 if (PyErr_Occurred()) SWIG_fail;
5625 }
5626 Py_INCREF(Py_None); resultobj = Py_None;
5627 return resultobj;
5628 fail:
5629 return NULL;
5630}
5631
5632
5633static PyObject *_wrap_Point2D_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
5634 PyObject *resultobj;
5635 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5636 PyObject *result;
5637 PyObject * obj0 = 0 ;
5638 char *kwnames[] = {
5639 (char *) "self", NULL
5640 };
5641
5642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_Get",kwnames,&obj0)) goto fail;
5643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5645 {
5646 PyThreadState* __tstate = wxPyBeginAllowThreads();
5647 result = (PyObject *)wxPoint2D_Get(arg1);
5648
5649 wxPyEndAllowThreads(__tstate);
5650 if (PyErr_Occurred()) SWIG_fail;
5651 }
5652 resultobj = result;
5653 return resultobj;
5654 fail:
5655 return NULL;
5656}
5657
5658
5659static PyObject * Point2D_swigregister(PyObject *self, PyObject *args) {
5660 PyObject *obj;
5661 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5662 SWIG_TypeClientData(SWIGTYPE_p_wxPoint2D, obj);
5663 Py_INCREF(obj);
5664 return Py_BuildValue((char *)"");
5665}
5666static int _wrap_DefaultPosition_set(PyObject *_val) {
5667 PyErr_SetString(PyExc_TypeError,"Variable DefaultPosition is read-only.");
5668 return 1;
5669}
5670
5671
5672static PyObject *_wrap_DefaultPosition_get() {
5673 PyObject *pyobj;
5674
5675 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultPosition), SWIGTYPE_p_wxPoint, 0);
5676 return pyobj;
5677}
5678
5679
5680static int _wrap_DefaultSize_set(PyObject *_val) {
5681 PyErr_SetString(PyExc_TypeError,"Variable DefaultSize is read-only.");
5682 return 1;
5683}
5684
5685
5686static PyObject *_wrap_DefaultSize_get() {
5687 PyObject *pyobj;
5688
5689 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSize), SWIGTYPE_p_wxSize, 0);
5690 return pyobj;
5691}
5692
5693
5694static PyObject *_wrap_new_InputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
5695 PyObject *resultobj;
5696 PyObject *arg1 = (PyObject *) 0 ;
5697 wxPyInputStream *result;
5698 PyObject * obj0 = 0 ;
5699 char *kwnames[] = {
5700 (char *) "p", NULL
5701 };
5702
5703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_InputStream",kwnames,&obj0)) goto fail;
5704 arg1 = obj0;
5705 {
5706 PyThreadState* __tstate = wxPyBeginAllowThreads();
5707 result = (wxPyInputStream *)new_wxPyInputStream(arg1);
5708
5709 wxPyEndAllowThreads(__tstate);
5710 if (PyErr_Occurred()) SWIG_fail;
5711 }
5712 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyInputStream, 1);
5713 return resultobj;
5714 fail:
5715 return NULL;
5716}
5717
5718
5719static PyObject *_wrap_InputStream_close(PyObject *self, PyObject *args, PyObject *kwargs) {
5720 PyObject *resultobj;
5721 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5722 PyObject * obj0 = 0 ;
5723 char *kwnames[] = {
5724 (char *) "self", NULL
5725 };
5726
5727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_close",kwnames,&obj0)) goto fail;
5728 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5730 {
5731 PyThreadState* __tstate = wxPyBeginAllowThreads();
5732 (arg1)->close();
5733
5734 wxPyEndAllowThreads(__tstate);
5735 if (PyErr_Occurred()) SWIG_fail;
5736 }
5737 Py_INCREF(Py_None); resultobj = Py_None;
5738 return resultobj;
5739 fail:
5740 return NULL;
5741}
5742
5743
5744static PyObject *_wrap_InputStream_flush(PyObject *self, PyObject *args, PyObject *kwargs) {
5745 PyObject *resultobj;
5746 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5747 PyObject * obj0 = 0 ;
5748 char *kwnames[] = {
5749 (char *) "self", NULL
5750 };
5751
5752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_flush",kwnames,&obj0)) goto fail;
5753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5755 {
5756 PyThreadState* __tstate = wxPyBeginAllowThreads();
5757 (arg1)->flush();
5758
5759 wxPyEndAllowThreads(__tstate);
5760 if (PyErr_Occurred()) SWIG_fail;
5761 }
5762 Py_INCREF(Py_None); resultobj = Py_None;
5763 return resultobj;
5764 fail:
5765 return NULL;
5766}
5767
5768
5769static PyObject *_wrap_InputStream_eof(PyObject *self, PyObject *args, PyObject *kwargs) {
5770 PyObject *resultobj;
5771 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5772 bool result;
5773 PyObject * obj0 = 0 ;
5774 char *kwnames[] = {
5775 (char *) "self", NULL
5776 };
5777
5778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_eof",kwnames,&obj0)) goto fail;
5779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5781 {
5782 PyThreadState* __tstate = wxPyBeginAllowThreads();
5783 result = (bool)(arg1)->eof();
5784
5785 wxPyEndAllowThreads(__tstate);
5786 if (PyErr_Occurred()) SWIG_fail;
5787 }
5788 {
5789 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5790 }
5791 return resultobj;
5792 fail:
5793 return NULL;
5794}
5795
5796
5797static PyObject *_wrap_InputStream_read(PyObject *self, PyObject *args, PyObject *kwargs) {
5798 PyObject *resultobj;
5799 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5800 int arg2 = (int) -1 ;
5801 PyObject *result;
5802 PyObject * obj0 = 0 ;
5803 PyObject * obj1 = 0 ;
5804 char *kwnames[] = {
5805 (char *) "self",(char *) "size", NULL
5806 };
5807
5808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_read",kwnames,&obj0,&obj1)) goto fail;
5809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5811 if (obj1) {
5812 arg2 = (int) SWIG_AsInt(obj1);
5813 if (PyErr_Occurred()) SWIG_fail;
5814 }
5815 {
5816 PyThreadState* __tstate = wxPyBeginAllowThreads();
5817 result = (PyObject *)(arg1)->read(arg2);
5818
5819 wxPyEndAllowThreads(__tstate);
5820 if (PyErr_Occurred()) SWIG_fail;
5821 }
5822 resultobj = result;
5823 return resultobj;
5824 fail:
5825 return NULL;
5826}
5827
5828
5829static PyObject *_wrap_InputStream_readline(PyObject *self, PyObject *args, PyObject *kwargs) {
5830 PyObject *resultobj;
5831 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5832 int arg2 = (int) -1 ;
5833 PyObject *result;
5834 PyObject * obj0 = 0 ;
5835 PyObject * obj1 = 0 ;
5836 char *kwnames[] = {
5837 (char *) "self",(char *) "size", NULL
5838 };
5839
5840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readline",kwnames,&obj0,&obj1)) goto fail;
5841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5843 if (obj1) {
5844 arg2 = (int) SWIG_AsInt(obj1);
5845 if (PyErr_Occurred()) SWIG_fail;
5846 }
5847 {
5848 PyThreadState* __tstate = wxPyBeginAllowThreads();
5849 result = (PyObject *)(arg1)->readline(arg2);
5850
5851 wxPyEndAllowThreads(__tstate);
5852 if (PyErr_Occurred()) SWIG_fail;
5853 }
5854 resultobj = result;
5855 return resultobj;
5856 fail:
5857 return NULL;
5858}
5859
5860
5861static PyObject *_wrap_InputStream_readlines(PyObject *self, PyObject *args, PyObject *kwargs) {
5862 PyObject *resultobj;
5863 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5864 int arg2 = (int) -1 ;
5865 PyObject *result;
5866 PyObject * obj0 = 0 ;
5867 PyObject * obj1 = 0 ;
5868 char *kwnames[] = {
5869 (char *) "self",(char *) "sizehint", NULL
5870 };
5871
5872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readlines",kwnames,&obj0,&obj1)) goto fail;
5873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5875 if (obj1) {
5876 arg2 = (int) SWIG_AsInt(obj1);
5877 if (PyErr_Occurred()) SWIG_fail;
5878 }
5879 {
5880 PyThreadState* __tstate = wxPyBeginAllowThreads();
5881 result = (PyObject *)(arg1)->readlines(arg2);
5882
5883 wxPyEndAllowThreads(__tstate);
5884 if (PyErr_Occurred()) SWIG_fail;
5885 }
5886 resultobj = result;
5887 return resultobj;
5888 fail:
5889 return NULL;
5890}
5891
5892
5893static PyObject *_wrap_InputStream_seek(PyObject *self, PyObject *args, PyObject *kwargs) {
5894 PyObject *resultobj;
5895 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5896 int arg2 ;
5897 int arg3 = (int) 0 ;
5898 PyObject * obj0 = 0 ;
5899 PyObject * obj1 = 0 ;
5900 PyObject * obj2 = 0 ;
5901 char *kwnames[] = {
5902 (char *) "self",(char *) "offset",(char *) "whence", NULL
5903 };
5904
5905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_seek",kwnames,&obj0,&obj1,&obj2)) goto fail;
5906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5908 arg2 = (int) SWIG_AsInt(obj1);
5909 if (PyErr_Occurred()) SWIG_fail;
5910 if (obj2) {
5911 arg3 = (int) SWIG_AsInt(obj2);
5912 if (PyErr_Occurred()) SWIG_fail;
5913 }
5914 {
5915 PyThreadState* __tstate = wxPyBeginAllowThreads();
5916 (arg1)->seek(arg2,arg3);
5917
5918 wxPyEndAllowThreads(__tstate);
5919 if (PyErr_Occurred()) SWIG_fail;
5920 }
5921 Py_INCREF(Py_None); resultobj = Py_None;
5922 return resultobj;
5923 fail:
5924 return NULL;
5925}
5926
5927
5928static PyObject *_wrap_InputStream_tell(PyObject *self, PyObject *args, PyObject *kwargs) {
5929 PyObject *resultobj;
5930 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5931 int result;
5932 PyObject * obj0 = 0 ;
5933 char *kwnames[] = {
5934 (char *) "self", NULL
5935 };
5936
5937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_tell",kwnames,&obj0)) goto fail;
5938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5940 {
5941 PyThreadState* __tstate = wxPyBeginAllowThreads();
5942 result = (int)(arg1)->tell();
5943
5944 wxPyEndAllowThreads(__tstate);
5945 if (PyErr_Occurred()) SWIG_fail;
5946 }
5947 resultobj = SWIG_FromInt((int)result);
5948 return resultobj;
5949 fail:
5950 return NULL;
5951}
5952
5953
5954static PyObject *_wrap_InputStream_Peek(PyObject *self, PyObject *args, PyObject *kwargs) {
5955 PyObject *resultobj;
5956 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5957 char result;
5958 PyObject * obj0 = 0 ;
5959 char *kwnames[] = {
5960 (char *) "self", NULL
5961 };
5962
5963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Peek",kwnames,&obj0)) goto fail;
5964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5966 {
5967 PyThreadState* __tstate = wxPyBeginAllowThreads();
5968 result = (char)(arg1)->Peek();
5969
5970 wxPyEndAllowThreads(__tstate);
5971 if (PyErr_Occurred()) SWIG_fail;
5972 }
5973 resultobj = SWIG_FromChar((char)result);
5974 return resultobj;
5975 fail:
5976 return NULL;
5977}
5978
5979
5980static PyObject *_wrap_InputStream_GetC(PyObject *self, PyObject *args, PyObject *kwargs) {
5981 PyObject *resultobj;
5982 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5983 char result;
5984 PyObject * obj0 = 0 ;
5985 char *kwnames[] = {
5986 (char *) "self", NULL
5987 };
5988
5989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_GetC",kwnames,&obj0)) goto fail;
5990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5992 {
5993 PyThreadState* __tstate = wxPyBeginAllowThreads();
5994 result = (char)(arg1)->GetC();
5995
5996 wxPyEndAllowThreads(__tstate);
5997 if (PyErr_Occurred()) SWIG_fail;
5998 }
5999 resultobj = SWIG_FromChar((char)result);
6000 return resultobj;
6001 fail:
6002 return NULL;
6003}
6004
6005
6006static PyObject *_wrap_InputStream_LastRead(PyObject *self, PyObject *args, PyObject *kwargs) {
6007 PyObject *resultobj;
6008 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6009 size_t result;
6010 PyObject * obj0 = 0 ;
6011 char *kwnames[] = {
6012 (char *) "self", NULL
6013 };
6014
6015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_LastRead",kwnames,&obj0)) goto fail;
6016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6018 {
6019 PyThreadState* __tstate = wxPyBeginAllowThreads();
6020 result = (size_t)(arg1)->LastRead();
6021
6022 wxPyEndAllowThreads(__tstate);
6023 if (PyErr_Occurred()) SWIG_fail;
6024 }
6025 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
6026 return resultobj;
6027 fail:
6028 return NULL;
6029}
6030
6031
6032static PyObject *_wrap_InputStream_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) {
6033 PyObject *resultobj;
6034 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6035 bool result;
6036 PyObject * obj0 = 0 ;
6037 char *kwnames[] = {
6038 (char *) "self", NULL
6039 };
6040
6041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_CanRead",kwnames,&obj0)) goto fail;
6042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6044 {
6045 PyThreadState* __tstate = wxPyBeginAllowThreads();
6046 result = (bool)(arg1)->CanRead();
6047
6048 wxPyEndAllowThreads(__tstate);
6049 if (PyErr_Occurred()) SWIG_fail;
6050 }
6051 {
6052 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6053 }
6054 return resultobj;
6055 fail:
6056 return NULL;
6057}
6058
6059
6060static PyObject *_wrap_InputStream_Eof(PyObject *self, PyObject *args, PyObject *kwargs) {
6061 PyObject *resultobj;
6062 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6063 bool result;
6064 PyObject * obj0 = 0 ;
6065 char *kwnames[] = {
6066 (char *) "self", NULL
6067 };
6068
6069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Eof",kwnames,&obj0)) goto fail;
6070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6072 {
6073 PyThreadState* __tstate = wxPyBeginAllowThreads();
6074 result = (bool)(arg1)->Eof();
6075
6076 wxPyEndAllowThreads(__tstate);
6077 if (PyErr_Occurred()) SWIG_fail;
6078 }
6079 {
6080 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6081 }
6082 return resultobj;
6083 fail:
6084 return NULL;
6085}
6086
6087
6088static PyObject *_wrap_InputStream_Ungetch(PyObject *self, PyObject *args, PyObject *kwargs) {
6089 PyObject *resultobj;
6090 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6091 char arg2 ;
6092 bool result;
6093 PyObject * obj0 = 0 ;
6094 PyObject * obj1 = 0 ;
6095 char *kwnames[] = {
6096 (char *) "self",(char *) "c", NULL
6097 };
6098
6099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InputStream_Ungetch",kwnames,&obj0,&obj1)) goto fail;
6100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6102 arg2 = (char) SWIG_AsChar(obj1);
6103 if (PyErr_Occurred()) SWIG_fail;
6104 {
6105 PyThreadState* __tstate = wxPyBeginAllowThreads();
6106 result = (bool)(arg1)->Ungetch(arg2);
6107
6108 wxPyEndAllowThreads(__tstate);
6109 if (PyErr_Occurred()) SWIG_fail;
6110 }
6111 {
6112 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6113 }
6114 return resultobj;
6115 fail:
6116 return NULL;
6117}
6118
6119
6120static PyObject *_wrap_InputStream_SeekI(PyObject *self, PyObject *args, PyObject *kwargs) {
6121 PyObject *resultobj;
6122 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6123 long arg2 ;
6124 int arg3 = (int) wxFromStart ;
6125 long result;
6126 PyObject * obj0 = 0 ;
6127 PyObject * obj1 = 0 ;
6128 PyObject * obj2 = 0 ;
6129 char *kwnames[] = {
6130 (char *) "self",(char *) "pos",(char *) "mode", NULL
6131 };
6132
6133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_SeekI",kwnames,&obj0,&obj1,&obj2)) goto fail;
6134 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6136 arg2 = (long) SWIG_AsLong(obj1);
6137 if (PyErr_Occurred()) SWIG_fail;
6138 if (obj2) {
6139 arg3 = (wxSeekMode) SWIG_AsInt(obj2);
6140 if (PyErr_Occurred()) SWIG_fail;
6141 }
6142 {
6143 PyThreadState* __tstate = wxPyBeginAllowThreads();
6144 result = (long)(arg1)->SeekI(arg2,(wxSeekMode )arg3);
6145
6146 wxPyEndAllowThreads(__tstate);
6147 if (PyErr_Occurred()) SWIG_fail;
6148 }
6149 resultobj = SWIG_FromLong((long)result);
6150 return resultobj;
6151 fail:
6152 return NULL;
6153}
6154
6155
6156static PyObject *_wrap_InputStream_TellI(PyObject *self, PyObject *args, PyObject *kwargs) {
6157 PyObject *resultobj;
6158 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6159 long result;
6160 PyObject * obj0 = 0 ;
6161 char *kwnames[] = {
6162 (char *) "self", NULL
6163 };
6164
6165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_TellI",kwnames,&obj0)) goto fail;
6166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6168 {
6169 PyThreadState* __tstate = wxPyBeginAllowThreads();
6170 result = (long)(arg1)->TellI();
6171
6172 wxPyEndAllowThreads(__tstate);
6173 if (PyErr_Occurred()) SWIG_fail;
6174 }
6175 resultobj = SWIG_FromLong((long)result);
6176 return resultobj;
6177 fail:
6178 return NULL;
6179}
6180
6181
6182static PyObject * InputStream_swigregister(PyObject *self, PyObject *args) {
6183 PyObject *obj;
6184 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6185 SWIG_TypeClientData(SWIGTYPE_p_wxPyInputStream, obj);
6186 Py_INCREF(obj);
6187 return Py_BuildValue((char *)"");
6188}
6189static PyObject *_wrap_OutputStream_write(PyObject *self, PyObject *args, PyObject *kwargs) {
6190 PyObject *resultobj;
6191 wxOutputStream *arg1 = (wxOutputStream *) 0 ;
6192 PyObject *arg2 = (PyObject *) 0 ;
6193 PyObject * obj0 = 0 ;
6194 PyObject * obj1 = 0 ;
6195 char *kwnames[] = {
6196 (char *) "self",(char *) "obj", NULL
6197 };
6198
6199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:OutputStream_write",kwnames,&obj0,&obj1)) goto fail;
6200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxOutputStream,
6201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6202 arg2 = obj1;
6203 {
6204 PyThreadState* __tstate = wxPyBeginAllowThreads();
6205 wxOutputStream_write(arg1,arg2);
6206
6207 wxPyEndAllowThreads(__tstate);
6208 if (PyErr_Occurred()) SWIG_fail;
6209 }
6210 Py_INCREF(Py_None); resultobj = Py_None;
6211 return resultobj;
6212 fail:
6213 return NULL;
6214}
6215
6216
6217static PyObject * OutputStream_swigregister(PyObject *self, PyObject *args) {
6218 PyObject *obj;
6219 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6220 SWIG_TypeClientData(SWIGTYPE_p_wxOutputStream, obj);
6221 Py_INCREF(obj);
6222 return Py_BuildValue((char *)"");
6223}
6224static PyObject *_wrap_new_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) {
6225 PyObject *resultobj;
6226 wxInputStream *arg1 = (wxInputStream *) 0 ;
6227 wxString *arg2 = 0 ;
6228 wxString *arg3 = 0 ;
6229 wxString *arg4 = 0 ;
6230 wxDateTime arg5 ;
6231 wxFSFile *result;
6232 wxPyInputStream *temp1 ;
6233 bool created1 ;
6234 bool temp2 = False ;
6235 bool temp3 = False ;
6236 bool temp4 = False ;
6237 wxDateTime *argp5 ;
6238 PyObject * obj0 = 0 ;
6239 PyObject * obj1 = 0 ;
6240 PyObject * obj2 = 0 ;
6241 PyObject * obj3 = 0 ;
6242 PyObject * obj4 = 0 ;
6243 char *kwnames[] = {
6244 (char *) "stream",(char *) "loc",(char *) "mimetype",(char *) "anchor",(char *) "modif", NULL
6245 };
6246
6247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
6248 {
6249 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
6250 arg1 = temp1->m_wxis;
6251 created1 = False;
6252 } else {
6253 PyErr_Clear(); // clear the failure of the wxPyConvert above
6254 arg1 = wxPyCBInputStream_create(obj0, False);
6255 if (arg1 == NULL) {
6256 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
6257 SWIG_fail;
6258 }
6259 created1 = True;
6260 }
6261 }
6262 {
6263 arg2 = wxString_in_helper(obj1);
6264 if (arg2 == NULL) SWIG_fail;
6265 temp2 = True;
6266 }
6267 {
6268 arg3 = wxString_in_helper(obj2);
6269 if (arg3 == NULL) SWIG_fail;
6270 temp3 = True;
6271 }
6272 {
6273 arg4 = wxString_in_helper(obj3);
6274 if (arg4 == NULL) SWIG_fail;
6275 temp4 = True;
6276 }
6277 if ((SWIG_ConvertPtr(obj4,(void **)(&argp5),SWIGTYPE_p_wxDateTime,
6278 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
6279 arg5 = *argp5;
6280 {
6281 PyThreadState* __tstate = wxPyBeginAllowThreads();
6282 result = (wxFSFile *)new wxFSFile(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
6283
6284 wxPyEndAllowThreads(__tstate);
6285 if (PyErr_Occurred()) SWIG_fail;
6286 }
6287 {
6288 resultobj = wxPyMake_wxObject(result);
6289 }
6290 {
6291 if (created1)
6292 delete arg1;
6293 }
6294 {
6295 if (temp2)
6296 delete arg2;
6297 }
6298 {
6299 if (temp3)
6300 delete arg3;
6301 }
6302 {
6303 if (temp4)
6304 delete arg4;
6305 }
6306 return resultobj;
6307 fail:
6308 {
6309 if (created1)
6310 delete arg1;
6311 }
6312 {
6313 if (temp2)
6314 delete arg2;
6315 }
6316 {
6317 if (temp3)
6318 delete arg3;
6319 }
6320 {
6321 if (temp4)
6322 delete arg4;
6323 }
6324 return NULL;
6325}
6326
6327
6328static PyObject *_wrap_delete_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) {
6329 PyObject *resultobj;
6330 wxFSFile *arg1 = (wxFSFile *) 0 ;
6331 PyObject * obj0 = 0 ;
6332 char *kwnames[] = {
6333 (char *) "self", NULL
6334 };
6335
6336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FSFile",kwnames,&obj0)) goto fail;
6337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile,
6338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6339 {
6340 PyThreadState* __tstate = wxPyBeginAllowThreads();
6341 delete arg1;
6342
6343 wxPyEndAllowThreads(__tstate);
6344 if (PyErr_Occurred()) SWIG_fail;
6345 }
6346 Py_INCREF(Py_None); resultobj = Py_None;
6347 return resultobj;
6348 fail:
6349 return NULL;
6350}
6351
6352
6353static PyObject *_wrap_FSFile_GetStream(PyObject *self, PyObject *args, PyObject *kwargs) {
6354 PyObject *resultobj;
6355 wxFSFile *arg1 = (wxFSFile *) 0 ;
6356 wxInputStream *result;
6357 PyObject * obj0 = 0 ;
6358 char *kwnames[] = {
6359 (char *) "self", NULL
6360 };
6361
6362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetStream",kwnames,&obj0)) goto fail;
6363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile,
6364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6365 {
6366 PyThreadState* __tstate = wxPyBeginAllowThreads();
6367 result = (wxInputStream *)(arg1)->GetStream();
6368
6369 wxPyEndAllowThreads(__tstate);
6370 if (PyErr_Occurred()) SWIG_fail;
6371 }
6372 {
6373 wxPyInputStream * _ptr = NULL;
6374
6375 if (result) {
6376 _ptr = new wxPyInputStream(result);
6377 }
6378 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
6379 }
6380 return resultobj;
6381 fail:
6382 return NULL;
6383}
6384
6385
6386static PyObject *_wrap_FSFile_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
6387 PyObject *resultobj;
6388 wxFSFile *arg1 = (wxFSFile *) 0 ;
6389 wxString *result;
6390 PyObject * obj0 = 0 ;
6391 char *kwnames[] = {
6392 (char *) "self", NULL
6393 };
6394
6395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetMimeType",kwnames,&obj0)) goto fail;
6396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile,
6397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6398 {
6399 PyThreadState* __tstate = wxPyBeginAllowThreads();
6400 {
6401 wxString const &_result_ref = (arg1)->GetMimeType();
6402 result = (wxString *) &_result_ref;
6403 }
6404
6405 wxPyEndAllowThreads(__tstate);
6406 if (PyErr_Occurred()) SWIG_fail;
6407 }
6408 {
6409#if wxUSE_UNICODE
6410 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6411#else
6412 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6413#endif
6414 }
6415 return resultobj;
6416 fail:
6417 return NULL;
6418}
6419
6420
6421static PyObject *_wrap_FSFile_GetLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
6422 PyObject *resultobj;
6423 wxFSFile *arg1 = (wxFSFile *) 0 ;
6424 wxString *result;
6425 PyObject * obj0 = 0 ;
6426 char *kwnames[] = {
6427 (char *) "self", NULL
6428 };
6429
6430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetLocation",kwnames,&obj0)) goto fail;
6431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile,
6432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6433 {
6434 PyThreadState* __tstate = wxPyBeginAllowThreads();
6435 {
6436 wxString const &_result_ref = (arg1)->GetLocation();
6437 result = (wxString *) &_result_ref;
6438 }
6439
6440 wxPyEndAllowThreads(__tstate);
6441 if (PyErr_Occurred()) SWIG_fail;
6442 }
6443 {
6444#if wxUSE_UNICODE
6445 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6446#else
6447 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6448#endif
6449 }
6450 return resultobj;
6451 fail:
6452 return NULL;
6453}
6454
6455
6456static PyObject *_wrap_FSFile_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) {
6457 PyObject *resultobj;
6458 wxFSFile *arg1 = (wxFSFile *) 0 ;
6459 wxString *result;
6460 PyObject * obj0 = 0 ;
6461 char *kwnames[] = {
6462 (char *) "self", NULL
6463 };
6464
6465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetAnchor",kwnames,&obj0)) goto fail;
6466 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile,
6467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6468 {
6469 PyThreadState* __tstate = wxPyBeginAllowThreads();
6470 {
6471 wxString const &_result_ref = (arg1)->GetAnchor();
6472 result = (wxString *) &_result_ref;
6473 }
6474
6475 wxPyEndAllowThreads(__tstate);
6476 if (PyErr_Occurred()) SWIG_fail;
6477 }
6478 {
6479#if wxUSE_UNICODE
6480 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6481#else
6482 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6483#endif
6484 }
6485 return resultobj;
6486 fail:
6487 return NULL;
6488}
6489
6490
6491static PyObject *_wrap_FSFile_GetModificationTime(PyObject *self, PyObject *args, PyObject *kwargs) {
6492 PyObject *resultobj;
6493 wxFSFile *arg1 = (wxFSFile *) 0 ;
6494 wxDateTime result;
6495 PyObject * obj0 = 0 ;
6496 char *kwnames[] = {
6497 (char *) "self", NULL
6498 };
6499
6500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetModificationTime",kwnames,&obj0)) goto fail;
6501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile,
6502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6503 {
6504 PyThreadState* __tstate = wxPyBeginAllowThreads();
6505 result = (arg1)->GetModificationTime();
6506
6507 wxPyEndAllowThreads(__tstate);
6508 if (PyErr_Occurred()) SWIG_fail;
6509 }
6510 {
6511 wxDateTime * resultptr;
6512 resultptr = new wxDateTime((wxDateTime &) result);
6513 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
6514 }
6515 return resultobj;
6516 fail:
6517 return NULL;
6518}
6519
6520
6521static PyObject * FSFile_swigregister(PyObject *self, PyObject *args) {
6522 PyObject *obj;
6523 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6524 SWIG_TypeClientData(SWIGTYPE_p_wxFSFile, obj);
6525 Py_INCREF(obj);
6526 return Py_BuildValue((char *)"");
6527}
6528static PyObject * CPPFileSystemHandler_swigregister(PyObject *self, PyObject *args) {
6529 PyObject *obj;
6530 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6531 SWIG_TypeClientData(SWIGTYPE_p_wxFileSystemHandler, obj);
6532 Py_INCREF(obj);
6533 return Py_BuildValue((char *)"");
6534}
6535static PyObject *_wrap_new_FileSystemHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
6536 PyObject *resultobj;
6537 wxPyFileSystemHandler *result;
6538 char *kwnames[] = {
6539 NULL
6540 };
6541
6542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystemHandler",kwnames)) goto fail;
6543 {
6544 PyThreadState* __tstate = wxPyBeginAllowThreads();
6545 result = (wxPyFileSystemHandler *)new wxPyFileSystemHandler();
6546
6547 wxPyEndAllowThreads(__tstate);
6548 if (PyErr_Occurred()) SWIG_fail;
6549 }
6550 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileSystemHandler, 1);
6551 return resultobj;
6552 fail:
6553 return NULL;
6554}
6555
6556
6557static PyObject *_wrap_FileSystemHandler__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6558 PyObject *resultobj;
6559 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6560 PyObject *arg2 = (PyObject *) 0 ;
6561 PyObject *arg3 = (PyObject *) 0 ;
6562 PyObject * obj0 = 0 ;
6563 PyObject * obj1 = 0 ;
6564 PyObject * obj2 = 0 ;
6565 char *kwnames[] = {
6566 (char *) "self",(char *) "self",(char *) "_class", NULL
6567 };
6568
6569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
6570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6572 arg2 = obj1;
6573 arg3 = obj2;
6574 {
6575 PyThreadState* __tstate = wxPyBeginAllowThreads();
6576 (arg1)->_setCallbackInfo(arg2,arg3);
6577
6578 wxPyEndAllowThreads(__tstate);
6579 if (PyErr_Occurred()) SWIG_fail;
6580 }
6581 Py_INCREF(Py_None); resultobj = Py_None;
6582 return resultobj;
6583 fail:
6584 return NULL;
6585}
6586
6587
6588static PyObject *_wrap_FileSystemHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) {
6589 PyObject *resultobj;
6590 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6591 wxString *arg2 = 0 ;
6592 bool result;
6593 bool temp2 = False ;
6594 PyObject * obj0 = 0 ;
6595 PyObject * obj1 = 0 ;
6596 char *kwnames[] = {
6597 (char *) "self",(char *) "location", NULL
6598 };
6599
6600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail;
6601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6603 {
6604 arg2 = wxString_in_helper(obj1);
6605 if (arg2 == NULL) SWIG_fail;
6606 temp2 = True;
6607 }
6608 {
6609 PyThreadState* __tstate = wxPyBeginAllowThreads();
6610 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
6611
6612 wxPyEndAllowThreads(__tstate);
6613 if (PyErr_Occurred()) SWIG_fail;
6614 }
6615 {
6616 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6617 }
6618 {
6619 if (temp2)
6620 delete arg2;
6621 }
6622 return resultobj;
6623 fail:
6624 {
6625 if (temp2)
6626 delete arg2;
6627 }
6628 return NULL;
6629}
6630
6631
6632static PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) {
6633 PyObject *resultobj;
6634 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6635 wxFileSystem *arg2 = 0 ;
6636 wxString *arg3 = 0 ;
6637 wxFSFile *result;
6638 bool temp3 = False ;
6639 PyObject * obj0 = 0 ;
6640 PyObject * obj1 = 0 ;
6641 PyObject * obj2 = 0 ;
6642 char *kwnames[] = {
6643 (char *) "self",(char *) "fs",(char *) "location", NULL
6644 };
6645
6646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
6647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6649 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem,
6650 SWIG_POINTER_EXCEPTION | 0)) == -1)
6651 SWIG_fail;
6652 if (arg2 == NULL) {
6653 PyErr_SetString(PyExc_TypeError,"null reference");
6654 SWIG_fail;
6655 }
6656 {
6657 arg3 = wxString_in_helper(obj2);
6658 if (arg3 == NULL) SWIG_fail;
6659 temp3 = True;
6660 }
6661 {
6662 PyThreadState* __tstate = wxPyBeginAllowThreads();
6663 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
6664
6665 wxPyEndAllowThreads(__tstate);
6666 if (PyErr_Occurred()) SWIG_fail;
6667 }
6668 {
6669 resultobj = wxPyMake_wxObject(result);
6670 }
6671 {
6672 if (temp3)
6673 delete arg3;
6674 }
6675 return resultobj;
6676 fail:
6677 {
6678 if (temp3)
6679 delete arg3;
6680 }
6681 return NULL;
6682}
6683
6684
6685static PyObject *_wrap_FileSystemHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) {
6686 PyObject *resultobj;
6687 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6688 wxString *arg2 = 0 ;
6689 int arg3 = (int) 0 ;
6690 wxString result;
6691 bool temp2 = False ;
6692 PyObject * obj0 = 0 ;
6693 PyObject * obj1 = 0 ;
6694 PyObject * obj2 = 0 ;
6695 char *kwnames[] = {
6696 (char *) "self",(char *) "spec",(char *) "flags", NULL
6697 };
6698
6699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystemHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail;
6700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6702 {
6703 arg2 = wxString_in_helper(obj1);
6704 if (arg2 == NULL) SWIG_fail;
6705 temp2 = True;
6706 }
6707 if (obj2) {
6708 arg3 = (int) SWIG_AsInt(obj2);
6709 if (PyErr_Occurred()) SWIG_fail;
6710 }
6711 {
6712 PyThreadState* __tstate = wxPyBeginAllowThreads();
6713 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
6714
6715 wxPyEndAllowThreads(__tstate);
6716 if (PyErr_Occurred()) SWIG_fail;
6717 }
6718 {
6719#if wxUSE_UNICODE
6720 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6721#else
6722 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6723#endif
6724 }
6725 {
6726 if (temp2)
6727 delete arg2;
6728 }
6729 return resultobj;
6730 fail:
6731 {
6732 if (temp2)
6733 delete arg2;
6734 }
6735 return NULL;
6736}
6737
6738
6739static PyObject *_wrap_FileSystemHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) {
6740 PyObject *resultobj;
6741 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6742 wxString result;
6743 PyObject * obj0 = 0 ;
6744 char *kwnames[] = {
6745 (char *) "self", NULL
6746 };
6747
6748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystemHandler_FindNext",kwnames,&obj0)) goto fail;
6749 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6751 {
6752 PyThreadState* __tstate = wxPyBeginAllowThreads();
6753 result = (arg1)->FindNext();
6754
6755 wxPyEndAllowThreads(__tstate);
6756 if (PyErr_Occurred()) SWIG_fail;
6757 }
6758 {
6759#if wxUSE_UNICODE
6760 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6761#else
6762 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6763#endif
6764 }
6765 return resultobj;
6766 fail:
6767 return NULL;
6768}
6769
6770
6771static PyObject *_wrap_FileSystemHandler_GetProtocol(PyObject *self, PyObject *args, PyObject *kwargs) {
6772 PyObject *resultobj;
6773 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6774 wxString *arg2 = 0 ;
6775 wxString result;
6776 bool temp2 = False ;
6777 PyObject * obj0 = 0 ;
6778 PyObject * obj1 = 0 ;
6779 char *kwnames[] = {
6780 (char *) "self",(char *) "location", NULL
6781 };
6782
6783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetProtocol",kwnames,&obj0,&obj1)) goto fail;
6784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6786 {
6787 arg2 = wxString_in_helper(obj1);
6788 if (arg2 == NULL) SWIG_fail;
6789 temp2 = True;
6790 }
6791 {
6792 PyThreadState* __tstate = wxPyBeginAllowThreads();
6793 result = (arg1)->GetProtocol((wxString const &)*arg2);
6794
6795 wxPyEndAllowThreads(__tstate);
6796 if (PyErr_Occurred()) SWIG_fail;
6797 }
6798 {
6799#if wxUSE_UNICODE
6800 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6801#else
6802 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6803#endif
6804 }
6805 {
6806 if (temp2)
6807 delete arg2;
6808 }
6809 return resultobj;
6810 fail:
6811 {
6812 if (temp2)
6813 delete arg2;
6814 }
6815 return NULL;
6816}
6817
6818
6819static PyObject *_wrap_FileSystemHandler_GetLeftLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
6820 PyObject *resultobj;
6821 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6822 wxString *arg2 = 0 ;
6823 wxString result;
6824 bool temp2 = False ;
6825 PyObject * obj0 = 0 ;
6826 PyObject * obj1 = 0 ;
6827 char *kwnames[] = {
6828 (char *) "self",(char *) "location", NULL
6829 };
6830
6831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetLeftLocation",kwnames,&obj0,&obj1)) goto fail;
6832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6834 {
6835 arg2 = wxString_in_helper(obj1);
6836 if (arg2 == NULL) SWIG_fail;
6837 temp2 = True;
6838 }
6839 {
6840 PyThreadState* __tstate = wxPyBeginAllowThreads();
6841 result = (arg1)->GetLeftLocation((wxString const &)*arg2);
6842
6843 wxPyEndAllowThreads(__tstate);
6844 if (PyErr_Occurred()) SWIG_fail;
6845 }
6846 {
6847#if wxUSE_UNICODE
6848 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6849#else
6850 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6851#endif
6852 }
6853 {
6854 if (temp2)
6855 delete arg2;
6856 }
6857 return resultobj;
6858 fail:
6859 {
6860 if (temp2)
6861 delete arg2;
6862 }
6863 return NULL;
6864}
6865
6866
6867static PyObject *_wrap_FileSystemHandler_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) {
6868 PyObject *resultobj;
6869 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6870 wxString *arg2 = 0 ;
6871 wxString result;
6872 bool temp2 = False ;
6873 PyObject * obj0 = 0 ;
6874 PyObject * obj1 = 0 ;
6875 char *kwnames[] = {
6876 (char *) "self",(char *) "location", NULL
6877 };
6878
6879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetAnchor",kwnames,&obj0,&obj1)) goto fail;
6880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6882 {
6883 arg2 = wxString_in_helper(obj1);
6884 if (arg2 == NULL) SWIG_fail;
6885 temp2 = True;
6886 }
6887 {
6888 PyThreadState* __tstate = wxPyBeginAllowThreads();
6889 result = (arg1)->GetAnchor((wxString const &)*arg2);
6890
6891 wxPyEndAllowThreads(__tstate);
6892 if (PyErr_Occurred()) SWIG_fail;
6893 }
6894 {
6895#if wxUSE_UNICODE
6896 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6897#else
6898 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6899#endif
6900 }
6901 {
6902 if (temp2)
6903 delete arg2;
6904 }
6905 return resultobj;
6906 fail:
6907 {
6908 if (temp2)
6909 delete arg2;
6910 }
6911 return NULL;
6912}
6913
6914
6915static PyObject *_wrap_FileSystemHandler_GetRightLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
6916 PyObject *resultobj;
6917 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6918 wxString *arg2 = 0 ;
6919 wxString result;
6920 bool temp2 = False ;
6921 PyObject * obj0 = 0 ;
6922 PyObject * obj1 = 0 ;
6923 char *kwnames[] = {
6924 (char *) "self",(char *) "location", NULL
6925 };
6926
6927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetRightLocation",kwnames,&obj0,&obj1)) goto fail;
6928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6930 {
6931 arg2 = wxString_in_helper(obj1);
6932 if (arg2 == NULL) SWIG_fail;
6933 temp2 = True;
6934 }
6935 {
6936 PyThreadState* __tstate = wxPyBeginAllowThreads();
6937 result = (arg1)->GetRightLocation((wxString const &)*arg2);
6938
6939 wxPyEndAllowThreads(__tstate);
6940 if (PyErr_Occurred()) SWIG_fail;
6941 }
6942 {
6943#if wxUSE_UNICODE
6944 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6945#else
6946 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6947#endif
6948 }
6949 {
6950 if (temp2)
6951 delete arg2;
6952 }
6953 return resultobj;
6954 fail:
6955 {
6956 if (temp2)
6957 delete arg2;
6958 }
6959 return NULL;
6960}
6961
6962
6963static PyObject *_wrap_FileSystemHandler_GetMimeTypeFromExt(PyObject *self, PyObject *args, PyObject *kwargs) {
6964 PyObject *resultobj;
6965 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6966 wxString *arg2 = 0 ;
6967 wxString result;
6968 bool temp2 = False ;
6969 PyObject * obj0 = 0 ;
6970 PyObject * obj1 = 0 ;
6971 char *kwnames[] = {
6972 (char *) "self",(char *) "location", NULL
6973 };
6974
6975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetMimeTypeFromExt",kwnames,&obj0,&obj1)) goto fail;
6976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6978 {
6979 arg2 = wxString_in_helper(obj1);
6980 if (arg2 == NULL) SWIG_fail;
6981 temp2 = True;
6982 }
6983 {
6984 PyThreadState* __tstate = wxPyBeginAllowThreads();
6985 result = (arg1)->GetMimeTypeFromExt((wxString const &)*arg2);
6986
6987 wxPyEndAllowThreads(__tstate);
6988 if (PyErr_Occurred()) SWIG_fail;
6989 }
6990 {
6991#if wxUSE_UNICODE
6992 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6993#else
6994 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6995#endif
6996 }
6997 {
6998 if (temp2)
6999 delete arg2;
7000 }
7001 return resultobj;
7002 fail:
7003 {
7004 if (temp2)
7005 delete arg2;
7006 }
7007 return NULL;
7008}
7009
7010
7011static PyObject * FileSystemHandler_swigregister(PyObject *self, PyObject *args) {
7012 PyObject *obj;
7013 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7014 SWIG_TypeClientData(SWIGTYPE_p_wxPyFileSystemHandler, obj);
7015 Py_INCREF(obj);
7016 return Py_BuildValue((char *)"");
7017}
7018static PyObject *_wrap_new_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) {
7019 PyObject *resultobj;
7020 wxFileSystem *result;
7021 char *kwnames[] = {
7022 NULL
7023 };
7024
7025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystem",kwnames)) goto fail;
7026 {
7027 PyThreadState* __tstate = wxPyBeginAllowThreads();
7028 result = (wxFileSystem *)new wxFileSystem();
7029
7030 wxPyEndAllowThreads(__tstate);
7031 if (PyErr_Occurred()) SWIG_fail;
7032 }
7033 {
7034 resultobj = wxPyMake_wxObject(result);
7035 }
7036 return resultobj;
7037 fail:
7038 return NULL;
7039}
7040
7041
7042static PyObject *_wrap_delete_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) {
7043 PyObject *resultobj;
7044 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
7045 PyObject * obj0 = 0 ;
7046 char *kwnames[] = {
7047 (char *) "self", NULL
7048 };
7049
7050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileSystem",kwnames,&obj0)) goto fail;
7051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem,
7052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7053 {
7054 PyThreadState* __tstate = wxPyBeginAllowThreads();
7055 delete arg1;
7056
7057 wxPyEndAllowThreads(__tstate);
7058 if (PyErr_Occurred()) SWIG_fail;
7059 }
7060 Py_INCREF(Py_None); resultobj = Py_None;
7061 return resultobj;
7062 fail:
7063 return NULL;
7064}
7065
7066
7067static PyObject *_wrap_FileSystem_ChangePathTo(PyObject *self, PyObject *args, PyObject *kwargs) {
7068 PyObject *resultobj;
7069 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
7070 wxString *arg2 = 0 ;
7071 bool arg3 = (bool) False ;
7072 bool temp2 = False ;
7073 PyObject * obj0 = 0 ;
7074 PyObject * obj1 = 0 ;
7075 PyObject * obj2 = 0 ;
7076 char *kwnames[] = {
7077 (char *) "self",(char *) "location",(char *) "is_dir", NULL
7078 };
7079
7080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_ChangePathTo",kwnames,&obj0,&obj1,&obj2)) goto fail;
7081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem,
7082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7083 {
7084 arg2 = wxString_in_helper(obj1);
7085 if (arg2 == NULL) SWIG_fail;
7086 temp2 = True;
7087 }
7088 if (obj2) {
7089 arg3 = (bool) SWIG_AsBool(obj2);
7090 if (PyErr_Occurred()) SWIG_fail;
7091 }
7092 {
7093 PyThreadState* __tstate = wxPyBeginAllowThreads();
7094 (arg1)->ChangePathTo((wxString const &)*arg2,arg3);
7095
7096 wxPyEndAllowThreads(__tstate);
7097 if (PyErr_Occurred()) SWIG_fail;
7098 }
7099 Py_INCREF(Py_None); resultobj = Py_None;
7100 {
7101 if (temp2)
7102 delete arg2;
7103 }
7104 return resultobj;
7105 fail:
7106 {
7107 if (temp2)
7108 delete arg2;
7109 }
7110 return NULL;
7111}
7112
7113
7114static PyObject *_wrap_FileSystem_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7115 PyObject *resultobj;
7116 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
7117 wxString result;
7118 PyObject * obj0 = 0 ;
7119 char *kwnames[] = {
7120 (char *) "self", NULL
7121 };
7122
7123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_GetPath",kwnames,&obj0)) goto fail;
7124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem,
7125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7126 {
7127 PyThreadState* __tstate = wxPyBeginAllowThreads();
7128 result = (arg1)->GetPath();
7129
7130 wxPyEndAllowThreads(__tstate);
7131 if (PyErr_Occurred()) SWIG_fail;
7132 }
7133 {
7134#if wxUSE_UNICODE
7135 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7136#else
7137 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7138#endif
7139 }
7140 return resultobj;
7141 fail:
7142 return NULL;
7143}
7144
7145
7146static PyObject *_wrap_FileSystem_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) {
7147 PyObject *resultobj;
7148 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
7149 wxString *arg2 = 0 ;
7150 wxFSFile *result;
7151 bool temp2 = False ;
7152 PyObject * obj0 = 0 ;
7153 PyObject * obj1 = 0 ;
7154 char *kwnames[] = {
7155 (char *) "self",(char *) "location", NULL
7156 };
7157
7158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystem_OpenFile",kwnames,&obj0,&obj1)) goto fail;
7159 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem,
7160 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7161 {
7162 arg2 = wxString_in_helper(obj1);
7163 if (arg2 == NULL) SWIG_fail;
7164 temp2 = True;
7165 }
7166 {
7167 PyThreadState* __tstate = wxPyBeginAllowThreads();
7168 result = (wxFSFile *)(arg1)->OpenFile((wxString const &)*arg2);
7169
7170 wxPyEndAllowThreads(__tstate);
7171 if (PyErr_Occurred()) SWIG_fail;
7172 }
7173 {
7174 resultobj = wxPyMake_wxObject(result);
7175 }
7176 {
7177 if (temp2)
7178 delete arg2;
7179 }
7180 return resultobj;
7181 fail:
7182 {
7183 if (temp2)
7184 delete arg2;
7185 }
7186 return NULL;
7187}
7188
7189
7190static PyObject *_wrap_FileSystem_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) {
7191 PyObject *resultobj;
7192 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
7193 wxString *arg2 = 0 ;
7194 int arg3 = (int) 0 ;
7195 wxString result;
7196 bool temp2 = False ;
7197 PyObject * obj0 = 0 ;
7198 PyObject * obj1 = 0 ;
7199 PyObject * obj2 = 0 ;
7200 char *kwnames[] = {
7201 (char *) "self",(char *) "spec",(char *) "flags", NULL
7202 };
7203
7204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail;
7205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem,
7206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7207 {
7208 arg2 = wxString_in_helper(obj1);
7209 if (arg2 == NULL) SWIG_fail;
7210 temp2 = True;
7211 }
7212 if (obj2) {
7213 arg3 = (int) SWIG_AsInt(obj2);
7214 if (PyErr_Occurred()) SWIG_fail;
7215 }
7216 {
7217 PyThreadState* __tstate = wxPyBeginAllowThreads();
7218 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
7219
7220 wxPyEndAllowThreads(__tstate);
7221 if (PyErr_Occurred()) SWIG_fail;
7222 }
7223 {
7224#if wxUSE_UNICODE
7225 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7226#else
7227 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7228#endif
7229 }
7230 {
7231 if (temp2)
7232 delete arg2;
7233 }
7234 return resultobj;
7235 fail:
7236 {
7237 if (temp2)
7238 delete arg2;
7239 }
7240 return NULL;
7241}
7242
7243
7244static PyObject *_wrap_FileSystem_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) {
7245 PyObject *resultobj;
7246 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
7247 wxString result;
7248 PyObject * obj0 = 0 ;
7249 char *kwnames[] = {
7250 (char *) "self", NULL
7251 };
7252
7253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FindNext",kwnames,&obj0)) goto fail;
7254 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem,
7255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7256 {
7257 PyThreadState* __tstate = wxPyBeginAllowThreads();
7258 result = (arg1)->FindNext();
7259
7260 wxPyEndAllowThreads(__tstate);
7261 if (PyErr_Occurred()) SWIG_fail;
7262 }
7263 {
7264#if wxUSE_UNICODE
7265 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7266#else
7267 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7268#endif
7269 }
7270 return resultobj;
7271 fail:
7272 return NULL;
7273}
7274
7275
7276static PyObject *_wrap_FileSystem_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
7277 PyObject *resultobj;
7278 wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ;
7279 PyObject * obj0 = 0 ;
7280 char *kwnames[] = {
7281 (char *) "handler", NULL
7282 };
7283
7284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_AddHandler",kwnames,&obj0)) goto fail;
7285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystemHandler,
7286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7287 {
7288 PyThreadState* __tstate = wxPyBeginAllowThreads();
7289 wxFileSystem::AddHandler(arg1);
7290
7291 wxPyEndAllowThreads(__tstate);
7292 if (PyErr_Occurred()) SWIG_fail;
7293 }
7294 Py_INCREF(Py_None); resultobj = Py_None;
7295 return resultobj;
7296 fail:
7297 return NULL;
7298}
7299
7300
7301static PyObject *_wrap_FileSystem_CleanUpHandlers(PyObject *self, PyObject *args, PyObject *kwargs) {
7302 PyObject *resultobj;
7303 char *kwnames[] = {
7304 NULL
7305 };
7306
7307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FileSystem_CleanUpHandlers",kwnames)) goto fail;
7308 {
7309 PyThreadState* __tstate = wxPyBeginAllowThreads();
7310 wxFileSystem::CleanUpHandlers();
7311
7312 wxPyEndAllowThreads(__tstate);
7313 if (PyErr_Occurred()) SWIG_fail;
7314 }
7315 Py_INCREF(Py_None); resultobj = Py_None;
7316 return resultobj;
7317 fail:
7318 return NULL;
7319}
7320
7321
7322static PyObject *_wrap_FileSystem_FileNameToURL(PyObject *self, PyObject *args, PyObject *kwargs) {
7323 PyObject *resultobj;
7324 wxString *arg1 = 0 ;
7325 wxString result;
7326 bool temp1 = False ;
7327 PyObject * obj0 = 0 ;
7328 char *kwnames[] = {
7329 (char *) "filename", NULL
7330 };
7331
7332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FileNameToURL",kwnames,&obj0)) goto fail;
7333 {
7334 arg1 = wxString_in_helper(obj0);
7335 if (arg1 == NULL) SWIG_fail;
7336 temp1 = True;
7337 }
7338 {
7339 PyThreadState* __tstate = wxPyBeginAllowThreads();
7340 result = wxFileSystem::FileNameToURL((wxString const &)*arg1);
7341
7342 wxPyEndAllowThreads(__tstate);
7343 if (PyErr_Occurred()) SWIG_fail;
7344 }
7345 {
7346#if wxUSE_UNICODE
7347 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7348#else
7349 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7350#endif
7351 }
7352 {
7353 if (temp1)
7354 delete arg1;
7355 }
7356 return resultobj;
7357 fail:
7358 {
7359 if (temp1)
7360 delete arg1;
7361 }
7362 return NULL;
7363}
7364
7365
7366static PyObject * FileSystem_swigregister(PyObject *self, PyObject *args) {
7367 PyObject *obj;
7368 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7369 SWIG_TypeClientData(SWIGTYPE_p_wxFileSystem, obj);
7370 Py_INCREF(obj);
7371 return Py_BuildValue((char *)"");
7372}
7373static PyObject *_wrap_FileSystem_URLToFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
7374 PyObject *resultobj;
7375 wxString *arg1 = 0 ;
7376 wxString result;
7377 bool temp1 = False ;
7378 PyObject * obj0 = 0 ;
7379 char *kwnames[] = {
7380 (char *) "url", NULL
7381 };
7382
7383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_URLToFileName",kwnames,&obj0)) goto fail;
7384 {
7385 arg1 = wxString_in_helper(obj0);
7386 if (arg1 == NULL) SWIG_fail;
7387 temp1 = True;
7388 }
7389 {
7390 PyThreadState* __tstate = wxPyBeginAllowThreads();
7391 result = wxFileSystem_URLToFileName((wxString const &)*arg1);
7392
7393 wxPyEndAllowThreads(__tstate);
7394 if (PyErr_Occurred()) SWIG_fail;
7395 }
7396 {
7397#if wxUSE_UNICODE
7398 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7399#else
7400 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7401#endif
7402 }
7403 {
7404 if (temp1)
7405 delete arg1;
7406 }
7407 return resultobj;
7408 fail:
7409 {
7410 if (temp1)
7411 delete arg1;
7412 }
7413 return NULL;
7414}
7415
7416
7417static PyObject *_wrap_new_InternetFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
7418 PyObject *resultobj;
7419 wxInternetFSHandler *result;
7420 char *kwnames[] = {
7421 NULL
7422 };
7423
7424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_InternetFSHandler",kwnames)) goto fail;
7425 {
7426 PyThreadState* __tstate = wxPyBeginAllowThreads();
7427 result = (wxInternetFSHandler *)new wxInternetFSHandler();
7428
7429 wxPyEndAllowThreads(__tstate);
7430 if (PyErr_Occurred()) SWIG_fail;
7431 }
7432 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInternetFSHandler, 1);
7433 return resultobj;
7434 fail:
7435 return NULL;
7436}
7437
7438
7439static PyObject *_wrap_InternetFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) {
7440 PyObject *resultobj;
7441 wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ;
7442 wxString *arg2 = 0 ;
7443 bool result;
7444 bool temp2 = False ;
7445 PyObject * obj0 = 0 ;
7446 PyObject * obj1 = 0 ;
7447 char *kwnames[] = {
7448 (char *) "self",(char *) "location", NULL
7449 };
7450
7451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InternetFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail;
7452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler,
7453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7454 {
7455 arg2 = wxString_in_helper(obj1);
7456 if (arg2 == NULL) SWIG_fail;
7457 temp2 = True;
7458 }
7459 {
7460 PyThreadState* __tstate = wxPyBeginAllowThreads();
7461 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
7462
7463 wxPyEndAllowThreads(__tstate);
7464 if (PyErr_Occurred()) SWIG_fail;
7465 }
7466 {
7467 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7468 }
7469 {
7470 if (temp2)
7471 delete arg2;
7472 }
7473 return resultobj;
7474 fail:
7475 {
7476 if (temp2)
7477 delete arg2;
7478 }
7479 return NULL;
7480}
7481
7482
7483static PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) {
7484 PyObject *resultobj;
7485 wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ;
7486 wxFileSystem *arg2 = 0 ;
7487 wxString *arg3 = 0 ;
7488 wxFSFile *result;
7489 bool temp3 = False ;
7490 PyObject * obj0 = 0 ;
7491 PyObject * obj1 = 0 ;
7492 PyObject * obj2 = 0 ;
7493 char *kwnames[] = {
7494 (char *) "self",(char *) "fs",(char *) "location", NULL
7495 };
7496
7497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:InternetFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
7498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler,
7499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7500 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem,
7501 SWIG_POINTER_EXCEPTION | 0)) == -1)
7502 SWIG_fail;
7503 if (arg2 == NULL) {
7504 PyErr_SetString(PyExc_TypeError,"null reference");
7505 SWIG_fail;
7506 }
7507 {
7508 arg3 = wxString_in_helper(obj2);
7509 if (arg3 == NULL) SWIG_fail;
7510 temp3 = True;
7511 }
7512 {
7513 PyThreadState* __tstate = wxPyBeginAllowThreads();
7514 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
7515
7516 wxPyEndAllowThreads(__tstate);
7517 if (PyErr_Occurred()) SWIG_fail;
7518 }
7519 {
7520 resultobj = wxPyMake_wxObject(result);
7521 }
7522 {
7523 if (temp3)
7524 delete arg3;
7525 }
7526 return resultobj;
7527 fail:
7528 {
7529 if (temp3)
7530 delete arg3;
7531 }
7532 return NULL;
7533}
7534
7535
7536static PyObject * InternetFSHandler_swigregister(PyObject *self, PyObject *args) {
7537 PyObject *obj;
7538 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7539 SWIG_TypeClientData(SWIGTYPE_p_wxInternetFSHandler, obj);
7540 Py_INCREF(obj);
7541 return Py_BuildValue((char *)"");
7542}
7543static PyObject *_wrap_new_ZipFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
7544 PyObject *resultobj;
7545 wxZipFSHandler *result;
7546 char *kwnames[] = {
7547 NULL
7548 };
7549
7550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ZipFSHandler",kwnames)) goto fail;
7551 {
7552 PyThreadState* __tstate = wxPyBeginAllowThreads();
7553 result = (wxZipFSHandler *)new wxZipFSHandler();
7554
7555 wxPyEndAllowThreads(__tstate);
7556 if (PyErr_Occurred()) SWIG_fail;
7557 }
7558 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxZipFSHandler, 1);
7559 return resultobj;
7560 fail:
7561 return NULL;
7562}
7563
7564
7565static PyObject *_wrap_ZipFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) {
7566 PyObject *resultobj;
7567 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
7568 wxString *arg2 = 0 ;
7569 bool result;
7570 bool temp2 = False ;
7571 PyObject * obj0 = 0 ;
7572 PyObject * obj1 = 0 ;
7573 char *kwnames[] = {
7574 (char *) "self",(char *) "location", NULL
7575 };
7576
7577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ZipFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail;
7578 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler,
7579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7580 {
7581 arg2 = wxString_in_helper(obj1);
7582 if (arg2 == NULL) SWIG_fail;
7583 temp2 = True;
7584 }
7585 {
7586 PyThreadState* __tstate = wxPyBeginAllowThreads();
7587 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
7588
7589 wxPyEndAllowThreads(__tstate);
7590 if (PyErr_Occurred()) SWIG_fail;
7591 }
7592 {
7593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7594 }
7595 {
7596 if (temp2)
7597 delete arg2;
7598 }
7599 return resultobj;
7600 fail:
7601 {
7602 if (temp2)
7603 delete arg2;
7604 }
7605 return NULL;
7606}
7607
7608
7609static PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) {
7610 PyObject *resultobj;
7611 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
7612 wxFileSystem *arg2 = 0 ;
7613 wxString *arg3 = 0 ;
7614 wxFSFile *result;
7615 bool temp3 = False ;
7616 PyObject * obj0 = 0 ;
7617 PyObject * obj1 = 0 ;
7618 PyObject * obj2 = 0 ;
7619 char *kwnames[] = {
7620 (char *) "self",(char *) "fs",(char *) "location", NULL
7621 };
7622
7623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ZipFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
7624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler,
7625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7626 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem,
7627 SWIG_POINTER_EXCEPTION | 0)) == -1)
7628 SWIG_fail;
7629 if (arg2 == NULL) {
7630 PyErr_SetString(PyExc_TypeError,"null reference");
7631 SWIG_fail;
7632 }
7633 {
7634 arg3 = wxString_in_helper(obj2);
7635 if (arg3 == NULL) SWIG_fail;
7636 temp3 = True;
7637 }
7638 {
7639 PyThreadState* __tstate = wxPyBeginAllowThreads();
7640 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
7641
7642 wxPyEndAllowThreads(__tstate);
7643 if (PyErr_Occurred()) SWIG_fail;
7644 }
7645 {
7646 resultobj = wxPyMake_wxObject(result);
7647 }
7648 {
7649 if (temp3)
7650 delete arg3;
7651 }
7652 return resultobj;
7653 fail:
7654 {
7655 if (temp3)
7656 delete arg3;
7657 }
7658 return NULL;
7659}
7660
7661
7662static PyObject *_wrap_ZipFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) {
7663 PyObject *resultobj;
7664 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
7665 wxString *arg2 = 0 ;
7666 int arg3 = (int) 0 ;
7667 wxString result;
7668 bool temp2 = False ;
7669 PyObject * obj0 = 0 ;
7670 PyObject * obj1 = 0 ;
7671 PyObject * obj2 = 0 ;
7672 char *kwnames[] = {
7673 (char *) "self",(char *) "spec",(char *) "flags", NULL
7674 };
7675
7676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ZipFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail;
7677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler,
7678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7679 {
7680 arg2 = wxString_in_helper(obj1);
7681 if (arg2 == NULL) SWIG_fail;
7682 temp2 = True;
7683 }
7684 if (obj2) {
7685 arg3 = (int) SWIG_AsInt(obj2);
7686 if (PyErr_Occurred()) SWIG_fail;
7687 }
7688 {
7689 PyThreadState* __tstate = wxPyBeginAllowThreads();
7690 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
7691
7692 wxPyEndAllowThreads(__tstate);
7693 if (PyErr_Occurred()) SWIG_fail;
7694 }
7695 {
7696#if wxUSE_UNICODE
7697 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7698#else
7699 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7700#endif
7701 }
7702 {
7703 if (temp2)
7704 delete arg2;
7705 }
7706 return resultobj;
7707 fail:
7708 {
7709 if (temp2)
7710 delete arg2;
7711 }
7712 return NULL;
7713}
7714
7715
7716static PyObject *_wrap_ZipFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) {
7717 PyObject *resultobj;
7718 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
7719 wxString result;
7720 PyObject * obj0 = 0 ;
7721 char *kwnames[] = {
7722 (char *) "self", NULL
7723 };
7724
7725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ZipFSHandler_FindNext",kwnames,&obj0)) goto fail;
7726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler,
7727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7728 {
7729 PyThreadState* __tstate = wxPyBeginAllowThreads();
7730 result = (arg1)->FindNext();
7731
7732 wxPyEndAllowThreads(__tstate);
7733 if (PyErr_Occurred()) SWIG_fail;
7734 }
7735 {
7736#if wxUSE_UNICODE
7737 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7738#else
7739 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7740#endif
7741 }
7742 return resultobj;
7743 fail:
7744 return NULL;
7745}
7746
7747
7748static PyObject * ZipFSHandler_swigregister(PyObject *self, PyObject *args) {
7749 PyObject *obj;
7750 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7751 SWIG_TypeClientData(SWIGTYPE_p_wxZipFSHandler, obj);
7752 Py_INCREF(obj);
7753 return Py_BuildValue((char *)"");
7754}
7755static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *self, PyObject *args, PyObject *kwargs) {
7756 PyObject *resultobj;
7757 wxString *arg1 = 0 ;
7758 wxImage *arg2 = 0 ;
7759 long arg3 ;
7760 bool temp1 = False ;
7761 PyObject * obj0 = 0 ;
7762 PyObject * obj1 = 0 ;
7763 PyObject * obj2 = 0 ;
7764 char *kwnames[] = {
7765 (char *) "filename",(char *) "image",(char *) "type", NULL
7766 };
7767
7768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
7769 {
7770 arg1 = wxString_in_helper(obj0);
7771 if (arg1 == NULL) SWIG_fail;
7772 temp1 = True;
7773 }
7774 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage,
7775 SWIG_POINTER_EXCEPTION | 0)) == -1)
7776 SWIG_fail;
7777 if (arg2 == NULL) {
7778 PyErr_SetString(PyExc_TypeError,"null reference");
7779 SWIG_fail;
7780 }
7781 arg3 = (long) SWIG_AsLong(obj2);
7782 if (PyErr_Occurred()) SWIG_fail;
7783 {
7784 PyThreadState* __tstate = wxPyBeginAllowThreads();
7785 __wxMemoryFSHandler_AddFile_wxImage((wxString const &)*arg1,*arg2,arg3);
7786
7787 wxPyEndAllowThreads(__tstate);
7788 if (PyErr_Occurred()) SWIG_fail;
7789 }
7790 Py_INCREF(Py_None); resultobj = Py_None;
7791 {
7792 if (temp1)
7793 delete arg1;
7794 }
7795 return resultobj;
7796 fail:
7797 {
7798 if (temp1)
7799 delete arg1;
7800 }
7801 return NULL;
7802}
7803
7804
7805static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
7806 PyObject *resultobj;
7807 wxString *arg1 = 0 ;
7808 wxBitmap *arg2 = 0 ;
7809 long arg3 ;
7810 bool temp1 = False ;
7811 PyObject * obj0 = 0 ;
7812 PyObject * obj1 = 0 ;
7813 PyObject * obj2 = 0 ;
7814 char *kwnames[] = {
7815 (char *) "filename",(char *) "bitmap",(char *) "type", NULL
7816 };
7817
7818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
7819 {
7820 arg1 = wxString_in_helper(obj0);
7821 if (arg1 == NULL) SWIG_fail;
7822 temp1 = True;
7823 }
7824 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
7825 SWIG_POINTER_EXCEPTION | 0)) == -1)
7826 SWIG_fail;
7827 if (arg2 == NULL) {
7828 PyErr_SetString(PyExc_TypeError,"null reference");
7829 SWIG_fail;
7830 }
7831 arg3 = (long) SWIG_AsLong(obj2);
7832 if (PyErr_Occurred()) SWIG_fail;
7833 {
7834 PyThreadState* __tstate = wxPyBeginAllowThreads();
7835 __wxMemoryFSHandler_AddFile_wxBitmap((wxString const &)*arg1,(wxBitmap const &)*arg2,arg3);
7836
7837 wxPyEndAllowThreads(__tstate);
7838 if (PyErr_Occurred()) SWIG_fail;
7839 }
7840 Py_INCREF(Py_None); resultobj = Py_None;
7841 {
7842 if (temp1)
7843 delete arg1;
7844 }
7845 return resultobj;
7846 fail:
7847 {
7848 if (temp1)
7849 delete arg1;
7850 }
7851 return NULL;
7852}
7853
7854
7855static PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *self, PyObject *args, PyObject *kwargs) {
7856 PyObject *resultobj;
7857 wxString *arg1 = 0 ;
7858 PyObject *arg2 = (PyObject *) 0 ;
7859 bool temp1 = False ;
7860 PyObject * obj0 = 0 ;
7861 PyObject * obj1 = 0 ;
7862 char *kwnames[] = {
7863 (char *) "filename",(char *) "data", NULL
7864 };
7865
7866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:__wxMemoryFSHandler_AddFile_Data",kwnames,&obj0,&obj1)) goto fail;
7867 {
7868 arg1 = wxString_in_helper(obj0);
7869 if (arg1 == NULL) SWIG_fail;
7870 temp1 = True;
7871 }
7872 arg2 = obj1;
7873 {
7874 PyThreadState* __tstate = wxPyBeginAllowThreads();
7875 __wxMemoryFSHandler_AddFile_Data((wxString const &)*arg1,arg2);
7876
7877 wxPyEndAllowThreads(__tstate);
7878 if (PyErr_Occurred()) SWIG_fail;
7879 }
7880 Py_INCREF(Py_None); resultobj = Py_None;
7881 {
7882 if (temp1)
7883 delete arg1;
7884 }
7885 return resultobj;
7886 fail:
7887 {
7888 if (temp1)
7889 delete arg1;
7890 }
7891 return NULL;
7892}
7893
7894
7895static PyObject *_wrap_new_MemoryFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
7896 PyObject *resultobj;
7897 wxMemoryFSHandler *result;
7898 char *kwnames[] = {
7899 NULL
7900 };
7901
7902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryFSHandler",kwnames)) goto fail;
7903 {
7904 PyThreadState* __tstate = wxPyBeginAllowThreads();
7905 result = (wxMemoryFSHandler *)new wxMemoryFSHandler();
7906
7907 wxPyEndAllowThreads(__tstate);
7908 if (PyErr_Occurred()) SWIG_fail;
7909 }
7910 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryFSHandler, 1);
7911 return resultobj;
7912 fail:
7913 return NULL;
7914}
7915
7916
7917static PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
7918 PyObject *resultobj;
7919 wxString *arg1 = 0 ;
7920 bool temp1 = False ;
7921 PyObject * obj0 = 0 ;
7922 char *kwnames[] = {
7923 (char *) "filename", NULL
7924 };
7925
7926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_RemoveFile",kwnames,&obj0)) goto fail;
7927 {
7928 arg1 = wxString_in_helper(obj0);
7929 if (arg1 == NULL) SWIG_fail;
7930 temp1 = True;
7931 }
7932 {
7933 PyThreadState* __tstate = wxPyBeginAllowThreads();
7934 wxMemoryFSHandler::RemoveFile((wxString const &)*arg1);
7935
7936 wxPyEndAllowThreads(__tstate);
7937 if (PyErr_Occurred()) SWIG_fail;
7938 }
7939 Py_INCREF(Py_None); resultobj = Py_None;
7940 {
7941 if (temp1)
7942 delete arg1;
7943 }
7944 return resultobj;
7945 fail:
7946 {
7947 if (temp1)
7948 delete arg1;
7949 }
7950 return NULL;
7951}
7952
7953
7954static PyObject *_wrap_MemoryFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) {
7955 PyObject *resultobj;
7956 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
7957 wxString *arg2 = 0 ;
7958 bool result;
7959 bool temp2 = False ;
7960 PyObject * obj0 = 0 ;
7961 PyObject * obj1 = 0 ;
7962 char *kwnames[] = {
7963 (char *) "self",(char *) "location", NULL
7964 };
7965
7966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail;
7967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler,
7968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7969 {
7970 arg2 = wxString_in_helper(obj1);
7971 if (arg2 == NULL) SWIG_fail;
7972 temp2 = True;
7973 }
7974 {
7975 PyThreadState* __tstate = wxPyBeginAllowThreads();
7976 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
7977
7978 wxPyEndAllowThreads(__tstate);
7979 if (PyErr_Occurred()) SWIG_fail;
7980 }
7981 {
7982 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7983 }
7984 {
7985 if (temp2)
7986 delete arg2;
7987 }
7988 return resultobj;
7989 fail:
7990 {
7991 if (temp2)
7992 delete arg2;
7993 }
7994 return NULL;
7995}
7996
7997
7998static PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) {
7999 PyObject *resultobj;
8000 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
8001 wxFileSystem *arg2 = 0 ;
8002 wxString *arg3 = 0 ;
8003 wxFSFile *result;
8004 bool temp3 = False ;
8005 PyObject * obj0 = 0 ;
8006 PyObject * obj1 = 0 ;
8007 PyObject * obj2 = 0 ;
8008 char *kwnames[] = {
8009 (char *) "self",(char *) "fs",(char *) "location", NULL
8010 };
8011
8012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MemoryFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
8013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler,
8014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8015 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem,
8016 SWIG_POINTER_EXCEPTION | 0)) == -1)
8017 SWIG_fail;
8018 if (arg2 == NULL) {
8019 PyErr_SetString(PyExc_TypeError,"null reference");
8020 SWIG_fail;
8021 }
8022 {
8023 arg3 = wxString_in_helper(obj2);
8024 if (arg3 == NULL) SWIG_fail;
8025 temp3 = True;
8026 }
8027 {
8028 PyThreadState* __tstate = wxPyBeginAllowThreads();
8029 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
8030
8031 wxPyEndAllowThreads(__tstate);
8032 if (PyErr_Occurred()) SWIG_fail;
8033 }
8034 {
8035 resultobj = wxPyMake_wxObject(result);
8036 }
8037 {
8038 if (temp3)
8039 delete arg3;
8040 }
8041 return resultobj;
8042 fail:
8043 {
8044 if (temp3)
8045 delete arg3;
8046 }
8047 return NULL;
8048}
8049
8050
8051static PyObject *_wrap_MemoryFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) {
8052 PyObject *resultobj;
8053 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
8054 wxString *arg2 = 0 ;
8055 int arg3 = (int) 0 ;
8056 wxString result;
8057 bool temp2 = False ;
8058 PyObject * obj0 = 0 ;
8059 PyObject * obj1 = 0 ;
8060 PyObject * obj2 = 0 ;
8061 char *kwnames[] = {
8062 (char *) "self",(char *) "spec",(char *) "flags", NULL
8063 };
8064
8065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MemoryFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail;
8066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler,
8067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8068 {
8069 arg2 = wxString_in_helper(obj1);
8070 if (arg2 == NULL) SWIG_fail;
8071 temp2 = True;
8072 }
8073 if (obj2) {
8074 arg3 = (int) SWIG_AsInt(obj2);
8075 if (PyErr_Occurred()) SWIG_fail;
8076 }
8077 {
8078 PyThreadState* __tstate = wxPyBeginAllowThreads();
8079 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
8080
8081 wxPyEndAllowThreads(__tstate);
8082 if (PyErr_Occurred()) SWIG_fail;
8083 }
8084 {
8085#if wxUSE_UNICODE
8086 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8087#else
8088 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8089#endif
8090 }
8091 {
8092 if (temp2)
8093 delete arg2;
8094 }
8095 return resultobj;
8096 fail:
8097 {
8098 if (temp2)
8099 delete arg2;
8100 }
8101 return NULL;
8102}
8103
8104
8105static PyObject *_wrap_MemoryFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) {
8106 PyObject *resultobj;
8107 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
8108 wxString result;
8109 PyObject * obj0 = 0 ;
8110 char *kwnames[] = {
8111 (char *) "self", NULL
8112 };
8113
8114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_FindNext",kwnames,&obj0)) goto fail;
8115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler,
8116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8117 {
8118 PyThreadState* __tstate = wxPyBeginAllowThreads();
8119 result = (arg1)->FindNext();
8120
8121 wxPyEndAllowThreads(__tstate);
8122 if (PyErr_Occurred()) SWIG_fail;
8123 }
8124 {
8125#if wxUSE_UNICODE
8126 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8127#else
8128 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8129#endif
8130 }
8131 return resultobj;
8132 fail:
8133 return NULL;
8134}
8135
8136
8137static PyObject * MemoryFSHandler_swigregister(PyObject *self, PyObject *args) {
8138 PyObject *obj;
8139 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8140 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryFSHandler, obj);
8141 Py_INCREF(obj);
8142 return Py_BuildValue((char *)"");
8143}
8144static PyObject *_wrap_ImageHandler_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
8145 PyObject *resultobj;
8146 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8147 wxString result;
8148 PyObject * obj0 = 0 ;
8149 char *kwnames[] = {
8150 (char *) "self", NULL
8151 };
8152
8153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetName",kwnames,&obj0)) goto fail;
8154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8156 {
8157 PyThreadState* __tstate = wxPyBeginAllowThreads();
8158 result = (arg1)->GetName();
8159
8160 wxPyEndAllowThreads(__tstate);
8161 if (PyErr_Occurred()) SWIG_fail;
8162 }
8163 {
8164#if wxUSE_UNICODE
8165 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8166#else
8167 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8168#endif
8169 }
8170 return resultobj;
8171 fail:
8172 return NULL;
8173}
8174
8175
8176static PyObject *_wrap_ImageHandler_GetExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
8177 PyObject *resultobj;
8178 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8179 wxString result;
8180 PyObject * obj0 = 0 ;
8181 char *kwnames[] = {
8182 (char *) "self", NULL
8183 };
8184
8185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetExtension",kwnames,&obj0)) goto fail;
8186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8188 {
8189 PyThreadState* __tstate = wxPyBeginAllowThreads();
8190 result = (arg1)->GetExtension();
8191
8192 wxPyEndAllowThreads(__tstate);
8193 if (PyErr_Occurred()) SWIG_fail;
8194 }
8195 {
8196#if wxUSE_UNICODE
8197 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8198#else
8199 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8200#endif
8201 }
8202 return resultobj;
8203 fail:
8204 return NULL;
8205}
8206
8207
8208static PyObject *_wrap_ImageHandler_GetType(PyObject *self, PyObject *args, PyObject *kwargs) {
8209 PyObject *resultobj;
8210 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8211 long result;
8212 PyObject * obj0 = 0 ;
8213 char *kwnames[] = {
8214 (char *) "self", NULL
8215 };
8216
8217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetType",kwnames,&obj0)) goto fail;
8218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8220 {
8221 PyThreadState* __tstate = wxPyBeginAllowThreads();
8222 result = (long)(arg1)->GetType();
8223
8224 wxPyEndAllowThreads(__tstate);
8225 if (PyErr_Occurred()) SWIG_fail;
8226 }
8227 resultobj = SWIG_FromLong((long)result);
8228 return resultobj;
8229 fail:
8230 return NULL;
8231}
8232
8233
8234static PyObject *_wrap_ImageHandler_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
8235 PyObject *resultobj;
8236 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8237 wxString result;
8238 PyObject * obj0 = 0 ;
8239 char *kwnames[] = {
8240 (char *) "self", NULL
8241 };
8242
8243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetMimeType",kwnames,&obj0)) goto fail;
8244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8246 {
8247 PyThreadState* __tstate = wxPyBeginAllowThreads();
8248 result = (arg1)->GetMimeType();
8249
8250 wxPyEndAllowThreads(__tstate);
8251 if (PyErr_Occurred()) SWIG_fail;
8252 }
8253 {
8254#if wxUSE_UNICODE
8255 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8256#else
8257 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8258#endif
8259 }
8260 return resultobj;
8261 fail:
8262 return NULL;
8263}
8264
8265
8266static PyObject *_wrap_ImageHandler_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) {
8267 PyObject *resultobj;
8268 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8269 wxString *arg2 = 0 ;
8270 bool result;
8271 bool temp2 = False ;
8272 PyObject * obj0 = 0 ;
8273 PyObject * obj1 = 0 ;
8274 char *kwnames[] = {
8275 (char *) "self",(char *) "name", NULL
8276 };
8277
8278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanRead",kwnames,&obj0,&obj1)) goto fail;
8279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8281 {
8282 arg2 = wxString_in_helper(obj1);
8283 if (arg2 == NULL) SWIG_fail;
8284 temp2 = True;
8285 }
8286 {
8287 PyThreadState* __tstate = wxPyBeginAllowThreads();
8288 result = (bool)(arg1)->CanRead((wxString const &)*arg2);
8289
8290 wxPyEndAllowThreads(__tstate);
8291 if (PyErr_Occurred()) SWIG_fail;
8292 }
8293 {
8294 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8295 }
8296 {
8297 if (temp2)
8298 delete arg2;
8299 }
8300 return resultobj;
8301 fail:
8302 {
8303 if (temp2)
8304 delete arg2;
8305 }
8306 return NULL;
8307}
8308
8309
8310static PyObject *_wrap_ImageHandler_SetName(PyObject *self, PyObject *args, PyObject *kwargs) {
8311 PyObject *resultobj;
8312 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8313 wxString *arg2 = 0 ;
8314 bool temp2 = False ;
8315 PyObject * obj0 = 0 ;
8316 PyObject * obj1 = 0 ;
8317 char *kwnames[] = {
8318 (char *) "self",(char *) "name", NULL
8319 };
8320
8321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetName",kwnames,&obj0,&obj1)) goto fail;
8322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8324 {
8325 arg2 = wxString_in_helper(obj1);
8326 if (arg2 == NULL) SWIG_fail;
8327 temp2 = True;
8328 }
8329 {
8330 PyThreadState* __tstate = wxPyBeginAllowThreads();
8331 (arg1)->SetName((wxString const &)*arg2);
8332
8333 wxPyEndAllowThreads(__tstate);
8334 if (PyErr_Occurred()) SWIG_fail;
8335 }
8336 Py_INCREF(Py_None); resultobj = Py_None;
8337 {
8338 if (temp2)
8339 delete arg2;
8340 }
8341 return resultobj;
8342 fail:
8343 {
8344 if (temp2)
8345 delete arg2;
8346 }
8347 return NULL;
8348}
8349
8350
8351static PyObject *_wrap_ImageHandler_SetExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
8352 PyObject *resultobj;
8353 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8354 wxString *arg2 = 0 ;
8355 bool temp2 = False ;
8356 PyObject * obj0 = 0 ;
8357 PyObject * obj1 = 0 ;
8358 char *kwnames[] = {
8359 (char *) "self",(char *) "extension", NULL
8360 };
8361
8362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetExtension",kwnames,&obj0,&obj1)) goto fail;
8363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8365 {
8366 arg2 = wxString_in_helper(obj1);
8367 if (arg2 == NULL) SWIG_fail;
8368 temp2 = True;
8369 }
8370 {
8371 PyThreadState* __tstate = wxPyBeginAllowThreads();
8372 (arg1)->SetExtension((wxString const &)*arg2);
8373
8374 wxPyEndAllowThreads(__tstate);
8375 if (PyErr_Occurred()) SWIG_fail;
8376 }
8377 Py_INCREF(Py_None); resultobj = Py_None;
8378 {
8379 if (temp2)
8380 delete arg2;
8381 }
8382 return resultobj;
8383 fail:
8384 {
8385 if (temp2)
8386 delete arg2;
8387 }
8388 return NULL;
8389}
8390
8391
8392static PyObject *_wrap_ImageHandler_SetType(PyObject *self, PyObject *args, PyObject *kwargs) {
8393 PyObject *resultobj;
8394 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8395 long arg2 ;
8396 PyObject * obj0 = 0 ;
8397 PyObject * obj1 = 0 ;
8398 char *kwnames[] = {
8399 (char *) "self",(char *) "type", NULL
8400 };
8401
8402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetType",kwnames,&obj0,&obj1)) goto fail;
8403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8405 arg2 = (long) SWIG_AsLong(obj1);
8406 if (PyErr_Occurred()) SWIG_fail;
8407 {
8408 PyThreadState* __tstate = wxPyBeginAllowThreads();
8409 (arg1)->SetType(arg2);
8410
8411 wxPyEndAllowThreads(__tstate);
8412 if (PyErr_Occurred()) SWIG_fail;
8413 }
8414 Py_INCREF(Py_None); resultobj = Py_None;
8415 return resultobj;
8416 fail:
8417 return NULL;
8418}
8419
8420
8421static PyObject *_wrap_ImageHandler_SetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
8422 PyObject *resultobj;
8423 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8424 wxString *arg2 = 0 ;
8425 bool temp2 = False ;
8426 PyObject * obj0 = 0 ;
8427 PyObject * obj1 = 0 ;
8428 char *kwnames[] = {
8429 (char *) "self",(char *) "mimetype", NULL
8430 };
8431
8432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetMimeType",kwnames,&obj0,&obj1)) goto fail;
8433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8435 {
8436 arg2 = wxString_in_helper(obj1);
8437 if (arg2 == NULL) SWIG_fail;
8438 temp2 = True;
8439 }
8440 {
8441 PyThreadState* __tstate = wxPyBeginAllowThreads();
8442 (arg1)->SetMimeType((wxString const &)*arg2);
8443
8444 wxPyEndAllowThreads(__tstate);
8445 if (PyErr_Occurred()) SWIG_fail;
8446 }
8447 Py_INCREF(Py_None); resultobj = Py_None;
8448 {
8449 if (temp2)
8450 delete arg2;
8451 }
8452 return resultobj;
8453 fail:
8454 {
8455 if (temp2)
8456 delete arg2;
8457 }
8458 return NULL;
8459}
8460
8461
8462static PyObject * ImageHandler_swigregister(PyObject *self, PyObject *args) {
8463 PyObject *obj;
8464 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8465 SWIG_TypeClientData(SWIGTYPE_p_wxImageHandler, obj);
8466 Py_INCREF(obj);
8467 return Py_BuildValue((char *)"");
8468}
8469static PyObject *_wrap_new_ImageHistogram(PyObject *self, PyObject *args, PyObject *kwargs) {
8470 PyObject *resultobj;
8471 wxImageHistogram *result;
8472 char *kwnames[] = {
8473 NULL
8474 };
8475
8476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ImageHistogram",kwnames)) goto fail;
8477 {
8478 PyThreadState* __tstate = wxPyBeginAllowThreads();
8479 result = (wxImageHistogram *)new wxImageHistogram();
8480
8481 wxPyEndAllowThreads(__tstate);
8482 if (PyErr_Occurred()) SWIG_fail;
8483 }
8484 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImageHistogram, 1);
8485 return resultobj;
8486 fail:
8487 return NULL;
8488}
8489
8490
8491static PyObject *_wrap_ImageHistogram_MakeKey(PyObject *self, PyObject *args, PyObject *kwargs) {
8492 PyObject *resultobj;
8493 unsigned char arg1 ;
8494 unsigned char arg2 ;
8495 unsigned char arg3 ;
8496 unsigned long result;
8497 PyObject * obj0 = 0 ;
8498 PyObject * obj1 = 0 ;
8499 PyObject * obj2 = 0 ;
8500 char *kwnames[] = {
8501 (char *) "r",(char *) "g",(char *) "b", NULL
8502 };
8503
8504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageHistogram_MakeKey",kwnames,&obj0,&obj1,&obj2)) goto fail;
8505 arg1 = (unsigned char) SWIG_AsUnsignedChar(obj0);
8506 if (PyErr_Occurred()) SWIG_fail;
8507 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
8508 if (PyErr_Occurred()) SWIG_fail;
8509 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
8510 if (PyErr_Occurred()) SWIG_fail;
8511 {
8512 PyThreadState* __tstate = wxPyBeginAllowThreads();
8513 result = (unsigned long)wxImageHistogram::MakeKey(arg1,arg2,arg3);
8514
8515 wxPyEndAllowThreads(__tstate);
8516 if (PyErr_Occurred()) SWIG_fail;
8517 }
8518 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
8519 return resultobj;
8520 fail:
8521 return NULL;
8522}
8523
8524
8525static PyObject *_wrap_ImageHistogram_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
8526 PyObject *resultobj;
8527 wxImageHistogram *arg1 = (wxImageHistogram *) 0 ;
8528 unsigned char *arg2 = (unsigned char *) 0 ;
8529 unsigned char *arg3 = (unsigned char *) 0 ;
8530 unsigned char *arg4 = (unsigned char *) 0 ;
8531 unsigned char arg5 = (unsigned char) 1 ;
8532 unsigned char arg6 = (unsigned char) 0 ;
8533 unsigned char arg7 = (unsigned char) 0 ;
8534 bool result;
8535 unsigned char temp2 ;
8536 unsigned char temp3 ;
8537 unsigned char temp4 ;
8538 PyObject * obj0 = 0 ;
8539 PyObject * obj1 = 0 ;
8540 PyObject * obj2 = 0 ;
8541 PyObject * obj3 = 0 ;
8542 char *kwnames[] = {
8543 (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL
8544 };
8545
8546 arg2 = &temp2;
8547 arg3 = &temp3;
8548 arg4 = &temp4;
8549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:ImageHistogram_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHistogram,
8551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8552 if (obj1) {
8553 arg5 = (unsigned char) SWIG_AsUnsignedChar(obj1);
8554 if (PyErr_Occurred()) SWIG_fail;
8555 }
8556 if (obj2) {
8557 arg6 = (unsigned char) SWIG_AsUnsignedChar(obj2);
8558 if (PyErr_Occurred()) SWIG_fail;
8559 }
8560 if (obj3) {
8561 arg7 = (unsigned char) SWIG_AsUnsignedChar(obj3);
8562 if (PyErr_Occurred()) SWIG_fail;
8563 }
8564 {
8565 PyThreadState* __tstate = wxPyBeginAllowThreads();
8566 result = (bool)((wxImageHistogram const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7);
8567
8568 wxPyEndAllowThreads(__tstate);
8569 if (PyErr_Occurred()) SWIG_fail;
8570 }
8571 {
8572 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8573 }
8574 {
8575 PyObject *o = PyInt_FromLong((long) (*arg2));
8576 resultobj = t_output_helper(resultobj,o);
8577 }
8578 {
8579 PyObject *o = PyInt_FromLong((long) (*arg3));
8580 resultobj = t_output_helper(resultobj,o);
8581 }
8582 {
8583 PyObject *o = PyInt_FromLong((long) (*arg4));
8584 resultobj = t_output_helper(resultobj,o);
8585 }
8586 return resultobj;
8587 fail:
8588 return NULL;
8589}
8590
8591
8592static PyObject * ImageHistogram_swigregister(PyObject *self, PyObject *args) {
8593 PyObject *obj;
8594 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8595 SWIG_TypeClientData(SWIGTYPE_p_wxImageHistogram, obj);
8596 Py_INCREF(obj);
8597 return Py_BuildValue((char *)"");
8598}
8599static PyObject *_wrap_new_Image(PyObject *self, PyObject *args, PyObject *kwargs) {
8600 PyObject *resultobj;
8601 wxString *arg1 = 0 ;
8602 long arg2 = (long) wxBITMAP_TYPE_ANY ;
8603 int arg3 = (int) -1 ;
8604 wxImage *result;
8605 bool temp1 = False ;
8606 PyObject * obj0 = 0 ;
8607 PyObject * obj1 = 0 ;
8608 PyObject * obj2 = 0 ;
8609 char *kwnames[] = {
8610 (char *) "name",(char *) "type",(char *) "index", NULL
8611 };
8612
8613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Image",kwnames,&obj0,&obj1,&obj2)) goto fail;
8614 {
8615 arg1 = wxString_in_helper(obj0);
8616 if (arg1 == NULL) SWIG_fail;
8617 temp1 = True;
8618 }
8619 if (obj1) {
8620 arg2 = (long) SWIG_AsLong(obj1);
8621 if (PyErr_Occurred()) SWIG_fail;
8622 }
8623 if (obj2) {
8624 arg3 = (int) SWIG_AsInt(obj2);
8625 if (PyErr_Occurred()) SWIG_fail;
8626 }
8627 {
8628 PyThreadState* __tstate = wxPyBeginAllowThreads();
8629 result = (wxImage *)new wxImage((wxString const &)*arg1,arg2,arg3);
8630
8631 wxPyEndAllowThreads(__tstate);
8632 if (PyErr_Occurred()) SWIG_fail;
8633 }
8634 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
8635 {
8636 if (temp1)
8637 delete arg1;
8638 }
8639 return resultobj;
8640 fail:
8641 {
8642 if (temp1)
8643 delete arg1;
8644 }
8645 return NULL;
8646}
8647
8648
8649static PyObject *_wrap_delete_Image(PyObject *self, PyObject *args, PyObject *kwargs) {
8650 PyObject *resultobj;
8651 wxImage *arg1 = (wxImage *) 0 ;
8652 PyObject * obj0 = 0 ;
8653 char *kwnames[] = {
8654 (char *) "self", NULL
8655 };
8656
8657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Image",kwnames,&obj0)) goto fail;
8658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
8659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8660 {
8661 PyThreadState* __tstate = wxPyBeginAllowThreads();
8662 delete arg1;
8663
8664 wxPyEndAllowThreads(__tstate);
8665 if (PyErr_Occurred()) SWIG_fail;
8666 }
8667 Py_INCREF(Py_None); resultobj = Py_None;
8668 return resultobj;
8669 fail:
8670 return NULL;
8671}
8672
8673
8674static PyObject *_wrap_new_ImageFromMime(PyObject *self, PyObject *args, PyObject *kwargs) {
8675 PyObject *resultobj;
8676 wxString *arg1 = 0 ;
8677 wxString *arg2 = 0 ;
8678 int arg3 = (int) -1 ;
8679 wxImage *result;
8680 bool temp1 = False ;
8681 bool temp2 = False ;
8682 PyObject * obj0 = 0 ;
8683 PyObject * obj1 = 0 ;
8684 PyObject * obj2 = 0 ;
8685 char *kwnames[] = {
8686 (char *) "name",(char *) "mimetype",(char *) "index", NULL
8687 };
8688
8689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromMime",kwnames,&obj0,&obj1,&obj2)) goto fail;
8690 {
8691 arg1 = wxString_in_helper(obj0);
8692 if (arg1 == NULL) SWIG_fail;
8693 temp1 = True;
8694 }
8695 {
8696 arg2 = wxString_in_helper(obj1);
8697 if (arg2 == NULL) SWIG_fail;
8698 temp2 = True;
8699 }
8700 if (obj2) {
8701 arg3 = (int) SWIG_AsInt(obj2);
8702 if (PyErr_Occurred()) SWIG_fail;
8703 }
8704 {
8705 PyThreadState* __tstate = wxPyBeginAllowThreads();
8706 result = (wxImage *)new wxImage((wxString const &)*arg1,(wxString const &)*arg2,arg3);
8707
8708 wxPyEndAllowThreads(__tstate);
8709 if (PyErr_Occurred()) SWIG_fail;
8710 }
8711 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
8712 {
8713 if (temp1)
8714 delete arg1;
8715 }
8716 {
8717 if (temp2)
8718 delete arg2;
8719 }
8720 return resultobj;
8721 fail:
8722 {
8723 if (temp1)
8724 delete arg1;
8725 }
8726 {
8727 if (temp2)
8728 delete arg2;
8729 }
8730 return NULL;
8731}
8732
8733
8734static PyObject *_wrap_new_ImageFromStream(PyObject *self, PyObject *args, PyObject *kwargs) {
8735 PyObject *resultobj;
8736 wxInputStream *arg1 = 0 ;
8737 long arg2 = (long) wxBITMAP_TYPE_ANY ;
8738 int arg3 = (int) -1 ;
8739 wxImage *result;
8740 wxPyInputStream *temp1 ;
8741 bool created1 ;
8742 PyObject * obj0 = 0 ;
8743 PyObject * obj1 = 0 ;
8744 PyObject * obj2 = 0 ;
8745 char *kwnames[] = {
8746 (char *) "stream",(char *) "type",(char *) "index", NULL
8747 };
8748
8749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_ImageFromStream",kwnames,&obj0,&obj1,&obj2)) goto fail;
8750 {
8751 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
8752 arg1 = temp1->m_wxis;
8753 created1 = False;
8754 } else {
8755 PyErr_Clear(); // clear the failure of the wxPyConvert above
8756 arg1 = wxPyCBInputStream_create(obj0, False);
8757 if (arg1 == NULL) {
8758 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
8759 SWIG_fail;
8760 }
8761 created1 = True;
8762 }
8763 }
8764 if (obj1) {
8765 arg2 = (long) SWIG_AsLong(obj1);
8766 if (PyErr_Occurred()) SWIG_fail;
8767 }
8768 if (obj2) {
8769 arg3 = (int) SWIG_AsInt(obj2);
8770 if (PyErr_Occurred()) SWIG_fail;
8771 }
8772 {
8773 PyThreadState* __tstate = wxPyBeginAllowThreads();
8774 result = (wxImage *)new wxImage(*arg1,arg2,arg3);
8775
8776 wxPyEndAllowThreads(__tstate);
8777 if (PyErr_Occurred()) SWIG_fail;
8778 }
8779 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
8780 {
8781 if (created1)
8782 delete arg1;
8783 }
8784 return resultobj;
8785 fail:
8786 {
8787 if (created1)
8788 delete arg1;
8789 }
8790 return NULL;
8791}
8792
8793
8794static PyObject *_wrap_new_ImageFromStreamMime(PyObject *self, PyObject *args, PyObject *kwargs) {
8795 PyObject *resultobj;
8796 wxInputStream *arg1 = 0 ;
8797 wxString *arg2 = 0 ;
8798 int arg3 = (int) -1 ;
8799 wxImage *result;
8800 wxPyInputStream *temp1 ;
8801 bool created1 ;
8802 bool temp2 = False ;
8803 PyObject * obj0 = 0 ;
8804 PyObject * obj1 = 0 ;
8805 PyObject * obj2 = 0 ;
8806 char *kwnames[] = {
8807 (char *) "stream",(char *) "mimetype",(char *) "index", NULL
8808 };
8809
8810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromStreamMime",kwnames,&obj0,&obj1,&obj2)) goto fail;
8811 {
8812 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
8813 arg1 = temp1->m_wxis;
8814 created1 = False;
8815 } else {
8816 PyErr_Clear(); // clear the failure of the wxPyConvert above
8817 arg1 = wxPyCBInputStream_create(obj0, False);
8818 if (arg1 == NULL) {
8819 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
8820 SWIG_fail;
8821 }
8822 created1 = True;
8823 }
8824 }
8825 {
8826 arg2 = wxString_in_helper(obj1);
8827 if (arg2 == NULL) SWIG_fail;
8828 temp2 = True;
8829 }
8830 if (obj2) {
8831 arg3 = (int) SWIG_AsInt(obj2);
8832 if (PyErr_Occurred()) SWIG_fail;
8833 }
8834 {
8835 PyThreadState* __tstate = wxPyBeginAllowThreads();
8836 result = (wxImage *)new wxImage(*arg1,(wxString const &)*arg2,arg3);
8837
8838 wxPyEndAllowThreads(__tstate);
8839 if (PyErr_Occurred()) SWIG_fail;
8840 }
8841 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
8842 {
8843 if (created1)
8844 delete arg1;
8845 }
8846 {
8847 if (temp2)
8848 delete arg2;
8849 }
8850 return resultobj;
8851 fail:
8852 {
8853 if (created1)
8854 delete arg1;
8855 }
8856 {
8857 if (temp2)
8858 delete arg2;
8859 }
8860 return NULL;
8861}
8862
8863
c24da6d6 8864static PyObject *_wrap_new_EmptyImage(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8865 PyObject *resultobj;
8866 int arg1 = (int) 0 ;
8867 int arg2 = (int) 0 ;
8868 bool arg3 = (bool) True ;
8869 wxImage *result;
8870 PyObject * obj0 = 0 ;
8871 PyObject * obj1 = 0 ;
8872 PyObject * obj2 = 0 ;
c24da6d6
RD
8873 char *kwnames[] = {
8874 (char *) "width",(char *) "height",(char *) "clear", NULL
8875 };
d55e5bfc 8876
c24da6d6 8877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_EmptyImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
8878 if (obj0) {
8879 arg1 = (int) SWIG_AsInt(obj0);
8880 if (PyErr_Occurred()) SWIG_fail;
8881 }
8882 if (obj1) {
8883 arg2 = (int) SWIG_AsInt(obj1);
8884 if (PyErr_Occurred()) SWIG_fail;
8885 }
8886 if (obj2) {
8887 arg3 = (bool) SWIG_AsBool(obj2);
8888 if (PyErr_Occurred()) SWIG_fail;
8889 }
8890 {
8891 PyThreadState* __tstate = wxPyBeginAllowThreads();
c24da6d6 8892 result = (wxImage *)new_wxImage(arg1,arg2,arg3);
d55e5bfc
RD
8893
8894 wxPyEndAllowThreads(__tstate);
8895 if (PyErr_Occurred()) SWIG_fail;
8896 }
8897 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
8898 return resultobj;
8899 fail:
8900 return NULL;
8901}
8902
8903
d55e5bfc
RD
8904static PyObject *_wrap_new_ImageFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
8905 PyObject *resultobj;
8906 wxBitmap *arg1 = 0 ;
8907 wxImage *result;
8908 PyObject * obj0 = 0 ;
8909 char *kwnames[] = {
8910 (char *) "bitmap", NULL
8911 };
8912
8913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ImageFromBitmap",kwnames,&obj0)) goto fail;
8914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
8915 SWIG_POINTER_EXCEPTION | 0)) == -1)
8916 SWIG_fail;
8917 if (arg1 == NULL) {
8918 PyErr_SetString(PyExc_TypeError,"null reference");
8919 SWIG_fail;
8920 }
8921 {
0439c23b 8922 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
8923 PyThreadState* __tstate = wxPyBeginAllowThreads();
8924 result = (wxImage *)new_wxImage((wxBitmap const &)*arg1);
8925
8926 wxPyEndAllowThreads(__tstate);
0439c23b 8927 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
8928 }
8929 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
8930 return resultobj;
8931 fail:
8932 return NULL;
8933}
8934
8935
8936static PyObject *_wrap_new_ImageFromData(PyObject *self, PyObject *args, PyObject *kwargs) {
8937 PyObject *resultobj;
8938 int arg1 ;
8939 int arg2 ;
8940 unsigned char *arg3 = (unsigned char *) 0 ;
8941 wxImage *result;
8942 PyObject * obj0 = 0 ;
8943 PyObject * obj1 = 0 ;
8944 PyObject * obj2 = 0 ;
8945 char *kwnames[] = {
8946 (char *) "width",(char *) "height",(char *) "data", NULL
8947 };
8948
8949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ImageFromData",kwnames,&obj0,&obj1,&obj2)) goto fail;
8950 arg1 = (int) SWIG_AsInt(obj0);
8951 if (PyErr_Occurred()) SWIG_fail;
8952 arg2 = (int) SWIG_AsInt(obj1);
8953 if (PyErr_Occurred()) SWIG_fail;
8954 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
8955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8956 {
8957 PyThreadState* __tstate = wxPyBeginAllowThreads();
8958 result = (wxImage *)new_wxImage(arg1,arg2,arg3);
8959
8960 wxPyEndAllowThreads(__tstate);
8961 if (PyErr_Occurred()) SWIG_fail;
8962 }
8963 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
8964 return resultobj;
8965 fail:
8966 return NULL;
8967}
8968
8969
8970static PyObject *_wrap_Image_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
8971 PyObject *resultobj;
8972 wxImage *arg1 = (wxImage *) 0 ;
8973 int arg2 ;
8974 int arg3 ;
8975 PyObject * obj0 = 0 ;
8976 PyObject * obj1 = 0 ;
8977 PyObject * obj2 = 0 ;
8978 char *kwnames[] = {
8979 (char *) "self",(char *) "width",(char *) "height", NULL
8980 };
8981
8982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Create",kwnames,&obj0,&obj1,&obj2)) goto fail;
8983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
8984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8985 arg2 = (int) SWIG_AsInt(obj1);
8986 if (PyErr_Occurred()) SWIG_fail;
8987 arg3 = (int) SWIG_AsInt(obj2);
8988 if (PyErr_Occurred()) SWIG_fail;
8989 {
8990 PyThreadState* __tstate = wxPyBeginAllowThreads();
8991 (arg1)->Create(arg2,arg3);
8992
8993 wxPyEndAllowThreads(__tstate);
8994 if (PyErr_Occurred()) SWIG_fail;
8995 }
8996 Py_INCREF(Py_None); resultobj = Py_None;
8997 return resultobj;
8998 fail:
8999 return NULL;
9000}
9001
9002
9003static PyObject *_wrap_Image_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
9004 PyObject *resultobj;
9005 wxImage *arg1 = (wxImage *) 0 ;
9006 PyObject * obj0 = 0 ;
9007 char *kwnames[] = {
9008 (char *) "self", NULL
9009 };
9010
9011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Destroy",kwnames,&obj0)) goto fail;
9012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9014 {
9015 PyThreadState* __tstate = wxPyBeginAllowThreads();
9016 (arg1)->Destroy();
9017
9018 wxPyEndAllowThreads(__tstate);
9019 if (PyErr_Occurred()) SWIG_fail;
9020 }
9021 Py_INCREF(Py_None); resultobj = Py_None;
9022 return resultobj;
9023 fail:
9024 return NULL;
9025}
9026
9027
9028static PyObject *_wrap_Image_Scale(PyObject *self, PyObject *args, PyObject *kwargs) {
9029 PyObject *resultobj;
9030 wxImage *arg1 = (wxImage *) 0 ;
9031 int arg2 ;
9032 int arg3 ;
9033 SwigValueWrapper< wxImage > result;
9034 PyObject * obj0 = 0 ;
9035 PyObject * obj1 = 0 ;
9036 PyObject * obj2 = 0 ;
9037 char *kwnames[] = {
9038 (char *) "self",(char *) "width",(char *) "height", NULL
9039 };
9040
9041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Scale",kwnames,&obj0,&obj1,&obj2)) goto fail;
9042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9044 arg2 = (int) SWIG_AsInt(obj1);
9045 if (PyErr_Occurred()) SWIG_fail;
9046 arg3 = (int) SWIG_AsInt(obj2);
9047 if (PyErr_Occurred()) SWIG_fail;
9048 {
9049 PyThreadState* __tstate = wxPyBeginAllowThreads();
9050 result = (arg1)->Scale(arg2,arg3);
9051
9052 wxPyEndAllowThreads(__tstate);
9053 if (PyErr_Occurred()) SWIG_fail;
9054 }
9055 {
9056 wxImage * resultptr;
9057 resultptr = new wxImage((wxImage &) result);
9058 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
9059 }
9060 return resultobj;
9061 fail:
9062 return NULL;
9063}
9064
9065
9066static PyObject *_wrap_Image_ShrinkBy(PyObject *self, PyObject *args, PyObject *kwargs) {
9067 PyObject *resultobj;
9068 wxImage *arg1 = (wxImage *) 0 ;
9069 int arg2 ;
9070 int arg3 ;
9071 SwigValueWrapper< wxImage > result;
9072 PyObject * obj0 = 0 ;
9073 PyObject * obj1 = 0 ;
9074 PyObject * obj2 = 0 ;
9075 char *kwnames[] = {
9076 (char *) "self",(char *) "xFactor",(char *) "yFactor", NULL
9077 };
9078
9079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ShrinkBy",kwnames,&obj0,&obj1,&obj2)) goto fail;
9080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9082 arg2 = (int) SWIG_AsInt(obj1);
9083 if (PyErr_Occurred()) SWIG_fail;
9084 arg3 = (int) SWIG_AsInt(obj2);
9085 if (PyErr_Occurred()) SWIG_fail;
9086 {
9087 PyThreadState* __tstate = wxPyBeginAllowThreads();
9088 result = ((wxImage const *)arg1)->ShrinkBy(arg2,arg3);
9089
9090 wxPyEndAllowThreads(__tstate);
9091 if (PyErr_Occurred()) SWIG_fail;
9092 }
9093 {
9094 wxImage * resultptr;
9095 resultptr = new wxImage((wxImage &) result);
9096 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
9097 }
9098 return resultobj;
9099 fail:
9100 return NULL;
9101}
9102
9103
9104static PyObject *_wrap_Image_Rescale(PyObject *self, PyObject *args, PyObject *kwargs) {
9105 PyObject *resultobj;
9106 wxImage *arg1 = (wxImage *) 0 ;
9107 int arg2 ;
9108 int arg3 ;
9109 wxImage *result;
9110 PyObject * obj0 = 0 ;
9111 PyObject * obj1 = 0 ;
9112 PyObject * obj2 = 0 ;
9113 char *kwnames[] = {
9114 (char *) "self",(char *) "width",(char *) "height", NULL
9115 };
9116
9117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Rescale",kwnames,&obj0,&obj1,&obj2)) goto fail;
9118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9120 arg2 = (int) SWIG_AsInt(obj1);
9121 if (PyErr_Occurred()) SWIG_fail;
9122 arg3 = (int) SWIG_AsInt(obj2);
9123 if (PyErr_Occurred()) SWIG_fail;
9124 {
9125 PyThreadState* __tstate = wxPyBeginAllowThreads();
9126 {
9127 wxImage &_result_ref = (arg1)->Rescale(arg2,arg3);
9128 result = (wxImage *) &_result_ref;
9129 }
9130
9131 wxPyEndAllowThreads(__tstate);
9132 if (PyErr_Occurred()) SWIG_fail;
9133 }
9134 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 0);
9135 return resultobj;
9136 fail:
9137 return NULL;
9138}
9139
9140
9141static PyObject *_wrap_Image_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
9142 PyObject *resultobj;
9143 wxImage *arg1 = (wxImage *) 0 ;
9144 int arg2 ;
9145 int arg3 ;
9146 unsigned char arg4 ;
9147 unsigned char arg5 ;
9148 unsigned char arg6 ;
9149 PyObject * obj0 = 0 ;
9150 PyObject * obj1 = 0 ;
9151 PyObject * obj2 = 0 ;
9152 PyObject * obj3 = 0 ;
9153 PyObject * obj4 = 0 ;
9154 PyObject * obj5 = 0 ;
9155 char *kwnames[] = {
9156 (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "g",(char *) "b", NULL
9157 };
9158
9159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Image_SetRGB",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9162 arg2 = (int) SWIG_AsInt(obj1);
9163 if (PyErr_Occurred()) SWIG_fail;
9164 arg3 = (int) SWIG_AsInt(obj2);
9165 if (PyErr_Occurred()) SWIG_fail;
9166 arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3);
9167 if (PyErr_Occurred()) SWIG_fail;
9168 arg5 = (unsigned char) SWIG_AsUnsignedChar(obj4);
9169 if (PyErr_Occurred()) SWIG_fail;
9170 arg6 = (unsigned char) SWIG_AsUnsignedChar(obj5);
9171 if (PyErr_Occurred()) SWIG_fail;
9172 {
9173 PyThreadState* __tstate = wxPyBeginAllowThreads();
9174 (arg1)->SetRGB(arg2,arg3,arg4,arg5,arg6);
9175
9176 wxPyEndAllowThreads(__tstate);
9177 if (PyErr_Occurred()) SWIG_fail;
9178 }
9179 Py_INCREF(Py_None); resultobj = Py_None;
9180 return resultobj;
9181 fail:
9182 return NULL;
9183}
9184
9185
9186static PyObject *_wrap_Image_GetRed(PyObject *self, PyObject *args, PyObject *kwargs) {
9187 PyObject *resultobj;
9188 wxImage *arg1 = (wxImage *) 0 ;
9189 int arg2 ;
9190 int arg3 ;
9191 unsigned char result;
9192 PyObject * obj0 = 0 ;
9193 PyObject * obj1 = 0 ;
9194 PyObject * obj2 = 0 ;
9195 char *kwnames[] = {
9196 (char *) "self",(char *) "x",(char *) "y", NULL
9197 };
9198
9199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetRed",kwnames,&obj0,&obj1,&obj2)) goto fail;
9200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9202 arg2 = (int) SWIG_AsInt(obj1);
9203 if (PyErr_Occurred()) SWIG_fail;
9204 arg3 = (int) SWIG_AsInt(obj2);
9205 if (PyErr_Occurred()) SWIG_fail;
9206 {
9207 PyThreadState* __tstate = wxPyBeginAllowThreads();
9208 result = (unsigned char)(arg1)->GetRed(arg2,arg3);
9209
9210 wxPyEndAllowThreads(__tstate);
9211 if (PyErr_Occurred()) SWIG_fail;
9212 }
9213 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
9214 return resultobj;
9215 fail:
9216 return NULL;
9217}
9218
9219
9220static PyObject *_wrap_Image_GetGreen(PyObject *self, PyObject *args, PyObject *kwargs) {
9221 PyObject *resultobj;
9222 wxImage *arg1 = (wxImage *) 0 ;
9223 int arg2 ;
9224 int arg3 ;
9225 unsigned char result;
9226 PyObject * obj0 = 0 ;
9227 PyObject * obj1 = 0 ;
9228 PyObject * obj2 = 0 ;
9229 char *kwnames[] = {
9230 (char *) "self",(char *) "x",(char *) "y", NULL
9231 };
9232
9233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetGreen",kwnames,&obj0,&obj1,&obj2)) goto fail;
9234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9236 arg2 = (int) SWIG_AsInt(obj1);
9237 if (PyErr_Occurred()) SWIG_fail;
9238 arg3 = (int) SWIG_AsInt(obj2);
9239 if (PyErr_Occurred()) SWIG_fail;
9240 {
9241 PyThreadState* __tstate = wxPyBeginAllowThreads();
9242 result = (unsigned char)(arg1)->GetGreen(arg2,arg3);
9243
9244 wxPyEndAllowThreads(__tstate);
9245 if (PyErr_Occurred()) SWIG_fail;
9246 }
9247 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
9248 return resultobj;
9249 fail:
9250 return NULL;
9251}
9252
9253
9254static PyObject *_wrap_Image_GetBlue(PyObject *self, PyObject *args, PyObject *kwargs) {
9255 PyObject *resultobj;
9256 wxImage *arg1 = (wxImage *) 0 ;
9257 int arg2 ;
9258 int arg3 ;
9259 unsigned char result;
9260 PyObject * obj0 = 0 ;
9261 PyObject * obj1 = 0 ;
9262 PyObject * obj2 = 0 ;
9263 char *kwnames[] = {
9264 (char *) "self",(char *) "x",(char *) "y", NULL
9265 };
9266
9267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetBlue",kwnames,&obj0,&obj1,&obj2)) goto fail;
9268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9270 arg2 = (int) SWIG_AsInt(obj1);
9271 if (PyErr_Occurred()) SWIG_fail;
9272 arg3 = (int) SWIG_AsInt(obj2);
9273 if (PyErr_Occurred()) SWIG_fail;
9274 {
9275 PyThreadState* __tstate = wxPyBeginAllowThreads();
9276 result = (unsigned char)(arg1)->GetBlue(arg2,arg3);
9277
9278 wxPyEndAllowThreads(__tstate);
9279 if (PyErr_Occurred()) SWIG_fail;
9280 }
9281 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
9282 return resultobj;
9283 fail:
9284 return NULL;
9285}
9286
9287
9288static PyObject *_wrap_Image_SetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) {
9289 PyObject *resultobj;
9290 wxImage *arg1 = (wxImage *) 0 ;
9291 int arg2 ;
9292 int arg3 ;
9293 unsigned char arg4 ;
9294 PyObject * obj0 = 0 ;
9295 PyObject * obj1 = 0 ;
9296 PyObject * obj2 = 0 ;
9297 PyObject * obj3 = 0 ;
9298 char *kwnames[] = {
9299 (char *) "self",(char *) "x",(char *) "y",(char *) "alpha", NULL
9300 };
9301
9302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9305 arg2 = (int) SWIG_AsInt(obj1);
9306 if (PyErr_Occurred()) SWIG_fail;
9307 arg3 = (int) SWIG_AsInt(obj2);
9308 if (PyErr_Occurred()) SWIG_fail;
9309 arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3);
9310 if (PyErr_Occurred()) SWIG_fail;
9311 {
9312 PyThreadState* __tstate = wxPyBeginAllowThreads();
9313 (arg1)->SetAlpha(arg2,arg3,arg4);
9314
9315 wxPyEndAllowThreads(__tstate);
9316 if (PyErr_Occurred()) SWIG_fail;
9317 }
9318 Py_INCREF(Py_None); resultobj = Py_None;
9319 return resultobj;
9320 fail:
9321 return NULL;
9322}
9323
9324
9325static PyObject *_wrap_Image_GetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) {
9326 PyObject *resultobj;
9327 wxImage *arg1 = (wxImage *) 0 ;
9328 int arg2 ;
9329 int arg3 ;
9330 unsigned char result;
9331 PyObject * obj0 = 0 ;
9332 PyObject * obj1 = 0 ;
9333 PyObject * obj2 = 0 ;
9334 char *kwnames[] = {
9335 (char *) "self",(char *) "x",(char *) "y", NULL
9336 };
9337
9338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetAlpha",kwnames,&obj0,&obj1,&obj2)) goto fail;
9339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9341 arg2 = (int) SWIG_AsInt(obj1);
9342 if (PyErr_Occurred()) SWIG_fail;
9343 arg3 = (int) SWIG_AsInt(obj2);
9344 if (PyErr_Occurred()) SWIG_fail;
9345 {
9346 PyThreadState* __tstate = wxPyBeginAllowThreads();
9347 result = (unsigned char)(arg1)->GetAlpha(arg2,arg3);
9348
9349 wxPyEndAllowThreads(__tstate);
9350 if (PyErr_Occurred()) SWIG_fail;
9351 }
9352 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
9353 return resultobj;
9354 fail:
9355 return NULL;
9356}
9357
9358
9359static PyObject *_wrap_Image_HasAlpha(PyObject *self, PyObject *args, PyObject *kwargs) {
9360 PyObject *resultobj;
9361 wxImage *arg1 = (wxImage *) 0 ;
9362 bool result;
9363 PyObject * obj0 = 0 ;
9364 char *kwnames[] = {
9365 (char *) "self", NULL
9366 };
9367
9368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasAlpha",kwnames,&obj0)) goto fail;
9369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9371 {
9372 PyThreadState* __tstate = wxPyBeginAllowThreads();
9373 result = (bool)(arg1)->HasAlpha();
9374
9375 wxPyEndAllowThreads(__tstate);
9376 if (PyErr_Occurred()) SWIG_fail;
9377 }
9378 {
9379 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9380 }
9381 return resultobj;
9382 fail:
9383 return NULL;
9384}
9385
9386
9387static PyObject *_wrap_Image_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
9388 PyObject *resultobj;
9389 wxImage *arg1 = (wxImage *) 0 ;
9390 byte *arg2 = (byte *) 0 ;
9391 byte *arg3 = (byte *) 0 ;
9392 byte *arg4 = (byte *) 0 ;
9393 byte arg5 = (byte) 0 ;
9394 byte arg6 = (byte) 0 ;
9395 byte arg7 = (byte) 0 ;
9396 bool result;
9397 byte temp2 ;
9398 byte temp3 ;
9399 byte temp4 ;
9400 PyObject * obj0 = 0 ;
9401 PyObject * obj1 = 0 ;
9402 PyObject * obj2 = 0 ;
9403 PyObject * obj3 = 0 ;
9404 char *kwnames[] = {
9405 (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL
9406 };
9407
9408 arg2 = &temp2;
9409 arg3 = &temp3;
9410 arg4 = &temp4;
9411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9414 if (obj1) {
9415 arg5 = (byte) SWIG_AsUnsignedChar(obj1);
9416 if (PyErr_Occurred()) SWIG_fail;
9417 }
9418 if (obj2) {
9419 arg6 = (byte) SWIG_AsUnsignedChar(obj2);
9420 if (PyErr_Occurred()) SWIG_fail;
9421 }
9422 if (obj3) {
9423 arg7 = (byte) SWIG_AsUnsignedChar(obj3);
9424 if (PyErr_Occurred()) SWIG_fail;
9425 }
9426 {
9427 PyThreadState* __tstate = wxPyBeginAllowThreads();
9428 result = (bool)((wxImage const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7);
9429
9430 wxPyEndAllowThreads(__tstate);
9431 if (PyErr_Occurred()) SWIG_fail;
9432 }
9433 {
9434 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9435 }
9436 {
9437 PyObject *o = PyInt_FromLong((long) (*arg2));
9438 resultobj = t_output_helper(resultobj,o);
9439 }
9440 {
9441 PyObject *o = PyInt_FromLong((long) (*arg3));
9442 resultobj = t_output_helper(resultobj,o);
9443 }
9444 {
9445 PyObject *o = PyInt_FromLong((long) (*arg4));
9446 resultobj = t_output_helper(resultobj,o);
9447 }
9448 return resultobj;
9449 fail:
9450 return NULL;
9451}
9452
9453
9454static PyObject *_wrap_Image_SetMaskFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
9455 PyObject *resultobj;
9456 wxImage *arg1 = (wxImage *) 0 ;
9457 wxImage *arg2 = 0 ;
9458 byte arg3 ;
9459 byte arg4 ;
9460 byte arg5 ;
9461 bool result;
9462 PyObject * obj0 = 0 ;
9463 PyObject * obj1 = 0 ;
9464 PyObject * obj2 = 0 ;
9465 PyObject * obj3 = 0 ;
9466 PyObject * obj4 = 0 ;
9467 char *kwnames[] = {
9468 (char *) "self",(char *) "mask",(char *) "mr",(char *) "mg",(char *) "mb", NULL
9469 };
9470
9471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetMaskFromImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
9472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9474 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage,
9475 SWIG_POINTER_EXCEPTION | 0)) == -1)
9476 SWIG_fail;
9477 if (arg2 == NULL) {
9478 PyErr_SetString(PyExc_TypeError,"null reference");
9479 SWIG_fail;
9480 }
9481 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
9482 if (PyErr_Occurred()) SWIG_fail;
9483 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
9484 if (PyErr_Occurred()) SWIG_fail;
9485 arg5 = (byte) SWIG_AsUnsignedChar(obj4);
9486 if (PyErr_Occurred()) SWIG_fail;
9487 {
9488 PyThreadState* __tstate = wxPyBeginAllowThreads();
9489 result = (bool)(arg1)->SetMaskFromImage((wxImage const &)*arg2,arg3,arg4,arg5);
9490
9491 wxPyEndAllowThreads(__tstate);
9492 if (PyErr_Occurred()) SWIG_fail;
9493 }
9494 {
9495 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9496 }
9497 return resultobj;
9498 fail:
9499 return NULL;
9500}
9501
9502
9503static PyObject *_wrap_Image_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) {
9504 PyObject *resultobj;
9505 wxString *arg1 = 0 ;
9506 bool result;
9507 bool temp1 = False ;
9508 PyObject * obj0 = 0 ;
9509 char *kwnames[] = {
9510 (char *) "name", NULL
9511 };
9512
9513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanRead",kwnames,&obj0)) goto fail;
9514 {
9515 arg1 = wxString_in_helper(obj0);
9516 if (arg1 == NULL) SWIG_fail;
9517 temp1 = True;
9518 }
9519 {
9520 PyThreadState* __tstate = wxPyBeginAllowThreads();
9521 result = (bool)wxImage::CanRead((wxString const &)*arg1);
9522
9523 wxPyEndAllowThreads(__tstate);
9524 if (PyErr_Occurred()) SWIG_fail;
9525 }
9526 {
9527 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9528 }
9529 {
9530 if (temp1)
9531 delete arg1;
9532 }
9533 return resultobj;
9534 fail:
9535 {
9536 if (temp1)
9537 delete arg1;
9538 }
9539 return NULL;
9540}
9541
9542
9543static PyObject *_wrap_Image_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
9544 PyObject *resultobj;
9545 wxString *arg1 = 0 ;
9546 long arg2 = (long) wxBITMAP_TYPE_ANY ;
9547 int result;
9548 bool temp1 = False ;
9549 PyObject * obj0 = 0 ;
9550 PyObject * obj1 = 0 ;
9551 char *kwnames[] = {
9552 (char *) "name",(char *) "type", NULL
9553 };
9554
9555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_GetImageCount",kwnames,&obj0,&obj1)) goto fail;
9556 {
9557 arg1 = wxString_in_helper(obj0);
9558 if (arg1 == NULL) SWIG_fail;
9559 temp1 = True;
9560 }
9561 if (obj1) {
9562 arg2 = (long) SWIG_AsLong(obj1);
9563 if (PyErr_Occurred()) SWIG_fail;
9564 }
9565 {
9566 PyThreadState* __tstate = wxPyBeginAllowThreads();
9567 result = (int)wxImage::GetImageCount((wxString const &)*arg1,arg2);
9568
9569 wxPyEndAllowThreads(__tstate);
9570 if (PyErr_Occurred()) SWIG_fail;
9571 }
9572 resultobj = SWIG_FromInt((int)result);
9573 {
9574 if (temp1)
9575 delete arg1;
9576 }
9577 return resultobj;
9578 fail:
9579 {
9580 if (temp1)
9581 delete arg1;
9582 }
9583 return NULL;
9584}
9585
9586
9587static PyObject *_wrap_Image_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
9588 PyObject *resultobj;
9589 wxImage *arg1 = (wxImage *) 0 ;
9590 wxString *arg2 = 0 ;
9591 long arg3 = (long) wxBITMAP_TYPE_ANY ;
9592 int arg4 = (int) -1 ;
9593 bool result;
9594 bool temp2 = False ;
9595 PyObject * obj0 = 0 ;
9596 PyObject * obj1 = 0 ;
9597 PyObject * obj2 = 0 ;
9598 PyObject * obj3 = 0 ;
9599 char *kwnames[] = {
9600 (char *) "self",(char *) "name",(char *) "type",(char *) "index", NULL
9601 };
9602
9603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9606 {
9607 arg2 = wxString_in_helper(obj1);
9608 if (arg2 == NULL) SWIG_fail;
9609 temp2 = True;
9610 }
9611 if (obj2) {
9612 arg3 = (long) SWIG_AsLong(obj2);
9613 if (PyErr_Occurred()) SWIG_fail;
9614 }
9615 if (obj3) {
9616 arg4 = (int) SWIG_AsInt(obj3);
9617 if (PyErr_Occurred()) SWIG_fail;
9618 }
9619 {
9620 PyThreadState* __tstate = wxPyBeginAllowThreads();
9621 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3,arg4);
9622
9623 wxPyEndAllowThreads(__tstate);
9624 if (PyErr_Occurred()) SWIG_fail;
9625 }
9626 {
9627 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9628 }
9629 {
9630 if (temp2)
9631 delete arg2;
9632 }
9633 return resultobj;
9634 fail:
9635 {
9636 if (temp2)
9637 delete arg2;
9638 }
9639 return NULL;
9640}
9641
9642
9643static PyObject *_wrap_Image_LoadMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) {
9644 PyObject *resultobj;
9645 wxImage *arg1 = (wxImage *) 0 ;
9646 wxString *arg2 = 0 ;
9647 wxString *arg3 = 0 ;
9648 int arg4 = (int) -1 ;
9649 bool result;
9650 bool temp2 = False ;
9651 bool temp3 = False ;
9652 PyObject * obj0 = 0 ;
9653 PyObject * obj1 = 0 ;
9654 PyObject * obj2 = 0 ;
9655 PyObject * obj3 = 0 ;
9656 char *kwnames[] = {
9657 (char *) "self",(char *) "name",(char *) "mimetype",(char *) "index", NULL
9658 };
9659
9660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9663 {
9664 arg2 = wxString_in_helper(obj1);
9665 if (arg2 == NULL) SWIG_fail;
9666 temp2 = True;
9667 }
9668 {
9669 arg3 = wxString_in_helper(obj2);
9670 if (arg3 == NULL) SWIG_fail;
9671 temp3 = True;
9672 }
9673 if (obj3) {
9674 arg4 = (int) SWIG_AsInt(obj3);
9675 if (PyErr_Occurred()) SWIG_fail;
9676 }
9677 {
9678 PyThreadState* __tstate = wxPyBeginAllowThreads();
9679 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxString const &)*arg3,arg4);
9680
9681 wxPyEndAllowThreads(__tstate);
9682 if (PyErr_Occurred()) SWIG_fail;
9683 }
9684 {
9685 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9686 }
9687 {
9688 if (temp2)
9689 delete arg2;
9690 }
9691 {
9692 if (temp3)
9693 delete arg3;
9694 }
9695 return resultobj;
9696 fail:
9697 {
9698 if (temp2)
9699 delete arg2;
9700 }
9701 {
9702 if (temp3)
9703 delete arg3;
9704 }
9705 return NULL;
9706}
9707
9708
9709static PyObject *_wrap_Image_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
9710 PyObject *resultobj;
9711 wxImage *arg1 = (wxImage *) 0 ;
9712 wxString *arg2 = 0 ;
9713 int arg3 ;
9714 bool result;
9715 bool temp2 = False ;
9716 PyObject * obj0 = 0 ;
9717 PyObject * obj1 = 0 ;
9718 PyObject * obj2 = 0 ;
9719 char *kwnames[] = {
9720 (char *) "self",(char *) "name",(char *) "type", NULL
9721 };
9722
9723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
9724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9726 {
9727 arg2 = wxString_in_helper(obj1);
9728 if (arg2 == NULL) SWIG_fail;
9729 temp2 = True;
9730 }
9731 arg3 = (int) SWIG_AsInt(obj2);
9732 if (PyErr_Occurred()) SWIG_fail;
9733 {
9734 PyThreadState* __tstate = wxPyBeginAllowThreads();
9735 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3);
9736
9737 wxPyEndAllowThreads(__tstate);
9738 if (PyErr_Occurred()) SWIG_fail;
9739 }
9740 {
9741 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9742 }
9743 {
9744 if (temp2)
9745 delete arg2;
9746 }
9747 return resultobj;
9748 fail:
9749 {
9750 if (temp2)
9751 delete arg2;
9752 }
9753 return NULL;
9754}
9755
9756
9757static PyObject *_wrap_Image_SaveMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) {
9758 PyObject *resultobj;
9759 wxImage *arg1 = (wxImage *) 0 ;
9760 wxString *arg2 = 0 ;
9761 wxString *arg3 = 0 ;
9762 bool result;
9763 bool temp2 = False ;
9764 bool temp3 = False ;
9765 PyObject * obj0 = 0 ;
9766 PyObject * obj1 = 0 ;
9767 PyObject * obj2 = 0 ;
9768 char *kwnames[] = {
9769 (char *) "self",(char *) "name",(char *) "mimetype", NULL
9770 };
9771
9772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveMimeFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
9773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9775 {
9776 arg2 = wxString_in_helper(obj1);
9777 if (arg2 == NULL) SWIG_fail;
9778 temp2 = True;
9779 }
9780 {
9781 arg3 = wxString_in_helper(obj2);
9782 if (arg3 == NULL) SWIG_fail;
9783 temp3 = True;
9784 }
9785 {
9786 PyThreadState* __tstate = wxPyBeginAllowThreads();
9787 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxString const &)*arg3);
9788
9789 wxPyEndAllowThreads(__tstate);
9790 if (PyErr_Occurred()) SWIG_fail;
9791 }
9792 {
9793 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9794 }
9795 {
9796 if (temp2)
9797 delete arg2;
9798 }
9799 {
9800 if (temp3)
9801 delete arg3;
9802 }
9803 return resultobj;
9804 fail:
9805 {
9806 if (temp2)
9807 delete arg2;
9808 }
9809 {
9810 if (temp3)
9811 delete arg3;
9812 }
9813 return NULL;
9814}
9815
9816
9817static PyObject *_wrap_Image_CanReadStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9818 PyObject *resultobj;
9819 wxInputStream *arg1 = 0 ;
9820 bool result;
9821 wxPyInputStream *temp1 ;
9822 bool created1 ;
9823 PyObject * obj0 = 0 ;
9824 char *kwnames[] = {
9825 (char *) "stream", NULL
9826 };
9827
9828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanReadStream",kwnames,&obj0)) goto fail;
9829 {
9830 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
9831 arg1 = temp1->m_wxis;
9832 created1 = False;
9833 } else {
9834 PyErr_Clear(); // clear the failure of the wxPyConvert above
9835 arg1 = wxPyCBInputStream_create(obj0, False);
9836 if (arg1 == NULL) {
9837 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
9838 SWIG_fail;
9839 }
9840 created1 = True;
9841 }
9842 }
9843 {
9844 PyThreadState* __tstate = wxPyBeginAllowThreads();
9845 result = (bool)wxImage::CanRead(*arg1);
9846
9847 wxPyEndAllowThreads(__tstate);
9848 if (PyErr_Occurred()) SWIG_fail;
9849 }
9850 {
9851 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9852 }
9853 {
9854 if (created1)
9855 delete arg1;
9856 }
9857 return resultobj;
9858 fail:
9859 {
9860 if (created1)
9861 delete arg1;
9862 }
9863 return NULL;
9864}
9865
9866
9867static PyObject *_wrap_Image_LoadStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9868 PyObject *resultobj;
9869 wxImage *arg1 = (wxImage *) 0 ;
9870 wxInputStream *arg2 = 0 ;
9871 long arg3 = (long) wxBITMAP_TYPE_ANY ;
9872 int arg4 = (int) -1 ;
9873 bool result;
9874 wxPyInputStream *temp2 ;
9875 bool created2 ;
9876 PyObject * obj0 = 0 ;
9877 PyObject * obj1 = 0 ;
9878 PyObject * obj2 = 0 ;
9879 PyObject * obj3 = 0 ;
9880 char *kwnames[] = {
9881 (char *) "self",(char *) "stream",(char *) "type",(char *) "index", NULL
9882 };
9883
9884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9885 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9887 {
9888 if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) {
9889 arg2 = temp2->m_wxis;
9890 created2 = False;
9891 } else {
9892 PyErr_Clear(); // clear the failure of the wxPyConvert above
9893 arg2 = wxPyCBInputStream_create(obj1, False);
9894 if (arg2 == NULL) {
9895 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
9896 SWIG_fail;
9897 }
9898 created2 = True;
9899 }
9900 }
9901 if (obj2) {
9902 arg3 = (long) SWIG_AsLong(obj2);
9903 if (PyErr_Occurred()) SWIG_fail;
9904 }
9905 if (obj3) {
9906 arg4 = (int) SWIG_AsInt(obj3);
9907 if (PyErr_Occurred()) SWIG_fail;
9908 }
9909 {
9910 PyThreadState* __tstate = wxPyBeginAllowThreads();
9911 result = (bool)(arg1)->LoadFile(*arg2,arg3,arg4);
9912
9913 wxPyEndAllowThreads(__tstate);
9914 if (PyErr_Occurred()) SWIG_fail;
9915 }
9916 {
9917 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9918 }
9919 {
9920 if (created2)
9921 delete arg2;
9922 }
9923 return resultobj;
9924 fail:
9925 {
9926 if (created2)
9927 delete arg2;
9928 }
9929 return NULL;
9930}
9931
9932
9933static PyObject *_wrap_Image_LoadMimeStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9934 PyObject *resultobj;
9935 wxImage *arg1 = (wxImage *) 0 ;
9936 wxInputStream *arg2 = 0 ;
9937 wxString *arg3 = 0 ;
9938 int arg4 = (int) -1 ;
9939 bool result;
9940 wxPyInputStream *temp2 ;
9941 bool created2 ;
9942 bool temp3 = False ;
9943 PyObject * obj0 = 0 ;
9944 PyObject * obj1 = 0 ;
9945 PyObject * obj2 = 0 ;
9946 PyObject * obj3 = 0 ;
9947 char *kwnames[] = {
9948 (char *) "self",(char *) "stream",(char *) "mimetype",(char *) "index", NULL
9949 };
9950
9951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9954 {
9955 if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) {
9956 arg2 = temp2->m_wxis;
9957 created2 = False;
9958 } else {
9959 PyErr_Clear(); // clear the failure of the wxPyConvert above
9960 arg2 = wxPyCBInputStream_create(obj1, False);
9961 if (arg2 == NULL) {
9962 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
9963 SWIG_fail;
9964 }
9965 created2 = True;
9966 }
9967 }
9968 {
9969 arg3 = wxString_in_helper(obj2);
9970 if (arg3 == NULL) SWIG_fail;
9971 temp3 = True;
9972 }
9973 if (obj3) {
9974 arg4 = (int) SWIG_AsInt(obj3);
9975 if (PyErr_Occurred()) SWIG_fail;
9976 }
9977 {
9978 PyThreadState* __tstate = wxPyBeginAllowThreads();
9979 result = (bool)(arg1)->LoadFile(*arg2,(wxString const &)*arg3,arg4);
9980
9981 wxPyEndAllowThreads(__tstate);
9982 if (PyErr_Occurred()) SWIG_fail;
9983 }
9984 {
9985 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9986 }
9987 {
9988 if (created2)
9989 delete arg2;
9990 }
9991 {
9992 if (temp3)
9993 delete arg3;
9994 }
9995 return resultobj;
9996 fail:
9997 {
9998 if (created2)
9999 delete arg2;
10000 }
10001 {
10002 if (temp3)
10003 delete arg3;
10004 }
10005 return NULL;
10006}
10007
10008
10009static PyObject *_wrap_Image_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
10010 PyObject *resultobj;
10011 wxImage *arg1 = (wxImage *) 0 ;
10012 bool result;
10013 PyObject * obj0 = 0 ;
10014 char *kwnames[] = {
10015 (char *) "self", NULL
10016 };
10017
10018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Ok",kwnames,&obj0)) goto fail;
10019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10021 {
10022 PyThreadState* __tstate = wxPyBeginAllowThreads();
10023 result = (bool)(arg1)->Ok();
10024
10025 wxPyEndAllowThreads(__tstate);
10026 if (PyErr_Occurred()) SWIG_fail;
10027 }
10028 {
10029 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10030 }
10031 return resultobj;
10032 fail:
10033 return NULL;
10034}
10035
10036
10037static PyObject *_wrap_Image_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
10038 PyObject *resultobj;
10039 wxImage *arg1 = (wxImage *) 0 ;
10040 int result;
10041 PyObject * obj0 = 0 ;
10042 char *kwnames[] = {
10043 (char *) "self", NULL
10044 };
10045
10046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetWidth",kwnames,&obj0)) goto fail;
10047 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10049 {
10050 PyThreadState* __tstate = wxPyBeginAllowThreads();
10051 result = (int)(arg1)->GetWidth();
10052
10053 wxPyEndAllowThreads(__tstate);
10054 if (PyErr_Occurred()) SWIG_fail;
10055 }
10056 resultobj = SWIG_FromInt((int)result);
10057 return resultobj;
10058 fail:
10059 return NULL;
10060}
10061
10062
10063static PyObject *_wrap_Image_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
10064 PyObject *resultobj;
10065 wxImage *arg1 = (wxImage *) 0 ;
10066 int result;
10067 PyObject * obj0 = 0 ;
10068 char *kwnames[] = {
10069 (char *) "self", NULL
10070 };
10071
10072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetHeight",kwnames,&obj0)) goto fail;
10073 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10075 {
10076 PyThreadState* __tstate = wxPyBeginAllowThreads();
10077 result = (int)(arg1)->GetHeight();
10078
10079 wxPyEndAllowThreads(__tstate);
10080 if (PyErr_Occurred()) SWIG_fail;
10081 }
10082 resultobj = SWIG_FromInt((int)result);
10083 return resultobj;
10084 fail:
10085 return NULL;
10086}
10087
10088
10089static PyObject *_wrap_Image_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10090 PyObject *resultobj;
10091 wxImage *arg1 = (wxImage *) 0 ;
10092 wxSize result;
10093 PyObject * obj0 = 0 ;
10094 char *kwnames[] = {
10095 (char *) "self", NULL
10096 };
10097
10098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetSize",kwnames,&obj0)) goto fail;
10099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10101 {
10102 PyThreadState* __tstate = wxPyBeginAllowThreads();
10103 result = wxImage_GetSize(arg1);
10104
10105 wxPyEndAllowThreads(__tstate);
10106 if (PyErr_Occurred()) SWIG_fail;
10107 }
10108 {
10109 wxSize * resultptr;
10110 resultptr = new wxSize((wxSize &) result);
10111 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
10112 }
10113 return resultobj;
10114 fail:
10115 return NULL;
10116}
10117
10118
10119static PyObject *_wrap_Image_GetSubImage(PyObject *self, PyObject *args, PyObject *kwargs) {
10120 PyObject *resultobj;
10121 wxImage *arg1 = (wxImage *) 0 ;
10122 wxRect *arg2 = 0 ;
10123 SwigValueWrapper< wxImage > result;
10124 wxRect temp2 ;
10125 PyObject * obj0 = 0 ;
10126 PyObject * obj1 = 0 ;
10127 char *kwnames[] = {
10128 (char *) "self",(char *) "rect", NULL
10129 };
10130
10131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetSubImage",kwnames,&obj0,&obj1)) goto fail;
10132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10134 {
10135 arg2 = &temp2;
10136 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10137 }
10138 {
10139 PyThreadState* __tstate = wxPyBeginAllowThreads();
10140 result = (arg1)->GetSubImage((wxRect const &)*arg2);
10141
10142 wxPyEndAllowThreads(__tstate);
10143 if (PyErr_Occurred()) SWIG_fail;
10144 }
10145 {
10146 wxImage * resultptr;
10147 resultptr = new wxImage((wxImage &) result);
10148 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
10149 }
10150 return resultobj;
10151 fail:
10152 return NULL;
10153}
10154
10155
10156static PyObject *_wrap_Image_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
10157 PyObject *resultobj;
10158 wxImage *arg1 = (wxImage *) 0 ;
10159 SwigValueWrapper< wxImage > result;
10160 PyObject * obj0 = 0 ;
10161 char *kwnames[] = {
10162 (char *) "self", NULL
10163 };
10164
10165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Copy",kwnames,&obj0)) goto fail;
10166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10168 {
10169 PyThreadState* __tstate = wxPyBeginAllowThreads();
10170 result = (arg1)->Copy();
10171
10172 wxPyEndAllowThreads(__tstate);
10173 if (PyErr_Occurred()) SWIG_fail;
10174 }
10175 {
10176 wxImage * resultptr;
10177 resultptr = new wxImage((wxImage &) result);
10178 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
10179 }
10180 return resultobj;
10181 fail:
10182 return NULL;
10183}
10184
10185
10186static PyObject *_wrap_Image_Paste(PyObject *self, PyObject *args, PyObject *kwargs) {
10187 PyObject *resultobj;
10188 wxImage *arg1 = (wxImage *) 0 ;
10189 wxImage *arg2 = 0 ;
10190 int arg3 ;
10191 int arg4 ;
10192 PyObject * obj0 = 0 ;
10193 PyObject * obj1 = 0 ;
10194 PyObject * obj2 = 0 ;
10195 PyObject * obj3 = 0 ;
10196 char *kwnames[] = {
10197 (char *) "self",(char *) "image",(char *) "x",(char *) "y", NULL
10198 };
10199
10200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_Paste",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10203 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage,
10204 SWIG_POINTER_EXCEPTION | 0)) == -1)
10205 SWIG_fail;
10206 if (arg2 == NULL) {
10207 PyErr_SetString(PyExc_TypeError,"null reference");
10208 SWIG_fail;
10209 }
10210 arg3 = (int) SWIG_AsInt(obj2);
10211 if (PyErr_Occurred()) SWIG_fail;
10212 arg4 = (int) SWIG_AsInt(obj3);
10213 if (PyErr_Occurred()) SWIG_fail;
10214 {
10215 PyThreadState* __tstate = wxPyBeginAllowThreads();
10216 (arg1)->Paste((wxImage const &)*arg2,arg3,arg4);
10217
10218 wxPyEndAllowThreads(__tstate);
10219 if (PyErr_Occurred()) SWIG_fail;
10220 }
10221 Py_INCREF(Py_None); resultobj = Py_None;
10222 return resultobj;
10223 fail:
10224 return NULL;
10225}
10226
10227
10228static PyObject *_wrap_Image_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
10229 PyObject *resultobj;
10230 wxImage *arg1 = (wxImage *) 0 ;
10231 PyObject *result;
10232 PyObject * obj0 = 0 ;
10233 char *kwnames[] = {
10234 (char *) "self", NULL
10235 };
10236
10237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetData",kwnames,&obj0)) goto fail;
10238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10240 {
10241 PyThreadState* __tstate = wxPyBeginAllowThreads();
10242 result = (PyObject *)wxImage_GetData(arg1);
10243
10244 wxPyEndAllowThreads(__tstate);
10245 if (PyErr_Occurred()) SWIG_fail;
10246 }
10247 resultobj = result;
10248 return resultobj;
10249 fail:
10250 return NULL;
10251}
10252
10253
10254static PyObject *_wrap_Image_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
10255 PyObject *resultobj;
10256 wxImage *arg1 = (wxImage *) 0 ;
10257 PyObject *arg2 = (PyObject *) 0 ;
10258 PyObject * obj0 = 0 ;
10259 PyObject * obj1 = 0 ;
10260 char *kwnames[] = {
10261 (char *) "self",(char *) "data", NULL
10262 };
10263
10264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetData",kwnames,&obj0,&obj1)) goto fail;
10265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10267 arg2 = obj1;
10268 {
10269 PyThreadState* __tstate = wxPyBeginAllowThreads();
10270 wxImage_SetData(arg1,arg2);
10271
10272 wxPyEndAllowThreads(__tstate);
10273 if (PyErr_Occurred()) SWIG_fail;
10274 }
10275 Py_INCREF(Py_None); resultobj = Py_None;
10276 return resultobj;
10277 fail:
10278 return NULL;
10279}
10280
10281
10282static PyObject *_wrap_Image_GetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
10283 PyObject *resultobj;
10284 wxImage *arg1 = (wxImage *) 0 ;
10285 PyObject *result;
10286 PyObject * obj0 = 0 ;
10287 char *kwnames[] = {
10288 (char *) "self", NULL
10289 };
10290
10291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetDataBuffer",kwnames,&obj0)) goto fail;
10292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10294 {
10295 PyThreadState* __tstate = wxPyBeginAllowThreads();
10296 result = (PyObject *)wxImage_GetDataBuffer(arg1);
10297
10298 wxPyEndAllowThreads(__tstate);
10299 if (PyErr_Occurred()) SWIG_fail;
10300 }
10301 resultobj = result;
10302 return resultobj;
10303 fail:
10304 return NULL;
10305}
10306
10307
10308static PyObject *_wrap_Image_SetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
10309 PyObject *resultobj;
10310 wxImage *arg1 = (wxImage *) 0 ;
10311 PyObject *arg2 = (PyObject *) 0 ;
10312 PyObject * obj0 = 0 ;
10313 PyObject * obj1 = 0 ;
10314 char *kwnames[] = {
10315 (char *) "self",(char *) "data", NULL
10316 };
10317
10318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetDataBuffer",kwnames,&obj0,&obj1)) goto fail;
10319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10321 arg2 = obj1;
10322 {
10323 PyThreadState* __tstate = wxPyBeginAllowThreads();
10324 wxImage_SetDataBuffer(arg1,arg2);
10325
10326 wxPyEndAllowThreads(__tstate);
10327 if (PyErr_Occurred()) SWIG_fail;
10328 }
10329 Py_INCREF(Py_None); resultobj = Py_None;
10330 return resultobj;
10331 fail:
10332 return NULL;
10333}
10334
10335
10336static PyObject *_wrap_Image_GetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) {
10337 PyObject *resultobj;
10338 wxImage *arg1 = (wxImage *) 0 ;
10339 PyObject *result;
10340 PyObject * obj0 = 0 ;
10341 char *kwnames[] = {
10342 (char *) "self", NULL
10343 };
10344
10345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaData",kwnames,&obj0)) goto fail;
10346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10348 {
10349 PyThreadState* __tstate = wxPyBeginAllowThreads();
10350 result = (PyObject *)wxImage_GetAlphaData(arg1);
10351
10352 wxPyEndAllowThreads(__tstate);
10353 if (PyErr_Occurred()) SWIG_fail;
10354 }
10355 resultobj = result;
10356 return resultobj;
10357 fail:
10358 return NULL;
10359}
10360
10361
10362static PyObject *_wrap_Image_SetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) {
10363 PyObject *resultobj;
10364 wxImage *arg1 = (wxImage *) 0 ;
10365 PyObject *arg2 = (PyObject *) 0 ;
10366 PyObject * obj0 = 0 ;
10367 PyObject * obj1 = 0 ;
10368 char *kwnames[] = {
10369 (char *) "self",(char *) "data", NULL
10370 };
10371
10372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaData",kwnames,&obj0,&obj1)) goto fail;
10373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10375 arg2 = obj1;
10376 {
10377 PyThreadState* __tstate = wxPyBeginAllowThreads();
10378 wxImage_SetAlphaData(arg1,arg2);
10379
10380 wxPyEndAllowThreads(__tstate);
10381 if (PyErr_Occurred()) SWIG_fail;
10382 }
10383 Py_INCREF(Py_None); resultobj = Py_None;
10384 return resultobj;
10385 fail:
10386 return NULL;
10387}
10388
10389
10390static PyObject *_wrap_Image_GetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
10391 PyObject *resultobj;
10392 wxImage *arg1 = (wxImage *) 0 ;
10393 PyObject *result;
10394 PyObject * obj0 = 0 ;
10395 char *kwnames[] = {
10396 (char *) "self", NULL
10397 };
10398
10399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaBuffer",kwnames,&obj0)) goto fail;
10400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10402 {
10403 PyThreadState* __tstate = wxPyBeginAllowThreads();
10404 result = (PyObject *)wxImage_GetAlphaBuffer(arg1);
10405
10406 wxPyEndAllowThreads(__tstate);
10407 if (PyErr_Occurred()) SWIG_fail;
10408 }
10409 resultobj = result;
10410 return resultobj;
10411 fail:
10412 return NULL;
10413}
10414
10415
10416static PyObject *_wrap_Image_SetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
10417 PyObject *resultobj;
10418 wxImage *arg1 = (wxImage *) 0 ;
10419 PyObject *arg2 = (PyObject *) 0 ;
10420 PyObject * obj0 = 0 ;
10421 PyObject * obj1 = 0 ;
10422 char *kwnames[] = {
10423 (char *) "self",(char *) "data", NULL
10424 };
10425
10426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaBuffer",kwnames,&obj0,&obj1)) goto fail;
10427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10429 arg2 = obj1;
10430 {
10431 PyThreadState* __tstate = wxPyBeginAllowThreads();
10432 wxImage_SetAlphaBuffer(arg1,arg2);
10433
10434 wxPyEndAllowThreads(__tstate);
10435 if (PyErr_Occurred()) SWIG_fail;
10436 }
10437 Py_INCREF(Py_None); resultobj = Py_None;
10438 return resultobj;
10439 fail:
10440 return NULL;
10441}
10442
10443
10444static PyObject *_wrap_Image_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
10445 PyObject *resultobj;
10446 wxImage *arg1 = (wxImage *) 0 ;
10447 unsigned char arg2 ;
10448 unsigned char arg3 ;
10449 unsigned char arg4 ;
10450 PyObject * obj0 = 0 ;
10451 PyObject * obj1 = 0 ;
10452 PyObject * obj2 = 0 ;
10453 PyObject * obj3 = 0 ;
10454 char *kwnames[] = {
10455 (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL
10456 };
10457
10458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetMaskColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10461 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
10462 if (PyErr_Occurred()) SWIG_fail;
10463 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
10464 if (PyErr_Occurred()) SWIG_fail;
10465 arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3);
10466 if (PyErr_Occurred()) SWIG_fail;
10467 {
10468 PyThreadState* __tstate = wxPyBeginAllowThreads();
10469 (arg1)->SetMaskColour(arg2,arg3,arg4);
10470
10471 wxPyEndAllowThreads(__tstate);
10472 if (PyErr_Occurred()) SWIG_fail;
10473 }
10474 Py_INCREF(Py_None); resultobj = Py_None;
10475 return resultobj;
10476 fail:
10477 return NULL;
10478}
10479
10480
10481static PyObject *_wrap_Image_GetMaskRed(PyObject *self, PyObject *args, PyObject *kwargs) {
10482 PyObject *resultobj;
10483 wxImage *arg1 = (wxImage *) 0 ;
10484 unsigned char result;
10485 PyObject * obj0 = 0 ;
10486 char *kwnames[] = {
10487 (char *) "self", NULL
10488 };
10489
10490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskRed",kwnames,&obj0)) goto fail;
10491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10493 {
10494 PyThreadState* __tstate = wxPyBeginAllowThreads();
10495 result = (unsigned char)(arg1)->GetMaskRed();
10496
10497 wxPyEndAllowThreads(__tstate);
10498 if (PyErr_Occurred()) SWIG_fail;
10499 }
10500 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
10501 return resultobj;
10502 fail:
10503 return NULL;
10504}
10505
10506
10507static PyObject *_wrap_Image_GetMaskGreen(PyObject *self, PyObject *args, PyObject *kwargs) {
10508 PyObject *resultobj;
10509 wxImage *arg1 = (wxImage *) 0 ;
10510 unsigned char result;
10511 PyObject * obj0 = 0 ;
10512 char *kwnames[] = {
10513 (char *) "self", NULL
10514 };
10515
10516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskGreen",kwnames,&obj0)) goto fail;
10517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10519 {
10520 PyThreadState* __tstate = wxPyBeginAllowThreads();
10521 result = (unsigned char)(arg1)->GetMaskGreen();
10522
10523 wxPyEndAllowThreads(__tstate);
10524 if (PyErr_Occurred()) SWIG_fail;
10525 }
10526 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
10527 return resultobj;
10528 fail:
10529 return NULL;
10530}
10531
10532
10533static PyObject *_wrap_Image_GetMaskBlue(PyObject *self, PyObject *args, PyObject *kwargs) {
10534 PyObject *resultobj;
10535 wxImage *arg1 = (wxImage *) 0 ;
10536 unsigned char result;
10537 PyObject * obj0 = 0 ;
10538 char *kwnames[] = {
10539 (char *) "self", NULL
10540 };
10541
10542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskBlue",kwnames,&obj0)) goto fail;
10543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10545 {
10546 PyThreadState* __tstate = wxPyBeginAllowThreads();
10547 result = (unsigned char)(arg1)->GetMaskBlue();
10548
10549 wxPyEndAllowThreads(__tstate);
10550 if (PyErr_Occurred()) SWIG_fail;
10551 }
10552 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
10553 return resultobj;
10554 fail:
10555 return NULL;
10556}
10557
10558
10559static PyObject *_wrap_Image_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
10560 PyObject *resultobj;
10561 wxImage *arg1 = (wxImage *) 0 ;
10562 bool arg2 = (bool) True ;
10563 PyObject * obj0 = 0 ;
10564 PyObject * obj1 = 0 ;
10565 char *kwnames[] = {
10566 (char *) "self",(char *) "mask", NULL
10567 };
10568
10569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_SetMask",kwnames,&obj0,&obj1)) goto fail;
10570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10572 if (obj1) {
10573 arg2 = (bool) SWIG_AsBool(obj1);
10574 if (PyErr_Occurred()) SWIG_fail;
10575 }
10576 {
10577 PyThreadState* __tstate = wxPyBeginAllowThreads();
10578 (arg1)->SetMask(arg2);
10579
10580 wxPyEndAllowThreads(__tstate);
10581 if (PyErr_Occurred()) SWIG_fail;
10582 }
10583 Py_INCREF(Py_None); resultobj = Py_None;
10584 return resultobj;
10585 fail:
10586 return NULL;
10587}
10588
10589
10590static PyObject *_wrap_Image_HasMask(PyObject *self, PyObject *args, PyObject *kwargs) {
10591 PyObject *resultobj;
10592 wxImage *arg1 = (wxImage *) 0 ;
10593 bool result;
10594 PyObject * obj0 = 0 ;
10595 char *kwnames[] = {
10596 (char *) "self", NULL
10597 };
10598
10599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasMask",kwnames,&obj0)) goto fail;
10600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10602 {
10603 PyThreadState* __tstate = wxPyBeginAllowThreads();
10604 result = (bool)(arg1)->HasMask();
10605
10606 wxPyEndAllowThreads(__tstate);
10607 if (PyErr_Occurred()) SWIG_fail;
10608 }
10609 {
10610 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10611 }
10612 return resultobj;
10613 fail:
10614 return NULL;
10615}
10616
10617
10618static PyObject *_wrap_Image_Rotate(PyObject *self, PyObject *args, PyObject *kwargs) {
10619 PyObject *resultobj;
10620 wxImage *arg1 = (wxImage *) 0 ;
10621 double arg2 ;
10622 wxPoint *arg3 = 0 ;
10623 bool arg4 = (bool) True ;
10624 wxPoint *arg5 = (wxPoint *) NULL ;
10625 SwigValueWrapper< wxImage > result;
10626 wxPoint temp3 ;
10627 PyObject * obj0 = 0 ;
10628 PyObject * obj1 = 0 ;
10629 PyObject * obj2 = 0 ;
10630 PyObject * obj3 = 0 ;
10631 PyObject * obj4 = 0 ;
10632 char *kwnames[] = {
10633 (char *) "self",(char *) "angle",(char *) "centre_of_rotation",(char *) "interpolating",(char *) "offset_after_rotation", NULL
10634 };
10635
10636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Image_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10639 arg2 = (double) SWIG_AsDouble(obj1);
10640 if (PyErr_Occurred()) SWIG_fail;
10641 {
10642 arg3 = &temp3;
10643 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10644 }
10645 if (obj3) {
10646 arg4 = (bool) SWIG_AsBool(obj3);
10647 if (PyErr_Occurred()) SWIG_fail;
10648 }
10649 if (obj4) {
10650 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPoint,
10651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10652 }
10653 {
10654 PyThreadState* __tstate = wxPyBeginAllowThreads();
10655 result = ((wxImage const *)arg1)->Rotate(arg2,(wxPoint const &)*arg3,arg4,arg5);
10656
10657 wxPyEndAllowThreads(__tstate);
10658 if (PyErr_Occurred()) SWIG_fail;
10659 }
10660 {
10661 wxImage * resultptr;
10662 resultptr = new wxImage((wxImage &) result);
10663 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
10664 }
10665 return resultobj;
10666 fail:
10667 return NULL;
10668}
10669
10670
10671static PyObject *_wrap_Image_Rotate90(PyObject *self, PyObject *args, PyObject *kwargs) {
10672 PyObject *resultobj;
10673 wxImage *arg1 = (wxImage *) 0 ;
10674 bool arg2 = (bool) True ;
10675 SwigValueWrapper< wxImage > result;
10676 PyObject * obj0 = 0 ;
10677 PyObject * obj1 = 0 ;
10678 char *kwnames[] = {
10679 (char *) "self",(char *) "clockwise", NULL
10680 };
10681
10682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Rotate90",kwnames,&obj0,&obj1)) goto fail;
10683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10685 if (obj1) {
10686 arg2 = (bool) SWIG_AsBool(obj1);
10687 if (PyErr_Occurred()) SWIG_fail;
10688 }
10689 {
10690 PyThreadState* __tstate = wxPyBeginAllowThreads();
10691 result = (arg1)->Rotate90(arg2);
10692
10693 wxPyEndAllowThreads(__tstate);
10694 if (PyErr_Occurred()) SWIG_fail;
10695 }
10696 {
10697 wxImage * resultptr;
10698 resultptr = new wxImage((wxImage &) result);
10699 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
10700 }
10701 return resultobj;
10702 fail:
10703 return NULL;
10704}
10705
10706
10707static PyObject *_wrap_Image_Mirror(PyObject *self, PyObject *args, PyObject *kwargs) {
10708 PyObject *resultobj;
10709 wxImage *arg1 = (wxImage *) 0 ;
10710 bool arg2 = (bool) True ;
10711 SwigValueWrapper< wxImage > result;
10712 PyObject * obj0 = 0 ;
10713 PyObject * obj1 = 0 ;
10714 char *kwnames[] = {
10715 (char *) "self",(char *) "horizontally", NULL
10716 };
10717
10718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Mirror",kwnames,&obj0,&obj1)) goto fail;
10719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10721 if (obj1) {
10722 arg2 = (bool) SWIG_AsBool(obj1);
10723 if (PyErr_Occurred()) SWIG_fail;
10724 }
10725 {
10726 PyThreadState* __tstate = wxPyBeginAllowThreads();
10727 result = (arg1)->Mirror(arg2);
10728
10729 wxPyEndAllowThreads(__tstate);
10730 if (PyErr_Occurred()) SWIG_fail;
10731 }
10732 {
10733 wxImage * resultptr;
10734 resultptr = new wxImage((wxImage &) result);
10735 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
10736 }
10737 return resultobj;
10738 fail:
10739 return NULL;
10740}
10741
10742
10743static PyObject *_wrap_Image_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
10744 PyObject *resultobj;
10745 wxImage *arg1 = (wxImage *) 0 ;
10746 unsigned char arg2 ;
10747 unsigned char arg3 ;
10748 unsigned char arg4 ;
10749 unsigned char arg5 ;
10750 unsigned char arg6 ;
10751 unsigned char arg7 ;
10752 PyObject * obj0 = 0 ;
10753 PyObject * obj1 = 0 ;
10754 PyObject * obj2 = 0 ;
10755 PyObject * obj3 = 0 ;
10756 PyObject * obj4 = 0 ;
10757 PyObject * obj5 = 0 ;
10758 PyObject * obj6 = 0 ;
10759 char *kwnames[] = {
10760 (char *) "self",(char *) "r1",(char *) "g1",(char *) "b1",(char *) "r2",(char *) "g2",(char *) "b2", NULL
10761 };
10762
10763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:Image_Replace",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10766 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
10767 if (PyErr_Occurred()) SWIG_fail;
10768 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
10769 if (PyErr_Occurred()) SWIG_fail;
10770 arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3);
10771 if (PyErr_Occurred()) SWIG_fail;
10772 arg5 = (unsigned char) SWIG_AsUnsignedChar(obj4);
10773 if (PyErr_Occurred()) SWIG_fail;
10774 arg6 = (unsigned char) SWIG_AsUnsignedChar(obj5);
10775 if (PyErr_Occurred()) SWIG_fail;
10776 arg7 = (unsigned char) SWIG_AsUnsignedChar(obj6);
10777 if (PyErr_Occurred()) SWIG_fail;
10778 {
10779 PyThreadState* __tstate = wxPyBeginAllowThreads();
10780 (arg1)->Replace(arg2,arg3,arg4,arg5,arg6,arg7);
10781
10782 wxPyEndAllowThreads(__tstate);
10783 if (PyErr_Occurred()) SWIG_fail;
10784 }
10785 Py_INCREF(Py_None); resultobj = Py_None;
10786 return resultobj;
10787 fail:
10788 return NULL;
10789}
10790
10791
10792static PyObject *_wrap_Image_ConvertToMono(PyObject *self, PyObject *args, PyObject *kwargs) {
10793 PyObject *resultobj;
10794 wxImage *arg1 = (wxImage *) 0 ;
10795 unsigned char arg2 ;
10796 unsigned char arg3 ;
10797 unsigned char arg4 ;
10798 SwigValueWrapper< wxImage > result;
10799 PyObject * obj0 = 0 ;
10800 PyObject * obj1 = 0 ;
10801 PyObject * obj2 = 0 ;
10802 PyObject * obj3 = 0 ;
10803 char *kwnames[] = {
10804 (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL
10805 };
10806
10807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMono",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10810 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
10811 if (PyErr_Occurred()) SWIG_fail;
10812 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
10813 if (PyErr_Occurred()) SWIG_fail;
10814 arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3);
10815 if (PyErr_Occurred()) SWIG_fail;
10816 {
10817 PyThreadState* __tstate = wxPyBeginAllowThreads();
10818 result = ((wxImage const *)arg1)->ConvertToMono(arg2,arg3,arg4);
10819
10820 wxPyEndAllowThreads(__tstate);
10821 if (PyErr_Occurred()) SWIG_fail;
10822 }
10823 {
10824 wxImage * resultptr;
10825 resultptr = new wxImage((wxImage &) result);
10826 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
10827 }
10828 return resultobj;
10829 fail:
10830 return NULL;
10831}
10832
10833
10834static PyObject *_wrap_Image_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
10835 PyObject *resultobj;
10836 wxImage *arg1 = (wxImage *) 0 ;
10837 wxString *arg2 = 0 ;
10838 wxString *arg3 = 0 ;
10839 bool temp2 = False ;
10840 bool temp3 = False ;
10841 PyObject * obj0 = 0 ;
10842 PyObject * obj1 = 0 ;
10843 PyObject * obj2 = 0 ;
10844 char *kwnames[] = {
10845 (char *) "self",(char *) "name",(char *) "value", NULL
10846 };
10847
10848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOption",kwnames,&obj0,&obj1,&obj2)) goto fail;
10849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10851 {
10852 arg2 = wxString_in_helper(obj1);
10853 if (arg2 == NULL) SWIG_fail;
10854 temp2 = True;
10855 }
10856 {
10857 arg3 = wxString_in_helper(obj2);
10858 if (arg3 == NULL) SWIG_fail;
10859 temp3 = True;
10860 }
10861 {
10862 PyThreadState* __tstate = wxPyBeginAllowThreads();
10863 (arg1)->SetOption((wxString const &)*arg2,(wxString const &)*arg3);
10864
10865 wxPyEndAllowThreads(__tstate);
10866 if (PyErr_Occurred()) SWIG_fail;
10867 }
10868 Py_INCREF(Py_None); resultobj = Py_None;
10869 {
10870 if (temp2)
10871 delete arg2;
10872 }
10873 {
10874 if (temp3)
10875 delete arg3;
10876 }
10877 return resultobj;
10878 fail:
10879 {
10880 if (temp2)
10881 delete arg2;
10882 }
10883 {
10884 if (temp3)
10885 delete arg3;
10886 }
10887 return NULL;
10888}
10889
10890
10891static PyObject *_wrap_Image_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
10892 PyObject *resultobj;
10893 wxImage *arg1 = (wxImage *) 0 ;
10894 wxString *arg2 = 0 ;
10895 int arg3 ;
10896 bool temp2 = False ;
10897 PyObject * obj0 = 0 ;
10898 PyObject * obj1 = 0 ;
10899 PyObject * obj2 = 0 ;
10900 char *kwnames[] = {
10901 (char *) "self",(char *) "name",(char *) "value", NULL
10902 };
10903
10904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOptionInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
10905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10907 {
10908 arg2 = wxString_in_helper(obj1);
10909 if (arg2 == NULL) SWIG_fail;
10910 temp2 = True;
10911 }
10912 arg3 = (int) SWIG_AsInt(obj2);
10913 if (PyErr_Occurred()) SWIG_fail;
10914 {
10915 PyThreadState* __tstate = wxPyBeginAllowThreads();
10916 (arg1)->SetOption((wxString const &)*arg2,arg3);
10917
10918 wxPyEndAllowThreads(__tstate);
10919 if (PyErr_Occurred()) SWIG_fail;
10920 }
10921 Py_INCREF(Py_None); resultobj = Py_None;
10922 {
10923 if (temp2)
10924 delete arg2;
10925 }
10926 return resultobj;
10927 fail:
10928 {
10929 if (temp2)
10930 delete arg2;
10931 }
10932 return NULL;
10933}
10934
10935
10936static PyObject *_wrap_Image_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
10937 PyObject *resultobj;
10938 wxImage *arg1 = (wxImage *) 0 ;
10939 wxString *arg2 = 0 ;
10940 wxString result;
10941 bool temp2 = False ;
10942 PyObject * obj0 = 0 ;
10943 PyObject * obj1 = 0 ;
10944 char *kwnames[] = {
10945 (char *) "self",(char *) "name", NULL
10946 };
10947
10948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOption",kwnames,&obj0,&obj1)) goto fail;
10949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10951 {
10952 arg2 = wxString_in_helper(obj1);
10953 if (arg2 == NULL) SWIG_fail;
10954 temp2 = True;
10955 }
10956 {
10957 PyThreadState* __tstate = wxPyBeginAllowThreads();
10958 result = ((wxImage const *)arg1)->GetOption((wxString const &)*arg2);
10959
10960 wxPyEndAllowThreads(__tstate);
10961 if (PyErr_Occurred()) SWIG_fail;
10962 }
10963 {
10964#if wxUSE_UNICODE
10965 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10966#else
10967 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10968#endif
10969 }
10970 {
10971 if (temp2)
10972 delete arg2;
10973 }
10974 return resultobj;
10975 fail:
10976 {
10977 if (temp2)
10978 delete arg2;
10979 }
10980 return NULL;
10981}
10982
10983
10984static PyObject *_wrap_Image_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
10985 PyObject *resultobj;
10986 wxImage *arg1 = (wxImage *) 0 ;
10987 wxString *arg2 = 0 ;
10988 int result;
10989 bool temp2 = False ;
10990 PyObject * obj0 = 0 ;
10991 PyObject * obj1 = 0 ;
10992 char *kwnames[] = {
10993 (char *) "self",(char *) "name", NULL
10994 };
10995
10996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOptionInt",kwnames,&obj0,&obj1)) goto fail;
10997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10999 {
11000 arg2 = wxString_in_helper(obj1);
11001 if (arg2 == NULL) SWIG_fail;
11002 temp2 = True;
11003 }
11004 {
11005 PyThreadState* __tstate = wxPyBeginAllowThreads();
11006 result = (int)((wxImage const *)arg1)->GetOptionInt((wxString const &)*arg2);
11007
11008 wxPyEndAllowThreads(__tstate);
11009 if (PyErr_Occurred()) SWIG_fail;
11010 }
11011 resultobj = SWIG_FromInt((int)result);
11012 {
11013 if (temp2)
11014 delete arg2;
11015 }
11016 return resultobj;
11017 fail:
11018 {
11019 if (temp2)
11020 delete arg2;
11021 }
11022 return NULL;
11023}
11024
11025
11026static PyObject *_wrap_Image_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) {
11027 PyObject *resultobj;
11028 wxImage *arg1 = (wxImage *) 0 ;
11029 wxString *arg2 = 0 ;
11030 bool result;
11031 bool temp2 = False ;
11032 PyObject * obj0 = 0 ;
11033 PyObject * obj1 = 0 ;
11034 char *kwnames[] = {
11035 (char *) "self",(char *) "name", NULL
11036 };
11037
11038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_HasOption",kwnames,&obj0,&obj1)) goto fail;
11039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11041 {
11042 arg2 = wxString_in_helper(obj1);
11043 if (arg2 == NULL) SWIG_fail;
11044 temp2 = True;
11045 }
11046 {
11047 PyThreadState* __tstate = wxPyBeginAllowThreads();
11048 result = (bool)((wxImage const *)arg1)->HasOption((wxString const &)*arg2);
11049
11050 wxPyEndAllowThreads(__tstate);
11051 if (PyErr_Occurred()) SWIG_fail;
11052 }
11053 {
11054 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11055 }
11056 {
11057 if (temp2)
11058 delete arg2;
11059 }
11060 return resultobj;
11061 fail:
11062 {
11063 if (temp2)
11064 delete arg2;
11065 }
11066 return NULL;
11067}
11068
11069
11070static PyObject *_wrap_Image_CountColours(PyObject *self, PyObject *args, PyObject *kwargs) {
11071 PyObject *resultobj;
11072 wxImage *arg1 = (wxImage *) 0 ;
11073 unsigned long arg2 = (unsigned long) (unsigned long) -1 ;
11074 unsigned long result;
11075 PyObject * obj0 = 0 ;
11076 PyObject * obj1 = 0 ;
11077 char *kwnames[] = {
11078 (char *) "self",(char *) "stopafter", NULL
11079 };
11080
11081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_CountColours",kwnames,&obj0,&obj1)) goto fail;
11082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11084 if (obj1) {
11085 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
11086 if (PyErr_Occurred()) SWIG_fail;
11087 }
11088 {
11089 PyThreadState* __tstate = wxPyBeginAllowThreads();
11090 result = (unsigned long)(arg1)->CountColours(arg2);
11091
11092 wxPyEndAllowThreads(__tstate);
11093 if (PyErr_Occurred()) SWIG_fail;
11094 }
11095 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
11096 return resultobj;
11097 fail:
11098 return NULL;
11099}
11100
11101
11102static PyObject *_wrap_Image_ComputeHistogram(PyObject *self, PyObject *args, PyObject *kwargs) {
11103 PyObject *resultobj;
11104 wxImage *arg1 = (wxImage *) 0 ;
11105 wxImageHistogram *arg2 = 0 ;
11106 unsigned long result;
11107 PyObject * obj0 = 0 ;
11108 PyObject * obj1 = 0 ;
11109 char *kwnames[] = {
11110 (char *) "self",(char *) "h", NULL
11111 };
11112
11113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_ComputeHistogram",kwnames,&obj0,&obj1)) goto fail;
11114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11116 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageHistogram,
11117 SWIG_POINTER_EXCEPTION | 0)) == -1)
11118 SWIG_fail;
11119 if (arg2 == NULL) {
11120 PyErr_SetString(PyExc_TypeError,"null reference");
11121 SWIG_fail;
11122 }
11123 {
11124 PyThreadState* __tstate = wxPyBeginAllowThreads();
11125 result = (unsigned long)(arg1)->ComputeHistogram(*arg2);
11126
11127 wxPyEndAllowThreads(__tstate);
11128 if (PyErr_Occurred()) SWIG_fail;
11129 }
11130 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
11131 return resultobj;
11132 fail:
11133 return NULL;
11134}
11135
11136
11137static PyObject *_wrap_Image_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11138 PyObject *resultobj;
11139 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
11140 PyObject * obj0 = 0 ;
11141 char *kwnames[] = {
11142 (char *) "handler", NULL
11143 };
11144
11145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_AddHandler",kwnames,&obj0)) goto fail;
11146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
11147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11148 {
11149 PyThreadState* __tstate = wxPyBeginAllowThreads();
11150 wxImage::AddHandler(arg1);
11151
11152 wxPyEndAllowThreads(__tstate);
11153 if (PyErr_Occurred()) SWIG_fail;
11154 }
11155 Py_INCREF(Py_None); resultobj = Py_None;
11156 return resultobj;
11157 fail:
11158 return NULL;
11159}
11160
11161
11162static PyObject *_wrap_Image_InsertHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11163 PyObject *resultobj;
11164 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
11165 PyObject * obj0 = 0 ;
11166 char *kwnames[] = {
11167 (char *) "handler", NULL
11168 };
11169
11170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InsertHandler",kwnames,&obj0)) goto fail;
11171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
11172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11173 {
11174 PyThreadState* __tstate = wxPyBeginAllowThreads();
11175 wxImage::InsertHandler(arg1);
11176
11177 wxPyEndAllowThreads(__tstate);
11178 if (PyErr_Occurred()) SWIG_fail;
11179 }
11180 Py_INCREF(Py_None); resultobj = Py_None;
11181 return resultobj;
11182 fail:
11183 return NULL;
11184}
11185
11186
11187static PyObject *_wrap_Image_RemoveHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11188 PyObject *resultobj;
11189 wxString *arg1 = 0 ;
11190 bool result;
11191 bool temp1 = False ;
11192 PyObject * obj0 = 0 ;
11193 char *kwnames[] = {
11194 (char *) "name", NULL
11195 };
11196
11197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RemoveHandler",kwnames,&obj0)) goto fail;
11198 {
11199 arg1 = wxString_in_helper(obj0);
11200 if (arg1 == NULL) SWIG_fail;
11201 temp1 = True;
11202 }
11203 {
11204 PyThreadState* __tstate = wxPyBeginAllowThreads();
11205 result = (bool)wxImage::RemoveHandler((wxString const &)*arg1);
11206
11207 wxPyEndAllowThreads(__tstate);
11208 if (PyErr_Occurred()) SWIG_fail;
11209 }
11210 {
11211 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11212 }
11213 {
11214 if (temp1)
11215 delete arg1;
11216 }
11217 return resultobj;
11218 fail:
11219 {
11220 if (temp1)
11221 delete arg1;
11222 }
11223 return NULL;
11224}
11225
11226
11227static PyObject *_wrap_Image_GetImageExtWildcard(PyObject *self, PyObject *args, PyObject *kwargs) {
11228 PyObject *resultobj;
11229 wxString result;
11230 char *kwnames[] = {
11231 NULL
11232 };
11233
11234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Image_GetImageExtWildcard",kwnames)) goto fail;
11235 {
11236 PyThreadState* __tstate = wxPyBeginAllowThreads();
11237 result = wxImage::GetImageExtWildcard();
11238
11239 wxPyEndAllowThreads(__tstate);
11240 if (PyErr_Occurred()) SWIG_fail;
11241 }
11242 {
11243#if wxUSE_UNICODE
11244 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11245#else
11246 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11247#endif
11248 }
11249 return resultobj;
11250 fail:
11251 return NULL;
11252}
11253
11254
11255static PyObject *_wrap_Image_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11256 PyObject *resultobj;
11257 wxImage *arg1 = (wxImage *) 0 ;
11258 wxBitmap result;
11259 PyObject * obj0 = 0 ;
11260 char *kwnames[] = {
11261 (char *) "self", NULL
11262 };
11263
11264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_ConvertToBitmap",kwnames,&obj0)) goto fail;
11265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11267 {
0439c23b 11268 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
11269 PyThreadState* __tstate = wxPyBeginAllowThreads();
11270 result = wxImage_ConvertToBitmap(arg1);
11271
11272 wxPyEndAllowThreads(__tstate);
0439c23b 11273 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
11274 }
11275 {
11276 wxBitmap * resultptr;
11277 resultptr = new wxBitmap((wxBitmap &) result);
11278 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
11279 }
11280 return resultobj;
11281 fail:
11282 return NULL;
11283}
11284
11285
11286static PyObject *_wrap_Image_ConvertToMonoBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11287 PyObject *resultobj;
11288 wxImage *arg1 = (wxImage *) 0 ;
11289 unsigned char arg2 ;
11290 unsigned char arg3 ;
11291 unsigned char arg4 ;
11292 wxBitmap result;
11293 PyObject * obj0 = 0 ;
11294 PyObject * obj1 = 0 ;
11295 PyObject * obj2 = 0 ;
11296 PyObject * obj3 = 0 ;
11297 char *kwnames[] = {
11298 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
11299 };
11300
11301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMonoBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11302 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11303 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11304 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
11305 if (PyErr_Occurred()) SWIG_fail;
11306 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
11307 if (PyErr_Occurred()) SWIG_fail;
11308 arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3);
11309 if (PyErr_Occurred()) SWIG_fail;
11310 {
0439c23b 11311 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
11312 PyThreadState* __tstate = wxPyBeginAllowThreads();
11313 result = wxImage_ConvertToMonoBitmap(arg1,arg2,arg3,arg4);
11314
11315 wxPyEndAllowThreads(__tstate);
0439c23b 11316 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
11317 }
11318 {
11319 wxBitmap * resultptr;
11320 resultptr = new wxBitmap((wxBitmap &) result);
11321 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
11322 }
11323 return resultobj;
11324 fail:
11325 return NULL;
11326}
11327
11328
11329static PyObject * Image_swigregister(PyObject *self, PyObject *args) {
11330 PyObject *obj;
11331 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11332 SWIG_TypeClientData(SWIGTYPE_p_wxImage, obj);
11333 Py_INCREF(obj);
11334 return Py_BuildValue((char *)"");
11335}
d55e5bfc
RD
11336static int _wrap_NullImage_set(PyObject *_val) {
11337 PyErr_SetString(PyExc_TypeError,"Variable NullImage is read-only.");
11338 return 1;
11339}
11340
11341
11342static PyObject *_wrap_NullImage_get() {
11343 PyObject *pyobj;
11344
11345 pyobj = SWIG_NewPointerObj((void *)(&wxNullImage), SWIGTYPE_p_wxImage, 0);
11346 return pyobj;
11347}
11348
11349
11350static int _wrap_IMAGE_OPTION_BMP_FORMAT_set(PyObject *_val) {
11351 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_BMP_FORMAT is read-only.");
11352 return 1;
11353}
11354
11355
11356static PyObject *_wrap_IMAGE_OPTION_BMP_FORMAT_get() {
11357 PyObject *pyobj;
11358
11359 {
11360#if wxUSE_UNICODE
11361 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len());
11362#else
11363 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len());
11364#endif
11365 }
11366 return pyobj;
11367}
11368
11369
11370static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set(PyObject *_val) {
11371 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_X is read-only.");
11372 return 1;
11373}
11374
11375
11376static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get() {
11377 PyObject *pyobj;
11378
11379 {
11380#if wxUSE_UNICODE
11381 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len());
11382#else
11383 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len());
11384#endif
11385 }
11386 return pyobj;
11387}
11388
11389
11390static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set(PyObject *_val) {
11391 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_Y is read-only.");
11392 return 1;
11393}
11394
11395
11396static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get() {
11397 PyObject *pyobj;
11398
11399 {
11400#if wxUSE_UNICODE
11401 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len());
11402#else
11403 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len());
11404#endif
11405 }
11406 return pyobj;
11407}
11408
11409
11410static int _wrap_IMAGE_OPTION_RESOLUTION_set(PyObject *_val) {
11411 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTION is read-only.");
11412 return 1;
11413}
11414
11415
11416static PyObject *_wrap_IMAGE_OPTION_RESOLUTION_get() {
11417 PyObject *pyobj;
11418
11419 {
11420#if wxUSE_UNICODE
11421 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len());
11422#else
11423 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len());
11424#endif
11425 }
11426 return pyobj;
11427}
11428
11429
11430static int _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set(PyObject *_val) {
11431 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONUNIT is read-only.");
11432 return 1;
11433}
11434
11435
11436static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get() {
11437 PyObject *pyobj;
11438
11439 {
11440#if wxUSE_UNICODE
11441 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len());
11442#else
11443 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len());
11444#endif
11445 }
11446 return pyobj;
11447}
11448
11449
11450static PyObject *_wrap_new_BMPHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11451 PyObject *resultobj;
11452 wxBMPHandler *result;
11453 char *kwnames[] = {
11454 NULL
11455 };
11456
11457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_BMPHandler",kwnames)) goto fail;
11458 {
11459 PyThreadState* __tstate = wxPyBeginAllowThreads();
11460 result = (wxBMPHandler *)new wxBMPHandler();
11461
11462 wxPyEndAllowThreads(__tstate);
11463 if (PyErr_Occurred()) SWIG_fail;
11464 }
11465 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBMPHandler, 1);
11466 return resultobj;
11467 fail:
11468 return NULL;
11469}
11470
11471
11472static PyObject * BMPHandler_swigregister(PyObject *self, PyObject *args) {
11473 PyObject *obj;
11474 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11475 SWIG_TypeClientData(SWIGTYPE_p_wxBMPHandler, obj);
11476 Py_INCREF(obj);
11477 return Py_BuildValue((char *)"");
11478}
11479static PyObject *_wrap_new_ICOHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11480 PyObject *resultobj;
11481 wxICOHandler *result;
11482 char *kwnames[] = {
11483 NULL
11484 };
11485
11486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ICOHandler",kwnames)) goto fail;
11487 {
11488 PyThreadState* __tstate = wxPyBeginAllowThreads();
11489 result = (wxICOHandler *)new wxICOHandler();
11490
11491 wxPyEndAllowThreads(__tstate);
11492 if (PyErr_Occurred()) SWIG_fail;
11493 }
11494 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxICOHandler, 1);
11495 return resultobj;
11496 fail:
11497 return NULL;
11498}
11499
11500
11501static PyObject * ICOHandler_swigregister(PyObject *self, PyObject *args) {
11502 PyObject *obj;
11503 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11504 SWIG_TypeClientData(SWIGTYPE_p_wxICOHandler, obj);
11505 Py_INCREF(obj);
11506 return Py_BuildValue((char *)"");
11507}
11508static PyObject *_wrap_new_CURHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11509 PyObject *resultobj;
11510 wxCURHandler *result;
11511 char *kwnames[] = {
11512 NULL
11513 };
11514
11515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_CURHandler",kwnames)) goto fail;
11516 {
11517 PyThreadState* __tstate = wxPyBeginAllowThreads();
11518 result = (wxCURHandler *)new wxCURHandler();
11519
11520 wxPyEndAllowThreads(__tstate);
11521 if (PyErr_Occurred()) SWIG_fail;
11522 }
11523 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCURHandler, 1);
11524 return resultobj;
11525 fail:
11526 return NULL;
11527}
11528
11529
11530static PyObject * CURHandler_swigregister(PyObject *self, PyObject *args) {
11531 PyObject *obj;
11532 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11533 SWIG_TypeClientData(SWIGTYPE_p_wxCURHandler, obj);
11534 Py_INCREF(obj);
11535 return Py_BuildValue((char *)"");
11536}
11537static PyObject *_wrap_new_ANIHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11538 PyObject *resultobj;
11539 wxANIHandler *result;
11540 char *kwnames[] = {
11541 NULL
11542 };
11543
11544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ANIHandler",kwnames)) goto fail;
11545 {
11546 PyThreadState* __tstate = wxPyBeginAllowThreads();
11547 result = (wxANIHandler *)new wxANIHandler();
11548
11549 wxPyEndAllowThreads(__tstate);
11550 if (PyErr_Occurred()) SWIG_fail;
11551 }
11552 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxANIHandler, 1);
11553 return resultobj;
11554 fail:
11555 return NULL;
11556}
11557
11558
11559static PyObject * ANIHandler_swigregister(PyObject *self, PyObject *args) {
11560 PyObject *obj;
11561 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11562 SWIG_TypeClientData(SWIGTYPE_p_wxANIHandler, obj);
11563 Py_INCREF(obj);
11564 return Py_BuildValue((char *)"");
11565}
11566static PyObject *_wrap_new_PNGHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11567 PyObject *resultobj;
11568 wxPNGHandler *result;
11569 char *kwnames[] = {
11570 NULL
11571 };
11572
11573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNGHandler",kwnames)) goto fail;
11574 {
11575 PyThreadState* __tstate = wxPyBeginAllowThreads();
11576 result = (wxPNGHandler *)new wxPNGHandler();
11577
11578 wxPyEndAllowThreads(__tstate);
11579 if (PyErr_Occurred()) SWIG_fail;
11580 }
11581 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNGHandler, 1);
11582 return resultobj;
11583 fail:
11584 return NULL;
11585}
11586
11587
11588static PyObject * PNGHandler_swigregister(PyObject *self, PyObject *args) {
11589 PyObject *obj;
11590 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11591 SWIG_TypeClientData(SWIGTYPE_p_wxPNGHandler, obj);
11592 Py_INCREF(obj);
11593 return Py_BuildValue((char *)"");
11594}
11595static PyObject *_wrap_new_GIFHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11596 PyObject *resultobj;
11597 wxGIFHandler *result;
11598 char *kwnames[] = {
11599 NULL
11600 };
11601
11602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GIFHandler",kwnames)) goto fail;
11603 {
11604 PyThreadState* __tstate = wxPyBeginAllowThreads();
11605 result = (wxGIFHandler *)new wxGIFHandler();
11606
11607 wxPyEndAllowThreads(__tstate);
11608 if (PyErr_Occurred()) SWIG_fail;
11609 }
11610 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGIFHandler, 1);
11611 return resultobj;
11612 fail:
11613 return NULL;
11614}
11615
11616
11617static PyObject * GIFHandler_swigregister(PyObject *self, PyObject *args) {
11618 PyObject *obj;
11619 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11620 SWIG_TypeClientData(SWIGTYPE_p_wxGIFHandler, obj);
11621 Py_INCREF(obj);
11622 return Py_BuildValue((char *)"");
11623}
11624static PyObject *_wrap_new_PCXHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11625 PyObject *resultobj;
11626 wxPCXHandler *result;
11627 char *kwnames[] = {
11628 NULL
11629 };
11630
11631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PCXHandler",kwnames)) goto fail;
11632 {
11633 PyThreadState* __tstate = wxPyBeginAllowThreads();
11634 result = (wxPCXHandler *)new wxPCXHandler();
11635
11636 wxPyEndAllowThreads(__tstate);
11637 if (PyErr_Occurred()) SWIG_fail;
11638 }
11639 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPCXHandler, 1);
11640 return resultobj;
11641 fail:
11642 return NULL;
11643}
11644
11645
11646static PyObject * PCXHandler_swigregister(PyObject *self, PyObject *args) {
11647 PyObject *obj;
11648 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11649 SWIG_TypeClientData(SWIGTYPE_p_wxPCXHandler, obj);
11650 Py_INCREF(obj);
11651 return Py_BuildValue((char *)"");
11652}
11653static PyObject *_wrap_new_JPEGHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11654 PyObject *resultobj;
11655 wxJPEGHandler *result;
11656 char *kwnames[] = {
11657 NULL
11658 };
11659
11660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_JPEGHandler",kwnames)) goto fail;
11661 {
11662 PyThreadState* __tstate = wxPyBeginAllowThreads();
11663 result = (wxJPEGHandler *)new wxJPEGHandler();
11664
11665 wxPyEndAllowThreads(__tstate);
11666 if (PyErr_Occurred()) SWIG_fail;
11667 }
11668 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJPEGHandler, 1);
11669 return resultobj;
11670 fail:
11671 return NULL;
11672}
11673
11674
11675static PyObject * JPEGHandler_swigregister(PyObject *self, PyObject *args) {
11676 PyObject *obj;
11677 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11678 SWIG_TypeClientData(SWIGTYPE_p_wxJPEGHandler, obj);
11679 Py_INCREF(obj);
11680 return Py_BuildValue((char *)"");
11681}
11682static PyObject *_wrap_new_PNMHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11683 PyObject *resultobj;
11684 wxPNMHandler *result;
11685 char *kwnames[] = {
11686 NULL
11687 };
11688
11689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNMHandler",kwnames)) goto fail;
11690 {
11691 PyThreadState* __tstate = wxPyBeginAllowThreads();
11692 result = (wxPNMHandler *)new wxPNMHandler();
11693
11694 wxPyEndAllowThreads(__tstate);
11695 if (PyErr_Occurred()) SWIG_fail;
11696 }
11697 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNMHandler, 1);
11698 return resultobj;
11699 fail:
11700 return NULL;
11701}
11702
11703
11704static PyObject * PNMHandler_swigregister(PyObject *self, PyObject *args) {
11705 PyObject *obj;
11706 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11707 SWIG_TypeClientData(SWIGTYPE_p_wxPNMHandler, obj);
11708 Py_INCREF(obj);
11709 return Py_BuildValue((char *)"");
11710}
11711static PyObject *_wrap_new_XPMHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11712 PyObject *resultobj;
11713 wxXPMHandler *result;
11714 char *kwnames[] = {
11715 NULL
11716 };
11717
11718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XPMHandler",kwnames)) goto fail;
11719 {
11720 PyThreadState* __tstate = wxPyBeginAllowThreads();
11721 result = (wxXPMHandler *)new wxXPMHandler();
11722
11723 wxPyEndAllowThreads(__tstate);
11724 if (PyErr_Occurred()) SWIG_fail;
11725 }
11726 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXPMHandler, 1);
11727 return resultobj;
11728 fail:
11729 return NULL;
11730}
11731
11732
11733static PyObject * XPMHandler_swigregister(PyObject *self, PyObject *args) {
11734 PyObject *obj;
11735 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11736 SWIG_TypeClientData(SWIGTYPE_p_wxXPMHandler, obj);
11737 Py_INCREF(obj);
11738 return Py_BuildValue((char *)"");
11739}
11740static PyObject *_wrap_new_TIFFHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11741 PyObject *resultobj;
11742 wxTIFFHandler *result;
11743 char *kwnames[] = {
11744 NULL
11745 };
11746
11747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TIFFHandler",kwnames)) goto fail;
11748 {
11749 PyThreadState* __tstate = wxPyBeginAllowThreads();
11750 result = (wxTIFFHandler *)new wxTIFFHandler();
11751
11752 wxPyEndAllowThreads(__tstate);
11753 if (PyErr_Occurred()) SWIG_fail;
11754 }
11755 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTIFFHandler, 1);
11756 return resultobj;
11757 fail:
11758 return NULL;
11759}
11760
11761
11762static PyObject * TIFFHandler_swigregister(PyObject *self, PyObject *args) {
11763 PyObject *obj;
11764 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11765 SWIG_TypeClientData(SWIGTYPE_p_wxTIFFHandler, obj);
11766 Py_INCREF(obj);
11767 return Py_BuildValue((char *)"");
11768}
11769static PyObject *_wrap_new_EvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11770 PyObject *resultobj;
11771 wxEvtHandler *result;
11772 char *kwnames[] = {
11773 NULL
11774 };
11775
11776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EvtHandler",kwnames)) goto fail;
11777 {
11778 PyThreadState* __tstate = wxPyBeginAllowThreads();
11779 result = (wxEvtHandler *)new wxEvtHandler();
11780
11781 wxPyEndAllowThreads(__tstate);
11782 if (PyErr_Occurred()) SWIG_fail;
11783 }
11784 {
11785 resultobj = wxPyMake_wxObject(result);
11786 }
11787 return resultobj;
11788 fail:
11789 return NULL;
11790}
11791
11792
11793static PyObject *_wrap_EvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11794 PyObject *resultobj;
11795 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11796 wxEvtHandler *result;
11797 PyObject * obj0 = 0 ;
11798 char *kwnames[] = {
11799 (char *) "self", NULL
11800 };
11801
11802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetNextHandler",kwnames,&obj0)) goto fail;
11803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
11804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11805 {
11806 PyThreadState* __tstate = wxPyBeginAllowThreads();
11807 result = (wxEvtHandler *)(arg1)->GetNextHandler();
11808
11809 wxPyEndAllowThreads(__tstate);
11810 if (PyErr_Occurred()) SWIG_fail;
11811 }
11812 {
11813 resultobj = wxPyMake_wxObject(result);
11814 }
11815 return resultobj;
11816 fail:
11817 return NULL;
11818}
11819
11820
11821static PyObject *_wrap_EvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11822 PyObject *resultobj;
11823 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11824 wxEvtHandler *result;
11825 PyObject * obj0 = 0 ;
11826 char *kwnames[] = {
11827 (char *) "self", NULL
11828 };
11829
11830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetPreviousHandler",kwnames,&obj0)) goto fail;
11831 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
11832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11833 {
11834 PyThreadState* __tstate = wxPyBeginAllowThreads();
11835 result = (wxEvtHandler *)(arg1)->GetPreviousHandler();
11836
11837 wxPyEndAllowThreads(__tstate);
11838 if (PyErr_Occurred()) SWIG_fail;
11839 }
11840 {
11841 resultobj = wxPyMake_wxObject(result);
11842 }
11843 return resultobj;
11844 fail:
11845 return NULL;
11846}
11847
11848
11849static PyObject *_wrap_EvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11850 PyObject *resultobj;
11851 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11852 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
11853 PyObject * obj0 = 0 ;
11854 PyObject * obj1 = 0 ;
11855 char *kwnames[] = {
11856 (char *) "self",(char *) "handler", NULL
11857 };
11858
11859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetNextHandler",kwnames,&obj0,&obj1)) goto fail;
11860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
11861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11862 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
11863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11864 {
11865 PyThreadState* __tstate = wxPyBeginAllowThreads();
11866 (arg1)->SetNextHandler(arg2);
11867
11868 wxPyEndAllowThreads(__tstate);
11869 if (PyErr_Occurred()) SWIG_fail;
11870 }
11871 Py_INCREF(Py_None); resultobj = Py_None;
11872 return resultobj;
11873 fail:
11874 return NULL;
11875}
11876
11877
11878static PyObject *_wrap_EvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11879 PyObject *resultobj;
11880 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11881 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
11882 PyObject * obj0 = 0 ;
11883 PyObject * obj1 = 0 ;
11884 char *kwnames[] = {
11885 (char *) "self",(char *) "handler", NULL
11886 };
11887
11888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) goto fail;
11889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
11890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11891 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
11892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11893 {
11894 PyThreadState* __tstate = wxPyBeginAllowThreads();
11895 (arg1)->SetPreviousHandler(arg2);
11896
11897 wxPyEndAllowThreads(__tstate);
11898 if (PyErr_Occurred()) SWIG_fail;
11899 }
11900 Py_INCREF(Py_None); resultobj = Py_None;
11901 return resultobj;
11902 fail:
11903 return NULL;
11904}
11905
11906
11907static PyObject *_wrap_EvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
11908 PyObject *resultobj;
11909 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11910 bool result;
11911 PyObject * obj0 = 0 ;
11912 char *kwnames[] = {
11913 (char *) "self", NULL
11914 };
11915
11916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetEvtHandlerEnabled",kwnames,&obj0)) goto fail;
11917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
11918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11919 {
11920 PyThreadState* __tstate = wxPyBeginAllowThreads();
11921 result = (bool)(arg1)->GetEvtHandlerEnabled();
11922
11923 wxPyEndAllowThreads(__tstate);
11924 if (PyErr_Occurred()) SWIG_fail;
11925 }
11926 {
11927 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11928 }
11929 return resultobj;
11930 fail:
11931 return NULL;
11932}
11933
11934
11935static PyObject *_wrap_EvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
11936 PyObject *resultobj;
11937 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11938 bool arg2 ;
11939 PyObject * obj0 = 0 ;
11940 PyObject * obj1 = 0 ;
11941 char *kwnames[] = {
11942 (char *) "self",(char *) "enabled", NULL
11943 };
11944
11945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetEvtHandlerEnabled",kwnames,&obj0,&obj1)) goto fail;
11946 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
11947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11948 arg2 = (bool) SWIG_AsBool(obj1);
11949 if (PyErr_Occurred()) SWIG_fail;
11950 {
11951 PyThreadState* __tstate = wxPyBeginAllowThreads();
11952 (arg1)->SetEvtHandlerEnabled(arg2);
11953
11954 wxPyEndAllowThreads(__tstate);
11955 if (PyErr_Occurred()) SWIG_fail;
11956 }
11957 Py_INCREF(Py_None); resultobj = Py_None;
11958 return resultobj;
11959 fail:
11960 return NULL;
11961}
11962
11963
11964static PyObject *_wrap_EvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
11965 PyObject *resultobj;
11966 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11967 wxEvent *arg2 = 0 ;
11968 bool result;
11969 PyObject * obj0 = 0 ;
11970 PyObject * obj1 = 0 ;
11971 char *kwnames[] = {
11972 (char *) "self",(char *) "event", NULL
11973 };
11974
11975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_ProcessEvent",kwnames,&obj0,&obj1)) goto fail;
11976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
11977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11978 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent,
11979 SWIG_POINTER_EXCEPTION | 0)) == -1)
11980 SWIG_fail;
11981 if (arg2 == NULL) {
11982 PyErr_SetString(PyExc_TypeError,"null reference");
11983 SWIG_fail;
11984 }
11985 {
11986 PyThreadState* __tstate = wxPyBeginAllowThreads();
11987 result = (bool)(arg1)->ProcessEvent(*arg2);
11988
11989 wxPyEndAllowThreads(__tstate);
11990 if (PyErr_Occurred()) SWIG_fail;
11991 }
11992 {
11993 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11994 }
11995 return resultobj;
11996 fail:
11997 return NULL;
11998}
11999
12000
12001static PyObject *_wrap_EvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
12002 PyObject *resultobj;
12003 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12004 wxEvent *arg2 = 0 ;
12005 PyObject * obj0 = 0 ;
12006 PyObject * obj1 = 0 ;
12007 char *kwnames[] = {
12008 (char *) "self",(char *) "event", NULL
12009 };
12010
12011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_AddPendingEvent",kwnames,&obj0,&obj1)) goto fail;
12012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12014 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent,
12015 SWIG_POINTER_EXCEPTION | 0)) == -1)
12016 SWIG_fail;
12017 if (arg2 == NULL) {
12018 PyErr_SetString(PyExc_TypeError,"null reference");
12019 SWIG_fail;
12020 }
12021 {
12022 PyThreadState* __tstate = wxPyBeginAllowThreads();
12023 (arg1)->AddPendingEvent(*arg2);
12024
12025 wxPyEndAllowThreads(__tstate);
12026 if (PyErr_Occurred()) SWIG_fail;
12027 }
12028 Py_INCREF(Py_None); resultobj = Py_None;
12029 return resultobj;
12030 fail:
12031 return NULL;
12032}
12033
12034
12035static PyObject *_wrap_EvtHandler_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) {
12036 PyObject *resultobj;
12037 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12038 PyObject * obj0 = 0 ;
12039 char *kwnames[] = {
12040 (char *) "self", NULL
12041 };
12042
12043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_ProcessPendingEvents",kwnames,&obj0)) goto fail;
12044 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12046 {
12047 PyThreadState* __tstate = wxPyBeginAllowThreads();
12048 (arg1)->ProcessPendingEvents();
12049
12050 wxPyEndAllowThreads(__tstate);
12051 if (PyErr_Occurred()) SWIG_fail;
12052 }
12053 Py_INCREF(Py_None); resultobj = Py_None;
12054 return resultobj;
12055 fail:
12056 return NULL;
12057}
12058
12059
12060static PyObject *_wrap_EvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) {
12061 PyObject *resultobj;
12062 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12063 int arg2 ;
12064 int arg3 ;
12065 int arg4 ;
12066 PyObject *arg5 = (PyObject *) 0 ;
12067 PyObject * obj0 = 0 ;
12068 PyObject * obj1 = 0 ;
12069 PyObject * obj2 = 0 ;
12070 PyObject * obj3 = 0 ;
12071 PyObject * obj4 = 0 ;
12072 char *kwnames[] = {
12073 (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType",(char *) "func", NULL
12074 };
12075
12076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:EvtHandler_Connect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12079 arg2 = (int) SWIG_AsInt(obj1);
12080 if (PyErr_Occurred()) SWIG_fail;
12081 arg3 = (int) SWIG_AsInt(obj2);
12082 if (PyErr_Occurred()) SWIG_fail;
12083 arg4 = (int) SWIG_AsInt(obj3);
12084 if (PyErr_Occurred()) SWIG_fail;
12085 arg5 = obj4;
12086 {
12087 PyThreadState* __tstate = wxPyBeginAllowThreads();
12088 wxEvtHandler_Connect(arg1,arg2,arg3,arg4,arg5);
12089
12090 wxPyEndAllowThreads(__tstate);
12091 if (PyErr_Occurred()) SWIG_fail;
12092 }
12093 Py_INCREF(Py_None); resultobj = Py_None;
12094 return resultobj;
12095 fail:
12096 return NULL;
12097}
12098
12099
12100static PyObject *_wrap_EvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) {
12101 PyObject *resultobj;
12102 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12103 int arg2 ;
12104 int arg3 = (int) -1 ;
12105 wxEventType arg4 = (wxEventType) wxEVT_NULL ;
12106 bool result;
12107 PyObject * obj0 = 0 ;
12108 PyObject * obj1 = 0 ;
12109 PyObject * obj2 = 0 ;
12110 PyObject * obj3 = 0 ;
12111 char *kwnames[] = {
12112 (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType", NULL
12113 };
12114
12115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:EvtHandler_Disconnect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12118 arg2 = (int) SWIG_AsInt(obj1);
12119 if (PyErr_Occurred()) SWIG_fail;
12120 if (obj2) {
12121 arg3 = (int) SWIG_AsInt(obj2);
12122 if (PyErr_Occurred()) SWIG_fail;
12123 }
12124 if (obj3) {
12125 arg4 = (wxEventType) SWIG_AsInt(obj3);
12126 if (PyErr_Occurred()) SWIG_fail;
12127 }
12128 {
12129 PyThreadState* __tstate = wxPyBeginAllowThreads();
12130 result = (bool)wxEvtHandler_Disconnect(arg1,arg2,arg3,arg4);
12131
12132 wxPyEndAllowThreads(__tstate);
12133 if (PyErr_Occurred()) SWIG_fail;
12134 }
12135 {
12136 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12137 }
12138 return resultobj;
12139 fail:
12140 return NULL;
12141}
12142
12143
12144static PyObject *_wrap_EvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
12145 PyObject *resultobj;
12146 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12147 PyObject *arg2 = (PyObject *) 0 ;
12148 PyObject * obj0 = 0 ;
12149 PyObject * obj1 = 0 ;
12150 char *kwnames[] = {
12151 (char *) "self",(char *) "_self", NULL
12152 };
12153
12154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
12155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12157 arg2 = obj1;
12158 {
12159 PyThreadState* __tstate = wxPyBeginAllowThreads();
12160 wxEvtHandler__setOORInfo(arg1,arg2);
12161
12162 wxPyEndAllowThreads(__tstate);
12163 if (PyErr_Occurred()) SWIG_fail;
12164 }
12165 Py_INCREF(Py_None); resultobj = Py_None;
12166 return resultobj;
12167 fail:
12168 return NULL;
12169}
12170
12171
12172static PyObject * EvtHandler_swigregister(PyObject *self, PyObject *args) {
12173 PyObject *obj;
12174 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12175 SWIG_TypeClientData(SWIGTYPE_p_wxEvtHandler, obj);
12176 Py_INCREF(obj);
12177 return Py_BuildValue((char *)"");
12178}
12179static PyObject *_wrap_NewEventType(PyObject *self, PyObject *args, PyObject *kwargs) {
12180 PyObject *resultobj;
12181 wxEventType result;
12182 char *kwnames[] = {
12183 NULL
12184 };
12185
12186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewEventType",kwnames)) goto fail;
12187 {
12188 PyThreadState* __tstate = wxPyBeginAllowThreads();
12189 result = (wxEventType)wxNewEventType();
12190
12191 wxPyEndAllowThreads(__tstate);
12192 if (PyErr_Occurred()) SWIG_fail;
12193 }
12194 resultobj = SWIG_FromInt((int)result);
12195 return resultobj;
12196 fail:
12197 return NULL;
12198}
12199
12200
12201static PyObject *_wrap_delete_Event(PyObject *self, PyObject *args, PyObject *kwargs) {
12202 PyObject *resultobj;
12203 wxEvent *arg1 = (wxEvent *) 0 ;
12204 PyObject * obj0 = 0 ;
12205 char *kwnames[] = {
12206 (char *) "self", NULL
12207 };
12208
12209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Event",kwnames,&obj0)) goto fail;
12210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12212 {
12213 PyThreadState* __tstate = wxPyBeginAllowThreads();
12214 delete arg1;
12215
12216 wxPyEndAllowThreads(__tstate);
12217 if (PyErr_Occurred()) SWIG_fail;
12218 }
12219 Py_INCREF(Py_None); resultobj = Py_None;
12220 return resultobj;
12221 fail:
12222 return NULL;
12223}
12224
12225
12226static PyObject *_wrap_Event_SetEventType(PyObject *self, PyObject *args, PyObject *kwargs) {
12227 PyObject *resultobj;
12228 wxEvent *arg1 = (wxEvent *) 0 ;
12229 wxEventType arg2 ;
12230 PyObject * obj0 = 0 ;
12231 PyObject * obj1 = 0 ;
12232 char *kwnames[] = {
12233 (char *) "self",(char *) "typ", NULL
12234 };
12235
12236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventType",kwnames,&obj0,&obj1)) goto fail;
12237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12239 arg2 = (wxEventType) SWIG_AsInt(obj1);
12240 if (PyErr_Occurred()) SWIG_fail;
12241 {
12242 PyThreadState* __tstate = wxPyBeginAllowThreads();
12243 (arg1)->SetEventType(arg2);
12244
12245 wxPyEndAllowThreads(__tstate);
12246 if (PyErr_Occurred()) SWIG_fail;
12247 }
12248 Py_INCREF(Py_None); resultobj = Py_None;
12249 return resultobj;
12250 fail:
12251 return NULL;
12252}
12253
12254
12255static PyObject *_wrap_Event_GetEventType(PyObject *self, PyObject *args, PyObject *kwargs) {
12256 PyObject *resultobj;
12257 wxEvent *arg1 = (wxEvent *) 0 ;
12258 wxEventType result;
12259 PyObject * obj0 = 0 ;
12260 char *kwnames[] = {
12261 (char *) "self", NULL
12262 };
12263
12264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventType",kwnames,&obj0)) goto fail;
12265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12267 {
12268 PyThreadState* __tstate = wxPyBeginAllowThreads();
12269 result = (wxEventType)((wxEvent const *)arg1)->GetEventType();
12270
12271 wxPyEndAllowThreads(__tstate);
12272 if (PyErr_Occurred()) SWIG_fail;
12273 }
12274 resultobj = SWIG_FromInt((int)result);
12275 return resultobj;
12276 fail:
12277 return NULL;
12278}
12279
12280
12281static PyObject *_wrap_Event_GetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) {
12282 PyObject *resultobj;
12283 wxEvent *arg1 = (wxEvent *) 0 ;
12284 wxObject *result;
12285 PyObject * obj0 = 0 ;
12286 char *kwnames[] = {
12287 (char *) "self", NULL
12288 };
12289
12290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventObject",kwnames,&obj0)) goto fail;
12291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12293 {
12294 PyThreadState* __tstate = wxPyBeginAllowThreads();
12295 result = (wxObject *)((wxEvent const *)arg1)->GetEventObject();
12296
12297 wxPyEndAllowThreads(__tstate);
12298 if (PyErr_Occurred()) SWIG_fail;
12299 }
12300 {
12301 resultobj = wxPyMake_wxObject(result);
12302 }
12303 return resultobj;
12304 fail:
12305 return NULL;
12306}
12307
12308
12309static PyObject *_wrap_Event_SetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) {
12310 PyObject *resultobj;
12311 wxEvent *arg1 = (wxEvent *) 0 ;
12312 wxObject *arg2 = (wxObject *) 0 ;
12313 PyObject * obj0 = 0 ;
12314 PyObject * obj1 = 0 ;
12315 char *kwnames[] = {
12316 (char *) "self",(char *) "obj", NULL
12317 };
12318
12319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventObject",kwnames,&obj0,&obj1)) goto fail;
12320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12322 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject,
12323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12324 {
12325 PyThreadState* __tstate = wxPyBeginAllowThreads();
12326 (arg1)->SetEventObject(arg2);
12327
12328 wxPyEndAllowThreads(__tstate);
12329 if (PyErr_Occurred()) SWIG_fail;
12330 }
12331 Py_INCREF(Py_None); resultobj = Py_None;
12332 return resultobj;
12333 fail:
12334 return NULL;
12335}
12336
12337
12338static PyObject *_wrap_Event_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
12339 PyObject *resultobj;
12340 wxEvent *arg1 = (wxEvent *) 0 ;
12341 long result;
12342 PyObject * obj0 = 0 ;
12343 char *kwnames[] = {
12344 (char *) "self", NULL
12345 };
12346
12347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetTimestamp",kwnames,&obj0)) goto fail;
12348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12350 {
12351 PyThreadState* __tstate = wxPyBeginAllowThreads();
12352 result = (long)((wxEvent const *)arg1)->GetTimestamp();
12353
12354 wxPyEndAllowThreads(__tstate);
12355 if (PyErr_Occurred()) SWIG_fail;
12356 }
12357 resultobj = SWIG_FromLong((long)result);
12358 return resultobj;
12359 fail:
12360 return NULL;
12361}
12362
12363
12364static PyObject *_wrap_Event_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
12365 PyObject *resultobj;
12366 wxEvent *arg1 = (wxEvent *) 0 ;
12367 long arg2 = (long) 0 ;
12368 PyObject * obj0 = 0 ;
12369 PyObject * obj1 = 0 ;
12370 char *kwnames[] = {
12371 (char *) "self",(char *) "ts", NULL
12372 };
12373
12374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_SetTimestamp",kwnames,&obj0,&obj1)) goto fail;
12375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12377 if (obj1) {
12378 arg2 = (long) SWIG_AsLong(obj1);
12379 if (PyErr_Occurred()) SWIG_fail;
12380 }
12381 {
12382 PyThreadState* __tstate = wxPyBeginAllowThreads();
12383 (arg1)->SetTimestamp(arg2);
12384
12385 wxPyEndAllowThreads(__tstate);
12386 if (PyErr_Occurred()) SWIG_fail;
12387 }
12388 Py_INCREF(Py_None); resultobj = Py_None;
12389 return resultobj;
12390 fail:
12391 return NULL;
12392}
12393
12394
12395static PyObject *_wrap_Event_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
12396 PyObject *resultobj;
12397 wxEvent *arg1 = (wxEvent *) 0 ;
12398 int result;
12399 PyObject * obj0 = 0 ;
12400 char *kwnames[] = {
12401 (char *) "self", NULL
12402 };
12403
12404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetId",kwnames,&obj0)) goto fail;
12405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12407 {
12408 PyThreadState* __tstate = wxPyBeginAllowThreads();
12409 result = (int)((wxEvent const *)arg1)->GetId();
12410
12411 wxPyEndAllowThreads(__tstate);
12412 if (PyErr_Occurred()) SWIG_fail;
12413 }
12414 resultobj = SWIG_FromInt((int)result);
12415 return resultobj;
12416 fail:
12417 return NULL;
12418}
12419
12420
12421static PyObject *_wrap_Event_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
12422 PyObject *resultobj;
12423 wxEvent *arg1 = (wxEvent *) 0 ;
12424 int arg2 ;
12425 PyObject * obj0 = 0 ;
12426 PyObject * obj1 = 0 ;
12427 char *kwnames[] = {
12428 (char *) "self",(char *) "Id", NULL
12429 };
12430
12431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetId",kwnames,&obj0,&obj1)) goto fail;
12432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12434 arg2 = (int) SWIG_AsInt(obj1);
12435 if (PyErr_Occurred()) SWIG_fail;
12436 {
12437 PyThreadState* __tstate = wxPyBeginAllowThreads();
12438 (arg1)->SetId(arg2);
12439
12440 wxPyEndAllowThreads(__tstate);
12441 if (PyErr_Occurred()) SWIG_fail;
12442 }
12443 Py_INCREF(Py_None); resultobj = Py_None;
12444 return resultobj;
12445 fail:
12446 return NULL;
12447}
12448
12449
12450static PyObject *_wrap_Event_IsCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
12451 PyObject *resultobj;
12452 wxEvent *arg1 = (wxEvent *) 0 ;
12453 bool result;
12454 PyObject * obj0 = 0 ;
12455 char *kwnames[] = {
12456 (char *) "self", NULL
12457 };
12458
12459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_IsCommandEvent",kwnames,&obj0)) goto fail;
12460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12462 {
12463 PyThreadState* __tstate = wxPyBeginAllowThreads();
12464 result = (bool)((wxEvent const *)arg1)->IsCommandEvent();
12465
12466 wxPyEndAllowThreads(__tstate);
12467 if (PyErr_Occurred()) SWIG_fail;
12468 }
12469 {
12470 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12471 }
12472 return resultobj;
12473 fail:
12474 return NULL;
12475}
12476
12477
12478static PyObject *_wrap_Event_Skip(PyObject *self, PyObject *args, PyObject *kwargs) {
12479 PyObject *resultobj;
12480 wxEvent *arg1 = (wxEvent *) 0 ;
12481 bool arg2 = (bool) True ;
12482 PyObject * obj0 = 0 ;
12483 PyObject * obj1 = 0 ;
12484 char *kwnames[] = {
12485 (char *) "self",(char *) "skip", NULL
12486 };
12487
12488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_Skip",kwnames,&obj0,&obj1)) goto fail;
12489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12491 if (obj1) {
12492 arg2 = (bool) SWIG_AsBool(obj1);
12493 if (PyErr_Occurred()) SWIG_fail;
12494 }
12495 {
12496 PyThreadState* __tstate = wxPyBeginAllowThreads();
12497 (arg1)->Skip(arg2);
12498
12499 wxPyEndAllowThreads(__tstate);
12500 if (PyErr_Occurred()) SWIG_fail;
12501 }
12502 Py_INCREF(Py_None); resultobj = Py_None;
12503 return resultobj;
12504 fail:
12505 return NULL;
12506}
12507
12508
12509static PyObject *_wrap_Event_GetSkipped(PyObject *self, PyObject *args, PyObject *kwargs) {
12510 PyObject *resultobj;
12511 wxEvent *arg1 = (wxEvent *) 0 ;
12512 bool result;
12513 PyObject * obj0 = 0 ;
12514 char *kwnames[] = {
12515 (char *) "self", NULL
12516 };
12517
12518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetSkipped",kwnames,&obj0)) goto fail;
12519 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12521 {
12522 PyThreadState* __tstate = wxPyBeginAllowThreads();
12523 result = (bool)((wxEvent const *)arg1)->GetSkipped();
12524
12525 wxPyEndAllowThreads(__tstate);
12526 if (PyErr_Occurred()) SWIG_fail;
12527 }
12528 {
12529 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12530 }
12531 return resultobj;
12532 fail:
12533 return NULL;
12534}
12535
12536
12537static PyObject *_wrap_Event_ShouldPropagate(PyObject *self, PyObject *args, PyObject *kwargs) {
12538 PyObject *resultobj;
12539 wxEvent *arg1 = (wxEvent *) 0 ;
12540 bool result;
12541 PyObject * obj0 = 0 ;
12542 char *kwnames[] = {
12543 (char *) "self", NULL
12544 };
12545
12546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_ShouldPropagate",kwnames,&obj0)) goto fail;
12547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12549 {
12550 PyThreadState* __tstate = wxPyBeginAllowThreads();
12551 result = (bool)((wxEvent const *)arg1)->ShouldPropagate();
12552
12553 wxPyEndAllowThreads(__tstate);
12554 if (PyErr_Occurred()) SWIG_fail;
12555 }
12556 {
12557 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12558 }
12559 return resultobj;
12560 fail:
12561 return NULL;
12562}
12563
12564
12565static PyObject *_wrap_Event_StopPropagation(PyObject *self, PyObject *args, PyObject *kwargs) {
12566 PyObject *resultobj;
12567 wxEvent *arg1 = (wxEvent *) 0 ;
12568 int result;
12569 PyObject * obj0 = 0 ;
12570 char *kwnames[] = {
12571 (char *) "self", NULL
12572 };
12573
12574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_StopPropagation",kwnames,&obj0)) goto fail;
12575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12577 {
12578 PyThreadState* __tstate = wxPyBeginAllowThreads();
12579 result = (int)(arg1)->StopPropagation();
12580
12581 wxPyEndAllowThreads(__tstate);
12582 if (PyErr_Occurred()) SWIG_fail;
12583 }
12584 resultobj = SWIG_FromInt((int)result);
12585 return resultobj;
12586 fail:
12587 return NULL;
12588}
12589
12590
12591static PyObject *_wrap_Event_ResumePropagation(PyObject *self, PyObject *args, PyObject *kwargs) {
12592 PyObject *resultobj;
12593 wxEvent *arg1 = (wxEvent *) 0 ;
12594 int arg2 ;
12595 PyObject * obj0 = 0 ;
12596 PyObject * obj1 = 0 ;
12597 char *kwnames[] = {
12598 (char *) "self",(char *) "propagationLevel", NULL
12599 };
12600
12601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_ResumePropagation",kwnames,&obj0,&obj1)) goto fail;
12602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12604 arg2 = (int) SWIG_AsInt(obj1);
12605 if (PyErr_Occurred()) SWIG_fail;
12606 {
12607 PyThreadState* __tstate = wxPyBeginAllowThreads();
12608 (arg1)->ResumePropagation(arg2);
12609
12610 wxPyEndAllowThreads(__tstate);
12611 if (PyErr_Occurred()) SWIG_fail;
12612 }
12613 Py_INCREF(Py_None); resultobj = Py_None;
12614 return resultobj;
12615 fail:
12616 return NULL;
12617}
12618
12619
12620static PyObject *_wrap_Event_Clone(PyObject *self, PyObject *args, PyObject *kwargs) {
12621 PyObject *resultobj;
12622 wxEvent *arg1 = (wxEvent *) 0 ;
12623 wxEvent *result;
12624 PyObject * obj0 = 0 ;
12625 char *kwnames[] = {
12626 (char *) "self", NULL
12627 };
12628
12629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_Clone",kwnames,&obj0)) goto fail;
12630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12632 {
12633 PyThreadState* __tstate = wxPyBeginAllowThreads();
12634 result = (wxEvent *)(arg1)->Clone();
12635
12636 wxPyEndAllowThreads(__tstate);
12637 if (PyErr_Occurred()) SWIG_fail;
12638 }
12639 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0);
12640 return resultobj;
12641 fail:
12642 return NULL;
12643}
12644
12645
12646static PyObject * Event_swigregister(PyObject *self, PyObject *args) {
12647 PyObject *obj;
12648 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12649 SWIG_TypeClientData(SWIGTYPE_p_wxEvent, obj);
12650 Py_INCREF(obj);
12651 return Py_BuildValue((char *)"");
12652}
12653static PyObject *_wrap_new_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
12654 PyObject *resultobj;
12655 wxEvent *arg1 = 0 ;
12656 wxPropagationDisabler *result;
12657 PyObject * obj0 = 0 ;
12658 char *kwnames[] = {
12659 (char *) "event", NULL
12660 };
12661
12662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagationDisabler",kwnames,&obj0)) goto fail;
12663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12664 SWIG_POINTER_EXCEPTION | 0)) == -1)
12665 SWIG_fail;
12666 if (arg1 == NULL) {
12667 PyErr_SetString(PyExc_TypeError,"null reference");
12668 SWIG_fail;
12669 }
12670 {
12671 PyThreadState* __tstate = wxPyBeginAllowThreads();
12672 result = (wxPropagationDisabler *)new wxPropagationDisabler(*arg1);
12673
12674 wxPyEndAllowThreads(__tstate);
12675 if (PyErr_Occurred()) SWIG_fail;
12676 }
12677 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagationDisabler, 1);
12678 return resultobj;
12679 fail:
12680 return NULL;
12681}
12682
12683
12684static PyObject *_wrap_delete_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
12685 PyObject *resultobj;
12686 wxPropagationDisabler *arg1 = (wxPropagationDisabler *) 0 ;
12687 PyObject * obj0 = 0 ;
12688 char *kwnames[] = {
12689 (char *) "self", NULL
12690 };
12691
12692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagationDisabler",kwnames,&obj0)) goto fail;
12693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagationDisabler,
12694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12695 {
12696 PyThreadState* __tstate = wxPyBeginAllowThreads();
12697 delete arg1;
12698
12699 wxPyEndAllowThreads(__tstate);
12700 if (PyErr_Occurred()) SWIG_fail;
12701 }
12702 Py_INCREF(Py_None); resultobj = Py_None;
12703 return resultobj;
12704 fail:
12705 return NULL;
12706}
12707
12708
12709static PyObject * PropagationDisabler_swigregister(PyObject *self, PyObject *args) {
12710 PyObject *obj;
12711 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12712 SWIG_TypeClientData(SWIGTYPE_p_wxPropagationDisabler, obj);
12713 Py_INCREF(obj);
12714 return Py_BuildValue((char *)"");
12715}
12716static PyObject *_wrap_new_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) {
12717 PyObject *resultobj;
12718 wxEvent *arg1 = 0 ;
12719 wxPropagateOnce *result;
12720 PyObject * obj0 = 0 ;
12721 char *kwnames[] = {
12722 (char *) "event", NULL
12723 };
12724
12725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagateOnce",kwnames,&obj0)) goto fail;
12726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12727 SWIG_POINTER_EXCEPTION | 0)) == -1)
12728 SWIG_fail;
12729 if (arg1 == NULL) {
12730 PyErr_SetString(PyExc_TypeError,"null reference");
12731 SWIG_fail;
12732 }
12733 {
12734 PyThreadState* __tstate = wxPyBeginAllowThreads();
12735 result = (wxPropagateOnce *)new wxPropagateOnce(*arg1);
12736
12737 wxPyEndAllowThreads(__tstate);
12738 if (PyErr_Occurred()) SWIG_fail;
12739 }
12740 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagateOnce, 1);
12741 return resultobj;
12742 fail:
12743 return NULL;
12744}
12745
12746
12747static PyObject *_wrap_delete_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) {
12748 PyObject *resultobj;
12749 wxPropagateOnce *arg1 = (wxPropagateOnce *) 0 ;
12750 PyObject * obj0 = 0 ;
12751 char *kwnames[] = {
12752 (char *) "self", NULL
12753 };
12754
12755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagateOnce",kwnames,&obj0)) goto fail;
12756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagateOnce,
12757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12758 {
12759 PyThreadState* __tstate = wxPyBeginAllowThreads();
12760 delete arg1;
12761
12762 wxPyEndAllowThreads(__tstate);
12763 if (PyErr_Occurred()) SWIG_fail;
12764 }
12765 Py_INCREF(Py_None); resultobj = Py_None;
12766 return resultobj;
12767 fail:
12768 return NULL;
12769}
12770
12771
12772static PyObject * PropagateOnce_swigregister(PyObject *self, PyObject *args) {
12773 PyObject *obj;
12774 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12775 SWIG_TypeClientData(SWIGTYPE_p_wxPropagateOnce, obj);
12776 Py_INCREF(obj);
12777 return Py_BuildValue((char *)"");
12778}
12779static PyObject *_wrap_new_CommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
12780 PyObject *resultobj;
12781 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
12782 int arg2 = (int) 0 ;
12783 wxCommandEvent *result;
12784 PyObject * obj0 = 0 ;
12785 PyObject * obj1 = 0 ;
12786 char *kwnames[] = {
12787 (char *) "commandType",(char *) "winid", NULL
12788 };
12789
12790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CommandEvent",kwnames,&obj0,&obj1)) goto fail;
12791 if (obj0) {
12792 arg1 = (wxEventType) SWIG_AsInt(obj0);
12793 if (PyErr_Occurred()) SWIG_fail;
12794 }
12795 if (obj1) {
12796 arg2 = (int) SWIG_AsInt(obj1);
12797 if (PyErr_Occurred()) SWIG_fail;
12798 }
12799 {
12800 PyThreadState* __tstate = wxPyBeginAllowThreads();
12801 result = (wxCommandEvent *)new wxCommandEvent(arg1,arg2);
12802
12803 wxPyEndAllowThreads(__tstate);
12804 if (PyErr_Occurred()) SWIG_fail;
12805 }
12806 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCommandEvent, 1);
12807 return resultobj;
12808 fail:
12809 return NULL;
12810}
12811
12812
12813static PyObject *_wrap_CommandEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
12814 PyObject *resultobj;
12815 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12816 int result;
12817 PyObject * obj0 = 0 ;
12818 char *kwnames[] = {
12819 (char *) "self", NULL
12820 };
12821
12822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetSelection",kwnames,&obj0)) goto fail;
12823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
12824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12825 {
12826 PyThreadState* __tstate = wxPyBeginAllowThreads();
12827 result = (int)((wxCommandEvent const *)arg1)->GetSelection();
12828
12829 wxPyEndAllowThreads(__tstate);
12830 if (PyErr_Occurred()) SWIG_fail;
12831 }
12832 resultobj = SWIG_FromInt((int)result);
12833 return resultobj;
12834 fail:
12835 return NULL;
12836}
12837
12838
12839static PyObject *_wrap_CommandEvent_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
12840 PyObject *resultobj;
12841 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12842 wxString *arg2 = 0 ;
12843 bool temp2 = False ;
12844 PyObject * obj0 = 0 ;
12845 PyObject * obj1 = 0 ;
12846 char *kwnames[] = {
12847 (char *) "self",(char *) "s", NULL
12848 };
12849
12850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetString",kwnames,&obj0,&obj1)) goto fail;
12851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
12852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12853 {
12854 arg2 = wxString_in_helper(obj1);
12855 if (arg2 == NULL) SWIG_fail;
12856 temp2 = True;
12857 }
12858 {
12859 PyThreadState* __tstate = wxPyBeginAllowThreads();
12860 (arg1)->SetString((wxString const &)*arg2);
12861
12862 wxPyEndAllowThreads(__tstate);
12863 if (PyErr_Occurred()) SWIG_fail;
12864 }
12865 Py_INCREF(Py_None); resultobj = Py_None;
12866 {
12867 if (temp2)
12868 delete arg2;
12869 }
12870 return resultobj;
12871 fail:
12872 {
12873 if (temp2)
12874 delete arg2;
12875 }
12876 return NULL;
12877}
12878
12879
12880static PyObject *_wrap_CommandEvent_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
12881 PyObject *resultobj;
12882 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12883 wxString result;
12884 PyObject * obj0 = 0 ;
12885 char *kwnames[] = {
12886 (char *) "self", NULL
12887 };
12888
12889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetString",kwnames,&obj0)) goto fail;
12890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
12891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12892 {
12893 PyThreadState* __tstate = wxPyBeginAllowThreads();
12894 result = ((wxCommandEvent const *)arg1)->GetString();
12895
12896 wxPyEndAllowThreads(__tstate);
12897 if (PyErr_Occurred()) SWIG_fail;
12898 }
12899 {
12900#if wxUSE_UNICODE
12901 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12902#else
12903 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12904#endif
12905 }
12906 return resultobj;
12907 fail:
12908 return NULL;
12909}
12910
12911
12912static PyObject *_wrap_CommandEvent_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
12913 PyObject *resultobj;
12914 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12915 bool result;
12916 PyObject * obj0 = 0 ;
12917 char *kwnames[] = {
12918 (char *) "self", NULL
12919 };
12920
12921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsChecked",kwnames,&obj0)) goto fail;
12922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
12923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12924 {
12925 PyThreadState* __tstate = wxPyBeginAllowThreads();
12926 result = (bool)((wxCommandEvent const *)arg1)->IsChecked();
12927
12928 wxPyEndAllowThreads(__tstate);
12929 if (PyErr_Occurred()) SWIG_fail;
12930 }
12931 {
12932 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12933 }
12934 return resultobj;
12935 fail:
12936 return NULL;
12937}
12938
12939
12940static PyObject *_wrap_CommandEvent_IsSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
12941 PyObject *resultobj;
12942 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12943 bool result;
12944 PyObject * obj0 = 0 ;
12945 char *kwnames[] = {
12946 (char *) "self", NULL
12947 };
12948
12949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsSelection",kwnames,&obj0)) goto fail;
12950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
12951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12952 {
12953 PyThreadState* __tstate = wxPyBeginAllowThreads();
12954 result = (bool)((wxCommandEvent const *)arg1)->IsSelection();
12955
12956 wxPyEndAllowThreads(__tstate);
12957 if (PyErr_Occurred()) SWIG_fail;
12958 }
12959 {
12960 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12961 }
12962 return resultobj;
12963 fail:
12964 return NULL;
12965}
12966
12967
12968static PyObject *_wrap_CommandEvent_SetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) {
12969 PyObject *resultobj;
12970 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12971 long arg2 ;
12972 PyObject * obj0 = 0 ;
12973 PyObject * obj1 = 0 ;
12974 char *kwnames[] = {
12975 (char *) "self",(char *) "extraLong", NULL
12976 };
12977
12978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetExtraLong",kwnames,&obj0,&obj1)) goto fail;
12979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
12980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12981 arg2 = (long) SWIG_AsLong(obj1);
12982 if (PyErr_Occurred()) SWIG_fail;
12983 {
12984 PyThreadState* __tstate = wxPyBeginAllowThreads();
12985 (arg1)->SetExtraLong(arg2);
12986
12987 wxPyEndAllowThreads(__tstate);
12988 if (PyErr_Occurred()) SWIG_fail;
12989 }
12990 Py_INCREF(Py_None); resultobj = Py_None;
12991 return resultobj;
12992 fail:
12993 return NULL;
12994}
12995
12996
12997static PyObject *_wrap_CommandEvent_GetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) {
12998 PyObject *resultobj;
12999 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
13000 long result;
13001 PyObject * obj0 = 0 ;
13002 char *kwnames[] = {
13003 (char *) "self", NULL
13004 };
13005
13006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetExtraLong",kwnames,&obj0)) goto fail;
13007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
13008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13009 {
13010 PyThreadState* __tstate = wxPyBeginAllowThreads();
13011 result = (long)((wxCommandEvent const *)arg1)->GetExtraLong();
13012
13013 wxPyEndAllowThreads(__tstate);
13014 if (PyErr_Occurred()) SWIG_fail;
13015 }
13016 resultobj = SWIG_FromLong((long)result);
13017 return resultobj;
13018 fail:
13019 return NULL;
13020}
13021
13022
13023static PyObject *_wrap_CommandEvent_SetInt(PyObject *self, PyObject *args, PyObject *kwargs) {
13024 PyObject *resultobj;
13025 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
13026 int arg2 ;
13027 PyObject * obj0 = 0 ;
13028 PyObject * obj1 = 0 ;
13029 char *kwnames[] = {
13030 (char *) "self",(char *) "i", NULL
13031 };
13032
13033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetInt",kwnames,&obj0,&obj1)) goto fail;
13034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
13035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13036 arg2 = (int) SWIG_AsInt(obj1);
13037 if (PyErr_Occurred()) SWIG_fail;
13038 {
13039 PyThreadState* __tstate = wxPyBeginAllowThreads();
13040 (arg1)->SetInt(arg2);
13041
13042 wxPyEndAllowThreads(__tstate);
13043 if (PyErr_Occurred()) SWIG_fail;
13044 }
13045 Py_INCREF(Py_None); resultobj = Py_None;
13046 return resultobj;
13047 fail:
13048 return NULL;
13049}
13050
13051
13052static PyObject *_wrap_CommandEvent_GetInt(PyObject *self, PyObject *args, PyObject *kwargs) {
13053 PyObject *resultobj;
13054 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
13055 long result;
13056 PyObject * obj0 = 0 ;
13057 char *kwnames[] = {
13058 (char *) "self", NULL
13059 };
13060
13061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetInt",kwnames,&obj0)) goto fail;
13062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
13063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13064 {
13065 PyThreadState* __tstate = wxPyBeginAllowThreads();
13066 result = (long)((wxCommandEvent const *)arg1)->GetInt();
13067
13068 wxPyEndAllowThreads(__tstate);
13069 if (PyErr_Occurred()) SWIG_fail;
13070 }
13071 resultobj = SWIG_FromLong((long)result);
13072 return resultobj;
13073 fail:
13074 return NULL;
13075}
13076
13077
13078static PyObject *_wrap_CommandEvent_Clone(PyObject *self, PyObject *args, PyObject *kwargs) {
13079 PyObject *resultobj;
13080 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
13081 wxEvent *result;
13082 PyObject * obj0 = 0 ;
13083 char *kwnames[] = {
13084 (char *) "self", NULL
13085 };
13086
13087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_Clone",kwnames,&obj0)) goto fail;
13088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
13089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13090 {
13091 PyThreadState* __tstate = wxPyBeginAllowThreads();
13092 result = (wxEvent *)((wxCommandEvent const *)arg1)->Clone();
13093
13094 wxPyEndAllowThreads(__tstate);
13095 if (PyErr_Occurred()) SWIG_fail;
13096 }
13097 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0);
13098 return resultobj;
13099 fail:
13100 return NULL;
13101}
13102
13103
13104static PyObject * CommandEvent_swigregister(PyObject *self, PyObject *args) {
13105 PyObject *obj;
13106 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13107 SWIG_TypeClientData(SWIGTYPE_p_wxCommandEvent, obj);
13108 Py_INCREF(obj);
13109 return Py_BuildValue((char *)"");
13110}
13111static PyObject *_wrap_new_NotifyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
13112 PyObject *resultobj;
13113 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
13114 int arg2 = (int) 0 ;
13115 wxNotifyEvent *result;
13116 PyObject * obj0 = 0 ;
13117 PyObject * obj1 = 0 ;
13118 char *kwnames[] = {
13119 (char *) "commandType",(char *) "winid", NULL
13120 };
13121
13122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_NotifyEvent",kwnames,&obj0,&obj1)) goto fail;
13123 if (obj0) {
13124 arg1 = (wxEventType) SWIG_AsInt(obj0);
13125 if (PyErr_Occurred()) SWIG_fail;
13126 }
13127 if (obj1) {
13128 arg2 = (int) SWIG_AsInt(obj1);
13129 if (PyErr_Occurred()) SWIG_fail;
13130 }
13131 {
13132 PyThreadState* __tstate = wxPyBeginAllowThreads();
13133 result = (wxNotifyEvent *)new wxNotifyEvent(arg1,arg2);
13134
13135 wxPyEndAllowThreads(__tstate);
13136 if (PyErr_Occurred()) SWIG_fail;
13137 }
13138 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotifyEvent, 1);
13139 return resultobj;
13140 fail:
13141 return NULL;
13142}
13143
13144
13145static PyObject *_wrap_NotifyEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) {
13146 PyObject *resultobj;
13147 wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ;
13148 PyObject * obj0 = 0 ;
13149 char *kwnames[] = {
13150 (char *) "self", NULL
13151 };
13152
13153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Veto",kwnames,&obj0)) goto fail;
13154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent,
13155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13156 {
13157 PyThreadState* __tstate = wxPyBeginAllowThreads();
13158 (arg1)->Veto();
13159
13160 wxPyEndAllowThreads(__tstate);
13161 if (PyErr_Occurred()) SWIG_fail;
13162 }
13163 Py_INCREF(Py_None); resultobj = Py_None;
13164 return resultobj;
13165 fail:
13166 return NULL;
13167}
13168
13169
13170static PyObject *_wrap_NotifyEvent_Allow(PyObject *self, PyObject *args, PyObject *kwargs) {
13171 PyObject *resultobj;
13172 wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ;
13173 PyObject * obj0 = 0 ;
13174 char *kwnames[] = {
13175 (char *) "self", NULL
13176 };
13177
13178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Allow",kwnames,&obj0)) goto fail;
13179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent,
13180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13181 {
13182 PyThreadState* __tstate = wxPyBeginAllowThreads();
13183 (arg1)->Allow();
13184
13185 wxPyEndAllowThreads(__tstate);
13186 if (PyErr_Occurred()) SWIG_fail;
13187 }
13188 Py_INCREF(Py_None); resultobj = Py_None;
13189 return resultobj;
13190 fail:
13191 return NULL;
13192}
13193
13194
13195static PyObject *_wrap_NotifyEvent_IsAllowed(PyObject *self, PyObject *args, PyObject *kwargs) {
13196 PyObject *resultobj;
13197 wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ;
13198 bool result;
13199 PyObject * obj0 = 0 ;
13200 char *kwnames[] = {
13201 (char *) "self", NULL
13202 };
13203
13204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_IsAllowed",kwnames,&obj0)) goto fail;
13205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent,
13206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13207 {
13208 PyThreadState* __tstate = wxPyBeginAllowThreads();
13209 result = (bool)(arg1)->IsAllowed();
13210
13211 wxPyEndAllowThreads(__tstate);
13212 if (PyErr_Occurred()) SWIG_fail;
13213 }
13214 {
13215 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13216 }
13217 return resultobj;
13218 fail:
13219 return NULL;
13220}
13221
13222
13223static PyObject * NotifyEvent_swigregister(PyObject *self, PyObject *args) {
13224 PyObject *obj;
13225 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13226 SWIG_TypeClientData(SWIGTYPE_p_wxNotifyEvent, obj);
13227 Py_INCREF(obj);
13228 return Py_BuildValue((char *)"");
13229}
13230static PyObject *_wrap_new_ScrollEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
13231 PyObject *resultobj;
13232 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
13233 int arg2 = (int) 0 ;
13234 int arg3 = (int) 0 ;
13235 int arg4 = (int) 0 ;
13236 wxScrollEvent *result;
13237 PyObject * obj0 = 0 ;
13238 PyObject * obj1 = 0 ;
13239 PyObject * obj2 = 0 ;
13240 PyObject * obj3 = 0 ;
13241 char *kwnames[] = {
13242 (char *) "commandType",(char *) "winid",(char *) "pos",(char *) "orient", NULL
13243 };
13244
13245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ScrollEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13246 if (obj0) {
13247 arg1 = (wxEventType) SWIG_AsInt(obj0);
13248 if (PyErr_Occurred()) SWIG_fail;
13249 }
13250 if (obj1) {
13251 arg2 = (int) SWIG_AsInt(obj1);
13252 if (PyErr_Occurred()) SWIG_fail;
13253 }
13254 if (obj2) {
13255 arg3 = (int) SWIG_AsInt(obj2);
13256 if (PyErr_Occurred()) SWIG_fail;
13257 }
13258 if (obj3) {
13259 arg4 = (int) SWIG_AsInt(obj3);
13260 if (PyErr_Occurred()) SWIG_fail;
13261 }
13262 {
13263 PyThreadState* __tstate = wxPyBeginAllowThreads();
13264 result = (wxScrollEvent *)new wxScrollEvent(arg1,arg2,arg3,arg4);
13265
13266 wxPyEndAllowThreads(__tstate);
13267 if (PyErr_Occurred()) SWIG_fail;
13268 }
13269 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollEvent, 1);
13270 return resultobj;
13271 fail:
13272 return NULL;
13273}
13274
13275
13276static PyObject *_wrap_ScrollEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
13277 PyObject *resultobj;
13278 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
13279 int result;
13280 PyObject * obj0 = 0 ;
13281 char *kwnames[] = {
13282 (char *) "self", NULL
13283 };
13284
13285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetOrientation",kwnames,&obj0)) goto fail;
13286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent,
13287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13288 {
13289 PyThreadState* __tstate = wxPyBeginAllowThreads();
13290 result = (int)((wxScrollEvent const *)arg1)->GetOrientation();
13291
13292 wxPyEndAllowThreads(__tstate);
13293 if (PyErr_Occurred()) SWIG_fail;
13294 }
13295 resultobj = SWIG_FromInt((int)result);
13296 return resultobj;
13297 fail:
13298 return NULL;
13299}
13300
13301
13302static PyObject *_wrap_ScrollEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
13303 PyObject *resultobj;
13304 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
13305 int result;
13306 PyObject * obj0 = 0 ;
13307 char *kwnames[] = {
13308 (char *) "self", NULL
13309 };
13310
13311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetPosition",kwnames,&obj0)) goto fail;
13312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent,
13313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13314 {
13315 PyThreadState* __tstate = wxPyBeginAllowThreads();
13316 result = (int)((wxScrollEvent const *)arg1)->GetPosition();
13317
13318 wxPyEndAllowThreads(__tstate);
13319 if (PyErr_Occurred()) SWIG_fail;
13320 }
13321 resultobj = SWIG_FromInt((int)result);
13322 return resultobj;
13323 fail:
13324 return NULL;
13325}
13326
13327
13328static PyObject *_wrap_ScrollEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
13329 PyObject *resultobj;
13330 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
13331 int arg2 ;
13332 PyObject * obj0 = 0 ;
13333 PyObject * obj1 = 0 ;
13334 char *kwnames[] = {
13335 (char *) "self",(char *) "orient", NULL
13336 };
13337
13338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail;
13339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent,
13340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13341 arg2 = (int) SWIG_AsInt(obj1);
13342 if (PyErr_Occurred()) SWIG_fail;
13343 {
13344 PyThreadState* __tstate = wxPyBeginAllowThreads();
13345 (arg1)->SetOrientation(arg2);
13346
13347 wxPyEndAllowThreads(__tstate);
13348 if (PyErr_Occurred()) SWIG_fail;
13349 }
13350 Py_INCREF(Py_None); resultobj = Py_None;
13351 return resultobj;
13352 fail:
13353 return NULL;
13354}
13355
13356
13357static PyObject *_wrap_ScrollEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
13358 PyObject *resultobj;
13359 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
13360 int arg2 ;
13361 PyObject * obj0 = 0 ;
13362 PyObject * obj1 = 0 ;
13363 char *kwnames[] = {
13364 (char *) "self",(char *) "pos", NULL
13365 };
13366
13367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
13368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent,
13369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13370 arg2 = (int) SWIG_AsInt(obj1);
13371 if (PyErr_Occurred()) SWIG_fail;
13372 {
13373 PyThreadState* __tstate = wxPyBeginAllowThreads();
13374 (arg1)->SetPosition(arg2);
13375
13376 wxPyEndAllowThreads(__tstate);
13377 if (PyErr_Occurred()) SWIG_fail;
13378 }
13379 Py_INCREF(Py_None); resultobj = Py_None;
13380 return resultobj;
13381 fail:
13382 return NULL;
13383}
13384
13385
13386static PyObject * ScrollEvent_swigregister(PyObject *self, PyObject *args) {
13387 PyObject *obj;
13388 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13389 SWIG_TypeClientData(SWIGTYPE_p_wxScrollEvent, obj);
13390 Py_INCREF(obj);
13391 return Py_BuildValue((char *)"");
13392}
13393static PyObject *_wrap_new_ScrollWinEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
13394 PyObject *resultobj;
13395 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
13396 int arg2 = (int) 0 ;
13397 int arg3 = (int) 0 ;
13398 wxScrollWinEvent *result;
13399 PyObject * obj0 = 0 ;
13400 PyObject * obj1 = 0 ;
13401 PyObject * obj2 = 0 ;
13402 char *kwnames[] = {
13403 (char *) "commandType",(char *) "pos",(char *) "orient", NULL
13404 };
13405
13406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ScrollWinEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13407 if (obj0) {
13408 arg1 = (wxEventType) SWIG_AsInt(obj0);
13409 if (PyErr_Occurred()) SWIG_fail;
13410 }
13411 if (obj1) {
13412 arg2 = (int) SWIG_AsInt(obj1);
13413 if (PyErr_Occurred()) SWIG_fail;
13414 }
13415 if (obj2) {
13416 arg3 = (int) SWIG_AsInt(obj2);
13417 if (PyErr_Occurred()) SWIG_fail;
13418 }
13419 {
13420 PyThreadState* __tstate = wxPyBeginAllowThreads();
13421 result = (wxScrollWinEvent *)new wxScrollWinEvent(arg1,arg2,arg3);
13422
13423 wxPyEndAllowThreads(__tstate);
13424 if (PyErr_Occurred()) SWIG_fail;
13425 }
13426 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollWinEvent, 1);
13427 return resultobj;
13428 fail:
13429 return NULL;
13430}
13431
13432
13433static PyObject *_wrap_ScrollWinEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
13434 PyObject *resultobj;
13435 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
13436 int result;
13437 PyObject * obj0 = 0 ;
13438 char *kwnames[] = {
13439 (char *) "self", NULL
13440 };
13441
13442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetOrientation",kwnames,&obj0)) goto fail;
13443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent,
13444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13445 {
13446 PyThreadState* __tstate = wxPyBeginAllowThreads();
13447 result = (int)((wxScrollWinEvent const *)arg1)->GetOrientation();
13448
13449 wxPyEndAllowThreads(__tstate);
13450 if (PyErr_Occurred()) SWIG_fail;
13451 }
13452 resultobj = SWIG_FromInt((int)result);
13453 return resultobj;
13454 fail:
13455 return NULL;
13456}
13457
13458
13459static PyObject *_wrap_ScrollWinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
13460 PyObject *resultobj;
13461 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
13462 int result;
13463 PyObject * obj0 = 0 ;
13464 char *kwnames[] = {
13465 (char *) "self", NULL
13466 };
13467
13468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetPosition",kwnames,&obj0)) goto fail;
13469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent,
13470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13471 {
13472 PyThreadState* __tstate = wxPyBeginAllowThreads();
13473 result = (int)((wxScrollWinEvent const *)arg1)->GetPosition();
13474
13475 wxPyEndAllowThreads(__tstate);
13476 if (PyErr_Occurred()) SWIG_fail;
13477 }
13478 resultobj = SWIG_FromInt((int)result);
13479 return resultobj;
13480 fail:
13481 return NULL;
13482}
13483
13484
13485static PyObject *_wrap_ScrollWinEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
13486 PyObject *resultobj;
13487 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
13488 int arg2 ;
13489 PyObject * obj0 = 0 ;
13490 PyObject * obj1 = 0 ;
13491 char *kwnames[] = {
13492 (char *) "self",(char *) "orient", NULL
13493 };
13494
13495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail;
13496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent,
13497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13498 arg2 = (int) SWIG_AsInt(obj1);
13499 if (PyErr_Occurred()) SWIG_fail;
13500 {
13501 PyThreadState* __tstate = wxPyBeginAllowThreads();
13502 (arg1)->SetOrientation(arg2);
13503
13504 wxPyEndAllowThreads(__tstate);
13505 if (PyErr_Occurred()) SWIG_fail;
13506 }
13507 Py_INCREF(Py_None); resultobj = Py_None;
13508 return resultobj;
13509 fail:
13510 return NULL;
13511}
13512
13513
13514static PyObject *_wrap_ScrollWinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
13515 PyObject *resultobj;
13516 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
13517 int arg2 ;
13518 PyObject * obj0 = 0 ;
13519 PyObject * obj1 = 0 ;
13520 char *kwnames[] = {
13521 (char *) "self",(char *) "pos", NULL
13522 };
13523
13524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
13525 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent,
13526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13527 arg2 = (int) SWIG_AsInt(obj1);
13528 if (PyErr_Occurred()) SWIG_fail;
13529 {
13530 PyThreadState* __tstate = wxPyBeginAllowThreads();
13531 (arg1)->SetPosition(arg2);
13532
13533 wxPyEndAllowThreads(__tstate);
13534 if (PyErr_Occurred()) SWIG_fail;
13535 }
13536 Py_INCREF(Py_None); resultobj = Py_None;
13537 return resultobj;
13538 fail:
13539 return NULL;
13540}
13541
13542
13543static PyObject * ScrollWinEvent_swigregister(PyObject *self, PyObject *args) {
13544 PyObject *obj;
13545 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13546 SWIG_TypeClientData(SWIGTYPE_p_wxScrollWinEvent, obj);
13547 Py_INCREF(obj);
13548 return Py_BuildValue((char *)"");
13549}
13550static PyObject *_wrap_new_MouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
13551 PyObject *resultobj;
13552 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
13553 wxMouseEvent *result;
13554 PyObject * obj0 = 0 ;
13555 char *kwnames[] = {
13556 (char *) "mouseType", NULL
13557 };
13558
13559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MouseEvent",kwnames,&obj0)) goto fail;
13560 if (obj0) {
13561 arg1 = (wxEventType) SWIG_AsInt(obj0);
13562 if (PyErr_Occurred()) SWIG_fail;
13563 }
13564 {
13565 PyThreadState* __tstate = wxPyBeginAllowThreads();
13566 result = (wxMouseEvent *)new wxMouseEvent(arg1);
13567
13568 wxPyEndAllowThreads(__tstate);
13569 if (PyErr_Occurred()) SWIG_fail;
13570 }
13571 {
13572 resultobj = wxPyMake_wxObject(result);
13573 }
13574 return resultobj;
13575 fail:
13576 return NULL;
13577}
13578
13579
13580static PyObject *_wrap_MouseEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) {
13581 PyObject *resultobj;
13582 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13583 bool result;
13584 PyObject * obj0 = 0 ;
13585 char *kwnames[] = {
13586 (char *) "self", NULL
13587 };
13588
13589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsButton",kwnames,&obj0)) goto fail;
13590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13592 {
13593 PyThreadState* __tstate = wxPyBeginAllowThreads();
13594 result = (bool)((wxMouseEvent const *)arg1)->IsButton();
13595
13596 wxPyEndAllowThreads(__tstate);
13597 if (PyErr_Occurred()) SWIG_fail;
13598 }
13599 {
13600 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13601 }
13602 return resultobj;
13603 fail:
13604 return NULL;
13605}
13606
13607
13608static PyObject *_wrap_MouseEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13609 PyObject *resultobj;
13610 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13611 int arg2 = (int) wxMOUSE_BTN_ANY ;
13612 bool result;
13613 PyObject * obj0 = 0 ;
13614 PyObject * obj1 = 0 ;
13615 char *kwnames[] = {
13616 (char *) "self",(char *) "but", NULL
13617 };
13618
13619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail;
13620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13622 if (obj1) {
13623 arg2 = (int) SWIG_AsInt(obj1);
13624 if (PyErr_Occurred()) SWIG_fail;
13625 }
13626 {
13627 PyThreadState* __tstate = wxPyBeginAllowThreads();
13628 result = (bool)((wxMouseEvent const *)arg1)->ButtonDown(arg2);
13629
13630 wxPyEndAllowThreads(__tstate);
13631 if (PyErr_Occurred()) SWIG_fail;
13632 }
13633 {
13634 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13635 }
13636 return resultobj;
13637 fail:
13638 return NULL;
13639}
13640
13641
13642static PyObject *_wrap_MouseEvent_ButtonDClick(PyObject *self, PyObject *args, PyObject *kwargs) {
13643 PyObject *resultobj;
13644 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13645 int arg2 = (int) wxMOUSE_BTN_ANY ;
13646 bool result;
13647 PyObject * obj0 = 0 ;
13648 PyObject * obj1 = 0 ;
13649 char *kwnames[] = {
13650 (char *) "self",(char *) "but", NULL
13651 };
13652
13653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDClick",kwnames,&obj0,&obj1)) goto fail;
13654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13656 if (obj1) {
13657 arg2 = (int) SWIG_AsInt(obj1);
13658 if (PyErr_Occurred()) SWIG_fail;
13659 }
13660 {
13661 PyThreadState* __tstate = wxPyBeginAllowThreads();
13662 result = (bool)((wxMouseEvent const *)arg1)->ButtonDClick(arg2);
13663
13664 wxPyEndAllowThreads(__tstate);
13665 if (PyErr_Occurred()) SWIG_fail;
13666 }
13667 {
13668 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13669 }
13670 return resultobj;
13671 fail:
13672 return NULL;
13673}
13674
13675
13676static PyObject *_wrap_MouseEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) {
13677 PyObject *resultobj;
13678 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13679 int arg2 = (int) wxMOUSE_BTN_ANY ;
13680 bool result;
13681 PyObject * obj0 = 0 ;
13682 PyObject * obj1 = 0 ;
13683 char *kwnames[] = {
13684 (char *) "self",(char *) "but", NULL
13685 };
13686
13687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail;
13688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13690 if (obj1) {
13691 arg2 = (int) SWIG_AsInt(obj1);
13692 if (PyErr_Occurred()) SWIG_fail;
13693 }
13694 {
13695 PyThreadState* __tstate = wxPyBeginAllowThreads();
13696 result = (bool)((wxMouseEvent const *)arg1)->ButtonUp(arg2);
13697
13698 wxPyEndAllowThreads(__tstate);
13699 if (PyErr_Occurred()) SWIG_fail;
13700 }
13701 {
13702 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13703 }
13704 return resultobj;
13705 fail:
13706 return NULL;
13707}
13708
13709
13710static PyObject *_wrap_MouseEvent_Button(PyObject *self, PyObject *args, PyObject *kwargs) {
13711 PyObject *resultobj;
13712 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13713 int arg2 ;
13714 bool result;
13715 PyObject * obj0 = 0 ;
13716 PyObject * obj1 = 0 ;
13717 char *kwnames[] = {
13718 (char *) "self",(char *) "but", NULL
13719 };
13720
13721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_Button",kwnames,&obj0,&obj1)) goto fail;
13722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13724 arg2 = (int) SWIG_AsInt(obj1);
13725 if (PyErr_Occurred()) SWIG_fail;
13726 {
13727 PyThreadState* __tstate = wxPyBeginAllowThreads();
13728 result = (bool)((wxMouseEvent const *)arg1)->Button(arg2);
13729
13730 wxPyEndAllowThreads(__tstate);
13731 if (PyErr_Occurred()) SWIG_fail;
13732 }
13733 {
13734 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13735 }
13736 return resultobj;
13737 fail:
13738 return NULL;
13739}
13740
13741
13742static PyObject *_wrap_MouseEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13743 PyObject *resultobj;
13744 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13745 int arg2 ;
13746 bool result;
13747 PyObject * obj0 = 0 ;
13748 PyObject * obj1 = 0 ;
13749 char *kwnames[] = {
13750 (char *) "self",(char *) "but", NULL
13751 };
13752
13753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail;
13754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13756 arg2 = (int) SWIG_AsInt(obj1);
13757 if (PyErr_Occurred()) SWIG_fail;
13758 {
13759 PyThreadState* __tstate = wxPyBeginAllowThreads();
13760 result = (bool)((wxMouseEvent const *)arg1)->ButtonIsDown(arg2);
13761
13762 wxPyEndAllowThreads(__tstate);
13763 if (PyErr_Occurred()) SWIG_fail;
13764 }
13765 {
13766 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13767 }
13768 return resultobj;
13769 fail:
13770 return NULL;
13771}
13772
13773
13774static PyObject *_wrap_MouseEvent_GetButton(PyObject *self, PyObject *args, PyObject *kwargs) {
13775 PyObject *resultobj;
13776 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13777 int result;
13778 PyObject * obj0 = 0 ;
13779 char *kwnames[] = {
13780 (char *) "self", NULL
13781 };
13782
13783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetButton",kwnames,&obj0)) goto fail;
13784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13786 {
13787 PyThreadState* __tstate = wxPyBeginAllowThreads();
13788 result = (int)((wxMouseEvent const *)arg1)->GetButton();
13789
13790 wxPyEndAllowThreads(__tstate);
13791 if (PyErr_Occurred()) SWIG_fail;
13792 }
13793 resultobj = SWIG_FromInt((int)result);
13794 return resultobj;
13795 fail:
13796 return NULL;
13797}
13798
13799
13800static PyObject *_wrap_MouseEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13801 PyObject *resultobj;
13802 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13803 bool result;
13804 PyObject * obj0 = 0 ;
13805 char *kwnames[] = {
13806 (char *) "self", NULL
13807 };
13808
13809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ControlDown",kwnames,&obj0)) goto fail;
13810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13812 {
13813 PyThreadState* __tstate = wxPyBeginAllowThreads();
13814 result = (bool)((wxMouseEvent const *)arg1)->ControlDown();
13815
13816 wxPyEndAllowThreads(__tstate);
13817 if (PyErr_Occurred()) SWIG_fail;
13818 }
13819 {
13820 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13821 }
13822 return resultobj;
13823 fail:
13824 return NULL;
13825}
13826
13827
13828static PyObject *_wrap_MouseEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13829 PyObject *resultobj;
13830 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13831 bool result;
13832 PyObject * obj0 = 0 ;
13833 char *kwnames[] = {
13834 (char *) "self", NULL
13835 };
13836
13837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MetaDown",kwnames,&obj0)) goto fail;
13838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13840 {
13841 PyThreadState* __tstate = wxPyBeginAllowThreads();
13842 result = (bool)((wxMouseEvent const *)arg1)->MetaDown();
13843
13844 wxPyEndAllowThreads(__tstate);
13845 if (PyErr_Occurred()) SWIG_fail;
13846 }
13847 {
13848 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13849 }
13850 return resultobj;
13851 fail:
13852 return NULL;
13853}
13854
13855
13856static PyObject *_wrap_MouseEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13857 PyObject *resultobj;
13858 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13859 bool result;
13860 PyObject * obj0 = 0 ;
13861 char *kwnames[] = {
13862 (char *) "self", NULL
13863 };
13864
13865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_AltDown",kwnames,&obj0)) goto fail;
13866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13868 {
13869 PyThreadState* __tstate = wxPyBeginAllowThreads();
13870 result = (bool)((wxMouseEvent const *)arg1)->AltDown();
13871
13872 wxPyEndAllowThreads(__tstate);
13873 if (PyErr_Occurred()) SWIG_fail;
13874 }
13875 {
13876 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13877 }
13878 return resultobj;
13879 fail:
13880 return NULL;
13881}
13882
13883
13884static PyObject *_wrap_MouseEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13885 PyObject *resultobj;
13886 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13887 bool result;
13888 PyObject * obj0 = 0 ;
13889 char *kwnames[] = {
13890 (char *) "self", NULL
13891 };
13892
13893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ShiftDown",kwnames,&obj0)) goto fail;
13894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13896 {
13897 PyThreadState* __tstate = wxPyBeginAllowThreads();
13898 result = (bool)((wxMouseEvent const *)arg1)->ShiftDown();
13899
13900 wxPyEndAllowThreads(__tstate);
13901 if (PyErr_Occurred()) SWIG_fail;
13902 }
13903 {
13904 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13905 }
13906 return resultobj;
13907 fail:
13908 return NULL;
13909}
13910
13911
13912static PyObject *_wrap_MouseEvent_LeftDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13913 PyObject *resultobj;
13914 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13915 bool result;
13916 PyObject * obj0 = 0 ;
13917 char *kwnames[] = {
13918 (char *) "self", NULL
13919 };
13920
13921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDown",kwnames,&obj0)) goto fail;
13922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13924 {
13925 PyThreadState* __tstate = wxPyBeginAllowThreads();
13926 result = (bool)((wxMouseEvent const *)arg1)->LeftDown();
13927
13928 wxPyEndAllowThreads(__tstate);
13929 if (PyErr_Occurred()) SWIG_fail;
13930 }
13931 {
13932 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13933 }
13934 return resultobj;
13935 fail:
13936 return NULL;
13937}
13938
13939
13940static PyObject *_wrap_MouseEvent_MiddleDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13941 PyObject *resultobj;
13942 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13943 bool result;
13944 PyObject * obj0 = 0 ;
13945 char *kwnames[] = {
13946 (char *) "self", NULL
13947 };
13948
13949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDown",kwnames,&obj0)) goto fail;
13950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13952 {
13953 PyThreadState* __tstate = wxPyBeginAllowThreads();
13954 result = (bool)((wxMouseEvent const *)arg1)->MiddleDown();
13955
13956 wxPyEndAllowThreads(__tstate);
13957 if (PyErr_Occurred()) SWIG_fail;
13958 }
13959 {
13960 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13961 }
13962 return resultobj;
13963 fail:
13964 return NULL;
13965}
13966
13967
13968static PyObject *_wrap_MouseEvent_RightDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13969 PyObject *resultobj;
13970 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13971 bool result;
13972 PyObject * obj0 = 0 ;
13973 char *kwnames[] = {
13974 (char *) "self", NULL
13975 };
13976
13977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDown",kwnames,&obj0)) goto fail;
13978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13980 {
13981 PyThreadState* __tstate = wxPyBeginAllowThreads();
13982 result = (bool)((wxMouseEvent const *)arg1)->RightDown();
13983
13984 wxPyEndAllowThreads(__tstate);
13985 if (PyErr_Occurred()) SWIG_fail;
13986 }
13987 {
13988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13989 }
13990 return resultobj;
13991 fail:
13992 return NULL;
13993}
13994
13995
13996static PyObject *_wrap_MouseEvent_LeftUp(PyObject *self, PyObject *args, PyObject *kwargs) {
13997 PyObject *resultobj;
13998 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13999 bool result;
14000 PyObject * obj0 = 0 ;
14001 char *kwnames[] = {
14002 (char *) "self", NULL
14003 };
14004
14005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftUp",kwnames,&obj0)) goto fail;
14006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14008 {
14009 PyThreadState* __tstate = wxPyBeginAllowThreads();
14010 result = (bool)((wxMouseEvent const *)arg1)->LeftUp();
14011
14012 wxPyEndAllowThreads(__tstate);
14013 if (PyErr_Occurred()) SWIG_fail;
14014 }
14015 {
14016 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14017 }
14018 return resultobj;
14019 fail:
14020 return NULL;
14021}
14022
14023
14024static PyObject *_wrap_MouseEvent_MiddleUp(PyObject *self, PyObject *args, PyObject *kwargs) {
14025 PyObject *resultobj;
14026 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14027 bool result;
14028 PyObject * obj0 = 0 ;
14029 char *kwnames[] = {
14030 (char *) "self", NULL
14031 };
14032
14033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleUp",kwnames,&obj0)) goto fail;
14034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14036 {
14037 PyThreadState* __tstate = wxPyBeginAllowThreads();
14038 result = (bool)((wxMouseEvent const *)arg1)->MiddleUp();
14039
14040 wxPyEndAllowThreads(__tstate);
14041 if (PyErr_Occurred()) SWIG_fail;
14042 }
14043 {
14044 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14045 }
14046 return resultobj;
14047 fail:
14048 return NULL;
14049}
14050
14051
14052static PyObject *_wrap_MouseEvent_RightUp(PyObject *self, PyObject *args, PyObject *kwargs) {
14053 PyObject *resultobj;
14054 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14055 bool result;
14056 PyObject * obj0 = 0 ;
14057 char *kwnames[] = {
14058 (char *) "self", NULL
14059 };
14060
14061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightUp",kwnames,&obj0)) goto fail;
14062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14064 {
14065 PyThreadState* __tstate = wxPyBeginAllowThreads();
14066 result = (bool)((wxMouseEvent const *)arg1)->RightUp();
14067
14068 wxPyEndAllowThreads(__tstate);
14069 if (PyErr_Occurred()) SWIG_fail;
14070 }
14071 {
14072 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14073 }
14074 return resultobj;
14075 fail:
14076 return NULL;
14077}
14078
14079
14080static PyObject *_wrap_MouseEvent_LeftDClick(PyObject *self, PyObject *args, PyObject *kwargs) {
14081 PyObject *resultobj;
14082 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14083 bool result;
14084 PyObject * obj0 = 0 ;
14085 char *kwnames[] = {
14086 (char *) "self", NULL
14087 };
14088
14089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDClick",kwnames,&obj0)) goto fail;
14090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14092 {
14093 PyThreadState* __tstate = wxPyBeginAllowThreads();
14094 result = (bool)((wxMouseEvent const *)arg1)->LeftDClick();
14095
14096 wxPyEndAllowThreads(__tstate);
14097 if (PyErr_Occurred()) SWIG_fail;
14098 }
14099 {
14100 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14101 }
14102 return resultobj;
14103 fail:
14104 return NULL;
14105}
14106
14107
14108static PyObject *_wrap_MouseEvent_MiddleDClick(PyObject *self, PyObject *args, PyObject *kwargs) {
14109 PyObject *resultobj;
14110 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14111 bool result;
14112 PyObject * obj0 = 0 ;
14113 char *kwnames[] = {
14114 (char *) "self", NULL
14115 };
14116
14117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDClick",kwnames,&obj0)) goto fail;
14118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14120 {
14121 PyThreadState* __tstate = wxPyBeginAllowThreads();
14122 result = (bool)((wxMouseEvent const *)arg1)->MiddleDClick();
14123
14124 wxPyEndAllowThreads(__tstate);
14125 if (PyErr_Occurred()) SWIG_fail;
14126 }
14127 {
14128 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14129 }
14130 return resultobj;
14131 fail:
14132 return NULL;
14133}
14134
14135
14136static PyObject *_wrap_MouseEvent_RightDClick(PyObject *self, PyObject *args, PyObject *kwargs) {
14137 PyObject *resultobj;
14138 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14139 bool result;
14140 PyObject * obj0 = 0 ;
14141 char *kwnames[] = {
14142 (char *) "self", NULL
14143 };
14144
14145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDClick",kwnames,&obj0)) goto fail;
14146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14148 {
14149 PyThreadState* __tstate = wxPyBeginAllowThreads();
14150 result = (bool)((wxMouseEvent const *)arg1)->RightDClick();
14151
14152 wxPyEndAllowThreads(__tstate);
14153 if (PyErr_Occurred()) SWIG_fail;
14154 }
14155 {
14156 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14157 }
14158 return resultobj;
14159 fail:
14160 return NULL;
14161}
14162
14163
14164static PyObject *_wrap_MouseEvent_LeftIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14165 PyObject *resultobj;
14166 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14167 bool result;
14168 PyObject * obj0 = 0 ;
14169 char *kwnames[] = {
14170 (char *) "self", NULL
14171 };
14172
14173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftIsDown",kwnames,&obj0)) goto fail;
14174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14176 {
14177 PyThreadState* __tstate = wxPyBeginAllowThreads();
14178 result = (bool)(arg1)->LeftIsDown();
14179
14180 wxPyEndAllowThreads(__tstate);
14181 if (PyErr_Occurred()) SWIG_fail;
14182 }
14183 {
14184 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14185 }
14186 return resultobj;
14187 fail:
14188 return NULL;
14189}
14190
14191
14192static PyObject *_wrap_MouseEvent_MiddleIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14193 PyObject *resultobj;
14194 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14195 bool result;
14196 PyObject * obj0 = 0 ;
14197 char *kwnames[] = {
14198 (char *) "self", NULL
14199 };
14200
14201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleIsDown",kwnames,&obj0)) goto fail;
14202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14204 {
14205 PyThreadState* __tstate = wxPyBeginAllowThreads();
14206 result = (bool)(arg1)->MiddleIsDown();
14207
14208 wxPyEndAllowThreads(__tstate);
14209 if (PyErr_Occurred()) SWIG_fail;
14210 }
14211 {
14212 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14213 }
14214 return resultobj;
14215 fail:
14216 return NULL;
14217}
14218
14219
14220static PyObject *_wrap_MouseEvent_RightIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14221 PyObject *resultobj;
14222 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14223 bool result;
14224 PyObject * obj0 = 0 ;
14225 char *kwnames[] = {
14226 (char *) "self", NULL
14227 };
14228
14229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightIsDown",kwnames,&obj0)) goto fail;
14230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14232 {
14233 PyThreadState* __tstate = wxPyBeginAllowThreads();
14234 result = (bool)(arg1)->RightIsDown();
14235
14236 wxPyEndAllowThreads(__tstate);
14237 if (PyErr_Occurred()) SWIG_fail;
14238 }
14239 {
14240 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14241 }
14242 return resultobj;
14243 fail:
14244 return NULL;
14245}
14246
14247
14248static PyObject *_wrap_MouseEvent_Dragging(PyObject *self, PyObject *args, PyObject *kwargs) {
14249 PyObject *resultobj;
14250 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14251 bool result;
14252 PyObject * obj0 = 0 ;
14253 char *kwnames[] = {
14254 (char *) "self", NULL
14255 };
14256
14257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Dragging",kwnames,&obj0)) goto fail;
14258 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14260 {
14261 PyThreadState* __tstate = wxPyBeginAllowThreads();
14262 result = (bool)((wxMouseEvent const *)arg1)->Dragging();
14263
14264 wxPyEndAllowThreads(__tstate);
14265 if (PyErr_Occurred()) SWIG_fail;
14266 }
14267 {
14268 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14269 }
14270 return resultobj;
14271 fail:
14272 return NULL;
14273}
14274
14275
14276static PyObject *_wrap_MouseEvent_Moving(PyObject *self, PyObject *args, PyObject *kwargs) {
14277 PyObject *resultobj;
14278 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14279 bool result;
14280 PyObject * obj0 = 0 ;
14281 char *kwnames[] = {
14282 (char *) "self", NULL
14283 };
14284
14285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Moving",kwnames,&obj0)) goto fail;
14286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14288 {
14289 PyThreadState* __tstate = wxPyBeginAllowThreads();
14290 result = (bool)((wxMouseEvent const *)arg1)->Moving();
14291
14292 wxPyEndAllowThreads(__tstate);
14293 if (PyErr_Occurred()) SWIG_fail;
14294 }
14295 {
14296 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14297 }
14298 return resultobj;
14299 fail:
14300 return NULL;
14301}
14302
14303
14304static PyObject *_wrap_MouseEvent_Entering(PyObject *self, PyObject *args, PyObject *kwargs) {
14305 PyObject *resultobj;
14306 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14307 bool result;
14308 PyObject * obj0 = 0 ;
14309 char *kwnames[] = {
14310 (char *) "self", NULL
14311 };
14312
14313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Entering",kwnames,&obj0)) goto fail;
14314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14316 {
14317 PyThreadState* __tstate = wxPyBeginAllowThreads();
14318 result = (bool)((wxMouseEvent const *)arg1)->Entering();
14319
14320 wxPyEndAllowThreads(__tstate);
14321 if (PyErr_Occurred()) SWIG_fail;
14322 }
14323 {
14324 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14325 }
14326 return resultobj;
14327 fail:
14328 return NULL;
14329}
14330
14331
14332static PyObject *_wrap_MouseEvent_Leaving(PyObject *self, PyObject *args, PyObject *kwargs) {
14333 PyObject *resultobj;
14334 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14335 bool result;
14336 PyObject * obj0 = 0 ;
14337 char *kwnames[] = {
14338 (char *) "self", NULL
14339 };
14340
14341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Leaving",kwnames,&obj0)) goto fail;
14342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14344 {
14345 PyThreadState* __tstate = wxPyBeginAllowThreads();
14346 result = (bool)((wxMouseEvent const *)arg1)->Leaving();
14347
14348 wxPyEndAllowThreads(__tstate);
14349 if (PyErr_Occurred()) SWIG_fail;
14350 }
14351 {
14352 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14353 }
14354 return resultobj;
14355 fail:
14356 return NULL;
14357}
14358
14359
14360static PyObject *_wrap_MouseEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
14361 PyObject *resultobj;
14362 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14363 wxPoint result;
14364 PyObject * obj0 = 0 ;
14365 char *kwnames[] = {
14366 (char *) "self", NULL
14367 };
14368
14369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPosition",kwnames,&obj0)) goto fail;
14370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14372 {
14373 PyThreadState* __tstate = wxPyBeginAllowThreads();
14374 result = (arg1)->GetPosition();
14375
14376 wxPyEndAllowThreads(__tstate);
14377 if (PyErr_Occurred()) SWIG_fail;
14378 }
14379 {
14380 wxPoint * resultptr;
14381 resultptr = new wxPoint((wxPoint &) result);
14382 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14383 }
14384 return resultobj;
14385 fail:
14386 return NULL;
14387}
14388
14389
14390static PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14391 PyObject *resultobj;
14392 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14393 long *arg2 = (long *) 0 ;
14394 long *arg3 = (long *) 0 ;
14395 long temp2 ;
14396 long temp3 ;
14397 PyObject * obj0 = 0 ;
14398 char *kwnames[] = {
14399 (char *) "self", NULL
14400 };
14401
14402 arg2 = &temp2;
14403 arg3 = &temp3;
14404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPositionTuple",kwnames,&obj0)) goto fail;
14405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14407 {
14408 PyThreadState* __tstate = wxPyBeginAllowThreads();
14409 (arg1)->GetPosition(arg2,arg3);
14410
14411 wxPyEndAllowThreads(__tstate);
14412 if (PyErr_Occurred()) SWIG_fail;
14413 }
14414 Py_INCREF(Py_None); resultobj = Py_None;
14415 {
14416 PyObject *o = PyInt_FromLong((long) (*arg2));
14417 resultobj = t_output_helper(resultobj,o);
14418 }
14419 {
14420 PyObject *o = PyInt_FromLong((long) (*arg3));
14421 resultobj = t_output_helper(resultobj,o);
14422 }
14423 return resultobj;
14424 fail:
14425 return NULL;
14426}
14427
14428
14429static PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
14430 PyObject *resultobj;
14431 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14432 wxDC *arg2 = 0 ;
14433 wxPoint result;
14434 PyObject * obj0 = 0 ;
14435 PyObject * obj1 = 0 ;
14436 char *kwnames[] = {
14437 (char *) "self",(char *) "dc", NULL
14438 };
14439
14440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) goto fail;
14441 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14443 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
14444 SWIG_POINTER_EXCEPTION | 0)) == -1)
14445 SWIG_fail;
14446 if (arg2 == NULL) {
14447 PyErr_SetString(PyExc_TypeError,"null reference");
14448 SWIG_fail;
14449 }
14450 {
14451 PyThreadState* __tstate = wxPyBeginAllowThreads();
14452 result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2);
14453
14454 wxPyEndAllowThreads(__tstate);
14455 if (PyErr_Occurred()) SWIG_fail;
14456 }
14457 {
14458 wxPoint * resultptr;
14459 resultptr = new wxPoint((wxPoint &) result);
14460 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14461 }
14462 return resultobj;
14463 fail:
14464 return NULL;
14465}
14466
14467
14468static PyObject *_wrap_MouseEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
14469 PyObject *resultobj;
14470 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14471 int result;
14472 PyObject * obj0 = 0 ;
14473 char *kwnames[] = {
14474 (char *) "self", NULL
14475 };
14476
14477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetX",kwnames,&obj0)) goto fail;
14478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14480 {
14481 PyThreadState* __tstate = wxPyBeginAllowThreads();
14482 result = (int)((wxMouseEvent const *)arg1)->GetX();
14483
14484 wxPyEndAllowThreads(__tstate);
14485 if (PyErr_Occurred()) SWIG_fail;
14486 }
14487 resultobj = SWIG_FromInt((int)result);
14488 return resultobj;
14489 fail:
14490 return NULL;
14491}
14492
14493
14494static PyObject *_wrap_MouseEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
14495 PyObject *resultobj;
14496 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14497 int result;
14498 PyObject * obj0 = 0 ;
14499 char *kwnames[] = {
14500 (char *) "self", NULL
14501 };
14502
14503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetY",kwnames,&obj0)) goto fail;
14504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14506 {
14507 PyThreadState* __tstate = wxPyBeginAllowThreads();
14508 result = (int)((wxMouseEvent const *)arg1)->GetY();
14509
14510 wxPyEndAllowThreads(__tstate);
14511 if (PyErr_Occurred()) SWIG_fail;
14512 }
14513 resultobj = SWIG_FromInt((int)result);
14514 return resultobj;
14515 fail:
14516 return NULL;
14517}
14518
14519
14520static PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *self, PyObject *args, PyObject *kwargs) {
14521 PyObject *resultobj;
14522 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14523 int result;
14524 PyObject * obj0 = 0 ;
14525 char *kwnames[] = {
14526 (char *) "self", NULL
14527 };
14528
14529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelRotation",kwnames,&obj0)) goto fail;
14530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14532 {
14533 PyThreadState* __tstate = wxPyBeginAllowThreads();
14534 result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation();
14535
14536 wxPyEndAllowThreads(__tstate);
14537 if (PyErr_Occurred()) SWIG_fail;
14538 }
14539 resultobj = SWIG_FromInt((int)result);
14540 return resultobj;
14541 fail:
14542 return NULL;
14543}
14544
14545
14546static PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *self, PyObject *args, PyObject *kwargs) {
14547 PyObject *resultobj;
14548 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14549 int result;
14550 PyObject * obj0 = 0 ;
14551 char *kwnames[] = {
14552 (char *) "self", NULL
14553 };
14554
14555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelDelta",kwnames,&obj0)) goto fail;
14556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14558 {
14559 PyThreadState* __tstate = wxPyBeginAllowThreads();
14560 result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta();
14561
14562 wxPyEndAllowThreads(__tstate);
14563 if (PyErr_Occurred()) SWIG_fail;
14564 }
14565 resultobj = SWIG_FromInt((int)result);
14566 return resultobj;
14567 fail:
14568 return NULL;
14569}
14570
14571
14572static PyObject *_wrap_MouseEvent_GetLinesPerAction(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_GetLinesPerAction",kwnames,&obj0)) goto fail;
14582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14584 {
14585 PyThreadState* __tstate = wxPyBeginAllowThreads();
14586 result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction();
14587
14588 wxPyEndAllowThreads(__tstate);
14589 if (PyErr_Occurred()) SWIG_fail;
14590 }
14591 resultobj = SWIG_FromInt((int)result);
14592 return resultobj;
14593 fail:
14594 return NULL;
14595}
14596
14597
14598static PyObject *_wrap_MouseEvent_IsPageScroll(PyObject *self, PyObject *args, PyObject *kwargs) {
14599 PyObject *resultobj;
14600 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14601 bool result;
14602 PyObject * obj0 = 0 ;
14603 char *kwnames[] = {
14604 (char *) "self", NULL
14605 };
14606
14607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsPageScroll",kwnames,&obj0)) goto fail;
14608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14610 {
14611 PyThreadState* __tstate = wxPyBeginAllowThreads();
14612 result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll();
14613
14614 wxPyEndAllowThreads(__tstate);
14615 if (PyErr_Occurred()) SWIG_fail;
14616 }
14617 {
14618 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14619 }
14620 return resultobj;
14621 fail:
14622 return NULL;
14623}
14624
14625
14626static PyObject *_wrap_MouseEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14627 PyObject *resultobj;
14628 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14629 int arg2 ;
14630 PyObject * obj0 = 0 ;
14631 PyObject * obj1 = 0 ;
14632 char *kwnames[] = {
14633 (char *) "self",(char *) "m_x", NULL
14634 };
14635
14636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail;
14637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14639 arg2 = (int) SWIG_AsInt(obj1);
14640 if (PyErr_Occurred()) SWIG_fail;
14641 if (arg1) (arg1)->m_x = arg2;
14642
14643 Py_INCREF(Py_None); resultobj = Py_None;
14644 return resultobj;
14645 fail:
14646 return NULL;
14647}
14648
14649
14650static PyObject *_wrap_MouseEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14651 PyObject *resultobj;
14652 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14653 int result;
14654 PyObject * obj0 = 0 ;
14655 char *kwnames[] = {
14656 (char *) "self", NULL
14657 };
14658
14659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_x_get",kwnames,&obj0)) goto fail;
14660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14662 result = (int) ((arg1)->m_x);
14663
14664 resultobj = SWIG_FromInt((int)result);
14665 return resultobj;
14666 fail:
14667 return NULL;
14668}
14669
14670
14671static PyObject *_wrap_MouseEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14672 PyObject *resultobj;
14673 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14674 int arg2 ;
14675 PyObject * obj0 = 0 ;
14676 PyObject * obj1 = 0 ;
14677 char *kwnames[] = {
14678 (char *) "self",(char *) "m_y", NULL
14679 };
14680
14681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail;
14682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14684 arg2 = (int) SWIG_AsInt(obj1);
14685 if (PyErr_Occurred()) SWIG_fail;
14686 if (arg1) (arg1)->m_y = arg2;
14687
14688 Py_INCREF(Py_None); resultobj = Py_None;
14689 return resultobj;
14690 fail:
14691 return NULL;
14692}
14693
14694
14695static PyObject *_wrap_MouseEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14696 PyObject *resultobj;
14697 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14698 int result;
14699 PyObject * obj0 = 0 ;
14700 char *kwnames[] = {
14701 (char *) "self", NULL
14702 };
14703
14704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_y_get",kwnames,&obj0)) goto fail;
14705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14707 result = (int) ((arg1)->m_y);
14708
14709 resultobj = SWIG_FromInt((int)result);
14710 return resultobj;
14711 fail:
14712 return NULL;
14713}
14714
14715
14716static PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14717 PyObject *resultobj;
14718 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14719 bool arg2 ;
14720 PyObject * obj0 = 0 ;
14721 PyObject * obj1 = 0 ;
14722 char *kwnames[] = {
14723 (char *) "self",(char *) "m_leftDown", NULL
14724 };
14725
14726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_leftDown_set",kwnames,&obj0,&obj1)) goto fail;
14727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14729 arg2 = (bool) SWIG_AsBool(obj1);
14730 if (PyErr_Occurred()) SWIG_fail;
14731 if (arg1) (arg1)->m_leftDown = arg2;
14732
14733 Py_INCREF(Py_None); resultobj = Py_None;
14734 return resultobj;
14735 fail:
14736 return NULL;
14737}
14738
14739
14740static PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14741 PyObject *resultobj;
14742 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14743 bool result;
14744 PyObject * obj0 = 0 ;
14745 char *kwnames[] = {
14746 (char *) "self", NULL
14747 };
14748
14749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_leftDown_get",kwnames,&obj0)) goto fail;
14750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14752 result = (bool) ((arg1)->m_leftDown);
14753
14754 {
14755 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14756 }
14757 return resultobj;
14758 fail:
14759 return NULL;
14760}
14761
14762
14763static PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14764 PyObject *resultobj;
14765 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14766 bool arg2 ;
14767 PyObject * obj0 = 0 ;
14768 PyObject * obj1 = 0 ;
14769 char *kwnames[] = {
14770 (char *) "self",(char *) "m_middleDown", NULL
14771 };
14772
14773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_middleDown_set",kwnames,&obj0,&obj1)) goto fail;
14774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14776 arg2 = (bool) SWIG_AsBool(obj1);
14777 if (PyErr_Occurred()) SWIG_fail;
14778 if (arg1) (arg1)->m_middleDown = arg2;
14779
14780 Py_INCREF(Py_None); resultobj = Py_None;
14781 return resultobj;
14782 fail:
14783 return NULL;
14784}
14785
14786
14787static PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14788 PyObject *resultobj;
14789 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14790 bool result;
14791 PyObject * obj0 = 0 ;
14792 char *kwnames[] = {
14793 (char *) "self", NULL
14794 };
14795
14796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_middleDown_get",kwnames,&obj0)) goto fail;
14797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14799 result = (bool) ((arg1)->m_middleDown);
14800
14801 {
14802 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14803 }
14804 return resultobj;
14805 fail:
14806 return NULL;
14807}
14808
14809
14810static PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14811 PyObject *resultobj;
14812 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14813 bool arg2 ;
14814 PyObject * obj0 = 0 ;
14815 PyObject * obj1 = 0 ;
14816 char *kwnames[] = {
14817 (char *) "self",(char *) "m_rightDown", NULL
14818 };
14819
14820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_rightDown_set",kwnames,&obj0,&obj1)) goto fail;
14821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14823 arg2 = (bool) SWIG_AsBool(obj1);
14824 if (PyErr_Occurred()) SWIG_fail;
14825 if (arg1) (arg1)->m_rightDown = arg2;
14826
14827 Py_INCREF(Py_None); resultobj = Py_None;
14828 return resultobj;
14829 fail:
14830 return NULL;
14831}
14832
14833
14834static PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14835 PyObject *resultobj;
14836 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14837 bool result;
14838 PyObject * obj0 = 0 ;
14839 char *kwnames[] = {
14840 (char *) "self", NULL
14841 };
14842
14843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_rightDown_get",kwnames,&obj0)) goto fail;
14844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14846 result = (bool) ((arg1)->m_rightDown);
14847
14848 {
14849 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14850 }
14851 return resultobj;
14852 fail:
14853 return NULL;
14854}
14855
14856
14857static PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14858 PyObject *resultobj;
14859 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14860 bool arg2 ;
14861 PyObject * obj0 = 0 ;
14862 PyObject * obj1 = 0 ;
14863 char *kwnames[] = {
14864 (char *) "self",(char *) "m_controlDown", NULL
14865 };
14866
14867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail;
14868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14870 arg2 = (bool) SWIG_AsBool(obj1);
14871 if (PyErr_Occurred()) SWIG_fail;
14872 if (arg1) (arg1)->m_controlDown = arg2;
14873
14874 Py_INCREF(Py_None); resultobj = Py_None;
14875 return resultobj;
14876 fail:
14877 return NULL;
14878}
14879
14880
14881static PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14882 PyObject *resultobj;
14883 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14884 bool result;
14885 PyObject * obj0 = 0 ;
14886 char *kwnames[] = {
14887 (char *) "self", NULL
14888 };
14889
14890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_controlDown_get",kwnames,&obj0)) goto fail;
14891 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14893 result = (bool) ((arg1)->m_controlDown);
14894
14895 {
14896 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14897 }
14898 return resultobj;
14899 fail:
14900 return NULL;
14901}
14902
14903
14904static PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14905 PyObject *resultobj;
14906 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14907 bool arg2 ;
14908 PyObject * obj0 = 0 ;
14909 PyObject * obj1 = 0 ;
14910 char *kwnames[] = {
14911 (char *) "self",(char *) "m_shiftDown", NULL
14912 };
14913
14914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail;
14915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14917 arg2 = (bool) SWIG_AsBool(obj1);
14918 if (PyErr_Occurred()) SWIG_fail;
14919 if (arg1) (arg1)->m_shiftDown = arg2;
14920
14921 Py_INCREF(Py_None); resultobj = Py_None;
14922 return resultobj;
14923 fail:
14924 return NULL;
14925}
14926
14927
14928static PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14929 PyObject *resultobj;
14930 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14931 bool result;
14932 PyObject * obj0 = 0 ;
14933 char *kwnames[] = {
14934 (char *) "self", NULL
14935 };
14936
14937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_shiftDown_get",kwnames,&obj0)) goto fail;
14938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14940 result = (bool) ((arg1)->m_shiftDown);
14941
14942 {
14943 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14944 }
14945 return resultobj;
14946 fail:
14947 return NULL;
14948}
14949
14950
14951static PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14952 PyObject *resultobj;
14953 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14954 bool arg2 ;
14955 PyObject * obj0 = 0 ;
14956 PyObject * obj1 = 0 ;
14957 char *kwnames[] = {
14958 (char *) "self",(char *) "m_altDown", NULL
14959 };
14960
14961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail;
14962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14964 arg2 = (bool) SWIG_AsBool(obj1);
14965 if (PyErr_Occurred()) SWIG_fail;
14966 if (arg1) (arg1)->m_altDown = arg2;
14967
14968 Py_INCREF(Py_None); resultobj = Py_None;
14969 return resultobj;
14970 fail:
14971 return NULL;
14972}
14973
14974
14975static PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14976 PyObject *resultobj;
14977 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14978 bool result;
14979 PyObject * obj0 = 0 ;
14980 char *kwnames[] = {
14981 (char *) "self", NULL
14982 };
14983
14984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_altDown_get",kwnames,&obj0)) goto fail;
14985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14987 result = (bool) ((arg1)->m_altDown);
14988
14989 {
14990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14991 }
14992 return resultobj;
14993 fail:
14994 return NULL;
14995}
14996
14997
14998static PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14999 PyObject *resultobj;
15000 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15001 bool arg2 ;
15002 PyObject * obj0 = 0 ;
15003 PyObject * obj1 = 0 ;
15004 char *kwnames[] = {
15005 (char *) "self",(char *) "m_metaDown", NULL
15006 };
15007
15008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail;
15009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15011 arg2 = (bool) SWIG_AsBool(obj1);
15012 if (PyErr_Occurred()) SWIG_fail;
15013 if (arg1) (arg1)->m_metaDown = arg2;
15014
15015 Py_INCREF(Py_None); resultobj = Py_None;
15016 return resultobj;
15017 fail:
15018 return NULL;
15019}
15020
15021
15022static PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15023 PyObject *resultobj;
15024 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15025 bool result;
15026 PyObject * obj0 = 0 ;
15027 char *kwnames[] = {
15028 (char *) "self", NULL
15029 };
15030
15031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_metaDown_get",kwnames,&obj0)) goto fail;
15032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15034 result = (bool) ((arg1)->m_metaDown);
15035
15036 {
15037 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15038 }
15039 return resultobj;
15040 fail:
15041 return NULL;
15042}
15043
15044
15045static PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15046 PyObject *resultobj;
15047 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15048 int arg2 ;
15049 PyObject * obj0 = 0 ;
15050 PyObject * obj1 = 0 ;
15051 char *kwnames[] = {
15052 (char *) "self",(char *) "m_wheelRotation", NULL
15053 };
15054
15055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelRotation_set",kwnames,&obj0,&obj1)) goto fail;
15056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15058 arg2 = (int) SWIG_AsInt(obj1);
15059 if (PyErr_Occurred()) SWIG_fail;
15060 if (arg1) (arg1)->m_wheelRotation = arg2;
15061
15062 Py_INCREF(Py_None); resultobj = Py_None;
15063 return resultobj;
15064 fail:
15065 return NULL;
15066}
15067
15068
15069static PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15070 PyObject *resultobj;
15071 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15072 int result;
15073 PyObject * obj0 = 0 ;
15074 char *kwnames[] = {
15075 (char *) "self", NULL
15076 };
15077
15078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelRotation_get",kwnames,&obj0)) goto fail;
15079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15081 result = (int) ((arg1)->m_wheelRotation);
15082
15083 resultobj = SWIG_FromInt((int)result);
15084 return resultobj;
15085 fail:
15086 return NULL;
15087}
15088
15089
15090static PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15091 PyObject *resultobj;
15092 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15093 int arg2 ;
15094 PyObject * obj0 = 0 ;
15095 PyObject * obj1 = 0 ;
15096 char *kwnames[] = {
15097 (char *) "self",(char *) "m_wheelDelta", NULL
15098 };
15099
15100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelDelta_set",kwnames,&obj0,&obj1)) goto fail;
15101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15103 arg2 = (int) SWIG_AsInt(obj1);
15104 if (PyErr_Occurred()) SWIG_fail;
15105 if (arg1) (arg1)->m_wheelDelta = arg2;
15106
15107 Py_INCREF(Py_None); resultobj = Py_None;
15108 return resultobj;
15109 fail:
15110 return NULL;
15111}
15112
15113
15114static PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15115 PyObject *resultobj;
15116 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15117 int result;
15118 PyObject * obj0 = 0 ;
15119 char *kwnames[] = {
15120 (char *) "self", NULL
15121 };
15122
15123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelDelta_get",kwnames,&obj0)) goto fail;
15124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15126 result = (int) ((arg1)->m_wheelDelta);
15127
15128 resultobj = SWIG_FromInt((int)result);
15129 return resultobj;
15130 fail:
15131 return NULL;
15132}
15133
15134
15135static PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15136 PyObject *resultobj;
15137 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15138 int arg2 ;
15139 PyObject * obj0 = 0 ;
15140 PyObject * obj1 = 0 ;
15141 char *kwnames[] = {
15142 (char *) "self",(char *) "m_linesPerAction", NULL
15143 };
15144
15145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_linesPerAction_set",kwnames,&obj0,&obj1)) goto fail;
15146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15148 arg2 = (int) SWIG_AsInt(obj1);
15149 if (PyErr_Occurred()) SWIG_fail;
15150 if (arg1) (arg1)->m_linesPerAction = arg2;
15151
15152 Py_INCREF(Py_None); resultobj = Py_None;
15153 return resultobj;
15154 fail:
15155 return NULL;
15156}
15157
15158
15159static PyObject *_wrap_MouseEvent_m_linesPerAction_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15160 PyObject *resultobj;
15161 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15162 int result;
15163 PyObject * obj0 = 0 ;
15164 char *kwnames[] = {
15165 (char *) "self", NULL
15166 };
15167
15168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_linesPerAction_get",kwnames,&obj0)) goto fail;
15169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15171 result = (int) ((arg1)->m_linesPerAction);
15172
15173 resultobj = SWIG_FromInt((int)result);
15174 return resultobj;
15175 fail:
15176 return NULL;
15177}
15178
15179
15180static PyObject * MouseEvent_swigregister(PyObject *self, PyObject *args) {
15181 PyObject *obj;
15182 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15183 SWIG_TypeClientData(SWIGTYPE_p_wxMouseEvent, obj);
15184 Py_INCREF(obj);
15185 return Py_BuildValue((char *)"");
15186}
15187static PyObject *_wrap_new_SetCursorEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
15188 PyObject *resultobj;
15189 int arg1 = (int) 0 ;
15190 int arg2 = (int) 0 ;
15191 wxSetCursorEvent *result;
15192 PyObject * obj0 = 0 ;
15193 PyObject * obj1 = 0 ;
15194 char *kwnames[] = {
15195 (char *) "x",(char *) "y", NULL
15196 };
15197
15198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SetCursorEvent",kwnames,&obj0,&obj1)) goto fail;
15199 if (obj0) {
15200 arg1 = (int) SWIG_AsInt(obj0);
15201 if (PyErr_Occurred()) SWIG_fail;
15202 }
15203 if (obj1) {
15204 arg2 = (int) SWIG_AsInt(obj1);
15205 if (PyErr_Occurred()) SWIG_fail;
15206 }
15207 {
15208 PyThreadState* __tstate = wxPyBeginAllowThreads();
15209 result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2);
15210
15211 wxPyEndAllowThreads(__tstate);
15212 if (PyErr_Occurred()) SWIG_fail;
15213 }
15214 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSetCursorEvent, 1);
15215 return resultobj;
15216 fail:
15217 return NULL;
15218}
15219
15220
15221static PyObject *_wrap_SetCursorEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
15222 PyObject *resultobj;
15223 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
15224 int result;
15225 PyObject * obj0 = 0 ;
15226 char *kwnames[] = {
15227 (char *) "self", NULL
15228 };
15229
15230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetX",kwnames,&obj0)) goto fail;
15231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent,
15232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15233 {
15234 PyThreadState* __tstate = wxPyBeginAllowThreads();
15235 result = (int)((wxSetCursorEvent const *)arg1)->GetX();
15236
15237 wxPyEndAllowThreads(__tstate);
15238 if (PyErr_Occurred()) SWIG_fail;
15239 }
15240 resultobj = SWIG_FromInt((int)result);
15241 return resultobj;
15242 fail:
15243 return NULL;
15244}
15245
15246
15247static PyObject *_wrap_SetCursorEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
15248 PyObject *resultobj;
15249 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
15250 int result;
15251 PyObject * obj0 = 0 ;
15252 char *kwnames[] = {
15253 (char *) "self", NULL
15254 };
15255
15256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetY",kwnames,&obj0)) goto fail;
15257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent,
15258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15259 {
15260 PyThreadState* __tstate = wxPyBeginAllowThreads();
15261 result = (int)((wxSetCursorEvent const *)arg1)->GetY();
15262
15263 wxPyEndAllowThreads(__tstate);
15264 if (PyErr_Occurred()) SWIG_fail;
15265 }
15266 resultobj = SWIG_FromInt((int)result);
15267 return resultobj;
15268 fail:
15269 return NULL;
15270}
15271
15272
15273static PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
15274 PyObject *resultobj;
15275 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
15276 wxCursor *arg2 = 0 ;
15277 PyObject * obj0 = 0 ;
15278 PyObject * obj1 = 0 ;
15279 char *kwnames[] = {
15280 (char *) "self",(char *) "cursor", NULL
15281 };
15282
15283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) goto fail;
15284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent,
15285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15286 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
15287 SWIG_POINTER_EXCEPTION | 0)) == -1)
15288 SWIG_fail;
15289 if (arg2 == NULL) {
15290 PyErr_SetString(PyExc_TypeError,"null reference");
15291 SWIG_fail;
15292 }
15293 {
15294 PyThreadState* __tstate = wxPyBeginAllowThreads();
15295 (arg1)->SetCursor((wxCursor const &)*arg2);
15296
15297 wxPyEndAllowThreads(__tstate);
15298 if (PyErr_Occurred()) SWIG_fail;
15299 }
15300 Py_INCREF(Py_None); resultobj = Py_None;
15301 return resultobj;
15302 fail:
15303 return NULL;
15304}
15305
15306
15307static PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
15308 PyObject *resultobj;
15309 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
15310 wxCursor *result;
15311 PyObject * obj0 = 0 ;
15312 char *kwnames[] = {
15313 (char *) "self", NULL
15314 };
15315
15316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetCursor",kwnames,&obj0)) goto fail;
15317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent,
15318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15319 {
15320 PyThreadState* __tstate = wxPyBeginAllowThreads();
15321 {
15322 wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor();
15323 result = (wxCursor *) &_result_ref;
15324 }
15325
15326 wxPyEndAllowThreads(__tstate);
15327 if (PyErr_Occurred()) SWIG_fail;
15328 }
15329 {
15330 wxCursor* resultptr = new wxCursor(*result);
15331 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1);
15332 }
15333 return resultobj;
15334 fail:
15335 return NULL;
15336}
15337
15338
15339static PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
15340 PyObject *resultobj;
15341 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
15342 bool result;
15343 PyObject * obj0 = 0 ;
15344 char *kwnames[] = {
15345 (char *) "self", NULL
15346 };
15347
15348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_HasCursor",kwnames,&obj0)) goto fail;
15349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent,
15350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15351 {
15352 PyThreadState* __tstate = wxPyBeginAllowThreads();
15353 result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor();
15354
15355 wxPyEndAllowThreads(__tstate);
15356 if (PyErr_Occurred()) SWIG_fail;
15357 }
15358 {
15359 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15360 }
15361 return resultobj;
15362 fail:
15363 return NULL;
15364}
15365
15366
15367static PyObject * SetCursorEvent_swigregister(PyObject *self, PyObject *args) {
15368 PyObject *obj;
15369 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15370 SWIG_TypeClientData(SWIGTYPE_p_wxSetCursorEvent, obj);
15371 Py_INCREF(obj);
15372 return Py_BuildValue((char *)"");
15373}
15374static PyObject *_wrap_new_KeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
15375 PyObject *resultobj;
15376 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15377 wxKeyEvent *result;
15378 PyObject * obj0 = 0 ;
15379 char *kwnames[] = {
15380 (char *) "keyType", NULL
15381 };
15382
15383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_KeyEvent",kwnames,&obj0)) goto fail;
15384 if (obj0) {
15385 arg1 = (wxEventType) SWIG_AsInt(obj0);
15386 if (PyErr_Occurred()) SWIG_fail;
15387 }
15388 {
15389 PyThreadState* __tstate = wxPyBeginAllowThreads();
15390 result = (wxKeyEvent *)new wxKeyEvent(arg1);
15391
15392 wxPyEndAllowThreads(__tstate);
15393 if (PyErr_Occurred()) SWIG_fail;
15394 }
15395 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 1);
15396 return resultobj;
15397 fail:
15398 return NULL;
15399}
15400
15401
15402static PyObject *_wrap_KeyEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) {
15403 PyObject *resultobj;
15404 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15405 bool result;
15406 PyObject * obj0 = 0 ;
15407 char *kwnames[] = {
15408 (char *) "self", NULL
15409 };
15410
15411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ControlDown",kwnames,&obj0)) goto fail;
15412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15414 {
15415 PyThreadState* __tstate = wxPyBeginAllowThreads();
15416 result = (bool)((wxKeyEvent const *)arg1)->ControlDown();
15417
15418 wxPyEndAllowThreads(__tstate);
15419 if (PyErr_Occurred()) SWIG_fail;
15420 }
15421 {
15422 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15423 }
15424 return resultobj;
15425 fail:
15426 return NULL;
15427}
15428
15429
15430static PyObject *_wrap_KeyEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) {
15431 PyObject *resultobj;
15432 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15433 bool result;
15434 PyObject * obj0 = 0 ;
15435 char *kwnames[] = {
15436 (char *) "self", NULL
15437 };
15438
15439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_MetaDown",kwnames,&obj0)) goto fail;
15440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15442 {
15443 PyThreadState* __tstate = wxPyBeginAllowThreads();
15444 result = (bool)((wxKeyEvent const *)arg1)->MetaDown();
15445
15446 wxPyEndAllowThreads(__tstate);
15447 if (PyErr_Occurred()) SWIG_fail;
15448 }
15449 {
15450 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15451 }
15452 return resultobj;
15453 fail:
15454 return NULL;
15455}
15456
15457
15458static PyObject *_wrap_KeyEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) {
15459 PyObject *resultobj;
15460 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15461 bool result;
15462 PyObject * obj0 = 0 ;
15463 char *kwnames[] = {
15464 (char *) "self", NULL
15465 };
15466
15467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_AltDown",kwnames,&obj0)) goto fail;
15468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15470 {
15471 PyThreadState* __tstate = wxPyBeginAllowThreads();
15472 result = (bool)((wxKeyEvent const *)arg1)->AltDown();
15473
15474 wxPyEndAllowThreads(__tstate);
15475 if (PyErr_Occurred()) SWIG_fail;
15476 }
15477 {
15478 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15479 }
15480 return resultobj;
15481 fail:
15482 return NULL;
15483}
15484
15485
15486static PyObject *_wrap_KeyEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) {
15487 PyObject *resultobj;
15488 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15489 bool result;
15490 PyObject * obj0 = 0 ;
15491 char *kwnames[] = {
15492 (char *) "self", NULL
15493 };
15494
15495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ShiftDown",kwnames,&obj0)) goto fail;
15496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15498 {
15499 PyThreadState* __tstate = wxPyBeginAllowThreads();
15500 result = (bool)((wxKeyEvent const *)arg1)->ShiftDown();
15501
15502 wxPyEndAllowThreads(__tstate);
15503 if (PyErr_Occurred()) SWIG_fail;
15504 }
15505 {
15506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15507 }
15508 return resultobj;
15509 fail:
15510 return NULL;
15511}
15512
15513
15514static PyObject *_wrap_KeyEvent_HasModifiers(PyObject *self, PyObject *args, PyObject *kwargs) {
15515 PyObject *resultobj;
15516 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15517 bool result;
15518 PyObject * obj0 = 0 ;
15519 char *kwnames[] = {
15520 (char *) "self", NULL
15521 };
15522
15523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_HasModifiers",kwnames,&obj0)) goto fail;
15524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15526 {
15527 PyThreadState* __tstate = wxPyBeginAllowThreads();
15528 result = (bool)((wxKeyEvent const *)arg1)->HasModifiers();
15529
15530 wxPyEndAllowThreads(__tstate);
15531 if (PyErr_Occurred()) SWIG_fail;
15532 }
15533 {
15534 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15535 }
15536 return resultobj;
15537 fail:
15538 return NULL;
15539}
15540
15541
15542static PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
15543 PyObject *resultobj;
15544 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15545 int result;
15546 PyObject * obj0 = 0 ;
15547 char *kwnames[] = {
15548 (char *) "self", NULL
15549 };
15550
15551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetKeyCode",kwnames,&obj0)) goto fail;
15552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15554 {
15555 PyThreadState* __tstate = wxPyBeginAllowThreads();
15556 result = (int)((wxKeyEvent const *)arg1)->GetKeyCode();
15557
15558 wxPyEndAllowThreads(__tstate);
15559 if (PyErr_Occurred()) SWIG_fail;
15560 }
15561 resultobj = SWIG_FromInt((int)result);
15562 return resultobj;
15563 fail:
15564 return NULL;
15565}
15566
15567
15568static PyObject *_wrap_KeyEvent_GetUniChar(PyObject *self, PyObject *args, PyObject *kwargs) {
15569 PyObject *resultobj;
15570 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15571 int result;
15572 PyObject * obj0 = 0 ;
15573 char *kwnames[] = {
15574 (char *) "self", NULL
15575 };
15576
15577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetUniChar",kwnames,&obj0)) goto fail;
15578 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15580 {
15581 PyThreadState* __tstate = wxPyBeginAllowThreads();
15582 result = (int)wxKeyEvent_GetUniChar(arg1);
15583
15584 wxPyEndAllowThreads(__tstate);
15585 if (PyErr_Occurred()) SWIG_fail;
15586 }
15587 resultobj = SWIG_FromInt((int)result);
15588 return resultobj;
15589 fail:
15590 return NULL;
15591}
15592
15593
15594static PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
15595 PyObject *resultobj;
15596 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15597 unsigned int result;
15598 PyObject * obj0 = 0 ;
15599 char *kwnames[] = {
15600 (char *) "self", NULL
15601 };
15602
15603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyCode",kwnames,&obj0)) goto fail;
15604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15606 {
15607 PyThreadState* __tstate = wxPyBeginAllowThreads();
15608 result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyCode();
15609
15610 wxPyEndAllowThreads(__tstate);
15611 if (PyErr_Occurred()) SWIG_fail;
15612 }
15613 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
15614 return resultobj;
15615 fail:
15616 return NULL;
15617}
15618
15619
15620static PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
15621 PyObject *resultobj;
15622 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15623 unsigned int result;
15624 PyObject * obj0 = 0 ;
15625 char *kwnames[] = {
15626 (char *) "self", NULL
15627 };
15628
15629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyFlags",kwnames,&obj0)) goto fail;
15630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15632 {
15633 PyThreadState* __tstate = wxPyBeginAllowThreads();
15634 result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyFlags();
15635
15636 wxPyEndAllowThreads(__tstate);
15637 if (PyErr_Occurred()) SWIG_fail;
15638 }
15639 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
15640 return resultobj;
15641 fail:
15642 return NULL;
15643}
15644
15645
15646static PyObject *_wrap_KeyEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
15647 PyObject *resultobj;
15648 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15649 wxPoint result;
15650 PyObject * obj0 = 0 ;
15651 char *kwnames[] = {
15652 (char *) "self", NULL
15653 };
15654
15655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPosition",kwnames,&obj0)) goto fail;
15656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15658 {
15659 PyThreadState* __tstate = wxPyBeginAllowThreads();
15660 result = (arg1)->GetPosition();
15661
15662 wxPyEndAllowThreads(__tstate);
15663 if (PyErr_Occurred()) SWIG_fail;
15664 }
15665 {
15666 wxPoint * resultptr;
15667 resultptr = new wxPoint((wxPoint &) result);
15668 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
15669 }
15670 return resultobj;
15671 fail:
15672 return NULL;
15673}
15674
15675
15676static PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
15677 PyObject *resultobj;
15678 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15679 long *arg2 = (long *) 0 ;
15680 long *arg3 = (long *) 0 ;
15681 long temp2 ;
15682 long temp3 ;
15683 PyObject * obj0 = 0 ;
15684 char *kwnames[] = {
15685 (char *) "self", NULL
15686 };
15687
15688 arg2 = &temp2;
15689 arg3 = &temp3;
15690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPositionTuple",kwnames,&obj0)) goto fail;
15691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15693 {
15694 PyThreadState* __tstate = wxPyBeginAllowThreads();
15695 (arg1)->GetPosition(arg2,arg3);
15696
15697 wxPyEndAllowThreads(__tstate);
15698 if (PyErr_Occurred()) SWIG_fail;
15699 }
15700 Py_INCREF(Py_None); resultobj = Py_None;
15701 {
15702 PyObject *o = PyInt_FromLong((long) (*arg2));
15703 resultobj = t_output_helper(resultobj,o);
15704 }
15705 {
15706 PyObject *o = PyInt_FromLong((long) (*arg3));
15707 resultobj = t_output_helper(resultobj,o);
15708 }
15709 return resultobj;
15710 fail:
15711 return NULL;
15712}
15713
15714
15715static PyObject *_wrap_KeyEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
15716 PyObject *resultobj;
15717 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15718 int result;
15719 PyObject * obj0 = 0 ;
15720 char *kwnames[] = {
15721 (char *) "self", NULL
15722 };
15723
15724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetX",kwnames,&obj0)) goto fail;
15725 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15727 {
15728 PyThreadState* __tstate = wxPyBeginAllowThreads();
15729 result = (int)((wxKeyEvent const *)arg1)->GetX();
15730
15731 wxPyEndAllowThreads(__tstate);
15732 if (PyErr_Occurred()) SWIG_fail;
15733 }
15734 resultobj = SWIG_FromInt((int)result);
15735 return resultobj;
15736 fail:
15737 return NULL;
15738}
15739
15740
15741static PyObject *_wrap_KeyEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
15742 PyObject *resultobj;
15743 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15744 int result;
15745 PyObject * obj0 = 0 ;
15746 char *kwnames[] = {
15747 (char *) "self", NULL
15748 };
15749
15750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetY",kwnames,&obj0)) goto fail;
15751 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15752 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15753 {
15754 PyThreadState* __tstate = wxPyBeginAllowThreads();
15755 result = (int)((wxKeyEvent const *)arg1)->GetY();
15756
15757 wxPyEndAllowThreads(__tstate);
15758 if (PyErr_Occurred()) SWIG_fail;
15759 }
15760 resultobj = SWIG_FromInt((int)result);
15761 return resultobj;
15762 fail:
15763 return NULL;
15764}
15765
15766
15767static PyObject *_wrap_KeyEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15768 PyObject *resultobj;
15769 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15770 int arg2 ;
15771 PyObject * obj0 = 0 ;
15772 PyObject * obj1 = 0 ;
15773 char *kwnames[] = {
15774 (char *) "self",(char *) "m_x", NULL
15775 };
15776
15777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail;
15778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15780 arg2 = (int) SWIG_AsInt(obj1);
15781 if (PyErr_Occurred()) SWIG_fail;
15782 if (arg1) (arg1)->m_x = arg2;
15783
15784 Py_INCREF(Py_None); resultobj = Py_None;
15785 return resultobj;
15786 fail:
15787 return NULL;
15788}
15789
15790
15791static PyObject *_wrap_KeyEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15792 PyObject *resultobj;
15793 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15794 int result;
15795 PyObject * obj0 = 0 ;
15796 char *kwnames[] = {
15797 (char *) "self", NULL
15798 };
15799
15800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_x_get",kwnames,&obj0)) goto fail;
15801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15803 result = (int) ((arg1)->m_x);
15804
15805 resultobj = SWIG_FromInt((int)result);
15806 return resultobj;
15807 fail:
15808 return NULL;
15809}
15810
15811
15812static PyObject *_wrap_KeyEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15813 PyObject *resultobj;
15814 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15815 int arg2 ;
15816 PyObject * obj0 = 0 ;
15817 PyObject * obj1 = 0 ;
15818 char *kwnames[] = {
15819 (char *) "self",(char *) "m_y", NULL
15820 };
15821
15822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail;
15823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15825 arg2 = (int) SWIG_AsInt(obj1);
15826 if (PyErr_Occurred()) SWIG_fail;
15827 if (arg1) (arg1)->m_y = arg2;
15828
15829 Py_INCREF(Py_None); resultobj = Py_None;
15830 return resultobj;
15831 fail:
15832 return NULL;
15833}
15834
15835
15836static PyObject *_wrap_KeyEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15837 PyObject *resultobj;
15838 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15839 int result;
15840 PyObject * obj0 = 0 ;
15841 char *kwnames[] = {
15842 (char *) "self", NULL
15843 };
15844
15845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_y_get",kwnames,&obj0)) goto fail;
15846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15848 result = (int) ((arg1)->m_y);
15849
15850 resultobj = SWIG_FromInt((int)result);
15851 return resultobj;
15852 fail:
15853 return NULL;
15854}
15855
15856
15857static PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15858 PyObject *resultobj;
15859 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15860 long arg2 ;
15861 PyObject * obj0 = 0 ;
15862 PyObject * obj1 = 0 ;
15863 char *kwnames[] = {
15864 (char *) "self",(char *) "m_keyCode", NULL
15865 };
15866
15867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_keyCode_set",kwnames,&obj0,&obj1)) goto fail;
15868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15870 arg2 = (long) SWIG_AsLong(obj1);
15871 if (PyErr_Occurred()) SWIG_fail;
15872 if (arg1) (arg1)->m_keyCode = arg2;
15873
15874 Py_INCREF(Py_None); resultobj = Py_None;
15875 return resultobj;
15876 fail:
15877 return NULL;
15878}
15879
15880
15881static PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15882 PyObject *resultobj;
15883 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15884 long result;
15885 PyObject * obj0 = 0 ;
15886 char *kwnames[] = {
15887 (char *) "self", NULL
15888 };
15889
15890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_keyCode_get",kwnames,&obj0)) goto fail;
15891 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15893 result = (long) ((arg1)->m_keyCode);
15894
15895 resultobj = SWIG_FromLong((long)result);
15896 return resultobj;
15897 fail:
15898 return NULL;
15899}
15900
15901
15902static PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15903 PyObject *resultobj;
15904 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15905 bool arg2 ;
15906 PyObject * obj0 = 0 ;
15907 PyObject * obj1 = 0 ;
15908 char *kwnames[] = {
15909 (char *) "self",(char *) "m_controlDown", NULL
15910 };
15911
15912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail;
15913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15915 arg2 = (bool) SWIG_AsBool(obj1);
15916 if (PyErr_Occurred()) SWIG_fail;
15917 if (arg1) (arg1)->m_controlDown = arg2;
15918
15919 Py_INCREF(Py_None); resultobj = Py_None;
15920 return resultobj;
15921 fail:
15922 return NULL;
15923}
15924
15925
15926static PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15927 PyObject *resultobj;
15928 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15929 bool result;
15930 PyObject * obj0 = 0 ;
15931 char *kwnames[] = {
15932 (char *) "self", NULL
15933 };
15934
15935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_controlDown_get",kwnames,&obj0)) goto fail;
15936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15938 result = (bool) ((arg1)->m_controlDown);
15939
15940 {
15941 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15942 }
15943 return resultobj;
15944 fail:
15945 return NULL;
15946}
15947
15948
15949static PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15950 PyObject *resultobj;
15951 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15952 bool arg2 ;
15953 PyObject * obj0 = 0 ;
15954 PyObject * obj1 = 0 ;
15955 char *kwnames[] = {
15956 (char *) "self",(char *) "m_shiftDown", NULL
15957 };
15958
15959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail;
15960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15962 arg2 = (bool) SWIG_AsBool(obj1);
15963 if (PyErr_Occurred()) SWIG_fail;
15964 if (arg1) (arg1)->m_shiftDown = arg2;
15965
15966 Py_INCREF(Py_None); resultobj = Py_None;
15967 return resultobj;
15968 fail:
15969 return NULL;
15970}
15971
15972
15973static PyObject *_wrap_KeyEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15974 PyObject *resultobj;
15975 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15976 bool result;
15977 PyObject * obj0 = 0 ;
15978 char *kwnames[] = {
15979 (char *) "self", NULL
15980 };
15981
15982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_shiftDown_get",kwnames,&obj0)) goto fail;
15983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15985 result = (bool) ((arg1)->m_shiftDown);
15986
15987 {
15988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15989 }
15990 return resultobj;
15991 fail:
15992 return NULL;
15993}
15994
15995
15996static PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15997 PyObject *resultobj;
15998 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15999 bool arg2 ;
16000 PyObject * obj0 = 0 ;
16001 PyObject * obj1 = 0 ;
16002 char *kwnames[] = {
16003 (char *) "self",(char *) "m_altDown", NULL
16004 };
16005
16006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail;
16007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16009 arg2 = (bool) SWIG_AsBool(obj1);
16010 if (PyErr_Occurred()) SWIG_fail;
16011 if (arg1) (arg1)->m_altDown = arg2;
16012
16013 Py_INCREF(Py_None); resultobj = Py_None;
16014 return resultobj;
16015 fail:
16016 return NULL;
16017}
16018
16019
16020static PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16021 PyObject *resultobj;
16022 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16023 bool result;
16024 PyObject * obj0 = 0 ;
16025 char *kwnames[] = {
16026 (char *) "self", NULL
16027 };
16028
16029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_altDown_get",kwnames,&obj0)) goto fail;
16030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16032 result = (bool) ((arg1)->m_altDown);
16033
16034 {
16035 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16036 }
16037 return resultobj;
16038 fail:
16039 return NULL;
16040}
16041
16042
16043static PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16044 PyObject *resultobj;
16045 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16046 bool arg2 ;
16047 PyObject * obj0 = 0 ;
16048 PyObject * obj1 = 0 ;
16049 char *kwnames[] = {
16050 (char *) "self",(char *) "m_metaDown", NULL
16051 };
16052
16053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail;
16054 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16056 arg2 = (bool) SWIG_AsBool(obj1);
16057 if (PyErr_Occurred()) SWIG_fail;
16058 if (arg1) (arg1)->m_metaDown = arg2;
16059
16060 Py_INCREF(Py_None); resultobj = Py_None;
16061 return resultobj;
16062 fail:
16063 return NULL;
16064}
16065
16066
16067static PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16068 PyObject *resultobj;
16069 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16070 bool result;
16071 PyObject * obj0 = 0 ;
16072 char *kwnames[] = {
16073 (char *) "self", NULL
16074 };
16075
16076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_metaDown_get",kwnames,&obj0)) goto fail;
16077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16079 result = (bool) ((arg1)->m_metaDown);
16080
16081 {
16082 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16083 }
16084 return resultobj;
16085 fail:
16086 return NULL;
16087}
16088
16089
16090static PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16091 PyObject *resultobj;
16092 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16093 bool arg2 ;
16094 PyObject * obj0 = 0 ;
16095 PyObject * obj1 = 0 ;
16096 char *kwnames[] = {
16097 (char *) "self",(char *) "m_scanCode", NULL
16098 };
16099
16100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_scanCode_set",kwnames,&obj0,&obj1)) goto fail;
16101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16103 arg2 = (bool) SWIG_AsBool(obj1);
16104 if (PyErr_Occurred()) SWIG_fail;
16105 if (arg1) (arg1)->m_scanCode = arg2;
16106
16107 Py_INCREF(Py_None); resultobj = Py_None;
16108 return resultobj;
16109 fail:
16110 return NULL;
16111}
16112
16113
16114static PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16115 PyObject *resultobj;
16116 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16117 bool result;
16118 PyObject * obj0 = 0 ;
16119 char *kwnames[] = {
16120 (char *) "self", NULL
16121 };
16122
16123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_scanCode_get",kwnames,&obj0)) goto fail;
16124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16126 result = (bool) ((arg1)->m_scanCode);
16127
16128 {
16129 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16130 }
16131 return resultobj;
16132 fail:
16133 return NULL;
16134}
16135
16136
16137static PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16138 PyObject *resultobj;
16139 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16140 unsigned int arg2 ;
16141 PyObject * obj0 = 0 ;
16142 PyObject * obj1 = 0 ;
16143 char *kwnames[] = {
16144 (char *) "self",(char *) "m_rawCode", NULL
16145 };
16146
16147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawCode_set",kwnames,&obj0,&obj1)) goto fail;
16148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16150 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
16151 if (PyErr_Occurred()) SWIG_fail;
16152 if (arg1) (arg1)->m_rawCode = arg2;
16153
16154 Py_INCREF(Py_None); resultobj = Py_None;
16155 return resultobj;
16156 fail:
16157 return NULL;
16158}
16159
16160
16161static PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16162 PyObject *resultobj;
16163 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16164 unsigned int result;
16165 PyObject * obj0 = 0 ;
16166 char *kwnames[] = {
16167 (char *) "self", NULL
16168 };
16169
16170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawCode_get",kwnames,&obj0)) goto fail;
16171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16173 result = (unsigned int) ((arg1)->m_rawCode);
16174
16175 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
16176 return resultobj;
16177 fail:
16178 return NULL;
16179}
16180
16181
16182static PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16183 PyObject *resultobj;
16184 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16185 unsigned int arg2 ;
16186 PyObject * obj0 = 0 ;
16187 PyObject * obj1 = 0 ;
16188 char *kwnames[] = {
16189 (char *) "self",(char *) "m_rawFlags", NULL
16190 };
16191
16192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawFlags_set",kwnames,&obj0,&obj1)) goto fail;
16193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16195 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
16196 if (PyErr_Occurred()) SWIG_fail;
16197 if (arg1) (arg1)->m_rawFlags = arg2;
16198
16199 Py_INCREF(Py_None); resultobj = Py_None;
16200 return resultobj;
16201 fail:
16202 return NULL;
16203}
16204
16205
16206static PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16207 PyObject *resultobj;
16208 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16209 unsigned int result;
16210 PyObject * obj0 = 0 ;
16211 char *kwnames[] = {
16212 (char *) "self", NULL
16213 };
16214
16215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawFlags_get",kwnames,&obj0)) goto fail;
16216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16218 result = (unsigned int) ((arg1)->m_rawFlags);
16219
16220 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
16221 return resultobj;
16222 fail:
16223 return NULL;
16224}
16225
16226
16227static PyObject * KeyEvent_swigregister(PyObject *self, PyObject *args) {
16228 PyObject *obj;
16229 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16230 SWIG_TypeClientData(SWIGTYPE_p_wxKeyEvent, obj);
16231 Py_INCREF(obj);
16232 return Py_BuildValue((char *)"");
16233}
16234static PyObject *_wrap_new_SizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16235 PyObject *resultobj;
16236 wxSize const &arg1_defvalue = wxDefaultSize ;
16237 wxSize *arg1 = (wxSize *) &arg1_defvalue ;
16238 int arg2 = (int) 0 ;
16239 wxSizeEvent *result;
16240 wxSize temp1 ;
16241 PyObject * obj0 = 0 ;
16242 PyObject * obj1 = 0 ;
16243 char *kwnames[] = {
16244 (char *) "sz",(char *) "winid", NULL
16245 };
16246
16247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SizeEvent",kwnames,&obj0,&obj1)) goto fail;
16248 if (obj0) {
16249 {
16250 arg1 = &temp1;
16251 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
16252 }
16253 }
16254 if (obj1) {
16255 arg2 = (int) SWIG_AsInt(obj1);
16256 if (PyErr_Occurred()) SWIG_fail;
16257 }
16258 {
16259 PyThreadState* __tstate = wxPyBeginAllowThreads();
16260 result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2);
16261
16262 wxPyEndAllowThreads(__tstate);
16263 if (PyErr_Occurred()) SWIG_fail;
16264 }
16265 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizeEvent, 1);
16266 return resultobj;
16267 fail:
16268 return NULL;
16269}
16270
16271
16272static PyObject *_wrap_SizeEvent_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16273 PyObject *resultobj;
16274 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16275 wxSize result;
16276 PyObject * obj0 = 0 ;
16277 char *kwnames[] = {
16278 (char *) "self", NULL
16279 };
16280
16281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetSize",kwnames,&obj0)) goto fail;
16282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16284 {
16285 PyThreadState* __tstate = wxPyBeginAllowThreads();
16286 result = ((wxSizeEvent const *)arg1)->GetSize();
16287
16288 wxPyEndAllowThreads(__tstate);
16289 if (PyErr_Occurred()) SWIG_fail;
16290 }
16291 {
16292 wxSize * resultptr;
16293 resultptr = new wxSize((wxSize &) result);
16294 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16295 }
16296 return resultobj;
16297 fail:
16298 return NULL;
16299}
16300
16301
16302static PyObject *_wrap_SizeEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
16303 PyObject *resultobj;
16304 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16305 wxRect result;
16306 PyObject * obj0 = 0 ;
16307 char *kwnames[] = {
16308 (char *) "self", NULL
16309 };
16310
16311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetRect",kwnames,&obj0)) goto fail;
16312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16314 {
16315 PyThreadState* __tstate = wxPyBeginAllowThreads();
16316 result = ((wxSizeEvent const *)arg1)->GetRect();
16317
16318 wxPyEndAllowThreads(__tstate);
16319 if (PyErr_Occurred()) SWIG_fail;
16320 }
16321 {
16322 wxRect * resultptr;
16323 resultptr = new wxRect((wxRect &) result);
16324 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
16325 }
16326 return resultobj;
16327 fail:
16328 return NULL;
16329}
16330
16331
16332static PyObject *_wrap_SizeEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
16333 PyObject *resultobj;
16334 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16335 wxRect arg2 ;
16336 wxRect *argp2 ;
16337 PyObject * obj0 = 0 ;
16338 PyObject * obj1 = 0 ;
16339 char *kwnames[] = {
16340 (char *) "self",(char *) "rect", NULL
16341 };
16342
16343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) goto fail;
16344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16346 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect,
16347 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
16348 arg2 = *argp2;
16349 {
16350 PyThreadState* __tstate = wxPyBeginAllowThreads();
16351 (arg1)->SetRect(arg2);
16352
16353 wxPyEndAllowThreads(__tstate);
16354 if (PyErr_Occurred()) SWIG_fail;
16355 }
16356 Py_INCREF(Py_None); resultobj = Py_None;
16357 return resultobj;
16358 fail:
16359 return NULL;
16360}
16361
16362
16363static PyObject *_wrap_SizeEvent_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16364 PyObject *resultobj;
16365 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16366 wxSize arg2 ;
16367 wxSize *argp2 ;
16368 PyObject * obj0 = 0 ;
16369 PyObject * obj1 = 0 ;
16370 char *kwnames[] = {
16371 (char *) "self",(char *) "size", NULL
16372 };
16373
16374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) goto fail;
16375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16377 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize,
16378 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
16379 arg2 = *argp2;
16380 {
16381 PyThreadState* __tstate = wxPyBeginAllowThreads();
16382 wxSizeEvent_SetSize(arg1,arg2);
16383
16384 wxPyEndAllowThreads(__tstate);
16385 if (PyErr_Occurred()) SWIG_fail;
16386 }
16387 Py_INCREF(Py_None); resultobj = Py_None;
16388 return resultobj;
16389 fail:
16390 return NULL;
16391}
16392
16393
16394static PyObject *_wrap_SizeEvent_m_size_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16395 PyObject *resultobj;
16396 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16397 wxSize *arg2 = (wxSize *) 0 ;
16398 PyObject * obj0 = 0 ;
16399 PyObject * obj1 = 0 ;
16400 char *kwnames[] = {
16401 (char *) "self",(char *) "m_size", NULL
16402 };
16403
16404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_size_set",kwnames,&obj0,&obj1)) goto fail;
16405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16407 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSize,
16408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16409 if (arg1) (arg1)->m_size = *arg2;
16410
16411 Py_INCREF(Py_None); resultobj = Py_None;
16412 return resultobj;
16413 fail:
16414 return NULL;
16415}
16416
16417
16418static PyObject *_wrap_SizeEvent_m_size_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16419 PyObject *resultobj;
16420 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16421 wxSize *result;
16422 PyObject * obj0 = 0 ;
16423 char *kwnames[] = {
16424 (char *) "self", NULL
16425 };
16426
16427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_size_get",kwnames,&obj0)) goto fail;
16428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16430 result = (wxSize *)& ((arg1)->m_size);
16431
16432 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0);
16433 return resultobj;
16434 fail:
16435 return NULL;
16436}
16437
16438
16439static PyObject *_wrap_SizeEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16440 PyObject *resultobj;
16441 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16442 wxRect *arg2 = (wxRect *) 0 ;
16443 PyObject * obj0 = 0 ;
16444 PyObject * obj1 = 0 ;
16445 char *kwnames[] = {
16446 (char *) "self",(char *) "m_rect", NULL
16447 };
16448
16449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail;
16450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16452 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
16453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16454 if (arg1) (arg1)->m_rect = *arg2;
16455
16456 Py_INCREF(Py_None); resultobj = Py_None;
16457 return resultobj;
16458 fail:
16459 return NULL;
16460}
16461
16462
16463static PyObject *_wrap_SizeEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16464 PyObject *resultobj;
16465 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16466 wxRect *result;
16467 PyObject * obj0 = 0 ;
16468 char *kwnames[] = {
16469 (char *) "self", NULL
16470 };
16471
16472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_rect_get",kwnames,&obj0)) goto fail;
16473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16475 result = (wxRect *)& ((arg1)->m_rect);
16476
16477 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0);
16478 return resultobj;
16479 fail:
16480 return NULL;
16481}
16482
16483
16484static PyObject * SizeEvent_swigregister(PyObject *self, PyObject *args) {
16485 PyObject *obj;
16486 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16487 SWIG_TypeClientData(SWIGTYPE_p_wxSizeEvent, obj);
16488 Py_INCREF(obj);
16489 return Py_BuildValue((char *)"");
16490}
16491static PyObject *_wrap_new_MoveEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16492 PyObject *resultobj;
16493 wxPoint const &arg1_defvalue = wxDefaultPosition ;
16494 wxPoint *arg1 = (wxPoint *) &arg1_defvalue ;
16495 int arg2 = (int) 0 ;
16496 wxMoveEvent *result;
16497 wxPoint temp1 ;
16498 PyObject * obj0 = 0 ;
16499 PyObject * obj1 = 0 ;
16500 char *kwnames[] = {
16501 (char *) "pos",(char *) "winid", NULL
16502 };
16503
16504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MoveEvent",kwnames,&obj0,&obj1)) goto fail;
16505 if (obj0) {
16506 {
16507 arg1 = &temp1;
16508 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
16509 }
16510 }
16511 if (obj1) {
16512 arg2 = (int) SWIG_AsInt(obj1);
16513 if (PyErr_Occurred()) SWIG_fail;
16514 }
16515 {
16516 PyThreadState* __tstate = wxPyBeginAllowThreads();
16517 result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2);
16518
16519 wxPyEndAllowThreads(__tstate);
16520 if (PyErr_Occurred()) SWIG_fail;
16521 }
16522 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMoveEvent, 1);
16523 return resultobj;
16524 fail:
16525 return NULL;
16526}
16527
16528
16529static PyObject *_wrap_MoveEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
16530 PyObject *resultobj;
16531 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16532 wxPoint result;
16533 PyObject * obj0 = 0 ;
16534 char *kwnames[] = {
16535 (char *) "self", NULL
16536 };
16537
16538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetPosition",kwnames,&obj0)) goto fail;
16539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16541 {
16542 PyThreadState* __tstate = wxPyBeginAllowThreads();
16543 result = ((wxMoveEvent const *)arg1)->GetPosition();
16544
16545 wxPyEndAllowThreads(__tstate);
16546 if (PyErr_Occurred()) SWIG_fail;
16547 }
16548 {
16549 wxPoint * resultptr;
16550 resultptr = new wxPoint((wxPoint &) result);
16551 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
16552 }
16553 return resultobj;
16554 fail:
16555 return NULL;
16556}
16557
16558
16559static PyObject *_wrap_MoveEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
16560 PyObject *resultobj;
16561 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16562 wxRect result;
16563 PyObject * obj0 = 0 ;
16564 char *kwnames[] = {
16565 (char *) "self", NULL
16566 };
16567
16568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetRect",kwnames,&obj0)) goto fail;
16569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16571 {
16572 PyThreadState* __tstate = wxPyBeginAllowThreads();
16573 result = ((wxMoveEvent const *)arg1)->GetRect();
16574
16575 wxPyEndAllowThreads(__tstate);
16576 if (PyErr_Occurred()) SWIG_fail;
16577 }
16578 {
16579 wxRect * resultptr;
16580 resultptr = new wxRect((wxRect &) result);
16581 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
16582 }
16583 return resultobj;
16584 fail:
16585 return NULL;
16586}
16587
16588
16589static PyObject *_wrap_MoveEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
16590 PyObject *resultobj;
16591 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16592 wxRect arg2 ;
16593 wxRect *argp2 ;
16594 PyObject * obj0 = 0 ;
16595 PyObject * obj1 = 0 ;
16596 char *kwnames[] = {
16597 (char *) "self",(char *) "rect", NULL
16598 };
16599
16600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) goto fail;
16601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16603 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect,
16604 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
16605 arg2 = *argp2;
16606 {
16607 PyThreadState* __tstate = wxPyBeginAllowThreads();
16608 (arg1)->SetRect(arg2);
16609
16610 wxPyEndAllowThreads(__tstate);
16611 if (PyErr_Occurred()) SWIG_fail;
16612 }
16613 Py_INCREF(Py_None); resultobj = Py_None;
16614 return resultobj;
16615 fail:
16616 return NULL;
16617}
16618
16619
16620static PyObject *_wrap_MoveEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
16621 PyObject *resultobj;
16622 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16623 wxPoint arg2 ;
16624 wxPoint *argp2 ;
16625 PyObject * obj0 = 0 ;
16626 PyObject * obj1 = 0 ;
16627 char *kwnames[] = {
16628 (char *) "self",(char *) "pos", NULL
16629 };
16630
16631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
16632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16634 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint,
16635 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
16636 arg2 = *argp2;
16637 {
16638 PyThreadState* __tstate = wxPyBeginAllowThreads();
16639 wxMoveEvent_SetPosition(arg1,arg2);
16640
16641 wxPyEndAllowThreads(__tstate);
16642 if (PyErr_Occurred()) SWIG_fail;
16643 }
16644 Py_INCREF(Py_None); resultobj = Py_None;
16645 return resultobj;
16646 fail:
16647 return NULL;
16648}
16649
16650
16651static PyObject *_wrap_MoveEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16652 PyObject *resultobj;
16653 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16654 wxPoint *arg2 = (wxPoint *) 0 ;
16655 PyObject * obj0 = 0 ;
16656 PyObject * obj1 = 0 ;
16657 char *kwnames[] = {
16658 (char *) "self",(char *) "m_pos", NULL
16659 };
16660
16661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail;
16662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16664 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
16665 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16666 if (arg1) (arg1)->m_pos = *arg2;
16667
16668 Py_INCREF(Py_None); resultobj = Py_None;
16669 return resultobj;
16670 fail:
16671 return NULL;
16672}
16673
16674
16675static PyObject *_wrap_MoveEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16676 PyObject *resultobj;
16677 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16678 wxPoint *result;
16679 PyObject * obj0 = 0 ;
16680 char *kwnames[] = {
16681 (char *) "self", NULL
16682 };
16683
16684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_pos_get",kwnames,&obj0)) goto fail;
16685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16687 result = (wxPoint *)& ((arg1)->m_pos);
16688
16689 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
16690 return resultobj;
16691 fail:
16692 return NULL;
16693}
16694
16695
16696static PyObject *_wrap_MoveEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16697 PyObject *resultobj;
16698 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16699 wxRect *arg2 = (wxRect *) 0 ;
16700 PyObject * obj0 = 0 ;
16701 PyObject * obj1 = 0 ;
16702 char *kwnames[] = {
16703 (char *) "self",(char *) "m_rect", NULL
16704 };
16705
16706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail;
16707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16709 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
16710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16711 if (arg1) (arg1)->m_rect = *arg2;
16712
16713 Py_INCREF(Py_None); resultobj = Py_None;
16714 return resultobj;
16715 fail:
16716 return NULL;
16717}
16718
16719
16720static PyObject *_wrap_MoveEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16721 PyObject *resultobj;
16722 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16723 wxRect *result;
16724 PyObject * obj0 = 0 ;
16725 char *kwnames[] = {
16726 (char *) "self", NULL
16727 };
16728
16729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_rect_get",kwnames,&obj0)) goto fail;
16730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16732 result = (wxRect *)& ((arg1)->m_rect);
16733
16734 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0);
16735 return resultobj;
16736 fail:
16737 return NULL;
16738}
16739
16740
16741static PyObject * MoveEvent_swigregister(PyObject *self, PyObject *args) {
16742 PyObject *obj;
16743 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16744 SWIG_TypeClientData(SWIGTYPE_p_wxMoveEvent, obj);
16745 Py_INCREF(obj);
16746 return Py_BuildValue((char *)"");
16747}
16748static PyObject *_wrap_new_PaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16749 PyObject *resultobj;
16750 int arg1 = (int) 0 ;
16751 wxPaintEvent *result;
16752 PyObject * obj0 = 0 ;
16753 char *kwnames[] = {
16754 (char *) "Id", NULL
16755 };
16756
16757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaintEvent",kwnames,&obj0)) goto fail;
16758 if (obj0) {
16759 arg1 = (int) SWIG_AsInt(obj0);
16760 if (PyErr_Occurred()) SWIG_fail;
16761 }
16762 {
16763 PyThreadState* __tstate = wxPyBeginAllowThreads();
16764 result = (wxPaintEvent *)new wxPaintEvent(arg1);
16765
16766 wxPyEndAllowThreads(__tstate);
16767 if (PyErr_Occurred()) SWIG_fail;
16768 }
16769 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintEvent, 1);
16770 return resultobj;
16771 fail:
16772 return NULL;
16773}
16774
16775
16776static PyObject * PaintEvent_swigregister(PyObject *self, PyObject *args) {
16777 PyObject *obj;
16778 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16779 SWIG_TypeClientData(SWIGTYPE_p_wxPaintEvent, obj);
16780 Py_INCREF(obj);
16781 return Py_BuildValue((char *)"");
16782}
16783static PyObject *_wrap_new_NcPaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16784 PyObject *resultobj;
16785 int arg1 = (int) 0 ;
16786 wxNcPaintEvent *result;
16787 PyObject * obj0 = 0 ;
16788 char *kwnames[] = {
16789 (char *) "winid", NULL
16790 };
16791
16792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_NcPaintEvent",kwnames,&obj0)) goto fail;
16793 if (obj0) {
16794 arg1 = (int) SWIG_AsInt(obj0);
16795 if (PyErr_Occurred()) SWIG_fail;
16796 }
16797 {
16798 PyThreadState* __tstate = wxPyBeginAllowThreads();
16799 result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1);
16800
16801 wxPyEndAllowThreads(__tstate);
16802 if (PyErr_Occurred()) SWIG_fail;
16803 }
16804 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNcPaintEvent, 1);
16805 return resultobj;
16806 fail:
16807 return NULL;
16808}
16809
16810
16811static PyObject * NcPaintEvent_swigregister(PyObject *self, PyObject *args) {
16812 PyObject *obj;
16813 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16814 SWIG_TypeClientData(SWIGTYPE_p_wxNcPaintEvent, obj);
16815 Py_INCREF(obj);
16816 return Py_BuildValue((char *)"");
16817}
16818static PyObject *_wrap_new_EraseEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16819 PyObject *resultobj;
16820 int arg1 = (int) 0 ;
16821 wxDC *arg2 = (wxDC *) (wxDC *) NULL ;
16822 wxEraseEvent *result;
16823 PyObject * obj0 = 0 ;
16824 PyObject * obj1 = 0 ;
16825 char *kwnames[] = {
16826 (char *) "Id",(char *) "dc", NULL
16827 };
16828
16829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EraseEvent",kwnames,&obj0,&obj1)) goto fail;
16830 if (obj0) {
16831 arg1 = (int) SWIG_AsInt(obj0);
16832 if (PyErr_Occurred()) SWIG_fail;
16833 }
16834 if (obj1) {
16835 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
16836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16837 }
16838 {
16839 PyThreadState* __tstate = wxPyBeginAllowThreads();
16840 result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2);
16841
16842 wxPyEndAllowThreads(__tstate);
16843 if (PyErr_Occurred()) SWIG_fail;
16844 }
16845 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEraseEvent, 1);
16846 return resultobj;
16847 fail:
16848 return NULL;
16849}
16850
16851
16852static PyObject *_wrap_EraseEvent_GetDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16853 PyObject *resultobj;
16854 wxEraseEvent *arg1 = (wxEraseEvent *) 0 ;
16855 wxDC *result;
16856 PyObject * obj0 = 0 ;
16857 char *kwnames[] = {
16858 (char *) "self", NULL
16859 };
16860
16861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EraseEvent_GetDC",kwnames,&obj0)) goto fail;
16862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEraseEvent,
16863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16864 {
16865 PyThreadState* __tstate = wxPyBeginAllowThreads();
16866 result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC();
16867
16868 wxPyEndAllowThreads(__tstate);
16869 if (PyErr_Occurred()) SWIG_fail;
16870 }
16871 {
16872 resultobj = wxPyMake_wxObject(result);
16873 }
16874 return resultobj;
16875 fail:
16876 return NULL;
16877}
16878
16879
16880static PyObject * EraseEvent_swigregister(PyObject *self, PyObject *args) {
16881 PyObject *obj;
16882 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16883 SWIG_TypeClientData(SWIGTYPE_p_wxEraseEvent, obj);
16884 Py_INCREF(obj);
16885 return Py_BuildValue((char *)"");
16886}
16887static PyObject *_wrap_new_FocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16888 PyObject *resultobj;
16889 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
16890 int arg2 = (int) 0 ;
16891 wxFocusEvent *result;
16892 PyObject * obj0 = 0 ;
16893 PyObject * obj1 = 0 ;
16894 char *kwnames[] = {
16895 (char *) "type",(char *) "winid", NULL
16896 };
16897
16898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FocusEvent",kwnames,&obj0,&obj1)) goto fail;
16899 if (obj0) {
16900 arg1 = (wxEventType) SWIG_AsInt(obj0);
16901 if (PyErr_Occurred()) SWIG_fail;
16902 }
16903 if (obj1) {
16904 arg2 = (int) SWIG_AsInt(obj1);
16905 if (PyErr_Occurred()) SWIG_fail;
16906 }
16907 {
16908 PyThreadState* __tstate = wxPyBeginAllowThreads();
16909 result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2);
16910
16911 wxPyEndAllowThreads(__tstate);
16912 if (PyErr_Occurred()) SWIG_fail;
16913 }
16914 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFocusEvent, 1);
16915 return resultobj;
16916 fail:
16917 return NULL;
16918}
16919
16920
16921static PyObject *_wrap_FocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
16922 PyObject *resultobj;
16923 wxFocusEvent *arg1 = (wxFocusEvent *) 0 ;
16924 wxWindow *result;
16925 PyObject * obj0 = 0 ;
16926 char *kwnames[] = {
16927 (char *) "self", NULL
16928 };
16929
16930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FocusEvent_GetWindow",kwnames,&obj0)) goto fail;
16931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent,
16932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16933 {
16934 PyThreadState* __tstate = wxPyBeginAllowThreads();
16935 result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow();
16936
16937 wxPyEndAllowThreads(__tstate);
16938 if (PyErr_Occurred()) SWIG_fail;
16939 }
16940 {
16941 resultobj = wxPyMake_wxObject(result);
16942 }
16943 return resultobj;
16944 fail:
16945 return NULL;
16946}
16947
16948
16949static PyObject *_wrap_FocusEvent_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
16950 PyObject *resultobj;
16951 wxFocusEvent *arg1 = (wxFocusEvent *) 0 ;
16952 wxWindow *arg2 = (wxWindow *) 0 ;
16953 PyObject * obj0 = 0 ;
16954 PyObject * obj1 = 0 ;
16955 char *kwnames[] = {
16956 (char *) "self",(char *) "win", NULL
16957 };
16958
16959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) goto fail;
16960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent,
16961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16962 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
16963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16964 {
16965 PyThreadState* __tstate = wxPyBeginAllowThreads();
16966 (arg1)->SetWindow(arg2);
16967
16968 wxPyEndAllowThreads(__tstate);
16969 if (PyErr_Occurred()) SWIG_fail;
16970 }
16971 Py_INCREF(Py_None); resultobj = Py_None;
16972 return resultobj;
16973 fail:
16974 return NULL;
16975}
16976
16977
16978static PyObject * FocusEvent_swigregister(PyObject *self, PyObject *args) {
16979 PyObject *obj;
16980 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16981 SWIG_TypeClientData(SWIGTYPE_p_wxFocusEvent, obj);
16982 Py_INCREF(obj);
16983 return Py_BuildValue((char *)"");
16984}
16985static PyObject *_wrap_new_ChildFocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16986 PyObject *resultobj;
16987 wxWindow *arg1 = (wxWindow *) NULL ;
16988 wxChildFocusEvent *result;
16989 PyObject * obj0 = 0 ;
16990 char *kwnames[] = {
16991 (char *) "win", NULL
16992 };
16993
16994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) goto fail;
16995 if (obj0) {
16996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
16997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16998 }
16999 {
17000 PyThreadState* __tstate = wxPyBeginAllowThreads();
17001 result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1);
17002
17003 wxPyEndAllowThreads(__tstate);
17004 if (PyErr_Occurred()) SWIG_fail;
17005 }
17006 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChildFocusEvent, 1);
17007 return resultobj;
17008 fail:
17009 return NULL;
17010}
17011
17012
17013static PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
17014 PyObject *resultobj;
17015 wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ;
17016 wxWindow *result;
17017 PyObject * obj0 = 0 ;
17018 char *kwnames[] = {
17019 (char *) "self", NULL
17020 };
17021
17022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ChildFocusEvent_GetWindow",kwnames,&obj0)) goto fail;
17023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChildFocusEvent,
17024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17025 {
17026 PyThreadState* __tstate = wxPyBeginAllowThreads();
17027 result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow();
17028
17029 wxPyEndAllowThreads(__tstate);
17030 if (PyErr_Occurred()) SWIG_fail;
17031 }
17032 {
17033 resultobj = wxPyMake_wxObject(result);
17034 }
17035 return resultobj;
17036 fail:
17037 return NULL;
17038}
17039
17040
17041static PyObject * ChildFocusEvent_swigregister(PyObject *self, PyObject *args) {
17042 PyObject *obj;
17043 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17044 SWIG_TypeClientData(SWIGTYPE_p_wxChildFocusEvent, obj);
17045 Py_INCREF(obj);
17046 return Py_BuildValue((char *)"");
17047}
17048static PyObject *_wrap_new_ActivateEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17049 PyObject *resultobj;
17050 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
17051 bool arg2 = (bool) True ;
17052 int arg3 = (int) 0 ;
17053 wxActivateEvent *result;
17054 PyObject * obj0 = 0 ;
17055 PyObject * obj1 = 0 ;
17056 PyObject * obj2 = 0 ;
17057 char *kwnames[] = {
17058 (char *) "type",(char *) "active",(char *) "Id", NULL
17059 };
17060
17061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ActivateEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
17062 if (obj0) {
17063 arg1 = (wxEventType) SWIG_AsInt(obj0);
17064 if (PyErr_Occurred()) SWIG_fail;
17065 }
17066 if (obj1) {
17067 arg2 = (bool) SWIG_AsBool(obj1);
17068 if (PyErr_Occurred()) SWIG_fail;
17069 }
17070 if (obj2) {
17071 arg3 = (int) SWIG_AsInt(obj2);
17072 if (PyErr_Occurred()) SWIG_fail;
17073 }
17074 {
17075 PyThreadState* __tstate = wxPyBeginAllowThreads();
17076 result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3);
17077
17078 wxPyEndAllowThreads(__tstate);
17079 if (PyErr_Occurred()) SWIG_fail;
17080 }
17081 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxActivateEvent, 1);
17082 return resultobj;
17083 fail:
17084 return NULL;
17085}
17086
17087
17088static PyObject *_wrap_ActivateEvent_GetActive(PyObject *self, PyObject *args, PyObject *kwargs) {
17089 PyObject *resultobj;
17090 wxActivateEvent *arg1 = (wxActivateEvent *) 0 ;
17091 bool result;
17092 PyObject * obj0 = 0 ;
17093 char *kwnames[] = {
17094 (char *) "self", NULL
17095 };
17096
17097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActivateEvent_GetActive",kwnames,&obj0)) goto fail;
17098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActivateEvent,
17099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17100 {
17101 PyThreadState* __tstate = wxPyBeginAllowThreads();
17102 result = (bool)((wxActivateEvent const *)arg1)->GetActive();
17103
17104 wxPyEndAllowThreads(__tstate);
17105 if (PyErr_Occurred()) SWIG_fail;
17106 }
17107 {
17108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17109 }
17110 return resultobj;
17111 fail:
17112 return NULL;
17113}
17114
17115
17116static PyObject * ActivateEvent_swigregister(PyObject *self, PyObject *args) {
17117 PyObject *obj;
17118 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17119 SWIG_TypeClientData(SWIGTYPE_p_wxActivateEvent, obj);
17120 Py_INCREF(obj);
17121 return Py_BuildValue((char *)"");
17122}
17123static PyObject *_wrap_new_InitDialogEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17124 PyObject *resultobj;
17125 int arg1 = (int) 0 ;
17126 wxInitDialogEvent *result;
17127 PyObject * obj0 = 0 ;
17128 char *kwnames[] = {
17129 (char *) "Id", NULL
17130 };
17131
17132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_InitDialogEvent",kwnames,&obj0)) goto fail;
17133 if (obj0) {
17134 arg1 = (int) SWIG_AsInt(obj0);
17135 if (PyErr_Occurred()) SWIG_fail;
17136 }
17137 {
17138 PyThreadState* __tstate = wxPyBeginAllowThreads();
17139 result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1);
17140
17141 wxPyEndAllowThreads(__tstate);
17142 if (PyErr_Occurred()) SWIG_fail;
17143 }
17144 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInitDialogEvent, 1);
17145 return resultobj;
17146 fail:
17147 return NULL;
17148}
17149
17150
17151static PyObject * InitDialogEvent_swigregister(PyObject *self, PyObject *args) {
17152 PyObject *obj;
17153 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17154 SWIG_TypeClientData(SWIGTYPE_p_wxInitDialogEvent, obj);
17155 Py_INCREF(obj);
17156 return Py_BuildValue((char *)"");
17157}
17158static PyObject *_wrap_new_MenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17159 PyObject *resultobj;
17160 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
17161 int arg2 = (int) 0 ;
17162 wxMenu *arg3 = (wxMenu *) NULL ;
17163 wxMenuEvent *result;
17164 PyObject * obj0 = 0 ;
17165 PyObject * obj1 = 0 ;
17166 PyObject * obj2 = 0 ;
17167 char *kwnames[] = {
17168 (char *) "type",(char *) "winid",(char *) "menu", NULL
17169 };
17170
17171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_MenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
17172 if (obj0) {
17173 arg1 = (wxEventType) SWIG_AsInt(obj0);
17174 if (PyErr_Occurred()) SWIG_fail;
17175 }
17176 if (obj1) {
17177 arg2 = (int) SWIG_AsInt(obj1);
17178 if (PyErr_Occurred()) SWIG_fail;
17179 }
17180 if (obj2) {
17181 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu,
17182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17183 }
17184 {
17185 PyThreadState* __tstate = wxPyBeginAllowThreads();
17186 result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3);
17187
17188 wxPyEndAllowThreads(__tstate);
17189 if (PyErr_Occurred()) SWIG_fail;
17190 }
17191 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuEvent, 1);
17192 return resultobj;
17193 fail:
17194 return NULL;
17195}
17196
17197
17198static PyObject *_wrap_MenuEvent_GetMenuId(PyObject *self, PyObject *args, PyObject *kwargs) {
17199 PyObject *resultobj;
17200 wxMenuEvent *arg1 = (wxMenuEvent *) 0 ;
17201 int result;
17202 PyObject * obj0 = 0 ;
17203 char *kwnames[] = {
17204 (char *) "self", NULL
17205 };
17206
17207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenuId",kwnames,&obj0)) goto fail;
17208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent,
17209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17210 {
17211 PyThreadState* __tstate = wxPyBeginAllowThreads();
17212 result = (int)((wxMenuEvent const *)arg1)->GetMenuId();
17213
17214 wxPyEndAllowThreads(__tstate);
17215 if (PyErr_Occurred()) SWIG_fail;
17216 }
17217 resultobj = SWIG_FromInt((int)result);
17218 return resultobj;
17219 fail:
17220 return NULL;
17221}
17222
17223
17224static PyObject *_wrap_MenuEvent_IsPopup(PyObject *self, PyObject *args, PyObject *kwargs) {
17225 PyObject *resultobj;
17226 wxMenuEvent *arg1 = (wxMenuEvent *) 0 ;
17227 bool result;
17228 PyObject * obj0 = 0 ;
17229 char *kwnames[] = {
17230 (char *) "self", NULL
17231 };
17232
17233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_IsPopup",kwnames,&obj0)) goto fail;
17234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent,
17235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17236 {
17237 PyThreadState* __tstate = wxPyBeginAllowThreads();
17238 result = (bool)((wxMenuEvent const *)arg1)->IsPopup();
17239
17240 wxPyEndAllowThreads(__tstate);
17241 if (PyErr_Occurred()) SWIG_fail;
17242 }
17243 {
17244 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17245 }
17246 return resultobj;
17247 fail:
17248 return NULL;
17249}
17250
17251
17252static PyObject *_wrap_MenuEvent_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
17253 PyObject *resultobj;
17254 wxMenuEvent *arg1 = (wxMenuEvent *) 0 ;
17255 wxMenu *result;
17256 PyObject * obj0 = 0 ;
17257 char *kwnames[] = {
17258 (char *) "self", NULL
17259 };
17260
17261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenu",kwnames,&obj0)) goto fail;
17262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent,
17263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17264 {
17265 PyThreadState* __tstate = wxPyBeginAllowThreads();
17266 result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu();
17267
17268 wxPyEndAllowThreads(__tstate);
17269 if (PyErr_Occurred()) SWIG_fail;
17270 }
17271 {
17272 resultobj = wxPyMake_wxObject(result);
17273 }
17274 return resultobj;
17275 fail:
17276 return NULL;
17277}
17278
17279
17280static PyObject * MenuEvent_swigregister(PyObject *self, PyObject *args) {
17281 PyObject *obj;
17282 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17283 SWIG_TypeClientData(SWIGTYPE_p_wxMenuEvent, obj);
17284 Py_INCREF(obj);
17285 return Py_BuildValue((char *)"");
17286}
17287static PyObject *_wrap_new_CloseEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17288 PyObject *resultobj;
17289 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
17290 int arg2 = (int) 0 ;
17291 wxCloseEvent *result;
17292 PyObject * obj0 = 0 ;
17293 PyObject * obj1 = 0 ;
17294 char *kwnames[] = {
17295 (char *) "type",(char *) "winid", NULL
17296 };
17297
17298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CloseEvent",kwnames,&obj0,&obj1)) goto fail;
17299 if (obj0) {
17300 arg1 = (wxEventType) SWIG_AsInt(obj0);
17301 if (PyErr_Occurred()) SWIG_fail;
17302 }
17303 if (obj1) {
17304 arg2 = (int) SWIG_AsInt(obj1);
17305 if (PyErr_Occurred()) SWIG_fail;
17306 }
17307 {
17308 PyThreadState* __tstate = wxPyBeginAllowThreads();
17309 result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2);
17310
17311 wxPyEndAllowThreads(__tstate);
17312 if (PyErr_Occurred()) SWIG_fail;
17313 }
17314 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCloseEvent, 1);
17315 return resultobj;
17316 fail:
17317 return NULL;
17318}
17319
17320
17321static PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) {
17322 PyObject *resultobj;
17323 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
17324 bool arg2 ;
17325 PyObject * obj0 = 0 ;
17326 PyObject * obj1 = 0 ;
17327 char *kwnames[] = {
17328 (char *) "self",(char *) "logOff", NULL
17329 };
17330
17331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) goto fail;
17332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent,
17333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17334 arg2 = (bool) SWIG_AsBool(obj1);
17335 if (PyErr_Occurred()) SWIG_fail;
17336 {
17337 PyThreadState* __tstate = wxPyBeginAllowThreads();
17338 (arg1)->SetLoggingOff(arg2);
17339
17340 wxPyEndAllowThreads(__tstate);
17341 if (PyErr_Occurred()) SWIG_fail;
17342 }
17343 Py_INCREF(Py_None); resultobj = Py_None;
17344 return resultobj;
17345 fail:
17346 return NULL;
17347}
17348
17349
17350static PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) {
17351 PyObject *resultobj;
17352 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
17353 bool result;
17354 PyObject * obj0 = 0 ;
17355 char *kwnames[] = {
17356 (char *) "self", NULL
17357 };
17358
17359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetLoggingOff",kwnames,&obj0)) goto fail;
17360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent,
17361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17362 {
17363 PyThreadState* __tstate = wxPyBeginAllowThreads();
17364 result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff();
17365
17366 wxPyEndAllowThreads(__tstate);
17367 if (PyErr_Occurred()) SWIG_fail;
17368 }
17369 {
17370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17371 }
17372 return resultobj;
17373 fail:
17374 return NULL;
17375}
17376
17377
17378static PyObject *_wrap_CloseEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) {
17379 PyObject *resultobj;
17380 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
17381 bool arg2 = (bool) True ;
17382 PyObject * obj0 = 0 ;
17383 PyObject * obj1 = 0 ;
17384 char *kwnames[] = {
17385 (char *) "self",(char *) "veto", NULL
17386 };
17387
17388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) goto fail;
17389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent,
17390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17391 if (obj1) {
17392 arg2 = (bool) SWIG_AsBool(obj1);
17393 if (PyErr_Occurred()) SWIG_fail;
17394 }
17395 {
17396 PyThreadState* __tstate = wxPyBeginAllowThreads();
17397 (arg1)->Veto(arg2);
17398
17399 wxPyEndAllowThreads(__tstate);
17400 if (PyErr_Occurred()) SWIG_fail;
17401 }
17402 Py_INCREF(Py_None); resultobj = Py_None;
17403 return resultobj;
17404 fail:
17405 return NULL;
17406}
17407
17408
17409static PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *self, PyObject *args, PyObject *kwargs) {
17410 PyObject *resultobj;
17411 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
17412 bool arg2 ;
17413 PyObject * obj0 = 0 ;
17414 PyObject * obj1 = 0 ;
17415 char *kwnames[] = {
17416 (char *) "self",(char *) "canVeto", NULL
17417 };
17418
17419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) goto fail;
17420 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent,
17421 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17422 arg2 = (bool) SWIG_AsBool(obj1);
17423 if (PyErr_Occurred()) SWIG_fail;
17424 {
17425 PyThreadState* __tstate = wxPyBeginAllowThreads();
17426 (arg1)->SetCanVeto(arg2);
17427
17428 wxPyEndAllowThreads(__tstate);
17429 if (PyErr_Occurred()) SWIG_fail;
17430 }
17431 Py_INCREF(Py_None); resultobj = Py_None;
17432 return resultobj;
17433 fail:
17434 return NULL;
17435}
17436
17437
17438static PyObject *_wrap_CloseEvent_CanVeto(PyObject *self, PyObject *args, PyObject *kwargs) {
17439 PyObject *resultobj;
17440 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
17441 bool result;
17442 PyObject * obj0 = 0 ;
17443 char *kwnames[] = {
17444 (char *) "self", NULL
17445 };
17446
17447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_CanVeto",kwnames,&obj0)) goto fail;
17448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent,
17449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17450 {
17451 PyThreadState* __tstate = wxPyBeginAllowThreads();
17452 result = (bool)((wxCloseEvent const *)arg1)->CanVeto();
17453
17454 wxPyEndAllowThreads(__tstate);
17455 if (PyErr_Occurred()) SWIG_fail;
17456 }
17457 {
17458 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17459 }
17460 return resultobj;
17461 fail:
17462 return NULL;
17463}
17464
17465
17466static PyObject *_wrap_CloseEvent_GetVeto(PyObject *self, PyObject *args, PyObject *kwargs) {
17467 PyObject *resultobj;
17468 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
17469 bool result;
17470 PyObject * obj0 = 0 ;
17471 char *kwnames[] = {
17472 (char *) "self", NULL
17473 };
17474
17475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetVeto",kwnames,&obj0)) goto fail;
17476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent,
17477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17478 {
17479 PyThreadState* __tstate = wxPyBeginAllowThreads();
17480 result = (bool)((wxCloseEvent const *)arg1)->GetVeto();
17481
17482 wxPyEndAllowThreads(__tstate);
17483 if (PyErr_Occurred()) SWIG_fail;
17484 }
17485 {
17486 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17487 }
17488 return resultobj;
17489 fail:
17490 return NULL;
17491}
17492
17493
17494static PyObject * CloseEvent_swigregister(PyObject *self, PyObject *args) {
17495 PyObject *obj;
17496 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17497 SWIG_TypeClientData(SWIGTYPE_p_wxCloseEvent, obj);
17498 Py_INCREF(obj);
17499 return Py_BuildValue((char *)"");
17500}
17501static PyObject *_wrap_new_ShowEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17502 PyObject *resultobj;
17503 int arg1 = (int) 0 ;
17504 bool arg2 = (bool) False ;
17505 wxShowEvent *result;
17506 PyObject * obj0 = 0 ;
17507 PyObject * obj1 = 0 ;
17508 char *kwnames[] = {
17509 (char *) "winid",(char *) "show", NULL
17510 };
17511
17512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ShowEvent",kwnames,&obj0,&obj1)) goto fail;
17513 if (obj0) {
17514 arg1 = (int) SWIG_AsInt(obj0);
17515 if (PyErr_Occurred()) SWIG_fail;
17516 }
17517 if (obj1) {
17518 arg2 = (bool) SWIG_AsBool(obj1);
17519 if (PyErr_Occurred()) SWIG_fail;
17520 }
17521 {
17522 PyThreadState* __tstate = wxPyBeginAllowThreads();
17523 result = (wxShowEvent *)new wxShowEvent(arg1,arg2);
17524
17525 wxPyEndAllowThreads(__tstate);
17526 if (PyErr_Occurred()) SWIG_fail;
17527 }
17528 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxShowEvent, 1);
17529 return resultobj;
17530 fail:
17531 return NULL;
17532}
17533
17534
17535static PyObject *_wrap_ShowEvent_SetShow(PyObject *self, PyObject *args, PyObject *kwargs) {
17536 PyObject *resultobj;
17537 wxShowEvent *arg1 = (wxShowEvent *) 0 ;
17538 bool arg2 ;
17539 PyObject * obj0 = 0 ;
17540 PyObject * obj1 = 0 ;
17541 char *kwnames[] = {
17542 (char *) "self",(char *) "show", NULL
17543 };
17544
17545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) goto fail;
17546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent,
17547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17548 arg2 = (bool) SWIG_AsBool(obj1);
17549 if (PyErr_Occurred()) SWIG_fail;
17550 {
17551 PyThreadState* __tstate = wxPyBeginAllowThreads();
17552 (arg1)->SetShow(arg2);
17553
17554 wxPyEndAllowThreads(__tstate);
17555 if (PyErr_Occurred()) SWIG_fail;
17556 }
17557 Py_INCREF(Py_None); resultobj = Py_None;
17558 return resultobj;
17559 fail:
17560 return NULL;
17561}
17562
17563
17564static PyObject *_wrap_ShowEvent_GetShow(PyObject *self, PyObject *args, PyObject *kwargs) {
17565 PyObject *resultobj;
17566 wxShowEvent *arg1 = (wxShowEvent *) 0 ;
17567 bool result;
17568 PyObject * obj0 = 0 ;
17569 char *kwnames[] = {
17570 (char *) "self", NULL
17571 };
17572
17573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShowEvent_GetShow",kwnames,&obj0)) goto fail;
17574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent,
17575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17576 {
17577 PyThreadState* __tstate = wxPyBeginAllowThreads();
17578 result = (bool)((wxShowEvent const *)arg1)->GetShow();
17579
17580 wxPyEndAllowThreads(__tstate);
17581 if (PyErr_Occurred()) SWIG_fail;
17582 }
17583 {
17584 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17585 }
17586 return resultobj;
17587 fail:
17588 return NULL;
17589}
17590
17591
17592static PyObject * ShowEvent_swigregister(PyObject *self, PyObject *args) {
17593 PyObject *obj;
17594 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17595 SWIG_TypeClientData(SWIGTYPE_p_wxShowEvent, obj);
17596 Py_INCREF(obj);
17597 return Py_BuildValue((char *)"");
17598}
17599static PyObject *_wrap_new_IconizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17600 PyObject *resultobj;
17601 int arg1 = (int) 0 ;
17602 bool arg2 = (bool) True ;
17603 wxIconizeEvent *result;
17604 PyObject * obj0 = 0 ;
17605 PyObject * obj1 = 0 ;
17606 char *kwnames[] = {
17607 (char *) "id",(char *) "iconized", NULL
17608 };
17609
17610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconizeEvent",kwnames,&obj0,&obj1)) goto fail;
17611 if (obj0) {
17612 arg1 = (int) SWIG_AsInt(obj0);
17613 if (PyErr_Occurred()) SWIG_fail;
17614 }
17615 if (obj1) {
17616 arg2 = (bool) SWIG_AsBool(obj1);
17617 if (PyErr_Occurred()) SWIG_fail;
17618 }
17619 {
17620 PyThreadState* __tstate = wxPyBeginAllowThreads();
17621 result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2);
17622
17623 wxPyEndAllowThreads(__tstate);
17624 if (PyErr_Occurred()) SWIG_fail;
17625 }
17626 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconizeEvent, 1);
17627 return resultobj;
17628 fail:
17629 return NULL;
17630}
17631
17632
17633static PyObject *_wrap_IconizeEvent_Iconized(PyObject *self, PyObject *args, PyObject *kwargs) {
17634 PyObject *resultobj;
17635 wxIconizeEvent *arg1 = (wxIconizeEvent *) 0 ;
17636 bool result;
17637 PyObject * obj0 = 0 ;
17638 char *kwnames[] = {
17639 (char *) "self", NULL
17640 };
17641
17642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconizeEvent_Iconized",kwnames,&obj0)) goto fail;
17643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconizeEvent,
17644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17645 {
17646 PyThreadState* __tstate = wxPyBeginAllowThreads();
17647 result = (bool)(arg1)->Iconized();
17648
17649 wxPyEndAllowThreads(__tstate);
17650 if (PyErr_Occurred()) SWIG_fail;
17651 }
17652 {
17653 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17654 }
17655 return resultobj;
17656 fail:
17657 return NULL;
17658}
17659
17660
17661static PyObject * IconizeEvent_swigregister(PyObject *self, PyObject *args) {
17662 PyObject *obj;
17663 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17664 SWIG_TypeClientData(SWIGTYPE_p_wxIconizeEvent, obj);
17665 Py_INCREF(obj);
17666 return Py_BuildValue((char *)"");
17667}
17668static PyObject *_wrap_new_MaximizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17669 PyObject *resultobj;
17670 int arg1 = (int) 0 ;
17671 wxMaximizeEvent *result;
17672 PyObject * obj0 = 0 ;
17673 char *kwnames[] = {
17674 (char *) "id", NULL
17675 };
17676
17677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MaximizeEvent",kwnames,&obj0)) goto fail;
17678 if (obj0) {
17679 arg1 = (int) SWIG_AsInt(obj0);
17680 if (PyErr_Occurred()) SWIG_fail;
17681 }
17682 {
17683 PyThreadState* __tstate = wxPyBeginAllowThreads();
17684 result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1);
17685
17686 wxPyEndAllowThreads(__tstate);
17687 if (PyErr_Occurred()) SWIG_fail;
17688 }
17689 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMaximizeEvent, 1);
17690 return resultobj;
17691 fail:
17692 return NULL;
17693}
17694
17695
17696static PyObject * MaximizeEvent_swigregister(PyObject *self, PyObject *args) {
17697 PyObject *obj;
17698 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17699 SWIG_TypeClientData(SWIGTYPE_p_wxMaximizeEvent, obj);
17700 Py_INCREF(obj);
17701 return Py_BuildValue((char *)"");
17702}
17703static PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
17704 PyObject *resultobj;
17705 wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ;
17706 wxPoint result;
17707 PyObject * obj0 = 0 ;
17708 char *kwnames[] = {
17709 (char *) "self", NULL
17710 };
17711
17712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetPosition",kwnames,&obj0)) goto fail;
17713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent,
17714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17715 {
17716 PyThreadState* __tstate = wxPyBeginAllowThreads();
17717 result = (arg1)->GetPosition();
17718
17719 wxPyEndAllowThreads(__tstate);
17720 if (PyErr_Occurred()) SWIG_fail;
17721 }
17722 {
17723 wxPoint * resultptr;
17724 resultptr = new wxPoint((wxPoint &) result);
17725 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
17726 }
17727 return resultobj;
17728 fail:
17729 return NULL;
17730}
17731
17732
17733static PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
17734 PyObject *resultobj;
17735 wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ;
17736 int result;
17737 PyObject * obj0 = 0 ;
17738 char *kwnames[] = {
17739 (char *) "self", NULL
17740 };
17741
17742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetNumberOfFiles",kwnames,&obj0)) goto fail;
17743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent,
17744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17745 {
17746 PyThreadState* __tstate = wxPyBeginAllowThreads();
17747 result = (int)(arg1)->GetNumberOfFiles();
17748
17749 wxPyEndAllowThreads(__tstate);
17750 if (PyErr_Occurred()) SWIG_fail;
17751 }
17752 resultobj = SWIG_FromInt((int)result);
17753 return resultobj;
17754 fail:
17755 return NULL;
17756}
17757
17758
17759static PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
17760 PyObject *resultobj;
17761 wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ;
17762 PyObject *result;
17763 PyObject * obj0 = 0 ;
17764 char *kwnames[] = {
17765 (char *) "self", NULL
17766 };
17767
17768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetFiles",kwnames,&obj0)) goto fail;
17769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent,
17770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17771 {
17772 PyThreadState* __tstate = wxPyBeginAllowThreads();
17773 result = (PyObject *)wxDropFilesEvent_GetFiles(arg1);
17774
17775 wxPyEndAllowThreads(__tstate);
17776 if (PyErr_Occurred()) SWIG_fail;
17777 }
17778 resultobj = result;
17779 return resultobj;
17780 fail:
17781 return NULL;
17782}
17783
17784
17785static PyObject * DropFilesEvent_swigregister(PyObject *self, PyObject *args) {
17786 PyObject *obj;
17787 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17788 SWIG_TypeClientData(SWIGTYPE_p_wxDropFilesEvent, obj);
17789 Py_INCREF(obj);
17790 return Py_BuildValue((char *)"");
17791}
17792static PyObject *_wrap_new_UpdateUIEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17793 PyObject *resultobj;
17794 int arg1 = (int) 0 ;
17795 wxUpdateUIEvent *result;
17796 PyObject * obj0 = 0 ;
17797 char *kwnames[] = {
17798 (char *) "commandId", NULL
17799 };
17800
17801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_UpdateUIEvent",kwnames,&obj0)) goto fail;
17802 if (obj0) {
17803 arg1 = (int) SWIG_AsInt(obj0);
17804 if (PyErr_Occurred()) SWIG_fail;
17805 }
17806 {
17807 PyThreadState* __tstate = wxPyBeginAllowThreads();
17808 result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1);
17809
17810 wxPyEndAllowThreads(__tstate);
17811 if (PyErr_Occurred()) SWIG_fail;
17812 }
17813 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxUpdateUIEvent, 1);
17814 return resultobj;
17815 fail:
17816 return NULL;
17817}
17818
17819
17820static PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
17821 PyObject *resultobj;
17822 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
17823 bool result;
17824 PyObject * obj0 = 0 ;
17825 char *kwnames[] = {
17826 (char *) "self", NULL
17827 };
17828
17829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetChecked",kwnames,&obj0)) goto fail;
17830 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
17831 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17832 {
17833 PyThreadState* __tstate = wxPyBeginAllowThreads();
17834 result = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked();
17835
17836 wxPyEndAllowThreads(__tstate);
17837 if (PyErr_Occurred()) SWIG_fail;
17838 }
17839 {
17840 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17841 }
17842 return resultobj;
17843 fail:
17844 return NULL;
17845}
17846
17847
17848static PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
17849 PyObject *resultobj;
17850 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
17851 bool result;
17852 PyObject * obj0 = 0 ;
17853 char *kwnames[] = {
17854 (char *) "self", NULL
17855 };
17856
17857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetEnabled",kwnames,&obj0)) goto fail;
17858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
17859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17860 {
17861 PyThreadState* __tstate = wxPyBeginAllowThreads();
17862 result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled();
17863
17864 wxPyEndAllowThreads(__tstate);
17865 if (PyErr_Occurred()) SWIG_fail;
17866 }
17867 {
17868 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17869 }
17870 return resultobj;
17871 fail:
17872 return NULL;
17873}
17874
17875
17876static PyObject *_wrap_UpdateUIEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
17877 PyObject *resultobj;
17878 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
17879 wxString result;
17880 PyObject * obj0 = 0 ;
17881 char *kwnames[] = {
17882 (char *) "self", NULL
17883 };
17884
17885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetText",kwnames,&obj0)) goto fail;
17886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
17887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17888 {
17889 PyThreadState* __tstate = wxPyBeginAllowThreads();
17890 result = ((wxUpdateUIEvent const *)arg1)->GetText();
17891
17892 wxPyEndAllowThreads(__tstate);
17893 if (PyErr_Occurred()) SWIG_fail;
17894 }
17895 {
17896#if wxUSE_UNICODE
17897 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17898#else
17899 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17900#endif
17901 }
17902 return resultobj;
17903 fail:
17904 return NULL;
17905}
17906
17907
17908static PyObject *_wrap_UpdateUIEvent_GetSetText(PyObject *self, PyObject *args, PyObject *kwargs) {
17909 PyObject *resultobj;
17910 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
17911 bool result;
17912 PyObject * obj0 = 0 ;
17913 char *kwnames[] = {
17914 (char *) "self", NULL
17915 };
17916
17917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetText",kwnames,&obj0)) goto fail;
17918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
17919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17920 {
17921 PyThreadState* __tstate = wxPyBeginAllowThreads();
17922 result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetText();
17923
17924 wxPyEndAllowThreads(__tstate);
17925 if (PyErr_Occurred()) SWIG_fail;
17926 }
17927 {
17928 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17929 }
17930 return resultobj;
17931 fail:
17932 return NULL;
17933}
17934
17935
17936static PyObject *_wrap_UpdateUIEvent_GetSetChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
17937 PyObject *resultobj;
17938 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
17939 bool result;
17940 PyObject * obj0 = 0 ;
17941 char *kwnames[] = {
17942 (char *) "self", NULL
17943 };
17944
17945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetChecked",kwnames,&obj0)) goto fail;
17946 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
17947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17948 {
17949 PyThreadState* __tstate = wxPyBeginAllowThreads();
17950 result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked();
17951
17952 wxPyEndAllowThreads(__tstate);
17953 if (PyErr_Occurred()) SWIG_fail;
17954 }
17955 {
17956 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17957 }
17958 return resultobj;
17959 fail:
17960 return NULL;
17961}
17962
17963
17964static PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
17965 PyObject *resultobj;
17966 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
17967 bool result;
17968 PyObject * obj0 = 0 ;
17969 char *kwnames[] = {
17970 (char *) "self", NULL
17971 };
17972
17973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetEnabled",kwnames,&obj0)) goto fail;
17974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
17975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17976 {
17977 PyThreadState* __tstate = wxPyBeginAllowThreads();
17978 result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled();
17979
17980 wxPyEndAllowThreads(__tstate);
17981 if (PyErr_Occurred()) SWIG_fail;
17982 }
17983 {
17984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17985 }
17986 return resultobj;
17987 fail:
17988 return NULL;
17989}
17990
17991
17992static PyObject *_wrap_UpdateUIEvent_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
17993 PyObject *resultobj;
17994 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
17995 bool arg2 ;
17996 PyObject * obj0 = 0 ;
17997 PyObject * obj1 = 0 ;
17998 char *kwnames[] = {
17999 (char *) "self",(char *) "check", NULL
18000 };
18001
18002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) goto fail;
18003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
18004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18005 arg2 = (bool) SWIG_AsBool(obj1);
18006 if (PyErr_Occurred()) SWIG_fail;
18007 {
18008 PyThreadState* __tstate = wxPyBeginAllowThreads();
18009 (arg1)->Check(arg2);
18010
18011 wxPyEndAllowThreads(__tstate);
18012 if (PyErr_Occurred()) SWIG_fail;
18013 }
18014 Py_INCREF(Py_None); resultobj = Py_None;
18015 return resultobj;
18016 fail:
18017 return NULL;
18018}
18019
18020
18021static PyObject *_wrap_UpdateUIEvent_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
18022 PyObject *resultobj;
18023 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
18024 bool arg2 ;
18025 PyObject * obj0 = 0 ;
18026 PyObject * obj1 = 0 ;
18027 char *kwnames[] = {
18028 (char *) "self",(char *) "enable", NULL
18029 };
18030
18031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) goto fail;
18032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
18033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18034 arg2 = (bool) SWIG_AsBool(obj1);
18035 if (PyErr_Occurred()) SWIG_fail;
18036 {
18037 PyThreadState* __tstate = wxPyBeginAllowThreads();
18038 (arg1)->Enable(arg2);
18039
18040 wxPyEndAllowThreads(__tstate);
18041 if (PyErr_Occurred()) SWIG_fail;
18042 }
18043 Py_INCREF(Py_None); resultobj = Py_None;
18044 return resultobj;
18045 fail:
18046 return NULL;
18047}
18048
18049
18050static PyObject *_wrap_UpdateUIEvent_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
18051 PyObject *resultobj;
18052 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
18053 wxString *arg2 = 0 ;
18054 bool temp2 = False ;
18055 PyObject * obj0 = 0 ;
18056 PyObject * obj1 = 0 ;
18057 char *kwnames[] = {
18058 (char *) "self",(char *) "text", NULL
18059 };
18060
18061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) goto fail;
18062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
18063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18064 {
18065 arg2 = wxString_in_helper(obj1);
18066 if (arg2 == NULL) SWIG_fail;
18067 temp2 = True;
18068 }
18069 {
18070 PyThreadState* __tstate = wxPyBeginAllowThreads();
18071 (arg1)->SetText((wxString const &)*arg2);
18072
18073 wxPyEndAllowThreads(__tstate);
18074 if (PyErr_Occurred()) SWIG_fail;
18075 }
18076 Py_INCREF(Py_None); resultobj = Py_None;
18077 {
18078 if (temp2)
18079 delete arg2;
18080 }
18081 return resultobj;
18082 fail:
18083 {
18084 if (temp2)
18085 delete arg2;
18086 }
18087 return NULL;
18088}
18089
18090
18091static PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
18092 PyObject *resultobj;
18093 long arg1 ;
18094 PyObject * obj0 = 0 ;
18095 char *kwnames[] = {
18096 (char *) "updateInterval", NULL
18097 };
18098
18099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetUpdateInterval",kwnames,&obj0)) goto fail;
18100 arg1 = (long) SWIG_AsLong(obj0);
18101 if (PyErr_Occurred()) SWIG_fail;
18102 {
18103 PyThreadState* __tstate = wxPyBeginAllowThreads();
18104 wxUpdateUIEvent::SetUpdateInterval(arg1);
18105
18106 wxPyEndAllowThreads(__tstate);
18107 if (PyErr_Occurred()) SWIG_fail;
18108 }
18109 Py_INCREF(Py_None); resultobj = Py_None;
18110 return resultobj;
18111 fail:
18112 return NULL;
18113}
18114
18115
18116static PyObject *_wrap_UpdateUIEvent_GetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
18117 PyObject *resultobj;
18118 long result;
18119 char *kwnames[] = {
18120 NULL
18121 };
18122
18123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetUpdateInterval",kwnames)) goto fail;
18124 {
18125 PyThreadState* __tstate = wxPyBeginAllowThreads();
18126 result = (long)wxUpdateUIEvent::GetUpdateInterval();
18127
18128 wxPyEndAllowThreads(__tstate);
18129 if (PyErr_Occurred()) SWIG_fail;
18130 }
18131 resultobj = SWIG_FromLong((long)result);
18132 return resultobj;
18133 fail:
18134 return NULL;
18135}
18136
18137
18138static PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *self, PyObject *args, PyObject *kwargs) {
18139 PyObject *resultobj;
18140 wxWindow *arg1 = (wxWindow *) 0 ;
18141 bool result;
18142 PyObject * obj0 = 0 ;
18143 char *kwnames[] = {
18144 (char *) "win", NULL
18145 };
18146
18147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) goto fail;
18148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
18149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18150 {
18151 PyThreadState* __tstate = wxPyBeginAllowThreads();
18152 result = (bool)wxUpdateUIEvent::CanUpdate(arg1);
18153
18154 wxPyEndAllowThreads(__tstate);
18155 if (PyErr_Occurred()) SWIG_fail;
18156 }
18157 {
18158 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18159 }
18160 return resultobj;
18161 fail:
18162 return NULL;
18163}
18164
18165
18166static PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
18167 PyObject *resultobj;
18168 char *kwnames[] = {
18169 NULL
18170 };
18171
18172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_ResetUpdateTime",kwnames)) goto fail;
18173 {
18174 PyThreadState* __tstate = wxPyBeginAllowThreads();
18175 wxUpdateUIEvent::ResetUpdateTime();
18176
18177 wxPyEndAllowThreads(__tstate);
18178 if (PyErr_Occurred()) SWIG_fail;
18179 }
18180 Py_INCREF(Py_None); resultobj = Py_None;
18181 return resultobj;
18182 fail:
18183 return NULL;
18184}
18185
18186
18187static PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) {
18188 PyObject *resultobj;
18189 int arg1 ;
18190 PyObject * obj0 = 0 ;
18191 char *kwnames[] = {
18192 (char *) "mode", NULL
18193 };
18194
18195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetMode",kwnames,&obj0)) goto fail;
18196 arg1 = (wxUpdateUIMode) SWIG_AsInt(obj0);
18197 if (PyErr_Occurred()) SWIG_fail;
18198 {
18199 PyThreadState* __tstate = wxPyBeginAllowThreads();
18200 wxUpdateUIEvent::SetMode((wxUpdateUIMode )arg1);
18201
18202 wxPyEndAllowThreads(__tstate);
18203 if (PyErr_Occurred()) SWIG_fail;
18204 }
18205 Py_INCREF(Py_None); resultobj = Py_None;
18206 return resultobj;
18207 fail:
18208 return NULL;
18209}
18210
18211
18212static PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) {
18213 PyObject *resultobj;
18214 int result;
18215 char *kwnames[] = {
18216 NULL
18217 };
18218
18219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetMode",kwnames)) goto fail;
18220 {
18221 PyThreadState* __tstate = wxPyBeginAllowThreads();
18222 result = (int)wxUpdateUIEvent::GetMode();
18223
18224 wxPyEndAllowThreads(__tstate);
18225 if (PyErr_Occurred()) SWIG_fail;
18226 }
18227 resultobj = SWIG_FromInt((int)result);
18228 return resultobj;
18229 fail:
18230 return NULL;
18231}
18232
18233
18234static PyObject * UpdateUIEvent_swigregister(PyObject *self, PyObject *args) {
18235 PyObject *obj;
18236 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18237 SWIG_TypeClientData(SWIGTYPE_p_wxUpdateUIEvent, obj);
18238 Py_INCREF(obj);
18239 return Py_BuildValue((char *)"");
18240}
18241static PyObject *_wrap_new_SysColourChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18242 PyObject *resultobj;
18243 wxSysColourChangedEvent *result;
18244 char *kwnames[] = {
18245 NULL
18246 };
18247
18248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SysColourChangedEvent",kwnames)) goto fail;
18249 {
18250 PyThreadState* __tstate = wxPyBeginAllowThreads();
18251 result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent();
18252
18253 wxPyEndAllowThreads(__tstate);
18254 if (PyErr_Occurred()) SWIG_fail;
18255 }
18256 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSysColourChangedEvent, 1);
18257 return resultobj;
18258 fail:
18259 return NULL;
18260}
18261
18262
18263static PyObject * SysColourChangedEvent_swigregister(PyObject *self, PyObject *args) {
18264 PyObject *obj;
18265 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18266 SWIG_TypeClientData(SWIGTYPE_p_wxSysColourChangedEvent, obj);
18267 Py_INCREF(obj);
18268 return Py_BuildValue((char *)"");
18269}
18270static PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18271 PyObject *resultobj;
18272 int arg1 = (int) 0 ;
18273 wxWindow *arg2 = (wxWindow *) NULL ;
18274 wxMouseCaptureChangedEvent *result;
18275 PyObject * obj0 = 0 ;
18276 PyObject * obj1 = 0 ;
18277 char *kwnames[] = {
18278 (char *) "winid",(char *) "gainedCapture", NULL
18279 };
18280
18281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MouseCaptureChangedEvent",kwnames,&obj0,&obj1)) goto fail;
18282 if (obj0) {
18283 arg1 = (int) SWIG_AsInt(obj0);
18284 if (PyErr_Occurred()) SWIG_fail;
18285 }
18286 if (obj1) {
18287 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
18288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18289 }
18290 {
18291 PyThreadState* __tstate = wxPyBeginAllowThreads();
18292 result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2);
18293
18294 wxPyEndAllowThreads(__tstate);
18295 if (PyErr_Occurred()) SWIG_fail;
18296 }
18297 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseCaptureChangedEvent, 1);
18298 return resultobj;
18299 fail:
18300 return NULL;
18301}
18302
18303
18304static PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
18305 PyObject *resultobj;
18306 wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ;
18307 wxWindow *result;
18308 PyObject * obj0 = 0 ;
18309 char *kwnames[] = {
18310 (char *) "self", NULL
18311 };
18312
18313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseCaptureChangedEvent_GetCapturedWindow",kwnames,&obj0)) goto fail;
18314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseCaptureChangedEvent,
18315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18316 {
18317 PyThreadState* __tstate = wxPyBeginAllowThreads();
18318 result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow();
18319
18320 wxPyEndAllowThreads(__tstate);
18321 if (PyErr_Occurred()) SWIG_fail;
18322 }
18323 {
18324 resultobj = wxPyMake_wxObject(result);
18325 }
18326 return resultobj;
18327 fail:
18328 return NULL;
18329}
18330
18331
18332static PyObject * MouseCaptureChangedEvent_swigregister(PyObject *self, PyObject *args) {
18333 PyObject *obj;
18334 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18335 SWIG_TypeClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, obj);
18336 Py_INCREF(obj);
18337 return Py_BuildValue((char *)"");
18338}
18339static PyObject *_wrap_new_DisplayChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18340 PyObject *resultobj;
18341 wxDisplayChangedEvent *result;
18342 char *kwnames[] = {
18343 NULL
18344 };
18345
18346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DisplayChangedEvent",kwnames)) goto fail;
18347 {
18348 PyThreadState* __tstate = wxPyBeginAllowThreads();
18349 result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent();
18350
18351 wxPyEndAllowThreads(__tstate);
18352 if (PyErr_Occurred()) SWIG_fail;
18353 }
18354 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplayChangedEvent, 1);
18355 return resultobj;
18356 fail:
18357 return NULL;
18358}
18359
18360
18361static PyObject * DisplayChangedEvent_swigregister(PyObject *self, PyObject *args) {
18362 PyObject *obj;
18363 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18364 SWIG_TypeClientData(SWIGTYPE_p_wxDisplayChangedEvent, obj);
18365 Py_INCREF(obj);
18366 return Py_BuildValue((char *)"");
18367}
18368static PyObject *_wrap_new_PaletteChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18369 PyObject *resultobj;
18370 int arg1 = (int) 0 ;
18371 wxPaletteChangedEvent *result;
18372 PyObject * obj0 = 0 ;
18373 char *kwnames[] = {
18374 (char *) "id", NULL
18375 };
18376
18377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaletteChangedEvent",kwnames,&obj0)) goto fail;
18378 if (obj0) {
18379 arg1 = (int) SWIG_AsInt(obj0);
18380 if (PyErr_Occurred()) SWIG_fail;
18381 }
18382 {
18383 PyThreadState* __tstate = wxPyBeginAllowThreads();
18384 result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1);
18385
18386 wxPyEndAllowThreads(__tstate);
18387 if (PyErr_Occurred()) SWIG_fail;
18388 }
18389 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaletteChangedEvent, 1);
18390 return resultobj;
18391 fail:
18392 return NULL;
18393}
18394
18395
18396static PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
18397 PyObject *resultobj;
18398 wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ;
18399 wxWindow *arg2 = (wxWindow *) 0 ;
18400 PyObject * obj0 = 0 ;
18401 PyObject * obj1 = 0 ;
18402 char *kwnames[] = {
18403 (char *) "self",(char *) "win", NULL
18404 };
18405
18406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) goto fail;
18407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent,
18408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18409 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
18410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18411 {
18412 PyThreadState* __tstate = wxPyBeginAllowThreads();
18413 (arg1)->SetChangedWindow(arg2);
18414
18415 wxPyEndAllowThreads(__tstate);
18416 if (PyErr_Occurred()) SWIG_fail;
18417 }
18418 Py_INCREF(Py_None); resultobj = Py_None;
18419 return resultobj;
18420 fail:
18421 return NULL;
18422}
18423
18424
18425static PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
18426 PyObject *resultobj;
18427 wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ;
18428 wxWindow *result;
18429 PyObject * obj0 = 0 ;
18430 char *kwnames[] = {
18431 (char *) "self", NULL
18432 };
18433
18434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PaletteChangedEvent_GetChangedWindow",kwnames,&obj0)) goto fail;
18435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent,
18436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18437 {
18438 PyThreadState* __tstate = wxPyBeginAllowThreads();
18439 result = (wxWindow *)(arg1)->GetChangedWindow();
18440
18441 wxPyEndAllowThreads(__tstate);
18442 if (PyErr_Occurred()) SWIG_fail;
18443 }
18444 {
18445 resultobj = wxPyMake_wxObject(result);
18446 }
18447 return resultobj;
18448 fail:
18449 return NULL;
18450}
18451
18452
18453static PyObject * PaletteChangedEvent_swigregister(PyObject *self, PyObject *args) {
18454 PyObject *obj;
18455 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18456 SWIG_TypeClientData(SWIGTYPE_p_wxPaletteChangedEvent, obj);
18457 Py_INCREF(obj);
18458 return Py_BuildValue((char *)"");
18459}
18460static PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18461 PyObject *resultobj;
18462 int arg1 = (int) 0 ;
18463 wxQueryNewPaletteEvent *result;
18464 PyObject * obj0 = 0 ;
18465 char *kwnames[] = {
18466 (char *) "winid", NULL
18467 };
18468
18469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryNewPaletteEvent",kwnames,&obj0)) goto fail;
18470 if (obj0) {
18471 arg1 = (int) SWIG_AsInt(obj0);
18472 if (PyErr_Occurred()) SWIG_fail;
18473 }
18474 {
18475 PyThreadState* __tstate = wxPyBeginAllowThreads();
18476 result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1);
18477
18478 wxPyEndAllowThreads(__tstate);
18479 if (PyErr_Occurred()) SWIG_fail;
18480 }
18481 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxQueryNewPaletteEvent, 1);
18482 return resultobj;
18483 fail:
18484 return NULL;
18485}
18486
18487
18488static PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) {
18489 PyObject *resultobj;
18490 wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ;
18491 bool arg2 ;
18492 PyObject * obj0 = 0 ;
18493 PyObject * obj1 = 0 ;
18494 char *kwnames[] = {
18495 (char *) "self",(char *) "realized", NULL
18496 };
18497
18498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) goto fail;
18499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent,
18500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18501 arg2 = (bool) SWIG_AsBool(obj1);
18502 if (PyErr_Occurred()) SWIG_fail;
18503 {
18504 PyThreadState* __tstate = wxPyBeginAllowThreads();
18505 (arg1)->SetPaletteRealized(arg2);
18506
18507 wxPyEndAllowThreads(__tstate);
18508 if (PyErr_Occurred()) SWIG_fail;
18509 }
18510 Py_INCREF(Py_None); resultobj = Py_None;
18511 return resultobj;
18512 fail:
18513 return NULL;
18514}
18515
18516
18517static PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) {
18518 PyObject *resultobj;
18519 wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ;
18520 bool result;
18521 PyObject * obj0 = 0 ;
18522 char *kwnames[] = {
18523 (char *) "self", NULL
18524 };
18525
18526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryNewPaletteEvent_GetPaletteRealized",kwnames,&obj0)) goto fail;
18527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent,
18528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18529 {
18530 PyThreadState* __tstate = wxPyBeginAllowThreads();
18531 result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized();
18532
18533 wxPyEndAllowThreads(__tstate);
18534 if (PyErr_Occurred()) SWIG_fail;
18535 }
18536 {
18537 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18538 }
18539 return resultobj;
18540 fail:
18541 return NULL;
18542}
18543
18544
18545static PyObject * QueryNewPaletteEvent_swigregister(PyObject *self, PyObject *args) {
18546 PyObject *obj;
18547 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18548 SWIG_TypeClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, obj);
18549 Py_INCREF(obj);
18550 return Py_BuildValue((char *)"");
18551}
18552static PyObject *_wrap_new_NavigationKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18553 PyObject *resultobj;
18554 wxNavigationKeyEvent *result;
18555 char *kwnames[] = {
18556 NULL
18557 };
18558
18559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NavigationKeyEvent",kwnames)) goto fail;
18560 {
18561 PyThreadState* __tstate = wxPyBeginAllowThreads();
18562 result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent();
18563
18564 wxPyEndAllowThreads(__tstate);
18565 if (PyErr_Occurred()) SWIG_fail;
18566 }
18567 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNavigationKeyEvent, 1);
18568 return resultobj;
18569 fail:
18570 return NULL;
18571}
18572
18573
18574static PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *self, PyObject *args, PyObject *kwargs) {
18575 PyObject *resultobj;
18576 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
18577 bool result;
18578 PyObject * obj0 = 0 ;
18579 char *kwnames[] = {
18580 (char *) "self", NULL
18581 };
18582
18583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetDirection",kwnames,&obj0)) goto fail;
18584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
18585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18586 {
18587 PyThreadState* __tstate = wxPyBeginAllowThreads();
18588 result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection();
18589
18590 wxPyEndAllowThreads(__tstate);
18591 if (PyErr_Occurred()) SWIG_fail;
18592 }
18593 {
18594 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18595 }
18596 return resultobj;
18597 fail:
18598 return NULL;
18599}
18600
18601
18602static PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *self, PyObject *args, PyObject *kwargs) {
18603 PyObject *resultobj;
18604 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
18605 bool arg2 ;
18606 PyObject * obj0 = 0 ;
18607 PyObject * obj1 = 0 ;
18608 char *kwnames[] = {
908b74cd 18609 (char *) "self",(char *) "forward", NULL
d55e5bfc
RD
18610 };
18611
18612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) goto fail;
18613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
18614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18615 arg2 = (bool) SWIG_AsBool(obj1);
18616 if (PyErr_Occurred()) SWIG_fail;
18617 {
18618 PyThreadState* __tstate = wxPyBeginAllowThreads();
18619 (arg1)->SetDirection(arg2);
18620
18621 wxPyEndAllowThreads(__tstate);
18622 if (PyErr_Occurred()) SWIG_fail;
18623 }
18624 Py_INCREF(Py_None); resultobj = Py_None;
18625 return resultobj;
18626 fail:
18627 return NULL;
18628}
18629
18630
18631static PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) {
18632 PyObject *resultobj;
18633 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
18634 bool result;
18635 PyObject * obj0 = 0 ;
18636 char *kwnames[] = {
18637 (char *) "self", NULL
18638 };
18639
18640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsWindowChange",kwnames,&obj0)) goto fail;
18641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
18642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18643 {
18644 PyThreadState* __tstate = wxPyBeginAllowThreads();
18645 result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange();
18646
18647 wxPyEndAllowThreads(__tstate);
18648 if (PyErr_Occurred()) SWIG_fail;
18649 }
18650 {
18651 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18652 }
18653 return resultobj;
18654 fail:
18655 return NULL;
18656}
18657
18658
18659static PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) {
18660 PyObject *resultobj;
18661 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
18662 bool arg2 ;
18663 PyObject * obj0 = 0 ;
18664 PyObject * obj1 = 0 ;
18665 char *kwnames[] = {
908b74cd 18666 (char *) "self",(char *) "ischange", NULL
d55e5bfc
RD
18667 };
18668
18669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) goto fail;
18670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
18671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18672 arg2 = (bool) SWIG_AsBool(obj1);
18673 if (PyErr_Occurred()) SWIG_fail;
18674 {
18675 PyThreadState* __tstate = wxPyBeginAllowThreads();
18676 (arg1)->SetWindowChange(arg2);
18677
18678 wxPyEndAllowThreads(__tstate);
18679 if (PyErr_Occurred()) SWIG_fail;
18680 }
18681 Py_INCREF(Py_None); resultobj = Py_None;
18682 return resultobj;
18683 fail:
18684 return NULL;
18685}
18686
18687
908b74cd
RD
18688static PyObject *_wrap_NavigationKeyEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
18689 PyObject *resultobj;
18690 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
18691 long arg2 ;
18692 PyObject * obj0 = 0 ;
18693 PyObject * obj1 = 0 ;
18694 char *kwnames[] = {
18695 (char *) "self",(char *) "flags", NULL
18696 };
18697
18698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail;
18699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
18700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18701 arg2 = (long) SWIG_AsLong(obj1);
18702 if (PyErr_Occurred()) SWIG_fail;
18703 {
18704 PyThreadState* __tstate = wxPyBeginAllowThreads();
18705 (arg1)->SetFlags(arg2);
18706
18707 wxPyEndAllowThreads(__tstate);
18708 if (PyErr_Occurred()) SWIG_fail;
18709 }
18710 Py_INCREF(Py_None); resultobj = Py_None;
18711 return resultobj;
18712 fail:
18713 return NULL;
18714}
18715
18716
d55e5bfc
RD
18717static PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
18718 PyObject *resultobj;
18719 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
18720 wxWindow *result;
18721 PyObject * obj0 = 0 ;
18722 char *kwnames[] = {
18723 (char *) "self", NULL
18724 };
18725
18726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetCurrentFocus",kwnames,&obj0)) goto fail;
18727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
18728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18729 {
18730 PyThreadState* __tstate = wxPyBeginAllowThreads();
18731 result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus();
18732
18733 wxPyEndAllowThreads(__tstate);
18734 if (PyErr_Occurred()) SWIG_fail;
18735 }
18736 {
18737 resultobj = wxPyMake_wxObject(result);
18738 }
18739 return resultobj;
18740 fail:
18741 return NULL;
18742}
18743
18744
18745static PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
18746 PyObject *resultobj;
18747 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
18748 wxWindow *arg2 = (wxWindow *) 0 ;
18749 PyObject * obj0 = 0 ;
18750 PyObject * obj1 = 0 ;
18751 char *kwnames[] = {
18752 (char *) "self",(char *) "win", NULL
18753 };
18754
18755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) goto fail;
18756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
18757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18758 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
18759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18760 {
18761 PyThreadState* __tstate = wxPyBeginAllowThreads();
18762 (arg1)->SetCurrentFocus(arg2);
18763
18764 wxPyEndAllowThreads(__tstate);
18765 if (PyErr_Occurred()) SWIG_fail;
18766 }
18767 Py_INCREF(Py_None); resultobj = Py_None;
18768 return resultobj;
18769 fail:
18770 return NULL;
18771}
18772
18773
18774static PyObject * NavigationKeyEvent_swigregister(PyObject *self, PyObject *args) {
18775 PyObject *obj;
18776 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18777 SWIG_TypeClientData(SWIGTYPE_p_wxNavigationKeyEvent, obj);
18778 Py_INCREF(obj);
18779 return Py_BuildValue((char *)"");
18780}
18781static PyObject *_wrap_new_WindowCreateEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18782 PyObject *resultobj;
18783 wxWindow *arg1 = (wxWindow *) NULL ;
18784 wxWindowCreateEvent *result;
18785 PyObject * obj0 = 0 ;
18786 char *kwnames[] = {
18787 (char *) "win", NULL
18788 };
18789
18790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) goto fail;
18791 if (obj0) {
18792 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
18793 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18794 }
18795 {
18796 PyThreadState* __tstate = wxPyBeginAllowThreads();
18797 result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1);
18798
18799 wxPyEndAllowThreads(__tstate);
18800 if (PyErr_Occurred()) SWIG_fail;
18801 }
18802 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowCreateEvent, 1);
18803 return resultobj;
18804 fail:
18805 return NULL;
18806}
18807
18808
18809static PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
18810 PyObject *resultobj;
18811 wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ;
18812 wxWindow *result;
18813 PyObject * obj0 = 0 ;
18814 char *kwnames[] = {
18815 (char *) "self", NULL
18816 };
18817
18818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowCreateEvent_GetWindow",kwnames,&obj0)) goto fail;
18819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowCreateEvent,
18820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18821 {
18822 PyThreadState* __tstate = wxPyBeginAllowThreads();
18823 result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow();
18824
18825 wxPyEndAllowThreads(__tstate);
18826 if (PyErr_Occurred()) SWIG_fail;
18827 }
18828 {
18829 resultobj = wxPyMake_wxObject(result);
18830 }
18831 return resultobj;
18832 fail:
18833 return NULL;
18834}
18835
18836
18837static PyObject * WindowCreateEvent_swigregister(PyObject *self, PyObject *args) {
18838 PyObject *obj;
18839 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18840 SWIG_TypeClientData(SWIGTYPE_p_wxWindowCreateEvent, obj);
18841 Py_INCREF(obj);
18842 return Py_BuildValue((char *)"");
18843}
18844static PyObject *_wrap_new_WindowDestroyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18845 PyObject *resultobj;
18846 wxWindow *arg1 = (wxWindow *) NULL ;
18847 wxWindowDestroyEvent *result;
18848 PyObject * obj0 = 0 ;
18849 char *kwnames[] = {
18850 (char *) "win", NULL
18851 };
18852
18853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) goto fail;
18854 if (obj0) {
18855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
18856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18857 }
18858 {
18859 PyThreadState* __tstate = wxPyBeginAllowThreads();
18860 result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1);
18861
18862 wxPyEndAllowThreads(__tstate);
18863 if (PyErr_Occurred()) SWIG_fail;
18864 }
18865 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDestroyEvent, 1);
18866 return resultobj;
18867 fail:
18868 return NULL;
18869}
18870
18871
18872static PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
18873 PyObject *resultobj;
18874 wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ;
18875 wxWindow *result;
18876 PyObject * obj0 = 0 ;
18877 char *kwnames[] = {
18878 (char *) "self", NULL
18879 };
18880
18881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowDestroyEvent_GetWindow",kwnames,&obj0)) goto fail;
18882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDestroyEvent,
18883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18884 {
18885 PyThreadState* __tstate = wxPyBeginAllowThreads();
18886 result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow();
18887
18888 wxPyEndAllowThreads(__tstate);
18889 if (PyErr_Occurred()) SWIG_fail;
18890 }
18891 {
18892 resultobj = wxPyMake_wxObject(result);
18893 }
18894 return resultobj;
18895 fail:
18896 return NULL;
18897}
18898
18899
18900static PyObject * WindowDestroyEvent_swigregister(PyObject *self, PyObject *args) {
18901 PyObject *obj;
18902 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18903 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDestroyEvent, obj);
18904 Py_INCREF(obj);
18905 return Py_BuildValue((char *)"");
18906}
18907static PyObject *_wrap_new_ContextMenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18908 PyObject *resultobj;
18909 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
18910 int arg2 = (int) 0 ;
18911 wxPoint const &arg3_defvalue = wxDefaultPosition ;
18912 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
18913 wxContextMenuEvent *result;
18914 wxPoint temp3 ;
18915 PyObject * obj0 = 0 ;
18916 PyObject * obj1 = 0 ;
18917 PyObject * obj2 = 0 ;
18918 char *kwnames[] = {
18919 (char *) "type",(char *) "winid",(char *) "pt", NULL
18920 };
18921
18922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ContextMenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
18923 if (obj0) {
18924 arg1 = (wxEventType) SWIG_AsInt(obj0);
18925 if (PyErr_Occurred()) SWIG_fail;
18926 }
18927 if (obj1) {
18928 arg2 = (int) SWIG_AsInt(obj1);
18929 if (PyErr_Occurred()) SWIG_fail;
18930 }
18931 if (obj2) {
18932 {
18933 arg3 = &temp3;
18934 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18935 }
18936 }
18937 {
18938 PyThreadState* __tstate = wxPyBeginAllowThreads();
18939 result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3);
18940
18941 wxPyEndAllowThreads(__tstate);
18942 if (PyErr_Occurred()) SWIG_fail;
18943 }
18944 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextMenuEvent, 1);
18945 return resultobj;
18946 fail:
18947 return NULL;
18948}
18949
18950
18951static PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
18952 PyObject *resultobj;
18953 wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ;
18954 wxPoint *result;
18955 PyObject * obj0 = 0 ;
18956 char *kwnames[] = {
18957 (char *) "self", NULL
18958 };
18959
18960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextMenuEvent_GetPosition",kwnames,&obj0)) goto fail;
18961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent,
18962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18963 {
18964 PyThreadState* __tstate = wxPyBeginAllowThreads();
18965 {
18966 wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition();
18967 result = (wxPoint *) &_result_ref;
18968 }
18969
18970 wxPyEndAllowThreads(__tstate);
18971 if (PyErr_Occurred()) SWIG_fail;
18972 }
18973 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
18974 return resultobj;
18975 fail:
18976 return NULL;
18977}
18978
18979
18980static PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
18981 PyObject *resultobj;
18982 wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ;
18983 wxPoint *arg2 = 0 ;
18984 wxPoint temp2 ;
18985 PyObject * obj0 = 0 ;
18986 PyObject * obj1 = 0 ;
18987 char *kwnames[] = {
18988 (char *) "self",(char *) "pos", NULL
18989 };
18990
18991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
18992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent,
18993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18994 {
18995 arg2 = &temp2;
18996 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18997 }
18998 {
18999 PyThreadState* __tstate = wxPyBeginAllowThreads();
19000 (arg1)->SetPosition((wxPoint const &)*arg2);
19001
19002 wxPyEndAllowThreads(__tstate);
19003 if (PyErr_Occurred()) SWIG_fail;
19004 }
19005 Py_INCREF(Py_None); resultobj = Py_None;
19006 return resultobj;
19007 fail:
19008 return NULL;
19009}
19010
19011
19012static PyObject * ContextMenuEvent_swigregister(PyObject *self, PyObject *args) {
19013 PyObject *obj;
19014 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19015 SWIG_TypeClientData(SWIGTYPE_p_wxContextMenuEvent, obj);
19016 Py_INCREF(obj);
19017 return Py_BuildValue((char *)"");
19018}
19019static PyObject *_wrap_new_IdleEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
19020 PyObject *resultobj;
19021 wxIdleEvent *result;
19022 char *kwnames[] = {
19023 NULL
19024 };
19025
19026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IdleEvent",kwnames)) goto fail;
19027 {
19028 PyThreadState* __tstate = wxPyBeginAllowThreads();
19029 result = (wxIdleEvent *)new wxIdleEvent();
19030
19031 wxPyEndAllowThreads(__tstate);
19032 if (PyErr_Occurred()) SWIG_fail;
19033 }
19034 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIdleEvent, 1);
19035 return resultobj;
19036 fail:
19037 return NULL;
19038}
19039
19040
19041static PyObject *_wrap_IdleEvent_RequestMore(PyObject *self, PyObject *args, PyObject *kwargs) {
19042 PyObject *resultobj;
19043 wxIdleEvent *arg1 = (wxIdleEvent *) 0 ;
19044 bool arg2 = (bool) True ;
19045 PyObject * obj0 = 0 ;
19046 PyObject * obj1 = 0 ;
19047 char *kwnames[] = {
19048 (char *) "self",(char *) "needMore", NULL
19049 };
19050
19051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) goto fail;
19052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent,
19053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19054 if (obj1) {
19055 arg2 = (bool) SWIG_AsBool(obj1);
19056 if (PyErr_Occurred()) SWIG_fail;
19057 }
19058 {
19059 PyThreadState* __tstate = wxPyBeginAllowThreads();
19060 (arg1)->RequestMore(arg2);
19061
19062 wxPyEndAllowThreads(__tstate);
19063 if (PyErr_Occurred()) SWIG_fail;
19064 }
19065 Py_INCREF(Py_None); resultobj = Py_None;
19066 return resultobj;
19067 fail:
19068 return NULL;
19069}
19070
19071
19072static PyObject *_wrap_IdleEvent_MoreRequested(PyObject *self, PyObject *args, PyObject *kwargs) {
19073 PyObject *resultobj;
19074 wxIdleEvent *arg1 = (wxIdleEvent *) 0 ;
19075 bool result;
19076 PyObject * obj0 = 0 ;
19077 char *kwnames[] = {
19078 (char *) "self", NULL
19079 };
19080
19081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_MoreRequested",kwnames,&obj0)) goto fail;
19082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent,
19083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19084 {
19085 PyThreadState* __tstate = wxPyBeginAllowThreads();
19086 result = (bool)((wxIdleEvent const *)arg1)->MoreRequested();
19087
19088 wxPyEndAllowThreads(__tstate);
19089 if (PyErr_Occurred()) SWIG_fail;
19090 }
19091 {
19092 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19093 }
19094 return resultobj;
19095 fail:
19096 return NULL;
19097}
19098
19099
19100static PyObject *_wrap_IdleEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) {
19101 PyObject *resultobj;
19102 int arg1 ;
19103 PyObject * obj0 = 0 ;
19104 char *kwnames[] = {
19105 (char *) "mode", NULL
19106 };
19107
19108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_SetMode",kwnames,&obj0)) goto fail;
19109 arg1 = (wxIdleMode) SWIG_AsInt(obj0);
19110 if (PyErr_Occurred()) SWIG_fail;
19111 {
19112 PyThreadState* __tstate = wxPyBeginAllowThreads();
19113 wxIdleEvent::SetMode((wxIdleMode )arg1);
19114
19115 wxPyEndAllowThreads(__tstate);
19116 if (PyErr_Occurred()) SWIG_fail;
19117 }
19118 Py_INCREF(Py_None); resultobj = Py_None;
19119 return resultobj;
19120 fail:
19121 return NULL;
19122}
19123
19124
19125static PyObject *_wrap_IdleEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) {
19126 PyObject *resultobj;
19127 int result;
19128 char *kwnames[] = {
19129 NULL
19130 };
19131
19132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IdleEvent_GetMode",kwnames)) goto fail;
19133 {
19134 PyThreadState* __tstate = wxPyBeginAllowThreads();
19135 result = (int)wxIdleEvent::GetMode();
19136
19137 wxPyEndAllowThreads(__tstate);
19138 if (PyErr_Occurred()) SWIG_fail;
19139 }
19140 resultobj = SWIG_FromInt((int)result);
19141 return resultobj;
19142 fail:
19143 return NULL;
19144}
19145
19146
19147static PyObject *_wrap_IdleEvent_CanSend(PyObject *self, PyObject *args, PyObject *kwargs) {
19148 PyObject *resultobj;
19149 wxWindow *arg1 = (wxWindow *) 0 ;
19150 bool result;
19151 PyObject * obj0 = 0 ;
19152 char *kwnames[] = {
19153 (char *) "win", NULL
19154 };
19155
19156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) goto fail;
19157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
19158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19159 {
19160 PyThreadState* __tstate = wxPyBeginAllowThreads();
19161 result = (bool)wxIdleEvent::CanSend(arg1);
19162
19163 wxPyEndAllowThreads(__tstate);
19164 if (PyErr_Occurred()) SWIG_fail;
19165 }
19166 {
19167 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19168 }
19169 return resultobj;
19170 fail:
19171 return NULL;
19172}
19173
19174
19175static PyObject * IdleEvent_swigregister(PyObject *self, PyObject *args) {
19176 PyObject *obj;
19177 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19178 SWIG_TypeClientData(SWIGTYPE_p_wxIdleEvent, obj);
19179 Py_INCREF(obj);
19180 return Py_BuildValue((char *)"");
19181}
19182static PyObject *_wrap_new_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
19183 PyObject *resultobj;
19184 int arg1 = (int) 0 ;
19185 wxEventType arg2 = (wxEventType) wxEVT_NULL ;
19186 wxPyEvent *result;
19187 PyObject * obj0 = 0 ;
19188 PyObject * obj1 = 0 ;
19189 char *kwnames[] = {
19190 (char *) "winid",(char *) "commandType", NULL
19191 };
19192
19193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyEvent",kwnames,&obj0,&obj1)) goto fail;
19194 if (obj0) {
19195 arg1 = (int) SWIG_AsInt(obj0);
19196 if (PyErr_Occurred()) SWIG_fail;
19197 }
19198 if (obj1) {
19199 arg2 = (wxEventType) SWIG_AsInt(obj1);
19200 if (PyErr_Occurred()) SWIG_fail;
19201 }
19202 {
19203 PyThreadState* __tstate = wxPyBeginAllowThreads();
19204 result = (wxPyEvent *)new wxPyEvent(arg1,arg2);
19205
19206 wxPyEndAllowThreads(__tstate);
19207 if (PyErr_Occurred()) SWIG_fail;
19208 }
19209 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyEvent, 1);
19210 return resultobj;
19211 fail:
19212 return NULL;
19213}
19214
19215
19216static PyObject *_wrap_delete_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
19217 PyObject *resultobj;
19218 wxPyEvent *arg1 = (wxPyEvent *) 0 ;
19219 PyObject * obj0 = 0 ;
19220 char *kwnames[] = {
19221 (char *) "self", NULL
19222 };
19223
19224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyEvent",kwnames,&obj0)) goto fail;
19225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent,
19226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19227 {
19228 PyThreadState* __tstate = wxPyBeginAllowThreads();
19229 delete arg1;
19230
19231 wxPyEndAllowThreads(__tstate);
19232 if (PyErr_Occurred()) SWIG_fail;
19233 }
19234 Py_INCREF(Py_None); resultobj = Py_None;
19235 return resultobj;
19236 fail:
19237 return NULL;
19238}
19239
19240
19241static PyObject *_wrap_PyEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) {
19242 PyObject *resultobj;
19243 wxPyEvent *arg1 = (wxPyEvent *) 0 ;
19244 PyObject *arg2 = (PyObject *) 0 ;
19245 PyObject * obj0 = 0 ;
19246 PyObject * obj1 = 0 ;
19247 char *kwnames[] = {
19248 (char *) "self",(char *) "self", NULL
19249 };
19250
19251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail;
19252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent,
19253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19254 arg2 = obj1;
19255 {
19256 PyThreadState* __tstate = wxPyBeginAllowThreads();
19257 (arg1)->SetSelf(arg2);
19258
19259 wxPyEndAllowThreads(__tstate);
19260 if (PyErr_Occurred()) SWIG_fail;
19261 }
19262 Py_INCREF(Py_None); resultobj = Py_None;
19263 return resultobj;
19264 fail:
19265 return NULL;
19266}
19267
19268
19269static PyObject *_wrap_PyEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) {
19270 PyObject *resultobj;
19271 wxPyEvent *arg1 = (wxPyEvent *) 0 ;
19272 PyObject *result;
19273 PyObject * obj0 = 0 ;
19274 char *kwnames[] = {
19275 (char *) "self", NULL
19276 };
19277
19278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyEvent_GetSelf",kwnames,&obj0)) goto fail;
19279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent,
19280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19281 {
19282 PyThreadState* __tstate = wxPyBeginAllowThreads();
19283 result = (PyObject *)(arg1)->GetSelf();
19284
19285 wxPyEndAllowThreads(__tstate);
19286 if (PyErr_Occurred()) SWIG_fail;
19287 }
19288 resultobj = result;
19289 return resultobj;
19290 fail:
19291 return NULL;
19292}
19293
19294
19295static PyObject * PyEvent_swigregister(PyObject *self, PyObject *args) {
19296 PyObject *obj;
19297 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19298 SWIG_TypeClientData(SWIGTYPE_p_wxPyEvent, obj);
19299 Py_INCREF(obj);
19300 return Py_BuildValue((char *)"");
19301}
19302static PyObject *_wrap_new_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
19303 PyObject *resultobj;
19304 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
19305 int arg2 = (int) 0 ;
19306 wxPyCommandEvent *result;
19307 PyObject * obj0 = 0 ;
19308 PyObject * obj1 = 0 ;
19309 char *kwnames[] = {
19310 (char *) "commandType",(char *) "id", NULL
19311 };
19312
19313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyCommandEvent",kwnames,&obj0,&obj1)) goto fail;
19314 if (obj0) {
19315 arg1 = (wxEventType) SWIG_AsInt(obj0);
19316 if (PyErr_Occurred()) SWIG_fail;
19317 }
19318 if (obj1) {
19319 arg2 = (int) SWIG_AsInt(obj1);
19320 if (PyErr_Occurred()) SWIG_fail;
19321 }
19322 {
19323 PyThreadState* __tstate = wxPyBeginAllowThreads();
19324 result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2);
19325
19326 wxPyEndAllowThreads(__tstate);
19327 if (PyErr_Occurred()) SWIG_fail;
19328 }
19329 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyCommandEvent, 1);
19330 return resultobj;
19331 fail:
19332 return NULL;
19333}
19334
19335
19336static PyObject *_wrap_delete_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
19337 PyObject *resultobj;
19338 wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ;
19339 PyObject * obj0 = 0 ;
19340 char *kwnames[] = {
19341 (char *) "self", NULL
19342 };
19343
19344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyCommandEvent",kwnames,&obj0)) goto fail;
19345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent,
19346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19347 {
19348 PyThreadState* __tstate = wxPyBeginAllowThreads();
19349 delete arg1;
19350
19351 wxPyEndAllowThreads(__tstate);
19352 if (PyErr_Occurred()) SWIG_fail;
19353 }
19354 Py_INCREF(Py_None); resultobj = Py_None;
19355 return resultobj;
19356 fail:
19357 return NULL;
19358}
19359
19360
19361static PyObject *_wrap_PyCommandEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) {
19362 PyObject *resultobj;
19363 wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ;
19364 PyObject *arg2 = (PyObject *) 0 ;
19365 PyObject * obj0 = 0 ;
19366 PyObject * obj1 = 0 ;
19367 char *kwnames[] = {
19368 (char *) "self",(char *) "self", NULL
19369 };
19370
19371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail;
19372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent,
19373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19374 arg2 = obj1;
19375 {
19376 PyThreadState* __tstate = wxPyBeginAllowThreads();
19377 (arg1)->SetSelf(arg2);
19378
19379 wxPyEndAllowThreads(__tstate);
19380 if (PyErr_Occurred()) SWIG_fail;
19381 }
19382 Py_INCREF(Py_None); resultobj = Py_None;
19383 return resultobj;
19384 fail:
19385 return NULL;
19386}
19387
19388
19389static PyObject *_wrap_PyCommandEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) {
19390 PyObject *resultobj;
19391 wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ;
19392 PyObject *result;
19393 PyObject * obj0 = 0 ;
19394 char *kwnames[] = {
19395 (char *) "self", NULL
19396 };
19397
19398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCommandEvent_GetSelf",kwnames,&obj0)) goto fail;
19399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent,
19400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19401 {
19402 PyThreadState* __tstate = wxPyBeginAllowThreads();
19403 result = (PyObject *)(arg1)->GetSelf();
19404
19405 wxPyEndAllowThreads(__tstate);
19406 if (PyErr_Occurred()) SWIG_fail;
19407 }
19408 resultobj = result;
19409 return resultobj;
19410 fail:
19411 return NULL;
19412}
19413
19414
19415static PyObject * PyCommandEvent_swigregister(PyObject *self, PyObject *args) {
19416 PyObject *obj;
19417 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19418 SWIG_TypeClientData(SWIGTYPE_p_wxPyCommandEvent, obj);
19419 Py_INCREF(obj);
19420 return Py_BuildValue((char *)"");
19421}
19422static PyObject *_wrap_new_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) {
19423 PyObject *resultobj;
19424 wxPyApp *result;
19425 char *kwnames[] = {
19426 NULL
19427 };
19428
19429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyApp",kwnames)) goto fail;
19430 {
19431 PyThreadState* __tstate = wxPyBeginAllowThreads();
19432 result = (wxPyApp *)new_wxPyApp();
19433
19434 wxPyEndAllowThreads(__tstate);
19435 if (PyErr_Occurred()) SWIG_fail;
19436 }
19437 {
19438 resultobj = wxPyMake_wxObject(result);
19439 }
19440 return resultobj;
19441 fail:
19442 return NULL;
19443}
19444
19445
19446static PyObject *_wrap_delete_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) {
19447 PyObject *resultobj;
19448 wxPyApp *arg1 = (wxPyApp *) 0 ;
19449 PyObject * obj0 = 0 ;
19450 char *kwnames[] = {
19451 (char *) "self", NULL
19452 };
19453
19454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyApp",kwnames,&obj0)) goto fail;
19455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19457 {
19458 PyThreadState* __tstate = wxPyBeginAllowThreads();
19459 delete arg1;
19460
19461 wxPyEndAllowThreads(__tstate);
19462 if (PyErr_Occurred()) SWIG_fail;
19463 }
19464 Py_INCREF(Py_None); resultobj = Py_None;
19465 return resultobj;
19466 fail:
19467 return NULL;
19468}
19469
19470
19471static PyObject *_wrap_PyApp__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
19472 PyObject *resultobj;
19473 wxPyApp *arg1 = (wxPyApp *) 0 ;
19474 PyObject *arg2 = (PyObject *) 0 ;
19475 PyObject *arg3 = (PyObject *) 0 ;
19476 PyObject * obj0 = 0 ;
19477 PyObject * obj1 = 0 ;
19478 PyObject * obj2 = 0 ;
19479 char *kwnames[] = {
19480 (char *) "self",(char *) "self",(char *) "_class", NULL
19481 };
19482
19483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
19484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19486 arg2 = obj1;
19487 arg3 = obj2;
19488 {
19489 PyThreadState* __tstate = wxPyBeginAllowThreads();
19490 (arg1)->_setCallbackInfo(arg2,arg3);
19491
19492 wxPyEndAllowThreads(__tstate);
19493 if (PyErr_Occurred()) SWIG_fail;
19494 }
19495 Py_INCREF(Py_None); resultobj = Py_None;
19496 return resultobj;
19497 fail:
19498 return NULL;
19499}
19500
19501
19502static PyObject *_wrap_PyApp_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
19503 PyObject *resultobj;
19504 wxPyApp *arg1 = (wxPyApp *) 0 ;
19505 wxString result;
19506 PyObject * obj0 = 0 ;
19507 char *kwnames[] = {
19508 (char *) "self", NULL
19509 };
19510
19511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAppName",kwnames,&obj0)) goto fail;
19512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19514 {
19515 PyThreadState* __tstate = wxPyBeginAllowThreads();
19516 result = ((wxPyApp const *)arg1)->GetAppName();
19517
19518 wxPyEndAllowThreads(__tstate);
19519 if (PyErr_Occurred()) SWIG_fail;
19520 }
19521 {
19522#if wxUSE_UNICODE
19523 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19524#else
19525 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19526#endif
19527 }
19528 return resultobj;
19529 fail:
19530 return NULL;
19531}
19532
19533
19534static PyObject *_wrap_PyApp_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
19535 PyObject *resultobj;
19536 wxPyApp *arg1 = (wxPyApp *) 0 ;
19537 wxString *arg2 = 0 ;
19538 bool temp2 = False ;
19539 PyObject * obj0 = 0 ;
19540 PyObject * obj1 = 0 ;
19541 char *kwnames[] = {
19542 (char *) "self",(char *) "name", NULL
19543 };
19544
19545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",kwnames,&obj0,&obj1)) goto fail;
19546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19548 {
19549 arg2 = wxString_in_helper(obj1);
19550 if (arg2 == NULL) SWIG_fail;
19551 temp2 = True;
19552 }
19553 {
19554 PyThreadState* __tstate = wxPyBeginAllowThreads();
19555 (arg1)->SetAppName((wxString const &)*arg2);
19556
19557 wxPyEndAllowThreads(__tstate);
19558 if (PyErr_Occurred()) SWIG_fail;
19559 }
19560 Py_INCREF(Py_None); resultobj = Py_None;
19561 {
19562 if (temp2)
19563 delete arg2;
19564 }
19565 return resultobj;
19566 fail:
19567 {
19568 if (temp2)
19569 delete arg2;
19570 }
19571 return NULL;
19572}
19573
19574
19575static PyObject *_wrap_PyApp_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) {
19576 PyObject *resultobj;
19577 wxPyApp *arg1 = (wxPyApp *) 0 ;
19578 wxString result;
19579 PyObject * obj0 = 0 ;
19580 char *kwnames[] = {
19581 (char *) "self", NULL
19582 };
19583
19584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetClassName",kwnames,&obj0)) goto fail;
19585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19587 {
19588 PyThreadState* __tstate = wxPyBeginAllowThreads();
19589 result = ((wxPyApp const *)arg1)->GetClassName();
19590
19591 wxPyEndAllowThreads(__tstate);
19592 if (PyErr_Occurred()) SWIG_fail;
19593 }
19594 {
19595#if wxUSE_UNICODE
19596 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19597#else
19598 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19599#endif
19600 }
19601 return resultobj;
19602 fail:
19603 return NULL;
19604}
19605
19606
19607static PyObject *_wrap_PyApp_SetClassName(PyObject *self, PyObject *args, PyObject *kwargs) {
19608 PyObject *resultobj;
19609 wxPyApp *arg1 = (wxPyApp *) 0 ;
19610 wxString *arg2 = 0 ;
19611 bool temp2 = False ;
19612 PyObject * obj0 = 0 ;
19613 PyObject * obj1 = 0 ;
19614 char *kwnames[] = {
19615 (char *) "self",(char *) "name", NULL
19616 };
19617
19618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) goto fail;
19619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19621 {
19622 arg2 = wxString_in_helper(obj1);
19623 if (arg2 == NULL) SWIG_fail;
19624 temp2 = True;
19625 }
19626 {
19627 PyThreadState* __tstate = wxPyBeginAllowThreads();
19628 (arg1)->SetClassName((wxString const &)*arg2);
19629
19630 wxPyEndAllowThreads(__tstate);
19631 if (PyErr_Occurred()) SWIG_fail;
19632 }
19633 Py_INCREF(Py_None); resultobj = Py_None;
19634 {
19635 if (temp2)
19636 delete arg2;
19637 }
19638 return resultobj;
19639 fail:
19640 {
19641 if (temp2)
19642 delete arg2;
19643 }
19644 return NULL;
19645}
19646
19647
19648static PyObject *_wrap_PyApp_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
19649 PyObject *resultobj;
19650 wxPyApp *arg1 = (wxPyApp *) 0 ;
19651 wxString *result;
19652 PyObject * obj0 = 0 ;
19653 char *kwnames[] = {
19654 (char *) "self", NULL
19655 };
19656
19657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetVendorName",kwnames,&obj0)) goto fail;
19658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19660 {
19661 PyThreadState* __tstate = wxPyBeginAllowThreads();
19662 {
19663 wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName();
19664 result = (wxString *) &_result_ref;
19665 }
19666
19667 wxPyEndAllowThreads(__tstate);
19668 if (PyErr_Occurred()) SWIG_fail;
19669 }
19670 {
19671#if wxUSE_UNICODE
19672 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
19673#else
19674 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
19675#endif
19676 }
19677 return resultobj;
19678 fail:
19679 return NULL;
19680}
19681
19682
19683static PyObject *_wrap_PyApp_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
19684 PyObject *resultobj;
19685 wxPyApp *arg1 = (wxPyApp *) 0 ;
19686 wxString *arg2 = 0 ;
19687 bool temp2 = False ;
19688 PyObject * obj0 = 0 ;
19689 PyObject * obj1 = 0 ;
19690 char *kwnames[] = {
19691 (char *) "self",(char *) "name", NULL
19692 };
19693
19694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) goto fail;
19695 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19697 {
19698 arg2 = wxString_in_helper(obj1);
19699 if (arg2 == NULL) SWIG_fail;
19700 temp2 = True;
19701 }
19702 {
19703 PyThreadState* __tstate = wxPyBeginAllowThreads();
19704 (arg1)->SetVendorName((wxString const &)*arg2);
19705
19706 wxPyEndAllowThreads(__tstate);
19707 if (PyErr_Occurred()) SWIG_fail;
19708 }
19709 Py_INCREF(Py_None); resultobj = Py_None;
19710 {
19711 if (temp2)
19712 delete arg2;
19713 }
19714 return resultobj;
19715 fail:
19716 {
19717 if (temp2)
19718 delete arg2;
19719 }
19720 return NULL;
19721}
19722
19723
19724static PyObject *_wrap_PyApp_GetTraits(PyObject *self, PyObject *args, PyObject *kwargs) {
19725 PyObject *resultobj;
19726 wxPyApp *arg1 = (wxPyApp *) 0 ;
19727 wxAppTraits *result;
19728 PyObject * obj0 = 0 ;
19729 char *kwnames[] = {
19730 (char *) "self", NULL
19731 };
19732
19733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTraits",kwnames,&obj0)) goto fail;
19734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19736 {
19737 PyThreadState* __tstate = wxPyBeginAllowThreads();
19738 result = (wxAppTraits *)(arg1)->GetTraits();
19739
19740 wxPyEndAllowThreads(__tstate);
19741 if (PyErr_Occurred()) SWIG_fail;
19742 }
19743 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAppTraits, 0);
19744 return resultobj;
19745 fail:
19746 return NULL;
19747}
19748
19749
19750static PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) {
19751 PyObject *resultobj;
19752 wxPyApp *arg1 = (wxPyApp *) 0 ;
19753 PyObject * obj0 = 0 ;
19754 char *kwnames[] = {
19755 (char *) "self", NULL
19756 };
19757
19758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessPendingEvents",kwnames,&obj0)) goto fail;
19759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19761 {
19762 PyThreadState* __tstate = wxPyBeginAllowThreads();
19763 (arg1)->ProcessPendingEvents();
19764
19765 wxPyEndAllowThreads(__tstate);
19766 if (PyErr_Occurred()) SWIG_fail;
19767 }
19768 Py_INCREF(Py_None); resultobj = Py_None;
19769 return resultobj;
19770 fail:
19771 return NULL;
19772}
19773
19774
19775static PyObject *_wrap_PyApp_Yield(PyObject *self, PyObject *args, PyObject *kwargs) {
19776 PyObject *resultobj;
19777 wxPyApp *arg1 = (wxPyApp *) 0 ;
19778 bool arg2 = (bool) False ;
19779 bool result;
19780 PyObject * obj0 = 0 ;
19781 PyObject * obj1 = 0 ;
19782 char *kwnames[] = {
19783 (char *) "self",(char *) "onlyIfNeeded", NULL
19784 };
19785
19786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) goto fail;
19787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19789 if (obj1) {
19790 arg2 = (bool) SWIG_AsBool(obj1);
19791 if (PyErr_Occurred()) SWIG_fail;
19792 }
19793 {
19794 PyThreadState* __tstate = wxPyBeginAllowThreads();
19795 result = (bool)(arg1)->Yield(arg2);
19796
19797 wxPyEndAllowThreads(__tstate);
19798 if (PyErr_Occurred()) SWIG_fail;
19799 }
19800 {
19801 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19802 }
19803 return resultobj;
19804 fail:
19805 return NULL;
19806}
19807
19808
19809static PyObject *_wrap_PyApp_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) {
19810 PyObject *resultobj;
19811 wxPyApp *arg1 = (wxPyApp *) 0 ;
19812 PyObject * obj0 = 0 ;
19813 char *kwnames[] = {
19814 (char *) "self", NULL
19815 };
19816
19817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_WakeUpIdle",kwnames,&obj0)) goto fail;
19818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19820 {
19821 PyThreadState* __tstate = wxPyBeginAllowThreads();
19822 (arg1)->WakeUpIdle();
19823
19824 wxPyEndAllowThreads(__tstate);
19825 if (PyErr_Occurred()) SWIG_fail;
19826 }
19827 Py_INCREF(Py_None); resultobj = Py_None;
19828 return resultobj;
19829 fail:
19830 return NULL;
19831}
19832
19833
19834static PyObject *_wrap_PyApp_MainLoop(PyObject *self, PyObject *args, PyObject *kwargs) {
19835 PyObject *resultobj;
19836 wxPyApp *arg1 = (wxPyApp *) 0 ;
19837 int result;
19838 PyObject * obj0 = 0 ;
19839 char *kwnames[] = {
19840 (char *) "self", NULL
19841 };
19842
19843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_MainLoop",kwnames,&obj0)) goto fail;
19844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19846 {
19847 PyThreadState* __tstate = wxPyBeginAllowThreads();
19848 result = (int)(arg1)->MainLoop();
19849
19850 wxPyEndAllowThreads(__tstate);
19851 if (PyErr_Occurred()) SWIG_fail;
19852 }
19853 resultobj = SWIG_FromInt((int)result);
19854 return resultobj;
19855 fail:
19856 return NULL;
19857}
19858
19859
19860static PyObject *_wrap_PyApp_Exit(PyObject *self, PyObject *args, PyObject *kwargs) {
19861 PyObject *resultobj;
19862 wxPyApp *arg1 = (wxPyApp *) 0 ;
19863 PyObject * obj0 = 0 ;
19864 char *kwnames[] = {
19865 (char *) "self", NULL
19866 };
19867
19868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Exit",kwnames,&obj0)) goto fail;
19869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19871 {
19872 PyThreadState* __tstate = wxPyBeginAllowThreads();
19873 (arg1)->Exit();
19874
19875 wxPyEndAllowThreads(__tstate);
19876 if (PyErr_Occurred()) SWIG_fail;
19877 }
19878 Py_INCREF(Py_None); resultobj = Py_None;
19879 return resultobj;
19880 fail:
19881 return NULL;
19882}
19883
19884
19885static PyObject *_wrap_PyApp_ExitMainLoop(PyObject *self, PyObject *args, PyObject *kwargs) {
19886 PyObject *resultobj;
19887 wxPyApp *arg1 = (wxPyApp *) 0 ;
19888 PyObject * obj0 = 0 ;
19889 char *kwnames[] = {
19890 (char *) "self", NULL
19891 };
19892
19893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ExitMainLoop",kwnames,&obj0)) goto fail;
19894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19896 {
19897 PyThreadState* __tstate = wxPyBeginAllowThreads();
19898 (arg1)->ExitMainLoop();
19899
19900 wxPyEndAllowThreads(__tstate);
19901 if (PyErr_Occurred()) SWIG_fail;
19902 }
19903 Py_INCREF(Py_None); resultobj = Py_None;
19904 return resultobj;
19905 fail:
19906 return NULL;
19907}
19908
19909
19910static PyObject *_wrap_PyApp_Pending(PyObject *self, PyObject *args, PyObject *kwargs) {
19911 PyObject *resultobj;
19912 wxPyApp *arg1 = (wxPyApp *) 0 ;
19913 bool result;
19914 PyObject * obj0 = 0 ;
19915 char *kwnames[] = {
19916 (char *) "self", NULL
19917 };
19918
19919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Pending",kwnames,&obj0)) goto fail;
19920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19922 {
19923 PyThreadState* __tstate = wxPyBeginAllowThreads();
19924 result = (bool)(arg1)->Pending();
19925
19926 wxPyEndAllowThreads(__tstate);
19927 if (PyErr_Occurred()) SWIG_fail;
19928 }
19929 {
19930 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19931 }
19932 return resultobj;
19933 fail:
19934 return NULL;
19935}
19936
19937
19938static PyObject *_wrap_PyApp_Dispatch(PyObject *self, PyObject *args, PyObject *kwargs) {
19939 PyObject *resultobj;
19940 wxPyApp *arg1 = (wxPyApp *) 0 ;
19941 bool result;
19942 PyObject * obj0 = 0 ;
19943 char *kwnames[] = {
19944 (char *) "self", NULL
19945 };
19946
19947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Dispatch",kwnames,&obj0)) goto fail;
19948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19950 {
19951 PyThreadState* __tstate = wxPyBeginAllowThreads();
19952 result = (bool)(arg1)->Dispatch();
19953
19954 wxPyEndAllowThreads(__tstate);
19955 if (PyErr_Occurred()) SWIG_fail;
19956 }
19957 {
19958 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19959 }
19960 return resultobj;
19961 fail:
19962 return NULL;
19963}
19964
19965
19966static PyObject *_wrap_PyApp_ProcessIdle(PyObject *self, PyObject *args, PyObject *kwargs) {
19967 PyObject *resultobj;
19968 wxPyApp *arg1 = (wxPyApp *) 0 ;
19969 bool result;
19970 PyObject * obj0 = 0 ;
19971 char *kwnames[] = {
19972 (char *) "self", NULL
19973 };
19974
19975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessIdle",kwnames,&obj0)) goto fail;
19976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19978 {
19979 PyThreadState* __tstate = wxPyBeginAllowThreads();
19980 result = (bool)(arg1)->ProcessIdle();
19981
19982 wxPyEndAllowThreads(__tstate);
19983 if (PyErr_Occurred()) SWIG_fail;
19984 }
19985 {
19986 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19987 }
19988 return resultobj;
19989 fail:
19990 return NULL;
19991}
19992
19993
19994static PyObject *_wrap_PyApp_SendIdleEvents(PyObject *self, PyObject *args, PyObject *kwargs) {
19995 PyObject *resultobj;
19996 wxPyApp *arg1 = (wxPyApp *) 0 ;
19997 wxWindow *arg2 = (wxWindow *) 0 ;
19998 wxIdleEvent *arg3 = 0 ;
19999 bool result;
20000 PyObject * obj0 = 0 ;
20001 PyObject * obj1 = 0 ;
20002 PyObject * obj2 = 0 ;
20003 char *kwnames[] = {
20004 (char *) "self",(char *) "win",(char *) "event", NULL
20005 };
20006
20007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) goto fail;
20008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20010 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
20011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20012 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIdleEvent,
20013 SWIG_POINTER_EXCEPTION | 0)) == -1)
20014 SWIG_fail;
20015 if (arg3 == NULL) {
20016 PyErr_SetString(PyExc_TypeError,"null reference");
20017 SWIG_fail;
20018 }
20019 {
20020 PyThreadState* __tstate = wxPyBeginAllowThreads();
20021 result = (bool)(arg1)->SendIdleEvents(arg2,*arg3);
20022
20023 wxPyEndAllowThreads(__tstate);
20024 if (PyErr_Occurred()) SWIG_fail;
20025 }
20026 {
20027 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20028 }
20029 return resultobj;
20030 fail:
20031 return NULL;
20032}
20033
20034
20035static PyObject *_wrap_PyApp_IsActive(PyObject *self, PyObject *args, PyObject *kwargs) {
20036 PyObject *resultobj;
20037 wxPyApp *arg1 = (wxPyApp *) 0 ;
20038 bool result;
20039 PyObject * obj0 = 0 ;
20040 char *kwnames[] = {
20041 (char *) "self", NULL
20042 };
20043
20044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_IsActive",kwnames,&obj0)) goto fail;
20045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20047 {
20048 PyThreadState* __tstate = wxPyBeginAllowThreads();
20049 result = (bool)((wxPyApp const *)arg1)->IsActive();
20050
20051 wxPyEndAllowThreads(__tstate);
20052 if (PyErr_Occurred()) SWIG_fail;
20053 }
20054 {
20055 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20056 }
20057 return resultobj;
20058 fail:
20059 return NULL;
20060}
20061
20062
20063static PyObject *_wrap_PyApp_SetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
20064 PyObject *resultobj;
20065 wxPyApp *arg1 = (wxPyApp *) 0 ;
20066 wxWindow *arg2 = (wxWindow *) 0 ;
20067 PyObject * obj0 = 0 ;
20068 PyObject * obj1 = 0 ;
20069 char *kwnames[] = {
20070 (char *) "self",(char *) "win", NULL
20071 };
20072
20073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) goto fail;
20074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20076 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
20077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20078 {
20079 PyThreadState* __tstate = wxPyBeginAllowThreads();
20080 (arg1)->SetTopWindow(arg2);
20081
20082 wxPyEndAllowThreads(__tstate);
20083 if (PyErr_Occurred()) SWIG_fail;
20084 }
20085 Py_INCREF(Py_None); resultobj = Py_None;
20086 return resultobj;
20087 fail:
20088 return NULL;
20089}
20090
20091
20092static PyObject *_wrap_PyApp_GetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
20093 PyObject *resultobj;
20094 wxPyApp *arg1 = (wxPyApp *) 0 ;
20095 wxWindow *result;
20096 PyObject * obj0 = 0 ;
20097 char *kwnames[] = {
20098 (char *) "self", NULL
20099 };
20100
20101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTopWindow",kwnames,&obj0)) goto fail;
20102 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20104 {
20105 PyThreadState* __tstate = wxPyBeginAllowThreads();
20106 result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow();
20107
20108 wxPyEndAllowThreads(__tstate);
20109 if (PyErr_Occurred()) SWIG_fail;
20110 }
20111 {
20112 resultobj = wxPyMake_wxObject(result);
20113 }
20114 return resultobj;
20115 fail:
20116 return NULL;
20117}
20118
20119
20120static PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) {
20121 PyObject *resultobj;
20122 wxPyApp *arg1 = (wxPyApp *) 0 ;
20123 bool arg2 ;
20124 PyObject * obj0 = 0 ;
20125 PyObject * obj1 = 0 ;
20126 char *kwnames[] = {
20127 (char *) "self",(char *) "flag", NULL
20128 };
20129
20130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) goto fail;
20131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20133 arg2 = (bool) SWIG_AsBool(obj1);
20134 if (PyErr_Occurred()) SWIG_fail;
20135 {
20136 PyThreadState* __tstate = wxPyBeginAllowThreads();
20137 (arg1)->SetExitOnFrameDelete(arg2);
20138
20139 wxPyEndAllowThreads(__tstate);
20140 if (PyErr_Occurred()) SWIG_fail;
20141 }
20142 Py_INCREF(Py_None); resultobj = Py_None;
20143 return resultobj;
20144 fail:
20145 return NULL;
20146}
20147
20148
20149static PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) {
20150 PyObject *resultobj;
20151 wxPyApp *arg1 = (wxPyApp *) 0 ;
20152 bool result;
20153 PyObject * obj0 = 0 ;
20154 char *kwnames[] = {
20155 (char *) "self", NULL
20156 };
20157
20158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetExitOnFrameDelete",kwnames,&obj0)) goto fail;
20159 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20160 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20161 {
20162 PyThreadState* __tstate = wxPyBeginAllowThreads();
20163 result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete();
20164
20165 wxPyEndAllowThreads(__tstate);
20166 if (PyErr_Occurred()) SWIG_fail;
20167 }
20168 {
20169 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20170 }
20171 return resultobj;
20172 fail:
20173 return NULL;
20174}
20175
20176
20177static PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) {
20178 PyObject *resultobj;
20179 wxPyApp *arg1 = (wxPyApp *) 0 ;
20180 bool arg2 ;
20181 PyObject * obj0 = 0 ;
20182 PyObject * obj1 = 0 ;
20183 char *kwnames[] = {
20184 (char *) "self",(char *) "flag", NULL
20185 };
20186
20187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) goto fail;
20188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20190 arg2 = (bool) SWIG_AsBool(obj1);
20191 if (PyErr_Occurred()) SWIG_fail;
20192 {
20193 PyThreadState* __tstate = wxPyBeginAllowThreads();
20194 (arg1)->SetUseBestVisual(arg2);
20195
20196 wxPyEndAllowThreads(__tstate);
20197 if (PyErr_Occurred()) SWIG_fail;
20198 }
20199 Py_INCREF(Py_None); resultobj = Py_None;
20200 return resultobj;
20201 fail:
20202 return NULL;
20203}
20204
20205
20206static PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) {
20207 PyObject *resultobj;
20208 wxPyApp *arg1 = (wxPyApp *) 0 ;
20209 bool result;
20210 PyObject * obj0 = 0 ;
20211 char *kwnames[] = {
20212 (char *) "self", NULL
20213 };
20214
20215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetUseBestVisual",kwnames,&obj0)) goto fail;
20216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20218 {
20219 PyThreadState* __tstate = wxPyBeginAllowThreads();
20220 result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual();
20221
20222 wxPyEndAllowThreads(__tstate);
20223 if (PyErr_Occurred()) SWIG_fail;
20224 }
20225 {
20226 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20227 }
20228 return resultobj;
20229 fail:
20230 return NULL;
20231}
20232
20233
20234static PyObject *_wrap_PyApp_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) {
20235 PyObject *resultobj;
20236 wxPyApp *arg1 = (wxPyApp *) 0 ;
20237 int arg2 ;
20238 PyObject * obj0 = 0 ;
20239 PyObject * obj1 = 0 ;
20240 char *kwnames[] = {
20241 (char *) "self",(char *) "mode", NULL
20242 };
20243
20244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetPrintMode",kwnames,&obj0,&obj1)) goto fail;
20245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20247 arg2 = (int) SWIG_AsInt(obj1);
20248 if (PyErr_Occurred()) SWIG_fail;
20249 {
20250 PyThreadState* __tstate = wxPyBeginAllowThreads();
20251 (arg1)->SetPrintMode(arg2);
20252
20253 wxPyEndAllowThreads(__tstate);
20254 if (PyErr_Occurred()) SWIG_fail;
20255 }
20256 Py_INCREF(Py_None); resultobj = Py_None;
20257 return resultobj;
20258 fail:
20259 return NULL;
20260}
20261
20262
20263static PyObject *_wrap_PyApp_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) {
20264 PyObject *resultobj;
20265 wxPyApp *arg1 = (wxPyApp *) 0 ;
20266 int result;
20267 PyObject * obj0 = 0 ;
20268 char *kwnames[] = {
20269 (char *) "self", NULL
20270 };
20271
20272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetPrintMode",kwnames,&obj0)) goto fail;
20273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20275 {
20276 PyThreadState* __tstate = wxPyBeginAllowThreads();
20277 result = (int)((wxPyApp const *)arg1)->GetPrintMode();
20278
20279 wxPyEndAllowThreads(__tstate);
20280 if (PyErr_Occurred()) SWIG_fail;
20281 }
20282 resultobj = SWIG_FromInt((int)result);
20283 return resultobj;
20284 fail:
20285 return NULL;
20286}
20287
20288
20289static PyObject *_wrap_PyApp_SetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) {
20290 PyObject *resultobj;
20291 wxPyApp *arg1 = (wxPyApp *) 0 ;
20292 int arg2 ;
20293 PyObject * obj0 = 0 ;
20294 PyObject * obj1 = 0 ;
20295 char *kwnames[] = {
20296 (char *) "self",(char *) "mode", NULL
20297 };
20298
20299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAssertMode",kwnames,&obj0,&obj1)) goto fail;
20300 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20301 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20302 arg2 = (int) SWIG_AsInt(obj1);
20303 if (PyErr_Occurred()) SWIG_fail;
20304 {
20305 PyThreadState* __tstate = wxPyBeginAllowThreads();
20306 (arg1)->SetAssertMode(arg2);
20307
20308 wxPyEndAllowThreads(__tstate);
20309 if (PyErr_Occurred()) SWIG_fail;
20310 }
20311 Py_INCREF(Py_None); resultobj = Py_None;
20312 return resultobj;
20313 fail:
20314 return NULL;
20315}
20316
20317
20318static PyObject *_wrap_PyApp_GetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) {
20319 PyObject *resultobj;
20320 wxPyApp *arg1 = (wxPyApp *) 0 ;
20321 int result;
20322 PyObject * obj0 = 0 ;
20323 char *kwnames[] = {
20324 (char *) "self", NULL
20325 };
20326
20327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAssertMode",kwnames,&obj0)) goto fail;
20328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20330 {
20331 PyThreadState* __tstate = wxPyBeginAllowThreads();
20332 result = (int)(arg1)->GetAssertMode();
20333
20334 wxPyEndAllowThreads(__tstate);
20335 if (PyErr_Occurred()) SWIG_fail;
20336 }
20337 resultobj = SWIG_FromInt((int)result);
20338 return resultobj;
20339 fail:
20340 return NULL;
20341}
20342
20343
20344static PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) {
20345 PyObject *resultobj;
20346 bool result;
20347 char *kwnames[] = {
20348 NULL
20349 };
20350
20351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacSupportPCMenuShortcuts",kwnames)) goto fail;
20352 {
20353 PyThreadState* __tstate = wxPyBeginAllowThreads();
20354 result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts();
20355
20356 wxPyEndAllowThreads(__tstate);
20357 if (PyErr_Occurred()) SWIG_fail;
20358 }
20359 {
20360 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20361 }
20362 return resultobj;
20363 fail:
20364 return NULL;
20365}
20366
20367
20368static PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
20369 PyObject *resultobj;
20370 long result;
20371 char *kwnames[] = {
20372 NULL
20373 };
20374
20375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacAboutMenuItemId",kwnames)) goto fail;
20376 {
20377 PyThreadState* __tstate = wxPyBeginAllowThreads();
20378 result = (long)wxPyApp::GetMacAboutMenuItemId();
20379
20380 wxPyEndAllowThreads(__tstate);
20381 if (PyErr_Occurred()) SWIG_fail;
20382 }
20383 resultobj = SWIG_FromLong((long)result);
20384 return resultobj;
20385 fail:
20386 return NULL;
20387}
20388
20389
20390static PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
20391 PyObject *resultobj;
20392 long result;
20393 char *kwnames[] = {
20394 NULL
20395 };
20396
20397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacPreferencesMenuItemId",kwnames)) goto fail;
20398 {
20399 PyThreadState* __tstate = wxPyBeginAllowThreads();
20400 result = (long)wxPyApp::GetMacPreferencesMenuItemId();
20401
20402 wxPyEndAllowThreads(__tstate);
20403 if (PyErr_Occurred()) SWIG_fail;
20404 }
20405 resultobj = SWIG_FromLong((long)result);
20406 return resultobj;
20407 fail:
20408 return NULL;
20409}
20410
20411
20412static PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
20413 PyObject *resultobj;
20414 long result;
20415 char *kwnames[] = {
20416 NULL
20417 };
20418
20419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacExitMenuItemId",kwnames)) goto fail;
20420 {
20421 PyThreadState* __tstate = wxPyBeginAllowThreads();
20422 result = (long)wxPyApp::GetMacExitMenuItemId();
20423
20424 wxPyEndAllowThreads(__tstate);
20425 if (PyErr_Occurred()) SWIG_fail;
20426 }
20427 resultobj = SWIG_FromLong((long)result);
20428 return resultobj;
20429 fail:
20430 return NULL;
20431}
20432
20433
20434static PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) {
20435 PyObject *resultobj;
20436 wxString result;
20437 char *kwnames[] = {
20438 NULL
20439 };
20440
20441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacHelpMenuTitleName",kwnames)) goto fail;
20442 {
20443 PyThreadState* __tstate = wxPyBeginAllowThreads();
20444 result = wxPyApp::GetMacHelpMenuTitleName();
20445
20446 wxPyEndAllowThreads(__tstate);
20447 if (PyErr_Occurred()) SWIG_fail;
20448 }
20449 {
20450#if wxUSE_UNICODE
20451 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20452#else
20453 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20454#endif
20455 }
20456 return resultobj;
20457 fail:
20458 return NULL;
20459}
20460
20461
20462static PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) {
20463 PyObject *resultobj;
20464 bool arg1 ;
20465 PyObject * obj0 = 0 ;
20466 char *kwnames[] = {
20467 (char *) "val", NULL
20468 };
20469
20470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) goto fail;
20471 arg1 = (bool) SWIG_AsBool(obj0);
20472 if (PyErr_Occurred()) SWIG_fail;
20473 {
20474 PyThreadState* __tstate = wxPyBeginAllowThreads();
20475 wxPyApp::SetMacSupportPCMenuShortcuts(arg1);
20476
20477 wxPyEndAllowThreads(__tstate);
20478 if (PyErr_Occurred()) SWIG_fail;
20479 }
20480 Py_INCREF(Py_None); resultobj = Py_None;
20481 return resultobj;
20482 fail:
20483 return NULL;
20484}
20485
20486
20487static PyObject *_wrap_PyApp_SetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
20488 PyObject *resultobj;
20489 long arg1 ;
20490 PyObject * obj0 = 0 ;
20491 char *kwnames[] = {
20492 (char *) "val", NULL
20493 };
20494
20495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacAboutMenuItemId",kwnames,&obj0)) goto fail;
20496 arg1 = (long) SWIG_AsLong(obj0);
20497 if (PyErr_Occurred()) SWIG_fail;
20498 {
20499 PyThreadState* __tstate = wxPyBeginAllowThreads();
20500 wxPyApp::SetMacAboutMenuItemId(arg1);
20501
20502 wxPyEndAllowThreads(__tstate);
20503 if (PyErr_Occurred()) SWIG_fail;
20504 }
20505 Py_INCREF(Py_None); resultobj = Py_None;
20506 return resultobj;
20507 fail:
20508 return NULL;
20509}
20510
20511
20512static PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
20513 PyObject *resultobj;
20514 long arg1 ;
20515 PyObject * obj0 = 0 ;
20516 char *kwnames[] = {
20517 (char *) "val", NULL
20518 };
20519
20520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacPreferencesMenuItemId",kwnames,&obj0)) goto fail;
20521 arg1 = (long) SWIG_AsLong(obj0);
20522 if (PyErr_Occurred()) SWIG_fail;
20523 {
20524 PyThreadState* __tstate = wxPyBeginAllowThreads();
20525 wxPyApp::SetMacPreferencesMenuItemId(arg1);
20526
20527 wxPyEndAllowThreads(__tstate);
20528 if (PyErr_Occurred()) SWIG_fail;
20529 }
20530 Py_INCREF(Py_None); resultobj = Py_None;
20531 return resultobj;
20532 fail:
20533 return NULL;
20534}
20535
20536
20537static PyObject *_wrap_PyApp_SetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
20538 PyObject *resultobj;
20539 long arg1 ;
20540 PyObject * obj0 = 0 ;
20541 char *kwnames[] = {
20542 (char *) "val", NULL
20543 };
20544
20545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacExitMenuItemId",kwnames,&obj0)) goto fail;
20546 arg1 = (long) SWIG_AsLong(obj0);
20547 if (PyErr_Occurred()) SWIG_fail;
20548 {
20549 PyThreadState* __tstate = wxPyBeginAllowThreads();
20550 wxPyApp::SetMacExitMenuItemId(arg1);
20551
20552 wxPyEndAllowThreads(__tstate);
20553 if (PyErr_Occurred()) SWIG_fail;
20554 }
20555 Py_INCREF(Py_None); resultobj = Py_None;
20556 return resultobj;
20557 fail:
20558 return NULL;
20559}
20560
20561
20562static PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) {
20563 PyObject *resultobj;
20564 wxString *arg1 = 0 ;
20565 bool temp1 = False ;
20566 PyObject * obj0 = 0 ;
20567 char *kwnames[] = {
20568 (char *) "val", NULL
20569 };
20570
20571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) goto fail;
20572 {
20573 arg1 = wxString_in_helper(obj0);
20574 if (arg1 == NULL) SWIG_fail;
20575 temp1 = True;
20576 }
20577 {
20578 PyThreadState* __tstate = wxPyBeginAllowThreads();
20579 wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1);
20580
20581 wxPyEndAllowThreads(__tstate);
20582 if (PyErr_Occurred()) SWIG_fail;
20583 }
20584 Py_INCREF(Py_None); resultobj = Py_None;
20585 {
20586 if (temp1)
20587 delete arg1;
20588 }
20589 return resultobj;
20590 fail:
20591 {
20592 if (temp1)
20593 delete arg1;
20594 }
20595 return NULL;
20596}
20597
20598
20599static PyObject *_wrap_PyApp__BootstrapApp(PyObject *self, PyObject *args, PyObject *kwargs) {
20600 PyObject *resultobj;
20601 wxPyApp *arg1 = (wxPyApp *) 0 ;
20602 PyObject * obj0 = 0 ;
20603 char *kwnames[] = {
20604 (char *) "self", NULL
20605 };
20606
20607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp__BootstrapApp",kwnames,&obj0)) goto fail;
20608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20610 {
20611 PyThreadState* __tstate = wxPyBeginAllowThreads();
20612 (arg1)->_BootstrapApp();
20613
20614 wxPyEndAllowThreads(__tstate);
20615 if (PyErr_Occurred()) SWIG_fail;
20616 }
20617 Py_INCREF(Py_None); resultobj = Py_None;
20618 return resultobj;
20619 fail:
20620 return NULL;
20621}
20622
20623
20624static PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *self, PyObject *args, PyObject *kwargs) {
20625 PyObject *resultobj;
20626 int result;
20627 char *kwnames[] = {
20628 NULL
20629 };
20630
20631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetComCtl32Version",kwnames)) goto fail;
20632 {
20633 PyThreadState* __tstate = wxPyBeginAllowThreads();
20634 result = (int)wxPyApp::GetComCtl32Version();
20635
20636 wxPyEndAllowThreads(__tstate);
20637 if (PyErr_Occurred()) SWIG_fail;
20638 }
20639 resultobj = SWIG_FromInt((int)result);
20640 return resultobj;
20641 fail:
20642 return NULL;
20643}
20644
20645
20646static PyObject * PyApp_swigregister(PyObject *self, PyObject *args) {
20647 PyObject *obj;
20648 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20649 SWIG_TypeClientData(SWIGTYPE_p_wxPyApp, obj);
20650 Py_INCREF(obj);
20651 return Py_BuildValue((char *)"");
20652}
20653static PyObject *_wrap_Exit(PyObject *self, PyObject *args, PyObject *kwargs) {
20654 PyObject *resultobj;
20655 char *kwnames[] = {
20656 NULL
20657 };
20658
20659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Exit",kwnames)) goto fail;
20660 {
20661 PyThreadState* __tstate = wxPyBeginAllowThreads();
20662 wxExit();
20663
20664 wxPyEndAllowThreads(__tstate);
20665 if (PyErr_Occurred()) SWIG_fail;
20666 }
20667 Py_INCREF(Py_None); resultobj = Py_None;
20668 return resultobj;
20669 fail:
20670 return NULL;
20671}
20672
20673
20674static PyObject *_wrap_Yield(PyObject *self, PyObject *args, PyObject *kwargs) {
20675 PyObject *resultobj;
20676 bool result;
20677 char *kwnames[] = {
20678 NULL
20679 };
20680
20681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Yield",kwnames)) goto fail;
20682 {
20683 PyThreadState* __tstate = wxPyBeginAllowThreads();
20684 result = (bool)wxYield();
20685
20686 wxPyEndAllowThreads(__tstate);
20687 if (PyErr_Occurred()) SWIG_fail;
20688 }
20689 {
20690 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20691 }
20692 return resultobj;
20693 fail:
20694 return NULL;
20695}
20696
20697
20698static PyObject *_wrap_YieldIfNeeded(PyObject *self, PyObject *args, PyObject *kwargs) {
20699 PyObject *resultobj;
20700 bool result;
20701 char *kwnames[] = {
20702 NULL
20703 };
20704
20705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":YieldIfNeeded",kwnames)) goto fail;
20706 {
20707 PyThreadState* __tstate = wxPyBeginAllowThreads();
20708 result = (bool)wxYieldIfNeeded();
20709
20710 wxPyEndAllowThreads(__tstate);
20711 if (PyErr_Occurred()) SWIG_fail;
20712 }
20713 {
20714 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20715 }
20716 return resultobj;
20717 fail:
20718 return NULL;
20719}
20720
20721
20722static PyObject *_wrap_SafeYield(PyObject *self, PyObject *args, PyObject *kwargs) {
20723 PyObject *resultobj;
20724 wxWindow *arg1 = (wxWindow *) NULL ;
20725 bool arg2 = (bool) False ;
20726 bool result;
20727 PyObject * obj0 = 0 ;
20728 PyObject * obj1 = 0 ;
20729 char *kwnames[] = {
20730 (char *) "win",(char *) "onlyIfNeeded", NULL
20731 };
20732
20733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) goto fail;
20734 if (obj0) {
20735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
20736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20737 }
20738 if (obj1) {
20739 arg2 = (bool) SWIG_AsBool(obj1);
20740 if (PyErr_Occurred()) SWIG_fail;
20741 }
20742 {
20743 PyThreadState* __tstate = wxPyBeginAllowThreads();
20744 result = (bool)wxSafeYield(arg1,arg2);
20745
20746 wxPyEndAllowThreads(__tstate);
20747 if (PyErr_Occurred()) SWIG_fail;
20748 }
20749 {
20750 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20751 }
20752 return resultobj;
20753 fail:
20754 return NULL;
20755}
20756
20757
20758static PyObject *_wrap_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) {
20759 PyObject *resultobj;
20760 char *kwnames[] = {
20761 NULL
20762 };
20763
20764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpIdle",kwnames)) goto fail;
20765 {
20766 PyThreadState* __tstate = wxPyBeginAllowThreads();
20767 wxWakeUpIdle();
20768
20769 wxPyEndAllowThreads(__tstate);
20770 if (PyErr_Occurred()) SWIG_fail;
20771 }
20772 Py_INCREF(Py_None); resultobj = Py_None;
20773 return resultobj;
20774 fail:
20775 return NULL;
20776}
20777
20778
20779static PyObject *_wrap_PostEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
20780 PyObject *resultobj;
20781 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
20782 wxEvent *arg2 = 0 ;
20783 PyObject * obj0 = 0 ;
20784 PyObject * obj1 = 0 ;
20785 char *kwnames[] = {
20786 (char *) "dest",(char *) "event", NULL
20787 };
20788
20789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) goto fail;
20790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
20791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20792 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent,
20793 SWIG_POINTER_EXCEPTION | 0)) == -1)
20794 SWIG_fail;
20795 if (arg2 == NULL) {
20796 PyErr_SetString(PyExc_TypeError,"null reference");
20797 SWIG_fail;
20798 }
20799 {
20800 PyThreadState* __tstate = wxPyBeginAllowThreads();
20801 wxPostEvent(arg1,*arg2);
20802
20803 wxPyEndAllowThreads(__tstate);
20804 if (PyErr_Occurred()) SWIG_fail;
20805 }
20806 Py_INCREF(Py_None); resultobj = Py_None;
20807 return resultobj;
20808 fail:
20809 return NULL;
20810}
20811
20812
20813static PyObject *_wrap_App_CleanUp(PyObject *self, PyObject *args, PyObject *kwargs) {
20814 PyObject *resultobj;
20815 char *kwnames[] = {
20816 NULL
20817 };
20818
20819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":App_CleanUp",kwnames)) goto fail;
20820 {
20821 PyThreadState* __tstate = wxPyBeginAllowThreads();
20822 wxApp_CleanUp();
20823
20824 wxPyEndAllowThreads(__tstate);
20825 if (PyErr_Occurred()) SWIG_fail;
20826 }
20827 Py_INCREF(Py_None); resultobj = Py_None;
20828 return resultobj;
20829 fail:
20830 return NULL;
20831}
20832
20833
20834static PyObject *_wrap_GetApp(PyObject *self, PyObject *args, PyObject *kwargs) {
20835 PyObject *resultobj;
20836 wxPyApp *result;
20837 char *kwnames[] = {
20838 NULL
20839 };
20840
20841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetApp",kwnames)) goto fail;
20842 {
20843 PyThreadState* __tstate = wxPyBeginAllowThreads();
caef1a4d 20844 result = (wxPyApp *)wxPyGetApp();
d55e5bfc
RD
20845
20846 wxPyEndAllowThreads(__tstate);
20847 if (PyErr_Occurred()) SWIG_fail;
20848 }
20849 {
20850 resultobj = wxPyMake_wxObject(result);
20851 }
20852 return resultobj;
20853 fail:
20854 return NULL;
20855}
20856
20857
20858static PyObject *_wrap_new_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
20859 PyObject *resultobj;
20860 int arg1 = (int) 0 ;
20861 int arg2 = (int) 0 ;
20862 int arg3 = (int) 0 ;
d55e5bfc
RD
20863 wxAcceleratorEntry *result;
20864 PyObject * obj0 = 0 ;
20865 PyObject * obj1 = 0 ;
20866 PyObject * obj2 = 0 ;
d55e5bfc 20867 char *kwnames[] = {
c24da6d6 20868 (char *) "flags",(char *) "keyCode",(char *) "cmdID", NULL
d55e5bfc
RD
20869 };
20870
c24da6d6 20871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_AcceleratorEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
20872 if (obj0) {
20873 arg1 = (int) SWIG_AsInt(obj0);
20874 if (PyErr_Occurred()) SWIG_fail;
20875 }
20876 if (obj1) {
20877 arg2 = (int) SWIG_AsInt(obj1);
20878 if (PyErr_Occurred()) SWIG_fail;
20879 }
20880 if (obj2) {
20881 arg3 = (int) SWIG_AsInt(obj2);
20882 if (PyErr_Occurred()) SWIG_fail;
20883 }
d55e5bfc
RD
20884 {
20885 PyThreadState* __tstate = wxPyBeginAllowThreads();
c24da6d6 20886 result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3);
d55e5bfc
RD
20887
20888 wxPyEndAllowThreads(__tstate);
20889 if (PyErr_Occurred()) SWIG_fail;
20890 }
20891 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 1);
20892 return resultobj;
20893 fail:
20894 return NULL;
20895}
20896
20897
20898static PyObject *_wrap_delete_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
20899 PyObject *resultobj;
20900 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
20901 PyObject * obj0 = 0 ;
20902 char *kwnames[] = {
20903 (char *) "self", NULL
20904 };
20905
20906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorEntry",kwnames,&obj0)) goto fail;
20907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry,
20908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20909 {
20910 PyThreadState* __tstate = wxPyBeginAllowThreads();
20911 delete arg1;
20912
20913 wxPyEndAllowThreads(__tstate);
20914 if (PyErr_Occurred()) SWIG_fail;
20915 }
20916 Py_INCREF(Py_None); resultobj = Py_None;
20917 return resultobj;
20918 fail:
20919 return NULL;
20920}
20921
20922
20923static PyObject *_wrap_AcceleratorEntry_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
20924 PyObject *resultobj;
20925 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
20926 int arg2 ;
20927 int arg3 ;
20928 int arg4 ;
d55e5bfc
RD
20929 PyObject * obj0 = 0 ;
20930 PyObject * obj1 = 0 ;
20931 PyObject * obj2 = 0 ;
20932 PyObject * obj3 = 0 ;
d55e5bfc 20933 char *kwnames[] = {
c24da6d6 20934 (char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd", NULL
d55e5bfc
RD
20935 };
20936
c24da6d6 20937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AcceleratorEntry_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
20938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry,
20939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20940 arg2 = (int) SWIG_AsInt(obj1);
20941 if (PyErr_Occurred()) SWIG_fail;
20942 arg3 = (int) SWIG_AsInt(obj2);
20943 if (PyErr_Occurred()) SWIG_fail;
20944 arg4 = (int) SWIG_AsInt(obj3);
20945 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
20946 {
20947 PyThreadState* __tstate = wxPyBeginAllowThreads();
c24da6d6 20948 (arg1)->Set(arg2,arg3,arg4);
d55e5bfc
RD
20949
20950 wxPyEndAllowThreads(__tstate);
20951 if (PyErr_Occurred()) SWIG_fail;
20952 }
20953 Py_INCREF(Py_None); resultobj = Py_None;
20954 return resultobj;
20955 fail:
20956 return NULL;
20957}
20958
20959
d55e5bfc
RD
20960static PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
20961 PyObject *resultobj;
20962 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
20963 int result;
20964 PyObject * obj0 = 0 ;
20965 char *kwnames[] = {
20966 (char *) "self", NULL
20967 };
20968
20969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetFlags",kwnames,&obj0)) goto fail;
20970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry,
20971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20972 {
20973 PyThreadState* __tstate = wxPyBeginAllowThreads();
20974 result = (int)(arg1)->GetFlags();
20975
20976 wxPyEndAllowThreads(__tstate);
20977 if (PyErr_Occurred()) SWIG_fail;
20978 }
20979 resultobj = SWIG_FromInt((int)result);
20980 return resultobj;
20981 fail:
20982 return NULL;
20983}
20984
20985
20986static PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
20987 PyObject *resultobj;
20988 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
20989 int result;
20990 PyObject * obj0 = 0 ;
20991 char *kwnames[] = {
20992 (char *) "self", NULL
20993 };
20994
20995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetKeyCode",kwnames,&obj0)) goto fail;
20996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry,
20997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20998 {
20999 PyThreadState* __tstate = wxPyBeginAllowThreads();
21000 result = (int)(arg1)->GetKeyCode();
21001
21002 wxPyEndAllowThreads(__tstate);
21003 if (PyErr_Occurred()) SWIG_fail;
21004 }
21005 resultobj = SWIG_FromInt((int)result);
21006 return resultobj;
21007 fail:
21008 return NULL;
21009}
21010
21011
21012static PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
21013 PyObject *resultobj;
21014 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
21015 int result;
21016 PyObject * obj0 = 0 ;
21017 char *kwnames[] = {
21018 (char *) "self", NULL
21019 };
21020
21021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetCommand",kwnames,&obj0)) goto fail;
21022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry,
21023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21024 {
21025 PyThreadState* __tstate = wxPyBeginAllowThreads();
21026 result = (int)(arg1)->GetCommand();
21027
21028 wxPyEndAllowThreads(__tstate);
21029 if (PyErr_Occurred()) SWIG_fail;
21030 }
21031 resultobj = SWIG_FromInt((int)result);
21032 return resultobj;
21033 fail:
21034 return NULL;
21035}
21036
21037
21038static PyObject * AcceleratorEntry_swigregister(PyObject *self, PyObject *args) {
21039 PyObject *obj;
21040 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21041 SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorEntry, obj);
21042 Py_INCREF(obj);
21043 return Py_BuildValue((char *)"");
21044}
21045static PyObject *_wrap_new_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
21046 PyObject *resultobj;
21047 int arg1 ;
21048 wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ;
21049 wxAcceleratorTable *result;
21050 PyObject * obj0 = 0 ;
21051 char *kwnames[] = {
21052 (char *) "n", NULL
21053 };
21054
21055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) goto fail;
21056 {
21057 arg2 = wxAcceleratorEntry_LIST_helper(obj0);
21058 if (arg2) arg1 = PyList_Size(obj0);
21059 else arg1 = 0;
21060 }
21061 {
21062 PyThreadState* __tstate = wxPyBeginAllowThreads();
21063 result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2);
21064
21065 wxPyEndAllowThreads(__tstate);
21066 if (PyErr_Occurred()) SWIG_fail;
21067 }
21068 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 1);
21069 {
21070 delete [] arg2;
21071 }
21072 return resultobj;
21073 fail:
21074 {
21075 delete [] arg2;
21076 }
21077 return NULL;
21078}
21079
21080
21081static PyObject *_wrap_delete_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
21082 PyObject *resultobj;
21083 wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ;
21084 PyObject * obj0 = 0 ;
21085 char *kwnames[] = {
21086 (char *) "self", NULL
21087 };
21088
21089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorTable",kwnames,&obj0)) goto fail;
21090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable,
21091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21092 {
21093 PyThreadState* __tstate = wxPyBeginAllowThreads();
21094 delete arg1;
21095
21096 wxPyEndAllowThreads(__tstate);
21097 if (PyErr_Occurred()) SWIG_fail;
21098 }
21099 Py_INCREF(Py_None); resultobj = Py_None;
21100 return resultobj;
21101 fail:
21102 return NULL;
21103}
21104
21105
21106static PyObject *_wrap_AcceleratorTable_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
21107 PyObject *resultobj;
21108 wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ;
21109 bool result;
21110 PyObject * obj0 = 0 ;
21111 char *kwnames[] = {
21112 (char *) "self", NULL
21113 };
21114
21115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorTable_Ok",kwnames,&obj0)) goto fail;
21116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable,
21117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21118 {
21119 PyThreadState* __tstate = wxPyBeginAllowThreads();
21120 result = (bool)((wxAcceleratorTable const *)arg1)->Ok();
21121
21122 wxPyEndAllowThreads(__tstate);
21123 if (PyErr_Occurred()) SWIG_fail;
21124 }
21125 {
21126 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21127 }
21128 return resultobj;
21129 fail:
21130 return NULL;
21131}
21132
21133
21134static PyObject * AcceleratorTable_swigregister(PyObject *self, PyObject *args) {
21135 PyObject *obj;
21136 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21137 SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorTable, obj);
21138 Py_INCREF(obj);
21139 return Py_BuildValue((char *)"");
21140}
21141static int _wrap_NullAcceleratorTable_set(PyObject *_val) {
21142 PyErr_SetString(PyExc_TypeError,"Variable NullAcceleratorTable is read-only.");
21143 return 1;
21144}
21145
21146
21147static PyObject *_wrap_NullAcceleratorTable_get() {
21148 PyObject *pyobj;
21149
21150 pyobj = SWIG_NewPointerObj((void *)(&wxNullAcceleratorTable), SWIGTYPE_p_wxAcceleratorTable, 0);
21151 return pyobj;
21152}
21153
21154
21155static PyObject *_wrap_GetAccelFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
21156 PyObject *resultobj;
21157 wxString *arg1 = 0 ;
21158 wxAcceleratorEntry *result;
21159 bool temp1 = False ;
21160 PyObject * obj0 = 0 ;
21161 char *kwnames[] = {
21162 (char *) "label", NULL
21163 };
21164
21165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) goto fail;
21166 {
21167 arg1 = wxString_in_helper(obj0);
21168 if (arg1 == NULL) SWIG_fail;
21169 temp1 = True;
21170 }
21171 {
21172 PyThreadState* __tstate = wxPyBeginAllowThreads();
21173 result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1);
21174
21175 wxPyEndAllowThreads(__tstate);
21176 if (PyErr_Occurred()) SWIG_fail;
21177 }
21178 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0);
21179 {
21180 if (temp1)
21181 delete arg1;
21182 }
21183 return resultobj;
21184 fail:
21185 {
21186 if (temp1)
21187 delete arg1;
21188 }
21189 return NULL;
21190}
21191
21192
21193static int _wrap_PanelNameStr_set(PyObject *_val) {
21194 PyErr_SetString(PyExc_TypeError,"Variable PanelNameStr is read-only.");
21195 return 1;
21196}
21197
21198
21199static PyObject *_wrap_PanelNameStr_get() {
21200 PyObject *pyobj;
21201
21202 {
21203#if wxUSE_UNICODE
21204 pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len());
21205#else
21206 pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len());
21207#endif
21208 }
21209 return pyobj;
21210}
21211
21212
21213static PyObject *_wrap_new_VisualAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
21214 PyObject *resultobj;
21215 wxVisualAttributes *result;
21216 char *kwnames[] = {
21217 NULL
21218 };
21219
21220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_VisualAttributes",kwnames)) goto fail;
21221 {
21222 PyThreadState* __tstate = wxPyBeginAllowThreads();
21223 result = (wxVisualAttributes *)new_wxVisualAttributes();
21224
21225 wxPyEndAllowThreads(__tstate);
21226 if (PyErr_Occurred()) SWIG_fail;
21227 }
21228 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVisualAttributes, 1);
21229 return resultobj;
21230 fail:
21231 return NULL;
21232}
21233
21234
21235static PyObject *_wrap_delete_VisualAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
21236 PyObject *resultobj;
21237 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
21238 PyObject * obj0 = 0 ;
21239 char *kwnames[] = {
21240 (char *) "self", NULL
21241 };
21242
21243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VisualAttributes",kwnames,&obj0)) goto fail;
21244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
21245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21246 {
21247 PyThreadState* __tstate = wxPyBeginAllowThreads();
21248 delete_wxVisualAttributes(arg1);
21249
21250 wxPyEndAllowThreads(__tstate);
21251 if (PyErr_Occurred()) SWIG_fail;
21252 }
21253 Py_INCREF(Py_None); resultobj = Py_None;
21254 return resultobj;
21255 fail:
21256 return NULL;
21257}
21258
21259
21260static PyObject *_wrap_VisualAttributes_font_set(PyObject *self, PyObject *args, PyObject *kwargs) {
21261 PyObject *resultobj;
21262 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
21263 wxFont *arg2 = (wxFont *) 0 ;
21264 PyObject * obj0 = 0 ;
21265 PyObject * obj1 = 0 ;
21266 char *kwnames[] = {
21267 (char *) "self",(char *) "font", NULL
21268 };
21269
21270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_font_set",kwnames,&obj0,&obj1)) goto fail;
21271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
21272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21273 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
21274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21275 if (arg1) (arg1)->font = *arg2;
21276
21277 Py_INCREF(Py_None); resultobj = Py_None;
21278 return resultobj;
21279 fail:
21280 return NULL;
21281}
21282
21283
21284static PyObject *_wrap_VisualAttributes_font_get(PyObject *self, PyObject *args, PyObject *kwargs) {
21285 PyObject *resultobj;
21286 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
21287 wxFont *result;
21288 PyObject * obj0 = 0 ;
21289 char *kwnames[] = {
21290 (char *) "self", NULL
21291 };
21292
21293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_font_get",kwnames,&obj0)) goto fail;
21294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
21295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21296 result = (wxFont *)& ((arg1)->font);
21297
21298 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
21299 return resultobj;
21300 fail:
21301 return NULL;
21302}
21303
21304
21305static PyObject *_wrap_VisualAttributes_colFg_set(PyObject *self, PyObject *args, PyObject *kwargs) {
21306 PyObject *resultobj;
21307 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
21308 wxColour *arg2 = (wxColour *) 0 ;
21309 PyObject * obj0 = 0 ;
21310 PyObject * obj1 = 0 ;
21311 char *kwnames[] = {
21312 (char *) "self",(char *) "colFg", NULL
21313 };
21314
21315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colFg_set",kwnames,&obj0,&obj1)) goto fail;
21316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
21317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21318 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour,
21319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21320 if (arg1) (arg1)->colFg = *arg2;
21321
21322 Py_INCREF(Py_None); resultobj = Py_None;
21323 return resultobj;
21324 fail:
21325 return NULL;
21326}
21327
21328
21329static PyObject *_wrap_VisualAttributes_colFg_get(PyObject *self, PyObject *args, PyObject *kwargs) {
21330 PyObject *resultobj;
21331 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
21332 wxColour *result;
21333 PyObject * obj0 = 0 ;
21334 char *kwnames[] = {
21335 (char *) "self", NULL
21336 };
21337
21338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colFg_get",kwnames,&obj0)) goto fail;
21339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
21340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21341 result = (wxColour *)& ((arg1)->colFg);
21342
21343 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
21344 return resultobj;
21345 fail:
21346 return NULL;
21347}
21348
21349
21350static PyObject *_wrap_VisualAttributes_colBg_set(PyObject *self, PyObject *args, PyObject *kwargs) {
21351 PyObject *resultobj;
21352 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
21353 wxColour *arg2 = (wxColour *) 0 ;
21354 PyObject * obj0 = 0 ;
21355 PyObject * obj1 = 0 ;
21356 char *kwnames[] = {
21357 (char *) "self",(char *) "colBg", NULL
21358 };
21359
21360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colBg_set",kwnames,&obj0,&obj1)) goto fail;
21361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
21362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21363 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour,
21364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21365 if (arg1) (arg1)->colBg = *arg2;
21366
21367 Py_INCREF(Py_None); resultobj = Py_None;
21368 return resultobj;
21369 fail:
21370 return NULL;
21371}
21372
21373
21374static PyObject *_wrap_VisualAttributes_colBg_get(PyObject *self, PyObject *args, PyObject *kwargs) {
21375 PyObject *resultobj;
21376 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
21377 wxColour *result;
21378 PyObject * obj0 = 0 ;
21379 char *kwnames[] = {
21380 (char *) "self", NULL
21381 };
21382
21383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colBg_get",kwnames,&obj0)) goto fail;
21384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
21385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21386 result = (wxColour *)& ((arg1)->colBg);
21387
21388 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
21389 return resultobj;
21390 fail:
21391 return NULL;
21392}
21393
21394
21395static PyObject * VisualAttributes_swigregister(PyObject *self, PyObject *args) {
21396 PyObject *obj;
21397 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21398 SWIG_TypeClientData(SWIGTYPE_p_wxVisualAttributes, obj);
21399 Py_INCREF(obj);
21400 return Py_BuildValue((char *)"");
21401}
21402static PyObject *_wrap_new_Window(PyObject *self, PyObject *args, PyObject *kwargs) {
21403 PyObject *resultobj;
21404 wxWindow *arg1 = (wxWindow *) 0 ;
21405 int arg2 = (int) (int)-1 ;
21406 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21407 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21408 wxSize const &arg4_defvalue = wxDefaultSize ;
21409 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21410 long arg5 = (long) 0 ;
21411 wxString const &arg6_defvalue = wxPyPanelNameStr ;
21412 wxString *arg6 = (wxString *) &arg6_defvalue ;
21413 wxWindow *result;
21414 wxPoint temp3 ;
21415 wxSize temp4 ;
21416 bool temp6 = False ;
21417 PyObject * obj0 = 0 ;
21418 PyObject * obj1 = 0 ;
21419 PyObject * obj2 = 0 ;
21420 PyObject * obj3 = 0 ;
21421 PyObject * obj4 = 0 ;
21422 PyObject * obj5 = 0 ;
21423 char *kwnames[] = {
21424 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21425 };
21426
21427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Window",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
21428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21430 if (obj1) {
21431 arg2 = (int const) SWIG_AsInt(obj1);
21432 if (PyErr_Occurred()) SWIG_fail;
21433 }
21434 if (obj2) {
21435 {
21436 arg3 = &temp3;
21437 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21438 }
21439 }
21440 if (obj3) {
21441 {
21442 arg4 = &temp4;
21443 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21444 }
21445 }
21446 if (obj4) {
21447 arg5 = (long) SWIG_AsLong(obj4);
21448 if (PyErr_Occurred()) SWIG_fail;
21449 }
21450 if (obj5) {
21451 {
21452 arg6 = wxString_in_helper(obj5);
21453 if (arg6 == NULL) SWIG_fail;
21454 temp6 = True;
21455 }
21456 }
21457 {
0439c23b 21458 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
21459 PyThreadState* __tstate = wxPyBeginAllowThreads();
21460 result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21461
21462 wxPyEndAllowThreads(__tstate);
0439c23b 21463 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
21464 }
21465 {
21466 resultobj = wxPyMake_wxObject(result);
21467 }
21468 {
21469 if (temp6)
21470 delete arg6;
21471 }
21472 return resultobj;
21473 fail:
21474 {
21475 if (temp6)
21476 delete arg6;
21477 }
21478 return NULL;
21479}
21480
21481
21482static PyObject *_wrap_new_PreWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
21483 PyObject *resultobj;
21484 wxWindow *result;
21485 char *kwnames[] = {
21486 NULL
21487 };
21488
21489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWindow",kwnames)) goto fail;
21490 {
0439c23b 21491 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
21492 PyThreadState* __tstate = wxPyBeginAllowThreads();
21493 result = (wxWindow *)new wxWindow();
21494
21495 wxPyEndAllowThreads(__tstate);
0439c23b 21496 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
21497 }
21498 {
21499 resultobj = wxPyMake_wxObject(result);
21500 }
21501 return resultobj;
21502 fail:
21503 return NULL;
21504}
21505
21506
21507static PyObject *_wrap_Window_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
21508 PyObject *resultobj;
21509 wxWindow *arg1 = (wxWindow *) 0 ;
21510 wxWindow *arg2 = (wxWindow *) 0 ;
21511 int arg3 = (int) (int)-1 ;
21512 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21513 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21514 wxSize const &arg5_defvalue = wxDefaultSize ;
21515 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21516 long arg6 = (long) 0 ;
21517 wxString const &arg7_defvalue = wxPyPanelNameStr ;
21518 wxString *arg7 = (wxString *) &arg7_defvalue ;
21519 bool result;
21520 wxPoint temp4 ;
21521 wxSize temp5 ;
21522 bool temp7 = False ;
21523 PyObject * obj0 = 0 ;
21524 PyObject * obj1 = 0 ;
21525 PyObject * obj2 = 0 ;
21526 PyObject * obj3 = 0 ;
21527 PyObject * obj4 = 0 ;
21528 PyObject * obj5 = 0 ;
21529 PyObject * obj6 = 0 ;
21530 char *kwnames[] = {
21531 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21532 };
21533
21534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Window_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
21535 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21537 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
21538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21539 if (obj2) {
21540 arg3 = (int const) SWIG_AsInt(obj2);
21541 if (PyErr_Occurred()) SWIG_fail;
21542 }
21543 if (obj3) {
21544 {
21545 arg4 = &temp4;
21546 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21547 }
21548 }
21549 if (obj4) {
21550 {
21551 arg5 = &temp5;
21552 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21553 }
21554 }
21555 if (obj5) {
21556 arg6 = (long) SWIG_AsLong(obj5);
21557 if (PyErr_Occurred()) SWIG_fail;
21558 }
21559 if (obj6) {
21560 {
21561 arg7 = wxString_in_helper(obj6);
21562 if (arg7 == NULL) SWIG_fail;
21563 temp7 = True;
21564 }
21565 }
21566 {
21567 PyThreadState* __tstate = wxPyBeginAllowThreads();
21568 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21569
21570 wxPyEndAllowThreads(__tstate);
21571 if (PyErr_Occurred()) SWIG_fail;
21572 }
21573 {
21574 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21575 }
21576 {
21577 if (temp7)
21578 delete arg7;
21579 }
21580 return resultobj;
21581 fail:
21582 {
21583 if (temp7)
21584 delete arg7;
21585 }
21586 return NULL;
21587}
21588
21589
21590static PyObject *_wrap_Window_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
21591 PyObject *resultobj;
21592 wxWindow *arg1 = (wxWindow *) 0 ;
21593 bool arg2 = (bool) False ;
21594 bool result;
21595 PyObject * obj0 = 0 ;
21596 PyObject * obj1 = 0 ;
21597 char *kwnames[] = {
21598 (char *) "self",(char *) "force", NULL
21599 };
21600
21601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",kwnames,&obj0,&obj1)) goto fail;
21602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21604 if (obj1) {
21605 arg2 = (bool) SWIG_AsBool(obj1);
21606 if (PyErr_Occurred()) SWIG_fail;
21607 }
21608 {
21609 PyThreadState* __tstate = wxPyBeginAllowThreads();
21610 result = (bool)(arg1)->Close(arg2);
21611
21612 wxPyEndAllowThreads(__tstate);
21613 if (PyErr_Occurred()) SWIG_fail;
21614 }
21615 {
21616 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21617 }
21618 return resultobj;
21619 fail:
21620 return NULL;
21621}
21622
21623
21624static PyObject *_wrap_Window_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
21625 PyObject *resultobj;
21626 wxWindow *arg1 = (wxWindow *) 0 ;
21627 bool result;
21628 PyObject * obj0 = 0 ;
21629 char *kwnames[] = {
21630 (char *) "self", NULL
21631 };
21632
21633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Destroy",kwnames,&obj0)) goto fail;
21634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21636 {
21637 PyThreadState* __tstate = wxPyBeginAllowThreads();
21638 result = (bool)(arg1)->Destroy();
21639
21640 wxPyEndAllowThreads(__tstate);
21641 if (PyErr_Occurred()) SWIG_fail;
21642 }
21643 {
21644 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21645 }
21646 return resultobj;
21647 fail:
21648 return NULL;
21649}
21650
21651
21652static PyObject *_wrap_Window_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
21653 PyObject *resultobj;
21654 wxWindow *arg1 = (wxWindow *) 0 ;
21655 bool result;
21656 PyObject * obj0 = 0 ;
21657 char *kwnames[] = {
21658 (char *) "self", NULL
21659 };
21660
21661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DestroyChildren",kwnames,&obj0)) goto fail;
21662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21664 {
21665 PyThreadState* __tstate = wxPyBeginAllowThreads();
21666 result = (bool)(arg1)->DestroyChildren();
21667
21668 wxPyEndAllowThreads(__tstate);
21669 if (PyErr_Occurred()) SWIG_fail;
21670 }
21671 {
21672 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21673 }
21674 return resultobj;
21675 fail:
21676 return NULL;
21677}
21678
21679
21680static PyObject *_wrap_Window_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) {
21681 PyObject *resultobj;
21682 wxWindow *arg1 = (wxWindow *) 0 ;
21683 bool result;
21684 PyObject * obj0 = 0 ;
21685 char *kwnames[] = {
21686 (char *) "self", NULL
21687 };
21688
21689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsBeingDeleted",kwnames,&obj0)) goto fail;
21690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21692 {
21693 PyThreadState* __tstate = wxPyBeginAllowThreads();
21694 result = (bool)((wxWindow const *)arg1)->IsBeingDeleted();
21695
21696 wxPyEndAllowThreads(__tstate);
21697 if (PyErr_Occurred()) SWIG_fail;
21698 }
21699 {
21700 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21701 }
21702 return resultobj;
21703 fail:
21704 return NULL;
21705}
21706
21707
21708static PyObject *_wrap_Window_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
21709 PyObject *resultobj;
21710 wxWindow *arg1 = (wxWindow *) 0 ;
21711 wxString *arg2 = 0 ;
21712 bool temp2 = False ;
21713 PyObject * obj0 = 0 ;
21714 PyObject * obj1 = 0 ;
21715 char *kwnames[] = {
21716 (char *) "self",(char *) "title", NULL
21717 };
21718
21719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTitle",kwnames,&obj0,&obj1)) goto fail;
21720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21722 {
21723 arg2 = wxString_in_helper(obj1);
21724 if (arg2 == NULL) SWIG_fail;
21725 temp2 = True;
21726 }
21727 {
21728 PyThreadState* __tstate = wxPyBeginAllowThreads();
21729 (arg1)->SetTitle((wxString const &)*arg2);
21730
21731 wxPyEndAllowThreads(__tstate);
21732 if (PyErr_Occurred()) SWIG_fail;
21733 }
21734 Py_INCREF(Py_None); resultobj = Py_None;
21735 {
21736 if (temp2)
21737 delete arg2;
21738 }
21739 return resultobj;
21740 fail:
21741 {
21742 if (temp2)
21743 delete arg2;
21744 }
21745 return NULL;
21746}
21747
21748
21749static PyObject *_wrap_Window_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
21750 PyObject *resultobj;
21751 wxWindow *arg1 = (wxWindow *) 0 ;
21752 wxString result;
21753 PyObject * obj0 = 0 ;
21754 char *kwnames[] = {
21755 (char *) "self", NULL
21756 };
21757
21758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetTitle",kwnames,&obj0)) goto fail;
21759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21761 {
21762 PyThreadState* __tstate = wxPyBeginAllowThreads();
21763 result = ((wxWindow const *)arg1)->GetTitle();
21764
21765 wxPyEndAllowThreads(__tstate);
21766 if (PyErr_Occurred()) SWIG_fail;
21767 }
21768 {
21769#if wxUSE_UNICODE
21770 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21771#else
21772 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21773#endif
21774 }
21775 return resultobj;
21776 fail:
21777 return NULL;
21778}
21779
21780
21781static PyObject *_wrap_Window_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
21782 PyObject *resultobj;
21783 wxWindow *arg1 = (wxWindow *) 0 ;
21784 wxString *arg2 = 0 ;
21785 bool temp2 = False ;
21786 PyObject * obj0 = 0 ;
21787 PyObject * obj1 = 0 ;
21788 char *kwnames[] = {
21789 (char *) "self",(char *) "label", NULL
21790 };
21791
21792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",kwnames,&obj0,&obj1)) goto fail;
21793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21795 {
21796 arg2 = wxString_in_helper(obj1);
21797 if (arg2 == NULL) SWIG_fail;
21798 temp2 = True;
21799 }
21800 {
21801 PyThreadState* __tstate = wxPyBeginAllowThreads();
21802 (arg1)->SetLabel((wxString const &)*arg2);
21803
21804 wxPyEndAllowThreads(__tstate);
21805 if (PyErr_Occurred()) SWIG_fail;
21806 }
21807 Py_INCREF(Py_None); resultobj = Py_None;
21808 {
21809 if (temp2)
21810 delete arg2;
21811 }
21812 return resultobj;
21813 fail:
21814 {
21815 if (temp2)
21816 delete arg2;
21817 }
21818 return NULL;
21819}
21820
21821
21822static PyObject *_wrap_Window_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
21823 PyObject *resultobj;
21824 wxWindow *arg1 = (wxWindow *) 0 ;
21825 wxString result;
21826 PyObject * obj0 = 0 ;
21827 char *kwnames[] = {
21828 (char *) "self", NULL
21829 };
21830
21831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetLabel",kwnames,&obj0)) goto fail;
21832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21834 {
21835 PyThreadState* __tstate = wxPyBeginAllowThreads();
21836 result = ((wxWindow const *)arg1)->GetLabel();
21837
21838 wxPyEndAllowThreads(__tstate);
21839 if (PyErr_Occurred()) SWIG_fail;
21840 }
21841 {
21842#if wxUSE_UNICODE
21843 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21844#else
21845 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21846#endif
21847 }
21848 return resultobj;
21849 fail:
21850 return NULL;
21851}
21852
21853
21854static PyObject *_wrap_Window_SetName(PyObject *self, PyObject *args, PyObject *kwargs) {
21855 PyObject *resultobj;
21856 wxWindow *arg1 = (wxWindow *) 0 ;
21857 wxString *arg2 = 0 ;
21858 bool temp2 = False ;
21859 PyObject * obj0 = 0 ;
21860 PyObject * obj1 = 0 ;
21861 char *kwnames[] = {
21862 (char *) "self",(char *) "name", NULL
21863 };
21864
21865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) goto fail;
21866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21868 {
21869 arg2 = wxString_in_helper(obj1);
21870 if (arg2 == NULL) SWIG_fail;
21871 temp2 = True;
21872 }
21873 {
21874 PyThreadState* __tstate = wxPyBeginAllowThreads();
21875 (arg1)->SetName((wxString const &)*arg2);
21876
21877 wxPyEndAllowThreads(__tstate);
21878 if (PyErr_Occurred()) SWIG_fail;
21879 }
21880 Py_INCREF(Py_None); resultobj = Py_None;
21881 {
21882 if (temp2)
21883 delete arg2;
21884 }
21885 return resultobj;
21886 fail:
21887 {
21888 if (temp2)
21889 delete arg2;
21890 }
21891 return NULL;
21892}
21893
21894
21895static PyObject *_wrap_Window_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
21896 PyObject *resultobj;
21897 wxWindow *arg1 = (wxWindow *) 0 ;
21898 wxString result;
21899 PyObject * obj0 = 0 ;
21900 char *kwnames[] = {
21901 (char *) "self", NULL
21902 };
21903
21904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetName",kwnames,&obj0)) goto fail;
21905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21907 {
21908 PyThreadState* __tstate = wxPyBeginAllowThreads();
21909 result = ((wxWindow const *)arg1)->GetName();
21910
21911 wxPyEndAllowThreads(__tstate);
21912 if (PyErr_Occurred()) SWIG_fail;
21913 }
21914 {
21915#if wxUSE_UNICODE
21916 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21917#else
21918 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21919#endif
21920 }
21921 return resultobj;
21922 fail:
21923 return NULL;
21924}
21925
21926
21927static PyObject *_wrap_Window_SetWindowVariant(PyObject *self, PyObject *args, PyObject *kwargs) {
21928 PyObject *resultobj;
21929 wxWindow *arg1 = (wxWindow *) 0 ;
21930 int arg2 ;
21931 PyObject * obj0 = 0 ;
21932 PyObject * obj1 = 0 ;
21933 char *kwnames[] = {
21934 (char *) "self",(char *) "variant", NULL
21935 };
21936
21937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowVariant",kwnames,&obj0,&obj1)) goto fail;
21938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21940 arg2 = (wxWindowVariant) SWIG_AsInt(obj1);
21941 if (PyErr_Occurred()) SWIG_fail;
21942 {
21943 PyThreadState* __tstate = wxPyBeginAllowThreads();
21944 (arg1)->SetWindowVariant((wxWindowVariant )arg2);
21945
21946 wxPyEndAllowThreads(__tstate);
21947 if (PyErr_Occurred()) SWIG_fail;
21948 }
21949 Py_INCREF(Py_None); resultobj = Py_None;
21950 return resultobj;
21951 fail:
21952 return NULL;
21953}
21954
21955
21956static PyObject *_wrap_Window_GetWindowVariant(PyObject *self, PyObject *args, PyObject *kwargs) {
21957 PyObject *resultobj;
21958 wxWindow *arg1 = (wxWindow *) 0 ;
21959 int result;
21960 PyObject * obj0 = 0 ;
21961 char *kwnames[] = {
21962 (char *) "self", NULL
21963 };
21964
21965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowVariant",kwnames,&obj0)) goto fail;
21966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21968 {
21969 PyThreadState* __tstate = wxPyBeginAllowThreads();
21970 result = (int)((wxWindow const *)arg1)->GetWindowVariant();
21971
21972 wxPyEndAllowThreads(__tstate);
21973 if (PyErr_Occurred()) SWIG_fail;
21974 }
21975 resultobj = SWIG_FromInt((int)result);
21976 return resultobj;
21977 fail:
21978 return NULL;
21979}
21980
21981
21982static PyObject *_wrap_Window_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
21983 PyObject *resultobj;
21984 wxWindow *arg1 = (wxWindow *) 0 ;
21985 int arg2 ;
21986 PyObject * obj0 = 0 ;
21987 PyObject * obj1 = 0 ;
21988 char *kwnames[] = {
21989 (char *) "self",(char *) "winid", NULL
21990 };
21991
21992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetId",kwnames,&obj0,&obj1)) goto fail;
21993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21995 arg2 = (int) SWIG_AsInt(obj1);
21996 if (PyErr_Occurred()) SWIG_fail;
21997 {
21998 PyThreadState* __tstate = wxPyBeginAllowThreads();
21999 (arg1)->SetId(arg2);
22000
22001 wxPyEndAllowThreads(__tstate);
22002 if (PyErr_Occurred()) SWIG_fail;
22003 }
22004 Py_INCREF(Py_None); resultobj = Py_None;
22005 return resultobj;
22006 fail:
22007 return NULL;
22008}
22009
22010
22011static PyObject *_wrap_Window_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
22012 PyObject *resultobj;
22013 wxWindow *arg1 = (wxWindow *) 0 ;
22014 int result;
22015 PyObject * obj0 = 0 ;
22016 char *kwnames[] = {
22017 (char *) "self", NULL
22018 };
22019
22020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetId",kwnames,&obj0)) goto fail;
22021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22023 {
22024 PyThreadState* __tstate = wxPyBeginAllowThreads();
22025 result = (int)((wxWindow const *)arg1)->GetId();
22026
22027 wxPyEndAllowThreads(__tstate);
22028 if (PyErr_Occurred()) SWIG_fail;
22029 }
22030 resultobj = SWIG_FromInt((int)result);
22031 return resultobj;
22032 fail:
22033 return NULL;
22034}
22035
22036
22037static PyObject *_wrap_Window_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) {
22038 PyObject *resultobj;
22039 int result;
22040 char *kwnames[] = {
22041 NULL
22042 };
22043
22044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_NewControlId",kwnames)) goto fail;
22045 {
22046 PyThreadState* __tstate = wxPyBeginAllowThreads();
22047 result = (int)wxWindow::NewControlId();
22048
22049 wxPyEndAllowThreads(__tstate);
22050 if (PyErr_Occurred()) SWIG_fail;
22051 }
22052 resultobj = SWIG_FromInt((int)result);
22053 return resultobj;
22054 fail:
22055 return NULL;
22056}
22057
22058
22059static PyObject *_wrap_Window_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) {
22060 PyObject *resultobj;
22061 int arg1 ;
22062 int result;
22063 PyObject * obj0 = 0 ;
22064 char *kwnames[] = {
22065 (char *) "winid", NULL
22066 };
22067
22068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_NextControlId",kwnames,&obj0)) goto fail;
22069 arg1 = (int) SWIG_AsInt(obj0);
22070 if (PyErr_Occurred()) SWIG_fail;
22071 {
22072 PyThreadState* __tstate = wxPyBeginAllowThreads();
22073 result = (int)wxWindow::NextControlId(arg1);
22074
22075 wxPyEndAllowThreads(__tstate);
22076 if (PyErr_Occurred()) SWIG_fail;
22077 }
22078 resultobj = SWIG_FromInt((int)result);
22079 return resultobj;
22080 fail:
22081 return NULL;
22082}
22083
22084
22085static PyObject *_wrap_Window_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) {
22086 PyObject *resultobj;
22087 int arg1 ;
22088 int result;
22089 PyObject * obj0 = 0 ;
22090 char *kwnames[] = {
22091 (char *) "winid", NULL
22092 };
22093
22094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PrevControlId",kwnames,&obj0)) goto fail;
22095 arg1 = (int) SWIG_AsInt(obj0);
22096 if (PyErr_Occurred()) SWIG_fail;
22097 {
22098 PyThreadState* __tstate = wxPyBeginAllowThreads();
22099 result = (int)wxWindow::PrevControlId(arg1);
22100
22101 wxPyEndAllowThreads(__tstate);
22102 if (PyErr_Occurred()) SWIG_fail;
22103 }
22104 resultobj = SWIG_FromInt((int)result);
22105 return resultobj;
22106 fail:
22107 return NULL;
22108}
22109
22110
22111static PyObject *_wrap_Window_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22112 PyObject *resultobj;
22113 wxWindow *arg1 = (wxWindow *) 0 ;
22114 wxSize *arg2 = 0 ;
22115 wxSize temp2 ;
22116 PyObject * obj0 = 0 ;
22117 PyObject * obj1 = 0 ;
22118 char *kwnames[] = {
22119 (char *) "self",(char *) "size", NULL
22120 };
22121
22122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) goto fail;
22123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22125 {
22126 arg2 = &temp2;
22127 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
22128 }
22129 {
22130 PyThreadState* __tstate = wxPyBeginAllowThreads();
22131 (arg1)->SetSize((wxSize const &)*arg2);
22132
22133 wxPyEndAllowThreads(__tstate);
22134 if (PyErr_Occurred()) SWIG_fail;
22135 }
22136 Py_INCREF(Py_None); resultobj = Py_None;
22137 return resultobj;
22138 fail:
22139 return NULL;
22140}
22141
22142
22143static PyObject *_wrap_Window_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) {
22144 PyObject *resultobj;
22145 wxWindow *arg1 = (wxWindow *) 0 ;
22146 int arg2 ;
22147 int arg3 ;
22148 int arg4 ;
22149 int arg5 ;
22150 int arg6 = (int) wxSIZE_AUTO ;
22151 PyObject * obj0 = 0 ;
22152 PyObject * obj1 = 0 ;
22153 PyObject * obj2 = 0 ;
22154 PyObject * obj3 = 0 ;
22155 PyObject * obj4 = 0 ;
22156 PyObject * obj5 = 0 ;
22157 char *kwnames[] = {
22158 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
22159 };
22160
22161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetDimensions",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
22162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22164 arg2 = (int) SWIG_AsInt(obj1);
22165 if (PyErr_Occurred()) SWIG_fail;
22166 arg3 = (int) SWIG_AsInt(obj2);
22167 if (PyErr_Occurred()) SWIG_fail;
22168 arg4 = (int) SWIG_AsInt(obj3);
22169 if (PyErr_Occurred()) SWIG_fail;
22170 arg5 = (int) SWIG_AsInt(obj4);
22171 if (PyErr_Occurred()) SWIG_fail;
22172 if (obj5) {
22173 arg6 = (int) SWIG_AsInt(obj5);
22174 if (PyErr_Occurred()) SWIG_fail;
22175 }
22176 {
22177 PyThreadState* __tstate = wxPyBeginAllowThreads();
22178 (arg1)->SetSize(arg2,arg3,arg4,arg5,arg6);
22179
22180 wxPyEndAllowThreads(__tstate);
22181 if (PyErr_Occurred()) SWIG_fail;
22182 }
22183 Py_INCREF(Py_None); resultobj = Py_None;
22184 return resultobj;
22185 fail:
22186 return NULL;
22187}
22188
22189
22190static PyObject *_wrap_Window_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
22191 PyObject *resultobj;
22192 wxWindow *arg1 = (wxWindow *) 0 ;
22193 wxRect *arg2 = 0 ;
22194 int arg3 = (int) wxSIZE_AUTO ;
22195 wxRect temp2 ;
22196 PyObject * obj0 = 0 ;
22197 PyObject * obj1 = 0 ;
22198 PyObject * obj2 = 0 ;
22199 char *kwnames[] = {
22200 (char *) "self",(char *) "rect",(char *) "sizeFlags", NULL
22201 };
22202
22203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
22204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22206 {
22207 arg2 = &temp2;
22208 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
22209 }
22210 if (obj2) {
22211 arg3 = (int) SWIG_AsInt(obj2);
22212 if (PyErr_Occurred()) SWIG_fail;
22213 }
22214 {
22215 PyThreadState* __tstate = wxPyBeginAllowThreads();
22216 (arg1)->SetSize((wxRect const &)*arg2,arg3);
22217
22218 wxPyEndAllowThreads(__tstate);
22219 if (PyErr_Occurred()) SWIG_fail;
22220 }
22221 Py_INCREF(Py_None); resultobj = Py_None;
22222 return resultobj;
22223 fail:
22224 return NULL;
22225}
22226
22227
22228static PyObject *_wrap_Window_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
22229 PyObject *resultobj;
22230 wxWindow *arg1 = (wxWindow *) 0 ;
22231 int arg2 ;
22232 int arg3 ;
22233 PyObject * obj0 = 0 ;
22234 PyObject * obj1 = 0 ;
22235 PyObject * obj2 = 0 ;
22236 char *kwnames[] = {
22237 (char *) "self",(char *) "width",(char *) "height", NULL
22238 };
22239
22240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
22241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22243 arg2 = (int) SWIG_AsInt(obj1);
22244 if (PyErr_Occurred()) SWIG_fail;
22245 arg3 = (int) SWIG_AsInt(obj2);
22246 if (PyErr_Occurred()) SWIG_fail;
22247 {
22248 PyThreadState* __tstate = wxPyBeginAllowThreads();
22249 (arg1)->SetSize(arg2,arg3);
22250
22251 wxPyEndAllowThreads(__tstate);
22252 if (PyErr_Occurred()) SWIG_fail;
22253 }
22254 Py_INCREF(Py_None); resultobj = Py_None;
22255 return resultobj;
22256 fail:
22257 return NULL;
22258}
22259
22260
22261static PyObject *_wrap_Window_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
22262 PyObject *resultobj;
22263 wxWindow *arg1 = (wxWindow *) 0 ;
22264 wxPoint *arg2 = 0 ;
22265 int arg3 = (int) wxSIZE_USE_EXISTING ;
22266 wxPoint temp2 ;
22267 PyObject * obj0 = 0 ;
22268 PyObject * obj1 = 0 ;
22269 PyObject * obj2 = 0 ;
22270 char *kwnames[] = {
22271 (char *) "self",(char *) "pt",(char *) "flags", NULL
22272 };
22273
22274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_Move",kwnames,&obj0,&obj1,&obj2)) goto fail;
22275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22277 {
22278 arg2 = &temp2;
22279 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22280 }
22281 if (obj2) {
22282 arg3 = (int) SWIG_AsInt(obj2);
22283 if (PyErr_Occurred()) SWIG_fail;
22284 }
22285 {
22286 PyThreadState* __tstate = wxPyBeginAllowThreads();
22287 (arg1)->Move((wxPoint const &)*arg2,arg3);
22288
22289 wxPyEndAllowThreads(__tstate);
22290 if (PyErr_Occurred()) SWIG_fail;
22291 }
22292 Py_INCREF(Py_None); resultobj = Py_None;
22293 return resultobj;
22294 fail:
22295 return NULL;
22296}
22297
22298
22299static PyObject *_wrap_Window_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) {
22300 PyObject *resultobj;
22301 wxWindow *arg1 = (wxWindow *) 0 ;
22302 int arg2 ;
22303 int arg3 ;
22304 int arg4 = (int) wxSIZE_USE_EXISTING ;
22305 PyObject * obj0 = 0 ;
22306 PyObject * obj1 = 0 ;
22307 PyObject * obj2 = 0 ;
22308 PyObject * obj3 = 0 ;
22309 char *kwnames[] = {
22310 (char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL
22311 };
22312
22313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_MoveXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22316 arg2 = (int) SWIG_AsInt(obj1);
22317 if (PyErr_Occurred()) SWIG_fail;
22318 arg3 = (int) SWIG_AsInt(obj2);
22319 if (PyErr_Occurred()) SWIG_fail;
22320 if (obj3) {
22321 arg4 = (int) SWIG_AsInt(obj3);
22322 if (PyErr_Occurred()) SWIG_fail;
22323 }
22324 {
22325 PyThreadState* __tstate = wxPyBeginAllowThreads();
22326 (arg1)->Move(arg2,arg3,arg4);
22327
22328 wxPyEndAllowThreads(__tstate);
22329 if (PyErr_Occurred()) SWIG_fail;
22330 }
22331 Py_INCREF(Py_None); resultobj = Py_None;
22332 return resultobj;
22333 fail:
22334 return NULL;
22335}
22336
22337
22338static PyObject *_wrap_Window_Raise(PyObject *self, PyObject *args, PyObject *kwargs) {
22339 PyObject *resultobj;
22340 wxWindow *arg1 = (wxWindow *) 0 ;
22341 PyObject * obj0 = 0 ;
22342 char *kwnames[] = {
22343 (char *) "self", NULL
22344 };
22345
22346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Raise",kwnames,&obj0)) goto fail;
22347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22349 {
22350 PyThreadState* __tstate = wxPyBeginAllowThreads();
22351 (arg1)->Raise();
22352
22353 wxPyEndAllowThreads(__tstate);
22354 if (PyErr_Occurred()) SWIG_fail;
22355 }
22356 Py_INCREF(Py_None); resultobj = Py_None;
22357 return resultobj;
22358 fail:
22359 return NULL;
22360}
22361
22362
22363static PyObject *_wrap_Window_Lower(PyObject *self, PyObject *args, PyObject *kwargs) {
22364 PyObject *resultobj;
22365 wxWindow *arg1 = (wxWindow *) 0 ;
22366 PyObject * obj0 = 0 ;
22367 char *kwnames[] = {
22368 (char *) "self", NULL
22369 };
22370
22371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Lower",kwnames,&obj0)) goto fail;
22372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22374 {
22375 PyThreadState* __tstate = wxPyBeginAllowThreads();
22376 (arg1)->Lower();
22377
22378 wxPyEndAllowThreads(__tstate);
22379 if (PyErr_Occurred()) SWIG_fail;
22380 }
22381 Py_INCREF(Py_None); resultobj = Py_None;
22382 return resultobj;
22383 fail:
22384 return NULL;
22385}
22386
22387
22388static PyObject *_wrap_Window_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22389 PyObject *resultobj;
22390 wxWindow *arg1 = (wxWindow *) 0 ;
22391 wxSize *arg2 = 0 ;
22392 wxSize temp2 ;
22393 PyObject * obj0 = 0 ;
22394 PyObject * obj1 = 0 ;
22395 char *kwnames[] = {
22396 (char *) "self",(char *) "size", NULL
22397 };
22398
22399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) goto fail;
22400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22402 {
22403 arg2 = &temp2;
22404 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
22405 }
22406 {
22407 PyThreadState* __tstate = wxPyBeginAllowThreads();
22408 (arg1)->SetClientSize((wxSize const &)*arg2);
22409
22410 wxPyEndAllowThreads(__tstate);
22411 if (PyErr_Occurred()) SWIG_fail;
22412 }
22413 Py_INCREF(Py_None); resultobj = Py_None;
22414 return resultobj;
22415 fail:
22416 return NULL;
22417}
22418
22419
22420static PyObject *_wrap_Window_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
22421 PyObject *resultobj;
22422 wxWindow *arg1 = (wxWindow *) 0 ;
22423 int arg2 ;
22424 int arg3 ;
22425 PyObject * obj0 = 0 ;
22426 PyObject * obj1 = 0 ;
22427 PyObject * obj2 = 0 ;
22428 char *kwnames[] = {
22429 (char *) "self",(char *) "width",(char *) "height", NULL
22430 };
22431
22432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetClientSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
22433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22435 arg2 = (int) SWIG_AsInt(obj1);
22436 if (PyErr_Occurred()) SWIG_fail;
22437 arg3 = (int) SWIG_AsInt(obj2);
22438 if (PyErr_Occurred()) SWIG_fail;
22439 {
22440 PyThreadState* __tstate = wxPyBeginAllowThreads();
22441 (arg1)->SetClientSize(arg2,arg3);
22442
22443 wxPyEndAllowThreads(__tstate);
22444 if (PyErr_Occurred()) SWIG_fail;
22445 }
22446 Py_INCREF(Py_None); resultobj = Py_None;
22447 return resultobj;
22448 fail:
22449 return NULL;
22450}
22451
22452
22453static PyObject *_wrap_Window_SetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) {
22454 PyObject *resultobj;
22455 wxWindow *arg1 = (wxWindow *) 0 ;
22456 wxRect *arg2 = 0 ;
22457 wxRect temp2 ;
22458 PyObject * obj0 = 0 ;
22459 PyObject * obj1 = 0 ;
22460 char *kwnames[] = {
22461 (char *) "self",(char *) "rect", NULL
22462 };
22463
22464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) goto fail;
22465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22467 {
22468 arg2 = &temp2;
22469 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
22470 }
22471 {
22472 PyThreadState* __tstate = wxPyBeginAllowThreads();
22473 (arg1)->SetClientSize((wxRect const &)*arg2);
22474
22475 wxPyEndAllowThreads(__tstate);
22476 if (PyErr_Occurred()) SWIG_fail;
22477 }
22478 Py_INCREF(Py_None); resultobj = Py_None;
22479 return resultobj;
22480 fail:
22481 return NULL;
22482}
22483
22484
22485static PyObject *_wrap_Window_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
22486 PyObject *resultobj;
22487 wxWindow *arg1 = (wxWindow *) 0 ;
22488 wxPoint result;
22489 PyObject * obj0 = 0 ;
22490 char *kwnames[] = {
22491 (char *) "self", NULL
22492 };
22493
22494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPosition",kwnames,&obj0)) goto fail;
22495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22497 {
22498 PyThreadState* __tstate = wxPyBeginAllowThreads();
22499 result = (arg1)->GetPosition();
22500
22501 wxPyEndAllowThreads(__tstate);
22502 if (PyErr_Occurred()) SWIG_fail;
22503 }
22504 {
22505 wxPoint * resultptr;
22506 resultptr = new wxPoint((wxPoint &) result);
22507 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
22508 }
22509 return resultobj;
22510 fail:
22511 return NULL;
22512}
22513
22514
22515static PyObject *_wrap_Window_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
22516 PyObject *resultobj;
22517 wxWindow *arg1 = (wxWindow *) 0 ;
22518 int *arg2 = (int *) 0 ;
22519 int *arg3 = (int *) 0 ;
22520 int temp2 ;
22521 int temp3 ;
22522 PyObject * obj0 = 0 ;
22523 char *kwnames[] = {
22524 (char *) "self", NULL
22525 };
22526
22527 arg2 = &temp2;
22528 arg3 = &temp3;
22529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPositionTuple",kwnames,&obj0)) goto fail;
22530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22532 {
22533 PyThreadState* __tstate = wxPyBeginAllowThreads();
22534 (arg1)->GetPosition(arg2,arg3);
22535
22536 wxPyEndAllowThreads(__tstate);
22537 if (PyErr_Occurred()) SWIG_fail;
22538 }
22539 Py_INCREF(Py_None); resultobj = Py_None;
22540 {
22541 PyObject *o = PyInt_FromLong((long) (*arg2));
22542 resultobj = t_output_helper(resultobj,o);
22543 }
22544 {
22545 PyObject *o = PyInt_FromLong((long) (*arg3));
22546 resultobj = t_output_helper(resultobj,o);
22547 }
22548 return resultobj;
22549 fail:
22550 return NULL;
22551}
22552
22553
22554static PyObject *_wrap_Window_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22555 PyObject *resultobj;
22556 wxWindow *arg1 = (wxWindow *) 0 ;
22557 wxSize result;
22558 PyObject * obj0 = 0 ;
22559 char *kwnames[] = {
22560 (char *) "self", NULL
22561 };
22562
22563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSize",kwnames,&obj0)) goto fail;
22564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22566 {
22567 PyThreadState* __tstate = wxPyBeginAllowThreads();
22568 result = ((wxWindow const *)arg1)->GetSize();
22569
22570 wxPyEndAllowThreads(__tstate);
22571 if (PyErr_Occurred()) SWIG_fail;
22572 }
22573 {
22574 wxSize * resultptr;
22575 resultptr = new wxSize((wxSize &) result);
22576 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
22577 }
22578 return resultobj;
22579 fail:
22580 return NULL;
22581}
22582
22583
22584static PyObject *_wrap_Window_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
22585 PyObject *resultobj;
22586 wxWindow *arg1 = (wxWindow *) 0 ;
22587 int *arg2 = (int *) 0 ;
22588 int *arg3 = (int *) 0 ;
22589 int temp2 ;
22590 int temp3 ;
22591 PyObject * obj0 = 0 ;
22592 char *kwnames[] = {
22593 (char *) "self", NULL
22594 };
22595
22596 arg2 = &temp2;
22597 arg3 = &temp3;
22598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizeTuple",kwnames,&obj0)) goto fail;
22599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22601 {
22602 PyThreadState* __tstate = wxPyBeginAllowThreads();
22603 ((wxWindow const *)arg1)->GetSize(arg2,arg3);
22604
22605 wxPyEndAllowThreads(__tstate);
22606 if (PyErr_Occurred()) SWIG_fail;
22607 }
22608 Py_INCREF(Py_None); resultobj = Py_None;
22609 {
22610 PyObject *o = PyInt_FromLong((long) (*arg2));
22611 resultobj = t_output_helper(resultobj,o);
22612 }
22613 {
22614 PyObject *o = PyInt_FromLong((long) (*arg3));
22615 resultobj = t_output_helper(resultobj,o);
22616 }
22617 return resultobj;
22618 fail:
22619 return NULL;
22620}
22621
22622
22623static PyObject *_wrap_Window_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
22624 PyObject *resultobj;
22625 wxWindow *arg1 = (wxWindow *) 0 ;
22626 wxRect result;
22627 PyObject * obj0 = 0 ;
22628 char *kwnames[] = {
22629 (char *) "self", NULL
22630 };
22631
22632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetRect",kwnames,&obj0)) goto fail;
22633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22635 {
22636 PyThreadState* __tstate = wxPyBeginAllowThreads();
22637 result = ((wxWindow const *)arg1)->GetRect();
22638
22639 wxPyEndAllowThreads(__tstate);
22640 if (PyErr_Occurred()) SWIG_fail;
22641 }
22642 {
22643 wxRect * resultptr;
22644 resultptr = new wxRect((wxRect &) result);
22645 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
22646 }
22647 return resultobj;
22648 fail:
22649 return NULL;
22650}
22651
22652
22653static PyObject *_wrap_Window_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22654 PyObject *resultobj;
22655 wxWindow *arg1 = (wxWindow *) 0 ;
22656 wxSize result;
22657 PyObject * obj0 = 0 ;
22658 char *kwnames[] = {
22659 (char *) "self", NULL
22660 };
22661
22662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSize",kwnames,&obj0)) goto fail;
22663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22665 {
22666 PyThreadState* __tstate = wxPyBeginAllowThreads();
22667 result = ((wxWindow const *)arg1)->GetClientSize();
22668
22669 wxPyEndAllowThreads(__tstate);
22670 if (PyErr_Occurred()) SWIG_fail;
22671 }
22672 {
22673 wxSize * resultptr;
22674 resultptr = new wxSize((wxSize &) result);
22675 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
22676 }
22677 return resultobj;
22678 fail:
22679 return NULL;
22680}
22681
22682
22683static PyObject *_wrap_Window_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
22684 PyObject *resultobj;
22685 wxWindow *arg1 = (wxWindow *) 0 ;
22686 int *arg2 = (int *) 0 ;
22687 int *arg3 = (int *) 0 ;
22688 int temp2 ;
22689 int temp3 ;
22690 PyObject * obj0 = 0 ;
22691 char *kwnames[] = {
22692 (char *) "self", NULL
22693 };
22694
22695 arg2 = &temp2;
22696 arg3 = &temp3;
22697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSizeTuple",kwnames,&obj0)) goto fail;
22698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22700 {
22701 PyThreadState* __tstate = wxPyBeginAllowThreads();
22702 ((wxWindow const *)arg1)->GetClientSize(arg2,arg3);
22703
22704 wxPyEndAllowThreads(__tstate);
22705 if (PyErr_Occurred()) SWIG_fail;
22706 }
22707 Py_INCREF(Py_None); resultobj = Py_None;
22708 {
22709 PyObject *o = PyInt_FromLong((long) (*arg2));
22710 resultobj = t_output_helper(resultobj,o);
22711 }
22712 {
22713 PyObject *o = PyInt_FromLong((long) (*arg3));
22714 resultobj = t_output_helper(resultobj,o);
22715 }
22716 return resultobj;
22717 fail:
22718 return NULL;
22719}
22720
22721
22722static PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
22723 PyObject *resultobj;
22724 wxWindow *arg1 = (wxWindow *) 0 ;
22725 wxPoint result;
22726 PyObject * obj0 = 0 ;
22727 char *kwnames[] = {
22728 (char *) "self", NULL
22729 };
22730
22731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientAreaOrigin",kwnames,&obj0)) goto fail;
22732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22734 {
22735 PyThreadState* __tstate = wxPyBeginAllowThreads();
22736 result = ((wxWindow const *)arg1)->GetClientAreaOrigin();
22737
22738 wxPyEndAllowThreads(__tstate);
22739 if (PyErr_Occurred()) SWIG_fail;
22740 }
22741 {
22742 wxPoint * resultptr;
22743 resultptr = new wxPoint((wxPoint &) result);
22744 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
22745 }
22746 return resultobj;
22747 fail:
22748 return NULL;
22749}
22750
22751
22752static PyObject *_wrap_Window_GetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) {
22753 PyObject *resultobj;
22754 wxWindow *arg1 = (wxWindow *) 0 ;
22755 wxRect result;
22756 PyObject * obj0 = 0 ;
22757 char *kwnames[] = {
22758 (char *) "self", NULL
22759 };
22760
22761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientRect",kwnames,&obj0)) goto fail;
22762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22764 {
22765 PyThreadState* __tstate = wxPyBeginAllowThreads();
22766 result = ((wxWindow const *)arg1)->GetClientRect();
22767
22768 wxPyEndAllowThreads(__tstate);
22769 if (PyErr_Occurred()) SWIG_fail;
22770 }
22771 {
22772 wxRect * resultptr;
22773 resultptr = new wxRect((wxRect &) result);
22774 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
22775 }
22776 return resultobj;
22777 fail:
22778 return NULL;
22779}
22780
22781
22782static PyObject *_wrap_Window_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22783 PyObject *resultobj;
22784 wxWindow *arg1 = (wxWindow *) 0 ;
22785 wxSize result;
22786 PyObject * obj0 = 0 ;
22787 char *kwnames[] = {
22788 (char *) "self", NULL
22789 };
22790
22791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSize",kwnames,&obj0)) goto fail;
22792 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22793 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22794 {
22795 PyThreadState* __tstate = wxPyBeginAllowThreads();
22796 result = ((wxWindow const *)arg1)->GetBestSize();
22797
22798 wxPyEndAllowThreads(__tstate);
22799 if (PyErr_Occurred()) SWIG_fail;
22800 }
22801 {
22802 wxSize * resultptr;
22803 resultptr = new wxSize((wxSize &) result);
22804 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
22805 }
22806 return resultobj;
22807 fail:
22808 return NULL;
22809}
22810
22811
22812static PyObject *_wrap_Window_GetBestSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
22813 PyObject *resultobj;
22814 wxWindow *arg1 = (wxWindow *) 0 ;
22815 int *arg2 = (int *) 0 ;
22816 int *arg3 = (int *) 0 ;
22817 int temp2 ;
22818 int temp3 ;
22819 PyObject * obj0 = 0 ;
22820 char *kwnames[] = {
22821 (char *) "self", NULL
22822 };
22823
22824 arg2 = &temp2;
22825 arg3 = &temp3;
22826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSizeTuple",kwnames,&obj0)) goto fail;
22827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22829 {
22830 PyThreadState* __tstate = wxPyBeginAllowThreads();
22831 ((wxWindow const *)arg1)->GetBestSize(arg2,arg3);
22832
22833 wxPyEndAllowThreads(__tstate);
22834 if (PyErr_Occurred()) SWIG_fail;
22835 }
22836 Py_INCREF(Py_None); resultobj = Py_None;
22837 {
22838 PyObject *o = PyInt_FromLong((long) (*arg2));
22839 resultobj = t_output_helper(resultobj,o);
22840 }
22841 {
22842 PyObject *o = PyInt_FromLong((long) (*arg3));
22843 resultobj = t_output_helper(resultobj,o);
22844 }
22845 return resultobj;
22846 fail:
22847 return NULL;
22848}
22849
22850
22851static PyObject *_wrap_Window_GetAdjustedBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22852 PyObject *resultobj;
22853 wxWindow *arg1 = (wxWindow *) 0 ;
22854 wxSize result;
22855 PyObject * obj0 = 0 ;
22856 char *kwnames[] = {
22857 (char *) "self", NULL
22858 };
22859
22860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAdjustedBestSize",kwnames,&obj0)) goto fail;
22861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22863 {
22864 PyThreadState* __tstate = wxPyBeginAllowThreads();
22865 result = ((wxWindow const *)arg1)->GetAdjustedBestSize();
22866
22867 wxPyEndAllowThreads(__tstate);
22868 if (PyErr_Occurred()) SWIG_fail;
22869 }
22870 {
22871 wxSize * resultptr;
22872 resultptr = new wxSize((wxSize &) result);
22873 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
22874 }
22875 return resultobj;
22876 fail:
22877 return NULL;
22878}
22879
22880
22881static PyObject *_wrap_Window_Center(PyObject *self, PyObject *args, PyObject *kwargs) {
22882 PyObject *resultobj;
22883 wxWindow *arg1 = (wxWindow *) 0 ;
22884 int arg2 = (int) wxBOTH ;
22885 PyObject * obj0 = 0 ;
22886 PyObject * obj1 = 0 ;
22887 char *kwnames[] = {
22888 (char *) "self",(char *) "direction", NULL
22889 };
22890
22891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Center",kwnames,&obj0,&obj1)) goto fail;
22892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22894 if (obj1) {
22895 arg2 = (int) SWIG_AsInt(obj1);
22896 if (PyErr_Occurred()) SWIG_fail;
22897 }
22898 {
22899 PyThreadState* __tstate = wxPyBeginAllowThreads();
22900 (arg1)->Center(arg2);
22901
22902 wxPyEndAllowThreads(__tstate);
22903 if (PyErr_Occurred()) SWIG_fail;
22904 }
22905 Py_INCREF(Py_None); resultobj = Py_None;
22906 return resultobj;
22907 fail:
22908 return NULL;
22909}
22910
22911
22912static PyObject *_wrap_Window_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) {
22913 PyObject *resultobj;
22914 wxWindow *arg1 = (wxWindow *) 0 ;
22915 int arg2 = (int) wxBOTH ;
22916 PyObject * obj0 = 0 ;
22917 PyObject * obj1 = 0 ;
22918 char *kwnames[] = {
22919 (char *) "self",(char *) "dir", NULL
22920 };
22921
22922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnScreen",kwnames,&obj0,&obj1)) goto fail;
22923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22925 if (obj1) {
22926 arg2 = (int) SWIG_AsInt(obj1);
22927 if (PyErr_Occurred()) SWIG_fail;
22928 }
22929 {
22930 PyThreadState* __tstate = wxPyBeginAllowThreads();
22931 (arg1)->CenterOnScreen(arg2);
22932
22933 wxPyEndAllowThreads(__tstate);
22934 if (PyErr_Occurred()) SWIG_fail;
22935 }
22936 Py_INCREF(Py_None); resultobj = Py_None;
22937 return resultobj;
22938 fail:
22939 return NULL;
22940}
22941
22942
22943static PyObject *_wrap_Window_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) {
22944 PyObject *resultobj;
22945 wxWindow *arg1 = (wxWindow *) 0 ;
22946 int arg2 = (int) wxBOTH ;
22947 PyObject * obj0 = 0 ;
22948 PyObject * obj1 = 0 ;
22949 char *kwnames[] = {
22950 (char *) "self",(char *) "dir", NULL
22951 };
22952
22953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnParent",kwnames,&obj0,&obj1)) goto fail;
22954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22956 if (obj1) {
22957 arg2 = (int) SWIG_AsInt(obj1);
22958 if (PyErr_Occurred()) SWIG_fail;
22959 }
22960 {
22961 PyThreadState* __tstate = wxPyBeginAllowThreads();
22962 (arg1)->CenterOnParent(arg2);
22963
22964 wxPyEndAllowThreads(__tstate);
22965 if (PyErr_Occurred()) SWIG_fail;
22966 }
22967 Py_INCREF(Py_None); resultobj = Py_None;
22968 return resultobj;
22969 fail:
22970 return NULL;
22971}
22972
22973
22974static PyObject *_wrap_Window_Fit(PyObject *self, PyObject *args, PyObject *kwargs) {
22975 PyObject *resultobj;
22976 wxWindow *arg1 = (wxWindow *) 0 ;
22977 PyObject * obj0 = 0 ;
22978 char *kwnames[] = {
22979 (char *) "self", NULL
22980 };
22981
22982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Fit",kwnames,&obj0)) goto fail;
22983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22985 {
22986 PyThreadState* __tstate = wxPyBeginAllowThreads();
22987 (arg1)->Fit();
22988
22989 wxPyEndAllowThreads(__tstate);
22990 if (PyErr_Occurred()) SWIG_fail;
22991 }
22992 Py_INCREF(Py_None); resultobj = Py_None;
22993 return resultobj;
22994 fail:
22995 return NULL;
22996}
22997
22998
22999static PyObject *_wrap_Window_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) {
23000 PyObject *resultobj;
23001 wxWindow *arg1 = (wxWindow *) 0 ;
23002 PyObject * obj0 = 0 ;
23003 char *kwnames[] = {
23004 (char *) "self", NULL
23005 };
23006
23007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FitInside",kwnames,&obj0)) goto fail;
23008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23010 {
23011 PyThreadState* __tstate = wxPyBeginAllowThreads();
23012 (arg1)->FitInside();
23013
23014 wxPyEndAllowThreads(__tstate);
23015 if (PyErr_Occurred()) SWIG_fail;
23016 }
23017 Py_INCREF(Py_None); resultobj = Py_None;
23018 return resultobj;
23019 fail:
23020 return NULL;
23021}
23022
23023
23024static PyObject *_wrap_Window_SetSizeHints__SWIG_0(PyObject *self, PyObject *args) {
908b74cd
RD
23025 PyObject *resultobj;
23026 wxWindow *arg1 = (wxWindow *) 0 ;
23027 wxSize *arg2 = 0 ;
23028 wxSize const &arg3_defvalue = wxDefaultSize ;
23029 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
23030 wxSize const &arg4_defvalue = wxDefaultSize ;
23031 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
23032 wxSize temp2 ;
23033 wxSize temp3 ;
23034 wxSize temp4 ;
23035 PyObject * obj0 = 0 ;
23036 PyObject * obj1 = 0 ;
23037 PyObject * obj2 = 0 ;
23038 PyObject * obj3 = 0 ;
23039
23040 if(!PyArg_ParseTuple(args,(char *)"OO|OO:Window_SetSizeHints",&obj0,&obj1,&obj2,&obj3)) goto fail;
23041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23043 {
23044 arg2 = &temp2;
23045 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
23046 }
23047 if (obj2) {
23048 {
23049 arg3 = &temp3;
23050 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
23051 }
23052 }
23053 if (obj3) {
23054 {
23055 arg4 = &temp4;
23056 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
23057 }
23058 }
23059 {
23060 PyThreadState* __tstate = wxPyBeginAllowThreads();
23061 (arg1)->SetSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3,(wxSize const &)*arg4);
23062
23063 wxPyEndAllowThreads(__tstate);
23064 if (PyErr_Occurred()) SWIG_fail;
23065 }
23066 Py_INCREF(Py_None); resultobj = Py_None;
23067 return resultobj;
23068 fail:
23069 return NULL;
23070}
23071
23072
23073static PyObject *_wrap_Window_SetSizeHints__SWIG_1(PyObject *self, PyObject *args) {
d55e5bfc
RD
23074 PyObject *resultobj;
23075 wxWindow *arg1 = (wxWindow *) 0 ;
23076 int arg2 ;
23077 int arg3 ;
23078 int arg4 = (int) -1 ;
23079 int arg5 = (int) -1 ;
23080 int arg6 = (int) -1 ;
23081 int arg7 = (int) -1 ;
23082 PyObject * obj0 = 0 ;
23083 PyObject * obj1 = 0 ;
23084 PyObject * obj2 = 0 ;
23085 PyObject * obj3 = 0 ;
23086 PyObject * obj4 = 0 ;
23087 PyObject * obj5 = 0 ;
23088 PyObject * obj6 = 0 ;
23089
23090 if(!PyArg_ParseTuple(args,(char *)"OOO|OOOO:Window_SetSizeHints",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
23091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23093 arg2 = (int) SWIG_AsInt(obj1);
23094 if (PyErr_Occurred()) SWIG_fail;
23095 arg3 = (int) SWIG_AsInt(obj2);
23096 if (PyErr_Occurred()) SWIG_fail;
23097 if (obj3) {
23098 arg4 = (int) SWIG_AsInt(obj3);
23099 if (PyErr_Occurred()) SWIG_fail;
23100 }
23101 if (obj4) {
23102 arg5 = (int) SWIG_AsInt(obj4);
23103 if (PyErr_Occurred()) SWIG_fail;
23104 }
23105 if (obj5) {
23106 arg6 = (int) SWIG_AsInt(obj5);
23107 if (PyErr_Occurred()) SWIG_fail;
23108 }
23109 if (obj6) {
23110 arg7 = (int) SWIG_AsInt(obj6);
23111 if (PyErr_Occurred()) SWIG_fail;
23112 }
23113 {
23114 PyThreadState* __tstate = wxPyBeginAllowThreads();
23115 (arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7);
23116
23117 wxPyEndAllowThreads(__tstate);
23118 if (PyErr_Occurred()) SWIG_fail;
23119 }
23120 Py_INCREF(Py_None); resultobj = Py_None;
23121 return resultobj;
23122 fail:
23123 return NULL;
23124}
23125
23126
d55e5bfc
RD
23127static PyObject *_wrap_Window_SetSizeHints(PyObject *self, PyObject *args) {
23128 int argc;
23129 PyObject *argv[8];
23130 int ii;
23131
23132 argc = PyObject_Length(args);
23133 for (ii = 0; (ii < argc) && (ii < 7); ii++) {
23134 argv[ii] = PyTuple_GetItem(args,ii);
23135 }
23136 if ((argc >= 2) && (argc <= 4)) {
23137 int _v;
23138 {
23139 void *ptr;
23140 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
23141 _v = 0;
23142 PyErr_Clear();
23143 } else {
23144 _v = 1;
23145 }
23146 }
23147 if (_v) {
23148 {
23149 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
23150 }
23151 if (_v) {
23152 if (argc <= 2) {
908b74cd 23153 return _wrap_Window_SetSizeHints__SWIG_0(self,args);
d55e5bfc
RD
23154 }
23155 {
23156 _v = wxPySimple_typecheck(argv[2], wxT("wxSize"), 2);
23157 }
23158 if (_v) {
23159 if (argc <= 3) {
908b74cd 23160 return _wrap_Window_SetSizeHints__SWIG_0(self,args);
d55e5bfc
RD
23161 }
23162 {
23163 _v = wxPySimple_typecheck(argv[3], wxT("wxSize"), 2);
23164 }
23165 if (_v) {
908b74cd 23166 return _wrap_Window_SetSizeHints__SWIG_0(self,args);
d55e5bfc
RD
23167 }
23168 }
23169 }
23170 }
23171 }
23172 if ((argc >= 3) && (argc <= 7)) {
23173 int _v;
23174 {
23175 void *ptr;
23176 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
23177 _v = 0;
23178 PyErr_Clear();
23179 } else {
23180 _v = 1;
23181 }
23182 }
23183 if (_v) {
23184 _v = SWIG_CheckInt(argv[1]);
23185 if (_v) {
23186 _v = SWIG_CheckInt(argv[2]);
23187 if (_v) {
23188 if (argc <= 3) {
908b74cd 23189 return _wrap_Window_SetSizeHints__SWIG_1(self,args);
d55e5bfc
RD
23190 }
23191 _v = SWIG_CheckInt(argv[3]);
23192 if (_v) {
23193 if (argc <= 4) {
908b74cd 23194 return _wrap_Window_SetSizeHints__SWIG_1(self,args);
d55e5bfc
RD
23195 }
23196 _v = SWIG_CheckInt(argv[4]);
23197 if (_v) {
23198 if (argc <= 5) {
908b74cd 23199 return _wrap_Window_SetSizeHints__SWIG_1(self,args);
d55e5bfc
RD
23200 }
23201 _v = SWIG_CheckInt(argv[5]);
23202 if (_v) {
23203 if (argc <= 6) {
908b74cd 23204 return _wrap_Window_SetSizeHints__SWIG_1(self,args);
d55e5bfc
RD
23205 }
23206 _v = SWIG_CheckInt(argv[6]);
23207 if (_v) {
908b74cd 23208 return _wrap_Window_SetSizeHints__SWIG_1(self,args);
d55e5bfc
RD
23209 }
23210 }
23211 }
23212 }
23213 }
23214 }
23215 }
23216 }
23217
23218 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_SetSizeHints'");
23219 return NULL;
23220}
23221
23222
23223static PyObject *_wrap_Window_SetVirtualSizeHints__SWIG_0(PyObject *self, PyObject *args) {
23224 PyObject *resultobj;
23225 wxWindow *arg1 = (wxWindow *) 0 ;
908b74cd
RD
23226 wxSize *arg2 = 0 ;
23227 wxSize const &arg3_defvalue = wxDefaultSize ;
23228 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
23229 wxSize temp2 ;
23230 wxSize temp3 ;
d55e5bfc
RD
23231 PyObject * obj0 = 0 ;
23232 PyObject * obj1 = 0 ;
23233 PyObject * obj2 = 0 ;
d55e5bfc 23234
908b74cd 23235 if(!PyArg_ParseTuple(args,(char *)"OO|O:Window_SetVirtualSizeHints",&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
23236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
908b74cd
RD
23238 {
23239 arg2 = &temp2;
23240 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 23241 }
908b74cd
RD
23242 if (obj2) {
23243 {
23244 arg3 = &temp3;
23245 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
23246 }
d55e5bfc
RD
23247 }
23248 {
23249 PyThreadState* __tstate = wxPyBeginAllowThreads();
908b74cd 23250 (arg1)->SetVirtualSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3);
d55e5bfc
RD
23251
23252 wxPyEndAllowThreads(__tstate);
23253 if (PyErr_Occurred()) SWIG_fail;
23254 }
23255 Py_INCREF(Py_None); resultobj = Py_None;
23256 return resultobj;
23257 fail:
23258 return NULL;
23259}
23260
23261
23262static PyObject *_wrap_Window_SetVirtualSizeHints__SWIG_1(PyObject *self, PyObject *args) {
23263 PyObject *resultobj;
23264 wxWindow *arg1 = (wxWindow *) 0 ;
908b74cd
RD
23265 int arg2 ;
23266 int arg3 ;
23267 int arg4 = (int) -1 ;
23268 int arg5 = (int) -1 ;
d55e5bfc
RD
23269 PyObject * obj0 = 0 ;
23270 PyObject * obj1 = 0 ;
23271 PyObject * obj2 = 0 ;
908b74cd
RD
23272 PyObject * obj3 = 0 ;
23273 PyObject * obj4 = 0 ;
d55e5bfc 23274
908b74cd 23275 if(!PyArg_ParseTuple(args,(char *)"OOO|OO:Window_SetVirtualSizeHints",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
23276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
908b74cd
RD
23278 arg2 = (int) SWIG_AsInt(obj1);
23279 if (PyErr_Occurred()) SWIG_fail;
23280 arg3 = (int) SWIG_AsInt(obj2);
23281 if (PyErr_Occurred()) SWIG_fail;
23282 if (obj3) {
23283 arg4 = (int) SWIG_AsInt(obj3);
23284 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 23285 }
908b74cd
RD
23286 if (obj4) {
23287 arg5 = (int) SWIG_AsInt(obj4);
23288 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
23289 }
23290 {
23291 PyThreadState* __tstate = wxPyBeginAllowThreads();
908b74cd 23292 (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5);
d55e5bfc
RD
23293
23294 wxPyEndAllowThreads(__tstate);
23295 if (PyErr_Occurred()) SWIG_fail;
23296 }
23297 Py_INCREF(Py_None); resultobj = Py_None;
23298 return resultobj;
23299 fail:
23300 return NULL;
23301}
23302
23303
23304static PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *self, PyObject *args) {
23305 int argc;
23306 PyObject *argv[6];
23307 int ii;
23308
23309 argc = PyObject_Length(args);
23310 for (ii = 0; (ii < argc) && (ii < 5); ii++) {
23311 argv[ii] = PyTuple_GetItem(args,ii);
23312 }
23313 if ((argc >= 2) && (argc <= 3)) {
23314 int _v;
23315 {
23316 void *ptr;
23317 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
23318 _v = 0;
23319 PyErr_Clear();
23320 } else {
23321 _v = 1;
23322 }
23323 }
23324 if (_v) {
23325 {
23326 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
23327 }
23328 if (_v) {
23329 if (argc <= 2) {
908b74cd 23330 return _wrap_Window_SetVirtualSizeHints__SWIG_0(self,args);
d55e5bfc
RD
23331 }
23332 {
23333 _v = wxPySimple_typecheck(argv[2], wxT("wxSize"), 2);
23334 }
23335 if (_v) {
908b74cd 23336 return _wrap_Window_SetVirtualSizeHints__SWIG_0(self,args);
d55e5bfc
RD
23337 }
23338 }
23339 }
23340 }
23341 if ((argc >= 3) && (argc <= 5)) {
23342 int _v;
23343 {
23344 void *ptr;
23345 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
23346 _v = 0;
23347 PyErr_Clear();
23348 } else {
23349 _v = 1;
23350 }
23351 }
23352 if (_v) {
23353 _v = SWIG_CheckInt(argv[1]);
23354 if (_v) {
23355 _v = SWIG_CheckInt(argv[2]);
23356 if (_v) {
23357 if (argc <= 3) {
908b74cd 23358 return _wrap_Window_SetVirtualSizeHints__SWIG_1(self,args);
d55e5bfc
RD
23359 }
23360 _v = SWIG_CheckInt(argv[3]);
23361 if (_v) {
23362 if (argc <= 4) {
908b74cd 23363 return _wrap_Window_SetVirtualSizeHints__SWIG_1(self,args);
d55e5bfc
RD
23364 }
23365 _v = SWIG_CheckInt(argv[4]);
23366 if (_v) {
908b74cd 23367 return _wrap_Window_SetVirtualSizeHints__SWIG_1(self,args);
d55e5bfc
RD
23368 }
23369 }
23370 }
23371 }
23372 }
23373 }
23374
23375 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_SetVirtualSizeHints'");
23376 return NULL;
23377}
23378
23379
908b74cd 23380static PyObject *_wrap_Window_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23381 PyObject *resultobj;
23382 wxWindow *arg1 = (wxWindow *) 0 ;
908b74cd 23383 wxSize result;
d55e5bfc
RD
23384 PyObject * obj0 = 0 ;
23385 char *kwnames[] = {
23386 (char *) "self", NULL
23387 };
23388
908b74cd 23389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxSize",kwnames,&obj0)) goto fail;
d55e5bfc
RD
23390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23392 {
23393 PyThreadState* __tstate = wxPyBeginAllowThreads();
908b74cd 23394 result = ((wxWindow const *)arg1)->GetMaxSize();
d55e5bfc
RD
23395
23396 wxPyEndAllowThreads(__tstate);
23397 if (PyErr_Occurred()) SWIG_fail;
23398 }
908b74cd
RD
23399 {
23400 wxSize * resultptr;
23401 resultptr = new wxSize((wxSize &) result);
23402 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
23403 }
d55e5bfc
RD
23404 return resultobj;
23405 fail:
23406 return NULL;
23407}
23408
23409
908b74cd 23410static PyObject *_wrap_Window_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23411 PyObject *resultobj;
23412 wxWindow *arg1 = (wxWindow *) 0 ;
908b74cd 23413 wxSize result;
d55e5bfc
RD
23414 PyObject * obj0 = 0 ;
23415 char *kwnames[] = {
23416 (char *) "self", NULL
23417 };
23418
908b74cd 23419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinSize",kwnames,&obj0)) goto fail;
d55e5bfc
RD
23420 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23421 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23422 {
23423 PyThreadState* __tstate = wxPyBeginAllowThreads();
908b74cd 23424 result = ((wxWindow const *)arg1)->GetMinSize();
d55e5bfc
RD
23425
23426 wxPyEndAllowThreads(__tstate);
23427 if (PyErr_Occurred()) SWIG_fail;
23428 }
908b74cd
RD
23429 {
23430 wxSize * resultptr;
23431 resultptr = new wxSize((wxSize &) result);
23432 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
23433 }
d55e5bfc
RD
23434 return resultobj;
23435 fail:
23436 return NULL;
23437}
23438
23439
908b74cd
RD
23440static PyObject *_wrap_Window_SetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) {
23441 PyObject *resultobj;
23442 wxWindow *arg1 = (wxWindow *) 0 ;
23443 wxSize *arg2 = 0 ;
23444 wxSize temp2 ;
23445 PyObject * obj0 = 0 ;
23446 PyObject * obj1 = 0 ;
23447 char *kwnames[] = {
23448 (char *) "self",(char *) "minSize", NULL
23449 };
23450
23451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMinSize",kwnames,&obj0,&obj1)) goto fail;
23452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23454 {
23455 arg2 = &temp2;
23456 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
23457 }
23458 {
23459 PyThreadState* __tstate = wxPyBeginAllowThreads();
23460 (arg1)->SetMinSize((wxSize const &)*arg2);
23461
23462 wxPyEndAllowThreads(__tstate);
23463 if (PyErr_Occurred()) SWIG_fail;
23464 }
23465 Py_INCREF(Py_None); resultobj = Py_None;
23466 return resultobj;
23467 fail:
23468 return NULL;
23469}
23470
23471
23472static PyObject *_wrap_Window_SetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) {
23473 PyObject *resultobj;
23474 wxWindow *arg1 = (wxWindow *) 0 ;
23475 wxSize *arg2 = 0 ;
23476 wxSize temp2 ;
23477 PyObject * obj0 = 0 ;
23478 PyObject * obj1 = 0 ;
23479 char *kwnames[] = {
23480 (char *) "self",(char *) "maxSize", NULL
23481 };
23482
23483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMaxSize",kwnames,&obj0,&obj1)) goto fail;
23484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23486 {
23487 arg2 = &temp2;
23488 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
23489 }
23490 {
23491 PyThreadState* __tstate = wxPyBeginAllowThreads();
23492 (arg1)->SetMaxSize((wxSize const &)*arg2);
23493
23494 wxPyEndAllowThreads(__tstate);
23495 if (PyErr_Occurred()) SWIG_fail;
23496 }
23497 Py_INCREF(Py_None); resultobj = Py_None;
23498 return resultobj;
23499 fail:
23500 return NULL;
23501}
23502
23503
23504static PyObject *_wrap_Window_GetMinWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23505 PyObject *resultobj;
23506 wxWindow *arg1 = (wxWindow *) 0 ;
23507 int result;
23508 PyObject * obj0 = 0 ;
23509 char *kwnames[] = {
23510 (char *) "self", NULL
23511 };
23512
908b74cd 23513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinWidth",kwnames,&obj0)) goto fail;
d55e5bfc
RD
23514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23516 {
23517 PyThreadState* __tstate = wxPyBeginAllowThreads();
908b74cd 23518 result = (int)((wxWindow const *)arg1)->GetMinWidth();
d55e5bfc
RD
23519
23520 wxPyEndAllowThreads(__tstate);
23521 if (PyErr_Occurred()) SWIG_fail;
23522 }
23523 resultobj = SWIG_FromInt((int)result);
23524 return resultobj;
23525 fail:
23526 return NULL;
23527}
23528
23529
908b74cd 23530static PyObject *_wrap_Window_GetMinHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23531 PyObject *resultobj;
23532 wxWindow *arg1 = (wxWindow *) 0 ;
23533 int result;
23534 PyObject * obj0 = 0 ;
23535 char *kwnames[] = {
23536 (char *) "self", NULL
23537 };
23538
908b74cd 23539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinHeight",kwnames,&obj0)) goto fail;
d55e5bfc
RD
23540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23542 {
23543 PyThreadState* __tstate = wxPyBeginAllowThreads();
908b74cd 23544 result = (int)((wxWindow const *)arg1)->GetMinHeight();
d55e5bfc
RD
23545
23546 wxPyEndAllowThreads(__tstate);
23547 if (PyErr_Occurred()) SWIG_fail;
23548 }
23549 resultobj = SWIG_FromInt((int)result);
23550 return resultobj;
23551 fail:
23552 return NULL;
23553}
23554
23555
908b74cd 23556static PyObject *_wrap_Window_GetMaxWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23557 PyObject *resultobj;
23558 wxWindow *arg1 = (wxWindow *) 0 ;
908b74cd 23559 int result;
d55e5bfc
RD
23560 PyObject * obj0 = 0 ;
23561 char *kwnames[] = {
23562 (char *) "self", NULL
23563 };
23564
908b74cd 23565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxWidth",kwnames,&obj0)) goto fail;
d55e5bfc
RD
23566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23568 {
23569 PyThreadState* __tstate = wxPyBeginAllowThreads();
908b74cd 23570 result = (int)((wxWindow const *)arg1)->GetMaxWidth();
d55e5bfc
RD
23571
23572 wxPyEndAllowThreads(__tstate);
23573 if (PyErr_Occurred()) SWIG_fail;
23574 }
908b74cd 23575 resultobj = SWIG_FromInt((int)result);
d55e5bfc
RD
23576 return resultobj;
23577 fail:
23578 return NULL;
23579}
23580
23581
908b74cd 23582static PyObject *_wrap_Window_GetMaxHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23583 PyObject *resultobj;
23584 wxWindow *arg1 = (wxWindow *) 0 ;
908b74cd 23585 int result;
d55e5bfc
RD
23586 PyObject * obj0 = 0 ;
23587 char *kwnames[] = {
23588 (char *) "self", NULL
23589 };
23590
908b74cd 23591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxHeight",kwnames,&obj0)) goto fail;
d55e5bfc
RD
23592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23594 {
23595 PyThreadState* __tstate = wxPyBeginAllowThreads();
908b74cd 23596 result = (int)((wxWindow const *)arg1)->GetMaxHeight();
d55e5bfc
RD
23597
23598 wxPyEndAllowThreads(__tstate);
23599 if (PyErr_Occurred()) SWIG_fail;
23600 }
908b74cd 23601 resultobj = SWIG_FromInt((int)result);
d55e5bfc
RD
23602 return resultobj;
23603 fail:
23604 return NULL;
23605}
23606
23607
23608static PyObject *_wrap_Window_SetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
23609 PyObject *resultobj;
23610 wxWindow *arg1 = (wxWindow *) 0 ;
23611 wxSize *arg2 = 0 ;
23612 wxSize temp2 ;
23613 PyObject * obj0 = 0 ;
23614 PyObject * obj1 = 0 ;
23615 char *kwnames[] = {
23616 (char *) "self",(char *) "size", NULL
23617 };
23618
23619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) goto fail;
23620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23622 {
23623 arg2 = &temp2;
23624 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
23625 }
23626 {
23627 PyThreadState* __tstate = wxPyBeginAllowThreads();
23628 (arg1)->SetVirtualSize((wxSize const &)*arg2);
23629
23630 wxPyEndAllowThreads(__tstate);
23631 if (PyErr_Occurred()) SWIG_fail;
23632 }
23633 Py_INCREF(Py_None); resultobj = Py_None;
23634 return resultobj;
23635 fail:
23636 return NULL;
23637}
23638
23639
23640static PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
23641 PyObject *resultobj;
23642 wxWindow *arg1 = (wxWindow *) 0 ;
23643 int arg2 ;
23644 int arg3 ;
23645 PyObject * obj0 = 0 ;
23646 PyObject * obj1 = 0 ;
23647 PyObject * obj2 = 0 ;
23648 char *kwnames[] = {
23649 (char *) "self",(char *) "w",(char *) "h", NULL
23650 };
23651
23652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetVirtualSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
23653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23655 arg2 = (int) SWIG_AsInt(obj1);
23656 if (PyErr_Occurred()) SWIG_fail;
23657 arg3 = (int) SWIG_AsInt(obj2);
23658 if (PyErr_Occurred()) SWIG_fail;
23659 {
23660 PyThreadState* __tstate = wxPyBeginAllowThreads();
23661 (arg1)->SetVirtualSize(arg2,arg3);
23662
23663 wxPyEndAllowThreads(__tstate);
23664 if (PyErr_Occurred()) SWIG_fail;
23665 }
23666 Py_INCREF(Py_None); resultobj = Py_None;
23667 return resultobj;
23668 fail:
23669 return NULL;
23670}
23671
23672
23673static PyObject *_wrap_Window_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
23674 PyObject *resultobj;
23675 wxWindow *arg1 = (wxWindow *) 0 ;
23676 wxSize result;
23677 PyObject * obj0 = 0 ;
23678 char *kwnames[] = {
23679 (char *) "self", NULL
23680 };
23681
23682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSize",kwnames,&obj0)) goto fail;
23683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23685 {
23686 PyThreadState* __tstate = wxPyBeginAllowThreads();
23687 result = ((wxWindow const *)arg1)->GetVirtualSize();
23688
23689 wxPyEndAllowThreads(__tstate);
23690 if (PyErr_Occurred()) SWIG_fail;
23691 }
23692 {
23693 wxSize * resultptr;
23694 resultptr = new wxSize((wxSize &) result);
23695 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
23696 }
23697 return resultobj;
23698 fail:
23699 return NULL;
23700}
23701
23702
23703static PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
23704 PyObject *resultobj;
23705 wxWindow *arg1 = (wxWindow *) 0 ;
23706 int *arg2 = (int *) 0 ;
23707 int *arg3 = (int *) 0 ;
23708 int temp2 ;
23709 int temp3 ;
23710 PyObject * obj0 = 0 ;
23711 char *kwnames[] = {
23712 (char *) "self", NULL
23713 };
23714
23715 arg2 = &temp2;
23716 arg3 = &temp3;
23717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSizeTuple",kwnames,&obj0)) goto fail;
23718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23720 {
23721 PyThreadState* __tstate = wxPyBeginAllowThreads();
23722 ((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3);
23723
23724 wxPyEndAllowThreads(__tstate);
23725 if (PyErr_Occurred()) SWIG_fail;
23726 }
23727 Py_INCREF(Py_None); resultobj = Py_None;
23728 {
23729 PyObject *o = PyInt_FromLong((long) (*arg2));
23730 resultobj = t_output_helper(resultobj,o);
23731 }
23732 {
23733 PyObject *o = PyInt_FromLong((long) (*arg3));
23734 resultobj = t_output_helper(resultobj,o);
23735 }
23736 return resultobj;
23737 fail:
23738 return NULL;
23739}
23740
23741
23742static PyObject *_wrap_Window_GetBestVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
23743 PyObject *resultobj;
23744 wxWindow *arg1 = (wxWindow *) 0 ;
23745 wxSize result;
23746 PyObject * obj0 = 0 ;
23747 char *kwnames[] = {
23748 (char *) "self", NULL
23749 };
23750
23751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestVirtualSize",kwnames,&obj0)) goto fail;
23752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23754 {
23755 PyThreadState* __tstate = wxPyBeginAllowThreads();
23756 result = ((wxWindow const *)arg1)->GetBestVirtualSize();
23757
23758 wxPyEndAllowThreads(__tstate);
23759 if (PyErr_Occurred()) SWIG_fail;
23760 }
23761 {
23762 wxSize * resultptr;
23763 resultptr = new wxSize((wxSize &) result);
23764 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
23765 }
23766 return resultobj;
23767 fail:
23768 return NULL;
23769}
23770
23771
23772static PyObject *_wrap_Window_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
23773 PyObject *resultobj;
23774 wxWindow *arg1 = (wxWindow *) 0 ;
23775 bool arg2 = (bool) True ;
23776 bool result;
23777 PyObject * obj0 = 0 ;
23778 PyObject * obj1 = 0 ;
23779 char *kwnames[] = {
23780 (char *) "self",(char *) "show", NULL
23781 };
23782
23783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) goto fail;
23784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23786 if (obj1) {
23787 arg2 = (bool) SWIG_AsBool(obj1);
23788 if (PyErr_Occurred()) SWIG_fail;
23789 }
23790 {
23791 PyThreadState* __tstate = wxPyBeginAllowThreads();
23792 result = (bool)(arg1)->Show(arg2);
23793
23794 wxPyEndAllowThreads(__tstate);
23795 if (PyErr_Occurred()) SWIG_fail;
23796 }
23797 {
23798 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23799 }
23800 return resultobj;
23801 fail:
23802 return NULL;
23803}
23804
23805
23806static PyObject *_wrap_Window_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
23807 PyObject *resultobj;
23808 wxWindow *arg1 = (wxWindow *) 0 ;
23809 bool result;
23810 PyObject * obj0 = 0 ;
23811 char *kwnames[] = {
23812 (char *) "self", NULL
23813 };
23814
23815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Hide",kwnames,&obj0)) goto fail;
23816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23818 {
23819 PyThreadState* __tstate = wxPyBeginAllowThreads();
23820 result = (bool)(arg1)->Hide();
23821
23822 wxPyEndAllowThreads(__tstate);
23823 if (PyErr_Occurred()) SWIG_fail;
23824 }
23825 {
23826 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23827 }
23828 return resultobj;
23829 fail:
23830 return NULL;
23831}
23832
23833
23834static PyObject *_wrap_Window_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
23835 PyObject *resultobj;
23836 wxWindow *arg1 = (wxWindow *) 0 ;
23837 bool arg2 = (bool) True ;
23838 bool result;
23839 PyObject * obj0 = 0 ;
23840 PyObject * obj1 = 0 ;
23841 char *kwnames[] = {
23842 (char *) "self",(char *) "enable", NULL
23843 };
23844
23845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) goto fail;
23846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23848 if (obj1) {
23849 arg2 = (bool) SWIG_AsBool(obj1);
23850 if (PyErr_Occurred()) SWIG_fail;
23851 }
23852 {
23853 PyThreadState* __tstate = wxPyBeginAllowThreads();
23854 result = (bool)(arg1)->Enable(arg2);
23855
23856 wxPyEndAllowThreads(__tstate);
23857 if (PyErr_Occurred()) SWIG_fail;
23858 }
23859 {
23860 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23861 }
23862 return resultobj;
23863 fail:
23864 return NULL;
23865}
23866
23867
23868static PyObject *_wrap_Window_Disable(PyObject *self, PyObject *args, PyObject *kwargs) {
23869 PyObject *resultobj;
23870 wxWindow *arg1 = (wxWindow *) 0 ;
23871 bool result;
23872 PyObject * obj0 = 0 ;
23873 char *kwnames[] = {
23874 (char *) "self", NULL
23875 };
23876
23877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Disable",kwnames,&obj0)) goto fail;
23878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23880 {
23881 PyThreadState* __tstate = wxPyBeginAllowThreads();
23882 result = (bool)(arg1)->Disable();
23883
23884 wxPyEndAllowThreads(__tstate);
23885 if (PyErr_Occurred()) SWIG_fail;
23886 }
23887 {
23888 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23889 }
23890 return resultobj;
23891 fail:
23892 return NULL;
23893}
23894
23895
23896static PyObject *_wrap_Window_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) {
23897 PyObject *resultobj;
23898 wxWindow *arg1 = (wxWindow *) 0 ;
23899 bool result;
23900 PyObject * obj0 = 0 ;
23901 char *kwnames[] = {
23902 (char *) "self", NULL
23903 };
23904
23905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsShown",kwnames,&obj0)) goto fail;
23906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23908 {
23909 PyThreadState* __tstate = wxPyBeginAllowThreads();
23910 result = (bool)((wxWindow const *)arg1)->IsShown();
23911
23912 wxPyEndAllowThreads(__tstate);
23913 if (PyErr_Occurred()) SWIG_fail;
23914 }
23915 {
23916 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23917 }
23918 return resultobj;
23919 fail:
23920 return NULL;
23921}
23922
23923
23924static PyObject *_wrap_Window_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
23925 PyObject *resultobj;
23926 wxWindow *arg1 = (wxWindow *) 0 ;
23927 bool result;
23928 PyObject * obj0 = 0 ;
23929 char *kwnames[] = {
23930 (char *) "self", NULL
23931 };
23932
23933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsEnabled",kwnames,&obj0)) goto fail;
23934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23936 {
23937 PyThreadState* __tstate = wxPyBeginAllowThreads();
23938 result = (bool)((wxWindow const *)arg1)->IsEnabled();
23939
23940 wxPyEndAllowThreads(__tstate);
23941 if (PyErr_Occurred()) SWIG_fail;
23942 }
23943 {
23944 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23945 }
23946 return resultobj;
23947 fail:
23948 return NULL;
23949}
23950
23951
23952static PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
23953 PyObject *resultobj;
23954 wxWindow *arg1 = (wxWindow *) 0 ;
23955 long arg2 ;
23956 PyObject * obj0 = 0 ;
23957 PyObject * obj1 = 0 ;
23958 char *kwnames[] = {
23959 (char *) "self",(char *) "style", NULL
23960 };
23961
23962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail;
23963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23965 arg2 = (long) SWIG_AsLong(obj1);
23966 if (PyErr_Occurred()) SWIG_fail;
23967 {
23968 PyThreadState* __tstate = wxPyBeginAllowThreads();
23969 (arg1)->SetWindowStyleFlag(arg2);
23970
23971 wxPyEndAllowThreads(__tstate);
23972 if (PyErr_Occurred()) SWIG_fail;
23973 }
23974 Py_INCREF(Py_None); resultobj = Py_None;
23975 return resultobj;
23976 fail:
23977 return NULL;
23978}
23979
23980
23981static PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
23982 PyObject *resultobj;
23983 wxWindow *arg1 = (wxWindow *) 0 ;
23984 long result;
23985 PyObject * obj0 = 0 ;
23986 char *kwnames[] = {
23987 (char *) "self", NULL
23988 };
23989
23990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyleFlag",kwnames,&obj0)) goto fail;
23991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23993 {
23994 PyThreadState* __tstate = wxPyBeginAllowThreads();
23995 result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag();
23996
23997 wxPyEndAllowThreads(__tstate);
23998 if (PyErr_Occurred()) SWIG_fail;
23999 }
24000 resultobj = SWIG_FromLong((long)result);
24001 return resultobj;
24002 fail:
24003 return NULL;
24004}
24005
24006
24007static PyObject *_wrap_Window_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
24008 PyObject *resultobj;
24009 wxWindow *arg1 = (wxWindow *) 0 ;
24010 int arg2 ;
24011 bool result;
24012 PyObject * obj0 = 0 ;
24013 PyObject * obj1 = 0 ;
24014 char *kwnames[] = {
24015 (char *) "self",(char *) "flag", NULL
24016 };
24017
24018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasFlag",kwnames,&obj0,&obj1)) goto fail;
24019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24021 arg2 = (int) SWIG_AsInt(obj1);
24022 if (PyErr_Occurred()) SWIG_fail;
24023 {
24024 PyThreadState* __tstate = wxPyBeginAllowThreads();
24025 result = (bool)((wxWindow const *)arg1)->HasFlag(arg2);
24026
24027 wxPyEndAllowThreads(__tstate);
24028 if (PyErr_Occurred()) SWIG_fail;
24029 }
24030 {
24031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24032 }
24033 return resultobj;
24034 fail:
24035 return NULL;
24036}
24037
24038
24039static PyObject *_wrap_Window_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) {
24040 PyObject *resultobj;
24041 wxWindow *arg1 = (wxWindow *) 0 ;
24042 bool result;
24043 PyObject * obj0 = 0 ;
24044 char *kwnames[] = {
24045 (char *) "self", NULL
24046 };
24047
24048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsRetained",kwnames,&obj0)) goto fail;
24049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24051 {
24052 PyThreadState* __tstate = wxPyBeginAllowThreads();
24053 result = (bool)((wxWindow const *)arg1)->IsRetained();
24054
24055 wxPyEndAllowThreads(__tstate);
24056 if (PyErr_Occurred()) SWIG_fail;
24057 }
24058 {
24059 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24060 }
24061 return resultobj;
24062 fail:
24063 return NULL;
24064}
24065
24066
24067static PyObject *_wrap_Window_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
24068 PyObject *resultobj;
24069 wxWindow *arg1 = (wxWindow *) 0 ;
24070 long arg2 ;
24071 PyObject * obj0 = 0 ;
24072 PyObject * obj1 = 0 ;
24073 char *kwnames[] = {
24074 (char *) "self",(char *) "exStyle", NULL
24075 };
24076
24077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetExtraStyle",kwnames,&obj0,&obj1)) goto fail;
24078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24080 arg2 = (long) SWIG_AsLong(obj1);
24081 if (PyErr_Occurred()) SWIG_fail;
24082 {
24083 PyThreadState* __tstate = wxPyBeginAllowThreads();
24084 (arg1)->SetExtraStyle(arg2);
24085
24086 wxPyEndAllowThreads(__tstate);
24087 if (PyErr_Occurred()) SWIG_fail;
24088 }
24089 Py_INCREF(Py_None); resultobj = Py_None;
24090 return resultobj;
24091 fail:
24092 return NULL;
24093}
24094
24095
24096static PyObject *_wrap_Window_GetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
24097 PyObject *resultobj;
24098 wxWindow *arg1 = (wxWindow *) 0 ;
24099 long result;
24100 PyObject * obj0 = 0 ;
24101 char *kwnames[] = {
24102 (char *) "self", NULL
24103 };
24104
24105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetExtraStyle",kwnames,&obj0)) goto fail;
24106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24108 {
24109 PyThreadState* __tstate = wxPyBeginAllowThreads();
24110 result = (long)((wxWindow const *)arg1)->GetExtraStyle();
24111
24112 wxPyEndAllowThreads(__tstate);
24113 if (PyErr_Occurred()) SWIG_fail;
24114 }
24115 resultobj = SWIG_FromLong((long)result);
24116 return resultobj;
24117 fail:
24118 return NULL;
24119}
24120
24121
24122static PyObject *_wrap_Window_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) {
24123 PyObject *resultobj;
24124 wxWindow *arg1 = (wxWindow *) 0 ;
24125 bool arg2 = (bool) True ;
24126 PyObject * obj0 = 0 ;
24127 PyObject * obj1 = 0 ;
24128 char *kwnames[] = {
24129 (char *) "self",(char *) "modal", NULL
24130 };
24131
24132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) goto fail;
24133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24135 if (obj1) {
24136 arg2 = (bool) SWIG_AsBool(obj1);
24137 if (PyErr_Occurred()) SWIG_fail;
24138 }
24139 {
24140 PyThreadState* __tstate = wxPyBeginAllowThreads();
24141 (arg1)->MakeModal(arg2);
24142
24143 wxPyEndAllowThreads(__tstate);
24144 if (PyErr_Occurred()) SWIG_fail;
24145 }
24146 Py_INCREF(Py_None); resultobj = Py_None;
24147 return resultobj;
24148 fail:
24149 return NULL;
24150}
24151
24152
24153static PyObject *_wrap_Window_SetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
24154 PyObject *resultobj;
24155 wxWindow *arg1 = (wxWindow *) 0 ;
24156 bool arg2 ;
24157 PyObject * obj0 = 0 ;
24158 PyObject * obj1 = 0 ;
24159 char *kwnames[] = {
24160 (char *) "self",(char *) "enableTheme", NULL
24161 };
24162
24163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) goto fail;
24164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24166 arg2 = (bool) SWIG_AsBool(obj1);
24167 if (PyErr_Occurred()) SWIG_fail;
24168 {
24169 PyThreadState* __tstate = wxPyBeginAllowThreads();
24170 (arg1)->SetThemeEnabled(arg2);
24171
24172 wxPyEndAllowThreads(__tstate);
24173 if (PyErr_Occurred()) SWIG_fail;
24174 }
24175 Py_INCREF(Py_None); resultobj = Py_None;
24176 return resultobj;
24177 fail:
24178 return NULL;
24179}
24180
24181
24182static PyObject *_wrap_Window_GetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
24183 PyObject *resultobj;
24184 wxWindow *arg1 = (wxWindow *) 0 ;
24185 bool result;
24186 PyObject * obj0 = 0 ;
24187 char *kwnames[] = {
24188 (char *) "self", NULL
24189 };
24190
24191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetThemeEnabled",kwnames,&obj0)) goto fail;
24192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24194 {
24195 PyThreadState* __tstate = wxPyBeginAllowThreads();
24196 result = (bool)((wxWindow const *)arg1)->GetThemeEnabled();
24197
24198 wxPyEndAllowThreads(__tstate);
24199 if (PyErr_Occurred()) SWIG_fail;
24200 }
24201 {
24202 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24203 }
24204 return resultobj;
24205 fail:
24206 return NULL;
24207}
24208
24209
24210static PyObject *_wrap_Window_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
24211 PyObject *resultobj;
24212 wxWindow *arg1 = (wxWindow *) 0 ;
24213 PyObject * obj0 = 0 ;
24214 char *kwnames[] = {
24215 (char *) "self", NULL
24216 };
24217
24218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocus",kwnames,&obj0)) goto fail;
24219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24221 {
24222 PyThreadState* __tstate = wxPyBeginAllowThreads();
24223 (arg1)->SetFocus();
24224
24225 wxPyEndAllowThreads(__tstate);
24226 if (PyErr_Occurred()) SWIG_fail;
24227 }
24228 Py_INCREF(Py_None); resultobj = Py_None;
24229 return resultobj;
24230 fail:
24231 return NULL;
24232}
24233
24234
24235static PyObject *_wrap_Window_SetFocusFromKbd(PyObject *self, PyObject *args, PyObject *kwargs) {
24236 PyObject *resultobj;
24237 wxWindow *arg1 = (wxWindow *) 0 ;
24238 PyObject * obj0 = 0 ;
24239 char *kwnames[] = {
24240 (char *) "self", NULL
24241 };
24242
24243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocusFromKbd",kwnames,&obj0)) goto fail;
24244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24246 {
24247 PyThreadState* __tstate = wxPyBeginAllowThreads();
24248 (arg1)->SetFocusFromKbd();
24249
24250 wxPyEndAllowThreads(__tstate);
24251 if (PyErr_Occurred()) SWIG_fail;
24252 }
24253 Py_INCREF(Py_None); resultobj = Py_None;
24254 return resultobj;
24255 fail:
24256 return NULL;
24257}
24258
24259
24260static PyObject *_wrap_Window_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
24261 PyObject *resultobj;
24262 wxWindow *result;
24263 char *kwnames[] = {
24264 NULL
24265 };
24266
24267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_FindFocus",kwnames)) goto fail;
24268 {
0439c23b 24269 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
24270 PyThreadState* __tstate = wxPyBeginAllowThreads();
24271 result = (wxWindow *)wxWindow::FindFocus();
24272
24273 wxPyEndAllowThreads(__tstate);
0439c23b 24274 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
24275 }
24276 {
24277 resultobj = wxPyMake_wxObject(result);
24278 }
24279 return resultobj;
24280 fail:
24281 return NULL;
24282}
24283
24284
24285static PyObject *_wrap_Window_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
24286 PyObject *resultobj;
24287 wxWindow *arg1 = (wxWindow *) 0 ;
24288 bool result;
24289 PyObject * obj0 = 0 ;
24290 char *kwnames[] = {
24291 (char *) "self", NULL
24292 };
24293
24294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocus",kwnames,&obj0)) goto fail;
24295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24297 {
24298 PyThreadState* __tstate = wxPyBeginAllowThreads();
24299 result = (bool)((wxWindow const *)arg1)->AcceptsFocus();
24300
24301 wxPyEndAllowThreads(__tstate);
24302 if (PyErr_Occurred()) SWIG_fail;
24303 }
24304 {
24305 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24306 }
24307 return resultobj;
24308 fail:
24309 return NULL;
24310}
24311
24312
24313static PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) {
24314 PyObject *resultobj;
24315 wxWindow *arg1 = (wxWindow *) 0 ;
24316 bool result;
24317 PyObject * obj0 = 0 ;
24318 char *kwnames[] = {
24319 (char *) "self", NULL
24320 };
24321
24322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail;
24323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24325 {
24326 PyThreadState* __tstate = wxPyBeginAllowThreads();
24327 result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard();
24328
24329 wxPyEndAllowThreads(__tstate);
24330 if (PyErr_Occurred()) SWIG_fail;
24331 }
24332 {
24333 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24334 }
24335 return resultobj;
24336 fail:
24337 return NULL;
24338}
24339
24340
24341static PyObject *_wrap_Window_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24342 PyObject *resultobj;
24343 wxWindow *arg1 = (wxWindow *) 0 ;
24344 wxWindow *result;
24345 PyObject * obj0 = 0 ;
24346 char *kwnames[] = {
24347 (char *) "self", NULL
24348 };
24349
24350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultItem",kwnames,&obj0)) goto fail;
24351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24353 {
24354 PyThreadState* __tstate = wxPyBeginAllowThreads();
24355 result = (wxWindow *)((wxWindow const *)arg1)->GetDefaultItem();
24356
24357 wxPyEndAllowThreads(__tstate);
24358 if (PyErr_Occurred()) SWIG_fail;
24359 }
24360 {
24361 resultobj = wxPyMake_wxObject(result);
24362 }
24363 return resultobj;
24364 fail:
24365 return NULL;
24366}
24367
24368
24369static PyObject *_wrap_Window_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24370 PyObject *resultobj;
24371 wxWindow *arg1 = (wxWindow *) 0 ;
24372 wxWindow *arg2 = (wxWindow *) 0 ;
24373 wxWindow *result;
24374 PyObject * obj0 = 0 ;
24375 PyObject * obj1 = 0 ;
24376 char *kwnames[] = {
24377 (char *) "self",(char *) "child", NULL
24378 };
24379
24380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultItem",kwnames,&obj0,&obj1)) goto fail;
24381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24383 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24385 {
24386 PyThreadState* __tstate = wxPyBeginAllowThreads();
24387 result = (wxWindow *)(arg1)->SetDefaultItem(arg2);
24388
24389 wxPyEndAllowThreads(__tstate);
24390 if (PyErr_Occurred()) SWIG_fail;
24391 }
24392 {
24393 resultobj = wxPyMake_wxObject(result);
24394 }
24395 return resultobj;
24396 fail:
24397 return NULL;
24398}
24399
24400
24401static PyObject *_wrap_Window_SetTmpDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24402 PyObject *resultobj;
24403 wxWindow *arg1 = (wxWindow *) 0 ;
24404 wxWindow *arg2 = (wxWindow *) 0 ;
24405 PyObject * obj0 = 0 ;
24406 PyObject * obj1 = 0 ;
24407 char *kwnames[] = {
24408 (char *) "self",(char *) "win", NULL
24409 };
24410
24411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTmpDefaultItem",kwnames,&obj0,&obj1)) goto fail;
24412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24414 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24416 {
24417 PyThreadState* __tstate = wxPyBeginAllowThreads();
24418 (arg1)->SetTmpDefaultItem(arg2);
24419
24420 wxPyEndAllowThreads(__tstate);
24421 if (PyErr_Occurred()) SWIG_fail;
24422 }
24423 Py_INCREF(Py_None); resultobj = Py_None;
24424 return resultobj;
24425 fail:
24426 return NULL;
24427}
24428
24429
908b74cd
RD
24430static PyObject *_wrap_Window_Navigate(PyObject *self, PyObject *args, PyObject *kwargs) {
24431 PyObject *resultobj;
24432 wxWindow *arg1 = (wxWindow *) 0 ;
24433 int arg2 = (int) wxNavigationKeyEvent::IsForward ;
24434 bool result;
24435 PyObject * obj0 = 0 ;
24436 PyObject * obj1 = 0 ;
24437 char *kwnames[] = {
24438 (char *) "self",(char *) "flags", NULL
24439 };
24440
24441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Navigate",kwnames,&obj0,&obj1)) goto fail;
24442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24444 if (obj1) {
24445 arg2 = (int) SWIG_AsInt(obj1);
24446 if (PyErr_Occurred()) SWIG_fail;
24447 }
24448 {
24449 PyThreadState* __tstate = wxPyBeginAllowThreads();
24450 result = (bool)(arg1)->Navigate(arg2);
24451
24452 wxPyEndAllowThreads(__tstate);
24453 if (PyErr_Occurred()) SWIG_fail;
24454 }
24455 {
24456 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24457 }
24458 return resultobj;
24459 fail:
24460 return NULL;
24461}
24462
24463
d55e5bfc
RD
24464static PyObject *_wrap_Window_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
24465 PyObject *resultobj;
24466 wxWindow *arg1 = (wxWindow *) 0 ;
24467 PyObject *result;
24468 PyObject * obj0 = 0 ;
24469 char *kwnames[] = {
24470 (char *) "self", NULL
24471 };
24472
24473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetChildren",kwnames,&obj0)) goto fail;
24474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24476 {
24477 PyThreadState* __tstate = wxPyBeginAllowThreads();
24478 result = (PyObject *)wxWindow_GetChildren(arg1);
24479
24480 wxPyEndAllowThreads(__tstate);
24481 if (PyErr_Occurred()) SWIG_fail;
24482 }
24483 resultobj = result;
24484 return resultobj;
24485 fail:
24486 return NULL;
24487}
24488
24489
24490static PyObject *_wrap_Window_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
24491 PyObject *resultobj;
24492 wxWindow *arg1 = (wxWindow *) 0 ;
24493 wxWindow *result;
24494 PyObject * obj0 = 0 ;
24495 char *kwnames[] = {
24496 (char *) "self", NULL
24497 };
24498
24499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetParent",kwnames,&obj0)) goto fail;
24500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24502 {
24503 PyThreadState* __tstate = wxPyBeginAllowThreads();
24504 result = (wxWindow *)((wxWindow const *)arg1)->GetParent();
24505
24506 wxPyEndAllowThreads(__tstate);
24507 if (PyErr_Occurred()) SWIG_fail;
24508 }
24509 {
24510 resultobj = wxPyMake_wxObject(result);
24511 }
24512 return resultobj;
24513 fail:
24514 return NULL;
24515}
24516
24517
24518static PyObject *_wrap_Window_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) {
24519 PyObject *resultobj;
24520 wxWindow *arg1 = (wxWindow *) 0 ;
24521 wxWindow *result;
24522 PyObject * obj0 = 0 ;
24523 char *kwnames[] = {
24524 (char *) "self", NULL
24525 };
24526
24527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetGrandParent",kwnames,&obj0)) goto fail;
24528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24530 {
24531 PyThreadState* __tstate = wxPyBeginAllowThreads();
24532 result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent();
24533
24534 wxPyEndAllowThreads(__tstate);
24535 if (PyErr_Occurred()) SWIG_fail;
24536 }
24537 {
24538 resultobj = wxPyMake_wxObject(result);
24539 }
24540 return resultobj;
24541 fail:
24542 return NULL;
24543}
24544
24545
24546static PyObject *_wrap_Window_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
24547 PyObject *resultobj;
24548 wxWindow *arg1 = (wxWindow *) 0 ;
24549 bool result;
24550 PyObject * obj0 = 0 ;
24551 char *kwnames[] = {
24552 (char *) "self", NULL
24553 };
24554
24555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsTopLevel",kwnames,&obj0)) goto fail;
24556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24558 {
24559 PyThreadState* __tstate = wxPyBeginAllowThreads();
24560 result = (bool)((wxWindow const *)arg1)->IsTopLevel();
24561
24562 wxPyEndAllowThreads(__tstate);
24563 if (PyErr_Occurred()) SWIG_fail;
24564 }
24565 {
24566 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24567 }
24568 return resultobj;
24569 fail:
24570 return NULL;
24571}
24572
24573
24574static PyObject *_wrap_Window_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) {
24575 PyObject *resultobj;
24576 wxWindow *arg1 = (wxWindow *) 0 ;
24577 wxWindow *arg2 = (wxWindow *) 0 ;
24578 bool result;
24579 PyObject * obj0 = 0 ;
24580 PyObject * obj1 = 0 ;
24581 char *kwnames[] = {
24582 (char *) "self",(char *) "newParent", NULL
24583 };
24584
24585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) goto fail;
24586 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24587 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24588 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24590 {
24591 PyThreadState* __tstate = wxPyBeginAllowThreads();
24592 result = (bool)(arg1)->Reparent(arg2);
24593
24594 wxPyEndAllowThreads(__tstate);
24595 if (PyErr_Occurred()) SWIG_fail;
24596 }
24597 {
24598 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24599 }
24600 return resultobj;
24601 fail:
24602 return NULL;
24603}
24604
24605
24606static PyObject *_wrap_Window_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) {
24607 PyObject *resultobj;
24608 wxWindow *arg1 = (wxWindow *) 0 ;
24609 wxWindow *arg2 = (wxWindow *) 0 ;
24610 PyObject * obj0 = 0 ;
24611 PyObject * obj1 = 0 ;
24612 char *kwnames[] = {
24613 (char *) "self",(char *) "child", NULL
24614 };
24615
24616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) goto fail;
24617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24619 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24621 {
24622 PyThreadState* __tstate = wxPyBeginAllowThreads();
24623 (arg1)->AddChild(arg2);
24624
24625 wxPyEndAllowThreads(__tstate);
24626 if (PyErr_Occurred()) SWIG_fail;
24627 }
24628 Py_INCREF(Py_None); resultobj = Py_None;
24629 return resultobj;
24630 fail:
24631 return NULL;
24632}
24633
24634
24635static PyObject *_wrap_Window_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) {
24636 PyObject *resultobj;
24637 wxWindow *arg1 = (wxWindow *) 0 ;
24638 wxWindow *arg2 = (wxWindow *) 0 ;
24639 PyObject * obj0 = 0 ;
24640 PyObject * obj1 = 0 ;
24641 char *kwnames[] = {
24642 (char *) "self",(char *) "child", NULL
24643 };
24644
24645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) goto fail;
24646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24648 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24650 {
24651 PyThreadState* __tstate = wxPyBeginAllowThreads();
24652 (arg1)->RemoveChild(arg2);
24653
24654 wxPyEndAllowThreads(__tstate);
24655 if (PyErr_Occurred()) SWIG_fail;
24656 }
24657 Py_INCREF(Py_None); resultobj = Py_None;
24658 return resultobj;
24659 fail:
24660 return NULL;
24661}
24662
24663
24664static PyObject *_wrap_Window_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) {
24665 PyObject *resultobj;
24666 wxWindow *arg1 = (wxWindow *) 0 ;
24667 long arg2 ;
24668 wxWindow *result;
24669 PyObject * obj0 = 0 ;
24670 PyObject * obj1 = 0 ;
24671 char *kwnames[] = {
24672 (char *) "self",(char *) "winid", NULL
24673 };
24674
24675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowById",kwnames,&obj0,&obj1)) goto fail;
24676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24678 arg2 = (long) SWIG_AsLong(obj1);
24679 if (PyErr_Occurred()) SWIG_fail;
24680 {
24681 PyThreadState* __tstate = wxPyBeginAllowThreads();
24682 result = (wxWindow *)(arg1)->FindWindow(arg2);
24683
24684 wxPyEndAllowThreads(__tstate);
24685 if (PyErr_Occurred()) SWIG_fail;
24686 }
24687 {
24688 resultobj = wxPyMake_wxObject(result);
24689 }
24690 return resultobj;
24691 fail:
24692 return NULL;
24693}
24694
24695
24696static PyObject *_wrap_Window_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) {
24697 PyObject *resultobj;
24698 wxWindow *arg1 = (wxWindow *) 0 ;
24699 wxString *arg2 = 0 ;
24700 wxWindow *result;
24701 bool temp2 = False ;
24702 PyObject * obj0 = 0 ;
24703 PyObject * obj1 = 0 ;
24704 char *kwnames[] = {
24705 (char *) "self",(char *) "name", NULL
24706 };
24707
24708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) goto fail;
24709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24711 {
24712 arg2 = wxString_in_helper(obj1);
24713 if (arg2 == NULL) SWIG_fail;
24714 temp2 = True;
24715 }
24716 {
24717 PyThreadState* __tstate = wxPyBeginAllowThreads();
24718 result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2);
24719
24720 wxPyEndAllowThreads(__tstate);
24721 if (PyErr_Occurred()) SWIG_fail;
24722 }
24723 {
24724 resultobj = wxPyMake_wxObject(result);
24725 }
24726 {
24727 if (temp2)
24728 delete arg2;
24729 }
24730 return resultobj;
24731 fail:
24732 {
24733 if (temp2)
24734 delete arg2;
24735 }
24736 return NULL;
24737}
24738
24739
24740static PyObject *_wrap_Window_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
24741 PyObject *resultobj;
24742 wxWindow *arg1 = (wxWindow *) 0 ;
24743 wxEvtHandler *result;
24744 PyObject * obj0 = 0 ;
24745 char *kwnames[] = {
24746 (char *) "self", NULL
24747 };
24748
24749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetEventHandler",kwnames,&obj0)) goto fail;
24750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24752 {
24753 PyThreadState* __tstate = wxPyBeginAllowThreads();
24754 result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler();
24755
24756 wxPyEndAllowThreads(__tstate);
24757 if (PyErr_Occurred()) SWIG_fail;
24758 }
24759 {
24760 resultobj = wxPyMake_wxObject(result);
24761 }
24762 return resultobj;
24763 fail:
24764 return NULL;
24765}
24766
24767
24768static PyObject *_wrap_Window_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
24769 PyObject *resultobj;
24770 wxWindow *arg1 = (wxWindow *) 0 ;
24771 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
24772 PyObject * obj0 = 0 ;
24773 PyObject * obj1 = 0 ;
24774 char *kwnames[] = {
24775 (char *) "self",(char *) "handler", NULL
24776 };
24777
24778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) goto fail;
24779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24781 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
24782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24783 {
24784 PyThreadState* __tstate = wxPyBeginAllowThreads();
24785 (arg1)->SetEventHandler(arg2);
24786
24787 wxPyEndAllowThreads(__tstate);
24788 if (PyErr_Occurred()) SWIG_fail;
24789 }
24790 Py_INCREF(Py_None); resultobj = Py_None;
24791 return resultobj;
24792 fail:
24793 return NULL;
24794}
24795
24796
24797static PyObject *_wrap_Window_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
24798 PyObject *resultobj;
24799 wxWindow *arg1 = (wxWindow *) 0 ;
24800 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
24801 PyObject * obj0 = 0 ;
24802 PyObject * obj1 = 0 ;
24803 char *kwnames[] = {
24804 (char *) "self",(char *) "handler", NULL
24805 };
24806
24807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) goto fail;
24808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24810 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
24811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24812 {
24813 PyThreadState* __tstate = wxPyBeginAllowThreads();
24814 (arg1)->PushEventHandler(arg2);
24815
24816 wxPyEndAllowThreads(__tstate);
24817 if (PyErr_Occurred()) SWIG_fail;
24818 }
24819 Py_INCREF(Py_None); resultobj = Py_None;
24820 return resultobj;
24821 fail:
24822 return NULL;
24823}
24824
24825
24826static PyObject *_wrap_Window_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
24827 PyObject *resultobj;
24828 wxWindow *arg1 = (wxWindow *) 0 ;
24829 bool arg2 = (bool) False ;
24830 wxEvtHandler *result;
24831 PyObject * obj0 = 0 ;
24832 PyObject * obj1 = 0 ;
24833 char *kwnames[] = {
24834 (char *) "self",(char *) "deleteHandler", NULL
24835 };
24836
24837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) goto fail;
24838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24840 if (obj1) {
24841 arg2 = (bool) SWIG_AsBool(obj1);
24842 if (PyErr_Occurred()) SWIG_fail;
24843 }
24844 {
24845 PyThreadState* __tstate = wxPyBeginAllowThreads();
24846 result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2);
24847
24848 wxPyEndAllowThreads(__tstate);
24849 if (PyErr_Occurred()) SWIG_fail;
24850 }
24851 {
24852 resultobj = wxPyMake_wxObject(result);
24853 }
24854 return resultobj;
24855 fail:
24856 return NULL;
24857}
24858
24859
24860static PyObject *_wrap_Window_RemoveEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
24861 PyObject *resultobj;
24862 wxWindow *arg1 = (wxWindow *) 0 ;
24863 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
24864 bool result;
24865 PyObject * obj0 = 0 ;
24866 PyObject * obj1 = 0 ;
24867 char *kwnames[] = {
24868 (char *) "self",(char *) "handler", NULL
24869 };
24870
24871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) goto fail;
24872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24874 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
24875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24876 {
24877 PyThreadState* __tstate = wxPyBeginAllowThreads();
24878 result = (bool)(arg1)->RemoveEventHandler(arg2);
24879
24880 wxPyEndAllowThreads(__tstate);
24881 if (PyErr_Occurred()) SWIG_fail;
24882 }
24883 {
24884 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24885 }
24886 return resultobj;
24887 fail:
24888 return NULL;
24889}
24890
24891
24892static PyObject *_wrap_Window_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
24893 PyObject *resultobj;
24894 wxWindow *arg1 = (wxWindow *) 0 ;
24895 wxValidator *arg2 = 0 ;
24896 PyObject * obj0 = 0 ;
24897 PyObject * obj1 = 0 ;
24898 char *kwnames[] = {
24899 (char *) "self",(char *) "validator", NULL
24900 };
24901
24902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) goto fail;
24903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24905 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxValidator,
24906 SWIG_POINTER_EXCEPTION | 0)) == -1)
24907 SWIG_fail;
24908 if (arg2 == NULL) {
24909 PyErr_SetString(PyExc_TypeError,"null reference");
24910 SWIG_fail;
24911 }
24912 {
24913 PyThreadState* __tstate = wxPyBeginAllowThreads();
24914 (arg1)->SetValidator((wxValidator const &)*arg2);
24915
24916 wxPyEndAllowThreads(__tstate);
24917 if (PyErr_Occurred()) SWIG_fail;
24918 }
24919 Py_INCREF(Py_None); resultobj = Py_None;
24920 return resultobj;
24921 fail:
24922 return NULL;
24923}
24924
24925
24926static PyObject *_wrap_Window_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
24927 PyObject *resultobj;
24928 wxWindow *arg1 = (wxWindow *) 0 ;
24929 wxValidator *result;
24930 PyObject * obj0 = 0 ;
24931 char *kwnames[] = {
24932 (char *) "self", NULL
24933 };
24934
24935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetValidator",kwnames,&obj0)) goto fail;
24936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24938 {
24939 PyThreadState* __tstate = wxPyBeginAllowThreads();
24940 result = (wxValidator *)(arg1)->GetValidator();
24941
24942 wxPyEndAllowThreads(__tstate);
24943 if (PyErr_Occurred()) SWIG_fail;
24944 }
24945 {
24946 resultobj = wxPyMake_wxObject(result);
24947 }
24948 return resultobj;
24949 fail:
24950 return NULL;
24951}
24952
24953
24954static PyObject *_wrap_Window_Validate(PyObject *self, PyObject *args, PyObject *kwargs) {
24955 PyObject *resultobj;
24956 wxWindow *arg1 = (wxWindow *) 0 ;
24957 bool result;
24958 PyObject * obj0 = 0 ;
24959 char *kwnames[] = {
24960 (char *) "self", NULL
24961 };
24962
24963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Validate",kwnames,&obj0)) goto fail;
24964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24966 {
24967 PyThreadState* __tstate = wxPyBeginAllowThreads();
24968 result = (bool)(arg1)->Validate();
24969
24970 wxPyEndAllowThreads(__tstate);
24971 if (PyErr_Occurred()) SWIG_fail;
24972 }
24973 {
24974 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24975 }
24976 return resultobj;
24977 fail:
24978 return NULL;
24979}
24980
24981
24982static PyObject *_wrap_Window_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
24983 PyObject *resultobj;
24984 wxWindow *arg1 = (wxWindow *) 0 ;
24985 bool result;
24986 PyObject * obj0 = 0 ;
24987 char *kwnames[] = {
24988 (char *) "self", NULL
24989 };
24990
24991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataToWindow",kwnames,&obj0)) goto fail;
24992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24994 {
24995 PyThreadState* __tstate = wxPyBeginAllowThreads();
24996 result = (bool)(arg1)->TransferDataToWindow();
24997
24998 wxPyEndAllowThreads(__tstate);
24999 if (PyErr_Occurred()) SWIG_fail;
25000 }
25001 {
25002 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25003 }
25004 return resultobj;
25005 fail:
25006 return NULL;
25007}
25008
25009
25010static PyObject *_wrap_Window_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
25011 PyObject *resultobj;
25012 wxWindow *arg1 = (wxWindow *) 0 ;
25013 bool result;
25014 PyObject * obj0 = 0 ;
25015 char *kwnames[] = {
25016 (char *) "self", NULL
25017 };
25018
25019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataFromWindow",kwnames,&obj0)) goto fail;
25020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25022 {
25023 PyThreadState* __tstate = wxPyBeginAllowThreads();
25024 result = (bool)(arg1)->TransferDataFromWindow();
25025
25026 wxPyEndAllowThreads(__tstate);
25027 if (PyErr_Occurred()) SWIG_fail;
25028 }
25029 {
25030 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25031 }
25032 return resultobj;
25033 fail:
25034 return NULL;
25035}
25036
25037
25038static PyObject *_wrap_Window_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
25039 PyObject *resultobj;
25040 wxWindow *arg1 = (wxWindow *) 0 ;
25041 PyObject * obj0 = 0 ;
25042 char *kwnames[] = {
25043 (char *) "self", NULL
25044 };
25045
25046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InitDialog",kwnames,&obj0)) goto fail;
25047 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25049 {
25050 PyThreadState* __tstate = wxPyBeginAllowThreads();
25051 (arg1)->InitDialog();
25052
25053 wxPyEndAllowThreads(__tstate);
25054 if (PyErr_Occurred()) SWIG_fail;
25055 }
25056 Py_INCREF(Py_None); resultobj = Py_None;
25057 return resultobj;
25058 fail:
25059 return NULL;
25060}
25061
25062
25063static PyObject *_wrap_Window_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
25064 PyObject *resultobj;
25065 wxWindow *arg1 = (wxWindow *) 0 ;
25066 wxAcceleratorTable *arg2 = 0 ;
25067 PyObject * obj0 = 0 ;
25068 PyObject * obj1 = 0 ;
25069 char *kwnames[] = {
25070 (char *) "self",(char *) "accel", NULL
25071 };
25072
25073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) goto fail;
25074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25076 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorTable,
25077 SWIG_POINTER_EXCEPTION | 0)) == -1)
25078 SWIG_fail;
25079 if (arg2 == NULL) {
25080 PyErr_SetString(PyExc_TypeError,"null reference");
25081 SWIG_fail;
25082 }
25083 {
25084 PyThreadState* __tstate = wxPyBeginAllowThreads();
25085 (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2);
25086
25087 wxPyEndAllowThreads(__tstate);
25088 if (PyErr_Occurred()) SWIG_fail;
25089 }
25090 Py_INCREF(Py_None); resultobj = Py_None;
25091 return resultobj;
25092 fail:
25093 return NULL;
25094}
25095
25096
25097static PyObject *_wrap_Window_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
25098 PyObject *resultobj;
25099 wxWindow *arg1 = (wxWindow *) 0 ;
25100 wxAcceleratorTable *result;
25101 PyObject * obj0 = 0 ;
25102 char *kwnames[] = {
25103 (char *) "self", NULL
25104 };
25105
25106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAcceleratorTable",kwnames,&obj0)) goto fail;
25107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25109 {
25110 PyThreadState* __tstate = wxPyBeginAllowThreads();
25111 result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable();
25112
25113 wxPyEndAllowThreads(__tstate);
25114 if (PyErr_Occurred()) SWIG_fail;
25115 }
25116 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 0);
25117 return resultobj;
25118 fail:
25119 return NULL;
25120}
25121
25122
25123static PyObject *_wrap_Window_RegisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) {
25124 PyObject *resultobj;
25125 wxWindow *arg1 = (wxWindow *) 0 ;
25126 int arg2 ;
25127 int arg3 ;
25128 int arg4 ;
25129 bool result;
25130 PyObject * obj0 = 0 ;
25131 PyObject * obj1 = 0 ;
25132 PyObject * obj2 = 0 ;
25133 PyObject * obj3 = 0 ;
25134 char *kwnames[] = {
25135 (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL
25136 };
25137
25138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_RegisterHotKey",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25141 arg2 = (int) SWIG_AsInt(obj1);
25142 if (PyErr_Occurred()) SWIG_fail;
25143 arg3 = (int) SWIG_AsInt(obj2);
25144 if (PyErr_Occurred()) SWIG_fail;
25145 arg4 = (int) SWIG_AsInt(obj3);
25146 if (PyErr_Occurred()) SWIG_fail;
25147 {
25148 PyThreadState* __tstate = wxPyBeginAllowThreads();
25149 result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4);
25150
25151 wxPyEndAllowThreads(__tstate);
25152 if (PyErr_Occurred()) SWIG_fail;
25153 }
25154 {
25155 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25156 }
25157 return resultobj;
25158 fail:
25159 return NULL;
25160}
25161
25162
25163static PyObject *_wrap_Window_UnregisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) {
25164 PyObject *resultobj;
25165 wxWindow *arg1 = (wxWindow *) 0 ;
25166 int arg2 ;
25167 bool result;
25168 PyObject * obj0 = 0 ;
25169 PyObject * obj1 = 0 ;
25170 char *kwnames[] = {
25171 (char *) "self",(char *) "hotkeyId", NULL
25172 };
25173
25174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_UnregisterHotKey",kwnames,&obj0,&obj1)) goto fail;
25175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25177 arg2 = (int) SWIG_AsInt(obj1);
25178 if (PyErr_Occurred()) SWIG_fail;
25179 {
25180 PyThreadState* __tstate = wxPyBeginAllowThreads();
25181 result = (bool)wxWindow_UnregisterHotKey(arg1,arg2);
25182
25183 wxPyEndAllowThreads(__tstate);
25184 if (PyErr_Occurred()) SWIG_fail;
25185 }
25186 {
25187 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25188 }
25189 return resultobj;
25190 fail:
25191 return NULL;
25192}
25193
25194
25195static PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) {
25196 PyObject *resultobj;
25197 wxWindow *arg1 = (wxWindow *) 0 ;
25198 wxPoint *arg2 = 0 ;
25199 wxPoint result;
25200 wxPoint temp2 ;
25201 PyObject * obj0 = 0 ;
25202 PyObject * obj1 = 0 ;
25203 char *kwnames[] = {
25204 (char *) "self",(char *) "pt", NULL
25205 };
25206
25207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) goto fail;
25208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25210 {
25211 arg2 = &temp2;
25212 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
25213 }
25214 {
25215 PyThreadState* __tstate = wxPyBeginAllowThreads();
25216 result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2);
25217
25218 wxPyEndAllowThreads(__tstate);
25219 if (PyErr_Occurred()) SWIG_fail;
25220 }
25221 {
25222 wxPoint * resultptr;
25223 resultptr = new wxPoint((wxPoint &) result);
25224 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
25225 }
25226 return resultobj;
25227 fail:
25228 return NULL;
25229}
25230
25231
25232static PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) {
25233 PyObject *resultobj;
25234 wxWindow *arg1 = (wxWindow *) 0 ;
25235 wxSize *arg2 = 0 ;
25236 wxSize result;
25237 wxSize temp2 ;
25238 PyObject * obj0 = 0 ;
25239 PyObject * obj1 = 0 ;
25240 char *kwnames[] = {
25241 (char *) "self",(char *) "sz", NULL
25242 };
25243
25244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) goto fail;
25245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25247 {
25248 arg2 = &temp2;
25249 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25250 }
25251 {
25252 PyThreadState* __tstate = wxPyBeginAllowThreads();
25253 result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2);
25254
25255 wxPyEndAllowThreads(__tstate);
25256 if (PyErr_Occurred()) SWIG_fail;
25257 }
25258 {
25259 wxSize * resultptr;
25260 resultptr = new wxSize((wxSize &) result);
25261 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
25262 }
25263 return resultobj;
25264 fail:
25265 return NULL;
25266}
25267
25268
25269static PyObject *_wrap_Window_DLG_PNT(PyObject *self, PyObject *args, PyObject *kwargs) {
25270 PyObject *resultobj;
25271 wxWindow *arg1 = (wxWindow *) 0 ;
25272 wxPoint *arg2 = 0 ;
25273 wxPoint result;
25274 wxPoint temp2 ;
25275 PyObject * obj0 = 0 ;
25276 PyObject * obj1 = 0 ;
25277 char *kwnames[] = {
25278 (char *) "self",(char *) "pt", NULL
25279 };
25280
25281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) goto fail;
25282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25284 {
25285 arg2 = &temp2;
25286 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
25287 }
25288 {
25289 PyThreadState* __tstate = wxPyBeginAllowThreads();
25290 result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2);
25291
25292 wxPyEndAllowThreads(__tstate);
25293 if (PyErr_Occurred()) SWIG_fail;
25294 }
25295 {
25296 wxPoint * resultptr;
25297 resultptr = new wxPoint((wxPoint &) result);
25298 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
25299 }
25300 return resultobj;
25301 fail:
25302 return NULL;
25303}
25304
25305
25306static PyObject *_wrap_Window_DLG_SZE(PyObject *self, PyObject *args, PyObject *kwargs) {
25307 PyObject *resultobj;
25308 wxWindow *arg1 = (wxWindow *) 0 ;
25309 wxSize *arg2 = 0 ;
25310 wxSize result;
25311 wxSize temp2 ;
25312 PyObject * obj0 = 0 ;
25313 PyObject * obj1 = 0 ;
25314 char *kwnames[] = {
25315 (char *) "self",(char *) "sz", NULL
25316 };
25317
25318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) goto fail;
25319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25321 {
25322 arg2 = &temp2;
25323 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25324 }
25325 {
25326 PyThreadState* __tstate = wxPyBeginAllowThreads();
25327 result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2);
25328
25329 wxPyEndAllowThreads(__tstate);
25330 if (PyErr_Occurred()) SWIG_fail;
25331 }
25332 {
25333 wxSize * resultptr;
25334 resultptr = new wxSize((wxSize &) result);
25335 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
25336 }
25337 return resultobj;
25338 fail:
25339 return NULL;
25340}
25341
25342
25343static PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
25344 PyObject *resultobj;
25345 wxWindow *arg1 = (wxWindow *) 0 ;
25346 wxPoint *arg2 = 0 ;
25347 wxPoint result;
25348 wxPoint temp2 ;
25349 PyObject * obj0 = 0 ;
25350 PyObject * obj1 = 0 ;
25351 char *kwnames[] = {
25352 (char *) "self",(char *) "pt", NULL
25353 };
25354
25355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) goto fail;
25356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25358 {
25359 arg2 = &temp2;
25360 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
25361 }
25362 {
25363 PyThreadState* __tstate = wxPyBeginAllowThreads();
25364 result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2);
25365
25366 wxPyEndAllowThreads(__tstate);
25367 if (PyErr_Occurred()) SWIG_fail;
25368 }
25369 {
25370 wxPoint * resultptr;
25371 resultptr = new wxPoint((wxPoint &) result);
25372 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
25373 }
25374 return resultobj;
25375 fail:
25376 return NULL;
25377}
25378
25379
25380static PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
25381 PyObject *resultobj;
25382 wxWindow *arg1 = (wxWindow *) 0 ;
25383 wxSize *arg2 = 0 ;
25384 wxSize result;
25385 wxSize temp2 ;
25386 PyObject * obj0 = 0 ;
25387 PyObject * obj1 = 0 ;
25388 char *kwnames[] = {
25389 (char *) "self",(char *) "sz", NULL
25390 };
25391
25392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) goto fail;
25393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25395 {
25396 arg2 = &temp2;
25397 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25398 }
25399 {
25400 PyThreadState* __tstate = wxPyBeginAllowThreads();
25401 result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2);
25402
25403 wxPyEndAllowThreads(__tstate);
25404 if (PyErr_Occurred()) SWIG_fail;
25405 }
25406 {
25407 wxSize * resultptr;
25408 resultptr = new wxSize((wxSize &) result);
25409 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
25410 }
25411 return resultobj;
25412 fail:
25413 return NULL;
25414}
25415
25416
25417static PyObject *_wrap_Window_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) {
25418 PyObject *resultobj;
25419 wxWindow *arg1 = (wxWindow *) 0 ;
25420 int arg2 ;
25421 int arg3 ;
25422 PyObject * obj0 = 0 ;
25423 PyObject * obj1 = 0 ;
25424 PyObject * obj2 = 0 ;
25425 char *kwnames[] = {
25426 (char *) "self",(char *) "x",(char *) "y", NULL
25427 };
25428
25429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_WarpPointer",kwnames,&obj0,&obj1,&obj2)) goto fail;
25430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25432 arg2 = (int) SWIG_AsInt(obj1);
25433 if (PyErr_Occurred()) SWIG_fail;
25434 arg3 = (int) SWIG_AsInt(obj2);
25435 if (PyErr_Occurred()) SWIG_fail;
25436 {
25437 PyThreadState* __tstate = wxPyBeginAllowThreads();
25438 (arg1)->WarpPointer(arg2,arg3);
25439
25440 wxPyEndAllowThreads(__tstate);
25441 if (PyErr_Occurred()) SWIG_fail;
25442 }
25443 Py_INCREF(Py_None); resultobj = Py_None;
25444 return resultobj;
25445 fail:
25446 return NULL;
25447}
25448
25449
25450static PyObject *_wrap_Window_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) {
25451 PyObject *resultobj;
25452 wxWindow *arg1 = (wxWindow *) 0 ;
25453 PyObject * obj0 = 0 ;
25454 char *kwnames[] = {
25455 (char *) "self", NULL
25456 };
25457
25458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_CaptureMouse",kwnames,&obj0)) goto fail;
25459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25461 {
25462 PyThreadState* __tstate = wxPyBeginAllowThreads();
25463 (arg1)->CaptureMouse();
25464
25465 wxPyEndAllowThreads(__tstate);
25466 if (PyErr_Occurred()) SWIG_fail;
25467 }
25468 Py_INCREF(Py_None); resultobj = Py_None;
25469 return resultobj;
25470 fail:
25471 return NULL;
25472}
25473
25474
25475static PyObject *_wrap_Window_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) {
25476 PyObject *resultobj;
25477 wxWindow *arg1 = (wxWindow *) 0 ;
25478 PyObject * obj0 = 0 ;
25479 char *kwnames[] = {
25480 (char *) "self", NULL
25481 };
25482
25483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ReleaseMouse",kwnames,&obj0)) goto fail;
25484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25486 {
25487 PyThreadState* __tstate = wxPyBeginAllowThreads();
25488 (arg1)->ReleaseMouse();
25489
25490 wxPyEndAllowThreads(__tstate);
25491 if (PyErr_Occurred()) SWIG_fail;
25492 }
25493 Py_INCREF(Py_None); resultobj = Py_None;
25494 return resultobj;
25495 fail:
25496 return NULL;
25497}
25498
25499
25500static PyObject *_wrap_Window_GetCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
25501 PyObject *resultobj;
25502 wxWindow *result;
25503 char *kwnames[] = {
25504 NULL
25505 };
25506
25507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_GetCapture",kwnames)) goto fail;
25508 {
0439c23b 25509 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
25510 PyThreadState* __tstate = wxPyBeginAllowThreads();
25511 result = (wxWindow *)wxWindow::GetCapture();
25512
25513 wxPyEndAllowThreads(__tstate);
0439c23b 25514 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
25515 }
25516 {
25517 resultobj = wxPyMake_wxObject(result);
25518 }
25519 return resultobj;
25520 fail:
25521 return NULL;
25522}
25523
25524
25525static PyObject *_wrap_Window_HasCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
25526 PyObject *resultobj;
25527 wxWindow *arg1 = (wxWindow *) 0 ;
25528 bool result;
25529 PyObject * obj0 = 0 ;
25530 char *kwnames[] = {
25531 (char *) "self", NULL
25532 };
25533
25534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasCapture",kwnames,&obj0)) goto fail;
25535 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25537 {
25538 PyThreadState* __tstate = wxPyBeginAllowThreads();
25539 result = (bool)((wxWindow const *)arg1)->HasCapture();
25540
25541 wxPyEndAllowThreads(__tstate);
25542 if (PyErr_Occurred()) SWIG_fail;
25543 }
25544 {
25545 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25546 }
25547 return resultobj;
25548 fail:
25549 return NULL;
25550}
25551
25552
25553static PyObject *_wrap_Window_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) {
25554 PyObject *resultobj;
25555 wxWindow *arg1 = (wxWindow *) 0 ;
25556 bool arg2 = (bool) True ;
25557 wxRect *arg3 = (wxRect *) NULL ;
25558 PyObject * obj0 = 0 ;
25559 PyObject * obj1 = 0 ;
25560 PyObject * obj2 = 0 ;
25561 char *kwnames[] = {
25562 (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL
25563 };
25564
25565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail;
25566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25568 if (obj1) {
25569 arg2 = (bool) SWIG_AsBool(obj1);
25570 if (PyErr_Occurred()) SWIG_fail;
25571 }
25572 if (obj2) {
25573 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxRect,
25574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25575 }
25576 {
25577 PyThreadState* __tstate = wxPyBeginAllowThreads();
25578 (arg1)->Refresh(arg2,(wxRect const *)arg3);
25579
25580 wxPyEndAllowThreads(__tstate);
25581 if (PyErr_Occurred()) SWIG_fail;
25582 }
25583 Py_INCREF(Py_None); resultobj = Py_None;
25584 return resultobj;
25585 fail:
25586 return NULL;
25587}
25588
25589
25590static PyObject *_wrap_Window_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) {
25591 PyObject *resultobj;
25592 wxWindow *arg1 = (wxWindow *) 0 ;
25593 wxRect *arg2 = 0 ;
25594 wxRect temp2 ;
25595 PyObject * obj0 = 0 ;
25596 PyObject * obj1 = 0 ;
25597 char *kwnames[] = {
25598 (char *) "self",(char *) "rect", NULL
25599 };
25600
25601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RefreshRect",kwnames,&obj0,&obj1)) goto fail;
25602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25604 {
25605 arg2 = &temp2;
25606 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
25607 }
25608 {
25609 PyThreadState* __tstate = wxPyBeginAllowThreads();
25610 (arg1)->RefreshRect((wxRect const &)*arg2);
25611
25612 wxPyEndAllowThreads(__tstate);
25613 if (PyErr_Occurred()) SWIG_fail;
25614 }
25615 Py_INCREF(Py_None); resultobj = Py_None;
25616 return resultobj;
25617 fail:
25618 return NULL;
25619}
25620
25621
25622static PyObject *_wrap_Window_Update(PyObject *self, PyObject *args, PyObject *kwargs) {
25623 PyObject *resultobj;
25624 wxWindow *arg1 = (wxWindow *) 0 ;
25625 PyObject * obj0 = 0 ;
25626 char *kwnames[] = {
25627 (char *) "self", NULL
25628 };
25629
25630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Update",kwnames,&obj0)) goto fail;
25631 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25633 {
25634 PyThreadState* __tstate = wxPyBeginAllowThreads();
25635 (arg1)->Update();
25636
25637 wxPyEndAllowThreads(__tstate);
25638 if (PyErr_Occurred()) SWIG_fail;
25639 }
25640 Py_INCREF(Py_None); resultobj = Py_None;
25641 return resultobj;
25642 fail:
25643 return NULL;
25644}
25645
25646
25647static PyObject *_wrap_Window_ClearBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
25648 PyObject *resultobj;
25649 wxWindow *arg1 = (wxWindow *) 0 ;
25650 PyObject * obj0 = 0 ;
25651 char *kwnames[] = {
25652 (char *) "self", NULL
25653 };
25654
25655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ClearBackground",kwnames,&obj0)) goto fail;
25656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25658 {
25659 PyThreadState* __tstate = wxPyBeginAllowThreads();
25660 (arg1)->ClearBackground();
25661
25662 wxPyEndAllowThreads(__tstate);
25663 if (PyErr_Occurred()) SWIG_fail;
25664 }
25665 Py_INCREF(Py_None); resultobj = Py_None;
25666 return resultobj;
25667 fail:
25668 return NULL;
25669}
25670
25671
25672static PyObject *_wrap_Window_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) {
25673 PyObject *resultobj;
25674 wxWindow *arg1 = (wxWindow *) 0 ;
25675 PyObject * obj0 = 0 ;
25676 char *kwnames[] = {
25677 (char *) "self", NULL
25678 };
25679
25680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Freeze",kwnames,&obj0)) goto fail;
25681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25683 {
25684 PyThreadState* __tstate = wxPyBeginAllowThreads();
25685 (arg1)->Freeze();
25686
25687 wxPyEndAllowThreads(__tstate);
25688 if (PyErr_Occurred()) SWIG_fail;
25689 }
25690 Py_INCREF(Py_None); resultobj = Py_None;
25691 return resultobj;
25692 fail:
25693 return NULL;
25694}
25695
25696
25697static PyObject *_wrap_Window_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) {
25698 PyObject *resultobj;
25699 wxWindow *arg1 = (wxWindow *) 0 ;
25700 PyObject * obj0 = 0 ;
25701 char *kwnames[] = {
25702 (char *) "self", NULL
25703 };
25704
25705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Thaw",kwnames,&obj0)) goto fail;
25706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25708 {
25709 PyThreadState* __tstate = wxPyBeginAllowThreads();
25710 (arg1)->Thaw();
25711
25712 wxPyEndAllowThreads(__tstate);
25713 if (PyErr_Occurred()) SWIG_fail;
25714 }
25715 Py_INCREF(Py_None); resultobj = Py_None;
25716 return resultobj;
25717 fail:
25718 return NULL;
25719}
25720
25721
25722static PyObject *_wrap_Window_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) {
25723 PyObject *resultobj;
25724 wxWindow *arg1 = (wxWindow *) 0 ;
25725 wxDC *arg2 = 0 ;
25726 PyObject * obj0 = 0 ;
25727 PyObject * obj1 = 0 ;
25728 char *kwnames[] = {
25729 (char *) "self",(char *) "dc", NULL
25730 };
25731
25732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) goto fail;
25733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25735 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
25736 SWIG_POINTER_EXCEPTION | 0)) == -1)
25737 SWIG_fail;
25738 if (arg2 == NULL) {
25739 PyErr_SetString(PyExc_TypeError,"null reference");
25740 SWIG_fail;
25741 }
25742 {
25743 PyThreadState* __tstate = wxPyBeginAllowThreads();
25744 (arg1)->PrepareDC(*arg2);
25745
25746 wxPyEndAllowThreads(__tstate);
25747 if (PyErr_Occurred()) SWIG_fail;
25748 }
25749 Py_INCREF(Py_None); resultobj = Py_None;
25750 return resultobj;
25751 fail:
25752 return NULL;
25753}
25754
25755
25756static PyObject *_wrap_Window_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
25757 PyObject *resultobj;
25758 wxWindow *arg1 = (wxWindow *) 0 ;
25759 wxRegion *result;
25760 PyObject * obj0 = 0 ;
25761 char *kwnames[] = {
25762 (char *) "self", NULL
25763 };
25764
25765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateRegion",kwnames,&obj0)) goto fail;
25766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25768 {
25769 PyThreadState* __tstate = wxPyBeginAllowThreads();
25770 {
25771 wxRegion &_result_ref = (arg1)->GetUpdateRegion();
25772 result = (wxRegion *) &_result_ref;
25773 }
25774
25775 wxPyEndAllowThreads(__tstate);
25776 if (PyErr_Occurred()) SWIG_fail;
25777 }
25778 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 0);
25779 return resultobj;
25780 fail:
25781 return NULL;
25782}
25783
25784
25785static PyObject *_wrap_Window_GetUpdateClientRect(PyObject *self, PyObject *args, PyObject *kwargs) {
25786 PyObject *resultobj;
25787 wxWindow *arg1 = (wxWindow *) 0 ;
25788 wxRect result;
25789 PyObject * obj0 = 0 ;
25790 char *kwnames[] = {
25791 (char *) "self", NULL
25792 };
25793
25794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateClientRect",kwnames,&obj0)) goto fail;
25795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25797 {
25798 PyThreadState* __tstate = wxPyBeginAllowThreads();
25799 result = ((wxWindow const *)arg1)->GetUpdateClientRect();
25800
25801 wxPyEndAllowThreads(__tstate);
25802 if (PyErr_Occurred()) SWIG_fail;
25803 }
25804 {
25805 wxRect * resultptr;
25806 resultptr = new wxRect((wxRect &) result);
25807 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
25808 }
25809 return resultobj;
25810 fail:
25811 return NULL;
25812}
25813
25814
25815static PyObject *_wrap_Window_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) {
25816 PyObject *resultobj;
25817 wxWindow *arg1 = (wxWindow *) 0 ;
25818 int arg2 ;
25819 int arg3 ;
25820 int arg4 = (int) 1 ;
25821 int arg5 = (int) 1 ;
25822 bool result;
25823 PyObject * obj0 = 0 ;
25824 PyObject * obj1 = 0 ;
25825 PyObject * obj2 = 0 ;
25826 PyObject * obj3 = 0 ;
25827 PyObject * obj4 = 0 ;
25828 char *kwnames[] = {
25829 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
25830 };
25831
25832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_IsExposed",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
25833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25835 arg2 = (int) SWIG_AsInt(obj1);
25836 if (PyErr_Occurred()) SWIG_fail;
25837 arg3 = (int) SWIG_AsInt(obj2);
25838 if (PyErr_Occurred()) SWIG_fail;
25839 if (obj3) {
25840 arg4 = (int) SWIG_AsInt(obj3);
25841 if (PyErr_Occurred()) SWIG_fail;
25842 }
25843 if (obj4) {
25844 arg5 = (int) SWIG_AsInt(obj4);
25845 if (PyErr_Occurred()) SWIG_fail;
25846 }
25847 {
25848 PyThreadState* __tstate = wxPyBeginAllowThreads();
25849 result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5);
25850
25851 wxPyEndAllowThreads(__tstate);
25852 if (PyErr_Occurred()) SWIG_fail;
25853 }
25854 {
25855 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25856 }
25857 return resultobj;
25858 fail:
25859 return NULL;
25860}
25861
25862
25863static PyObject *_wrap_Window_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
25864 PyObject *resultobj;
25865 wxWindow *arg1 = (wxWindow *) 0 ;
25866 wxPoint *arg2 = 0 ;
25867 bool result;
25868 wxPoint temp2 ;
25869 PyObject * obj0 = 0 ;
25870 PyObject * obj1 = 0 ;
25871 char *kwnames[] = {
25872 (char *) "self",(char *) "pt", NULL
25873 };
25874
25875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) goto fail;
25876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25878 {
25879 arg2 = &temp2;
25880 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
25881 }
25882 {
25883 PyThreadState* __tstate = wxPyBeginAllowThreads();
25884 result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2);
25885
25886 wxPyEndAllowThreads(__tstate);
25887 if (PyErr_Occurred()) SWIG_fail;
25888 }
25889 {
25890 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25891 }
25892 return resultobj;
25893 fail:
25894 return NULL;
25895}
25896
25897
25898static PyObject *_wrap_Window_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) {
25899 PyObject *resultobj;
25900 wxWindow *arg1 = (wxWindow *) 0 ;
25901 wxRect *arg2 = 0 ;
25902 bool result;
25903 wxRect temp2 ;
25904 PyObject * obj0 = 0 ;
25905 PyObject * obj1 = 0 ;
25906 char *kwnames[] = {
25907 (char *) "self",(char *) "rect", NULL
25908 };
25909
25910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedRect",kwnames,&obj0,&obj1)) goto fail;
25911 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25913 {
25914 arg2 = &temp2;
25915 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
25916 }
25917 {
25918 PyThreadState* __tstate = wxPyBeginAllowThreads();
25919 result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2);
25920
25921 wxPyEndAllowThreads(__tstate);
25922 if (PyErr_Occurred()) SWIG_fail;
25923 }
25924 {
25925 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25926 }
25927 return resultobj;
25928 fail:
25929 return NULL;
25930}
25931
25932
25933static PyObject *_wrap_Window_GetDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
25934 PyObject *resultobj;
25935 wxWindow *arg1 = (wxWindow *) 0 ;
25936 wxVisualAttributes result;
25937 PyObject * obj0 = 0 ;
25938 char *kwnames[] = {
25939 (char *) "self", NULL
25940 };
25941
25942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultAttributes",kwnames,&obj0)) goto fail;
25943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25945 {
25946 PyThreadState* __tstate = wxPyBeginAllowThreads();
25947 result = ((wxWindow const *)arg1)->GetDefaultAttributes();
25948
25949 wxPyEndAllowThreads(__tstate);
25950 if (PyErr_Occurred()) SWIG_fail;
25951 }
25952 {
25953 wxVisualAttributes * resultptr;
25954 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
25955 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
25956 }
25957 return resultobj;
25958 fail:
25959 return NULL;
25960}
25961
25962
25963static PyObject *_wrap_Window_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
25964 PyObject *resultobj;
25965 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
25966 wxVisualAttributes result;
25967 PyObject * obj0 = 0 ;
25968 char *kwnames[] = {
25969 (char *) "variant", NULL
25970 };
25971
25972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Window_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
25973 if (obj0) {
25974 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
25975 if (PyErr_Occurred()) SWIG_fail;
25976 }
25977 {
0439c23b 25978 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
25979 PyThreadState* __tstate = wxPyBeginAllowThreads();
25980 result = wxWindow::GetClassDefaultAttributes((wxWindowVariant )arg1);
25981
25982 wxPyEndAllowThreads(__tstate);
0439c23b 25983 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
25984 }
25985 {
25986 wxVisualAttributes * resultptr;
25987 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
25988 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
25989 }
25990 return resultobj;
25991 fail:
25992 return NULL;
25993}
25994
25995
25996static PyObject *_wrap_Window_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
25997 PyObject *resultobj;
25998 wxWindow *arg1 = (wxWindow *) 0 ;
25999 wxColour *arg2 = 0 ;
26000 bool result;
26001 wxColour temp2 ;
26002 PyObject * obj0 = 0 ;
26003 PyObject * obj1 = 0 ;
26004 char *kwnames[] = {
26005 (char *) "self",(char *) "colour", NULL
26006 };
26007
26008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
26009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26011 {
26012 arg2 = &temp2;
26013 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26014 }
26015 {
26016 PyThreadState* __tstate = wxPyBeginAllowThreads();
26017 result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2);
26018
26019 wxPyEndAllowThreads(__tstate);
26020 if (PyErr_Occurred()) SWIG_fail;
26021 }
26022 {
26023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26024 }
26025 return resultobj;
26026 fail:
26027 return NULL;
26028}
26029
26030
26031static PyObject *_wrap_Window_SetDefaultBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
26032 PyObject *resultobj;
26033 wxWindow *arg1 = (wxWindow *) 0 ;
26034 wxColour *arg2 = 0 ;
26035 wxColour temp2 ;
26036 PyObject * obj0 = 0 ;
26037 PyObject * obj1 = 0 ;
26038 char *kwnames[] = {
26039 (char *) "self",(char *) "colour", NULL
26040 };
26041
26042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
26043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26045 {
26046 arg2 = &temp2;
26047 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26048 }
26049 {
26050 PyThreadState* __tstate = wxPyBeginAllowThreads();
26051 (arg1)->SetDefaultBackgroundColour((wxColour const &)*arg2);
26052
26053 wxPyEndAllowThreads(__tstate);
26054 if (PyErr_Occurred()) SWIG_fail;
26055 }
26056 Py_INCREF(Py_None); resultobj = Py_None;
26057 return resultobj;
26058 fail:
26059 return NULL;
26060}
26061
26062
26063static PyObject *_wrap_Window_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
26064 PyObject *resultobj;
26065 wxWindow *arg1 = (wxWindow *) 0 ;
26066 wxColour *arg2 = 0 ;
26067 bool result;
26068 wxColour temp2 ;
26069 PyObject * obj0 = 0 ;
26070 PyObject * obj1 = 0 ;
26071 char *kwnames[] = {
26072 (char *) "self",(char *) "colour", NULL
26073 };
26074
26075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail;
26076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26078 {
26079 arg2 = &temp2;
26080 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26081 }
26082 {
26083 PyThreadState* __tstate = wxPyBeginAllowThreads();
26084 result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2);
26085
26086 wxPyEndAllowThreads(__tstate);
26087 if (PyErr_Occurred()) SWIG_fail;
26088 }
26089 {
26090 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26091 }
26092 return resultobj;
26093 fail:
26094 return NULL;
26095}
26096
26097
26098static PyObject *_wrap_Window_SetDefaultForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
26099 PyObject *resultobj;
26100 wxWindow *arg1 = (wxWindow *) 0 ;
26101 wxColour *arg2 = 0 ;
26102 wxColour temp2 ;
26103 PyObject * obj0 = 0 ;
26104 PyObject * obj1 = 0 ;
26105 char *kwnames[] = {
26106 (char *) "self",(char *) "colour", NULL
26107 };
26108
26109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultForegroundColour",kwnames,&obj0,&obj1)) goto fail;
26110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26112 {
26113 arg2 = &temp2;
26114 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26115 }
26116 {
26117 PyThreadState* __tstate = wxPyBeginAllowThreads();
26118 (arg1)->SetDefaultForegroundColour((wxColour const &)*arg2);
26119
26120 wxPyEndAllowThreads(__tstate);
26121 if (PyErr_Occurred()) SWIG_fail;
26122 }
26123 Py_INCREF(Py_None); resultobj = Py_None;
26124 return resultobj;
26125 fail:
26126 return NULL;
26127}
26128
26129
26130static PyObject *_wrap_Window_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
26131 PyObject *resultobj;
26132 wxWindow *arg1 = (wxWindow *) 0 ;
26133 wxColour result;
26134 PyObject * obj0 = 0 ;
26135 char *kwnames[] = {
26136 (char *) "self", NULL
26137 };
26138
26139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundColour",kwnames,&obj0)) goto fail;
26140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26142 {
26143 PyThreadState* __tstate = wxPyBeginAllowThreads();
26144 result = ((wxWindow const *)arg1)->GetBackgroundColour();
26145
26146 wxPyEndAllowThreads(__tstate);
26147 if (PyErr_Occurred()) SWIG_fail;
26148 }
26149 {
26150 wxColour * resultptr;
26151 resultptr = new wxColour((wxColour &) result);
26152 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
26153 }
26154 return resultobj;
26155 fail:
26156 return NULL;
26157}
26158
26159
26160static PyObject *_wrap_Window_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
26161 PyObject *resultobj;
26162 wxWindow *arg1 = (wxWindow *) 0 ;
26163 wxColour result;
26164 PyObject * obj0 = 0 ;
26165 char *kwnames[] = {
26166 (char *) "self", NULL
26167 };
26168
26169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetForegroundColour",kwnames,&obj0)) goto fail;
26170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26172 {
26173 PyThreadState* __tstate = wxPyBeginAllowThreads();
26174 result = ((wxWindow const *)arg1)->GetForegroundColour();
26175
26176 wxPyEndAllowThreads(__tstate);
26177 if (PyErr_Occurred()) SWIG_fail;
26178 }
26179 {
26180 wxColour * resultptr;
26181 resultptr = new wxColour((wxColour &) result);
26182 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
26183 }
26184 return resultobj;
26185 fail:
26186 return NULL;
26187}
26188
26189
26190static PyObject *_wrap_Window_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
26191 PyObject *resultobj;
26192 wxWindow *arg1 = (wxWindow *) 0 ;
26193 wxCursor *arg2 = 0 ;
26194 bool result;
26195 PyObject * obj0 = 0 ;
26196 PyObject * obj1 = 0 ;
26197 char *kwnames[] = {
26198 (char *) "self",(char *) "cursor", NULL
26199 };
26200
26201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) goto fail;
26202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26204 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
26205 SWIG_POINTER_EXCEPTION | 0)) == -1)
26206 SWIG_fail;
26207 if (arg2 == NULL) {
26208 PyErr_SetString(PyExc_TypeError,"null reference");
26209 SWIG_fail;
26210 }
26211 {
26212 PyThreadState* __tstate = wxPyBeginAllowThreads();
26213 result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2);
26214
26215 wxPyEndAllowThreads(__tstate);
26216 if (PyErr_Occurred()) SWIG_fail;
26217 }
26218 {
26219 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26220 }
26221 return resultobj;
26222 fail:
26223 return NULL;
26224}
26225
26226
26227static PyObject *_wrap_Window_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
26228 PyObject *resultobj;
26229 wxWindow *arg1 = (wxWindow *) 0 ;
26230 wxCursor *result;
26231 PyObject * obj0 = 0 ;
26232 char *kwnames[] = {
26233 (char *) "self", NULL
26234 };
26235
26236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCursor",kwnames,&obj0)) goto fail;
26237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26239 {
26240 PyThreadState* __tstate = wxPyBeginAllowThreads();
26241 {
26242 wxCursor &_result_ref = (arg1)->GetCursor();
26243 result = (wxCursor *) &_result_ref;
26244 }
26245
26246 wxPyEndAllowThreads(__tstate);
26247 if (PyErr_Occurred()) SWIG_fail;
26248 }
26249 {
26250 wxCursor* resultptr = new wxCursor(*result);
26251 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1);
26252 }
26253 return resultobj;
26254 fail:
26255 return NULL;
26256}
26257
26258
26259static PyObject *_wrap_Window_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
26260 PyObject *resultobj;
26261 wxWindow *arg1 = (wxWindow *) 0 ;
26262 wxFont *arg2 = 0 ;
26263 bool result;
26264 PyObject * obj0 = 0 ;
26265 PyObject * obj1 = 0 ;
26266 char *kwnames[] = {
26267 (char *) "self",(char *) "font", NULL
26268 };
26269
26270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) goto fail;
26271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26273 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
26274 SWIG_POINTER_EXCEPTION | 0)) == -1)
26275 SWIG_fail;
26276 if (arg2 == NULL) {
26277 PyErr_SetString(PyExc_TypeError,"null reference");
26278 SWIG_fail;
26279 }
26280 {
26281 PyThreadState* __tstate = wxPyBeginAllowThreads();
26282 result = (bool)(arg1)->SetFont((wxFont const &)*arg2);
26283
26284 wxPyEndAllowThreads(__tstate);
26285 if (PyErr_Occurred()) SWIG_fail;
26286 }
26287 {
26288 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26289 }
26290 return resultobj;
26291 fail:
26292 return NULL;
26293}
26294
26295
26296static PyObject *_wrap_Window_SetDefaultFont(PyObject *self, PyObject *args, PyObject *kwargs) {
26297 PyObject *resultobj;
26298 wxWindow *arg1 = (wxWindow *) 0 ;
26299 wxFont *arg2 = 0 ;
26300 PyObject * obj0 = 0 ;
26301 PyObject * obj1 = 0 ;
26302 char *kwnames[] = {
26303 (char *) "self",(char *) "font", NULL
26304 };
26305
26306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultFont",kwnames,&obj0,&obj1)) goto fail;
26307 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26309 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
26310 SWIG_POINTER_EXCEPTION | 0)) == -1)
26311 SWIG_fail;
26312 if (arg2 == NULL) {
26313 PyErr_SetString(PyExc_TypeError,"null reference");
26314 SWIG_fail;
26315 }
26316 {
26317 PyThreadState* __tstate = wxPyBeginAllowThreads();
26318 (arg1)->SetDefaultFont((wxFont const &)*arg2);
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_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
26331 PyObject *resultobj;
26332 wxWindow *arg1 = (wxWindow *) 0 ;
26333 wxFont *result;
26334 PyObject * obj0 = 0 ;
26335 char *kwnames[] = {
26336 (char *) "self", NULL
26337 };
26338
26339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetFont",kwnames,&obj0)) goto fail;
26340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26342 {
26343 PyThreadState* __tstate = wxPyBeginAllowThreads();
26344 {
26345 wxFont &_result_ref = (arg1)->GetFont();
26346 result = (wxFont *) &_result_ref;
26347 }
26348
26349 wxPyEndAllowThreads(__tstate);
26350 if (PyErr_Occurred()) SWIG_fail;
26351 }
26352 {
26353 wxFont* resultptr = new wxFont(*result);
26354 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
26355 }
26356 return resultobj;
26357 fail:
26358 return NULL;
26359}
26360
26361
26362static PyObject *_wrap_Window_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) {
26363 PyObject *resultobj;
26364 wxWindow *arg1 = (wxWindow *) 0 ;
26365 wxCaret *arg2 = (wxCaret *) 0 ;
26366 PyObject * obj0 = 0 ;
26367 PyObject * obj1 = 0 ;
26368 char *kwnames[] = {
26369 (char *) "self",(char *) "caret", NULL
26370 };
26371
26372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",kwnames,&obj0,&obj1)) goto fail;
26373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26375 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCaret,
26376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26377 {
26378 PyThreadState* __tstate = wxPyBeginAllowThreads();
26379 (arg1)->SetCaret(arg2);
26380
26381 wxPyEndAllowThreads(__tstate);
26382 if (PyErr_Occurred()) SWIG_fail;
26383 }
26384 Py_INCREF(Py_None); resultobj = Py_None;
26385 return resultobj;
26386 fail:
26387 return NULL;
26388}
26389
26390
26391static PyObject *_wrap_Window_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) {
26392 PyObject *resultobj;
26393 wxWindow *arg1 = (wxWindow *) 0 ;
26394 wxCaret *result;
26395 PyObject * obj0 = 0 ;
26396 char *kwnames[] = {
26397 (char *) "self", NULL
26398 };
26399
26400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCaret",kwnames,&obj0)) goto fail;
26401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26403 {
26404 PyThreadState* __tstate = wxPyBeginAllowThreads();
26405 result = (wxCaret *)((wxWindow const *)arg1)->GetCaret();
26406
26407 wxPyEndAllowThreads(__tstate);
26408 if (PyErr_Occurred()) SWIG_fail;
26409 }
26410 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 0);
26411 return resultobj;
26412 fail:
26413 return NULL;
26414}
26415
26416
26417static PyObject *_wrap_Window_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
26418 PyObject *resultobj;
26419 wxWindow *arg1 = (wxWindow *) 0 ;
26420 int result;
26421 PyObject * obj0 = 0 ;
26422 char *kwnames[] = {
26423 (char *) "self", NULL
26424 };
26425
26426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharHeight",kwnames,&obj0)) goto fail;
26427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26429 {
26430 PyThreadState* __tstate = wxPyBeginAllowThreads();
26431 result = (int)((wxWindow const *)arg1)->GetCharHeight();
26432
26433 wxPyEndAllowThreads(__tstate);
26434 if (PyErr_Occurred()) SWIG_fail;
26435 }
26436 resultobj = SWIG_FromInt((int)result);
26437 return resultobj;
26438 fail:
26439 return NULL;
26440}
26441
26442
26443static PyObject *_wrap_Window_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
26444 PyObject *resultobj;
26445 wxWindow *arg1 = (wxWindow *) 0 ;
26446 int result;
26447 PyObject * obj0 = 0 ;
26448 char *kwnames[] = {
26449 (char *) "self", NULL
26450 };
26451
26452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharWidth",kwnames,&obj0)) goto fail;
26453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26455 {
26456 PyThreadState* __tstate = wxPyBeginAllowThreads();
26457 result = (int)((wxWindow const *)arg1)->GetCharWidth();
26458
26459 wxPyEndAllowThreads(__tstate);
26460 if (PyErr_Occurred()) SWIG_fail;
26461 }
26462 resultobj = SWIG_FromInt((int)result);
26463 return resultobj;
26464 fail:
26465 return NULL;
26466}
26467
26468
26469static PyObject *_wrap_Window_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
26470 PyObject *resultobj;
26471 wxWindow *arg1 = (wxWindow *) 0 ;
26472 wxString *arg2 = 0 ;
26473 int *arg3 = (int *) 0 ;
26474 int *arg4 = (int *) 0 ;
26475 bool temp2 = False ;
26476 int temp3 ;
26477 int temp4 ;
26478 PyObject * obj0 = 0 ;
26479 PyObject * obj1 = 0 ;
26480 char *kwnames[] = {
26481 (char *) "self",(char *) "string", NULL
26482 };
26483
26484 arg3 = &temp3;
26485 arg4 = &temp4;
26486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
26487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26489 {
26490 arg2 = wxString_in_helper(obj1);
26491 if (arg2 == NULL) SWIG_fail;
26492 temp2 = True;
26493 }
26494 {
26495 PyThreadState* __tstate = wxPyBeginAllowThreads();
26496 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
26497
26498 wxPyEndAllowThreads(__tstate);
26499 if (PyErr_Occurred()) SWIG_fail;
26500 }
26501 Py_INCREF(Py_None); resultobj = Py_None;
26502 {
26503 PyObject *o = PyInt_FromLong((long) (*arg3));
26504 resultobj = t_output_helper(resultobj,o);
26505 }
26506 {
26507 PyObject *o = PyInt_FromLong((long) (*arg4));
26508 resultobj = t_output_helper(resultobj,o);
26509 }
26510 {
26511 if (temp2)
26512 delete arg2;
26513 }
26514 return resultobj;
26515 fail:
26516 {
26517 if (temp2)
26518 delete arg2;
26519 }
26520 return NULL;
26521}
26522
26523
26524static PyObject *_wrap_Window_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
26525 PyObject *resultobj;
26526 wxWindow *arg1 = (wxWindow *) 0 ;
26527 wxString *arg2 = 0 ;
26528 int *arg3 = (int *) 0 ;
26529 int *arg4 = (int *) 0 ;
26530 int *arg5 = (int *) 0 ;
26531 int *arg6 = (int *) 0 ;
26532 wxFont *arg7 = (wxFont *) NULL ;
26533 bool temp2 = False ;
26534 int temp3 ;
26535 int temp4 ;
26536 int temp5 ;
26537 int temp6 ;
26538 PyObject * obj0 = 0 ;
26539 PyObject * obj1 = 0 ;
26540 PyObject * obj2 = 0 ;
26541 char *kwnames[] = {
26542 (char *) "self",(char *) "string",(char *) "font", NULL
26543 };
26544
26545 arg3 = &temp3;
26546 arg4 = &temp4;
26547 arg5 = &temp5;
26548 arg6 = &temp6;
26549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
26550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26552 {
26553 arg2 = wxString_in_helper(obj1);
26554 if (arg2 == NULL) SWIG_fail;
26555 temp2 = True;
26556 }
26557 if (obj2) {
26558 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
26559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26560 }
26561 {
26562 PyThreadState* __tstate = wxPyBeginAllowThreads();
26563 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7);
26564
26565 wxPyEndAllowThreads(__tstate);
26566 if (PyErr_Occurred()) SWIG_fail;
26567 }
26568 Py_INCREF(Py_None); resultobj = Py_None;
26569 {
26570 PyObject *o = PyInt_FromLong((long) (*arg3));
26571 resultobj = t_output_helper(resultobj,o);
26572 }
26573 {
26574 PyObject *o = PyInt_FromLong((long) (*arg4));
26575 resultobj = t_output_helper(resultobj,o);
26576 }
26577 {
26578 PyObject *o = PyInt_FromLong((long) (*arg5));
26579 resultobj = t_output_helper(resultobj,o);
26580 }
26581 {
26582 PyObject *o = PyInt_FromLong((long) (*arg6));
26583 resultobj = t_output_helper(resultobj,o);
26584 }
26585 {
26586 if (temp2)
26587 delete arg2;
26588 }
26589 return resultobj;
26590 fail:
26591 {
26592 if (temp2)
26593 delete arg2;
26594 }
26595 return NULL;
26596}
26597
26598
26599static PyObject *_wrap_Window_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) {
26600 PyObject *resultobj;
26601 wxWindow *arg1 = (wxWindow *) 0 ;
26602 int *arg2 = (int *) 0 ;
26603 int *arg3 = (int *) 0 ;
26604 int temp2 ;
26605 int temp3 ;
26606 PyObject * obj0 = 0 ;
26607 PyObject * obj1 = 0 ;
26608 PyObject * obj2 = 0 ;
26609 char *kwnames[] = {
26610 (char *) "self",(char *) "x",(char *) "y", NULL
26611 };
26612
26613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
26614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26616 {
26617 temp2 = PyInt_AsLong(obj1);
26618 if (PyErr_Occurred()) SWIG_fail;
26619 arg2 = &temp2;
26620 }
26621 {
26622 temp3 = PyInt_AsLong(obj2);
26623 if (PyErr_Occurred()) SWIG_fail;
26624 arg3 = &temp3;
26625 }
26626 {
26627 PyThreadState* __tstate = wxPyBeginAllowThreads();
26628 ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3);
26629
26630 wxPyEndAllowThreads(__tstate);
26631 if (PyErr_Occurred()) SWIG_fail;
26632 }
26633 Py_INCREF(Py_None); resultobj = Py_None;
26634 {
26635 PyObject *o = PyInt_FromLong((long) (*arg2));
26636 resultobj = t_output_helper(resultobj,o);
26637 }
26638 {
26639 PyObject *o = PyInt_FromLong((long) (*arg3));
26640 resultobj = t_output_helper(resultobj,o);
26641 }
26642 return resultobj;
26643 fail:
26644 return NULL;
26645}
26646
26647
26648static PyObject *_wrap_Window_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) {
26649 PyObject *resultobj;
26650 wxWindow *arg1 = (wxWindow *) 0 ;
26651 int *arg2 = (int *) 0 ;
26652 int *arg3 = (int *) 0 ;
26653 int temp2 ;
26654 int temp3 ;
26655 PyObject * obj0 = 0 ;
26656 PyObject * obj1 = 0 ;
26657 PyObject * obj2 = 0 ;
26658 char *kwnames[] = {
26659 (char *) "self",(char *) "x",(char *) "y", NULL
26660 };
26661
26662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
26663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26665 {
26666 temp2 = PyInt_AsLong(obj1);
26667 if (PyErr_Occurred()) SWIG_fail;
26668 arg2 = &temp2;
26669 }
26670 {
26671 temp3 = PyInt_AsLong(obj2);
26672 if (PyErr_Occurred()) SWIG_fail;
26673 arg3 = &temp3;
26674 }
26675 {
26676 PyThreadState* __tstate = wxPyBeginAllowThreads();
26677 ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3);
26678
26679 wxPyEndAllowThreads(__tstate);
26680 if (PyErr_Occurred()) SWIG_fail;
26681 }
26682 Py_INCREF(Py_None); resultobj = Py_None;
26683 {
26684 PyObject *o = PyInt_FromLong((long) (*arg2));
26685 resultobj = t_output_helper(resultobj,o);
26686 }
26687 {
26688 PyObject *o = PyInt_FromLong((long) (*arg3));
26689 resultobj = t_output_helper(resultobj,o);
26690 }
26691 return resultobj;
26692 fail:
26693 return NULL;
26694}
26695
26696
26697static PyObject *_wrap_Window_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) {
26698 PyObject *resultobj;
26699 wxWindow *arg1 = (wxWindow *) 0 ;
26700 wxPoint *arg2 = 0 ;
26701 wxPoint result;
26702 wxPoint temp2 ;
26703 PyObject * obj0 = 0 ;
26704 PyObject * obj1 = 0 ;
26705 char *kwnames[] = {
26706 (char *) "self",(char *) "pt", NULL
26707 };
26708
26709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) goto fail;
26710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26712 {
26713 arg2 = &temp2;
26714 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26715 }
26716 {
26717 PyThreadState* __tstate = wxPyBeginAllowThreads();
26718 result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2);
26719
26720 wxPyEndAllowThreads(__tstate);
26721 if (PyErr_Occurred()) SWIG_fail;
26722 }
26723 {
26724 wxPoint * resultptr;
26725 resultptr = new wxPoint((wxPoint &) result);
26726 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
26727 }
26728 return resultobj;
26729 fail:
26730 return NULL;
26731}
26732
26733
26734static PyObject *_wrap_Window_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) {
26735 PyObject *resultobj;
26736 wxWindow *arg1 = (wxWindow *) 0 ;
26737 wxPoint *arg2 = 0 ;
26738 wxPoint result;
26739 wxPoint temp2 ;
26740 PyObject * obj0 = 0 ;
26741 PyObject * obj1 = 0 ;
26742 char *kwnames[] = {
26743 (char *) "self",(char *) "pt", NULL
26744 };
26745
26746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) goto fail;
26747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26749 {
26750 arg2 = &temp2;
26751 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26752 }
26753 {
26754 PyThreadState* __tstate = wxPyBeginAllowThreads();
26755 result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2);
26756
26757 wxPyEndAllowThreads(__tstate);
26758 if (PyErr_Occurred()) SWIG_fail;
26759 }
26760 {
26761 wxPoint * resultptr;
26762 resultptr = new wxPoint((wxPoint &) result);
26763 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
26764 }
26765 return resultobj;
26766 fail:
26767 return NULL;
26768}
26769
26770
26771static PyObject *_wrap_Window_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) {
26772 PyObject *resultobj;
26773 wxWindow *arg1 = (wxWindow *) 0 ;
26774 int arg2 ;
26775 int arg3 ;
26776 int result;
26777 PyObject * obj0 = 0 ;
26778 PyObject * obj1 = 0 ;
26779 PyObject * obj2 = 0 ;
26780 char *kwnames[] = {
26781 (char *) "self",(char *) "x",(char *) "y", NULL
26782 };
26783
26784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
26785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26787 arg2 = (int) SWIG_AsInt(obj1);
26788 if (PyErr_Occurred()) SWIG_fail;
26789 arg3 = (int) SWIG_AsInt(obj2);
26790 if (PyErr_Occurred()) SWIG_fail;
26791 {
26792 PyThreadState* __tstate = wxPyBeginAllowThreads();
26793 result = (int)((wxWindow const *)arg1)->HitTest(arg2,arg3);
26794
26795 wxPyEndAllowThreads(__tstate);
26796 if (PyErr_Occurred()) SWIG_fail;
26797 }
26798 resultobj = SWIG_FromInt((int)result);
26799 return resultobj;
26800 fail:
26801 return NULL;
26802}
26803
26804
26805static PyObject *_wrap_Window_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
26806 PyObject *resultobj;
26807 wxWindow *arg1 = (wxWindow *) 0 ;
26808 wxPoint *arg2 = 0 ;
26809 int result;
26810 wxPoint temp2 ;
26811 PyObject * obj0 = 0 ;
26812 PyObject * obj1 = 0 ;
26813 char *kwnames[] = {
26814 (char *) "self",(char *) "pt", NULL
26815 };
26816
26817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) goto fail;
26818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26820 {
26821 arg2 = &temp2;
26822 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26823 }
26824 {
26825 PyThreadState* __tstate = wxPyBeginAllowThreads();
26826 result = (int)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2);
26827
26828 wxPyEndAllowThreads(__tstate);
26829 if (PyErr_Occurred()) SWIG_fail;
26830 }
26831 resultobj = SWIG_FromInt((int)result);
26832 return resultobj;
26833 fail:
26834 return NULL;
26835}
26836
26837
26838static PyObject *_wrap_Window_GetBorder__SWIG_0(PyObject *self, PyObject *args) {
26839 PyObject *resultobj;
26840 wxWindow *arg1 = (wxWindow *) 0 ;
26841 long arg2 ;
26842 int result;
26843 PyObject * obj0 = 0 ;
26844 PyObject * obj1 = 0 ;
26845
26846 if(!PyArg_ParseTuple(args,(char *)"OO:Window_GetBorder",&obj0,&obj1)) goto fail;
26847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26849 arg2 = (long) SWIG_AsLong(obj1);
26850 if (PyErr_Occurred()) SWIG_fail;
26851 {
26852 PyThreadState* __tstate = wxPyBeginAllowThreads();
26853 result = (int)((wxWindow const *)arg1)->GetBorder(arg2);
26854
26855 wxPyEndAllowThreads(__tstate);
26856 if (PyErr_Occurred()) SWIG_fail;
26857 }
26858 resultobj = SWIG_FromInt((int)result);
26859 return resultobj;
26860 fail:
26861 return NULL;
26862}
26863
26864
26865static PyObject *_wrap_Window_GetBorder__SWIG_1(PyObject *self, PyObject *args) {
26866 PyObject *resultobj;
26867 wxWindow *arg1 = (wxWindow *) 0 ;
26868 int result;
26869 PyObject * obj0 = 0 ;
26870
26871 if(!PyArg_ParseTuple(args,(char *)"O:Window_GetBorder",&obj0)) goto fail;
26872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26874 {
26875 PyThreadState* __tstate = wxPyBeginAllowThreads();
26876 result = (int)((wxWindow const *)arg1)->GetBorder();
26877
26878 wxPyEndAllowThreads(__tstate);
26879 if (PyErr_Occurred()) SWIG_fail;
26880 }
26881 resultobj = SWIG_FromInt((int)result);
26882 return resultobj;
26883 fail:
26884 return NULL;
26885}
26886
26887
26888static PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args) {
26889 int argc;
26890 PyObject *argv[3];
26891 int ii;
26892
26893 argc = PyObject_Length(args);
26894 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
26895 argv[ii] = PyTuple_GetItem(args,ii);
26896 }
26897 if (argc == 1) {
26898 int _v;
26899 {
26900 void *ptr;
26901 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
26902 _v = 0;
26903 PyErr_Clear();
26904 } else {
26905 _v = 1;
26906 }
26907 }
26908 if (_v) {
26909 return _wrap_Window_GetBorder__SWIG_1(self,args);
26910 }
26911 }
26912 if (argc == 2) {
26913 int _v;
26914 {
26915 void *ptr;
26916 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
26917 _v = 0;
26918 PyErr_Clear();
26919 } else {
26920 _v = 1;
26921 }
26922 }
26923 if (_v) {
26924 _v = SWIG_CheckLong(argv[1]);
26925 if (_v) {
26926 return _wrap_Window_GetBorder__SWIG_0(self,args);
26927 }
26928 }
26929 }
26930
26931 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_GetBorder'");
26932 return NULL;
26933}
26934
26935
26936static PyObject *_wrap_Window_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) {
26937 PyObject *resultobj;
26938 wxWindow *arg1 = (wxWindow *) 0 ;
26939 long arg2 = (long) wxUPDATE_UI_NONE ;
26940 PyObject * obj0 = 0 ;
26941 PyObject * obj1 = 0 ;
26942 char *kwnames[] = {
26943 (char *) "self",(char *) "flags", NULL
26944 };
26945
26946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_UpdateWindowUI",kwnames,&obj0,&obj1)) goto fail;
26947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26949 if (obj1) {
26950 arg2 = (long) SWIG_AsLong(obj1);
26951 if (PyErr_Occurred()) SWIG_fail;
26952 }
26953 {
26954 PyThreadState* __tstate = wxPyBeginAllowThreads();
26955 (arg1)->UpdateWindowUI(arg2);
26956
26957 wxPyEndAllowThreads(__tstate);
26958 if (PyErr_Occurred()) SWIG_fail;
26959 }
26960 Py_INCREF(Py_None); resultobj = Py_None;
26961 return resultobj;
26962 fail:
26963 return NULL;
26964}
26965
26966
26967static PyObject *_wrap_Window_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) {
26968 PyObject *resultobj;
26969 wxWindow *arg1 = (wxWindow *) 0 ;
26970 wxMenu *arg2 = (wxMenu *) 0 ;
7a0b95b0
RD
26971 int arg3 = (int) -1 ;
26972 int arg4 = (int) -1 ;
d55e5bfc
RD
26973 bool result;
26974 PyObject * obj0 = 0 ;
26975 PyObject * obj1 = 0 ;
26976 PyObject * obj2 = 0 ;
26977 PyObject * obj3 = 0 ;
26978 char *kwnames[] = {
26979 (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL
26980 };
26981
7a0b95b0 26982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Window_PopupMenuXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
26983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26985 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
26986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7a0b95b0
RD
26987 if (obj2) {
26988 arg3 = (int) SWIG_AsInt(obj2);
26989 if (PyErr_Occurred()) SWIG_fail;
26990 }
26991 if (obj3) {
26992 arg4 = (int) SWIG_AsInt(obj3);
26993 if (PyErr_Occurred()) SWIG_fail;
26994 }
d55e5bfc
RD
26995 {
26996 PyThreadState* __tstate = wxPyBeginAllowThreads();
26997 result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4);
26998
26999 wxPyEndAllowThreads(__tstate);
27000 if (PyErr_Occurred()) SWIG_fail;
27001 }
27002 {
27003 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27004 }
27005 return resultobj;
27006 fail:
27007 return NULL;
27008}
27009
27010
27011static PyObject *_wrap_Window_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
27012 PyObject *resultobj;
27013 wxWindow *arg1 = (wxWindow *) 0 ;
27014 wxMenu *arg2 = (wxMenu *) 0 ;
7a0b95b0
RD
27015 wxPoint const &arg3_defvalue = wxDefaultPosition ;
27016 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
d55e5bfc
RD
27017 bool result;
27018 wxPoint temp3 ;
27019 PyObject * obj0 = 0 ;
27020 PyObject * obj1 = 0 ;
27021 PyObject * obj2 = 0 ;
27022 char *kwnames[] = {
27023 (char *) "self",(char *) "menu",(char *) "pos", NULL
27024 };
27025
7a0b95b0 27026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
27027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27029 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
27030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7a0b95b0
RD
27031 if (obj2) {
27032 {
27033 arg3 = &temp3;
27034 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
27035 }
d55e5bfc
RD
27036 }
27037 {
27038 PyThreadState* __tstate = wxPyBeginAllowThreads();
27039 result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3);
27040
27041 wxPyEndAllowThreads(__tstate);
27042 if (PyErr_Occurred()) SWIG_fail;
27043 }
27044 {
27045 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27046 }
27047 return resultobj;
27048 fail:
27049 return NULL;
27050}
27051
27052
27053static PyObject *_wrap_Window_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
27054 PyObject *resultobj;
27055 wxWindow *arg1 = (wxWindow *) 0 ;
27056 long result;
27057 PyObject * obj0 = 0 ;
27058 char *kwnames[] = {
27059 (char *) "self", NULL
27060 };
27061
27062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHandle",kwnames,&obj0)) goto fail;
27063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27065 {
27066 PyThreadState* __tstate = wxPyBeginAllowThreads();
27067 result = (long)wxWindow_GetHandle(arg1);
27068
27069 wxPyEndAllowThreads(__tstate);
27070 if (PyErr_Occurred()) SWIG_fail;
27071 }
27072 resultobj = SWIG_FromLong((long)result);
27073 return resultobj;
27074 fail:
27075 return NULL;
27076}
27077
27078
27079static PyObject *_wrap_Window_OnPaint(PyObject *self, PyObject *args, PyObject *kwargs) {
27080 PyObject *resultobj;
27081 wxWindow *arg1 = (wxWindow *) 0 ;
27082 wxPaintEvent *arg2 = 0 ;
27083 PyObject * obj0 = 0 ;
27084 PyObject * obj1 = 0 ;
27085 char *kwnames[] = {
27086 (char *) "self",(char *) "event", NULL
27087 };
27088
27089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_OnPaint",kwnames,&obj0,&obj1)) goto fail;
27090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27092 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPaintEvent,
27093 SWIG_POINTER_EXCEPTION | 0)) == -1)
27094 SWIG_fail;
27095 if (arg2 == NULL) {
27096 PyErr_SetString(PyExc_TypeError,"null reference");
27097 SWIG_fail;
27098 }
27099 {
27100 PyThreadState* __tstate = wxPyBeginAllowThreads();
27101 (arg1)->OnPaint(*arg2);
27102
27103 wxPyEndAllowThreads(__tstate);
27104 if (PyErr_Occurred()) SWIG_fail;
27105 }
27106 Py_INCREF(Py_None); resultobj = Py_None;
27107 return resultobj;
27108 fail:
27109 return NULL;
27110}
27111
27112
27113static PyObject *_wrap_Window_HasScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) {
27114 PyObject *resultobj;
27115 wxWindow *arg1 = (wxWindow *) 0 ;
27116 int arg2 ;
27117 bool result;
27118 PyObject * obj0 = 0 ;
27119 PyObject * obj1 = 0 ;
27120 char *kwnames[] = {
27121 (char *) "self",(char *) "orient", NULL
27122 };
27123
27124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasScrollbar",kwnames,&obj0,&obj1)) goto fail;
27125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27127 arg2 = (int) SWIG_AsInt(obj1);
27128 if (PyErr_Occurred()) SWIG_fail;
27129 {
27130 PyThreadState* __tstate = wxPyBeginAllowThreads();
27131 result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2);
27132
27133 wxPyEndAllowThreads(__tstate);
27134 if (PyErr_Occurred()) SWIG_fail;
27135 }
27136 {
27137 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27138 }
27139 return resultobj;
27140 fail:
27141 return NULL;
27142}
27143
27144
27145static PyObject *_wrap_Window_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) {
27146 PyObject *resultobj;
27147 wxWindow *arg1 = (wxWindow *) 0 ;
27148 int arg2 ;
27149 int arg3 ;
27150 int arg4 ;
27151 int arg5 ;
27152 bool arg6 = (bool) True ;
27153 PyObject * obj0 = 0 ;
27154 PyObject * obj1 = 0 ;
27155 PyObject * obj2 = 0 ;
27156 PyObject * obj3 = 0 ;
27157 PyObject * obj4 = 0 ;
27158 PyObject * obj5 = 0 ;
27159 char *kwnames[] = {
79fccf9d 27160 (char *) "self",(char *) "orientation",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "refresh", NULL
d55e5bfc
RD
27161 };
27162
27163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
27164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27166 arg2 = (int) SWIG_AsInt(obj1);
27167 if (PyErr_Occurred()) SWIG_fail;
27168 arg3 = (int) SWIG_AsInt(obj2);
27169 if (PyErr_Occurred()) SWIG_fail;
27170 arg4 = (int) SWIG_AsInt(obj3);
27171 if (PyErr_Occurred()) SWIG_fail;
27172 arg5 = (int) SWIG_AsInt(obj4);
27173 if (PyErr_Occurred()) SWIG_fail;
27174 if (obj5) {
27175 arg6 = (bool) SWIG_AsBool(obj5);
27176 if (PyErr_Occurred()) SWIG_fail;
27177 }
27178 {
27179 PyThreadState* __tstate = wxPyBeginAllowThreads();
27180 (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6);
27181
27182 wxPyEndAllowThreads(__tstate);
27183 if (PyErr_Occurred()) SWIG_fail;
27184 }
27185 Py_INCREF(Py_None); resultobj = Py_None;
27186 return resultobj;
27187 fail:
27188 return NULL;
27189}
27190
27191
27192static PyObject *_wrap_Window_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) {
27193 PyObject *resultobj;
27194 wxWindow *arg1 = (wxWindow *) 0 ;
27195 int arg2 ;
27196 int arg3 ;
27197 bool arg4 = (bool) True ;
27198 PyObject * obj0 = 0 ;
27199 PyObject * obj1 = 0 ;
27200 PyObject * obj2 = 0 ;
27201 PyObject * obj3 = 0 ;
27202 char *kwnames[] = {
27203 (char *) "self",(char *) "orientation",(char *) "pos",(char *) "refresh", NULL
27204 };
27205
27206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_SetScrollPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27209 arg2 = (int) SWIG_AsInt(obj1);
27210 if (PyErr_Occurred()) SWIG_fail;
27211 arg3 = (int) SWIG_AsInt(obj2);
27212 if (PyErr_Occurred()) SWIG_fail;
27213 if (obj3) {
27214 arg4 = (bool) SWIG_AsBool(obj3);
27215 if (PyErr_Occurred()) SWIG_fail;
27216 }
27217 {
27218 PyThreadState* __tstate = wxPyBeginAllowThreads();
27219 (arg1)->SetScrollPos(arg2,arg3,arg4);
27220
27221 wxPyEndAllowThreads(__tstate);
27222 if (PyErr_Occurred()) SWIG_fail;
27223 }
27224 Py_INCREF(Py_None); resultobj = Py_None;
27225 return resultobj;
27226 fail:
27227 return NULL;
27228}
27229
27230
27231static PyObject *_wrap_Window_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) {
27232 PyObject *resultobj;
27233 wxWindow *arg1 = (wxWindow *) 0 ;
27234 int arg2 ;
27235 int result;
27236 PyObject * obj0 = 0 ;
27237 PyObject * obj1 = 0 ;
27238 char *kwnames[] = {
27239 (char *) "self",(char *) "orientation", NULL
27240 };
27241
27242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollPos",kwnames,&obj0,&obj1)) goto fail;
27243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27245 arg2 = (int) SWIG_AsInt(obj1);
27246 if (PyErr_Occurred()) SWIG_fail;
27247 {
27248 PyThreadState* __tstate = wxPyBeginAllowThreads();
27249 result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2);
27250
27251 wxPyEndAllowThreads(__tstate);
27252 if (PyErr_Occurred()) SWIG_fail;
27253 }
27254 resultobj = SWIG_FromInt((int)result);
27255 return resultobj;
27256 fail:
27257 return NULL;
27258}
27259
27260
27261static PyObject *_wrap_Window_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) {
27262 PyObject *resultobj;
27263 wxWindow *arg1 = (wxWindow *) 0 ;
27264 int arg2 ;
27265 int result;
27266 PyObject * obj0 = 0 ;
27267 PyObject * obj1 = 0 ;
27268 char *kwnames[] = {
27269 (char *) "self",(char *) "orientation", NULL
27270 };
27271
27272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollThumb",kwnames,&obj0,&obj1)) goto fail;
27273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27275 arg2 = (int) SWIG_AsInt(obj1);
27276 if (PyErr_Occurred()) SWIG_fail;
27277 {
27278 PyThreadState* __tstate = wxPyBeginAllowThreads();
27279 result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2);
27280
27281 wxPyEndAllowThreads(__tstate);
27282 if (PyErr_Occurred()) SWIG_fail;
27283 }
27284 resultobj = SWIG_FromInt((int)result);
27285 return resultobj;
27286 fail:
27287 return NULL;
27288}
27289
27290
27291static PyObject *_wrap_Window_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) {
27292 PyObject *resultobj;
27293 wxWindow *arg1 = (wxWindow *) 0 ;
27294 int arg2 ;
27295 int result;
27296 PyObject * obj0 = 0 ;
27297 PyObject * obj1 = 0 ;
27298 char *kwnames[] = {
27299 (char *) "self",(char *) "orientation", NULL
27300 };
27301
27302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollRange",kwnames,&obj0,&obj1)) goto fail;
27303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27305 arg2 = (int) SWIG_AsInt(obj1);
27306 if (PyErr_Occurred()) SWIG_fail;
27307 {
27308 PyThreadState* __tstate = wxPyBeginAllowThreads();
27309 result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2);
27310
27311 wxPyEndAllowThreads(__tstate);
27312 if (PyErr_Occurred()) SWIG_fail;
27313 }
27314 resultobj = SWIG_FromInt((int)result);
27315 return resultobj;
27316 fail:
27317 return NULL;
27318}
27319
27320
27321static PyObject *_wrap_Window_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
27322 PyObject *resultobj;
27323 wxWindow *arg1 = (wxWindow *) 0 ;
27324 int arg2 ;
27325 int arg3 ;
27326 wxRect *arg4 = (wxRect *) NULL ;
27327 PyObject * obj0 = 0 ;
27328 PyObject * obj1 = 0 ;
27329 PyObject * obj2 = 0 ;
27330 PyObject * obj3 = 0 ;
27331 char *kwnames[] = {
27332 (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL
27333 };
27334
27335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_ScrollWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27338 arg2 = (int) SWIG_AsInt(obj1);
27339 if (PyErr_Occurred()) SWIG_fail;
27340 arg3 = (int) SWIG_AsInt(obj2);
27341 if (PyErr_Occurred()) SWIG_fail;
27342 if (obj3) {
27343 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxRect,
27344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27345 }
27346 {
27347 PyThreadState* __tstate = wxPyBeginAllowThreads();
27348 (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4);
27349
27350 wxPyEndAllowThreads(__tstate);
27351 if (PyErr_Occurred()) SWIG_fail;
27352 }
27353 Py_INCREF(Py_None); resultobj = Py_None;
27354 return resultobj;
27355 fail:
27356 return NULL;
27357}
27358
27359
27360static PyObject *_wrap_Window_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) {
27361 PyObject *resultobj;
27362 wxWindow *arg1 = (wxWindow *) 0 ;
27363 int arg2 ;
27364 bool result;
27365 PyObject * obj0 = 0 ;
27366 PyObject * obj1 = 0 ;
27367 char *kwnames[] = {
27368 (char *) "self",(char *) "lines", NULL
27369 };
27370
27371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollLines",kwnames,&obj0,&obj1)) goto fail;
27372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27374 arg2 = (int) SWIG_AsInt(obj1);
27375 if (PyErr_Occurred()) SWIG_fail;
27376 {
27377 PyThreadState* __tstate = wxPyBeginAllowThreads();
27378 result = (bool)(arg1)->ScrollLines(arg2);
27379
27380 wxPyEndAllowThreads(__tstate);
27381 if (PyErr_Occurred()) SWIG_fail;
27382 }
27383 {
27384 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27385 }
27386 return resultobj;
27387 fail:
27388 return NULL;
27389}
27390
27391
27392static PyObject *_wrap_Window_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) {
27393 PyObject *resultobj;
27394 wxWindow *arg1 = (wxWindow *) 0 ;
27395 int arg2 ;
27396 bool result;
27397 PyObject * obj0 = 0 ;
27398 PyObject * obj1 = 0 ;
27399 char *kwnames[] = {
27400 (char *) "self",(char *) "pages", NULL
27401 };
27402
27403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollPages",kwnames,&obj0,&obj1)) goto fail;
27404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27406 arg2 = (int) SWIG_AsInt(obj1);
27407 if (PyErr_Occurred()) SWIG_fail;
27408 {
27409 PyThreadState* __tstate = wxPyBeginAllowThreads();
27410 result = (bool)(arg1)->ScrollPages(arg2);
27411
27412 wxPyEndAllowThreads(__tstate);
27413 if (PyErr_Occurred()) SWIG_fail;
27414 }
27415 {
27416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27417 }
27418 return resultobj;
27419 fail:
27420 return NULL;
27421}
27422
27423
27424static PyObject *_wrap_Window_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) {
27425 PyObject *resultobj;
27426 wxWindow *arg1 = (wxWindow *) 0 ;
27427 bool result;
27428 PyObject * obj0 = 0 ;
27429 char *kwnames[] = {
27430 (char *) "self", NULL
27431 };
27432
27433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineUp",kwnames,&obj0)) goto fail;
27434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27436 {
27437 PyThreadState* __tstate = wxPyBeginAllowThreads();
27438 result = (bool)(arg1)->LineUp();
27439
27440 wxPyEndAllowThreads(__tstate);
27441 if (PyErr_Occurred()) SWIG_fail;
27442 }
27443 {
27444 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27445 }
27446 return resultobj;
27447 fail:
27448 return NULL;
27449}
27450
27451
27452static PyObject *_wrap_Window_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) {
27453 PyObject *resultobj;
27454 wxWindow *arg1 = (wxWindow *) 0 ;
27455 bool result;
27456 PyObject * obj0 = 0 ;
27457 char *kwnames[] = {
27458 (char *) "self", NULL
27459 };
27460
27461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineDown",kwnames,&obj0)) goto fail;
27462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27464 {
27465 PyThreadState* __tstate = wxPyBeginAllowThreads();
27466 result = (bool)(arg1)->LineDown();
27467
27468 wxPyEndAllowThreads(__tstate);
27469 if (PyErr_Occurred()) SWIG_fail;
27470 }
27471 {
27472 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27473 }
27474 return resultobj;
27475 fail:
27476 return NULL;
27477}
27478
27479
27480static PyObject *_wrap_Window_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) {
27481 PyObject *resultobj;
27482 wxWindow *arg1 = (wxWindow *) 0 ;
27483 bool result;
27484 PyObject * obj0 = 0 ;
27485 char *kwnames[] = {
27486 (char *) "self", NULL
27487 };
27488
27489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageUp",kwnames,&obj0)) goto fail;
27490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27492 {
27493 PyThreadState* __tstate = wxPyBeginAllowThreads();
27494 result = (bool)(arg1)->PageUp();
27495
27496 wxPyEndAllowThreads(__tstate);
27497 if (PyErr_Occurred()) SWIG_fail;
27498 }
27499 {
27500 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27501 }
27502 return resultobj;
27503 fail:
27504 return NULL;
27505}
27506
27507
27508static PyObject *_wrap_Window_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) {
27509 PyObject *resultobj;
27510 wxWindow *arg1 = (wxWindow *) 0 ;
27511 bool result;
27512 PyObject * obj0 = 0 ;
27513 char *kwnames[] = {
27514 (char *) "self", NULL
27515 };
27516
27517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageDown",kwnames,&obj0)) goto fail;
27518 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27520 {
27521 PyThreadState* __tstate = wxPyBeginAllowThreads();
27522 result = (bool)(arg1)->PageDown();
27523
27524 wxPyEndAllowThreads(__tstate);
27525 if (PyErr_Occurred()) SWIG_fail;
27526 }
27527 {
27528 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27529 }
27530 return resultobj;
27531 fail:
27532 return NULL;
27533}
27534
27535
27536static PyObject *_wrap_Window_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) {
27537 PyObject *resultobj;
27538 wxWindow *arg1 = (wxWindow *) 0 ;
27539 wxString *arg2 = 0 ;
27540 bool temp2 = False ;
27541 PyObject * obj0 = 0 ;
27542 PyObject * obj1 = 0 ;
27543 char *kwnames[] = {
27544 (char *) "self",(char *) "text", NULL
27545 };
27546
27547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) goto fail;
27548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27550 {
27551 arg2 = wxString_in_helper(obj1);
27552 if (arg2 == NULL) SWIG_fail;
27553 temp2 = True;
27554 }
27555 {
27556 PyThreadState* __tstate = wxPyBeginAllowThreads();
27557 (arg1)->SetHelpText((wxString const &)*arg2);
27558
27559 wxPyEndAllowThreads(__tstate);
27560 if (PyErr_Occurred()) SWIG_fail;
27561 }
27562 Py_INCREF(Py_None); resultobj = Py_None;
27563 {
27564 if (temp2)
27565 delete arg2;
27566 }
27567 return resultobj;
27568 fail:
27569 {
27570 if (temp2)
27571 delete arg2;
27572 }
27573 return NULL;
27574}
27575
27576
27577static PyObject *_wrap_Window_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) {
27578 PyObject *resultobj;
27579 wxWindow *arg1 = (wxWindow *) 0 ;
27580 wxString *arg2 = 0 ;
27581 bool temp2 = False ;
27582 PyObject * obj0 = 0 ;
27583 PyObject * obj1 = 0 ;
27584 char *kwnames[] = {
27585 (char *) "self",(char *) "text", NULL
27586 };
27587
27588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) goto fail;
27589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27591 {
27592 arg2 = wxString_in_helper(obj1);
27593 if (arg2 == NULL) SWIG_fail;
27594 temp2 = True;
27595 }
27596 {
27597 PyThreadState* __tstate = wxPyBeginAllowThreads();
27598 (arg1)->SetHelpTextForId((wxString const &)*arg2);
27599
27600 wxPyEndAllowThreads(__tstate);
27601 if (PyErr_Occurred()) SWIG_fail;
27602 }
27603 Py_INCREF(Py_None); resultobj = Py_None;
27604 {
27605 if (temp2)
27606 delete arg2;
27607 }
27608 return resultobj;
27609 fail:
27610 {
27611 if (temp2)
27612 delete arg2;
27613 }
27614 return NULL;
27615}
27616
27617
27618static PyObject *_wrap_Window_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) {
27619 PyObject *resultobj;
27620 wxWindow *arg1 = (wxWindow *) 0 ;
27621 wxString result;
27622 PyObject * obj0 = 0 ;
27623 char *kwnames[] = {
27624 (char *) "self", NULL
27625 };
27626
27627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHelpText",kwnames,&obj0)) goto fail;
27628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27630 {
27631 PyThreadState* __tstate = wxPyBeginAllowThreads();
27632 result = ((wxWindow const *)arg1)->GetHelpText();
27633
27634 wxPyEndAllowThreads(__tstate);
27635 if (PyErr_Occurred()) SWIG_fail;
27636 }
27637 {
27638#if wxUSE_UNICODE
27639 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
27640#else
27641 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
27642#endif
27643 }
27644 return resultobj;
27645 fail:
27646 return NULL;
27647}
27648
27649
27650static PyObject *_wrap_Window_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) {
27651 PyObject *resultobj;
27652 wxWindow *arg1 = (wxWindow *) 0 ;
27653 wxString *arg2 = 0 ;
27654 bool temp2 = False ;
27655 PyObject * obj0 = 0 ;
27656 PyObject * obj1 = 0 ;
27657 char *kwnames[] = {
27658 (char *) "self",(char *) "tip", NULL
27659 };
27660
27661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) goto fail;
27662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27664 {
27665 arg2 = wxString_in_helper(obj1);
27666 if (arg2 == NULL) SWIG_fail;
27667 temp2 = True;
27668 }
27669 {
27670 PyThreadState* __tstate = wxPyBeginAllowThreads();
27671 (arg1)->SetToolTip((wxString const &)*arg2);
27672
27673 wxPyEndAllowThreads(__tstate);
27674 if (PyErr_Occurred()) SWIG_fail;
27675 }
27676 Py_INCREF(Py_None); resultobj = Py_None;
27677 {
27678 if (temp2)
27679 delete arg2;
27680 }
27681 return resultobj;
27682 fail:
27683 {
27684 if (temp2)
27685 delete arg2;
27686 }
27687 return NULL;
27688}
27689
27690
27691static PyObject *_wrap_Window_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
27692 PyObject *resultobj;
27693 wxWindow *arg1 = (wxWindow *) 0 ;
27694 wxToolTip *arg2 = (wxToolTip *) 0 ;
27695 PyObject * obj0 = 0 ;
27696 PyObject * obj1 = 0 ;
27697 char *kwnames[] = {
27698 (char *) "self",(char *) "tip", NULL
27699 };
27700
27701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) goto fail;
27702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27704 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolTip,
27705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27706 {
27707 PyThreadState* __tstate = wxPyBeginAllowThreads();
27708 (arg1)->SetToolTip(arg2);
27709
27710 wxPyEndAllowThreads(__tstate);
27711 if (PyErr_Occurred()) SWIG_fail;
27712 }
27713 Py_INCREF(Py_None); resultobj = Py_None;
27714 return resultobj;
27715 fail:
27716 return NULL;
27717}
27718
27719
27720static PyObject *_wrap_Window_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
27721 PyObject *resultobj;
27722 wxWindow *arg1 = (wxWindow *) 0 ;
27723 wxToolTip *result;
27724 PyObject * obj0 = 0 ;
27725 char *kwnames[] = {
27726 (char *) "self", NULL
27727 };
27728
27729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetToolTip",kwnames,&obj0)) goto fail;
27730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27732 {
27733 PyThreadState* __tstate = wxPyBeginAllowThreads();
27734 result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip();
27735
27736 wxPyEndAllowThreads(__tstate);
27737 if (PyErr_Occurred()) SWIG_fail;
27738 }
27739 {
27740 resultobj = wxPyMake_wxObject(result);
27741 }
27742 return resultobj;
27743 fail:
27744 return NULL;
27745}
27746
27747
27748static PyObject *_wrap_Window_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
27749 PyObject *resultobj;
27750 wxWindow *arg1 = (wxWindow *) 0 ;
27751 wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ;
27752 PyObject * obj0 = 0 ;
27753 PyObject * obj1 = 0 ;
27754 char *kwnames[] = {
27755 (char *) "self",(char *) "dropTarget", NULL
27756 };
27757
27758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) goto fail;
27759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27761 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyDropTarget,
27762 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
27763 {
27764 PyThreadState* __tstate = wxPyBeginAllowThreads();
27765 (arg1)->SetDropTarget(arg2);
27766
27767 wxPyEndAllowThreads(__tstate);
27768 if (PyErr_Occurred()) SWIG_fail;
27769 }
27770 Py_INCREF(Py_None); resultobj = Py_None;
27771 return resultobj;
27772 fail:
27773 return NULL;
27774}
27775
27776
27777static PyObject *_wrap_Window_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
27778 PyObject *resultobj;
27779 wxWindow *arg1 = (wxWindow *) 0 ;
27780 wxPyDropTarget *result;
27781 PyObject * obj0 = 0 ;
27782 char *kwnames[] = {
27783 (char *) "self", NULL
27784 };
27785
27786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDropTarget",kwnames,&obj0)) goto fail;
27787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27789 {
27790 PyThreadState* __tstate = wxPyBeginAllowThreads();
27791 result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget();
27792
27793 wxPyEndAllowThreads(__tstate);
27794 if (PyErr_Occurred()) SWIG_fail;
27795 }
27796 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 0);
27797 return resultobj;
27798 fail:
27799 return NULL;
27800}
27801
27802
27803static PyObject *_wrap_Window_DragAcceptFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
27804 PyObject *resultobj;
27805 wxWindow *arg1 = (wxWindow *) 0 ;
27806 bool arg2 ;
27807 PyObject * obj0 = 0 ;
27808 PyObject * obj1 = 0 ;
27809 char *kwnames[] = {
27810 (char *) "self",(char *) "accept", NULL
27811 };
27812
27813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DragAcceptFiles",kwnames,&obj0,&obj1)) goto fail;
27814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27816 arg2 = (bool) SWIG_AsBool(obj1);
27817 if (PyErr_Occurred()) SWIG_fail;
27818 {
27819 PyThreadState* __tstate = wxPyBeginAllowThreads();
27820 (arg1)->DragAcceptFiles(arg2);
27821
27822 wxPyEndAllowThreads(__tstate);
27823 if (PyErr_Occurred()) SWIG_fail;
27824 }
27825 Py_INCREF(Py_None); resultobj = Py_None;
27826 return resultobj;
27827 fail:
27828 return NULL;
27829}
27830
27831
27832static PyObject *_wrap_Window_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
27833 PyObject *resultobj;
27834 wxWindow *arg1 = (wxWindow *) 0 ;
27835 wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ;
27836 PyObject * obj0 = 0 ;
27837 PyObject * obj1 = 0 ;
27838 char *kwnames[] = {
27839 (char *) "self",(char *) "constraints", NULL
27840 };
27841
27842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) goto fail;
27843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27845 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints,
27846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27847 {
27848 PyThreadState* __tstate = wxPyBeginAllowThreads();
27849 (arg1)->SetConstraints(arg2);
27850
27851 wxPyEndAllowThreads(__tstate);
27852 if (PyErr_Occurred()) SWIG_fail;
27853 }
27854 Py_INCREF(Py_None); resultobj = Py_None;
27855 return resultobj;
27856 fail:
27857 return NULL;
27858}
27859
27860
27861static PyObject *_wrap_Window_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
27862 PyObject *resultobj;
27863 wxWindow *arg1 = (wxWindow *) 0 ;
27864 wxLayoutConstraints *result;
27865 PyObject * obj0 = 0 ;
27866 char *kwnames[] = {
27867 (char *) "self", NULL
27868 };
27869
27870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetConstraints",kwnames,&obj0)) goto fail;
27871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27873 {
27874 PyThreadState* __tstate = wxPyBeginAllowThreads();
27875 result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints();
27876
27877 wxPyEndAllowThreads(__tstate);
27878 if (PyErr_Occurred()) SWIG_fail;
27879 }
27880 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 0);
27881 return resultobj;
27882 fail:
27883 return NULL;
27884}
27885
27886
27887static PyObject *_wrap_Window_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) {
27888 PyObject *resultobj;
27889 wxWindow *arg1 = (wxWindow *) 0 ;
27890 bool arg2 ;
27891 PyObject * obj0 = 0 ;
27892 PyObject * obj1 = 0 ;
27893 char *kwnames[] = {
27894 (char *) "self",(char *) "autoLayout", NULL
27895 };
27896
27897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) goto fail;
27898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27900 arg2 = (bool) SWIG_AsBool(obj1);
27901 if (PyErr_Occurred()) SWIG_fail;
27902 {
27903 PyThreadState* __tstate = wxPyBeginAllowThreads();
27904 (arg1)->SetAutoLayout(arg2);
27905
27906 wxPyEndAllowThreads(__tstate);
27907 if (PyErr_Occurred()) SWIG_fail;
27908 }
27909 Py_INCREF(Py_None); resultobj = Py_None;
27910 return resultobj;
27911 fail:
27912 return NULL;
27913}
27914
27915
27916static PyObject *_wrap_Window_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) {
27917 PyObject *resultobj;
27918 wxWindow *arg1 = (wxWindow *) 0 ;
27919 bool result;
27920 PyObject * obj0 = 0 ;
27921 char *kwnames[] = {
27922 (char *) "self", NULL
27923 };
27924
27925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAutoLayout",kwnames,&obj0)) goto fail;
27926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27928 {
27929 PyThreadState* __tstate = wxPyBeginAllowThreads();
27930 result = (bool)((wxWindow const *)arg1)->GetAutoLayout();
27931
27932 wxPyEndAllowThreads(__tstate);
27933 if (PyErr_Occurred()) SWIG_fail;
27934 }
27935 {
27936 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27937 }
27938 return resultobj;
27939 fail:
27940 return NULL;
27941}
27942
27943
27944static PyObject *_wrap_Window_Layout(PyObject *self, PyObject *args, PyObject *kwargs) {
27945 PyObject *resultobj;
27946 wxWindow *arg1 = (wxWindow *) 0 ;
27947 bool result;
27948 PyObject * obj0 = 0 ;
27949 char *kwnames[] = {
27950 (char *) "self", NULL
27951 };
27952
27953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Layout",kwnames,&obj0)) goto fail;
27954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27956 {
27957 PyThreadState* __tstate = wxPyBeginAllowThreads();
27958 result = (bool)(arg1)->Layout();
27959
27960 wxPyEndAllowThreads(__tstate);
27961 if (PyErr_Occurred()) SWIG_fail;
27962 }
27963 {
27964 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27965 }
27966 return resultobj;
27967 fail:
27968 return NULL;
27969}
27970
27971
27972static PyObject *_wrap_Window_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
27973 PyObject *resultobj;
27974 wxWindow *arg1 = (wxWindow *) 0 ;
27975 wxSizer *arg2 = (wxSizer *) 0 ;
27976 bool arg3 = (bool) True ;
27977 PyObject * obj0 = 0 ;
27978 PyObject * obj1 = 0 ;
27979 PyObject * obj2 = 0 ;
27980 char *kwnames[] = {
27981 (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL
27982 };
27983
27984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) goto fail;
27985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27987 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
27988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27989 if (obj2) {
27990 arg3 = (bool) SWIG_AsBool(obj2);
27991 if (PyErr_Occurred()) SWIG_fail;
27992 }
27993 {
27994 PyThreadState* __tstate = wxPyBeginAllowThreads();
27995 (arg1)->SetSizer(arg2,arg3);
27996
27997 wxPyEndAllowThreads(__tstate);
27998 if (PyErr_Occurred()) SWIG_fail;
27999 }
28000 Py_INCREF(Py_None); resultobj = Py_None;
28001 return resultobj;
28002 fail:
28003 return NULL;
28004}
28005
28006
28007static PyObject *_wrap_Window_SetSizerAndFit(PyObject *self, PyObject *args, PyObject *kwargs) {
28008 PyObject *resultobj;
28009 wxWindow *arg1 = (wxWindow *) 0 ;
28010 wxSizer *arg2 = (wxSizer *) 0 ;
28011 bool arg3 = (bool) True ;
28012 PyObject * obj0 = 0 ;
28013 PyObject * obj1 = 0 ;
28014 PyObject * obj2 = 0 ;
28015 char *kwnames[] = {
28016 (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL
28017 };
28018
28019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) goto fail;
28020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28022 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
28023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28024 if (obj2) {
28025 arg3 = (bool) SWIG_AsBool(obj2);
28026 if (PyErr_Occurred()) SWIG_fail;
28027 }
28028 {
28029 PyThreadState* __tstate = wxPyBeginAllowThreads();
28030 (arg1)->SetSizerAndFit(arg2,arg3);
28031
28032 wxPyEndAllowThreads(__tstate);
28033 if (PyErr_Occurred()) SWIG_fail;
28034 }
28035 Py_INCREF(Py_None); resultobj = Py_None;
28036 return resultobj;
28037 fail:
28038 return NULL;
28039}
28040
28041
28042static PyObject *_wrap_Window_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
28043 PyObject *resultobj;
28044 wxWindow *arg1 = (wxWindow *) 0 ;
28045 wxSizer *result;
28046 PyObject * obj0 = 0 ;
28047 char *kwnames[] = {
28048 (char *) "self", NULL
28049 };
28050
28051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizer",kwnames,&obj0)) goto fail;
28052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28054 {
28055 PyThreadState* __tstate = wxPyBeginAllowThreads();
28056 result = (wxSizer *)((wxWindow const *)arg1)->GetSizer();
28057
28058 wxPyEndAllowThreads(__tstate);
28059 if (PyErr_Occurred()) SWIG_fail;
28060 }
28061 {
28062 resultobj = wxPyMake_wxSizer(result);
28063 }
28064 return resultobj;
28065 fail:
28066 return NULL;
28067}
28068
28069
28070static PyObject *_wrap_Window_SetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
28071 PyObject *resultobj;
28072 wxWindow *arg1 = (wxWindow *) 0 ;
28073 wxSizer *arg2 = (wxSizer *) 0 ;
28074 PyObject * obj0 = 0 ;
28075 PyObject * obj1 = 0 ;
28076 char *kwnames[] = {
28077 (char *) "self",(char *) "sizer", NULL
28078 };
28079
28080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) goto fail;
28081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28083 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
28084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28085 {
28086 PyThreadState* __tstate = wxPyBeginAllowThreads();
28087 (arg1)->SetContainingSizer(arg2);
28088
28089 wxPyEndAllowThreads(__tstate);
28090 if (PyErr_Occurred()) SWIG_fail;
28091 }
28092 Py_INCREF(Py_None); resultobj = Py_None;
28093 return resultobj;
28094 fail:
28095 return NULL;
28096}
28097
28098
28099static PyObject *_wrap_Window_GetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
28100 PyObject *resultobj;
28101 wxWindow *arg1 = (wxWindow *) 0 ;
28102 wxSizer *result;
28103 PyObject * obj0 = 0 ;
28104 char *kwnames[] = {
28105 (char *) "self", NULL
28106 };
28107
28108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetContainingSizer",kwnames,&obj0)) goto fail;
28109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28111 {
28112 PyThreadState* __tstate = wxPyBeginAllowThreads();
28113 result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer();
28114
28115 wxPyEndAllowThreads(__tstate);
28116 if (PyErr_Occurred()) SWIG_fail;
28117 }
28118 {
28119 resultobj = wxPyMake_wxSizer(result);
28120 }
28121 return resultobj;
28122 fail:
28123 return NULL;
28124}
28125
28126
28127static PyObject *_wrap_Window_InheritAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
28128 PyObject *resultobj;
28129 wxWindow *arg1 = (wxWindow *) 0 ;
28130 PyObject * obj0 = 0 ;
28131 char *kwnames[] = {
28132 (char *) "self", NULL
28133 };
28134
28135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InheritAttributes",kwnames,&obj0)) goto fail;
28136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28138 {
28139 PyThreadState* __tstate = wxPyBeginAllowThreads();
28140 (arg1)->InheritAttributes();
28141
28142 wxPyEndAllowThreads(__tstate);
28143 if (PyErr_Occurred()) SWIG_fail;
28144 }
28145 Py_INCREF(Py_None); resultobj = Py_None;
28146 return resultobj;
28147 fail:
28148 return NULL;
28149}
28150
28151
28152static PyObject *_wrap_Window_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) {
28153 PyObject *resultobj;
28154 wxWindow *arg1 = (wxWindow *) 0 ;
28155 bool result;
28156 PyObject * obj0 = 0 ;
28157 char *kwnames[] = {
28158 (char *) "self", NULL
28159 };
28160
28161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ShouldInheritColours",kwnames,&obj0)) goto fail;
28162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28164 {
28165 PyThreadState* __tstate = wxPyBeginAllowThreads();
28166 result = (bool)((wxWindow const *)arg1)->ShouldInheritColours();
28167
28168 wxPyEndAllowThreads(__tstate);
28169 if (PyErr_Occurred()) SWIG_fail;
28170 }
28171 {
28172 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28173 }
28174 return resultobj;
28175 fail:
28176 return NULL;
28177}
28178
28179
28180static PyObject * Window_swigregister(PyObject *self, PyObject *args) {
28181 PyObject *obj;
28182 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28183 SWIG_TypeClientData(SWIGTYPE_p_wxWindow, obj);
28184 Py_INCREF(obj);
28185 return Py_BuildValue((char *)"");
28186}
28187static PyObject *_wrap_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) {
28188 PyObject *resultobj;
28189 long arg1 ;
28190 wxWindow *arg2 = (wxWindow *) NULL ;
28191 wxWindow *result;
28192 PyObject * obj0 = 0 ;
28193 PyObject * obj1 = 0 ;
28194 char *kwnames[] = {
28195 (char *) "id",(char *) "parent", NULL
28196 };
28197
28198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowById",kwnames,&obj0,&obj1)) goto fail;
28199 arg1 = (long) SWIG_AsLong(obj0);
28200 if (PyErr_Occurred()) SWIG_fail;
28201 if (obj1) {
28202 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28204 }
28205 {
0439c23b 28206 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
28207 PyThreadState* __tstate = wxPyBeginAllowThreads();
28208 result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2);
28209
28210 wxPyEndAllowThreads(__tstate);
0439c23b 28211 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
28212 }
28213 {
28214 resultobj = wxPyMake_wxObject(result);
28215 }
28216 return resultobj;
28217 fail:
28218 return NULL;
28219}
28220
28221
28222static PyObject *_wrap_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) {
28223 PyObject *resultobj;
28224 wxString *arg1 = 0 ;
28225 wxWindow *arg2 = (wxWindow *) NULL ;
28226 wxWindow *result;
28227 bool temp1 = False ;
28228 PyObject * obj0 = 0 ;
28229 PyObject * obj1 = 0 ;
28230 char *kwnames[] = {
28231 (char *) "name",(char *) "parent", NULL
28232 };
28233
28234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) goto fail;
28235 {
28236 arg1 = wxString_in_helper(obj0);
28237 if (arg1 == NULL) SWIG_fail;
28238 temp1 = True;
28239 }
28240 if (obj1) {
28241 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28243 }
28244 {
0439c23b 28245 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
28246 PyThreadState* __tstate = wxPyBeginAllowThreads();
28247 result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2);
28248
28249 wxPyEndAllowThreads(__tstate);
0439c23b 28250 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
28251 }
28252 {
28253 resultobj = wxPyMake_wxObject(result);
28254 }
28255 {
28256 if (temp1)
28257 delete arg1;
28258 }
28259 return resultobj;
28260 fail:
28261 {
28262 if (temp1)
28263 delete arg1;
28264 }
28265 return NULL;
28266}
28267
28268
28269static PyObject *_wrap_FindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
28270 PyObject *resultobj;
28271 wxString *arg1 = 0 ;
28272 wxWindow *arg2 = (wxWindow *) NULL ;
28273 wxWindow *result;
28274 bool temp1 = False ;
28275 PyObject * obj0 = 0 ;
28276 PyObject * obj1 = 0 ;
28277 char *kwnames[] = {
28278 (char *) "label",(char *) "parent", NULL
28279 };
28280
28281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) goto fail;
28282 {
28283 arg1 = wxString_in_helper(obj0);
28284 if (arg1 == NULL) SWIG_fail;
28285 temp1 = True;
28286 }
28287 if (obj1) {
28288 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28289 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28290 }
28291 {
0439c23b 28292 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
28293 PyThreadState* __tstate = wxPyBeginAllowThreads();
28294 result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2);
28295
28296 wxPyEndAllowThreads(__tstate);
0439c23b 28297 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
28298 }
28299 {
28300 resultobj = wxPyMake_wxObject(result);
28301 }
28302 {
28303 if (temp1)
28304 delete arg1;
28305 }
28306 return resultobj;
28307 fail:
28308 {
28309 if (temp1)
28310 delete arg1;
28311 }
28312 return NULL;
28313}
28314
28315
28316static PyObject *_wrap_Window_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) {
28317 PyObject *resultobj;
28318 wxWindow *arg1 = (wxWindow *) 0 ;
28319 unsigned long arg2 ;
28320 wxWindow *result;
28321 PyObject * obj0 = 0 ;
28322 PyObject * obj1 = 0 ;
28323 char *kwnames[] = {
28324 (char *) "parent",(char *) "_hWnd", NULL
28325 };
28326
28327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FromHWND",kwnames,&obj0,&obj1)) goto fail;
28328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28330 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
28331 if (PyErr_Occurred()) SWIG_fail;
28332 {
28333 PyThreadState* __tstate = wxPyBeginAllowThreads();
28334 result = (wxWindow *)wxWindow_FromHWND(arg1,arg2);
28335
28336 wxPyEndAllowThreads(__tstate);
28337 if (PyErr_Occurred()) SWIG_fail;
28338 }
28339 {
28340 resultobj = wxPyMake_wxObject(result);
28341 }
28342 return resultobj;
28343 fail:
28344 return NULL;
28345}
28346
28347
28348static PyObject *_wrap_new_Validator(PyObject *self, PyObject *args, PyObject *kwargs) {
28349 PyObject *resultobj;
28350 wxValidator *result;
28351 char *kwnames[] = {
28352 NULL
28353 };
28354
28355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Validator",kwnames)) goto fail;
28356 {
28357 PyThreadState* __tstate = wxPyBeginAllowThreads();
28358 result = (wxValidator *)new wxValidator();
28359
28360 wxPyEndAllowThreads(__tstate);
28361 if (PyErr_Occurred()) SWIG_fail;
28362 }
28363 {
28364 resultobj = wxPyMake_wxObject(result);
28365 }
28366 return resultobj;
28367 fail:
28368 return NULL;
28369}
28370
28371
28372static PyObject *_wrap_Validator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) {
28373 PyObject *resultobj;
28374 wxValidator *arg1 = (wxValidator *) 0 ;
28375 wxValidator *result;
28376 PyObject * obj0 = 0 ;
28377 char *kwnames[] = {
28378 (char *) "self", NULL
28379 };
28380
28381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_Clone",kwnames,&obj0)) goto fail;
28382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator,
28383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28384 {
28385 PyThreadState* __tstate = wxPyBeginAllowThreads();
28386 result = (wxValidator *)(arg1)->Clone();
28387
28388 wxPyEndAllowThreads(__tstate);
28389 if (PyErr_Occurred()) SWIG_fail;
28390 }
28391 {
28392 resultobj = wxPyMake_wxObject(result);
28393 }
28394 return resultobj;
28395 fail:
28396 return NULL;
28397}
28398
28399
28400static PyObject *_wrap_Validator_Validate(PyObject *self, PyObject *args, PyObject *kwargs) {
28401 PyObject *resultobj;
28402 wxValidator *arg1 = (wxValidator *) 0 ;
28403 wxWindow *arg2 = (wxWindow *) 0 ;
28404 bool result;
28405 PyObject * obj0 = 0 ;
28406 PyObject * obj1 = 0 ;
28407 char *kwnames[] = {
28408 (char *) "self",(char *) "parent", NULL
28409 };
28410
28411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) goto fail;
28412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator,
28413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28414 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28416 {
28417 PyThreadState* __tstate = wxPyBeginAllowThreads();
28418 result = (bool)(arg1)->Validate(arg2);
28419
28420 wxPyEndAllowThreads(__tstate);
28421 if (PyErr_Occurred()) SWIG_fail;
28422 }
28423 {
28424 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28425 }
28426 return resultobj;
28427 fail:
28428 return NULL;
28429}
28430
28431
28432static PyObject *_wrap_Validator_TransferToWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
28433 PyObject *resultobj;
28434 wxValidator *arg1 = (wxValidator *) 0 ;
28435 bool result;
28436 PyObject * obj0 = 0 ;
28437 char *kwnames[] = {
28438 (char *) "self", NULL
28439 };
28440
28441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferToWindow",kwnames,&obj0)) goto fail;
28442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator,
28443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28444 {
28445 PyThreadState* __tstate = wxPyBeginAllowThreads();
28446 result = (bool)(arg1)->TransferToWindow();
28447
28448 wxPyEndAllowThreads(__tstate);
28449 if (PyErr_Occurred()) SWIG_fail;
28450 }
28451 {
28452 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28453 }
28454 return resultobj;
28455 fail:
28456 return NULL;
28457}
28458
28459
28460static PyObject *_wrap_Validator_TransferFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
28461 PyObject *resultobj;
28462 wxValidator *arg1 = (wxValidator *) 0 ;
28463 bool result;
28464 PyObject * obj0 = 0 ;
28465 char *kwnames[] = {
28466 (char *) "self", NULL
28467 };
28468
28469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferFromWindow",kwnames,&obj0)) goto fail;
28470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator,
28471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28472 {
28473 PyThreadState* __tstate = wxPyBeginAllowThreads();
28474 result = (bool)(arg1)->TransferFromWindow();
28475
28476 wxPyEndAllowThreads(__tstate);
28477 if (PyErr_Occurred()) SWIG_fail;
28478 }
28479 {
28480 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28481 }
28482 return resultobj;
28483 fail:
28484 return NULL;
28485}
28486
28487
28488static PyObject *_wrap_Validator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
28489 PyObject *resultobj;
28490 wxValidator *arg1 = (wxValidator *) 0 ;
28491 wxWindow *result;
28492 PyObject * obj0 = 0 ;
28493 char *kwnames[] = {
28494 (char *) "self", NULL
28495 };
28496
28497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_GetWindow",kwnames,&obj0)) goto fail;
28498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator,
28499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28500 {
28501 PyThreadState* __tstate = wxPyBeginAllowThreads();
28502 result = (wxWindow *)(arg1)->GetWindow();
28503
28504 wxPyEndAllowThreads(__tstate);
28505 if (PyErr_Occurred()) SWIG_fail;
28506 }
28507 {
28508 resultobj = wxPyMake_wxObject(result);
28509 }
28510 return resultobj;
28511 fail:
28512 return NULL;
28513}
28514
28515
28516static PyObject *_wrap_Validator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
28517 PyObject *resultobj;
28518 wxValidator *arg1 = (wxValidator *) 0 ;
28519 wxWindow *arg2 = (wxWindow *) 0 ;
28520 PyObject * obj0 = 0 ;
28521 PyObject * obj1 = 0 ;
28522 char *kwnames[] = {
28523 (char *) "self",(char *) "window", NULL
28524 };
28525
28526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) goto fail;
28527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator,
28528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28529 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28531 {
28532 PyThreadState* __tstate = wxPyBeginAllowThreads();
28533 (arg1)->SetWindow(arg2);
28534
28535 wxPyEndAllowThreads(__tstate);
28536 if (PyErr_Occurred()) SWIG_fail;
28537 }
28538 Py_INCREF(Py_None); resultobj = Py_None;
28539 return resultobj;
28540 fail:
28541 return NULL;
28542}
28543
28544
28545static PyObject *_wrap_Validator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) {
28546 PyObject *resultobj;
28547 bool result;
28548 char *kwnames[] = {
28549 NULL
28550 };
28551
28552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Validator_IsSilent",kwnames)) goto fail;
28553 {
28554 PyThreadState* __tstate = wxPyBeginAllowThreads();
28555 result = (bool)wxValidator::IsSilent();
28556
28557 wxPyEndAllowThreads(__tstate);
28558 if (PyErr_Occurred()) SWIG_fail;
28559 }
28560 {
28561 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28562 }
28563 return resultobj;
28564 fail:
28565 return NULL;
28566}
28567
28568
28569static PyObject *_wrap_Validator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) {
28570 PyObject *resultobj;
28571 int arg1 = (int) True ;
28572 PyObject * obj0 = 0 ;
28573 char *kwnames[] = {
28574 (char *) "doIt", NULL
28575 };
28576
28577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Validator_SetBellOnError",kwnames,&obj0)) goto fail;
28578 if (obj0) {
28579 arg1 = (int) SWIG_AsInt(obj0);
28580 if (PyErr_Occurred()) SWIG_fail;
28581 }
28582 {
28583 PyThreadState* __tstate = wxPyBeginAllowThreads();
28584 wxValidator::SetBellOnError(arg1);
28585
28586 wxPyEndAllowThreads(__tstate);
28587 if (PyErr_Occurred()) SWIG_fail;
28588 }
28589 Py_INCREF(Py_None); resultobj = Py_None;
28590 return resultobj;
28591 fail:
28592 return NULL;
28593}
28594
28595
28596static PyObject * Validator_swigregister(PyObject *self, PyObject *args) {
28597 PyObject *obj;
28598 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28599 SWIG_TypeClientData(SWIGTYPE_p_wxValidator, obj);
28600 Py_INCREF(obj);
28601 return Py_BuildValue((char *)"");
28602}
28603static PyObject *_wrap_new_PyValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
28604 PyObject *resultobj;
28605 wxPyValidator *result;
28606 char *kwnames[] = {
28607 NULL
28608 };
28609
28610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyValidator",kwnames)) goto fail;
28611 {
28612 PyThreadState* __tstate = wxPyBeginAllowThreads();
28613 result = (wxPyValidator *)new wxPyValidator();
28614
28615 wxPyEndAllowThreads(__tstate);
28616 if (PyErr_Occurred()) SWIG_fail;
28617 }
28618 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyValidator, 1);
28619 return resultobj;
28620 fail:
28621 return NULL;
28622}
28623
28624
28625static PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
28626 PyObject *resultobj;
28627 wxPyValidator *arg1 = (wxPyValidator *) 0 ;
28628 PyObject *arg2 = (PyObject *) 0 ;
28629 PyObject *arg3 = (PyObject *) 0 ;
28630 int arg4 = (int) True ;
28631 PyObject * obj0 = 0 ;
28632 PyObject * obj1 = 0 ;
28633 PyObject * obj2 = 0 ;
28634 PyObject * obj3 = 0 ;
28635 char *kwnames[] = {
28636 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
28637 };
28638
28639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
28640 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyValidator,
28641 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28642 arg2 = obj1;
28643 arg3 = obj2;
28644 if (obj3) {
28645 arg4 = (int) SWIG_AsInt(obj3);
28646 if (PyErr_Occurred()) SWIG_fail;
28647 }
28648 {
28649 PyThreadState* __tstate = wxPyBeginAllowThreads();
28650 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
28651
28652 wxPyEndAllowThreads(__tstate);
28653 if (PyErr_Occurred()) SWIG_fail;
28654 }
28655 Py_INCREF(Py_None); resultobj = Py_None;
28656 return resultobj;
28657 fail:
28658 return NULL;
28659}
28660
28661
28662static PyObject * PyValidator_swigregister(PyObject *self, PyObject *args) {
28663 PyObject *obj;
28664 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28665 SWIG_TypeClientData(SWIGTYPE_p_wxPyValidator, obj);
28666 Py_INCREF(obj);
28667 return Py_BuildValue((char *)"");
28668}
28669static int _wrap_DefaultValidator_set(PyObject *_val) {
28670 PyErr_SetString(PyExc_TypeError,"Variable DefaultValidator is read-only.");
28671 return 1;
28672}
28673
28674
28675static PyObject *_wrap_DefaultValidator_get() {
28676 PyObject *pyobj;
28677
28678 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultValidator), SWIGTYPE_p_wxValidator, 0);
28679 return pyobj;
28680}
28681
28682
28683static PyObject *_wrap_new_Menu(PyObject *self, PyObject *args, PyObject *kwargs) {
28684 PyObject *resultobj;
28685 wxString const &arg1_defvalue = wxPyEmptyString ;
28686 wxString *arg1 = (wxString *) &arg1_defvalue ;
28687 long arg2 = (long) 0 ;
28688 wxMenu *result;
28689 bool temp1 = False ;
28690 PyObject * obj0 = 0 ;
28691 PyObject * obj1 = 0 ;
28692 char *kwnames[] = {
28693 (char *) "title",(char *) "style", NULL
28694 };
28695
28696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Menu",kwnames,&obj0,&obj1)) goto fail;
28697 if (obj0) {
28698 {
28699 arg1 = wxString_in_helper(obj0);
28700 if (arg1 == NULL) SWIG_fail;
28701 temp1 = True;
28702 }
28703 }
28704 if (obj1) {
28705 arg2 = (long) SWIG_AsLong(obj1);
28706 if (PyErr_Occurred()) SWIG_fail;
28707 }
28708 {
0439c23b 28709 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
28710 PyThreadState* __tstate = wxPyBeginAllowThreads();
28711 result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2);
28712
28713 wxPyEndAllowThreads(__tstate);
0439c23b 28714 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
28715 }
28716 {
28717 resultobj = wxPyMake_wxObject(result);
28718 }
28719 {
28720 if (temp1)
28721 delete arg1;
28722 }
28723 return resultobj;
28724 fail:
28725 {
28726 if (temp1)
28727 delete arg1;
28728 }
28729 return NULL;
28730}
28731
28732
28733static PyObject *_wrap_Menu_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
28734 PyObject *resultobj;
28735 wxMenu *arg1 = (wxMenu *) 0 ;
28736 int arg2 ;
28737 wxString *arg3 = 0 ;
28738 wxString const &arg4_defvalue = wxPyEmptyString ;
28739 wxString *arg4 = (wxString *) &arg4_defvalue ;
28740 int arg5 = (int) wxITEM_NORMAL ;
28741 wxMenuItem *result;
28742 bool temp3 = False ;
28743 bool temp4 = False ;
28744 PyObject * obj0 = 0 ;
28745 PyObject * obj1 = 0 ;
28746 PyObject * obj2 = 0 ;
28747 PyObject * obj3 = 0 ;
28748 PyObject * obj4 = 0 ;
28749 char *kwnames[] = {
28750 (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL
28751 };
28752
28753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
28754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
28755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28756 arg2 = (int) SWIG_AsInt(obj1);
28757 if (PyErr_Occurred()) SWIG_fail;
28758 {
28759 arg3 = wxString_in_helper(obj2);
28760 if (arg3 == NULL) SWIG_fail;
28761 temp3 = True;
28762 }
28763 if (obj3) {
28764 {
28765 arg4 = wxString_in_helper(obj3);
28766 if (arg4 == NULL) SWIG_fail;
28767 temp4 = True;
28768 }
28769 }
28770 if (obj4) {
28771 arg5 = (wxItemKind) SWIG_AsInt(obj4);
28772 if (PyErr_Occurred()) SWIG_fail;
28773 }
28774 {
28775 PyThreadState* __tstate = wxPyBeginAllowThreads();
28776 result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5);
28777
28778 wxPyEndAllowThreads(__tstate);
28779 if (PyErr_Occurred()) SWIG_fail;
28780 }
28781 {
28782 resultobj = wxPyMake_wxObject(result);
28783 }
28784 {
28785 if (temp3)
28786 delete arg3;
28787 }
28788 {
28789 if (temp4)
28790 delete arg4;
28791 }
28792 return resultobj;
28793 fail:
28794 {
28795 if (temp3)
28796 delete arg3;
28797 }
28798 {
28799 if (temp4)
28800 delete arg4;
28801 }
28802 return NULL;
28803}
28804
28805
28806static PyObject *_wrap_Menu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
28807 PyObject *resultobj;
28808 wxMenu *arg1 = (wxMenu *) 0 ;
28809 wxMenuItem *result;
28810 PyObject * obj0 = 0 ;
28811 char *kwnames[] = {
28812 (char *) "self", NULL
28813 };
28814
28815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_AppendSeparator",kwnames,&obj0)) goto fail;
28816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
28817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28818 {
28819 PyThreadState* __tstate = wxPyBeginAllowThreads();
28820 result = (wxMenuItem *)(arg1)->AppendSeparator();
28821
28822 wxPyEndAllowThreads(__tstate);
28823 if (PyErr_Occurred()) SWIG_fail;
28824 }
28825 {
28826 resultobj = wxPyMake_wxObject(result);
28827 }
28828 return resultobj;
28829 fail:
28830 return NULL;
28831}
28832
28833
28834static PyObject *_wrap_Menu_AppendCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) {
28835 PyObject *resultobj;
28836 wxMenu *arg1 = (wxMenu *) 0 ;
28837 int arg2 ;
28838 wxString *arg3 = 0 ;
28839 wxString const &arg4_defvalue = wxPyEmptyString ;
28840 wxString *arg4 = (wxString *) &arg4_defvalue ;
28841 wxMenuItem *result;
28842 bool temp3 = False ;
28843 bool temp4 = False ;
28844 PyObject * obj0 = 0 ;
28845 PyObject * obj1 = 0 ;
28846 PyObject * obj2 = 0 ;
28847 PyObject * obj3 = 0 ;
28848 char *kwnames[] = {
28849 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
28850 };
28851
28852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
28853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
28854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28855 arg2 = (int) SWIG_AsInt(obj1);
28856 if (PyErr_Occurred()) SWIG_fail;
28857 {
28858 arg3 = wxString_in_helper(obj2);
28859 if (arg3 == NULL) SWIG_fail;
28860 temp3 = True;
28861 }
28862 if (obj3) {
28863 {
28864 arg4 = wxString_in_helper(obj3);
28865 if (arg4 == NULL) SWIG_fail;
28866 temp4 = True;
28867 }
28868 }
28869 {
28870 PyThreadState* __tstate = wxPyBeginAllowThreads();
28871 result = (wxMenuItem *)(arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
28872
28873 wxPyEndAllowThreads(__tstate);
28874 if (PyErr_Occurred()) SWIG_fail;
28875 }
28876 {
28877 resultobj = wxPyMake_wxObject(result);
28878 }
28879 {
28880 if (temp3)
28881 delete arg3;
28882 }
28883 {
28884 if (temp4)
28885 delete arg4;
28886 }
28887 return resultobj;
28888 fail:
28889 {
28890 if (temp3)
28891 delete arg3;
28892 }
28893 {
28894 if (temp4)
28895 delete arg4;
28896 }
28897 return NULL;
28898}
28899
28900
28901static PyObject *_wrap_Menu_AppendRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) {
28902 PyObject *resultobj;
28903 wxMenu *arg1 = (wxMenu *) 0 ;
28904 int arg2 ;
28905 wxString *arg3 = 0 ;
28906 wxString const &arg4_defvalue = wxPyEmptyString ;
28907 wxString *arg4 = (wxString *) &arg4_defvalue ;
28908 wxMenuItem *result;
28909 bool temp3 = False ;
28910 bool temp4 = False ;
28911 PyObject * obj0 = 0 ;
28912 PyObject * obj1 = 0 ;
28913 PyObject * obj2 = 0 ;
28914 PyObject * obj3 = 0 ;
28915 char *kwnames[] = {
28916 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
28917 };
28918
28919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
28920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
28921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28922 arg2 = (int) SWIG_AsInt(obj1);
28923 if (PyErr_Occurred()) SWIG_fail;
28924 {
28925 arg3 = wxString_in_helper(obj2);
28926 if (arg3 == NULL) SWIG_fail;
28927 temp3 = True;
28928 }
28929 if (obj3) {
28930 {
28931 arg4 = wxString_in_helper(obj3);
28932 if (arg4 == NULL) SWIG_fail;
28933 temp4 = True;
28934 }
28935 }
28936 {
28937 PyThreadState* __tstate = wxPyBeginAllowThreads();
28938 result = (wxMenuItem *)(arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
28939
28940 wxPyEndAllowThreads(__tstate);
28941 if (PyErr_Occurred()) SWIG_fail;
28942 }
28943 {
28944 resultobj = wxPyMake_wxObject(result);
28945 }
28946 {
28947 if (temp3)
28948 delete arg3;
28949 }
28950 {
28951 if (temp4)
28952 delete arg4;
28953 }
28954 return resultobj;
28955 fail:
28956 {
28957 if (temp3)
28958 delete arg3;
28959 }
28960 {
28961 if (temp4)
28962 delete arg4;
28963 }
28964 return NULL;
28965}
28966
28967
28968static PyObject *_wrap_Menu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
28969 PyObject *resultobj;
28970 wxMenu *arg1 = (wxMenu *) 0 ;
28971 int arg2 ;
28972 wxString *arg3 = 0 ;
28973 wxMenu *arg4 = (wxMenu *) 0 ;
28974 wxString const &arg5_defvalue = wxPyEmptyString ;
28975 wxString *arg5 = (wxString *) &arg5_defvalue ;
28976 wxMenuItem *result;
28977 bool temp3 = False ;
28978 bool temp5 = False ;
28979 PyObject * obj0 = 0 ;
28980 PyObject * obj1 = 0 ;
28981 PyObject * obj2 = 0 ;
28982 PyObject * obj3 = 0 ;
28983 PyObject * obj4 = 0 ;
28984 char *kwnames[] = {
28985 (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL
28986 };
28987
28988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_AppendMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
28989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
28990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28991 arg2 = (int) SWIG_AsInt(obj1);
28992 if (PyErr_Occurred()) SWIG_fail;
28993 {
28994 arg3 = wxString_in_helper(obj2);
28995 if (arg3 == NULL) SWIG_fail;
28996 temp3 = True;
28997 }
28998 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu,
28999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29000 if (obj4) {
29001 {
29002 arg5 = wxString_in_helper(obj4);
29003 if (arg5 == NULL) SWIG_fail;
29004 temp5 = True;
29005 }
29006 }
29007 {
29008 PyThreadState* __tstate = wxPyBeginAllowThreads();
29009 result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5);
29010
29011 wxPyEndAllowThreads(__tstate);
29012 if (PyErr_Occurred()) SWIG_fail;
29013 }
29014 {
29015 resultobj = wxPyMake_wxObject(result);
29016 }
29017 {
29018 if (temp3)
29019 delete arg3;
29020 }
29021 {
29022 if (temp5)
29023 delete arg5;
29024 }
29025 return resultobj;
29026 fail:
29027 {
29028 if (temp3)
29029 delete arg3;
29030 }
29031 {
29032 if (temp5)
29033 delete arg5;
29034 }
29035 return NULL;
29036}
29037
29038
29039static PyObject *_wrap_Menu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29040 PyObject *resultobj;
29041 wxMenu *arg1 = (wxMenu *) 0 ;
29042 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
29043 wxMenuItem *result;
29044 PyObject * obj0 = 0 ;
29045 PyObject * obj1 = 0 ;
29046 char *kwnames[] = {
29047 (char *) "self",(char *) "item", NULL
29048 };
29049
29050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) goto fail;
29051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29053 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem,
29054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29055 {
29056 PyThreadState* __tstate = wxPyBeginAllowThreads();
29057 result = (wxMenuItem *)(arg1)->Append(arg2);
29058
29059 wxPyEndAllowThreads(__tstate);
29060 if (PyErr_Occurred()) SWIG_fail;
29061 }
29062 {
29063 resultobj = wxPyMake_wxObject(result);
29064 }
29065 return resultobj;
29066 fail:
29067 return NULL;
29068}
29069
29070
29071static PyObject *_wrap_Menu_Break(PyObject *self, PyObject *args, PyObject *kwargs) {
29072 PyObject *resultobj;
29073 wxMenu *arg1 = (wxMenu *) 0 ;
29074 PyObject * obj0 = 0 ;
29075 char *kwnames[] = {
29076 (char *) "self", NULL
29077 };
29078
29079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Break",kwnames,&obj0)) goto fail;
29080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29082 {
29083 PyThreadState* __tstate = wxPyBeginAllowThreads();
29084 (arg1)->Break();
29085
29086 wxPyEndAllowThreads(__tstate);
29087 if (PyErr_Occurred()) SWIG_fail;
29088 }
29089 Py_INCREF(Py_None); resultobj = Py_None;
29090 return resultobj;
29091 fail:
29092 return NULL;
29093}
29094
29095
29096static PyObject *_wrap_Menu_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29097 PyObject *resultobj;
29098 wxMenu *arg1 = (wxMenu *) 0 ;
29099 size_t arg2 ;
29100 wxMenuItem *arg3 = (wxMenuItem *) 0 ;
29101 wxMenuItem *result;
29102 PyObject * obj0 = 0 ;
29103 PyObject * obj1 = 0 ;
29104 PyObject * obj2 = 0 ;
29105 char *kwnames[] = {
29106 (char *) "self",(char *) "pos",(char *) "item", NULL
29107 };
29108
29109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
29110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29112 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
29113 if (PyErr_Occurred()) SWIG_fail;
29114 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenuItem,
29115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29116 {
29117 PyThreadState* __tstate = wxPyBeginAllowThreads();
29118 result = (wxMenuItem *)(arg1)->Insert(arg2,arg3);
29119
29120 wxPyEndAllowThreads(__tstate);
29121 if (PyErr_Occurred()) SWIG_fail;
29122 }
29123 {
29124 resultobj = wxPyMake_wxObject(result);
29125 }
29126 return resultobj;
29127 fail:
29128 return NULL;
29129}
29130
29131
29132static PyObject *_wrap_Menu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
29133 PyObject *resultobj;
29134 wxMenu *arg1 = (wxMenu *) 0 ;
29135 size_t arg2 ;
29136 int arg3 ;
29137 wxString *arg4 = 0 ;
29138 wxString const &arg5_defvalue = wxPyEmptyString ;
29139 wxString *arg5 = (wxString *) &arg5_defvalue ;
29140 int arg6 = (int) wxITEM_NORMAL ;
29141 wxMenuItem *result;
29142 bool temp4 = False ;
29143 bool temp5 = False ;
29144 PyObject * obj0 = 0 ;
29145 PyObject * obj1 = 0 ;
29146 PyObject * obj2 = 0 ;
29147 PyObject * obj3 = 0 ;
29148 PyObject * obj4 = 0 ;
29149 PyObject * obj5 = 0 ;
29150 char *kwnames[] = {
29151 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL
29152 };
29153
29154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Menu_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
29155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29157 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
29158 if (PyErr_Occurred()) SWIG_fail;
29159 arg3 = (int) SWIG_AsInt(obj2);
29160 if (PyErr_Occurred()) SWIG_fail;
29161 {
29162 arg4 = wxString_in_helper(obj3);
29163 if (arg4 == NULL) SWIG_fail;
29164 temp4 = True;
29165 }
29166 if (obj4) {
29167 {
29168 arg5 = wxString_in_helper(obj4);
29169 if (arg5 == NULL) SWIG_fail;
29170 temp5 = True;
29171 }
29172 }
29173 if (obj5) {
29174 arg6 = (wxItemKind) SWIG_AsInt(obj5);
29175 if (PyErr_Occurred()) SWIG_fail;
29176 }
29177 {
29178 PyThreadState* __tstate = wxPyBeginAllowThreads();
29179 result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxItemKind )arg6);
29180
29181 wxPyEndAllowThreads(__tstate);
29182 if (PyErr_Occurred()) SWIG_fail;
29183 }
29184 {
29185 resultobj = wxPyMake_wxObject(result);
29186 }
29187 {
29188 if (temp4)
29189 delete arg4;
29190 }
29191 {
29192 if (temp5)
29193 delete arg5;
29194 }
29195 return resultobj;
29196 fail:
29197 {
29198 if (temp4)
29199 delete arg4;
29200 }
29201 {
29202 if (temp5)
29203 delete arg5;
29204 }
29205 return NULL;
29206}
29207
29208
29209static PyObject *_wrap_Menu_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
29210 PyObject *resultobj;
29211 wxMenu *arg1 = (wxMenu *) 0 ;
29212 size_t arg2 ;
29213 wxMenuItem *result;
29214 PyObject * obj0 = 0 ;
29215 PyObject * obj1 = 0 ;
29216 char *kwnames[] = {
29217 (char *) "self",(char *) "pos", NULL
29218 };
29219
29220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) goto fail;
29221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29223 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
29224 if (PyErr_Occurred()) SWIG_fail;
29225 {
29226 PyThreadState* __tstate = wxPyBeginAllowThreads();
29227 result = (wxMenuItem *)(arg1)->InsertSeparator(arg2);
29228
29229 wxPyEndAllowThreads(__tstate);
29230 if (PyErr_Occurred()) SWIG_fail;
29231 }
29232 {
29233 resultobj = wxPyMake_wxObject(result);
29234 }
29235 return resultobj;
29236 fail:
29237 return NULL;
29238}
29239
29240
29241static PyObject *_wrap_Menu_InsertCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29242 PyObject *resultobj;
29243 wxMenu *arg1 = (wxMenu *) 0 ;
29244 size_t arg2 ;
29245 int arg3 ;
29246 wxString *arg4 = 0 ;
29247 wxString const &arg5_defvalue = wxPyEmptyString ;
29248 wxString *arg5 = (wxString *) &arg5_defvalue ;
29249 wxMenuItem *result;
29250 bool temp4 = False ;
29251 bool temp5 = False ;
29252 PyObject * obj0 = 0 ;
29253 PyObject * obj1 = 0 ;
29254 PyObject * obj2 = 0 ;
29255 PyObject * obj3 = 0 ;
29256 PyObject * obj4 = 0 ;
29257 char *kwnames[] = {
29258 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL
29259 };
29260
29261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29264 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
29265 if (PyErr_Occurred()) SWIG_fail;
29266 arg3 = (int) SWIG_AsInt(obj2);
29267 if (PyErr_Occurred()) SWIG_fail;
29268 {
29269 arg4 = wxString_in_helper(obj3);
29270 if (arg4 == NULL) SWIG_fail;
29271 temp4 = True;
29272 }
29273 if (obj4) {
29274 {
29275 arg5 = wxString_in_helper(obj4);
29276 if (arg5 == NULL) SWIG_fail;
29277 temp5 = True;
29278 }
29279 }
29280 {
29281 PyThreadState* __tstate = wxPyBeginAllowThreads();
29282 result = (wxMenuItem *)(arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5);
29283
29284 wxPyEndAllowThreads(__tstate);
29285 if (PyErr_Occurred()) SWIG_fail;
29286 }
29287 {
29288 resultobj = wxPyMake_wxObject(result);
29289 }
29290 {
29291 if (temp4)
29292 delete arg4;
29293 }
29294 {
29295 if (temp5)
29296 delete arg5;
29297 }
29298 return resultobj;
29299 fail:
29300 {
29301 if (temp4)
29302 delete arg4;
29303 }
29304 {
29305 if (temp5)
29306 delete arg5;
29307 }
29308 return NULL;
29309}
29310
29311
29312static PyObject *_wrap_Menu_InsertRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29313 PyObject *resultobj;
29314 wxMenu *arg1 = (wxMenu *) 0 ;
29315 size_t arg2 ;
29316 int arg3 ;
29317 wxString *arg4 = 0 ;
29318 wxString const &arg5_defvalue = wxPyEmptyString ;
29319 wxString *arg5 = (wxString *) &arg5_defvalue ;
29320 wxMenuItem *result;
29321 bool temp4 = False ;
29322 bool temp5 = False ;
29323 PyObject * obj0 = 0 ;
29324 PyObject * obj1 = 0 ;
29325 PyObject * obj2 = 0 ;
29326 PyObject * obj3 = 0 ;
29327 PyObject * obj4 = 0 ;
29328 char *kwnames[] = {
29329 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL
29330 };
29331
29332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29335 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
29336 if (PyErr_Occurred()) SWIG_fail;
29337 arg3 = (int) SWIG_AsInt(obj2);
29338 if (PyErr_Occurred()) SWIG_fail;
29339 {
29340 arg4 = wxString_in_helper(obj3);
29341 if (arg4 == NULL) SWIG_fail;
29342 temp4 = True;
29343 }
29344 if (obj4) {
29345 {
29346 arg5 = wxString_in_helper(obj4);
29347 if (arg5 == NULL) SWIG_fail;
29348 temp5 = True;
29349 }
29350 }
29351 {
29352 PyThreadState* __tstate = wxPyBeginAllowThreads();
29353 result = (wxMenuItem *)(arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5);
29354
29355 wxPyEndAllowThreads(__tstate);
29356 if (PyErr_Occurred()) SWIG_fail;
29357 }
29358 {
29359 resultobj = wxPyMake_wxObject(result);
29360 }
29361 {
29362 if (temp4)
29363 delete arg4;
29364 }
29365 {
29366 if (temp5)
29367 delete arg5;
29368 }
29369 return resultobj;
29370 fail:
29371 {
29372 if (temp4)
29373 delete arg4;
29374 }
29375 {
29376 if (temp5)
29377 delete arg5;
29378 }
29379 return NULL;
29380}
29381
29382
29383static PyObject *_wrap_Menu_InsertMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
29384 PyObject *resultobj;
29385 wxMenu *arg1 = (wxMenu *) 0 ;
29386 size_t arg2 ;
29387 int arg3 ;
29388 wxString *arg4 = 0 ;
29389 wxMenu *arg5 = (wxMenu *) 0 ;
29390 wxString const &arg6_defvalue = wxPyEmptyString ;
29391 wxString *arg6 = (wxString *) &arg6_defvalue ;
29392 wxMenuItem *result;
29393 bool temp4 = False ;
29394 bool temp6 = False ;
29395 PyObject * obj0 = 0 ;
29396 PyObject * obj1 = 0 ;
29397 PyObject * obj2 = 0 ;
29398 PyObject * obj3 = 0 ;
29399 PyObject * obj4 = 0 ;
29400 PyObject * obj5 = 0 ;
29401 char *kwnames[] = {
29402 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL
29403 };
29404
29405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
29406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29408 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
29409 if (PyErr_Occurred()) SWIG_fail;
29410 arg3 = (int) SWIG_AsInt(obj2);
29411 if (PyErr_Occurred()) SWIG_fail;
29412 {
29413 arg4 = wxString_in_helper(obj3);
29414 if (arg4 == NULL) SWIG_fail;
29415 temp4 = True;
29416 }
29417 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxMenu,
29418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29419 if (obj5) {
29420 {
29421 arg6 = wxString_in_helper(obj5);
29422 if (arg6 == NULL) SWIG_fail;
29423 temp6 = True;
29424 }
29425 }
29426 {
29427 PyThreadState* __tstate = wxPyBeginAllowThreads();
29428 result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6);
29429
29430 wxPyEndAllowThreads(__tstate);
29431 if (PyErr_Occurred()) SWIG_fail;
29432 }
29433 {
29434 resultobj = wxPyMake_wxObject(result);
29435 }
29436 {
29437 if (temp4)
29438 delete arg4;
29439 }
29440 {
29441 if (temp6)
29442 delete arg6;
29443 }
29444 return resultobj;
29445 fail:
29446 {
29447 if (temp4)
29448 delete arg4;
29449 }
29450 {
29451 if (temp6)
29452 delete arg6;
29453 }
29454 return NULL;
29455}
29456
29457
29458static PyObject *_wrap_Menu_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29459 PyObject *resultobj;
29460 wxMenu *arg1 = (wxMenu *) 0 ;
29461 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
29462 wxMenuItem *result;
29463 PyObject * obj0 = 0 ;
29464 PyObject * obj1 = 0 ;
29465 char *kwnames[] = {
29466 (char *) "self",(char *) "item", NULL
29467 };
29468
29469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) goto fail;
29470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29472 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem,
29473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29474 {
29475 PyThreadState* __tstate = wxPyBeginAllowThreads();
29476 result = (wxMenuItem *)(arg1)->Prepend(arg2);
29477
29478 wxPyEndAllowThreads(__tstate);
29479 if (PyErr_Occurred()) SWIG_fail;
29480 }
29481 {
29482 resultobj = wxPyMake_wxObject(result);
29483 }
29484 return resultobj;
29485 fail:
29486 return NULL;
29487}
29488
29489
29490static PyObject *_wrap_Menu_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) {
29491 PyObject *resultobj;
29492 wxMenu *arg1 = (wxMenu *) 0 ;
29493 int arg2 ;
29494 wxString *arg3 = 0 ;
29495 wxString const &arg4_defvalue = wxPyEmptyString ;
29496 wxString *arg4 = (wxString *) &arg4_defvalue ;
29497 int arg5 = (int) wxITEM_NORMAL ;
29498 wxMenuItem *result;
29499 bool temp3 = False ;
29500 bool temp4 = False ;
29501 PyObject * obj0 = 0 ;
29502 PyObject * obj1 = 0 ;
29503 PyObject * obj2 = 0 ;
29504 PyObject * obj3 = 0 ;
29505 PyObject * obj4 = 0 ;
29506 char *kwnames[] = {
29507 (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL
29508 };
29509
29510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29513 arg2 = (int) SWIG_AsInt(obj1);
29514 if (PyErr_Occurred()) SWIG_fail;
29515 {
29516 arg3 = wxString_in_helper(obj2);
29517 if (arg3 == NULL) SWIG_fail;
29518 temp3 = True;
29519 }
29520 if (obj3) {
29521 {
29522 arg4 = wxString_in_helper(obj3);
29523 if (arg4 == NULL) SWIG_fail;
29524 temp4 = True;
29525 }
29526 }
29527 if (obj4) {
29528 arg5 = (wxItemKind) SWIG_AsInt(obj4);
29529 if (PyErr_Occurred()) SWIG_fail;
29530 }
29531 {
29532 PyThreadState* __tstate = wxPyBeginAllowThreads();
29533 result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5);
29534
29535 wxPyEndAllowThreads(__tstate);
29536 if (PyErr_Occurred()) SWIG_fail;
29537 }
29538 {
29539 resultobj = wxPyMake_wxObject(result);
29540 }
29541 {
29542 if (temp3)
29543 delete arg3;
29544 }
29545 {
29546 if (temp4)
29547 delete arg4;
29548 }
29549 return resultobj;
29550 fail:
29551 {
29552 if (temp3)
29553 delete arg3;
29554 }
29555 {
29556 if (temp4)
29557 delete arg4;
29558 }
29559 return NULL;
29560}
29561
29562
29563static PyObject *_wrap_Menu_PrependSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
29564 PyObject *resultobj;
29565 wxMenu *arg1 = (wxMenu *) 0 ;
29566 wxMenuItem *result;
29567 PyObject * obj0 = 0 ;
29568 char *kwnames[] = {
29569 (char *) "self", NULL
29570 };
29571
29572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_PrependSeparator",kwnames,&obj0)) goto fail;
29573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29575 {
29576 PyThreadState* __tstate = wxPyBeginAllowThreads();
29577 result = (wxMenuItem *)(arg1)->PrependSeparator();
29578
29579 wxPyEndAllowThreads(__tstate);
29580 if (PyErr_Occurred()) SWIG_fail;
29581 }
29582 {
29583 resultobj = wxPyMake_wxObject(result);
29584 }
29585 return resultobj;
29586 fail:
29587 return NULL;
29588}
29589
29590
29591static PyObject *_wrap_Menu_PrependCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29592 PyObject *resultobj;
29593 wxMenu *arg1 = (wxMenu *) 0 ;
29594 int arg2 ;
29595 wxString *arg3 = 0 ;
29596 wxString const &arg4_defvalue = wxPyEmptyString ;
29597 wxString *arg4 = (wxString *) &arg4_defvalue ;
29598 wxMenuItem *result;
29599 bool temp3 = False ;
29600 bool temp4 = False ;
29601 PyObject * obj0 = 0 ;
29602 PyObject * obj1 = 0 ;
29603 PyObject * obj2 = 0 ;
29604 PyObject * obj3 = 0 ;
29605 char *kwnames[] = {
29606 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
29607 };
29608
29609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
29610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29612 arg2 = (int) SWIG_AsInt(obj1);
29613 if (PyErr_Occurred()) SWIG_fail;
29614 {
29615 arg3 = wxString_in_helper(obj2);
29616 if (arg3 == NULL) SWIG_fail;
29617 temp3 = True;
29618 }
29619 if (obj3) {
29620 {
29621 arg4 = wxString_in_helper(obj3);
29622 if (arg4 == NULL) SWIG_fail;
29623 temp4 = True;
29624 }
29625 }
29626 {
29627 PyThreadState* __tstate = wxPyBeginAllowThreads();
29628 result = (wxMenuItem *)(arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
29629
29630 wxPyEndAllowThreads(__tstate);
29631 if (PyErr_Occurred()) SWIG_fail;
29632 }
29633 {
29634 resultobj = wxPyMake_wxObject(result);
29635 }
29636 {
29637 if (temp3)
29638 delete arg3;
29639 }
29640 {
29641 if (temp4)
29642 delete arg4;
29643 }
29644 return resultobj;
29645 fail:
29646 {
29647 if (temp3)
29648 delete arg3;
29649 }
29650 {
29651 if (temp4)
29652 delete arg4;
29653 }
29654 return NULL;
29655}
29656
29657
29658static PyObject *_wrap_Menu_PrependRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29659 PyObject *resultobj;
29660 wxMenu *arg1 = (wxMenu *) 0 ;
29661 int arg2 ;
29662 wxString *arg3 = 0 ;
29663 wxString const &arg4_defvalue = wxPyEmptyString ;
29664 wxString *arg4 = (wxString *) &arg4_defvalue ;
29665 wxMenuItem *result;
29666 bool temp3 = False ;
29667 bool temp4 = False ;
29668 PyObject * obj0 = 0 ;
29669 PyObject * obj1 = 0 ;
29670 PyObject * obj2 = 0 ;
29671 PyObject * obj3 = 0 ;
29672 char *kwnames[] = {
29673 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
29674 };
29675
29676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
29677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29679 arg2 = (int) SWIG_AsInt(obj1);
29680 if (PyErr_Occurred()) SWIG_fail;
29681 {
29682 arg3 = wxString_in_helper(obj2);
29683 if (arg3 == NULL) SWIG_fail;
29684 temp3 = True;
29685 }
29686 if (obj3) {
29687 {
29688 arg4 = wxString_in_helper(obj3);
29689 if (arg4 == NULL) SWIG_fail;
29690 temp4 = True;
29691 }
29692 }
29693 {
29694 PyThreadState* __tstate = wxPyBeginAllowThreads();
29695 result = (wxMenuItem *)(arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
29696
29697 wxPyEndAllowThreads(__tstate);
29698 if (PyErr_Occurred()) SWIG_fail;
29699 }
29700 {
29701 resultobj = wxPyMake_wxObject(result);
29702 }
29703 {
29704 if (temp3)
29705 delete arg3;
29706 }
29707 {
29708 if (temp4)
29709 delete arg4;
29710 }
29711 return resultobj;
29712 fail:
29713 {
29714 if (temp3)
29715 delete arg3;
29716 }
29717 {
29718 if (temp4)
29719 delete arg4;
29720 }
29721 return NULL;
29722}
29723
29724
29725static PyObject *_wrap_Menu_PrependMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
29726 PyObject *resultobj;
29727 wxMenu *arg1 = (wxMenu *) 0 ;
29728 int arg2 ;
29729 wxString *arg3 = 0 ;
29730 wxMenu *arg4 = (wxMenu *) 0 ;
29731 wxString const &arg5_defvalue = wxPyEmptyString ;
29732 wxString *arg5 = (wxString *) &arg5_defvalue ;
29733 wxMenuItem *result;
29734 bool temp3 = False ;
29735 bool temp5 = False ;
29736 PyObject * obj0 = 0 ;
29737 PyObject * obj1 = 0 ;
29738 PyObject * obj2 = 0 ;
29739 PyObject * obj3 = 0 ;
29740 PyObject * obj4 = 0 ;
29741 char *kwnames[] = {
29742 (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL
29743 };
29744
29745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_PrependMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29748 arg2 = (int) SWIG_AsInt(obj1);
29749 if (PyErr_Occurred()) SWIG_fail;
29750 {
29751 arg3 = wxString_in_helper(obj2);
29752 if (arg3 == NULL) SWIG_fail;
29753 temp3 = True;
29754 }
29755 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu,
29756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29757 if (obj4) {
29758 {
29759 arg5 = wxString_in_helper(obj4);
29760 if (arg5 == NULL) SWIG_fail;
29761 temp5 = True;
29762 }
29763 }
29764 {
29765 PyThreadState* __tstate = wxPyBeginAllowThreads();
29766 result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5);
29767
29768 wxPyEndAllowThreads(__tstate);
29769 if (PyErr_Occurred()) SWIG_fail;
29770 }
29771 {
29772 resultobj = wxPyMake_wxObject(result);
29773 }
29774 {
29775 if (temp3)
29776 delete arg3;
29777 }
29778 {
29779 if (temp5)
29780 delete arg5;
29781 }
29782 return resultobj;
29783 fail:
29784 {
29785 if (temp3)
29786 delete arg3;
29787 }
29788 {
29789 if (temp5)
29790 delete arg5;
29791 }
29792 return NULL;
29793}
29794
29795
29796static PyObject *_wrap_Menu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
29797 PyObject *resultobj;
29798 wxMenu *arg1 = (wxMenu *) 0 ;
29799 int arg2 ;
29800 wxMenuItem *result;
29801 PyObject * obj0 = 0 ;
29802 PyObject * obj1 = 0 ;
29803 char *kwnames[] = {
29804 (char *) "self",(char *) "id", NULL
29805 };
29806
29807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Remove",kwnames,&obj0,&obj1)) goto fail;
29808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29810 arg2 = (int) SWIG_AsInt(obj1);
29811 if (PyErr_Occurred()) SWIG_fail;
29812 {
29813 PyThreadState* __tstate = wxPyBeginAllowThreads();
29814 result = (wxMenuItem *)(arg1)->Remove(arg2);
29815
29816 wxPyEndAllowThreads(__tstate);
29817 if (PyErr_Occurred()) SWIG_fail;
29818 }
29819 {
29820 resultobj = wxPyMake_wxObject(result);
29821 }
29822 return resultobj;
29823 fail:
29824 return NULL;
29825}
29826
29827
29828static PyObject *_wrap_Menu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29829 PyObject *resultobj;
29830 wxMenu *arg1 = (wxMenu *) 0 ;
29831 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
29832 wxMenuItem *result;
29833 PyObject * obj0 = 0 ;
29834 PyObject * obj1 = 0 ;
29835 char *kwnames[] = {
29836 (char *) "self",(char *) "item", NULL
29837 };
29838
29839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) goto fail;
29840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29842 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem,
29843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29844 {
29845 PyThreadState* __tstate = wxPyBeginAllowThreads();
29846 result = (wxMenuItem *)(arg1)->Remove(arg2);
29847
29848 wxPyEndAllowThreads(__tstate);
29849 if (PyErr_Occurred()) SWIG_fail;
29850 }
29851 {
29852 resultobj = wxPyMake_wxObject(result);
29853 }
29854 return resultobj;
29855 fail:
29856 return NULL;
29857}
29858
29859
29860static PyObject *_wrap_Menu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
29861 PyObject *resultobj;
29862 wxMenu *arg1 = (wxMenu *) 0 ;
29863 int arg2 ;
29864 bool result;
29865 PyObject * obj0 = 0 ;
29866 PyObject * obj1 = 0 ;
29867 char *kwnames[] = {
29868 (char *) "self",(char *) "id", NULL
29869 };
29870
29871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Delete",kwnames,&obj0,&obj1)) goto fail;
29872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29874 arg2 = (int) SWIG_AsInt(obj1);
29875 if (PyErr_Occurred()) SWIG_fail;
29876 {
29877 PyThreadState* __tstate = wxPyBeginAllowThreads();
29878 result = (bool)(arg1)->Delete(arg2);
29879
29880 wxPyEndAllowThreads(__tstate);
29881 if (PyErr_Occurred()) SWIG_fail;
29882 }
29883 {
29884 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29885 }
29886 return resultobj;
29887 fail:
29888 return NULL;
29889}
29890
29891
29892static PyObject *_wrap_Menu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29893 PyObject *resultobj;
29894 wxMenu *arg1 = (wxMenu *) 0 ;
29895 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
29896 bool result;
29897 PyObject * obj0 = 0 ;
29898 PyObject * obj1 = 0 ;
29899 char *kwnames[] = {
29900 (char *) "self",(char *) "item", NULL
29901 };
29902
29903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) goto fail;
29904 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29905 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29906 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem,
29907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29908 {
29909 PyThreadState* __tstate = wxPyBeginAllowThreads();
29910 result = (bool)(arg1)->Delete(arg2);
29911
29912 wxPyEndAllowThreads(__tstate);
29913 if (PyErr_Occurred()) SWIG_fail;
29914 }
29915 {
29916 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29917 }
29918 return resultobj;
29919 fail:
29920 return NULL;
29921}
29922
29923
29924static PyObject *_wrap_Menu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
29925 PyObject *resultobj;
29926 wxMenu *arg1 = (wxMenu *) 0 ;
29927 PyObject * obj0 = 0 ;
29928 char *kwnames[] = {
29929 (char *) "self", NULL
29930 };
29931
29932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Destroy",kwnames,&obj0)) goto fail;
29933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29935 {
29936 PyThreadState* __tstate = wxPyBeginAllowThreads();
29937 wxMenu_Destroy(arg1);
29938
29939 wxPyEndAllowThreads(__tstate);
29940 if (PyErr_Occurred()) SWIG_fail;
29941 }
29942 Py_INCREF(Py_None); resultobj = Py_None;
29943 return resultobj;
29944 fail:
29945 return NULL;
29946}
29947
29948
29949static PyObject *_wrap_Menu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) {
29950 PyObject *resultobj;
29951 wxMenu *arg1 = (wxMenu *) 0 ;
29952 int arg2 ;
29953 bool result;
29954 PyObject * obj0 = 0 ;
29955 PyObject * obj1 = 0 ;
29956 char *kwnames[] = {
29957 (char *) "self",(char *) "id", NULL
29958 };
29959
29960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyId",kwnames,&obj0,&obj1)) goto fail;
29961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29963 arg2 = (int) SWIG_AsInt(obj1);
29964 if (PyErr_Occurred()) SWIG_fail;
29965 {
29966 PyThreadState* __tstate = wxPyBeginAllowThreads();
29967 result = (bool)(arg1)->Destroy(arg2);
29968
29969 wxPyEndAllowThreads(__tstate);
29970 if (PyErr_Occurred()) SWIG_fail;
29971 }
29972 {
29973 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29974 }
29975 return resultobj;
29976 fail:
29977 return NULL;
29978}
29979
29980
29981static PyObject *_wrap_Menu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29982 PyObject *resultobj;
29983 wxMenu *arg1 = (wxMenu *) 0 ;
29984 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
29985 bool result;
29986 PyObject * obj0 = 0 ;
29987 PyObject * obj1 = 0 ;
29988 char *kwnames[] = {
29989 (char *) "self",(char *) "item", NULL
29990 };
29991
29992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) goto fail;
29993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29995 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem,
29996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29997 {
29998 PyThreadState* __tstate = wxPyBeginAllowThreads();
29999 result = (bool)(arg1)->Destroy(arg2);
30000
30001 wxPyEndAllowThreads(__tstate);
30002 if (PyErr_Occurred()) SWIG_fail;
30003 }
30004 {
30005 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30006 }
30007 return resultobj;
30008 fail:
30009 return NULL;
30010}
30011
30012
30013static PyObject *_wrap_Menu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
30014 PyObject *resultobj;
30015 wxMenu *arg1 = (wxMenu *) 0 ;
30016 size_t result;
30017 PyObject * obj0 = 0 ;
30018 char *kwnames[] = {
30019 (char *) "self", NULL
30020 };
30021
30022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItemCount",kwnames,&obj0)) goto fail;
30023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30025 {
30026 PyThreadState* __tstate = wxPyBeginAllowThreads();
30027 result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount();
30028
30029 wxPyEndAllowThreads(__tstate);
30030 if (PyErr_Occurred()) SWIG_fail;
30031 }
30032 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
30033 return resultobj;
30034 fail:
30035 return NULL;
30036}
30037
30038
30039static PyObject *_wrap_Menu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) {
30040 PyObject *resultobj;
30041 wxMenu *arg1 = (wxMenu *) 0 ;
30042 PyObject *result;
30043 PyObject * obj0 = 0 ;
30044 char *kwnames[] = {
30045 (char *) "self", NULL
30046 };
30047
30048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItems",kwnames,&obj0)) goto fail;
30049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30051 {
30052 PyThreadState* __tstate = wxPyBeginAllowThreads();
30053 result = (PyObject *)wxMenu_GetMenuItems(arg1);
30054
30055 wxPyEndAllowThreads(__tstate);
30056 if (PyErr_Occurred()) SWIG_fail;
30057 }
30058 resultobj = result;
30059 return resultobj;
30060 fail:
30061 return NULL;
30062}
30063
30064
30065static PyObject *_wrap_Menu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) {
30066 PyObject *resultobj;
30067 wxMenu *arg1 = (wxMenu *) 0 ;
30068 wxString *arg2 = 0 ;
30069 int result;
30070 bool temp2 = False ;
30071 PyObject * obj0 = 0 ;
30072 PyObject * obj1 = 0 ;
30073 char *kwnames[] = {
30074 (char *) "self",(char *) "item", NULL
30075 };
30076
30077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) goto fail;
30078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30080 {
30081 arg2 = wxString_in_helper(obj1);
30082 if (arg2 == NULL) SWIG_fail;
30083 temp2 = True;
30084 }
30085 {
30086 PyThreadState* __tstate = wxPyBeginAllowThreads();
30087 result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2);
30088
30089 wxPyEndAllowThreads(__tstate);
30090 if (PyErr_Occurred()) SWIG_fail;
30091 }
30092 resultobj = SWIG_FromInt((int)result);
30093 {
30094 if (temp2)
30095 delete arg2;
30096 }
30097 return resultobj;
30098 fail:
30099 {
30100 if (temp2)
30101 delete arg2;
30102 }
30103 return NULL;
30104}
30105
30106
30107static PyObject *_wrap_Menu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) {
30108 PyObject *resultobj;
30109 wxMenu *arg1 = (wxMenu *) 0 ;
30110 int arg2 ;
30111 wxMenuItem *result;
30112 PyObject * obj0 = 0 ;
30113 PyObject * obj1 = 0 ;
30114 char *kwnames[] = {
30115 (char *) "self",(char *) "id", NULL
30116 };
30117
30118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemById",kwnames,&obj0,&obj1)) goto fail;
30119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30121 arg2 = (int) SWIG_AsInt(obj1);
30122 if (PyErr_Occurred()) SWIG_fail;
30123 {
30124 PyThreadState* __tstate = wxPyBeginAllowThreads();
30125 result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2);
30126
30127 wxPyEndAllowThreads(__tstate);
30128 if (PyErr_Occurred()) SWIG_fail;
30129 }
30130 {
30131 resultobj = wxPyMake_wxObject(result);
30132 }
30133 return resultobj;
30134 fail:
30135 return NULL;
30136}
30137
30138
30139static PyObject *_wrap_Menu_FindItemByPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
30140 PyObject *resultobj;
30141 wxMenu *arg1 = (wxMenu *) 0 ;
30142 size_t arg2 ;
30143 wxMenuItem *result;
30144 PyObject * obj0 = 0 ;
30145 PyObject * obj1 = 0 ;
30146 char *kwnames[] = {
30147 (char *) "self",(char *) "position", NULL
30148 };
30149
30150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) goto fail;
30151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30153 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
30154 if (PyErr_Occurred()) SWIG_fail;
30155 {
30156 PyThreadState* __tstate = wxPyBeginAllowThreads();
30157 result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2);
30158
30159 wxPyEndAllowThreads(__tstate);
30160 if (PyErr_Occurred()) SWIG_fail;
30161 }
30162 {
30163 resultobj = wxPyMake_wxObject(result);
30164 }
30165 return resultobj;
30166 fail:
30167 return NULL;
30168}
30169
30170
30171static PyObject *_wrap_Menu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
30172 PyObject *resultobj;
30173 wxMenu *arg1 = (wxMenu *) 0 ;
30174 int arg2 ;
30175 bool arg3 ;
30176 PyObject * obj0 = 0 ;
30177 PyObject * obj1 = 0 ;
30178 PyObject * obj2 = 0 ;
30179 char *kwnames[] = {
30180 (char *) "self",(char *) "id",(char *) "enable", NULL
30181 };
30182
30183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail;
30184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30186 arg2 = (int) SWIG_AsInt(obj1);
30187 if (PyErr_Occurred()) SWIG_fail;
30188 arg3 = (bool) SWIG_AsBool(obj2);
30189 if (PyErr_Occurred()) SWIG_fail;
30190 {
30191 PyThreadState* __tstate = wxPyBeginAllowThreads();
30192 (arg1)->Enable(arg2,arg3);
30193
30194 wxPyEndAllowThreads(__tstate);
30195 if (PyErr_Occurred()) SWIG_fail;
30196 }
30197 Py_INCREF(Py_None); resultobj = Py_None;
30198 return resultobj;
30199 fail:
30200 return NULL;
30201}
30202
30203
30204static PyObject *_wrap_Menu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
30205 PyObject *resultobj;
30206 wxMenu *arg1 = (wxMenu *) 0 ;
30207 int arg2 ;
30208 bool result;
30209 PyObject * obj0 = 0 ;
30210 PyObject * obj1 = 0 ;
30211 char *kwnames[] = {
30212 (char *) "self",(char *) "id", NULL
30213 };
30214
30215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsEnabled",kwnames,&obj0,&obj1)) goto fail;
30216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30218 arg2 = (int) SWIG_AsInt(obj1);
30219 if (PyErr_Occurred()) SWIG_fail;
30220 {
30221 PyThreadState* __tstate = wxPyBeginAllowThreads();
30222 result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2);
30223
30224 wxPyEndAllowThreads(__tstate);
30225 if (PyErr_Occurred()) SWIG_fail;
30226 }
30227 {
30228 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30229 }
30230 return resultobj;
30231 fail:
30232 return NULL;
30233}
30234
30235
30236static PyObject *_wrap_Menu_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
30237 PyObject *resultobj;
30238 wxMenu *arg1 = (wxMenu *) 0 ;
30239 int arg2 ;
30240 bool arg3 ;
30241 PyObject * obj0 = 0 ;
30242 PyObject * obj1 = 0 ;
30243 PyObject * obj2 = 0 ;
30244 char *kwnames[] = {
30245 (char *) "self",(char *) "id",(char *) "check", NULL
30246 };
30247
30248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Check",kwnames,&obj0,&obj1,&obj2)) goto fail;
30249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30251 arg2 = (int) SWIG_AsInt(obj1);
30252 if (PyErr_Occurred()) SWIG_fail;
30253 arg3 = (bool) SWIG_AsBool(obj2);
30254 if (PyErr_Occurred()) SWIG_fail;
30255 {
30256 PyThreadState* __tstate = wxPyBeginAllowThreads();
30257 (arg1)->Check(arg2,arg3);
30258
30259 wxPyEndAllowThreads(__tstate);
30260 if (PyErr_Occurred()) SWIG_fail;
30261 }
30262 Py_INCREF(Py_None); resultobj = Py_None;
30263 return resultobj;
30264 fail:
30265 return NULL;
30266}
30267
30268
30269static PyObject *_wrap_Menu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
30270 PyObject *resultobj;
30271 wxMenu *arg1 = (wxMenu *) 0 ;
30272 int arg2 ;
30273 bool result;
30274 PyObject * obj0 = 0 ;
30275 PyObject * obj1 = 0 ;
30276 char *kwnames[] = {
30277 (char *) "self",(char *) "id", NULL
30278 };
30279
30280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsChecked",kwnames,&obj0,&obj1)) goto fail;
30281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30283 arg2 = (int) SWIG_AsInt(obj1);
30284 if (PyErr_Occurred()) SWIG_fail;
30285 {
30286 PyThreadState* __tstate = wxPyBeginAllowThreads();
30287 result = (bool)((wxMenu const *)arg1)->IsChecked(arg2);
30288
30289 wxPyEndAllowThreads(__tstate);
30290 if (PyErr_Occurred()) SWIG_fail;
30291 }
30292 {
30293 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30294 }
30295 return resultobj;
30296 fail:
30297 return NULL;
30298}
30299
30300
30301static PyObject *_wrap_Menu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
30302 PyObject *resultobj;
30303 wxMenu *arg1 = (wxMenu *) 0 ;
30304 int arg2 ;
30305 wxString *arg3 = 0 ;
30306 bool temp3 = False ;
30307 PyObject * obj0 = 0 ;
30308 PyObject * obj1 = 0 ;
30309 PyObject * obj2 = 0 ;
30310 char *kwnames[] = {
30311 (char *) "self",(char *) "id",(char *) "label", NULL
30312 };
30313
30314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail;
30315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30317 arg2 = (int) SWIG_AsInt(obj1);
30318 if (PyErr_Occurred()) SWIG_fail;
30319 {
30320 arg3 = wxString_in_helper(obj2);
30321 if (arg3 == NULL) SWIG_fail;
30322 temp3 = True;
30323 }
30324 {
30325 PyThreadState* __tstate = wxPyBeginAllowThreads();
30326 (arg1)->SetLabel(arg2,(wxString const &)*arg3);
30327
30328 wxPyEndAllowThreads(__tstate);
30329 if (PyErr_Occurred()) SWIG_fail;
30330 }
30331 Py_INCREF(Py_None); resultobj = Py_None;
30332 {
30333 if (temp3)
30334 delete arg3;
30335 }
30336 return resultobj;
30337 fail:
30338 {
30339 if (temp3)
30340 delete arg3;
30341 }
30342 return NULL;
30343}
30344
30345
30346static PyObject *_wrap_Menu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
30347 PyObject *resultobj;
30348 wxMenu *arg1 = (wxMenu *) 0 ;
30349 int arg2 ;
30350 wxString result;
30351 PyObject * obj0 = 0 ;
30352 PyObject * obj1 = 0 ;
30353 char *kwnames[] = {
30354 (char *) "self",(char *) "id", NULL
30355 };
30356
30357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetLabel",kwnames,&obj0,&obj1)) goto fail;
30358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30360 arg2 = (int) SWIG_AsInt(obj1);
30361 if (PyErr_Occurred()) SWIG_fail;
30362 {
30363 PyThreadState* __tstate = wxPyBeginAllowThreads();
30364 result = ((wxMenu const *)arg1)->GetLabel(arg2);
30365
30366 wxPyEndAllowThreads(__tstate);
30367 if (PyErr_Occurred()) SWIG_fail;
30368 }
30369 {
30370#if wxUSE_UNICODE
30371 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30372#else
30373 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30374#endif
30375 }
30376 return resultobj;
30377 fail:
30378 return NULL;
30379}
30380
30381
30382static PyObject *_wrap_Menu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
30383 PyObject *resultobj;
30384 wxMenu *arg1 = (wxMenu *) 0 ;
30385 int arg2 ;
30386 wxString *arg3 = 0 ;
30387 bool temp3 = False ;
30388 PyObject * obj0 = 0 ;
30389 PyObject * obj1 = 0 ;
30390 PyObject * obj2 = 0 ;
30391 char *kwnames[] = {
30392 (char *) "self",(char *) "id",(char *) "helpString", NULL
30393 };
30394
30395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail;
30396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30398 arg2 = (int) SWIG_AsInt(obj1);
30399 if (PyErr_Occurred()) SWIG_fail;
30400 {
30401 arg3 = wxString_in_helper(obj2);
30402 if (arg3 == NULL) SWIG_fail;
30403 temp3 = True;
30404 }
30405 {
30406 PyThreadState* __tstate = wxPyBeginAllowThreads();
30407 (arg1)->SetHelpString(arg2,(wxString const &)*arg3);
30408
30409 wxPyEndAllowThreads(__tstate);
30410 if (PyErr_Occurred()) SWIG_fail;
30411 }
30412 Py_INCREF(Py_None); resultobj = Py_None;
30413 {
30414 if (temp3)
30415 delete arg3;
30416 }
30417 return resultobj;
30418 fail:
30419 {
30420 if (temp3)
30421 delete arg3;
30422 }
30423 return NULL;
30424}
30425
30426
30427static PyObject *_wrap_Menu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
30428 PyObject *resultobj;
30429 wxMenu *arg1 = (wxMenu *) 0 ;
30430 int arg2 ;
30431 wxString result;
30432 PyObject * obj0 = 0 ;
30433 PyObject * obj1 = 0 ;
30434 char *kwnames[] = {
30435 (char *) "self",(char *) "id", NULL
30436 };
30437
30438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetHelpString",kwnames,&obj0,&obj1)) goto fail;
30439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30441 arg2 = (int) SWIG_AsInt(obj1);
30442 if (PyErr_Occurred()) SWIG_fail;
30443 {
30444 PyThreadState* __tstate = wxPyBeginAllowThreads();
30445 result = ((wxMenu const *)arg1)->GetHelpString(arg2);
30446
30447 wxPyEndAllowThreads(__tstate);
30448 if (PyErr_Occurred()) SWIG_fail;
30449 }
30450 {
30451#if wxUSE_UNICODE
30452 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30453#else
30454 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30455#endif
30456 }
30457 return resultobj;
30458 fail:
30459 return NULL;
30460}
30461
30462
30463static PyObject *_wrap_Menu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
30464 PyObject *resultobj;
30465 wxMenu *arg1 = (wxMenu *) 0 ;
30466 wxString *arg2 = 0 ;
30467 bool temp2 = False ;
30468 PyObject * obj0 = 0 ;
30469 PyObject * obj1 = 0 ;
30470 char *kwnames[] = {
30471 (char *) "self",(char *) "title", NULL
30472 };
30473
30474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) goto fail;
30475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30477 {
30478 arg2 = wxString_in_helper(obj1);
30479 if (arg2 == NULL) SWIG_fail;
30480 temp2 = True;
30481 }
30482 {
30483 PyThreadState* __tstate = wxPyBeginAllowThreads();
30484 (arg1)->SetTitle((wxString const &)*arg2);
30485
30486 wxPyEndAllowThreads(__tstate);
30487 if (PyErr_Occurred()) SWIG_fail;
30488 }
30489 Py_INCREF(Py_None); resultobj = Py_None;
30490 {
30491 if (temp2)
30492 delete arg2;
30493 }
30494 return resultobj;
30495 fail:
30496 {
30497 if (temp2)
30498 delete arg2;
30499 }
30500 return NULL;
30501}
30502
30503
30504static PyObject *_wrap_Menu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
30505 PyObject *resultobj;
30506 wxMenu *arg1 = (wxMenu *) 0 ;
30507 wxString result;
30508 PyObject * obj0 = 0 ;
30509 char *kwnames[] = {
30510 (char *) "self", NULL
30511 };
30512
30513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetTitle",kwnames,&obj0)) goto fail;
30514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30516 {
30517 PyThreadState* __tstate = wxPyBeginAllowThreads();
30518 result = ((wxMenu const *)arg1)->GetTitle();
30519
30520 wxPyEndAllowThreads(__tstate);
30521 if (PyErr_Occurred()) SWIG_fail;
30522 }
30523 {
30524#if wxUSE_UNICODE
30525 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30526#else
30527 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30528#endif
30529 }
30530 return resultobj;
30531 fail:
30532 return NULL;
30533}
30534
30535
30536static PyObject *_wrap_Menu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
30537 PyObject *resultobj;
30538 wxMenu *arg1 = (wxMenu *) 0 ;
30539 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
30540 PyObject * obj0 = 0 ;
30541 PyObject * obj1 = 0 ;
30542 char *kwnames[] = {
30543 (char *) "self",(char *) "handler", NULL
30544 };
30545
30546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) goto fail;
30547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30549 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
30550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30551 {
30552 PyThreadState* __tstate = wxPyBeginAllowThreads();
30553 (arg1)->SetEventHandler(arg2);
30554
30555 wxPyEndAllowThreads(__tstate);
30556 if (PyErr_Occurred()) SWIG_fail;
30557 }
30558 Py_INCREF(Py_None); resultobj = Py_None;
30559 return resultobj;
30560 fail:
30561 return NULL;
30562}
30563
30564
30565static PyObject *_wrap_Menu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
30566 PyObject *resultobj;
30567 wxMenu *arg1 = (wxMenu *) 0 ;
30568 wxEvtHandler *result;
30569 PyObject * obj0 = 0 ;
30570 char *kwnames[] = {
30571 (char *) "self", NULL
30572 };
30573
30574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetEventHandler",kwnames,&obj0)) goto fail;
30575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30577 {
30578 PyThreadState* __tstate = wxPyBeginAllowThreads();
30579 result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler();
30580
30581 wxPyEndAllowThreads(__tstate);
30582 if (PyErr_Occurred()) SWIG_fail;
30583 }
30584 {
30585 resultobj = wxPyMake_wxObject(result);
30586 }
30587 return resultobj;
30588 fail:
30589 return NULL;
30590}
30591
30592
30593static PyObject *_wrap_Menu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
30594 PyObject *resultobj;
30595 wxMenu *arg1 = (wxMenu *) 0 ;
30596 wxWindow *arg2 = (wxWindow *) 0 ;
30597 PyObject * obj0 = 0 ;
30598 PyObject * obj1 = 0 ;
30599 char *kwnames[] = {
30600 (char *) "self",(char *) "win", NULL
30601 };
30602
30603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) goto fail;
30604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30606 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30608 {
30609 PyThreadState* __tstate = wxPyBeginAllowThreads();
30610 (arg1)->SetInvokingWindow(arg2);
30611
30612 wxPyEndAllowThreads(__tstate);
30613 if (PyErr_Occurred()) SWIG_fail;
30614 }
30615 Py_INCREF(Py_None); resultobj = Py_None;
30616 return resultobj;
30617 fail:
30618 return NULL;
30619}
30620
30621
30622static PyObject *_wrap_Menu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
30623 PyObject *resultobj;
30624 wxMenu *arg1 = (wxMenu *) 0 ;
30625 wxWindow *result;
30626 PyObject * obj0 = 0 ;
30627 char *kwnames[] = {
30628 (char *) "self", NULL
30629 };
30630
30631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetInvokingWindow",kwnames,&obj0)) goto fail;
30632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30634 {
30635 PyThreadState* __tstate = wxPyBeginAllowThreads();
30636 result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow();
30637
30638 wxPyEndAllowThreads(__tstate);
30639 if (PyErr_Occurred()) SWIG_fail;
30640 }
30641 {
30642 resultobj = wxPyMake_wxObject(result);
30643 }
30644 return resultobj;
30645 fail:
30646 return NULL;
30647}
30648
30649
30650static PyObject *_wrap_Menu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
30651 PyObject *resultobj;
30652 wxMenu *arg1 = (wxMenu *) 0 ;
30653 long result;
30654 PyObject * obj0 = 0 ;
30655 char *kwnames[] = {
30656 (char *) "self", NULL
30657 };
30658
30659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetStyle",kwnames,&obj0)) goto fail;
30660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30662 {
30663 PyThreadState* __tstate = wxPyBeginAllowThreads();
30664 result = (long)((wxMenu const *)arg1)->GetStyle();
30665
30666 wxPyEndAllowThreads(__tstate);
30667 if (PyErr_Occurred()) SWIG_fail;
30668 }
30669 resultobj = SWIG_FromLong((long)result);
30670 return resultobj;
30671 fail:
30672 return NULL;
30673}
30674
30675
30676static PyObject *_wrap_Menu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) {
30677 PyObject *resultobj;
30678 wxMenu *arg1 = (wxMenu *) 0 ;
30679 wxEvtHandler *arg2 = (wxEvtHandler *) NULL ;
30680 PyObject * obj0 = 0 ;
30681 PyObject * obj1 = 0 ;
30682 char *kwnames[] = {
30683 (char *) "self",(char *) "source", NULL
30684 };
30685
30686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) goto fail;
30687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30689 if (obj1) {
30690 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
30691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30692 }
30693 {
30694 PyThreadState* __tstate = wxPyBeginAllowThreads();
30695 (arg1)->UpdateUI(arg2);
30696
30697 wxPyEndAllowThreads(__tstate);
30698 if (PyErr_Occurred()) SWIG_fail;
30699 }
30700 Py_INCREF(Py_None); resultobj = Py_None;
30701 return resultobj;
30702 fail:
30703 return NULL;
30704}
30705
30706
30707static PyObject *_wrap_Menu_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) {
30708 PyObject *resultobj;
30709 wxMenu *arg1 = (wxMenu *) 0 ;
30710 wxMenuBar *result;
30711 PyObject * obj0 = 0 ;
30712 char *kwnames[] = {
30713 (char *) "self", NULL
30714 };
30715
30716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuBar",kwnames,&obj0)) goto fail;
30717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30719 {
30720 PyThreadState* __tstate = wxPyBeginAllowThreads();
30721 result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar();
30722
30723 wxPyEndAllowThreads(__tstate);
30724 if (PyErr_Occurred()) SWIG_fail;
30725 }
30726 {
30727 resultobj = wxPyMake_wxObject(result);
30728 }
30729 return resultobj;
30730 fail:
30731 return NULL;
30732}
30733
30734
30735static PyObject *_wrap_Menu_Attach(PyObject *self, PyObject *args, PyObject *kwargs) {
30736 PyObject *resultobj;
30737 wxMenu *arg1 = (wxMenu *) 0 ;
30738 wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ;
30739 PyObject * obj0 = 0 ;
30740 PyObject * obj1 = 0 ;
30741 char *kwnames[] = {
30742 (char *) "self",(char *) "menubar", NULL
30743 };
30744
30745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) goto fail;
30746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30748 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuBarBase,
30749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30750 {
30751 PyThreadState* __tstate = wxPyBeginAllowThreads();
30752 (arg1)->Attach(arg2);
30753
30754 wxPyEndAllowThreads(__tstate);
30755 if (PyErr_Occurred()) SWIG_fail;
30756 }
30757 Py_INCREF(Py_None); resultobj = Py_None;
30758 return resultobj;
30759 fail:
30760 return NULL;
30761}
30762
30763
30764static PyObject *_wrap_Menu_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
30765 PyObject *resultobj;
30766 wxMenu *arg1 = (wxMenu *) 0 ;
30767 PyObject * obj0 = 0 ;
30768 char *kwnames[] = {
30769 (char *) "self", NULL
30770 };
30771
30772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Detach",kwnames,&obj0)) goto fail;
30773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30775 {
30776 PyThreadState* __tstate = wxPyBeginAllowThreads();
30777 (arg1)->Detach();
30778
30779 wxPyEndAllowThreads(__tstate);
30780 if (PyErr_Occurred()) SWIG_fail;
30781 }
30782 Py_INCREF(Py_None); resultobj = Py_None;
30783 return resultobj;
30784 fail:
30785 return NULL;
30786}
30787
30788
30789static PyObject *_wrap_Menu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) {
30790 PyObject *resultobj;
30791 wxMenu *arg1 = (wxMenu *) 0 ;
30792 bool result;
30793 PyObject * obj0 = 0 ;
30794 char *kwnames[] = {
30795 (char *) "self", NULL
30796 };
30797
30798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_IsAttached",kwnames,&obj0)) goto fail;
30799 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30801 {
30802 PyThreadState* __tstate = wxPyBeginAllowThreads();
30803 result = (bool)((wxMenu const *)arg1)->IsAttached();
30804
30805 wxPyEndAllowThreads(__tstate);
30806 if (PyErr_Occurred()) SWIG_fail;
30807 }
30808 {
30809 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30810 }
30811 return resultobj;
30812 fail:
30813 return NULL;
30814}
30815
30816
30817static PyObject *_wrap_Menu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
30818 PyObject *resultobj;
30819 wxMenu *arg1 = (wxMenu *) 0 ;
30820 wxMenu *arg2 = (wxMenu *) 0 ;
30821 PyObject * obj0 = 0 ;
30822 PyObject * obj1 = 0 ;
30823 char *kwnames[] = {
30824 (char *) "self",(char *) "parent", NULL
30825 };
30826
30827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) goto fail;
30828 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30829 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30830 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
30831 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30832 {
30833 PyThreadState* __tstate = wxPyBeginAllowThreads();
30834 (arg1)->SetParent(arg2);
30835
30836 wxPyEndAllowThreads(__tstate);
30837 if (PyErr_Occurred()) SWIG_fail;
30838 }
30839 Py_INCREF(Py_None); resultobj = Py_None;
30840 return resultobj;
30841 fail:
30842 return NULL;
30843}
30844
30845
30846static PyObject *_wrap_Menu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
30847 PyObject *resultobj;
30848 wxMenu *arg1 = (wxMenu *) 0 ;
30849 wxMenu *result;
30850 PyObject * obj0 = 0 ;
30851 char *kwnames[] = {
30852 (char *) "self", NULL
30853 };
30854
30855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetParent",kwnames,&obj0)) goto fail;
30856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30858 {
30859 PyThreadState* __tstate = wxPyBeginAllowThreads();
30860 result = (wxMenu *)((wxMenu const *)arg1)->GetParent();
30861
30862 wxPyEndAllowThreads(__tstate);
30863 if (PyErr_Occurred()) SWIG_fail;
30864 }
30865 {
30866 resultobj = wxPyMake_wxObject(result);
30867 }
30868 return resultobj;
30869 fail:
30870 return NULL;
30871}
30872
30873
30874static PyObject * Menu_swigregister(PyObject *self, PyObject *args) {
30875 PyObject *obj;
30876 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30877 SWIG_TypeClientData(SWIGTYPE_p_wxMenu, obj);
30878 Py_INCREF(obj);
30879 return Py_BuildValue((char *)"");
30880}
30881static PyObject *_wrap_new_MenuBar(PyObject *self, PyObject *args, PyObject *kwargs) {
30882 PyObject *resultobj;
30883 long arg1 = (long) 0 ;
30884 wxMenuBar *result;
30885 PyObject * obj0 = 0 ;
30886 char *kwnames[] = {
30887 (char *) "style", NULL
30888 };
30889
30890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MenuBar",kwnames,&obj0)) goto fail;
30891 if (obj0) {
30892 arg1 = (long) SWIG_AsLong(obj0);
30893 if (PyErr_Occurred()) SWIG_fail;
30894 }
30895 {
0439c23b 30896 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
30897 PyThreadState* __tstate = wxPyBeginAllowThreads();
30898 result = (wxMenuBar *)new wxMenuBar(arg1);
30899
30900 wxPyEndAllowThreads(__tstate);
0439c23b 30901 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
30902 }
30903 {
30904 resultobj = wxPyMake_wxObject(result);
30905 }
30906 return resultobj;
30907 fail:
30908 return NULL;
30909}
30910
30911
30912static PyObject *_wrap_MenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
30913 PyObject *resultobj;
30914 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
30915 wxMenu *arg2 = (wxMenu *) 0 ;
30916 wxString *arg3 = 0 ;
30917 bool result;
30918 bool temp3 = False ;
30919 PyObject * obj0 = 0 ;
30920 PyObject * obj1 = 0 ;
30921 PyObject * obj2 = 0 ;
30922 char *kwnames[] = {
30923 (char *) "self",(char *) "menu",(char *) "title", NULL
30924 };
30925
30926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) goto fail;
30927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
30928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30929 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
30930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30931 {
30932 arg3 = wxString_in_helper(obj2);
30933 if (arg3 == NULL) SWIG_fail;
30934 temp3 = True;
30935 }
30936 {
30937 PyThreadState* __tstate = wxPyBeginAllowThreads();
30938 result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3);
30939
30940 wxPyEndAllowThreads(__tstate);
30941 if (PyErr_Occurred()) SWIG_fail;
30942 }
30943 {
30944 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30945 }
30946 {
30947 if (temp3)
30948 delete arg3;
30949 }
30950 return resultobj;
30951 fail:
30952 {
30953 if (temp3)
30954 delete arg3;
30955 }
30956 return NULL;
30957}
30958
30959
30960static PyObject *_wrap_MenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
30961 PyObject *resultobj;
30962 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
30963 size_t arg2 ;
30964 wxMenu *arg3 = (wxMenu *) 0 ;
30965 wxString *arg4 = 0 ;
30966 bool result;
30967 bool temp4 = False ;
30968 PyObject * obj0 = 0 ;
30969 PyObject * obj1 = 0 ;
30970 PyObject * obj2 = 0 ;
30971 PyObject * obj3 = 0 ;
30972 char *kwnames[] = {
30973 (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL
30974 };
30975
30976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
30977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
30978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30979 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
30980 if (PyErr_Occurred()) SWIG_fail;
30981 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu,
30982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30983 {
30984 arg4 = wxString_in_helper(obj3);
30985 if (arg4 == NULL) SWIG_fail;
30986 temp4 = True;
30987 }
30988 {
30989 PyThreadState* __tstate = wxPyBeginAllowThreads();
30990 result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4);
30991
30992 wxPyEndAllowThreads(__tstate);
30993 if (PyErr_Occurred()) SWIG_fail;
30994 }
30995 {
30996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30997 }
30998 {
30999 if (temp4)
31000 delete arg4;
31001 }
31002 return resultobj;
31003 fail:
31004 {
31005 if (temp4)
31006 delete arg4;
31007 }
31008 return NULL;
31009}
31010
31011
31012static PyObject *_wrap_MenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) {
31013 PyObject *resultobj;
31014 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31015 size_t result;
31016 PyObject * obj0 = 0 ;
31017 char *kwnames[] = {
31018 (char *) "self", NULL
31019 };
31020
31021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetMenuCount",kwnames,&obj0)) goto fail;
31022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31024 {
31025 PyThreadState* __tstate = wxPyBeginAllowThreads();
31026 result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount();
31027
31028 wxPyEndAllowThreads(__tstate);
31029 if (PyErr_Occurred()) SWIG_fail;
31030 }
31031 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
31032 return resultobj;
31033 fail:
31034 return NULL;
31035}
31036
31037
31038static PyObject *_wrap_MenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
31039 PyObject *resultobj;
31040 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31041 size_t arg2 ;
31042 wxMenu *result;
31043 PyObject * obj0 = 0 ;
31044 PyObject * obj1 = 0 ;
31045 char *kwnames[] = {
31046 (char *) "self",(char *) "pos", NULL
31047 };
31048
31049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) goto fail;
31050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31052 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
31053 if (PyErr_Occurred()) SWIG_fail;
31054 {
31055 PyThreadState* __tstate = wxPyBeginAllowThreads();
31056 result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2);
31057
31058 wxPyEndAllowThreads(__tstate);
31059 if (PyErr_Occurred()) SWIG_fail;
31060 }
31061 {
31062 resultobj = wxPyMake_wxObject(result);
31063 }
31064 return resultobj;
31065 fail:
31066 return NULL;
31067}
31068
31069
31070static PyObject *_wrap_MenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
31071 PyObject *resultobj;
31072 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31073 size_t arg2 ;
31074 wxMenu *arg3 = (wxMenu *) 0 ;
31075 wxString *arg4 = 0 ;
31076 wxMenu *result;
31077 bool temp4 = False ;
31078 PyObject * obj0 = 0 ;
31079 PyObject * obj1 = 0 ;
31080 PyObject * obj2 = 0 ;
31081 PyObject * obj3 = 0 ;
31082 char *kwnames[] = {
31083 (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL
31084 };
31085
31086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
31087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31089 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
31090 if (PyErr_Occurred()) SWIG_fail;
31091 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu,
31092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31093 {
31094 arg4 = wxString_in_helper(obj3);
31095 if (arg4 == NULL) SWIG_fail;
31096 temp4 = True;
31097 }
31098 {
31099 PyThreadState* __tstate = wxPyBeginAllowThreads();
31100 result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
31101
31102 wxPyEndAllowThreads(__tstate);
31103 if (PyErr_Occurred()) SWIG_fail;
31104 }
31105 {
31106 resultobj = wxPyMake_wxObject(result);
31107 }
31108 {
31109 if (temp4)
31110 delete arg4;
31111 }
31112 return resultobj;
31113 fail:
31114 {
31115 if (temp4)
31116 delete arg4;
31117 }
31118 return NULL;
31119}
31120
31121
31122static PyObject *_wrap_MenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
31123 PyObject *resultobj;
31124 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31125 size_t arg2 ;
31126 wxMenu *result;
31127 PyObject * obj0 = 0 ;
31128 PyObject * obj1 = 0 ;
31129 char *kwnames[] = {
31130 (char *) "self",(char *) "pos", NULL
31131 };
31132
31133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) goto fail;
31134 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31136 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
31137 if (PyErr_Occurred()) SWIG_fail;
31138 {
31139 PyThreadState* __tstate = wxPyBeginAllowThreads();
31140 result = (wxMenu *)(arg1)->Remove(arg2);
31141
31142 wxPyEndAllowThreads(__tstate);
31143 if (PyErr_Occurred()) SWIG_fail;
31144 }
31145 {
31146 resultobj = wxPyMake_wxObject(result);
31147 }
31148 return resultobj;
31149 fail:
31150 return NULL;
31151}
31152
31153
31154static PyObject *_wrap_MenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) {
31155 PyObject *resultobj;
31156 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31157 size_t arg2 ;
31158 bool arg3 ;
31159 PyObject * obj0 = 0 ;
31160 PyObject * obj1 = 0 ;
31161 PyObject * obj2 = 0 ;
31162 char *kwnames[] = {
31163 (char *) "self",(char *) "pos",(char *) "enable", NULL
31164 };
31165
31166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) goto fail;
31167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31169 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
31170 if (PyErr_Occurred()) SWIG_fail;
31171 arg3 = (bool) SWIG_AsBool(obj2);
31172 if (PyErr_Occurred()) SWIG_fail;
31173 {
31174 PyThreadState* __tstate = wxPyBeginAllowThreads();
31175 (arg1)->EnableTop(arg2,arg3);
31176
31177 wxPyEndAllowThreads(__tstate);
31178 if (PyErr_Occurred()) SWIG_fail;
31179 }
31180 Py_INCREF(Py_None); resultobj = Py_None;
31181 return resultobj;
31182 fail:
31183 return NULL;
31184}
31185
31186
31187static PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *self, PyObject *args, PyObject *kwargs) {
31188 PyObject *resultobj;
31189 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31190 size_t arg2 ;
31191 bool result;
31192 PyObject * obj0 = 0 ;
31193 PyObject * obj1 = 0 ;
31194 char *kwnames[] = {
31195 (char *) "self",(char *) "pos", NULL
31196 };
31197
31198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) goto fail;
31199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31201 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
31202 if (PyErr_Occurred()) SWIG_fail;
31203 {
31204 PyThreadState* __tstate = wxPyBeginAllowThreads();
31205 result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2);
31206
31207 wxPyEndAllowThreads(__tstate);
31208 if (PyErr_Occurred()) SWIG_fail;
31209 }
31210 {
31211 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31212 }
31213 return resultobj;
31214 fail:
31215 return NULL;
31216}
31217
31218
31219static PyObject *_wrap_MenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) {
31220 PyObject *resultobj;
31221 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31222 size_t arg2 ;
31223 wxString *arg3 = 0 ;
31224 bool temp3 = False ;
31225 PyObject * obj0 = 0 ;
31226 PyObject * obj1 = 0 ;
31227 PyObject * obj2 = 0 ;
31228 char *kwnames[] = {
31229 (char *) "self",(char *) "pos",(char *) "label", NULL
31230 };
31231
31232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) goto fail;
31233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31235 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
31236 if (PyErr_Occurred()) SWIG_fail;
31237 {
31238 arg3 = wxString_in_helper(obj2);
31239 if (arg3 == NULL) SWIG_fail;
31240 temp3 = True;
31241 }
31242 {
31243 PyThreadState* __tstate = wxPyBeginAllowThreads();
31244 (arg1)->SetLabelTop(arg2,(wxString const &)*arg3);
31245
31246 wxPyEndAllowThreads(__tstate);
31247 if (PyErr_Occurred()) SWIG_fail;
31248 }
31249 Py_INCREF(Py_None); resultobj = Py_None;
31250 {
31251 if (temp3)
31252 delete arg3;
31253 }
31254 return resultobj;
31255 fail:
31256 {
31257 if (temp3)
31258 delete arg3;
31259 }
31260 return NULL;
31261}
31262
31263
31264static PyObject *_wrap_MenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) {
31265 PyObject *resultobj;
31266 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31267 size_t arg2 ;
31268 wxString result;
31269 PyObject * obj0 = 0 ;
31270 PyObject * obj1 = 0 ;
31271 char *kwnames[] = {
31272 (char *) "self",(char *) "pos", NULL
31273 };
31274
31275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) goto fail;
31276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31278 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
31279 if (PyErr_Occurred()) SWIG_fail;
31280 {
31281 PyThreadState* __tstate = wxPyBeginAllowThreads();
31282 result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2);
31283
31284 wxPyEndAllowThreads(__tstate);
31285 if (PyErr_Occurred()) SWIG_fail;
31286 }
31287 {
31288#if wxUSE_UNICODE
31289 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
31290#else
31291 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
31292#endif
31293 }
31294 return resultobj;
31295 fail:
31296 return NULL;
31297}
31298
31299
31300static PyObject *_wrap_MenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) {
31301 PyObject *resultobj;
31302 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31303 wxString *arg2 = 0 ;
31304 wxString *arg3 = 0 ;
31305 int result;
31306 bool temp2 = False ;
31307 bool temp3 = False ;
31308 PyObject * obj0 = 0 ;
31309 PyObject * obj1 = 0 ;
31310 PyObject * obj2 = 0 ;
31311 char *kwnames[] = {
31312 (char *) "self",(char *) "menu",(char *) "item", NULL
31313 };
31314
31315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
31316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31318 {
31319 arg2 = wxString_in_helper(obj1);
31320 if (arg2 == NULL) SWIG_fail;
31321 temp2 = True;
31322 }
31323 {
31324 arg3 = wxString_in_helper(obj2);
31325 if (arg3 == NULL) SWIG_fail;
31326 temp3 = True;
31327 }
31328 {
31329 PyThreadState* __tstate = wxPyBeginAllowThreads();
31330 result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3);
31331
31332 wxPyEndAllowThreads(__tstate);
31333 if (PyErr_Occurred()) SWIG_fail;
31334 }
31335 resultobj = SWIG_FromInt((int)result);
31336 {
31337 if (temp2)
31338 delete arg2;
31339 }
31340 {
31341 if (temp3)
31342 delete arg3;
31343 }
31344 return resultobj;
31345 fail:
31346 {
31347 if (temp2)
31348 delete arg2;
31349 }
31350 {
31351 if (temp3)
31352 delete arg3;
31353 }
31354 return NULL;
31355}
31356
31357
31358static PyObject *_wrap_MenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) {
31359 PyObject *resultobj;
31360 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31361 int arg2 ;
31362 wxMenuItem *result;
31363 PyObject * obj0 = 0 ;
31364 PyObject * obj1 = 0 ;
31365 char *kwnames[] = {
31366 (char *) "self",(char *) "id", NULL
31367 };
31368
31369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindItemById",kwnames,&obj0,&obj1)) goto fail;
31370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31372 arg2 = (int) SWIG_AsInt(obj1);
31373 if (PyErr_Occurred()) SWIG_fail;
31374 {
31375 PyThreadState* __tstate = wxPyBeginAllowThreads();
31376 result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2);
31377
31378 wxPyEndAllowThreads(__tstate);
31379 if (PyErr_Occurred()) SWIG_fail;
31380 }
31381 {
31382 resultobj = wxPyMake_wxObject(result);
31383 }
31384 return resultobj;
31385 fail:
31386 return NULL;
31387}
31388
31389
31390static PyObject *_wrap_MenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
31391 PyObject *resultobj;
31392 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31393 wxString *arg2 = 0 ;
31394 int result;
31395 bool temp2 = False ;
31396 PyObject * obj0 = 0 ;
31397 PyObject * obj1 = 0 ;
31398 char *kwnames[] = {
31399 (char *) "self",(char *) "title", NULL
31400 };
31401
31402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) goto fail;
31403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31405 {
31406 arg2 = wxString_in_helper(obj1);
31407 if (arg2 == NULL) SWIG_fail;
31408 temp2 = True;
31409 }
31410 {
31411 PyThreadState* __tstate = wxPyBeginAllowThreads();
31412 result = (int)((wxMenuBar const *)arg1)->FindMenu((wxString const &)*arg2);
31413
31414 wxPyEndAllowThreads(__tstate);
31415 if (PyErr_Occurred()) SWIG_fail;
31416 }
31417 resultobj = SWIG_FromInt((int)result);
31418 {
31419 if (temp2)
31420 delete arg2;
31421 }
31422 return resultobj;
31423 fail:
31424 {
31425 if (temp2)
31426 delete arg2;
31427 }
31428 return NULL;
31429}
31430
31431
31432static PyObject *_wrap_MenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
31433 PyObject *resultobj;
31434 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31435 int arg2 ;
31436 bool arg3 ;
31437 PyObject * obj0 = 0 ;
31438 PyObject * obj1 = 0 ;
31439 PyObject * obj2 = 0 ;
31440 char *kwnames[] = {
31441 (char *) "self",(char *) "id",(char *) "enable", NULL
31442 };
31443
31444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail;
31445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31447 arg2 = (int) SWIG_AsInt(obj1);
31448 if (PyErr_Occurred()) SWIG_fail;
31449 arg3 = (bool) SWIG_AsBool(obj2);
31450 if (PyErr_Occurred()) SWIG_fail;
31451 {
31452 PyThreadState* __tstate = wxPyBeginAllowThreads();
31453 (arg1)->Enable(arg2,arg3);
31454
31455 wxPyEndAllowThreads(__tstate);
31456 if (PyErr_Occurred()) SWIG_fail;
31457 }
31458 Py_INCREF(Py_None); resultobj = Py_None;
31459 return resultobj;
31460 fail:
31461 return NULL;
31462}
31463
31464
31465static PyObject *_wrap_MenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
31466 PyObject *resultobj;
31467 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31468 int arg2 ;
31469 bool arg3 ;
31470 PyObject * obj0 = 0 ;
31471 PyObject * obj1 = 0 ;
31472 PyObject * obj2 = 0 ;
31473 char *kwnames[] = {
31474 (char *) "self",(char *) "id",(char *) "check", NULL
31475 };
31476
31477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Check",kwnames,&obj0,&obj1,&obj2)) goto fail;
31478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31480 arg2 = (int) SWIG_AsInt(obj1);
31481 if (PyErr_Occurred()) SWIG_fail;
31482 arg3 = (bool) SWIG_AsBool(obj2);
31483 if (PyErr_Occurred()) SWIG_fail;
31484 {
31485 PyThreadState* __tstate = wxPyBeginAllowThreads();
31486 (arg1)->Check(arg2,arg3);
31487
31488 wxPyEndAllowThreads(__tstate);
31489 if (PyErr_Occurred()) SWIG_fail;
31490 }
31491 Py_INCREF(Py_None); resultobj = Py_None;
31492 return resultobj;
31493 fail:
31494 return NULL;
31495}
31496
31497
31498static PyObject *_wrap_MenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
31499 PyObject *resultobj;
31500 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31501 int arg2 ;
31502 bool result;
31503 PyObject * obj0 = 0 ;
31504 PyObject * obj1 = 0 ;
31505 char *kwnames[] = {
31506 (char *) "self",(char *) "id", NULL
31507 };
31508
31509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsChecked",kwnames,&obj0,&obj1)) goto fail;
31510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31512 arg2 = (int) SWIG_AsInt(obj1);
31513 if (PyErr_Occurred()) SWIG_fail;
31514 {
31515 PyThreadState* __tstate = wxPyBeginAllowThreads();
31516 result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2);
31517
31518 wxPyEndAllowThreads(__tstate);
31519 if (PyErr_Occurred()) SWIG_fail;
31520 }
31521 {
31522 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31523 }
31524 return resultobj;
31525 fail:
31526 return NULL;
31527}
31528
31529
31530static PyObject *_wrap_MenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
31531 PyObject *resultobj;
31532 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31533 int arg2 ;
31534 bool result;
31535 PyObject * obj0 = 0 ;
31536 PyObject * obj1 = 0 ;
31537 char *kwnames[] = {
31538 (char *) "self",(char *) "id", NULL
31539 };
31540
31541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabled",kwnames,&obj0,&obj1)) goto fail;
31542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31544 arg2 = (int) SWIG_AsInt(obj1);
31545 if (PyErr_Occurred()) SWIG_fail;
31546 {
31547 PyThreadState* __tstate = wxPyBeginAllowThreads();
31548 result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2);
31549
31550 wxPyEndAllowThreads(__tstate);
31551 if (PyErr_Occurred()) SWIG_fail;
31552 }
31553 {
31554 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31555 }
31556 return resultobj;
31557 fail:
31558 return NULL;
31559}
31560
31561
31562static PyObject *_wrap_MenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
31563 PyObject *resultobj;
31564 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31565 int arg2 ;
31566 wxString *arg3 = 0 ;
31567 bool temp3 = False ;
31568 PyObject * obj0 = 0 ;
31569 PyObject * obj1 = 0 ;
31570 PyObject * obj2 = 0 ;
31571 char *kwnames[] = {
31572 (char *) "self",(char *) "id",(char *) "label", NULL
31573 };
31574
31575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail;
31576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31578 arg2 = (int) SWIG_AsInt(obj1);
31579 if (PyErr_Occurred()) SWIG_fail;
31580 {
31581 arg3 = wxString_in_helper(obj2);
31582 if (arg3 == NULL) SWIG_fail;
31583 temp3 = True;
31584 }
31585 {
31586 PyThreadState* __tstate = wxPyBeginAllowThreads();
31587 (arg1)->SetLabel(arg2,(wxString const &)*arg3);
31588
31589 wxPyEndAllowThreads(__tstate);
31590 if (PyErr_Occurred()) SWIG_fail;
31591 }
31592 Py_INCREF(Py_None); resultobj = Py_None;
31593 {
31594 if (temp3)
31595 delete arg3;
31596 }
31597 return resultobj;
31598 fail:
31599 {
31600 if (temp3)
31601 delete arg3;
31602 }
31603 return NULL;
31604}
31605
31606
31607static PyObject *_wrap_MenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
31608 PyObject *resultobj;
31609 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31610 int arg2 ;
31611 wxString result;
31612 PyObject * obj0 = 0 ;
31613 PyObject * obj1 = 0 ;
31614 char *kwnames[] = {
31615 (char *) "self",(char *) "id", NULL
31616 };
31617
31618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabel",kwnames,&obj0,&obj1)) goto fail;
31619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31621 arg2 = (int) SWIG_AsInt(obj1);
31622 if (PyErr_Occurred()) SWIG_fail;
31623 {
31624 PyThreadState* __tstate = wxPyBeginAllowThreads();
31625 result = ((wxMenuBar const *)arg1)->GetLabel(arg2);
31626
31627 wxPyEndAllowThreads(__tstate);
31628 if (PyErr_Occurred()) SWIG_fail;
31629 }
31630 {
31631#if wxUSE_UNICODE
31632 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
31633#else
31634 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
31635#endif
31636 }
31637 return resultobj;
31638 fail:
31639 return NULL;
31640}
31641
31642
31643static PyObject *_wrap_MenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
31644 PyObject *resultobj;
31645 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31646 int arg2 ;
31647 wxString *arg3 = 0 ;
31648 bool temp3 = False ;
31649 PyObject * obj0 = 0 ;
31650 PyObject * obj1 = 0 ;
31651 PyObject * obj2 = 0 ;
31652 char *kwnames[] = {
31653 (char *) "self",(char *) "id",(char *) "helpString", NULL
31654 };
31655
31656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail;
31657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31659 arg2 = (int) SWIG_AsInt(obj1);
31660 if (PyErr_Occurred()) SWIG_fail;
31661 {
31662 arg3 = wxString_in_helper(obj2);
31663 if (arg3 == NULL) SWIG_fail;
31664 temp3 = True;
31665 }
31666 {
31667 PyThreadState* __tstate = wxPyBeginAllowThreads();
31668 (arg1)->SetHelpString(arg2,(wxString const &)*arg3);
31669
31670 wxPyEndAllowThreads(__tstate);
31671 if (PyErr_Occurred()) SWIG_fail;
31672 }
31673 Py_INCREF(Py_None); resultobj = Py_None;
31674 {
31675 if (temp3)
31676 delete arg3;
31677 }
31678 return resultobj;
31679 fail:
31680 {
31681 if (temp3)
31682 delete arg3;
31683 }
31684 return NULL;
31685}
31686
31687
31688static PyObject *_wrap_MenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
31689 PyObject *resultobj;
31690 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31691 int arg2 ;
31692 wxString result;
31693 PyObject * obj0 = 0 ;
31694 PyObject * obj1 = 0 ;
31695 char *kwnames[] = {
31696 (char *) "self",(char *) "id", NULL
31697 };
31698
31699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetHelpString",kwnames,&obj0,&obj1)) goto fail;
31700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31702 arg2 = (int) SWIG_AsInt(obj1);
31703 if (PyErr_Occurred()) SWIG_fail;
31704 {
31705 PyThreadState* __tstate = wxPyBeginAllowThreads();
31706 result = ((wxMenuBar const *)arg1)->GetHelpString(arg2);
31707
31708 wxPyEndAllowThreads(__tstate);
31709 if (PyErr_Occurred()) SWIG_fail;
31710 }
31711 {
31712#if wxUSE_UNICODE
31713 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
31714#else
31715 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
31716#endif
31717 }
31718 return resultobj;
31719 fail:
31720 return NULL;
31721}
31722
31723
31724static PyObject *_wrap_MenuBar_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
31725 PyObject *resultobj;
31726 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31727 wxFrame *result;
31728 PyObject * obj0 = 0 ;
31729 char *kwnames[] = {
31730 (char *) "self", NULL
31731 };
31732
31733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetFrame",kwnames,&obj0)) goto fail;
31734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31736 {
31737 PyThreadState* __tstate = wxPyBeginAllowThreads();
31738 result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame();
31739
31740 wxPyEndAllowThreads(__tstate);
31741 if (PyErr_Occurred()) SWIG_fail;
31742 }
31743 {
31744 resultobj = wxPyMake_wxObject(result);
31745 }
31746 return resultobj;
31747 fail:
31748 return NULL;
31749}
31750
31751
31752static PyObject *_wrap_MenuBar_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) {
31753 PyObject *resultobj;
31754 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31755 bool result;
31756 PyObject * obj0 = 0 ;
31757 char *kwnames[] = {
31758 (char *) "self", NULL
31759 };
31760
31761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_IsAttached",kwnames,&obj0)) goto fail;
31762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31764 {
31765 PyThreadState* __tstate = wxPyBeginAllowThreads();
31766 result = (bool)((wxMenuBar const *)arg1)->IsAttached();
31767
31768 wxPyEndAllowThreads(__tstate);
31769 if (PyErr_Occurred()) SWIG_fail;
31770 }
31771 {
31772 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31773 }
31774 return resultobj;
31775 fail:
31776 return NULL;
31777}
31778
31779
31780static PyObject *_wrap_MenuBar_Attach(PyObject *self, PyObject *args, PyObject *kwargs) {
31781 PyObject *resultobj;
31782 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31783 wxFrame *arg2 = (wxFrame *) 0 ;
31784 PyObject * obj0 = 0 ;
31785 PyObject * obj1 = 0 ;
31786 char *kwnames[] = {
31787 (char *) "self",(char *) "frame", NULL
31788 };
31789
31790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) goto fail;
31791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31793 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame,
31794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31795 {
31796 PyThreadState* __tstate = wxPyBeginAllowThreads();
31797 (arg1)->Attach(arg2);
31798
31799 wxPyEndAllowThreads(__tstate);
31800 if (PyErr_Occurred()) SWIG_fail;
31801 }
31802 Py_INCREF(Py_None); resultobj = Py_None;
31803 return resultobj;
31804 fail:
31805 return NULL;
31806}
31807
31808
31809static PyObject *_wrap_MenuBar_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
31810 PyObject *resultobj;
31811 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31812 PyObject * obj0 = 0 ;
31813 char *kwnames[] = {
31814 (char *) "self", NULL
31815 };
31816
31817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_Detach",kwnames,&obj0)) goto fail;
31818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31820 {
31821 PyThreadState* __tstate = wxPyBeginAllowThreads();
31822 (arg1)->Detach();
31823
31824 wxPyEndAllowThreads(__tstate);
31825 if (PyErr_Occurred()) SWIG_fail;
31826 }
31827 Py_INCREF(Py_None); resultobj = Py_None;
31828 return resultobj;
31829 fail:
31830 return NULL;
31831}
31832
31833
31834static PyObject * MenuBar_swigregister(PyObject *self, PyObject *args) {
31835 PyObject *obj;
31836 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
31837 SWIG_TypeClientData(SWIGTYPE_p_wxMenuBar, obj);
31838 Py_INCREF(obj);
31839 return Py_BuildValue((char *)"");
31840}
31841static PyObject *_wrap_new_MenuItem(PyObject *self, PyObject *args, PyObject *kwargs) {
31842 PyObject *resultobj;
31843 wxMenu *arg1 = (wxMenu *) NULL ;
31844 int arg2 = (int) wxID_ANY ;
31845 wxString const &arg3_defvalue = wxPyEmptyString ;
31846 wxString *arg3 = (wxString *) &arg3_defvalue ;
31847 wxString const &arg4_defvalue = wxPyEmptyString ;
31848 wxString *arg4 = (wxString *) &arg4_defvalue ;
31849 int arg5 = (int) wxITEM_NORMAL ;
31850 wxMenu *arg6 = (wxMenu *) NULL ;
31851 wxMenuItem *result;
31852 bool temp3 = False ;
31853 bool temp4 = False ;
31854 PyObject * obj0 = 0 ;
31855 PyObject * obj1 = 0 ;
31856 PyObject * obj2 = 0 ;
31857 PyObject * obj3 = 0 ;
31858 PyObject * obj4 = 0 ;
31859 PyObject * obj5 = 0 ;
31860 char *kwnames[] = {
31861 (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL
31862 };
31863
31864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_MenuItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
31865 if (obj0) {
31866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
31867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31868 }
31869 if (obj1) {
31870 arg2 = (int) SWIG_AsInt(obj1);
31871 if (PyErr_Occurred()) SWIG_fail;
31872 }
31873 if (obj2) {
31874 {
31875 arg3 = wxString_in_helper(obj2);
31876 if (arg3 == NULL) SWIG_fail;
31877 temp3 = True;
31878 }
31879 }
31880 if (obj3) {
31881 {
31882 arg4 = wxString_in_helper(obj3);
31883 if (arg4 == NULL) SWIG_fail;
31884 temp4 = True;
31885 }
31886 }
31887 if (obj4) {
31888 arg5 = (wxItemKind) SWIG_AsInt(obj4);
31889 if (PyErr_Occurred()) SWIG_fail;
31890 }
31891 if (obj5) {
31892 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxMenu,
31893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31894 }
31895 {
31896 PyThreadState* __tstate = wxPyBeginAllowThreads();
31897 result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5,arg6);
31898
31899 wxPyEndAllowThreads(__tstate);
31900 if (PyErr_Occurred()) SWIG_fail;
31901 }
31902 {
31903 resultobj = wxPyMake_wxObject(result);
31904 }
31905 {
31906 if (temp3)
31907 delete arg3;
31908 }
31909 {
31910 if (temp4)
31911 delete arg4;
31912 }
31913 return resultobj;
31914 fail:
31915 {
31916 if (temp3)
31917 delete arg3;
31918 }
31919 {
31920 if (temp4)
31921 delete arg4;
31922 }
31923 return NULL;
31924}
31925
31926
31927static PyObject *_wrap_MenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
31928 PyObject *resultobj;
31929 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
31930 wxMenu *result;
31931 PyObject * obj0 = 0 ;
31932 char *kwnames[] = {
31933 (char *) "self", NULL
31934 };
31935
31936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMenu",kwnames,&obj0)) goto fail;
31937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
31938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31939 {
31940 PyThreadState* __tstate = wxPyBeginAllowThreads();
31941 result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu();
31942
31943 wxPyEndAllowThreads(__tstate);
31944 if (PyErr_Occurred()) SWIG_fail;
31945 }
31946 {
31947 resultobj = wxPyMake_wxObject(result);
31948 }
31949 return resultobj;
31950 fail:
31951 return NULL;
31952}
31953
31954
31955static PyObject *_wrap_MenuItem_SetMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
31956 PyObject *resultobj;
31957 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
31958 wxMenu *arg2 = (wxMenu *) 0 ;
31959 PyObject * obj0 = 0 ;
31960 PyObject * obj1 = 0 ;
31961 char *kwnames[] = {
31962 (char *) "self",(char *) "menu", NULL
31963 };
31964
31965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) goto fail;
31966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
31967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31968 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
31969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31970 {
31971 PyThreadState* __tstate = wxPyBeginAllowThreads();
31972 (arg1)->SetMenu(arg2);
31973
31974 wxPyEndAllowThreads(__tstate);
31975 if (PyErr_Occurred()) SWIG_fail;
31976 }
31977 Py_INCREF(Py_None); resultobj = Py_None;
31978 return resultobj;
31979 fail:
31980 return NULL;
31981}
31982
31983
31984static PyObject *_wrap_MenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
31985 PyObject *resultobj;
31986 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
31987 int arg2 ;
31988 PyObject * obj0 = 0 ;
31989 PyObject * obj1 = 0 ;
31990 char *kwnames[] = {
31991 (char *) "self",(char *) "id", NULL
31992 };
31993
31994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetId",kwnames,&obj0,&obj1)) goto fail;
31995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
31996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31997 arg2 = (int) SWIG_AsInt(obj1);
31998 if (PyErr_Occurred()) SWIG_fail;
31999 {
32000 PyThreadState* __tstate = wxPyBeginAllowThreads();
32001 (arg1)->SetId(arg2);
32002
32003 wxPyEndAllowThreads(__tstate);
32004 if (PyErr_Occurred()) SWIG_fail;
32005 }
32006 Py_INCREF(Py_None); resultobj = Py_None;
32007 return resultobj;
32008 fail:
32009 return NULL;
32010}
32011
32012
32013static PyObject *_wrap_MenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
32014 PyObject *resultobj;
32015 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32016 int result;
32017 PyObject * obj0 = 0 ;
32018 char *kwnames[] = {
32019 (char *) "self", NULL
32020 };
32021
32022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetId",kwnames,&obj0)) goto fail;
32023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32025 {
32026 PyThreadState* __tstate = wxPyBeginAllowThreads();
32027 result = (int)((wxMenuItem const *)arg1)->GetId();
32028
32029 wxPyEndAllowThreads(__tstate);
32030 if (PyErr_Occurred()) SWIG_fail;
32031 }
32032 resultobj = SWIG_FromInt((int)result);
32033 return resultobj;
32034 fail:
32035 return NULL;
32036}
32037
32038
32039static PyObject *_wrap_MenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
32040 PyObject *resultobj;
32041 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32042 bool result;
32043 PyObject * obj0 = 0 ;
32044 char *kwnames[] = {
32045 (char *) "self", NULL
32046 };
32047
32048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSeparator",kwnames,&obj0)) goto fail;
32049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32051 {
32052 PyThreadState* __tstate = wxPyBeginAllowThreads();
32053 result = (bool)((wxMenuItem const *)arg1)->IsSeparator();
32054
32055 wxPyEndAllowThreads(__tstate);
32056 if (PyErr_Occurred()) SWIG_fail;
32057 }
32058 {
32059 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32060 }
32061 return resultobj;
32062 fail:
32063 return NULL;
32064}
32065
32066
32067static PyObject *_wrap_MenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
32068 PyObject *resultobj;
32069 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32070 wxString *arg2 = 0 ;
32071 bool temp2 = False ;
32072 PyObject * obj0 = 0 ;
32073 PyObject * obj1 = 0 ;
32074 char *kwnames[] = {
32075 (char *) "self",(char *) "str", NULL
32076 };
32077
32078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) goto fail;
32079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32081 {
32082 arg2 = wxString_in_helper(obj1);
32083 if (arg2 == NULL) SWIG_fail;
32084 temp2 = True;
32085 }
32086 {
32087 PyThreadState* __tstate = wxPyBeginAllowThreads();
32088 (arg1)->SetText((wxString const &)*arg2);
32089
32090 wxPyEndAllowThreads(__tstate);
32091 if (PyErr_Occurred()) SWIG_fail;
32092 }
32093 Py_INCREF(Py_None); resultobj = Py_None;
32094 {
32095 if (temp2)
32096 delete arg2;
32097 }
32098 return resultobj;
32099 fail:
32100 {
32101 if (temp2)
32102 delete arg2;
32103 }
32104 return NULL;
32105}
32106
32107
32108static PyObject *_wrap_MenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
32109 PyObject *resultobj;
32110 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32111 wxString result;
32112 PyObject * obj0 = 0 ;
32113 char *kwnames[] = {
32114 (char *) "self", NULL
32115 };
32116
32117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabel",kwnames,&obj0)) goto fail;
32118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32120 {
32121 PyThreadState* __tstate = wxPyBeginAllowThreads();
32122 result = ((wxMenuItem const *)arg1)->GetLabel();
32123
32124 wxPyEndAllowThreads(__tstate);
32125 if (PyErr_Occurred()) SWIG_fail;
32126 }
32127 {
32128#if wxUSE_UNICODE
32129 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32130#else
32131 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32132#endif
32133 }
32134 return resultobj;
32135 fail:
32136 return NULL;
32137}
32138
32139
32140static PyObject *_wrap_MenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
32141 PyObject *resultobj;
32142 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32143 wxString *result;
32144 PyObject * obj0 = 0 ;
32145 char *kwnames[] = {
32146 (char *) "self", NULL
32147 };
32148
32149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetText",kwnames,&obj0)) goto fail;
32150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32152 {
32153 PyThreadState* __tstate = wxPyBeginAllowThreads();
32154 {
32155 wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText();
32156 result = (wxString *) &_result_ref;
32157 }
32158
32159 wxPyEndAllowThreads(__tstate);
32160 if (PyErr_Occurred()) SWIG_fail;
32161 }
32162 {
32163#if wxUSE_UNICODE
32164 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
32165#else
32166 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
32167#endif
32168 }
32169 return resultobj;
32170 fail:
32171 return NULL;
32172}
32173
32174
32175static PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) {
32176 PyObject *resultobj;
32177 wxString *arg1 = 0 ;
32178 wxString result;
32179 bool temp1 = False ;
32180 PyObject * obj0 = 0 ;
32181 char *kwnames[] = {
32182 (char *) "text", NULL
32183 };
32184
32185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) goto fail;
32186 {
32187 arg1 = wxString_in_helper(obj0);
32188 if (arg1 == NULL) SWIG_fail;
32189 temp1 = True;
32190 }
32191 {
32192 PyThreadState* __tstate = wxPyBeginAllowThreads();
32193 result = wxMenuItem::GetLabelFromText((wxString const &)*arg1);
32194
32195 wxPyEndAllowThreads(__tstate);
32196 if (PyErr_Occurred()) SWIG_fail;
32197 }
32198 {
32199#if wxUSE_UNICODE
32200 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32201#else
32202 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32203#endif
32204 }
32205 {
32206 if (temp1)
32207 delete arg1;
32208 }
32209 return resultobj;
32210 fail:
32211 {
32212 if (temp1)
32213 delete arg1;
32214 }
32215 return NULL;
32216}
32217
32218
32219static PyObject *_wrap_MenuItem_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) {
32220 PyObject *resultobj;
32221 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32222 int result;
32223 PyObject * obj0 = 0 ;
32224 char *kwnames[] = {
32225 (char *) "self", NULL
32226 };
32227
32228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetKind",kwnames,&obj0)) goto fail;
32229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32231 {
32232 PyThreadState* __tstate = wxPyBeginAllowThreads();
32233 result = (int)((wxMenuItem const *)arg1)->GetKind();
32234
32235 wxPyEndAllowThreads(__tstate);
32236 if (PyErr_Occurred()) SWIG_fail;
32237 }
32238 resultobj = SWIG_FromInt((int)result);
32239 return resultobj;
32240 fail:
32241 return NULL;
32242}
32243
32244
32245static PyObject *_wrap_MenuItem_SetKind(PyObject *self, PyObject *args, PyObject *kwargs) {
32246 PyObject *resultobj;
32247 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32248 int arg2 ;
32249 PyObject * obj0 = 0 ;
32250 PyObject * obj1 = 0 ;
32251 char *kwnames[] = {
32252 (char *) "self",(char *) "kind", NULL
32253 };
32254
32255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetKind",kwnames,&obj0,&obj1)) goto fail;
32256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32258 arg2 = (wxItemKind) SWIG_AsInt(obj1);
32259 if (PyErr_Occurred()) SWIG_fail;
32260 {
32261 PyThreadState* __tstate = wxPyBeginAllowThreads();
32262 (arg1)->SetKind((wxItemKind )arg2);
32263
32264 wxPyEndAllowThreads(__tstate);
32265 if (PyErr_Occurred()) SWIG_fail;
32266 }
32267 Py_INCREF(Py_None); resultobj = Py_None;
32268 return resultobj;
32269 fail:
32270 return NULL;
32271}
32272
32273
32274static PyObject *_wrap_MenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) {
32275 PyObject *resultobj;
32276 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32277 bool arg2 ;
32278 PyObject * obj0 = 0 ;
32279 PyObject * obj1 = 0 ;
32280 char *kwnames[] = {
32281 (char *) "self",(char *) "checkable", NULL
32282 };
32283
32284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) goto fail;
32285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32287 arg2 = (bool) SWIG_AsBool(obj1);
32288 if (PyErr_Occurred()) SWIG_fail;
32289 {
32290 PyThreadState* __tstate = wxPyBeginAllowThreads();
32291 (arg1)->SetCheckable(arg2);
32292
32293 wxPyEndAllowThreads(__tstate);
32294 if (PyErr_Occurred()) SWIG_fail;
32295 }
32296 Py_INCREF(Py_None); resultobj = Py_None;
32297 return resultobj;
32298 fail:
32299 return NULL;
32300}
32301
32302
32303static PyObject *_wrap_MenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) {
32304 PyObject *resultobj;
32305 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32306 bool result;
32307 PyObject * obj0 = 0 ;
32308 char *kwnames[] = {
32309 (char *) "self", NULL
32310 };
32311
32312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsCheckable",kwnames,&obj0)) goto fail;
32313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32315 {
32316 PyThreadState* __tstate = wxPyBeginAllowThreads();
32317 result = (bool)((wxMenuItem const *)arg1)->IsCheckable();
32318
32319 wxPyEndAllowThreads(__tstate);
32320 if (PyErr_Occurred()) SWIG_fail;
32321 }
32322 {
32323 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32324 }
32325 return resultobj;
32326 fail:
32327 return NULL;
32328}
32329
32330
32331static PyObject *_wrap_MenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
32332 PyObject *resultobj;
32333 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32334 bool result;
32335 PyObject * obj0 = 0 ;
32336 char *kwnames[] = {
32337 (char *) "self", NULL
32338 };
32339
32340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSubMenu",kwnames,&obj0)) goto fail;
32341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32343 {
32344 PyThreadState* __tstate = wxPyBeginAllowThreads();
32345 result = (bool)((wxMenuItem const *)arg1)->IsSubMenu();
32346
32347 wxPyEndAllowThreads(__tstate);
32348 if (PyErr_Occurred()) SWIG_fail;
32349 }
32350 {
32351 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32352 }
32353 return resultobj;
32354 fail:
32355 return NULL;
32356}
32357
32358
32359static PyObject *_wrap_MenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
32360 PyObject *resultobj;
32361 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32362 wxMenu *arg2 = (wxMenu *) 0 ;
32363 PyObject * obj0 = 0 ;
32364 PyObject * obj1 = 0 ;
32365 char *kwnames[] = {
32366 (char *) "self",(char *) "menu", NULL
32367 };
32368
32369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) goto fail;
32370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32372 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
32373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32374 {
32375 PyThreadState* __tstate = wxPyBeginAllowThreads();
32376 (arg1)->SetSubMenu(arg2);
32377
32378 wxPyEndAllowThreads(__tstate);
32379 if (PyErr_Occurred()) SWIG_fail;
32380 }
32381 Py_INCREF(Py_None); resultobj = Py_None;
32382 return resultobj;
32383 fail:
32384 return NULL;
32385}
32386
32387
32388static PyObject *_wrap_MenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
32389 PyObject *resultobj;
32390 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32391 wxMenu *result;
32392 PyObject * obj0 = 0 ;
32393 char *kwnames[] = {
32394 (char *) "self", NULL
32395 };
32396
32397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetSubMenu",kwnames,&obj0)) goto fail;
32398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32400 {
32401 PyThreadState* __tstate = wxPyBeginAllowThreads();
32402 result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu();
32403
32404 wxPyEndAllowThreads(__tstate);
32405 if (PyErr_Occurred()) SWIG_fail;
32406 }
32407 {
32408 resultobj = wxPyMake_wxObject(result);
32409 }
32410 return resultobj;
32411 fail:
32412 return NULL;
32413}
32414
32415
32416static PyObject *_wrap_MenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
32417 PyObject *resultobj;
32418 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32419 bool arg2 = (bool) True ;
32420 PyObject * obj0 = 0 ;
32421 PyObject * obj1 = 0 ;
32422 char *kwnames[] = {
32423 (char *) "self",(char *) "enable", NULL
32424 };
32425
32426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) goto fail;
32427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32429 if (obj1) {
32430 arg2 = (bool) SWIG_AsBool(obj1);
32431 if (PyErr_Occurred()) SWIG_fail;
32432 }
32433 {
32434 PyThreadState* __tstate = wxPyBeginAllowThreads();
32435 (arg1)->Enable(arg2);
32436
32437 wxPyEndAllowThreads(__tstate);
32438 if (PyErr_Occurred()) SWIG_fail;
32439 }
32440 Py_INCREF(Py_None); resultobj = Py_None;
32441 return resultobj;
32442 fail:
32443 return NULL;
32444}
32445
32446
32447static PyObject *_wrap_MenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
32448 PyObject *resultobj;
32449 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32450 bool result;
32451 PyObject * obj0 = 0 ;
32452 char *kwnames[] = {
32453 (char *) "self", NULL
32454 };
32455
32456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsEnabled",kwnames,&obj0)) goto fail;
32457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32459 {
32460 PyThreadState* __tstate = wxPyBeginAllowThreads();
32461 result = (bool)((wxMenuItem const *)arg1)->IsEnabled();
32462
32463 wxPyEndAllowThreads(__tstate);
32464 if (PyErr_Occurred()) SWIG_fail;
32465 }
32466 {
32467 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32468 }
32469 return resultobj;
32470 fail:
32471 return NULL;
32472}
32473
32474
32475static PyObject *_wrap_MenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
32476 PyObject *resultobj;
32477 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32478 bool arg2 = (bool) True ;
32479 PyObject * obj0 = 0 ;
32480 PyObject * obj1 = 0 ;
32481 char *kwnames[] = {
32482 (char *) "self",(char *) "check", NULL
32483 };
32484
32485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) goto fail;
32486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32488 if (obj1) {
32489 arg2 = (bool) SWIG_AsBool(obj1);
32490 if (PyErr_Occurred()) SWIG_fail;
32491 }
32492 {
32493 PyThreadState* __tstate = wxPyBeginAllowThreads();
32494 (arg1)->Check(arg2);
32495
32496 wxPyEndAllowThreads(__tstate);
32497 if (PyErr_Occurred()) SWIG_fail;
32498 }
32499 Py_INCREF(Py_None); resultobj = Py_None;
32500 return resultobj;
32501 fail:
32502 return NULL;
32503}
32504
32505
32506static PyObject *_wrap_MenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
32507 PyObject *resultobj;
32508 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32509 bool result;
32510 PyObject * obj0 = 0 ;
32511 char *kwnames[] = {
32512 (char *) "self", NULL
32513 };
32514
32515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsChecked",kwnames,&obj0)) goto fail;
32516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32518 {
32519 PyThreadState* __tstate = wxPyBeginAllowThreads();
32520 result = (bool)((wxMenuItem const *)arg1)->IsChecked();
32521
32522 wxPyEndAllowThreads(__tstate);
32523 if (PyErr_Occurred()) SWIG_fail;
32524 }
32525 {
32526 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32527 }
32528 return resultobj;
32529 fail:
32530 return NULL;
32531}
32532
32533
32534static PyObject *_wrap_MenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
32535 PyObject *resultobj;
32536 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32537 PyObject * obj0 = 0 ;
32538 char *kwnames[] = {
32539 (char *) "self", NULL
32540 };
32541
32542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_Toggle",kwnames,&obj0)) goto fail;
32543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32545 {
32546 PyThreadState* __tstate = wxPyBeginAllowThreads();
32547 (arg1)->Toggle();
32548
32549 wxPyEndAllowThreads(__tstate);
32550 if (PyErr_Occurred()) SWIG_fail;
32551 }
32552 Py_INCREF(Py_None); resultobj = Py_None;
32553 return resultobj;
32554 fail:
32555 return NULL;
32556}
32557
32558
32559static PyObject *_wrap_MenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
32560 PyObject *resultobj;
32561 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32562 wxString *arg2 = 0 ;
32563 bool temp2 = False ;
32564 PyObject * obj0 = 0 ;
32565 PyObject * obj1 = 0 ;
32566 char *kwnames[] = {
32567 (char *) "self",(char *) "str", NULL
32568 };
32569
32570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) goto fail;
32571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32573 {
32574 arg2 = wxString_in_helper(obj1);
32575 if (arg2 == NULL) SWIG_fail;
32576 temp2 = True;
32577 }
32578 {
32579 PyThreadState* __tstate = wxPyBeginAllowThreads();
32580 (arg1)->SetHelp((wxString const &)*arg2);
32581
32582 wxPyEndAllowThreads(__tstate);
32583 if (PyErr_Occurred()) SWIG_fail;
32584 }
32585 Py_INCREF(Py_None); resultobj = Py_None;
32586 {
32587 if (temp2)
32588 delete arg2;
32589 }
32590 return resultobj;
32591 fail:
32592 {
32593 if (temp2)
32594 delete arg2;
32595 }
32596 return NULL;
32597}
32598
32599
32600static PyObject *_wrap_MenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
32601 PyObject *resultobj;
32602 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32603 wxString *result;
32604 PyObject * obj0 = 0 ;
32605 char *kwnames[] = {
32606 (char *) "self", NULL
32607 };
32608
32609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetHelp",kwnames,&obj0)) goto fail;
32610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32612 {
32613 PyThreadState* __tstate = wxPyBeginAllowThreads();
32614 {
32615 wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp();
32616 result = (wxString *) &_result_ref;
32617 }
32618
32619 wxPyEndAllowThreads(__tstate);
32620 if (PyErr_Occurred()) SWIG_fail;
32621 }
32622 {
32623#if wxUSE_UNICODE
32624 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
32625#else
32626 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
32627#endif
32628 }
32629 return resultobj;
32630 fail:
32631 return NULL;
32632}
32633
32634
32635static PyObject *_wrap_MenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) {
32636 PyObject *resultobj;
32637 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32638 wxAcceleratorEntry *result;
32639 PyObject * obj0 = 0 ;
32640 char *kwnames[] = {
32641 (char *) "self", NULL
32642 };
32643
32644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetAccel",kwnames,&obj0)) goto fail;
32645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32647 {
32648 PyThreadState* __tstate = wxPyBeginAllowThreads();
32649 result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel();
32650
32651 wxPyEndAllowThreads(__tstate);
32652 if (PyErr_Occurred()) SWIG_fail;
32653 }
32654 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0);
32655 return resultobj;
32656 fail:
32657 return NULL;
32658}
32659
32660
32661static PyObject *_wrap_MenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) {
32662 PyObject *resultobj;
32663 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32664 wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ;
32665 PyObject * obj0 = 0 ;
32666 PyObject * obj1 = 0 ;
32667 char *kwnames[] = {
32668 (char *) "self",(char *) "accel", NULL
32669 };
32670
32671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) goto fail;
32672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32674 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorEntry,
32675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32676 {
32677 PyThreadState* __tstate = wxPyBeginAllowThreads();
32678 (arg1)->SetAccel(arg2);
32679
32680 wxPyEndAllowThreads(__tstate);
32681 if (PyErr_Occurred()) SWIG_fail;
32682 }
32683 Py_INCREF(Py_None); resultobj = Py_None;
32684 return resultobj;
32685 fail:
32686 return NULL;
32687}
32688
32689
32690static PyObject *_wrap_MenuItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
32691 PyObject *resultobj;
32692 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32693 wxFont *arg2 = 0 ;
32694 PyObject * obj0 = 0 ;
32695 PyObject * obj1 = 0 ;
32696 char *kwnames[] = {
32697 (char *) "self",(char *) "font", NULL
32698 };
32699
32700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetFont",kwnames,&obj0,&obj1)) goto fail;
32701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32703 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
32704 SWIG_POINTER_EXCEPTION | 0)) == -1)
32705 SWIG_fail;
32706 if (arg2 == NULL) {
32707 PyErr_SetString(PyExc_TypeError,"null reference");
32708 SWIG_fail;
32709 }
32710 {
32711 PyThreadState* __tstate = wxPyBeginAllowThreads();
32712 (arg1)->SetFont((wxFont const &)*arg2);
32713
32714 wxPyEndAllowThreads(__tstate);
32715 if (PyErr_Occurred()) SWIG_fail;
32716 }
32717 Py_INCREF(Py_None); resultobj = Py_None;
32718 return resultobj;
32719 fail:
32720 return NULL;
32721}
32722
32723
32724static PyObject *_wrap_MenuItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
32725 PyObject *resultobj;
32726 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32727 wxFont result;
32728 PyObject * obj0 = 0 ;
32729 char *kwnames[] = {
32730 (char *) "self", NULL
32731 };
32732
32733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetFont",kwnames,&obj0)) goto fail;
32734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32736 {
32737 PyThreadState* __tstate = wxPyBeginAllowThreads();
32738 result = (arg1)->GetFont();
32739
32740 wxPyEndAllowThreads(__tstate);
32741 if (PyErr_Occurred()) SWIG_fail;
32742 }
32743 {
32744 wxFont * resultptr;
32745 resultptr = new wxFont((wxFont &) result);
32746 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
32747 }
32748 return resultobj;
32749 fail:
32750 return NULL;
32751}
32752
32753
32754static PyObject *_wrap_MenuItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
32755 PyObject *resultobj;
32756 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32757 wxColour *arg2 = 0 ;
32758 wxColour temp2 ;
32759 PyObject * obj0 = 0 ;
32760 PyObject * obj1 = 0 ;
32761 char *kwnames[] = {
32762 (char *) "self",(char *) "colText", NULL
32763 };
32764
32765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
32766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32768 {
32769 arg2 = &temp2;
32770 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32771 }
32772 {
32773 PyThreadState* __tstate = wxPyBeginAllowThreads();
32774 (arg1)->SetTextColour((wxColour const &)*arg2);
32775
32776 wxPyEndAllowThreads(__tstate);
32777 if (PyErr_Occurred()) SWIG_fail;
32778 }
32779 Py_INCREF(Py_None); resultobj = Py_None;
32780 return resultobj;
32781 fail:
32782 return NULL;
32783}
32784
32785
32786static PyObject *_wrap_MenuItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
32787 PyObject *resultobj;
32788 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32789 wxColour result;
32790 PyObject * obj0 = 0 ;
32791 char *kwnames[] = {
32792 (char *) "self", NULL
32793 };
32794
32795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetTextColour",kwnames,&obj0)) goto fail;
32796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32798 {
32799 PyThreadState* __tstate = wxPyBeginAllowThreads();
32800 result = (arg1)->GetTextColour();
32801
32802 wxPyEndAllowThreads(__tstate);
32803 if (PyErr_Occurred()) SWIG_fail;
32804 }
32805 {
32806 wxColour * resultptr;
32807 resultptr = new wxColour((wxColour &) result);
32808 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
32809 }
32810 return resultobj;
32811 fail:
32812 return NULL;
32813}
32814
32815
32816static PyObject *_wrap_MenuItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
32817 PyObject *resultobj;
32818 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32819 wxColour *arg2 = 0 ;
32820 wxColour temp2 ;
32821 PyObject * obj0 = 0 ;
32822 PyObject * obj1 = 0 ;
32823 char *kwnames[] = {
32824 (char *) "self",(char *) "colBack", NULL
32825 };
32826
32827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
32828 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32829 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32830 {
32831 arg2 = &temp2;
32832 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32833 }
32834 {
32835 PyThreadState* __tstate = wxPyBeginAllowThreads();
32836 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
32837
32838 wxPyEndAllowThreads(__tstate);
32839 if (PyErr_Occurred()) SWIG_fail;
32840 }
32841 Py_INCREF(Py_None); resultobj = Py_None;
32842 return resultobj;
32843 fail:
32844 return NULL;
32845}
32846
32847
32848static PyObject *_wrap_MenuItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
32849 PyObject *resultobj;
32850 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32851 wxColour result;
32852 PyObject * obj0 = 0 ;
32853 char *kwnames[] = {
32854 (char *) "self", NULL
32855 };
32856
32857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBackgroundColour",kwnames,&obj0)) goto fail;
32858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32860 {
32861 PyThreadState* __tstate = wxPyBeginAllowThreads();
32862 result = (arg1)->GetBackgroundColour();
32863
32864 wxPyEndAllowThreads(__tstate);
32865 if (PyErr_Occurred()) SWIG_fail;
32866 }
32867 {
32868 wxColour * resultptr;
32869 resultptr = new wxColour((wxColour &) result);
32870 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
32871 }
32872 return resultobj;
32873 fail:
32874 return NULL;
32875}
32876
32877
32878static PyObject *_wrap_MenuItem_SetBitmaps(PyObject *self, PyObject *args, PyObject *kwargs) {
32879 PyObject *resultobj;
32880 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32881 wxBitmap *arg2 = 0 ;
32882 wxBitmap const &arg3_defvalue = wxNullBitmap ;
32883 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
32884 PyObject * obj0 = 0 ;
32885 PyObject * obj1 = 0 ;
32886 PyObject * obj2 = 0 ;
32887 char *kwnames[] = {
32888 (char *) "self",(char *) "bmpChecked",(char *) "bmpUnchecked", NULL
32889 };
32890
32891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MenuItem_SetBitmaps",kwnames,&obj0,&obj1,&obj2)) goto fail;
32892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32894 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
32895 SWIG_POINTER_EXCEPTION | 0)) == -1)
32896 SWIG_fail;
32897 if (arg2 == NULL) {
32898 PyErr_SetString(PyExc_TypeError,"null reference");
32899 SWIG_fail;
32900 }
32901 if (obj2) {
32902 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
32903 SWIG_POINTER_EXCEPTION | 0)) == -1)
32904 SWIG_fail;
32905 if (arg3 == NULL) {
32906 PyErr_SetString(PyExc_TypeError,"null reference");
32907 SWIG_fail;
32908 }
32909 }
32910 {
32911 PyThreadState* __tstate = wxPyBeginAllowThreads();
32912 (arg1)->SetBitmaps((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
32913
32914 wxPyEndAllowThreads(__tstate);
32915 if (PyErr_Occurred()) SWIG_fail;
32916 }
32917 Py_INCREF(Py_None); resultobj = Py_None;
32918 return resultobj;
32919 fail:
32920 return NULL;
32921}
32922
32923
32924static PyObject *_wrap_MenuItem_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
32925 PyObject *resultobj;
32926 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32927 wxBitmap *arg2 = 0 ;
32928 PyObject * obj0 = 0 ;
32929 PyObject * obj1 = 0 ;
32930 char *kwnames[] = {
32931 (char *) "self",(char *) "bmpDisabled", NULL
32932 };
32933
32934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail;
32935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32937 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
32938 SWIG_POINTER_EXCEPTION | 0)) == -1)
32939 SWIG_fail;
32940 if (arg2 == NULL) {
32941 PyErr_SetString(PyExc_TypeError,"null reference");
32942 SWIG_fail;
32943 }
32944 {
32945 PyThreadState* __tstate = wxPyBeginAllowThreads();
32946 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
32947
32948 wxPyEndAllowThreads(__tstate);
32949 if (PyErr_Occurred()) SWIG_fail;
32950 }
32951 Py_INCREF(Py_None); resultobj = Py_None;
32952 return resultobj;
32953 fail:
32954 return NULL;
32955}
32956
32957
32958static PyObject *_wrap_MenuItem_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
32959 PyObject *resultobj;
32960 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32961 wxBitmap *result;
32962 PyObject * obj0 = 0 ;
32963 char *kwnames[] = {
32964 (char *) "self", NULL
32965 };
32966
32967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetDisabledBitmap",kwnames,&obj0)) goto fail;
32968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32970 {
32971 PyThreadState* __tstate = wxPyBeginAllowThreads();
32972 {
32973 wxBitmap const &_result_ref = ((wxMenuItem const *)arg1)->GetDisabledBitmap();
32974 result = (wxBitmap *) &_result_ref;
32975 }
32976
32977 wxPyEndAllowThreads(__tstate);
32978 if (PyErr_Occurred()) SWIG_fail;
32979 }
32980 {
32981 wxBitmap* resultptr = new wxBitmap(*result);
32982 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
32983 }
32984 return resultobj;
32985 fail:
32986 return NULL;
32987}
32988
32989
32990static PyObject *_wrap_MenuItem_SetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
32991 PyObject *resultobj;
32992 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32993 int arg2 ;
32994 PyObject * obj0 = 0 ;
32995 PyObject * obj1 = 0 ;
32996 char *kwnames[] = {
32997 (char *) "self",(char *) "nWidth", NULL
32998 };
32999
33000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMarginWidth",kwnames,&obj0,&obj1)) goto fail;
33001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33003 arg2 = (int) SWIG_AsInt(obj1);
33004 if (PyErr_Occurred()) SWIG_fail;
33005 {
33006 PyThreadState* __tstate = wxPyBeginAllowThreads();
33007 (arg1)->SetMarginWidth(arg2);
33008
33009 wxPyEndAllowThreads(__tstate);
33010 if (PyErr_Occurred()) SWIG_fail;
33011 }
33012 Py_INCREF(Py_None); resultobj = Py_None;
33013 return resultobj;
33014 fail:
33015 return NULL;
33016}
33017
33018
33019static PyObject *_wrap_MenuItem_GetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
33020 PyObject *resultobj;
33021 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33022 int result;
33023 PyObject * obj0 = 0 ;
33024 char *kwnames[] = {
33025 (char *) "self", NULL
33026 };
33027
33028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMarginWidth",kwnames,&obj0)) goto fail;
33029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33031 {
33032 PyThreadState* __tstate = wxPyBeginAllowThreads();
33033 result = (int)(arg1)->GetMarginWidth();
33034
33035 wxPyEndAllowThreads(__tstate);
33036 if (PyErr_Occurred()) SWIG_fail;
33037 }
33038 resultobj = SWIG_FromInt((int)result);
33039 return resultobj;
33040 fail:
33041 return NULL;
33042}
33043
33044
33045static PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
33046 PyObject *resultobj;
33047 int result;
33048 char *kwnames[] = {
33049 NULL
33050 };
33051
33052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MenuItem_GetDefaultMarginWidth",kwnames)) goto fail;
33053 {
33054 PyThreadState* __tstate = wxPyBeginAllowThreads();
33055 result = (int)wxMenuItem::GetDefaultMarginWidth();
33056
33057 wxPyEndAllowThreads(__tstate);
33058 if (PyErr_Occurred()) SWIG_fail;
33059 }
33060 resultobj = SWIG_FromInt((int)result);
33061 return resultobj;
33062 fail:
33063 return NULL;
33064}
33065
33066
33067static PyObject *_wrap_MenuItem_IsOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) {
33068 PyObject *resultobj;
33069 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33070 bool result;
33071 PyObject * obj0 = 0 ;
33072 char *kwnames[] = {
33073 (char *) "self", NULL
33074 };
33075
33076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsOwnerDrawn",kwnames,&obj0)) goto fail;
33077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33079 {
33080 PyThreadState* __tstate = wxPyBeginAllowThreads();
33081 result = (bool)(arg1)->IsOwnerDrawn();
33082
33083 wxPyEndAllowThreads(__tstate);
33084 if (PyErr_Occurred()) SWIG_fail;
33085 }
33086 {
33087 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33088 }
33089 return resultobj;
33090 fail:
33091 return NULL;
33092}
33093
33094
33095static PyObject *_wrap_MenuItem_SetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) {
33096 PyObject *resultobj;
33097 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33098 bool arg2 = (bool) True ;
33099 PyObject * obj0 = 0 ;
33100 PyObject * obj1 = 0 ;
33101 char *kwnames[] = {
33102 (char *) "self",(char *) "ownerDrawn", NULL
33103 };
33104
33105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_SetOwnerDrawn",kwnames,&obj0,&obj1)) goto fail;
33106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33108 if (obj1) {
33109 arg2 = (bool) SWIG_AsBool(obj1);
33110 if (PyErr_Occurred()) SWIG_fail;
33111 }
33112 {
33113 PyThreadState* __tstate = wxPyBeginAllowThreads();
33114 (arg1)->SetOwnerDrawn(arg2);
33115
33116 wxPyEndAllowThreads(__tstate);
33117 if (PyErr_Occurred()) SWIG_fail;
33118 }
33119 Py_INCREF(Py_None); resultobj = Py_None;
33120 return resultobj;
33121 fail:
33122 return NULL;
33123}
33124
33125
33126static PyObject *_wrap_MenuItem_ResetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) {
33127 PyObject *resultobj;
33128 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33129 PyObject * obj0 = 0 ;
33130 char *kwnames[] = {
33131 (char *) "self", NULL
33132 };
33133
33134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_ResetOwnerDrawn",kwnames,&obj0)) goto fail;
33135 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33137 {
33138 PyThreadState* __tstate = wxPyBeginAllowThreads();
33139 (arg1)->ResetOwnerDrawn();
33140
33141 wxPyEndAllowThreads(__tstate);
33142 if (PyErr_Occurred()) SWIG_fail;
33143 }
33144 Py_INCREF(Py_None); resultobj = Py_None;
33145 return resultobj;
33146 fail:
33147 return NULL;
33148}
33149
33150
33151static PyObject *_wrap_MenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
33152 PyObject *resultobj;
33153 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33154 wxBitmap *arg2 = 0 ;
33155 PyObject * obj0 = 0 ;
33156 PyObject * obj1 = 0 ;
33157 char *kwnames[] = {
33158 (char *) "self",(char *) "bitmap", NULL
33159 };
33160
33161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
33162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33164 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
33165 SWIG_POINTER_EXCEPTION | 0)) == -1)
33166 SWIG_fail;
33167 if (arg2 == NULL) {
33168 PyErr_SetString(PyExc_TypeError,"null reference");
33169 SWIG_fail;
33170 }
33171 {
33172 PyThreadState* __tstate = wxPyBeginAllowThreads();
33173 (arg1)->SetBitmap((wxBitmap const &)*arg2);
33174
33175 wxPyEndAllowThreads(__tstate);
33176 if (PyErr_Occurred()) SWIG_fail;
33177 }
33178 Py_INCREF(Py_None); resultobj = Py_None;
33179 return resultobj;
33180 fail:
33181 return NULL;
33182}
33183
33184
33185static PyObject *_wrap_MenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
33186 PyObject *resultobj;
33187 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33188 wxBitmap *result;
33189 PyObject * obj0 = 0 ;
33190 char *kwnames[] = {
33191 (char *) "self", NULL
33192 };
33193
33194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBitmap",kwnames,&obj0)) goto fail;
33195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33197 {
33198 PyThreadState* __tstate = wxPyBeginAllowThreads();
33199 {
33200 wxBitmap const &_result_ref = (arg1)->GetBitmap();
33201 result = (wxBitmap *) &_result_ref;
33202 }
33203
33204 wxPyEndAllowThreads(__tstate);
33205 if (PyErr_Occurred()) SWIG_fail;
33206 }
33207 {
33208 wxBitmap* resultptr = new wxBitmap(*result);
33209 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
33210 }
33211 return resultobj;
33212 fail:
33213 return NULL;
33214}
33215
33216
33217static PyObject * MenuItem_swigregister(PyObject *self, PyObject *args) {
33218 PyObject *obj;
33219 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
33220 SWIG_TypeClientData(SWIGTYPE_p_wxMenuItem, obj);
33221 Py_INCREF(obj);
33222 return Py_BuildValue((char *)"");
33223}
33224static int _wrap_ControlNameStr_set(PyObject *_val) {
33225 PyErr_SetString(PyExc_TypeError,"Variable ControlNameStr is read-only.");
33226 return 1;
33227}
33228
33229
33230static PyObject *_wrap_ControlNameStr_get() {
33231 PyObject *pyobj;
33232
33233 {
33234#if wxUSE_UNICODE
33235 pyobj = PyUnicode_FromWideChar((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len());
33236#else
33237 pyobj = PyString_FromStringAndSize((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len());
33238#endif
33239 }
33240 return pyobj;
33241}
33242
33243
33244static PyObject *_wrap_new_Control(PyObject *self, PyObject *args, PyObject *kwargs) {
33245 PyObject *resultobj;
33246 wxWindow *arg1 = (wxWindow *) 0 ;
248ed943 33247 int arg2 = (int) -1 ;
d55e5bfc
RD
33248 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33249 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33250 wxSize const &arg4_defvalue = wxDefaultSize ;
33251 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33252 long arg5 = (long) 0 ;
33253 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33254 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33255 wxString const &arg7_defvalue = wxPyControlNameStr ;
33256 wxString *arg7 = (wxString *) &arg7_defvalue ;
33257 wxControl *result;
33258 wxPoint temp3 ;
33259 wxSize temp4 ;
33260 bool temp7 = False ;
33261 PyObject * obj0 = 0 ;
33262 PyObject * obj1 = 0 ;
33263 PyObject * obj2 = 0 ;
33264 PyObject * obj3 = 0 ;
33265 PyObject * obj4 = 0 ;
33266 PyObject * obj5 = 0 ;
33267 PyObject * obj6 = 0 ;
33268 char *kwnames[] = {
33269 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33270 };
33271
248ed943 33272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Control",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
d55e5bfc
RD
33273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
33274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
248ed943
RD
33275 if (obj1) {
33276 arg2 = (int) SWIG_AsInt(obj1);
33277 if (PyErr_Occurred()) SWIG_fail;
33278 }
d55e5bfc
RD
33279 if (obj2) {
33280 {
33281 arg3 = &temp3;
33282 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33283 }
33284 }
33285 if (obj3) {
33286 {
33287 arg4 = &temp4;
33288 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
33289 }
33290 }
33291 if (obj4) {
33292 arg5 = (long) SWIG_AsLong(obj4);
33293 if (PyErr_Occurred()) SWIG_fail;
33294 }
33295 if (obj5) {
33296 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
33297 SWIG_POINTER_EXCEPTION | 0)) == -1)
33298 SWIG_fail;
33299 if (arg6 == NULL) {
33300 PyErr_SetString(PyExc_TypeError,"null reference");
33301 SWIG_fail;
33302 }
33303 }
33304 if (obj6) {
33305 {
33306 arg7 = wxString_in_helper(obj6);
33307 if (arg7 == NULL) SWIG_fail;
33308 temp7 = True;
33309 }
33310 }
33311 {
0439c23b 33312 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
33313 PyThreadState* __tstate = wxPyBeginAllowThreads();
33314 result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33315
33316 wxPyEndAllowThreads(__tstate);
0439c23b 33317 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
33318 }
33319 {
33320 resultobj = wxPyMake_wxObject(result);
33321 }
33322 {
33323 if (temp7)
33324 delete arg7;
33325 }
33326 return resultobj;
33327 fail:
33328 {
33329 if (temp7)
33330 delete arg7;
33331 }
33332 return NULL;
33333}
33334
33335
33336static PyObject *_wrap_new_PreControl(PyObject *self, PyObject *args, PyObject *kwargs) {
33337 PyObject *resultobj;
33338 wxControl *result;
33339 char *kwnames[] = {
33340 NULL
33341 };
33342
33343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreControl",kwnames)) goto fail;
33344 {
0439c23b 33345 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
33346 PyThreadState* __tstate = wxPyBeginAllowThreads();
33347 result = (wxControl *)new wxControl();
33348
33349 wxPyEndAllowThreads(__tstate);
0439c23b 33350 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
33351 }
33352 {
33353 resultobj = wxPyMake_wxObject(result);
33354 }
33355 return resultobj;
33356 fail:
33357 return NULL;
33358}
33359
33360
33361static PyObject *_wrap_Control_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
33362 PyObject *resultobj;
33363 wxControl *arg1 = (wxControl *) 0 ;
33364 wxWindow *arg2 = (wxWindow *) 0 ;
248ed943 33365 int arg3 = (int) -1 ;
d55e5bfc
RD
33366 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33367 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33368 wxSize const &arg5_defvalue = wxDefaultSize ;
33369 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33370 long arg6 = (long) 0 ;
33371 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33372 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33373 wxString const &arg8_defvalue = wxPyControlNameStr ;
33374 wxString *arg8 = (wxString *) &arg8_defvalue ;
33375 bool result;
33376 wxPoint temp4 ;
33377 wxSize temp5 ;
33378 bool temp8 = False ;
33379 PyObject * obj0 = 0 ;
33380 PyObject * obj1 = 0 ;
33381 PyObject * obj2 = 0 ;
33382 PyObject * obj3 = 0 ;
33383 PyObject * obj4 = 0 ;
33384 PyObject * obj5 = 0 ;
33385 PyObject * obj6 = 0 ;
33386 PyObject * obj7 = 0 ;
33387 char *kwnames[] = {
33388 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33389 };
33390
248ed943 33391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Control_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
d55e5bfc
RD
33392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl,
33393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33394 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
33395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
248ed943
RD
33396 if (obj2) {
33397 arg3 = (int) SWIG_AsInt(obj2);
33398 if (PyErr_Occurred()) SWIG_fail;
33399 }
d55e5bfc
RD
33400 if (obj3) {
33401 {
33402 arg4 = &temp4;
33403 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
33404 }
33405 }
33406 if (obj4) {
33407 {
33408 arg5 = &temp5;
33409 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
33410 }
33411 }
33412 if (obj5) {
33413 arg6 = (long) SWIG_AsLong(obj5);
33414 if (PyErr_Occurred()) SWIG_fail;
33415 }
33416 if (obj6) {
33417 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
33418 SWIG_POINTER_EXCEPTION | 0)) == -1)
33419 SWIG_fail;
33420 if (arg7 == NULL) {
33421 PyErr_SetString(PyExc_TypeError,"null reference");
33422 SWIG_fail;
33423 }
33424 }
33425 if (obj7) {
33426 {
33427 arg8 = wxString_in_helper(obj7);
33428 if (arg8 == NULL) SWIG_fail;
33429 temp8 = True;
33430 }
33431 }
33432 {
33433 PyThreadState* __tstate = wxPyBeginAllowThreads();
33434 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
33435
33436 wxPyEndAllowThreads(__tstate);
33437 if (PyErr_Occurred()) SWIG_fail;
33438 }
33439 {
33440 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33441 }
33442 {
33443 if (temp8)
33444 delete arg8;
33445 }
33446 return resultobj;
33447 fail:
33448 {
33449 if (temp8)
33450 delete arg8;
33451 }
33452 return NULL;
33453}
33454
33455
33456static PyObject *_wrap_Control_Command(PyObject *self, PyObject *args, PyObject *kwargs) {
33457 PyObject *resultobj;
33458 wxControl *arg1 = (wxControl *) 0 ;
33459 wxCommandEvent *arg2 = 0 ;
33460 PyObject * obj0 = 0 ;
33461 PyObject * obj1 = 0 ;
33462 char *kwnames[] = {
33463 (char *) "self",(char *) "event", NULL
33464 };
33465
33466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) goto fail;
33467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl,
33468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33469 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCommandEvent,
33470 SWIG_POINTER_EXCEPTION | 0)) == -1)
33471 SWIG_fail;
33472 if (arg2 == NULL) {
33473 PyErr_SetString(PyExc_TypeError,"null reference");
33474 SWIG_fail;
33475 }
33476 {
33477 PyThreadState* __tstate = wxPyBeginAllowThreads();
33478 (arg1)->Command(*arg2);
33479
33480 wxPyEndAllowThreads(__tstate);
33481 if (PyErr_Occurred()) SWIG_fail;
33482 }
33483 Py_INCREF(Py_None); resultobj = Py_None;
33484 return resultobj;
33485 fail:
33486 return NULL;
33487}
33488
33489
33490static PyObject *_wrap_Control_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
33491 PyObject *resultobj;
33492 wxControl *arg1 = (wxControl *) 0 ;
33493 wxString result;
33494 PyObject * obj0 = 0 ;
33495 char *kwnames[] = {
33496 (char *) "self", NULL
33497 };
33498
33499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_GetLabel",kwnames,&obj0)) goto fail;
33500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl,
33501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33502 {
33503 PyThreadState* __tstate = wxPyBeginAllowThreads();
33504 result = (arg1)->GetLabel();
33505
33506 wxPyEndAllowThreads(__tstate);
33507 if (PyErr_Occurred()) SWIG_fail;
33508 }
33509 {
33510#if wxUSE_UNICODE
33511 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33512#else
33513 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33514#endif
33515 }
33516 return resultobj;
33517 fail:
33518 return NULL;
33519}
33520
33521
33522static PyObject *_wrap_Control_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
33523 PyObject *resultobj;
33524 wxControl *arg1 = (wxControl *) 0 ;
33525 wxString *arg2 = 0 ;
33526 bool temp2 = False ;
33527 PyObject * obj0 = 0 ;
33528 PyObject * obj1 = 0 ;
33529 char *kwnames[] = {
33530 (char *) "self",(char *) "label", NULL
33531 };
33532
33533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_SetLabel",kwnames,&obj0,&obj1)) goto fail;
33534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl,
33535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33536 {
33537 arg2 = wxString_in_helper(obj1);
33538 if (arg2 == NULL) SWIG_fail;
33539 temp2 = True;
33540 }
33541 {
33542 PyThreadState* __tstate = wxPyBeginAllowThreads();
33543 (arg1)->SetLabel((wxString const &)*arg2);
33544
33545 wxPyEndAllowThreads(__tstate);
33546 if (PyErr_Occurred()) SWIG_fail;
33547 }
33548 Py_INCREF(Py_None); resultobj = Py_None;
33549 {
33550 if (temp2)
33551 delete arg2;
33552 }
33553 return resultobj;
33554 fail:
33555 {
33556 if (temp2)
33557 delete arg2;
33558 }
33559 return NULL;
33560}
33561
33562
33563static PyObject *_wrap_Control_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
33564 PyObject *resultobj;
33565 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
33566 wxVisualAttributes result;
33567 PyObject * obj0 = 0 ;
33568 char *kwnames[] = {
33569 (char *) "variant", NULL
33570 };
33571
33572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Control_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
33573 if (obj0) {
33574 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
33575 if (PyErr_Occurred()) SWIG_fail;
33576 }
33577 {
33578 PyThreadState* __tstate = wxPyBeginAllowThreads();
33579 result = wxControl::GetClassDefaultAttributes((wxWindowVariant )arg1);
33580
33581 wxPyEndAllowThreads(__tstate);
908b74cd 33582 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
33583 }
33584 {
33585 wxVisualAttributes * resultptr;
33586 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
33587 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
33588 }
33589 return resultobj;
33590 fail:
33591 return NULL;
33592}
33593
33594
33595static PyObject * Control_swigregister(PyObject *self, PyObject *args) {
33596 PyObject *obj;
33597 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
33598 SWIG_TypeClientData(SWIGTYPE_p_wxControl, obj);
33599 Py_INCREF(obj);
33600 return Py_BuildValue((char *)"");
33601}
33602static PyObject *_wrap_ItemContainer_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
33603 PyObject *resultobj;
33604 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33605 wxString *arg2 = 0 ;
33606 PyObject *arg3 = (PyObject *) NULL ;
33607 int result;
33608 bool temp2 = False ;
33609 PyObject * obj0 = 0 ;
33610 PyObject * obj1 = 0 ;
33611 PyObject * obj2 = 0 ;
33612 char *kwnames[] = {
33613 (char *) "self",(char *) "item",(char *) "clientData", NULL
33614 };
33615
33616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) goto fail;
33617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33619 {
33620 arg2 = wxString_in_helper(obj1);
33621 if (arg2 == NULL) SWIG_fail;
33622 temp2 = True;
33623 }
33624 if (obj2) {
33625 arg3 = obj2;
33626 }
33627 {
33628 PyThreadState* __tstate = wxPyBeginAllowThreads();
33629 result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3);
33630
33631 wxPyEndAllowThreads(__tstate);
33632 if (PyErr_Occurred()) SWIG_fail;
33633 }
33634 resultobj = SWIG_FromInt((int)result);
33635 {
33636 if (temp2)
33637 delete arg2;
33638 }
33639 return resultobj;
33640 fail:
33641 {
33642 if (temp2)
33643 delete arg2;
33644 }
33645 return NULL;
33646}
33647
33648
33649static PyObject *_wrap_ItemContainer_AppendItems(PyObject *self, PyObject *args, PyObject *kwargs) {
33650 PyObject *resultobj;
33651 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33652 wxArrayString *arg2 = 0 ;
33653 bool temp2 = False ;
33654 PyObject * obj0 = 0 ;
33655 PyObject * obj1 = 0 ;
33656 char *kwnames[] = {
33657 (char *) "self",(char *) "strings", NULL
33658 };
33659
33660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) goto fail;
33661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33663 {
33664 if (! PySequence_Check(obj1)) {
33665 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
33666 SWIG_fail;
33667 }
33668 arg2 = new wxArrayString;
33669 temp2 = True;
33670 int i, len=PySequence_Length(obj1);
33671 for (i=0; i<len; i++) {
33672 PyObject* item = PySequence_GetItem(obj1, i);
33673#if wxUSE_UNICODE
33674 PyObject* str = PyObject_Unicode(item);
33675#else
33676 PyObject* str = PyObject_Str(item);
33677#endif
33678 if (PyErr_Occurred()) SWIG_fail;
33679 arg2->Add(Py2wxString(str));
33680 Py_DECREF(item);
33681 Py_DECREF(str);
33682 }
33683 }
33684 {
33685 PyThreadState* __tstate = wxPyBeginAllowThreads();
33686 (arg1)->Append((wxArrayString const &)*arg2);
33687
33688 wxPyEndAllowThreads(__tstate);
33689 if (PyErr_Occurred()) SWIG_fail;
33690 }
33691 Py_INCREF(Py_None); resultobj = Py_None;
33692 {
33693 if (temp2) delete arg2;
33694 }
33695 return resultobj;
33696 fail:
33697 {
33698 if (temp2) delete arg2;
33699 }
33700 return NULL;
33701}
33702
33703
33704static PyObject *_wrap_ItemContainer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
33705 PyObject *resultobj;
33706 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33707 wxString *arg2 = 0 ;
33708 int arg3 ;
33709 PyObject *arg4 = (PyObject *) NULL ;
33710 int result;
33711 bool temp2 = False ;
33712 PyObject * obj0 = 0 ;
33713 PyObject * obj1 = 0 ;
33714 PyObject * obj2 = 0 ;
33715 PyObject * obj3 = 0 ;
33716 char *kwnames[] = {
33717 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
33718 };
33719
33720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
33721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33723 {
33724 arg2 = wxString_in_helper(obj1);
33725 if (arg2 == NULL) SWIG_fail;
33726 temp2 = True;
33727 }
33728 arg3 = (int) SWIG_AsInt(obj2);
33729 if (PyErr_Occurred()) SWIG_fail;
33730 if (obj3) {
33731 arg4 = obj3;
33732 }
33733 {
33734 PyThreadState* __tstate = wxPyBeginAllowThreads();
33735 result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
33736
33737 wxPyEndAllowThreads(__tstate);
33738 if (PyErr_Occurred()) SWIG_fail;
33739 }
33740 resultobj = SWIG_FromInt((int)result);
33741 {
33742 if (temp2)
33743 delete arg2;
33744 }
33745 return resultobj;
33746 fail:
33747 {
33748 if (temp2)
33749 delete arg2;
33750 }
33751 return NULL;
33752}
33753
33754
33755static PyObject *_wrap_ItemContainer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
33756 PyObject *resultobj;
33757 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33758 PyObject * obj0 = 0 ;
33759 char *kwnames[] = {
33760 (char *) "self", NULL
33761 };
33762
33763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_Clear",kwnames,&obj0)) goto fail;
33764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33766 {
33767 PyThreadState* __tstate = wxPyBeginAllowThreads();
33768 (arg1)->Clear();
33769
33770 wxPyEndAllowThreads(__tstate);
33771 if (PyErr_Occurred()) SWIG_fail;
33772 }
33773 Py_INCREF(Py_None); resultobj = Py_None;
33774 return resultobj;
33775 fail:
33776 return NULL;
33777}
33778
33779
33780static PyObject *_wrap_ItemContainer_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
33781 PyObject *resultobj;
33782 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33783 int arg2 ;
33784 PyObject * obj0 = 0 ;
33785 PyObject * obj1 = 0 ;
33786 char *kwnames[] = {
33787 (char *) "self",(char *) "n", NULL
33788 };
33789
33790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Delete",kwnames,&obj0,&obj1)) goto fail;
33791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33793 arg2 = (int) SWIG_AsInt(obj1);
33794 if (PyErr_Occurred()) SWIG_fail;
33795 {
33796 PyThreadState* __tstate = wxPyBeginAllowThreads();
33797 (arg1)->Delete(arg2);
33798
33799 wxPyEndAllowThreads(__tstate);
33800 if (PyErr_Occurred()) SWIG_fail;
33801 }
33802 Py_INCREF(Py_None); resultobj = Py_None;
33803 return resultobj;
33804 fail:
33805 return NULL;
33806}
33807
33808
33809static PyObject *_wrap_ItemContainer_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
33810 PyObject *resultobj;
33811 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33812 int result;
33813 PyObject * obj0 = 0 ;
33814 char *kwnames[] = {
33815 (char *) "self", NULL
33816 };
33817
33818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetCount",kwnames,&obj0)) goto fail;
33819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33821 {
33822 PyThreadState* __tstate = wxPyBeginAllowThreads();
33823 result = (int)((wxItemContainer const *)arg1)->GetCount();
33824
33825 wxPyEndAllowThreads(__tstate);
33826 if (PyErr_Occurred()) SWIG_fail;
33827 }
33828 resultobj = SWIG_FromInt((int)result);
33829 return resultobj;
33830 fail:
33831 return NULL;
33832}
33833
33834
33835static PyObject *_wrap_ItemContainer_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
33836 PyObject *resultobj;
33837 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33838 bool result;
33839 PyObject * obj0 = 0 ;
33840 char *kwnames[] = {
33841 (char *) "self", NULL
33842 };
33843
33844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_IsEmpty",kwnames,&obj0)) goto fail;
33845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33847 {
33848 PyThreadState* __tstate = wxPyBeginAllowThreads();
33849 result = (bool)((wxItemContainer const *)arg1)->IsEmpty();
33850
33851 wxPyEndAllowThreads(__tstate);
33852 if (PyErr_Occurred()) SWIG_fail;
33853 }
33854 {
33855 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33856 }
33857 return resultobj;
33858 fail:
33859 return NULL;
33860}
33861
33862
33863static PyObject *_wrap_ItemContainer_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
33864 PyObject *resultobj;
33865 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33866 int arg2 ;
33867 wxString result;
33868 PyObject * obj0 = 0 ;
33869 PyObject * obj1 = 0 ;
33870 char *kwnames[] = {
33871 (char *) "self",(char *) "n", NULL
33872 };
33873
33874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetString",kwnames,&obj0,&obj1)) goto fail;
33875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33877 arg2 = (int) SWIG_AsInt(obj1);
33878 if (PyErr_Occurred()) SWIG_fail;
33879 {
33880 PyThreadState* __tstate = wxPyBeginAllowThreads();
33881 result = ((wxItemContainer const *)arg1)->GetString(arg2);
33882
33883 wxPyEndAllowThreads(__tstate);
33884 if (PyErr_Occurred()) SWIG_fail;
33885 }
33886 {
33887#if wxUSE_UNICODE
33888 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33889#else
33890 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33891#endif
33892 }
33893 return resultobj;
33894 fail:
33895 return NULL;
33896}
33897
33898
33899static PyObject *_wrap_ItemContainer_GetStrings(PyObject *self, PyObject *args, PyObject *kwargs) {
33900 PyObject *resultobj;
33901 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33902 wxArrayString result;
33903 PyObject * obj0 = 0 ;
33904 char *kwnames[] = {
33905 (char *) "self", NULL
33906 };
33907
33908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStrings",kwnames,&obj0)) goto fail;
33909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33911 {
33912 PyThreadState* __tstate = wxPyBeginAllowThreads();
33913 result = ((wxItemContainer const *)arg1)->GetStrings();
33914
33915 wxPyEndAllowThreads(__tstate);
33916 if (PyErr_Occurred()) SWIG_fail;
33917 }
33918 {
33919 resultobj = wxArrayString2PyList_helper(result);
33920 }
33921 return resultobj;
33922 fail:
33923 return NULL;
33924}
33925
33926
33927static PyObject *_wrap_ItemContainer_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
33928 PyObject *resultobj;
33929 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33930 int arg2 ;
33931 wxString *arg3 = 0 ;
33932 bool temp3 = False ;
33933 PyObject * obj0 = 0 ;
33934 PyObject * obj1 = 0 ;
33935 PyObject * obj2 = 0 ;
33936 char *kwnames[] = {
33937 (char *) "self",(char *) "n",(char *) "s", NULL
33938 };
33939
33940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
33941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33943 arg2 = (int) SWIG_AsInt(obj1);
33944 if (PyErr_Occurred()) SWIG_fail;
33945 {
33946 arg3 = wxString_in_helper(obj2);
33947 if (arg3 == NULL) SWIG_fail;
33948 temp3 = True;
33949 }
33950 {
33951 PyThreadState* __tstate = wxPyBeginAllowThreads();
33952 (arg1)->SetString(arg2,(wxString const &)*arg3);
33953
33954 wxPyEndAllowThreads(__tstate);
33955 if (PyErr_Occurred()) SWIG_fail;
33956 }
33957 Py_INCREF(Py_None); resultobj = Py_None;
33958 {
33959 if (temp3)
33960 delete arg3;
33961 }
33962 return resultobj;
33963 fail:
33964 {
33965 if (temp3)
33966 delete arg3;
33967 }
33968 return NULL;
33969}
33970
33971
33972static PyObject *_wrap_ItemContainer_FindString(PyObject *self, PyObject *args, PyObject *kwargs) {
33973 PyObject *resultobj;
33974 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33975 wxString *arg2 = 0 ;
33976 int result;
33977 bool temp2 = False ;
33978 PyObject * obj0 = 0 ;
33979 PyObject * obj1 = 0 ;
33980 char *kwnames[] = {
33981 (char *) "self",(char *) "s", NULL
33982 };
33983
33984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) goto fail;
33985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33987 {
33988 arg2 = wxString_in_helper(obj1);
33989 if (arg2 == NULL) SWIG_fail;
33990 temp2 = True;
33991 }
33992 {
33993 PyThreadState* __tstate = wxPyBeginAllowThreads();
33994 result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2);
33995
33996 wxPyEndAllowThreads(__tstate);
33997 if (PyErr_Occurred()) SWIG_fail;
33998 }
33999 resultobj = SWIG_FromInt((int)result);
34000 {
34001 if (temp2)
34002 delete arg2;
34003 }
34004 return resultobj;
34005 fail:
34006 {
34007 if (temp2)
34008 delete arg2;
34009 }
34010 return NULL;
34011}
34012
34013
34014static PyObject *_wrap_ItemContainer_Select(PyObject *self, PyObject *args, PyObject *kwargs) {
34015 PyObject *resultobj;
34016 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34017 int arg2 ;
34018 PyObject * obj0 = 0 ;
34019 PyObject * obj1 = 0 ;
34020 char *kwnames[] = {
34021 (char *) "self",(char *) "n", NULL
34022 };
34023
34024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Select",kwnames,&obj0,&obj1)) goto fail;
34025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34027 arg2 = (int) SWIG_AsInt(obj1);
34028 if (PyErr_Occurred()) SWIG_fail;
34029 {
34030 PyThreadState* __tstate = wxPyBeginAllowThreads();
34031 (arg1)->Select(arg2);
34032
34033 wxPyEndAllowThreads(__tstate);
34034 if (PyErr_Occurred()) SWIG_fail;
34035 }
34036 Py_INCREF(Py_None); resultobj = Py_None;
34037 return resultobj;
34038 fail:
34039 return NULL;
34040}
34041
34042
34043static PyObject *_wrap_ItemContainer_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
34044 PyObject *resultobj;
34045 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34046 int result;
34047 PyObject * obj0 = 0 ;
34048 char *kwnames[] = {
34049 (char *) "self", NULL
34050 };
34051
34052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetSelection",kwnames,&obj0)) goto fail;
34053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34055 {
34056 PyThreadState* __tstate = wxPyBeginAllowThreads();
34057 result = (int)((wxItemContainer const *)arg1)->GetSelection();
34058
34059 wxPyEndAllowThreads(__tstate);
34060 if (PyErr_Occurred()) SWIG_fail;
34061 }
34062 resultobj = SWIG_FromInt((int)result);
34063 return resultobj;
34064 fail:
34065 return NULL;
34066}
34067
34068
34069static PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
34070 PyObject *resultobj;
34071 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34072 wxString result;
34073 PyObject * obj0 = 0 ;
34074 char *kwnames[] = {
34075 (char *) "self", NULL
34076 };
34077
34078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStringSelection",kwnames,&obj0)) goto fail;
34079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34081 {
34082 PyThreadState* __tstate = wxPyBeginAllowThreads();
34083 result = ((wxItemContainer const *)arg1)->GetStringSelection();
34084
34085 wxPyEndAllowThreads(__tstate);
34086 if (PyErr_Occurred()) SWIG_fail;
34087 }
34088 {
34089#if wxUSE_UNICODE
34090 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34091#else
34092 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34093#endif
34094 }
34095 return resultobj;
34096 fail:
34097 return NULL;
34098}
34099
34100
34101static PyObject *_wrap_ItemContainer_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
34102 PyObject *resultobj;
34103 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34104 int arg2 ;
34105 PyObject *result;
34106 PyObject * obj0 = 0 ;
34107 PyObject * obj1 = 0 ;
34108 char *kwnames[] = {
34109 (char *) "self",(char *) "n", NULL
34110 };
34111
34112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetClientData",kwnames,&obj0,&obj1)) goto fail;
34113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34115 arg2 = (int) SWIG_AsInt(obj1);
34116 if (PyErr_Occurred()) SWIG_fail;
34117 {
34118 PyThreadState* __tstate = wxPyBeginAllowThreads();
34119 result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2);
34120
34121 wxPyEndAllowThreads(__tstate);
34122 if (PyErr_Occurred()) SWIG_fail;
34123 }
34124 resultobj = result;
34125 return resultobj;
34126 fail:
34127 return NULL;
34128}
34129
34130
34131static PyObject *_wrap_ItemContainer_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
34132 PyObject *resultobj;
34133 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34134 int arg2 ;
34135 PyObject *arg3 = (PyObject *) 0 ;
34136 PyObject * obj0 = 0 ;
34137 PyObject * obj1 = 0 ;
34138 PyObject * obj2 = 0 ;
34139 char *kwnames[] = {
34140 (char *) "self",(char *) "n",(char *) "clientData", NULL
34141 };
34142
34143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetClientData",kwnames,&obj0,&obj1,&obj2)) goto fail;
34144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34146 arg2 = (int) SWIG_AsInt(obj1);
34147 if (PyErr_Occurred()) SWIG_fail;
34148 arg3 = obj2;
34149 {
34150 PyThreadState* __tstate = wxPyBeginAllowThreads();
34151 wxItemContainer_SetClientData(arg1,arg2,arg3);
34152
34153 wxPyEndAllowThreads(__tstate);
34154 if (PyErr_Occurred()) SWIG_fail;
34155 }
34156 Py_INCREF(Py_None); resultobj = Py_None;
34157 return resultobj;
34158 fail:
34159 return NULL;
34160}
34161
34162
34163static PyObject * ItemContainer_swigregister(PyObject *self, PyObject *args) {
34164 PyObject *obj;
34165 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
34166 SWIG_TypeClientData(SWIGTYPE_p_wxItemContainer, obj);
34167 Py_INCREF(obj);
34168 return Py_BuildValue((char *)"");
34169}
34170static PyObject * ControlWithItems_swigregister(PyObject *self, PyObject *args) {
34171 PyObject *obj;
34172 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
34173 SWIG_TypeClientData(SWIGTYPE_p_wxControlWithItems, obj);
34174 Py_INCREF(obj);
34175 return Py_BuildValue((char *)"");
34176}
34177static PyObject *_wrap_new_SizerItem(PyObject *self, PyObject *args, PyObject *kwargs) {
34178 PyObject *resultobj;
34179 wxSizerItem *result;
34180 char *kwnames[] = {
34181 NULL
34182 };
34183
34184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SizerItem",kwnames)) goto fail;
34185 {
34186 PyThreadState* __tstate = wxPyBeginAllowThreads();
34187 result = (wxSizerItem *)new wxSizerItem();
34188
34189 wxPyEndAllowThreads(__tstate);
34190 if (PyErr_Occurred()) SWIG_fail;
34191 }
34192 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1);
34193 return resultobj;
34194 fail:
34195 return NULL;
34196}
34197
34198
248ed943 34199static PyObject *_wrap_new_SizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc 34200 PyObject *resultobj;
248ed943 34201 wxWindow *arg1 = (wxWindow *) 0 ;
d55e5bfc
RD
34202 int arg2 ;
34203 int arg3 ;
34204 int arg4 ;
248ed943 34205 PyObject *arg5 = (PyObject *) NULL ;
d55e5bfc
RD
34206 wxSizerItem *result;
34207 PyObject * obj0 = 0 ;
34208 PyObject * obj1 = 0 ;
34209 PyObject * obj2 = 0 ;
34210 PyObject * obj3 = 0 ;
34211 PyObject * obj4 = 0 ;
d55e5bfc 34212 char *kwnames[] = {
248ed943 34213 (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
d55e5bfc
RD
34214 };
34215
248ed943
RD
34216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
34217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
34218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d55e5bfc
RD
34219 arg2 = (int) SWIG_AsInt(obj1);
34220 if (PyErr_Occurred()) SWIG_fail;
34221 arg3 = (int) SWIG_AsInt(obj2);
34222 if (PyErr_Occurred()) SWIG_fail;
34223 arg4 = (int) SWIG_AsInt(obj3);
34224 if (PyErr_Occurred()) SWIG_fail;
248ed943
RD
34225 if (obj4) {
34226 arg5 = obj4;
34227 }
d55e5bfc
RD
34228 {
34229 PyThreadState* __tstate = wxPyBeginAllowThreads();
248ed943 34230 result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5);
d55e5bfc
RD
34231
34232 wxPyEndAllowThreads(__tstate);
34233 if (PyErr_Occurred()) SWIG_fail;
34234 }
34235 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1);
34236 return resultobj;
34237 fail:
34238 return NULL;
34239}
34240
34241
248ed943 34242static PyObject *_wrap_new_SizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc 34243 PyObject *resultobj;
248ed943 34244 int arg1 ;
d55e5bfc
RD
34245 int arg2 ;
34246 int arg3 ;
34247 int arg4 ;
248ed943
RD
34248 int arg5 ;
34249 PyObject *arg6 = (PyObject *) NULL ;
d55e5bfc
RD
34250 wxSizerItem *result;
34251 PyObject * obj0 = 0 ;
34252 PyObject * obj1 = 0 ;
34253 PyObject * obj2 = 0 ;
34254 PyObject * obj3 = 0 ;
34255 PyObject * obj4 = 0 ;
248ed943 34256 PyObject * obj5 = 0 ;
d55e5bfc 34257 char *kwnames[] = {
248ed943 34258 (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
d55e5bfc
RD
34259 };
34260
248ed943
RD
34261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_SizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
34262 arg1 = (int) SWIG_AsInt(obj0);
34263 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
34264 arg2 = (int) SWIG_AsInt(obj1);
34265 if (PyErr_Occurred()) SWIG_fail;
34266 arg3 = (int) SWIG_AsInt(obj2);
34267 if (PyErr_Occurred()) SWIG_fail;
34268 arg4 = (int) SWIG_AsInt(obj3);
34269 if (PyErr_Occurred()) SWIG_fail;
248ed943
RD
34270 arg5 = (int) SWIG_AsInt(obj4);
34271 if (PyErr_Occurred()) SWIG_fail;
34272 if (obj5) {
34273 arg6 = obj5;
34274 }
d55e5bfc
RD
34275 {
34276 PyThreadState* __tstate = wxPyBeginAllowThreads();
248ed943 34277 result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6);
d55e5bfc
RD
34278
34279 wxPyEndAllowThreads(__tstate);
34280 if (PyErr_Occurred()) SWIG_fail;
34281 }
34282 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1);
34283 return resultobj;
34284 fail:
34285 return NULL;
34286}
34287
34288
34289static PyObject *_wrap_new_SizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
34290 PyObject *resultobj;
34291 wxSizer *arg1 = (wxSizer *) 0 ;
34292 int arg2 ;
34293 int arg3 ;
34294 int arg4 ;
248ed943 34295 PyObject *arg5 = (PyObject *) NULL ;
d55e5bfc
RD
34296 wxSizerItem *result;
34297 PyObject * obj0 = 0 ;
34298 PyObject * obj1 = 0 ;
34299 PyObject * obj2 = 0 ;
34300 PyObject * obj3 = 0 ;
34301 PyObject * obj4 = 0 ;
34302 char *kwnames[] = {
34303 (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
34304 };
34305
248ed943 34306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
34307 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
34308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34309 arg2 = (int) SWIG_AsInt(obj1);
34310 if (PyErr_Occurred()) SWIG_fail;
34311 arg3 = (int) SWIG_AsInt(obj2);
34312 if (PyErr_Occurred()) SWIG_fail;
34313 arg4 = (int) SWIG_AsInt(obj3);
34314 if (PyErr_Occurred()) SWIG_fail;
248ed943
RD
34315 if (obj4) {
34316 arg5 = obj4;
34317 }
d55e5bfc
RD
34318 {
34319 PyThreadState* __tstate = wxPyBeginAllowThreads();
248ed943 34320 result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5);
d55e5bfc
RD
34321
34322 wxPyEndAllowThreads(__tstate);
34323 if (PyErr_Occurred()) SWIG_fail;
34324 }
34325 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1);
34326 return resultobj;
34327 fail:
34328 return NULL;
34329}
34330
34331
34332static PyObject *_wrap_SizerItem_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) {
34333 PyObject *resultobj;
34334 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34335 PyObject * obj0 = 0 ;
34336 char *kwnames[] = {
34337 (char *) "self", NULL
34338 };
34339
34340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DeleteWindows",kwnames,&obj0)) goto fail;
34341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34343 {
34344 PyThreadState* __tstate = wxPyBeginAllowThreads();
34345 (arg1)->DeleteWindows();
34346
34347 wxPyEndAllowThreads(__tstate);
34348 if (PyErr_Occurred()) SWIG_fail;
34349 }
34350 Py_INCREF(Py_None); resultobj = Py_None;
34351 return resultobj;
34352 fail:
34353 return NULL;
34354}
34355
34356
34357static PyObject *_wrap_SizerItem_DetachSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
34358 PyObject *resultobj;
34359 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34360 PyObject * obj0 = 0 ;
34361 char *kwnames[] = {
34362 (char *) "self", NULL
34363 };
34364
34365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DetachSizer",kwnames,&obj0)) goto fail;
34366 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34368 {
34369 PyThreadState* __tstate = wxPyBeginAllowThreads();
34370 (arg1)->DetachSizer();
34371
34372 wxPyEndAllowThreads(__tstate);
34373 if (PyErr_Occurred()) SWIG_fail;
34374 }
34375 Py_INCREF(Py_None); resultobj = Py_None;
34376 return resultobj;
34377 fail:
34378 return NULL;
34379}
34380
34381
34382static PyObject *_wrap_SizerItem_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
34383 PyObject *resultobj;
34384 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34385 wxSize result;
34386 PyObject * obj0 = 0 ;
34387 char *kwnames[] = {
34388 (char *) "self", NULL
34389 };
34390
34391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSize",kwnames,&obj0)) goto fail;
34392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34394 {
34395 PyThreadState* __tstate = wxPyBeginAllowThreads();
34396 result = (arg1)->GetSize();
34397
34398 wxPyEndAllowThreads(__tstate);
34399 if (PyErr_Occurred()) SWIG_fail;
34400 }
34401 {
34402 wxSize * resultptr;
34403 resultptr = new wxSize((wxSize &) result);
34404 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
34405 }
34406 return resultobj;
34407 fail:
34408 return NULL;
34409}
34410
34411
34412static PyObject *_wrap_SizerItem_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
34413 PyObject *resultobj;
34414 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34415 wxSize result;
34416 PyObject * obj0 = 0 ;
34417 char *kwnames[] = {
34418 (char *) "self", NULL
34419 };
34420
34421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_CalcMin",kwnames,&obj0)) goto fail;
34422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34424 {
34425 PyThreadState* __tstate = wxPyBeginAllowThreads();
34426 result = (arg1)->CalcMin();
34427
34428 wxPyEndAllowThreads(__tstate);
34429 if (PyErr_Occurred()) SWIG_fail;
34430 }
34431 {
34432 wxSize * resultptr;
34433 resultptr = new wxSize((wxSize &) result);
34434 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
34435 }
34436 return resultobj;
34437 fail:
34438 return NULL;
34439}
34440
34441
34442static PyObject *_wrap_SizerItem_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) {
34443 PyObject *resultobj;
34444 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34445 wxPoint arg2 ;
34446 wxSize arg3 ;
34447 wxPoint *argp2 ;
34448 wxSize *argp3 ;
34449 PyObject * obj0 = 0 ;
34450 PyObject * obj1 = 0 ;
34451 PyObject * obj2 = 0 ;
34452 char *kwnames[] = {
34453 (char *) "self",(char *) "pos",(char *) "size", NULL
34454 };
34455
34456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail;
34457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34459 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint,
34460 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
34461 arg2 = *argp2;
34462 if ((SWIG_ConvertPtr(obj2,(void **)(&argp3),SWIGTYPE_p_wxSize,
34463 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
34464 arg3 = *argp3;
34465 {
34466 PyThreadState* __tstate = wxPyBeginAllowThreads();
34467 (arg1)->SetDimension(arg2,arg3);
34468
34469 wxPyEndAllowThreads(__tstate);
34470 if (PyErr_Occurred()) SWIG_fail;
34471 }
34472 Py_INCREF(Py_None); resultobj = Py_None;
34473 return resultobj;
34474 fail:
34475 return NULL;
34476}
34477
34478
34479static PyObject *_wrap_SizerItem_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) {
34480 PyObject *resultobj;
34481 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34482 wxSize result;
34483 PyObject * obj0 = 0 ;
34484 char *kwnames[] = {
34485 (char *) "self", NULL
34486 };
34487
34488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSize",kwnames,&obj0)) goto fail;
34489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34491 {
34492 PyThreadState* __tstate = wxPyBeginAllowThreads();
34493 result = (arg1)->GetMinSize();
34494
34495 wxPyEndAllowThreads(__tstate);
34496 if (PyErr_Occurred()) SWIG_fail;
34497 }
34498 {
34499 wxSize * resultptr;
34500 resultptr = new wxSize((wxSize &) result);
34501 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
34502 }
34503 return resultobj;
34504 fail:
34505 return NULL;
34506}
34507
34508
34509static PyObject *_wrap_SizerItem_SetInitSize(PyObject *self, PyObject *args, PyObject *kwargs) {
34510 PyObject *resultobj;
34511 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34512 int arg2 ;
34513 int arg3 ;
34514 PyObject * obj0 = 0 ;
34515 PyObject * obj1 = 0 ;
34516 PyObject * obj2 = 0 ;
34517 char *kwnames[] = {
34518 (char *) "self",(char *) "x",(char *) "y", NULL
34519 };
34520
34521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetInitSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
34522 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34523 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34524 arg2 = (int) SWIG_AsInt(obj1);
34525 if (PyErr_Occurred()) SWIG_fail;
34526 arg3 = (int) SWIG_AsInt(obj2);
34527 if (PyErr_Occurred()) SWIG_fail;
34528 {
34529 PyThreadState* __tstate = wxPyBeginAllowThreads();
34530 (arg1)->SetInitSize(arg2,arg3);
34531
34532 wxPyEndAllowThreads(__tstate);
34533 if (PyErr_Occurred()) SWIG_fail;
34534 }
34535 Py_INCREF(Py_None); resultobj = Py_None;
34536 return resultobj;
34537 fail:
34538 return NULL;
34539}
34540
34541
34542static PyObject *_wrap_SizerItem_SetRatioWH(PyObject *self, PyObject *args, PyObject *kwargs) {
34543 PyObject *resultobj;
34544 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34545 int arg2 ;
34546 int arg3 ;
34547 PyObject * obj0 = 0 ;
34548 PyObject * obj1 = 0 ;
34549 PyObject * obj2 = 0 ;
34550 char *kwnames[] = {
34551 (char *) "self",(char *) "width",(char *) "height", NULL
34552 };
34553
34554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetRatioWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
34555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34557 arg2 = (int) SWIG_AsInt(obj1);
34558 if (PyErr_Occurred()) SWIG_fail;
34559 arg3 = (int) SWIG_AsInt(obj2);
34560 if (PyErr_Occurred()) SWIG_fail;
34561 {
34562 PyThreadState* __tstate = wxPyBeginAllowThreads();
34563 (arg1)->SetRatio(arg2,arg3);
34564
34565 wxPyEndAllowThreads(__tstate);
34566 if (PyErr_Occurred()) SWIG_fail;
34567 }
34568 Py_INCREF(Py_None); resultobj = Py_None;
34569 return resultobj;
34570 fail:
34571 return NULL;
34572}
34573
34574
34575static PyObject *_wrap_SizerItem_SetRatioSize(PyObject *self, PyObject *args, PyObject *kwargs) {
34576 PyObject *resultobj;
34577 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34578 wxSize arg2 ;
34579 wxSize *argp2 ;
34580 PyObject * obj0 = 0 ;
34581 PyObject * obj1 = 0 ;
34582 char *kwnames[] = {
34583 (char *) "self",(char *) "size", NULL
34584 };
34585
34586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) goto fail;
34587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34589 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize,
34590 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
34591 arg2 = *argp2;
34592 {
34593 PyThreadState* __tstate = wxPyBeginAllowThreads();
34594 (arg1)->SetRatio(arg2);
34595
34596 wxPyEndAllowThreads(__tstate);
34597 if (PyErr_Occurred()) SWIG_fail;
34598 }
34599 Py_INCREF(Py_None); resultobj = Py_None;
34600 return resultobj;
34601 fail:
34602 return NULL;
34603}
34604
34605
34606static PyObject *_wrap_SizerItem_SetRatio(PyObject *self, PyObject *args, PyObject *kwargs) {
34607 PyObject *resultobj;
34608 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34609 float arg2 ;
34610 PyObject * obj0 = 0 ;
34611 PyObject * obj1 = 0 ;
34612 char *kwnames[] = {
34613 (char *) "self",(char *) "ratio", NULL
34614 };
34615
34616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatio",kwnames,&obj0,&obj1)) goto fail;
34617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34619 arg2 = (float) SWIG_AsFloat(obj1);
34620 if (PyErr_Occurred()) SWIG_fail;
34621 {
34622 PyThreadState* __tstate = wxPyBeginAllowThreads();
34623 (arg1)->SetRatio(arg2);
34624
34625 wxPyEndAllowThreads(__tstate);
34626 if (PyErr_Occurred()) SWIG_fail;
34627 }
34628 Py_INCREF(Py_None); resultobj = Py_None;
34629 return resultobj;
34630 fail:
34631 return NULL;
34632}
34633
34634
34635static PyObject *_wrap_SizerItem_GetRatio(PyObject *self, PyObject *args, PyObject *kwargs) {
34636 PyObject *resultobj;
34637 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34638 float result;
34639 PyObject * obj0 = 0 ;
34640 char *kwnames[] = {
34641 (char *) "self", NULL
34642 };
34643
34644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRatio",kwnames,&obj0)) goto fail;
34645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34647 {
34648 PyThreadState* __tstate = wxPyBeginAllowThreads();
34649 result = (float)(arg1)->GetRatio();
34650
34651 wxPyEndAllowThreads(__tstate);
34652 if (PyErr_Occurred()) SWIG_fail;
34653 }
34654 resultobj = SWIG_FromFloat((float)result);
34655 return resultobj;
34656 fail:
34657 return NULL;
34658}
34659
34660
34661static PyObject *_wrap_SizerItem_IsWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
34662 PyObject *resultobj;
34663 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34664 bool result;
34665 PyObject * obj0 = 0 ;
34666 char *kwnames[] = {
34667 (char *) "self", NULL
34668 };
34669
34670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsWindow",kwnames,&obj0)) goto fail;
34671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34673 {
34674 PyThreadState* __tstate = wxPyBeginAllowThreads();
34675 result = (bool)(arg1)->IsWindow();
34676
34677 wxPyEndAllowThreads(__tstate);
34678 if (PyErr_Occurred()) SWIG_fail;
34679 }
34680 {
34681 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34682 }
34683 return resultobj;
34684 fail:
34685 return NULL;
34686}
34687
34688
34689static PyObject *_wrap_SizerItem_IsSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
34690 PyObject *resultobj;
34691 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34692 bool result;
34693 PyObject * obj0 = 0 ;
34694 char *kwnames[] = {
34695 (char *) "self", NULL
34696 };
34697
34698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSizer",kwnames,&obj0)) goto fail;
34699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34701 {
34702 PyThreadState* __tstate = wxPyBeginAllowThreads();
34703 result = (bool)(arg1)->IsSizer();
34704
34705 wxPyEndAllowThreads(__tstate);
34706 if (PyErr_Occurred()) SWIG_fail;
34707 }
34708 {
34709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34710 }
34711 return resultobj;
34712 fail:
34713 return NULL;
34714}
34715
34716
34717static PyObject *_wrap_SizerItem_IsSpacer(PyObject *self, PyObject *args, PyObject *kwargs) {
34718 PyObject *resultobj;
34719 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34720 bool result;
34721 PyObject * obj0 = 0 ;
34722 char *kwnames[] = {
34723 (char *) "self", NULL
34724 };
34725
34726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSpacer",kwnames,&obj0)) goto fail;
34727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34729 {
34730 PyThreadState* __tstate = wxPyBeginAllowThreads();
34731 result = (bool)(arg1)->IsSpacer();
34732
34733 wxPyEndAllowThreads(__tstate);
34734 if (PyErr_Occurred()) SWIG_fail;
34735 }
34736 {
34737 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34738 }
34739 return resultobj;
34740 fail:
34741 return NULL;
34742}
34743
34744
34745static PyObject *_wrap_SizerItem_SetProportion(PyObject *self, PyObject *args, PyObject *kwargs) {
34746 PyObject *resultobj;
34747 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34748 int arg2 ;
34749 PyObject * obj0 = 0 ;
34750 PyObject * obj1 = 0 ;
34751 char *kwnames[] = {
34752 (char *) "self",(char *) "proportion", NULL
34753 };
34754
34755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetProportion",kwnames,&obj0,&obj1)) goto fail;
34756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34758 arg2 = (int) SWIG_AsInt(obj1);
34759 if (PyErr_Occurred()) SWIG_fail;
34760 {
34761 PyThreadState* __tstate = wxPyBeginAllowThreads();
34762 (arg1)->SetProportion(arg2);
34763
34764 wxPyEndAllowThreads(__tstate);
34765 if (PyErr_Occurred()) SWIG_fail;
34766 }
34767 Py_INCREF(Py_None); resultobj = Py_None;
34768 return resultobj;
34769 fail:
34770 return NULL;
34771}
34772
34773
34774static PyObject *_wrap_SizerItem_GetProportion(PyObject *self, PyObject *args, PyObject *kwargs) {
34775 PyObject *resultobj;
34776 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34777 int result;
34778 PyObject * obj0 = 0 ;
34779 char *kwnames[] = {
34780 (char *) "self", NULL
34781 };
34782
34783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetProportion",kwnames,&obj0)) goto fail;
34784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34786 {
34787 PyThreadState* __tstate = wxPyBeginAllowThreads();
34788 result = (int)(arg1)->GetProportion();
34789
34790 wxPyEndAllowThreads(__tstate);
34791 if (PyErr_Occurred()) SWIG_fail;
34792 }
34793 resultobj = SWIG_FromInt((int)result);
34794 return resultobj;
34795 fail:
34796 return NULL;
34797}
34798
34799
34800static PyObject *_wrap_SizerItem_SetFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
34801 PyObject *resultobj;
34802 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34803 int arg2 ;
34804 PyObject * obj0 = 0 ;
34805 PyObject * obj1 = 0 ;
34806 char *kwnames[] = {
34807 (char *) "self",(char *) "flag", NULL
34808 };
34809
34810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetFlag",kwnames,&obj0,&obj1)) goto fail;
34811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34813 arg2 = (int) SWIG_AsInt(obj1);
34814 if (PyErr_Occurred()) SWIG_fail;
34815 {
34816 PyThreadState* __tstate = wxPyBeginAllowThreads();
34817 (arg1)->SetFlag(arg2);
34818
34819 wxPyEndAllowThreads(__tstate);
34820 if (PyErr_Occurred()) SWIG_fail;
34821 }
34822 Py_INCREF(Py_None); resultobj = Py_None;
34823 return resultobj;
34824 fail:
34825 return NULL;
34826}
34827
34828
34829static PyObject *_wrap_SizerItem_GetFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
34830 PyObject *resultobj;
34831 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34832 int result;
34833 PyObject * obj0 = 0 ;
34834 char *kwnames[] = {
34835 (char *) "self", NULL
34836 };
34837
34838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetFlag",kwnames,&obj0)) goto fail;
34839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34841 {
34842 PyThreadState* __tstate = wxPyBeginAllowThreads();
34843 result = (int)(arg1)->GetFlag();
34844
34845 wxPyEndAllowThreads(__tstate);
34846 if (PyErr_Occurred()) SWIG_fail;
34847 }
34848 resultobj = SWIG_FromInt((int)result);
34849 return resultobj;
34850 fail:
34851 return NULL;
34852}
34853
34854
34855static PyObject *_wrap_SizerItem_SetBorder(PyObject *self, PyObject *args, PyObject *kwargs) {
34856 PyObject *resultobj;
34857 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34858 int arg2 ;
34859 PyObject * obj0 = 0 ;
34860 PyObject * obj1 = 0 ;
34861 char *kwnames[] = {
34862 (char *) "self",(char *) "border", NULL
34863 };
34864
34865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetBorder",kwnames,&obj0,&obj1)) goto fail;
34866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34868 arg2 = (int) SWIG_AsInt(obj1);
34869 if (PyErr_Occurred()) SWIG_fail;
34870 {
34871 PyThreadState* __tstate = wxPyBeginAllowThreads();
34872 (arg1)->SetBorder(arg2);
34873
34874 wxPyEndAllowThreads(__tstate);
34875 if (PyErr_Occurred()) SWIG_fail;
34876 }
34877 Py_INCREF(Py_None); resultobj = Py_None;
34878 return resultobj;
34879 fail:
34880 return NULL;
34881}
34882
34883
34884static PyObject *_wrap_SizerItem_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) {
34885 PyObject *resultobj;
34886 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34887 int result;
34888 PyObject * obj0 = 0 ;
34889 char *kwnames[] = {
34890 (char *) "self", NULL
34891 };
34892
34893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetBorder",kwnames,&obj0)) goto fail;
34894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34896 {
34897 PyThreadState* __tstate = wxPyBeginAllowThreads();
34898 result = (int)(arg1)->GetBorder();
34899
34900 wxPyEndAllowThreads(__tstate);
34901 if (PyErr_Occurred()) SWIG_fail;
34902 }
34903 resultobj = SWIG_FromInt((int)result);
34904 return resultobj;
34905 fail:
34906 return NULL;
34907}
34908
34909
34910static PyObject *_wrap_SizerItem_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
34911 PyObject *resultobj;
34912 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34913 wxWindow *result;
34914 PyObject * obj0 = 0 ;
34915 char *kwnames[] = {
34916 (char *) "self", NULL
34917 };
34918
34919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetWindow",kwnames,&obj0)) goto fail;
34920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34922 {
34923 PyThreadState* __tstate = wxPyBeginAllowThreads();
34924 result = (wxWindow *)(arg1)->GetWindow();
34925
34926 wxPyEndAllowThreads(__tstate);
34927 if (PyErr_Occurred()) SWIG_fail;
34928 }
34929 {
34930 resultobj = wxPyMake_wxObject(result);
34931 }
34932 return resultobj;
34933 fail:
34934 return NULL;
34935}
34936
34937
34938static PyObject *_wrap_SizerItem_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
34939 PyObject *resultobj;
34940 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34941 wxWindow *arg2 = (wxWindow *) 0 ;
34942 PyObject * obj0 = 0 ;
34943 PyObject * obj1 = 0 ;
34944 char *kwnames[] = {
34945 (char *) "self",(char *) "window", NULL
34946 };
34947
34948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) goto fail;
34949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34951 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
34952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34953 {
34954 PyThreadState* __tstate = wxPyBeginAllowThreads();
34955 (arg1)->SetWindow(arg2);
34956
34957 wxPyEndAllowThreads(__tstate);
34958 if (PyErr_Occurred()) SWIG_fail;
34959 }
34960 Py_INCREF(Py_None); resultobj = Py_None;
34961 return resultobj;
34962 fail:
34963 return NULL;
34964}
34965
34966
34967static PyObject *_wrap_SizerItem_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
34968 PyObject *resultobj;
34969 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34970 wxSizer *result;
34971 PyObject * obj0 = 0 ;
34972 char *kwnames[] = {
34973 (char *) "self", NULL
34974 };
34975
34976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSizer",kwnames,&obj0)) goto fail;
34977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34979 {
34980 PyThreadState* __tstate = wxPyBeginAllowThreads();
34981 result = (wxSizer *)(arg1)->GetSizer();
34982
34983 wxPyEndAllowThreads(__tstate);
34984 if (PyErr_Occurred()) SWIG_fail;
34985 }
34986 {
34987 resultobj = wxPyMake_wxSizer(result);
34988 }
34989 return resultobj;
34990 fail:
34991 return NULL;
34992}
34993
34994
34995static PyObject *_wrap_SizerItem_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
34996 PyObject *resultobj;
34997 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34998 wxSizer *arg2 = (wxSizer *) 0 ;
34999 PyObject * obj0 = 0 ;
35000 PyObject * obj1 = 0 ;
35001 char *kwnames[] = {
35002 (char *) "self",(char *) "sizer", NULL
35003 };
35004
35005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) goto fail;
35006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35008 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
35009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35010 {
35011 PyThreadState* __tstate = wxPyBeginAllowThreads();
35012 (arg1)->SetSizer(arg2);
35013
35014 wxPyEndAllowThreads(__tstate);
35015 if (PyErr_Occurred()) SWIG_fail;
35016 }
35017 Py_INCREF(Py_None); resultobj = Py_None;
35018 return resultobj;
35019 fail:
35020 return NULL;
35021}
35022
35023
35024static PyObject *_wrap_SizerItem_GetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) {
35025 PyObject *resultobj;
35026 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35027 wxSize *result;
35028 PyObject * obj0 = 0 ;
35029 char *kwnames[] = {
35030 (char *) "self", NULL
35031 };
35032
35033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSpacer",kwnames,&obj0)) goto fail;
35034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35036 {
35037 PyThreadState* __tstate = wxPyBeginAllowThreads();
35038 {
35039 wxSize const &_result_ref = (arg1)->GetSpacer();
35040 result = (wxSize *) &_result_ref;
35041 }
35042
35043 wxPyEndAllowThreads(__tstate);
35044 if (PyErr_Occurred()) SWIG_fail;
35045 }
35046 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0);
35047 return resultobj;
35048 fail:
35049 return NULL;
35050}
35051
35052
35053static PyObject *_wrap_SizerItem_SetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) {
35054 PyObject *resultobj;
35055 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35056 wxSize *arg2 = 0 ;
35057 wxSize temp2 ;
35058 PyObject * obj0 = 0 ;
35059 PyObject * obj1 = 0 ;
35060 char *kwnames[] = {
35061 (char *) "self",(char *) "size", NULL
35062 };
35063
35064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) goto fail;
35065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35067 {
35068 arg2 = &temp2;
35069 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
35070 }
35071 {
35072 PyThreadState* __tstate = wxPyBeginAllowThreads();
35073 (arg1)->SetSpacer((wxSize const &)*arg2);
35074
35075 wxPyEndAllowThreads(__tstate);
35076 if (PyErr_Occurred()) SWIG_fail;
35077 }
35078 Py_INCREF(Py_None); resultobj = Py_None;
35079 return resultobj;
35080 fail:
35081 return NULL;
35082}
35083
35084
35085static PyObject *_wrap_SizerItem_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
35086 PyObject *resultobj;
35087 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35088 bool arg2 ;
35089 PyObject * obj0 = 0 ;
35090 PyObject * obj1 = 0 ;
35091 char *kwnames[] = {
35092 (char *) "self",(char *) "show", NULL
35093 };
35094
35095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) goto fail;
35096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35098 arg2 = (bool) SWIG_AsBool(obj1);
35099 if (PyErr_Occurred()) SWIG_fail;
35100 {
35101 PyThreadState* __tstate = wxPyBeginAllowThreads();
35102 (arg1)->Show(arg2);
35103
35104 wxPyEndAllowThreads(__tstate);
35105 if (PyErr_Occurred()) SWIG_fail;
35106 }
35107 Py_INCREF(Py_None); resultobj = Py_None;
35108 return resultobj;
35109 fail:
35110 return NULL;
35111}
35112
35113
35114static PyObject *_wrap_SizerItem_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) {
35115 PyObject *resultobj;
35116 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35117 bool result;
35118 PyObject * obj0 = 0 ;
35119 char *kwnames[] = {
35120 (char *) "self", NULL
35121 };
35122
35123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsShown",kwnames,&obj0)) goto fail;
35124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35126 {
35127 PyThreadState* __tstate = wxPyBeginAllowThreads();
35128 result = (bool)(arg1)->IsShown();
35129
35130 wxPyEndAllowThreads(__tstate);
35131 if (PyErr_Occurred()) SWIG_fail;
35132 }
35133 {
35134 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35135 }
35136 return resultobj;
35137 fail:
35138 return NULL;
35139}
35140
35141
35142static PyObject *_wrap_SizerItem_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
35143 PyObject *resultobj;
35144 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35145 wxPoint result;
35146 PyObject * obj0 = 0 ;
35147 char *kwnames[] = {
35148 (char *) "self", NULL
35149 };
35150
35151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetPosition",kwnames,&obj0)) goto fail;
35152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35154 {
35155 PyThreadState* __tstate = wxPyBeginAllowThreads();
35156 result = (arg1)->GetPosition();
35157
35158 wxPyEndAllowThreads(__tstate);
35159 if (PyErr_Occurred()) SWIG_fail;
35160 }
35161 {
35162 wxPoint * resultptr;
35163 resultptr = new wxPoint((wxPoint &) result);
35164 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
35165 }
35166 return resultobj;
35167 fail:
35168 return NULL;
35169}
35170
35171
35172static PyObject *_wrap_SizerItem_GetUserData(PyObject *self, PyObject *args, PyObject *kwargs) {
35173 PyObject *resultobj;
35174 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35175 PyObject *result;
35176 PyObject * obj0 = 0 ;
35177 char *kwnames[] = {
35178 (char *) "self", NULL
35179 };
35180
35181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetUserData",kwnames,&obj0)) goto fail;
35182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35184 {
35185 PyThreadState* __tstate = wxPyBeginAllowThreads();
35186 result = (PyObject *)wxSizerItem_GetUserData(arg1);
35187
35188 wxPyEndAllowThreads(__tstate);
35189 if (PyErr_Occurred()) SWIG_fail;
35190 }
35191 resultobj = result;
35192 return resultobj;
35193 fail:
35194 return NULL;
35195}
35196
35197
35198static PyObject * SizerItem_swigregister(PyObject *self, PyObject *args) {
35199 PyObject *obj;
35200 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
35201 SWIG_TypeClientData(SWIGTYPE_p_wxSizerItem, obj);
35202 Py_INCREF(obj);
35203 return Py_BuildValue((char *)"");
35204}
35205static PyObject *_wrap_Sizer__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
35206 PyObject *resultobj;
35207 wxSizer *arg1 = (wxSizer *) 0 ;
35208 PyObject *arg2 = (PyObject *) 0 ;
35209 PyObject * obj0 = 0 ;
35210 PyObject * obj1 = 0 ;
35211 char *kwnames[] = {
35212 (char *) "self",(char *) "_self", NULL
35213 };
35214
35215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
35216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35218 arg2 = obj1;
35219 {
35220 PyThreadState* __tstate = wxPyBeginAllowThreads();
35221 wxSizer__setOORInfo(arg1,arg2);
35222
35223 wxPyEndAllowThreads(__tstate);
35224 if (PyErr_Occurred()) SWIG_fail;
35225 }
35226 Py_INCREF(Py_None); resultobj = Py_None;
35227 return resultobj;
35228 fail:
35229 return NULL;
35230}
35231
35232
35233static PyObject *_wrap_Sizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
35234 PyObject *resultobj;
35235 wxSizer *arg1 = (wxSizer *) 0 ;
35236 PyObject *arg2 = (PyObject *) 0 ;
35237 int arg3 = (int) 0 ;
35238 int arg4 = (int) 0 ;
35239 int arg5 = (int) 0 ;
35240 PyObject *arg6 = (PyObject *) NULL ;
35241 PyObject * obj0 = 0 ;
35242 PyObject * obj1 = 0 ;
35243 PyObject * obj2 = 0 ;
35244 PyObject * obj3 = 0 ;
35245 PyObject * obj4 = 0 ;
35246 PyObject * obj5 = 0 ;
35247 char *kwnames[] = {
35248 (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
35249 };
35250
35251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
35252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35254 arg2 = obj1;
35255 if (obj2) {
35256 arg3 = (int) SWIG_AsInt(obj2);
35257 if (PyErr_Occurred()) SWIG_fail;
35258 }
35259 if (obj3) {
35260 arg4 = (int) SWIG_AsInt(obj3);
35261 if (PyErr_Occurred()) SWIG_fail;
35262 }
35263 if (obj4) {
35264 arg5 = (int) SWIG_AsInt(obj4);
35265 if (PyErr_Occurred()) SWIG_fail;
35266 }
35267 if (obj5) {
35268 arg6 = obj5;
35269 }
35270 {
35271 PyThreadState* __tstate = wxPyBeginAllowThreads();
35272 wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6);
35273
35274 wxPyEndAllowThreads(__tstate);
35275 if (PyErr_Occurred()) SWIG_fail;
35276 }
35277 Py_INCREF(Py_None); resultobj = Py_None;
35278 return resultobj;
35279 fail:
35280 return NULL;
35281}
35282
35283
35284static PyObject *_wrap_Sizer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
35285 PyObject *resultobj;
35286 wxSizer *arg1 = (wxSizer *) 0 ;
35287 int arg2 ;
35288 PyObject *arg3 = (PyObject *) 0 ;
35289 int arg4 = (int) 0 ;
35290 int arg5 = (int) 0 ;
35291 int arg6 = (int) 0 ;
35292 PyObject *arg7 = (PyObject *) NULL ;
35293 PyObject * obj0 = 0 ;
35294 PyObject * obj1 = 0 ;
35295 PyObject * obj2 = 0 ;
35296 PyObject * obj3 = 0 ;
35297 PyObject * obj4 = 0 ;
35298 PyObject * obj5 = 0 ;
35299 PyObject * obj6 = 0 ;
35300 char *kwnames[] = {
35301 (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
35302 };
35303
35304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Sizer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
35305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35307 arg2 = (int) SWIG_AsInt(obj1);
35308 if (PyErr_Occurred()) SWIG_fail;
35309 arg3 = obj2;
35310 if (obj3) {
35311 arg4 = (int) SWIG_AsInt(obj3);
35312 if (PyErr_Occurred()) SWIG_fail;
35313 }
35314 if (obj4) {
35315 arg5 = (int) SWIG_AsInt(obj4);
35316 if (PyErr_Occurred()) SWIG_fail;
35317 }
35318 if (obj5) {
35319 arg6 = (int) SWIG_AsInt(obj5);
35320 if (PyErr_Occurred()) SWIG_fail;
35321 }
35322 if (obj6) {
35323 arg7 = obj6;
35324 }
35325 {
35326 PyThreadState* __tstate = wxPyBeginAllowThreads();
35327 wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
35328
35329 wxPyEndAllowThreads(__tstate);
35330 if (PyErr_Occurred()) SWIG_fail;
35331 }
35332 Py_INCREF(Py_None); resultobj = Py_None;
35333 return resultobj;
35334 fail:
35335 return NULL;
35336}
35337
35338
35339static PyObject *_wrap_Sizer_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) {
35340 PyObject *resultobj;
35341 wxSizer *arg1 = (wxSizer *) 0 ;
35342 PyObject *arg2 = (PyObject *) 0 ;
35343 int arg3 = (int) 0 ;
35344 int arg4 = (int) 0 ;
35345 int arg5 = (int) 0 ;
35346 PyObject *arg6 = (PyObject *) NULL ;
35347 PyObject * obj0 = 0 ;
35348 PyObject * obj1 = 0 ;
35349 PyObject * obj2 = 0 ;
35350 PyObject * obj3 = 0 ;
35351 PyObject * obj4 = 0 ;
35352 PyObject * obj5 = 0 ;
35353 char *kwnames[] = {
35354 (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
35355 };
35356
35357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
35358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35360 arg2 = obj1;
35361 if (obj2) {
35362 arg3 = (int) SWIG_AsInt(obj2);
35363 if (PyErr_Occurred()) SWIG_fail;
35364 }
35365 if (obj3) {
35366 arg4 = (int) SWIG_AsInt(obj3);
35367 if (PyErr_Occurred()) SWIG_fail;
35368 }
35369 if (obj4) {
35370 arg5 = (int) SWIG_AsInt(obj4);
35371 if (PyErr_Occurred()) SWIG_fail;
35372 }
35373 if (obj5) {
35374 arg6 = obj5;
35375 }
35376 {
35377 PyThreadState* __tstate = wxPyBeginAllowThreads();
35378 wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6);
35379
35380 wxPyEndAllowThreads(__tstate);
35381 if (PyErr_Occurred()) SWIG_fail;
35382 }
35383 Py_INCREF(Py_None); resultobj = Py_None;
35384 return resultobj;
35385 fail:
35386 return NULL;
35387}
35388
35389
35390static PyObject *_wrap_Sizer_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
35391 PyObject *resultobj;
35392 wxSizer *arg1 = (wxSizer *) 0 ;
35393 PyObject *arg2 = (PyObject *) 0 ;
35394 bool result;
35395 PyObject * obj0 = 0 ;
35396 PyObject * obj1 = 0 ;
35397 char *kwnames[] = {
35398 (char *) "self",(char *) "item", NULL
35399 };
35400
35401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) goto fail;
35402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35404 arg2 = obj1;
35405 {
35406 PyThreadState* __tstate = wxPyBeginAllowThreads();
35407 result = (bool)wxSizer_Remove(arg1,arg2);
35408
35409 wxPyEndAllowThreads(__tstate);
35410 if (PyErr_Occurred()) SWIG_fail;
35411 }
35412 {
35413 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35414 }
35415 return resultobj;
35416 fail:
35417 return NULL;
35418}
35419
35420
1a6bba1e
RD
35421static PyObject *_wrap_Sizer_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
35422 PyObject *resultobj;
35423 wxSizer *arg1 = (wxSizer *) 0 ;
35424 PyObject *arg2 = (PyObject *) 0 ;
35425 bool result;
35426 PyObject * obj0 = 0 ;
35427 PyObject * obj1 = 0 ;
35428 char *kwnames[] = {
35429 (char *) "self",(char *) "item", NULL
35430 };
35431
35432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Detach",kwnames,&obj0,&obj1)) goto fail;
35433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35435 arg2 = obj1;
35436 {
35437 PyThreadState* __tstate = wxPyBeginAllowThreads();
35438 result = (bool)wxSizer_Detach(arg1,arg2);
35439
35440 wxPyEndAllowThreads(__tstate);
35441 if (PyErr_Occurred()) SWIG_fail;
35442 }
35443 {
35444 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35445 }
35446 return resultobj;
35447 fail:
35448 return NULL;
35449}
35450
35451
d55e5bfc
RD
35452static PyObject *_wrap_Sizer__SetItemMinSize(PyObject *self, PyObject *args, PyObject *kwargs) {
35453 PyObject *resultobj;
35454 wxSizer *arg1 = (wxSizer *) 0 ;
35455 PyObject *arg2 = (PyObject *) 0 ;
35456 wxSize *arg3 = 0 ;
35457 wxSize temp3 ;
35458 PyObject * obj0 = 0 ;
35459 PyObject * obj1 = 0 ;
35460 PyObject * obj2 = 0 ;
35461 char *kwnames[] = {
35462 (char *) "self",(char *) "item",(char *) "size", NULL
35463 };
35464
35465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
35466 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35468 arg2 = obj1;
35469 {
35470 arg3 = &temp3;
35471 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
35472 }
35473 {
35474 PyThreadState* __tstate = wxPyBeginAllowThreads();
35475 wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3);
35476
35477 wxPyEndAllowThreads(__tstate);
35478 if (PyErr_Occurred()) SWIG_fail;
35479 }
35480 Py_INCREF(Py_None); resultobj = Py_None;
35481 return resultobj;
35482 fail:
35483 return NULL;
35484}
35485
35486
35487static PyObject *_wrap_Sizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) {
35488 PyObject *resultobj;
35489 wxSizer *arg1 = (wxSizer *) 0 ;
35490 wxSizerItem *arg2 = (wxSizerItem *) 0 ;
35491 PyObject * obj0 = 0 ;
35492 PyObject * obj1 = 0 ;
35493 char *kwnames[] = {
35494 (char *) "self",(char *) "item", NULL
35495 };
35496
35497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) goto fail;
35498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35500 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem,
35501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35502 {
35503 PyThreadState* __tstate = wxPyBeginAllowThreads();
35504 (arg1)->Add(arg2);
35505
35506 wxPyEndAllowThreads(__tstate);
35507 if (PyErr_Occurred()) SWIG_fail;
35508 }
35509 Py_INCREF(Py_None); resultobj = Py_None;
35510 return resultobj;
35511 fail:
35512 return NULL;
35513}
35514
35515
35516static PyObject *_wrap_Sizer_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
35517 PyObject *resultobj;
35518 wxSizer *arg1 = (wxSizer *) 0 ;
35519 size_t arg2 ;
35520 wxSizerItem *arg3 = (wxSizerItem *) 0 ;
35521 PyObject * obj0 = 0 ;
35522 PyObject * obj1 = 0 ;
35523 PyObject * obj2 = 0 ;
35524 char *kwnames[] = {
35525 (char *) "self",(char *) "index",(char *) "item", NULL
35526 };
35527
35528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
35529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35531 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
35532 if (PyErr_Occurred()) SWIG_fail;
35533 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxSizerItem,
35534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35535 {
35536 PyThreadState* __tstate = wxPyBeginAllowThreads();
35537 (arg1)->Insert(arg2,arg3);
35538
35539 wxPyEndAllowThreads(__tstate);
35540 if (PyErr_Occurred()) SWIG_fail;
35541 }
35542 Py_INCREF(Py_None); resultobj = Py_None;
35543 return resultobj;
35544 fail:
35545 return NULL;
35546}
35547
35548
35549static PyObject *_wrap_Sizer_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) {
35550 PyObject *resultobj;
35551 wxSizer *arg1 = (wxSizer *) 0 ;
35552 wxSizerItem *arg2 = (wxSizerItem *) 0 ;
35553 PyObject * obj0 = 0 ;
35554 PyObject * obj1 = 0 ;
35555 char *kwnames[] = {
35556 (char *) "self",(char *) "item", NULL
35557 };
35558
35559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) goto fail;
35560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35562 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem,
35563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35564 {
35565 PyThreadState* __tstate = wxPyBeginAllowThreads();
35566 (arg1)->Prepend(arg2);
35567
35568 wxPyEndAllowThreads(__tstate);
35569 if (PyErr_Occurred()) SWIG_fail;
35570 }
35571 Py_INCREF(Py_None); resultobj = Py_None;
35572 return resultobj;
35573 fail:
35574 return NULL;
35575}
35576
35577
35578static PyObject *_wrap_Sizer_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) {
35579 PyObject *resultobj;
35580 wxSizer *arg1 = (wxSizer *) 0 ;
35581 int arg2 ;
35582 int arg3 ;
35583 int arg4 ;
35584 int arg5 ;
35585 PyObject * obj0 = 0 ;
35586 PyObject * obj1 = 0 ;
35587 PyObject * obj2 = 0 ;
35588 PyObject * obj3 = 0 ;
35589 PyObject * obj4 = 0 ;
35590 char *kwnames[] = {
35591 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
35592 };
35593
35594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Sizer_SetDimension",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
35595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35597 arg2 = (int) SWIG_AsInt(obj1);
35598 if (PyErr_Occurred()) SWIG_fail;
35599 arg3 = (int) SWIG_AsInt(obj2);
35600 if (PyErr_Occurred()) SWIG_fail;
35601 arg4 = (int) SWIG_AsInt(obj3);
35602 if (PyErr_Occurred()) SWIG_fail;
35603 arg5 = (int) SWIG_AsInt(obj4);
35604 if (PyErr_Occurred()) SWIG_fail;
35605 {
35606 PyThreadState* __tstate = wxPyBeginAllowThreads();
35607 (arg1)->SetDimension(arg2,arg3,arg4,arg5);
35608
35609 wxPyEndAllowThreads(__tstate);
35610 if (PyErr_Occurred()) SWIG_fail;
35611 }
35612 Py_INCREF(Py_None); resultobj = Py_None;
35613 return resultobj;
35614 fail:
35615 return NULL;
35616}
35617
35618
35619static PyObject *_wrap_Sizer_SetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) {
35620 PyObject *resultobj;
35621 wxSizer *arg1 = (wxSizer *) 0 ;
35622 wxSize *arg2 = 0 ;
35623 wxSize temp2 ;
35624 PyObject * obj0 = 0 ;
35625 PyObject * obj1 = 0 ;
35626 char *kwnames[] = {
35627 (char *) "self",(char *) "size", NULL
35628 };
35629
35630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) goto fail;
35631 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35633 {
35634 arg2 = &temp2;
35635 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
35636 }
35637 {
35638 PyThreadState* __tstate = wxPyBeginAllowThreads();
35639 (arg1)->SetMinSize((wxSize const &)*arg2);
35640
35641 wxPyEndAllowThreads(__tstate);
35642 if (PyErr_Occurred()) SWIG_fail;
35643 }
35644 Py_INCREF(Py_None); resultobj = Py_None;
35645 return resultobj;
35646 fail:
35647 return NULL;
35648}
35649
35650
35651static PyObject *_wrap_Sizer_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
35652 PyObject *resultobj;
35653 wxSizer *arg1 = (wxSizer *) 0 ;
35654 wxSize result;
35655 PyObject * obj0 = 0 ;
35656 char *kwnames[] = {
35657 (char *) "self", NULL
35658 };
35659
35660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetSize",kwnames,&obj0)) goto fail;
35661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35663 {
35664 PyThreadState* __tstate = wxPyBeginAllowThreads();
35665 result = (arg1)->GetSize();
35666
35667 wxPyEndAllowThreads(__tstate);
35668 if (PyErr_Occurred()) SWIG_fail;
35669 }
35670 {
35671 wxSize * resultptr;
35672 resultptr = new wxSize((wxSize &) result);
35673 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
35674 }
35675 return resultobj;
35676 fail:
35677 return NULL;
35678}
35679
35680
35681static PyObject *_wrap_Sizer_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
35682 PyObject *resultobj;
35683 wxSizer *arg1 = (wxSizer *) 0 ;
35684 wxPoint result;
35685 PyObject * obj0 = 0 ;
35686 char *kwnames[] = {
35687 (char *) "self", NULL
35688 };
35689
35690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetPosition",kwnames,&obj0)) goto fail;
35691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35693 {
35694 PyThreadState* __tstate = wxPyBeginAllowThreads();
35695 result = (arg1)->GetPosition();
35696
35697 wxPyEndAllowThreads(__tstate);
35698 if (PyErr_Occurred()) SWIG_fail;
35699 }
35700 {
35701 wxPoint * resultptr;
35702 resultptr = new wxPoint((wxPoint &) result);
35703 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
35704 }
35705 return resultobj;
35706 fail:
35707 return NULL;
35708}
35709
35710
35711static PyObject *_wrap_Sizer_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) {
35712 PyObject *resultobj;
35713 wxSizer *arg1 = (wxSizer *) 0 ;
35714 wxSize result;
35715 PyObject * obj0 = 0 ;
35716 char *kwnames[] = {
35717 (char *) "self", NULL
35718 };
35719
35720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetMinSize",kwnames,&obj0)) goto fail;
35721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35723 {
35724 PyThreadState* __tstate = wxPyBeginAllowThreads();
35725 result = (arg1)->GetMinSize();
35726
35727 wxPyEndAllowThreads(__tstate);
35728 if (PyErr_Occurred()) SWIG_fail;
35729 }
35730 {
35731 wxSize * resultptr;
35732 resultptr = new wxSize((wxSize &) result);
35733 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
35734 }
35735 return resultobj;
35736 fail:
35737 return NULL;
35738}
35739
35740
35741static PyObject *_wrap_Sizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
35742 PyObject *resultobj;
35743 wxSizer *arg1 = (wxSizer *) 0 ;
35744 PyObject * obj0 = 0 ;
35745 char *kwnames[] = {
35746 (char *) "self", NULL
35747 };
35748
35749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_RecalcSizes",kwnames,&obj0)) goto fail;
35750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35752 {
35753 PyThreadState* __tstate = wxPyBeginAllowThreads();
35754 (arg1)->RecalcSizes();
35755
35756 wxPyEndAllowThreads(__tstate);
35757 if (PyErr_Occurred()) SWIG_fail;
35758 }
35759 Py_INCREF(Py_None); resultobj = Py_None;
35760 return resultobj;
35761 fail:
35762 return NULL;
35763}
35764
35765
35766static PyObject *_wrap_Sizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
35767 PyObject *resultobj;
35768 wxSizer *arg1 = (wxSizer *) 0 ;
35769 wxSize result;
35770 PyObject * obj0 = 0 ;
35771 char *kwnames[] = {
35772 (char *) "self", NULL
35773 };
35774
35775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_CalcMin",kwnames,&obj0)) goto fail;
35776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35778 {
35779 PyThreadState* __tstate = wxPyBeginAllowThreads();
35780 result = (arg1)->CalcMin();
35781
35782 wxPyEndAllowThreads(__tstate);
35783 if (PyErr_Occurred()) SWIG_fail;
35784 }
35785 {
35786 wxSize * resultptr;
35787 resultptr = new wxSize((wxSize &) result);
35788 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
35789 }
35790 return resultobj;
35791 fail:
35792 return NULL;
35793}
35794
35795
35796static PyObject *_wrap_Sizer_Layout(PyObject *self, PyObject *args, PyObject *kwargs) {
35797 PyObject *resultobj;
35798 wxSizer *arg1 = (wxSizer *) 0 ;
35799 PyObject * obj0 = 0 ;
35800 char *kwnames[] = {
35801 (char *) "self", NULL
35802 };
35803
35804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_Layout",kwnames,&obj0)) goto fail;
35805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35807 {
35808 PyThreadState* __tstate = wxPyBeginAllowThreads();
35809 (arg1)->Layout();
35810
35811 wxPyEndAllowThreads(__tstate);
35812 if (PyErr_Occurred()) SWIG_fail;
35813 }
35814 Py_INCREF(Py_None); resultobj = Py_None;
35815 return resultobj;
35816 fail:
35817 return NULL;
35818}
35819
35820
35821static PyObject *_wrap_Sizer_Fit(PyObject *self, PyObject *args, PyObject *kwargs) {
35822 PyObject *resultobj;
35823 wxSizer *arg1 = (wxSizer *) 0 ;
35824 wxWindow *arg2 = (wxWindow *) 0 ;
35825 wxSize result;
35826 PyObject * obj0 = 0 ;
35827 PyObject * obj1 = 0 ;
35828 char *kwnames[] = {
35829 (char *) "self",(char *) "window", NULL
35830 };
35831
35832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) goto fail;
35833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35835 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
35836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35837 {
35838 PyThreadState* __tstate = wxPyBeginAllowThreads();
35839 result = (arg1)->Fit(arg2);
35840
35841 wxPyEndAllowThreads(__tstate);
35842 if (PyErr_Occurred()) SWIG_fail;
35843 }
35844 {
35845 wxSize * resultptr;
35846 resultptr = new wxSize((wxSize &) result);
35847 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
35848 }
35849 return resultobj;
35850 fail:
35851 return NULL;
35852}
35853
35854
35855static PyObject *_wrap_Sizer_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) {
35856 PyObject *resultobj;
35857 wxSizer *arg1 = (wxSizer *) 0 ;
35858 wxWindow *arg2 = (wxWindow *) 0 ;
35859 PyObject * obj0 = 0 ;
35860 PyObject * obj1 = 0 ;
35861 char *kwnames[] = {
35862 (char *) "self",(char *) "window", NULL
35863 };
35864
35865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) goto fail;
35866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35868 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
35869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35870 {
35871 PyThreadState* __tstate = wxPyBeginAllowThreads();
35872 (arg1)->FitInside(arg2);
35873
35874 wxPyEndAllowThreads(__tstate);
35875 if (PyErr_Occurred()) SWIG_fail;
35876 }
35877 Py_INCREF(Py_None); resultobj = Py_None;
35878 return resultobj;
35879 fail:
35880 return NULL;
35881}
35882
35883
35884static PyObject *_wrap_Sizer_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) {
35885 PyObject *resultobj;
35886 wxSizer *arg1 = (wxSizer *) 0 ;
35887 wxWindow *arg2 = (wxWindow *) 0 ;
35888 PyObject * obj0 = 0 ;
35889 PyObject * obj1 = 0 ;
35890 char *kwnames[] = {
35891 (char *) "self",(char *) "window", NULL
35892 };
35893
35894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) goto fail;
35895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35897 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
35898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35899 {
35900 PyThreadState* __tstate = wxPyBeginAllowThreads();
35901 (arg1)->SetSizeHints(arg2);
35902
35903 wxPyEndAllowThreads(__tstate);
35904 if (PyErr_Occurred()) SWIG_fail;
35905 }
35906 Py_INCREF(Py_None); resultobj = Py_None;
35907 return resultobj;
35908 fail:
35909 return NULL;
35910}
35911
35912
35913static PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) {
35914 PyObject *resultobj;
35915 wxSizer *arg1 = (wxSizer *) 0 ;
35916 wxWindow *arg2 = (wxWindow *) 0 ;
35917 PyObject * obj0 = 0 ;
35918 PyObject * obj1 = 0 ;
35919 char *kwnames[] = {
35920 (char *) "self",(char *) "window", NULL
35921 };
35922
35923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) goto fail;
35924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35926 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
35927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35928 {
35929 PyThreadState* __tstate = wxPyBeginAllowThreads();
35930 (arg1)->SetVirtualSizeHints(arg2);
35931
35932 wxPyEndAllowThreads(__tstate);
35933 if (PyErr_Occurred()) SWIG_fail;
35934 }
35935 Py_INCREF(Py_None); resultobj = Py_None;
35936 return resultobj;
35937 fail:
35938 return NULL;
35939}
35940
35941
35942static PyObject *_wrap_Sizer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
35943 PyObject *resultobj;
35944 wxSizer *arg1 = (wxSizer *) 0 ;
35945 bool arg2 = (bool) False ;
35946 PyObject * obj0 = 0 ;
35947 PyObject * obj1 = 0 ;
35948 char *kwnames[] = {
248ed943 35949 (char *) "self",(char *) "deleteWindows", NULL
d55e5bfc
RD
35950 };
35951
35952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) goto fail;
35953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35955 if (obj1) {
35956 arg2 = (bool) SWIG_AsBool(obj1);
35957 if (PyErr_Occurred()) SWIG_fail;
35958 }
35959 {
35960 PyThreadState* __tstate = wxPyBeginAllowThreads();
35961 (arg1)->Clear(arg2);
35962
35963 wxPyEndAllowThreads(__tstate);
35964 if (PyErr_Occurred()) SWIG_fail;
35965 }
35966 Py_INCREF(Py_None); resultobj = Py_None;
35967 return resultobj;
35968 fail:
35969 return NULL;
35970}
35971
35972
35973static PyObject *_wrap_Sizer_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) {
35974 PyObject *resultobj;
35975 wxSizer *arg1 = (wxSizer *) 0 ;
35976 PyObject * obj0 = 0 ;
35977 char *kwnames[] = {
35978 (char *) "self", NULL
35979 };
35980
35981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_DeleteWindows",kwnames,&obj0)) goto fail;
35982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35984 {
35985 PyThreadState* __tstate = wxPyBeginAllowThreads();
35986 (arg1)->DeleteWindows();
35987
35988 wxPyEndAllowThreads(__tstate);
35989 if (PyErr_Occurred()) SWIG_fail;
35990 }
35991 Py_INCREF(Py_None); resultobj = Py_None;
35992 return resultobj;
35993 fail:
35994 return NULL;
35995}
35996
35997
35998static PyObject *_wrap_Sizer_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
35999 PyObject *resultobj;
36000 wxSizer *arg1 = (wxSizer *) 0 ;
36001 PyObject *result;
36002 PyObject * obj0 = 0 ;
36003 char *kwnames[] = {
36004 (char *) "self", NULL
36005 };
36006
36007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetChildren",kwnames,&obj0)) goto fail;
36008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36010 {
36011 PyThreadState* __tstate = wxPyBeginAllowThreads();
36012 result = (PyObject *)wxSizer_GetChildren(arg1);
36013
36014 wxPyEndAllowThreads(__tstate);
36015 if (PyErr_Occurred()) SWIG_fail;
36016 }
36017 resultobj = result;
36018 return resultobj;
36019 fail:
36020 return NULL;
36021}
36022
36023
36024static PyObject *_wrap_Sizer_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
36025 PyObject *resultobj;
36026 wxSizer *arg1 = (wxSizer *) 0 ;
36027 PyObject *arg2 = (PyObject *) 0 ;
36028 bool arg3 = (bool) True ;
36029 PyObject * obj0 = 0 ;
36030 PyObject * obj1 = 0 ;
36031 PyObject * obj2 = 0 ;
36032 char *kwnames[] = {
36033 (char *) "self",(char *) "item",(char *) "show", NULL
36034 };
36035
36036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Sizer_Show",kwnames,&obj0,&obj1,&obj2)) goto fail;
36037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36039 arg2 = obj1;
36040 if (obj2) {
36041 arg3 = (bool) SWIG_AsBool(obj2);
36042 if (PyErr_Occurred()) SWIG_fail;
36043 }
36044 {
36045 PyThreadState* __tstate = wxPyBeginAllowThreads();
36046 wxSizer_Show(arg1,arg2,arg3);
36047
36048 wxPyEndAllowThreads(__tstate);
36049 if (PyErr_Occurred()) SWIG_fail;
36050 }
36051 Py_INCREF(Py_None); resultobj = Py_None;
36052 return resultobj;
36053 fail:
36054 return NULL;
36055}
36056
36057
d55e5bfc
RD
36058static PyObject *_wrap_Sizer_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) {
36059 PyObject *resultobj;
36060 wxSizer *arg1 = (wxSizer *) 0 ;
36061 PyObject *arg2 = (PyObject *) 0 ;
36062 bool result;
36063 PyObject * obj0 = 0 ;
36064 PyObject * obj1 = 0 ;
36065 char *kwnames[] = {
36066 (char *) "self",(char *) "item", NULL
36067 };
36068
36069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) goto fail;
36070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36072 arg2 = obj1;
36073 {
36074 PyThreadState* __tstate = wxPyBeginAllowThreads();
36075 result = (bool)wxSizer_IsShown(arg1,arg2);
36076
36077 wxPyEndAllowThreads(__tstate);
36078 if (PyErr_Occurred()) SWIG_fail;
36079 }
36080 {
36081 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36082 }
36083 return resultobj;
36084 fail:
36085 return NULL;
36086}
36087
36088
36089static PyObject *_wrap_Sizer_ShowItems(PyObject *self, PyObject *args, PyObject *kwargs) {
36090 PyObject *resultobj;
36091 wxSizer *arg1 = (wxSizer *) 0 ;
36092 bool arg2 ;
36093 PyObject * obj0 = 0 ;
36094 PyObject * obj1 = 0 ;
36095 char *kwnames[] = {
36096 (char *) "self",(char *) "show", NULL
36097 };
36098
36099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) goto fail;
36100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36102 arg2 = (bool) SWIG_AsBool(obj1);
36103 if (PyErr_Occurred()) SWIG_fail;
36104 {
36105 PyThreadState* __tstate = wxPyBeginAllowThreads();
36106 (arg1)->ShowItems(arg2);
36107
36108 wxPyEndAllowThreads(__tstate);
36109 if (PyErr_Occurred()) SWIG_fail;
36110 }
36111 Py_INCREF(Py_None); resultobj = Py_None;
36112 return resultobj;
36113 fail:
36114 return NULL;
36115}
36116
36117
36118static PyObject * Sizer_swigregister(PyObject *self, PyObject *args) {
36119 PyObject *obj;
36120 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
36121 SWIG_TypeClientData(SWIGTYPE_p_wxSizer, obj);
36122 Py_INCREF(obj);
36123 return Py_BuildValue((char *)"");
36124}
36125static PyObject *_wrap_new_PySizer(PyObject *self, PyObject *args, PyObject *kwargs) {
36126 PyObject *resultobj;
36127 wxPySizer *result;
36128 char *kwnames[] = {
36129 NULL
36130 };
36131
36132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PySizer",kwnames)) goto fail;
36133 {
36134 PyThreadState* __tstate = wxPyBeginAllowThreads();
36135 result = (wxPySizer *)new wxPySizer();
36136
36137 wxPyEndAllowThreads(__tstate);
36138 if (PyErr_Occurred()) SWIG_fail;
36139 }
36140 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPySizer, 1);
36141 return resultobj;
36142 fail:
36143 return NULL;
36144}
36145
36146
36147static PyObject *_wrap_PySizer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
36148 PyObject *resultobj;
36149 wxPySizer *arg1 = (wxPySizer *) 0 ;
36150 PyObject *arg2 = (PyObject *) 0 ;
36151 PyObject *arg3 = (PyObject *) 0 ;
36152 PyObject * obj0 = 0 ;
36153 PyObject * obj1 = 0 ;
36154 PyObject * obj2 = 0 ;
36155 char *kwnames[] = {
36156 (char *) "self",(char *) "self",(char *) "_class", NULL
36157 };
36158
36159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
36160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPySizer,
36161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36162 arg2 = obj1;
36163 arg3 = obj2;
36164 {
36165 PyThreadState* __tstate = wxPyBeginAllowThreads();
36166 (arg1)->_setCallbackInfo(arg2,arg3);
36167
36168 wxPyEndAllowThreads(__tstate);
36169 if (PyErr_Occurred()) SWIG_fail;
36170 }
36171 Py_INCREF(Py_None); resultobj = Py_None;
36172 return resultobj;
36173 fail:
36174 return NULL;
36175}
36176
36177
36178static PyObject * PySizer_swigregister(PyObject *self, PyObject *args) {
36179 PyObject *obj;
36180 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
36181 SWIG_TypeClientData(SWIGTYPE_p_wxPySizer, obj);
36182 Py_INCREF(obj);
36183 return Py_BuildValue((char *)"");
36184}
36185static PyObject *_wrap_new_BoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
36186 PyObject *resultobj;
36187 int arg1 = (int) wxHORIZONTAL ;
36188 wxBoxSizer *result;
36189 PyObject * obj0 = 0 ;
36190 char *kwnames[] = {
36191 (char *) "orient", NULL
36192 };
36193
36194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BoxSizer",kwnames,&obj0)) goto fail;
36195 if (obj0) {
36196 arg1 = (int) SWIG_AsInt(obj0);
36197 if (PyErr_Occurred()) SWIG_fail;
36198 }
36199 {
36200 PyThreadState* __tstate = wxPyBeginAllowThreads();
36201 result = (wxBoxSizer *)new wxBoxSizer(arg1);
36202
36203 wxPyEndAllowThreads(__tstate);
36204 if (PyErr_Occurred()) SWIG_fail;
36205 }
36206 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBoxSizer, 1);
36207 return resultobj;
36208 fail:
36209 return NULL;
36210}
36211
36212
36213static PyObject *_wrap_BoxSizer_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
36214 PyObject *resultobj;
36215 wxBoxSizer *arg1 = (wxBoxSizer *) 0 ;
36216 int result;
36217 PyObject * obj0 = 0 ;
36218 char *kwnames[] = {
36219 (char *) "self", NULL
36220 };
36221
36222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_GetOrientation",kwnames,&obj0)) goto fail;
36223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer,
36224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36225 {
36226 PyThreadState* __tstate = wxPyBeginAllowThreads();
36227 result = (int)(arg1)->GetOrientation();
36228
36229 wxPyEndAllowThreads(__tstate);
36230 if (PyErr_Occurred()) SWIG_fail;
36231 }
36232 resultobj = SWIG_FromInt((int)result);
36233 return resultobj;
36234 fail:
36235 return NULL;
36236}
36237
36238
36239static PyObject *_wrap_BoxSizer_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
36240 PyObject *resultobj;
36241 wxBoxSizer *arg1 = (wxBoxSizer *) 0 ;
36242 int arg2 ;
36243 PyObject * obj0 = 0 ;
36244 PyObject * obj1 = 0 ;
36245 char *kwnames[] = {
36246 (char *) "self",(char *) "orient", NULL
36247 };
36248
36249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BoxSizer_SetOrientation",kwnames,&obj0,&obj1)) goto fail;
36250 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer,
36251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36252 arg2 = (int) SWIG_AsInt(obj1);
36253 if (PyErr_Occurred()) SWIG_fail;
36254 {
36255 PyThreadState* __tstate = wxPyBeginAllowThreads();
36256 (arg1)->SetOrientation(arg2);
36257
36258 wxPyEndAllowThreads(__tstate);
36259 if (PyErr_Occurred()) SWIG_fail;
36260 }
36261 Py_INCREF(Py_None); resultobj = Py_None;
36262 return resultobj;
36263 fail:
36264 return NULL;
36265}
36266
36267
d55e5bfc
RD
36268static PyObject * BoxSizer_swigregister(PyObject *self, PyObject *args) {
36269 PyObject *obj;
36270 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
36271 SWIG_TypeClientData(SWIGTYPE_p_wxBoxSizer, obj);
36272 Py_INCREF(obj);
36273 return Py_BuildValue((char *)"");
36274}
36275static PyObject *_wrap_new_StaticBoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
36276 PyObject *resultobj;
36277 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
36278 int arg2 = (int) wxHORIZONTAL ;
36279 wxStaticBoxSizer *result;
36280 PyObject * obj0 = 0 ;
36281 PyObject * obj1 = 0 ;
36282 char *kwnames[] = {
36283 (char *) "box",(char *) "orient", NULL
36284 };
36285
36286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_StaticBoxSizer",kwnames,&obj0,&obj1)) goto fail;
36287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox,
36288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36289 if (obj1) {
36290 arg2 = (int) SWIG_AsInt(obj1);
36291 if (PyErr_Occurred()) SWIG_fail;
36292 }
36293 {
36294 PyThreadState* __tstate = wxPyBeginAllowThreads();
36295 result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2);
36296
36297 wxPyEndAllowThreads(__tstate);
36298 if (PyErr_Occurred()) SWIG_fail;
36299 }
36300 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBoxSizer, 1);
36301 return resultobj;
36302 fail:
36303 return NULL;
36304}
36305
36306
36307static PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) {
36308 PyObject *resultobj;
36309 wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ;
36310 wxStaticBox *result;
36311 PyObject * obj0 = 0 ;
36312 char *kwnames[] = {
36313 (char *) "self", NULL
36314 };
36315
36316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_GetStaticBox",kwnames,&obj0)) goto fail;
36317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer,
36318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36319 {
36320 PyThreadState* __tstate = wxPyBeginAllowThreads();
36321 result = (wxStaticBox *)(arg1)->GetStaticBox();
36322
36323 wxPyEndAllowThreads(__tstate);
36324 if (PyErr_Occurred()) SWIG_fail;
36325 }
36326 {
36327 resultobj = wxPyMake_wxObject(result);
36328 }
36329 return resultobj;
36330 fail:
36331 return NULL;
36332}
36333
36334
d55e5bfc
RD
36335static PyObject * StaticBoxSizer_swigregister(PyObject *self, PyObject *args) {
36336 PyObject *obj;
36337 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
36338 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBoxSizer, obj);
36339 Py_INCREF(obj);
36340 return Py_BuildValue((char *)"");
36341}
36342static PyObject *_wrap_new_GridSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
36343 PyObject *resultobj;
36344 int arg1 = (int) 1 ;
36345 int arg2 = (int) 0 ;
36346 int arg3 = (int) 0 ;
36347 int arg4 = (int) 0 ;
36348 wxGridSizer *result;
36349 PyObject * obj0 = 0 ;
36350 PyObject * obj1 = 0 ;
36351 PyObject * obj2 = 0 ;
36352 PyObject * obj3 = 0 ;
36353 char *kwnames[] = {
36354 (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL
36355 };
36356
36357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_GridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
36358 if (obj0) {
36359 arg1 = (int) SWIG_AsInt(obj0);
36360 if (PyErr_Occurred()) SWIG_fail;
36361 }
36362 if (obj1) {
36363 arg2 = (int) SWIG_AsInt(obj1);
36364 if (PyErr_Occurred()) SWIG_fail;
36365 }
36366 if (obj2) {
36367 arg3 = (int) SWIG_AsInt(obj2);
36368 if (PyErr_Occurred()) SWIG_fail;
36369 }
36370 if (obj3) {
36371 arg4 = (int) SWIG_AsInt(obj3);
36372 if (PyErr_Occurred()) SWIG_fail;
36373 }
36374 {
36375 PyThreadState* __tstate = wxPyBeginAllowThreads();
36376 result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4);
36377
36378 wxPyEndAllowThreads(__tstate);
36379 if (PyErr_Occurred()) SWIG_fail;
36380 }
36381 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridSizer, 1);
36382 return resultobj;
36383 fail:
36384 return NULL;
36385}
36386
36387
d55e5bfc
RD
36388static PyObject *_wrap_GridSizer_SetCols(PyObject *self, PyObject *args, PyObject *kwargs) {
36389 PyObject *resultobj;
36390 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36391 int arg2 ;
36392 PyObject * obj0 = 0 ;
36393 PyObject * obj1 = 0 ;
36394 char *kwnames[] = {
36395 (char *) "self",(char *) "cols", NULL
36396 };
36397
36398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetCols",kwnames,&obj0,&obj1)) goto fail;
36399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36401 arg2 = (int) SWIG_AsInt(obj1);
36402 if (PyErr_Occurred()) SWIG_fail;
36403 {
36404 PyThreadState* __tstate = wxPyBeginAllowThreads();
36405 (arg1)->SetCols(arg2);
36406
36407 wxPyEndAllowThreads(__tstate);
36408 if (PyErr_Occurred()) SWIG_fail;
36409 }
36410 Py_INCREF(Py_None); resultobj = Py_None;
36411 return resultobj;
36412 fail:
36413 return NULL;
36414}
36415
36416
36417static PyObject *_wrap_GridSizer_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) {
36418 PyObject *resultobj;
36419 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36420 int arg2 ;
36421 PyObject * obj0 = 0 ;
36422 PyObject * obj1 = 0 ;
36423 char *kwnames[] = {
36424 (char *) "self",(char *) "rows", NULL
36425 };
36426
36427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetRows",kwnames,&obj0,&obj1)) goto fail;
36428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36430 arg2 = (int) SWIG_AsInt(obj1);
36431 if (PyErr_Occurred()) SWIG_fail;
36432 {
36433 PyThreadState* __tstate = wxPyBeginAllowThreads();
36434 (arg1)->SetRows(arg2);
36435
36436 wxPyEndAllowThreads(__tstate);
36437 if (PyErr_Occurred()) SWIG_fail;
36438 }
36439 Py_INCREF(Py_None); resultobj = Py_None;
36440 return resultobj;
36441 fail:
36442 return NULL;
36443}
36444
36445
36446static PyObject *_wrap_GridSizer_SetVGap(PyObject *self, PyObject *args, PyObject *kwargs) {
36447 PyObject *resultobj;
36448 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36449 int arg2 ;
36450 PyObject * obj0 = 0 ;
36451 PyObject * obj1 = 0 ;
36452 char *kwnames[] = {
36453 (char *) "self",(char *) "gap", NULL
36454 };
36455
36456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetVGap",kwnames,&obj0,&obj1)) goto fail;
36457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36459 arg2 = (int) SWIG_AsInt(obj1);
36460 if (PyErr_Occurred()) SWIG_fail;
36461 {
36462 PyThreadState* __tstate = wxPyBeginAllowThreads();
36463 (arg1)->SetVGap(arg2);
36464
36465 wxPyEndAllowThreads(__tstate);
36466 if (PyErr_Occurred()) SWIG_fail;
36467 }
36468 Py_INCREF(Py_None); resultobj = Py_None;
36469 return resultobj;
36470 fail:
36471 return NULL;
36472}
36473
36474
36475static PyObject *_wrap_GridSizer_SetHGap(PyObject *self, PyObject *args, PyObject *kwargs) {
36476 PyObject *resultobj;
36477 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36478 int arg2 ;
36479 PyObject * obj0 = 0 ;
36480 PyObject * obj1 = 0 ;
36481 char *kwnames[] = {
36482 (char *) "self",(char *) "gap", NULL
36483 };
36484
36485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetHGap",kwnames,&obj0,&obj1)) goto fail;
36486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36488 arg2 = (int) SWIG_AsInt(obj1);
36489 if (PyErr_Occurred()) SWIG_fail;
36490 {
36491 PyThreadState* __tstate = wxPyBeginAllowThreads();
36492 (arg1)->SetHGap(arg2);
36493
36494 wxPyEndAllowThreads(__tstate);
36495 if (PyErr_Occurred()) SWIG_fail;
36496 }
36497 Py_INCREF(Py_None); resultobj = Py_None;
36498 return resultobj;
36499 fail:
36500 return NULL;
36501}
36502
36503
36504static PyObject *_wrap_GridSizer_GetCols(PyObject *self, PyObject *args, PyObject *kwargs) {
36505 PyObject *resultobj;
36506 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36507 int result;
36508 PyObject * obj0 = 0 ;
36509 char *kwnames[] = {
36510 (char *) "self", NULL
36511 };
36512
36513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetCols",kwnames,&obj0)) goto fail;
36514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36516 {
36517 PyThreadState* __tstate = wxPyBeginAllowThreads();
36518 result = (int)(arg1)->GetCols();
36519
36520 wxPyEndAllowThreads(__tstate);
36521 if (PyErr_Occurred()) SWIG_fail;
36522 }
36523 resultobj = SWIG_FromInt((int)result);
36524 return resultobj;
36525 fail:
36526 return NULL;
36527}
36528
36529
36530static PyObject *_wrap_GridSizer_GetRows(PyObject *self, PyObject *args, PyObject *kwargs) {
36531 PyObject *resultobj;
36532 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36533 int result;
36534 PyObject * obj0 = 0 ;
36535 char *kwnames[] = {
36536 (char *) "self", NULL
36537 };
36538
36539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetRows",kwnames,&obj0)) goto fail;
36540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36542 {
36543 PyThreadState* __tstate = wxPyBeginAllowThreads();
36544 result = (int)(arg1)->GetRows();
36545
36546 wxPyEndAllowThreads(__tstate);
36547 if (PyErr_Occurred()) SWIG_fail;
36548 }
36549 resultobj = SWIG_FromInt((int)result);
36550 return resultobj;
36551 fail:
36552 return NULL;
36553}
36554
36555
36556static PyObject *_wrap_GridSizer_GetVGap(PyObject *self, PyObject *args, PyObject *kwargs) {
36557 PyObject *resultobj;
36558 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36559 int result;
36560 PyObject * obj0 = 0 ;
36561 char *kwnames[] = {
36562 (char *) "self", NULL
36563 };
36564
36565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetVGap",kwnames,&obj0)) goto fail;
36566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36568 {
36569 PyThreadState* __tstate = wxPyBeginAllowThreads();
36570 result = (int)(arg1)->GetVGap();
36571
36572 wxPyEndAllowThreads(__tstate);
36573 if (PyErr_Occurred()) SWIG_fail;
36574 }
36575 resultobj = SWIG_FromInt((int)result);
36576 return resultobj;
36577 fail:
36578 return NULL;
36579}
36580
36581
36582static PyObject *_wrap_GridSizer_GetHGap(PyObject *self, PyObject *args, PyObject *kwargs) {
36583 PyObject *resultobj;
36584 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36585 int result;
36586 PyObject * obj0 = 0 ;
36587 char *kwnames[] = {
36588 (char *) "self", NULL
36589 };
36590
36591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetHGap",kwnames,&obj0)) goto fail;
36592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36594 {
36595 PyThreadState* __tstate = wxPyBeginAllowThreads();
36596 result = (int)(arg1)->GetHGap();
36597
36598 wxPyEndAllowThreads(__tstate);
36599 if (PyErr_Occurred()) SWIG_fail;
36600 }
36601 resultobj = SWIG_FromInt((int)result);
36602 return resultobj;
36603 fail:
36604 return NULL;
36605}
36606
36607
36608static PyObject * GridSizer_swigregister(PyObject *self, PyObject *args) {
36609 PyObject *obj;
36610 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
36611 SWIG_TypeClientData(SWIGTYPE_p_wxGridSizer, obj);
36612 Py_INCREF(obj);
36613 return Py_BuildValue((char *)"");
36614}
36615static PyObject *_wrap_new_FlexGridSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
36616 PyObject *resultobj;
36617 int arg1 = (int) 1 ;
36618 int arg2 = (int) 0 ;
36619 int arg3 = (int) 0 ;
36620 int arg4 = (int) 0 ;
36621 wxFlexGridSizer *result;
36622 PyObject * obj0 = 0 ;
36623 PyObject * obj1 = 0 ;
36624 PyObject * obj2 = 0 ;
36625 PyObject * obj3 = 0 ;
36626 char *kwnames[] = {
36627 (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL
36628 };
36629
36630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_FlexGridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
36631 if (obj0) {
36632 arg1 = (int) SWIG_AsInt(obj0);
36633 if (PyErr_Occurred()) SWIG_fail;
36634 }
36635 if (obj1) {
36636 arg2 = (int) SWIG_AsInt(obj1);
36637 if (PyErr_Occurred()) SWIG_fail;
36638 }
36639 if (obj2) {
36640 arg3 = (int) SWIG_AsInt(obj2);
36641 if (PyErr_Occurred()) SWIG_fail;
36642 }
36643 if (obj3) {
36644 arg4 = (int) SWIG_AsInt(obj3);
36645 if (PyErr_Occurred()) SWIG_fail;
36646 }
36647 {
36648 PyThreadState* __tstate = wxPyBeginAllowThreads();
36649 result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4);
36650
36651 wxPyEndAllowThreads(__tstate);
36652 if (PyErr_Occurred()) SWIG_fail;
36653 }
36654 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFlexGridSizer, 1);
36655 return resultobj;
36656 fail:
36657 return NULL;
36658}
36659
36660
d55e5bfc
RD
36661static PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) {
36662 PyObject *resultobj;
36663 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36664 size_t arg2 ;
36665 int arg3 = (int) 0 ;
36666 PyObject * obj0 = 0 ;
36667 PyObject * obj1 = 0 ;
36668 PyObject * obj2 = 0 ;
36669 char *kwnames[] = {
36670 (char *) "self",(char *) "idx",(char *) "proportion", NULL
36671 };
36672
36673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&obj2)) goto fail;
36674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36676 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
36677 if (PyErr_Occurred()) SWIG_fail;
36678 if (obj2) {
36679 arg3 = (int) SWIG_AsInt(obj2);
36680 if (PyErr_Occurred()) SWIG_fail;
36681 }
36682 {
36683 PyThreadState* __tstate = wxPyBeginAllowThreads();
36684 (arg1)->AddGrowableRow(arg2,arg3);
36685
36686 wxPyEndAllowThreads(__tstate);
36687 if (PyErr_Occurred()) SWIG_fail;
36688 }
36689 Py_INCREF(Py_None); resultobj = Py_None;
36690 return resultobj;
36691 fail:
36692 return NULL;
36693}
36694
36695
36696static PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) {
36697 PyObject *resultobj;
36698 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36699 size_t arg2 ;
36700 PyObject * obj0 = 0 ;
36701 PyObject * obj1 = 0 ;
36702 char *kwnames[] = {
36703 (char *) "self",(char *) "idx", NULL
36704 };
36705
36706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) goto fail;
36707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36709 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
36710 if (PyErr_Occurred()) SWIG_fail;
36711 {
36712 PyThreadState* __tstate = wxPyBeginAllowThreads();
36713 (arg1)->RemoveGrowableRow(arg2);
36714
36715 wxPyEndAllowThreads(__tstate);
36716 if (PyErr_Occurred()) SWIG_fail;
36717 }
36718 Py_INCREF(Py_None); resultobj = Py_None;
36719 return resultobj;
36720 fail:
36721 return NULL;
36722}
36723
36724
36725static PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) {
36726 PyObject *resultobj;
36727 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36728 size_t arg2 ;
36729 int arg3 = (int) 0 ;
36730 PyObject * obj0 = 0 ;
36731 PyObject * obj1 = 0 ;
36732 PyObject * obj2 = 0 ;
36733 char *kwnames[] = {
36734 (char *) "self",(char *) "idx",(char *) "proportion", NULL
36735 };
36736
36737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&obj2)) goto fail;
36738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36740 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
36741 if (PyErr_Occurred()) SWIG_fail;
36742 if (obj2) {
36743 arg3 = (int) SWIG_AsInt(obj2);
36744 if (PyErr_Occurred()) SWIG_fail;
36745 }
36746 {
36747 PyThreadState* __tstate = wxPyBeginAllowThreads();
36748 (arg1)->AddGrowableCol(arg2,arg3);
36749
36750 wxPyEndAllowThreads(__tstate);
36751 if (PyErr_Occurred()) SWIG_fail;
36752 }
36753 Py_INCREF(Py_None); resultobj = Py_None;
36754 return resultobj;
36755 fail:
36756 return NULL;
36757}
36758
36759
36760static PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) {
36761 PyObject *resultobj;
36762 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36763 size_t arg2 ;
36764 PyObject * obj0 = 0 ;
36765 PyObject * obj1 = 0 ;
36766 char *kwnames[] = {
36767 (char *) "self",(char *) "idx", NULL
36768 };
36769
36770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) goto fail;
36771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36773 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
36774 if (PyErr_Occurred()) SWIG_fail;
36775 {
36776 PyThreadState* __tstate = wxPyBeginAllowThreads();
36777 (arg1)->RemoveGrowableCol(arg2);
36778
36779 wxPyEndAllowThreads(__tstate);
36780 if (PyErr_Occurred()) SWIG_fail;
36781 }
36782 Py_INCREF(Py_None); resultobj = Py_None;
36783 return resultobj;
36784 fail:
36785 return NULL;
36786}
36787
36788
36789static PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) {
36790 PyObject *resultobj;
36791 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36792 int arg2 ;
36793 PyObject * obj0 = 0 ;
36794 PyObject * obj1 = 0 ;
36795 char *kwnames[] = {
36796 (char *) "self",(char *) "direction", NULL
36797 };
36798
36799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&obj1)) goto fail;
36800 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36801 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36802 arg2 = (int) SWIG_AsInt(obj1);
36803 if (PyErr_Occurred()) SWIG_fail;
36804 {
36805 PyThreadState* __tstate = wxPyBeginAllowThreads();
36806 (arg1)->SetFlexibleDirection(arg2);
36807
36808 wxPyEndAllowThreads(__tstate);
36809 if (PyErr_Occurred()) SWIG_fail;
36810 }
36811 Py_INCREF(Py_None); resultobj = Py_None;
36812 return resultobj;
36813 fail:
36814 return NULL;
36815}
36816
36817
36818static PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) {
36819 PyObject *resultobj;
36820 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36821 int result;
36822 PyObject * obj0 = 0 ;
36823 char *kwnames[] = {
36824 (char *) "self", NULL
36825 };
36826
36827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetFlexibleDirection",kwnames,&obj0)) goto fail;
36828 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36829 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36830 {
36831 PyThreadState* __tstate = wxPyBeginAllowThreads();
36832 result = (int)(arg1)->GetFlexibleDirection();
36833
36834 wxPyEndAllowThreads(__tstate);
36835 if (PyErr_Occurred()) SWIG_fail;
36836 }
36837 resultobj = SWIG_FromInt((int)result);
36838 return resultobj;
36839 fail:
36840 return NULL;
36841}
36842
36843
36844static PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) {
36845 PyObject *resultobj;
36846 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36847 int arg2 ;
36848 PyObject * obj0 = 0 ;
36849 PyObject * obj1 = 0 ;
36850 char *kwnames[] = {
36851 (char *) "self",(char *) "mode", NULL
36852 };
36853
36854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&obj1)) goto fail;
36855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36857 arg2 = (wxFlexSizerGrowMode) SWIG_AsInt(obj1);
36858 if (PyErr_Occurred()) SWIG_fail;
36859 {
36860 PyThreadState* __tstate = wxPyBeginAllowThreads();
36861 (arg1)->SetNonFlexibleGrowMode((wxFlexSizerGrowMode )arg2);
36862
36863 wxPyEndAllowThreads(__tstate);
36864 if (PyErr_Occurred()) SWIG_fail;
36865 }
36866 Py_INCREF(Py_None); resultobj = Py_None;
36867 return resultobj;
36868 fail:
36869 return NULL;
36870}
36871
36872
36873static PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) {
36874 PyObject *resultobj;
36875 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36876 int result;
36877 PyObject * obj0 = 0 ;
36878 char *kwnames[] = {
36879 (char *) "self", NULL
36880 };
36881
36882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetNonFlexibleGrowMode",kwnames,&obj0)) goto fail;
36883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36885 {
36886 PyThreadState* __tstate = wxPyBeginAllowThreads();
36887 result = (int)(arg1)->GetNonFlexibleGrowMode();
36888
36889 wxPyEndAllowThreads(__tstate);
36890 if (PyErr_Occurred()) SWIG_fail;
36891 }
36892 resultobj = SWIG_FromInt((int)result);
36893 return resultobj;
36894 fail:
36895 return NULL;
36896}
36897
36898
36899static PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *self, PyObject *args, PyObject *kwargs) {
36900 PyObject *resultobj;
36901 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36902 wxArrayInt *result;
36903 PyObject * obj0 = 0 ;
36904 char *kwnames[] = {
36905 (char *) "self", NULL
36906 };
36907
36908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetRowHeights",kwnames,&obj0)) goto fail;
36909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36911 {
36912 PyThreadState* __tstate = wxPyBeginAllowThreads();
36913 {
36914 wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights();
36915 result = (wxArrayInt *) &_result_ref;
36916 }
36917
36918 wxPyEndAllowThreads(__tstate);
36919 if (PyErr_Occurred()) SWIG_fail;
36920 }
36921 {
36922 resultobj = PyList_New(0);
36923 size_t idx;
36924 for (idx = 0; idx < result->GetCount(); idx += 1) {
36925 PyObject* val = PyInt_FromLong( result->Item(idx) );
36926 PyList_Append(resultobj, val);
36927 Py_DECREF(val);
36928 }
36929 }
36930 return resultobj;
36931 fail:
36932 return NULL;
36933}
36934
36935
36936static PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *self, PyObject *args, PyObject *kwargs) {
36937 PyObject *resultobj;
36938 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36939 wxArrayInt *result;
36940 PyObject * obj0 = 0 ;
36941 char *kwnames[] = {
36942 (char *) "self", NULL
36943 };
36944
36945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetColWidths",kwnames,&obj0)) goto fail;
36946 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36948 {
36949 PyThreadState* __tstate = wxPyBeginAllowThreads();
36950 {
36951 wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths();
36952 result = (wxArrayInt *) &_result_ref;
36953 }
36954
36955 wxPyEndAllowThreads(__tstate);
36956 if (PyErr_Occurred()) SWIG_fail;
36957 }
36958 {
36959 resultobj = PyList_New(0);
36960 size_t idx;
36961 for (idx = 0; idx < result->GetCount(); idx += 1) {
36962 PyObject* val = PyInt_FromLong( result->Item(idx) );
36963 PyList_Append(resultobj, val);
36964 Py_DECREF(val);
36965 }
36966 }
36967 return resultobj;
36968 fail:
36969 return NULL;
36970}
36971
36972
36973static PyObject * FlexGridSizer_swigregister(PyObject *self, PyObject *args) {
36974 PyObject *obj;
36975 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
36976 SWIG_TypeClientData(SWIGTYPE_p_wxFlexGridSizer, obj);
36977 Py_INCREF(obj);
36978 return Py_BuildValue((char *)"");
36979}
36980static PyObject *_wrap_new_GBPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
36981 PyObject *resultobj;
36982 int arg1 = (int) 0 ;
36983 int arg2 = (int) 0 ;
36984 wxGBPosition *result;
36985 PyObject * obj0 = 0 ;
36986 PyObject * obj1 = 0 ;
36987 char *kwnames[] = {
36988 (char *) "row",(char *) "col", NULL
36989 };
36990
36991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBPosition",kwnames,&obj0,&obj1)) goto fail;
36992 if (obj0) {
36993 arg1 = (int) SWIG_AsInt(obj0);
36994 if (PyErr_Occurred()) SWIG_fail;
36995 }
36996 if (obj1) {
36997 arg2 = (int) SWIG_AsInt(obj1);
36998 if (PyErr_Occurred()) SWIG_fail;
36999 }
37000 {
37001 PyThreadState* __tstate = wxPyBeginAllowThreads();
37002 result = (wxGBPosition *)new wxGBPosition(arg1,arg2);
37003
37004 wxPyEndAllowThreads(__tstate);
37005 if (PyErr_Occurred()) SWIG_fail;
37006 }
37007 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBPosition, 1);
37008 return resultobj;
37009 fail:
37010 return NULL;
37011}
37012
37013
37014static PyObject *_wrap_GBPosition_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
37015 PyObject *resultobj;
37016 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
37017 int result;
37018 PyObject * obj0 = 0 ;
37019 char *kwnames[] = {
37020 (char *) "self", NULL
37021 };
37022
37023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetRow",kwnames,&obj0)) goto fail;
37024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
37025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37026 {
37027 PyThreadState* __tstate = wxPyBeginAllowThreads();
37028 result = (int)((wxGBPosition const *)arg1)->GetRow();
37029
37030 wxPyEndAllowThreads(__tstate);
37031 if (PyErr_Occurred()) SWIG_fail;
37032 }
37033 resultobj = SWIG_FromInt((int)result);
37034 return resultobj;
37035 fail:
37036 return NULL;
37037}
37038
37039
37040static PyObject *_wrap_GBPosition_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
37041 PyObject *resultobj;
37042 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
37043 int result;
37044 PyObject * obj0 = 0 ;
37045 char *kwnames[] = {
37046 (char *) "self", NULL
37047 };
37048
37049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetCol",kwnames,&obj0)) goto fail;
37050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
37051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37052 {
37053 PyThreadState* __tstate = wxPyBeginAllowThreads();
37054 result = (int)((wxGBPosition const *)arg1)->GetCol();
37055
37056 wxPyEndAllowThreads(__tstate);
37057 if (PyErr_Occurred()) SWIG_fail;
37058 }
37059 resultobj = SWIG_FromInt((int)result);
37060 return resultobj;
37061 fail:
37062 return NULL;
37063}
37064
37065
37066static PyObject *_wrap_GBPosition_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
37067 PyObject *resultobj;
37068 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
37069 int arg2 ;
37070 PyObject * obj0 = 0 ;
37071 PyObject * obj1 = 0 ;
37072 char *kwnames[] = {
37073 (char *) "self",(char *) "row", NULL
37074 };
37075
37076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetRow",kwnames,&obj0,&obj1)) goto fail;
37077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
37078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37079 arg2 = (int) SWIG_AsInt(obj1);
37080 if (PyErr_Occurred()) SWIG_fail;
37081 {
37082 PyThreadState* __tstate = wxPyBeginAllowThreads();
37083 (arg1)->SetRow(arg2);
37084
37085 wxPyEndAllowThreads(__tstate);
37086 if (PyErr_Occurred()) SWIG_fail;
37087 }
37088 Py_INCREF(Py_None); resultobj = Py_None;
37089 return resultobj;
37090 fail:
37091 return NULL;
37092}
37093
37094
37095static PyObject *_wrap_GBPosition_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
37096 PyObject *resultobj;
37097 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
37098 int arg2 ;
37099 PyObject * obj0 = 0 ;
37100 PyObject * obj1 = 0 ;
37101 char *kwnames[] = {
37102 (char *) "self",(char *) "col", NULL
37103 };
37104
37105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetCol",kwnames,&obj0,&obj1)) goto fail;
37106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
37107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37108 arg2 = (int) SWIG_AsInt(obj1);
37109 if (PyErr_Occurred()) SWIG_fail;
37110 {
37111 PyThreadState* __tstate = wxPyBeginAllowThreads();
37112 (arg1)->SetCol(arg2);
37113
37114 wxPyEndAllowThreads(__tstate);
37115 if (PyErr_Occurred()) SWIG_fail;
37116 }
37117 Py_INCREF(Py_None); resultobj = Py_None;
37118 return resultobj;
37119 fail:
37120 return NULL;
37121}
37122
37123
37124static PyObject *_wrap_GBPosition___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
37125 PyObject *resultobj;
37126 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
37127 wxGBPosition *arg2 = 0 ;
37128 bool result;
37129 wxGBPosition temp2 ;
37130 PyObject * obj0 = 0 ;
37131 PyObject * obj1 = 0 ;
37132 char *kwnames[] = {
37133 (char *) "self",(char *) "other", NULL
37134 };
37135
37136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) goto fail;
37137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
37138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37139 {
37140 arg2 = &temp2;
37141 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
37142 }
37143 {
37144 PyThreadState* __tstate = wxPyBeginAllowThreads();
37145 result = (bool)(arg1)->operator ==((wxGBPosition const &)*arg2);
37146
37147 wxPyEndAllowThreads(__tstate);
37148 if (PyErr_Occurred()) SWIG_fail;
37149 }
37150 {
37151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37152 }
37153 return resultobj;
37154 fail:
37155 return NULL;
37156}
37157
37158
37159static PyObject *_wrap_GBPosition___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
37160 PyObject *resultobj;
37161 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
37162 wxGBPosition *arg2 = 0 ;
37163 bool result;
37164 wxGBPosition temp2 ;
37165 PyObject * obj0 = 0 ;
37166 PyObject * obj1 = 0 ;
37167 char *kwnames[] = {
37168 (char *) "self",(char *) "other", NULL
37169 };
37170
37171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) goto fail;
37172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
37173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37174 {
37175 arg2 = &temp2;
37176 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
37177 }
37178 {
37179 PyThreadState* __tstate = wxPyBeginAllowThreads();
37180 result = (bool)(arg1)->operator !=((wxGBPosition const &)*arg2);
37181
37182 wxPyEndAllowThreads(__tstate);
37183 if (PyErr_Occurred()) SWIG_fail;
37184 }
37185 {
37186 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37187 }
37188 return resultobj;
37189 fail:
37190 return NULL;
37191}
37192
37193
37194static PyObject *_wrap_GBPosition_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
37195 PyObject *resultobj;
37196 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
37197 int arg2 = (int) 0 ;
37198 int arg3 = (int) 0 ;
37199 PyObject * obj0 = 0 ;
37200 PyObject * obj1 = 0 ;
37201 PyObject * obj2 = 0 ;
37202 char *kwnames[] = {
37203 (char *) "self",(char *) "row",(char *) "col", NULL
37204 };
37205
37206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBPosition_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
37207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
37208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37209 if (obj1) {
37210 arg2 = (int) SWIG_AsInt(obj1);
37211 if (PyErr_Occurred()) SWIG_fail;
37212 }
37213 if (obj2) {
37214 arg3 = (int) SWIG_AsInt(obj2);
37215 if (PyErr_Occurred()) SWIG_fail;
37216 }
37217 {
37218 PyThreadState* __tstate = wxPyBeginAllowThreads();
37219 wxGBPosition_Set(arg1,arg2,arg3);
37220
37221 wxPyEndAllowThreads(__tstate);
37222 if (PyErr_Occurred()) SWIG_fail;
37223 }
37224 Py_INCREF(Py_None); resultobj = Py_None;
37225 return resultobj;
37226 fail:
37227 return NULL;
37228}
37229
37230
37231static PyObject *_wrap_GBPosition_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
37232 PyObject *resultobj;
37233 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
37234 PyObject *result;
37235 PyObject * obj0 = 0 ;
37236 char *kwnames[] = {
37237 (char *) "self", NULL
37238 };
37239
37240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_Get",kwnames,&obj0)) goto fail;
37241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
37242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37243 {
37244 PyThreadState* __tstate = wxPyBeginAllowThreads();
37245 result = (PyObject *)wxGBPosition_Get(arg1);
37246
37247 wxPyEndAllowThreads(__tstate);
37248 if (PyErr_Occurred()) SWIG_fail;
37249 }
37250 resultobj = result;
37251 return resultobj;
37252 fail:
37253 return NULL;
37254}
37255
37256
37257static PyObject * GBPosition_swigregister(PyObject *self, PyObject *args) {
37258 PyObject *obj;
37259 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
37260 SWIG_TypeClientData(SWIGTYPE_p_wxGBPosition, obj);
37261 Py_INCREF(obj);
37262 return Py_BuildValue((char *)"");
37263}
37264static PyObject *_wrap_new_GBSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
37265 PyObject *resultobj;
37266 int arg1 = (int) 1 ;
37267 int arg2 = (int) 1 ;
37268 wxGBSpan *result;
37269 PyObject * obj0 = 0 ;
37270 PyObject * obj1 = 0 ;
37271 char *kwnames[] = {
37272 (char *) "rowspan",(char *) "colspan", NULL
37273 };
37274
37275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBSpan",kwnames,&obj0,&obj1)) goto fail;
37276 if (obj0) {
37277 arg1 = (int) SWIG_AsInt(obj0);
37278 if (PyErr_Occurred()) SWIG_fail;
37279 }
37280 if (obj1) {
37281 arg2 = (int) SWIG_AsInt(obj1);
37282 if (PyErr_Occurred()) SWIG_fail;
37283 }
37284 {
37285 PyThreadState* __tstate = wxPyBeginAllowThreads();
37286 result = (wxGBSpan *)new wxGBSpan(arg1,arg2);
37287
37288 wxPyEndAllowThreads(__tstate);
37289 if (PyErr_Occurred()) SWIG_fail;
37290 }
37291 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSpan, 1);
37292 return resultobj;
37293 fail:
37294 return NULL;
37295}
37296
37297
37298static PyObject *_wrap_GBSpan_GetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) {
37299 PyObject *resultobj;
37300 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37301 int result;
37302 PyObject * obj0 = 0 ;
37303 char *kwnames[] = {
37304 (char *) "self", NULL
37305 };
37306
37307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetRowspan",kwnames,&obj0)) goto fail;
37308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37310 {
37311 PyThreadState* __tstate = wxPyBeginAllowThreads();
37312 result = (int)((wxGBSpan const *)arg1)->GetRowspan();
37313
37314 wxPyEndAllowThreads(__tstate);
37315 if (PyErr_Occurred()) SWIG_fail;
37316 }
37317 resultobj = SWIG_FromInt((int)result);
37318 return resultobj;
37319 fail:
37320 return NULL;
37321}
37322
37323
37324static PyObject *_wrap_GBSpan_GetColspan(PyObject *self, PyObject *args, PyObject *kwargs) {
37325 PyObject *resultobj;
37326 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37327 int result;
37328 PyObject * obj0 = 0 ;
37329 char *kwnames[] = {
37330 (char *) "self", NULL
37331 };
37332
37333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetColspan",kwnames,&obj0)) goto fail;
37334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37336 {
37337 PyThreadState* __tstate = wxPyBeginAllowThreads();
37338 result = (int)((wxGBSpan const *)arg1)->GetColspan();
37339
37340 wxPyEndAllowThreads(__tstate);
37341 if (PyErr_Occurred()) SWIG_fail;
37342 }
37343 resultobj = SWIG_FromInt((int)result);
37344 return resultobj;
37345 fail:
37346 return NULL;
37347}
37348
37349
37350static PyObject *_wrap_GBSpan_SetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) {
37351 PyObject *resultobj;
37352 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37353 int arg2 ;
37354 PyObject * obj0 = 0 ;
37355 PyObject * obj1 = 0 ;
37356 char *kwnames[] = {
37357 (char *) "self",(char *) "rowspan", NULL
37358 };
37359
37360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetRowspan",kwnames,&obj0,&obj1)) goto fail;
37361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37363 arg2 = (int) SWIG_AsInt(obj1);
37364 if (PyErr_Occurred()) SWIG_fail;
37365 {
37366 PyThreadState* __tstate = wxPyBeginAllowThreads();
37367 (arg1)->SetRowspan(arg2);
37368
37369 wxPyEndAllowThreads(__tstate);
37370 if (PyErr_Occurred()) SWIG_fail;
37371 }
37372 Py_INCREF(Py_None); resultobj = Py_None;
37373 return resultobj;
37374 fail:
37375 return NULL;
37376}
37377
37378
37379static PyObject *_wrap_GBSpan_SetColspan(PyObject *self, PyObject *args, PyObject *kwargs) {
37380 PyObject *resultobj;
37381 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37382 int arg2 ;
37383 PyObject * obj0 = 0 ;
37384 PyObject * obj1 = 0 ;
37385 char *kwnames[] = {
37386 (char *) "self",(char *) "colspan", NULL
37387 };
37388
37389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetColspan",kwnames,&obj0,&obj1)) goto fail;
37390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37392 arg2 = (int) SWIG_AsInt(obj1);
37393 if (PyErr_Occurred()) SWIG_fail;
37394 {
37395 PyThreadState* __tstate = wxPyBeginAllowThreads();
37396 (arg1)->SetColspan(arg2);
37397
37398 wxPyEndAllowThreads(__tstate);
37399 if (PyErr_Occurred()) SWIG_fail;
37400 }
37401 Py_INCREF(Py_None); resultobj = Py_None;
37402 return resultobj;
37403 fail:
37404 return NULL;
37405}
37406
37407
37408static PyObject *_wrap_GBSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
37409 PyObject *resultobj;
37410 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37411 wxGBSpan *arg2 = 0 ;
37412 bool result;
37413 wxGBSpan temp2 ;
37414 PyObject * obj0 = 0 ;
37415 PyObject * obj1 = 0 ;
37416 char *kwnames[] = {
37417 (char *) "self",(char *) "other", NULL
37418 };
37419
37420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
37421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37423 {
37424 arg2 = &temp2;
37425 if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail;
37426 }
37427 {
37428 PyThreadState* __tstate = wxPyBeginAllowThreads();
37429 result = (bool)(arg1)->operator ==((wxGBSpan const &)*arg2);
37430
37431 wxPyEndAllowThreads(__tstate);
37432 if (PyErr_Occurred()) SWIG_fail;
37433 }
37434 {
37435 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37436 }
37437 return resultobj;
37438 fail:
37439 return NULL;
37440}
37441
37442
37443static PyObject *_wrap_GBSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
37444 PyObject *resultobj;
37445 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37446 wxGBSpan *arg2 = 0 ;
37447 bool result;
37448 wxGBSpan temp2 ;
37449 PyObject * obj0 = 0 ;
37450 PyObject * obj1 = 0 ;
37451 char *kwnames[] = {
37452 (char *) "self",(char *) "other", NULL
37453 };
37454
37455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
37456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37458 {
37459 arg2 = &temp2;
37460 if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail;
37461 }
37462 {
37463 PyThreadState* __tstate = wxPyBeginAllowThreads();
37464 result = (bool)(arg1)->operator !=((wxGBSpan const &)*arg2);
37465
37466 wxPyEndAllowThreads(__tstate);
37467 if (PyErr_Occurred()) SWIG_fail;
37468 }
37469 {
37470 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37471 }
37472 return resultobj;
37473 fail:
37474 return NULL;
37475}
37476
37477
37478static PyObject *_wrap_GBSpan_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
37479 PyObject *resultobj;
37480 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37481 int arg2 = (int) 1 ;
37482 int arg3 = (int) 1 ;
37483 PyObject * obj0 = 0 ;
37484 PyObject * obj1 = 0 ;
37485 PyObject * obj2 = 0 ;
37486 char *kwnames[] = {
37487 (char *) "self",(char *) "rowspan",(char *) "colspan", NULL
37488 };
37489
37490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBSpan_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
37491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37493 if (obj1) {
37494 arg2 = (int) SWIG_AsInt(obj1);
37495 if (PyErr_Occurred()) SWIG_fail;
37496 }
37497 if (obj2) {
37498 arg3 = (int) SWIG_AsInt(obj2);
37499 if (PyErr_Occurred()) SWIG_fail;
37500 }
37501 {
37502 PyThreadState* __tstate = wxPyBeginAllowThreads();
37503 wxGBSpan_Set(arg1,arg2,arg3);
37504
37505 wxPyEndAllowThreads(__tstate);
37506 if (PyErr_Occurred()) SWIG_fail;
37507 }
37508 Py_INCREF(Py_None); resultobj = Py_None;
37509 return resultobj;
37510 fail:
37511 return NULL;
37512}
37513
37514
37515static PyObject *_wrap_GBSpan_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
37516 PyObject *resultobj;
37517 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37518 PyObject *result;
37519 PyObject * obj0 = 0 ;
37520 char *kwnames[] = {
37521 (char *) "self", NULL
37522 };
37523
37524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_Get",kwnames,&obj0)) goto fail;
37525 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37527 {
37528 PyThreadState* __tstate = wxPyBeginAllowThreads();
37529 result = (PyObject *)wxGBSpan_Get(arg1);
37530
37531 wxPyEndAllowThreads(__tstate);
37532 if (PyErr_Occurred()) SWIG_fail;
37533 }
37534 resultobj = result;
37535 return resultobj;
37536 fail:
37537 return NULL;
37538}
37539
37540
37541static PyObject * GBSpan_swigregister(PyObject *self, PyObject *args) {
37542 PyObject *obj;
37543 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
37544 SWIG_TypeClientData(SWIGTYPE_p_wxGBSpan, obj);
37545 Py_INCREF(obj);
37546 return Py_BuildValue((char *)"");
37547}
37548static int _wrap_DefaultSpan_set(PyObject *_val) {
37549 PyErr_SetString(PyExc_TypeError,"Variable DefaultSpan is read-only.");
37550 return 1;
37551}
37552
37553
37554static PyObject *_wrap_DefaultSpan_get() {
37555 PyObject *pyobj;
37556
37557 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSpan), SWIGTYPE_p_wxGBSpan, 0);
37558 return pyobj;
37559}
37560
37561
37562static PyObject *_wrap_new_GBSizerItem(PyObject *self, PyObject *args, PyObject *kwargs) {
37563 PyObject *resultobj;
37564 wxGBSizerItem *result;
37565 char *kwnames[] = {
37566 NULL
37567 };
37568
37569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GBSizerItem",kwnames)) goto fail;
37570 {
37571 PyThreadState* __tstate = wxPyBeginAllowThreads();
37572 result = (wxGBSizerItem *)new wxGBSizerItem();
37573
37574 wxPyEndAllowThreads(__tstate);
37575 if (PyErr_Occurred()) SWIG_fail;
37576 }
37577 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1);
37578 return resultobj;
37579 fail:
37580 return NULL;
37581}
37582
37583
37584static PyObject *_wrap_new_GBSizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
37585 PyObject *resultobj;
37586 wxWindow *arg1 = (wxWindow *) 0 ;
37587 wxGBPosition *arg2 = 0 ;
37588 wxGBSpan *arg3 = 0 ;
37589 int arg4 ;
37590 int arg5 ;
248ed943 37591 PyObject *arg6 = (PyObject *) NULL ;
d55e5bfc
RD
37592 wxGBSizerItem *result;
37593 wxGBPosition temp2 ;
37594 wxGBSpan temp3 ;
37595 PyObject * obj0 = 0 ;
37596 PyObject * obj1 = 0 ;
37597 PyObject * obj2 = 0 ;
37598 PyObject * obj3 = 0 ;
37599 PyObject * obj4 = 0 ;
37600 PyObject * obj5 = 0 ;
37601 char *kwnames[] = {
37602 (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
37603 };
37604
248ed943 37605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
d55e5bfc
RD
37606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
37607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37608 {
37609 arg2 = &temp2;
37610 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
37611 }
37612 {
37613 arg3 = &temp3;
37614 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
37615 }
37616 arg4 = (int) SWIG_AsInt(obj3);
37617 if (PyErr_Occurred()) SWIG_fail;
37618 arg5 = (int) SWIG_AsInt(obj4);
37619 if (PyErr_Occurred()) SWIG_fail;
248ed943
RD
37620 if (obj5) {
37621 arg6 = obj5;
37622 }
d55e5bfc
RD
37623 {
37624 PyThreadState* __tstate = wxPyBeginAllowThreads();
248ed943 37625 result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6);
d55e5bfc
RD
37626
37627 wxPyEndAllowThreads(__tstate);
37628 if (PyErr_Occurred()) SWIG_fail;
37629 }
37630 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1);
37631 return resultobj;
37632 fail:
37633 return NULL;
37634}
37635
37636
37637static PyObject *_wrap_new_GBSizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
37638 PyObject *resultobj;
37639 wxSizer *arg1 = (wxSizer *) 0 ;
37640 wxGBPosition *arg2 = 0 ;
37641 wxGBSpan *arg3 = 0 ;
37642 int arg4 ;
37643 int arg5 ;
248ed943 37644 PyObject *arg6 = (PyObject *) NULL ;
d55e5bfc
RD
37645 wxGBSizerItem *result;
37646 wxGBPosition temp2 ;
37647 wxGBSpan temp3 ;
37648 PyObject * obj0 = 0 ;
37649 PyObject * obj1 = 0 ;
37650 PyObject * obj2 = 0 ;
37651 PyObject * obj3 = 0 ;
37652 PyObject * obj4 = 0 ;
37653 PyObject * obj5 = 0 ;
37654 char *kwnames[] = {
37655 (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
37656 };
37657
248ed943 37658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
d55e5bfc
RD
37659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
37660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37661 {
37662 arg2 = &temp2;
37663 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
37664 }
37665 {
37666 arg3 = &temp3;
37667 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
37668 }
37669 arg4 = (int) SWIG_AsInt(obj3);
37670 if (PyErr_Occurred()) SWIG_fail;
37671 arg5 = (int) SWIG_AsInt(obj4);
37672 if (PyErr_Occurred()) SWIG_fail;
248ed943
RD
37673 if (obj5) {
37674 arg6 = obj5;
37675 }
d55e5bfc
RD
37676 {
37677 PyThreadState* __tstate = wxPyBeginAllowThreads();
248ed943 37678 result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6);
d55e5bfc
RD
37679
37680 wxPyEndAllowThreads(__tstate);
37681 if (PyErr_Occurred()) SWIG_fail;
37682 }
37683 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1);
37684 return resultobj;
37685 fail:
37686 return NULL;
37687}
37688
37689
37690static PyObject *_wrap_new_GBSizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) {
37691 PyObject *resultobj;
37692 int arg1 ;
37693 int arg2 ;
37694 wxGBPosition *arg3 = 0 ;
37695 wxGBSpan *arg4 = 0 ;
37696 int arg5 ;
37697 int arg6 ;
248ed943 37698 PyObject *arg7 = (PyObject *) NULL ;
d55e5bfc
RD
37699 wxGBSizerItem *result;
37700 wxGBPosition temp3 ;
37701 wxGBSpan temp4 ;
37702 PyObject * obj0 = 0 ;
37703 PyObject * obj1 = 0 ;
37704 PyObject * obj2 = 0 ;
37705 PyObject * obj3 = 0 ;
37706 PyObject * obj4 = 0 ;
37707 PyObject * obj5 = 0 ;
37708 PyObject * obj6 = 0 ;
37709 char *kwnames[] = {
37710 (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
37711 };
37712
248ed943 37713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:new_GBSizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
d55e5bfc
RD
37714 arg1 = (int) SWIG_AsInt(obj0);
37715 if (PyErr_Occurred()) SWIG_fail;
37716 arg2 = (int) SWIG_AsInt(obj1);
37717 if (PyErr_Occurred()) SWIG_fail;
37718 {
37719 arg3 = &temp3;
37720 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
37721 }
37722 {
37723 arg4 = &temp4;
37724 if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail;
37725 }
37726 arg5 = (int) SWIG_AsInt(obj4);
37727 if (PyErr_Occurred()) SWIG_fail;
37728 arg6 = (int) SWIG_AsInt(obj5);
37729 if (PyErr_Occurred()) SWIG_fail;
248ed943
RD
37730 if (obj6) {
37731 arg7 = obj6;
37732 }
d55e5bfc
RD
37733 {
37734 PyThreadState* __tstate = wxPyBeginAllowThreads();
248ed943 37735 result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7);
d55e5bfc
RD
37736
37737 wxPyEndAllowThreads(__tstate);
37738 if (PyErr_Occurred()) SWIG_fail;
37739 }
37740 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1);
37741 return resultobj;
37742 fail:
37743 return NULL;
37744}
37745
37746
37747static PyObject *_wrap_GBSizerItem_GetPos(PyObject *self, PyObject *args, PyObject *kwargs) {
37748 PyObject *resultobj;
37749 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
37750 wxGBPosition result;
37751 PyObject * obj0 = 0 ;
37752 char *kwnames[] = {
37753 (char *) "self", NULL
37754 };
37755
37756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetPos",kwnames,&obj0)) goto fail;
37757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
37758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37759 {
37760 PyThreadState* __tstate = wxPyBeginAllowThreads();
37761 result = ((wxGBSizerItem const *)arg1)->GetPos();
37762
37763 wxPyEndAllowThreads(__tstate);
37764 if (PyErr_Occurred()) SWIG_fail;
37765 }
37766 {
37767 wxGBPosition * resultptr;
37768 resultptr = new wxGBPosition((wxGBPosition &) result);
37769 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1);
37770 }
37771 return resultobj;
37772 fail:
37773 return NULL;
37774}
37775
37776
37777static PyObject *_wrap_GBSizerItem_GetSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
37778 PyObject *resultobj;
37779 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
37780 wxGBSpan result;
37781 PyObject * obj0 = 0 ;
37782 char *kwnames[] = {
37783 (char *) "self", NULL
37784 };
37785
37786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetSpan",kwnames,&obj0)) goto fail;
37787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
37788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37789 {
37790 PyThreadState* __tstate = wxPyBeginAllowThreads();
37791 result = ((wxGBSizerItem const *)arg1)->GetSpan();
37792
37793 wxPyEndAllowThreads(__tstate);
37794 if (PyErr_Occurred()) SWIG_fail;
37795 }
37796 {
37797 wxGBSpan * resultptr;
37798 resultptr = new wxGBSpan((wxGBSpan &) result);
37799 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1);
37800 }
37801 return resultobj;
37802 fail:
37803 return NULL;
37804}
37805
37806
37807static PyObject *_wrap_GBSizerItem_SetPos(PyObject *self, PyObject *args, PyObject *kwargs) {
37808 PyObject *resultobj;
37809 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
37810 wxGBPosition *arg2 = 0 ;
37811 bool result;
37812 wxGBPosition temp2 ;
37813 PyObject * obj0 = 0 ;
37814 PyObject * obj1 = 0 ;
37815 char *kwnames[] = {
37816 (char *) "self",(char *) "pos", NULL
37817 };
37818
37819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) goto fail;
37820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
37821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37822 {
37823 arg2 = &temp2;
37824 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
37825 }
37826 {
37827 PyThreadState* __tstate = wxPyBeginAllowThreads();
37828 result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2);
37829
37830 wxPyEndAllowThreads(__tstate);
37831 if (PyErr_Occurred()) SWIG_fail;
37832 }
37833 {
37834 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37835 }
37836 return resultobj;
37837 fail:
37838 return NULL;
37839}
37840
37841
37842static PyObject *_wrap_GBSizerItem_SetSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
37843 PyObject *resultobj;
37844 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
37845 wxGBSpan *arg2 = 0 ;
37846 bool result;
37847 wxGBSpan temp2 ;
37848 PyObject * obj0 = 0 ;
37849 PyObject * obj1 = 0 ;
37850 char *kwnames[] = {
37851 (char *) "self",(char *) "span", NULL
37852 };
37853
37854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) goto fail;
37855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
37856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37857 {
37858 arg2 = &temp2;
37859 if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail;
37860 }
37861 {
37862 PyThreadState* __tstate = wxPyBeginAllowThreads();
37863 result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2);
37864
37865 wxPyEndAllowThreads(__tstate);
37866 if (PyErr_Occurred()) SWIG_fail;
37867 }
37868 {
37869 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37870 }
37871 return resultobj;
37872 fail:
37873 return NULL;
37874}
37875
37876
248ed943 37877static PyObject *_wrap_GBSizerItem_Intersects(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
37878 PyObject *resultobj;
37879 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
37880 wxGBSizerItem *arg2 = 0 ;
37881 bool result;
37882 PyObject * obj0 = 0 ;
37883 PyObject * obj1 = 0 ;
248ed943
RD
37884 char *kwnames[] = {
37885 (char *) "self",(char *) "other", NULL
37886 };
d55e5bfc 37887
248ed943 37888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_Intersects",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
37889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
37890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37891 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem,
37892 SWIG_POINTER_EXCEPTION | 0)) == -1)
37893 SWIG_fail;
37894 if (arg2 == NULL) {
37895 PyErr_SetString(PyExc_TypeError,"null reference");
37896 SWIG_fail;
37897 }
37898 {
37899 PyThreadState* __tstate = wxPyBeginAllowThreads();
37900 result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2);
37901
37902 wxPyEndAllowThreads(__tstate);
37903 if (PyErr_Occurred()) SWIG_fail;
37904 }
37905 {
37906 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37907 }
37908 return resultobj;
37909 fail:
37910 return NULL;
37911}
37912
37913
248ed943 37914static PyObject *_wrap_GBSizerItem_IntersectsPos(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
37915 PyObject *resultobj;
37916 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
37917 wxGBPosition *arg2 = 0 ;
37918 wxGBSpan *arg3 = 0 ;
37919 bool result;
37920 wxGBPosition temp2 ;
37921 wxGBSpan temp3 ;
37922 PyObject * obj0 = 0 ;
37923 PyObject * obj1 = 0 ;
37924 PyObject * obj2 = 0 ;
248ed943
RD
37925 char *kwnames[] = {
37926 (char *) "self",(char *) "pos",(char *) "span", NULL
37927 };
d55e5bfc 37928
248ed943 37929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_IntersectsPos",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
37930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
37931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37932 {
37933 arg2 = &temp2;
37934 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
37935 }
37936 {
37937 arg3 = &temp3;
37938 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
37939 }
37940 {
37941 PyThreadState* __tstate = wxPyBeginAllowThreads();
37942 result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3);
37943
37944 wxPyEndAllowThreads(__tstate);
37945 if (PyErr_Occurred()) SWIG_fail;
37946 }
37947 {
37948 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37949 }
37950 return resultobj;
37951 fail:
37952 return NULL;
37953}
37954
37955
d55e5bfc
RD
37956static PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *self, PyObject *args, PyObject *kwargs) {
37957 PyObject *resultobj;
37958 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
248ed943 37959 wxGBPosition result;
d55e5bfc 37960 PyObject * obj0 = 0 ;
d55e5bfc 37961 char *kwnames[] = {
248ed943 37962 (char *) "self", NULL
d55e5bfc
RD
37963 };
37964
248ed943 37965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetEndPos",kwnames,&obj0)) goto fail;
d55e5bfc
RD
37966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
37967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d55e5bfc
RD
37968 {
37969 PyThreadState* __tstate = wxPyBeginAllowThreads();
248ed943 37970 result = wxGBSizerItem_GetEndPos(arg1);
d55e5bfc
RD
37971
37972 wxPyEndAllowThreads(__tstate);
37973 if (PyErr_Occurred()) SWIG_fail;
37974 }
248ed943
RD
37975 {
37976 wxGBPosition * resultptr;
37977 resultptr = new wxGBPosition((wxGBPosition &) result);
37978 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1);
37979 }
d55e5bfc
RD
37980 return resultobj;
37981 fail:
37982 return NULL;
37983}
37984
37985
37986static PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
37987 PyObject *resultobj;
37988 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
37989 wxGridBagSizer *result;
37990 PyObject * obj0 = 0 ;
37991 char *kwnames[] = {
37992 (char *) "self", NULL
37993 };
37994
37995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetGBSizer",kwnames,&obj0)) goto fail;
37996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
37997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37998 {
37999 PyThreadState* __tstate = wxPyBeginAllowThreads();
38000 result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer();
38001
38002 wxPyEndAllowThreads(__tstate);
38003 if (PyErr_Occurred()) SWIG_fail;
38004 }
38005 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 0);
38006 return resultobj;
38007 fail:
38008 return NULL;
38009}
38010
38011
38012static PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
38013 PyObject *resultobj;
38014 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
38015 wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ;
38016 PyObject * obj0 = 0 ;
38017 PyObject * obj1 = 0 ;
38018 char *kwnames[] = {
38019 (char *) "self",(char *) "sizer", NULL
38020 };
38021
38022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) goto fail;
38023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
38024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38025 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridBagSizer,
38026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38027 {
38028 PyThreadState* __tstate = wxPyBeginAllowThreads();
38029 (arg1)->SetGBSizer(arg2);
38030
38031 wxPyEndAllowThreads(__tstate);
38032 if (PyErr_Occurred()) SWIG_fail;
38033 }
38034 Py_INCREF(Py_None); resultobj = Py_None;
38035 return resultobj;
38036 fail:
38037 return NULL;
38038}
38039
38040
38041static PyObject * GBSizerItem_swigregister(PyObject *self, PyObject *args) {
38042 PyObject *obj;
38043 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
38044 SWIG_TypeClientData(SWIGTYPE_p_wxGBSizerItem, obj);
38045 Py_INCREF(obj);
38046 return Py_BuildValue((char *)"");
38047}
38048static PyObject *_wrap_new_GridBagSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
38049 PyObject *resultobj;
38050 int arg1 = (int) 0 ;
38051 int arg2 = (int) 0 ;
38052 wxGridBagSizer *result;
38053 PyObject * obj0 = 0 ;
38054 PyObject * obj1 = 0 ;
38055 char *kwnames[] = {
38056 (char *) "vgap",(char *) "hgap", NULL
38057 };
38058
38059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridBagSizer",kwnames,&obj0,&obj1)) goto fail;
38060 if (obj0) {
38061 arg1 = (int) SWIG_AsInt(obj0);
38062 if (PyErr_Occurred()) SWIG_fail;
38063 }
38064 if (obj1) {
38065 arg2 = (int) SWIG_AsInt(obj1);
38066 if (PyErr_Occurred()) SWIG_fail;
38067 }
38068 {
38069 PyThreadState* __tstate = wxPyBeginAllowThreads();
38070 result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2);
38071
38072 wxPyEndAllowThreads(__tstate);
38073 if (PyErr_Occurred()) SWIG_fail;
38074 }
38075 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 1);
38076 return resultobj;
38077 fail:
38078 return NULL;
38079}
38080
38081
38082static PyObject *_wrap_GridBagSizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
38083 PyObject *resultobj;
38084 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38085 PyObject *arg2 = (PyObject *) 0 ;
38086 wxGBPosition *arg3 = 0 ;
38087 wxGBSpan const &arg4_defvalue = wxDefaultSpan ;
38088 wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ;
38089 int arg5 = (int) 0 ;
38090 int arg6 = (int) 0 ;
38091 PyObject *arg7 = (PyObject *) NULL ;
38092 bool result;
38093 wxGBPosition temp3 ;
38094 wxGBSpan temp4 ;
38095 PyObject * obj0 = 0 ;
38096 PyObject * obj1 = 0 ;
38097 PyObject * obj2 = 0 ;
38098 PyObject * obj3 = 0 ;
38099 PyObject * obj4 = 0 ;
38100 PyObject * obj5 = 0 ;
38101 PyObject * obj6 = 0 ;
38102 char *kwnames[] = {
38103 (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
38104 };
38105
38106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
38107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38109 arg2 = obj1;
38110 {
38111 arg3 = &temp3;
38112 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
38113 }
38114 if (obj3) {
38115 {
38116 arg4 = &temp4;
38117 if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail;
38118 }
38119 }
38120 if (obj4) {
38121 arg5 = (int) SWIG_AsInt(obj4);
38122 if (PyErr_Occurred()) SWIG_fail;
38123 }
38124 if (obj5) {
38125 arg6 = (int) SWIG_AsInt(obj5);
38126 if (PyErr_Occurred()) SWIG_fail;
38127 }
38128 if (obj6) {
38129 arg7 = obj6;
38130 }
38131 {
38132 PyThreadState* __tstate = wxPyBeginAllowThreads();
38133 result = (bool)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7);
38134
38135 wxPyEndAllowThreads(__tstate);
38136 if (PyErr_Occurred()) SWIG_fail;
38137 }
38138 {
38139 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38140 }
38141 return resultobj;
38142 fail:
38143 return NULL;
38144}
38145
38146
38147static PyObject *_wrap_GridBagSizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) {
38148 PyObject *resultobj;
38149 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38150 wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ;
38151 bool result;
38152 PyObject * obj0 = 0 ;
38153 PyObject * obj1 = 0 ;
38154 char *kwnames[] = {
38155 (char *) "self",(char *) "item", NULL
38156 };
38157
38158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) goto fail;
38159 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38160 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38161 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem,
38162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38163 {
38164 PyThreadState* __tstate = wxPyBeginAllowThreads();
38165 result = (bool)(arg1)->Add(arg2);
38166
38167 wxPyEndAllowThreads(__tstate);
38168 if (PyErr_Occurred()) SWIG_fail;
38169 }
38170 {
38171 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38172 }
38173 return resultobj;
38174 fail:
38175 return NULL;
38176}
38177
38178
38179static PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) {
38180 PyObject *resultobj;
38181 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38182 wxSize result;
38183 PyObject * obj0 = 0 ;
38184 char *kwnames[] = {
38185 (char *) "self", NULL
38186 };
38187
38188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_GetEmptyCellSize",kwnames,&obj0)) goto fail;
38189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38191 {
38192 PyThreadState* __tstate = wxPyBeginAllowThreads();
38193 result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize();
38194
38195 wxPyEndAllowThreads(__tstate);
38196 if (PyErr_Occurred()) SWIG_fail;
38197 }
38198 {
38199 wxSize * resultptr;
38200 resultptr = new wxSize((wxSize &) result);
38201 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
38202 }
38203 return resultobj;
38204 fail:
38205 return NULL;
38206}
38207
38208
38209static PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) {
38210 PyObject *resultobj;
38211 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38212 wxSize *arg2 = 0 ;
38213 wxSize temp2 ;
38214 PyObject * obj0 = 0 ;
38215 PyObject * obj1 = 0 ;
38216 char *kwnames[] = {
38217 (char *) "self",(char *) "sz", NULL
38218 };
38219
38220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) goto fail;
38221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38223 {
38224 arg2 = &temp2;
38225 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
38226 }
38227 {
38228 PyThreadState* __tstate = wxPyBeginAllowThreads();
38229 (arg1)->SetEmptyCellSize((wxSize const &)*arg2);
38230
38231 wxPyEndAllowThreads(__tstate);
38232 if (PyErr_Occurred()) SWIG_fail;
38233 }
38234 Py_INCREF(Py_None); resultobj = Py_None;
38235 return resultobj;
38236 fail:
38237 return NULL;
38238}
38239
38240
38241static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *self, PyObject *args) {
38242 PyObject *resultobj;
38243 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38244 wxWindow *arg2 = (wxWindow *) 0 ;
38245 wxGBPosition result;
38246 PyObject * obj0 = 0 ;
38247 PyObject * obj1 = 0 ;
38248
38249 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail;
38250 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38252 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
38253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38254 {
38255 PyThreadState* __tstate = wxPyBeginAllowThreads();
38256 result = (arg1)->GetItemPosition(arg2);
38257
38258 wxPyEndAllowThreads(__tstate);
38259 if (PyErr_Occurred()) SWIG_fail;
38260 }
38261 {
38262 wxGBPosition * resultptr;
38263 resultptr = new wxGBPosition((wxGBPosition &) result);
38264 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1);
38265 }
38266 return resultobj;
38267 fail:
38268 return NULL;
38269}
38270
38271
38272static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *self, PyObject *args) {
38273 PyObject *resultobj;
38274 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38275 wxSizer *arg2 = (wxSizer *) 0 ;
38276 wxGBPosition result;
38277 PyObject * obj0 = 0 ;
38278 PyObject * obj1 = 0 ;
38279
38280 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail;
38281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38283 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
38284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38285 {
38286 PyThreadState* __tstate = wxPyBeginAllowThreads();
38287 result = (arg1)->GetItemPosition(arg2);
38288
38289 wxPyEndAllowThreads(__tstate);
38290 if (PyErr_Occurred()) SWIG_fail;
38291 }
38292 {
38293 wxGBPosition * resultptr;
38294 resultptr = new wxGBPosition((wxGBPosition &) result);
38295 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1);
38296 }
38297 return resultobj;
38298 fail:
38299 return NULL;
38300}
38301
38302
38303static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *self, PyObject *args) {
38304 PyObject *resultobj;
38305 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38306 size_t arg2 ;
38307 wxGBPosition result;
38308 PyObject * obj0 = 0 ;
38309 PyObject * obj1 = 0 ;
38310
38311 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail;
38312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38314 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
38315 if (PyErr_Occurred()) SWIG_fail;
38316 {
38317 PyThreadState* __tstate = wxPyBeginAllowThreads();
38318 result = (arg1)->GetItemPosition(arg2);
38319
38320 wxPyEndAllowThreads(__tstate);
38321 if (PyErr_Occurred()) SWIG_fail;
38322 }
38323 {
38324 wxGBPosition * resultptr;
38325 resultptr = new wxGBPosition((wxGBPosition &) result);
38326 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1);
38327 }
38328 return resultobj;
38329 fail:
38330 return NULL;
38331}
38332
38333
38334static PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) {
38335 int argc;
38336 PyObject *argv[3];
38337 int ii;
38338
38339 argc = PyObject_Length(args);
38340 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
38341 argv[ii] = PyTuple_GetItem(args,ii);
38342 }
38343 if (argc == 2) {
38344 int _v;
38345 {
38346 void *ptr;
38347 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38348 _v = 0;
38349 PyErr_Clear();
38350 } else {
38351 _v = 1;
38352 }
38353 }
38354 if (_v) {
38355 {
38356 void *ptr;
38357 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
38358 _v = 0;
38359 PyErr_Clear();
38360 } else {
38361 _v = 1;
38362 }
38363 }
38364 if (_v) {
38365 return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self,args);
38366 }
38367 }
38368 }
38369 if (argc == 2) {
38370 int _v;
38371 {
38372 void *ptr;
38373 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38374 _v = 0;
38375 PyErr_Clear();
38376 } else {
38377 _v = 1;
38378 }
38379 }
38380 if (_v) {
38381 {
38382 void *ptr;
38383 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
38384 _v = 0;
38385 PyErr_Clear();
38386 } else {
38387 _v = 1;
38388 }
38389 }
38390 if (_v) {
38391 return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self,args);
38392 }
38393 }
38394 }
38395 if (argc == 2) {
38396 int _v;
38397 {
38398 void *ptr;
38399 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38400 _v = 0;
38401 PyErr_Clear();
38402 } else {
38403 _v = 1;
38404 }
38405 }
38406 if (_v) {
38407 _v = SWIG_CheckUnsignedLong(argv[1]);
38408 if (_v) {
38409 return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self,args);
38410 }
38411 }
38412 }
38413
38414 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'");
38415 return NULL;
38416}
38417
38418
38419static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *self, PyObject *args) {
38420 PyObject *resultobj;
38421 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38422 wxWindow *arg2 = (wxWindow *) 0 ;
38423 wxGBPosition *arg3 = 0 ;
38424 bool result;
38425 wxGBPosition temp3 ;
38426 PyObject * obj0 = 0 ;
38427 PyObject * obj1 = 0 ;
38428 PyObject * obj2 = 0 ;
38429
38430 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail;
38431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38433 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
38434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38435 {
38436 arg3 = &temp3;
38437 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
38438 }
38439 {
38440 PyThreadState* __tstate = wxPyBeginAllowThreads();
38441 result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3);
38442
38443 wxPyEndAllowThreads(__tstate);
38444 if (PyErr_Occurred()) SWIG_fail;
38445 }
38446 {
38447 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38448 }
38449 return resultobj;
38450 fail:
38451 return NULL;
38452}
38453
38454
38455static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *self, PyObject *args) {
38456 PyObject *resultobj;
38457 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38458 wxSizer *arg2 = (wxSizer *) 0 ;
38459 wxGBPosition *arg3 = 0 ;
38460 bool result;
38461 wxGBPosition temp3 ;
38462 PyObject * obj0 = 0 ;
38463 PyObject * obj1 = 0 ;
38464 PyObject * obj2 = 0 ;
38465
38466 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail;
38467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38469 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
38470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38471 {
38472 arg3 = &temp3;
38473 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
38474 }
38475 {
38476 PyThreadState* __tstate = wxPyBeginAllowThreads();
38477 result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3);
38478
38479 wxPyEndAllowThreads(__tstate);
38480 if (PyErr_Occurred()) SWIG_fail;
38481 }
38482 {
38483 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38484 }
38485 return resultobj;
38486 fail:
38487 return NULL;
38488}
38489
38490
38491static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *self, PyObject *args) {
38492 PyObject *resultobj;
38493 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38494 size_t arg2 ;
38495 wxGBPosition *arg3 = 0 ;
38496 bool result;
38497 wxGBPosition temp3 ;
38498 PyObject * obj0 = 0 ;
38499 PyObject * obj1 = 0 ;
38500 PyObject * obj2 = 0 ;
38501
38502 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail;
38503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38505 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
38506 if (PyErr_Occurred()) SWIG_fail;
38507 {
38508 arg3 = &temp3;
38509 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
38510 }
38511 {
38512 PyThreadState* __tstate = wxPyBeginAllowThreads();
38513 result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3);
38514
38515 wxPyEndAllowThreads(__tstate);
38516 if (PyErr_Occurred()) SWIG_fail;
38517 }
38518 {
38519 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38520 }
38521 return resultobj;
38522 fail:
38523 return NULL;
38524}
38525
38526
38527static PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) {
38528 int argc;
38529 PyObject *argv[4];
38530 int ii;
38531
38532 argc = PyObject_Length(args);
38533 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
38534 argv[ii] = PyTuple_GetItem(args,ii);
38535 }
38536 if (argc == 3) {
38537 int _v;
38538 {
38539 void *ptr;
38540 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38541 _v = 0;
38542 PyErr_Clear();
38543 } else {
38544 _v = 1;
38545 }
38546 }
38547 if (_v) {
38548 {
38549 void *ptr;
38550 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
38551 _v = 0;
38552 PyErr_Clear();
38553 } else {
38554 _v = 1;
38555 }
38556 }
38557 if (_v) {
38558 {
38559 _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2);
38560 }
38561 if (_v) {
38562 return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self,args);
38563 }
38564 }
38565 }
38566 }
38567 if (argc == 3) {
38568 int _v;
38569 {
38570 void *ptr;
38571 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38572 _v = 0;
38573 PyErr_Clear();
38574 } else {
38575 _v = 1;
38576 }
38577 }
38578 if (_v) {
38579 {
38580 void *ptr;
38581 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
38582 _v = 0;
38583 PyErr_Clear();
38584 } else {
38585 _v = 1;
38586 }
38587 }
38588 if (_v) {
38589 {
38590 _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2);
38591 }
38592 if (_v) {
38593 return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self,args);
38594 }
38595 }
38596 }
38597 }
38598 if (argc == 3) {
38599 int _v;
38600 {
38601 void *ptr;
38602 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38603 _v = 0;
38604 PyErr_Clear();
38605 } else {
38606 _v = 1;
38607 }
38608 }
38609 if (_v) {
38610 _v = SWIG_CheckUnsignedLong(argv[1]);
38611 if (_v) {
38612 {
38613 _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2);
38614 }
38615 if (_v) {
38616 return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self,args);
38617 }
38618 }
38619 }
38620 }
38621
38622 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'");
38623 return NULL;
38624}
38625
38626
38627static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *self, PyObject *args) {
38628 PyObject *resultobj;
38629 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38630 wxWindow *arg2 = (wxWindow *) 0 ;
38631 wxGBSpan result;
38632 PyObject * obj0 = 0 ;
38633 PyObject * obj1 = 0 ;
38634
38635 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail;
38636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38638 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
38639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38640 {
38641 PyThreadState* __tstate = wxPyBeginAllowThreads();
38642 result = (arg1)->GetItemSpan(arg2);
38643
38644 wxPyEndAllowThreads(__tstate);
38645 if (PyErr_Occurred()) SWIG_fail;
38646 }
38647 {
38648 wxGBSpan * resultptr;
38649 resultptr = new wxGBSpan((wxGBSpan &) result);
38650 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1);
38651 }
38652 return resultobj;
38653 fail:
38654 return NULL;
38655}
38656
38657
38658static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *self, PyObject *args) {
38659 PyObject *resultobj;
38660 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38661 wxSizer *arg2 = (wxSizer *) 0 ;
38662 wxGBSpan result;
38663 PyObject * obj0 = 0 ;
38664 PyObject * obj1 = 0 ;
38665
38666 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail;
38667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38669 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
38670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38671 {
38672 PyThreadState* __tstate = wxPyBeginAllowThreads();
38673 result = (arg1)->GetItemSpan(arg2);
38674
38675 wxPyEndAllowThreads(__tstate);
38676 if (PyErr_Occurred()) SWIG_fail;
38677 }
38678 {
38679 wxGBSpan * resultptr;
38680 resultptr = new wxGBSpan((wxGBSpan &) result);
38681 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1);
38682 }
38683 return resultobj;
38684 fail:
38685 return NULL;
38686}
38687
38688
38689static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *self, PyObject *args) {
38690 PyObject *resultobj;
38691 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38692 size_t arg2 ;
38693 wxGBSpan result;
38694 PyObject * obj0 = 0 ;
38695 PyObject * obj1 = 0 ;
38696
38697 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail;
38698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38700 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
38701 if (PyErr_Occurred()) SWIG_fail;
38702 {
38703 PyThreadState* __tstate = wxPyBeginAllowThreads();
38704 result = (arg1)->GetItemSpan(arg2);
38705
38706 wxPyEndAllowThreads(__tstate);
38707 if (PyErr_Occurred()) SWIG_fail;
38708 }
38709 {
38710 wxGBSpan * resultptr;
38711 resultptr = new wxGBSpan((wxGBSpan &) result);
38712 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1);
38713 }
38714 return resultobj;
38715 fail:
38716 return NULL;
38717}
38718
38719
38720static PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) {
38721 int argc;
38722 PyObject *argv[3];
38723 int ii;
38724
38725 argc = PyObject_Length(args);
38726 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
38727 argv[ii] = PyTuple_GetItem(args,ii);
38728 }
38729 if (argc == 2) {
38730 int _v;
38731 {
38732 void *ptr;
38733 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38734 _v = 0;
38735 PyErr_Clear();
38736 } else {
38737 _v = 1;
38738 }
38739 }
38740 if (_v) {
38741 {
38742 void *ptr;
38743 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
38744 _v = 0;
38745 PyErr_Clear();
38746 } else {
38747 _v = 1;
38748 }
38749 }
38750 if (_v) {
38751 return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self,args);
38752 }
38753 }
38754 }
38755 if (argc == 2) {
38756 int _v;
38757 {
38758 void *ptr;
38759 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38760 _v = 0;
38761 PyErr_Clear();
38762 } else {
38763 _v = 1;
38764 }
38765 }
38766 if (_v) {
38767 {
38768 void *ptr;
38769 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
38770 _v = 0;
38771 PyErr_Clear();
38772 } else {
38773 _v = 1;
38774 }
38775 }
38776 if (_v) {
38777 return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self,args);
38778 }
38779 }
38780 }
38781 if (argc == 2) {
38782 int _v;
38783 {
38784 void *ptr;
38785 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38786 _v = 0;
38787 PyErr_Clear();
38788 } else {
38789 _v = 1;
38790 }
38791 }
38792 if (_v) {
38793 _v = SWIG_CheckUnsignedLong(argv[1]);
38794 if (_v) {
38795 return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self,args);
38796 }
38797 }
38798 }
38799
38800 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'");
38801 return NULL;
38802}
38803
38804
38805static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *self, PyObject *args) {
38806 PyObject *resultobj;
38807 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38808 wxWindow *arg2 = (wxWindow *) 0 ;
38809 wxGBSpan *arg3 = 0 ;
38810 bool result;
38811 wxGBSpan temp3 ;
38812 PyObject * obj0 = 0 ;
38813 PyObject * obj1 = 0 ;
38814 PyObject * obj2 = 0 ;
38815
38816 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail;
38817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38819 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
38820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38821 {
38822 arg3 = &temp3;
38823 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
38824 }
38825 {
38826 PyThreadState* __tstate = wxPyBeginAllowThreads();
38827 result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3);
38828
38829 wxPyEndAllowThreads(__tstate);
38830 if (PyErr_Occurred()) SWIG_fail;
38831 }
38832 {
38833 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38834 }
38835 return resultobj;
38836 fail:
38837 return NULL;
38838}
38839
38840
38841static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *self, PyObject *args) {
38842 PyObject *resultobj;
38843 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38844 wxSizer *arg2 = (wxSizer *) 0 ;
38845 wxGBSpan *arg3 = 0 ;
38846 bool result;
38847 wxGBSpan temp3 ;
38848 PyObject * obj0 = 0 ;
38849 PyObject * obj1 = 0 ;
38850 PyObject * obj2 = 0 ;
38851
38852 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail;
38853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38855 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
38856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38857 {
38858 arg3 = &temp3;
38859 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
38860 }
38861 {
38862 PyThreadState* __tstate = wxPyBeginAllowThreads();
38863 result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3);
38864
38865 wxPyEndAllowThreads(__tstate);
38866 if (PyErr_Occurred()) SWIG_fail;
38867 }
38868 {
38869 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38870 }
38871 return resultobj;
38872 fail:
38873 return NULL;
38874}
38875
38876
38877static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *self, PyObject *args) {
38878 PyObject *resultobj;
38879 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38880 size_t arg2 ;
38881 wxGBSpan *arg3 = 0 ;
38882 bool result;
38883 wxGBSpan temp3 ;
38884 PyObject * obj0 = 0 ;
38885 PyObject * obj1 = 0 ;
38886 PyObject * obj2 = 0 ;
38887
38888 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail;
38889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38891 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
38892 if (PyErr_Occurred()) SWIG_fail;
38893 {
38894 arg3 = &temp3;
38895 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
38896 }
38897 {
38898 PyThreadState* __tstate = wxPyBeginAllowThreads();
38899 result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3);
38900
38901 wxPyEndAllowThreads(__tstate);
38902 if (PyErr_Occurred()) SWIG_fail;
38903 }
38904 {
38905 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38906 }
38907 return resultobj;
38908 fail:
38909 return NULL;
38910}
38911
38912
38913static PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) {
38914 int argc;
38915 PyObject *argv[4];
38916 int ii;
38917
38918 argc = PyObject_Length(args);
38919 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
38920 argv[ii] = PyTuple_GetItem(args,ii);
38921 }
38922 if (argc == 3) {
38923 int _v;
38924 {
38925 void *ptr;
38926 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38927 _v = 0;
38928 PyErr_Clear();
38929 } else {
38930 _v = 1;
38931 }
38932 }
38933 if (_v) {
38934 {
38935 void *ptr;
38936 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
38937 _v = 0;
38938 PyErr_Clear();
38939 } else {
38940 _v = 1;
38941 }
38942 }
38943 if (_v) {
38944 {
38945 _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2);
38946 }
38947 if (_v) {
38948 return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self,args);
38949 }
38950 }
38951 }
38952 }
38953 if (argc == 3) {
38954 int _v;
38955 {
38956 void *ptr;
38957 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38958 _v = 0;
38959 PyErr_Clear();
38960 } else {
38961 _v = 1;
38962 }
38963 }
38964 if (_v) {
38965 {
38966 void *ptr;
38967 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
38968 _v = 0;
38969 PyErr_Clear();
38970 } else {
38971 _v = 1;
38972 }
38973 }
38974 if (_v) {
38975 {
38976 _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2);
38977 }
38978 if (_v) {
38979 return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self,args);
38980 }
38981 }
38982 }
38983 }
38984 if (argc == 3) {
38985 int _v;
38986 {
38987 void *ptr;
38988 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38989 _v = 0;
38990 PyErr_Clear();
38991 } else {
38992 _v = 1;
38993 }
38994 }
38995 if (_v) {
38996 _v = SWIG_CheckUnsignedLong(argv[1]);
38997 if (_v) {
38998 {
38999 _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2);
39000 }
39001 if (_v) {
39002 return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self,args);
39003 }
39004 }
39005 }
39006 }
39007
39008 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'");
39009 return NULL;
39010}
39011
39012
39013static PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *self, PyObject *args) {
39014 PyObject *resultobj;
39015 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39016 wxWindow *arg2 = (wxWindow *) 0 ;
39017 wxGBSizerItem *result;
39018 PyObject * obj0 = 0 ;
39019 PyObject * obj1 = 0 ;
39020
39021 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail;
39022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39024 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39026 {
39027 PyThreadState* __tstate = wxPyBeginAllowThreads();
39028 result = (wxGBSizerItem *)(arg1)->FindItem(arg2);
39029
39030 wxPyEndAllowThreads(__tstate);
39031 if (PyErr_Occurred()) SWIG_fail;
39032 }
39033 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0);
39034 return resultobj;
39035 fail:
39036 return NULL;
39037}
39038
39039
39040static PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *self, PyObject *args) {
39041 PyObject *resultobj;
39042 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39043 wxSizer *arg2 = (wxSizer *) 0 ;
39044 wxGBSizerItem *result;
39045 PyObject * obj0 = 0 ;
39046 PyObject * obj1 = 0 ;
39047
39048 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail;
39049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39051 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
39052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39053 {
39054 PyThreadState* __tstate = wxPyBeginAllowThreads();
39055 result = (wxGBSizerItem *)(arg1)->FindItem(arg2);
39056
39057 wxPyEndAllowThreads(__tstate);
39058 if (PyErr_Occurred()) SWIG_fail;
39059 }
39060 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0);
39061 return resultobj;
39062 fail:
39063 return NULL;
39064}
39065
39066
39067static PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) {
39068 int argc;
39069 PyObject *argv[3];
39070 int ii;
39071
39072 argc = PyObject_Length(args);
39073 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
39074 argv[ii] = PyTuple_GetItem(args,ii);
39075 }
39076 if (argc == 2) {
39077 int _v;
39078 {
39079 void *ptr;
39080 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
39081 _v = 0;
39082 PyErr_Clear();
39083 } else {
39084 _v = 1;
39085 }
39086 }
39087 if (_v) {
39088 {
39089 void *ptr;
39090 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
39091 _v = 0;
39092 PyErr_Clear();
39093 } else {
39094 _v = 1;
39095 }
39096 }
39097 if (_v) {
39098 return _wrap_GridBagSizer_FindItem__SWIG_0(self,args);
39099 }
39100 }
39101 }
39102 if (argc == 2) {
39103 int _v;
39104 {
39105 void *ptr;
39106 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
39107 _v = 0;
39108 PyErr_Clear();
39109 } else {
39110 _v = 1;
39111 }
39112 }
39113 if (_v) {
39114 {
39115 void *ptr;
39116 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
39117 _v = 0;
39118 PyErr_Clear();
39119 } else {
39120 _v = 1;
39121 }
39122 }
39123 if (_v) {
39124 return _wrap_GridBagSizer_FindItem__SWIG_1(self,args);
39125 }
39126 }
39127 }
39128
39129 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_FindItem'");
39130 return NULL;
39131}
39132
39133
39134static PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
39135 PyObject *resultobj;
39136 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39137 wxGBPosition *arg2 = 0 ;
39138 wxGBSizerItem *result;
39139 wxGBPosition temp2 ;
39140 PyObject * obj0 = 0 ;
39141 PyObject * obj1 = 0 ;
39142 char *kwnames[] = {
39143 (char *) "self",(char *) "pos", NULL
39144 };
39145
39146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) goto fail;
39147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39149 {
39150 arg2 = &temp2;
39151 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
39152 }
39153 {
39154 PyThreadState* __tstate = wxPyBeginAllowThreads();
39155 result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2);
39156
39157 wxPyEndAllowThreads(__tstate);
39158 if (PyErr_Occurred()) SWIG_fail;
39159 }
39160 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0);
39161 return resultobj;
39162 fail:
39163 return NULL;
39164}
39165
39166
39167static PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
39168 PyObject *resultobj;
39169 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39170 wxPoint *arg2 = 0 ;
39171 wxGBSizerItem *result;
39172 wxPoint temp2 ;
39173 PyObject * obj0 = 0 ;
39174 PyObject * obj1 = 0 ;
39175 char *kwnames[] = {
39176 (char *) "self",(char *) "pt", NULL
39177 };
39178
39179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) goto fail;
39180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39182 {
39183 arg2 = &temp2;
39184 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39185 }
39186 {
39187 PyThreadState* __tstate = wxPyBeginAllowThreads();
39188 result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2);
39189
39190 wxPyEndAllowThreads(__tstate);
39191 if (PyErr_Occurred()) SWIG_fail;
39192 }
39193 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0);
39194 return resultobj;
39195 fail:
39196 return NULL;
39197}
39198
39199
248ed943 39200static PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
39201 PyObject *resultobj;
39202 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39203 wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ;
39204 wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ;
39205 bool result;
39206 PyObject * obj0 = 0 ;
39207 PyObject * obj1 = 0 ;
39208 PyObject * obj2 = 0 ;
248ed943
RD
39209 char *kwnames[] = {
39210 (char *) "self",(char *) "item",(char *) "excludeItem", NULL
39211 };
d55e5bfc 39212
248ed943 39213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GridBagSizer_CheckForIntersection",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
39214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39216 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem,
39217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39218 if (obj2) {
39219 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGBSizerItem,
39220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39221 }
39222 {
39223 PyThreadState* __tstate = wxPyBeginAllowThreads();
39224 result = (bool)(arg1)->CheckForIntersection(arg2,arg3);
39225
39226 wxPyEndAllowThreads(__tstate);
39227 if (PyErr_Occurred()) SWIG_fail;
39228 }
39229 {
39230 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39231 }
39232 return resultobj;
39233 fail:
39234 return NULL;
39235}
39236
39237
248ed943 39238static PyObject *_wrap_GridBagSizer_CheckForIntersectionPos(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
39239 PyObject *resultobj;
39240 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39241 wxGBPosition *arg2 = 0 ;
39242 wxGBSpan *arg3 = 0 ;
39243 wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ;
39244 bool result;
39245 wxGBPosition temp2 ;
39246 wxGBSpan temp3 ;
39247 PyObject * obj0 = 0 ;
39248 PyObject * obj1 = 0 ;
39249 PyObject * obj2 = 0 ;
39250 PyObject * obj3 = 0 ;
248ed943
RD
39251 char *kwnames[] = {
39252 (char *) "self",(char *) "pos",(char *) "span",(char *) "excludeItem", NULL
39253 };
d55e5bfc 39254
248ed943 39255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:GridBagSizer_CheckForIntersectionPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
39256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39258 {
39259 arg2 = &temp2;
39260 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
39261 }
39262 {
39263 arg3 = &temp3;
39264 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
39265 }
39266 if (obj3) {
39267 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGBSizerItem,
39268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39269 }
39270 {
39271 PyThreadState* __tstate = wxPyBeginAllowThreads();
39272 result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4);
39273
39274 wxPyEndAllowThreads(__tstate);
39275 if (PyErr_Occurred()) SWIG_fail;
39276 }
39277 {
39278 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39279 }
39280 return resultobj;
39281 fail:
39282 return NULL;
39283}
39284
39285
d55e5bfc
RD
39286static PyObject * GridBagSizer_swigregister(PyObject *self, PyObject *args) {
39287 PyObject *obj;
39288 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
39289 SWIG_TypeClientData(SWIGTYPE_p_wxGridBagSizer, obj);
39290 Py_INCREF(obj);
39291 return Py_BuildValue((char *)"");
39292}
39293static PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
39294 PyObject *resultobj;
39295 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39296 int arg2 ;
39297 wxWindow *arg3 = (wxWindow *) 0 ;
39298 int arg4 ;
39299 int arg5 = (int) 0 ;
39300 int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ;
39301 PyObject * obj0 = 0 ;
39302 PyObject * obj1 = 0 ;
39303 PyObject * obj2 = 0 ;
39304 PyObject * obj3 = 0 ;
39305 PyObject * obj4 = 0 ;
39306 PyObject * obj5 = 0 ;
39307 char *kwnames[] = {
39308 (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL
39309 };
39310
39311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:IndividualLayoutConstraint_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
39312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39314 arg2 = (wxRelationship) SWIG_AsInt(obj1);
39315 if (PyErr_Occurred()) SWIG_fail;
39316 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
39317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39318 arg4 = (wxEdge) SWIG_AsInt(obj3);
39319 if (PyErr_Occurred()) SWIG_fail;
39320 if (obj4) {
39321 arg5 = (int) SWIG_AsInt(obj4);
39322 if (PyErr_Occurred()) SWIG_fail;
39323 }
39324 if (obj5) {
39325 arg6 = (int) SWIG_AsInt(obj5);
39326 if (PyErr_Occurred()) SWIG_fail;
39327 }
39328 {
39329 PyThreadState* __tstate = wxPyBeginAllowThreads();
39330 (arg1)->Set((wxRelationship )arg2,arg3,(wxEdge )arg4,arg5,arg6);
39331
39332 wxPyEndAllowThreads(__tstate);
39333 if (PyErr_Occurred()) SWIG_fail;
39334 }
39335 Py_INCREF(Py_None); resultobj = Py_None;
39336 return resultobj;
39337 fail:
39338 return NULL;
39339}
39340
39341
39342static PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *self, PyObject *args, PyObject *kwargs) {
39343 PyObject *resultobj;
39344 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39345 wxWindow *arg2 = (wxWindow *) 0 ;
39346 int arg3 = (int) 0 ;
39347 PyObject * obj0 = 0 ;
39348 PyObject * obj1 = 0 ;
39349 PyObject * obj2 = 0 ;
39350 char *kwnames[] = {
39351 (char *) "self",(char *) "sibling",(char *) "marg", NULL
39352 };
39353
39354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&obj2)) goto fail;
39355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39357 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39359 if (obj2) {
39360 arg3 = (int) SWIG_AsInt(obj2);
39361 if (PyErr_Occurred()) SWIG_fail;
39362 }
39363 {
39364 PyThreadState* __tstate = wxPyBeginAllowThreads();
39365 (arg1)->LeftOf(arg2,arg3);
39366
39367 wxPyEndAllowThreads(__tstate);
39368 if (PyErr_Occurred()) SWIG_fail;
39369 }
39370 Py_INCREF(Py_None); resultobj = Py_None;
39371 return resultobj;
39372 fail:
39373 return NULL;
39374}
39375
39376
39377static PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *self, PyObject *args, PyObject *kwargs) {
39378 PyObject *resultobj;
39379 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39380 wxWindow *arg2 = (wxWindow *) 0 ;
39381 int arg3 = (int) 0 ;
39382 PyObject * obj0 = 0 ;
39383 PyObject * obj1 = 0 ;
39384 PyObject * obj2 = 0 ;
39385 char *kwnames[] = {
39386 (char *) "self",(char *) "sibling",(char *) "marg", NULL
39387 };
39388
39389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&obj2)) goto fail;
39390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39392 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39394 if (obj2) {
39395 arg3 = (int) SWIG_AsInt(obj2);
39396 if (PyErr_Occurred()) SWIG_fail;
39397 }
39398 {
39399 PyThreadState* __tstate = wxPyBeginAllowThreads();
39400 (arg1)->RightOf(arg2,arg3);
39401
39402 wxPyEndAllowThreads(__tstate);
39403 if (PyErr_Occurred()) SWIG_fail;
39404 }
39405 Py_INCREF(Py_None); resultobj = Py_None;
39406 return resultobj;
39407 fail:
39408 return NULL;
39409}
39410
39411
39412static PyObject *_wrap_IndividualLayoutConstraint_Above(PyObject *self, PyObject *args, PyObject *kwargs) {
39413 PyObject *resultobj;
39414 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39415 wxWindow *arg2 = (wxWindow *) 0 ;
39416 int arg3 = (int) 0 ;
39417 PyObject * obj0 = 0 ;
39418 PyObject * obj1 = 0 ;
39419 PyObject * obj2 = 0 ;
39420 char *kwnames[] = {
39421 (char *) "self",(char *) "sibling",(char *) "marg", NULL
39422 };
39423
39424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&obj2)) goto fail;
39425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39427 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39429 if (obj2) {
39430 arg3 = (int) SWIG_AsInt(obj2);
39431 if (PyErr_Occurred()) SWIG_fail;
39432 }
39433 {
39434 PyThreadState* __tstate = wxPyBeginAllowThreads();
39435 (arg1)->Above(arg2,arg3);
39436
39437 wxPyEndAllowThreads(__tstate);
39438 if (PyErr_Occurred()) SWIG_fail;
39439 }
39440 Py_INCREF(Py_None); resultobj = Py_None;
39441 return resultobj;
39442 fail:
39443 return NULL;
39444}
39445
39446
39447static PyObject *_wrap_IndividualLayoutConstraint_Below(PyObject *self, PyObject *args, PyObject *kwargs) {
39448 PyObject *resultobj;
39449 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39450 wxWindow *arg2 = (wxWindow *) 0 ;
39451 int arg3 = (int) 0 ;
39452 PyObject * obj0 = 0 ;
39453 PyObject * obj1 = 0 ;
39454 PyObject * obj2 = 0 ;
39455 char *kwnames[] = {
39456 (char *) "self",(char *) "sibling",(char *) "marg", NULL
39457 };
39458
39459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&obj2)) goto fail;
39460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39462 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39464 if (obj2) {
39465 arg3 = (int) SWIG_AsInt(obj2);
39466 if (PyErr_Occurred()) SWIG_fail;
39467 }
39468 {
39469 PyThreadState* __tstate = wxPyBeginAllowThreads();
39470 (arg1)->Below(arg2,arg3);
39471
39472 wxPyEndAllowThreads(__tstate);
39473 if (PyErr_Occurred()) SWIG_fail;
39474 }
39475 Py_INCREF(Py_None); resultobj = Py_None;
39476 return resultobj;
39477 fail:
39478 return NULL;
39479}
39480
39481
39482static PyObject *_wrap_IndividualLayoutConstraint_SameAs(PyObject *self, PyObject *args, PyObject *kwargs) {
39483 PyObject *resultobj;
39484 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39485 wxWindow *arg2 = (wxWindow *) 0 ;
39486 int arg3 ;
39487 int arg4 = (int) 0 ;
39488 PyObject * obj0 = 0 ;
39489 PyObject * obj1 = 0 ;
39490 PyObject * obj2 = 0 ;
39491 PyObject * obj3 = 0 ;
39492 char *kwnames[] = {
39493 (char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL
39494 };
39495
39496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
39497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39499 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39501 arg3 = (wxEdge) SWIG_AsInt(obj2);
39502 if (PyErr_Occurred()) SWIG_fail;
39503 if (obj3) {
39504 arg4 = (int) SWIG_AsInt(obj3);
39505 if (PyErr_Occurred()) SWIG_fail;
39506 }
39507 {
39508 PyThreadState* __tstate = wxPyBeginAllowThreads();
39509 (arg1)->SameAs(arg2,(wxEdge )arg3,arg4);
39510
39511 wxPyEndAllowThreads(__tstate);
39512 if (PyErr_Occurred()) SWIG_fail;
39513 }
39514 Py_INCREF(Py_None); resultobj = Py_None;
39515 return resultobj;
39516 fail:
39517 return NULL;
39518}
39519
39520
39521static PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *self, PyObject *args, PyObject *kwargs) {
39522 PyObject *resultobj;
39523 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39524 wxWindow *arg2 = (wxWindow *) 0 ;
39525 int arg3 ;
39526 int arg4 ;
39527 PyObject * obj0 = 0 ;
39528 PyObject * obj1 = 0 ;
39529 PyObject * obj2 = 0 ;
39530 PyObject * obj3 = 0 ;
39531 char *kwnames[] = {
39532 (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL
39533 };
39534
39535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
39536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39538 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39540 arg3 = (wxEdge) SWIG_AsInt(obj2);
39541 if (PyErr_Occurred()) SWIG_fail;
39542 arg4 = (int) SWIG_AsInt(obj3);
39543 if (PyErr_Occurred()) SWIG_fail;
39544 {
39545 PyThreadState* __tstate = wxPyBeginAllowThreads();
39546 (arg1)->PercentOf(arg2,(wxEdge )arg3,arg4);
39547
39548 wxPyEndAllowThreads(__tstate);
39549 if (PyErr_Occurred()) SWIG_fail;
39550 }
39551 Py_INCREF(Py_None); resultobj = Py_None;
39552 return resultobj;
39553 fail:
39554 return NULL;
39555}
39556
39557
39558static PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *self, PyObject *args, PyObject *kwargs) {
39559 PyObject *resultobj;
39560 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39561 int arg2 ;
39562 PyObject * obj0 = 0 ;
39563 PyObject * obj1 = 0 ;
39564 char *kwnames[] = {
39565 (char *) "self",(char *) "val", NULL
39566 };
39567
39568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&obj1)) goto fail;
39569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39571 arg2 = (int) SWIG_AsInt(obj1);
39572 if (PyErr_Occurred()) SWIG_fail;
39573 {
39574 PyThreadState* __tstate = wxPyBeginAllowThreads();
39575 (arg1)->Absolute(arg2);
39576
39577 wxPyEndAllowThreads(__tstate);
39578 if (PyErr_Occurred()) SWIG_fail;
39579 }
39580 Py_INCREF(Py_None); resultobj = Py_None;
39581 return resultobj;
39582 fail:
39583 return NULL;
39584}
39585
39586
39587static PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *self, PyObject *args, PyObject *kwargs) {
39588 PyObject *resultobj;
39589 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39590 PyObject * obj0 = 0 ;
39591 char *kwnames[] = {
39592 (char *) "self", NULL
39593 };
39594
39595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_Unconstrained",kwnames,&obj0)) goto fail;
39596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39598 {
39599 PyThreadState* __tstate = wxPyBeginAllowThreads();
39600 (arg1)->Unconstrained();
39601
39602 wxPyEndAllowThreads(__tstate);
39603 if (PyErr_Occurred()) SWIG_fail;
39604 }
39605 Py_INCREF(Py_None); resultobj = Py_None;
39606 return resultobj;
39607 fail:
39608 return NULL;
39609}
39610
39611
39612static PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *self, PyObject *args, PyObject *kwargs) {
39613 PyObject *resultobj;
39614 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39615 PyObject * obj0 = 0 ;
39616 char *kwnames[] = {
39617 (char *) "self", NULL
39618 };
39619
39620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_AsIs",kwnames,&obj0)) goto fail;
39621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39623 {
39624 PyThreadState* __tstate = wxPyBeginAllowThreads();
39625 (arg1)->AsIs();
39626
39627 wxPyEndAllowThreads(__tstate);
39628 if (PyErr_Occurred()) SWIG_fail;
39629 }
39630 Py_INCREF(Py_None); resultobj = Py_None;
39631 return resultobj;
39632 fail:
39633 return NULL;
39634}
39635
39636
39637static PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
39638 PyObject *resultobj;
39639 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39640 wxWindow *result;
39641 PyObject * obj0 = 0 ;
39642 char *kwnames[] = {
39643 (char *) "self", NULL
39644 };
39645
39646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherWindow",kwnames,&obj0)) goto fail;
39647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39649 {
39650 PyThreadState* __tstate = wxPyBeginAllowThreads();
39651 result = (wxWindow *)(arg1)->GetOtherWindow();
39652
39653 wxPyEndAllowThreads(__tstate);
39654 if (PyErr_Occurred()) SWIG_fail;
39655 }
39656 {
39657 resultobj = wxPyMake_wxObject(result);
39658 }
39659 return resultobj;
39660 fail:
39661 return NULL;
39662}
39663
39664
39665static PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
39666 PyObject *resultobj;
39667 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39668 int result;
39669 PyObject * obj0 = 0 ;
39670 char *kwnames[] = {
39671 (char *) "self", NULL
39672 };
39673
39674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMyEdge",kwnames,&obj0)) goto fail;
39675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39677 {
39678 PyThreadState* __tstate = wxPyBeginAllowThreads();
39679 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge();
39680
39681 wxPyEndAllowThreads(__tstate);
39682 if (PyErr_Occurred()) SWIG_fail;
39683 }
39684 resultobj = SWIG_FromInt((int)result);
39685 return resultobj;
39686 fail:
39687 return NULL;
39688}
39689
39690
39691static PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
39692 PyObject *resultobj;
39693 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39694 int arg2 ;
39695 PyObject * obj0 = 0 ;
39696 PyObject * obj1 = 0 ;
39697 char *kwnames[] = {
39698 (char *) "self",(char *) "which", NULL
39699 };
39700
39701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&obj1)) goto fail;
39702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39704 arg2 = (wxEdge) SWIG_AsInt(obj1);
39705 if (PyErr_Occurred()) SWIG_fail;
39706 {
39707 PyThreadState* __tstate = wxPyBeginAllowThreads();
39708 (arg1)->SetEdge((wxEdge )arg2);
39709
39710 wxPyEndAllowThreads(__tstate);
39711 if (PyErr_Occurred()) SWIG_fail;
39712 }
39713 Py_INCREF(Py_None); resultobj = Py_None;
39714 return resultobj;
39715 fail:
39716 return NULL;
39717}
39718
39719
39720static PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
39721 PyObject *resultobj;
39722 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39723 int arg2 ;
39724 PyObject * obj0 = 0 ;
39725 PyObject * obj1 = 0 ;
39726 char *kwnames[] = {
39727 (char *) "self",(char *) "v", NULL
39728 };
39729
39730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&obj1)) goto fail;
39731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39733 arg2 = (int) SWIG_AsInt(obj1);
39734 if (PyErr_Occurred()) SWIG_fail;
39735 {
39736 PyThreadState* __tstate = wxPyBeginAllowThreads();
39737 (arg1)->SetValue(arg2);
39738
39739 wxPyEndAllowThreads(__tstate);
39740 if (PyErr_Occurred()) SWIG_fail;
39741 }
39742 Py_INCREF(Py_None); resultobj = Py_None;
39743 return resultobj;
39744 fail:
39745 return NULL;
39746}
39747
39748
39749static PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *self, PyObject *args, PyObject *kwargs) {
39750 PyObject *resultobj;
39751 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39752 int result;
39753 PyObject * obj0 = 0 ;
39754 char *kwnames[] = {
39755 (char *) "self", NULL
39756 };
39757
39758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMargin",kwnames,&obj0)) goto fail;
39759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39761 {
39762 PyThreadState* __tstate = wxPyBeginAllowThreads();
39763 result = (int)(arg1)->GetMargin();
39764
39765 wxPyEndAllowThreads(__tstate);
39766 if (PyErr_Occurred()) SWIG_fail;
39767 }
39768 resultobj = SWIG_FromInt((int)result);
39769 return resultobj;
39770 fail:
39771 return NULL;
39772}
39773
39774
39775static PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *self, PyObject *args, PyObject *kwargs) {
39776 PyObject *resultobj;
39777 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39778 int arg2 ;
39779 PyObject * obj0 = 0 ;
39780 PyObject * obj1 = 0 ;
39781 char *kwnames[] = {
39782 (char *) "self",(char *) "m", NULL
39783 };
39784
39785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&obj1)) goto fail;
39786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39788 arg2 = (int) SWIG_AsInt(obj1);
39789 if (PyErr_Occurred()) SWIG_fail;
39790 {
39791 PyThreadState* __tstate = wxPyBeginAllowThreads();
39792 (arg1)->SetMargin(arg2);
39793
39794 wxPyEndAllowThreads(__tstate);
39795 if (PyErr_Occurred()) SWIG_fail;
39796 }
39797 Py_INCREF(Py_None); resultobj = Py_None;
39798 return resultobj;
39799 fail:
39800 return NULL;
39801}
39802
39803
39804static PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
39805 PyObject *resultobj;
39806 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39807 int result;
39808 PyObject * obj0 = 0 ;
39809 char *kwnames[] = {
39810 (char *) "self", NULL
39811 };
39812
39813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetValue",kwnames,&obj0)) goto fail;
39814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39816 {
39817 PyThreadState* __tstate = wxPyBeginAllowThreads();
39818 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue();
39819
39820 wxPyEndAllowThreads(__tstate);
39821 if (PyErr_Occurred()) SWIG_fail;
39822 }
39823 resultobj = SWIG_FromInt((int)result);
39824 return resultobj;
39825 fail:
39826 return NULL;
39827}
39828
39829
39830static PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *self, PyObject *args, PyObject *kwargs) {
39831 PyObject *resultobj;
39832 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39833 int result;
39834 PyObject * obj0 = 0 ;
39835 char *kwnames[] = {
39836 (char *) "self", NULL
39837 };
39838
39839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetPercent",kwnames,&obj0)) goto fail;
39840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39842 {
39843 PyThreadState* __tstate = wxPyBeginAllowThreads();
39844 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent();
39845
39846 wxPyEndAllowThreads(__tstate);
39847 if (PyErr_Occurred()) SWIG_fail;
39848 }
39849 resultobj = SWIG_FromInt((int)result);
39850 return resultobj;
39851 fail:
39852 return NULL;
39853}
39854
39855
39856static PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
39857 PyObject *resultobj;
39858 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39859 int result;
39860 PyObject * obj0 = 0 ;
39861 char *kwnames[] = {
39862 (char *) "self", NULL
39863 };
39864
39865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherEdge",kwnames,&obj0)) goto fail;
39866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39868 {
39869 PyThreadState* __tstate = wxPyBeginAllowThreads();
39870 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge();
39871
39872 wxPyEndAllowThreads(__tstate);
39873 if (PyErr_Occurred()) SWIG_fail;
39874 }
39875 resultobj = SWIG_FromInt((int)result);
39876 return resultobj;
39877 fail:
39878 return NULL;
39879}
39880
39881
39882static PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *self, PyObject *args, PyObject *kwargs) {
39883 PyObject *resultobj;
39884 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39885 bool result;
39886 PyObject * obj0 = 0 ;
39887 char *kwnames[] = {
39888 (char *) "self", NULL
39889 };
39890
39891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetDone",kwnames,&obj0)) goto fail;
39892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39894 {
39895 PyThreadState* __tstate = wxPyBeginAllowThreads();
39896 result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone();
39897
39898 wxPyEndAllowThreads(__tstate);
39899 if (PyErr_Occurred()) SWIG_fail;
39900 }
39901 {
39902 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39903 }
39904 return resultobj;
39905 fail:
39906 return NULL;
39907}
39908
39909
39910static PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *self, PyObject *args, PyObject *kwargs) {
39911 PyObject *resultobj;
39912 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39913 bool arg2 ;
39914 PyObject * obj0 = 0 ;
39915 PyObject * obj1 = 0 ;
39916 char *kwnames[] = {
39917 (char *) "self",(char *) "d", NULL
39918 };
39919
39920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) goto fail;
39921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39923 arg2 = (bool) SWIG_AsBool(obj1);
39924 if (PyErr_Occurred()) SWIG_fail;
39925 {
39926 PyThreadState* __tstate = wxPyBeginAllowThreads();
39927 (arg1)->SetDone(arg2);
39928
39929 wxPyEndAllowThreads(__tstate);
39930 if (PyErr_Occurred()) SWIG_fail;
39931 }
39932 Py_INCREF(Py_None); resultobj = Py_None;
39933 return resultobj;
39934 fail:
39935 return NULL;
39936}
39937
39938
39939static PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) {
39940 PyObject *resultobj;
39941 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39942 int result;
39943 PyObject * obj0 = 0 ;
39944 char *kwnames[] = {
39945 (char *) "self", NULL
39946 };
39947
39948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetRelationship",kwnames,&obj0)) goto fail;
39949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39951 {
39952 PyThreadState* __tstate = wxPyBeginAllowThreads();
39953 result = (int)(arg1)->GetRelationship();
39954
39955 wxPyEndAllowThreads(__tstate);
39956 if (PyErr_Occurred()) SWIG_fail;
39957 }
39958 resultobj = SWIG_FromInt((int)result);
39959 return resultobj;
39960 fail:
39961 return NULL;
39962}
39963
39964
39965static PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) {
39966 PyObject *resultobj;
39967 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39968 int arg2 ;
39969 PyObject * obj0 = 0 ;
39970 PyObject * obj1 = 0 ;
39971 char *kwnames[] = {
39972 (char *) "self",(char *) "r", NULL
39973 };
39974
39975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&obj1)) goto fail;
39976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39978 arg2 = (wxRelationship) SWIG_AsInt(obj1);
39979 if (PyErr_Occurred()) SWIG_fail;
39980 {
39981 PyThreadState* __tstate = wxPyBeginAllowThreads();
39982 (arg1)->SetRelationship((wxRelationship )arg2);
39983
39984 wxPyEndAllowThreads(__tstate);
39985 if (PyErr_Occurred()) SWIG_fail;
39986 }
39987 Py_INCREF(Py_None); resultobj = Py_None;
39988 return resultobj;
39989 fail:
39990 return NULL;
39991}
39992
39993
39994static PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *self, PyObject *args, PyObject *kwargs) {
39995 PyObject *resultobj;
39996 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39997 wxWindow *arg2 = (wxWindow *) 0 ;
39998 bool result;
39999 PyObject * obj0 = 0 ;
40000 PyObject * obj1 = 0 ;
40001 char *kwnames[] = {
40002 (char *) "self",(char *) "otherW", NULL
40003 };
40004
40005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) goto fail;
40006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40008 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
40009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40010 {
40011 PyThreadState* __tstate = wxPyBeginAllowThreads();
40012 result = (bool)(arg1)->ResetIfWin(arg2);
40013
40014 wxPyEndAllowThreads(__tstate);
40015 if (PyErr_Occurred()) SWIG_fail;
40016 }
40017 {
40018 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40019 }
40020 return resultobj;
40021 fail:
40022 return NULL;
40023}
40024
40025
40026static PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *self, PyObject *args, PyObject *kwargs) {
40027 PyObject *resultobj;
40028 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40029 wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ;
40030 wxWindow *arg3 = (wxWindow *) 0 ;
40031 bool result;
40032 PyObject * obj0 = 0 ;
40033 PyObject * obj1 = 0 ;
40034 PyObject * obj2 = 0 ;
40035 char *kwnames[] = {
40036 (char *) "self",(char *) "constraints",(char *) "win", NULL
40037 };
40038
40039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail;
40040 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40041 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40042 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints,
40043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40044 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
40045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40046 {
40047 PyThreadState* __tstate = wxPyBeginAllowThreads();
40048 result = (bool)(arg1)->SatisfyConstraint(arg2,arg3);
40049
40050 wxPyEndAllowThreads(__tstate);
40051 if (PyErr_Occurred()) SWIG_fail;
40052 }
40053 {
40054 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40055 }
40056 return resultobj;
40057 fail:
40058 return NULL;
40059}
40060
40061
40062static PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
40063 PyObject *resultobj;
40064 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40065 int arg2 ;
40066 wxWindow *arg3 = (wxWindow *) 0 ;
40067 wxWindow *arg4 = (wxWindow *) 0 ;
40068 int result;
40069 PyObject * obj0 = 0 ;
40070 PyObject * obj1 = 0 ;
40071 PyObject * obj2 = 0 ;
40072 PyObject * obj3 = 0 ;
40073 char *kwnames[] = {
40074 (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL
40075 };
40076
40077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
40078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40080 arg2 = (wxEdge) SWIG_AsInt(obj1);
40081 if (PyErr_Occurred()) SWIG_fail;
40082 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
40083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40084 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
40085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40086 {
40087 PyThreadState* __tstate = wxPyBeginAllowThreads();
40088 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge((wxEdge )arg2,arg3,arg4);
40089
40090 wxPyEndAllowThreads(__tstate);
40091 if (PyErr_Occurred()) SWIG_fail;
40092 }
40093 resultobj = SWIG_FromInt((int)result);
40094 return resultobj;
40095 fail:
40096 return NULL;
40097}
40098
40099
40100static PyObject * IndividualLayoutConstraint_swigregister(PyObject *self, PyObject *args) {
40101 PyObject *obj;
40102 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
40103 SWIG_TypeClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, obj);
40104 Py_INCREF(obj);
40105 return Py_BuildValue((char *)"");
40106}
40107static PyObject *_wrap_LayoutConstraints_left_get(PyObject *self, PyObject *args, PyObject *kwargs) {
40108 PyObject *resultobj;
40109 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40110 wxIndividualLayoutConstraint *result;
40111 PyObject * obj0 = 0 ;
40112 char *kwnames[] = {
40113 (char *) "self", NULL
40114 };
40115
40116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_left_get",kwnames,&obj0)) goto fail;
40117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40119 result = (wxIndividualLayoutConstraint *)& ((arg1)->left);
40120
40121 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
40122 return resultobj;
40123 fail:
40124 return NULL;
40125}
40126
40127
40128static PyObject *_wrap_LayoutConstraints_top_get(PyObject *self, PyObject *args, PyObject *kwargs) {
40129 PyObject *resultobj;
40130 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40131 wxIndividualLayoutConstraint *result;
40132 PyObject * obj0 = 0 ;
40133 char *kwnames[] = {
40134 (char *) "self", NULL
40135 };
40136
40137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_top_get",kwnames,&obj0)) goto fail;
40138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40140 result = (wxIndividualLayoutConstraint *)& ((arg1)->top);
40141
40142 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
40143 return resultobj;
40144 fail:
40145 return NULL;
40146}
40147
40148
40149static PyObject *_wrap_LayoutConstraints_right_get(PyObject *self, PyObject *args, PyObject *kwargs) {
40150 PyObject *resultobj;
40151 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40152 wxIndividualLayoutConstraint *result;
40153 PyObject * obj0 = 0 ;
40154 char *kwnames[] = {
40155 (char *) "self", NULL
40156 };
40157
40158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_right_get",kwnames,&obj0)) goto fail;
40159 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40160 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40161 result = (wxIndividualLayoutConstraint *)& ((arg1)->right);
40162
40163 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
40164 return resultobj;
40165 fail:
40166 return NULL;
40167}
40168
40169
40170static PyObject *_wrap_LayoutConstraints_bottom_get(PyObject *self, PyObject *args, PyObject *kwargs) {
40171 PyObject *resultobj;
40172 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40173 wxIndividualLayoutConstraint *result;
40174 PyObject * obj0 = 0 ;
40175 char *kwnames[] = {
40176 (char *) "self", NULL
40177 };
40178
40179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_bottom_get",kwnames,&obj0)) goto fail;
40180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40182 result = (wxIndividualLayoutConstraint *)& ((arg1)->bottom);
40183
40184 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
40185 return resultobj;
40186 fail:
40187 return NULL;
40188}
40189
40190
40191static PyObject *_wrap_LayoutConstraints_width_get(PyObject *self, PyObject *args, PyObject *kwargs) {
40192 PyObject *resultobj;
40193 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40194 wxIndividualLayoutConstraint *result;
40195 PyObject * obj0 = 0 ;
40196 char *kwnames[] = {
40197 (char *) "self", NULL
40198 };
40199
40200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_width_get",kwnames,&obj0)) goto fail;
40201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40203 result = (wxIndividualLayoutConstraint *)& ((arg1)->width);
40204
40205 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
40206 return resultobj;
40207 fail:
40208 return NULL;
40209}
40210
40211
40212static PyObject *_wrap_LayoutConstraints_height_get(PyObject *self, PyObject *args, PyObject *kwargs) {
40213 PyObject *resultobj;
40214 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40215 wxIndividualLayoutConstraint *result;
40216 PyObject * obj0 = 0 ;
40217 char *kwnames[] = {
40218 (char *) "self", NULL
40219 };
40220
40221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_height_get",kwnames,&obj0)) goto fail;
40222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40224 result = (wxIndividualLayoutConstraint *)& ((arg1)->height);
40225
40226 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
40227 return resultobj;
40228 fail:
40229 return NULL;
40230}
40231
40232
40233static PyObject *_wrap_LayoutConstraints_centreX_get(PyObject *self, PyObject *args, PyObject *kwargs) {
40234 PyObject *resultobj;
40235 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40236 wxIndividualLayoutConstraint *result;
40237 PyObject * obj0 = 0 ;
40238 char *kwnames[] = {
40239 (char *) "self", NULL
40240 };
40241
40242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreX_get",kwnames,&obj0)) goto fail;
40243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40245 result = (wxIndividualLayoutConstraint *)& ((arg1)->centreX);
40246
40247 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
40248 return resultobj;
40249 fail:
40250 return NULL;
40251}
40252
40253
40254static PyObject *_wrap_LayoutConstraints_centreY_get(PyObject *self, PyObject *args, PyObject *kwargs) {
40255 PyObject *resultobj;
40256 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40257 wxIndividualLayoutConstraint *result;
40258 PyObject * obj0 = 0 ;
40259 char *kwnames[] = {
40260 (char *) "self", NULL
40261 };
40262
40263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreY_get",kwnames,&obj0)) goto fail;
40264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40266 result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY);
40267
40268 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
40269 return resultobj;
40270 fail:
40271 return NULL;
40272}
40273
40274
40275static PyObject *_wrap_new_LayoutConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
40276 PyObject *resultobj;
40277 wxLayoutConstraints *result;
40278 char *kwnames[] = {
40279 NULL
40280 };
40281
40282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutConstraints",kwnames)) goto fail;
40283 {
40284 PyThreadState* __tstate = wxPyBeginAllowThreads();
40285 result = (wxLayoutConstraints *)new wxLayoutConstraints();
40286
40287 wxPyEndAllowThreads(__tstate);
40288 if (PyErr_Occurred()) SWIG_fail;
40289 }
40290 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 1);
40291 return resultobj;
40292 fail:
40293 return NULL;
40294}
40295
40296
40297static PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
40298 PyObject *resultobj;
40299 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40300 wxWindow *arg2 = (wxWindow *) 0 ;
40301 int *arg3 = (int *) 0 ;
40302 bool result;
40303 int temp3 ;
40304 PyObject * obj0 = 0 ;
40305 PyObject * obj1 = 0 ;
40306 char *kwnames[] = {
40307 (char *) "self",(char *) "win", NULL
40308 };
40309
40310 arg3 = &temp3;
40311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) goto fail;
40312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40314 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
40315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40316 {
40317 PyThreadState* __tstate = wxPyBeginAllowThreads();
40318 result = (bool)(arg1)->SatisfyConstraints(arg2,arg3);
40319
40320 wxPyEndAllowThreads(__tstate);
40321 if (PyErr_Occurred()) SWIG_fail;
40322 }
40323 {
40324 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40325 }
40326 {
40327 PyObject *o = PyInt_FromLong((long) (*arg3));
40328 resultobj = t_output_helper(resultobj,o);
40329 }
40330 return resultobj;
40331 fail:
40332 return NULL;
40333}
40334
40335
40336static PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *self, PyObject *args, PyObject *kwargs) {
40337 PyObject *resultobj;
40338 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40339 bool result;
40340 PyObject * obj0 = 0 ;
40341 char *kwnames[] = {
40342 (char *) "self", NULL
40343 };
40344
40345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_AreSatisfied",kwnames,&obj0)) goto fail;
40346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40348 {
40349 PyThreadState* __tstate = wxPyBeginAllowThreads();
40350 result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied();
40351
40352 wxPyEndAllowThreads(__tstate);
40353 if (PyErr_Occurred()) SWIG_fail;
40354 }
40355 {
40356 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40357 }
40358 return resultobj;
40359 fail:
40360 return NULL;
40361}
40362
40363
40364static PyObject * LayoutConstraints_swigregister(PyObject *self, PyObject *args) {
40365 PyObject *obj;
40366 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
40367 SWIG_TypeClientData(SWIGTYPE_p_wxLayoutConstraints, obj);
40368 Py_INCREF(obj);
40369 return Py_BuildValue((char *)"");
40370}
40371static PyMethodDef SwigMethods[] = {
40372 { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS },
40373 { (char *)"_wxPyFixStockObjects", __wxPyFixStockObjects, METH_VARARGS },
40374 { (char *)"Object_GetClassName", (PyCFunction) _wrap_Object_GetClassName, METH_VARARGS | METH_KEYWORDS },
40375 { (char *)"Object_Destroy", (PyCFunction) _wrap_Object_Destroy, METH_VARARGS | METH_KEYWORDS },
40376 { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS },
40377 { (char *)"Size_width_set", (PyCFunction) _wrap_Size_width_set, METH_VARARGS | METH_KEYWORDS },
40378 { (char *)"Size_width_get", (PyCFunction) _wrap_Size_width_get, METH_VARARGS | METH_KEYWORDS },
40379 { (char *)"Size_height_set", (PyCFunction) _wrap_Size_height_set, METH_VARARGS | METH_KEYWORDS },
40380 { (char *)"Size_height_get", (PyCFunction) _wrap_Size_height_get, METH_VARARGS | METH_KEYWORDS },
40381 { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS },
40382 { (char *)"delete_Size", (PyCFunction) _wrap_delete_Size, METH_VARARGS | METH_KEYWORDS },
40383 { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS },
40384 { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS },
40385 { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS },
40386 { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS },
40387 { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS },
40388 { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS },
40389 { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS },
40390 { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS },
40391 { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS },
40392 { (char *)"Size_GetWidth", (PyCFunction) _wrap_Size_GetWidth, METH_VARARGS | METH_KEYWORDS },
40393 { (char *)"Size_GetHeight", (PyCFunction) _wrap_Size_GetHeight, METH_VARARGS | METH_KEYWORDS },
40394 { (char *)"Size_IsFullySpecified", (PyCFunction) _wrap_Size_IsFullySpecified, METH_VARARGS | METH_KEYWORDS },
40395 { (char *)"Size_SetDefaults", (PyCFunction) _wrap_Size_SetDefaults, METH_VARARGS | METH_KEYWORDS },
40396 { (char *)"Size_Get", (PyCFunction) _wrap_Size_Get, METH_VARARGS | METH_KEYWORDS },
40397 { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS },
40398 { (char *)"RealPoint_x_set", (PyCFunction) _wrap_RealPoint_x_set, METH_VARARGS | METH_KEYWORDS },
40399 { (char *)"RealPoint_x_get", (PyCFunction) _wrap_RealPoint_x_get, METH_VARARGS | METH_KEYWORDS },
40400 { (char *)"RealPoint_y_set", (PyCFunction) _wrap_RealPoint_y_set, METH_VARARGS | METH_KEYWORDS },
40401 { (char *)"RealPoint_y_get", (PyCFunction) _wrap_RealPoint_y_get, METH_VARARGS | METH_KEYWORDS },
40402 { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS },
40403 { (char *)"delete_RealPoint", (PyCFunction) _wrap_delete_RealPoint, METH_VARARGS | METH_KEYWORDS },
40404 { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS },
40405 { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS },
40406 { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS },
40407 { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS },
40408 { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS },
40409 { (char *)"RealPoint_Get", (PyCFunction) _wrap_RealPoint_Get, METH_VARARGS | METH_KEYWORDS },
40410 { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS },
40411 { (char *)"Point_x_set", (PyCFunction) _wrap_Point_x_set, METH_VARARGS | METH_KEYWORDS },
40412 { (char *)"Point_x_get", (PyCFunction) _wrap_Point_x_get, METH_VARARGS | METH_KEYWORDS },
40413 { (char *)"Point_y_set", (PyCFunction) _wrap_Point_y_set, METH_VARARGS | METH_KEYWORDS },
40414 { (char *)"Point_y_get", (PyCFunction) _wrap_Point_y_get, METH_VARARGS | METH_KEYWORDS },
40415 { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS },
40416 { (char *)"delete_Point", (PyCFunction) _wrap_delete_Point, METH_VARARGS | METH_KEYWORDS },
40417 { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS },
40418 { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS },
40419 { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS },
40420 { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS },
40421 { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS },
40422 { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS },
40423 { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS },
40424 { (char *)"Point_Get", (PyCFunction) _wrap_Point_Get, METH_VARARGS | METH_KEYWORDS },
40425 { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS },
40426 { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS },
40427 { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS },
40428 { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS },
40429 { (char *)"delete_Rect", (PyCFunction) _wrap_delete_Rect, METH_VARARGS | METH_KEYWORDS },
40430 { (char *)"Rect_GetX", (PyCFunction) _wrap_Rect_GetX, METH_VARARGS | METH_KEYWORDS },
40431 { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS },
40432 { (char *)"Rect_GetY", (PyCFunction) _wrap_Rect_GetY, METH_VARARGS | METH_KEYWORDS },
40433 { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS },
40434 { (char *)"Rect_GetWidth", (PyCFunction) _wrap_Rect_GetWidth, METH_VARARGS | METH_KEYWORDS },
40435 { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS },
40436 { (char *)"Rect_GetHeight", (PyCFunction) _wrap_Rect_GetHeight, METH_VARARGS | METH_KEYWORDS },
40437 { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS },
40438 { (char *)"Rect_GetPosition", (PyCFunction) _wrap_Rect_GetPosition, METH_VARARGS | METH_KEYWORDS },
40439 { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS },
40440 { (char *)"Rect_GetSize", (PyCFunction) _wrap_Rect_GetSize, METH_VARARGS | METH_KEYWORDS },
40441 { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS },
40442 { (char *)"Rect_GetTopLeft", (PyCFunction) _wrap_Rect_GetTopLeft, METH_VARARGS | METH_KEYWORDS },
40443 { (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS },
40444 { (char *)"Rect_GetBottomRight", (PyCFunction) _wrap_Rect_GetBottomRight, METH_VARARGS | METH_KEYWORDS },
40445 { (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS },
40446 { (char *)"Rect_GetLeft", (PyCFunction) _wrap_Rect_GetLeft, METH_VARARGS | METH_KEYWORDS },
40447 { (char *)"Rect_GetTop", (PyCFunction) _wrap_Rect_GetTop, METH_VARARGS | METH_KEYWORDS },
40448 { (char *)"Rect_GetBottom", (PyCFunction) _wrap_Rect_GetBottom, METH_VARARGS | METH_KEYWORDS },
40449 { (char *)"Rect_GetRight", (PyCFunction) _wrap_Rect_GetRight, METH_VARARGS | METH_KEYWORDS },
40450 { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS },
40451 { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS },
40452 { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS },
40453 { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS },
40454 { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS },
40455 { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS },
40456 { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS },
40457 { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS },
40458 { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS },
40459 { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS },
40460 { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS },
40461 { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS },
40462 { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS },
40463 { (char *)"Rect_InsideXY", (PyCFunction) _wrap_Rect_InsideXY, METH_VARARGS | METH_KEYWORDS },
40464 { (char *)"Rect_Inside", (PyCFunction) _wrap_Rect_Inside, METH_VARARGS | METH_KEYWORDS },
40465 { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS },
40466 { (char *)"Rect_x_set", (PyCFunction) _wrap_Rect_x_set, METH_VARARGS | METH_KEYWORDS },
40467 { (char *)"Rect_x_get", (PyCFunction) _wrap_Rect_x_get, METH_VARARGS | METH_KEYWORDS },
40468 { (char *)"Rect_y_set", (PyCFunction) _wrap_Rect_y_set, METH_VARARGS | METH_KEYWORDS },
40469 { (char *)"Rect_y_get", (PyCFunction) _wrap_Rect_y_get, METH_VARARGS | METH_KEYWORDS },
40470 { (char *)"Rect_width_set", (PyCFunction) _wrap_Rect_width_set, METH_VARARGS | METH_KEYWORDS },
40471 { (char *)"Rect_width_get", (PyCFunction) _wrap_Rect_width_get, METH_VARARGS | METH_KEYWORDS },
40472 { (char *)"Rect_height_set", (PyCFunction) _wrap_Rect_height_set, METH_VARARGS | METH_KEYWORDS },
40473 { (char *)"Rect_height_get", (PyCFunction) _wrap_Rect_height_get, METH_VARARGS | METH_KEYWORDS },
40474 { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS },
40475 { (char *)"Rect_Get", (PyCFunction) _wrap_Rect_Get, METH_VARARGS | METH_KEYWORDS },
40476 { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS },
40477 { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS },
40478 { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS },
40479 { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS },
40480 { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS },
40481 { (char *)"Point2D_GetFloor", (PyCFunction) _wrap_Point2D_GetFloor, METH_VARARGS | METH_KEYWORDS },
40482 { (char *)"Point2D_GetRounded", (PyCFunction) _wrap_Point2D_GetRounded, METH_VARARGS | METH_KEYWORDS },
40483 { (char *)"Point2D_GetVectorLength", (PyCFunction) _wrap_Point2D_GetVectorLength, METH_VARARGS | METH_KEYWORDS },
40484 { (char *)"Point2D_GetVectorAngle", (PyCFunction) _wrap_Point2D_GetVectorAngle, METH_VARARGS | METH_KEYWORDS },
40485 { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS },
40486 { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS },
40487 { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS },
40488 { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS },
40489 { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS },
40490 { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS },
40491 { (char *)"Point2D___neg__", (PyCFunction) _wrap_Point2D___neg__, METH_VARARGS | METH_KEYWORDS },
40492 { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS },
40493 { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS },
40494 { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS },
40495 { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS },
40496 { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS },
40497 { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS },
40498 { (char *)"Point2D_x_set", (PyCFunction) _wrap_Point2D_x_set, METH_VARARGS | METH_KEYWORDS },
40499 { (char *)"Point2D_x_get", (PyCFunction) _wrap_Point2D_x_get, METH_VARARGS | METH_KEYWORDS },
40500 { (char *)"Point2D_y_set", (PyCFunction) _wrap_Point2D_y_set, METH_VARARGS | METH_KEYWORDS },
40501 { (char *)"Point2D_y_get", (PyCFunction) _wrap_Point2D_y_get, METH_VARARGS | METH_KEYWORDS },
40502 { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS },
40503 { (char *)"Point2D_Get", (PyCFunction) _wrap_Point2D_Get, METH_VARARGS | METH_KEYWORDS },
40504 { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS },
40505 { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS },
40506 { (char *)"InputStream_close", (PyCFunction) _wrap_InputStream_close, METH_VARARGS | METH_KEYWORDS },
40507 { (char *)"InputStream_flush", (PyCFunction) _wrap_InputStream_flush, METH_VARARGS | METH_KEYWORDS },
40508 { (char *)"InputStream_eof", (PyCFunction) _wrap_InputStream_eof, METH_VARARGS | METH_KEYWORDS },
40509 { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS },
40510 { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS },
40511 { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS },
40512 { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS },
40513 { (char *)"InputStream_tell", (PyCFunction) _wrap_InputStream_tell, METH_VARARGS | METH_KEYWORDS },
40514 { (char *)"InputStream_Peek", (PyCFunction) _wrap_InputStream_Peek, METH_VARARGS | METH_KEYWORDS },
40515 { (char *)"InputStream_GetC", (PyCFunction) _wrap_InputStream_GetC, METH_VARARGS | METH_KEYWORDS },
40516 { (char *)"InputStream_LastRead", (PyCFunction) _wrap_InputStream_LastRead, METH_VARARGS | METH_KEYWORDS },
40517 { (char *)"InputStream_CanRead", (PyCFunction) _wrap_InputStream_CanRead, METH_VARARGS | METH_KEYWORDS },
40518 { (char *)"InputStream_Eof", (PyCFunction) _wrap_InputStream_Eof, METH_VARARGS | METH_KEYWORDS },
40519 { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS },
40520 { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS },
40521 { (char *)"InputStream_TellI", (PyCFunction) _wrap_InputStream_TellI, METH_VARARGS | METH_KEYWORDS },
40522 { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS },
40523 { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS },
40524 { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS },
40525 { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS },
40526 { (char *)"delete_FSFile", (PyCFunction) _wrap_delete_FSFile, METH_VARARGS | METH_KEYWORDS },
40527 { (char *)"FSFile_GetStream", (PyCFunction) _wrap_FSFile_GetStream, METH_VARARGS | METH_KEYWORDS },
40528 { (char *)"FSFile_GetMimeType", (PyCFunction) _wrap_FSFile_GetMimeType, METH_VARARGS | METH_KEYWORDS },
40529 { (char *)"FSFile_GetLocation", (PyCFunction) _wrap_FSFile_GetLocation, METH_VARARGS | METH_KEYWORDS },
40530 { (char *)"FSFile_GetAnchor", (PyCFunction) _wrap_FSFile_GetAnchor, METH_VARARGS | METH_KEYWORDS },
40531 { (char *)"FSFile_GetModificationTime", (PyCFunction) _wrap_FSFile_GetModificationTime, METH_VARARGS | METH_KEYWORDS },
40532 { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS },
40533 { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS },
40534 { (char *)"new_FileSystemHandler", (PyCFunction) _wrap_new_FileSystemHandler, METH_VARARGS | METH_KEYWORDS },
40535 { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
40536 { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS },
40537 { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS },
40538 { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS },
40539 { (char *)"FileSystemHandler_FindNext", (PyCFunction) _wrap_FileSystemHandler_FindNext, METH_VARARGS | METH_KEYWORDS },
40540 { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS },
40541 { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS },
40542 { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS },
40543 { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS },
40544 { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS },
40545 { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS },
40546 { (char *)"new_FileSystem", (PyCFunction) _wrap_new_FileSystem, METH_VARARGS | METH_KEYWORDS },
40547 { (char *)"delete_FileSystem", (PyCFunction) _wrap_delete_FileSystem, METH_VARARGS | METH_KEYWORDS },
40548 { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS },
40549 { (char *)"FileSystem_GetPath", (PyCFunction) _wrap_FileSystem_GetPath, METH_VARARGS | METH_KEYWORDS },
40550 { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS },
40551 { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS },
40552 { (char *)"FileSystem_FindNext", (PyCFunction) _wrap_FileSystem_FindNext, METH_VARARGS | METH_KEYWORDS },
40553 { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS },
40554 { (char *)"FileSystem_CleanUpHandlers", (PyCFunction) _wrap_FileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS },
40555 { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS },
40556 { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS },
40557 { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS },
40558 { (char *)"new_InternetFSHandler", (PyCFunction) _wrap_new_InternetFSHandler, METH_VARARGS | METH_KEYWORDS },
40559 { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS },
40560 { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS },
40561 { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS },
40562 { (char *)"new_ZipFSHandler", (PyCFunction) _wrap_new_ZipFSHandler, METH_VARARGS | METH_KEYWORDS },
40563 { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS },
40564 { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS },
40565 { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS },
40566 { (char *)"ZipFSHandler_FindNext", (PyCFunction) _wrap_ZipFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS },
40567 { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS },
40568 { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS },
40569 { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS },
40570 { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS },
40571 { (char *)"new_MemoryFSHandler", (PyCFunction) _wrap_new_MemoryFSHandler, METH_VARARGS | METH_KEYWORDS },
40572 { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS },
40573 { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS },
40574 { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS },
40575 { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS },
40576 { (char *)"MemoryFSHandler_FindNext", (PyCFunction) _wrap_MemoryFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS },
40577 { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS },
40578 { (char *)"ImageHandler_GetName", (PyCFunction) _wrap_ImageHandler_GetName, METH_VARARGS | METH_KEYWORDS },
40579 { (char *)"ImageHandler_GetExtension", (PyCFunction) _wrap_ImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS },
40580 { (char *)"ImageHandler_GetType", (PyCFunction) _wrap_ImageHandler_GetType, METH_VARARGS | METH_KEYWORDS },
40581 { (char *)"ImageHandler_GetMimeType", (PyCFunction) _wrap_ImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS },
40582 { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS },
40583 { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS },
40584 { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS },
40585 { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS },
40586 { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS },
40587 { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS },
40588 { (char *)"new_ImageHistogram", (PyCFunction) _wrap_new_ImageHistogram, METH_VARARGS | METH_KEYWORDS },
40589 { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS },
40590 { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS },
40591 { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS },
40592 { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS },
40593 { (char *)"delete_Image", (PyCFunction) _wrap_delete_Image, METH_VARARGS | METH_KEYWORDS },
40594 { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS },
40595 { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS },
40596 { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS },
c24da6d6 40597 { (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
40598 { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS },
40599 { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS },
40600 { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS },
40601 { (char *)"Image_Destroy", (PyCFunction) _wrap_Image_Destroy, METH_VARARGS | METH_KEYWORDS },
40602 { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS },
40603 { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS },
40604 { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS },
40605 { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS },
40606 { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS },
40607 { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS },
40608 { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS },
40609 { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS },
40610 { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS },
40611 { (char *)"Image_HasAlpha", (PyCFunction) _wrap_Image_HasAlpha, METH_VARARGS | METH_KEYWORDS },
40612 { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS },
40613 { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS },
40614 { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS },
40615 { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS },
40616 { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS },
40617 { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS },
40618 { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS },
40619 { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS },
40620 { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS },
40621 { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS },
40622 { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS },
40623 { (char *)"Image_Ok", (PyCFunction) _wrap_Image_Ok, METH_VARARGS | METH_KEYWORDS },
40624 { (char *)"Image_GetWidth", (PyCFunction) _wrap_Image_GetWidth, METH_VARARGS | METH_KEYWORDS },
40625 { (char *)"Image_GetHeight", (PyCFunction) _wrap_Image_GetHeight, METH_VARARGS | METH_KEYWORDS },
40626 { (char *)"Image_GetSize", (PyCFunction) _wrap_Image_GetSize, METH_VARARGS | METH_KEYWORDS },
40627 { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS },
40628 { (char *)"Image_Copy", (PyCFunction) _wrap_Image_Copy, METH_VARARGS | METH_KEYWORDS },
40629 { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS },
40630 { (char *)"Image_GetData", (PyCFunction) _wrap_Image_GetData, METH_VARARGS | METH_KEYWORDS },
40631 { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS },
40632 { (char *)"Image_GetDataBuffer", (PyCFunction) _wrap_Image_GetDataBuffer, METH_VARARGS | METH_KEYWORDS },
40633 { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS },
40634 { (char *)"Image_GetAlphaData", (PyCFunction) _wrap_Image_GetAlphaData, METH_VARARGS | METH_KEYWORDS },
40635 { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS },
40636 { (char *)"Image_GetAlphaBuffer", (PyCFunction) _wrap_Image_GetAlphaBuffer, METH_VARARGS | METH_KEYWORDS },
40637 { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS },
40638 { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
40639 { (char *)"Image_GetMaskRed", (PyCFunction) _wrap_Image_GetMaskRed, METH_VARARGS | METH_KEYWORDS },
40640 { (char *)"Image_GetMaskGreen", (PyCFunction) _wrap_Image_GetMaskGreen, METH_VARARGS | METH_KEYWORDS },
40641 { (char *)"Image_GetMaskBlue", (PyCFunction) _wrap_Image_GetMaskBlue, METH_VARARGS | METH_KEYWORDS },
40642 { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS },
40643 { (char *)"Image_HasMask", (PyCFunction) _wrap_Image_HasMask, METH_VARARGS | METH_KEYWORDS },
40644 { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS },
40645 { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS },
40646 { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS },
40647 { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS },
40648 { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS },
40649 { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS },
40650 { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS },
40651 { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS },
40652 { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS },
40653 { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS },
40654 { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS },
40655 { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS },
40656 { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS },
40657 { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS },
40658 { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS },
40659 { (char *)"Image_GetImageExtWildcard", (PyCFunction) _wrap_Image_GetImageExtWildcard, METH_VARARGS | METH_KEYWORDS },
40660 { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
40661 { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS },
40662 { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS },
d55e5bfc
RD
40663 { (char *)"new_BMPHandler", (PyCFunction) _wrap_new_BMPHandler, METH_VARARGS | METH_KEYWORDS },
40664 { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS },
40665 { (char *)"new_ICOHandler", (PyCFunction) _wrap_new_ICOHandler, METH_VARARGS | METH_KEYWORDS },
40666 { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS },
40667 { (char *)"new_CURHandler", (PyCFunction) _wrap_new_CURHandler, METH_VARARGS | METH_KEYWORDS },
40668 { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS },
40669 { (char *)"new_ANIHandler", (PyCFunction) _wrap_new_ANIHandler, METH_VARARGS | METH_KEYWORDS },
40670 { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS },
40671 { (char *)"new_PNGHandler", (PyCFunction) _wrap_new_PNGHandler, METH_VARARGS | METH_KEYWORDS },
40672 { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS },
40673 { (char *)"new_GIFHandler", (PyCFunction) _wrap_new_GIFHandler, METH_VARARGS | METH_KEYWORDS },
40674 { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS },
40675 { (char *)"new_PCXHandler", (PyCFunction) _wrap_new_PCXHandler, METH_VARARGS | METH_KEYWORDS },
40676 { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS },
40677 { (char *)"new_JPEGHandler", (PyCFunction) _wrap_new_JPEGHandler, METH_VARARGS | METH_KEYWORDS },
40678 { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS },
40679 { (char *)"new_PNMHandler", (PyCFunction) _wrap_new_PNMHandler, METH_VARARGS | METH_KEYWORDS },
40680 { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS },
40681 { (char *)"new_XPMHandler", (PyCFunction) _wrap_new_XPMHandler, METH_VARARGS | METH_KEYWORDS },
40682 { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS },
40683 { (char *)"new_TIFFHandler", (PyCFunction) _wrap_new_TIFFHandler, METH_VARARGS | METH_KEYWORDS },
40684 { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS },
40685 { (char *)"new_EvtHandler", (PyCFunction) _wrap_new_EvtHandler, METH_VARARGS | METH_KEYWORDS },
40686 { (char *)"EvtHandler_GetNextHandler", (PyCFunction) _wrap_EvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS },
40687 { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction) _wrap_EvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS },
40688 { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS },
40689 { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS },
40690 { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS },
40691 { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS },
40692 { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS },
40693 { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS },
40694 { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction) _wrap_EvtHandler_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS },
40695 { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS },
40696 { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS },
40697 { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS },
40698 { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS },
40699 { (char *)"NewEventType", (PyCFunction) _wrap_NewEventType, METH_VARARGS | METH_KEYWORDS },
40700 { (char *)"delete_Event", (PyCFunction) _wrap_delete_Event, METH_VARARGS | METH_KEYWORDS },
40701 { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS },
40702 { (char *)"Event_GetEventType", (PyCFunction) _wrap_Event_GetEventType, METH_VARARGS | METH_KEYWORDS },
40703 { (char *)"Event_GetEventObject", (PyCFunction) _wrap_Event_GetEventObject, METH_VARARGS | METH_KEYWORDS },
40704 { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS },
40705 { (char *)"Event_GetTimestamp", (PyCFunction) _wrap_Event_GetTimestamp, METH_VARARGS | METH_KEYWORDS },
40706 { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS },
40707 { (char *)"Event_GetId", (PyCFunction) _wrap_Event_GetId, METH_VARARGS | METH_KEYWORDS },
40708 { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS },
40709 { (char *)"Event_IsCommandEvent", (PyCFunction) _wrap_Event_IsCommandEvent, METH_VARARGS | METH_KEYWORDS },
40710 { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS },
40711 { (char *)"Event_GetSkipped", (PyCFunction) _wrap_Event_GetSkipped, METH_VARARGS | METH_KEYWORDS },
40712 { (char *)"Event_ShouldPropagate", (PyCFunction) _wrap_Event_ShouldPropagate, METH_VARARGS | METH_KEYWORDS },
40713 { (char *)"Event_StopPropagation", (PyCFunction) _wrap_Event_StopPropagation, METH_VARARGS | METH_KEYWORDS },
40714 { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS },
40715 { (char *)"Event_Clone", (PyCFunction) _wrap_Event_Clone, METH_VARARGS | METH_KEYWORDS },
40716 { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS },
40717 { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS },
40718 { (char *)"delete_PropagationDisabler", (PyCFunction) _wrap_delete_PropagationDisabler, METH_VARARGS | METH_KEYWORDS },
40719 { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS },
40720 { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS },
40721 { (char *)"delete_PropagateOnce", (PyCFunction) _wrap_delete_PropagateOnce, METH_VARARGS | METH_KEYWORDS },
40722 { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS },
40723 { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS },
40724 { (char *)"CommandEvent_GetSelection", (PyCFunction) _wrap_CommandEvent_GetSelection, METH_VARARGS | METH_KEYWORDS },
40725 { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS },
40726 { (char *)"CommandEvent_GetString", (PyCFunction) _wrap_CommandEvent_GetString, METH_VARARGS | METH_KEYWORDS },
40727 { (char *)"CommandEvent_IsChecked", (PyCFunction) _wrap_CommandEvent_IsChecked, METH_VARARGS | METH_KEYWORDS },
40728 { (char *)"CommandEvent_IsSelection", (PyCFunction) _wrap_CommandEvent_IsSelection, METH_VARARGS | METH_KEYWORDS },
40729 { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS },
40730 { (char *)"CommandEvent_GetExtraLong", (PyCFunction) _wrap_CommandEvent_GetExtraLong, METH_VARARGS | METH_KEYWORDS },
40731 { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS },
40732 { (char *)"CommandEvent_GetInt", (PyCFunction) _wrap_CommandEvent_GetInt, METH_VARARGS | METH_KEYWORDS },
40733 { (char *)"CommandEvent_Clone", (PyCFunction) _wrap_CommandEvent_Clone, METH_VARARGS | METH_KEYWORDS },
40734 { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS },
40735 { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS },
40736 { (char *)"NotifyEvent_Veto", (PyCFunction) _wrap_NotifyEvent_Veto, METH_VARARGS | METH_KEYWORDS },
40737 { (char *)"NotifyEvent_Allow", (PyCFunction) _wrap_NotifyEvent_Allow, METH_VARARGS | METH_KEYWORDS },
40738 { (char *)"NotifyEvent_IsAllowed", (PyCFunction) _wrap_NotifyEvent_IsAllowed, METH_VARARGS | METH_KEYWORDS },
40739 { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS },
40740 { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS },
40741 { (char *)"ScrollEvent_GetOrientation", (PyCFunction) _wrap_ScrollEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS },
40742 { (char *)"ScrollEvent_GetPosition", (PyCFunction) _wrap_ScrollEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
40743 { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS },
40744 { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
40745 { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS },
40746 { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS },
40747 { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction) _wrap_ScrollWinEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS },
40748 { (char *)"ScrollWinEvent_GetPosition", (PyCFunction) _wrap_ScrollWinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
40749 { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS },
40750 { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
40751 { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS },
40752 { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS },
40753 { (char *)"MouseEvent_IsButton", (PyCFunction) _wrap_MouseEvent_IsButton, METH_VARARGS | METH_KEYWORDS },
40754 { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS },
40755 { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS },
40756 { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS },
40757 { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS },
40758 { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS },
40759 { (char *)"MouseEvent_GetButton", (PyCFunction) _wrap_MouseEvent_GetButton, METH_VARARGS | METH_KEYWORDS },
40760 { (char *)"MouseEvent_ControlDown", (PyCFunction) _wrap_MouseEvent_ControlDown, METH_VARARGS | METH_KEYWORDS },
40761 { (char *)"MouseEvent_MetaDown", (PyCFunction) _wrap_MouseEvent_MetaDown, METH_VARARGS | METH_KEYWORDS },
40762 { (char *)"MouseEvent_AltDown", (PyCFunction) _wrap_MouseEvent_AltDown, METH_VARARGS | METH_KEYWORDS },
40763 { (char *)"MouseEvent_ShiftDown", (PyCFunction) _wrap_MouseEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS },
40764 { (char *)"MouseEvent_LeftDown", (PyCFunction) _wrap_MouseEvent_LeftDown, METH_VARARGS | METH_KEYWORDS },
40765 { (char *)"MouseEvent_MiddleDown", (PyCFunction) _wrap_MouseEvent_MiddleDown, METH_VARARGS | METH_KEYWORDS },
40766 { (char *)"MouseEvent_RightDown", (PyCFunction) _wrap_MouseEvent_RightDown, METH_VARARGS | METH_KEYWORDS },
40767 { (char *)"MouseEvent_LeftUp", (PyCFunction) _wrap_MouseEvent_LeftUp, METH_VARARGS | METH_KEYWORDS },
40768 { (char *)"MouseEvent_MiddleUp", (PyCFunction) _wrap_MouseEvent_MiddleUp, METH_VARARGS | METH_KEYWORDS },
40769 { (char *)"MouseEvent_RightUp", (PyCFunction) _wrap_MouseEvent_RightUp, METH_VARARGS | METH_KEYWORDS },
40770 { (char *)"MouseEvent_LeftDClick", (PyCFunction) _wrap_MouseEvent_LeftDClick, METH_VARARGS | METH_KEYWORDS },
40771 { (char *)"MouseEvent_MiddleDClick", (PyCFunction) _wrap_MouseEvent_MiddleDClick, METH_VARARGS | METH_KEYWORDS },
40772 { (char *)"MouseEvent_RightDClick", (PyCFunction) _wrap_MouseEvent_RightDClick, METH_VARARGS | METH_KEYWORDS },
40773 { (char *)"MouseEvent_LeftIsDown", (PyCFunction) _wrap_MouseEvent_LeftIsDown, METH_VARARGS | METH_KEYWORDS },
40774 { (char *)"MouseEvent_MiddleIsDown", (PyCFunction) _wrap_MouseEvent_MiddleIsDown, METH_VARARGS | METH_KEYWORDS },
40775 { (char *)"MouseEvent_RightIsDown", (PyCFunction) _wrap_MouseEvent_RightIsDown, METH_VARARGS | METH_KEYWORDS },
40776 { (char *)"MouseEvent_Dragging", (PyCFunction) _wrap_MouseEvent_Dragging, METH_VARARGS | METH_KEYWORDS },
40777 { (char *)"MouseEvent_Moving", (PyCFunction) _wrap_MouseEvent_Moving, METH_VARARGS | METH_KEYWORDS },
40778 { (char *)"MouseEvent_Entering", (PyCFunction) _wrap_MouseEvent_Entering, METH_VARARGS | METH_KEYWORDS },
40779 { (char *)"MouseEvent_Leaving", (PyCFunction) _wrap_MouseEvent_Leaving, METH_VARARGS | METH_KEYWORDS },
40780 { (char *)"MouseEvent_GetPosition", (PyCFunction) _wrap_MouseEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
40781 { (char *)"MouseEvent_GetPositionTuple", (PyCFunction) _wrap_MouseEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
40782 { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS },
40783 { (char *)"MouseEvent_GetX", (PyCFunction) _wrap_MouseEvent_GetX, METH_VARARGS | METH_KEYWORDS },
40784 { (char *)"MouseEvent_GetY", (PyCFunction) _wrap_MouseEvent_GetY, METH_VARARGS | METH_KEYWORDS },
40785 { (char *)"MouseEvent_GetWheelRotation", (PyCFunction) _wrap_MouseEvent_GetWheelRotation, METH_VARARGS | METH_KEYWORDS },
40786 { (char *)"MouseEvent_GetWheelDelta", (PyCFunction) _wrap_MouseEvent_GetWheelDelta, METH_VARARGS | METH_KEYWORDS },
40787 { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction) _wrap_MouseEvent_GetLinesPerAction, METH_VARARGS | METH_KEYWORDS },
40788 { (char *)"MouseEvent_IsPageScroll", (PyCFunction) _wrap_MouseEvent_IsPageScroll, METH_VARARGS | METH_KEYWORDS },
40789 { (char *)"MouseEvent_m_x_set", (PyCFunction) _wrap_MouseEvent_m_x_set, METH_VARARGS | METH_KEYWORDS },
40790 { (char *)"MouseEvent_m_x_get", (PyCFunction) _wrap_MouseEvent_m_x_get, METH_VARARGS | METH_KEYWORDS },
40791 { (char *)"MouseEvent_m_y_set", (PyCFunction) _wrap_MouseEvent_m_y_set, METH_VARARGS | METH_KEYWORDS },
40792 { (char *)"MouseEvent_m_y_get", (PyCFunction) _wrap_MouseEvent_m_y_get, METH_VARARGS | METH_KEYWORDS },
40793 { (char *)"MouseEvent_m_leftDown_set", (PyCFunction) _wrap_MouseEvent_m_leftDown_set, METH_VARARGS | METH_KEYWORDS },
40794 { (char *)"MouseEvent_m_leftDown_get", (PyCFunction) _wrap_MouseEvent_m_leftDown_get, METH_VARARGS | METH_KEYWORDS },
40795 { (char *)"MouseEvent_m_middleDown_set", (PyCFunction) _wrap_MouseEvent_m_middleDown_set, METH_VARARGS | METH_KEYWORDS },
40796 { (char *)"MouseEvent_m_middleDown_get", (PyCFunction) _wrap_MouseEvent_m_middleDown_get, METH_VARARGS | METH_KEYWORDS },
40797 { (char *)"MouseEvent_m_rightDown_set", (PyCFunction) _wrap_MouseEvent_m_rightDown_set, METH_VARARGS | METH_KEYWORDS },
40798 { (char *)"MouseEvent_m_rightDown_get", (PyCFunction) _wrap_MouseEvent_m_rightDown_get, METH_VARARGS | METH_KEYWORDS },
40799 { (char *)"MouseEvent_m_controlDown_set", (PyCFunction) _wrap_MouseEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS },
40800 { (char *)"MouseEvent_m_controlDown_get", (PyCFunction) _wrap_MouseEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS },
40801 { (char *)"MouseEvent_m_shiftDown_set", (PyCFunction) _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS },
40802 { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction) _wrap_MouseEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS },
40803 { (char *)"MouseEvent_m_altDown_set", (PyCFunction) _wrap_MouseEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS },
40804 { (char *)"MouseEvent_m_altDown_get", (PyCFunction) _wrap_MouseEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS },
40805 { (char *)"MouseEvent_m_metaDown_set", (PyCFunction) _wrap_MouseEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS },
40806 { (char *)"MouseEvent_m_metaDown_get", (PyCFunction) _wrap_MouseEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS },
40807 { (char *)"MouseEvent_m_wheelRotation_set", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS | METH_KEYWORDS },
40808 { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_get, METH_VARARGS | METH_KEYWORDS },
40809 { (char *)"MouseEvent_m_wheelDelta_set", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS | METH_KEYWORDS },
40810 { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_get, METH_VARARGS | METH_KEYWORDS },
40811 { (char *)"MouseEvent_m_linesPerAction_set", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS | METH_KEYWORDS },
40812 { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_get, METH_VARARGS | METH_KEYWORDS },
40813 { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS },
40814 { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS },
40815 { (char *)"SetCursorEvent_GetX", (PyCFunction) _wrap_SetCursorEvent_GetX, METH_VARARGS | METH_KEYWORDS },
40816 { (char *)"SetCursorEvent_GetY", (PyCFunction) _wrap_SetCursorEvent_GetY, METH_VARARGS | METH_KEYWORDS },
40817 { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS },
40818 { (char *)"SetCursorEvent_GetCursor", (PyCFunction) _wrap_SetCursorEvent_GetCursor, METH_VARARGS | METH_KEYWORDS },
40819 { (char *)"SetCursorEvent_HasCursor", (PyCFunction) _wrap_SetCursorEvent_HasCursor, METH_VARARGS | METH_KEYWORDS },
40820 { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS },
40821 { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS },
40822 { (char *)"KeyEvent_ControlDown", (PyCFunction) _wrap_KeyEvent_ControlDown, METH_VARARGS | METH_KEYWORDS },
40823 { (char *)"KeyEvent_MetaDown", (PyCFunction) _wrap_KeyEvent_MetaDown, METH_VARARGS | METH_KEYWORDS },
40824 { (char *)"KeyEvent_AltDown", (PyCFunction) _wrap_KeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS },
40825 { (char *)"KeyEvent_ShiftDown", (PyCFunction) _wrap_KeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS },
40826 { (char *)"KeyEvent_HasModifiers", (PyCFunction) _wrap_KeyEvent_HasModifiers, METH_VARARGS | METH_KEYWORDS },
40827 { (char *)"KeyEvent_GetKeyCode", (PyCFunction) _wrap_KeyEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS },
40828 { (char *)"KeyEvent_GetUniChar", (PyCFunction) _wrap_KeyEvent_GetUniChar, METH_VARARGS | METH_KEYWORDS },
40829 { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction) _wrap_KeyEvent_GetRawKeyCode, METH_VARARGS | METH_KEYWORDS },
40830 { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction) _wrap_KeyEvent_GetRawKeyFlags, METH_VARARGS | METH_KEYWORDS },
40831 { (char *)"KeyEvent_GetPosition", (PyCFunction) _wrap_KeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
40832 { (char *)"KeyEvent_GetPositionTuple", (PyCFunction) _wrap_KeyEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
40833 { (char *)"KeyEvent_GetX", (PyCFunction) _wrap_KeyEvent_GetX, METH_VARARGS | METH_KEYWORDS },
40834 { (char *)"KeyEvent_GetY", (PyCFunction) _wrap_KeyEvent_GetY, METH_VARARGS | METH_KEYWORDS },
40835 { (char *)"KeyEvent_m_x_set", (PyCFunction) _wrap_KeyEvent_m_x_set, METH_VARARGS | METH_KEYWORDS },
40836 { (char *)"KeyEvent_m_x_get", (PyCFunction) _wrap_KeyEvent_m_x_get, METH_VARARGS | METH_KEYWORDS },
40837 { (char *)"KeyEvent_m_y_set", (PyCFunction) _wrap_KeyEvent_m_y_set, METH_VARARGS | METH_KEYWORDS },
40838 { (char *)"KeyEvent_m_y_get", (PyCFunction) _wrap_KeyEvent_m_y_get, METH_VARARGS | METH_KEYWORDS },
40839 { (char *)"KeyEvent_m_keyCode_set", (PyCFunction) _wrap_KeyEvent_m_keyCode_set, METH_VARARGS | METH_KEYWORDS },
40840 { (char *)"KeyEvent_m_keyCode_get", (PyCFunction) _wrap_KeyEvent_m_keyCode_get, METH_VARARGS | METH_KEYWORDS },
40841 { (char *)"KeyEvent_m_controlDown_set", (PyCFunction) _wrap_KeyEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS },
40842 { (char *)"KeyEvent_m_controlDown_get", (PyCFunction) _wrap_KeyEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS },
40843 { (char *)"KeyEvent_m_shiftDown_set", (PyCFunction) _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS },
40844 { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction) _wrap_KeyEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS },
40845 { (char *)"KeyEvent_m_altDown_set", (PyCFunction) _wrap_KeyEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS },
40846 { (char *)"KeyEvent_m_altDown_get", (PyCFunction) _wrap_KeyEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS },
40847 { (char *)"KeyEvent_m_metaDown_set", (PyCFunction) _wrap_KeyEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS },
40848 { (char *)"KeyEvent_m_metaDown_get", (PyCFunction) _wrap_KeyEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS },
40849 { (char *)"KeyEvent_m_scanCode_set", (PyCFunction) _wrap_KeyEvent_m_scanCode_set, METH_VARARGS | METH_KEYWORDS },
40850 { (char *)"KeyEvent_m_scanCode_get", (PyCFunction) _wrap_KeyEvent_m_scanCode_get, METH_VARARGS | METH_KEYWORDS },
40851 { (char *)"KeyEvent_m_rawCode_set", (PyCFunction) _wrap_KeyEvent_m_rawCode_set, METH_VARARGS | METH_KEYWORDS },
40852 { (char *)"KeyEvent_m_rawCode_get", (PyCFunction) _wrap_KeyEvent_m_rawCode_get, METH_VARARGS | METH_KEYWORDS },
40853 { (char *)"KeyEvent_m_rawFlags_set", (PyCFunction) _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS | METH_KEYWORDS },
40854 { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction) _wrap_KeyEvent_m_rawFlags_get, METH_VARARGS | METH_KEYWORDS },
40855 { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS },
40856 { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS },
40857 { (char *)"SizeEvent_GetSize", (PyCFunction) _wrap_SizeEvent_GetSize, METH_VARARGS | METH_KEYWORDS },
40858 { (char *)"SizeEvent_GetRect", (PyCFunction) _wrap_SizeEvent_GetRect, METH_VARARGS | METH_KEYWORDS },
40859 { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS },
40860 { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS },
40861 { (char *)"SizeEvent_m_size_set", (PyCFunction) _wrap_SizeEvent_m_size_set, METH_VARARGS | METH_KEYWORDS },
40862 { (char *)"SizeEvent_m_size_get", (PyCFunction) _wrap_SizeEvent_m_size_get, METH_VARARGS | METH_KEYWORDS },
40863 { (char *)"SizeEvent_m_rect_set", (PyCFunction) _wrap_SizeEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS },
40864 { (char *)"SizeEvent_m_rect_get", (PyCFunction) _wrap_SizeEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS },
40865 { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS },
40866 { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS },
40867 { (char *)"MoveEvent_GetPosition", (PyCFunction) _wrap_MoveEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
40868 { (char *)"MoveEvent_GetRect", (PyCFunction) _wrap_MoveEvent_GetRect, METH_VARARGS | METH_KEYWORDS },
40869 { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS },
40870 { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
40871 { (char *)"MoveEvent_m_pos_set", (PyCFunction) _wrap_MoveEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS },
40872 { (char *)"MoveEvent_m_pos_get", (PyCFunction) _wrap_MoveEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS },
40873 { (char *)"MoveEvent_m_rect_set", (PyCFunction) _wrap_MoveEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS },
40874 { (char *)"MoveEvent_m_rect_get", (PyCFunction) _wrap_MoveEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS },
40875 { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS },
40876 { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS },
40877 { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS },
40878 { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS },
40879 { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS },
40880 { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS },
40881 { (char *)"EraseEvent_GetDC", (PyCFunction) _wrap_EraseEvent_GetDC, METH_VARARGS | METH_KEYWORDS },
40882 { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS },
40883 { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS },
40884 { (char *)"FocusEvent_GetWindow", (PyCFunction) _wrap_FocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS },
40885 { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS },
40886 { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS },
40887 { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS },
40888 { (char *)"ChildFocusEvent_GetWindow", (PyCFunction) _wrap_ChildFocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS },
40889 { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS },
40890 { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS },
40891 { (char *)"ActivateEvent_GetActive", (PyCFunction) _wrap_ActivateEvent_GetActive, METH_VARARGS | METH_KEYWORDS },
40892 { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS },
40893 { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS },
40894 { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS },
40895 { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS },
40896 { (char *)"MenuEvent_GetMenuId", (PyCFunction) _wrap_MenuEvent_GetMenuId, METH_VARARGS | METH_KEYWORDS },
40897 { (char *)"MenuEvent_IsPopup", (PyCFunction) _wrap_MenuEvent_IsPopup, METH_VARARGS | METH_KEYWORDS },
40898 { (char *)"MenuEvent_GetMenu", (PyCFunction) _wrap_MenuEvent_GetMenu, METH_VARARGS | METH_KEYWORDS },
40899 { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS },
40900 { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS },
40901 { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS },
40902 { (char *)"CloseEvent_GetLoggingOff", (PyCFunction) _wrap_CloseEvent_GetLoggingOff, METH_VARARGS | METH_KEYWORDS },
40903 { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS },
40904 { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS },
40905 { (char *)"CloseEvent_CanVeto", (PyCFunction) _wrap_CloseEvent_CanVeto, METH_VARARGS | METH_KEYWORDS },
40906 { (char *)"CloseEvent_GetVeto", (PyCFunction) _wrap_CloseEvent_GetVeto, METH_VARARGS | METH_KEYWORDS },
40907 { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS },
40908 { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS },
40909 { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS },
40910 { (char *)"ShowEvent_GetShow", (PyCFunction) _wrap_ShowEvent_GetShow, METH_VARARGS | METH_KEYWORDS },
40911 { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS },
40912 { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS },
40913 { (char *)"IconizeEvent_Iconized", (PyCFunction) _wrap_IconizeEvent_Iconized, METH_VARARGS | METH_KEYWORDS },
40914 { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS },
40915 { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS },
40916 { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS },
40917 { (char *)"DropFilesEvent_GetPosition", (PyCFunction) _wrap_DropFilesEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
40918 { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction) _wrap_DropFilesEvent_GetNumberOfFiles, METH_VARARGS | METH_KEYWORDS },
40919 { (char *)"DropFilesEvent_GetFiles", (PyCFunction) _wrap_DropFilesEvent_GetFiles, METH_VARARGS | METH_KEYWORDS },
40920 { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS },
40921 { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS },
40922 { (char *)"UpdateUIEvent_GetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetChecked, METH_VARARGS | METH_KEYWORDS },
40923 { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetEnabled, METH_VARARGS | METH_KEYWORDS },
40924 { (char *)"UpdateUIEvent_GetText", (PyCFunction) _wrap_UpdateUIEvent_GetText, METH_VARARGS | METH_KEYWORDS },
40925 { (char *)"UpdateUIEvent_GetSetText", (PyCFunction) _wrap_UpdateUIEvent_GetSetText, METH_VARARGS | METH_KEYWORDS },
40926 { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetSetChecked, METH_VARARGS | METH_KEYWORDS },
40927 { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetSetEnabled, METH_VARARGS | METH_KEYWORDS },
40928 { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS },
40929 { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS },
40930 { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS },
40931 { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS },
40932 { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_GetUpdateInterval, METH_VARARGS | METH_KEYWORDS },
40933 { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS },
40934 { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction) _wrap_UpdateUIEvent_ResetUpdateTime, METH_VARARGS | METH_KEYWORDS },
40935 { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS },
40936 { (char *)"UpdateUIEvent_GetMode", (PyCFunction) _wrap_UpdateUIEvent_GetMode, METH_VARARGS | METH_KEYWORDS },
40937 { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS },
40938 { (char *)"new_SysColourChangedEvent", (PyCFunction) _wrap_new_SysColourChangedEvent, METH_VARARGS | METH_KEYWORDS },
40939 { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS },
40940 { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS },
40941 { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction) _wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_VARARGS | METH_KEYWORDS },
40942 { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS },
40943 { (char *)"new_DisplayChangedEvent", (PyCFunction) _wrap_new_DisplayChangedEvent, METH_VARARGS | METH_KEYWORDS },
40944 { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS },
40945 { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS },
40946 { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS },
40947 { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_GetChangedWindow, METH_VARARGS | METH_KEYWORDS },
40948 { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS },
40949 { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS },
40950 { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS },
40951 { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_VARARGS | METH_KEYWORDS },
40952 { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS },
40953 { (char *)"new_NavigationKeyEvent", (PyCFunction) _wrap_new_NavigationKeyEvent, METH_VARARGS | METH_KEYWORDS },
40954 { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction) _wrap_NavigationKeyEvent_GetDirection, METH_VARARGS | METH_KEYWORDS },
40955 { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS },
40956 { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_IsWindowChange, METH_VARARGS | METH_KEYWORDS },
40957 { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS },
908b74cd 40958 { (char *)"NavigationKeyEvent_SetFlags", (PyCFunction) _wrap_NavigationKeyEvent_SetFlags, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
40959 { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_GetCurrentFocus, METH_VARARGS | METH_KEYWORDS },
40960 { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS },
40961 { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS },
40962 { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS },
40963 { (char *)"WindowCreateEvent_GetWindow", (PyCFunction) _wrap_WindowCreateEvent_GetWindow, METH_VARARGS | METH_KEYWORDS },
40964 { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS },
40965 { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS },
40966 { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction) _wrap_WindowDestroyEvent_GetWindow, METH_VARARGS | METH_KEYWORDS },
40967 { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS },
40968 { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS },
40969 { (char *)"ContextMenuEvent_GetPosition", (PyCFunction) _wrap_ContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
40970 { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
40971 { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS },
40972 { (char *)"new_IdleEvent", (PyCFunction) _wrap_new_IdleEvent, METH_VARARGS | METH_KEYWORDS },
40973 { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS },
40974 { (char *)"IdleEvent_MoreRequested", (PyCFunction) _wrap_IdleEvent_MoreRequested, METH_VARARGS | METH_KEYWORDS },
40975 { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS },
40976 { (char *)"IdleEvent_GetMode", (PyCFunction) _wrap_IdleEvent_GetMode, METH_VARARGS | METH_KEYWORDS },
40977 { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS },
40978 { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS },
40979 { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS },
40980 { (char *)"delete_PyEvent", (PyCFunction) _wrap_delete_PyEvent, METH_VARARGS | METH_KEYWORDS },
40981 { (char *)"PyEvent_SetSelf", (PyCFunction) _wrap_PyEvent_SetSelf, METH_VARARGS | METH_KEYWORDS },
40982 { (char *)"PyEvent_GetSelf", (PyCFunction) _wrap_PyEvent_GetSelf, METH_VARARGS | METH_KEYWORDS },
40983 { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS },
40984 { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS },
40985 { (char *)"delete_PyCommandEvent", (PyCFunction) _wrap_delete_PyCommandEvent, METH_VARARGS | METH_KEYWORDS },
40986 { (char *)"PyCommandEvent_SetSelf", (PyCFunction) _wrap_PyCommandEvent_SetSelf, METH_VARARGS | METH_KEYWORDS },
40987 { (char *)"PyCommandEvent_GetSelf", (PyCFunction) _wrap_PyCommandEvent_GetSelf, METH_VARARGS | METH_KEYWORDS },
40988 { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS },
40989 { (char *)"new_PyApp", (PyCFunction) _wrap_new_PyApp, METH_VARARGS | METH_KEYWORDS },
40990 { (char *)"delete_PyApp", (PyCFunction) _wrap_delete_PyApp, METH_VARARGS | METH_KEYWORDS },
40991 { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
40992 { (char *)"PyApp_GetAppName", (PyCFunction) _wrap_PyApp_GetAppName, METH_VARARGS | METH_KEYWORDS },
40993 { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS },
40994 { (char *)"PyApp_GetClassName", (PyCFunction) _wrap_PyApp_GetClassName, METH_VARARGS | METH_KEYWORDS },
40995 { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS },
40996 { (char *)"PyApp_GetVendorName", (PyCFunction) _wrap_PyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS },
40997 { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS },
40998 { (char *)"PyApp_GetTraits", (PyCFunction) _wrap_PyApp_GetTraits, METH_VARARGS | METH_KEYWORDS },
40999 { (char *)"PyApp_ProcessPendingEvents", (PyCFunction) _wrap_PyApp_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS },
41000 { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS },
41001 { (char *)"PyApp_WakeUpIdle", (PyCFunction) _wrap_PyApp_WakeUpIdle, METH_VARARGS | METH_KEYWORDS },
41002 { (char *)"PyApp_MainLoop", (PyCFunction) _wrap_PyApp_MainLoop, METH_VARARGS | METH_KEYWORDS },
41003 { (char *)"PyApp_Exit", (PyCFunction) _wrap_PyApp_Exit, METH_VARARGS | METH_KEYWORDS },
41004 { (char *)"PyApp_ExitMainLoop", (PyCFunction) _wrap_PyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS },
41005 { (char *)"PyApp_Pending", (PyCFunction) _wrap_PyApp_Pending, METH_VARARGS | METH_KEYWORDS },
41006 { (char *)"PyApp_Dispatch", (PyCFunction) _wrap_PyApp_Dispatch, METH_VARARGS | METH_KEYWORDS },
41007 { (char *)"PyApp_ProcessIdle", (PyCFunction) _wrap_PyApp_ProcessIdle, METH_VARARGS | METH_KEYWORDS },
41008 { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS },
41009 { (char *)"PyApp_IsActive", (PyCFunction) _wrap_PyApp_IsActive, METH_VARARGS | METH_KEYWORDS },
41010 { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS },
41011 { (char *)"PyApp_GetTopWindow", (PyCFunction) _wrap_PyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS },
41012 { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS },
41013 { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS },
41014 { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS },
41015 { (char *)"PyApp_GetUseBestVisual", (PyCFunction) _wrap_PyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS },
41016 { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS },
41017 { (char *)"PyApp_GetPrintMode", (PyCFunction) _wrap_PyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS },
41018 { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS },
41019 { (char *)"PyApp_GetAssertMode", (PyCFunction) _wrap_PyApp_GetAssertMode, METH_VARARGS | METH_KEYWORDS },
41020 { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS },
41021 { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_GetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS },
41022 { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_GetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS },
41023 { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_GetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS },
41024 { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_GetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS },
41025 { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS },
41026 { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS },
41027 { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS },
41028 { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS },
41029 { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS },
41030 { (char *)"PyApp__BootstrapApp", (PyCFunction) _wrap_PyApp__BootstrapApp, METH_VARARGS | METH_KEYWORDS },
41031 { (char *)"PyApp_GetComCtl32Version", (PyCFunction) _wrap_PyApp_GetComCtl32Version, METH_VARARGS | METH_KEYWORDS },
41032 { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS },
41033 { (char *)"Exit", (PyCFunction) _wrap_Exit, METH_VARARGS | METH_KEYWORDS },
41034 { (char *)"Yield", (PyCFunction) _wrap_Yield, METH_VARARGS | METH_KEYWORDS },
41035 { (char *)"YieldIfNeeded", (PyCFunction) _wrap_YieldIfNeeded, METH_VARARGS | METH_KEYWORDS },
41036 { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS },
41037 { (char *)"WakeUpIdle", (PyCFunction) _wrap_WakeUpIdle, METH_VARARGS | METH_KEYWORDS },
41038 { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS },
41039 { (char *)"App_CleanUp", (PyCFunction) _wrap_App_CleanUp, METH_VARARGS | METH_KEYWORDS },
41040 { (char *)"GetApp", (PyCFunction) _wrap_GetApp, METH_VARARGS | METH_KEYWORDS },
41041 { (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS },
41042 { (char *)"delete_AcceleratorEntry", (PyCFunction) _wrap_delete_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS },
41043 { (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41044 { (char *)"AcceleratorEntry_GetFlags", (PyCFunction) _wrap_AcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS },
41045 { (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_AcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS },
41046 { (char *)"AcceleratorEntry_GetCommand", (PyCFunction) _wrap_AcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS },
41047 { (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS },
41048 { (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS },
41049 { (char *)"delete_AcceleratorTable", (PyCFunction) _wrap_delete_AcceleratorTable, METH_VARARGS | METH_KEYWORDS },
41050 { (char *)"AcceleratorTable_Ok", (PyCFunction) _wrap_AcceleratorTable_Ok, METH_VARARGS | METH_KEYWORDS },
41051 { (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS },
41052 { (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS },
41053 { (char *)"new_VisualAttributes", (PyCFunction) _wrap_new_VisualAttributes, METH_VARARGS | METH_KEYWORDS },
41054 { (char *)"delete_VisualAttributes", (PyCFunction) _wrap_delete_VisualAttributes, METH_VARARGS | METH_KEYWORDS },
41055 { (char *)"VisualAttributes_font_set", (PyCFunction) _wrap_VisualAttributes_font_set, METH_VARARGS | METH_KEYWORDS },
41056 { (char *)"VisualAttributes_font_get", (PyCFunction) _wrap_VisualAttributes_font_get, METH_VARARGS | METH_KEYWORDS },
41057 { (char *)"VisualAttributes_colFg_set", (PyCFunction) _wrap_VisualAttributes_colFg_set, METH_VARARGS | METH_KEYWORDS },
41058 { (char *)"VisualAttributes_colFg_get", (PyCFunction) _wrap_VisualAttributes_colFg_get, METH_VARARGS | METH_KEYWORDS },
41059 { (char *)"VisualAttributes_colBg_set", (PyCFunction) _wrap_VisualAttributes_colBg_set, METH_VARARGS | METH_KEYWORDS },
41060 { (char *)"VisualAttributes_colBg_get", (PyCFunction) _wrap_VisualAttributes_colBg_get, METH_VARARGS | METH_KEYWORDS },
41061 { (char *)"VisualAttributes_swigregister", VisualAttributes_swigregister, METH_VARARGS },
41062 { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS },
41063 { (char *)"new_PreWindow", (PyCFunction) _wrap_new_PreWindow, METH_VARARGS | METH_KEYWORDS },
41064 { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS },
41065 { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS },
41066 { (char *)"Window_Destroy", (PyCFunction) _wrap_Window_Destroy, METH_VARARGS | METH_KEYWORDS },
41067 { (char *)"Window_DestroyChildren", (PyCFunction) _wrap_Window_DestroyChildren, METH_VARARGS | METH_KEYWORDS },
41068 { (char *)"Window_IsBeingDeleted", (PyCFunction) _wrap_Window_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS },
41069 { (char *)"Window_SetTitle", (PyCFunction) _wrap_Window_SetTitle, METH_VARARGS | METH_KEYWORDS },
41070 { (char *)"Window_GetTitle", (PyCFunction) _wrap_Window_GetTitle, METH_VARARGS | METH_KEYWORDS },
41071 { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS },
41072 { (char *)"Window_GetLabel", (PyCFunction) _wrap_Window_GetLabel, METH_VARARGS | METH_KEYWORDS },
41073 { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS },
41074 { (char *)"Window_GetName", (PyCFunction) _wrap_Window_GetName, METH_VARARGS | METH_KEYWORDS },
41075 { (char *)"Window_SetWindowVariant", (PyCFunction) _wrap_Window_SetWindowVariant, METH_VARARGS | METH_KEYWORDS },
41076 { (char *)"Window_GetWindowVariant", (PyCFunction) _wrap_Window_GetWindowVariant, METH_VARARGS | METH_KEYWORDS },
41077 { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS },
41078 { (char *)"Window_GetId", (PyCFunction) _wrap_Window_GetId, METH_VARARGS | METH_KEYWORDS },
41079 { (char *)"Window_NewControlId", (PyCFunction) _wrap_Window_NewControlId, METH_VARARGS | METH_KEYWORDS },
41080 { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS },
41081 { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS },
41082 { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS },
41083 { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS },
41084 { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS },
41085 { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS },
41086 { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS },
41087 { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS },
41088 { (char *)"Window_Raise", (PyCFunction) _wrap_Window_Raise, METH_VARARGS | METH_KEYWORDS },
41089 { (char *)"Window_Lower", (PyCFunction) _wrap_Window_Lower, METH_VARARGS | METH_KEYWORDS },
41090 { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS },
41091 { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS },
41092 { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS },
41093 { (char *)"Window_GetPosition", (PyCFunction) _wrap_Window_GetPosition, METH_VARARGS | METH_KEYWORDS },
41094 { (char *)"Window_GetPositionTuple", (PyCFunction) _wrap_Window_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
41095 { (char *)"Window_GetSize", (PyCFunction) _wrap_Window_GetSize, METH_VARARGS | METH_KEYWORDS },
41096 { (char *)"Window_GetSizeTuple", (PyCFunction) _wrap_Window_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
41097 { (char *)"Window_GetRect", (PyCFunction) _wrap_Window_GetRect, METH_VARARGS | METH_KEYWORDS },
41098 { (char *)"Window_GetClientSize", (PyCFunction) _wrap_Window_GetClientSize, METH_VARARGS | METH_KEYWORDS },
41099 { (char *)"Window_GetClientSizeTuple", (PyCFunction) _wrap_Window_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS },
41100 { (char *)"Window_GetClientAreaOrigin", (PyCFunction) _wrap_Window_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS },
41101 { (char *)"Window_GetClientRect", (PyCFunction) _wrap_Window_GetClientRect, METH_VARARGS | METH_KEYWORDS },
41102 { (char *)"Window_GetBestSize", (PyCFunction) _wrap_Window_GetBestSize, METH_VARARGS | METH_KEYWORDS },
41103 { (char *)"Window_GetBestSizeTuple", (PyCFunction) _wrap_Window_GetBestSizeTuple, METH_VARARGS | METH_KEYWORDS },
41104 { (char *)"Window_GetAdjustedBestSize", (PyCFunction) _wrap_Window_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS },
41105 { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS },
41106 { (char *)"Window_CenterOnScreen", (PyCFunction) _wrap_Window_CenterOnScreen, METH_VARARGS | METH_KEYWORDS },
41107 { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS },
41108 { (char *)"Window_Fit", (PyCFunction) _wrap_Window_Fit, METH_VARARGS | METH_KEYWORDS },
41109 { (char *)"Window_FitInside", (PyCFunction) _wrap_Window_FitInside, METH_VARARGS | METH_KEYWORDS },
41110 { (char *)"Window_SetSizeHints", _wrap_Window_SetSizeHints, METH_VARARGS },
41111 { (char *)"Window_SetVirtualSizeHints", _wrap_Window_SetVirtualSizeHints, METH_VARARGS },
908b74cd
RD
41112 { (char *)"Window_GetMaxSize", (PyCFunction) _wrap_Window_GetMaxSize, METH_VARARGS | METH_KEYWORDS },
41113 { (char *)"Window_GetMinSize", (PyCFunction) _wrap_Window_GetMinSize, METH_VARARGS | METH_KEYWORDS },
41114 { (char *)"Window_SetMinSize", (PyCFunction) _wrap_Window_SetMinSize, METH_VARARGS | METH_KEYWORDS },
41115 { (char *)"Window_SetMaxSize", (PyCFunction) _wrap_Window_SetMaxSize, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41116 { (char *)"Window_GetMinWidth", (PyCFunction) _wrap_Window_GetMinWidth, METH_VARARGS | METH_KEYWORDS },
41117 { (char *)"Window_GetMinHeight", (PyCFunction) _wrap_Window_GetMinHeight, METH_VARARGS | METH_KEYWORDS },
41118 { (char *)"Window_GetMaxWidth", (PyCFunction) _wrap_Window_GetMaxWidth, METH_VARARGS | METH_KEYWORDS },
41119 { (char *)"Window_GetMaxHeight", (PyCFunction) _wrap_Window_GetMaxHeight, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41120 { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS },
41121 { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS },
41122 { (char *)"Window_GetVirtualSize", (PyCFunction) _wrap_Window_GetVirtualSize, METH_VARARGS | METH_KEYWORDS },
41123 { (char *)"Window_GetVirtualSizeTuple", (PyCFunction) _wrap_Window_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS },
41124 { (char *)"Window_GetBestVirtualSize", (PyCFunction) _wrap_Window_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS },
41125 { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS },
41126 { (char *)"Window_Hide", (PyCFunction) _wrap_Window_Hide, METH_VARARGS | METH_KEYWORDS },
41127 { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS },
41128 { (char *)"Window_Disable", (PyCFunction) _wrap_Window_Disable, METH_VARARGS | METH_KEYWORDS },
41129 { (char *)"Window_IsShown", (PyCFunction) _wrap_Window_IsShown, METH_VARARGS | METH_KEYWORDS },
41130 { (char *)"Window_IsEnabled", (PyCFunction) _wrap_Window_IsEnabled, METH_VARARGS | METH_KEYWORDS },
41131 { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
41132 { (char *)"Window_GetWindowStyleFlag", (PyCFunction) _wrap_Window_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
41133 { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS },
41134 { (char *)"Window_IsRetained", (PyCFunction) _wrap_Window_IsRetained, METH_VARARGS | METH_KEYWORDS },
41135 { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS },
41136 { (char *)"Window_GetExtraStyle", (PyCFunction) _wrap_Window_GetExtraStyle, METH_VARARGS | METH_KEYWORDS },
41137 { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS },
41138 { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS },
41139 { (char *)"Window_GetThemeEnabled", (PyCFunction) _wrap_Window_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS },
41140 { (char *)"Window_SetFocus", (PyCFunction) _wrap_Window_SetFocus, METH_VARARGS | METH_KEYWORDS },
41141 { (char *)"Window_SetFocusFromKbd", (PyCFunction) _wrap_Window_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS },
41142 { (char *)"Window_FindFocus", (PyCFunction) _wrap_Window_FindFocus, METH_VARARGS | METH_KEYWORDS },
41143 { (char *)"Window_AcceptsFocus", (PyCFunction) _wrap_Window_AcceptsFocus, METH_VARARGS | METH_KEYWORDS },
41144 { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_Window_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS },
41145 { (char *)"Window_GetDefaultItem", (PyCFunction) _wrap_Window_GetDefaultItem, METH_VARARGS | METH_KEYWORDS },
41146 { (char *)"Window_SetDefaultItem", (PyCFunction) _wrap_Window_SetDefaultItem, METH_VARARGS | METH_KEYWORDS },
41147 { (char *)"Window_SetTmpDefaultItem", (PyCFunction) _wrap_Window_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS },
908b74cd 41148 { (char *)"Window_Navigate", (PyCFunction) _wrap_Window_Navigate, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41149 { (char *)"Window_GetChildren", (PyCFunction) _wrap_Window_GetChildren, METH_VARARGS | METH_KEYWORDS },
41150 { (char *)"Window_GetParent", (PyCFunction) _wrap_Window_GetParent, METH_VARARGS | METH_KEYWORDS },
41151 { (char *)"Window_GetGrandParent", (PyCFunction) _wrap_Window_GetGrandParent, METH_VARARGS | METH_KEYWORDS },
41152 { (char *)"Window_IsTopLevel", (PyCFunction) _wrap_Window_IsTopLevel, METH_VARARGS | METH_KEYWORDS },
41153 { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS },
41154 { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS },
41155 { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS },
41156 { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS },
41157 { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS },
41158 { (char *)"Window_GetEventHandler", (PyCFunction) _wrap_Window_GetEventHandler, METH_VARARGS | METH_KEYWORDS },
41159 { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS },
41160 { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS },
41161 { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS },
41162 { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS },
41163 { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS },
41164 { (char *)"Window_GetValidator", (PyCFunction) _wrap_Window_GetValidator, METH_VARARGS | METH_KEYWORDS },
41165 { (char *)"Window_Validate", (PyCFunction) _wrap_Window_Validate, METH_VARARGS | METH_KEYWORDS },
41166 { (char *)"Window_TransferDataToWindow", (PyCFunction) _wrap_Window_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS },
41167 { (char *)"Window_TransferDataFromWindow", (PyCFunction) _wrap_Window_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS },
41168 { (char *)"Window_InitDialog", (PyCFunction) _wrap_Window_InitDialog, METH_VARARGS | METH_KEYWORDS },
41169 { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS },
41170 { (char *)"Window_GetAcceleratorTable", (PyCFunction) _wrap_Window_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS },
41171 { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS },
41172 { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS },
41173 { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS },
41174 { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS },
41175 { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS },
41176 { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS },
41177 { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS },
41178 { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS },
41179 { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS },
41180 { (char *)"Window_CaptureMouse", (PyCFunction) _wrap_Window_CaptureMouse, METH_VARARGS | METH_KEYWORDS },
41181 { (char *)"Window_ReleaseMouse", (PyCFunction) _wrap_Window_ReleaseMouse, METH_VARARGS | METH_KEYWORDS },
41182 { (char *)"Window_GetCapture", (PyCFunction) _wrap_Window_GetCapture, METH_VARARGS | METH_KEYWORDS },
41183 { (char *)"Window_HasCapture", (PyCFunction) _wrap_Window_HasCapture, METH_VARARGS | METH_KEYWORDS },
41184 { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS },
41185 { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS },
41186 { (char *)"Window_Update", (PyCFunction) _wrap_Window_Update, METH_VARARGS | METH_KEYWORDS },
41187 { (char *)"Window_ClearBackground", (PyCFunction) _wrap_Window_ClearBackground, METH_VARARGS | METH_KEYWORDS },
41188 { (char *)"Window_Freeze", (PyCFunction) _wrap_Window_Freeze, METH_VARARGS | METH_KEYWORDS },
41189 { (char *)"Window_Thaw", (PyCFunction) _wrap_Window_Thaw, METH_VARARGS | METH_KEYWORDS },
41190 { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS },
41191 { (char *)"Window_GetUpdateRegion", (PyCFunction) _wrap_Window_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS },
41192 { (char *)"Window_GetUpdateClientRect", (PyCFunction) _wrap_Window_GetUpdateClientRect, METH_VARARGS | METH_KEYWORDS },
41193 { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS },
41194 { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS },
41195 { (char *)"Window_IsExposedRect", (PyCFunction) _wrap_Window_IsExposedRect, METH_VARARGS | METH_KEYWORDS },
41196 { (char *)"Window_GetDefaultAttributes", (PyCFunction) _wrap_Window_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
41197 { (char *)"Window_GetClassDefaultAttributes", (PyCFunction) _wrap_Window_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
41198 { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
41199 { (char *)"Window_SetDefaultBackgroundColour", (PyCFunction) _wrap_Window_SetDefaultBackgroundColour, METH_VARARGS | METH_KEYWORDS },
41200 { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS },
41201 { (char *)"Window_SetDefaultForegroundColour", (PyCFunction) _wrap_Window_SetDefaultForegroundColour, METH_VARARGS | METH_KEYWORDS },
41202 { (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
41203 { (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS },
41204 { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS },
41205 { (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS },
41206 { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS },
41207 { (char *)"Window_SetDefaultFont", (PyCFunction) _wrap_Window_SetDefaultFont, METH_VARARGS | METH_KEYWORDS },
41208 { (char *)"Window_GetFont", (PyCFunction) _wrap_Window_GetFont, METH_VARARGS | METH_KEYWORDS },
41209 { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS },
41210 { (char *)"Window_GetCaret", (PyCFunction) _wrap_Window_GetCaret, METH_VARARGS | METH_KEYWORDS },
41211 { (char *)"Window_GetCharHeight", (PyCFunction) _wrap_Window_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
41212 { (char *)"Window_GetCharWidth", (PyCFunction) _wrap_Window_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
41213 { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
41214 { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
41215 { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS },
41216 { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS },
41217 { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS },
41218 { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS },
41219 { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS },
41220 { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS },
41221 { (char *)"Window_GetBorder", _wrap_Window_GetBorder, METH_VARARGS },
41222 { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS },
41223 { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS },
41224 { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS },
41225 { (char *)"Window_GetHandle", (PyCFunction) _wrap_Window_GetHandle, METH_VARARGS | METH_KEYWORDS },
41226 { (char *)"Window_OnPaint", (PyCFunction) _wrap_Window_OnPaint, METH_VARARGS | METH_KEYWORDS },
41227 { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS },
41228 { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS },
41229 { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS },
41230 { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS },
41231 { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS },
41232 { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS },
41233 { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS },
41234 { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS },
41235 { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS },
41236 { (char *)"Window_LineUp", (PyCFunction) _wrap_Window_LineUp, METH_VARARGS | METH_KEYWORDS },
41237 { (char *)"Window_LineDown", (PyCFunction) _wrap_Window_LineDown, METH_VARARGS | METH_KEYWORDS },
41238 { (char *)"Window_PageUp", (PyCFunction) _wrap_Window_PageUp, METH_VARARGS | METH_KEYWORDS },
41239 { (char *)"Window_PageDown", (PyCFunction) _wrap_Window_PageDown, METH_VARARGS | METH_KEYWORDS },
41240 { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS },
41241 { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS },
41242 { (char *)"Window_GetHelpText", (PyCFunction) _wrap_Window_GetHelpText, METH_VARARGS | METH_KEYWORDS },
41243 { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS },
41244 { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS },
41245 { (char *)"Window_GetToolTip", (PyCFunction) _wrap_Window_GetToolTip, METH_VARARGS | METH_KEYWORDS },
41246 { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS },
41247 { (char *)"Window_GetDropTarget", (PyCFunction) _wrap_Window_GetDropTarget, METH_VARARGS | METH_KEYWORDS },
41248 { (char *)"Window_DragAcceptFiles", (PyCFunction) _wrap_Window_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS },
41249 { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS },
41250 { (char *)"Window_GetConstraints", (PyCFunction) _wrap_Window_GetConstraints, METH_VARARGS | METH_KEYWORDS },
41251 { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS },
41252 { (char *)"Window_GetAutoLayout", (PyCFunction) _wrap_Window_GetAutoLayout, METH_VARARGS | METH_KEYWORDS },
41253 { (char *)"Window_Layout", (PyCFunction) _wrap_Window_Layout, METH_VARARGS | METH_KEYWORDS },
41254 { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS },
41255 { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS },
41256 { (char *)"Window_GetSizer", (PyCFunction) _wrap_Window_GetSizer, METH_VARARGS | METH_KEYWORDS },
41257 { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS },
41258 { (char *)"Window_GetContainingSizer", (PyCFunction) _wrap_Window_GetContainingSizer, METH_VARARGS | METH_KEYWORDS },
41259 { (char *)"Window_InheritAttributes", (PyCFunction) _wrap_Window_InheritAttributes, METH_VARARGS | METH_KEYWORDS },
41260 { (char *)"Window_ShouldInheritColours", (PyCFunction) _wrap_Window_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS },
41261 { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS },
41262 { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS },
41263 { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS },
41264 { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS },
41265 { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS },
41266 { (char *)"new_Validator", (PyCFunction) _wrap_new_Validator, METH_VARARGS | METH_KEYWORDS },
41267 { (char *)"Validator_Clone", (PyCFunction) _wrap_Validator_Clone, METH_VARARGS | METH_KEYWORDS },
41268 { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS },
41269 { (char *)"Validator_TransferToWindow", (PyCFunction) _wrap_Validator_TransferToWindow, METH_VARARGS | METH_KEYWORDS },
41270 { (char *)"Validator_TransferFromWindow", (PyCFunction) _wrap_Validator_TransferFromWindow, METH_VARARGS | METH_KEYWORDS },
41271 { (char *)"Validator_GetWindow", (PyCFunction) _wrap_Validator_GetWindow, METH_VARARGS | METH_KEYWORDS },
41272 { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS },
41273 { (char *)"Validator_IsSilent", (PyCFunction) _wrap_Validator_IsSilent, METH_VARARGS | METH_KEYWORDS },
41274 { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS },
41275 { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS },
41276 { (char *)"new_PyValidator", (PyCFunction) _wrap_new_PyValidator, METH_VARARGS | METH_KEYWORDS },
41277 { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
41278 { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS },
41279 { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS },
41280 { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS },
41281 { (char *)"Menu_AppendSeparator", (PyCFunction) _wrap_Menu_AppendSeparator, METH_VARARGS | METH_KEYWORDS },
41282 { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS },
41283 { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS },
41284 { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS },
41285 { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS },
41286 { (char *)"Menu_Break", (PyCFunction) _wrap_Menu_Break, METH_VARARGS | METH_KEYWORDS },
41287 { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS },
41288 { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS },
41289 { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS },
41290 { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS },
41291 { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS },
41292 { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS },
41293 { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS },
41294 { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS },
41295 { (char *)"Menu_PrependSeparator", (PyCFunction) _wrap_Menu_PrependSeparator, METH_VARARGS | METH_KEYWORDS },
41296 { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS },
41297 { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS },
41298 { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS },
41299 { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS },
41300 { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS },
41301 { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS },
41302 { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS },
41303 { (char *)"Menu_Destroy", (PyCFunction) _wrap_Menu_Destroy, METH_VARARGS | METH_KEYWORDS },
41304 { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS },
41305 { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS },
41306 { (char *)"Menu_GetMenuItemCount", (PyCFunction) _wrap_Menu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS },
41307 { (char *)"Menu_GetMenuItems", (PyCFunction) _wrap_Menu_GetMenuItems, METH_VARARGS | METH_KEYWORDS },
41308 { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS },
41309 { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS },
41310 { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS },
41311 { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS },
41312 { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS },
41313 { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS },
41314 { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS },
41315 { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS },
41316 { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS },
41317 { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS },
41318 { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS },
41319 { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS },
41320 { (char *)"Menu_GetTitle", (PyCFunction) _wrap_Menu_GetTitle, METH_VARARGS | METH_KEYWORDS },
41321 { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS },
41322 { (char *)"Menu_GetEventHandler", (PyCFunction) _wrap_Menu_GetEventHandler, METH_VARARGS | METH_KEYWORDS },
41323 { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS },
41324 { (char *)"Menu_GetInvokingWindow", (PyCFunction) _wrap_Menu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS },
41325 { (char *)"Menu_GetStyle", (PyCFunction) _wrap_Menu_GetStyle, METH_VARARGS | METH_KEYWORDS },
41326 { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS },
41327 { (char *)"Menu_GetMenuBar", (PyCFunction) _wrap_Menu_GetMenuBar, METH_VARARGS | METH_KEYWORDS },
41328 { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS },
41329 { (char *)"Menu_Detach", (PyCFunction) _wrap_Menu_Detach, METH_VARARGS | METH_KEYWORDS },
41330 { (char *)"Menu_IsAttached", (PyCFunction) _wrap_Menu_IsAttached, METH_VARARGS | METH_KEYWORDS },
41331 { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS },
41332 { (char *)"Menu_GetParent", (PyCFunction) _wrap_Menu_GetParent, METH_VARARGS | METH_KEYWORDS },
41333 { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS },
41334 { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS },
41335 { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS },
41336 { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS },
41337 { (char *)"MenuBar_GetMenuCount", (PyCFunction) _wrap_MenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS },
41338 { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS },
41339 { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS },
41340 { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS },
41341 { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS },
41342 { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS },
41343 { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS },
41344 { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS },
41345 { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS },
41346 { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS },
41347 { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS },
41348 { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS },
41349 { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS },
41350 { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS },
41351 { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS },
41352 { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS },
41353 { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS },
41354 { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS },
41355 { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS },
41356 { (char *)"MenuBar_GetFrame", (PyCFunction) _wrap_MenuBar_GetFrame, METH_VARARGS | METH_KEYWORDS },
41357 { (char *)"MenuBar_IsAttached", (PyCFunction) _wrap_MenuBar_IsAttached, METH_VARARGS | METH_KEYWORDS },
41358 { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS },
41359 { (char *)"MenuBar_Detach", (PyCFunction) _wrap_MenuBar_Detach, METH_VARARGS | METH_KEYWORDS },
41360 { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS },
41361 { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS },
41362 { (char *)"MenuItem_GetMenu", (PyCFunction) _wrap_MenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS },
41363 { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS },
41364 { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS },
41365 { (char *)"MenuItem_GetId", (PyCFunction) _wrap_MenuItem_GetId, METH_VARARGS | METH_KEYWORDS },
41366 { (char *)"MenuItem_IsSeparator", (PyCFunction) _wrap_MenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS },
41367 { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS },
41368 { (char *)"MenuItem_GetLabel", (PyCFunction) _wrap_MenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS },
41369 { (char *)"MenuItem_GetText", (PyCFunction) _wrap_MenuItem_GetText, METH_VARARGS | METH_KEYWORDS },
41370 { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS },
41371 { (char *)"MenuItem_GetKind", (PyCFunction) _wrap_MenuItem_GetKind, METH_VARARGS | METH_KEYWORDS },
41372 { (char *)"MenuItem_SetKind", (PyCFunction) _wrap_MenuItem_SetKind, METH_VARARGS | METH_KEYWORDS },
41373 { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS },
41374 { (char *)"MenuItem_IsCheckable", (PyCFunction) _wrap_MenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS },
41375 { (char *)"MenuItem_IsSubMenu", (PyCFunction) _wrap_MenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS },
41376 { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS },
41377 { (char *)"MenuItem_GetSubMenu", (PyCFunction) _wrap_MenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS },
41378 { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS },
41379 { (char *)"MenuItem_IsEnabled", (PyCFunction) _wrap_MenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS },
41380 { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS },
41381 { (char *)"MenuItem_IsChecked", (PyCFunction) _wrap_MenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS },
41382 { (char *)"MenuItem_Toggle", (PyCFunction) _wrap_MenuItem_Toggle, METH_VARARGS | METH_KEYWORDS },
41383 { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS },
41384 { (char *)"MenuItem_GetHelp", (PyCFunction) _wrap_MenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS },
41385 { (char *)"MenuItem_GetAccel", (PyCFunction) _wrap_MenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS },
41386 { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS },
41387 { (char *)"MenuItem_SetFont", (PyCFunction) _wrap_MenuItem_SetFont, METH_VARARGS | METH_KEYWORDS },
41388 { (char *)"MenuItem_GetFont", (PyCFunction) _wrap_MenuItem_GetFont, METH_VARARGS | METH_KEYWORDS },
41389 { (char *)"MenuItem_SetTextColour", (PyCFunction) _wrap_MenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS },
41390 { (char *)"MenuItem_GetTextColour", (PyCFunction) _wrap_MenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS },
41391 { (char *)"MenuItem_SetBackgroundColour", (PyCFunction) _wrap_MenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
41392 { (char *)"MenuItem_GetBackgroundColour", (PyCFunction) _wrap_MenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
41393 { (char *)"MenuItem_SetBitmaps", (PyCFunction) _wrap_MenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS },
41394 { (char *)"MenuItem_SetDisabledBitmap", (PyCFunction) _wrap_MenuItem_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS },
41395 { (char *)"MenuItem_GetDisabledBitmap", (PyCFunction) _wrap_MenuItem_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS },
41396 { (char *)"MenuItem_SetMarginWidth", (PyCFunction) _wrap_MenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS },
41397 { (char *)"MenuItem_GetMarginWidth", (PyCFunction) _wrap_MenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS },
41398 { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_MenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS },
41399 { (char *)"MenuItem_IsOwnerDrawn", (PyCFunction) _wrap_MenuItem_IsOwnerDrawn, METH_VARARGS | METH_KEYWORDS },
41400 { (char *)"MenuItem_SetOwnerDrawn", (PyCFunction) _wrap_MenuItem_SetOwnerDrawn, METH_VARARGS | METH_KEYWORDS },
41401 { (char *)"MenuItem_ResetOwnerDrawn", (PyCFunction) _wrap_MenuItem_ResetOwnerDrawn, METH_VARARGS | METH_KEYWORDS },
41402 { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS },
41403 { (char *)"MenuItem_GetBitmap", (PyCFunction) _wrap_MenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS },
41404 { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS },
41405 { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS },
41406 { (char *)"new_PreControl", (PyCFunction) _wrap_new_PreControl, METH_VARARGS | METH_KEYWORDS },
41407 { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS },
41408 { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS },
41409 { (char *)"Control_GetLabel", (PyCFunction) _wrap_Control_GetLabel, METH_VARARGS | METH_KEYWORDS },
41410 { (char *)"Control_SetLabel", (PyCFunction) _wrap_Control_SetLabel, METH_VARARGS | METH_KEYWORDS },
41411 { (char *)"Control_GetClassDefaultAttributes", (PyCFunction) _wrap_Control_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
41412 { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS },
41413 { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS },
41414 { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS },
41415 { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS },
41416 { (char *)"ItemContainer_Clear", (PyCFunction) _wrap_ItemContainer_Clear, METH_VARARGS | METH_KEYWORDS },
41417 { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS },
41418 { (char *)"ItemContainer_GetCount", (PyCFunction) _wrap_ItemContainer_GetCount, METH_VARARGS | METH_KEYWORDS },
41419 { (char *)"ItemContainer_IsEmpty", (PyCFunction) _wrap_ItemContainer_IsEmpty, METH_VARARGS | METH_KEYWORDS },
41420 { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS },
41421 { (char *)"ItemContainer_GetStrings", (PyCFunction) _wrap_ItemContainer_GetStrings, METH_VARARGS | METH_KEYWORDS },
41422 { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS },
41423 { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS },
41424 { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS },
41425 { (char *)"ItemContainer_GetSelection", (PyCFunction) _wrap_ItemContainer_GetSelection, METH_VARARGS | METH_KEYWORDS },
41426 { (char *)"ItemContainer_GetStringSelection", (PyCFunction) _wrap_ItemContainer_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
41427 { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS },
41428 { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS },
41429 { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS },
41430 { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS },
41431 { (char *)"new_SizerItem", (PyCFunction) _wrap_new_SizerItem, METH_VARARGS | METH_KEYWORDS },
d55e5bfc 41432 { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS },
248ed943 41433 { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41434 { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS },
41435 { (char *)"SizerItem_DeleteWindows", (PyCFunction) _wrap_SizerItem_DeleteWindows, METH_VARARGS | METH_KEYWORDS },
41436 { (char *)"SizerItem_DetachSizer", (PyCFunction) _wrap_SizerItem_DetachSizer, METH_VARARGS | METH_KEYWORDS },
41437 { (char *)"SizerItem_GetSize", (PyCFunction) _wrap_SizerItem_GetSize, METH_VARARGS | METH_KEYWORDS },
41438 { (char *)"SizerItem_CalcMin", (PyCFunction) _wrap_SizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS },
41439 { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS },
41440 { (char *)"SizerItem_GetMinSize", (PyCFunction) _wrap_SizerItem_GetMinSize, METH_VARARGS | METH_KEYWORDS },
41441 { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS },
41442 { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS },
41443 { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS },
41444 { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS },
41445 { (char *)"SizerItem_GetRatio", (PyCFunction) _wrap_SizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS },
41446 { (char *)"SizerItem_IsWindow", (PyCFunction) _wrap_SizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS },
41447 { (char *)"SizerItem_IsSizer", (PyCFunction) _wrap_SizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS },
41448 { (char *)"SizerItem_IsSpacer", (PyCFunction) _wrap_SizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS },
41449 { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS },
41450 { (char *)"SizerItem_GetProportion", (PyCFunction) _wrap_SizerItem_GetProportion, METH_VARARGS | METH_KEYWORDS },
41451 { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS },
41452 { (char *)"SizerItem_GetFlag", (PyCFunction) _wrap_SizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS },
41453 { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS },
41454 { (char *)"SizerItem_GetBorder", (PyCFunction) _wrap_SizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS },
41455 { (char *)"SizerItem_GetWindow", (PyCFunction) _wrap_SizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS },
41456 { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS },
41457 { (char *)"SizerItem_GetSizer", (PyCFunction) _wrap_SizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS },
41458 { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS },
41459 { (char *)"SizerItem_GetSpacer", (PyCFunction) _wrap_SizerItem_GetSpacer, METH_VARARGS | METH_KEYWORDS },
41460 { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS },
41461 { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS },
41462 { (char *)"SizerItem_IsShown", (PyCFunction) _wrap_SizerItem_IsShown, METH_VARARGS | METH_KEYWORDS },
41463 { (char *)"SizerItem_GetPosition", (PyCFunction) _wrap_SizerItem_GetPosition, METH_VARARGS | METH_KEYWORDS },
41464 { (char *)"SizerItem_GetUserData", (PyCFunction) _wrap_SizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS },
41465 { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS },
41466 { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS },
41467 { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS },
41468 { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS },
41469 { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS },
41470 { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS },
1a6bba1e 41471 { (char *)"Sizer_Detach", (PyCFunction) _wrap_Sizer_Detach, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41472 { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS },
41473 { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS },
41474 { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS },
41475 { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS },
41476 { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS },
41477 { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS },
41478 { (char *)"Sizer_GetSize", (PyCFunction) _wrap_Sizer_GetSize, METH_VARARGS | METH_KEYWORDS },
41479 { (char *)"Sizer_GetPosition", (PyCFunction) _wrap_Sizer_GetPosition, METH_VARARGS | METH_KEYWORDS },
41480 { (char *)"Sizer_GetMinSize", (PyCFunction) _wrap_Sizer_GetMinSize, METH_VARARGS | METH_KEYWORDS },
41481 { (char *)"Sizer_RecalcSizes", (PyCFunction) _wrap_Sizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
41482 { (char *)"Sizer_CalcMin", (PyCFunction) _wrap_Sizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
41483 { (char *)"Sizer_Layout", (PyCFunction) _wrap_Sizer_Layout, METH_VARARGS | METH_KEYWORDS },
41484 { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS },
41485 { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS },
41486 { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS },
41487 { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS },
41488 { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS },
41489 { (char *)"Sizer_DeleteWindows", (PyCFunction) _wrap_Sizer_DeleteWindows, METH_VARARGS | METH_KEYWORDS },
41490 { (char *)"Sizer_GetChildren", (PyCFunction) _wrap_Sizer_GetChildren, METH_VARARGS | METH_KEYWORDS },
41491 { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41492 { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS },
41493 { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS },
41494 { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS },
41495 { (char *)"new_PySizer", (PyCFunction) _wrap_new_PySizer, METH_VARARGS | METH_KEYWORDS },
41496 { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
41497 { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS },
41498 { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS },
41499 { (char *)"BoxSizer_GetOrientation", (PyCFunction) _wrap_BoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS },
41500 { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41501 { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS },
41502 { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS },
41503 { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_StaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41504 { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS },
41505 { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41506 { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS },
41507 { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS },
41508 { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS },
41509 { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS },
41510 { (char *)"GridSizer_GetCols", (PyCFunction) _wrap_GridSizer_GetCols, METH_VARARGS | METH_KEYWORDS },
41511 { (char *)"GridSizer_GetRows", (PyCFunction) _wrap_GridSizer_GetRows, METH_VARARGS | METH_KEYWORDS },
41512 { (char *)"GridSizer_GetVGap", (PyCFunction) _wrap_GridSizer_GetVGap, METH_VARARGS | METH_KEYWORDS },
41513 { (char *)"GridSizer_GetHGap", (PyCFunction) _wrap_GridSizer_GetHGap, METH_VARARGS | METH_KEYWORDS },
41514 { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS },
41515 { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41516 { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS },
41517 { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS },
41518 { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS },
41519 { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS },
41520 { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS },
41521 { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_GetFlexibleDirection, METH_VARARGS | METH_KEYWORDS },
41522 { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS },
41523 { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS },
41524 { (char *)"FlexGridSizer_GetRowHeights", (PyCFunction) _wrap_FlexGridSizer_GetRowHeights, METH_VARARGS | METH_KEYWORDS },
41525 { (char *)"FlexGridSizer_GetColWidths", (PyCFunction) _wrap_FlexGridSizer_GetColWidths, METH_VARARGS | METH_KEYWORDS },
41526 { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS },
41527 { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS },
41528 { (char *)"GBPosition_GetRow", (PyCFunction) _wrap_GBPosition_GetRow, METH_VARARGS | METH_KEYWORDS },
41529 { (char *)"GBPosition_GetCol", (PyCFunction) _wrap_GBPosition_GetCol, METH_VARARGS | METH_KEYWORDS },
41530 { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS },
41531 { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS },
41532 { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS },
41533 { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS },
41534 { (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS },
41535 { (char *)"GBPosition_Get", (PyCFunction) _wrap_GBPosition_Get, METH_VARARGS | METH_KEYWORDS },
41536 { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS },
41537 { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS },
41538 { (char *)"GBSpan_GetRowspan", (PyCFunction) _wrap_GBSpan_GetRowspan, METH_VARARGS | METH_KEYWORDS },
41539 { (char *)"GBSpan_GetColspan", (PyCFunction) _wrap_GBSpan_GetColspan, METH_VARARGS | METH_KEYWORDS },
41540 { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS },
41541 { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS },
41542 { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS },
41543 { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS },
41544 { (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS },
41545 { (char *)"GBSpan_Get", (PyCFunction) _wrap_GBSpan_Get, METH_VARARGS | METH_KEYWORDS },
41546 { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS },
41547 { (char *)"new_GBSizerItem", (PyCFunction) _wrap_new_GBSizerItem, METH_VARARGS | METH_KEYWORDS },
41548 { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS },
41549 { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS },
41550 { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS },
41551 { (char *)"GBSizerItem_GetPos", (PyCFunction) _wrap_GBSizerItem_GetPos, METH_VARARGS | METH_KEYWORDS },
41552 { (char *)"GBSizerItem_GetSpan", (PyCFunction) _wrap_GBSizerItem_GetSpan, METH_VARARGS | METH_KEYWORDS },
41553 { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS },
41554 { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS },
248ed943
RD
41555 { (char *)"GBSizerItem_Intersects", (PyCFunction) _wrap_GBSizerItem_Intersects, METH_VARARGS | METH_KEYWORDS },
41556 { (char *)"GBSizerItem_IntersectsPos", (PyCFunction) _wrap_GBSizerItem_IntersectsPos, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41557 { (char *)"GBSizerItem_GetEndPos", (PyCFunction) _wrap_GBSizerItem_GetEndPos, METH_VARARGS | METH_KEYWORDS },
41558 { (char *)"GBSizerItem_GetGBSizer", (PyCFunction) _wrap_GBSizerItem_GetGBSizer, METH_VARARGS | METH_KEYWORDS },
41559 { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS },
41560 { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS },
41561 { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS },
41562 { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS },
41563 { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS },
41564 { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_GetEmptyCellSize, METH_VARARGS | METH_KEYWORDS },
41565 { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS },
41566 { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS },
41567 { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS },
41568 { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS },
41569 { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS },
41570 { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS },
41571 { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS },
41572 { (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS },
248ed943
RD
41573 { (char *)"GridBagSizer_CheckForIntersection", (PyCFunction) _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS | METH_KEYWORDS },
41574 { (char *)"GridBagSizer_CheckForIntersectionPos", (PyCFunction) _wrap_GridBagSizer_CheckForIntersectionPos, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41575 { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS },
41576 { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS },
41577 { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS },
41578 { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS },
41579 { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS },
41580 { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS },
41581 { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS },
41582 { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS },
41583 { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS },
41584 { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_IndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS },
41585 { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_IndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS },
41586 { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherWindow, METH_VARARGS | METH_KEYWORDS },
41587 { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMyEdge, METH_VARARGS | METH_KEYWORDS },
41588 { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS },
41589 { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS },
41590 { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMargin, METH_VARARGS | METH_KEYWORDS },
41591 { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS },
41592 { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_GetValue, METH_VARARGS | METH_KEYWORDS },
41593 { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction) _wrap_IndividualLayoutConstraint_GetPercent, METH_VARARGS | METH_KEYWORDS },
41594 { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherEdge, METH_VARARGS | METH_KEYWORDS },
41595 { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_GetDone, METH_VARARGS | METH_KEYWORDS },
41596 { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS },
41597 { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_GetRelationship, METH_VARARGS | METH_KEYWORDS },
41598 { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS },
41599 { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS },
41600 { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS },
41601 { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS },
41602 { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS },
41603 { (char *)"LayoutConstraints_left_get", (PyCFunction) _wrap_LayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS },
41604 { (char *)"LayoutConstraints_top_get", (PyCFunction) _wrap_LayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS },
41605 { (char *)"LayoutConstraints_right_get", (PyCFunction) _wrap_LayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS },
41606 { (char *)"LayoutConstraints_bottom_get", (PyCFunction) _wrap_LayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS },
41607 { (char *)"LayoutConstraints_width_get", (PyCFunction) _wrap_LayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS },
41608 { (char *)"LayoutConstraints_height_get", (PyCFunction) _wrap_LayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS },
41609 { (char *)"LayoutConstraints_centreX_get", (PyCFunction) _wrap_LayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS },
41610 { (char *)"LayoutConstraints_centreY_get", (PyCFunction) _wrap_LayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS },
41611 { (char *)"new_LayoutConstraints", (PyCFunction) _wrap_new_LayoutConstraints, METH_VARARGS | METH_KEYWORDS },
41612 { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS },
41613 { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction) _wrap_LayoutConstraints_AreSatisfied, METH_VARARGS | METH_KEYWORDS },
41614 { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS },
41615 { NULL, NULL }
41616};
41617
41618
41619/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
41620
41621static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) {
41622 return (void *)((wxSizerItem *) ((wxGBSizerItem *) x));
41623}
41624static void *_p_wxBoxSizerTo_p_wxSizer(void *x) {
41625 return (void *)((wxSizer *) ((wxBoxSizer *) x));
41626}
41627static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) {
41628 return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x));
41629}
41630static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) {
41631 return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
41632}
41633static void *_p_wxGridSizerTo_p_wxSizer(void *x) {
41634 return (void *)((wxSizer *) ((wxGridSizer *) x));
41635}
41636static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) {
41637 return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x));
41638}
41639static void *_p_wxPySizerTo_p_wxSizer(void *x) {
41640 return (void *)((wxSizer *) ((wxPySizer *) x));
41641}
41642static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) {
41643 return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x));
41644}
41645static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
41646 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
41647}
41648static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
41649 return (void *)((wxEvent *) ((wxMenuEvent *) x));
41650}
41651static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
41652 return (void *)((wxEvent *) ((wxCloseEvent *) x));
41653}
41654static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
41655 return (void *)((wxEvent *) ((wxMouseEvent *) x));
41656}
41657static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
41658 return (void *)((wxEvent *) ((wxEraseEvent *) x));
41659}
41660static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
41661 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
41662}
41663static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
41664 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
41665}
41666static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
41667 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
41668}
41669static void *_p_wxPyEventTo_p_wxEvent(void *x) {
41670 return (void *)((wxEvent *) ((wxPyEvent *) x));
41671}
41672static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
41673 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
41674}
41675static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
41676 return (void *)((wxEvent *) ((wxIdleEvent *) x));
41677}
41678static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
41679 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
41680}
41681static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
41682 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
41683}
41684static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
41685 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
41686}
41687static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
41688 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
41689}
41690static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
41691 return (void *)((wxEvent *) ((wxActivateEvent *) x));
41692}
41693static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
41694 return (void *)((wxEvent *) ((wxSizeEvent *) x));
41695}
41696static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
41697 return (void *)((wxEvent *) ((wxMoveEvent *) x));
41698}
41699static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
41700 return (void *)((wxEvent *) ((wxPaintEvent *) x));
41701}
41702static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
41703 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
41704}
41705static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
41706 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
41707}
41708static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
41709 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
41710}
41711static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
41712 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
41713}
41714static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
41715 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
41716}
41717static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
41718 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
41719}
41720static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
41721 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
41722}
41723static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
41724 return (void *)((wxEvent *) ((wxFocusEvent *) x));
41725}
41726static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
41727 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
41728}
41729static void *_p_wxShowEventTo_p_wxEvent(void *x) {
41730 return (void *)((wxEvent *) ((wxShowEvent *) x));
41731}
41732static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
41733 return (void *)((wxEvent *) ((wxCommandEvent *) x));
41734}
41735static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
41736 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
41737}
41738static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
41739 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
41740}
41741static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
41742 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
41743}
41744static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
41745 return (void *)((wxEvent *) ((wxKeyEvent *) x));
41746}
41747static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
41748 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
41749}
41750static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) {
41751 return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x));
41752}
41753static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) {
41754 return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x));
41755}
41756static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) {
41757 return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x));
41758}
41759static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
41760 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
41761}
41762static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
41763 return (void *)((wxControl *) ((wxControlWithItems *) x));
41764}
41765static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
41766 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
41767}
41768static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
41769 return (void *)((wxEvtHandler *) ((wxWindow *) x));
41770}
41771static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
41772 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
41773}
41774static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
41775 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
41776}
41777static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
41778 return (void *)((wxEvtHandler *) ((wxValidator *) x));
41779}
41780static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
41781 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
41782}
41783static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
41784 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
41785}
41786static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
41787 return (void *)((wxEvtHandler *) ((wxMenu *) x));
41788}
41789static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) {
41790 return (void *)((wxCURHandler *) ((wxANIHandler *) x));
41791}
41792static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) {
41793 return (void *)((wxICOHandler *) ((wxCURHandler *) x));
41794}
41795static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) {
41796 return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x));
41797}
41798static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) {
41799 return (void *)((wxBMPHandler *) ((wxICOHandler *) x));
41800}
41801static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) {
41802 return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x));
41803}
41804static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) {
41805 return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
41806}
41807static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) {
41808 return (void *)((wxImageHandler *) ((wxBMPHandler *) x));
41809}
41810static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) {
41811 return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x));
41812}
41813static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) {
41814 return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
41815}
41816static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) {
41817 return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
41818}
41819static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) {
41820 return (void *)((wxImageHandler *) ((wxPNGHandler *) x));
41821}
41822static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) {
41823 return (void *)((wxImageHandler *) ((wxGIFHandler *) x));
41824}
41825static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) {
41826 return (void *)((wxImageHandler *) ((wxPCXHandler *) x));
41827}
41828static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) {
41829 return (void *)((wxImageHandler *) ((wxJPEGHandler *) x));
41830}
41831static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) {
41832 return (void *)((wxImageHandler *) ((wxPNMHandler *) x));
41833}
41834static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) {
41835 return (void *)((wxImageHandler *) ((wxXPMHandler *) x));
41836}
41837static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) {
41838 return (void *)((wxImageHandler *) ((wxTIFFHandler *) x));
41839}
41840static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) {
41841 return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x));
41842}
41843static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) {
41844 return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x));
41845}
41846static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) {
41847 return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x));
41848}
41849static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) {
41850 return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x));
41851}
41852static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
41853 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
41854}
41855static void *_p_wxMenuEventTo_p_wxObject(void *x) {
41856 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
41857}
41858static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
41859 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
41860}
41861static void *_p_wxEraseEventTo_p_wxObject(void *x) {
41862 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
41863}
41864static void *_p_wxMouseEventTo_p_wxObject(void *x) {
41865 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
41866}
41867static void *_p_wxCloseEventTo_p_wxObject(void *x) {
41868 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
41869}
41870static void *_p_wxValidatorTo_p_wxObject(void *x) {
41871 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
41872}
41873static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
41874 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
41875}
41876static void *_p_wxMenuBarTo_p_wxObject(void *x) {
41877 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
41878}
41879static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
41880 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
41881}
41882static void *_p_wxSizerTo_p_wxObject(void *x) {
41883 return (void *)((wxObject *) ((wxSizer *) x));
41884}
41885static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
41886 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
41887}
41888static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
41889 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
41890}
41891static void *_p_wxMenuTo_p_wxObject(void *x) {
41892 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
41893}
41894static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
41895 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
41896}
41897static void *_p_wxImageTo_p_wxObject(void *x) {
41898 return (void *)((wxObject *) ((wxImage *) x));
41899}
41900static void *_p_wxScrollEventTo_p_wxObject(void *x) {
41901 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
41902}
41903static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
41904 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
41905}
41906static void *_p_wxPyEventTo_p_wxObject(void *x) {
41907 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
41908}
41909static void *_p_wxWindowTo_p_wxObject(void *x) {
41910 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
41911}
41912static void *_p_wxControlTo_p_wxObject(void *x) {
41913 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
41914}
41915static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
41916 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
41917}
41918static void *_p_wxGridSizerTo_p_wxObject(void *x) {
41919 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
41920}
41921static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
41922 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
41923}
41924static void *_p_wxPyAppTo_p_wxObject(void *x) {
41925 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
41926}
41927static void *_p_wxEventTo_p_wxObject(void *x) {
41928 return (void *)((wxObject *) ((wxEvent *) x));
41929}
41930static void *_p_wxActivateEventTo_p_wxObject(void *x) {
41931 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
41932}
41933static void *_p_wxMoveEventTo_p_wxObject(void *x) {
41934 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
41935}
41936static void *_p_wxSizeEventTo_p_wxObject(void *x) {
41937 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
41938}
41939static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
41940 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
41941}
41942static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
41943 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
41944}
41945static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
41946 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
41947}
41948static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
41949 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
41950}
41951static void *_p_wxIdleEventTo_p_wxObject(void *x) {
41952 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
41953}
41954static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
41955 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
41956}
41957static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
41958 return (void *)((wxObject *) ((wxEvtHandler *) x));
41959}
41960static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
41961 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
41962}
41963static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
41964 return (void *)((wxObject *) ((wxImageHandler *) x));
41965}
41966static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
41967 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
41968}
41969static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
41970 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
41971}
41972static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
41973 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
41974}
41975static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
41976 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
41977}
41978static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
41979 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
41980}
41981static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
41982 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
41983}
41984static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
41985 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
41986}
41987static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
41988 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
41989}
41990static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
41991 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
41992}
41993static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
41994 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
41995}
41996static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
41997 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
41998}
41999static void *_p_wxPaintEventTo_p_wxObject(void *x) {
42000 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
42001}
42002static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
42003 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
42004}
42005static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
42006 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
42007}
42008static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
42009 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
42010}
42011static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
42012 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
42013}
42014static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
42015 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
42016}
42017static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
42018 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
42019}
42020static void *_p_wxFileSystemTo_p_wxObject(void *x) {
42021 return (void *)((wxObject *) ((wxFileSystem *) x));
42022}
42023static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
42024 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
42025}
42026static void *_p_wxFocusEventTo_p_wxObject(void *x) {
42027 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
42028}
42029static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
42030 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
42031}
42032static void *_p_wxSizerItemTo_p_wxObject(void *x) {
42033 return (void *)((wxObject *) ((wxSizerItem *) x));
42034}
42035static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
42036 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
42037}
42038static void *_p_wxShowEventTo_p_wxObject(void *x) {
42039 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
42040}
42041static void *_p_wxFSFileTo_p_wxObject(void *x) {
42042 return (void *)((wxObject *) ((wxFSFile *) x));
42043}
42044static void *_p_wxCommandEventTo_p_wxObject(void *x) {
42045 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
42046}
42047static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
42048 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
42049}
42050static void *_p_wxKeyEventTo_p_wxObject(void *x) {
42051 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
42052}
42053static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
42054 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
42055}
42056static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
42057 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
42058}
42059static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
42060 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
42061}
42062static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
42063 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
42064}
42065static void *_p_wxMenuItemTo_p_wxObject(void *x) {
42066 return (void *)((wxObject *) ((wxMenuItem *) x));
42067}
42068static void *_p_wxPySizerTo_p_wxObject(void *x) {
42069 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
42070}
42071static void *_p_wxControlTo_p_wxWindow(void *x) {
42072 return (void *)((wxWindow *) ((wxControl *) x));
42073}
42074static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
42075 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
42076}
42077static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
42078 return (void *)((wxWindow *) ((wxMenuBar *) x));
42079}
42080static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
42081 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
42082}
42083static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
42084 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
42085}
42086static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
42087 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
42088}
42089static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
42090 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
42091}
42092static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
42093 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
42094}
42095static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
42096 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
42097}
42098static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
42099 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
42100}
42101static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
42102 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
42103}
42104static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
42105 return (void *)((wxValidator *) ((wxPyValidator *) x));
42106}
42107static swig_type_info _swigt__p_wxLayoutConstraints[] = {{"_p_wxLayoutConstraints", 0, "wxLayoutConstraints *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42108static swig_type_info _swigt__p_wxRealPoint[] = {{"_p_wxRealPoint", 0, "wxRealPoint *", 0, 0, 0, 0},{"_p_wxRealPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42109static swig_type_info _swigt__p_wxSizerItem[] = {{"_p_wxSizerItem", 0, "wxSizerItem *", 0, 0, 0, 0},{"_p_wxSizerItem", 0, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxSizerItem, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42110static swig_type_info _swigt__p_wxGBSizerItem[] = {{"_p_wxGBSizerItem", 0, "wxGBSizerItem *", 0, 0, 0, 0},{"_p_wxGBSizerItem", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42111static swig_type_info _swigt__p_wxScrollEvent[] = {{"_p_wxScrollEvent", 0, "wxScrollEvent *", 0, 0, 0, 0},{"_p_wxScrollEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42112static swig_type_info _swigt__p_wxIndividualLayoutConstraint[] = {{"_p_wxIndividualLayoutConstraint", 0, "wxIndividualLayoutConstraint *", 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42113static swig_type_info _swigt__p_wxSizer[] = {{"_p_wxSizer", 0, "wxSizer *", 0, 0, 0, 0},{"_p_wxSizer", 0, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxSizer, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42114static swig_type_info _swigt__p_wxBoxSizer[] = {{"_p_wxBoxSizer", 0, "wxBoxSizer *", 0, 0, 0, 0},{"_p_wxBoxSizer", 0, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxBoxSizer, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42115static swig_type_info _swigt__p_wxStaticBoxSizer[] = {{"_p_wxStaticBoxSizer", 0, "wxStaticBoxSizer *", 0, 0, 0, 0},{"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42116static swig_type_info _swigt__p_wxGridBagSizer[] = {{"_p_wxGridBagSizer", 0, "wxGridBagSizer *", 0, 0, 0, 0},{"_p_wxGridBagSizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42117static swig_type_info _swigt__p_wxAcceleratorEntry[] = {{"_p_wxAcceleratorEntry", 0, "wxAcceleratorEntry *", 0, 0, 0, 0},{"_p_wxAcceleratorEntry", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42118static swig_type_info _swigt__p_wxUpdateUIEvent[] = {{"_p_wxUpdateUIEvent", 0, "wxUpdateUIEvent *", 0, 0, 0, 0},{"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42119static swig_type_info _swigt__p_wxMenu[] = {{"_p_wxMenu", 0, "wxMenu *", 0, 0, 0, 0},{"_p_wxMenu", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42120static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42121static swig_type_info _swigt__p_wxGridSizer[] = {{"_p_wxGridSizer", 0, "wxGridSizer *", 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxGridSizer, 0, 0, 0, 0, 0},{"_p_wxGridSizer", 0, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxGridSizer, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42122static swig_type_info _swigt__p_wxFlexGridSizer[] = {{"_p_wxFlexGridSizer", 0, "wxFlexGridSizer *", 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxFlexGridSizer, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42123static swig_type_info _swigt__p_wxInitDialogEvent[] = {{"_p_wxInitDialogEvent", 0, "wxInitDialogEvent *", 0, 0, 0, 0},{"_p_wxInitDialogEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42124static swig_type_info _swigt__p_wxItemContainer[] = {{"_p_wxItemContainer", 0, "wxItemContainer *", 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxItemContainer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42125static swig_type_info _swigt__p_wxNcPaintEvent[] = {{"_p_wxNcPaintEvent", 0, "wxNcPaintEvent *", 0, 0, 0, 0},{"_p_wxNcPaintEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42126static swig_type_info _swigt__p_wxPaintEvent[] = {{"_p_wxPaintEvent", 0, "wxPaintEvent *", 0, 0, 0, 0},{"_p_wxPaintEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42127static swig_type_info _swigt__p_wxSysColourChangedEvent[] = {{"_p_wxSysColourChangedEvent", 0, "wxSysColourChangedEvent *", 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42128static swig_type_info _swigt__p_wxMouseCaptureChangedEvent[] = {{"_p_wxMouseCaptureChangedEvent", 0, "wxMouseCaptureChangedEvent *", 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42129static swig_type_info _swigt__p_wxDisplayChangedEvent[] = {{"_p_wxDisplayChangedEvent", 0, "wxDisplayChangedEvent *", 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42130static swig_type_info _swigt__p_wxPaletteChangedEvent[] = {{"_p_wxPaletteChangedEvent", 0, "wxPaletteChangedEvent *", 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42131static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0, 0, 0, 0},{"_p_wxControl", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42132static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0, 0, 0, 0},{"_p_wxFont", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42133static swig_type_info _swigt__p_wxMenuBarBase[] = {{"_p_wxMenuBarBase", 0, "wxMenuBarBase *", 0, 0, 0, 0},{"_p_wxMenuBarBase", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42134static swig_type_info _swigt__p_wxSetCursorEvent[] = {{"_p_wxSetCursorEvent", 0, "wxSetCursorEvent *", 0, 0, 0, 0},{"_p_wxSetCursorEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42135static swig_type_info _swigt__p_wxFSFile[] = {{"_p_wxFSFile", 0, "wxFSFile *", 0, 0, 0, 0},{"_p_wxFSFile", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42136static swig_type_info _swigt__p_wxCaret[] = {{"_p_wxCaret", 0, "wxCaret *", 0, 0, 0, 0},{"_p_wxCaret", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42137static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0, 0, 0, 0},{"_p_wxRegion", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42138static swig_type_info _swigt__p_wxPoint2D[] = {{"_p_wxPoint2D", 0, "wxPoint2D *", 0, 0, 0, 0},{"_p_wxPoint2D", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42139static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42140static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42141static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0, 0, 0, 0},{"_p_wxDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42142static swig_type_info _swigt__p_wxPySizer[] = {{"_p_wxPySizer", 0, "wxPySizer *", 0, 0, 0, 0},{"_p_wxPySizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42143static swig_type_info _swigt__p_wxVisualAttributes[] = {{"_p_wxVisualAttributes", 0, "wxVisualAttributes *", 0, 0, 0, 0},{"_p_wxVisualAttributes", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42144static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0, 0, 0, 0},{"_p_wxNotifyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42145static swig_type_info _swigt__p_wxPyEvent[] = {{"_p_wxPyEvent", 0, "wxPyEvent *", 0, 0, 0, 0},{"_p_wxPyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42146static swig_type_info _swigt__p_wxPropagationDisabler[] = {{"_p_wxPropagationDisabler", 0, "wxPropagationDisabler *", 0, 0, 0, 0},{"_p_wxPropagationDisabler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42147static swig_type_info _swigt__p_wxAppTraits[] = {{"_p_wxAppTraits", 0, "wxAppTraits *", 0, 0, 0, 0},{"_p_wxAppTraits", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42148static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0, 0, 0, 0},{"_p_wxArrayString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42149static swig_type_info _swigt__p_wxShowEvent[] = {{"_p_wxShowEvent", 0, "wxShowEvent *", 0, 0, 0, 0},{"_p_wxShowEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42150static swig_type_info _swigt__p_wxToolTip[] = {{"_p_wxToolTip", 0, "wxToolTip *", 0, 0, 0, 0},{"_p_wxToolTip", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42151static swig_type_info _swigt__p_wxMaximizeEvent[] = {{"_p_wxMaximizeEvent", 0, "wxMaximizeEvent *", 0, 0, 0, 0},{"_p_wxMaximizeEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42152static swig_type_info _swigt__p_wxIconizeEvent[] = {{"_p_wxIconizeEvent", 0, "wxIconizeEvent *", 0, 0, 0, 0},{"_p_wxIconizeEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42153static swig_type_info _swigt__p_wxActivateEvent[] = {{"_p_wxActivateEvent", 0, "wxActivateEvent *", 0, 0, 0, 0},{"_p_wxActivateEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42154static swig_type_info _swigt__p_wxMoveEvent[] = {{"_p_wxMoveEvent", 0, "wxMoveEvent *", 0, 0, 0, 0},{"_p_wxMoveEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42155static swig_type_info _swigt__p_wxSizeEvent[] = {{"_p_wxSizeEvent", 0, "wxSizeEvent *", 0, 0, 0, 0},{"_p_wxSizeEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42156static swig_type_info _swigt__p_wxQueryNewPaletteEvent[] = {{"_p_wxQueryNewPaletteEvent", 0, "wxQueryNewPaletteEvent *", 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42157static swig_type_info _swigt__p_wxWindowCreateEvent[] = {{"_p_wxWindowCreateEvent", 0, "wxWindowCreateEvent *", 0, 0, 0, 0},{"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42158static swig_type_info _swigt__p_wxIdleEvent[] = {{"_p_wxIdleEvent", 0, "wxIdleEvent *", 0, 0, 0, 0},{"_p_wxIdleEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42159static swig_type_info _swigt__p_wxMenuItem[] = {{"_p_wxMenuItem", 0, "wxMenuItem *", 0, 0, 0, 0},{"_p_wxMenuItem", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42160static swig_type_info _swigt__p_wxStaticBox[] = {{"_p_wxStaticBox", 0, "wxStaticBox *", 0, 0, 0, 0},{"_p_wxStaticBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42161static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0, 0, 0, 0},{"_p_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42162static swig_type_info _swigt__p_wxTIFFHandler[] = {{"_p_wxTIFFHandler", 0, "wxTIFFHandler *", 0, 0, 0, 0},{"_p_wxTIFFHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42163static swig_type_info _swigt__p_wxXPMHandler[] = {{"_p_wxXPMHandler", 0, "wxXPMHandler *", 0, 0, 0, 0},{"_p_wxXPMHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42164static swig_type_info _swigt__p_wxPNMHandler[] = {{"_p_wxPNMHandler", 0, "wxPNMHandler *", 0, 0, 0, 0},{"_p_wxPNMHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42165static swig_type_info _swigt__p_wxJPEGHandler[] = {{"_p_wxJPEGHandler", 0, "wxJPEGHandler *", 0, 0, 0, 0},{"_p_wxJPEGHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42166static swig_type_info _swigt__p_wxPCXHandler[] = {{"_p_wxPCXHandler", 0, "wxPCXHandler *", 0, 0, 0, 0},{"_p_wxPCXHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42167static swig_type_info _swigt__p_wxGIFHandler[] = {{"_p_wxGIFHandler", 0, "wxGIFHandler *", 0, 0, 0, 0},{"_p_wxGIFHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42168static swig_type_info _swigt__p_wxPNGHandler[] = {{"_p_wxPNGHandler", 0, "wxPNGHandler *", 0, 0, 0, 0},{"_p_wxPNGHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42169static swig_type_info _swigt__p_wxANIHandler[] = {{"_p_wxANIHandler", 0, "wxANIHandler *", 0, 0, 0, 0},{"_p_wxANIHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42170static swig_type_info _swigt__p_wxMemoryFSHandler[] = {{"_p_wxMemoryFSHandler", 0, "wxMemoryFSHandler *", 0, 0, 0, 0},{"_p_wxMemoryFSHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42171static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42172static swig_type_info _swigt__p_wxCURHandler[] = {{"_p_wxCURHandler", 0, "wxCURHandler *", 0, 0, 0, 0},{"_p_wxCURHandler", 0, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxCURHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42173static swig_type_info _swigt__p_wxICOHandler[] = {{"_p_wxICOHandler", 0, "wxICOHandler *", 0, 0, 0, 0},{"_p_wxICOHandler", 0, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxICOHandler, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxICOHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42174static swig_type_info _swigt__p_wxBMPHandler[] = {{"_p_wxBMPHandler", 0, "wxBMPHandler *", 0, 0, 0, 0},{"_p_wxBMPHandler", 0, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxBMPHandler, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxBMPHandler, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxBMPHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42175static swig_type_info _swigt__p_wxImageHandler[] = {{"_p_wxImageHandler", 0, "wxImageHandler *", 0, 0, 0, 0},{"_p_wxImageHandler", 0, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxImageHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42176static swig_type_info _swigt__p_wxFileSystemHandler[] = {{"_p_wxFileSystemHandler", 0, "wxFileSystemHandler *", 0, 0, 0, 0},{"_p_wxFileSystemHandler", 0, 0, 0, 0, 0, 0},{"_p_wxPyFileSystemHandler", _p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler, 0, 0, 0, 0, 0},{"_p_wxInternetFSHandler", _p_wxInternetFSHandlerTo_p_wxFileSystemHandler, 0, 0, 0, 0, 0},{"_p_wxZipFSHandler", _p_wxZipFSHandlerTo_p_wxFileSystemHandler, 0, 0, 0, 0, 0},{"_p_wxMemoryFSHandler", _p_wxMemoryFSHandlerTo_p_wxFileSystemHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42177static swig_type_info _swigt__p_wxPyFileSystemHandler[] = {{"_p_wxPyFileSystemHandler", 0, "wxPyFileSystemHandler *", 0, 0, 0, 0},{"_p_wxPyFileSystemHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42178static swig_type_info _swigt__p_wxInternetFSHandler[] = {{"_p_wxInternetFSHandler", 0, "wxInternetFSHandler *", 0, 0, 0, 0},{"_p_wxInternetFSHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42179static swig_type_info _swigt__p_wxZipFSHandler[] = {{"_p_wxZipFSHandler", 0, "wxZipFSHandler *", 0, 0, 0, 0},{"_p_wxZipFSHandler", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42180static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0, 0, 0, 0},{"_p_wxRect", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42181static swig_type_info _swigt__p_wxGBSpan[] = {{"_p_wxGBSpan", 0, "wxGBSpan *", 0, 0, 0, 0},{"_p_wxGBSpan", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42182static swig_type_info _swigt__p_wxPropagateOnce[] = {{"_p_wxPropagateOnce", 0, "wxPropagateOnce *", 0, 0, 0, 0},{"_p_wxPropagateOnce", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42183static swig_type_info _swigt__p_wxAcceleratorTable[] = {{"_p_wxAcceleratorTable", 0, "wxAcceleratorTable *", 0, 0, 0, 0},{"_p_wxAcceleratorTable", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42184static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42185static swig_type_info _swigt__p_wxGBPosition[] = {{"_p_wxGBPosition", 0, "wxGBPosition *", 0, 0, 0, 0},{"_p_wxGBPosition", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42186static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0, 0, 0, 0},{"_p_wxImage", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42187static swig_type_info _swigt__p_wxFrame[] = {{"_p_wxFrame", 0, "wxFrame *", 0, 0, 0, 0},{"_p_wxFrame", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42188static swig_type_info _swigt__p_wxScrollWinEvent[] = {{"_p_wxScrollWinEvent", 0, "wxScrollWinEvent *", 0, 0, 0, 0},{"_p_wxScrollWinEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42189static swig_type_info _swigt__p_wxImageHistogram[] = {{"_p_wxImageHistogram", 0, "wxImageHistogram *", 0, 0, 0, 0},{"_p_wxImageHistogram", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42190static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "unsigned char *|byte *", 0, 0, 0, 0},{"_p_unsigned_char", 0, 0, 0, 0, 0, 0},{"_p_byte", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42191static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0, 0, 0, 0},{"_p_wxPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42192static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0, 0, 0, 0},{"_p_wxCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42193static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42194static swig_type_info _swigt__p_wxPyInputStream[] = {{"_p_wxPyInputStream", 0, "wxPyInputStream *", 0, 0, 0, 0},{"_p_wxPyInputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42195static swig_type_info _swigt__p_wxOutputStream[] = {{"_p_wxOutputStream", 0, "wxOutputStream *", 0, 0, 0, 0},{"_p_wxOutputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42196static swig_type_info _swigt__p_wxInputStream[] = {{"_p_wxInputStream", 0, "wxInputStream *", 0, 0, 0, 0},{"_p_wxInputStream", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42197static swig_type_info _swigt__p_wxDateTime[] = {{"_p_wxDateTime", 0, "wxDateTime *", 0, 0, 0, 0},{"_p_wxDateTime", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42198static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0, 0, 0, 0},{"_p_wxKeyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42199static swig_type_info _swigt__p_wxNavigationKeyEvent[] = {{"_p_wxNavigationKeyEvent", 0, "wxNavigationKeyEvent *", 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42200static swig_type_info _swigt__p_wxWindowDestroyEvent[] = {{"_p_wxWindowDestroyEvent", 0, "wxWindowDestroyEvent *", 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42201static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42202static swig_type_info _swigt__p_wxMenuBar[] = {{"_p_wxMenuBar", 0, "wxMenuBar *", 0, 0, 0, 0},{"_p_wxMenuBar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42203static swig_type_info _swigt__p_wxFileSystem[] = {{"_p_wxFileSystem", 0, "wxFileSystem *", 0, 0, 0, 0},{"_p_wxFileSystem", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42204static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0, 0, 0, 0},{"_p_wxBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42205static swig_type_info _swigt__p_wxMenuEvent[] = {{"_p_wxMenuEvent", 0, "wxMenuEvent *", 0, 0, 0, 0},{"_p_wxMenuEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42206static swig_type_info _swigt__p_wxContextMenuEvent[] = {{"_p_wxContextMenuEvent", 0, "wxContextMenuEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42207static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0, 0, 0, 0},{"_p_unsigned_char", 0, 0, 0, 0, 0, 0},{"_p_byte", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42208static swig_type_info _swigt__p_wxCloseEvent[] = {{"_p_wxCloseEvent", 0, "wxCloseEvent *", 0, 0, 0, 0},{"_p_wxCloseEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42209static swig_type_info _swigt__p_wxEraseEvent[] = {{"_p_wxEraseEvent", 0, "wxEraseEvent *", 0, 0, 0, 0},{"_p_wxEraseEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42210static swig_type_info _swigt__p_wxMouseEvent[] = {{"_p_wxMouseEvent", 0, "wxMouseEvent *", 0, 0, 0, 0},{"_p_wxMouseEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42211static swig_type_info _swigt__p_wxPyApp[] = {{"_p_wxPyApp", 0, "wxPyApp *", 0, 0, 0, 0},{"_p_wxPyApp", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42212static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", 0, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42213static swig_type_info _swigt__p_wxPyCommandEvent[] = {{"_p_wxPyCommandEvent", 0, "wxPyCommandEvent *", 0, 0, 0, 0},{"_p_wxPyCommandEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42214static swig_type_info _swigt__p_wxPyDropTarget[] = {{"_p_wxPyDropTarget", 0, "wxPyDropTarget *", 0, 0, 0, 0},{"_p_wxPyDropTarget", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42215static swig_type_info _swigt__p_wxChildFocusEvent[] = {{"_p_wxChildFocusEvent", 0, "wxChildFocusEvent *", 0, 0, 0, 0},{"_p_wxChildFocusEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42216static swig_type_info _swigt__p_wxFocusEvent[] = {{"_p_wxFocusEvent", 0, "wxFocusEvent *", 0, 0, 0, 0},{"_p_wxFocusEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42217static swig_type_info _swigt__p_wxDropFilesEvent[] = {{"_p_wxDropFilesEvent", 0, "wxDropFilesEvent *", 0, 0, 0, 0},{"_p_wxDropFilesEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42218static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0, 0, 0, 0},{"_p_wxControlWithItems", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42219static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42220static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0, 0, 0, 0},{"_p_wxValidator", 0, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42221static swig_type_info _swigt__p_wxPyValidator[] = {{"_p_wxPyValidator", 0, "wxPyValidator *", 0, 0, 0, 0},{"_p_wxPyValidator", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
42222
42223static swig_type_info *swig_types_initial[] = {
42224_swigt__p_wxLayoutConstraints,
42225_swigt__p_wxRealPoint,
42226_swigt__p_wxSizerItem,
42227_swigt__p_wxGBSizerItem,
42228_swigt__p_wxScrollEvent,
42229_swigt__p_wxIndividualLayoutConstraint,
42230_swigt__p_wxSizer,
42231_swigt__p_wxBoxSizer,
42232_swigt__p_wxStaticBoxSizer,
42233_swigt__p_wxGridBagSizer,
42234_swigt__p_wxAcceleratorEntry,
42235_swigt__p_wxUpdateUIEvent,
42236_swigt__p_wxMenu,
42237_swigt__p_wxEvent,
42238_swigt__p_wxGridSizer,
42239_swigt__p_wxFlexGridSizer,
42240_swigt__p_wxInitDialogEvent,
42241_swigt__p_wxItemContainer,
42242_swigt__p_wxNcPaintEvent,
42243_swigt__p_wxPaintEvent,
42244_swigt__p_wxSysColourChangedEvent,
42245_swigt__p_wxMouseCaptureChangedEvent,
42246_swigt__p_wxDisplayChangedEvent,
42247_swigt__p_wxPaletteChangedEvent,
42248_swigt__p_wxControl,
42249_swigt__p_wxFont,
42250_swigt__p_wxMenuBarBase,
42251_swigt__p_wxSetCursorEvent,
42252_swigt__p_wxFSFile,
42253_swigt__p_wxCaret,
42254_swigt__p_wxRegion,
42255_swigt__p_wxPoint2D,
42256_swigt__p_int,
42257_swigt__p_wxSize,
42258_swigt__p_wxDC,
42259_swigt__p_wxPySizer,
42260_swigt__p_wxVisualAttributes,
42261_swigt__p_wxNotifyEvent,
42262_swigt__p_wxPyEvent,
42263_swigt__p_wxPropagationDisabler,
42264_swigt__p_wxAppTraits,
42265_swigt__p_wxArrayString,
42266_swigt__p_wxShowEvent,
42267_swigt__p_wxToolTip,
42268_swigt__p_wxMaximizeEvent,
42269_swigt__p_wxIconizeEvent,
42270_swigt__p_wxActivateEvent,
42271_swigt__p_wxMoveEvent,
42272_swigt__p_wxSizeEvent,
42273_swigt__p_wxQueryNewPaletteEvent,
42274_swigt__p_wxWindowCreateEvent,
42275_swigt__p_wxIdleEvent,
42276_swigt__p_wxMenuItem,
42277_swigt__p_wxStaticBox,
42278_swigt__p_long,
42279_swigt__p_wxTIFFHandler,
42280_swigt__p_wxXPMHandler,
42281_swigt__p_wxPNMHandler,
42282_swigt__p_wxJPEGHandler,
42283_swigt__p_wxPCXHandler,
42284_swigt__p_wxGIFHandler,
42285_swigt__p_wxPNGHandler,
42286_swigt__p_wxANIHandler,
42287_swigt__p_wxMemoryFSHandler,
42288_swigt__p_wxEvtHandler,
42289_swigt__p_wxCURHandler,
42290_swigt__p_wxICOHandler,
42291_swigt__p_wxBMPHandler,
42292_swigt__p_wxImageHandler,
42293_swigt__p_wxFileSystemHandler,
42294_swigt__p_wxPyFileSystemHandler,
42295_swigt__p_wxInternetFSHandler,
42296_swigt__p_wxZipFSHandler,
42297_swigt__p_wxRect,
42298_swigt__p_wxGBSpan,
42299_swigt__p_wxPropagateOnce,
42300_swigt__p_wxAcceleratorTable,
42301_swigt__p_char,
42302_swigt__p_wxGBPosition,
42303_swigt__p_wxImage,
42304_swigt__p_wxFrame,
42305_swigt__p_wxScrollWinEvent,
42306_swigt__p_wxImageHistogram,
42307_swigt__p_byte,
42308_swigt__p_wxPoint,
42309_swigt__p_wxCursor,
42310_swigt__p_wxObject,
42311_swigt__p_wxPyInputStream,
42312_swigt__p_wxOutputStream,
42313_swigt__p_wxInputStream,
42314_swigt__p_wxDateTime,
42315_swigt__p_wxKeyEvent,
42316_swigt__p_wxNavigationKeyEvent,
42317_swigt__p_wxWindowDestroyEvent,
42318_swigt__p_wxWindow,
42319_swigt__p_wxMenuBar,
42320_swigt__p_wxFileSystem,
42321_swigt__p_wxBitmap,
42322_swigt__p_wxMenuEvent,
42323_swigt__p_wxContextMenuEvent,
42324_swigt__p_unsigned_char,
42325_swigt__p_wxCloseEvent,
42326_swigt__p_wxEraseEvent,
42327_swigt__p_wxMouseEvent,
42328_swigt__p_wxPyApp,
42329_swigt__p_wxCommandEvent,
42330_swigt__p_wxPyCommandEvent,
42331_swigt__p_wxPyDropTarget,
42332_swigt__p_wxChildFocusEvent,
42333_swigt__p_wxFocusEvent,
42334_swigt__p_wxDropFilesEvent,
42335_swigt__p_wxControlWithItems,
42336_swigt__p_wxColour,
42337_swigt__p_wxValidator,
42338_swigt__p_wxPyValidator,
423390
42340};
42341
42342
42343/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
42344
42345static swig_const_info swig_const_table[] = {
42346{0}};
42347
42348#ifdef __cplusplus
42349}
42350#endif
42351
42352#ifdef __cplusplus
42353extern "C"
42354#endif
42355SWIGEXPORT(void) SWIG_init(void) {
42356 static PyObject *SWIG_globals = 0;
42357 static int typeinit = 0;
42358 PyObject *m, *d;
42359 int i;
42360 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
42361 m = Py_InitModule((char *) SWIG_name, SwigMethods);
42362 d = PyModule_GetDict(m);
42363
42364 if (!typeinit) {
42365 for (i = 0; swig_types_initial[i]; i++) {
42366 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
42367 }
42368 typeinit = 1;
42369 }
42370 SWIG_InstallConstants(d,swig_const_table);
42371
42372
42373#ifndef wxPyUSE_EXPORT
42374 // Make our API structure a CObject so other modules can import it
42375 // from this module.
42376 PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL);
42377 PyDict_SetItemString(d,"_wxPyCoreAPI", cobj);
42378 Py_XDECREF(cobj);
42379#endif
42380
42381 PyDict_SetItemString(d,"NOT_FOUND", SWIG_FromInt((int)wxNOT_FOUND));
42382 PyDict_SetItemString(d,"VSCROLL", SWIG_FromInt((int)wxVSCROLL));
42383 PyDict_SetItemString(d,"HSCROLL", SWIG_FromInt((int)wxHSCROLL));
42384 PyDict_SetItemString(d,"CAPTION", SWIG_FromInt((int)wxCAPTION));
42385 PyDict_SetItemString(d,"DOUBLE_BORDER", SWIG_FromInt((int)wxDOUBLE_BORDER));
42386 PyDict_SetItemString(d,"SUNKEN_BORDER", SWIG_FromInt((int)wxSUNKEN_BORDER));
42387 PyDict_SetItemString(d,"RAISED_BORDER", SWIG_FromInt((int)wxRAISED_BORDER));
42388 PyDict_SetItemString(d,"BORDER", SWIG_FromInt((int)wxBORDER));
42389 PyDict_SetItemString(d,"SIMPLE_BORDER", SWIG_FromInt((int)wxSIMPLE_BORDER));
42390 PyDict_SetItemString(d,"STATIC_BORDER", SWIG_FromInt((int)wxSTATIC_BORDER));
42391 PyDict_SetItemString(d,"TRANSPARENT_WINDOW", SWIG_FromInt((int)wxTRANSPARENT_WINDOW));
42392 PyDict_SetItemString(d,"NO_BORDER", SWIG_FromInt((int)wxNO_BORDER));
42393 PyDict_SetItemString(d,"TAB_TRAVERSAL", SWIG_FromInt((int)wxTAB_TRAVERSAL));
42394 PyDict_SetItemString(d,"WANTS_CHARS", SWIG_FromInt((int)wxWANTS_CHARS));
42395 PyDict_SetItemString(d,"POPUP_WINDOW", SWIG_FromInt((int)wxPOPUP_WINDOW));
42396 PyDict_SetItemString(d,"CENTER_FRAME", SWIG_FromInt((int)wxCENTER_FRAME));
42397 PyDict_SetItemString(d,"CENTRE_ON_SCREEN", SWIG_FromInt((int)wxCENTRE_ON_SCREEN));
42398 PyDict_SetItemString(d,"CENTER_ON_SCREEN", SWIG_FromInt((int)wxCENTER_ON_SCREEN));
42399 PyDict_SetItemString(d,"ED_CLIENT_MARGIN", SWIG_FromInt((int)wxED_CLIENT_MARGIN));
42400 PyDict_SetItemString(d,"ED_BUTTONS_BOTTOM", SWIG_FromInt((int)wxED_BUTTONS_BOTTOM));
42401 PyDict_SetItemString(d,"ED_BUTTONS_RIGHT", SWIG_FromInt((int)wxED_BUTTONS_RIGHT));
42402 PyDict_SetItemString(d,"ED_STATIC_LINE", SWIG_FromInt((int)wxED_STATIC_LINE));
42403 PyDict_SetItemString(d,"EXT_DIALOG_STYLE", SWIG_FromInt((int)wxEXT_DIALOG_STYLE));
42404 PyDict_SetItemString(d,"CLIP_CHILDREN", SWIG_FromInt((int)wxCLIP_CHILDREN));
42405 PyDict_SetItemString(d,"CLIP_SIBLINGS", SWIG_FromInt((int)wxCLIP_SIBLINGS));
42406 PyDict_SetItemString(d,"ALWAYS_SHOW_SB", SWIG_FromInt((int)wxALWAYS_SHOW_SB));
42407 PyDict_SetItemString(d,"RETAINED", SWIG_FromInt((int)wxRETAINED));
42408 PyDict_SetItemString(d,"BACKINGSTORE", SWIG_FromInt((int)wxBACKINGSTORE));
42409 PyDict_SetItemString(d,"COLOURED", SWIG_FromInt((int)wxCOLOURED));
42410 PyDict_SetItemString(d,"FIXED_LENGTH", SWIG_FromInt((int)wxFIXED_LENGTH));
42411 PyDict_SetItemString(d,"LB_NEEDED_SB", SWIG_FromInt((int)wxLB_NEEDED_SB));
42412 PyDict_SetItemString(d,"LB_ALWAYS_SB", SWIG_FromInt((int)wxLB_ALWAYS_SB));
42413 PyDict_SetItemString(d,"LB_SORT", SWIG_FromInt((int)wxLB_SORT));
42414 PyDict_SetItemString(d,"LB_SINGLE", SWIG_FromInt((int)wxLB_SINGLE));
42415 PyDict_SetItemString(d,"LB_MULTIPLE", SWIG_FromInt((int)wxLB_MULTIPLE));
42416 PyDict_SetItemString(d,"LB_EXTENDED", SWIG_FromInt((int)wxLB_EXTENDED));
42417 PyDict_SetItemString(d,"LB_OWNERDRAW", SWIG_FromInt((int)wxLB_OWNERDRAW));
42418 PyDict_SetItemString(d,"LB_HSCROLL", SWIG_FromInt((int)wxLB_HSCROLL));
42419 PyDict_SetItemString(d,"PROCESS_ENTER", SWIG_FromInt((int)wxPROCESS_ENTER));
42420 PyDict_SetItemString(d,"PASSWORD", SWIG_FromInt((int)wxPASSWORD));
42421 PyDict_SetItemString(d,"CB_SIMPLE", SWIG_FromInt((int)wxCB_SIMPLE));
42422 PyDict_SetItemString(d,"CB_DROPDOWN", SWIG_FromInt((int)wxCB_DROPDOWN));
42423 PyDict_SetItemString(d,"CB_SORT", SWIG_FromInt((int)wxCB_SORT));
42424 PyDict_SetItemString(d,"CB_READONLY", SWIG_FromInt((int)wxCB_READONLY));
42425 PyDict_SetItemString(d,"RA_HORIZONTAL", SWIG_FromInt((int)wxRA_HORIZONTAL));
42426 PyDict_SetItemString(d,"RA_VERTICAL", SWIG_FromInt((int)wxRA_VERTICAL));
42427 PyDict_SetItemString(d,"RA_SPECIFY_ROWS", SWIG_FromInt((int)wxRA_SPECIFY_ROWS));
42428 PyDict_SetItemString(d,"RA_SPECIFY_COLS", SWIG_FromInt((int)wxRA_SPECIFY_COLS));
42429 PyDict_SetItemString(d,"RB_GROUP", SWIG_FromInt((int)wxRB_GROUP));
42430 PyDict_SetItemString(d,"RB_SINGLE", SWIG_FromInt((int)wxRB_SINGLE));
42431 PyDict_SetItemString(d,"SL_HORIZONTAL", SWIG_FromInt((int)wxSL_HORIZONTAL));
42432 PyDict_SetItemString(d,"SL_VERTICAL", SWIG_FromInt((int)wxSL_VERTICAL));
42433 PyDict_SetItemString(d,"SL_AUTOTICKS", SWIG_FromInt((int)wxSL_AUTOTICKS));
42434 PyDict_SetItemString(d,"SL_LABELS", SWIG_FromInt((int)wxSL_LABELS));
42435 PyDict_SetItemString(d,"SL_LEFT", SWIG_FromInt((int)wxSL_LEFT));
42436 PyDict_SetItemString(d,"SL_TOP", SWIG_FromInt((int)wxSL_TOP));
42437 PyDict_SetItemString(d,"SL_RIGHT", SWIG_FromInt((int)wxSL_RIGHT));
42438 PyDict_SetItemString(d,"SL_BOTTOM", SWIG_FromInt((int)wxSL_BOTTOM));
42439 PyDict_SetItemString(d,"SL_BOTH", SWIG_FromInt((int)wxSL_BOTH));
42440 PyDict_SetItemString(d,"SL_SELRANGE", SWIG_FromInt((int)wxSL_SELRANGE));
42441 PyDict_SetItemString(d,"SB_HORIZONTAL", SWIG_FromInt((int)wxSB_HORIZONTAL));
42442 PyDict_SetItemString(d,"SB_VERTICAL", SWIG_FromInt((int)wxSB_VERTICAL));
42443 PyDict_SetItemString(d,"ST_SIZEGRIP", SWIG_FromInt((int)wxST_SIZEGRIP));
42444 PyDict_SetItemString(d,"ST_NO_AUTORESIZE", SWIG_FromInt((int)wxST_NO_AUTORESIZE));
42445 PyDict_SetItemString(d,"FLOOD_SURFACE", SWIG_FromInt((int)wxFLOOD_SURFACE));
42446 PyDict_SetItemString(d,"FLOOD_BORDER", SWIG_FromInt((int)wxFLOOD_BORDER));
42447 PyDict_SetItemString(d,"ODDEVEN_RULE", SWIG_FromInt((int)wxODDEVEN_RULE));
42448 PyDict_SetItemString(d,"WINDING_RULE", SWIG_FromInt((int)wxWINDING_RULE));
42449 PyDict_SetItemString(d,"TOOL_TOP", SWIG_FromInt((int)wxTOOL_TOP));
42450 PyDict_SetItemString(d,"TOOL_BOTTOM", SWIG_FromInt((int)wxTOOL_BOTTOM));
42451 PyDict_SetItemString(d,"TOOL_LEFT", SWIG_FromInt((int)wxTOOL_LEFT));
42452 PyDict_SetItemString(d,"TOOL_RIGHT", SWIG_FromInt((int)wxTOOL_RIGHT));
42453 PyDict_SetItemString(d,"OK", SWIG_FromInt((int)wxOK));
42454 PyDict_SetItemString(d,"YES_NO", SWIG_FromInt((int)wxYES_NO));
42455 PyDict_SetItemString(d,"CANCEL", SWIG_FromInt((int)wxCANCEL));
42456 PyDict_SetItemString(d,"YES", SWIG_FromInt((int)wxYES));
42457 PyDict_SetItemString(d,"NO", SWIG_FromInt((int)wxNO));
42458 PyDict_SetItemString(d,"NO_DEFAULT", SWIG_FromInt((int)wxNO_DEFAULT));
42459 PyDict_SetItemString(d,"YES_DEFAULT", SWIG_FromInt((int)wxYES_DEFAULT));
42460 PyDict_SetItemString(d,"ICON_EXCLAMATION", SWIG_FromInt((int)wxICON_EXCLAMATION));
42461 PyDict_SetItemString(d,"ICON_HAND", SWIG_FromInt((int)wxICON_HAND));
42462 PyDict_SetItemString(d,"ICON_QUESTION", SWIG_FromInt((int)wxICON_QUESTION));
42463 PyDict_SetItemString(d,"ICON_INFORMATION", SWIG_FromInt((int)wxICON_INFORMATION));
42464 PyDict_SetItemString(d,"ICON_STOP", SWIG_FromInt((int)wxICON_STOP));
42465 PyDict_SetItemString(d,"ICON_ASTERISK", SWIG_FromInt((int)wxICON_ASTERISK));
42466 PyDict_SetItemString(d,"ICON_MASK", SWIG_FromInt((int)wxICON_MASK));
42467 PyDict_SetItemString(d,"ICON_WARNING", SWIG_FromInt((int)wxICON_WARNING));
42468 PyDict_SetItemString(d,"ICON_ERROR", SWIG_FromInt((int)wxICON_ERROR));
42469 PyDict_SetItemString(d,"FORWARD", SWIG_FromInt((int)wxFORWARD));
42470 PyDict_SetItemString(d,"BACKWARD", SWIG_FromInt((int)wxBACKWARD));
42471 PyDict_SetItemString(d,"RESET", SWIG_FromInt((int)wxRESET));
42472 PyDict_SetItemString(d,"HELP", SWIG_FromInt((int)wxHELP));
42473 PyDict_SetItemString(d,"MORE", SWIG_FromInt((int)wxMORE));
42474 PyDict_SetItemString(d,"SETUP", SWIG_FromInt((int)wxSETUP));
42475 PyDict_SetItemString(d,"SIZE_AUTO_WIDTH", SWIG_FromInt((int)wxSIZE_AUTO_WIDTH));
42476 PyDict_SetItemString(d,"SIZE_AUTO_HEIGHT", SWIG_FromInt((int)wxSIZE_AUTO_HEIGHT));
42477 PyDict_SetItemString(d,"SIZE_AUTO", SWIG_FromInt((int)wxSIZE_AUTO));
42478 PyDict_SetItemString(d,"SIZE_USE_EXISTING", SWIG_FromInt((int)wxSIZE_USE_EXISTING));
42479 PyDict_SetItemString(d,"SIZE_ALLOW_MINUS_ONE", SWIG_FromInt((int)wxSIZE_ALLOW_MINUS_ONE));
42480 PyDict_SetItemString(d,"PORTRAIT", SWIG_FromInt((int)wxPORTRAIT));
42481 PyDict_SetItemString(d,"LANDSCAPE", SWIG_FromInt((int)wxLANDSCAPE));
42482 PyDict_SetItemString(d,"PRINT_QUALITY_HIGH", SWIG_FromInt((int)wxPRINT_QUALITY_HIGH));
42483 PyDict_SetItemString(d,"PRINT_QUALITY_MEDIUM", SWIG_FromInt((int)wxPRINT_QUALITY_MEDIUM));
42484 PyDict_SetItemString(d,"PRINT_QUALITY_LOW", SWIG_FromInt((int)wxPRINT_QUALITY_LOW));
42485 PyDict_SetItemString(d,"PRINT_QUALITY_DRAFT", SWIG_FromInt((int)wxPRINT_QUALITY_DRAFT));
42486 PyDict_SetItemString(d,"ID_ANY", SWIG_FromInt((int)wxID_ANY));
42487 PyDict_SetItemString(d,"ID_SEPARATOR", SWIG_FromInt((int)wxID_SEPARATOR));
42488 PyDict_SetItemString(d,"ID_LOWEST", SWIG_FromInt((int)wxID_LOWEST));
42489 PyDict_SetItemString(d,"ID_OPEN", SWIG_FromInt((int)wxID_OPEN));
42490 PyDict_SetItemString(d,"ID_CLOSE", SWIG_FromInt((int)wxID_CLOSE));
42491 PyDict_SetItemString(d,"ID_NEW", SWIG_FromInt((int)wxID_NEW));
42492 PyDict_SetItemString(d,"ID_SAVE", SWIG_FromInt((int)wxID_SAVE));
42493 PyDict_SetItemString(d,"ID_SAVEAS", SWIG_FromInt((int)wxID_SAVEAS));
42494 PyDict_SetItemString(d,"ID_REVERT", SWIG_FromInt((int)wxID_REVERT));
42495 PyDict_SetItemString(d,"ID_EXIT", SWIG_FromInt((int)wxID_EXIT));
42496 PyDict_SetItemString(d,"ID_UNDO", SWIG_FromInt((int)wxID_UNDO));
42497 PyDict_SetItemString(d,"ID_REDO", SWIG_FromInt((int)wxID_REDO));
42498 PyDict_SetItemString(d,"ID_HELP", SWIG_FromInt((int)wxID_HELP));
42499 PyDict_SetItemString(d,"ID_PRINT", SWIG_FromInt((int)wxID_PRINT));
42500 PyDict_SetItemString(d,"ID_PRINT_SETUP", SWIG_FromInt((int)wxID_PRINT_SETUP));
42501 PyDict_SetItemString(d,"ID_PREVIEW", SWIG_FromInt((int)wxID_PREVIEW));
42502 PyDict_SetItemString(d,"ID_ABOUT", SWIG_FromInt((int)wxID_ABOUT));
42503 PyDict_SetItemString(d,"ID_HELP_CONTENTS", SWIG_FromInt((int)wxID_HELP_CONTENTS));
42504 PyDict_SetItemString(d,"ID_HELP_COMMANDS", SWIG_FromInt((int)wxID_HELP_COMMANDS));
42505 PyDict_SetItemString(d,"ID_HELP_PROCEDURES", SWIG_FromInt((int)wxID_HELP_PROCEDURES));
42506 PyDict_SetItemString(d,"ID_HELP_CONTEXT", SWIG_FromInt((int)wxID_HELP_CONTEXT));
42507 PyDict_SetItemString(d,"ID_CLOSE_ALL", SWIG_FromInt((int)wxID_CLOSE_ALL));
42508 PyDict_SetItemString(d,"ID_PREFERENCES", SWIG_FromInt((int)wxID_PREFERENCES));
42509 PyDict_SetItemString(d,"ID_CUT", SWIG_FromInt((int)wxID_CUT));
42510 PyDict_SetItemString(d,"ID_COPY", SWIG_FromInt((int)wxID_COPY));
42511 PyDict_SetItemString(d,"ID_PASTE", SWIG_FromInt((int)wxID_PASTE));
42512 PyDict_SetItemString(d,"ID_CLEAR", SWIG_FromInt((int)wxID_CLEAR));
42513 PyDict_SetItemString(d,"ID_FIND", SWIG_FromInt((int)wxID_FIND));
42514 PyDict_SetItemString(d,"ID_DUPLICATE", SWIG_FromInt((int)wxID_DUPLICATE));
42515 PyDict_SetItemString(d,"ID_SELECTALL", SWIG_FromInt((int)wxID_SELECTALL));
42516 PyDict_SetItemString(d,"ID_DELETE", SWIG_FromInt((int)wxID_DELETE));
42517 PyDict_SetItemString(d,"ID_REPLACE", SWIG_FromInt((int)wxID_REPLACE));
42518 PyDict_SetItemString(d,"ID_REPLACE_ALL", SWIG_FromInt((int)wxID_REPLACE_ALL));
42519 PyDict_SetItemString(d,"ID_PROPERTIES", SWIG_FromInt((int)wxID_PROPERTIES));
42520 PyDict_SetItemString(d,"ID_VIEW_DETAILS", SWIG_FromInt((int)wxID_VIEW_DETAILS));
42521 PyDict_SetItemString(d,"ID_VIEW_LARGEICONS", SWIG_FromInt((int)wxID_VIEW_LARGEICONS));
42522 PyDict_SetItemString(d,"ID_VIEW_SMALLICONS", SWIG_FromInt((int)wxID_VIEW_SMALLICONS));
42523 PyDict_SetItemString(d,"ID_VIEW_LIST", SWIG_FromInt((int)wxID_VIEW_LIST));
42524 PyDict_SetItemString(d,"ID_VIEW_SORTDATE", SWIG_FromInt((int)wxID_VIEW_SORTDATE));
42525 PyDict_SetItemString(d,"ID_VIEW_SORTNAME", SWIG_FromInt((int)wxID_VIEW_SORTNAME));
42526 PyDict_SetItemString(d,"ID_VIEW_SORTSIZE", SWIG_FromInt((int)wxID_VIEW_SORTSIZE));
42527 PyDict_SetItemString(d,"ID_VIEW_SORTTYPE", SWIG_FromInt((int)wxID_VIEW_SORTTYPE));
42528 PyDict_SetItemString(d,"ID_FILE1", SWIG_FromInt((int)wxID_FILE1));
42529 PyDict_SetItemString(d,"ID_FILE2", SWIG_FromInt((int)wxID_FILE2));
42530 PyDict_SetItemString(d,"ID_FILE3", SWIG_FromInt((int)wxID_FILE3));
42531 PyDict_SetItemString(d,"ID_FILE4", SWIG_FromInt((int)wxID_FILE4));
42532 PyDict_SetItemString(d,"ID_FILE5", SWIG_FromInt((int)wxID_FILE5));
42533 PyDict_SetItemString(d,"ID_FILE6", SWIG_FromInt((int)wxID_FILE6));
42534 PyDict_SetItemString(d,"ID_FILE7", SWIG_FromInt((int)wxID_FILE7));
42535 PyDict_SetItemString(d,"ID_FILE8", SWIG_FromInt((int)wxID_FILE8));
42536 PyDict_SetItemString(d,"ID_FILE9", SWIG_FromInt((int)wxID_FILE9));
42537 PyDict_SetItemString(d,"ID_OK", SWIG_FromInt((int)wxID_OK));
42538 PyDict_SetItemString(d,"ID_CANCEL", SWIG_FromInt((int)wxID_CANCEL));
42539 PyDict_SetItemString(d,"ID_APPLY", SWIG_FromInt((int)wxID_APPLY));
42540 PyDict_SetItemString(d,"ID_YES", SWIG_FromInt((int)wxID_YES));
42541 PyDict_SetItemString(d,"ID_NO", SWIG_FromInt((int)wxID_NO));
42542 PyDict_SetItemString(d,"ID_STATIC", SWIG_FromInt((int)wxID_STATIC));
42543 PyDict_SetItemString(d,"ID_FORWARD", SWIG_FromInt((int)wxID_FORWARD));
42544 PyDict_SetItemString(d,"ID_BACKWARD", SWIG_FromInt((int)wxID_BACKWARD));
42545 PyDict_SetItemString(d,"ID_DEFAULT", SWIG_FromInt((int)wxID_DEFAULT));
42546 PyDict_SetItemString(d,"ID_MORE", SWIG_FromInt((int)wxID_MORE));
42547 PyDict_SetItemString(d,"ID_SETUP", SWIG_FromInt((int)wxID_SETUP));
42548 PyDict_SetItemString(d,"ID_RESET", SWIG_FromInt((int)wxID_RESET));
42549 PyDict_SetItemString(d,"ID_CONTEXT_HELP", SWIG_FromInt((int)wxID_CONTEXT_HELP));
42550 PyDict_SetItemString(d,"ID_YESTOALL", SWIG_FromInt((int)wxID_YESTOALL));
42551 PyDict_SetItemString(d,"ID_NOTOALL", SWIG_FromInt((int)wxID_NOTOALL));
42552 PyDict_SetItemString(d,"ID_ABORT", SWIG_FromInt((int)wxID_ABORT));
42553 PyDict_SetItemString(d,"ID_RETRY", SWIG_FromInt((int)wxID_RETRY));
42554 PyDict_SetItemString(d,"ID_IGNORE", SWIG_FromInt((int)wxID_IGNORE));
42555 PyDict_SetItemString(d,"ID_HIGHEST", SWIG_FromInt((int)wxID_HIGHEST));
42556 PyDict_SetItemString(d,"OPEN", SWIG_FromInt((int)wxOPEN));
42557 PyDict_SetItemString(d,"SAVE", SWIG_FromInt((int)wxSAVE));
42558 PyDict_SetItemString(d,"HIDE_READONLY", SWIG_FromInt((int)wxHIDE_READONLY));
42559 PyDict_SetItemString(d,"OVERWRITE_PROMPT", SWIG_FromInt((int)wxOVERWRITE_PROMPT));
42560 PyDict_SetItemString(d,"FILE_MUST_EXIST", SWIG_FromInt((int)wxFILE_MUST_EXIST));
42561 PyDict_SetItemString(d,"MULTIPLE", SWIG_FromInt((int)wxMULTIPLE));
42562 PyDict_SetItemString(d,"CHANGE_DIR", SWIG_FromInt((int)wxCHANGE_DIR));
42563 PyDict_SetItemString(d,"ACCEL_ALT", SWIG_FromInt((int)wxACCEL_ALT));
42564 PyDict_SetItemString(d,"ACCEL_CTRL", SWIG_FromInt((int)wxACCEL_CTRL));
42565 PyDict_SetItemString(d,"ACCEL_SHIFT", SWIG_FromInt((int)wxACCEL_SHIFT));
42566 PyDict_SetItemString(d,"ACCEL_NORMAL", SWIG_FromInt((int)wxACCEL_NORMAL));
42567 PyDict_SetItemString(d,"PD_AUTO_HIDE", SWIG_FromInt((int)wxPD_AUTO_HIDE));
42568 PyDict_SetItemString(d,"PD_APP_MODAL", SWIG_FromInt((int)wxPD_APP_MODAL));
42569 PyDict_SetItemString(d,"PD_CAN_ABORT", SWIG_FromInt((int)wxPD_CAN_ABORT));
42570 PyDict_SetItemString(d,"PD_ELAPSED_TIME", SWIG_FromInt((int)wxPD_ELAPSED_TIME));
42571 PyDict_SetItemString(d,"PD_ESTIMATED_TIME", SWIG_FromInt((int)wxPD_ESTIMATED_TIME));
42572 PyDict_SetItemString(d,"PD_REMAINING_TIME", SWIG_FromInt((int)wxPD_REMAINING_TIME));
42573 PyDict_SetItemString(d,"DD_NEW_DIR_BUTTON", SWIG_FromInt((int)wxDD_NEW_DIR_BUTTON));
42574 PyDict_SetItemString(d,"DD_DEFAULT_STYLE", SWIG_FromInt((int)wxDD_DEFAULT_STYLE));
42575 PyDict_SetItemString(d,"MENU_TEAROFF", SWIG_FromInt((int)wxMENU_TEAROFF));
42576 PyDict_SetItemString(d,"MB_DOCKABLE", SWIG_FromInt((int)wxMB_DOCKABLE));
42577 PyDict_SetItemString(d,"NO_FULL_REPAINT_ON_RESIZE", SWIG_FromInt((int)wxNO_FULL_REPAINT_ON_RESIZE));
42578 PyDict_SetItemString(d,"FULL_REPAINT_ON_RESIZE", SWIG_FromInt((int)wxFULL_REPAINT_ON_RESIZE));
42579 PyDict_SetItemString(d,"LI_HORIZONTAL", SWIG_FromInt((int)wxLI_HORIZONTAL));
42580 PyDict_SetItemString(d,"LI_VERTICAL", SWIG_FromInt((int)wxLI_VERTICAL));
42581 PyDict_SetItemString(d,"WS_EX_VALIDATE_RECURSIVELY", SWIG_FromInt((int)wxWS_EX_VALIDATE_RECURSIVELY));
42582 PyDict_SetItemString(d,"WS_EX_BLOCK_EVENTS", SWIG_FromInt((int)wxWS_EX_BLOCK_EVENTS));
42583 PyDict_SetItemString(d,"WS_EX_TRANSIENT", SWIG_FromInt((int)wxWS_EX_TRANSIENT));
42584 PyDict_SetItemString(d,"WS_EX_THEMED_BACKGROUND", SWIG_FromInt((int)wxWS_EX_THEMED_BACKGROUND));
42585 PyDict_SetItemString(d,"WS_EX_PROCESS_IDLE", SWIG_FromInt((int)wxWS_EX_PROCESS_IDLE));
42586 PyDict_SetItemString(d,"WS_EX_PROCESS_UI_UPDATES", SWIG_FromInt((int)wxWS_EX_PROCESS_UI_UPDATES));
42587 PyDict_SetItemString(d,"MM_TEXT", SWIG_FromInt((int)wxMM_TEXT));
42588 PyDict_SetItemString(d,"MM_LOMETRIC", SWIG_FromInt((int)wxMM_LOMETRIC));
42589 PyDict_SetItemString(d,"MM_HIMETRIC", SWIG_FromInt((int)wxMM_HIMETRIC));
42590 PyDict_SetItemString(d,"MM_LOENGLISH", SWIG_FromInt((int)wxMM_LOENGLISH));
42591 PyDict_SetItemString(d,"MM_HIENGLISH", SWIG_FromInt((int)wxMM_HIENGLISH));
42592 PyDict_SetItemString(d,"MM_TWIPS", SWIG_FromInt((int)wxMM_TWIPS));
42593 PyDict_SetItemString(d,"MM_ISOTROPIC", SWIG_FromInt((int)wxMM_ISOTROPIC));
42594 PyDict_SetItemString(d,"MM_ANISOTROPIC", SWIG_FromInt((int)wxMM_ANISOTROPIC));
42595 PyDict_SetItemString(d,"MM_POINTS", SWIG_FromInt((int)wxMM_POINTS));
42596 PyDict_SetItemString(d,"MM_METRIC", SWIG_FromInt((int)wxMM_METRIC));
42597 PyDict_SetItemString(d,"CENTRE", SWIG_FromInt((int)wxCENTRE));
42598 PyDict_SetItemString(d,"CENTER", SWIG_FromInt((int)wxCENTER));
42599 PyDict_SetItemString(d,"HORIZONTAL", SWIG_FromInt((int)wxHORIZONTAL));
42600 PyDict_SetItemString(d,"VERTICAL", SWIG_FromInt((int)wxVERTICAL));
42601 PyDict_SetItemString(d,"BOTH", SWIG_FromInt((int)wxBOTH));
42602 PyDict_SetItemString(d,"LEFT", SWIG_FromInt((int)wxLEFT));
42603 PyDict_SetItemString(d,"RIGHT", SWIG_FromInt((int)wxRIGHT));
42604 PyDict_SetItemString(d,"UP", SWIG_FromInt((int)wxUP));
42605 PyDict_SetItemString(d,"DOWN", SWIG_FromInt((int)wxDOWN));
42606 PyDict_SetItemString(d,"TOP", SWIG_FromInt((int)wxTOP));
42607 PyDict_SetItemString(d,"BOTTOM", SWIG_FromInt((int)wxBOTTOM));
42608 PyDict_SetItemString(d,"NORTH", SWIG_FromInt((int)wxNORTH));
42609 PyDict_SetItemString(d,"SOUTH", SWIG_FromInt((int)wxSOUTH));
42610 PyDict_SetItemString(d,"WEST", SWIG_FromInt((int)wxWEST));
42611 PyDict_SetItemString(d,"EAST", SWIG_FromInt((int)wxEAST));
42612 PyDict_SetItemString(d,"ALL", SWIG_FromInt((int)wxALL));
42613 PyDict_SetItemString(d,"ALIGN_NOT", SWIG_FromInt((int)wxALIGN_NOT));
42614 PyDict_SetItemString(d,"ALIGN_CENTER_HORIZONTAL", SWIG_FromInt((int)wxALIGN_CENTER_HORIZONTAL));
42615 PyDict_SetItemString(d,"ALIGN_CENTRE_HORIZONTAL", SWIG_FromInt((int)wxALIGN_CENTRE_HORIZONTAL));
42616 PyDict_SetItemString(d,"ALIGN_LEFT", SWIG_FromInt((int)wxALIGN_LEFT));
42617 PyDict_SetItemString(d,"ALIGN_TOP", SWIG_FromInt((int)wxALIGN_TOP));
42618 PyDict_SetItemString(d,"ALIGN_RIGHT", SWIG_FromInt((int)wxALIGN_RIGHT));
42619 PyDict_SetItemString(d,"ALIGN_BOTTOM", SWIG_FromInt((int)wxALIGN_BOTTOM));
42620 PyDict_SetItemString(d,"ALIGN_CENTER_VERTICAL", SWIG_FromInt((int)wxALIGN_CENTER_VERTICAL));
42621 PyDict_SetItemString(d,"ALIGN_CENTRE_VERTICAL", SWIG_FromInt((int)wxALIGN_CENTRE_VERTICAL));
42622 PyDict_SetItemString(d,"ALIGN_CENTER", SWIG_FromInt((int)wxALIGN_CENTER));
42623 PyDict_SetItemString(d,"ALIGN_CENTRE", SWIG_FromInt((int)wxALIGN_CENTRE));
42624 PyDict_SetItemString(d,"ALIGN_MASK", SWIG_FromInt((int)wxALIGN_MASK));
42625 PyDict_SetItemString(d,"STRETCH_NOT", SWIG_FromInt((int)wxSTRETCH_NOT));
42626 PyDict_SetItemString(d,"SHRINK", SWIG_FromInt((int)wxSHRINK));
42627 PyDict_SetItemString(d,"GROW", SWIG_FromInt((int)wxGROW));
42628 PyDict_SetItemString(d,"EXPAND", SWIG_FromInt((int)wxEXPAND));
42629 PyDict_SetItemString(d,"SHAPED", SWIG_FromInt((int)wxSHAPED));
42630 PyDict_SetItemString(d,"FIXED_MINSIZE", SWIG_FromInt((int)wxFIXED_MINSIZE));
42631 PyDict_SetItemString(d,"TILE", SWIG_FromInt((int)wxTILE));
42632 PyDict_SetItemString(d,"ADJUST_MINSIZE", SWIG_FromInt((int)wxADJUST_MINSIZE));
42633 PyDict_SetItemString(d,"BORDER_DEFAULT", SWIG_FromInt((int)wxBORDER_DEFAULT));
42634 PyDict_SetItemString(d,"BORDER_NONE", SWIG_FromInt((int)wxBORDER_NONE));
42635 PyDict_SetItemString(d,"BORDER_STATIC", SWIG_FromInt((int)wxBORDER_STATIC));
42636 PyDict_SetItemString(d,"BORDER_SIMPLE", SWIG_FromInt((int)wxBORDER_SIMPLE));
42637 PyDict_SetItemString(d,"BORDER_RAISED", SWIG_FromInt((int)wxBORDER_RAISED));
42638 PyDict_SetItemString(d,"BORDER_SUNKEN", SWIG_FromInt((int)wxBORDER_SUNKEN));
42639 PyDict_SetItemString(d,"BORDER_DOUBLE", SWIG_FromInt((int)wxBORDER_DOUBLE));
42640 PyDict_SetItemString(d,"BORDER_MASK", SWIG_FromInt((int)wxBORDER_MASK));
42641 PyDict_SetItemString(d,"DEFAULT", SWIG_FromInt((int)wxDEFAULT));
42642 PyDict_SetItemString(d,"DECORATIVE", SWIG_FromInt((int)wxDECORATIVE));
42643 PyDict_SetItemString(d,"ROMAN", SWIG_FromInt((int)wxROMAN));
42644 PyDict_SetItemString(d,"SCRIPT", SWIG_FromInt((int)wxSCRIPT));
42645 PyDict_SetItemString(d,"SWISS", SWIG_FromInt((int)wxSWISS));
42646 PyDict_SetItemString(d,"MODERN", SWIG_FromInt((int)wxMODERN));
42647 PyDict_SetItemString(d,"TELETYPE", SWIG_FromInt((int)wxTELETYPE));
42648 PyDict_SetItemString(d,"VARIABLE", SWIG_FromInt((int)wxVARIABLE));
42649 PyDict_SetItemString(d,"FIXED", SWIG_FromInt((int)wxFIXED));
42650 PyDict_SetItemString(d,"NORMAL", SWIG_FromInt((int)wxNORMAL));
42651 PyDict_SetItemString(d,"LIGHT", SWIG_FromInt((int)wxLIGHT));
42652 PyDict_SetItemString(d,"BOLD", SWIG_FromInt((int)wxBOLD));
42653 PyDict_SetItemString(d,"ITALIC", SWIG_FromInt((int)wxITALIC));
42654 PyDict_SetItemString(d,"SLANT", SWIG_FromInt((int)wxSLANT));
42655 PyDict_SetItemString(d,"SOLID", SWIG_FromInt((int)wxSOLID));
42656 PyDict_SetItemString(d,"DOT", SWIG_FromInt((int)wxDOT));
42657 PyDict_SetItemString(d,"LONG_DASH", SWIG_FromInt((int)wxLONG_DASH));
42658 PyDict_SetItemString(d,"SHORT_DASH", SWIG_FromInt((int)wxSHORT_DASH));
42659 PyDict_SetItemString(d,"DOT_DASH", SWIG_FromInt((int)wxDOT_DASH));
42660 PyDict_SetItemString(d,"USER_DASH", SWIG_FromInt((int)wxUSER_DASH));
42661 PyDict_SetItemString(d,"TRANSPARENT", SWIG_FromInt((int)wxTRANSPARENT));
42662 PyDict_SetItemString(d,"STIPPLE", SWIG_FromInt((int)wxSTIPPLE));
42663 PyDict_SetItemString(d,"BDIAGONAL_HATCH", SWIG_FromInt((int)wxBDIAGONAL_HATCH));
42664 PyDict_SetItemString(d,"CROSSDIAG_HATCH", SWIG_FromInt((int)wxCROSSDIAG_HATCH));
42665 PyDict_SetItemString(d,"FDIAGONAL_HATCH", SWIG_FromInt((int)wxFDIAGONAL_HATCH));
42666 PyDict_SetItemString(d,"CROSS_HATCH", SWIG_FromInt((int)wxCROSS_HATCH));
42667 PyDict_SetItemString(d,"HORIZONTAL_HATCH", SWIG_FromInt((int)wxHORIZONTAL_HATCH));
42668 PyDict_SetItemString(d,"VERTICAL_HATCH", SWIG_FromInt((int)wxVERTICAL_HATCH));
42669 PyDict_SetItemString(d,"JOIN_BEVEL", SWIG_FromInt((int)wxJOIN_BEVEL));
42670 PyDict_SetItemString(d,"JOIN_MITER", SWIG_FromInt((int)wxJOIN_MITER));
42671 PyDict_SetItemString(d,"JOIN_ROUND", SWIG_FromInt((int)wxJOIN_ROUND));
42672 PyDict_SetItemString(d,"CAP_ROUND", SWIG_FromInt((int)wxCAP_ROUND));
42673 PyDict_SetItemString(d,"CAP_PROJECTING", SWIG_FromInt((int)wxCAP_PROJECTING));
42674 PyDict_SetItemString(d,"CAP_BUTT", SWIG_FromInt((int)wxCAP_BUTT));
42675 PyDict_SetItemString(d,"CLEAR", SWIG_FromInt((int)wxCLEAR));
42676 PyDict_SetItemString(d,"XOR", SWIG_FromInt((int)wxXOR));
42677 PyDict_SetItemString(d,"INVERT", SWIG_FromInt((int)wxINVERT));
42678 PyDict_SetItemString(d,"OR_REVERSE", SWIG_FromInt((int)wxOR_REVERSE));
42679 PyDict_SetItemString(d,"AND_REVERSE", SWIG_FromInt((int)wxAND_REVERSE));
42680 PyDict_SetItemString(d,"COPY", SWIG_FromInt((int)wxCOPY));
42681 PyDict_SetItemString(d,"AND", SWIG_FromInt((int)wxAND));
42682 PyDict_SetItemString(d,"AND_INVERT", SWIG_FromInt((int)wxAND_INVERT));
42683 PyDict_SetItemString(d,"NO_OP", SWIG_FromInt((int)wxNO_OP));
42684 PyDict_SetItemString(d,"NOR", SWIG_FromInt((int)wxNOR));
42685 PyDict_SetItemString(d,"EQUIV", SWIG_FromInt((int)wxEQUIV));
42686 PyDict_SetItemString(d,"SRC_INVERT", SWIG_FromInt((int)wxSRC_INVERT));
42687 PyDict_SetItemString(d,"OR_INVERT", SWIG_FromInt((int)wxOR_INVERT));
42688 PyDict_SetItemString(d,"NAND", SWIG_FromInt((int)wxNAND));
42689 PyDict_SetItemString(d,"OR", SWIG_FromInt((int)wxOR));
42690 PyDict_SetItemString(d,"SET", SWIG_FromInt((int)wxSET));
42691 PyDict_SetItemString(d,"WXK_BACK", SWIG_FromInt((int)WXK_BACK));
42692 PyDict_SetItemString(d,"WXK_TAB", SWIG_FromInt((int)WXK_TAB));
42693 PyDict_SetItemString(d,"WXK_RETURN", SWIG_FromInt((int)WXK_RETURN));
42694 PyDict_SetItemString(d,"WXK_ESCAPE", SWIG_FromInt((int)WXK_ESCAPE));
42695 PyDict_SetItemString(d,"WXK_SPACE", SWIG_FromInt((int)WXK_SPACE));
42696 PyDict_SetItemString(d,"WXK_DELETE", SWIG_FromInt((int)WXK_DELETE));
42697 PyDict_SetItemString(d,"WXK_START", SWIG_FromInt((int)WXK_START));
42698 PyDict_SetItemString(d,"WXK_LBUTTON", SWIG_FromInt((int)WXK_LBUTTON));
42699 PyDict_SetItemString(d,"WXK_RBUTTON", SWIG_FromInt((int)WXK_RBUTTON));
42700 PyDict_SetItemString(d,"WXK_CANCEL", SWIG_FromInt((int)WXK_CANCEL));
42701 PyDict_SetItemString(d,"WXK_MBUTTON", SWIG_FromInt((int)WXK_MBUTTON));
42702 PyDict_SetItemString(d,"WXK_CLEAR", SWIG_FromInt((int)WXK_CLEAR));
42703 PyDict_SetItemString(d,"WXK_SHIFT", SWIG_FromInt((int)WXK_SHIFT));
42704 PyDict_SetItemString(d,"WXK_ALT", SWIG_FromInt((int)WXK_ALT));
42705 PyDict_SetItemString(d,"WXK_CONTROL", SWIG_FromInt((int)WXK_CONTROL));
42706 PyDict_SetItemString(d,"WXK_MENU", SWIG_FromInt((int)WXK_MENU));
42707 PyDict_SetItemString(d,"WXK_PAUSE", SWIG_FromInt((int)WXK_PAUSE));
42708 PyDict_SetItemString(d,"WXK_CAPITAL", SWIG_FromInt((int)WXK_CAPITAL));
42709 PyDict_SetItemString(d,"WXK_PRIOR", SWIG_FromInt((int)WXK_PRIOR));
42710 PyDict_SetItemString(d,"WXK_NEXT", SWIG_FromInt((int)WXK_NEXT));
42711 PyDict_SetItemString(d,"WXK_END", SWIG_FromInt((int)WXK_END));
42712 PyDict_SetItemString(d,"WXK_HOME", SWIG_FromInt((int)WXK_HOME));
42713 PyDict_SetItemString(d,"WXK_LEFT", SWIG_FromInt((int)WXK_LEFT));
42714 PyDict_SetItemString(d,"WXK_UP", SWIG_FromInt((int)WXK_UP));
42715 PyDict_SetItemString(d,"WXK_RIGHT", SWIG_FromInt((int)WXK_RIGHT));
42716 PyDict_SetItemString(d,"WXK_DOWN", SWIG_FromInt((int)WXK_DOWN));
42717 PyDict_SetItemString(d,"WXK_SELECT", SWIG_FromInt((int)WXK_SELECT));
42718 PyDict_SetItemString(d,"WXK_PRINT", SWIG_FromInt((int)WXK_PRINT));
42719 PyDict_SetItemString(d,"WXK_EXECUTE", SWIG_FromInt((int)WXK_EXECUTE));
42720 PyDict_SetItemString(d,"WXK_SNAPSHOT", SWIG_FromInt((int)WXK_SNAPSHOT));
42721 PyDict_SetItemString(d,"WXK_INSERT", SWIG_FromInt((int)WXK_INSERT));
42722 PyDict_SetItemString(d,"WXK_HELP", SWIG_FromInt((int)WXK_HELP));
42723 PyDict_SetItemString(d,"WXK_NUMPAD0", SWIG_FromInt((int)WXK_NUMPAD0));
42724 PyDict_SetItemString(d,"WXK_NUMPAD1", SWIG_FromInt((int)WXK_NUMPAD1));
42725 PyDict_SetItemString(d,"WXK_NUMPAD2", SWIG_FromInt((int)WXK_NUMPAD2));
42726 PyDict_SetItemString(d,"WXK_NUMPAD3", SWIG_FromInt((int)WXK_NUMPAD3));
42727 PyDict_SetItemString(d,"WXK_NUMPAD4", SWIG_FromInt((int)WXK_NUMPAD4));
42728 PyDict_SetItemString(d,"WXK_NUMPAD5", SWIG_FromInt((int)WXK_NUMPAD5));
42729 PyDict_SetItemString(d,"WXK_NUMPAD6", SWIG_FromInt((int)WXK_NUMPAD6));
42730 PyDict_SetItemString(d,"WXK_NUMPAD7", SWIG_FromInt((int)WXK_NUMPAD7));
42731 PyDict_SetItemString(d,"WXK_NUMPAD8", SWIG_FromInt((int)WXK_NUMPAD8));
42732 PyDict_SetItemString(d,"WXK_NUMPAD9", SWIG_FromInt((int)WXK_NUMPAD9));
42733 PyDict_SetItemString(d,"WXK_MULTIPLY", SWIG_FromInt((int)WXK_MULTIPLY));
42734 PyDict_SetItemString(d,"WXK_ADD", SWIG_FromInt((int)WXK_ADD));
42735 PyDict_SetItemString(d,"WXK_SEPARATOR", SWIG_FromInt((int)WXK_SEPARATOR));
42736 PyDict_SetItemString(d,"WXK_SUBTRACT", SWIG_FromInt((int)WXK_SUBTRACT));
42737 PyDict_SetItemString(d,"WXK_DECIMAL", SWIG_FromInt((int)WXK_DECIMAL));
42738 PyDict_SetItemString(d,"WXK_DIVIDE", SWIG_FromInt((int)WXK_DIVIDE));
42739 PyDict_SetItemString(d,"WXK_F1", SWIG_FromInt((int)WXK_F1));
42740 PyDict_SetItemString(d,"WXK_F2", SWIG_FromInt((int)WXK_F2));
42741 PyDict_SetItemString(d,"WXK_F3", SWIG_FromInt((int)WXK_F3));
42742 PyDict_SetItemString(d,"WXK_F4", SWIG_FromInt((int)WXK_F4));
42743 PyDict_SetItemString(d,"WXK_F5", SWIG_FromInt((int)WXK_F5));
42744 PyDict_SetItemString(d,"WXK_F6", SWIG_FromInt((int)WXK_F6));
42745 PyDict_SetItemString(d,"WXK_F7", SWIG_FromInt((int)WXK_F7));
42746 PyDict_SetItemString(d,"WXK_F8", SWIG_FromInt((int)WXK_F8));
42747 PyDict_SetItemString(d,"WXK_F9", SWIG_FromInt((int)WXK_F9));
42748 PyDict_SetItemString(d,"WXK_F10", SWIG_FromInt((int)WXK_F10));
42749 PyDict_SetItemString(d,"WXK_F11", SWIG_FromInt((int)WXK_F11));
42750 PyDict_SetItemString(d,"WXK_F12", SWIG_FromInt((int)WXK_F12));
42751 PyDict_SetItemString(d,"WXK_F13", SWIG_FromInt((int)WXK_F13));
42752 PyDict_SetItemString(d,"WXK_F14", SWIG_FromInt((int)WXK_F14));
42753 PyDict_SetItemString(d,"WXK_F15", SWIG_FromInt((int)WXK_F15));
42754 PyDict_SetItemString(d,"WXK_F16", SWIG_FromInt((int)WXK_F16));
42755 PyDict_SetItemString(d,"WXK_F17", SWIG_FromInt((int)WXK_F17));
42756 PyDict_SetItemString(d,"WXK_F18", SWIG_FromInt((int)WXK_F18));
42757 PyDict_SetItemString(d,"WXK_F19", SWIG_FromInt((int)WXK_F19));
42758 PyDict_SetItemString(d,"WXK_F20", SWIG_FromInt((int)WXK_F20));
42759 PyDict_SetItemString(d,"WXK_F21", SWIG_FromInt((int)WXK_F21));
42760 PyDict_SetItemString(d,"WXK_F22", SWIG_FromInt((int)WXK_F22));
42761 PyDict_SetItemString(d,"WXK_F23", SWIG_FromInt((int)WXK_F23));
42762 PyDict_SetItemString(d,"WXK_F24", SWIG_FromInt((int)WXK_F24));
42763 PyDict_SetItemString(d,"WXK_NUMLOCK", SWIG_FromInt((int)WXK_NUMLOCK));
42764 PyDict_SetItemString(d,"WXK_SCROLL", SWIG_FromInt((int)WXK_SCROLL));
42765 PyDict_SetItemString(d,"WXK_PAGEUP", SWIG_FromInt((int)WXK_PAGEUP));
42766 PyDict_SetItemString(d,"WXK_PAGEDOWN", SWIG_FromInt((int)WXK_PAGEDOWN));
42767 PyDict_SetItemString(d,"WXK_NUMPAD_SPACE", SWIG_FromInt((int)WXK_NUMPAD_SPACE));
42768 PyDict_SetItemString(d,"WXK_NUMPAD_TAB", SWIG_FromInt((int)WXK_NUMPAD_TAB));
42769 PyDict_SetItemString(d,"WXK_NUMPAD_ENTER", SWIG_FromInt((int)WXK_NUMPAD_ENTER));
42770 PyDict_SetItemString(d,"WXK_NUMPAD_F1", SWIG_FromInt((int)WXK_NUMPAD_F1));
42771 PyDict_SetItemString(d,"WXK_NUMPAD_F2", SWIG_FromInt((int)WXK_NUMPAD_F2));
42772 PyDict_SetItemString(d,"WXK_NUMPAD_F3", SWIG_FromInt((int)WXK_NUMPAD_F3));
42773 PyDict_SetItemString(d,"WXK_NUMPAD_F4", SWIG_FromInt((int)WXK_NUMPAD_F4));
42774 PyDict_SetItemString(d,"WXK_NUMPAD_HOME", SWIG_FromInt((int)WXK_NUMPAD_HOME));
42775 PyDict_SetItemString(d,"WXK_NUMPAD_LEFT", SWIG_FromInt((int)WXK_NUMPAD_LEFT));
42776 PyDict_SetItemString(d,"WXK_NUMPAD_UP", SWIG_FromInt((int)WXK_NUMPAD_UP));
42777 PyDict_SetItemString(d,"WXK_NUMPAD_RIGHT", SWIG_FromInt((int)WXK_NUMPAD_RIGHT));
42778 PyDict_SetItemString(d,"WXK_NUMPAD_DOWN", SWIG_FromInt((int)WXK_NUMPAD_DOWN));
42779 PyDict_SetItemString(d,"WXK_NUMPAD_PRIOR", SWIG_FromInt((int)WXK_NUMPAD_PRIOR));
42780 PyDict_SetItemString(d,"WXK_NUMPAD_PAGEUP", SWIG_FromInt((int)WXK_NUMPAD_PAGEUP));
42781 PyDict_SetItemString(d,"WXK_NUMPAD_NEXT", SWIG_FromInt((int)WXK_NUMPAD_NEXT));
42782 PyDict_SetItemString(d,"WXK_NUMPAD_PAGEDOWN", SWIG_FromInt((int)WXK_NUMPAD_PAGEDOWN));
42783 PyDict_SetItemString(d,"WXK_NUMPAD_END", SWIG_FromInt((int)WXK_NUMPAD_END));
42784 PyDict_SetItemString(d,"WXK_NUMPAD_BEGIN", SWIG_FromInt((int)WXK_NUMPAD_BEGIN));
42785 PyDict_SetItemString(d,"WXK_NUMPAD_INSERT", SWIG_FromInt((int)WXK_NUMPAD_INSERT));
42786 PyDict_SetItemString(d,"WXK_NUMPAD_DELETE", SWIG_FromInt((int)WXK_NUMPAD_DELETE));
42787 PyDict_SetItemString(d,"WXK_NUMPAD_EQUAL", SWIG_FromInt((int)WXK_NUMPAD_EQUAL));
42788 PyDict_SetItemString(d,"WXK_NUMPAD_MULTIPLY", SWIG_FromInt((int)WXK_NUMPAD_MULTIPLY));
42789 PyDict_SetItemString(d,"WXK_NUMPAD_ADD", SWIG_FromInt((int)WXK_NUMPAD_ADD));
42790 PyDict_SetItemString(d,"WXK_NUMPAD_SEPARATOR", SWIG_FromInt((int)WXK_NUMPAD_SEPARATOR));
42791 PyDict_SetItemString(d,"WXK_NUMPAD_SUBTRACT", SWIG_FromInt((int)WXK_NUMPAD_SUBTRACT));
42792 PyDict_SetItemString(d,"WXK_NUMPAD_DECIMAL", SWIG_FromInt((int)WXK_NUMPAD_DECIMAL));
42793 PyDict_SetItemString(d,"WXK_NUMPAD_DIVIDE", SWIG_FromInt((int)WXK_NUMPAD_DIVIDE));
42794 PyDict_SetItemString(d,"WXK_WINDOWS_LEFT", SWIG_FromInt((int)WXK_WINDOWS_LEFT));
42795 PyDict_SetItemString(d,"WXK_WINDOWS_RIGHT", SWIG_FromInt((int)WXK_WINDOWS_RIGHT));
42796 PyDict_SetItemString(d,"WXK_WINDOWS_MENU", SWIG_FromInt((int)WXK_WINDOWS_MENU));
42797 PyDict_SetItemString(d,"PAPER_NONE", SWIG_FromInt((int)wxPAPER_NONE));
42798 PyDict_SetItemString(d,"PAPER_LETTER", SWIG_FromInt((int)wxPAPER_LETTER));
42799 PyDict_SetItemString(d,"PAPER_LEGAL", SWIG_FromInt((int)wxPAPER_LEGAL));
42800 PyDict_SetItemString(d,"PAPER_A4", SWIG_FromInt((int)wxPAPER_A4));
42801 PyDict_SetItemString(d,"PAPER_CSHEET", SWIG_FromInt((int)wxPAPER_CSHEET));
42802 PyDict_SetItemString(d,"PAPER_DSHEET", SWIG_FromInt((int)wxPAPER_DSHEET));
42803 PyDict_SetItemString(d,"PAPER_ESHEET", SWIG_FromInt((int)wxPAPER_ESHEET));
42804 PyDict_SetItemString(d,"PAPER_LETTERSMALL", SWIG_FromInt((int)wxPAPER_LETTERSMALL));
42805 PyDict_SetItemString(d,"PAPER_TABLOID", SWIG_FromInt((int)wxPAPER_TABLOID));
42806 PyDict_SetItemString(d,"PAPER_LEDGER", SWIG_FromInt((int)wxPAPER_LEDGER));
42807 PyDict_SetItemString(d,"PAPER_STATEMENT", SWIG_FromInt((int)wxPAPER_STATEMENT));
42808 PyDict_SetItemString(d,"PAPER_EXECUTIVE", SWIG_FromInt((int)wxPAPER_EXECUTIVE));
42809 PyDict_SetItemString(d,"PAPER_A3", SWIG_FromInt((int)wxPAPER_A3));
42810 PyDict_SetItemString(d,"PAPER_A4SMALL", SWIG_FromInt((int)wxPAPER_A4SMALL));
42811 PyDict_SetItemString(d,"PAPER_A5", SWIG_FromInt((int)wxPAPER_A5));
42812 PyDict_SetItemString(d,"PAPER_B4", SWIG_FromInt((int)wxPAPER_B4));
42813 PyDict_SetItemString(d,"PAPER_B5", SWIG_FromInt((int)wxPAPER_B5));
42814 PyDict_SetItemString(d,"PAPER_FOLIO", SWIG_FromInt((int)wxPAPER_FOLIO));
42815 PyDict_SetItemString(d,"PAPER_QUARTO", SWIG_FromInt((int)wxPAPER_QUARTO));
42816 PyDict_SetItemString(d,"PAPER_10X14", SWIG_FromInt((int)wxPAPER_10X14));
42817 PyDict_SetItemString(d,"PAPER_11X17", SWIG_FromInt((int)wxPAPER_11X17));
42818 PyDict_SetItemString(d,"PAPER_NOTE", SWIG_FromInt((int)wxPAPER_NOTE));
42819 PyDict_SetItemString(d,"PAPER_ENV_9", SWIG_FromInt((int)wxPAPER_ENV_9));
42820 PyDict_SetItemString(d,"PAPER_ENV_10", SWIG_FromInt((int)wxPAPER_ENV_10));
42821 PyDict_SetItemString(d,"PAPER_ENV_11", SWIG_FromInt((int)wxPAPER_ENV_11));
42822 PyDict_SetItemString(d,"PAPER_ENV_12", SWIG_FromInt((int)wxPAPER_ENV_12));
42823 PyDict_SetItemString(d,"PAPER_ENV_14", SWIG_FromInt((int)wxPAPER_ENV_14));
42824 PyDict_SetItemString(d,"PAPER_ENV_DL", SWIG_FromInt((int)wxPAPER_ENV_DL));
42825 PyDict_SetItemString(d,"PAPER_ENV_C5", SWIG_FromInt((int)wxPAPER_ENV_C5));
42826 PyDict_SetItemString(d,"PAPER_ENV_C3", SWIG_FromInt((int)wxPAPER_ENV_C3));
42827 PyDict_SetItemString(d,"PAPER_ENV_C4", SWIG_FromInt((int)wxPAPER_ENV_C4));
42828 PyDict_SetItemString(d,"PAPER_ENV_C6", SWIG_FromInt((int)wxPAPER_ENV_C6));
42829 PyDict_SetItemString(d,"PAPER_ENV_C65", SWIG_FromInt((int)wxPAPER_ENV_C65));
42830 PyDict_SetItemString(d,"PAPER_ENV_B4", SWIG_FromInt((int)wxPAPER_ENV_B4));
42831 PyDict_SetItemString(d,"PAPER_ENV_B5", SWIG_FromInt((int)wxPAPER_ENV_B5));
42832 PyDict_SetItemString(d,"PAPER_ENV_B6", SWIG_FromInt((int)wxPAPER_ENV_B6));
42833 PyDict_SetItemString(d,"PAPER_ENV_ITALY", SWIG_FromInt((int)wxPAPER_ENV_ITALY));
42834 PyDict_SetItemString(d,"PAPER_ENV_MONARCH", SWIG_FromInt((int)wxPAPER_ENV_MONARCH));
42835 PyDict_SetItemString(d,"PAPER_ENV_PERSONAL", SWIG_FromInt((int)wxPAPER_ENV_PERSONAL));
42836 PyDict_SetItemString(d,"PAPER_FANFOLD_US", SWIG_FromInt((int)wxPAPER_FANFOLD_US));
42837 PyDict_SetItemString(d,"PAPER_FANFOLD_STD_GERMAN", SWIG_FromInt((int)wxPAPER_FANFOLD_STD_GERMAN));
42838 PyDict_SetItemString(d,"PAPER_FANFOLD_LGL_GERMAN", SWIG_FromInt((int)wxPAPER_FANFOLD_LGL_GERMAN));
42839 PyDict_SetItemString(d,"PAPER_ISO_B4", SWIG_FromInt((int)wxPAPER_ISO_B4));
42840 PyDict_SetItemString(d,"PAPER_JAPANESE_POSTCARD", SWIG_FromInt((int)wxPAPER_JAPANESE_POSTCARD));
42841 PyDict_SetItemString(d,"PAPER_9X11", SWIG_FromInt((int)wxPAPER_9X11));
42842 PyDict_SetItemString(d,"PAPER_10X11", SWIG_FromInt((int)wxPAPER_10X11));
42843 PyDict_SetItemString(d,"PAPER_15X11", SWIG_FromInt((int)wxPAPER_15X11));
42844 PyDict_SetItemString(d,"PAPER_ENV_INVITE", SWIG_FromInt((int)wxPAPER_ENV_INVITE));
42845 PyDict_SetItemString(d,"PAPER_LETTER_EXTRA", SWIG_FromInt((int)wxPAPER_LETTER_EXTRA));
42846 PyDict_SetItemString(d,"PAPER_LEGAL_EXTRA", SWIG_FromInt((int)wxPAPER_LEGAL_EXTRA));
42847 PyDict_SetItemString(d,"PAPER_TABLOID_EXTRA", SWIG_FromInt((int)wxPAPER_TABLOID_EXTRA));
42848 PyDict_SetItemString(d,"PAPER_A4_EXTRA", SWIG_FromInt((int)wxPAPER_A4_EXTRA));
42849 PyDict_SetItemString(d,"PAPER_LETTER_TRANSVERSE", SWIG_FromInt((int)wxPAPER_LETTER_TRANSVERSE));
42850 PyDict_SetItemString(d,"PAPER_A4_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A4_TRANSVERSE));
42851 PyDict_SetItemString(d,"PAPER_LETTER_EXTRA_TRANSVERSE", SWIG_FromInt((int)wxPAPER_LETTER_EXTRA_TRANSVERSE));
42852 PyDict_SetItemString(d,"PAPER_A_PLUS", SWIG_FromInt((int)wxPAPER_A_PLUS));
42853 PyDict_SetItemString(d,"PAPER_B_PLUS", SWIG_FromInt((int)wxPAPER_B_PLUS));
42854 PyDict_SetItemString(d,"PAPER_LETTER_PLUS", SWIG_FromInt((int)wxPAPER_LETTER_PLUS));
42855 PyDict_SetItemString(d,"PAPER_A4_PLUS", SWIG_FromInt((int)wxPAPER_A4_PLUS));
42856 PyDict_SetItemString(d,"PAPER_A5_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A5_TRANSVERSE));
42857 PyDict_SetItemString(d,"PAPER_B5_TRANSVERSE", SWIG_FromInt((int)wxPAPER_B5_TRANSVERSE));
42858 PyDict_SetItemString(d,"PAPER_A3_EXTRA", SWIG_FromInt((int)wxPAPER_A3_EXTRA));
42859 PyDict_SetItemString(d,"PAPER_A5_EXTRA", SWIG_FromInt((int)wxPAPER_A5_EXTRA));
42860 PyDict_SetItemString(d,"PAPER_B5_EXTRA", SWIG_FromInt((int)wxPAPER_B5_EXTRA));
42861 PyDict_SetItemString(d,"PAPER_A2", SWIG_FromInt((int)wxPAPER_A2));
42862 PyDict_SetItemString(d,"PAPER_A3_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A3_TRANSVERSE));
42863 PyDict_SetItemString(d,"PAPER_A3_EXTRA_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A3_EXTRA_TRANSVERSE));
42864 PyDict_SetItemString(d,"DUPLEX_SIMPLEX", SWIG_FromInt((int)wxDUPLEX_SIMPLEX));
42865 PyDict_SetItemString(d,"DUPLEX_HORIZONTAL", SWIG_FromInt((int)wxDUPLEX_HORIZONTAL));
42866 PyDict_SetItemString(d,"DUPLEX_VERTICAL", SWIG_FromInt((int)wxDUPLEX_VERTICAL));
42867 PyDict_SetItemString(d,"ITEM_SEPARATOR", SWIG_FromInt((int)wxITEM_SEPARATOR));
42868 PyDict_SetItemString(d,"ITEM_NORMAL", SWIG_FromInt((int)wxITEM_NORMAL));
42869 PyDict_SetItemString(d,"ITEM_CHECK", SWIG_FromInt((int)wxITEM_CHECK));
42870 PyDict_SetItemString(d,"ITEM_RADIO", SWIG_FromInt((int)wxITEM_RADIO));
42871 PyDict_SetItemString(d,"ITEM_MAX", SWIG_FromInt((int)wxITEM_MAX));
42872 PyDict_SetItemString(d,"HT_NOWHERE", SWIG_FromInt((int)wxHT_NOWHERE));
42873 PyDict_SetItemString(d,"HT_SCROLLBAR_FIRST", SWIG_FromInt((int)wxHT_SCROLLBAR_FIRST));
42874 PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_1", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_1));
42875 PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_2", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_2));
42876 PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_1", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_1));
42877 PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_2", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_2));
42878 PyDict_SetItemString(d,"HT_SCROLLBAR_THUMB", SWIG_FromInt((int)wxHT_SCROLLBAR_THUMB));
42879 PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_1", SWIG_FromInt((int)wxHT_SCROLLBAR_BAR_1));
42880 PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_2", SWIG_FromInt((int)wxHT_SCROLLBAR_BAR_2));
42881 PyDict_SetItemString(d,"HT_SCROLLBAR_LAST", SWIG_FromInt((int)wxHT_SCROLLBAR_LAST));
42882 PyDict_SetItemString(d,"HT_WINDOW_OUTSIDE", SWIG_FromInt((int)wxHT_WINDOW_OUTSIDE));
42883 PyDict_SetItemString(d,"HT_WINDOW_INSIDE", SWIG_FromInt((int)wxHT_WINDOW_INSIDE));
42884 PyDict_SetItemString(d,"HT_WINDOW_VERT_SCROLLBAR", SWIG_FromInt((int)wxHT_WINDOW_VERT_SCROLLBAR));
42885 PyDict_SetItemString(d,"HT_WINDOW_HORZ_SCROLLBAR", SWIG_FromInt((int)wxHT_WINDOW_HORZ_SCROLLBAR));
42886 PyDict_SetItemString(d,"HT_WINDOW_CORNER", SWIG_FromInt((int)wxHT_WINDOW_CORNER));
42887 PyDict_SetItemString(d,"HT_MAX", SWIG_FromInt((int)wxHT_MAX));
42888 PyDict_SetItemString(d,"MOD_NONE", SWIG_FromInt((int)wxMOD_NONE));
42889 PyDict_SetItemString(d,"MOD_ALT", SWIG_FromInt((int)wxMOD_ALT));
42890 PyDict_SetItemString(d,"MOD_CONTROL", SWIG_FromInt((int)wxMOD_CONTROL));
42891 PyDict_SetItemString(d,"MOD_SHIFT", SWIG_FromInt((int)wxMOD_SHIFT));
42892 PyDict_SetItemString(d,"MOD_WIN", SWIG_FromInt((int)wxMOD_WIN));
42893 PyDict_SetItemString(d,"UPDATE_UI_NONE", SWIG_FromInt((int)wxUPDATE_UI_NONE));
42894 PyDict_SetItemString(d,"UPDATE_UI_RECURSE", SWIG_FromInt((int)wxUPDATE_UI_RECURSE));
42895 PyDict_SetItemString(d,"UPDATE_UI_FROMIDLE", SWIG_FromInt((int)wxUPDATE_UI_FROMIDLE));
42896 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
42897 SWIG_addvarlink(SWIG_globals,(char*)"EmptyString",_wrap_EmptyString_get, _wrap_EmptyString_set);
42898 PyDict_SetItemString(d,"BITMAP_TYPE_INVALID", SWIG_FromInt((int)wxBITMAP_TYPE_INVALID));
42899 PyDict_SetItemString(d,"BITMAP_TYPE_BMP", SWIG_FromInt((int)wxBITMAP_TYPE_BMP));
42900 PyDict_SetItemString(d,"BITMAP_TYPE_ICO", SWIG_FromInt((int)wxBITMAP_TYPE_ICO));
42901 PyDict_SetItemString(d,"BITMAP_TYPE_CUR", SWIG_FromInt((int)wxBITMAP_TYPE_CUR));
42902 PyDict_SetItemString(d,"BITMAP_TYPE_XBM", SWIG_FromInt((int)wxBITMAP_TYPE_XBM));
42903 PyDict_SetItemString(d,"BITMAP_TYPE_XBM_DATA", SWIG_FromInt((int)wxBITMAP_TYPE_XBM_DATA));
42904 PyDict_SetItemString(d,"BITMAP_TYPE_XPM", SWIG_FromInt((int)wxBITMAP_TYPE_XPM));
42905 PyDict_SetItemString(d,"BITMAP_TYPE_XPM_DATA", SWIG_FromInt((int)wxBITMAP_TYPE_XPM_DATA));
42906 PyDict_SetItemString(d,"BITMAP_TYPE_TIF", SWIG_FromInt((int)wxBITMAP_TYPE_TIF));
42907 PyDict_SetItemString(d,"BITMAP_TYPE_GIF", SWIG_FromInt((int)wxBITMAP_TYPE_GIF));
42908 PyDict_SetItemString(d,"BITMAP_TYPE_PNG", SWIG_FromInt((int)wxBITMAP_TYPE_PNG));
42909 PyDict_SetItemString(d,"BITMAP_TYPE_JPEG", SWIG_FromInt((int)wxBITMAP_TYPE_JPEG));
42910 PyDict_SetItemString(d,"BITMAP_TYPE_PNM", SWIG_FromInt((int)wxBITMAP_TYPE_PNM));
42911 PyDict_SetItemString(d,"BITMAP_TYPE_PCX", SWIG_FromInt((int)wxBITMAP_TYPE_PCX));
42912 PyDict_SetItemString(d,"BITMAP_TYPE_PICT", SWIG_FromInt((int)wxBITMAP_TYPE_PICT));
42913 PyDict_SetItemString(d,"BITMAP_TYPE_ICON", SWIG_FromInt((int)wxBITMAP_TYPE_ICON));
42914 PyDict_SetItemString(d,"BITMAP_TYPE_ANI", SWIG_FromInt((int)wxBITMAP_TYPE_ANI));
42915 PyDict_SetItemString(d,"BITMAP_TYPE_IFF", SWIG_FromInt((int)wxBITMAP_TYPE_IFF));
42916 PyDict_SetItemString(d,"BITMAP_TYPE_MACCURSOR", SWIG_FromInt((int)wxBITMAP_TYPE_MACCURSOR));
42917 PyDict_SetItemString(d,"BITMAP_TYPE_ANY", SWIG_FromInt((int)wxBITMAP_TYPE_ANY));
42918 PyDict_SetItemString(d,"CURSOR_NONE", SWIG_FromInt((int)wxCURSOR_NONE));
42919 PyDict_SetItemString(d,"CURSOR_ARROW", SWIG_FromInt((int)wxCURSOR_ARROW));
42920 PyDict_SetItemString(d,"CURSOR_RIGHT_ARROW", SWIG_FromInt((int)wxCURSOR_RIGHT_ARROW));
42921 PyDict_SetItemString(d,"CURSOR_BULLSEYE", SWIG_FromInt((int)wxCURSOR_BULLSEYE));
42922 PyDict_SetItemString(d,"CURSOR_CHAR", SWIG_FromInt((int)wxCURSOR_CHAR));
42923 PyDict_SetItemString(d,"CURSOR_CROSS", SWIG_FromInt((int)wxCURSOR_CROSS));
42924 PyDict_SetItemString(d,"CURSOR_HAND", SWIG_FromInt((int)wxCURSOR_HAND));
42925 PyDict_SetItemString(d,"CURSOR_IBEAM", SWIG_FromInt((int)wxCURSOR_IBEAM));
42926 PyDict_SetItemString(d,"CURSOR_LEFT_BUTTON", SWIG_FromInt((int)wxCURSOR_LEFT_BUTTON));
42927 PyDict_SetItemString(d,"CURSOR_MAGNIFIER", SWIG_FromInt((int)wxCURSOR_MAGNIFIER));
42928 PyDict_SetItemString(d,"CURSOR_MIDDLE_BUTTON", SWIG_FromInt((int)wxCURSOR_MIDDLE_BUTTON));
42929 PyDict_SetItemString(d,"CURSOR_NO_ENTRY", SWIG_FromInt((int)wxCURSOR_NO_ENTRY));
42930 PyDict_SetItemString(d,"CURSOR_PAINT_BRUSH", SWIG_FromInt((int)wxCURSOR_PAINT_BRUSH));
42931 PyDict_SetItemString(d,"CURSOR_PENCIL", SWIG_FromInt((int)wxCURSOR_PENCIL));
42932 PyDict_SetItemString(d,"CURSOR_POINT_LEFT", SWIG_FromInt((int)wxCURSOR_POINT_LEFT));
42933 PyDict_SetItemString(d,"CURSOR_POINT_RIGHT", SWIG_FromInt((int)wxCURSOR_POINT_RIGHT));
42934 PyDict_SetItemString(d,"CURSOR_QUESTION_ARROW", SWIG_FromInt((int)wxCURSOR_QUESTION_ARROW));
42935 PyDict_SetItemString(d,"CURSOR_RIGHT_BUTTON", SWIG_FromInt((int)wxCURSOR_RIGHT_BUTTON));
42936 PyDict_SetItemString(d,"CURSOR_SIZENESW", SWIG_FromInt((int)wxCURSOR_SIZENESW));
42937 PyDict_SetItemString(d,"CURSOR_SIZENS", SWIG_FromInt((int)wxCURSOR_SIZENS));
42938 PyDict_SetItemString(d,"CURSOR_SIZENWSE", SWIG_FromInt((int)wxCURSOR_SIZENWSE));
42939 PyDict_SetItemString(d,"CURSOR_SIZEWE", SWIG_FromInt((int)wxCURSOR_SIZEWE));
42940 PyDict_SetItemString(d,"CURSOR_SIZING", SWIG_FromInt((int)wxCURSOR_SIZING));
42941 PyDict_SetItemString(d,"CURSOR_SPRAYCAN", SWIG_FromInt((int)wxCURSOR_SPRAYCAN));
42942 PyDict_SetItemString(d,"CURSOR_WAIT", SWIG_FromInt((int)wxCURSOR_WAIT));
42943 PyDict_SetItemString(d,"CURSOR_WATCH", SWIG_FromInt((int)wxCURSOR_WATCH));
42944 PyDict_SetItemString(d,"CURSOR_BLANK", SWIG_FromInt((int)wxCURSOR_BLANK));
42945 PyDict_SetItemString(d,"CURSOR_DEFAULT", SWIG_FromInt((int)wxCURSOR_DEFAULT));
42946 PyDict_SetItemString(d,"CURSOR_COPY_ARROW", SWIG_FromInt((int)wxCURSOR_COPY_ARROW));
42947 PyDict_SetItemString(d,"CURSOR_ARROWWAIT", SWIG_FromInt((int)wxCURSOR_ARROWWAIT));
42948 PyDict_SetItemString(d,"CURSOR_MAX", SWIG_FromInt((int)wxCURSOR_MAX));
42949 SWIG_addvarlink(SWIG_globals,(char*)"DefaultPosition",_wrap_DefaultPosition_get, _wrap_DefaultPosition_set);
42950 SWIG_addvarlink(SWIG_globals,(char*)"DefaultSize",_wrap_DefaultSize_get, _wrap_DefaultSize_set);
42951 PyDict_SetItemString(d,"FromStart", SWIG_FromInt((int)wxFromStart));
42952 PyDict_SetItemString(d,"FromCurrent", SWIG_FromInt((int)wxFromCurrent));
42953 PyDict_SetItemString(d,"FromEnd", SWIG_FromInt((int)wxFromEnd));
42954
42955 wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream");
42956
42957
42958 wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler");
42959
42960 SWIG_addvarlink(SWIG_globals,(char*)"NullImage",_wrap_NullImage_get, _wrap_NullImage_set);
42961 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BMP_FORMAT",_wrap_IMAGE_OPTION_BMP_FORMAT_get, _wrap_IMAGE_OPTION_BMP_FORMAT_set);
42962 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set);
42963 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set);
42964 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTION",_wrap_IMAGE_OPTION_RESOLUTION_get, _wrap_IMAGE_OPTION_RESOLUTION_set);
42965 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONUNIT",_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get, _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set);
42966 PyDict_SetItemString(d,"IMAGE_RESOLUTION_INCHES", SWIG_FromInt((int)wxIMAGE_RESOLUTION_INCHES));
42967 PyDict_SetItemString(d,"IMAGE_RESOLUTION_CM", SWIG_FromInt((int)wxIMAGE_RESOLUTION_CM));
42968 PyDict_SetItemString(d,"BMP_24BPP", SWIG_FromInt((int)wxBMP_24BPP));
42969 PyDict_SetItemString(d,"BMP_8BPP", SWIG_FromInt((int)wxBMP_8BPP));
42970 PyDict_SetItemString(d,"BMP_8BPP_GREY", SWIG_FromInt((int)wxBMP_8BPP_GREY));
42971 PyDict_SetItemString(d,"BMP_8BPP_GRAY", SWIG_FromInt((int)wxBMP_8BPP_GRAY));
42972 PyDict_SetItemString(d,"BMP_8BPP_RED", SWIG_FromInt((int)wxBMP_8BPP_RED));
42973 PyDict_SetItemString(d,"BMP_8BPP_PALETTE", SWIG_FromInt((int)wxBMP_8BPP_PALETTE));
42974 PyDict_SetItemString(d,"BMP_4BPP", SWIG_FromInt((int)wxBMP_4BPP));
42975 PyDict_SetItemString(d,"BMP_1BPP", SWIG_FromInt((int)wxBMP_1BPP));
42976 PyDict_SetItemString(d,"BMP_1BPP_BW", SWIG_FromInt((int)wxBMP_1BPP_BW));
42977 PyDict_SetItemString(d,"EVENT_PROPAGATE_NONE", SWIG_FromInt((int)wxEVENT_PROPAGATE_NONE));
42978 PyDict_SetItemString(d,"EVENT_PROPAGATE_MAX", SWIG_FromInt((int)wxEVENT_PROPAGATE_MAX));
42979 PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL));
42980 PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST));
42981 PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST));
42982 PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED));
42983 PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED));
42984 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED));
42985 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED));
42986 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED));
42987 PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED));
42988 PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED));
42989 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED));
42990 PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED));
42991 PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED));
42992 PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED));
42993 PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED));
42994 PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED));
42995 PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED));
42996 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED));
42997 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER));
42998 PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN));
42999 PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP));
43000 PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN));
43001 PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP));
43002 PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN));
43003 PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP));
43004 PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION));
43005 PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW));
43006 PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW));
43007 PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK));
43008 PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK));
43009 PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK));
43010 PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS));
43011 PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS));
43012 PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS));
43013 PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL));
43014 PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN));
43015 PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP));
43016 PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN));
43017 PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP));
43018 PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN));
43019 PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP));
43020 PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION));
43021 PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW));
43022 PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW));
43023 PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK));
43024 PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK));
43025 PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK));
43026 PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR));
43027 PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK));
43028 PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY));
43029 PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN));
43030 PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP));
43031 PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY));
43032 PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR));
43033 PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP));
43034 PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM));
43035 PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP));
43036 PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN));
43037 PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP));
43038 PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN));
43039 PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK));
43040 PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE));
43041 PyDict_SetItemString(d, "wxEVT_SCROLL_ENDSCROLL", PyInt_FromLong(wxEVT_SCROLL_ENDSCROLL));
43042 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP));
43043 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM));
43044 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP));
43045 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN));
43046 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP));
43047 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN));
43048 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK));
43049 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE));
43050 PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE));
43051 PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE));
43052 PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW));
43053 PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION));
43054 PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION));
43055 PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP));
43056 PyDict_SetItemString(d, "wxEVT_POWER", PyInt_FromLong(wxEVT_POWER));
43057 PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE));
43058 PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE));
43059 PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY));
43060 PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW));
43061 PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE));
43062 PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE));
43063 PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED));
43064 PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT));
43065 PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND));
43066 PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT));
43067 PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON));
43068 PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN));
43069 PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE));
43070 PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT));
43071 PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU));
43072 PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED));
43073 PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED));
43074 PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED));
43075 PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE));
43076 PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED));
43077 PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES));
43078 PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM));
43079 PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM));
43080 PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM));
43081 PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG));
43082 PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE));
43083 PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI));
43084 PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING));
43085 PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING));
43086 PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK));
43087 PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK));
43088 PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK));
43089 PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK));
43090 PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS));
43091 PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS));
43092 PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER));
43093 PyDict_SetItemString(d,"MOUSE_BTN_ANY", SWIG_FromInt((int)wxMOUSE_BTN_ANY));
43094 PyDict_SetItemString(d,"MOUSE_BTN_NONE", SWIG_FromInt((int)wxMOUSE_BTN_NONE));
43095 PyDict_SetItemString(d,"MOUSE_BTN_LEFT", SWIG_FromInt((int)wxMOUSE_BTN_LEFT));
43096 PyDict_SetItemString(d,"MOUSE_BTN_MIDDLE", SWIG_FromInt((int)wxMOUSE_BTN_MIDDLE));
43097 PyDict_SetItemString(d,"MOUSE_BTN_RIGHT", SWIG_FromInt((int)wxMOUSE_BTN_RIGHT));
43098 PyDict_SetItemString(d,"UPDATE_UI_PROCESS_ALL", SWIG_FromInt((int)wxUPDATE_UI_PROCESS_ALL));
43099 PyDict_SetItemString(d,"UPDATE_UI_PROCESS_SPECIFIED", SWIG_FromInt((int)wxUPDATE_UI_PROCESS_SPECIFIED));
908b74cd
RD
43100 PyDict_SetItemString(d,"NavigationKeyEvent_IsForward", SWIG_FromInt((int)wxNavigationKeyEvent::IsForward));
43101 PyDict_SetItemString(d,"NavigationKeyEvent_WinChange", SWIG_FromInt((int)wxNavigationKeyEvent::WinChange));
d55e5bfc
RD
43102 PyDict_SetItemString(d,"IDLE_PROCESS_ALL", SWIG_FromInt((int)wxIDLE_PROCESS_ALL));
43103 PyDict_SetItemString(d,"IDLE_PROCESS_SPECIFIED", SWIG_FromInt((int)wxIDLE_PROCESS_SPECIFIED));
43104 PyDict_SetItemString(d,"PYAPP_ASSERT_SUPPRESS", SWIG_FromInt((int)wxPYAPP_ASSERT_SUPPRESS));
43105 PyDict_SetItemString(d,"PYAPP_ASSERT_EXCEPTION", SWIG_FromInt((int)wxPYAPP_ASSERT_EXCEPTION));
43106 PyDict_SetItemString(d,"PYAPP_ASSERT_DIALOG", SWIG_FromInt((int)wxPYAPP_ASSERT_DIALOG));
43107 PyDict_SetItemString(d,"PYAPP_ASSERT_LOG", SWIG_FromInt((int)wxPYAPP_ASSERT_LOG));
43108 PyDict_SetItemString(d,"PRINT_WINDOWS", SWIG_FromInt((int)wxPRINT_WINDOWS));
43109 PyDict_SetItemString(d,"PRINT_POSTSCRIPT", SWIG_FromInt((int)wxPRINT_POSTSCRIPT));
43110 SWIG_addvarlink(SWIG_globals,(char*)"NullAcceleratorTable",_wrap_NullAcceleratorTable_get, _wrap_NullAcceleratorTable_set);
43111 SWIG_addvarlink(SWIG_globals,(char*)"PanelNameStr",_wrap_PanelNameStr_get, _wrap_PanelNameStr_set);
43112 PyDict_SetItemString(d,"WINDOW_VARIANT_NORMAL", SWIG_FromInt((int)wxWINDOW_VARIANT_NORMAL));
43113 PyDict_SetItemString(d,"WINDOW_VARIANT_SMALL", SWIG_FromInt((int)wxWINDOW_VARIANT_SMALL));
43114 PyDict_SetItemString(d,"WINDOW_VARIANT_MINI", SWIG_FromInt((int)wxWINDOW_VARIANT_MINI));
43115 PyDict_SetItemString(d,"WINDOW_VARIANT_LARGE", SWIG_FromInt((int)wxWINDOW_VARIANT_LARGE));
43116 PyDict_SetItemString(d,"WINDOW_VARIANT_MAX", SWIG_FromInt((int)wxWINDOW_VARIANT_MAX));
43117 SWIG_addvarlink(SWIG_globals,(char*)"DefaultValidator",_wrap_DefaultValidator_get, _wrap_DefaultValidator_set);
43118 SWIG_addvarlink(SWIG_globals,(char*)"ControlNameStr",_wrap_ControlNameStr_get, _wrap_ControlNameStr_set);
43119 PyDict_SetItemString(d,"FLEX_GROWMODE_NONE", SWIG_FromInt((int)wxFLEX_GROWMODE_NONE));
43120 PyDict_SetItemString(d,"FLEX_GROWMODE_SPECIFIED", SWIG_FromInt((int)wxFLEX_GROWMODE_SPECIFIED));
43121 PyDict_SetItemString(d,"FLEX_GROWMODE_ALL", SWIG_FromInt((int)wxFLEX_GROWMODE_ALL));
43122 SWIG_addvarlink(SWIG_globals,(char*)"DefaultSpan",_wrap_DefaultSpan_get, _wrap_DefaultSpan_set);
43123 PyDict_SetItemString(d,"Left", SWIG_FromInt((int)wxLeft));
43124 PyDict_SetItemString(d,"Top", SWIG_FromInt((int)wxTop));
43125 PyDict_SetItemString(d,"Right", SWIG_FromInt((int)wxRight));
43126 PyDict_SetItemString(d,"Bottom", SWIG_FromInt((int)wxBottom));
43127 PyDict_SetItemString(d,"Width", SWIG_FromInt((int)wxWidth));
43128 PyDict_SetItemString(d,"Height", SWIG_FromInt((int)wxHeight));
43129 PyDict_SetItemString(d,"Centre", SWIG_FromInt((int)wxCentre));
43130 PyDict_SetItemString(d,"Center", SWIG_FromInt((int)wxCenter));
43131 PyDict_SetItemString(d,"CentreX", SWIG_FromInt((int)wxCentreX));
43132 PyDict_SetItemString(d,"CentreY", SWIG_FromInt((int)wxCentreY));
43133 PyDict_SetItemString(d,"Unconstrained", SWIG_FromInt((int)wxUnconstrained));
43134 PyDict_SetItemString(d,"AsIs", SWIG_FromInt((int)wxAsIs));
43135 PyDict_SetItemString(d,"PercentOf", SWIG_FromInt((int)wxPercentOf));
43136 PyDict_SetItemString(d,"Above", SWIG_FromInt((int)wxAbove));
43137 PyDict_SetItemString(d,"Below", SWIG_FromInt((int)wxBelow));
43138 PyDict_SetItemString(d,"LeftOf", SWIG_FromInt((int)wxLeftOf));
43139 PyDict_SetItemString(d,"RightOf", SWIG_FromInt((int)wxRightOf));
43140 PyDict_SetItemString(d,"SameAs", SWIG_FromInt((int)wxSameAs));
43141 PyDict_SetItemString(d,"Absolute", SWIG_FromInt((int)wxAbsolute));
43142
43143 // Initialize threading, some globals and such
43144 __wxPyPreStart(d);
43145
43146
43147 // Although these are defined in __version__ they need to be here too so
43148 // that an assert can be done to ensure that the wxPython and the wxWindows
43149 // versions match.
43150 PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION ));
43151 PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION ));
43152 PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER ));
43153
43154}
43155