]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/_core_wrap.cpp
Use DeafultAttributes instead of hard coded defaults
[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 }
19272049 1273int wxKeyEvent_GetUnicodeKey(wxKeyEvent *self){
d55e5bfc 1274 #if wxUSE_UNICODE
19272049 1275 return self->GetUnicodeKey();
d55e5bfc
RD
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);
110da5b0 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 {
412d302d 6288 resultobj = wxPyMake_wxObject(result, 1);
d55e5bfc
RD
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 {
412d302d 6669 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
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 {
412d302d 7034 resultobj = wxPyMake_wxObject(result, 1);
d55e5bfc
RD
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 {
412d302d 7174 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
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 {
412d302d 7520 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
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 {
412d302d 7646 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
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 {
412d302d 8035 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
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);
110da5b0 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);
110da5b0 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);
110da5b0 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 {
412d302d 11785 resultobj = wxPyMake_wxObject(result, 1);
d55e5bfc
RD
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 {
412d302d 11813 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
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 {
412d302d 11841 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
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 {
412d302d 12301 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
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 {
412d302d 13572 resultobj = wxPyMake_wxObject(result, 1);
d55e5bfc
RD
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
412d302d
RD
13912static PyObject *_wrap_MouseEvent_CmdDown(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_CmdDown",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)->CmdDown();
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
d55e5bfc
RD
13940static PyObject *_wrap_MouseEvent_LeftDown(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_LeftDown",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)->LeftDown();
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_MiddleDown(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_MiddleDown",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)->MiddleDown();
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_RightDown(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_RightDown",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)->RightDown();
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_LeftUp(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_LeftUp",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)->LeftUp();
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_MiddleUp(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_MiddleUp",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)->MiddleUp();
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_RightUp(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_RightUp",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)->RightUp();
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_LeftDClick(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_LeftDClick",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)->LeftDClick();
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_MiddleDClick(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_MiddleDClick",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)->MiddleDClick();
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_RightDClick(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_RightDClick",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)((wxMouseEvent const *)arg1)->RightDClick();
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_LeftIsDown(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_LeftIsDown",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)->LeftIsDown();
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_MiddleIsDown(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_MiddleIsDown",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)->MiddleIsDown();
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_RightIsDown(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_RightIsDown",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)(arg1)->RightIsDown();
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_Dragging(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_Dragging",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)->Dragging();
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_Moving(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_Moving",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)->Moving();
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_Entering(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_Entering",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)->Entering();
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_Leaving(PyObject *self, PyObject *args, PyObject *kwargs) {
14361 PyObject *resultobj;
14362 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14363 bool result;
14364 PyObject * obj0 = 0 ;
14365 char *kwnames[] = {
14366 (char *) "self", NULL
14367 };
14368
14369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Leaving",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 = (bool)((wxMouseEvent const *)arg1)->Leaving();
14375
14376 wxPyEndAllowThreads(__tstate);
14377 if (PyErr_Occurred()) SWIG_fail;
14378 }
14379 {
14380 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14381 }
14382 return resultobj;
14383 fail:
14384 return NULL;
14385}
14386
14387
14388static PyObject *_wrap_MouseEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
14389 PyObject *resultobj;
14390 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14391 wxPoint result;
14392 PyObject * obj0 = 0 ;
14393 char *kwnames[] = {
14394 (char *) "self", NULL
14395 };
14396
14397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPosition",kwnames,&obj0)) goto fail;
14398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14400 {
14401 PyThreadState* __tstate = wxPyBeginAllowThreads();
14402 result = (arg1)->GetPosition();
14403
14404 wxPyEndAllowThreads(__tstate);
14405 if (PyErr_Occurred()) SWIG_fail;
14406 }
14407 {
14408 wxPoint * resultptr;
14409 resultptr = new wxPoint((wxPoint &) result);
14410 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14411 }
14412 return resultobj;
14413 fail:
14414 return NULL;
14415}
14416
14417
14418static PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14419 PyObject *resultobj;
14420 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14421 long *arg2 = (long *) 0 ;
14422 long *arg3 = (long *) 0 ;
14423 long temp2 ;
14424 long temp3 ;
14425 PyObject * obj0 = 0 ;
14426 char *kwnames[] = {
14427 (char *) "self", NULL
14428 };
14429
14430 arg2 = &temp2;
14431 arg3 = &temp3;
14432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPositionTuple",kwnames,&obj0)) goto fail;
14433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14435 {
14436 PyThreadState* __tstate = wxPyBeginAllowThreads();
14437 (arg1)->GetPosition(arg2,arg3);
14438
14439 wxPyEndAllowThreads(__tstate);
14440 if (PyErr_Occurred()) SWIG_fail;
14441 }
14442 Py_INCREF(Py_None); resultobj = Py_None;
14443 {
14444 PyObject *o = PyInt_FromLong((long) (*arg2));
14445 resultobj = t_output_helper(resultobj,o);
14446 }
14447 {
14448 PyObject *o = PyInt_FromLong((long) (*arg3));
14449 resultobj = t_output_helper(resultobj,o);
14450 }
14451 return resultobj;
14452 fail:
14453 return NULL;
14454}
14455
14456
14457static PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
14458 PyObject *resultobj;
14459 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14460 wxDC *arg2 = 0 ;
14461 wxPoint result;
14462 PyObject * obj0 = 0 ;
14463 PyObject * obj1 = 0 ;
14464 char *kwnames[] = {
14465 (char *) "self",(char *) "dc", NULL
14466 };
14467
14468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) goto fail;
14469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14471 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
14472 SWIG_POINTER_EXCEPTION | 0)) == -1)
14473 SWIG_fail;
14474 if (arg2 == NULL) {
14475 PyErr_SetString(PyExc_TypeError,"null reference");
14476 SWIG_fail;
14477 }
14478 {
14479 PyThreadState* __tstate = wxPyBeginAllowThreads();
14480 result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2);
14481
14482 wxPyEndAllowThreads(__tstate);
14483 if (PyErr_Occurred()) SWIG_fail;
14484 }
14485 {
14486 wxPoint * resultptr;
14487 resultptr = new wxPoint((wxPoint &) result);
14488 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14489 }
14490 return resultobj;
14491 fail:
14492 return NULL;
14493}
14494
14495
14496static PyObject *_wrap_MouseEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
14497 PyObject *resultobj;
14498 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14499 int result;
14500 PyObject * obj0 = 0 ;
14501 char *kwnames[] = {
14502 (char *) "self", NULL
14503 };
14504
14505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetX",kwnames,&obj0)) goto fail;
14506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14508 {
14509 PyThreadState* __tstate = wxPyBeginAllowThreads();
14510 result = (int)((wxMouseEvent const *)arg1)->GetX();
14511
14512 wxPyEndAllowThreads(__tstate);
14513 if (PyErr_Occurred()) SWIG_fail;
14514 }
14515 resultobj = SWIG_FromInt((int)result);
14516 return resultobj;
14517 fail:
14518 return NULL;
14519}
14520
14521
14522static PyObject *_wrap_MouseEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
14523 PyObject *resultobj;
14524 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14525 int result;
14526 PyObject * obj0 = 0 ;
14527 char *kwnames[] = {
14528 (char *) "self", NULL
14529 };
14530
14531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetY",kwnames,&obj0)) goto fail;
14532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14534 {
14535 PyThreadState* __tstate = wxPyBeginAllowThreads();
14536 result = (int)((wxMouseEvent const *)arg1)->GetY();
14537
14538 wxPyEndAllowThreads(__tstate);
14539 if (PyErr_Occurred()) SWIG_fail;
14540 }
14541 resultobj = SWIG_FromInt((int)result);
14542 return resultobj;
14543 fail:
14544 return NULL;
14545}
14546
14547
14548static PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *self, PyObject *args, PyObject *kwargs) {
14549 PyObject *resultobj;
14550 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14551 int result;
14552 PyObject * obj0 = 0 ;
14553 char *kwnames[] = {
14554 (char *) "self", NULL
14555 };
14556
14557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelRotation",kwnames,&obj0)) goto fail;
14558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14560 {
14561 PyThreadState* __tstate = wxPyBeginAllowThreads();
14562 result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation();
14563
14564 wxPyEndAllowThreads(__tstate);
14565 if (PyErr_Occurred()) SWIG_fail;
14566 }
14567 resultobj = SWIG_FromInt((int)result);
14568 return resultobj;
14569 fail:
14570 return NULL;
14571}
14572
14573
14574static PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *self, PyObject *args, PyObject *kwargs) {
14575 PyObject *resultobj;
14576 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14577 int result;
14578 PyObject * obj0 = 0 ;
14579 char *kwnames[] = {
14580 (char *) "self", NULL
14581 };
14582
14583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelDelta",kwnames,&obj0)) goto fail;
14584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14586 {
14587 PyThreadState* __tstate = wxPyBeginAllowThreads();
14588 result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta();
14589
14590 wxPyEndAllowThreads(__tstate);
14591 if (PyErr_Occurred()) SWIG_fail;
14592 }
14593 resultobj = SWIG_FromInt((int)result);
14594 return resultobj;
14595 fail:
14596 return NULL;
14597}
14598
14599
14600static PyObject *_wrap_MouseEvent_GetLinesPerAction(PyObject *self, PyObject *args, PyObject *kwargs) {
14601 PyObject *resultobj;
14602 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14603 int result;
14604 PyObject * obj0 = 0 ;
14605 char *kwnames[] = {
14606 (char *) "self", NULL
14607 };
14608
14609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetLinesPerAction",kwnames,&obj0)) goto fail;
14610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14612 {
14613 PyThreadState* __tstate = wxPyBeginAllowThreads();
14614 result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction();
14615
14616 wxPyEndAllowThreads(__tstate);
14617 if (PyErr_Occurred()) SWIG_fail;
14618 }
14619 resultobj = SWIG_FromInt((int)result);
14620 return resultobj;
14621 fail:
14622 return NULL;
14623}
14624
14625
14626static PyObject *_wrap_MouseEvent_IsPageScroll(PyObject *self, PyObject *args, PyObject *kwargs) {
14627 PyObject *resultobj;
14628 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14629 bool result;
14630 PyObject * obj0 = 0 ;
14631 char *kwnames[] = {
14632 (char *) "self", NULL
14633 };
14634
14635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsPageScroll",kwnames,&obj0)) goto fail;
14636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14638 {
14639 PyThreadState* __tstate = wxPyBeginAllowThreads();
14640 result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll();
14641
14642 wxPyEndAllowThreads(__tstate);
14643 if (PyErr_Occurred()) SWIG_fail;
14644 }
14645 {
14646 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14647 }
14648 return resultobj;
14649 fail:
14650 return NULL;
14651}
14652
14653
14654static PyObject *_wrap_MouseEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14655 PyObject *resultobj;
14656 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14657 int arg2 ;
14658 PyObject * obj0 = 0 ;
14659 PyObject * obj1 = 0 ;
14660 char *kwnames[] = {
14661 (char *) "self",(char *) "m_x", NULL
14662 };
14663
14664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail;
14665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14667 arg2 = (int) SWIG_AsInt(obj1);
14668 if (PyErr_Occurred()) SWIG_fail;
14669 if (arg1) (arg1)->m_x = arg2;
14670
14671 Py_INCREF(Py_None); resultobj = Py_None;
14672 return resultobj;
14673 fail:
14674 return NULL;
14675}
14676
14677
14678static PyObject *_wrap_MouseEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14679 PyObject *resultobj;
14680 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14681 int result;
14682 PyObject * obj0 = 0 ;
14683 char *kwnames[] = {
14684 (char *) "self", NULL
14685 };
14686
14687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_x_get",kwnames,&obj0)) goto fail;
14688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14690 result = (int) ((arg1)->m_x);
14691
14692 resultobj = SWIG_FromInt((int)result);
14693 return resultobj;
14694 fail:
14695 return NULL;
14696}
14697
14698
14699static PyObject *_wrap_MouseEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14700 PyObject *resultobj;
14701 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14702 int arg2 ;
14703 PyObject * obj0 = 0 ;
14704 PyObject * obj1 = 0 ;
14705 char *kwnames[] = {
14706 (char *) "self",(char *) "m_y", NULL
14707 };
14708
14709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail;
14710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14712 arg2 = (int) SWIG_AsInt(obj1);
14713 if (PyErr_Occurred()) SWIG_fail;
14714 if (arg1) (arg1)->m_y = arg2;
14715
14716 Py_INCREF(Py_None); resultobj = Py_None;
14717 return resultobj;
14718 fail:
14719 return NULL;
14720}
14721
14722
14723static PyObject *_wrap_MouseEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14724 PyObject *resultobj;
14725 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14726 int result;
14727 PyObject * obj0 = 0 ;
14728 char *kwnames[] = {
14729 (char *) "self", NULL
14730 };
14731
14732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_y_get",kwnames,&obj0)) goto fail;
14733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14735 result = (int) ((arg1)->m_y);
14736
14737 resultobj = SWIG_FromInt((int)result);
14738 return resultobj;
14739 fail:
14740 return NULL;
14741}
14742
14743
14744static PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14745 PyObject *resultobj;
14746 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14747 bool arg2 ;
14748 PyObject * obj0 = 0 ;
14749 PyObject * obj1 = 0 ;
14750 char *kwnames[] = {
14751 (char *) "self",(char *) "m_leftDown", NULL
14752 };
14753
14754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_leftDown_set",kwnames,&obj0,&obj1)) goto fail;
14755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14757 arg2 = (bool) SWIG_AsBool(obj1);
14758 if (PyErr_Occurred()) SWIG_fail;
14759 if (arg1) (arg1)->m_leftDown = arg2;
14760
14761 Py_INCREF(Py_None); resultobj = Py_None;
14762 return resultobj;
14763 fail:
14764 return NULL;
14765}
14766
14767
14768static PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14769 PyObject *resultobj;
14770 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14771 bool result;
14772 PyObject * obj0 = 0 ;
14773 char *kwnames[] = {
14774 (char *) "self", NULL
14775 };
14776
14777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_leftDown_get",kwnames,&obj0)) goto fail;
14778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14780 result = (bool) ((arg1)->m_leftDown);
14781
14782 {
14783 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14784 }
14785 return resultobj;
14786 fail:
14787 return NULL;
14788}
14789
14790
14791static PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14792 PyObject *resultobj;
14793 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14794 bool arg2 ;
14795 PyObject * obj0 = 0 ;
14796 PyObject * obj1 = 0 ;
14797 char *kwnames[] = {
14798 (char *) "self",(char *) "m_middleDown", NULL
14799 };
14800
14801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_middleDown_set",kwnames,&obj0,&obj1)) goto fail;
14802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14804 arg2 = (bool) SWIG_AsBool(obj1);
14805 if (PyErr_Occurred()) SWIG_fail;
14806 if (arg1) (arg1)->m_middleDown = arg2;
14807
14808 Py_INCREF(Py_None); resultobj = Py_None;
14809 return resultobj;
14810 fail:
14811 return NULL;
14812}
14813
14814
14815static PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14816 PyObject *resultobj;
14817 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14818 bool result;
14819 PyObject * obj0 = 0 ;
14820 char *kwnames[] = {
14821 (char *) "self", NULL
14822 };
14823
14824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_middleDown_get",kwnames,&obj0)) goto fail;
14825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14827 result = (bool) ((arg1)->m_middleDown);
14828
14829 {
14830 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14831 }
14832 return resultobj;
14833 fail:
14834 return NULL;
14835}
14836
14837
14838static PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14839 PyObject *resultobj;
14840 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14841 bool arg2 ;
14842 PyObject * obj0 = 0 ;
14843 PyObject * obj1 = 0 ;
14844 char *kwnames[] = {
14845 (char *) "self",(char *) "m_rightDown", NULL
14846 };
14847
14848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_rightDown_set",kwnames,&obj0,&obj1)) goto fail;
14849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14851 arg2 = (bool) SWIG_AsBool(obj1);
14852 if (PyErr_Occurred()) SWIG_fail;
14853 if (arg1) (arg1)->m_rightDown = arg2;
14854
14855 Py_INCREF(Py_None); resultobj = Py_None;
14856 return resultobj;
14857 fail:
14858 return NULL;
14859}
14860
14861
14862static PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14863 PyObject *resultobj;
14864 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14865 bool result;
14866 PyObject * obj0 = 0 ;
14867 char *kwnames[] = {
14868 (char *) "self", NULL
14869 };
14870
14871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_rightDown_get",kwnames,&obj0)) goto fail;
14872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14874 result = (bool) ((arg1)->m_rightDown);
14875
14876 {
14877 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14878 }
14879 return resultobj;
14880 fail:
14881 return NULL;
14882}
14883
14884
14885static PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14886 PyObject *resultobj;
14887 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14888 bool arg2 ;
14889 PyObject * obj0 = 0 ;
14890 PyObject * obj1 = 0 ;
14891 char *kwnames[] = {
14892 (char *) "self",(char *) "m_controlDown", NULL
14893 };
14894
14895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail;
14896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14898 arg2 = (bool) SWIG_AsBool(obj1);
14899 if (PyErr_Occurred()) SWIG_fail;
14900 if (arg1) (arg1)->m_controlDown = arg2;
14901
14902 Py_INCREF(Py_None); resultobj = Py_None;
14903 return resultobj;
14904 fail:
14905 return NULL;
14906}
14907
14908
14909static PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14910 PyObject *resultobj;
14911 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14912 bool result;
14913 PyObject * obj0 = 0 ;
14914 char *kwnames[] = {
14915 (char *) "self", NULL
14916 };
14917
14918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_controlDown_get",kwnames,&obj0)) goto fail;
14919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14921 result = (bool) ((arg1)->m_controlDown);
14922
14923 {
14924 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14925 }
14926 return resultobj;
14927 fail:
14928 return NULL;
14929}
14930
14931
14932static PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14933 PyObject *resultobj;
14934 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14935 bool arg2 ;
14936 PyObject * obj0 = 0 ;
14937 PyObject * obj1 = 0 ;
14938 char *kwnames[] = {
14939 (char *) "self",(char *) "m_shiftDown", NULL
14940 };
14941
14942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail;
14943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14945 arg2 = (bool) SWIG_AsBool(obj1);
14946 if (PyErr_Occurred()) SWIG_fail;
14947 if (arg1) (arg1)->m_shiftDown = arg2;
14948
14949 Py_INCREF(Py_None); resultobj = Py_None;
14950 return resultobj;
14951 fail:
14952 return NULL;
14953}
14954
14955
14956static PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14957 PyObject *resultobj;
14958 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14959 bool result;
14960 PyObject * obj0 = 0 ;
14961 char *kwnames[] = {
14962 (char *) "self", NULL
14963 };
14964
14965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_shiftDown_get",kwnames,&obj0)) goto fail;
14966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14968 result = (bool) ((arg1)->m_shiftDown);
14969
14970 {
14971 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14972 }
14973 return resultobj;
14974 fail:
14975 return NULL;
14976}
14977
14978
14979static PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14980 PyObject *resultobj;
14981 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14982 bool arg2 ;
14983 PyObject * obj0 = 0 ;
14984 PyObject * obj1 = 0 ;
14985 char *kwnames[] = {
14986 (char *) "self",(char *) "m_altDown", NULL
14987 };
14988
14989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail;
14990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14992 arg2 = (bool) SWIG_AsBool(obj1);
14993 if (PyErr_Occurred()) SWIG_fail;
14994 if (arg1) (arg1)->m_altDown = arg2;
14995
14996 Py_INCREF(Py_None); resultobj = Py_None;
14997 return resultobj;
14998 fail:
14999 return NULL;
15000}
15001
15002
15003static PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15004 PyObject *resultobj;
15005 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15006 bool result;
15007 PyObject * obj0 = 0 ;
15008 char *kwnames[] = {
15009 (char *) "self", NULL
15010 };
15011
15012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_altDown_get",kwnames,&obj0)) goto fail;
15013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15015 result = (bool) ((arg1)->m_altDown);
15016
15017 {
15018 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15019 }
15020 return resultobj;
15021 fail:
15022 return NULL;
15023}
15024
15025
15026static PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15027 PyObject *resultobj;
15028 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15029 bool arg2 ;
15030 PyObject * obj0 = 0 ;
15031 PyObject * obj1 = 0 ;
15032 char *kwnames[] = {
15033 (char *) "self",(char *) "m_metaDown", NULL
15034 };
15035
15036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail;
15037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15039 arg2 = (bool) SWIG_AsBool(obj1);
15040 if (PyErr_Occurred()) SWIG_fail;
15041 if (arg1) (arg1)->m_metaDown = arg2;
15042
15043 Py_INCREF(Py_None); resultobj = Py_None;
15044 return resultobj;
15045 fail:
15046 return NULL;
15047}
15048
15049
15050static PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15051 PyObject *resultobj;
15052 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15053 bool result;
15054 PyObject * obj0 = 0 ;
15055 char *kwnames[] = {
15056 (char *) "self", NULL
15057 };
15058
15059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_metaDown_get",kwnames,&obj0)) goto fail;
15060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15062 result = (bool) ((arg1)->m_metaDown);
15063
15064 {
15065 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15066 }
15067 return resultobj;
15068 fail:
15069 return NULL;
15070}
15071
15072
15073static PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15074 PyObject *resultobj;
15075 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15076 int arg2 ;
15077 PyObject * obj0 = 0 ;
15078 PyObject * obj1 = 0 ;
15079 char *kwnames[] = {
15080 (char *) "self",(char *) "m_wheelRotation", NULL
15081 };
15082
15083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelRotation_set",kwnames,&obj0,&obj1)) goto fail;
15084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15086 arg2 = (int) SWIG_AsInt(obj1);
15087 if (PyErr_Occurred()) SWIG_fail;
15088 if (arg1) (arg1)->m_wheelRotation = arg2;
15089
15090 Py_INCREF(Py_None); resultobj = Py_None;
15091 return resultobj;
15092 fail:
15093 return NULL;
15094}
15095
15096
15097static PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15098 PyObject *resultobj;
15099 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15100 int result;
15101 PyObject * obj0 = 0 ;
15102 char *kwnames[] = {
15103 (char *) "self", NULL
15104 };
15105
15106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelRotation_get",kwnames,&obj0)) goto fail;
15107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15109 result = (int) ((arg1)->m_wheelRotation);
15110
15111 resultobj = SWIG_FromInt((int)result);
15112 return resultobj;
15113 fail:
15114 return NULL;
15115}
15116
15117
15118static PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15119 PyObject *resultobj;
15120 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15121 int arg2 ;
15122 PyObject * obj0 = 0 ;
15123 PyObject * obj1 = 0 ;
15124 char *kwnames[] = {
15125 (char *) "self",(char *) "m_wheelDelta", NULL
15126 };
15127
15128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelDelta_set",kwnames,&obj0,&obj1)) goto fail;
15129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15131 arg2 = (int) SWIG_AsInt(obj1);
15132 if (PyErr_Occurred()) SWIG_fail;
15133 if (arg1) (arg1)->m_wheelDelta = arg2;
15134
15135 Py_INCREF(Py_None); resultobj = Py_None;
15136 return resultobj;
15137 fail:
15138 return NULL;
15139}
15140
15141
15142static PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15143 PyObject *resultobj;
15144 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15145 int result;
15146 PyObject * obj0 = 0 ;
15147 char *kwnames[] = {
15148 (char *) "self", NULL
15149 };
15150
15151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelDelta_get",kwnames,&obj0)) goto fail;
15152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15154 result = (int) ((arg1)->m_wheelDelta);
15155
15156 resultobj = SWIG_FromInt((int)result);
15157 return resultobj;
15158 fail:
15159 return NULL;
15160}
15161
15162
15163static PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15164 PyObject *resultobj;
15165 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15166 int arg2 ;
15167 PyObject * obj0 = 0 ;
15168 PyObject * obj1 = 0 ;
15169 char *kwnames[] = {
15170 (char *) "self",(char *) "m_linesPerAction", NULL
15171 };
15172
15173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_linesPerAction_set",kwnames,&obj0,&obj1)) goto fail;
15174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15176 arg2 = (int) SWIG_AsInt(obj1);
15177 if (PyErr_Occurred()) SWIG_fail;
15178 if (arg1) (arg1)->m_linesPerAction = arg2;
15179
15180 Py_INCREF(Py_None); resultobj = Py_None;
15181 return resultobj;
15182 fail:
15183 return NULL;
15184}
15185
15186
15187static PyObject *_wrap_MouseEvent_m_linesPerAction_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15188 PyObject *resultobj;
15189 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15190 int result;
15191 PyObject * obj0 = 0 ;
15192 char *kwnames[] = {
15193 (char *) "self", NULL
15194 };
15195
15196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_linesPerAction_get",kwnames,&obj0)) goto fail;
15197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15199 result = (int) ((arg1)->m_linesPerAction);
15200
15201 resultobj = SWIG_FromInt((int)result);
15202 return resultobj;
15203 fail:
15204 return NULL;
15205}
15206
15207
15208static PyObject * MouseEvent_swigregister(PyObject *self, PyObject *args) {
15209 PyObject *obj;
15210 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15211 SWIG_TypeClientData(SWIGTYPE_p_wxMouseEvent, obj);
15212 Py_INCREF(obj);
15213 return Py_BuildValue((char *)"");
15214}
15215static PyObject *_wrap_new_SetCursorEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
15216 PyObject *resultobj;
15217 int arg1 = (int) 0 ;
15218 int arg2 = (int) 0 ;
15219 wxSetCursorEvent *result;
15220 PyObject * obj0 = 0 ;
15221 PyObject * obj1 = 0 ;
15222 char *kwnames[] = {
15223 (char *) "x",(char *) "y", NULL
15224 };
15225
15226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SetCursorEvent",kwnames,&obj0,&obj1)) goto fail;
15227 if (obj0) {
15228 arg1 = (int) SWIG_AsInt(obj0);
15229 if (PyErr_Occurred()) SWIG_fail;
15230 }
15231 if (obj1) {
15232 arg2 = (int) SWIG_AsInt(obj1);
15233 if (PyErr_Occurred()) SWIG_fail;
15234 }
15235 {
15236 PyThreadState* __tstate = wxPyBeginAllowThreads();
15237 result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2);
15238
15239 wxPyEndAllowThreads(__tstate);
15240 if (PyErr_Occurred()) SWIG_fail;
15241 }
15242 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSetCursorEvent, 1);
15243 return resultobj;
15244 fail:
15245 return NULL;
15246}
15247
15248
15249static PyObject *_wrap_SetCursorEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
15250 PyObject *resultobj;
15251 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
15252 int result;
15253 PyObject * obj0 = 0 ;
15254 char *kwnames[] = {
15255 (char *) "self", NULL
15256 };
15257
15258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetX",kwnames,&obj0)) goto fail;
15259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent,
15260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15261 {
15262 PyThreadState* __tstate = wxPyBeginAllowThreads();
15263 result = (int)((wxSetCursorEvent const *)arg1)->GetX();
15264
15265 wxPyEndAllowThreads(__tstate);
15266 if (PyErr_Occurred()) SWIG_fail;
15267 }
15268 resultobj = SWIG_FromInt((int)result);
15269 return resultobj;
15270 fail:
15271 return NULL;
15272}
15273
15274
15275static PyObject *_wrap_SetCursorEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
15276 PyObject *resultobj;
15277 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
15278 int result;
15279 PyObject * obj0 = 0 ;
15280 char *kwnames[] = {
15281 (char *) "self", NULL
15282 };
15283
15284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetY",kwnames,&obj0)) goto fail;
15285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent,
15286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15287 {
15288 PyThreadState* __tstate = wxPyBeginAllowThreads();
15289 result = (int)((wxSetCursorEvent const *)arg1)->GetY();
15290
15291 wxPyEndAllowThreads(__tstate);
15292 if (PyErr_Occurred()) SWIG_fail;
15293 }
15294 resultobj = SWIG_FromInt((int)result);
15295 return resultobj;
15296 fail:
15297 return NULL;
15298}
15299
15300
15301static PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
15302 PyObject *resultobj;
15303 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
15304 wxCursor *arg2 = 0 ;
15305 PyObject * obj0 = 0 ;
15306 PyObject * obj1 = 0 ;
15307 char *kwnames[] = {
15308 (char *) "self",(char *) "cursor", NULL
15309 };
15310
15311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) goto fail;
15312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent,
15313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15314 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
15315 SWIG_POINTER_EXCEPTION | 0)) == -1)
15316 SWIG_fail;
15317 if (arg2 == NULL) {
15318 PyErr_SetString(PyExc_TypeError,"null reference");
15319 SWIG_fail;
15320 }
15321 {
15322 PyThreadState* __tstate = wxPyBeginAllowThreads();
15323 (arg1)->SetCursor((wxCursor const &)*arg2);
15324
15325 wxPyEndAllowThreads(__tstate);
15326 if (PyErr_Occurred()) SWIG_fail;
15327 }
15328 Py_INCREF(Py_None); resultobj = Py_None;
15329 return resultobj;
15330 fail:
15331 return NULL;
15332}
15333
15334
15335static PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
15336 PyObject *resultobj;
15337 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
15338 wxCursor *result;
15339 PyObject * obj0 = 0 ;
15340 char *kwnames[] = {
15341 (char *) "self", NULL
15342 };
15343
15344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetCursor",kwnames,&obj0)) goto fail;
15345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent,
15346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15347 {
15348 PyThreadState* __tstate = wxPyBeginAllowThreads();
15349 {
15350 wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor();
15351 result = (wxCursor *) &_result_ref;
15352 }
15353
15354 wxPyEndAllowThreads(__tstate);
15355 if (PyErr_Occurred()) SWIG_fail;
15356 }
15357 {
15358 wxCursor* resultptr = new wxCursor(*result);
15359 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1);
15360 }
15361 return resultobj;
15362 fail:
15363 return NULL;
15364}
15365
15366
15367static PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
15368 PyObject *resultobj;
15369 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
15370 bool result;
15371 PyObject * obj0 = 0 ;
15372 char *kwnames[] = {
15373 (char *) "self", NULL
15374 };
15375
15376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_HasCursor",kwnames,&obj0)) goto fail;
15377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent,
15378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15379 {
15380 PyThreadState* __tstate = wxPyBeginAllowThreads();
15381 result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor();
15382
15383 wxPyEndAllowThreads(__tstate);
15384 if (PyErr_Occurred()) SWIG_fail;
15385 }
15386 {
15387 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15388 }
15389 return resultobj;
15390 fail:
15391 return NULL;
15392}
15393
15394
15395static PyObject * SetCursorEvent_swigregister(PyObject *self, PyObject *args) {
15396 PyObject *obj;
15397 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15398 SWIG_TypeClientData(SWIGTYPE_p_wxSetCursorEvent, obj);
15399 Py_INCREF(obj);
15400 return Py_BuildValue((char *)"");
15401}
15402static PyObject *_wrap_new_KeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
15403 PyObject *resultobj;
15404 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15405 wxKeyEvent *result;
15406 PyObject * obj0 = 0 ;
15407 char *kwnames[] = {
15408 (char *) "keyType", NULL
15409 };
15410
15411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_KeyEvent",kwnames,&obj0)) goto fail;
15412 if (obj0) {
15413 arg1 = (wxEventType) SWIG_AsInt(obj0);
15414 if (PyErr_Occurred()) SWIG_fail;
15415 }
15416 {
15417 PyThreadState* __tstate = wxPyBeginAllowThreads();
15418 result = (wxKeyEvent *)new wxKeyEvent(arg1);
15419
15420 wxPyEndAllowThreads(__tstate);
15421 if (PyErr_Occurred()) SWIG_fail;
15422 }
15423 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 1);
15424 return resultobj;
15425 fail:
15426 return NULL;
15427}
15428
15429
15430static PyObject *_wrap_KeyEvent_ControlDown(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_ControlDown",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)->ControlDown();
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_MetaDown(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_MetaDown",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)->MetaDown();
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_AltDown(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_AltDown",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)->AltDown();
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_ShiftDown(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_ShiftDown",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)->ShiftDown();
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
412d302d
RD
15542static PyObject *_wrap_KeyEvent_CmdDown(PyObject *self, PyObject *args, PyObject *kwargs) {
15543 PyObject *resultobj;
15544 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15545 bool result;
15546 PyObject * obj0 = 0 ;
15547 char *kwnames[] = {
15548 (char *) "self", NULL
15549 };
15550
15551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_CmdDown",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 = (bool)((wxKeyEvent const *)arg1)->CmdDown();
15557
15558 wxPyEndAllowThreads(__tstate);
15559 if (PyErr_Occurred()) SWIG_fail;
15560 }
15561 {
15562 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15563 }
15564 return resultobj;
15565 fail:
15566 return NULL;
15567}
15568
15569
d55e5bfc
RD
15570static PyObject *_wrap_KeyEvent_HasModifiers(PyObject *self, PyObject *args, PyObject *kwargs) {
15571 PyObject *resultobj;
15572 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15573 bool result;
15574 PyObject * obj0 = 0 ;
15575 char *kwnames[] = {
15576 (char *) "self", NULL
15577 };
15578
15579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_HasModifiers",kwnames,&obj0)) goto fail;
15580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15582 {
15583 PyThreadState* __tstate = wxPyBeginAllowThreads();
15584 result = (bool)((wxKeyEvent const *)arg1)->HasModifiers();
15585
15586 wxPyEndAllowThreads(__tstate);
15587 if (PyErr_Occurred()) SWIG_fail;
15588 }
15589 {
15590 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15591 }
15592 return resultobj;
15593 fail:
15594 return NULL;
15595}
15596
15597
15598static PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
15599 PyObject *resultobj;
15600 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15601 int result;
15602 PyObject * obj0 = 0 ;
15603 char *kwnames[] = {
15604 (char *) "self", NULL
15605 };
15606
15607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetKeyCode",kwnames,&obj0)) goto fail;
15608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15610 {
15611 PyThreadState* __tstate = wxPyBeginAllowThreads();
15612 result = (int)((wxKeyEvent const *)arg1)->GetKeyCode();
15613
15614 wxPyEndAllowThreads(__tstate);
15615 if (PyErr_Occurred()) SWIG_fail;
15616 }
15617 resultobj = SWIG_FromInt((int)result);
15618 return resultobj;
15619 fail:
15620 return NULL;
15621}
15622
15623
19272049 15624static PyObject *_wrap_KeyEvent_GetUnicodeKey(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15625 PyObject *resultobj;
15626 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15627 int result;
15628 PyObject * obj0 = 0 ;
15629 char *kwnames[] = {
15630 (char *) "self", NULL
15631 };
15632
19272049 15633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetUnicodeKey",kwnames,&obj0)) goto fail;
d55e5bfc
RD
15634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15636 {
15637 PyThreadState* __tstate = wxPyBeginAllowThreads();
19272049 15638 result = (int)wxKeyEvent_GetUnicodeKey(arg1);
d55e5bfc
RD
15639
15640 wxPyEndAllowThreads(__tstate);
15641 if (PyErr_Occurred()) SWIG_fail;
15642 }
15643 resultobj = SWIG_FromInt((int)result);
15644 return resultobj;
15645 fail:
15646 return NULL;
15647}
15648
15649
15650static PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
15651 PyObject *resultobj;
15652 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15653 unsigned int result;
15654 PyObject * obj0 = 0 ;
15655 char *kwnames[] = {
15656 (char *) "self", NULL
15657 };
15658
15659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyCode",kwnames,&obj0)) goto fail;
15660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15662 {
15663 PyThreadState* __tstate = wxPyBeginAllowThreads();
15664 result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyCode();
15665
15666 wxPyEndAllowThreads(__tstate);
15667 if (PyErr_Occurred()) SWIG_fail;
15668 }
15669 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
15670 return resultobj;
15671 fail:
15672 return NULL;
15673}
15674
15675
15676static PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
15677 PyObject *resultobj;
15678 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15679 unsigned int result;
15680 PyObject * obj0 = 0 ;
15681 char *kwnames[] = {
15682 (char *) "self", NULL
15683 };
15684
15685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyFlags",kwnames,&obj0)) goto fail;
15686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15688 {
15689 PyThreadState* __tstate = wxPyBeginAllowThreads();
15690 result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyFlags();
15691
15692 wxPyEndAllowThreads(__tstate);
15693 if (PyErr_Occurred()) SWIG_fail;
15694 }
15695 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
15696 return resultobj;
15697 fail:
15698 return NULL;
15699}
15700
15701
15702static PyObject *_wrap_KeyEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
15703 PyObject *resultobj;
15704 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15705 wxPoint result;
15706 PyObject * obj0 = 0 ;
15707 char *kwnames[] = {
15708 (char *) "self", NULL
15709 };
15710
15711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPosition",kwnames,&obj0)) goto fail;
15712 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15713 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15714 {
15715 PyThreadState* __tstate = wxPyBeginAllowThreads();
15716 result = (arg1)->GetPosition();
15717
15718 wxPyEndAllowThreads(__tstate);
15719 if (PyErr_Occurred()) SWIG_fail;
15720 }
15721 {
15722 wxPoint * resultptr;
15723 resultptr = new wxPoint((wxPoint &) result);
15724 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
15725 }
15726 return resultobj;
15727 fail:
15728 return NULL;
15729}
15730
15731
15732static PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
15733 PyObject *resultobj;
15734 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15735 long *arg2 = (long *) 0 ;
15736 long *arg3 = (long *) 0 ;
15737 long temp2 ;
15738 long temp3 ;
15739 PyObject * obj0 = 0 ;
15740 char *kwnames[] = {
15741 (char *) "self", NULL
15742 };
15743
15744 arg2 = &temp2;
15745 arg3 = &temp3;
15746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPositionTuple",kwnames,&obj0)) goto fail;
15747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15749 {
15750 PyThreadState* __tstate = wxPyBeginAllowThreads();
15751 (arg1)->GetPosition(arg2,arg3);
15752
15753 wxPyEndAllowThreads(__tstate);
15754 if (PyErr_Occurred()) SWIG_fail;
15755 }
15756 Py_INCREF(Py_None); resultobj = Py_None;
15757 {
15758 PyObject *o = PyInt_FromLong((long) (*arg2));
15759 resultobj = t_output_helper(resultobj,o);
15760 }
15761 {
15762 PyObject *o = PyInt_FromLong((long) (*arg3));
15763 resultobj = t_output_helper(resultobj,o);
15764 }
15765 return resultobj;
15766 fail:
15767 return NULL;
15768}
15769
15770
15771static PyObject *_wrap_KeyEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
15772 PyObject *resultobj;
15773 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15774 int result;
15775 PyObject * obj0 = 0 ;
15776 char *kwnames[] = {
15777 (char *) "self", NULL
15778 };
15779
15780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetX",kwnames,&obj0)) goto fail;
15781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15783 {
15784 PyThreadState* __tstate = wxPyBeginAllowThreads();
15785 result = (int)((wxKeyEvent const *)arg1)->GetX();
15786
15787 wxPyEndAllowThreads(__tstate);
15788 if (PyErr_Occurred()) SWIG_fail;
15789 }
15790 resultobj = SWIG_FromInt((int)result);
15791 return resultobj;
15792 fail:
15793 return NULL;
15794}
15795
15796
15797static PyObject *_wrap_KeyEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
15798 PyObject *resultobj;
15799 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15800 int result;
15801 PyObject * obj0 = 0 ;
15802 char *kwnames[] = {
15803 (char *) "self", NULL
15804 };
15805
15806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetY",kwnames,&obj0)) goto fail;
15807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15809 {
15810 PyThreadState* __tstate = wxPyBeginAllowThreads();
15811 result = (int)((wxKeyEvent const *)arg1)->GetY();
15812
15813 wxPyEndAllowThreads(__tstate);
15814 if (PyErr_Occurred()) SWIG_fail;
15815 }
15816 resultobj = SWIG_FromInt((int)result);
15817 return resultobj;
15818 fail:
15819 return NULL;
15820}
15821
15822
15823static PyObject *_wrap_KeyEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15824 PyObject *resultobj;
15825 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15826 int arg2 ;
15827 PyObject * obj0 = 0 ;
15828 PyObject * obj1 = 0 ;
15829 char *kwnames[] = {
15830 (char *) "self",(char *) "m_x", NULL
15831 };
15832
15833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail;
15834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15836 arg2 = (int) SWIG_AsInt(obj1);
15837 if (PyErr_Occurred()) SWIG_fail;
15838 if (arg1) (arg1)->m_x = arg2;
15839
15840 Py_INCREF(Py_None); resultobj = Py_None;
15841 return resultobj;
15842 fail:
15843 return NULL;
15844}
15845
15846
15847static PyObject *_wrap_KeyEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15848 PyObject *resultobj;
15849 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15850 int result;
15851 PyObject * obj0 = 0 ;
15852 char *kwnames[] = {
15853 (char *) "self", NULL
15854 };
15855
15856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_x_get",kwnames,&obj0)) goto fail;
15857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15859 result = (int) ((arg1)->m_x);
15860
15861 resultobj = SWIG_FromInt((int)result);
15862 return resultobj;
15863 fail:
15864 return NULL;
15865}
15866
15867
15868static PyObject *_wrap_KeyEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15869 PyObject *resultobj;
15870 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15871 int arg2 ;
15872 PyObject * obj0 = 0 ;
15873 PyObject * obj1 = 0 ;
15874 char *kwnames[] = {
15875 (char *) "self",(char *) "m_y", NULL
15876 };
15877
15878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail;
15879 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15881 arg2 = (int) SWIG_AsInt(obj1);
15882 if (PyErr_Occurred()) SWIG_fail;
15883 if (arg1) (arg1)->m_y = arg2;
15884
15885 Py_INCREF(Py_None); resultobj = Py_None;
15886 return resultobj;
15887 fail:
15888 return NULL;
15889}
15890
15891
15892static PyObject *_wrap_KeyEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15893 PyObject *resultobj;
15894 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15895 int result;
15896 PyObject * obj0 = 0 ;
15897 char *kwnames[] = {
15898 (char *) "self", NULL
15899 };
15900
15901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_y_get",kwnames,&obj0)) goto fail;
15902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15904 result = (int) ((arg1)->m_y);
15905
15906 resultobj = SWIG_FromInt((int)result);
15907 return resultobj;
15908 fail:
15909 return NULL;
15910}
15911
15912
15913static PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15914 PyObject *resultobj;
15915 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15916 long arg2 ;
15917 PyObject * obj0 = 0 ;
15918 PyObject * obj1 = 0 ;
15919 char *kwnames[] = {
15920 (char *) "self",(char *) "m_keyCode", NULL
15921 };
15922
15923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_keyCode_set",kwnames,&obj0,&obj1)) goto fail;
15924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15926 arg2 = (long) SWIG_AsLong(obj1);
15927 if (PyErr_Occurred()) SWIG_fail;
15928 if (arg1) (arg1)->m_keyCode = arg2;
15929
15930 Py_INCREF(Py_None); resultobj = Py_None;
15931 return resultobj;
15932 fail:
15933 return NULL;
15934}
15935
15936
15937static PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15938 PyObject *resultobj;
15939 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15940 long result;
15941 PyObject * obj0 = 0 ;
15942 char *kwnames[] = {
15943 (char *) "self", NULL
15944 };
15945
15946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_keyCode_get",kwnames,&obj0)) goto fail;
15947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15949 result = (long) ((arg1)->m_keyCode);
15950
15951 resultobj = SWIG_FromLong((long)result);
15952 return resultobj;
15953 fail:
15954 return NULL;
15955}
15956
15957
15958static PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15959 PyObject *resultobj;
15960 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15961 bool arg2 ;
15962 PyObject * obj0 = 0 ;
15963 PyObject * obj1 = 0 ;
15964 char *kwnames[] = {
15965 (char *) "self",(char *) "m_controlDown", NULL
15966 };
15967
15968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail;
15969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15971 arg2 = (bool) SWIG_AsBool(obj1);
15972 if (PyErr_Occurred()) SWIG_fail;
15973 if (arg1) (arg1)->m_controlDown = arg2;
15974
15975 Py_INCREF(Py_None); resultobj = Py_None;
15976 return resultobj;
15977 fail:
15978 return NULL;
15979}
15980
15981
15982static PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15983 PyObject *resultobj;
15984 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15985 bool result;
15986 PyObject * obj0 = 0 ;
15987 char *kwnames[] = {
15988 (char *) "self", NULL
15989 };
15990
15991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_controlDown_get",kwnames,&obj0)) goto fail;
15992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15994 result = (bool) ((arg1)->m_controlDown);
15995
15996 {
15997 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15998 }
15999 return resultobj;
16000 fail:
16001 return NULL;
16002}
16003
16004
16005static PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16006 PyObject *resultobj;
16007 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16008 bool arg2 ;
16009 PyObject * obj0 = 0 ;
16010 PyObject * obj1 = 0 ;
16011 char *kwnames[] = {
16012 (char *) "self",(char *) "m_shiftDown", NULL
16013 };
16014
16015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail;
16016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16018 arg2 = (bool) SWIG_AsBool(obj1);
16019 if (PyErr_Occurred()) SWIG_fail;
16020 if (arg1) (arg1)->m_shiftDown = arg2;
16021
16022 Py_INCREF(Py_None); resultobj = Py_None;
16023 return resultobj;
16024 fail:
16025 return NULL;
16026}
16027
16028
16029static PyObject *_wrap_KeyEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16030 PyObject *resultobj;
16031 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16032 bool result;
16033 PyObject * obj0 = 0 ;
16034 char *kwnames[] = {
16035 (char *) "self", NULL
16036 };
16037
16038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_shiftDown_get",kwnames,&obj0)) goto fail;
16039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16041 result = (bool) ((arg1)->m_shiftDown);
16042
16043 {
16044 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16045 }
16046 return resultobj;
16047 fail:
16048 return NULL;
16049}
16050
16051
16052static PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16053 PyObject *resultobj;
16054 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16055 bool arg2 ;
16056 PyObject * obj0 = 0 ;
16057 PyObject * obj1 = 0 ;
16058 char *kwnames[] = {
16059 (char *) "self",(char *) "m_altDown", NULL
16060 };
16061
16062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail;
16063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16065 arg2 = (bool) SWIG_AsBool(obj1);
16066 if (PyErr_Occurred()) SWIG_fail;
16067 if (arg1) (arg1)->m_altDown = arg2;
16068
16069 Py_INCREF(Py_None); resultobj = Py_None;
16070 return resultobj;
16071 fail:
16072 return NULL;
16073}
16074
16075
16076static PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16077 PyObject *resultobj;
16078 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16079 bool result;
16080 PyObject * obj0 = 0 ;
16081 char *kwnames[] = {
16082 (char *) "self", NULL
16083 };
16084
16085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_altDown_get",kwnames,&obj0)) goto fail;
16086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16088 result = (bool) ((arg1)->m_altDown);
16089
16090 {
16091 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16092 }
16093 return resultobj;
16094 fail:
16095 return NULL;
16096}
16097
16098
16099static PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16100 PyObject *resultobj;
16101 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16102 bool arg2 ;
16103 PyObject * obj0 = 0 ;
16104 PyObject * obj1 = 0 ;
16105 char *kwnames[] = {
16106 (char *) "self",(char *) "m_metaDown", NULL
16107 };
16108
16109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail;
16110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16112 arg2 = (bool) SWIG_AsBool(obj1);
16113 if (PyErr_Occurred()) SWIG_fail;
16114 if (arg1) (arg1)->m_metaDown = arg2;
16115
16116 Py_INCREF(Py_None); resultobj = Py_None;
16117 return resultobj;
16118 fail:
16119 return NULL;
16120}
16121
16122
16123static PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16124 PyObject *resultobj;
16125 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16126 bool result;
16127 PyObject * obj0 = 0 ;
16128 char *kwnames[] = {
16129 (char *) "self", NULL
16130 };
16131
16132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_metaDown_get",kwnames,&obj0)) goto fail;
16133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16135 result = (bool) ((arg1)->m_metaDown);
16136
16137 {
16138 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16139 }
16140 return resultobj;
16141 fail:
16142 return NULL;
16143}
16144
16145
16146static PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16147 PyObject *resultobj;
16148 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16149 bool arg2 ;
16150 PyObject * obj0 = 0 ;
16151 PyObject * obj1 = 0 ;
16152 char *kwnames[] = {
16153 (char *) "self",(char *) "m_scanCode", NULL
16154 };
16155
16156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_scanCode_set",kwnames,&obj0,&obj1)) goto fail;
16157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16159 arg2 = (bool) SWIG_AsBool(obj1);
16160 if (PyErr_Occurred()) SWIG_fail;
16161 if (arg1) (arg1)->m_scanCode = arg2;
16162
16163 Py_INCREF(Py_None); resultobj = Py_None;
16164 return resultobj;
16165 fail:
16166 return NULL;
16167}
16168
16169
16170static PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16171 PyObject *resultobj;
16172 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16173 bool result;
16174 PyObject * obj0 = 0 ;
16175 char *kwnames[] = {
16176 (char *) "self", NULL
16177 };
16178
16179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_scanCode_get",kwnames,&obj0)) goto fail;
16180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16182 result = (bool) ((arg1)->m_scanCode);
16183
16184 {
16185 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16186 }
16187 return resultobj;
16188 fail:
16189 return NULL;
16190}
16191
16192
16193static PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16194 PyObject *resultobj;
16195 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16196 unsigned int arg2 ;
16197 PyObject * obj0 = 0 ;
16198 PyObject * obj1 = 0 ;
16199 char *kwnames[] = {
16200 (char *) "self",(char *) "m_rawCode", NULL
16201 };
16202
16203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawCode_set",kwnames,&obj0,&obj1)) goto fail;
16204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16206 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
16207 if (PyErr_Occurred()) SWIG_fail;
16208 if (arg1) (arg1)->m_rawCode = arg2;
16209
16210 Py_INCREF(Py_None); resultobj = Py_None;
16211 return resultobj;
16212 fail:
16213 return NULL;
16214}
16215
16216
16217static PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16218 PyObject *resultobj;
16219 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16220 unsigned int result;
16221 PyObject * obj0 = 0 ;
16222 char *kwnames[] = {
16223 (char *) "self", NULL
16224 };
16225
16226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawCode_get",kwnames,&obj0)) goto fail;
16227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16229 result = (unsigned int) ((arg1)->m_rawCode);
16230
16231 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
16232 return resultobj;
16233 fail:
16234 return NULL;
16235}
16236
16237
16238static PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16239 PyObject *resultobj;
16240 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16241 unsigned int arg2 ;
16242 PyObject * obj0 = 0 ;
16243 PyObject * obj1 = 0 ;
16244 char *kwnames[] = {
16245 (char *) "self",(char *) "m_rawFlags", NULL
16246 };
16247
16248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawFlags_set",kwnames,&obj0,&obj1)) goto fail;
16249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16251 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
16252 if (PyErr_Occurred()) SWIG_fail;
16253 if (arg1) (arg1)->m_rawFlags = arg2;
16254
16255 Py_INCREF(Py_None); resultobj = Py_None;
16256 return resultobj;
16257 fail:
16258 return NULL;
16259}
16260
16261
16262static PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16263 PyObject *resultobj;
16264 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16265 unsigned int result;
16266 PyObject * obj0 = 0 ;
16267 char *kwnames[] = {
16268 (char *) "self", NULL
16269 };
16270
16271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawFlags_get",kwnames,&obj0)) goto fail;
16272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16274 result = (unsigned int) ((arg1)->m_rawFlags);
16275
16276 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
16277 return resultobj;
16278 fail:
16279 return NULL;
16280}
16281
16282
16283static PyObject * KeyEvent_swigregister(PyObject *self, PyObject *args) {
16284 PyObject *obj;
16285 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16286 SWIG_TypeClientData(SWIGTYPE_p_wxKeyEvent, obj);
16287 Py_INCREF(obj);
16288 return Py_BuildValue((char *)"");
16289}
16290static PyObject *_wrap_new_SizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16291 PyObject *resultobj;
16292 wxSize const &arg1_defvalue = wxDefaultSize ;
16293 wxSize *arg1 = (wxSize *) &arg1_defvalue ;
16294 int arg2 = (int) 0 ;
16295 wxSizeEvent *result;
16296 wxSize temp1 ;
16297 PyObject * obj0 = 0 ;
16298 PyObject * obj1 = 0 ;
16299 char *kwnames[] = {
16300 (char *) "sz",(char *) "winid", NULL
16301 };
16302
16303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SizeEvent",kwnames,&obj0,&obj1)) goto fail;
16304 if (obj0) {
16305 {
16306 arg1 = &temp1;
16307 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
16308 }
16309 }
16310 if (obj1) {
16311 arg2 = (int) SWIG_AsInt(obj1);
16312 if (PyErr_Occurred()) SWIG_fail;
16313 }
16314 {
16315 PyThreadState* __tstate = wxPyBeginAllowThreads();
16316 result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2);
16317
16318 wxPyEndAllowThreads(__tstate);
16319 if (PyErr_Occurred()) SWIG_fail;
16320 }
16321 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizeEvent, 1);
16322 return resultobj;
16323 fail:
16324 return NULL;
16325}
16326
16327
16328static PyObject *_wrap_SizeEvent_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16329 PyObject *resultobj;
16330 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16331 wxSize result;
16332 PyObject * obj0 = 0 ;
16333 char *kwnames[] = {
16334 (char *) "self", NULL
16335 };
16336
16337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetSize",kwnames,&obj0)) goto fail;
16338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16340 {
16341 PyThreadState* __tstate = wxPyBeginAllowThreads();
16342 result = ((wxSizeEvent const *)arg1)->GetSize();
16343
16344 wxPyEndAllowThreads(__tstate);
16345 if (PyErr_Occurred()) SWIG_fail;
16346 }
16347 {
16348 wxSize * resultptr;
16349 resultptr = new wxSize((wxSize &) result);
16350 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16351 }
16352 return resultobj;
16353 fail:
16354 return NULL;
16355}
16356
16357
16358static PyObject *_wrap_SizeEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
16359 PyObject *resultobj;
16360 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16361 wxRect result;
16362 PyObject * obj0 = 0 ;
16363 char *kwnames[] = {
16364 (char *) "self", NULL
16365 };
16366
16367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetRect",kwnames,&obj0)) goto fail;
16368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16370 {
16371 PyThreadState* __tstate = wxPyBeginAllowThreads();
16372 result = ((wxSizeEvent const *)arg1)->GetRect();
16373
16374 wxPyEndAllowThreads(__tstate);
16375 if (PyErr_Occurred()) SWIG_fail;
16376 }
16377 {
16378 wxRect * resultptr;
16379 resultptr = new wxRect((wxRect &) result);
16380 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
16381 }
16382 return resultobj;
16383 fail:
16384 return NULL;
16385}
16386
16387
16388static PyObject *_wrap_SizeEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
16389 PyObject *resultobj;
16390 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16391 wxRect arg2 ;
16392 wxRect *argp2 ;
16393 PyObject * obj0 = 0 ;
16394 PyObject * obj1 = 0 ;
16395 char *kwnames[] = {
16396 (char *) "self",(char *) "rect", NULL
16397 };
16398
16399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) goto fail;
16400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16402 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect,
16403 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
16404 arg2 = *argp2;
16405 {
16406 PyThreadState* __tstate = wxPyBeginAllowThreads();
16407 (arg1)->SetRect(arg2);
16408
16409 wxPyEndAllowThreads(__tstate);
16410 if (PyErr_Occurred()) SWIG_fail;
16411 }
16412 Py_INCREF(Py_None); resultobj = Py_None;
16413 return resultobj;
16414 fail:
16415 return NULL;
16416}
16417
16418
16419static PyObject *_wrap_SizeEvent_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16420 PyObject *resultobj;
16421 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16422 wxSize arg2 ;
16423 wxSize *argp2 ;
16424 PyObject * obj0 = 0 ;
16425 PyObject * obj1 = 0 ;
16426 char *kwnames[] = {
16427 (char *) "self",(char *) "size", NULL
16428 };
16429
16430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) goto fail;
16431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16433 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize,
16434 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
16435 arg2 = *argp2;
16436 {
16437 PyThreadState* __tstate = wxPyBeginAllowThreads();
16438 wxSizeEvent_SetSize(arg1,arg2);
16439
16440 wxPyEndAllowThreads(__tstate);
16441 if (PyErr_Occurred()) SWIG_fail;
16442 }
16443 Py_INCREF(Py_None); resultobj = Py_None;
16444 return resultobj;
16445 fail:
16446 return NULL;
16447}
16448
16449
16450static PyObject *_wrap_SizeEvent_m_size_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16451 PyObject *resultobj;
16452 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16453 wxSize *arg2 = (wxSize *) 0 ;
16454 PyObject * obj0 = 0 ;
16455 PyObject * obj1 = 0 ;
16456 char *kwnames[] = {
16457 (char *) "self",(char *) "m_size", NULL
16458 };
16459
16460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_size_set",kwnames,&obj0,&obj1)) goto fail;
16461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16463 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSize,
16464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16465 if (arg1) (arg1)->m_size = *arg2;
16466
16467 Py_INCREF(Py_None); resultobj = Py_None;
16468 return resultobj;
16469 fail:
16470 return NULL;
16471}
16472
16473
16474static PyObject *_wrap_SizeEvent_m_size_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16475 PyObject *resultobj;
16476 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16477 wxSize *result;
16478 PyObject * obj0 = 0 ;
16479 char *kwnames[] = {
16480 (char *) "self", NULL
16481 };
16482
16483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_size_get",kwnames,&obj0)) goto fail;
16484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16486 result = (wxSize *)& ((arg1)->m_size);
16487
16488 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0);
16489 return resultobj;
16490 fail:
16491 return NULL;
16492}
16493
16494
16495static PyObject *_wrap_SizeEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16496 PyObject *resultobj;
16497 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16498 wxRect *arg2 = (wxRect *) 0 ;
16499 PyObject * obj0 = 0 ;
16500 PyObject * obj1 = 0 ;
16501 char *kwnames[] = {
16502 (char *) "self",(char *) "m_rect", NULL
16503 };
16504
16505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail;
16506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16508 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
16509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16510 if (arg1) (arg1)->m_rect = *arg2;
16511
16512 Py_INCREF(Py_None); resultobj = Py_None;
16513 return resultobj;
16514 fail:
16515 return NULL;
16516}
16517
16518
16519static PyObject *_wrap_SizeEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16520 PyObject *resultobj;
16521 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16522 wxRect *result;
16523 PyObject * obj0 = 0 ;
16524 char *kwnames[] = {
16525 (char *) "self", NULL
16526 };
16527
16528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_rect_get",kwnames,&obj0)) goto fail;
16529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16531 result = (wxRect *)& ((arg1)->m_rect);
16532
16533 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0);
16534 return resultobj;
16535 fail:
16536 return NULL;
16537}
16538
16539
16540static PyObject * SizeEvent_swigregister(PyObject *self, PyObject *args) {
16541 PyObject *obj;
16542 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16543 SWIG_TypeClientData(SWIGTYPE_p_wxSizeEvent, obj);
16544 Py_INCREF(obj);
16545 return Py_BuildValue((char *)"");
16546}
16547static PyObject *_wrap_new_MoveEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16548 PyObject *resultobj;
16549 wxPoint const &arg1_defvalue = wxDefaultPosition ;
16550 wxPoint *arg1 = (wxPoint *) &arg1_defvalue ;
16551 int arg2 = (int) 0 ;
16552 wxMoveEvent *result;
16553 wxPoint temp1 ;
16554 PyObject * obj0 = 0 ;
16555 PyObject * obj1 = 0 ;
16556 char *kwnames[] = {
16557 (char *) "pos",(char *) "winid", NULL
16558 };
16559
16560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MoveEvent",kwnames,&obj0,&obj1)) goto fail;
16561 if (obj0) {
16562 {
16563 arg1 = &temp1;
16564 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
16565 }
16566 }
16567 if (obj1) {
16568 arg2 = (int) SWIG_AsInt(obj1);
16569 if (PyErr_Occurred()) SWIG_fail;
16570 }
16571 {
16572 PyThreadState* __tstate = wxPyBeginAllowThreads();
16573 result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2);
16574
16575 wxPyEndAllowThreads(__tstate);
16576 if (PyErr_Occurred()) SWIG_fail;
16577 }
16578 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMoveEvent, 1);
16579 return resultobj;
16580 fail:
16581 return NULL;
16582}
16583
16584
16585static PyObject *_wrap_MoveEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
16586 PyObject *resultobj;
16587 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16588 wxPoint result;
16589 PyObject * obj0 = 0 ;
16590 char *kwnames[] = {
16591 (char *) "self", NULL
16592 };
16593
16594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetPosition",kwnames,&obj0)) goto fail;
16595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16597 {
16598 PyThreadState* __tstate = wxPyBeginAllowThreads();
16599 result = ((wxMoveEvent const *)arg1)->GetPosition();
16600
16601 wxPyEndAllowThreads(__tstate);
16602 if (PyErr_Occurred()) SWIG_fail;
16603 }
16604 {
16605 wxPoint * resultptr;
16606 resultptr = new wxPoint((wxPoint &) result);
16607 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
16608 }
16609 return resultobj;
16610 fail:
16611 return NULL;
16612}
16613
16614
16615static PyObject *_wrap_MoveEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
16616 PyObject *resultobj;
16617 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16618 wxRect result;
16619 PyObject * obj0 = 0 ;
16620 char *kwnames[] = {
16621 (char *) "self", NULL
16622 };
16623
16624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetRect",kwnames,&obj0)) goto fail;
16625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16627 {
16628 PyThreadState* __tstate = wxPyBeginAllowThreads();
16629 result = ((wxMoveEvent const *)arg1)->GetRect();
16630
16631 wxPyEndAllowThreads(__tstate);
16632 if (PyErr_Occurred()) SWIG_fail;
16633 }
16634 {
16635 wxRect * resultptr;
16636 resultptr = new wxRect((wxRect &) result);
16637 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
16638 }
16639 return resultobj;
16640 fail:
16641 return NULL;
16642}
16643
16644
16645static PyObject *_wrap_MoveEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
16646 PyObject *resultobj;
16647 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16648 wxRect arg2 ;
16649 wxRect *argp2 ;
16650 PyObject * obj0 = 0 ;
16651 PyObject * obj1 = 0 ;
16652 char *kwnames[] = {
16653 (char *) "self",(char *) "rect", NULL
16654 };
16655
16656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) goto fail;
16657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16659 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect,
16660 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
16661 arg2 = *argp2;
16662 {
16663 PyThreadState* __tstate = wxPyBeginAllowThreads();
16664 (arg1)->SetRect(arg2);
16665
16666 wxPyEndAllowThreads(__tstate);
16667 if (PyErr_Occurred()) SWIG_fail;
16668 }
16669 Py_INCREF(Py_None); resultobj = Py_None;
16670 return resultobj;
16671 fail:
16672 return NULL;
16673}
16674
16675
16676static PyObject *_wrap_MoveEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
16677 PyObject *resultobj;
16678 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16679 wxPoint arg2 ;
16680 wxPoint *argp2 ;
16681 PyObject * obj0 = 0 ;
16682 PyObject * obj1 = 0 ;
16683 char *kwnames[] = {
16684 (char *) "self",(char *) "pos", NULL
16685 };
16686
16687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
16688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16690 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint,
16691 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
16692 arg2 = *argp2;
16693 {
16694 PyThreadState* __tstate = wxPyBeginAllowThreads();
16695 wxMoveEvent_SetPosition(arg1,arg2);
16696
16697 wxPyEndAllowThreads(__tstate);
16698 if (PyErr_Occurred()) SWIG_fail;
16699 }
16700 Py_INCREF(Py_None); resultobj = Py_None;
16701 return resultobj;
16702 fail:
16703 return NULL;
16704}
16705
16706
16707static PyObject *_wrap_MoveEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16708 PyObject *resultobj;
16709 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16710 wxPoint *arg2 = (wxPoint *) 0 ;
16711 PyObject * obj0 = 0 ;
16712 PyObject * obj1 = 0 ;
16713 char *kwnames[] = {
16714 (char *) "self",(char *) "m_pos", NULL
16715 };
16716
16717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail;
16718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16720 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
16721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16722 if (arg1) (arg1)->m_pos = *arg2;
16723
16724 Py_INCREF(Py_None); resultobj = Py_None;
16725 return resultobj;
16726 fail:
16727 return NULL;
16728}
16729
16730
16731static PyObject *_wrap_MoveEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16732 PyObject *resultobj;
16733 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16734 wxPoint *result;
16735 PyObject * obj0 = 0 ;
16736 char *kwnames[] = {
16737 (char *) "self", NULL
16738 };
16739
16740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_pos_get",kwnames,&obj0)) goto fail;
16741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16743 result = (wxPoint *)& ((arg1)->m_pos);
16744
16745 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
16746 return resultobj;
16747 fail:
16748 return NULL;
16749}
16750
16751
16752static PyObject *_wrap_MoveEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16753 PyObject *resultobj;
16754 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16755 wxRect *arg2 = (wxRect *) 0 ;
16756 PyObject * obj0 = 0 ;
16757 PyObject * obj1 = 0 ;
16758 char *kwnames[] = {
16759 (char *) "self",(char *) "m_rect", NULL
16760 };
16761
16762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail;
16763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16765 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
16766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16767 if (arg1) (arg1)->m_rect = *arg2;
16768
16769 Py_INCREF(Py_None); resultobj = Py_None;
16770 return resultobj;
16771 fail:
16772 return NULL;
16773}
16774
16775
16776static PyObject *_wrap_MoveEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16777 PyObject *resultobj;
16778 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16779 wxRect *result;
16780 PyObject * obj0 = 0 ;
16781 char *kwnames[] = {
16782 (char *) "self", NULL
16783 };
16784
16785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_rect_get",kwnames,&obj0)) goto fail;
16786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16788 result = (wxRect *)& ((arg1)->m_rect);
16789
16790 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0);
16791 return resultobj;
16792 fail:
16793 return NULL;
16794}
16795
16796
16797static PyObject * MoveEvent_swigregister(PyObject *self, PyObject *args) {
16798 PyObject *obj;
16799 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16800 SWIG_TypeClientData(SWIGTYPE_p_wxMoveEvent, obj);
16801 Py_INCREF(obj);
16802 return Py_BuildValue((char *)"");
16803}
16804static PyObject *_wrap_new_PaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16805 PyObject *resultobj;
16806 int arg1 = (int) 0 ;
16807 wxPaintEvent *result;
16808 PyObject * obj0 = 0 ;
16809 char *kwnames[] = {
16810 (char *) "Id", NULL
16811 };
16812
16813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaintEvent",kwnames,&obj0)) goto fail;
16814 if (obj0) {
16815 arg1 = (int) SWIG_AsInt(obj0);
16816 if (PyErr_Occurred()) SWIG_fail;
16817 }
16818 {
16819 PyThreadState* __tstate = wxPyBeginAllowThreads();
16820 result = (wxPaintEvent *)new wxPaintEvent(arg1);
16821
16822 wxPyEndAllowThreads(__tstate);
16823 if (PyErr_Occurred()) SWIG_fail;
16824 }
16825 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintEvent, 1);
16826 return resultobj;
16827 fail:
16828 return NULL;
16829}
16830
16831
16832static PyObject * PaintEvent_swigregister(PyObject *self, PyObject *args) {
16833 PyObject *obj;
16834 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16835 SWIG_TypeClientData(SWIGTYPE_p_wxPaintEvent, obj);
16836 Py_INCREF(obj);
16837 return Py_BuildValue((char *)"");
16838}
16839static PyObject *_wrap_new_NcPaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16840 PyObject *resultobj;
16841 int arg1 = (int) 0 ;
16842 wxNcPaintEvent *result;
16843 PyObject * obj0 = 0 ;
16844 char *kwnames[] = {
16845 (char *) "winid", NULL
16846 };
16847
16848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_NcPaintEvent",kwnames,&obj0)) goto fail;
16849 if (obj0) {
16850 arg1 = (int) SWIG_AsInt(obj0);
16851 if (PyErr_Occurred()) SWIG_fail;
16852 }
16853 {
16854 PyThreadState* __tstate = wxPyBeginAllowThreads();
16855 result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1);
16856
16857 wxPyEndAllowThreads(__tstate);
16858 if (PyErr_Occurred()) SWIG_fail;
16859 }
16860 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNcPaintEvent, 1);
16861 return resultobj;
16862 fail:
16863 return NULL;
16864}
16865
16866
16867static PyObject * NcPaintEvent_swigregister(PyObject *self, PyObject *args) {
16868 PyObject *obj;
16869 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16870 SWIG_TypeClientData(SWIGTYPE_p_wxNcPaintEvent, obj);
16871 Py_INCREF(obj);
16872 return Py_BuildValue((char *)"");
16873}
16874static PyObject *_wrap_new_EraseEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16875 PyObject *resultobj;
16876 int arg1 = (int) 0 ;
16877 wxDC *arg2 = (wxDC *) (wxDC *) NULL ;
16878 wxEraseEvent *result;
16879 PyObject * obj0 = 0 ;
16880 PyObject * obj1 = 0 ;
16881 char *kwnames[] = {
16882 (char *) "Id",(char *) "dc", NULL
16883 };
16884
16885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EraseEvent",kwnames,&obj0,&obj1)) goto fail;
16886 if (obj0) {
16887 arg1 = (int) SWIG_AsInt(obj0);
16888 if (PyErr_Occurred()) SWIG_fail;
16889 }
16890 if (obj1) {
16891 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
16892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16893 }
16894 {
16895 PyThreadState* __tstate = wxPyBeginAllowThreads();
16896 result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2);
16897
16898 wxPyEndAllowThreads(__tstate);
16899 if (PyErr_Occurred()) SWIG_fail;
16900 }
16901 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEraseEvent, 1);
16902 return resultobj;
16903 fail:
16904 return NULL;
16905}
16906
16907
16908static PyObject *_wrap_EraseEvent_GetDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16909 PyObject *resultobj;
16910 wxEraseEvent *arg1 = (wxEraseEvent *) 0 ;
16911 wxDC *result;
16912 PyObject * obj0 = 0 ;
16913 char *kwnames[] = {
16914 (char *) "self", NULL
16915 };
16916
16917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EraseEvent_GetDC",kwnames,&obj0)) goto fail;
16918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEraseEvent,
16919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16920 {
16921 PyThreadState* __tstate = wxPyBeginAllowThreads();
16922 result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC();
16923
16924 wxPyEndAllowThreads(__tstate);
16925 if (PyErr_Occurred()) SWIG_fail;
16926 }
16927 {
412d302d 16928 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
16929 }
16930 return resultobj;
16931 fail:
16932 return NULL;
16933}
16934
16935
16936static PyObject * EraseEvent_swigregister(PyObject *self, PyObject *args) {
16937 PyObject *obj;
16938 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16939 SWIG_TypeClientData(SWIGTYPE_p_wxEraseEvent, obj);
16940 Py_INCREF(obj);
16941 return Py_BuildValue((char *)"");
16942}
16943static PyObject *_wrap_new_FocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16944 PyObject *resultobj;
16945 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
16946 int arg2 = (int) 0 ;
16947 wxFocusEvent *result;
16948 PyObject * obj0 = 0 ;
16949 PyObject * obj1 = 0 ;
16950 char *kwnames[] = {
16951 (char *) "type",(char *) "winid", NULL
16952 };
16953
16954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FocusEvent",kwnames,&obj0,&obj1)) goto fail;
16955 if (obj0) {
16956 arg1 = (wxEventType) SWIG_AsInt(obj0);
16957 if (PyErr_Occurred()) SWIG_fail;
16958 }
16959 if (obj1) {
16960 arg2 = (int) SWIG_AsInt(obj1);
16961 if (PyErr_Occurred()) SWIG_fail;
16962 }
16963 {
16964 PyThreadState* __tstate = wxPyBeginAllowThreads();
16965 result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2);
16966
16967 wxPyEndAllowThreads(__tstate);
16968 if (PyErr_Occurred()) SWIG_fail;
16969 }
16970 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFocusEvent, 1);
16971 return resultobj;
16972 fail:
16973 return NULL;
16974}
16975
16976
16977static PyObject *_wrap_FocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
16978 PyObject *resultobj;
16979 wxFocusEvent *arg1 = (wxFocusEvent *) 0 ;
16980 wxWindow *result;
16981 PyObject * obj0 = 0 ;
16982 char *kwnames[] = {
16983 (char *) "self", NULL
16984 };
16985
16986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FocusEvent_GetWindow",kwnames,&obj0)) goto fail;
16987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent,
16988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16989 {
16990 PyThreadState* __tstate = wxPyBeginAllowThreads();
16991 result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow();
16992
16993 wxPyEndAllowThreads(__tstate);
16994 if (PyErr_Occurred()) SWIG_fail;
16995 }
16996 {
412d302d 16997 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
16998 }
16999 return resultobj;
17000 fail:
17001 return NULL;
17002}
17003
17004
17005static PyObject *_wrap_FocusEvent_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
17006 PyObject *resultobj;
17007 wxFocusEvent *arg1 = (wxFocusEvent *) 0 ;
17008 wxWindow *arg2 = (wxWindow *) 0 ;
17009 PyObject * obj0 = 0 ;
17010 PyObject * obj1 = 0 ;
17011 char *kwnames[] = {
17012 (char *) "self",(char *) "win", NULL
17013 };
17014
17015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) goto fail;
17016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent,
17017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17018 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
17019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17020 {
17021 PyThreadState* __tstate = wxPyBeginAllowThreads();
17022 (arg1)->SetWindow(arg2);
17023
17024 wxPyEndAllowThreads(__tstate);
17025 if (PyErr_Occurred()) SWIG_fail;
17026 }
17027 Py_INCREF(Py_None); resultobj = Py_None;
17028 return resultobj;
17029 fail:
17030 return NULL;
17031}
17032
17033
17034static PyObject * FocusEvent_swigregister(PyObject *self, PyObject *args) {
17035 PyObject *obj;
17036 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17037 SWIG_TypeClientData(SWIGTYPE_p_wxFocusEvent, obj);
17038 Py_INCREF(obj);
17039 return Py_BuildValue((char *)"");
17040}
17041static PyObject *_wrap_new_ChildFocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17042 PyObject *resultobj;
17043 wxWindow *arg1 = (wxWindow *) NULL ;
17044 wxChildFocusEvent *result;
17045 PyObject * obj0 = 0 ;
17046 char *kwnames[] = {
17047 (char *) "win", NULL
17048 };
17049
17050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) goto fail;
17051 if (obj0) {
17052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
17053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17054 }
17055 {
17056 PyThreadState* __tstate = wxPyBeginAllowThreads();
17057 result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1);
17058
17059 wxPyEndAllowThreads(__tstate);
17060 if (PyErr_Occurred()) SWIG_fail;
17061 }
17062 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChildFocusEvent, 1);
17063 return resultobj;
17064 fail:
17065 return NULL;
17066}
17067
17068
17069static PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
17070 PyObject *resultobj;
17071 wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ;
17072 wxWindow *result;
17073 PyObject * obj0 = 0 ;
17074 char *kwnames[] = {
17075 (char *) "self", NULL
17076 };
17077
17078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ChildFocusEvent_GetWindow",kwnames,&obj0)) goto fail;
17079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChildFocusEvent,
17080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17081 {
17082 PyThreadState* __tstate = wxPyBeginAllowThreads();
17083 result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow();
17084
17085 wxPyEndAllowThreads(__tstate);
17086 if (PyErr_Occurred()) SWIG_fail;
17087 }
17088 {
412d302d 17089 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
17090 }
17091 return resultobj;
17092 fail:
17093 return NULL;
17094}
17095
17096
17097static PyObject * ChildFocusEvent_swigregister(PyObject *self, PyObject *args) {
17098 PyObject *obj;
17099 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17100 SWIG_TypeClientData(SWIGTYPE_p_wxChildFocusEvent, obj);
17101 Py_INCREF(obj);
17102 return Py_BuildValue((char *)"");
17103}
17104static PyObject *_wrap_new_ActivateEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17105 PyObject *resultobj;
17106 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
17107 bool arg2 = (bool) True ;
17108 int arg3 = (int) 0 ;
17109 wxActivateEvent *result;
17110 PyObject * obj0 = 0 ;
17111 PyObject * obj1 = 0 ;
17112 PyObject * obj2 = 0 ;
17113 char *kwnames[] = {
17114 (char *) "type",(char *) "active",(char *) "Id", NULL
17115 };
17116
17117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ActivateEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
17118 if (obj0) {
17119 arg1 = (wxEventType) SWIG_AsInt(obj0);
17120 if (PyErr_Occurred()) SWIG_fail;
17121 }
17122 if (obj1) {
17123 arg2 = (bool) SWIG_AsBool(obj1);
17124 if (PyErr_Occurred()) SWIG_fail;
17125 }
17126 if (obj2) {
17127 arg3 = (int) SWIG_AsInt(obj2);
17128 if (PyErr_Occurred()) SWIG_fail;
17129 }
17130 {
17131 PyThreadState* __tstate = wxPyBeginAllowThreads();
17132 result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3);
17133
17134 wxPyEndAllowThreads(__tstate);
17135 if (PyErr_Occurred()) SWIG_fail;
17136 }
17137 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxActivateEvent, 1);
17138 return resultobj;
17139 fail:
17140 return NULL;
17141}
17142
17143
17144static PyObject *_wrap_ActivateEvent_GetActive(PyObject *self, PyObject *args, PyObject *kwargs) {
17145 PyObject *resultobj;
17146 wxActivateEvent *arg1 = (wxActivateEvent *) 0 ;
17147 bool result;
17148 PyObject * obj0 = 0 ;
17149 char *kwnames[] = {
17150 (char *) "self", NULL
17151 };
17152
17153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActivateEvent_GetActive",kwnames,&obj0)) goto fail;
17154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActivateEvent,
17155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17156 {
17157 PyThreadState* __tstate = wxPyBeginAllowThreads();
17158 result = (bool)((wxActivateEvent const *)arg1)->GetActive();
17159
17160 wxPyEndAllowThreads(__tstate);
17161 if (PyErr_Occurred()) SWIG_fail;
17162 }
17163 {
17164 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17165 }
17166 return resultobj;
17167 fail:
17168 return NULL;
17169}
17170
17171
17172static PyObject * ActivateEvent_swigregister(PyObject *self, PyObject *args) {
17173 PyObject *obj;
17174 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17175 SWIG_TypeClientData(SWIGTYPE_p_wxActivateEvent, obj);
17176 Py_INCREF(obj);
17177 return Py_BuildValue((char *)"");
17178}
17179static PyObject *_wrap_new_InitDialogEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17180 PyObject *resultobj;
17181 int arg1 = (int) 0 ;
17182 wxInitDialogEvent *result;
17183 PyObject * obj0 = 0 ;
17184 char *kwnames[] = {
17185 (char *) "Id", NULL
17186 };
17187
17188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_InitDialogEvent",kwnames,&obj0)) goto fail;
17189 if (obj0) {
17190 arg1 = (int) SWIG_AsInt(obj0);
17191 if (PyErr_Occurred()) SWIG_fail;
17192 }
17193 {
17194 PyThreadState* __tstate = wxPyBeginAllowThreads();
17195 result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1);
17196
17197 wxPyEndAllowThreads(__tstate);
17198 if (PyErr_Occurred()) SWIG_fail;
17199 }
17200 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInitDialogEvent, 1);
17201 return resultobj;
17202 fail:
17203 return NULL;
17204}
17205
17206
17207static PyObject * InitDialogEvent_swigregister(PyObject *self, PyObject *args) {
17208 PyObject *obj;
17209 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17210 SWIG_TypeClientData(SWIGTYPE_p_wxInitDialogEvent, obj);
17211 Py_INCREF(obj);
17212 return Py_BuildValue((char *)"");
17213}
17214static PyObject *_wrap_new_MenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17215 PyObject *resultobj;
17216 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
17217 int arg2 = (int) 0 ;
17218 wxMenu *arg3 = (wxMenu *) NULL ;
17219 wxMenuEvent *result;
17220 PyObject * obj0 = 0 ;
17221 PyObject * obj1 = 0 ;
17222 PyObject * obj2 = 0 ;
17223 char *kwnames[] = {
17224 (char *) "type",(char *) "winid",(char *) "menu", NULL
17225 };
17226
17227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_MenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
17228 if (obj0) {
17229 arg1 = (wxEventType) SWIG_AsInt(obj0);
17230 if (PyErr_Occurred()) SWIG_fail;
17231 }
17232 if (obj1) {
17233 arg2 = (int) SWIG_AsInt(obj1);
17234 if (PyErr_Occurred()) SWIG_fail;
17235 }
17236 if (obj2) {
17237 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu,
17238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17239 }
17240 {
17241 PyThreadState* __tstate = wxPyBeginAllowThreads();
17242 result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3);
17243
17244 wxPyEndAllowThreads(__tstate);
17245 if (PyErr_Occurred()) SWIG_fail;
17246 }
17247 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuEvent, 1);
17248 return resultobj;
17249 fail:
17250 return NULL;
17251}
17252
17253
17254static PyObject *_wrap_MenuEvent_GetMenuId(PyObject *self, PyObject *args, PyObject *kwargs) {
17255 PyObject *resultobj;
17256 wxMenuEvent *arg1 = (wxMenuEvent *) 0 ;
17257 int result;
17258 PyObject * obj0 = 0 ;
17259 char *kwnames[] = {
17260 (char *) "self", NULL
17261 };
17262
17263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenuId",kwnames,&obj0)) goto fail;
17264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent,
17265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17266 {
17267 PyThreadState* __tstate = wxPyBeginAllowThreads();
17268 result = (int)((wxMenuEvent const *)arg1)->GetMenuId();
17269
17270 wxPyEndAllowThreads(__tstate);
17271 if (PyErr_Occurred()) SWIG_fail;
17272 }
17273 resultobj = SWIG_FromInt((int)result);
17274 return resultobj;
17275 fail:
17276 return NULL;
17277}
17278
17279
17280static PyObject *_wrap_MenuEvent_IsPopup(PyObject *self, PyObject *args, PyObject *kwargs) {
17281 PyObject *resultobj;
17282 wxMenuEvent *arg1 = (wxMenuEvent *) 0 ;
17283 bool result;
17284 PyObject * obj0 = 0 ;
17285 char *kwnames[] = {
17286 (char *) "self", NULL
17287 };
17288
17289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_IsPopup",kwnames,&obj0)) goto fail;
17290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent,
17291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17292 {
17293 PyThreadState* __tstate = wxPyBeginAllowThreads();
17294 result = (bool)((wxMenuEvent const *)arg1)->IsPopup();
17295
17296 wxPyEndAllowThreads(__tstate);
17297 if (PyErr_Occurred()) SWIG_fail;
17298 }
17299 {
17300 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17301 }
17302 return resultobj;
17303 fail:
17304 return NULL;
17305}
17306
17307
17308static PyObject *_wrap_MenuEvent_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
17309 PyObject *resultobj;
17310 wxMenuEvent *arg1 = (wxMenuEvent *) 0 ;
17311 wxMenu *result;
17312 PyObject * obj0 = 0 ;
17313 char *kwnames[] = {
17314 (char *) "self", NULL
17315 };
17316
17317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenu",kwnames,&obj0)) goto fail;
17318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent,
17319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17320 {
17321 PyThreadState* __tstate = wxPyBeginAllowThreads();
17322 result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu();
17323
17324 wxPyEndAllowThreads(__tstate);
17325 if (PyErr_Occurred()) SWIG_fail;
17326 }
17327 {
412d302d 17328 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
17329 }
17330 return resultobj;
17331 fail:
17332 return NULL;
17333}
17334
17335
17336static PyObject * MenuEvent_swigregister(PyObject *self, PyObject *args) {
17337 PyObject *obj;
17338 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17339 SWIG_TypeClientData(SWIGTYPE_p_wxMenuEvent, obj);
17340 Py_INCREF(obj);
17341 return Py_BuildValue((char *)"");
17342}
17343static PyObject *_wrap_new_CloseEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17344 PyObject *resultobj;
17345 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
17346 int arg2 = (int) 0 ;
17347 wxCloseEvent *result;
17348 PyObject * obj0 = 0 ;
17349 PyObject * obj1 = 0 ;
17350 char *kwnames[] = {
17351 (char *) "type",(char *) "winid", NULL
17352 };
17353
17354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CloseEvent",kwnames,&obj0,&obj1)) goto fail;
17355 if (obj0) {
17356 arg1 = (wxEventType) SWIG_AsInt(obj0);
17357 if (PyErr_Occurred()) SWIG_fail;
17358 }
17359 if (obj1) {
17360 arg2 = (int) SWIG_AsInt(obj1);
17361 if (PyErr_Occurred()) SWIG_fail;
17362 }
17363 {
17364 PyThreadState* __tstate = wxPyBeginAllowThreads();
17365 result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2);
17366
17367 wxPyEndAllowThreads(__tstate);
17368 if (PyErr_Occurred()) SWIG_fail;
17369 }
17370 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCloseEvent, 1);
17371 return resultobj;
17372 fail:
17373 return NULL;
17374}
17375
17376
17377static PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) {
17378 PyObject *resultobj;
17379 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
17380 bool arg2 ;
17381 PyObject * obj0 = 0 ;
17382 PyObject * obj1 = 0 ;
17383 char *kwnames[] = {
17384 (char *) "self",(char *) "logOff", NULL
17385 };
17386
17387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) goto fail;
17388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent,
17389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17390 arg2 = (bool) SWIG_AsBool(obj1);
17391 if (PyErr_Occurred()) SWIG_fail;
17392 {
17393 PyThreadState* __tstate = wxPyBeginAllowThreads();
17394 (arg1)->SetLoggingOff(arg2);
17395
17396 wxPyEndAllowThreads(__tstate);
17397 if (PyErr_Occurred()) SWIG_fail;
17398 }
17399 Py_INCREF(Py_None); resultobj = Py_None;
17400 return resultobj;
17401 fail:
17402 return NULL;
17403}
17404
17405
17406static PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) {
17407 PyObject *resultobj;
17408 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
17409 bool result;
17410 PyObject * obj0 = 0 ;
17411 char *kwnames[] = {
17412 (char *) "self", NULL
17413 };
17414
17415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetLoggingOff",kwnames,&obj0)) goto fail;
17416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent,
17417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17418 {
17419 PyThreadState* __tstate = wxPyBeginAllowThreads();
17420 result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff();
17421
17422 wxPyEndAllowThreads(__tstate);
17423 if (PyErr_Occurred()) SWIG_fail;
17424 }
17425 {
17426 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17427 }
17428 return resultobj;
17429 fail:
17430 return NULL;
17431}
17432
17433
17434static PyObject *_wrap_CloseEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) {
17435 PyObject *resultobj;
17436 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
17437 bool arg2 = (bool) True ;
17438 PyObject * obj0 = 0 ;
17439 PyObject * obj1 = 0 ;
17440 char *kwnames[] = {
17441 (char *) "self",(char *) "veto", NULL
17442 };
17443
17444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) goto fail;
17445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent,
17446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17447 if (obj1) {
17448 arg2 = (bool) SWIG_AsBool(obj1);
17449 if (PyErr_Occurred()) SWIG_fail;
17450 }
17451 {
17452 PyThreadState* __tstate = wxPyBeginAllowThreads();
17453 (arg1)->Veto(arg2);
17454
17455 wxPyEndAllowThreads(__tstate);
17456 if (PyErr_Occurred()) SWIG_fail;
17457 }
17458 Py_INCREF(Py_None); resultobj = Py_None;
17459 return resultobj;
17460 fail:
17461 return NULL;
17462}
17463
17464
17465static PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *self, PyObject *args, PyObject *kwargs) {
17466 PyObject *resultobj;
17467 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
17468 bool arg2 ;
17469 PyObject * obj0 = 0 ;
17470 PyObject * obj1 = 0 ;
17471 char *kwnames[] = {
17472 (char *) "self",(char *) "canVeto", NULL
17473 };
17474
17475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) goto fail;
17476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent,
17477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17478 arg2 = (bool) SWIG_AsBool(obj1);
17479 if (PyErr_Occurred()) SWIG_fail;
17480 {
17481 PyThreadState* __tstate = wxPyBeginAllowThreads();
17482 (arg1)->SetCanVeto(arg2);
17483
17484 wxPyEndAllowThreads(__tstate);
17485 if (PyErr_Occurred()) SWIG_fail;
17486 }
17487 Py_INCREF(Py_None); resultobj = Py_None;
17488 return resultobj;
17489 fail:
17490 return NULL;
17491}
17492
17493
17494static PyObject *_wrap_CloseEvent_CanVeto(PyObject *self, PyObject *args, PyObject *kwargs) {
17495 PyObject *resultobj;
17496 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
17497 bool result;
17498 PyObject * obj0 = 0 ;
17499 char *kwnames[] = {
17500 (char *) "self", NULL
17501 };
17502
17503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_CanVeto",kwnames,&obj0)) goto fail;
17504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent,
17505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17506 {
17507 PyThreadState* __tstate = wxPyBeginAllowThreads();
17508 result = (bool)((wxCloseEvent const *)arg1)->CanVeto();
17509
17510 wxPyEndAllowThreads(__tstate);
17511 if (PyErr_Occurred()) SWIG_fail;
17512 }
17513 {
17514 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17515 }
17516 return resultobj;
17517 fail:
17518 return NULL;
17519}
17520
17521
17522static PyObject *_wrap_CloseEvent_GetVeto(PyObject *self, PyObject *args, PyObject *kwargs) {
17523 PyObject *resultobj;
17524 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
17525 bool result;
17526 PyObject * obj0 = 0 ;
17527 char *kwnames[] = {
17528 (char *) "self", NULL
17529 };
17530
17531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetVeto",kwnames,&obj0)) goto fail;
17532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent,
17533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17534 {
17535 PyThreadState* __tstate = wxPyBeginAllowThreads();
17536 result = (bool)((wxCloseEvent const *)arg1)->GetVeto();
17537
17538 wxPyEndAllowThreads(__tstate);
17539 if (PyErr_Occurred()) SWIG_fail;
17540 }
17541 {
17542 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17543 }
17544 return resultobj;
17545 fail:
17546 return NULL;
17547}
17548
17549
17550static PyObject * CloseEvent_swigregister(PyObject *self, PyObject *args) {
17551 PyObject *obj;
17552 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17553 SWIG_TypeClientData(SWIGTYPE_p_wxCloseEvent, obj);
17554 Py_INCREF(obj);
17555 return Py_BuildValue((char *)"");
17556}
17557static PyObject *_wrap_new_ShowEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17558 PyObject *resultobj;
17559 int arg1 = (int) 0 ;
17560 bool arg2 = (bool) False ;
17561 wxShowEvent *result;
17562 PyObject * obj0 = 0 ;
17563 PyObject * obj1 = 0 ;
17564 char *kwnames[] = {
17565 (char *) "winid",(char *) "show", NULL
17566 };
17567
17568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ShowEvent",kwnames,&obj0,&obj1)) goto fail;
17569 if (obj0) {
17570 arg1 = (int) SWIG_AsInt(obj0);
17571 if (PyErr_Occurred()) SWIG_fail;
17572 }
17573 if (obj1) {
17574 arg2 = (bool) SWIG_AsBool(obj1);
17575 if (PyErr_Occurred()) SWIG_fail;
17576 }
17577 {
17578 PyThreadState* __tstate = wxPyBeginAllowThreads();
17579 result = (wxShowEvent *)new wxShowEvent(arg1,arg2);
17580
17581 wxPyEndAllowThreads(__tstate);
17582 if (PyErr_Occurred()) SWIG_fail;
17583 }
17584 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxShowEvent, 1);
17585 return resultobj;
17586 fail:
17587 return NULL;
17588}
17589
17590
17591static PyObject *_wrap_ShowEvent_SetShow(PyObject *self, PyObject *args, PyObject *kwargs) {
17592 PyObject *resultobj;
17593 wxShowEvent *arg1 = (wxShowEvent *) 0 ;
17594 bool arg2 ;
17595 PyObject * obj0 = 0 ;
17596 PyObject * obj1 = 0 ;
17597 char *kwnames[] = {
17598 (char *) "self",(char *) "show", NULL
17599 };
17600
17601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) goto fail;
17602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent,
17603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17604 arg2 = (bool) SWIG_AsBool(obj1);
17605 if (PyErr_Occurred()) SWIG_fail;
17606 {
17607 PyThreadState* __tstate = wxPyBeginAllowThreads();
17608 (arg1)->SetShow(arg2);
17609
17610 wxPyEndAllowThreads(__tstate);
17611 if (PyErr_Occurred()) SWIG_fail;
17612 }
17613 Py_INCREF(Py_None); resultobj = Py_None;
17614 return resultobj;
17615 fail:
17616 return NULL;
17617}
17618
17619
17620static PyObject *_wrap_ShowEvent_GetShow(PyObject *self, PyObject *args, PyObject *kwargs) {
17621 PyObject *resultobj;
17622 wxShowEvent *arg1 = (wxShowEvent *) 0 ;
17623 bool result;
17624 PyObject * obj0 = 0 ;
17625 char *kwnames[] = {
17626 (char *) "self", NULL
17627 };
17628
17629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShowEvent_GetShow",kwnames,&obj0)) goto fail;
17630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent,
17631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17632 {
17633 PyThreadState* __tstate = wxPyBeginAllowThreads();
17634 result = (bool)((wxShowEvent const *)arg1)->GetShow();
17635
17636 wxPyEndAllowThreads(__tstate);
17637 if (PyErr_Occurred()) SWIG_fail;
17638 }
17639 {
17640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17641 }
17642 return resultobj;
17643 fail:
17644 return NULL;
17645}
17646
17647
17648static PyObject * ShowEvent_swigregister(PyObject *self, PyObject *args) {
17649 PyObject *obj;
17650 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17651 SWIG_TypeClientData(SWIGTYPE_p_wxShowEvent, obj);
17652 Py_INCREF(obj);
17653 return Py_BuildValue((char *)"");
17654}
17655static PyObject *_wrap_new_IconizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17656 PyObject *resultobj;
17657 int arg1 = (int) 0 ;
17658 bool arg2 = (bool) True ;
17659 wxIconizeEvent *result;
17660 PyObject * obj0 = 0 ;
17661 PyObject * obj1 = 0 ;
17662 char *kwnames[] = {
17663 (char *) "id",(char *) "iconized", NULL
17664 };
17665
17666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconizeEvent",kwnames,&obj0,&obj1)) goto fail;
17667 if (obj0) {
17668 arg1 = (int) SWIG_AsInt(obj0);
17669 if (PyErr_Occurred()) SWIG_fail;
17670 }
17671 if (obj1) {
17672 arg2 = (bool) SWIG_AsBool(obj1);
17673 if (PyErr_Occurred()) SWIG_fail;
17674 }
17675 {
17676 PyThreadState* __tstate = wxPyBeginAllowThreads();
17677 result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2);
17678
17679 wxPyEndAllowThreads(__tstate);
17680 if (PyErr_Occurred()) SWIG_fail;
17681 }
17682 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconizeEvent, 1);
17683 return resultobj;
17684 fail:
17685 return NULL;
17686}
17687
17688
17689static PyObject *_wrap_IconizeEvent_Iconized(PyObject *self, PyObject *args, PyObject *kwargs) {
17690 PyObject *resultobj;
17691 wxIconizeEvent *arg1 = (wxIconizeEvent *) 0 ;
17692 bool result;
17693 PyObject * obj0 = 0 ;
17694 char *kwnames[] = {
17695 (char *) "self", NULL
17696 };
17697
17698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconizeEvent_Iconized",kwnames,&obj0)) goto fail;
17699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconizeEvent,
17700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17701 {
17702 PyThreadState* __tstate = wxPyBeginAllowThreads();
17703 result = (bool)(arg1)->Iconized();
17704
17705 wxPyEndAllowThreads(__tstate);
17706 if (PyErr_Occurred()) SWIG_fail;
17707 }
17708 {
17709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17710 }
17711 return resultobj;
17712 fail:
17713 return NULL;
17714}
17715
17716
17717static PyObject * IconizeEvent_swigregister(PyObject *self, PyObject *args) {
17718 PyObject *obj;
17719 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17720 SWIG_TypeClientData(SWIGTYPE_p_wxIconizeEvent, obj);
17721 Py_INCREF(obj);
17722 return Py_BuildValue((char *)"");
17723}
17724static PyObject *_wrap_new_MaximizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17725 PyObject *resultobj;
17726 int arg1 = (int) 0 ;
17727 wxMaximizeEvent *result;
17728 PyObject * obj0 = 0 ;
17729 char *kwnames[] = {
17730 (char *) "id", NULL
17731 };
17732
17733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MaximizeEvent",kwnames,&obj0)) goto fail;
17734 if (obj0) {
17735 arg1 = (int) SWIG_AsInt(obj0);
17736 if (PyErr_Occurred()) SWIG_fail;
17737 }
17738 {
17739 PyThreadState* __tstate = wxPyBeginAllowThreads();
17740 result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1);
17741
17742 wxPyEndAllowThreads(__tstate);
17743 if (PyErr_Occurred()) SWIG_fail;
17744 }
17745 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMaximizeEvent, 1);
17746 return resultobj;
17747 fail:
17748 return NULL;
17749}
17750
17751
17752static PyObject * MaximizeEvent_swigregister(PyObject *self, PyObject *args) {
17753 PyObject *obj;
17754 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17755 SWIG_TypeClientData(SWIGTYPE_p_wxMaximizeEvent, obj);
17756 Py_INCREF(obj);
17757 return Py_BuildValue((char *)"");
17758}
17759static PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
17760 PyObject *resultobj;
17761 wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ;
17762 wxPoint result;
17763 PyObject * obj0 = 0 ;
17764 char *kwnames[] = {
17765 (char *) "self", NULL
17766 };
17767
17768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetPosition",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 = (arg1)->GetPosition();
17774
17775 wxPyEndAllowThreads(__tstate);
17776 if (PyErr_Occurred()) SWIG_fail;
17777 }
17778 {
17779 wxPoint * resultptr;
17780 resultptr = new wxPoint((wxPoint &) result);
17781 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
17782 }
17783 return resultobj;
17784 fail:
17785 return NULL;
17786}
17787
17788
17789static PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
17790 PyObject *resultobj;
17791 wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ;
17792 int result;
17793 PyObject * obj0 = 0 ;
17794 char *kwnames[] = {
17795 (char *) "self", NULL
17796 };
17797
17798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetNumberOfFiles",kwnames,&obj0)) goto fail;
17799 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent,
17800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17801 {
17802 PyThreadState* __tstate = wxPyBeginAllowThreads();
17803 result = (int)(arg1)->GetNumberOfFiles();
17804
17805 wxPyEndAllowThreads(__tstate);
17806 if (PyErr_Occurred()) SWIG_fail;
17807 }
17808 resultobj = SWIG_FromInt((int)result);
17809 return resultobj;
17810 fail:
17811 return NULL;
17812}
17813
17814
17815static PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
17816 PyObject *resultobj;
17817 wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ;
17818 PyObject *result;
17819 PyObject * obj0 = 0 ;
17820 char *kwnames[] = {
17821 (char *) "self", NULL
17822 };
17823
17824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetFiles",kwnames,&obj0)) goto fail;
17825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent,
17826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17827 {
17828 PyThreadState* __tstate = wxPyBeginAllowThreads();
17829 result = (PyObject *)wxDropFilesEvent_GetFiles(arg1);
17830
17831 wxPyEndAllowThreads(__tstate);
17832 if (PyErr_Occurred()) SWIG_fail;
17833 }
17834 resultobj = result;
17835 return resultobj;
17836 fail:
17837 return NULL;
17838}
17839
17840
17841static PyObject * DropFilesEvent_swigregister(PyObject *self, PyObject *args) {
17842 PyObject *obj;
17843 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17844 SWIG_TypeClientData(SWIGTYPE_p_wxDropFilesEvent, obj);
17845 Py_INCREF(obj);
17846 return Py_BuildValue((char *)"");
17847}
17848static PyObject *_wrap_new_UpdateUIEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17849 PyObject *resultobj;
17850 int arg1 = (int) 0 ;
17851 wxUpdateUIEvent *result;
17852 PyObject * obj0 = 0 ;
17853 char *kwnames[] = {
17854 (char *) "commandId", NULL
17855 };
17856
17857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_UpdateUIEvent",kwnames,&obj0)) goto fail;
17858 if (obj0) {
17859 arg1 = (int) SWIG_AsInt(obj0);
17860 if (PyErr_Occurred()) SWIG_fail;
17861 }
17862 {
17863 PyThreadState* __tstate = wxPyBeginAllowThreads();
17864 result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1);
17865
17866 wxPyEndAllowThreads(__tstate);
17867 if (PyErr_Occurred()) SWIG_fail;
17868 }
17869 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxUpdateUIEvent, 1);
17870 return resultobj;
17871 fail:
17872 return NULL;
17873}
17874
17875
17876static PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
17877 PyObject *resultobj;
17878 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
17879 bool result;
17880 PyObject * obj0 = 0 ;
17881 char *kwnames[] = {
17882 (char *) "self", NULL
17883 };
17884
17885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetChecked",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 = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked();
17891
17892 wxPyEndAllowThreads(__tstate);
17893 if (PyErr_Occurred()) SWIG_fail;
17894 }
17895 {
17896 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17897 }
17898 return resultobj;
17899 fail:
17900 return NULL;
17901}
17902
17903
17904static PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
17905 PyObject *resultobj;
17906 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
17907 bool result;
17908 PyObject * obj0 = 0 ;
17909 char *kwnames[] = {
17910 (char *) "self", NULL
17911 };
17912
17913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetEnabled",kwnames,&obj0)) goto fail;
17914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
17915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17916 {
17917 PyThreadState* __tstate = wxPyBeginAllowThreads();
17918 result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled();
17919
17920 wxPyEndAllowThreads(__tstate);
17921 if (PyErr_Occurred()) SWIG_fail;
17922 }
17923 {
17924 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17925 }
17926 return resultobj;
17927 fail:
17928 return NULL;
17929}
17930
17931
17932static PyObject *_wrap_UpdateUIEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
17933 PyObject *resultobj;
17934 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
17935 wxString result;
17936 PyObject * obj0 = 0 ;
17937 char *kwnames[] = {
17938 (char *) "self", NULL
17939 };
17940
17941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetText",kwnames,&obj0)) goto fail;
17942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
17943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17944 {
17945 PyThreadState* __tstate = wxPyBeginAllowThreads();
17946 result = ((wxUpdateUIEvent const *)arg1)->GetText();
17947
17948 wxPyEndAllowThreads(__tstate);
17949 if (PyErr_Occurred()) SWIG_fail;
17950 }
17951 {
17952#if wxUSE_UNICODE
17953 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17954#else
17955 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17956#endif
17957 }
17958 return resultobj;
17959 fail:
17960 return NULL;
17961}
17962
17963
17964static PyObject *_wrap_UpdateUIEvent_GetSetText(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_GetSetText",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)->GetSetText();
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_GetSetChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
17993 PyObject *resultobj;
17994 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
17995 bool result;
17996 PyObject * obj0 = 0 ;
17997 char *kwnames[] = {
17998 (char *) "self", NULL
17999 };
18000
18001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetChecked",kwnames,&obj0)) goto fail;
18002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
18003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18004 {
18005 PyThreadState* __tstate = wxPyBeginAllowThreads();
18006 result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked();
18007
18008 wxPyEndAllowThreads(__tstate);
18009 if (PyErr_Occurred()) SWIG_fail;
18010 }
18011 {
18012 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18013 }
18014 return resultobj;
18015 fail:
18016 return NULL;
18017}
18018
18019
18020static PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
18021 PyObject *resultobj;
18022 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
18023 bool result;
18024 PyObject * obj0 = 0 ;
18025 char *kwnames[] = {
18026 (char *) "self", NULL
18027 };
18028
18029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetEnabled",kwnames,&obj0)) goto fail;
18030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
18031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18032 {
18033 PyThreadState* __tstate = wxPyBeginAllowThreads();
18034 result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled();
18035
18036 wxPyEndAllowThreads(__tstate);
18037 if (PyErr_Occurred()) SWIG_fail;
18038 }
18039 {
18040 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18041 }
18042 return resultobj;
18043 fail:
18044 return NULL;
18045}
18046
18047
18048static PyObject *_wrap_UpdateUIEvent_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
18049 PyObject *resultobj;
18050 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
18051 bool arg2 ;
18052 PyObject * obj0 = 0 ;
18053 PyObject * obj1 = 0 ;
18054 char *kwnames[] = {
18055 (char *) "self",(char *) "check", NULL
18056 };
18057
18058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) goto fail;
18059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
18060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18061 arg2 = (bool) SWIG_AsBool(obj1);
18062 if (PyErr_Occurred()) SWIG_fail;
18063 {
18064 PyThreadState* __tstate = wxPyBeginAllowThreads();
18065 (arg1)->Check(arg2);
18066
18067 wxPyEndAllowThreads(__tstate);
18068 if (PyErr_Occurred()) SWIG_fail;
18069 }
18070 Py_INCREF(Py_None); resultobj = Py_None;
18071 return resultobj;
18072 fail:
18073 return NULL;
18074}
18075
18076
18077static PyObject *_wrap_UpdateUIEvent_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
18078 PyObject *resultobj;
18079 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
18080 bool arg2 ;
18081 PyObject * obj0 = 0 ;
18082 PyObject * obj1 = 0 ;
18083 char *kwnames[] = {
18084 (char *) "self",(char *) "enable", NULL
18085 };
18086
18087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) goto fail;
18088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
18089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18090 arg2 = (bool) SWIG_AsBool(obj1);
18091 if (PyErr_Occurred()) SWIG_fail;
18092 {
18093 PyThreadState* __tstate = wxPyBeginAllowThreads();
18094 (arg1)->Enable(arg2);
18095
18096 wxPyEndAllowThreads(__tstate);
18097 if (PyErr_Occurred()) SWIG_fail;
18098 }
18099 Py_INCREF(Py_None); resultobj = Py_None;
18100 return resultobj;
18101 fail:
18102 return NULL;
18103}
18104
18105
18106static PyObject *_wrap_UpdateUIEvent_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
18107 PyObject *resultobj;
18108 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
18109 wxString *arg2 = 0 ;
18110 bool temp2 = False ;
18111 PyObject * obj0 = 0 ;
18112 PyObject * obj1 = 0 ;
18113 char *kwnames[] = {
18114 (char *) "self",(char *) "text", NULL
18115 };
18116
18117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) goto fail;
18118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
18119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18120 {
18121 arg2 = wxString_in_helper(obj1);
18122 if (arg2 == NULL) SWIG_fail;
18123 temp2 = True;
18124 }
18125 {
18126 PyThreadState* __tstate = wxPyBeginAllowThreads();
18127 (arg1)->SetText((wxString const &)*arg2);
18128
18129 wxPyEndAllowThreads(__tstate);
18130 if (PyErr_Occurred()) SWIG_fail;
18131 }
18132 Py_INCREF(Py_None); resultobj = Py_None;
18133 {
18134 if (temp2)
18135 delete arg2;
18136 }
18137 return resultobj;
18138 fail:
18139 {
18140 if (temp2)
18141 delete arg2;
18142 }
18143 return NULL;
18144}
18145
18146
18147static PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
18148 PyObject *resultobj;
18149 long arg1 ;
18150 PyObject * obj0 = 0 ;
18151 char *kwnames[] = {
18152 (char *) "updateInterval", NULL
18153 };
18154
18155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetUpdateInterval",kwnames,&obj0)) goto fail;
18156 arg1 = (long) SWIG_AsLong(obj0);
18157 if (PyErr_Occurred()) SWIG_fail;
18158 {
18159 PyThreadState* __tstate = wxPyBeginAllowThreads();
18160 wxUpdateUIEvent::SetUpdateInterval(arg1);
18161
18162 wxPyEndAllowThreads(__tstate);
18163 if (PyErr_Occurred()) SWIG_fail;
18164 }
18165 Py_INCREF(Py_None); resultobj = Py_None;
18166 return resultobj;
18167 fail:
18168 return NULL;
18169}
18170
18171
18172static PyObject *_wrap_UpdateUIEvent_GetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
18173 PyObject *resultobj;
18174 long result;
18175 char *kwnames[] = {
18176 NULL
18177 };
18178
18179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetUpdateInterval",kwnames)) goto fail;
18180 {
18181 PyThreadState* __tstate = wxPyBeginAllowThreads();
18182 result = (long)wxUpdateUIEvent::GetUpdateInterval();
18183
18184 wxPyEndAllowThreads(__tstate);
18185 if (PyErr_Occurred()) SWIG_fail;
18186 }
18187 resultobj = SWIG_FromLong((long)result);
18188 return resultobj;
18189 fail:
18190 return NULL;
18191}
18192
18193
18194static PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *self, PyObject *args, PyObject *kwargs) {
18195 PyObject *resultobj;
18196 wxWindow *arg1 = (wxWindow *) 0 ;
18197 bool result;
18198 PyObject * obj0 = 0 ;
18199 char *kwnames[] = {
18200 (char *) "win", NULL
18201 };
18202
18203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) goto fail;
18204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
18205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18206 {
18207 PyThreadState* __tstate = wxPyBeginAllowThreads();
18208 result = (bool)wxUpdateUIEvent::CanUpdate(arg1);
18209
18210 wxPyEndAllowThreads(__tstate);
18211 if (PyErr_Occurred()) SWIG_fail;
18212 }
18213 {
18214 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18215 }
18216 return resultobj;
18217 fail:
18218 return NULL;
18219}
18220
18221
18222static PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
18223 PyObject *resultobj;
18224 char *kwnames[] = {
18225 NULL
18226 };
18227
18228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_ResetUpdateTime",kwnames)) goto fail;
18229 {
18230 PyThreadState* __tstate = wxPyBeginAllowThreads();
18231 wxUpdateUIEvent::ResetUpdateTime();
18232
18233 wxPyEndAllowThreads(__tstate);
18234 if (PyErr_Occurred()) SWIG_fail;
18235 }
18236 Py_INCREF(Py_None); resultobj = Py_None;
18237 return resultobj;
18238 fail:
18239 return NULL;
18240}
18241
18242
18243static PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) {
18244 PyObject *resultobj;
18245 int arg1 ;
18246 PyObject * obj0 = 0 ;
18247 char *kwnames[] = {
18248 (char *) "mode", NULL
18249 };
18250
18251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetMode",kwnames,&obj0)) goto fail;
18252 arg1 = (wxUpdateUIMode) SWIG_AsInt(obj0);
18253 if (PyErr_Occurred()) SWIG_fail;
18254 {
18255 PyThreadState* __tstate = wxPyBeginAllowThreads();
18256 wxUpdateUIEvent::SetMode((wxUpdateUIMode )arg1);
18257
18258 wxPyEndAllowThreads(__tstate);
18259 if (PyErr_Occurred()) SWIG_fail;
18260 }
18261 Py_INCREF(Py_None); resultobj = Py_None;
18262 return resultobj;
18263 fail:
18264 return NULL;
18265}
18266
18267
18268static PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) {
18269 PyObject *resultobj;
18270 int result;
18271 char *kwnames[] = {
18272 NULL
18273 };
18274
18275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetMode",kwnames)) goto fail;
18276 {
18277 PyThreadState* __tstate = wxPyBeginAllowThreads();
18278 result = (int)wxUpdateUIEvent::GetMode();
18279
18280 wxPyEndAllowThreads(__tstate);
18281 if (PyErr_Occurred()) SWIG_fail;
18282 }
18283 resultobj = SWIG_FromInt((int)result);
18284 return resultobj;
18285 fail:
18286 return NULL;
18287}
18288
18289
18290static PyObject * UpdateUIEvent_swigregister(PyObject *self, PyObject *args) {
18291 PyObject *obj;
18292 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18293 SWIG_TypeClientData(SWIGTYPE_p_wxUpdateUIEvent, obj);
18294 Py_INCREF(obj);
18295 return Py_BuildValue((char *)"");
18296}
18297static PyObject *_wrap_new_SysColourChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18298 PyObject *resultobj;
18299 wxSysColourChangedEvent *result;
18300 char *kwnames[] = {
18301 NULL
18302 };
18303
18304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SysColourChangedEvent",kwnames)) goto fail;
18305 {
18306 PyThreadState* __tstate = wxPyBeginAllowThreads();
18307 result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent();
18308
18309 wxPyEndAllowThreads(__tstate);
18310 if (PyErr_Occurred()) SWIG_fail;
18311 }
18312 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSysColourChangedEvent, 1);
18313 return resultobj;
18314 fail:
18315 return NULL;
18316}
18317
18318
18319static PyObject * SysColourChangedEvent_swigregister(PyObject *self, PyObject *args) {
18320 PyObject *obj;
18321 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18322 SWIG_TypeClientData(SWIGTYPE_p_wxSysColourChangedEvent, obj);
18323 Py_INCREF(obj);
18324 return Py_BuildValue((char *)"");
18325}
18326static PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18327 PyObject *resultobj;
18328 int arg1 = (int) 0 ;
18329 wxWindow *arg2 = (wxWindow *) NULL ;
18330 wxMouseCaptureChangedEvent *result;
18331 PyObject * obj0 = 0 ;
18332 PyObject * obj1 = 0 ;
18333 char *kwnames[] = {
18334 (char *) "winid",(char *) "gainedCapture", NULL
18335 };
18336
18337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MouseCaptureChangedEvent",kwnames,&obj0,&obj1)) goto fail;
18338 if (obj0) {
18339 arg1 = (int) SWIG_AsInt(obj0);
18340 if (PyErr_Occurred()) SWIG_fail;
18341 }
18342 if (obj1) {
18343 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
18344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18345 }
18346 {
18347 PyThreadState* __tstate = wxPyBeginAllowThreads();
18348 result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2);
18349
18350 wxPyEndAllowThreads(__tstate);
18351 if (PyErr_Occurred()) SWIG_fail;
18352 }
18353 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseCaptureChangedEvent, 1);
18354 return resultobj;
18355 fail:
18356 return NULL;
18357}
18358
18359
18360static PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
18361 PyObject *resultobj;
18362 wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ;
18363 wxWindow *result;
18364 PyObject * obj0 = 0 ;
18365 char *kwnames[] = {
18366 (char *) "self", NULL
18367 };
18368
18369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseCaptureChangedEvent_GetCapturedWindow",kwnames,&obj0)) goto fail;
18370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseCaptureChangedEvent,
18371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18372 {
18373 PyThreadState* __tstate = wxPyBeginAllowThreads();
18374 result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow();
18375
18376 wxPyEndAllowThreads(__tstate);
18377 if (PyErr_Occurred()) SWIG_fail;
18378 }
18379 {
412d302d 18380 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
18381 }
18382 return resultobj;
18383 fail:
18384 return NULL;
18385}
18386
18387
18388static PyObject * MouseCaptureChangedEvent_swigregister(PyObject *self, PyObject *args) {
18389 PyObject *obj;
18390 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18391 SWIG_TypeClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, obj);
18392 Py_INCREF(obj);
18393 return Py_BuildValue((char *)"");
18394}
18395static PyObject *_wrap_new_DisplayChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18396 PyObject *resultobj;
18397 wxDisplayChangedEvent *result;
18398 char *kwnames[] = {
18399 NULL
18400 };
18401
18402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DisplayChangedEvent",kwnames)) goto fail;
18403 {
18404 PyThreadState* __tstate = wxPyBeginAllowThreads();
18405 result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent();
18406
18407 wxPyEndAllowThreads(__tstate);
18408 if (PyErr_Occurred()) SWIG_fail;
18409 }
18410 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplayChangedEvent, 1);
18411 return resultobj;
18412 fail:
18413 return NULL;
18414}
18415
18416
18417static PyObject * DisplayChangedEvent_swigregister(PyObject *self, PyObject *args) {
18418 PyObject *obj;
18419 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18420 SWIG_TypeClientData(SWIGTYPE_p_wxDisplayChangedEvent, obj);
18421 Py_INCREF(obj);
18422 return Py_BuildValue((char *)"");
18423}
18424static PyObject *_wrap_new_PaletteChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18425 PyObject *resultobj;
18426 int arg1 = (int) 0 ;
18427 wxPaletteChangedEvent *result;
18428 PyObject * obj0 = 0 ;
18429 char *kwnames[] = {
18430 (char *) "id", NULL
18431 };
18432
18433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaletteChangedEvent",kwnames,&obj0)) goto fail;
18434 if (obj0) {
18435 arg1 = (int) SWIG_AsInt(obj0);
18436 if (PyErr_Occurred()) SWIG_fail;
18437 }
18438 {
18439 PyThreadState* __tstate = wxPyBeginAllowThreads();
18440 result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1);
18441
18442 wxPyEndAllowThreads(__tstate);
18443 if (PyErr_Occurred()) SWIG_fail;
18444 }
18445 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaletteChangedEvent, 1);
18446 return resultobj;
18447 fail:
18448 return NULL;
18449}
18450
18451
18452static PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
18453 PyObject *resultobj;
18454 wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ;
18455 wxWindow *arg2 = (wxWindow *) 0 ;
18456 PyObject * obj0 = 0 ;
18457 PyObject * obj1 = 0 ;
18458 char *kwnames[] = {
18459 (char *) "self",(char *) "win", NULL
18460 };
18461
18462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) goto fail;
18463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent,
18464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18465 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
18466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18467 {
18468 PyThreadState* __tstate = wxPyBeginAllowThreads();
18469 (arg1)->SetChangedWindow(arg2);
18470
18471 wxPyEndAllowThreads(__tstate);
18472 if (PyErr_Occurred()) SWIG_fail;
18473 }
18474 Py_INCREF(Py_None); resultobj = Py_None;
18475 return resultobj;
18476 fail:
18477 return NULL;
18478}
18479
18480
18481static PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
18482 PyObject *resultobj;
18483 wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ;
18484 wxWindow *result;
18485 PyObject * obj0 = 0 ;
18486 char *kwnames[] = {
18487 (char *) "self", NULL
18488 };
18489
18490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PaletteChangedEvent_GetChangedWindow",kwnames,&obj0)) goto fail;
18491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent,
18492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18493 {
18494 PyThreadState* __tstate = wxPyBeginAllowThreads();
18495 result = (wxWindow *)(arg1)->GetChangedWindow();
18496
18497 wxPyEndAllowThreads(__tstate);
18498 if (PyErr_Occurred()) SWIG_fail;
18499 }
18500 {
412d302d 18501 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
18502 }
18503 return resultobj;
18504 fail:
18505 return NULL;
18506}
18507
18508
18509static PyObject * PaletteChangedEvent_swigregister(PyObject *self, PyObject *args) {
18510 PyObject *obj;
18511 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18512 SWIG_TypeClientData(SWIGTYPE_p_wxPaletteChangedEvent, obj);
18513 Py_INCREF(obj);
18514 return Py_BuildValue((char *)"");
18515}
18516static PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18517 PyObject *resultobj;
18518 int arg1 = (int) 0 ;
18519 wxQueryNewPaletteEvent *result;
18520 PyObject * obj0 = 0 ;
18521 char *kwnames[] = {
18522 (char *) "winid", NULL
18523 };
18524
18525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryNewPaletteEvent",kwnames,&obj0)) goto fail;
18526 if (obj0) {
18527 arg1 = (int) SWIG_AsInt(obj0);
18528 if (PyErr_Occurred()) SWIG_fail;
18529 }
18530 {
18531 PyThreadState* __tstate = wxPyBeginAllowThreads();
18532 result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1);
18533
18534 wxPyEndAllowThreads(__tstate);
18535 if (PyErr_Occurred()) SWIG_fail;
18536 }
18537 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxQueryNewPaletteEvent, 1);
18538 return resultobj;
18539 fail:
18540 return NULL;
18541}
18542
18543
18544static PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) {
18545 PyObject *resultobj;
18546 wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ;
18547 bool arg2 ;
18548 PyObject * obj0 = 0 ;
18549 PyObject * obj1 = 0 ;
18550 char *kwnames[] = {
18551 (char *) "self",(char *) "realized", NULL
18552 };
18553
18554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) goto fail;
18555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent,
18556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18557 arg2 = (bool) SWIG_AsBool(obj1);
18558 if (PyErr_Occurred()) SWIG_fail;
18559 {
18560 PyThreadState* __tstate = wxPyBeginAllowThreads();
18561 (arg1)->SetPaletteRealized(arg2);
18562
18563 wxPyEndAllowThreads(__tstate);
18564 if (PyErr_Occurred()) SWIG_fail;
18565 }
18566 Py_INCREF(Py_None); resultobj = Py_None;
18567 return resultobj;
18568 fail:
18569 return NULL;
18570}
18571
18572
18573static PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) {
18574 PyObject *resultobj;
18575 wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ;
18576 bool result;
18577 PyObject * obj0 = 0 ;
18578 char *kwnames[] = {
18579 (char *) "self", NULL
18580 };
18581
18582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryNewPaletteEvent_GetPaletteRealized",kwnames,&obj0)) goto fail;
18583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent,
18584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18585 {
18586 PyThreadState* __tstate = wxPyBeginAllowThreads();
18587 result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized();
18588
18589 wxPyEndAllowThreads(__tstate);
18590 if (PyErr_Occurred()) SWIG_fail;
18591 }
18592 {
18593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18594 }
18595 return resultobj;
18596 fail:
18597 return NULL;
18598}
18599
18600
18601static PyObject * QueryNewPaletteEvent_swigregister(PyObject *self, PyObject *args) {
18602 PyObject *obj;
18603 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18604 SWIG_TypeClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, obj);
18605 Py_INCREF(obj);
18606 return Py_BuildValue((char *)"");
18607}
18608static PyObject *_wrap_new_NavigationKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18609 PyObject *resultobj;
18610 wxNavigationKeyEvent *result;
18611 char *kwnames[] = {
18612 NULL
18613 };
18614
18615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NavigationKeyEvent",kwnames)) goto fail;
18616 {
18617 PyThreadState* __tstate = wxPyBeginAllowThreads();
18618 result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent();
18619
18620 wxPyEndAllowThreads(__tstate);
18621 if (PyErr_Occurred()) SWIG_fail;
18622 }
18623 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNavigationKeyEvent, 1);
18624 return resultobj;
18625 fail:
18626 return NULL;
18627}
18628
18629
18630static PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *self, PyObject *args, PyObject *kwargs) {
18631 PyObject *resultobj;
18632 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
18633 bool result;
18634 PyObject * obj0 = 0 ;
18635 char *kwnames[] = {
18636 (char *) "self", NULL
18637 };
18638
18639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetDirection",kwnames,&obj0)) goto fail;
18640 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
18641 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18642 {
18643 PyThreadState* __tstate = wxPyBeginAllowThreads();
18644 result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection();
18645
18646 wxPyEndAllowThreads(__tstate);
18647 if (PyErr_Occurred()) SWIG_fail;
18648 }
18649 {
18650 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18651 }
18652 return resultobj;
18653 fail:
18654 return NULL;
18655}
18656
18657
18658static PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *self, PyObject *args, PyObject *kwargs) {
18659 PyObject *resultobj;
18660 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
18661 bool arg2 ;
18662 PyObject * obj0 = 0 ;
18663 PyObject * obj1 = 0 ;
18664 char *kwnames[] = {
908b74cd 18665 (char *) "self",(char *) "forward", NULL
d55e5bfc
RD
18666 };
18667
18668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) goto fail;
18669 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
18670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18671 arg2 = (bool) SWIG_AsBool(obj1);
18672 if (PyErr_Occurred()) SWIG_fail;
18673 {
18674 PyThreadState* __tstate = wxPyBeginAllowThreads();
18675 (arg1)->SetDirection(arg2);
18676
18677 wxPyEndAllowThreads(__tstate);
18678 if (PyErr_Occurred()) SWIG_fail;
18679 }
18680 Py_INCREF(Py_None); resultobj = Py_None;
18681 return resultobj;
18682 fail:
18683 return NULL;
18684}
18685
18686
18687static PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) {
18688 PyObject *resultobj;
18689 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
18690 bool result;
18691 PyObject * obj0 = 0 ;
18692 char *kwnames[] = {
18693 (char *) "self", NULL
18694 };
18695
18696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsWindowChange",kwnames,&obj0)) goto fail;
18697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
18698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18699 {
18700 PyThreadState* __tstate = wxPyBeginAllowThreads();
18701 result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange();
18702
18703 wxPyEndAllowThreads(__tstate);
18704 if (PyErr_Occurred()) SWIG_fail;
18705 }
18706 {
18707 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18708 }
18709 return resultobj;
18710 fail:
18711 return NULL;
18712}
18713
18714
18715static PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) {
18716 PyObject *resultobj;
18717 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
18718 bool arg2 ;
18719 PyObject * obj0 = 0 ;
18720 PyObject * obj1 = 0 ;
18721 char *kwnames[] = {
908b74cd 18722 (char *) "self",(char *) "ischange", NULL
d55e5bfc
RD
18723 };
18724
18725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) goto fail;
18726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
18727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18728 arg2 = (bool) SWIG_AsBool(obj1);
18729 if (PyErr_Occurred()) SWIG_fail;
18730 {
18731 PyThreadState* __tstate = wxPyBeginAllowThreads();
18732 (arg1)->SetWindowChange(arg2);
18733
18734 wxPyEndAllowThreads(__tstate);
18735 if (PyErr_Occurred()) SWIG_fail;
18736 }
18737 Py_INCREF(Py_None); resultobj = Py_None;
18738 return resultobj;
18739 fail:
18740 return NULL;
18741}
18742
18743
908b74cd
RD
18744static PyObject *_wrap_NavigationKeyEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
18745 PyObject *resultobj;
18746 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
18747 long arg2 ;
18748 PyObject * obj0 = 0 ;
18749 PyObject * obj1 = 0 ;
18750 char *kwnames[] = {
18751 (char *) "self",(char *) "flags", NULL
18752 };
18753
18754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail;
18755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
18756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18757 arg2 = (long) SWIG_AsLong(obj1);
18758 if (PyErr_Occurred()) SWIG_fail;
18759 {
18760 PyThreadState* __tstate = wxPyBeginAllowThreads();
18761 (arg1)->SetFlags(arg2);
18762
18763 wxPyEndAllowThreads(__tstate);
18764 if (PyErr_Occurred()) SWIG_fail;
18765 }
18766 Py_INCREF(Py_None); resultobj = Py_None;
18767 return resultobj;
18768 fail:
18769 return NULL;
18770}
18771
18772
d55e5bfc
RD
18773static PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
18774 PyObject *resultobj;
18775 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
18776 wxWindow *result;
18777 PyObject * obj0 = 0 ;
18778 char *kwnames[] = {
18779 (char *) "self", NULL
18780 };
18781
18782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetCurrentFocus",kwnames,&obj0)) goto fail;
18783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
18784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18785 {
18786 PyThreadState* __tstate = wxPyBeginAllowThreads();
18787 result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus();
18788
18789 wxPyEndAllowThreads(__tstate);
18790 if (PyErr_Occurred()) SWIG_fail;
18791 }
18792 {
412d302d 18793 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
18794 }
18795 return resultobj;
18796 fail:
18797 return NULL;
18798}
18799
18800
18801static PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
18802 PyObject *resultobj;
18803 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
18804 wxWindow *arg2 = (wxWindow *) 0 ;
18805 PyObject * obj0 = 0 ;
18806 PyObject * obj1 = 0 ;
18807 char *kwnames[] = {
18808 (char *) "self",(char *) "win", NULL
18809 };
18810
18811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) goto fail;
18812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
18813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18814 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
18815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18816 {
18817 PyThreadState* __tstate = wxPyBeginAllowThreads();
18818 (arg1)->SetCurrentFocus(arg2);
18819
18820 wxPyEndAllowThreads(__tstate);
18821 if (PyErr_Occurred()) SWIG_fail;
18822 }
18823 Py_INCREF(Py_None); resultobj = Py_None;
18824 return resultobj;
18825 fail:
18826 return NULL;
18827}
18828
18829
18830static PyObject * NavigationKeyEvent_swigregister(PyObject *self, PyObject *args) {
18831 PyObject *obj;
18832 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18833 SWIG_TypeClientData(SWIGTYPE_p_wxNavigationKeyEvent, obj);
18834 Py_INCREF(obj);
18835 return Py_BuildValue((char *)"");
18836}
18837static PyObject *_wrap_new_WindowCreateEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18838 PyObject *resultobj;
18839 wxWindow *arg1 = (wxWindow *) NULL ;
18840 wxWindowCreateEvent *result;
18841 PyObject * obj0 = 0 ;
18842 char *kwnames[] = {
18843 (char *) "win", NULL
18844 };
18845
18846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) goto fail;
18847 if (obj0) {
18848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
18849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18850 }
18851 {
18852 PyThreadState* __tstate = wxPyBeginAllowThreads();
18853 result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1);
18854
18855 wxPyEndAllowThreads(__tstate);
18856 if (PyErr_Occurred()) SWIG_fail;
18857 }
18858 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowCreateEvent, 1);
18859 return resultobj;
18860 fail:
18861 return NULL;
18862}
18863
18864
18865static PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
18866 PyObject *resultobj;
18867 wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ;
18868 wxWindow *result;
18869 PyObject * obj0 = 0 ;
18870 char *kwnames[] = {
18871 (char *) "self", NULL
18872 };
18873
18874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowCreateEvent_GetWindow",kwnames,&obj0)) goto fail;
18875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowCreateEvent,
18876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18877 {
18878 PyThreadState* __tstate = wxPyBeginAllowThreads();
18879 result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow();
18880
18881 wxPyEndAllowThreads(__tstate);
18882 if (PyErr_Occurred()) SWIG_fail;
18883 }
18884 {
412d302d 18885 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
18886 }
18887 return resultobj;
18888 fail:
18889 return NULL;
18890}
18891
18892
18893static PyObject * WindowCreateEvent_swigregister(PyObject *self, PyObject *args) {
18894 PyObject *obj;
18895 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18896 SWIG_TypeClientData(SWIGTYPE_p_wxWindowCreateEvent, obj);
18897 Py_INCREF(obj);
18898 return Py_BuildValue((char *)"");
18899}
18900static PyObject *_wrap_new_WindowDestroyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18901 PyObject *resultobj;
18902 wxWindow *arg1 = (wxWindow *) NULL ;
18903 wxWindowDestroyEvent *result;
18904 PyObject * obj0 = 0 ;
18905 char *kwnames[] = {
18906 (char *) "win", NULL
18907 };
18908
18909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) goto fail;
18910 if (obj0) {
18911 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
18912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18913 }
18914 {
18915 PyThreadState* __tstate = wxPyBeginAllowThreads();
18916 result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1);
18917
18918 wxPyEndAllowThreads(__tstate);
18919 if (PyErr_Occurred()) SWIG_fail;
18920 }
18921 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDestroyEvent, 1);
18922 return resultobj;
18923 fail:
18924 return NULL;
18925}
18926
18927
18928static PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
18929 PyObject *resultobj;
18930 wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ;
18931 wxWindow *result;
18932 PyObject * obj0 = 0 ;
18933 char *kwnames[] = {
18934 (char *) "self", NULL
18935 };
18936
18937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowDestroyEvent_GetWindow",kwnames,&obj0)) goto fail;
18938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDestroyEvent,
18939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18940 {
18941 PyThreadState* __tstate = wxPyBeginAllowThreads();
18942 result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow();
18943
18944 wxPyEndAllowThreads(__tstate);
18945 if (PyErr_Occurred()) SWIG_fail;
18946 }
18947 {
412d302d 18948 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
18949 }
18950 return resultobj;
18951 fail:
18952 return NULL;
18953}
18954
18955
18956static PyObject * WindowDestroyEvent_swigregister(PyObject *self, PyObject *args) {
18957 PyObject *obj;
18958 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18959 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDestroyEvent, obj);
18960 Py_INCREF(obj);
18961 return Py_BuildValue((char *)"");
18962}
18963static PyObject *_wrap_new_ContextMenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18964 PyObject *resultobj;
18965 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
18966 int arg2 = (int) 0 ;
18967 wxPoint const &arg3_defvalue = wxDefaultPosition ;
18968 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
18969 wxContextMenuEvent *result;
18970 wxPoint temp3 ;
18971 PyObject * obj0 = 0 ;
18972 PyObject * obj1 = 0 ;
18973 PyObject * obj2 = 0 ;
18974 char *kwnames[] = {
18975 (char *) "type",(char *) "winid",(char *) "pt", NULL
18976 };
18977
18978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ContextMenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
18979 if (obj0) {
18980 arg1 = (wxEventType) SWIG_AsInt(obj0);
18981 if (PyErr_Occurred()) SWIG_fail;
18982 }
18983 if (obj1) {
18984 arg2 = (int) SWIG_AsInt(obj1);
18985 if (PyErr_Occurred()) SWIG_fail;
18986 }
18987 if (obj2) {
18988 {
18989 arg3 = &temp3;
18990 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18991 }
18992 }
18993 {
18994 PyThreadState* __tstate = wxPyBeginAllowThreads();
18995 result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3);
18996
18997 wxPyEndAllowThreads(__tstate);
18998 if (PyErr_Occurred()) SWIG_fail;
18999 }
19000 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextMenuEvent, 1);
19001 return resultobj;
19002 fail:
19003 return NULL;
19004}
19005
19006
19007static PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
19008 PyObject *resultobj;
19009 wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ;
19010 wxPoint *result;
19011 PyObject * obj0 = 0 ;
19012 char *kwnames[] = {
19013 (char *) "self", NULL
19014 };
19015
19016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextMenuEvent_GetPosition",kwnames,&obj0)) goto fail;
19017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent,
19018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19019 {
19020 PyThreadState* __tstate = wxPyBeginAllowThreads();
19021 {
19022 wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition();
19023 result = (wxPoint *) &_result_ref;
19024 }
19025
19026 wxPyEndAllowThreads(__tstate);
19027 if (PyErr_Occurred()) SWIG_fail;
19028 }
19029 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
19030 return resultobj;
19031 fail:
19032 return NULL;
19033}
19034
19035
19036static PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
19037 PyObject *resultobj;
19038 wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ;
19039 wxPoint *arg2 = 0 ;
19040 wxPoint temp2 ;
19041 PyObject * obj0 = 0 ;
19042 PyObject * obj1 = 0 ;
19043 char *kwnames[] = {
19044 (char *) "self",(char *) "pos", NULL
19045 };
19046
19047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
19048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent,
19049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19050 {
19051 arg2 = &temp2;
19052 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19053 }
19054 {
19055 PyThreadState* __tstate = wxPyBeginAllowThreads();
19056 (arg1)->SetPosition((wxPoint const &)*arg2);
19057
19058 wxPyEndAllowThreads(__tstate);
19059 if (PyErr_Occurred()) SWIG_fail;
19060 }
19061 Py_INCREF(Py_None); resultobj = Py_None;
19062 return resultobj;
19063 fail:
19064 return NULL;
19065}
19066
19067
19068static PyObject * ContextMenuEvent_swigregister(PyObject *self, PyObject *args) {
19069 PyObject *obj;
19070 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19071 SWIG_TypeClientData(SWIGTYPE_p_wxContextMenuEvent, obj);
19072 Py_INCREF(obj);
19073 return Py_BuildValue((char *)"");
19074}
19075static PyObject *_wrap_new_IdleEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
19076 PyObject *resultobj;
19077 wxIdleEvent *result;
19078 char *kwnames[] = {
19079 NULL
19080 };
19081
19082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IdleEvent",kwnames)) goto fail;
19083 {
19084 PyThreadState* __tstate = wxPyBeginAllowThreads();
19085 result = (wxIdleEvent *)new wxIdleEvent();
19086
19087 wxPyEndAllowThreads(__tstate);
19088 if (PyErr_Occurred()) SWIG_fail;
19089 }
19090 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIdleEvent, 1);
19091 return resultobj;
19092 fail:
19093 return NULL;
19094}
19095
19096
19097static PyObject *_wrap_IdleEvent_RequestMore(PyObject *self, PyObject *args, PyObject *kwargs) {
19098 PyObject *resultobj;
19099 wxIdleEvent *arg1 = (wxIdleEvent *) 0 ;
19100 bool arg2 = (bool) True ;
19101 PyObject * obj0 = 0 ;
19102 PyObject * obj1 = 0 ;
19103 char *kwnames[] = {
19104 (char *) "self",(char *) "needMore", NULL
19105 };
19106
19107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) goto fail;
19108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent,
19109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19110 if (obj1) {
19111 arg2 = (bool) SWIG_AsBool(obj1);
19112 if (PyErr_Occurred()) SWIG_fail;
19113 }
19114 {
19115 PyThreadState* __tstate = wxPyBeginAllowThreads();
19116 (arg1)->RequestMore(arg2);
19117
19118 wxPyEndAllowThreads(__tstate);
19119 if (PyErr_Occurred()) SWIG_fail;
19120 }
19121 Py_INCREF(Py_None); resultobj = Py_None;
19122 return resultobj;
19123 fail:
19124 return NULL;
19125}
19126
19127
19128static PyObject *_wrap_IdleEvent_MoreRequested(PyObject *self, PyObject *args, PyObject *kwargs) {
19129 PyObject *resultobj;
19130 wxIdleEvent *arg1 = (wxIdleEvent *) 0 ;
19131 bool result;
19132 PyObject * obj0 = 0 ;
19133 char *kwnames[] = {
19134 (char *) "self", NULL
19135 };
19136
19137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_MoreRequested",kwnames,&obj0)) goto fail;
19138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent,
19139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19140 {
19141 PyThreadState* __tstate = wxPyBeginAllowThreads();
19142 result = (bool)((wxIdleEvent const *)arg1)->MoreRequested();
19143
19144 wxPyEndAllowThreads(__tstate);
19145 if (PyErr_Occurred()) SWIG_fail;
19146 }
19147 {
19148 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19149 }
19150 return resultobj;
19151 fail:
19152 return NULL;
19153}
19154
19155
19156static PyObject *_wrap_IdleEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) {
19157 PyObject *resultobj;
19158 int arg1 ;
19159 PyObject * obj0 = 0 ;
19160 char *kwnames[] = {
19161 (char *) "mode", NULL
19162 };
19163
19164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_SetMode",kwnames,&obj0)) goto fail;
19165 arg1 = (wxIdleMode) SWIG_AsInt(obj0);
19166 if (PyErr_Occurred()) SWIG_fail;
19167 {
19168 PyThreadState* __tstate = wxPyBeginAllowThreads();
19169 wxIdleEvent::SetMode((wxIdleMode )arg1);
19170
19171 wxPyEndAllowThreads(__tstate);
19172 if (PyErr_Occurred()) SWIG_fail;
19173 }
19174 Py_INCREF(Py_None); resultobj = Py_None;
19175 return resultobj;
19176 fail:
19177 return NULL;
19178}
19179
19180
19181static PyObject *_wrap_IdleEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) {
19182 PyObject *resultobj;
19183 int result;
19184 char *kwnames[] = {
19185 NULL
19186 };
19187
19188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IdleEvent_GetMode",kwnames)) goto fail;
19189 {
19190 PyThreadState* __tstate = wxPyBeginAllowThreads();
19191 result = (int)wxIdleEvent::GetMode();
19192
19193 wxPyEndAllowThreads(__tstate);
19194 if (PyErr_Occurred()) SWIG_fail;
19195 }
19196 resultobj = SWIG_FromInt((int)result);
19197 return resultobj;
19198 fail:
19199 return NULL;
19200}
19201
19202
19203static PyObject *_wrap_IdleEvent_CanSend(PyObject *self, PyObject *args, PyObject *kwargs) {
19204 PyObject *resultobj;
19205 wxWindow *arg1 = (wxWindow *) 0 ;
19206 bool result;
19207 PyObject * obj0 = 0 ;
19208 char *kwnames[] = {
19209 (char *) "win", NULL
19210 };
19211
19212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) goto fail;
19213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
19214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19215 {
19216 PyThreadState* __tstate = wxPyBeginAllowThreads();
19217 result = (bool)wxIdleEvent::CanSend(arg1);
19218
19219 wxPyEndAllowThreads(__tstate);
19220 if (PyErr_Occurred()) SWIG_fail;
19221 }
19222 {
19223 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19224 }
19225 return resultobj;
19226 fail:
19227 return NULL;
19228}
19229
19230
19231static PyObject * IdleEvent_swigregister(PyObject *self, PyObject *args) {
19232 PyObject *obj;
19233 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19234 SWIG_TypeClientData(SWIGTYPE_p_wxIdleEvent, obj);
19235 Py_INCREF(obj);
19236 return Py_BuildValue((char *)"");
19237}
19238static PyObject *_wrap_new_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
19239 PyObject *resultobj;
19240 int arg1 = (int) 0 ;
19241 wxEventType arg2 = (wxEventType) wxEVT_NULL ;
19242 wxPyEvent *result;
19243 PyObject * obj0 = 0 ;
19244 PyObject * obj1 = 0 ;
19245 char *kwnames[] = {
19246 (char *) "winid",(char *) "commandType", NULL
19247 };
19248
19249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyEvent",kwnames,&obj0,&obj1)) goto fail;
19250 if (obj0) {
19251 arg1 = (int) SWIG_AsInt(obj0);
19252 if (PyErr_Occurred()) SWIG_fail;
19253 }
19254 if (obj1) {
19255 arg2 = (wxEventType) SWIG_AsInt(obj1);
19256 if (PyErr_Occurred()) SWIG_fail;
19257 }
19258 {
19259 PyThreadState* __tstate = wxPyBeginAllowThreads();
19260 result = (wxPyEvent *)new wxPyEvent(arg1,arg2);
19261
19262 wxPyEndAllowThreads(__tstate);
19263 if (PyErr_Occurred()) SWIG_fail;
19264 }
19265 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyEvent, 1);
19266 return resultobj;
19267 fail:
19268 return NULL;
19269}
19270
19271
19272static PyObject *_wrap_delete_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
19273 PyObject *resultobj;
19274 wxPyEvent *arg1 = (wxPyEvent *) 0 ;
19275 PyObject * obj0 = 0 ;
19276 char *kwnames[] = {
19277 (char *) "self", NULL
19278 };
19279
19280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyEvent",kwnames,&obj0)) goto fail;
19281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent,
19282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19283 {
19284 PyThreadState* __tstate = wxPyBeginAllowThreads();
19285 delete arg1;
19286
19287 wxPyEndAllowThreads(__tstate);
19288 if (PyErr_Occurred()) SWIG_fail;
19289 }
19290 Py_INCREF(Py_None); resultobj = Py_None;
19291 return resultobj;
19292 fail:
19293 return NULL;
19294}
19295
19296
19297static PyObject *_wrap_PyEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) {
19298 PyObject *resultobj;
19299 wxPyEvent *arg1 = (wxPyEvent *) 0 ;
19300 PyObject *arg2 = (PyObject *) 0 ;
19301 PyObject * obj0 = 0 ;
19302 PyObject * obj1 = 0 ;
19303 char *kwnames[] = {
19304 (char *) "self",(char *) "self", NULL
19305 };
19306
19307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail;
19308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent,
19309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19310 arg2 = obj1;
19311 {
19312 PyThreadState* __tstate = wxPyBeginAllowThreads();
19313 (arg1)->SetSelf(arg2);
19314
19315 wxPyEndAllowThreads(__tstate);
19316 if (PyErr_Occurred()) SWIG_fail;
19317 }
19318 Py_INCREF(Py_None); resultobj = Py_None;
19319 return resultobj;
19320 fail:
19321 return NULL;
19322}
19323
19324
19325static PyObject *_wrap_PyEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) {
19326 PyObject *resultobj;
19327 wxPyEvent *arg1 = (wxPyEvent *) 0 ;
19328 PyObject *result;
19329 PyObject * obj0 = 0 ;
19330 char *kwnames[] = {
19331 (char *) "self", NULL
19332 };
19333
19334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyEvent_GetSelf",kwnames,&obj0)) goto fail;
19335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent,
19336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19337 {
19338 PyThreadState* __tstate = wxPyBeginAllowThreads();
19339 result = (PyObject *)(arg1)->GetSelf();
19340
19341 wxPyEndAllowThreads(__tstate);
19342 if (PyErr_Occurred()) SWIG_fail;
19343 }
19344 resultobj = result;
19345 return resultobj;
19346 fail:
19347 return NULL;
19348}
19349
19350
19351static PyObject * PyEvent_swigregister(PyObject *self, PyObject *args) {
19352 PyObject *obj;
19353 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19354 SWIG_TypeClientData(SWIGTYPE_p_wxPyEvent, obj);
19355 Py_INCREF(obj);
19356 return Py_BuildValue((char *)"");
19357}
19358static PyObject *_wrap_new_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
19359 PyObject *resultobj;
19360 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
19361 int arg2 = (int) 0 ;
19362 wxPyCommandEvent *result;
19363 PyObject * obj0 = 0 ;
19364 PyObject * obj1 = 0 ;
19365 char *kwnames[] = {
19366 (char *) "commandType",(char *) "id", NULL
19367 };
19368
19369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyCommandEvent",kwnames,&obj0,&obj1)) goto fail;
19370 if (obj0) {
19371 arg1 = (wxEventType) SWIG_AsInt(obj0);
19372 if (PyErr_Occurred()) SWIG_fail;
19373 }
19374 if (obj1) {
19375 arg2 = (int) SWIG_AsInt(obj1);
19376 if (PyErr_Occurred()) SWIG_fail;
19377 }
19378 {
19379 PyThreadState* __tstate = wxPyBeginAllowThreads();
19380 result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2);
19381
19382 wxPyEndAllowThreads(__tstate);
19383 if (PyErr_Occurred()) SWIG_fail;
19384 }
19385 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyCommandEvent, 1);
19386 return resultobj;
19387 fail:
19388 return NULL;
19389}
19390
19391
19392static PyObject *_wrap_delete_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
19393 PyObject *resultobj;
19394 wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ;
19395 PyObject * obj0 = 0 ;
19396 char *kwnames[] = {
19397 (char *) "self", NULL
19398 };
19399
19400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyCommandEvent",kwnames,&obj0)) goto fail;
19401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent,
19402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19403 {
19404 PyThreadState* __tstate = wxPyBeginAllowThreads();
19405 delete arg1;
19406
19407 wxPyEndAllowThreads(__tstate);
19408 if (PyErr_Occurred()) SWIG_fail;
19409 }
19410 Py_INCREF(Py_None); resultobj = Py_None;
19411 return resultobj;
19412 fail:
19413 return NULL;
19414}
19415
19416
19417static PyObject *_wrap_PyCommandEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) {
19418 PyObject *resultobj;
19419 wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ;
19420 PyObject *arg2 = (PyObject *) 0 ;
19421 PyObject * obj0 = 0 ;
19422 PyObject * obj1 = 0 ;
19423 char *kwnames[] = {
19424 (char *) "self",(char *) "self", NULL
19425 };
19426
19427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail;
19428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent,
19429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19430 arg2 = obj1;
19431 {
19432 PyThreadState* __tstate = wxPyBeginAllowThreads();
19433 (arg1)->SetSelf(arg2);
19434
19435 wxPyEndAllowThreads(__tstate);
19436 if (PyErr_Occurred()) SWIG_fail;
19437 }
19438 Py_INCREF(Py_None); resultobj = Py_None;
19439 return resultobj;
19440 fail:
19441 return NULL;
19442}
19443
19444
19445static PyObject *_wrap_PyCommandEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) {
19446 PyObject *resultobj;
19447 wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ;
19448 PyObject *result;
19449 PyObject * obj0 = 0 ;
19450 char *kwnames[] = {
19451 (char *) "self", NULL
19452 };
19453
19454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCommandEvent_GetSelf",kwnames,&obj0)) goto fail;
19455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent,
19456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19457 {
19458 PyThreadState* __tstate = wxPyBeginAllowThreads();
19459 result = (PyObject *)(arg1)->GetSelf();
19460
19461 wxPyEndAllowThreads(__tstate);
19462 if (PyErr_Occurred()) SWIG_fail;
19463 }
19464 resultobj = result;
19465 return resultobj;
19466 fail:
19467 return NULL;
19468}
19469
19470
19471static PyObject * PyCommandEvent_swigregister(PyObject *self, PyObject *args) {
19472 PyObject *obj;
19473 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19474 SWIG_TypeClientData(SWIGTYPE_p_wxPyCommandEvent, obj);
19475 Py_INCREF(obj);
19476 return Py_BuildValue((char *)"");
19477}
19478static PyObject *_wrap_new_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) {
19479 PyObject *resultobj;
19480 wxPyApp *result;
19481 char *kwnames[] = {
19482 NULL
19483 };
19484
19485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyApp",kwnames)) goto fail;
19486 {
19487 PyThreadState* __tstate = wxPyBeginAllowThreads();
19488 result = (wxPyApp *)new_wxPyApp();
19489
19490 wxPyEndAllowThreads(__tstate);
19491 if (PyErr_Occurred()) SWIG_fail;
19492 }
19493 {
412d302d 19494 resultobj = wxPyMake_wxObject(result, 1);
d55e5bfc
RD
19495 }
19496 return resultobj;
19497 fail:
19498 return NULL;
19499}
19500
19501
19502static PyObject *_wrap_delete_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) {
19503 PyObject *resultobj;
19504 wxPyApp *arg1 = (wxPyApp *) 0 ;
19505 PyObject * obj0 = 0 ;
19506 char *kwnames[] = {
19507 (char *) "self", NULL
19508 };
19509
19510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyApp",kwnames,&obj0)) goto fail;
19511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19513 {
19514 PyThreadState* __tstate = wxPyBeginAllowThreads();
19515 delete arg1;
19516
19517 wxPyEndAllowThreads(__tstate);
19518 if (PyErr_Occurred()) SWIG_fail;
19519 }
19520 Py_INCREF(Py_None); resultobj = Py_None;
19521 return resultobj;
19522 fail:
19523 return NULL;
19524}
19525
19526
19527static PyObject *_wrap_PyApp__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
19528 PyObject *resultobj;
19529 wxPyApp *arg1 = (wxPyApp *) 0 ;
19530 PyObject *arg2 = (PyObject *) 0 ;
19531 PyObject *arg3 = (PyObject *) 0 ;
19532 PyObject * obj0 = 0 ;
19533 PyObject * obj1 = 0 ;
19534 PyObject * obj2 = 0 ;
19535 char *kwnames[] = {
19536 (char *) "self",(char *) "self",(char *) "_class", NULL
19537 };
19538
19539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
19540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19542 arg2 = obj1;
19543 arg3 = obj2;
19544 {
19545 PyThreadState* __tstate = wxPyBeginAllowThreads();
19546 (arg1)->_setCallbackInfo(arg2,arg3);
19547
19548 wxPyEndAllowThreads(__tstate);
19549 if (PyErr_Occurred()) SWIG_fail;
19550 }
19551 Py_INCREF(Py_None); resultobj = Py_None;
19552 return resultobj;
19553 fail:
19554 return NULL;
19555}
19556
19557
19558static PyObject *_wrap_PyApp_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
19559 PyObject *resultobj;
19560 wxPyApp *arg1 = (wxPyApp *) 0 ;
19561 wxString result;
19562 PyObject * obj0 = 0 ;
19563 char *kwnames[] = {
19564 (char *) "self", NULL
19565 };
19566
19567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAppName",kwnames,&obj0)) goto fail;
19568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19570 {
19571 PyThreadState* __tstate = wxPyBeginAllowThreads();
19572 result = ((wxPyApp const *)arg1)->GetAppName();
19573
19574 wxPyEndAllowThreads(__tstate);
19575 if (PyErr_Occurred()) SWIG_fail;
19576 }
19577 {
19578#if wxUSE_UNICODE
19579 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19580#else
19581 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19582#endif
19583 }
19584 return resultobj;
19585 fail:
19586 return NULL;
19587}
19588
19589
19590static PyObject *_wrap_PyApp_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
19591 PyObject *resultobj;
19592 wxPyApp *arg1 = (wxPyApp *) 0 ;
19593 wxString *arg2 = 0 ;
19594 bool temp2 = False ;
19595 PyObject * obj0 = 0 ;
19596 PyObject * obj1 = 0 ;
19597 char *kwnames[] = {
19598 (char *) "self",(char *) "name", NULL
19599 };
19600
19601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",kwnames,&obj0,&obj1)) goto fail;
19602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19604 {
19605 arg2 = wxString_in_helper(obj1);
19606 if (arg2 == NULL) SWIG_fail;
19607 temp2 = True;
19608 }
19609 {
19610 PyThreadState* __tstate = wxPyBeginAllowThreads();
19611 (arg1)->SetAppName((wxString const &)*arg2);
19612
19613 wxPyEndAllowThreads(__tstate);
19614 if (PyErr_Occurred()) SWIG_fail;
19615 }
19616 Py_INCREF(Py_None); resultobj = Py_None;
19617 {
19618 if (temp2)
19619 delete arg2;
19620 }
19621 return resultobj;
19622 fail:
19623 {
19624 if (temp2)
19625 delete arg2;
19626 }
19627 return NULL;
19628}
19629
19630
19631static PyObject *_wrap_PyApp_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) {
19632 PyObject *resultobj;
19633 wxPyApp *arg1 = (wxPyApp *) 0 ;
19634 wxString result;
19635 PyObject * obj0 = 0 ;
19636 char *kwnames[] = {
19637 (char *) "self", NULL
19638 };
19639
19640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetClassName",kwnames,&obj0)) goto fail;
19641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19643 {
19644 PyThreadState* __tstate = wxPyBeginAllowThreads();
19645 result = ((wxPyApp const *)arg1)->GetClassName();
19646
19647 wxPyEndAllowThreads(__tstate);
19648 if (PyErr_Occurred()) SWIG_fail;
19649 }
19650 {
19651#if wxUSE_UNICODE
19652 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19653#else
19654 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19655#endif
19656 }
19657 return resultobj;
19658 fail:
19659 return NULL;
19660}
19661
19662
19663static PyObject *_wrap_PyApp_SetClassName(PyObject *self, PyObject *args, PyObject *kwargs) {
19664 PyObject *resultobj;
19665 wxPyApp *arg1 = (wxPyApp *) 0 ;
19666 wxString *arg2 = 0 ;
19667 bool temp2 = False ;
19668 PyObject * obj0 = 0 ;
19669 PyObject * obj1 = 0 ;
19670 char *kwnames[] = {
19671 (char *) "self",(char *) "name", NULL
19672 };
19673
19674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) goto fail;
19675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19677 {
19678 arg2 = wxString_in_helper(obj1);
19679 if (arg2 == NULL) SWIG_fail;
19680 temp2 = True;
19681 }
19682 {
19683 PyThreadState* __tstate = wxPyBeginAllowThreads();
19684 (arg1)->SetClassName((wxString const &)*arg2);
19685
19686 wxPyEndAllowThreads(__tstate);
19687 if (PyErr_Occurred()) SWIG_fail;
19688 }
19689 Py_INCREF(Py_None); resultobj = Py_None;
19690 {
19691 if (temp2)
19692 delete arg2;
19693 }
19694 return resultobj;
19695 fail:
19696 {
19697 if (temp2)
19698 delete arg2;
19699 }
19700 return NULL;
19701}
19702
19703
19704static PyObject *_wrap_PyApp_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
19705 PyObject *resultobj;
19706 wxPyApp *arg1 = (wxPyApp *) 0 ;
19707 wxString *result;
19708 PyObject * obj0 = 0 ;
19709 char *kwnames[] = {
19710 (char *) "self", NULL
19711 };
19712
19713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetVendorName",kwnames,&obj0)) goto fail;
19714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19716 {
19717 PyThreadState* __tstate = wxPyBeginAllowThreads();
19718 {
19719 wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName();
19720 result = (wxString *) &_result_ref;
19721 }
19722
19723 wxPyEndAllowThreads(__tstate);
19724 if (PyErr_Occurred()) SWIG_fail;
19725 }
19726 {
19727#if wxUSE_UNICODE
19728 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
19729#else
19730 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
19731#endif
19732 }
19733 return resultobj;
19734 fail:
19735 return NULL;
19736}
19737
19738
19739static PyObject *_wrap_PyApp_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
19740 PyObject *resultobj;
19741 wxPyApp *arg1 = (wxPyApp *) 0 ;
19742 wxString *arg2 = 0 ;
19743 bool temp2 = False ;
19744 PyObject * obj0 = 0 ;
19745 PyObject * obj1 = 0 ;
19746 char *kwnames[] = {
19747 (char *) "self",(char *) "name", NULL
19748 };
19749
19750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) goto fail;
19751 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19752 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19753 {
19754 arg2 = wxString_in_helper(obj1);
19755 if (arg2 == NULL) SWIG_fail;
19756 temp2 = True;
19757 }
19758 {
19759 PyThreadState* __tstate = wxPyBeginAllowThreads();
19760 (arg1)->SetVendorName((wxString const &)*arg2);
19761
19762 wxPyEndAllowThreads(__tstate);
19763 if (PyErr_Occurred()) SWIG_fail;
19764 }
19765 Py_INCREF(Py_None); resultobj = Py_None;
19766 {
19767 if (temp2)
19768 delete arg2;
19769 }
19770 return resultobj;
19771 fail:
19772 {
19773 if (temp2)
19774 delete arg2;
19775 }
19776 return NULL;
19777}
19778
19779
19780static PyObject *_wrap_PyApp_GetTraits(PyObject *self, PyObject *args, PyObject *kwargs) {
19781 PyObject *resultobj;
19782 wxPyApp *arg1 = (wxPyApp *) 0 ;
19783 wxAppTraits *result;
19784 PyObject * obj0 = 0 ;
19785 char *kwnames[] = {
19786 (char *) "self", NULL
19787 };
19788
19789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTraits",kwnames,&obj0)) goto fail;
19790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19792 {
19793 PyThreadState* __tstate = wxPyBeginAllowThreads();
19794 result = (wxAppTraits *)(arg1)->GetTraits();
19795
19796 wxPyEndAllowThreads(__tstate);
19797 if (PyErr_Occurred()) SWIG_fail;
19798 }
19799 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAppTraits, 0);
19800 return resultobj;
19801 fail:
19802 return NULL;
19803}
19804
19805
19806static PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) {
19807 PyObject *resultobj;
19808 wxPyApp *arg1 = (wxPyApp *) 0 ;
19809 PyObject * obj0 = 0 ;
19810 char *kwnames[] = {
19811 (char *) "self", NULL
19812 };
19813
19814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessPendingEvents",kwnames,&obj0)) goto fail;
19815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19817 {
19818 PyThreadState* __tstate = wxPyBeginAllowThreads();
19819 (arg1)->ProcessPendingEvents();
19820
19821 wxPyEndAllowThreads(__tstate);
19822 if (PyErr_Occurred()) SWIG_fail;
19823 }
19824 Py_INCREF(Py_None); resultobj = Py_None;
19825 return resultobj;
19826 fail:
19827 return NULL;
19828}
19829
19830
19831static PyObject *_wrap_PyApp_Yield(PyObject *self, PyObject *args, PyObject *kwargs) {
19832 PyObject *resultobj;
19833 wxPyApp *arg1 = (wxPyApp *) 0 ;
19834 bool arg2 = (bool) False ;
19835 bool result;
19836 PyObject * obj0 = 0 ;
19837 PyObject * obj1 = 0 ;
19838 char *kwnames[] = {
19839 (char *) "self",(char *) "onlyIfNeeded", NULL
19840 };
19841
19842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) goto fail;
19843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19845 if (obj1) {
19846 arg2 = (bool) SWIG_AsBool(obj1);
19847 if (PyErr_Occurred()) SWIG_fail;
19848 }
19849 {
19850 PyThreadState* __tstate = wxPyBeginAllowThreads();
19851 result = (bool)(arg1)->Yield(arg2);
19852
19853 wxPyEndAllowThreads(__tstate);
19854 if (PyErr_Occurred()) SWIG_fail;
19855 }
19856 {
19857 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19858 }
19859 return resultobj;
19860 fail:
19861 return NULL;
19862}
19863
19864
19865static PyObject *_wrap_PyApp_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) {
19866 PyObject *resultobj;
19867 wxPyApp *arg1 = (wxPyApp *) 0 ;
19868 PyObject * obj0 = 0 ;
19869 char *kwnames[] = {
19870 (char *) "self", NULL
19871 };
19872
19873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_WakeUpIdle",kwnames,&obj0)) goto fail;
19874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19876 {
19877 PyThreadState* __tstate = wxPyBeginAllowThreads();
19878 (arg1)->WakeUpIdle();
19879
19880 wxPyEndAllowThreads(__tstate);
19881 if (PyErr_Occurred()) SWIG_fail;
19882 }
19883 Py_INCREF(Py_None); resultobj = Py_None;
19884 return resultobj;
19885 fail:
19886 return NULL;
19887}
19888
19889
19890static PyObject *_wrap_PyApp_MainLoop(PyObject *self, PyObject *args, PyObject *kwargs) {
19891 PyObject *resultobj;
19892 wxPyApp *arg1 = (wxPyApp *) 0 ;
19893 int result;
19894 PyObject * obj0 = 0 ;
19895 char *kwnames[] = {
19896 (char *) "self", NULL
19897 };
19898
19899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_MainLoop",kwnames,&obj0)) goto fail;
19900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19902 {
19903 PyThreadState* __tstate = wxPyBeginAllowThreads();
19904 result = (int)(arg1)->MainLoop();
19905
19906 wxPyEndAllowThreads(__tstate);
19907 if (PyErr_Occurred()) SWIG_fail;
19908 }
19909 resultobj = SWIG_FromInt((int)result);
19910 return resultobj;
19911 fail:
19912 return NULL;
19913}
19914
19915
19916static PyObject *_wrap_PyApp_Exit(PyObject *self, PyObject *args, PyObject *kwargs) {
19917 PyObject *resultobj;
19918 wxPyApp *arg1 = (wxPyApp *) 0 ;
19919 PyObject * obj0 = 0 ;
19920 char *kwnames[] = {
19921 (char *) "self", NULL
19922 };
19923
19924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Exit",kwnames,&obj0)) goto fail;
19925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19927 {
19928 PyThreadState* __tstate = wxPyBeginAllowThreads();
19929 (arg1)->Exit();
19930
19931 wxPyEndAllowThreads(__tstate);
19932 if (PyErr_Occurred()) SWIG_fail;
19933 }
19934 Py_INCREF(Py_None); resultobj = Py_None;
19935 return resultobj;
19936 fail:
19937 return NULL;
19938}
19939
19940
19941static PyObject *_wrap_PyApp_ExitMainLoop(PyObject *self, PyObject *args, PyObject *kwargs) {
19942 PyObject *resultobj;
19943 wxPyApp *arg1 = (wxPyApp *) 0 ;
19944 PyObject * obj0 = 0 ;
19945 char *kwnames[] = {
19946 (char *) "self", NULL
19947 };
19948
19949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ExitMainLoop",kwnames,&obj0)) goto fail;
19950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19952 {
19953 PyThreadState* __tstate = wxPyBeginAllowThreads();
19954 (arg1)->ExitMainLoop();
19955
19956 wxPyEndAllowThreads(__tstate);
19957 if (PyErr_Occurred()) SWIG_fail;
19958 }
19959 Py_INCREF(Py_None); resultobj = Py_None;
19960 return resultobj;
19961 fail:
19962 return NULL;
19963}
19964
19965
19966static PyObject *_wrap_PyApp_Pending(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_Pending",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)->Pending();
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_Dispatch(PyObject *self, PyObject *args, PyObject *kwargs) {
19995 PyObject *resultobj;
19996 wxPyApp *arg1 = (wxPyApp *) 0 ;
19997 bool result;
19998 PyObject * obj0 = 0 ;
19999 char *kwnames[] = {
20000 (char *) "self", NULL
20001 };
20002
20003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Dispatch",kwnames,&obj0)) goto fail;
20004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20006 {
20007 PyThreadState* __tstate = wxPyBeginAllowThreads();
20008 result = (bool)(arg1)->Dispatch();
20009
20010 wxPyEndAllowThreads(__tstate);
20011 if (PyErr_Occurred()) SWIG_fail;
20012 }
20013 {
20014 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20015 }
20016 return resultobj;
20017 fail:
20018 return NULL;
20019}
20020
20021
20022static PyObject *_wrap_PyApp_ProcessIdle(PyObject *self, PyObject *args, PyObject *kwargs) {
20023 PyObject *resultobj;
20024 wxPyApp *arg1 = (wxPyApp *) 0 ;
20025 bool result;
20026 PyObject * obj0 = 0 ;
20027 char *kwnames[] = {
20028 (char *) "self", NULL
20029 };
20030
20031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessIdle",kwnames,&obj0)) goto fail;
20032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20034 {
20035 PyThreadState* __tstate = wxPyBeginAllowThreads();
20036 result = (bool)(arg1)->ProcessIdle();
20037
20038 wxPyEndAllowThreads(__tstate);
20039 if (PyErr_Occurred()) SWIG_fail;
20040 }
20041 {
20042 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20043 }
20044 return resultobj;
20045 fail:
20046 return NULL;
20047}
20048
20049
20050static PyObject *_wrap_PyApp_SendIdleEvents(PyObject *self, PyObject *args, PyObject *kwargs) {
20051 PyObject *resultobj;
20052 wxPyApp *arg1 = (wxPyApp *) 0 ;
20053 wxWindow *arg2 = (wxWindow *) 0 ;
20054 wxIdleEvent *arg3 = 0 ;
20055 bool result;
20056 PyObject * obj0 = 0 ;
20057 PyObject * obj1 = 0 ;
20058 PyObject * obj2 = 0 ;
20059 char *kwnames[] = {
20060 (char *) "self",(char *) "win",(char *) "event", NULL
20061 };
20062
20063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) goto fail;
20064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20066 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
20067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20068 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIdleEvent,
20069 SWIG_POINTER_EXCEPTION | 0)) == -1)
20070 SWIG_fail;
20071 if (arg3 == NULL) {
20072 PyErr_SetString(PyExc_TypeError,"null reference");
20073 SWIG_fail;
20074 }
20075 {
20076 PyThreadState* __tstate = wxPyBeginAllowThreads();
20077 result = (bool)(arg1)->SendIdleEvents(arg2,*arg3);
20078
20079 wxPyEndAllowThreads(__tstate);
20080 if (PyErr_Occurred()) SWIG_fail;
20081 }
20082 {
20083 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20084 }
20085 return resultobj;
20086 fail:
20087 return NULL;
20088}
20089
20090
20091static PyObject *_wrap_PyApp_IsActive(PyObject *self, PyObject *args, PyObject *kwargs) {
20092 PyObject *resultobj;
20093 wxPyApp *arg1 = (wxPyApp *) 0 ;
20094 bool result;
20095 PyObject * obj0 = 0 ;
20096 char *kwnames[] = {
20097 (char *) "self", NULL
20098 };
20099
20100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_IsActive",kwnames,&obj0)) goto fail;
20101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20103 {
20104 PyThreadState* __tstate = wxPyBeginAllowThreads();
20105 result = (bool)((wxPyApp const *)arg1)->IsActive();
20106
20107 wxPyEndAllowThreads(__tstate);
20108 if (PyErr_Occurred()) SWIG_fail;
20109 }
20110 {
20111 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20112 }
20113 return resultobj;
20114 fail:
20115 return NULL;
20116}
20117
20118
20119static PyObject *_wrap_PyApp_SetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
20120 PyObject *resultobj;
20121 wxPyApp *arg1 = (wxPyApp *) 0 ;
20122 wxWindow *arg2 = (wxWindow *) 0 ;
20123 PyObject * obj0 = 0 ;
20124 PyObject * obj1 = 0 ;
20125 char *kwnames[] = {
20126 (char *) "self",(char *) "win", NULL
20127 };
20128
20129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) goto fail;
20130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20132 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
20133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20134 {
20135 PyThreadState* __tstate = wxPyBeginAllowThreads();
20136 (arg1)->SetTopWindow(arg2);
20137
20138 wxPyEndAllowThreads(__tstate);
20139 if (PyErr_Occurred()) SWIG_fail;
20140 }
20141 Py_INCREF(Py_None); resultobj = Py_None;
20142 return resultobj;
20143 fail:
20144 return NULL;
20145}
20146
20147
20148static PyObject *_wrap_PyApp_GetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
20149 PyObject *resultobj;
20150 wxPyApp *arg1 = (wxPyApp *) 0 ;
20151 wxWindow *result;
20152 PyObject * obj0 = 0 ;
20153 char *kwnames[] = {
20154 (char *) "self", NULL
20155 };
20156
20157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTopWindow",kwnames,&obj0)) goto fail;
20158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20160 {
20161 PyThreadState* __tstate = wxPyBeginAllowThreads();
20162 result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow();
20163
20164 wxPyEndAllowThreads(__tstate);
20165 if (PyErr_Occurred()) SWIG_fail;
20166 }
20167 {
412d302d 20168 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
20169 }
20170 return resultobj;
20171 fail:
20172 return NULL;
20173}
20174
20175
20176static PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) {
20177 PyObject *resultobj;
20178 wxPyApp *arg1 = (wxPyApp *) 0 ;
20179 bool arg2 ;
20180 PyObject * obj0 = 0 ;
20181 PyObject * obj1 = 0 ;
20182 char *kwnames[] = {
20183 (char *) "self",(char *) "flag", NULL
20184 };
20185
20186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) goto fail;
20187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20189 arg2 = (bool) SWIG_AsBool(obj1);
20190 if (PyErr_Occurred()) SWIG_fail;
20191 {
20192 PyThreadState* __tstate = wxPyBeginAllowThreads();
20193 (arg1)->SetExitOnFrameDelete(arg2);
20194
20195 wxPyEndAllowThreads(__tstate);
20196 if (PyErr_Occurred()) SWIG_fail;
20197 }
20198 Py_INCREF(Py_None); resultobj = Py_None;
20199 return resultobj;
20200 fail:
20201 return NULL;
20202}
20203
20204
20205static PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) {
20206 PyObject *resultobj;
20207 wxPyApp *arg1 = (wxPyApp *) 0 ;
20208 bool result;
20209 PyObject * obj0 = 0 ;
20210 char *kwnames[] = {
20211 (char *) "self", NULL
20212 };
20213
20214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetExitOnFrameDelete",kwnames,&obj0)) goto fail;
20215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20217 {
20218 PyThreadState* __tstate = wxPyBeginAllowThreads();
20219 result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete();
20220
20221 wxPyEndAllowThreads(__tstate);
20222 if (PyErr_Occurred()) SWIG_fail;
20223 }
20224 {
20225 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20226 }
20227 return resultobj;
20228 fail:
20229 return NULL;
20230}
20231
20232
20233static PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) {
20234 PyObject *resultobj;
20235 wxPyApp *arg1 = (wxPyApp *) 0 ;
20236 bool arg2 ;
20237 PyObject * obj0 = 0 ;
20238 PyObject * obj1 = 0 ;
20239 char *kwnames[] = {
20240 (char *) "self",(char *) "flag", NULL
20241 };
20242
20243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) goto fail;
20244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20246 arg2 = (bool) SWIG_AsBool(obj1);
20247 if (PyErr_Occurred()) SWIG_fail;
20248 {
20249 PyThreadState* __tstate = wxPyBeginAllowThreads();
20250 (arg1)->SetUseBestVisual(arg2);
20251
20252 wxPyEndAllowThreads(__tstate);
20253 if (PyErr_Occurred()) SWIG_fail;
20254 }
20255 Py_INCREF(Py_None); resultobj = Py_None;
20256 return resultobj;
20257 fail:
20258 return NULL;
20259}
20260
20261
20262static PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) {
20263 PyObject *resultobj;
20264 wxPyApp *arg1 = (wxPyApp *) 0 ;
20265 bool result;
20266 PyObject * obj0 = 0 ;
20267 char *kwnames[] = {
20268 (char *) "self", NULL
20269 };
20270
20271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetUseBestVisual",kwnames,&obj0)) goto fail;
20272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20274 {
20275 PyThreadState* __tstate = wxPyBeginAllowThreads();
20276 result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual();
20277
20278 wxPyEndAllowThreads(__tstate);
20279 if (PyErr_Occurred()) SWIG_fail;
20280 }
20281 {
20282 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20283 }
20284 return resultobj;
20285 fail:
20286 return NULL;
20287}
20288
20289
20290static PyObject *_wrap_PyApp_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) {
20291 PyObject *resultobj;
20292 wxPyApp *arg1 = (wxPyApp *) 0 ;
20293 int arg2 ;
20294 PyObject * obj0 = 0 ;
20295 PyObject * obj1 = 0 ;
20296 char *kwnames[] = {
20297 (char *) "self",(char *) "mode", NULL
20298 };
20299
20300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetPrintMode",kwnames,&obj0,&obj1)) goto fail;
20301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20303 arg2 = (int) SWIG_AsInt(obj1);
20304 if (PyErr_Occurred()) SWIG_fail;
20305 {
20306 PyThreadState* __tstate = wxPyBeginAllowThreads();
20307 (arg1)->SetPrintMode(arg2);
20308
20309 wxPyEndAllowThreads(__tstate);
20310 if (PyErr_Occurred()) SWIG_fail;
20311 }
20312 Py_INCREF(Py_None); resultobj = Py_None;
20313 return resultobj;
20314 fail:
20315 return NULL;
20316}
20317
20318
20319static PyObject *_wrap_PyApp_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) {
20320 PyObject *resultobj;
20321 wxPyApp *arg1 = (wxPyApp *) 0 ;
20322 int result;
20323 PyObject * obj0 = 0 ;
20324 char *kwnames[] = {
20325 (char *) "self", NULL
20326 };
20327
20328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetPrintMode",kwnames,&obj0)) goto fail;
20329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20331 {
20332 PyThreadState* __tstate = wxPyBeginAllowThreads();
20333 result = (int)((wxPyApp const *)arg1)->GetPrintMode();
20334
20335 wxPyEndAllowThreads(__tstate);
20336 if (PyErr_Occurred()) SWIG_fail;
20337 }
20338 resultobj = SWIG_FromInt((int)result);
20339 return resultobj;
20340 fail:
20341 return NULL;
20342}
20343
20344
20345static PyObject *_wrap_PyApp_SetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) {
20346 PyObject *resultobj;
20347 wxPyApp *arg1 = (wxPyApp *) 0 ;
20348 int arg2 ;
20349 PyObject * obj0 = 0 ;
20350 PyObject * obj1 = 0 ;
20351 char *kwnames[] = {
20352 (char *) "self",(char *) "mode", NULL
20353 };
20354
20355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAssertMode",kwnames,&obj0,&obj1)) goto fail;
20356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20358 arg2 = (int) SWIG_AsInt(obj1);
20359 if (PyErr_Occurred()) SWIG_fail;
20360 {
20361 PyThreadState* __tstate = wxPyBeginAllowThreads();
20362 (arg1)->SetAssertMode(arg2);
20363
20364 wxPyEndAllowThreads(__tstate);
20365 if (PyErr_Occurred()) SWIG_fail;
20366 }
20367 Py_INCREF(Py_None); resultobj = Py_None;
20368 return resultobj;
20369 fail:
20370 return NULL;
20371}
20372
20373
20374static PyObject *_wrap_PyApp_GetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) {
20375 PyObject *resultobj;
20376 wxPyApp *arg1 = (wxPyApp *) 0 ;
20377 int result;
20378 PyObject * obj0 = 0 ;
20379 char *kwnames[] = {
20380 (char *) "self", NULL
20381 };
20382
20383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAssertMode",kwnames,&obj0)) goto fail;
20384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20386 {
20387 PyThreadState* __tstate = wxPyBeginAllowThreads();
20388 result = (int)(arg1)->GetAssertMode();
20389
20390 wxPyEndAllowThreads(__tstate);
20391 if (PyErr_Occurred()) SWIG_fail;
20392 }
20393 resultobj = SWIG_FromInt((int)result);
20394 return resultobj;
20395 fail:
20396 return NULL;
20397}
20398
20399
20400static PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) {
20401 PyObject *resultobj;
20402 bool result;
20403 char *kwnames[] = {
20404 NULL
20405 };
20406
20407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacSupportPCMenuShortcuts",kwnames)) goto fail;
20408 {
20409 PyThreadState* __tstate = wxPyBeginAllowThreads();
20410 result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts();
20411
20412 wxPyEndAllowThreads(__tstate);
20413 if (PyErr_Occurred()) SWIG_fail;
20414 }
20415 {
20416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20417 }
20418 return resultobj;
20419 fail:
20420 return NULL;
20421}
20422
20423
20424static PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
20425 PyObject *resultobj;
20426 long result;
20427 char *kwnames[] = {
20428 NULL
20429 };
20430
20431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacAboutMenuItemId",kwnames)) goto fail;
20432 {
20433 PyThreadState* __tstate = wxPyBeginAllowThreads();
20434 result = (long)wxPyApp::GetMacAboutMenuItemId();
20435
20436 wxPyEndAllowThreads(__tstate);
20437 if (PyErr_Occurred()) SWIG_fail;
20438 }
20439 resultobj = SWIG_FromLong((long)result);
20440 return resultobj;
20441 fail:
20442 return NULL;
20443}
20444
20445
20446static PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
20447 PyObject *resultobj;
20448 long result;
20449 char *kwnames[] = {
20450 NULL
20451 };
20452
20453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacPreferencesMenuItemId",kwnames)) goto fail;
20454 {
20455 PyThreadState* __tstate = wxPyBeginAllowThreads();
20456 result = (long)wxPyApp::GetMacPreferencesMenuItemId();
20457
20458 wxPyEndAllowThreads(__tstate);
20459 if (PyErr_Occurred()) SWIG_fail;
20460 }
20461 resultobj = SWIG_FromLong((long)result);
20462 return resultobj;
20463 fail:
20464 return NULL;
20465}
20466
20467
20468static PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
20469 PyObject *resultobj;
20470 long result;
20471 char *kwnames[] = {
20472 NULL
20473 };
20474
20475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacExitMenuItemId",kwnames)) goto fail;
20476 {
20477 PyThreadState* __tstate = wxPyBeginAllowThreads();
20478 result = (long)wxPyApp::GetMacExitMenuItemId();
20479
20480 wxPyEndAllowThreads(__tstate);
20481 if (PyErr_Occurred()) SWIG_fail;
20482 }
20483 resultobj = SWIG_FromLong((long)result);
20484 return resultobj;
20485 fail:
20486 return NULL;
20487}
20488
20489
20490static PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) {
20491 PyObject *resultobj;
20492 wxString result;
20493 char *kwnames[] = {
20494 NULL
20495 };
20496
20497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacHelpMenuTitleName",kwnames)) goto fail;
20498 {
20499 PyThreadState* __tstate = wxPyBeginAllowThreads();
20500 result = wxPyApp::GetMacHelpMenuTitleName();
20501
20502 wxPyEndAllowThreads(__tstate);
20503 if (PyErr_Occurred()) SWIG_fail;
20504 }
20505 {
20506#if wxUSE_UNICODE
20507 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20508#else
20509 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20510#endif
20511 }
20512 return resultobj;
20513 fail:
20514 return NULL;
20515}
20516
20517
20518static PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) {
20519 PyObject *resultobj;
20520 bool arg1 ;
20521 PyObject * obj0 = 0 ;
20522 char *kwnames[] = {
20523 (char *) "val", NULL
20524 };
20525
20526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) goto fail;
20527 arg1 = (bool) SWIG_AsBool(obj0);
20528 if (PyErr_Occurred()) SWIG_fail;
20529 {
20530 PyThreadState* __tstate = wxPyBeginAllowThreads();
20531 wxPyApp::SetMacSupportPCMenuShortcuts(arg1);
20532
20533 wxPyEndAllowThreads(__tstate);
20534 if (PyErr_Occurred()) SWIG_fail;
20535 }
20536 Py_INCREF(Py_None); resultobj = Py_None;
20537 return resultobj;
20538 fail:
20539 return NULL;
20540}
20541
20542
20543static PyObject *_wrap_PyApp_SetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
20544 PyObject *resultobj;
20545 long arg1 ;
20546 PyObject * obj0 = 0 ;
20547 char *kwnames[] = {
20548 (char *) "val", NULL
20549 };
20550
20551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacAboutMenuItemId",kwnames,&obj0)) goto fail;
20552 arg1 = (long) SWIG_AsLong(obj0);
20553 if (PyErr_Occurred()) SWIG_fail;
20554 {
20555 PyThreadState* __tstate = wxPyBeginAllowThreads();
20556 wxPyApp::SetMacAboutMenuItemId(arg1);
20557
20558 wxPyEndAllowThreads(__tstate);
20559 if (PyErr_Occurred()) SWIG_fail;
20560 }
20561 Py_INCREF(Py_None); resultobj = Py_None;
20562 return resultobj;
20563 fail:
20564 return NULL;
20565}
20566
20567
20568static PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
20569 PyObject *resultobj;
20570 long arg1 ;
20571 PyObject * obj0 = 0 ;
20572 char *kwnames[] = {
20573 (char *) "val", NULL
20574 };
20575
20576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacPreferencesMenuItemId",kwnames,&obj0)) goto fail;
20577 arg1 = (long) SWIG_AsLong(obj0);
20578 if (PyErr_Occurred()) SWIG_fail;
20579 {
20580 PyThreadState* __tstate = wxPyBeginAllowThreads();
20581 wxPyApp::SetMacPreferencesMenuItemId(arg1);
20582
20583 wxPyEndAllowThreads(__tstate);
20584 if (PyErr_Occurred()) SWIG_fail;
20585 }
20586 Py_INCREF(Py_None); resultobj = Py_None;
20587 return resultobj;
20588 fail:
20589 return NULL;
20590}
20591
20592
20593static PyObject *_wrap_PyApp_SetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
20594 PyObject *resultobj;
20595 long arg1 ;
20596 PyObject * obj0 = 0 ;
20597 char *kwnames[] = {
20598 (char *) "val", NULL
20599 };
20600
20601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacExitMenuItemId",kwnames,&obj0)) goto fail;
20602 arg1 = (long) SWIG_AsLong(obj0);
20603 if (PyErr_Occurred()) SWIG_fail;
20604 {
20605 PyThreadState* __tstate = wxPyBeginAllowThreads();
20606 wxPyApp::SetMacExitMenuItemId(arg1);
20607
20608 wxPyEndAllowThreads(__tstate);
20609 if (PyErr_Occurred()) SWIG_fail;
20610 }
20611 Py_INCREF(Py_None); resultobj = Py_None;
20612 return resultobj;
20613 fail:
20614 return NULL;
20615}
20616
20617
20618static PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) {
20619 PyObject *resultobj;
20620 wxString *arg1 = 0 ;
20621 bool temp1 = False ;
20622 PyObject * obj0 = 0 ;
20623 char *kwnames[] = {
20624 (char *) "val", NULL
20625 };
20626
20627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) goto fail;
20628 {
20629 arg1 = wxString_in_helper(obj0);
20630 if (arg1 == NULL) SWIG_fail;
20631 temp1 = True;
20632 }
20633 {
20634 PyThreadState* __tstate = wxPyBeginAllowThreads();
20635 wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1);
20636
20637 wxPyEndAllowThreads(__tstate);
20638 if (PyErr_Occurred()) SWIG_fail;
20639 }
20640 Py_INCREF(Py_None); resultobj = Py_None;
20641 {
20642 if (temp1)
20643 delete arg1;
20644 }
20645 return resultobj;
20646 fail:
20647 {
20648 if (temp1)
20649 delete arg1;
20650 }
20651 return NULL;
20652}
20653
20654
20655static PyObject *_wrap_PyApp__BootstrapApp(PyObject *self, PyObject *args, PyObject *kwargs) {
20656 PyObject *resultobj;
20657 wxPyApp *arg1 = (wxPyApp *) 0 ;
20658 PyObject * obj0 = 0 ;
20659 char *kwnames[] = {
20660 (char *) "self", NULL
20661 };
20662
20663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp__BootstrapApp",kwnames,&obj0)) goto fail;
20664 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20665 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20666 {
20667 PyThreadState* __tstate = wxPyBeginAllowThreads();
20668 (arg1)->_BootstrapApp();
20669
20670 wxPyEndAllowThreads(__tstate);
20671 if (PyErr_Occurred()) SWIG_fail;
20672 }
20673 Py_INCREF(Py_None); resultobj = Py_None;
20674 return resultobj;
20675 fail:
20676 return NULL;
20677}
20678
20679
20680static PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *self, PyObject *args, PyObject *kwargs) {
20681 PyObject *resultobj;
20682 int result;
20683 char *kwnames[] = {
20684 NULL
20685 };
20686
20687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetComCtl32Version",kwnames)) goto fail;
20688 {
20689 PyThreadState* __tstate = wxPyBeginAllowThreads();
20690 result = (int)wxPyApp::GetComCtl32Version();
20691
20692 wxPyEndAllowThreads(__tstate);
20693 if (PyErr_Occurred()) SWIG_fail;
20694 }
20695 resultobj = SWIG_FromInt((int)result);
20696 return resultobj;
20697 fail:
20698 return NULL;
20699}
20700
20701
20702static PyObject * PyApp_swigregister(PyObject *self, PyObject *args) {
20703 PyObject *obj;
20704 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20705 SWIG_TypeClientData(SWIGTYPE_p_wxPyApp, obj);
20706 Py_INCREF(obj);
20707 return Py_BuildValue((char *)"");
20708}
20709static PyObject *_wrap_Exit(PyObject *self, PyObject *args, PyObject *kwargs) {
20710 PyObject *resultobj;
20711 char *kwnames[] = {
20712 NULL
20713 };
20714
20715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Exit",kwnames)) goto fail;
20716 {
20717 PyThreadState* __tstate = wxPyBeginAllowThreads();
20718 wxExit();
20719
20720 wxPyEndAllowThreads(__tstate);
20721 if (PyErr_Occurred()) SWIG_fail;
20722 }
20723 Py_INCREF(Py_None); resultobj = Py_None;
20724 return resultobj;
20725 fail:
20726 return NULL;
20727}
20728
20729
20730static PyObject *_wrap_Yield(PyObject *self, PyObject *args, PyObject *kwargs) {
20731 PyObject *resultobj;
20732 bool result;
20733 char *kwnames[] = {
20734 NULL
20735 };
20736
20737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Yield",kwnames)) goto fail;
20738 {
20739 PyThreadState* __tstate = wxPyBeginAllowThreads();
20740 result = (bool)wxYield();
20741
20742 wxPyEndAllowThreads(__tstate);
20743 if (PyErr_Occurred()) SWIG_fail;
20744 }
20745 {
20746 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20747 }
20748 return resultobj;
20749 fail:
20750 return NULL;
20751}
20752
20753
20754static PyObject *_wrap_YieldIfNeeded(PyObject *self, PyObject *args, PyObject *kwargs) {
20755 PyObject *resultobj;
20756 bool result;
20757 char *kwnames[] = {
20758 NULL
20759 };
20760
20761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":YieldIfNeeded",kwnames)) goto fail;
20762 {
20763 PyThreadState* __tstate = wxPyBeginAllowThreads();
20764 result = (bool)wxYieldIfNeeded();
20765
20766 wxPyEndAllowThreads(__tstate);
20767 if (PyErr_Occurred()) SWIG_fail;
20768 }
20769 {
20770 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20771 }
20772 return resultobj;
20773 fail:
20774 return NULL;
20775}
20776
20777
20778static PyObject *_wrap_SafeYield(PyObject *self, PyObject *args, PyObject *kwargs) {
20779 PyObject *resultobj;
20780 wxWindow *arg1 = (wxWindow *) NULL ;
20781 bool arg2 = (bool) False ;
20782 bool result;
20783 PyObject * obj0 = 0 ;
20784 PyObject * obj1 = 0 ;
20785 char *kwnames[] = {
20786 (char *) "win",(char *) "onlyIfNeeded", NULL
20787 };
20788
20789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) goto fail;
20790 if (obj0) {
20791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
20792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20793 }
20794 if (obj1) {
20795 arg2 = (bool) SWIG_AsBool(obj1);
20796 if (PyErr_Occurred()) SWIG_fail;
20797 }
20798 {
20799 PyThreadState* __tstate = wxPyBeginAllowThreads();
20800 result = (bool)wxSafeYield(arg1,arg2);
20801
20802 wxPyEndAllowThreads(__tstate);
20803 if (PyErr_Occurred()) SWIG_fail;
20804 }
20805 {
20806 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20807 }
20808 return resultobj;
20809 fail:
20810 return NULL;
20811}
20812
20813
20814static PyObject *_wrap_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) {
20815 PyObject *resultobj;
20816 char *kwnames[] = {
20817 NULL
20818 };
20819
20820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpIdle",kwnames)) goto fail;
20821 {
20822 PyThreadState* __tstate = wxPyBeginAllowThreads();
20823 wxWakeUpIdle();
20824
20825 wxPyEndAllowThreads(__tstate);
20826 if (PyErr_Occurred()) SWIG_fail;
20827 }
20828 Py_INCREF(Py_None); resultobj = Py_None;
20829 return resultobj;
20830 fail:
20831 return NULL;
20832}
20833
20834
20835static PyObject *_wrap_PostEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
20836 PyObject *resultobj;
20837 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
20838 wxEvent *arg2 = 0 ;
20839 PyObject * obj0 = 0 ;
20840 PyObject * obj1 = 0 ;
20841 char *kwnames[] = {
20842 (char *) "dest",(char *) "event", NULL
20843 };
20844
20845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) goto fail;
20846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
20847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20848 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent,
20849 SWIG_POINTER_EXCEPTION | 0)) == -1)
20850 SWIG_fail;
20851 if (arg2 == NULL) {
20852 PyErr_SetString(PyExc_TypeError,"null reference");
20853 SWIG_fail;
20854 }
20855 {
20856 PyThreadState* __tstate = wxPyBeginAllowThreads();
20857 wxPostEvent(arg1,*arg2);
20858
20859 wxPyEndAllowThreads(__tstate);
20860 if (PyErr_Occurred()) SWIG_fail;
20861 }
20862 Py_INCREF(Py_None); resultobj = Py_None;
20863 return resultobj;
20864 fail:
20865 return NULL;
20866}
20867
20868
20869static PyObject *_wrap_App_CleanUp(PyObject *self, PyObject *args, PyObject *kwargs) {
20870 PyObject *resultobj;
20871 char *kwnames[] = {
20872 NULL
20873 };
20874
20875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":App_CleanUp",kwnames)) goto fail;
20876 {
20877 PyThreadState* __tstate = wxPyBeginAllowThreads();
20878 wxApp_CleanUp();
20879
20880 wxPyEndAllowThreads(__tstate);
20881 if (PyErr_Occurred()) SWIG_fail;
20882 }
20883 Py_INCREF(Py_None); resultobj = Py_None;
20884 return resultobj;
20885 fail:
20886 return NULL;
20887}
20888
20889
20890static PyObject *_wrap_GetApp(PyObject *self, PyObject *args, PyObject *kwargs) {
20891 PyObject *resultobj;
20892 wxPyApp *result;
20893 char *kwnames[] = {
20894 NULL
20895 };
20896
20897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetApp",kwnames)) goto fail;
20898 {
20899 PyThreadState* __tstate = wxPyBeginAllowThreads();
caef1a4d 20900 result = (wxPyApp *)wxPyGetApp();
d55e5bfc
RD
20901
20902 wxPyEndAllowThreads(__tstate);
20903 if (PyErr_Occurred()) SWIG_fail;
20904 }
20905 {
412d302d 20906 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
20907 }
20908 return resultobj;
20909 fail:
20910 return NULL;
20911}
20912
20913
20914static PyObject *_wrap_new_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
20915 PyObject *resultobj;
20916 int arg1 = (int) 0 ;
20917 int arg2 = (int) 0 ;
20918 int arg3 = (int) 0 ;
d55e5bfc
RD
20919 wxAcceleratorEntry *result;
20920 PyObject * obj0 = 0 ;
20921 PyObject * obj1 = 0 ;
20922 PyObject * obj2 = 0 ;
d55e5bfc 20923 char *kwnames[] = {
c24da6d6 20924 (char *) "flags",(char *) "keyCode",(char *) "cmdID", NULL
d55e5bfc
RD
20925 };
20926
c24da6d6 20927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_AcceleratorEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
20928 if (obj0) {
20929 arg1 = (int) SWIG_AsInt(obj0);
20930 if (PyErr_Occurred()) SWIG_fail;
20931 }
20932 if (obj1) {
20933 arg2 = (int) SWIG_AsInt(obj1);
20934 if (PyErr_Occurred()) SWIG_fail;
20935 }
20936 if (obj2) {
20937 arg3 = (int) SWIG_AsInt(obj2);
20938 if (PyErr_Occurred()) SWIG_fail;
20939 }
d55e5bfc
RD
20940 {
20941 PyThreadState* __tstate = wxPyBeginAllowThreads();
c24da6d6 20942 result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3);
d55e5bfc
RD
20943
20944 wxPyEndAllowThreads(__tstate);
20945 if (PyErr_Occurred()) SWIG_fail;
20946 }
20947 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 1);
20948 return resultobj;
20949 fail:
20950 return NULL;
20951}
20952
20953
20954static PyObject *_wrap_delete_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
20955 PyObject *resultobj;
20956 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
20957 PyObject * obj0 = 0 ;
20958 char *kwnames[] = {
20959 (char *) "self", NULL
20960 };
20961
20962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorEntry",kwnames,&obj0)) goto fail;
20963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry,
20964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20965 {
20966 PyThreadState* __tstate = wxPyBeginAllowThreads();
20967 delete arg1;
20968
20969 wxPyEndAllowThreads(__tstate);
20970 if (PyErr_Occurred()) SWIG_fail;
20971 }
20972 Py_INCREF(Py_None); resultobj = Py_None;
20973 return resultobj;
20974 fail:
20975 return NULL;
20976}
20977
20978
20979static PyObject *_wrap_AcceleratorEntry_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
20980 PyObject *resultobj;
20981 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
20982 int arg2 ;
20983 int arg3 ;
20984 int arg4 ;
d55e5bfc
RD
20985 PyObject * obj0 = 0 ;
20986 PyObject * obj1 = 0 ;
20987 PyObject * obj2 = 0 ;
20988 PyObject * obj3 = 0 ;
d55e5bfc 20989 char *kwnames[] = {
c24da6d6 20990 (char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd", NULL
d55e5bfc
RD
20991 };
20992
c24da6d6 20993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AcceleratorEntry_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
20994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry,
20995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20996 arg2 = (int) SWIG_AsInt(obj1);
20997 if (PyErr_Occurred()) SWIG_fail;
20998 arg3 = (int) SWIG_AsInt(obj2);
20999 if (PyErr_Occurred()) SWIG_fail;
21000 arg4 = (int) SWIG_AsInt(obj3);
21001 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
21002 {
21003 PyThreadState* __tstate = wxPyBeginAllowThreads();
c24da6d6 21004 (arg1)->Set(arg2,arg3,arg4);
d55e5bfc
RD
21005
21006 wxPyEndAllowThreads(__tstate);
21007 if (PyErr_Occurred()) SWIG_fail;
21008 }
21009 Py_INCREF(Py_None); resultobj = Py_None;
21010 return resultobj;
21011 fail:
21012 return NULL;
21013}
21014
21015
d55e5bfc
RD
21016static PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
21017 PyObject *resultobj;
21018 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
21019 int result;
21020 PyObject * obj0 = 0 ;
21021 char *kwnames[] = {
21022 (char *) "self", NULL
21023 };
21024
21025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetFlags",kwnames,&obj0)) goto fail;
21026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry,
21027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21028 {
21029 PyThreadState* __tstate = wxPyBeginAllowThreads();
21030 result = (int)(arg1)->GetFlags();
21031
21032 wxPyEndAllowThreads(__tstate);
21033 if (PyErr_Occurred()) SWIG_fail;
21034 }
21035 resultobj = SWIG_FromInt((int)result);
21036 return resultobj;
21037 fail:
21038 return NULL;
21039}
21040
21041
21042static PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
21043 PyObject *resultobj;
21044 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
21045 int result;
21046 PyObject * obj0 = 0 ;
21047 char *kwnames[] = {
21048 (char *) "self", NULL
21049 };
21050
21051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetKeyCode",kwnames,&obj0)) goto fail;
21052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry,
21053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21054 {
21055 PyThreadState* __tstate = wxPyBeginAllowThreads();
21056 result = (int)(arg1)->GetKeyCode();
21057
21058 wxPyEndAllowThreads(__tstate);
21059 if (PyErr_Occurred()) SWIG_fail;
21060 }
21061 resultobj = SWIG_FromInt((int)result);
21062 return resultobj;
21063 fail:
21064 return NULL;
21065}
21066
21067
21068static PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
21069 PyObject *resultobj;
21070 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
21071 int result;
21072 PyObject * obj0 = 0 ;
21073 char *kwnames[] = {
21074 (char *) "self", NULL
21075 };
21076
21077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetCommand",kwnames,&obj0)) goto fail;
21078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry,
21079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21080 {
21081 PyThreadState* __tstate = wxPyBeginAllowThreads();
21082 result = (int)(arg1)->GetCommand();
21083
21084 wxPyEndAllowThreads(__tstate);
21085 if (PyErr_Occurred()) SWIG_fail;
21086 }
21087 resultobj = SWIG_FromInt((int)result);
21088 return resultobj;
21089 fail:
21090 return NULL;
21091}
21092
21093
21094static PyObject * AcceleratorEntry_swigregister(PyObject *self, PyObject *args) {
21095 PyObject *obj;
21096 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21097 SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorEntry, obj);
21098 Py_INCREF(obj);
21099 return Py_BuildValue((char *)"");
21100}
21101static PyObject *_wrap_new_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
21102 PyObject *resultobj;
21103 int arg1 ;
21104 wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ;
21105 wxAcceleratorTable *result;
21106 PyObject * obj0 = 0 ;
21107 char *kwnames[] = {
21108 (char *) "n", NULL
21109 };
21110
21111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) goto fail;
21112 {
21113 arg2 = wxAcceleratorEntry_LIST_helper(obj0);
21114 if (arg2) arg1 = PyList_Size(obj0);
21115 else arg1 = 0;
21116 }
21117 {
21118 PyThreadState* __tstate = wxPyBeginAllowThreads();
21119 result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2);
21120
21121 wxPyEndAllowThreads(__tstate);
21122 if (PyErr_Occurred()) SWIG_fail;
21123 }
21124 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 1);
21125 {
21126 delete [] arg2;
21127 }
21128 return resultobj;
21129 fail:
21130 {
21131 delete [] arg2;
21132 }
21133 return NULL;
21134}
21135
21136
21137static PyObject *_wrap_delete_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
21138 PyObject *resultobj;
21139 wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ;
21140 PyObject * obj0 = 0 ;
21141 char *kwnames[] = {
21142 (char *) "self", NULL
21143 };
21144
21145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorTable",kwnames,&obj0)) goto fail;
21146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable,
21147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21148 {
21149 PyThreadState* __tstate = wxPyBeginAllowThreads();
21150 delete arg1;
21151
21152 wxPyEndAllowThreads(__tstate);
21153 if (PyErr_Occurred()) SWIG_fail;
21154 }
21155 Py_INCREF(Py_None); resultobj = Py_None;
21156 return resultobj;
21157 fail:
21158 return NULL;
21159}
21160
21161
21162static PyObject *_wrap_AcceleratorTable_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
21163 PyObject *resultobj;
21164 wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ;
21165 bool result;
21166 PyObject * obj0 = 0 ;
21167 char *kwnames[] = {
21168 (char *) "self", NULL
21169 };
21170
21171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorTable_Ok",kwnames,&obj0)) goto fail;
21172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable,
21173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21174 {
21175 PyThreadState* __tstate = wxPyBeginAllowThreads();
21176 result = (bool)((wxAcceleratorTable const *)arg1)->Ok();
21177
21178 wxPyEndAllowThreads(__tstate);
21179 if (PyErr_Occurred()) SWIG_fail;
21180 }
21181 {
21182 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21183 }
21184 return resultobj;
21185 fail:
21186 return NULL;
21187}
21188
21189
21190static PyObject * AcceleratorTable_swigregister(PyObject *self, PyObject *args) {
21191 PyObject *obj;
21192 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21193 SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorTable, obj);
21194 Py_INCREF(obj);
21195 return Py_BuildValue((char *)"");
21196}
21197static int _wrap_NullAcceleratorTable_set(PyObject *_val) {
21198 PyErr_SetString(PyExc_TypeError,"Variable NullAcceleratorTable is read-only.");
21199 return 1;
21200}
21201
21202
21203static PyObject *_wrap_NullAcceleratorTable_get() {
21204 PyObject *pyobj;
21205
21206 pyobj = SWIG_NewPointerObj((void *)(&wxNullAcceleratorTable), SWIGTYPE_p_wxAcceleratorTable, 0);
21207 return pyobj;
21208}
21209
21210
21211static PyObject *_wrap_GetAccelFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
21212 PyObject *resultobj;
21213 wxString *arg1 = 0 ;
21214 wxAcceleratorEntry *result;
21215 bool temp1 = False ;
21216 PyObject * obj0 = 0 ;
21217 char *kwnames[] = {
21218 (char *) "label", NULL
21219 };
21220
21221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) goto fail;
21222 {
21223 arg1 = wxString_in_helper(obj0);
21224 if (arg1 == NULL) SWIG_fail;
21225 temp1 = True;
21226 }
21227 {
21228 PyThreadState* __tstate = wxPyBeginAllowThreads();
21229 result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1);
21230
21231 wxPyEndAllowThreads(__tstate);
21232 if (PyErr_Occurred()) SWIG_fail;
21233 }
21234 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0);
21235 {
21236 if (temp1)
21237 delete arg1;
21238 }
21239 return resultobj;
21240 fail:
21241 {
21242 if (temp1)
21243 delete arg1;
21244 }
21245 return NULL;
21246}
21247
21248
21249static int _wrap_PanelNameStr_set(PyObject *_val) {
21250 PyErr_SetString(PyExc_TypeError,"Variable PanelNameStr is read-only.");
21251 return 1;
21252}
21253
21254
21255static PyObject *_wrap_PanelNameStr_get() {
21256 PyObject *pyobj;
21257
21258 {
21259#if wxUSE_UNICODE
21260 pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len());
21261#else
21262 pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len());
21263#endif
21264 }
21265 return pyobj;
21266}
21267
21268
21269static PyObject *_wrap_new_VisualAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
21270 PyObject *resultobj;
21271 wxVisualAttributes *result;
21272 char *kwnames[] = {
21273 NULL
21274 };
21275
21276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_VisualAttributes",kwnames)) goto fail;
21277 {
21278 PyThreadState* __tstate = wxPyBeginAllowThreads();
21279 result = (wxVisualAttributes *)new_wxVisualAttributes();
21280
21281 wxPyEndAllowThreads(__tstate);
21282 if (PyErr_Occurred()) SWIG_fail;
21283 }
21284 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVisualAttributes, 1);
21285 return resultobj;
21286 fail:
21287 return NULL;
21288}
21289
21290
21291static PyObject *_wrap_delete_VisualAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
21292 PyObject *resultobj;
21293 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
21294 PyObject * obj0 = 0 ;
21295 char *kwnames[] = {
21296 (char *) "self", NULL
21297 };
21298
21299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VisualAttributes",kwnames,&obj0)) goto fail;
21300 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
21301 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21302 {
21303 PyThreadState* __tstate = wxPyBeginAllowThreads();
21304 delete_wxVisualAttributes(arg1);
21305
21306 wxPyEndAllowThreads(__tstate);
21307 if (PyErr_Occurred()) SWIG_fail;
21308 }
21309 Py_INCREF(Py_None); resultobj = Py_None;
21310 return resultobj;
21311 fail:
21312 return NULL;
21313}
21314
21315
21316static PyObject *_wrap_VisualAttributes_font_set(PyObject *self, PyObject *args, PyObject *kwargs) {
21317 PyObject *resultobj;
21318 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
21319 wxFont *arg2 = (wxFont *) 0 ;
21320 PyObject * obj0 = 0 ;
21321 PyObject * obj1 = 0 ;
21322 char *kwnames[] = {
21323 (char *) "self",(char *) "font", NULL
21324 };
21325
21326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_font_set",kwnames,&obj0,&obj1)) goto fail;
21327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
21328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21329 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
21330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21331 if (arg1) (arg1)->font = *arg2;
21332
21333 Py_INCREF(Py_None); resultobj = Py_None;
21334 return resultobj;
21335 fail:
21336 return NULL;
21337}
21338
21339
21340static PyObject *_wrap_VisualAttributes_font_get(PyObject *self, PyObject *args, PyObject *kwargs) {
21341 PyObject *resultobj;
21342 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
21343 wxFont *result;
21344 PyObject * obj0 = 0 ;
21345 char *kwnames[] = {
21346 (char *) "self", NULL
21347 };
21348
21349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_font_get",kwnames,&obj0)) goto fail;
21350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
21351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21352 result = (wxFont *)& ((arg1)->font);
21353
21354 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
21355 return resultobj;
21356 fail:
21357 return NULL;
21358}
21359
21360
21361static PyObject *_wrap_VisualAttributes_colFg_set(PyObject *self, PyObject *args, PyObject *kwargs) {
21362 PyObject *resultobj;
21363 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
21364 wxColour *arg2 = (wxColour *) 0 ;
21365 PyObject * obj0 = 0 ;
21366 PyObject * obj1 = 0 ;
21367 char *kwnames[] = {
21368 (char *) "self",(char *) "colFg", NULL
21369 };
21370
21371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colFg_set",kwnames,&obj0,&obj1)) goto fail;
21372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
21373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21374 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour,
21375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21376 if (arg1) (arg1)->colFg = *arg2;
21377
21378 Py_INCREF(Py_None); resultobj = Py_None;
21379 return resultobj;
21380 fail:
21381 return NULL;
21382}
21383
21384
21385static PyObject *_wrap_VisualAttributes_colFg_get(PyObject *self, PyObject *args, PyObject *kwargs) {
21386 PyObject *resultobj;
21387 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
21388 wxColour *result;
21389 PyObject * obj0 = 0 ;
21390 char *kwnames[] = {
21391 (char *) "self", NULL
21392 };
21393
21394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colFg_get",kwnames,&obj0)) goto fail;
21395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
21396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21397 result = (wxColour *)& ((arg1)->colFg);
21398
21399 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
21400 return resultobj;
21401 fail:
21402 return NULL;
21403}
21404
21405
21406static PyObject *_wrap_VisualAttributes_colBg_set(PyObject *self, PyObject *args, PyObject *kwargs) {
21407 PyObject *resultobj;
21408 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
21409 wxColour *arg2 = (wxColour *) 0 ;
21410 PyObject * obj0 = 0 ;
21411 PyObject * obj1 = 0 ;
21412 char *kwnames[] = {
21413 (char *) "self",(char *) "colBg", NULL
21414 };
21415
21416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colBg_set",kwnames,&obj0,&obj1)) goto fail;
21417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
21418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21419 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour,
21420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21421 if (arg1) (arg1)->colBg = *arg2;
21422
21423 Py_INCREF(Py_None); resultobj = Py_None;
21424 return resultobj;
21425 fail:
21426 return NULL;
21427}
21428
21429
21430static PyObject *_wrap_VisualAttributes_colBg_get(PyObject *self, PyObject *args, PyObject *kwargs) {
21431 PyObject *resultobj;
21432 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
21433 wxColour *result;
21434 PyObject * obj0 = 0 ;
21435 char *kwnames[] = {
21436 (char *) "self", NULL
21437 };
21438
21439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colBg_get",kwnames,&obj0)) goto fail;
21440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
21441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21442 result = (wxColour *)& ((arg1)->colBg);
21443
21444 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
21445 return resultobj;
21446 fail:
21447 return NULL;
21448}
21449
21450
21451static PyObject * VisualAttributes_swigregister(PyObject *self, PyObject *args) {
21452 PyObject *obj;
21453 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21454 SWIG_TypeClientData(SWIGTYPE_p_wxVisualAttributes, obj);
21455 Py_INCREF(obj);
21456 return Py_BuildValue((char *)"");
21457}
21458static PyObject *_wrap_new_Window(PyObject *self, PyObject *args, PyObject *kwargs) {
21459 PyObject *resultobj;
21460 wxWindow *arg1 = (wxWindow *) 0 ;
21461 int arg2 = (int) (int)-1 ;
21462 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21463 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21464 wxSize const &arg4_defvalue = wxDefaultSize ;
21465 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21466 long arg5 = (long) 0 ;
21467 wxString const &arg6_defvalue = wxPyPanelNameStr ;
21468 wxString *arg6 = (wxString *) &arg6_defvalue ;
21469 wxWindow *result;
21470 wxPoint temp3 ;
21471 wxSize temp4 ;
21472 bool temp6 = False ;
21473 PyObject * obj0 = 0 ;
21474 PyObject * obj1 = 0 ;
21475 PyObject * obj2 = 0 ;
21476 PyObject * obj3 = 0 ;
21477 PyObject * obj4 = 0 ;
21478 PyObject * obj5 = 0 ;
21479 char *kwnames[] = {
21480 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21481 };
21482
21483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Window",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
21484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21486 if (obj1) {
21487 arg2 = (int const) SWIG_AsInt(obj1);
21488 if (PyErr_Occurred()) SWIG_fail;
21489 }
21490 if (obj2) {
21491 {
21492 arg3 = &temp3;
21493 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21494 }
21495 }
21496 if (obj3) {
21497 {
21498 arg4 = &temp4;
21499 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21500 }
21501 }
21502 if (obj4) {
21503 arg5 = (long) SWIG_AsLong(obj4);
21504 if (PyErr_Occurred()) SWIG_fail;
21505 }
21506 if (obj5) {
21507 {
21508 arg6 = wxString_in_helper(obj5);
21509 if (arg6 == NULL) SWIG_fail;
21510 temp6 = True;
21511 }
21512 }
21513 {
0439c23b 21514 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
21515 PyThreadState* __tstate = wxPyBeginAllowThreads();
21516 result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21517
21518 wxPyEndAllowThreads(__tstate);
110da5b0 21519 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
21520 }
21521 {
412d302d 21522 resultobj = wxPyMake_wxObject(result, 1);
d55e5bfc
RD
21523 }
21524 {
21525 if (temp6)
21526 delete arg6;
21527 }
21528 return resultobj;
21529 fail:
21530 {
21531 if (temp6)
21532 delete arg6;
21533 }
21534 return NULL;
21535}
21536
21537
21538static PyObject *_wrap_new_PreWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
21539 PyObject *resultobj;
21540 wxWindow *result;
21541 char *kwnames[] = {
21542 NULL
21543 };
21544
21545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWindow",kwnames)) goto fail;
21546 {
0439c23b 21547 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
21548 PyThreadState* __tstate = wxPyBeginAllowThreads();
21549 result = (wxWindow *)new wxWindow();
21550
21551 wxPyEndAllowThreads(__tstate);
110da5b0 21552 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
21553 }
21554 {
412d302d 21555 resultobj = wxPyMake_wxObject(result, 1);
d55e5bfc
RD
21556 }
21557 return resultobj;
21558 fail:
21559 return NULL;
21560}
21561
21562
21563static PyObject *_wrap_Window_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
21564 PyObject *resultobj;
21565 wxWindow *arg1 = (wxWindow *) 0 ;
21566 wxWindow *arg2 = (wxWindow *) 0 ;
21567 int arg3 = (int) (int)-1 ;
21568 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21569 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21570 wxSize const &arg5_defvalue = wxDefaultSize ;
21571 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21572 long arg6 = (long) 0 ;
21573 wxString const &arg7_defvalue = wxPyPanelNameStr ;
21574 wxString *arg7 = (wxString *) &arg7_defvalue ;
21575 bool result;
21576 wxPoint temp4 ;
21577 wxSize temp5 ;
21578 bool temp7 = False ;
21579 PyObject * obj0 = 0 ;
21580 PyObject * obj1 = 0 ;
21581 PyObject * obj2 = 0 ;
21582 PyObject * obj3 = 0 ;
21583 PyObject * obj4 = 0 ;
21584 PyObject * obj5 = 0 ;
21585 PyObject * obj6 = 0 ;
21586 char *kwnames[] = {
21587 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21588 };
21589
21590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Window_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
21591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21593 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
21594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21595 if (obj2) {
21596 arg3 = (int const) SWIG_AsInt(obj2);
21597 if (PyErr_Occurred()) SWIG_fail;
21598 }
21599 if (obj3) {
21600 {
21601 arg4 = &temp4;
21602 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21603 }
21604 }
21605 if (obj4) {
21606 {
21607 arg5 = &temp5;
21608 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21609 }
21610 }
21611 if (obj5) {
21612 arg6 = (long) SWIG_AsLong(obj5);
21613 if (PyErr_Occurred()) SWIG_fail;
21614 }
21615 if (obj6) {
21616 {
21617 arg7 = wxString_in_helper(obj6);
21618 if (arg7 == NULL) SWIG_fail;
21619 temp7 = True;
21620 }
21621 }
21622 {
21623 PyThreadState* __tstate = wxPyBeginAllowThreads();
21624 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21625
21626 wxPyEndAllowThreads(__tstate);
21627 if (PyErr_Occurred()) SWIG_fail;
21628 }
21629 {
21630 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21631 }
21632 {
21633 if (temp7)
21634 delete arg7;
21635 }
21636 return resultobj;
21637 fail:
21638 {
21639 if (temp7)
21640 delete arg7;
21641 }
21642 return NULL;
21643}
21644
21645
21646static PyObject *_wrap_Window_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
21647 PyObject *resultobj;
21648 wxWindow *arg1 = (wxWindow *) 0 ;
21649 bool arg2 = (bool) False ;
21650 bool result;
21651 PyObject * obj0 = 0 ;
21652 PyObject * obj1 = 0 ;
21653 char *kwnames[] = {
21654 (char *) "self",(char *) "force", NULL
21655 };
21656
21657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",kwnames,&obj0,&obj1)) goto fail;
21658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21660 if (obj1) {
21661 arg2 = (bool) SWIG_AsBool(obj1);
21662 if (PyErr_Occurred()) SWIG_fail;
21663 }
21664 {
21665 PyThreadState* __tstate = wxPyBeginAllowThreads();
21666 result = (bool)(arg1)->Close(arg2);
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_Destroy(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_Destroy",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)(arg1)->Destroy();
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_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
21709 PyObject *resultobj;
21710 wxWindow *arg1 = (wxWindow *) 0 ;
21711 bool result;
21712 PyObject * obj0 = 0 ;
21713 char *kwnames[] = {
21714 (char *) "self", NULL
21715 };
21716
21717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DestroyChildren",kwnames,&obj0)) goto fail;
21718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21720 {
21721 PyThreadState* __tstate = wxPyBeginAllowThreads();
21722 result = (bool)(arg1)->DestroyChildren();
21723
21724 wxPyEndAllowThreads(__tstate);
21725 if (PyErr_Occurred()) SWIG_fail;
21726 }
21727 {
21728 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21729 }
21730 return resultobj;
21731 fail:
21732 return NULL;
21733}
21734
21735
21736static PyObject *_wrap_Window_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) {
21737 PyObject *resultobj;
21738 wxWindow *arg1 = (wxWindow *) 0 ;
21739 bool result;
21740 PyObject * obj0 = 0 ;
21741 char *kwnames[] = {
21742 (char *) "self", NULL
21743 };
21744
21745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsBeingDeleted",kwnames,&obj0)) goto fail;
21746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21748 {
21749 PyThreadState* __tstate = wxPyBeginAllowThreads();
21750 result = (bool)((wxWindow const *)arg1)->IsBeingDeleted();
21751
21752 wxPyEndAllowThreads(__tstate);
21753 if (PyErr_Occurred()) SWIG_fail;
21754 }
21755 {
21756 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21757 }
21758 return resultobj;
21759 fail:
21760 return NULL;
21761}
21762
21763
21764static PyObject *_wrap_Window_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
21765 PyObject *resultobj;
21766 wxWindow *arg1 = (wxWindow *) 0 ;
21767 wxString *arg2 = 0 ;
21768 bool temp2 = False ;
21769 PyObject * obj0 = 0 ;
21770 PyObject * obj1 = 0 ;
21771 char *kwnames[] = {
21772 (char *) "self",(char *) "title", NULL
21773 };
21774
21775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTitle",kwnames,&obj0,&obj1)) goto fail;
21776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21778 {
21779 arg2 = wxString_in_helper(obj1);
21780 if (arg2 == NULL) SWIG_fail;
21781 temp2 = True;
21782 }
21783 {
21784 PyThreadState* __tstate = wxPyBeginAllowThreads();
21785 (arg1)->SetTitle((wxString const &)*arg2);
21786
21787 wxPyEndAllowThreads(__tstate);
21788 if (PyErr_Occurred()) SWIG_fail;
21789 }
21790 Py_INCREF(Py_None); resultobj = Py_None;
21791 {
21792 if (temp2)
21793 delete arg2;
21794 }
21795 return resultobj;
21796 fail:
21797 {
21798 if (temp2)
21799 delete arg2;
21800 }
21801 return NULL;
21802}
21803
21804
21805static PyObject *_wrap_Window_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
21806 PyObject *resultobj;
21807 wxWindow *arg1 = (wxWindow *) 0 ;
21808 wxString result;
21809 PyObject * obj0 = 0 ;
21810 char *kwnames[] = {
21811 (char *) "self", NULL
21812 };
21813
21814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetTitle",kwnames,&obj0)) goto fail;
21815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21817 {
21818 PyThreadState* __tstate = wxPyBeginAllowThreads();
21819 result = ((wxWindow const *)arg1)->GetTitle();
21820
21821 wxPyEndAllowThreads(__tstate);
21822 if (PyErr_Occurred()) SWIG_fail;
21823 }
21824 {
21825#if wxUSE_UNICODE
21826 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21827#else
21828 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21829#endif
21830 }
21831 return resultobj;
21832 fail:
21833 return NULL;
21834}
21835
21836
21837static PyObject *_wrap_Window_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
21838 PyObject *resultobj;
21839 wxWindow *arg1 = (wxWindow *) 0 ;
21840 wxString *arg2 = 0 ;
21841 bool temp2 = False ;
21842 PyObject * obj0 = 0 ;
21843 PyObject * obj1 = 0 ;
21844 char *kwnames[] = {
21845 (char *) "self",(char *) "label", NULL
21846 };
21847
21848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",kwnames,&obj0,&obj1)) goto fail;
21849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21851 {
21852 arg2 = wxString_in_helper(obj1);
21853 if (arg2 == NULL) SWIG_fail;
21854 temp2 = True;
21855 }
21856 {
21857 PyThreadState* __tstate = wxPyBeginAllowThreads();
21858 (arg1)->SetLabel((wxString const &)*arg2);
21859
21860 wxPyEndAllowThreads(__tstate);
21861 if (PyErr_Occurred()) SWIG_fail;
21862 }
21863 Py_INCREF(Py_None); resultobj = Py_None;
21864 {
21865 if (temp2)
21866 delete arg2;
21867 }
21868 return resultobj;
21869 fail:
21870 {
21871 if (temp2)
21872 delete arg2;
21873 }
21874 return NULL;
21875}
21876
21877
21878static PyObject *_wrap_Window_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
21879 PyObject *resultobj;
21880 wxWindow *arg1 = (wxWindow *) 0 ;
21881 wxString result;
21882 PyObject * obj0 = 0 ;
21883 char *kwnames[] = {
21884 (char *) "self", NULL
21885 };
21886
21887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetLabel",kwnames,&obj0)) goto fail;
21888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21890 {
21891 PyThreadState* __tstate = wxPyBeginAllowThreads();
21892 result = ((wxWindow const *)arg1)->GetLabel();
21893
21894 wxPyEndAllowThreads(__tstate);
21895 if (PyErr_Occurred()) SWIG_fail;
21896 }
21897 {
21898#if wxUSE_UNICODE
21899 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21900#else
21901 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21902#endif
21903 }
21904 return resultobj;
21905 fail:
21906 return NULL;
21907}
21908
21909
21910static PyObject *_wrap_Window_SetName(PyObject *self, PyObject *args, PyObject *kwargs) {
21911 PyObject *resultobj;
21912 wxWindow *arg1 = (wxWindow *) 0 ;
21913 wxString *arg2 = 0 ;
21914 bool temp2 = False ;
21915 PyObject * obj0 = 0 ;
21916 PyObject * obj1 = 0 ;
21917 char *kwnames[] = {
21918 (char *) "self",(char *) "name", NULL
21919 };
21920
21921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) goto fail;
21922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21924 {
21925 arg2 = wxString_in_helper(obj1);
21926 if (arg2 == NULL) SWIG_fail;
21927 temp2 = True;
21928 }
21929 {
21930 PyThreadState* __tstate = wxPyBeginAllowThreads();
21931 (arg1)->SetName((wxString const &)*arg2);
21932
21933 wxPyEndAllowThreads(__tstate);
21934 if (PyErr_Occurred()) SWIG_fail;
21935 }
21936 Py_INCREF(Py_None); resultobj = Py_None;
21937 {
21938 if (temp2)
21939 delete arg2;
21940 }
21941 return resultobj;
21942 fail:
21943 {
21944 if (temp2)
21945 delete arg2;
21946 }
21947 return NULL;
21948}
21949
21950
21951static PyObject *_wrap_Window_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
21952 PyObject *resultobj;
21953 wxWindow *arg1 = (wxWindow *) 0 ;
21954 wxString result;
21955 PyObject * obj0 = 0 ;
21956 char *kwnames[] = {
21957 (char *) "self", NULL
21958 };
21959
21960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetName",kwnames,&obj0)) goto fail;
21961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21963 {
21964 PyThreadState* __tstate = wxPyBeginAllowThreads();
21965 result = ((wxWindow const *)arg1)->GetName();
21966
21967 wxPyEndAllowThreads(__tstate);
21968 if (PyErr_Occurred()) SWIG_fail;
21969 }
21970 {
21971#if wxUSE_UNICODE
21972 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21973#else
21974 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21975#endif
21976 }
21977 return resultobj;
21978 fail:
21979 return NULL;
21980}
21981
21982
21983static PyObject *_wrap_Window_SetWindowVariant(PyObject *self, PyObject *args, PyObject *kwargs) {
21984 PyObject *resultobj;
21985 wxWindow *arg1 = (wxWindow *) 0 ;
21986 int arg2 ;
21987 PyObject * obj0 = 0 ;
21988 PyObject * obj1 = 0 ;
21989 char *kwnames[] = {
21990 (char *) "self",(char *) "variant", NULL
21991 };
21992
21993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowVariant",kwnames,&obj0,&obj1)) goto fail;
21994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21996 arg2 = (wxWindowVariant) SWIG_AsInt(obj1);
21997 if (PyErr_Occurred()) SWIG_fail;
21998 {
21999 PyThreadState* __tstate = wxPyBeginAllowThreads();
22000 (arg1)->SetWindowVariant((wxWindowVariant )arg2);
22001
22002 wxPyEndAllowThreads(__tstate);
22003 if (PyErr_Occurred()) SWIG_fail;
22004 }
22005 Py_INCREF(Py_None); resultobj = Py_None;
22006 return resultobj;
22007 fail:
22008 return NULL;
22009}
22010
22011
22012static PyObject *_wrap_Window_GetWindowVariant(PyObject *self, PyObject *args, PyObject *kwargs) {
22013 PyObject *resultobj;
22014 wxWindow *arg1 = (wxWindow *) 0 ;
22015 int result;
22016 PyObject * obj0 = 0 ;
22017 char *kwnames[] = {
22018 (char *) "self", NULL
22019 };
22020
22021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowVariant",kwnames,&obj0)) goto fail;
22022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22024 {
22025 PyThreadState* __tstate = wxPyBeginAllowThreads();
22026 result = (int)((wxWindow const *)arg1)->GetWindowVariant();
22027
22028 wxPyEndAllowThreads(__tstate);
22029 if (PyErr_Occurred()) SWIG_fail;
22030 }
22031 resultobj = SWIG_FromInt((int)result);
22032 return resultobj;
22033 fail:
22034 return NULL;
22035}
22036
22037
22038static PyObject *_wrap_Window_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
22039 PyObject *resultobj;
22040 wxWindow *arg1 = (wxWindow *) 0 ;
22041 int arg2 ;
22042 PyObject * obj0 = 0 ;
22043 PyObject * obj1 = 0 ;
22044 char *kwnames[] = {
22045 (char *) "self",(char *) "winid", NULL
22046 };
22047
22048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetId",kwnames,&obj0,&obj1)) goto fail;
22049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22051 arg2 = (int) SWIG_AsInt(obj1);
22052 if (PyErr_Occurred()) SWIG_fail;
22053 {
22054 PyThreadState* __tstate = wxPyBeginAllowThreads();
22055 (arg1)->SetId(arg2);
22056
22057 wxPyEndAllowThreads(__tstate);
22058 if (PyErr_Occurred()) SWIG_fail;
22059 }
22060 Py_INCREF(Py_None); resultobj = Py_None;
22061 return resultobj;
22062 fail:
22063 return NULL;
22064}
22065
22066
22067static PyObject *_wrap_Window_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
22068 PyObject *resultobj;
22069 wxWindow *arg1 = (wxWindow *) 0 ;
22070 int result;
22071 PyObject * obj0 = 0 ;
22072 char *kwnames[] = {
22073 (char *) "self", NULL
22074 };
22075
22076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetId",kwnames,&obj0)) goto fail;
22077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22079 {
22080 PyThreadState* __tstate = wxPyBeginAllowThreads();
22081 result = (int)((wxWindow const *)arg1)->GetId();
22082
22083 wxPyEndAllowThreads(__tstate);
22084 if (PyErr_Occurred()) SWIG_fail;
22085 }
22086 resultobj = SWIG_FromInt((int)result);
22087 return resultobj;
22088 fail:
22089 return NULL;
22090}
22091
22092
22093static PyObject *_wrap_Window_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) {
22094 PyObject *resultobj;
22095 int result;
22096 char *kwnames[] = {
22097 NULL
22098 };
22099
22100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_NewControlId",kwnames)) goto fail;
22101 {
22102 PyThreadState* __tstate = wxPyBeginAllowThreads();
22103 result = (int)wxWindow::NewControlId();
22104
22105 wxPyEndAllowThreads(__tstate);
22106 if (PyErr_Occurred()) SWIG_fail;
22107 }
22108 resultobj = SWIG_FromInt((int)result);
22109 return resultobj;
22110 fail:
22111 return NULL;
22112}
22113
22114
22115static PyObject *_wrap_Window_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) {
22116 PyObject *resultobj;
22117 int arg1 ;
22118 int result;
22119 PyObject * obj0 = 0 ;
22120 char *kwnames[] = {
22121 (char *) "winid", NULL
22122 };
22123
22124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_NextControlId",kwnames,&obj0)) goto fail;
22125 arg1 = (int) SWIG_AsInt(obj0);
22126 if (PyErr_Occurred()) SWIG_fail;
22127 {
22128 PyThreadState* __tstate = wxPyBeginAllowThreads();
22129 result = (int)wxWindow::NextControlId(arg1);
22130
22131 wxPyEndAllowThreads(__tstate);
22132 if (PyErr_Occurred()) SWIG_fail;
22133 }
22134 resultobj = SWIG_FromInt((int)result);
22135 return resultobj;
22136 fail:
22137 return NULL;
22138}
22139
22140
22141static PyObject *_wrap_Window_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) {
22142 PyObject *resultobj;
22143 int arg1 ;
22144 int result;
22145 PyObject * obj0 = 0 ;
22146 char *kwnames[] = {
22147 (char *) "winid", NULL
22148 };
22149
22150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PrevControlId",kwnames,&obj0)) goto fail;
22151 arg1 = (int) SWIG_AsInt(obj0);
22152 if (PyErr_Occurred()) SWIG_fail;
22153 {
22154 PyThreadState* __tstate = wxPyBeginAllowThreads();
22155 result = (int)wxWindow::PrevControlId(arg1);
22156
22157 wxPyEndAllowThreads(__tstate);
22158 if (PyErr_Occurred()) SWIG_fail;
22159 }
22160 resultobj = SWIG_FromInt((int)result);
22161 return resultobj;
22162 fail:
22163 return NULL;
22164}
22165
22166
22167static PyObject *_wrap_Window_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22168 PyObject *resultobj;
22169 wxWindow *arg1 = (wxWindow *) 0 ;
22170 wxSize *arg2 = 0 ;
22171 wxSize temp2 ;
22172 PyObject * obj0 = 0 ;
22173 PyObject * obj1 = 0 ;
22174 char *kwnames[] = {
22175 (char *) "self",(char *) "size", NULL
22176 };
22177
22178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) goto fail;
22179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22181 {
22182 arg2 = &temp2;
22183 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
22184 }
22185 {
22186 PyThreadState* __tstate = wxPyBeginAllowThreads();
22187 (arg1)->SetSize((wxSize const &)*arg2);
22188
22189 wxPyEndAllowThreads(__tstate);
22190 if (PyErr_Occurred()) SWIG_fail;
22191 }
22192 Py_INCREF(Py_None); resultobj = Py_None;
22193 return resultobj;
22194 fail:
22195 return NULL;
22196}
22197
22198
22199static PyObject *_wrap_Window_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) {
22200 PyObject *resultobj;
22201 wxWindow *arg1 = (wxWindow *) 0 ;
22202 int arg2 ;
22203 int arg3 ;
22204 int arg4 ;
22205 int arg5 ;
22206 int arg6 = (int) wxSIZE_AUTO ;
22207 PyObject * obj0 = 0 ;
22208 PyObject * obj1 = 0 ;
22209 PyObject * obj2 = 0 ;
22210 PyObject * obj3 = 0 ;
22211 PyObject * obj4 = 0 ;
22212 PyObject * obj5 = 0 ;
22213 char *kwnames[] = {
22214 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
22215 };
22216
22217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetDimensions",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
22218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22220 arg2 = (int) SWIG_AsInt(obj1);
22221 if (PyErr_Occurred()) SWIG_fail;
22222 arg3 = (int) SWIG_AsInt(obj2);
22223 if (PyErr_Occurred()) SWIG_fail;
22224 arg4 = (int) SWIG_AsInt(obj3);
22225 if (PyErr_Occurred()) SWIG_fail;
22226 arg5 = (int) SWIG_AsInt(obj4);
22227 if (PyErr_Occurred()) SWIG_fail;
22228 if (obj5) {
22229 arg6 = (int) SWIG_AsInt(obj5);
22230 if (PyErr_Occurred()) SWIG_fail;
22231 }
22232 {
22233 PyThreadState* __tstate = wxPyBeginAllowThreads();
22234 (arg1)->SetSize(arg2,arg3,arg4,arg5,arg6);
22235
22236 wxPyEndAllowThreads(__tstate);
22237 if (PyErr_Occurred()) SWIG_fail;
22238 }
22239 Py_INCREF(Py_None); resultobj = Py_None;
22240 return resultobj;
22241 fail:
22242 return NULL;
22243}
22244
22245
22246static PyObject *_wrap_Window_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
22247 PyObject *resultobj;
22248 wxWindow *arg1 = (wxWindow *) 0 ;
22249 wxRect *arg2 = 0 ;
22250 int arg3 = (int) wxSIZE_AUTO ;
22251 wxRect temp2 ;
22252 PyObject * obj0 = 0 ;
22253 PyObject * obj1 = 0 ;
22254 PyObject * obj2 = 0 ;
22255 char *kwnames[] = {
22256 (char *) "self",(char *) "rect",(char *) "sizeFlags", NULL
22257 };
22258
22259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
22260 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22262 {
22263 arg2 = &temp2;
22264 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
22265 }
22266 if (obj2) {
22267 arg3 = (int) SWIG_AsInt(obj2);
22268 if (PyErr_Occurred()) SWIG_fail;
22269 }
22270 {
22271 PyThreadState* __tstate = wxPyBeginAllowThreads();
22272 (arg1)->SetSize((wxRect const &)*arg2,arg3);
22273
22274 wxPyEndAllowThreads(__tstate);
22275 if (PyErr_Occurred()) SWIG_fail;
22276 }
22277 Py_INCREF(Py_None); resultobj = Py_None;
22278 return resultobj;
22279 fail:
22280 return NULL;
22281}
22282
22283
22284static PyObject *_wrap_Window_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
22285 PyObject *resultobj;
22286 wxWindow *arg1 = (wxWindow *) 0 ;
22287 int arg2 ;
22288 int arg3 ;
22289 PyObject * obj0 = 0 ;
22290 PyObject * obj1 = 0 ;
22291 PyObject * obj2 = 0 ;
22292 char *kwnames[] = {
22293 (char *) "self",(char *) "width",(char *) "height", NULL
22294 };
22295
22296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
22297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22299 arg2 = (int) SWIG_AsInt(obj1);
22300 if (PyErr_Occurred()) SWIG_fail;
22301 arg3 = (int) SWIG_AsInt(obj2);
22302 if (PyErr_Occurred()) SWIG_fail;
22303 {
22304 PyThreadState* __tstate = wxPyBeginAllowThreads();
22305 (arg1)->SetSize(arg2,arg3);
22306
22307 wxPyEndAllowThreads(__tstate);
22308 if (PyErr_Occurred()) SWIG_fail;
22309 }
22310 Py_INCREF(Py_None); resultobj = Py_None;
22311 return resultobj;
22312 fail:
22313 return NULL;
22314}
22315
22316
22317static PyObject *_wrap_Window_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
22318 PyObject *resultobj;
22319 wxWindow *arg1 = (wxWindow *) 0 ;
22320 wxPoint *arg2 = 0 ;
22321 int arg3 = (int) wxSIZE_USE_EXISTING ;
22322 wxPoint temp2 ;
22323 PyObject * obj0 = 0 ;
22324 PyObject * obj1 = 0 ;
22325 PyObject * obj2 = 0 ;
22326 char *kwnames[] = {
22327 (char *) "self",(char *) "pt",(char *) "flags", NULL
22328 };
22329
22330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_Move",kwnames,&obj0,&obj1,&obj2)) goto fail;
22331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22333 {
22334 arg2 = &temp2;
22335 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22336 }
22337 if (obj2) {
22338 arg3 = (int) SWIG_AsInt(obj2);
22339 if (PyErr_Occurred()) SWIG_fail;
22340 }
22341 {
22342 PyThreadState* __tstate = wxPyBeginAllowThreads();
22343 (arg1)->Move((wxPoint const &)*arg2,arg3);
22344
22345 wxPyEndAllowThreads(__tstate);
22346 if (PyErr_Occurred()) SWIG_fail;
22347 }
22348 Py_INCREF(Py_None); resultobj = Py_None;
22349 return resultobj;
22350 fail:
22351 return NULL;
22352}
22353
22354
22355static PyObject *_wrap_Window_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) {
22356 PyObject *resultobj;
22357 wxWindow *arg1 = (wxWindow *) 0 ;
22358 int arg2 ;
22359 int arg3 ;
22360 int arg4 = (int) wxSIZE_USE_EXISTING ;
22361 PyObject * obj0 = 0 ;
22362 PyObject * obj1 = 0 ;
22363 PyObject * obj2 = 0 ;
22364 PyObject * obj3 = 0 ;
22365 char *kwnames[] = {
22366 (char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL
22367 };
22368
22369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_MoveXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22372 arg2 = (int) SWIG_AsInt(obj1);
22373 if (PyErr_Occurred()) SWIG_fail;
22374 arg3 = (int) SWIG_AsInt(obj2);
22375 if (PyErr_Occurred()) SWIG_fail;
22376 if (obj3) {
22377 arg4 = (int) SWIG_AsInt(obj3);
22378 if (PyErr_Occurred()) SWIG_fail;
22379 }
22380 {
22381 PyThreadState* __tstate = wxPyBeginAllowThreads();
22382 (arg1)->Move(arg2,arg3,arg4);
22383
22384 wxPyEndAllowThreads(__tstate);
22385 if (PyErr_Occurred()) SWIG_fail;
22386 }
22387 Py_INCREF(Py_None); resultobj = Py_None;
22388 return resultobj;
22389 fail:
22390 return NULL;
22391}
22392
22393
f8167d6e
RD
22394static PyObject *_wrap_Window_SetBestFittingSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22395 PyObject *resultobj;
22396 wxWindow *arg1 = (wxWindow *) 0 ;
22397 wxSize const &arg2_defvalue = wxDefaultSize ;
22398 wxSize *arg2 = (wxSize *) &arg2_defvalue ;
22399 wxSize temp2 ;
22400 PyObject * obj0 = 0 ;
22401 PyObject * obj1 = 0 ;
22402 char *kwnames[] = {
22403 (char *) "self",(char *) "size", NULL
22404 };
22405
22406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_SetBestFittingSize",kwnames,&obj0,&obj1)) goto fail;
22407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22409 if (obj1) {
22410 {
22411 arg2 = &temp2;
22412 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
22413 }
22414 }
22415 {
22416 PyThreadState* __tstate = wxPyBeginAllowThreads();
22417 (arg1)->SetBestFittingSize((wxSize const &)*arg2);
22418
22419 wxPyEndAllowThreads(__tstate);
22420 if (PyErr_Occurred()) SWIG_fail;
22421 }
22422 Py_INCREF(Py_None); resultobj = Py_None;
22423 return resultobj;
22424 fail:
22425 return NULL;
22426}
22427
22428
d55e5bfc
RD
22429static PyObject *_wrap_Window_Raise(PyObject *self, PyObject *args, PyObject *kwargs) {
22430 PyObject *resultobj;
22431 wxWindow *arg1 = (wxWindow *) 0 ;
22432 PyObject * obj0 = 0 ;
22433 char *kwnames[] = {
22434 (char *) "self", NULL
22435 };
22436
22437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Raise",kwnames,&obj0)) goto fail;
22438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22440 {
22441 PyThreadState* __tstate = wxPyBeginAllowThreads();
22442 (arg1)->Raise();
22443
22444 wxPyEndAllowThreads(__tstate);
22445 if (PyErr_Occurred()) SWIG_fail;
22446 }
22447 Py_INCREF(Py_None); resultobj = Py_None;
22448 return resultobj;
22449 fail:
22450 return NULL;
22451}
22452
22453
22454static PyObject *_wrap_Window_Lower(PyObject *self, PyObject *args, PyObject *kwargs) {
22455 PyObject *resultobj;
22456 wxWindow *arg1 = (wxWindow *) 0 ;
22457 PyObject * obj0 = 0 ;
22458 char *kwnames[] = {
22459 (char *) "self", NULL
22460 };
22461
22462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Lower",kwnames,&obj0)) goto fail;
22463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22465 {
22466 PyThreadState* __tstate = wxPyBeginAllowThreads();
22467 (arg1)->Lower();
22468
22469 wxPyEndAllowThreads(__tstate);
22470 if (PyErr_Occurred()) SWIG_fail;
22471 }
22472 Py_INCREF(Py_None); resultobj = Py_None;
22473 return resultobj;
22474 fail:
22475 return NULL;
22476}
22477
22478
22479static PyObject *_wrap_Window_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22480 PyObject *resultobj;
22481 wxWindow *arg1 = (wxWindow *) 0 ;
22482 wxSize *arg2 = 0 ;
22483 wxSize temp2 ;
22484 PyObject * obj0 = 0 ;
22485 PyObject * obj1 = 0 ;
22486 char *kwnames[] = {
22487 (char *) "self",(char *) "size", NULL
22488 };
22489
22490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) goto fail;
22491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22493 {
22494 arg2 = &temp2;
22495 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
22496 }
22497 {
22498 PyThreadState* __tstate = wxPyBeginAllowThreads();
22499 (arg1)->SetClientSize((wxSize const &)*arg2);
22500
22501 wxPyEndAllowThreads(__tstate);
22502 if (PyErr_Occurred()) SWIG_fail;
22503 }
22504 Py_INCREF(Py_None); resultobj = Py_None;
22505 return resultobj;
22506 fail:
22507 return NULL;
22508}
22509
22510
22511static PyObject *_wrap_Window_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
22512 PyObject *resultobj;
22513 wxWindow *arg1 = (wxWindow *) 0 ;
22514 int arg2 ;
22515 int arg3 ;
22516 PyObject * obj0 = 0 ;
22517 PyObject * obj1 = 0 ;
22518 PyObject * obj2 = 0 ;
22519 char *kwnames[] = {
22520 (char *) "self",(char *) "width",(char *) "height", NULL
22521 };
22522
22523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetClientSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
22524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22526 arg2 = (int) SWIG_AsInt(obj1);
22527 if (PyErr_Occurred()) SWIG_fail;
22528 arg3 = (int) SWIG_AsInt(obj2);
22529 if (PyErr_Occurred()) SWIG_fail;
22530 {
22531 PyThreadState* __tstate = wxPyBeginAllowThreads();
22532 (arg1)->SetClientSize(arg2,arg3);
22533
22534 wxPyEndAllowThreads(__tstate);
22535 if (PyErr_Occurred()) SWIG_fail;
22536 }
22537 Py_INCREF(Py_None); resultobj = Py_None;
22538 return resultobj;
22539 fail:
22540 return NULL;
22541}
22542
22543
22544static PyObject *_wrap_Window_SetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) {
22545 PyObject *resultobj;
22546 wxWindow *arg1 = (wxWindow *) 0 ;
22547 wxRect *arg2 = 0 ;
22548 wxRect temp2 ;
22549 PyObject * obj0 = 0 ;
22550 PyObject * obj1 = 0 ;
22551 char *kwnames[] = {
22552 (char *) "self",(char *) "rect", NULL
22553 };
22554
22555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) goto fail;
22556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22558 {
22559 arg2 = &temp2;
22560 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
22561 }
22562 {
22563 PyThreadState* __tstate = wxPyBeginAllowThreads();
22564 (arg1)->SetClientSize((wxRect const &)*arg2);
22565
22566 wxPyEndAllowThreads(__tstate);
22567 if (PyErr_Occurred()) SWIG_fail;
22568 }
22569 Py_INCREF(Py_None); resultobj = Py_None;
22570 return resultobj;
22571 fail:
22572 return NULL;
22573}
22574
22575
22576static PyObject *_wrap_Window_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
22577 PyObject *resultobj;
22578 wxWindow *arg1 = (wxWindow *) 0 ;
22579 wxPoint result;
22580 PyObject * obj0 = 0 ;
22581 char *kwnames[] = {
22582 (char *) "self", NULL
22583 };
22584
22585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPosition",kwnames,&obj0)) goto fail;
22586 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22587 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22588 {
22589 PyThreadState* __tstate = wxPyBeginAllowThreads();
22590 result = (arg1)->GetPosition();
22591
22592 wxPyEndAllowThreads(__tstate);
22593 if (PyErr_Occurred()) SWIG_fail;
22594 }
22595 {
22596 wxPoint * resultptr;
22597 resultptr = new wxPoint((wxPoint &) result);
22598 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
22599 }
22600 return resultobj;
22601 fail:
22602 return NULL;
22603}
22604
22605
22606static PyObject *_wrap_Window_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
22607 PyObject *resultobj;
22608 wxWindow *arg1 = (wxWindow *) 0 ;
22609 int *arg2 = (int *) 0 ;
22610 int *arg3 = (int *) 0 ;
22611 int temp2 ;
22612 int temp3 ;
22613 PyObject * obj0 = 0 ;
22614 char *kwnames[] = {
22615 (char *) "self", NULL
22616 };
22617
22618 arg2 = &temp2;
22619 arg3 = &temp3;
22620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPositionTuple",kwnames,&obj0)) goto fail;
22621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22623 {
22624 PyThreadState* __tstate = wxPyBeginAllowThreads();
22625 (arg1)->GetPosition(arg2,arg3);
22626
22627 wxPyEndAllowThreads(__tstate);
22628 if (PyErr_Occurred()) SWIG_fail;
22629 }
22630 Py_INCREF(Py_None); resultobj = Py_None;
22631 {
22632 PyObject *o = PyInt_FromLong((long) (*arg2));
22633 resultobj = t_output_helper(resultobj,o);
22634 }
22635 {
22636 PyObject *o = PyInt_FromLong((long) (*arg3));
22637 resultobj = t_output_helper(resultobj,o);
22638 }
22639 return resultobj;
22640 fail:
22641 return NULL;
22642}
22643
22644
22645static PyObject *_wrap_Window_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22646 PyObject *resultobj;
22647 wxWindow *arg1 = (wxWindow *) 0 ;
22648 wxSize result;
22649 PyObject * obj0 = 0 ;
22650 char *kwnames[] = {
22651 (char *) "self", NULL
22652 };
22653
22654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSize",kwnames,&obj0)) goto fail;
22655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22657 {
22658 PyThreadState* __tstate = wxPyBeginAllowThreads();
22659 result = ((wxWindow const *)arg1)->GetSize();
22660
22661 wxPyEndAllowThreads(__tstate);
22662 if (PyErr_Occurred()) SWIG_fail;
22663 }
22664 {
22665 wxSize * resultptr;
22666 resultptr = new wxSize((wxSize &) result);
22667 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
22668 }
22669 return resultobj;
22670 fail:
22671 return NULL;
22672}
22673
22674
22675static PyObject *_wrap_Window_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
22676 PyObject *resultobj;
22677 wxWindow *arg1 = (wxWindow *) 0 ;
22678 int *arg2 = (int *) 0 ;
22679 int *arg3 = (int *) 0 ;
22680 int temp2 ;
22681 int temp3 ;
22682 PyObject * obj0 = 0 ;
22683 char *kwnames[] = {
22684 (char *) "self", NULL
22685 };
22686
22687 arg2 = &temp2;
22688 arg3 = &temp3;
22689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizeTuple",kwnames,&obj0)) goto fail;
22690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22692 {
22693 PyThreadState* __tstate = wxPyBeginAllowThreads();
22694 ((wxWindow const *)arg1)->GetSize(arg2,arg3);
22695
22696 wxPyEndAllowThreads(__tstate);
22697 if (PyErr_Occurred()) SWIG_fail;
22698 }
22699 Py_INCREF(Py_None); resultobj = Py_None;
22700 {
22701 PyObject *o = PyInt_FromLong((long) (*arg2));
22702 resultobj = t_output_helper(resultobj,o);
22703 }
22704 {
22705 PyObject *o = PyInt_FromLong((long) (*arg3));
22706 resultobj = t_output_helper(resultobj,o);
22707 }
22708 return resultobj;
22709 fail:
22710 return NULL;
22711}
22712
22713
22714static PyObject *_wrap_Window_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
22715 PyObject *resultobj;
22716 wxWindow *arg1 = (wxWindow *) 0 ;
22717 wxRect result;
22718 PyObject * obj0 = 0 ;
22719 char *kwnames[] = {
22720 (char *) "self", NULL
22721 };
22722
22723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetRect",kwnames,&obj0)) goto fail;
22724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22726 {
22727 PyThreadState* __tstate = wxPyBeginAllowThreads();
22728 result = ((wxWindow const *)arg1)->GetRect();
22729
22730 wxPyEndAllowThreads(__tstate);
22731 if (PyErr_Occurred()) SWIG_fail;
22732 }
22733 {
22734 wxRect * resultptr;
22735 resultptr = new wxRect((wxRect &) result);
22736 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
22737 }
22738 return resultobj;
22739 fail:
22740 return NULL;
22741}
22742
22743
22744static PyObject *_wrap_Window_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22745 PyObject *resultobj;
22746 wxWindow *arg1 = (wxWindow *) 0 ;
22747 wxSize result;
22748 PyObject * obj0 = 0 ;
22749 char *kwnames[] = {
22750 (char *) "self", NULL
22751 };
22752
22753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSize",kwnames,&obj0)) goto fail;
22754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22756 {
22757 PyThreadState* __tstate = wxPyBeginAllowThreads();
22758 result = ((wxWindow const *)arg1)->GetClientSize();
22759
22760 wxPyEndAllowThreads(__tstate);
22761 if (PyErr_Occurred()) SWIG_fail;
22762 }
22763 {
22764 wxSize * resultptr;
22765 resultptr = new wxSize((wxSize &) result);
22766 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
22767 }
22768 return resultobj;
22769 fail:
22770 return NULL;
22771}
22772
22773
22774static PyObject *_wrap_Window_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
22775 PyObject *resultobj;
22776 wxWindow *arg1 = (wxWindow *) 0 ;
22777 int *arg2 = (int *) 0 ;
22778 int *arg3 = (int *) 0 ;
22779 int temp2 ;
22780 int temp3 ;
22781 PyObject * obj0 = 0 ;
22782 char *kwnames[] = {
22783 (char *) "self", NULL
22784 };
22785
22786 arg2 = &temp2;
22787 arg3 = &temp3;
22788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSizeTuple",kwnames,&obj0)) goto fail;
22789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22791 {
22792 PyThreadState* __tstate = wxPyBeginAllowThreads();
22793 ((wxWindow const *)arg1)->GetClientSize(arg2,arg3);
22794
22795 wxPyEndAllowThreads(__tstate);
22796 if (PyErr_Occurred()) SWIG_fail;
22797 }
22798 Py_INCREF(Py_None); resultobj = Py_None;
22799 {
22800 PyObject *o = PyInt_FromLong((long) (*arg2));
22801 resultobj = t_output_helper(resultobj,o);
22802 }
22803 {
22804 PyObject *o = PyInt_FromLong((long) (*arg3));
22805 resultobj = t_output_helper(resultobj,o);
22806 }
22807 return resultobj;
22808 fail:
22809 return NULL;
22810}
22811
22812
22813static PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
22814 PyObject *resultobj;
22815 wxWindow *arg1 = (wxWindow *) 0 ;
22816 wxPoint result;
22817 PyObject * obj0 = 0 ;
22818 char *kwnames[] = {
22819 (char *) "self", NULL
22820 };
22821
22822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientAreaOrigin",kwnames,&obj0)) goto fail;
22823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22825 {
22826 PyThreadState* __tstate = wxPyBeginAllowThreads();
22827 result = ((wxWindow const *)arg1)->GetClientAreaOrigin();
22828
22829 wxPyEndAllowThreads(__tstate);
22830 if (PyErr_Occurred()) SWIG_fail;
22831 }
22832 {
22833 wxPoint * resultptr;
22834 resultptr = new wxPoint((wxPoint &) result);
22835 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
22836 }
22837 return resultobj;
22838 fail:
22839 return NULL;
22840}
22841
22842
22843static PyObject *_wrap_Window_GetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) {
22844 PyObject *resultobj;
22845 wxWindow *arg1 = (wxWindow *) 0 ;
22846 wxRect result;
22847 PyObject * obj0 = 0 ;
22848 char *kwnames[] = {
22849 (char *) "self", NULL
22850 };
22851
22852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientRect",kwnames,&obj0)) goto fail;
22853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22855 {
22856 PyThreadState* __tstate = wxPyBeginAllowThreads();
22857 result = ((wxWindow const *)arg1)->GetClientRect();
22858
22859 wxPyEndAllowThreads(__tstate);
22860 if (PyErr_Occurred()) SWIG_fail;
22861 }
22862 {
22863 wxRect * resultptr;
22864 resultptr = new wxRect((wxRect &) result);
22865 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
22866 }
22867 return resultobj;
22868 fail:
22869 return NULL;
22870}
22871
22872
22873static PyObject *_wrap_Window_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22874 PyObject *resultobj;
22875 wxWindow *arg1 = (wxWindow *) 0 ;
22876 wxSize result;
22877 PyObject * obj0 = 0 ;
22878 char *kwnames[] = {
22879 (char *) "self", NULL
22880 };
22881
22882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSize",kwnames,&obj0)) goto fail;
22883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22885 {
22886 PyThreadState* __tstate = wxPyBeginAllowThreads();
22887 result = ((wxWindow const *)arg1)->GetBestSize();
22888
22889 wxPyEndAllowThreads(__tstate);
22890 if (PyErr_Occurred()) SWIG_fail;
22891 }
22892 {
22893 wxSize * resultptr;
22894 resultptr = new wxSize((wxSize &) result);
22895 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
22896 }
22897 return resultobj;
22898 fail:
22899 return NULL;
22900}
22901
22902
22903static PyObject *_wrap_Window_GetBestSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
22904 PyObject *resultobj;
22905 wxWindow *arg1 = (wxWindow *) 0 ;
22906 int *arg2 = (int *) 0 ;
22907 int *arg3 = (int *) 0 ;
22908 int temp2 ;
22909 int temp3 ;
22910 PyObject * obj0 = 0 ;
22911 char *kwnames[] = {
22912 (char *) "self", NULL
22913 };
22914
22915 arg2 = &temp2;
22916 arg3 = &temp3;
22917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSizeTuple",kwnames,&obj0)) goto fail;
22918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22920 {
22921 PyThreadState* __tstate = wxPyBeginAllowThreads();
22922 ((wxWindow const *)arg1)->GetBestSize(arg2,arg3);
22923
22924 wxPyEndAllowThreads(__tstate);
22925 if (PyErr_Occurred()) SWIG_fail;
22926 }
22927 Py_INCREF(Py_None); resultobj = Py_None;
22928 {
22929 PyObject *o = PyInt_FromLong((long) (*arg2));
22930 resultobj = t_output_helper(resultobj,o);
22931 }
22932 {
22933 PyObject *o = PyInt_FromLong((long) (*arg3));
22934 resultobj = t_output_helper(resultobj,o);
22935 }
22936 return resultobj;
22937 fail:
22938 return NULL;
22939}
22940
22941
a001823c
RD
22942static PyObject *_wrap_Window_InvalidateBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22943 PyObject *resultobj;
22944 wxWindow *arg1 = (wxWindow *) 0 ;
22945 PyObject * obj0 = 0 ;
22946 char *kwnames[] = {
22947 (char *) "self", NULL
22948 };
22949
22950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InvalidateBestSize",kwnames,&obj0)) goto fail;
22951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22953 {
22954 PyThreadState* __tstate = wxPyBeginAllowThreads();
22955 (arg1)->InvalidateBestSize();
22956
22957 wxPyEndAllowThreads(__tstate);
22958 if (PyErr_Occurred()) SWIG_fail;
22959 }
22960 Py_INCREF(Py_None); resultobj = Py_None;
22961 return resultobj;
22962 fail:
22963 return NULL;
22964}
22965
22966
22967static PyObject *_wrap_Window_GetBestFittingSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22968 PyObject *resultobj;
22969 wxWindow *arg1 = (wxWindow *) 0 ;
22970 wxSize result;
22971 PyObject * obj0 = 0 ;
22972 char *kwnames[] = {
22973 (char *) "self", NULL
22974 };
22975
22976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestFittingSize",kwnames,&obj0)) goto fail;
22977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22979 {
22980 PyThreadState* __tstate = wxPyBeginAllowThreads();
22981 result = ((wxWindow const *)arg1)->GetBestFittingSize();
22982
22983 wxPyEndAllowThreads(__tstate);
22984 if (PyErr_Occurred()) SWIG_fail;
22985 }
22986 {
22987 wxSize * resultptr;
22988 resultptr = new wxSize((wxSize &) result);
22989 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
22990 }
22991 return resultobj;
22992 fail:
22993 return NULL;
22994}
22995
22996
d55e5bfc
RD
22997static PyObject *_wrap_Window_GetAdjustedBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22998 PyObject *resultobj;
22999 wxWindow *arg1 = (wxWindow *) 0 ;
23000 wxSize result;
23001 PyObject * obj0 = 0 ;
23002 char *kwnames[] = {
23003 (char *) "self", NULL
23004 };
23005
23006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAdjustedBestSize",kwnames,&obj0)) goto fail;
23007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23009 {
23010 PyThreadState* __tstate = wxPyBeginAllowThreads();
23011 result = ((wxWindow const *)arg1)->GetAdjustedBestSize();
23012
23013 wxPyEndAllowThreads(__tstate);
23014 if (PyErr_Occurred()) SWIG_fail;
23015 }
23016 {
23017 wxSize * resultptr;
23018 resultptr = new wxSize((wxSize &) result);
23019 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
23020 }
23021 return resultobj;
23022 fail:
23023 return NULL;
23024}
23025
23026
23027static PyObject *_wrap_Window_Center(PyObject *self, PyObject *args, PyObject *kwargs) {
23028 PyObject *resultobj;
23029 wxWindow *arg1 = (wxWindow *) 0 ;
23030 int arg2 = (int) wxBOTH ;
23031 PyObject * obj0 = 0 ;
23032 PyObject * obj1 = 0 ;
23033 char *kwnames[] = {
23034 (char *) "self",(char *) "direction", NULL
23035 };
23036
23037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Center",kwnames,&obj0,&obj1)) goto fail;
23038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23040 if (obj1) {
23041 arg2 = (int) SWIG_AsInt(obj1);
23042 if (PyErr_Occurred()) SWIG_fail;
23043 }
23044 {
23045 PyThreadState* __tstate = wxPyBeginAllowThreads();
23046 (arg1)->Center(arg2);
23047
23048 wxPyEndAllowThreads(__tstate);
23049 if (PyErr_Occurred()) SWIG_fail;
23050 }
23051 Py_INCREF(Py_None); resultobj = Py_None;
23052 return resultobj;
23053 fail:
23054 return NULL;
23055}
23056
23057
23058static PyObject *_wrap_Window_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) {
23059 PyObject *resultobj;
23060 wxWindow *arg1 = (wxWindow *) 0 ;
23061 int arg2 = (int) wxBOTH ;
23062 PyObject * obj0 = 0 ;
23063 PyObject * obj1 = 0 ;
23064 char *kwnames[] = {
23065 (char *) "self",(char *) "dir", NULL
23066 };
23067
23068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnScreen",kwnames,&obj0,&obj1)) goto fail;
23069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23071 if (obj1) {
23072 arg2 = (int) SWIG_AsInt(obj1);
23073 if (PyErr_Occurred()) SWIG_fail;
23074 }
23075 {
23076 PyThreadState* __tstate = wxPyBeginAllowThreads();
23077 (arg1)->CenterOnScreen(arg2);
23078
23079 wxPyEndAllowThreads(__tstate);
23080 if (PyErr_Occurred()) SWIG_fail;
23081 }
23082 Py_INCREF(Py_None); resultobj = Py_None;
23083 return resultobj;
23084 fail:
23085 return NULL;
23086}
23087
23088
23089static PyObject *_wrap_Window_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) {
23090 PyObject *resultobj;
23091 wxWindow *arg1 = (wxWindow *) 0 ;
23092 int arg2 = (int) wxBOTH ;
23093 PyObject * obj0 = 0 ;
23094 PyObject * obj1 = 0 ;
23095 char *kwnames[] = {
23096 (char *) "self",(char *) "dir", NULL
23097 };
23098
23099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnParent",kwnames,&obj0,&obj1)) goto fail;
23100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23102 if (obj1) {
23103 arg2 = (int) SWIG_AsInt(obj1);
23104 if (PyErr_Occurred()) SWIG_fail;
23105 }
23106 {
23107 PyThreadState* __tstate = wxPyBeginAllowThreads();
23108 (arg1)->CenterOnParent(arg2);
23109
23110 wxPyEndAllowThreads(__tstate);
23111 if (PyErr_Occurred()) SWIG_fail;
23112 }
23113 Py_INCREF(Py_None); resultobj = Py_None;
23114 return resultobj;
23115 fail:
23116 return NULL;
23117}
23118
23119
23120static PyObject *_wrap_Window_Fit(PyObject *self, PyObject *args, PyObject *kwargs) {
23121 PyObject *resultobj;
23122 wxWindow *arg1 = (wxWindow *) 0 ;
23123 PyObject * obj0 = 0 ;
23124 char *kwnames[] = {
23125 (char *) "self", NULL
23126 };
23127
23128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Fit",kwnames,&obj0)) goto fail;
23129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23131 {
23132 PyThreadState* __tstate = wxPyBeginAllowThreads();
23133 (arg1)->Fit();
23134
23135 wxPyEndAllowThreads(__tstate);
23136 if (PyErr_Occurred()) SWIG_fail;
23137 }
23138 Py_INCREF(Py_None); resultobj = Py_None;
23139 return resultobj;
23140 fail:
23141 return NULL;
23142}
23143
23144
23145static PyObject *_wrap_Window_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) {
23146 PyObject *resultobj;
23147 wxWindow *arg1 = (wxWindow *) 0 ;
23148 PyObject * obj0 = 0 ;
23149 char *kwnames[] = {
23150 (char *) "self", NULL
23151 };
23152
23153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FitInside",kwnames,&obj0)) goto fail;
23154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23156 {
23157 PyThreadState* __tstate = wxPyBeginAllowThreads();
23158 (arg1)->FitInside();
23159
23160 wxPyEndAllowThreads(__tstate);
23161 if (PyErr_Occurred()) SWIG_fail;
23162 }
23163 Py_INCREF(Py_None); resultobj = Py_None;
23164 return resultobj;
23165 fail:
23166 return NULL;
23167}
23168
23169
23170static PyObject *_wrap_Window_SetSizeHints__SWIG_0(PyObject *self, PyObject *args) {
908b74cd
RD
23171 PyObject *resultobj;
23172 wxWindow *arg1 = (wxWindow *) 0 ;
23173 wxSize *arg2 = 0 ;
23174 wxSize const &arg3_defvalue = wxDefaultSize ;
23175 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
23176 wxSize const &arg4_defvalue = wxDefaultSize ;
23177 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
23178 wxSize temp2 ;
23179 wxSize temp3 ;
23180 wxSize temp4 ;
23181 PyObject * obj0 = 0 ;
23182 PyObject * obj1 = 0 ;
23183 PyObject * obj2 = 0 ;
23184 PyObject * obj3 = 0 ;
23185
23186 if(!PyArg_ParseTuple(args,(char *)"OO|OO:Window_SetSizeHints",&obj0,&obj1,&obj2,&obj3)) goto fail;
23187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23189 {
23190 arg2 = &temp2;
23191 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
23192 }
23193 if (obj2) {
23194 {
23195 arg3 = &temp3;
23196 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
23197 }
23198 }
23199 if (obj3) {
23200 {
23201 arg4 = &temp4;
23202 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
23203 }
23204 }
23205 {
23206 PyThreadState* __tstate = wxPyBeginAllowThreads();
23207 (arg1)->SetSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3,(wxSize const &)*arg4);
23208
23209 wxPyEndAllowThreads(__tstate);
23210 if (PyErr_Occurred()) SWIG_fail;
23211 }
23212 Py_INCREF(Py_None); resultobj = Py_None;
23213 return resultobj;
23214 fail:
23215 return NULL;
23216}
23217
23218
23219static PyObject *_wrap_Window_SetSizeHints__SWIG_1(PyObject *self, PyObject *args) {
d55e5bfc
RD
23220 PyObject *resultobj;
23221 wxWindow *arg1 = (wxWindow *) 0 ;
23222 int arg2 ;
23223 int arg3 ;
23224 int arg4 = (int) -1 ;
23225 int arg5 = (int) -1 ;
23226 int arg6 = (int) -1 ;
23227 int arg7 = (int) -1 ;
23228 PyObject * obj0 = 0 ;
23229 PyObject * obj1 = 0 ;
23230 PyObject * obj2 = 0 ;
23231 PyObject * obj3 = 0 ;
23232 PyObject * obj4 = 0 ;
23233 PyObject * obj5 = 0 ;
23234 PyObject * obj6 = 0 ;
23235
23236 if(!PyArg_ParseTuple(args,(char *)"OOO|OOOO:Window_SetSizeHints",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
23237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23239 arg2 = (int) SWIG_AsInt(obj1);
23240 if (PyErr_Occurred()) SWIG_fail;
23241 arg3 = (int) SWIG_AsInt(obj2);
23242 if (PyErr_Occurred()) SWIG_fail;
23243 if (obj3) {
23244 arg4 = (int) SWIG_AsInt(obj3);
23245 if (PyErr_Occurred()) SWIG_fail;
23246 }
23247 if (obj4) {
23248 arg5 = (int) SWIG_AsInt(obj4);
23249 if (PyErr_Occurred()) SWIG_fail;
23250 }
23251 if (obj5) {
23252 arg6 = (int) SWIG_AsInt(obj5);
23253 if (PyErr_Occurred()) SWIG_fail;
23254 }
23255 if (obj6) {
23256 arg7 = (int) SWIG_AsInt(obj6);
23257 if (PyErr_Occurred()) SWIG_fail;
23258 }
23259 {
23260 PyThreadState* __tstate = wxPyBeginAllowThreads();
23261 (arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7);
23262
23263 wxPyEndAllowThreads(__tstate);
23264 if (PyErr_Occurred()) SWIG_fail;
23265 }
23266 Py_INCREF(Py_None); resultobj = Py_None;
23267 return resultobj;
23268 fail:
23269 return NULL;
23270}
23271
23272
d55e5bfc
RD
23273static PyObject *_wrap_Window_SetSizeHints(PyObject *self, PyObject *args) {
23274 int argc;
23275 PyObject *argv[8];
23276 int ii;
23277
23278 argc = PyObject_Length(args);
23279 for (ii = 0; (ii < argc) && (ii < 7); ii++) {
23280 argv[ii] = PyTuple_GetItem(args,ii);
23281 }
23282 if ((argc >= 2) && (argc <= 4)) {
23283 int _v;
23284 {
23285 void *ptr;
23286 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
23287 _v = 0;
23288 PyErr_Clear();
23289 } else {
23290 _v = 1;
23291 }
23292 }
23293 if (_v) {
23294 {
23295 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
23296 }
23297 if (_v) {
23298 if (argc <= 2) {
908b74cd 23299 return _wrap_Window_SetSizeHints__SWIG_0(self,args);
d55e5bfc
RD
23300 }
23301 {
23302 _v = wxPySimple_typecheck(argv[2], wxT("wxSize"), 2);
23303 }
23304 if (_v) {
23305 if (argc <= 3) {
908b74cd 23306 return _wrap_Window_SetSizeHints__SWIG_0(self,args);
d55e5bfc
RD
23307 }
23308 {
23309 _v = wxPySimple_typecheck(argv[3], wxT("wxSize"), 2);
23310 }
23311 if (_v) {
908b74cd 23312 return _wrap_Window_SetSizeHints__SWIG_0(self,args);
d55e5bfc
RD
23313 }
23314 }
23315 }
23316 }
23317 }
23318 if ((argc >= 3) && (argc <= 7)) {
23319 int _v;
23320 {
23321 void *ptr;
23322 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
23323 _v = 0;
23324 PyErr_Clear();
23325 } else {
23326 _v = 1;
23327 }
23328 }
23329 if (_v) {
23330 _v = SWIG_CheckInt(argv[1]);
23331 if (_v) {
23332 _v = SWIG_CheckInt(argv[2]);
23333 if (_v) {
23334 if (argc <= 3) {
908b74cd 23335 return _wrap_Window_SetSizeHints__SWIG_1(self,args);
d55e5bfc
RD
23336 }
23337 _v = SWIG_CheckInt(argv[3]);
23338 if (_v) {
23339 if (argc <= 4) {
908b74cd 23340 return _wrap_Window_SetSizeHints__SWIG_1(self,args);
d55e5bfc
RD
23341 }
23342 _v = SWIG_CheckInt(argv[4]);
23343 if (_v) {
23344 if (argc <= 5) {
908b74cd 23345 return _wrap_Window_SetSizeHints__SWIG_1(self,args);
d55e5bfc
RD
23346 }
23347 _v = SWIG_CheckInt(argv[5]);
23348 if (_v) {
23349 if (argc <= 6) {
908b74cd 23350 return _wrap_Window_SetSizeHints__SWIG_1(self,args);
d55e5bfc
RD
23351 }
23352 _v = SWIG_CheckInt(argv[6]);
23353 if (_v) {
908b74cd 23354 return _wrap_Window_SetSizeHints__SWIG_1(self,args);
d55e5bfc
RD
23355 }
23356 }
23357 }
23358 }
23359 }
23360 }
23361 }
23362 }
23363
23364 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_SetSizeHints'");
23365 return NULL;
23366}
23367
23368
23369static PyObject *_wrap_Window_SetVirtualSizeHints__SWIG_0(PyObject *self, PyObject *args) {
23370 PyObject *resultobj;
23371 wxWindow *arg1 = (wxWindow *) 0 ;
908b74cd
RD
23372 wxSize *arg2 = 0 ;
23373 wxSize const &arg3_defvalue = wxDefaultSize ;
23374 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
23375 wxSize temp2 ;
23376 wxSize temp3 ;
d55e5bfc
RD
23377 PyObject * obj0 = 0 ;
23378 PyObject * obj1 = 0 ;
23379 PyObject * obj2 = 0 ;
d55e5bfc 23380
908b74cd 23381 if(!PyArg_ParseTuple(args,(char *)"OO|O:Window_SetVirtualSizeHints",&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
23382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
908b74cd
RD
23384 {
23385 arg2 = &temp2;
23386 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 23387 }
908b74cd
RD
23388 if (obj2) {
23389 {
23390 arg3 = &temp3;
23391 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
23392 }
d55e5bfc
RD
23393 }
23394 {
23395 PyThreadState* __tstate = wxPyBeginAllowThreads();
908b74cd 23396 (arg1)->SetVirtualSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3);
d55e5bfc
RD
23397
23398 wxPyEndAllowThreads(__tstate);
23399 if (PyErr_Occurred()) SWIG_fail;
23400 }
23401 Py_INCREF(Py_None); resultobj = Py_None;
23402 return resultobj;
23403 fail:
23404 return NULL;
23405}
23406
23407
23408static PyObject *_wrap_Window_SetVirtualSizeHints__SWIG_1(PyObject *self, PyObject *args) {
23409 PyObject *resultobj;
23410 wxWindow *arg1 = (wxWindow *) 0 ;
908b74cd
RD
23411 int arg2 ;
23412 int arg3 ;
23413 int arg4 = (int) -1 ;
23414 int arg5 = (int) -1 ;
d55e5bfc
RD
23415 PyObject * obj0 = 0 ;
23416 PyObject * obj1 = 0 ;
23417 PyObject * obj2 = 0 ;
908b74cd
RD
23418 PyObject * obj3 = 0 ;
23419 PyObject * obj4 = 0 ;
d55e5bfc 23420
908b74cd 23421 if(!PyArg_ParseTuple(args,(char *)"OOO|OO:Window_SetVirtualSizeHints",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
23422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
908b74cd
RD
23424 arg2 = (int) SWIG_AsInt(obj1);
23425 if (PyErr_Occurred()) SWIG_fail;
23426 arg3 = (int) SWIG_AsInt(obj2);
23427 if (PyErr_Occurred()) SWIG_fail;
23428 if (obj3) {
23429 arg4 = (int) SWIG_AsInt(obj3);
23430 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 23431 }
908b74cd
RD
23432 if (obj4) {
23433 arg5 = (int) SWIG_AsInt(obj4);
23434 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
23435 }
23436 {
23437 PyThreadState* __tstate = wxPyBeginAllowThreads();
908b74cd 23438 (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5);
d55e5bfc
RD
23439
23440 wxPyEndAllowThreads(__tstate);
23441 if (PyErr_Occurred()) SWIG_fail;
23442 }
23443 Py_INCREF(Py_None); resultobj = Py_None;
23444 return resultobj;
23445 fail:
23446 return NULL;
23447}
23448
23449
23450static PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *self, PyObject *args) {
23451 int argc;
23452 PyObject *argv[6];
23453 int ii;
23454
23455 argc = PyObject_Length(args);
23456 for (ii = 0; (ii < argc) && (ii < 5); ii++) {
23457 argv[ii] = PyTuple_GetItem(args,ii);
23458 }
23459 if ((argc >= 2) && (argc <= 3)) {
23460 int _v;
23461 {
23462 void *ptr;
23463 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
23464 _v = 0;
23465 PyErr_Clear();
23466 } else {
23467 _v = 1;
23468 }
23469 }
23470 if (_v) {
23471 {
23472 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
23473 }
23474 if (_v) {
23475 if (argc <= 2) {
908b74cd 23476 return _wrap_Window_SetVirtualSizeHints__SWIG_0(self,args);
d55e5bfc
RD
23477 }
23478 {
23479 _v = wxPySimple_typecheck(argv[2], wxT("wxSize"), 2);
23480 }
23481 if (_v) {
908b74cd 23482 return _wrap_Window_SetVirtualSizeHints__SWIG_0(self,args);
d55e5bfc
RD
23483 }
23484 }
23485 }
23486 }
23487 if ((argc >= 3) && (argc <= 5)) {
23488 int _v;
23489 {
23490 void *ptr;
23491 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
23492 _v = 0;
23493 PyErr_Clear();
23494 } else {
23495 _v = 1;
23496 }
23497 }
23498 if (_v) {
23499 _v = SWIG_CheckInt(argv[1]);
23500 if (_v) {
23501 _v = SWIG_CheckInt(argv[2]);
23502 if (_v) {
23503 if (argc <= 3) {
908b74cd 23504 return _wrap_Window_SetVirtualSizeHints__SWIG_1(self,args);
d55e5bfc
RD
23505 }
23506 _v = SWIG_CheckInt(argv[3]);
23507 if (_v) {
23508 if (argc <= 4) {
908b74cd 23509 return _wrap_Window_SetVirtualSizeHints__SWIG_1(self,args);
d55e5bfc
RD
23510 }
23511 _v = SWIG_CheckInt(argv[4]);
23512 if (_v) {
908b74cd 23513 return _wrap_Window_SetVirtualSizeHints__SWIG_1(self,args);
d55e5bfc
RD
23514 }
23515 }
23516 }
23517 }
23518 }
23519 }
23520
23521 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_SetVirtualSizeHints'");
23522 return NULL;
23523}
23524
23525
908b74cd 23526static PyObject *_wrap_Window_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23527 PyObject *resultobj;
23528 wxWindow *arg1 = (wxWindow *) 0 ;
908b74cd 23529 wxSize result;
d55e5bfc
RD
23530 PyObject * obj0 = 0 ;
23531 char *kwnames[] = {
23532 (char *) "self", NULL
23533 };
23534
908b74cd 23535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxSize",kwnames,&obj0)) goto fail;
d55e5bfc
RD
23536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23538 {
23539 PyThreadState* __tstate = wxPyBeginAllowThreads();
908b74cd 23540 result = ((wxWindow const *)arg1)->GetMaxSize();
d55e5bfc
RD
23541
23542 wxPyEndAllowThreads(__tstate);
23543 if (PyErr_Occurred()) SWIG_fail;
23544 }
908b74cd
RD
23545 {
23546 wxSize * resultptr;
23547 resultptr = new wxSize((wxSize &) result);
23548 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
23549 }
d55e5bfc
RD
23550 return resultobj;
23551 fail:
23552 return NULL;
23553}
23554
23555
908b74cd 23556static PyObject *_wrap_Window_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23557 PyObject *resultobj;
23558 wxWindow *arg1 = (wxWindow *) 0 ;
908b74cd 23559 wxSize 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_GetMinSize",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 = ((wxWindow const *)arg1)->GetMinSize();
d55e5bfc
RD
23571
23572 wxPyEndAllowThreads(__tstate);
23573 if (PyErr_Occurred()) SWIG_fail;
23574 }
908b74cd
RD
23575 {
23576 wxSize * resultptr;
23577 resultptr = new wxSize((wxSize &) result);
23578 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
23579 }
d55e5bfc
RD
23580 return resultobj;
23581 fail:
23582 return NULL;
23583}
23584
23585
908b74cd
RD
23586static PyObject *_wrap_Window_SetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) {
23587 PyObject *resultobj;
23588 wxWindow *arg1 = (wxWindow *) 0 ;
23589 wxSize *arg2 = 0 ;
23590 wxSize temp2 ;
23591 PyObject * obj0 = 0 ;
23592 PyObject * obj1 = 0 ;
23593 char *kwnames[] = {
23594 (char *) "self",(char *) "minSize", NULL
23595 };
23596
23597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMinSize",kwnames,&obj0,&obj1)) goto fail;
23598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23600 {
23601 arg2 = &temp2;
23602 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
23603 }
23604 {
23605 PyThreadState* __tstate = wxPyBeginAllowThreads();
23606 (arg1)->SetMinSize((wxSize const &)*arg2);
23607
23608 wxPyEndAllowThreads(__tstate);
23609 if (PyErr_Occurred()) SWIG_fail;
23610 }
23611 Py_INCREF(Py_None); resultobj = Py_None;
23612 return resultobj;
23613 fail:
23614 return NULL;
23615}
23616
23617
23618static PyObject *_wrap_Window_SetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) {
23619 PyObject *resultobj;
23620 wxWindow *arg1 = (wxWindow *) 0 ;
23621 wxSize *arg2 = 0 ;
23622 wxSize temp2 ;
23623 PyObject * obj0 = 0 ;
23624 PyObject * obj1 = 0 ;
23625 char *kwnames[] = {
23626 (char *) "self",(char *) "maxSize", NULL
23627 };
23628
23629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMaxSize",kwnames,&obj0,&obj1)) goto fail;
23630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23632 {
23633 arg2 = &temp2;
23634 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
23635 }
23636 {
23637 PyThreadState* __tstate = wxPyBeginAllowThreads();
23638 (arg1)->SetMaxSize((wxSize const &)*arg2);
23639
23640 wxPyEndAllowThreads(__tstate);
23641 if (PyErr_Occurred()) SWIG_fail;
23642 }
23643 Py_INCREF(Py_None); resultobj = Py_None;
23644 return resultobj;
23645 fail:
23646 return NULL;
23647}
23648
23649
23650static PyObject *_wrap_Window_GetMinWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23651 PyObject *resultobj;
23652 wxWindow *arg1 = (wxWindow *) 0 ;
23653 int result;
23654 PyObject * obj0 = 0 ;
23655 char *kwnames[] = {
23656 (char *) "self", NULL
23657 };
23658
908b74cd 23659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinWidth",kwnames,&obj0)) goto fail;
d55e5bfc
RD
23660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23662 {
23663 PyThreadState* __tstate = wxPyBeginAllowThreads();
908b74cd 23664 result = (int)((wxWindow const *)arg1)->GetMinWidth();
d55e5bfc
RD
23665
23666 wxPyEndAllowThreads(__tstate);
23667 if (PyErr_Occurred()) SWIG_fail;
23668 }
23669 resultobj = SWIG_FromInt((int)result);
23670 return resultobj;
23671 fail:
23672 return NULL;
23673}
23674
23675
908b74cd 23676static PyObject *_wrap_Window_GetMinHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23677 PyObject *resultobj;
23678 wxWindow *arg1 = (wxWindow *) 0 ;
23679 int result;
23680 PyObject * obj0 = 0 ;
23681 char *kwnames[] = {
23682 (char *) "self", NULL
23683 };
23684
908b74cd 23685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinHeight",kwnames,&obj0)) goto fail;
d55e5bfc
RD
23686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23688 {
23689 PyThreadState* __tstate = wxPyBeginAllowThreads();
908b74cd 23690 result = (int)((wxWindow const *)arg1)->GetMinHeight();
d55e5bfc
RD
23691
23692 wxPyEndAllowThreads(__tstate);
23693 if (PyErr_Occurred()) SWIG_fail;
23694 }
23695 resultobj = SWIG_FromInt((int)result);
23696 return resultobj;
23697 fail:
23698 return NULL;
23699}
23700
23701
908b74cd 23702static PyObject *_wrap_Window_GetMaxWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23703 PyObject *resultobj;
23704 wxWindow *arg1 = (wxWindow *) 0 ;
908b74cd 23705 int result;
d55e5bfc
RD
23706 PyObject * obj0 = 0 ;
23707 char *kwnames[] = {
23708 (char *) "self", NULL
23709 };
23710
908b74cd 23711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxWidth",kwnames,&obj0)) goto fail;
d55e5bfc
RD
23712 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23713 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23714 {
23715 PyThreadState* __tstate = wxPyBeginAllowThreads();
908b74cd 23716 result = (int)((wxWindow const *)arg1)->GetMaxWidth();
d55e5bfc
RD
23717
23718 wxPyEndAllowThreads(__tstate);
23719 if (PyErr_Occurred()) SWIG_fail;
23720 }
908b74cd 23721 resultobj = SWIG_FromInt((int)result);
d55e5bfc
RD
23722 return resultobj;
23723 fail:
23724 return NULL;
23725}
23726
23727
908b74cd 23728static PyObject *_wrap_Window_GetMaxHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23729 PyObject *resultobj;
23730 wxWindow *arg1 = (wxWindow *) 0 ;
908b74cd 23731 int result;
d55e5bfc
RD
23732 PyObject * obj0 = 0 ;
23733 char *kwnames[] = {
23734 (char *) "self", NULL
23735 };
23736
908b74cd 23737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxHeight",kwnames,&obj0)) goto fail;
d55e5bfc
RD
23738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23740 {
23741 PyThreadState* __tstate = wxPyBeginAllowThreads();
908b74cd 23742 result = (int)((wxWindow const *)arg1)->GetMaxHeight();
d55e5bfc
RD
23743
23744 wxPyEndAllowThreads(__tstate);
23745 if (PyErr_Occurred()) SWIG_fail;
23746 }
908b74cd 23747 resultobj = SWIG_FromInt((int)result);
d55e5bfc
RD
23748 return resultobj;
23749 fail:
23750 return NULL;
23751}
23752
23753
23754static PyObject *_wrap_Window_SetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
23755 PyObject *resultobj;
23756 wxWindow *arg1 = (wxWindow *) 0 ;
23757 wxSize *arg2 = 0 ;
23758 wxSize temp2 ;
23759 PyObject * obj0 = 0 ;
23760 PyObject * obj1 = 0 ;
23761 char *kwnames[] = {
23762 (char *) "self",(char *) "size", NULL
23763 };
23764
23765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) goto fail;
23766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23768 {
23769 arg2 = &temp2;
23770 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
23771 }
23772 {
23773 PyThreadState* __tstate = wxPyBeginAllowThreads();
23774 (arg1)->SetVirtualSize((wxSize const &)*arg2);
23775
23776 wxPyEndAllowThreads(__tstate);
23777 if (PyErr_Occurred()) SWIG_fail;
23778 }
23779 Py_INCREF(Py_None); resultobj = Py_None;
23780 return resultobj;
23781 fail:
23782 return NULL;
23783}
23784
23785
23786static PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
23787 PyObject *resultobj;
23788 wxWindow *arg1 = (wxWindow *) 0 ;
23789 int arg2 ;
23790 int arg3 ;
23791 PyObject * obj0 = 0 ;
23792 PyObject * obj1 = 0 ;
23793 PyObject * obj2 = 0 ;
23794 char *kwnames[] = {
23795 (char *) "self",(char *) "w",(char *) "h", NULL
23796 };
23797
23798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetVirtualSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
23799 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23801 arg2 = (int) SWIG_AsInt(obj1);
23802 if (PyErr_Occurred()) SWIG_fail;
23803 arg3 = (int) SWIG_AsInt(obj2);
23804 if (PyErr_Occurred()) SWIG_fail;
23805 {
23806 PyThreadState* __tstate = wxPyBeginAllowThreads();
23807 (arg1)->SetVirtualSize(arg2,arg3);
23808
23809 wxPyEndAllowThreads(__tstate);
23810 if (PyErr_Occurred()) SWIG_fail;
23811 }
23812 Py_INCREF(Py_None); resultobj = Py_None;
23813 return resultobj;
23814 fail:
23815 return NULL;
23816}
23817
23818
23819static PyObject *_wrap_Window_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
23820 PyObject *resultobj;
23821 wxWindow *arg1 = (wxWindow *) 0 ;
23822 wxSize result;
23823 PyObject * obj0 = 0 ;
23824 char *kwnames[] = {
23825 (char *) "self", NULL
23826 };
23827
23828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSize",kwnames,&obj0)) goto fail;
23829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23831 {
23832 PyThreadState* __tstate = wxPyBeginAllowThreads();
23833 result = ((wxWindow const *)arg1)->GetVirtualSize();
23834
23835 wxPyEndAllowThreads(__tstate);
23836 if (PyErr_Occurred()) SWIG_fail;
23837 }
23838 {
23839 wxSize * resultptr;
23840 resultptr = new wxSize((wxSize &) result);
23841 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
23842 }
23843 return resultobj;
23844 fail:
23845 return NULL;
23846}
23847
23848
23849static PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
23850 PyObject *resultobj;
23851 wxWindow *arg1 = (wxWindow *) 0 ;
23852 int *arg2 = (int *) 0 ;
23853 int *arg3 = (int *) 0 ;
23854 int temp2 ;
23855 int temp3 ;
23856 PyObject * obj0 = 0 ;
23857 char *kwnames[] = {
23858 (char *) "self", NULL
23859 };
23860
23861 arg2 = &temp2;
23862 arg3 = &temp3;
23863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSizeTuple",kwnames,&obj0)) goto fail;
23864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23866 {
23867 PyThreadState* __tstate = wxPyBeginAllowThreads();
23868 ((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3);
23869
23870 wxPyEndAllowThreads(__tstate);
23871 if (PyErr_Occurred()) SWIG_fail;
23872 }
23873 Py_INCREF(Py_None); resultobj = Py_None;
23874 {
23875 PyObject *o = PyInt_FromLong((long) (*arg2));
23876 resultobj = t_output_helper(resultobj,o);
23877 }
23878 {
23879 PyObject *o = PyInt_FromLong((long) (*arg3));
23880 resultobj = t_output_helper(resultobj,o);
23881 }
23882 return resultobj;
23883 fail:
23884 return NULL;
23885}
23886
23887
23888static PyObject *_wrap_Window_GetBestVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
23889 PyObject *resultobj;
23890 wxWindow *arg1 = (wxWindow *) 0 ;
23891 wxSize result;
23892 PyObject * obj0 = 0 ;
23893 char *kwnames[] = {
23894 (char *) "self", NULL
23895 };
23896
23897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestVirtualSize",kwnames,&obj0)) goto fail;
23898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23900 {
23901 PyThreadState* __tstate = wxPyBeginAllowThreads();
23902 result = ((wxWindow const *)arg1)->GetBestVirtualSize();
23903
23904 wxPyEndAllowThreads(__tstate);
23905 if (PyErr_Occurred()) SWIG_fail;
23906 }
23907 {
23908 wxSize * resultptr;
23909 resultptr = new wxSize((wxSize &) result);
23910 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
23911 }
23912 return resultobj;
23913 fail:
23914 return NULL;
23915}
23916
23917
23918static PyObject *_wrap_Window_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
23919 PyObject *resultobj;
23920 wxWindow *arg1 = (wxWindow *) 0 ;
23921 bool arg2 = (bool) True ;
23922 bool result;
23923 PyObject * obj0 = 0 ;
23924 PyObject * obj1 = 0 ;
23925 char *kwnames[] = {
23926 (char *) "self",(char *) "show", NULL
23927 };
23928
23929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) goto fail;
23930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23932 if (obj1) {
23933 arg2 = (bool) SWIG_AsBool(obj1);
23934 if (PyErr_Occurred()) SWIG_fail;
23935 }
23936 {
23937 PyThreadState* __tstate = wxPyBeginAllowThreads();
23938 result = (bool)(arg1)->Show(arg2);
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_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
23953 PyObject *resultobj;
23954 wxWindow *arg1 = (wxWindow *) 0 ;
23955 bool result;
23956 PyObject * obj0 = 0 ;
23957 char *kwnames[] = {
23958 (char *) "self", NULL
23959 };
23960
23961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Hide",kwnames,&obj0)) goto fail;
23962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23964 {
23965 PyThreadState* __tstate = wxPyBeginAllowThreads();
23966 result = (bool)(arg1)->Hide();
23967
23968 wxPyEndAllowThreads(__tstate);
23969 if (PyErr_Occurred()) SWIG_fail;
23970 }
23971 {
23972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23973 }
23974 return resultobj;
23975 fail:
23976 return NULL;
23977}
23978
23979
23980static PyObject *_wrap_Window_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
23981 PyObject *resultobj;
23982 wxWindow *arg1 = (wxWindow *) 0 ;
23983 bool arg2 = (bool) True ;
23984 bool result;
23985 PyObject * obj0 = 0 ;
23986 PyObject * obj1 = 0 ;
23987 char *kwnames[] = {
23988 (char *) "self",(char *) "enable", NULL
23989 };
23990
23991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) goto fail;
23992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23994 if (obj1) {
23995 arg2 = (bool) SWIG_AsBool(obj1);
23996 if (PyErr_Occurred()) SWIG_fail;
23997 }
23998 {
23999 PyThreadState* __tstate = wxPyBeginAllowThreads();
24000 result = (bool)(arg1)->Enable(arg2);
24001
24002 wxPyEndAllowThreads(__tstate);
24003 if (PyErr_Occurred()) SWIG_fail;
24004 }
24005 {
24006 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24007 }
24008 return resultobj;
24009 fail:
24010 return NULL;
24011}
24012
24013
24014static PyObject *_wrap_Window_Disable(PyObject *self, PyObject *args, PyObject *kwargs) {
24015 PyObject *resultobj;
24016 wxWindow *arg1 = (wxWindow *) 0 ;
24017 bool result;
24018 PyObject * obj0 = 0 ;
24019 char *kwnames[] = {
24020 (char *) "self", NULL
24021 };
24022
24023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Disable",kwnames,&obj0)) goto fail;
24024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24026 {
24027 PyThreadState* __tstate = wxPyBeginAllowThreads();
24028 result = (bool)(arg1)->Disable();
24029
24030 wxPyEndAllowThreads(__tstate);
24031 if (PyErr_Occurred()) SWIG_fail;
24032 }
24033 {
24034 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24035 }
24036 return resultobj;
24037 fail:
24038 return NULL;
24039}
24040
24041
24042static PyObject *_wrap_Window_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) {
24043 PyObject *resultobj;
24044 wxWindow *arg1 = (wxWindow *) 0 ;
24045 bool result;
24046 PyObject * obj0 = 0 ;
24047 char *kwnames[] = {
24048 (char *) "self", NULL
24049 };
24050
24051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsShown",kwnames,&obj0)) goto fail;
24052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24054 {
24055 PyThreadState* __tstate = wxPyBeginAllowThreads();
24056 result = (bool)((wxWindow const *)arg1)->IsShown();
24057
24058 wxPyEndAllowThreads(__tstate);
24059 if (PyErr_Occurred()) SWIG_fail;
24060 }
24061 {
24062 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24063 }
24064 return resultobj;
24065 fail:
24066 return NULL;
24067}
24068
24069
24070static PyObject *_wrap_Window_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
24071 PyObject *resultobj;
24072 wxWindow *arg1 = (wxWindow *) 0 ;
24073 bool result;
24074 PyObject * obj0 = 0 ;
24075 char *kwnames[] = {
24076 (char *) "self", NULL
24077 };
24078
24079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsEnabled",kwnames,&obj0)) goto fail;
24080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24082 {
24083 PyThreadState* __tstate = wxPyBeginAllowThreads();
24084 result = (bool)((wxWindow const *)arg1)->IsEnabled();
24085
24086 wxPyEndAllowThreads(__tstate);
24087 if (PyErr_Occurred()) SWIG_fail;
24088 }
24089 {
24090 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24091 }
24092 return resultobj;
24093 fail:
24094 return NULL;
24095}
24096
24097
24098static PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
24099 PyObject *resultobj;
24100 wxWindow *arg1 = (wxWindow *) 0 ;
24101 long arg2 ;
24102 PyObject * obj0 = 0 ;
24103 PyObject * obj1 = 0 ;
24104 char *kwnames[] = {
24105 (char *) "self",(char *) "style", NULL
24106 };
24107
24108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail;
24109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24111 arg2 = (long) SWIG_AsLong(obj1);
24112 if (PyErr_Occurred()) SWIG_fail;
24113 {
24114 PyThreadState* __tstate = wxPyBeginAllowThreads();
24115 (arg1)->SetWindowStyleFlag(arg2);
24116
24117 wxPyEndAllowThreads(__tstate);
24118 if (PyErr_Occurred()) SWIG_fail;
24119 }
24120 Py_INCREF(Py_None); resultobj = Py_None;
24121 return resultobj;
24122 fail:
24123 return NULL;
24124}
24125
24126
24127static PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
24128 PyObject *resultobj;
24129 wxWindow *arg1 = (wxWindow *) 0 ;
24130 long result;
24131 PyObject * obj0 = 0 ;
24132 char *kwnames[] = {
24133 (char *) "self", NULL
24134 };
24135
24136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyleFlag",kwnames,&obj0)) goto fail;
24137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24139 {
24140 PyThreadState* __tstate = wxPyBeginAllowThreads();
24141 result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag();
24142
24143 wxPyEndAllowThreads(__tstate);
24144 if (PyErr_Occurred()) SWIG_fail;
24145 }
24146 resultobj = SWIG_FromLong((long)result);
24147 return resultobj;
24148 fail:
24149 return NULL;
24150}
24151
24152
24153static PyObject *_wrap_Window_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
24154 PyObject *resultobj;
24155 wxWindow *arg1 = (wxWindow *) 0 ;
24156 int arg2 ;
24157 bool result;
24158 PyObject * obj0 = 0 ;
24159 PyObject * obj1 = 0 ;
24160 char *kwnames[] = {
24161 (char *) "self",(char *) "flag", NULL
24162 };
24163
24164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasFlag",kwnames,&obj0,&obj1)) goto fail;
24165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24167 arg2 = (int) SWIG_AsInt(obj1);
24168 if (PyErr_Occurred()) SWIG_fail;
24169 {
24170 PyThreadState* __tstate = wxPyBeginAllowThreads();
24171 result = (bool)((wxWindow const *)arg1)->HasFlag(arg2);
24172
24173 wxPyEndAllowThreads(__tstate);
24174 if (PyErr_Occurred()) SWIG_fail;
24175 }
24176 {
24177 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24178 }
24179 return resultobj;
24180 fail:
24181 return NULL;
24182}
24183
24184
24185static PyObject *_wrap_Window_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) {
24186 PyObject *resultobj;
24187 wxWindow *arg1 = (wxWindow *) 0 ;
24188 bool result;
24189 PyObject * obj0 = 0 ;
24190 char *kwnames[] = {
24191 (char *) "self", NULL
24192 };
24193
24194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsRetained",kwnames,&obj0)) goto fail;
24195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24197 {
24198 PyThreadState* __tstate = wxPyBeginAllowThreads();
24199 result = (bool)((wxWindow const *)arg1)->IsRetained();
24200
24201 wxPyEndAllowThreads(__tstate);
24202 if (PyErr_Occurred()) SWIG_fail;
24203 }
24204 {
24205 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24206 }
24207 return resultobj;
24208 fail:
24209 return NULL;
24210}
24211
24212
24213static PyObject *_wrap_Window_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
24214 PyObject *resultobj;
24215 wxWindow *arg1 = (wxWindow *) 0 ;
24216 long arg2 ;
24217 PyObject * obj0 = 0 ;
24218 PyObject * obj1 = 0 ;
24219 char *kwnames[] = {
24220 (char *) "self",(char *) "exStyle", NULL
24221 };
24222
24223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetExtraStyle",kwnames,&obj0,&obj1)) goto fail;
24224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24226 arg2 = (long) SWIG_AsLong(obj1);
24227 if (PyErr_Occurred()) SWIG_fail;
24228 {
24229 PyThreadState* __tstate = wxPyBeginAllowThreads();
24230 (arg1)->SetExtraStyle(arg2);
24231
24232 wxPyEndAllowThreads(__tstate);
24233 if (PyErr_Occurred()) SWIG_fail;
24234 }
24235 Py_INCREF(Py_None); resultobj = Py_None;
24236 return resultobj;
24237 fail:
24238 return NULL;
24239}
24240
24241
24242static PyObject *_wrap_Window_GetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
24243 PyObject *resultobj;
24244 wxWindow *arg1 = (wxWindow *) 0 ;
24245 long result;
24246 PyObject * obj0 = 0 ;
24247 char *kwnames[] = {
24248 (char *) "self", NULL
24249 };
24250
24251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetExtraStyle",kwnames,&obj0)) goto fail;
24252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24254 {
24255 PyThreadState* __tstate = wxPyBeginAllowThreads();
24256 result = (long)((wxWindow const *)arg1)->GetExtraStyle();
24257
24258 wxPyEndAllowThreads(__tstate);
24259 if (PyErr_Occurred()) SWIG_fail;
24260 }
24261 resultobj = SWIG_FromLong((long)result);
24262 return resultobj;
24263 fail:
24264 return NULL;
24265}
24266
24267
24268static PyObject *_wrap_Window_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) {
24269 PyObject *resultobj;
24270 wxWindow *arg1 = (wxWindow *) 0 ;
24271 bool arg2 = (bool) True ;
24272 PyObject * obj0 = 0 ;
24273 PyObject * obj1 = 0 ;
24274 char *kwnames[] = {
24275 (char *) "self",(char *) "modal", NULL
24276 };
24277
24278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) goto fail;
24279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24281 if (obj1) {
24282 arg2 = (bool) SWIG_AsBool(obj1);
24283 if (PyErr_Occurred()) SWIG_fail;
24284 }
24285 {
24286 PyThreadState* __tstate = wxPyBeginAllowThreads();
24287 (arg1)->MakeModal(arg2);
24288
24289 wxPyEndAllowThreads(__tstate);
24290 if (PyErr_Occurred()) SWIG_fail;
24291 }
24292 Py_INCREF(Py_None); resultobj = Py_None;
24293 return resultobj;
24294 fail:
24295 return NULL;
24296}
24297
24298
24299static PyObject *_wrap_Window_SetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
24300 PyObject *resultobj;
24301 wxWindow *arg1 = (wxWindow *) 0 ;
24302 bool arg2 ;
24303 PyObject * obj0 = 0 ;
24304 PyObject * obj1 = 0 ;
24305 char *kwnames[] = {
24306 (char *) "self",(char *) "enableTheme", NULL
24307 };
24308
24309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) goto fail;
24310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24312 arg2 = (bool) SWIG_AsBool(obj1);
24313 if (PyErr_Occurred()) SWIG_fail;
24314 {
24315 PyThreadState* __tstate = wxPyBeginAllowThreads();
24316 (arg1)->SetThemeEnabled(arg2);
24317
24318 wxPyEndAllowThreads(__tstate);
24319 if (PyErr_Occurred()) SWIG_fail;
24320 }
24321 Py_INCREF(Py_None); resultobj = Py_None;
24322 return resultobj;
24323 fail:
24324 return NULL;
24325}
24326
24327
24328static PyObject *_wrap_Window_GetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
24329 PyObject *resultobj;
24330 wxWindow *arg1 = (wxWindow *) 0 ;
24331 bool result;
24332 PyObject * obj0 = 0 ;
24333 char *kwnames[] = {
24334 (char *) "self", NULL
24335 };
24336
24337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetThemeEnabled",kwnames,&obj0)) goto fail;
24338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24340 {
24341 PyThreadState* __tstate = wxPyBeginAllowThreads();
24342 result = (bool)((wxWindow const *)arg1)->GetThemeEnabled();
24343
24344 wxPyEndAllowThreads(__tstate);
24345 if (PyErr_Occurred()) SWIG_fail;
24346 }
24347 {
24348 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24349 }
24350 return resultobj;
24351 fail:
24352 return NULL;
24353}
24354
24355
24356static PyObject *_wrap_Window_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
24357 PyObject *resultobj;
24358 wxWindow *arg1 = (wxWindow *) 0 ;
24359 PyObject * obj0 = 0 ;
24360 char *kwnames[] = {
24361 (char *) "self", NULL
24362 };
24363
24364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocus",kwnames,&obj0)) goto fail;
24365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24367 {
24368 PyThreadState* __tstate = wxPyBeginAllowThreads();
24369 (arg1)->SetFocus();
24370
24371 wxPyEndAllowThreads(__tstate);
24372 if (PyErr_Occurred()) SWIG_fail;
24373 }
24374 Py_INCREF(Py_None); resultobj = Py_None;
24375 return resultobj;
24376 fail:
24377 return NULL;
24378}
24379
24380
24381static PyObject *_wrap_Window_SetFocusFromKbd(PyObject *self, PyObject *args, PyObject *kwargs) {
24382 PyObject *resultobj;
24383 wxWindow *arg1 = (wxWindow *) 0 ;
24384 PyObject * obj0 = 0 ;
24385 char *kwnames[] = {
24386 (char *) "self", NULL
24387 };
24388
24389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocusFromKbd",kwnames,&obj0)) goto fail;
24390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24392 {
24393 PyThreadState* __tstate = wxPyBeginAllowThreads();
24394 (arg1)->SetFocusFromKbd();
24395
24396 wxPyEndAllowThreads(__tstate);
24397 if (PyErr_Occurred()) SWIG_fail;
24398 }
24399 Py_INCREF(Py_None); resultobj = Py_None;
24400 return resultobj;
24401 fail:
24402 return NULL;
24403}
24404
24405
24406static PyObject *_wrap_Window_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
24407 PyObject *resultobj;
24408 wxWindow *result;
24409 char *kwnames[] = {
24410 NULL
24411 };
24412
24413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_FindFocus",kwnames)) goto fail;
24414 {
0439c23b 24415 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
24416 PyThreadState* __tstate = wxPyBeginAllowThreads();
24417 result = (wxWindow *)wxWindow::FindFocus();
24418
24419 wxPyEndAllowThreads(__tstate);
110da5b0 24420 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
24421 }
24422 {
412d302d 24423 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
24424 }
24425 return resultobj;
24426 fail:
24427 return NULL;
24428}
24429
24430
24431static PyObject *_wrap_Window_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
24432 PyObject *resultobj;
24433 wxWindow *arg1 = (wxWindow *) 0 ;
24434 bool result;
24435 PyObject * obj0 = 0 ;
24436 char *kwnames[] = {
24437 (char *) "self", NULL
24438 };
24439
24440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocus",kwnames,&obj0)) goto fail;
24441 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24443 {
24444 PyThreadState* __tstate = wxPyBeginAllowThreads();
24445 result = (bool)((wxWindow const *)arg1)->AcceptsFocus();
24446
24447 wxPyEndAllowThreads(__tstate);
24448 if (PyErr_Occurred()) SWIG_fail;
24449 }
24450 {
24451 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24452 }
24453 return resultobj;
24454 fail:
24455 return NULL;
24456}
24457
24458
24459static PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) {
24460 PyObject *resultobj;
24461 wxWindow *arg1 = (wxWindow *) 0 ;
24462 bool result;
24463 PyObject * obj0 = 0 ;
24464 char *kwnames[] = {
24465 (char *) "self", NULL
24466 };
24467
24468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail;
24469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24471 {
24472 PyThreadState* __tstate = wxPyBeginAllowThreads();
24473 result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard();
24474
24475 wxPyEndAllowThreads(__tstate);
24476 if (PyErr_Occurred()) SWIG_fail;
24477 }
24478 {
24479 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24480 }
24481 return resultobj;
24482 fail:
24483 return NULL;
24484}
24485
24486
24487static PyObject *_wrap_Window_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24488 PyObject *resultobj;
24489 wxWindow *arg1 = (wxWindow *) 0 ;
24490 wxWindow *result;
24491 PyObject * obj0 = 0 ;
24492 char *kwnames[] = {
24493 (char *) "self", NULL
24494 };
24495
24496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultItem",kwnames,&obj0)) goto fail;
24497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24499 {
24500 PyThreadState* __tstate = wxPyBeginAllowThreads();
24501 result = (wxWindow *)((wxWindow const *)arg1)->GetDefaultItem();
24502
24503 wxPyEndAllowThreads(__tstate);
24504 if (PyErr_Occurred()) SWIG_fail;
24505 }
24506 {
412d302d 24507 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
24508 }
24509 return resultobj;
24510 fail:
24511 return NULL;
24512}
24513
24514
24515static PyObject *_wrap_Window_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24516 PyObject *resultobj;
24517 wxWindow *arg1 = (wxWindow *) 0 ;
24518 wxWindow *arg2 = (wxWindow *) 0 ;
24519 wxWindow *result;
24520 PyObject * obj0 = 0 ;
24521 PyObject * obj1 = 0 ;
24522 char *kwnames[] = {
24523 (char *) "self",(char *) "child", NULL
24524 };
24525
24526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultItem",kwnames,&obj0,&obj1)) goto fail;
24527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24529 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24531 {
24532 PyThreadState* __tstate = wxPyBeginAllowThreads();
24533 result = (wxWindow *)(arg1)->SetDefaultItem(arg2);
24534
24535 wxPyEndAllowThreads(__tstate);
24536 if (PyErr_Occurred()) SWIG_fail;
24537 }
24538 {
412d302d 24539 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
24540 }
24541 return resultobj;
24542 fail:
24543 return NULL;
24544}
24545
24546
24547static PyObject *_wrap_Window_SetTmpDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24548 PyObject *resultobj;
24549 wxWindow *arg1 = (wxWindow *) 0 ;
24550 wxWindow *arg2 = (wxWindow *) 0 ;
24551 PyObject * obj0 = 0 ;
24552 PyObject * obj1 = 0 ;
24553 char *kwnames[] = {
24554 (char *) "self",(char *) "win", NULL
24555 };
24556
24557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTmpDefaultItem",kwnames,&obj0,&obj1)) goto fail;
24558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24560 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24562 {
24563 PyThreadState* __tstate = wxPyBeginAllowThreads();
24564 (arg1)->SetTmpDefaultItem(arg2);
24565
24566 wxPyEndAllowThreads(__tstate);
24567 if (PyErr_Occurred()) SWIG_fail;
24568 }
24569 Py_INCREF(Py_None); resultobj = Py_None;
24570 return resultobj;
24571 fail:
24572 return NULL;
24573}
24574
24575
908b74cd
RD
24576static PyObject *_wrap_Window_Navigate(PyObject *self, PyObject *args, PyObject *kwargs) {
24577 PyObject *resultobj;
24578 wxWindow *arg1 = (wxWindow *) 0 ;
24579 int arg2 = (int) wxNavigationKeyEvent::IsForward ;
24580 bool result;
24581 PyObject * obj0 = 0 ;
24582 PyObject * obj1 = 0 ;
24583 char *kwnames[] = {
24584 (char *) "self",(char *) "flags", NULL
24585 };
24586
24587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Navigate",kwnames,&obj0,&obj1)) goto fail;
24588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24590 if (obj1) {
24591 arg2 = (int) SWIG_AsInt(obj1);
24592 if (PyErr_Occurred()) SWIG_fail;
24593 }
24594 {
24595 PyThreadState* __tstate = wxPyBeginAllowThreads();
24596 result = (bool)(arg1)->Navigate(arg2);
24597
24598 wxPyEndAllowThreads(__tstate);
24599 if (PyErr_Occurred()) SWIG_fail;
24600 }
24601 {
24602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24603 }
24604 return resultobj;
24605 fail:
24606 return NULL;
24607}
24608
24609
bf26d883
RD
24610static PyObject *_wrap_Window_MoveAfterInTabOrder(PyObject *self, PyObject *args, PyObject *kwargs) {
24611 PyObject *resultobj;
24612 wxWindow *arg1 = (wxWindow *) 0 ;
24613 wxWindow *arg2 = (wxWindow *) 0 ;
24614 PyObject * obj0 = 0 ;
24615 PyObject * obj1 = 0 ;
24616 char *kwnames[] = {
24617 (char *) "self",(char *) "win", NULL
24618 };
24619
24620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveAfterInTabOrder",kwnames,&obj0,&obj1)) goto fail;
24621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24623 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24625 {
24626 PyThreadState* __tstate = wxPyBeginAllowThreads();
24627 (arg1)->MoveAfterInTabOrder(arg2);
24628
24629 wxPyEndAllowThreads(__tstate);
24630 if (PyErr_Occurred()) SWIG_fail;
24631 }
24632 Py_INCREF(Py_None); resultobj = Py_None;
24633 return resultobj;
24634 fail:
24635 return NULL;
24636}
24637
24638
24639static PyObject *_wrap_Window_MoveBeforeInTabOrder(PyObject *self, PyObject *args, PyObject *kwargs) {
24640 PyObject *resultobj;
24641 wxWindow *arg1 = (wxWindow *) 0 ;
24642 wxWindow *arg2 = (wxWindow *) 0 ;
24643 PyObject * obj0 = 0 ;
24644 PyObject * obj1 = 0 ;
24645 char *kwnames[] = {
24646 (char *) "self",(char *) "win", NULL
24647 };
24648
24649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveBeforeInTabOrder",kwnames,&obj0,&obj1)) goto fail;
24650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24652 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24654 {
24655 PyThreadState* __tstate = wxPyBeginAllowThreads();
24656 (arg1)->MoveBeforeInTabOrder(arg2);
24657
24658 wxPyEndAllowThreads(__tstate);
24659 if (PyErr_Occurred()) SWIG_fail;
24660 }
24661 Py_INCREF(Py_None); resultobj = Py_None;
24662 return resultobj;
24663 fail:
24664 return NULL;
24665}
24666
24667
d55e5bfc
RD
24668static PyObject *_wrap_Window_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
24669 PyObject *resultobj;
24670 wxWindow *arg1 = (wxWindow *) 0 ;
24671 PyObject *result;
24672 PyObject * obj0 = 0 ;
24673 char *kwnames[] = {
24674 (char *) "self", NULL
24675 };
24676
24677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetChildren",kwnames,&obj0)) goto fail;
24678 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24679 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24680 {
24681 PyThreadState* __tstate = wxPyBeginAllowThreads();
24682 result = (PyObject *)wxWindow_GetChildren(arg1);
24683
24684 wxPyEndAllowThreads(__tstate);
24685 if (PyErr_Occurred()) SWIG_fail;
24686 }
24687 resultobj = result;
24688 return resultobj;
24689 fail:
24690 return NULL;
24691}
24692
24693
24694static PyObject *_wrap_Window_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
24695 PyObject *resultobj;
24696 wxWindow *arg1 = (wxWindow *) 0 ;
24697 wxWindow *result;
24698 PyObject * obj0 = 0 ;
24699 char *kwnames[] = {
24700 (char *) "self", NULL
24701 };
24702
24703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetParent",kwnames,&obj0)) goto fail;
24704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24706 {
24707 PyThreadState* __tstate = wxPyBeginAllowThreads();
24708 result = (wxWindow *)((wxWindow const *)arg1)->GetParent();
24709
24710 wxPyEndAllowThreads(__tstate);
24711 if (PyErr_Occurred()) SWIG_fail;
24712 }
24713 {
412d302d 24714 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
24715 }
24716 return resultobj;
24717 fail:
24718 return NULL;
24719}
24720
24721
24722static PyObject *_wrap_Window_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) {
24723 PyObject *resultobj;
24724 wxWindow *arg1 = (wxWindow *) 0 ;
24725 wxWindow *result;
24726 PyObject * obj0 = 0 ;
24727 char *kwnames[] = {
24728 (char *) "self", NULL
24729 };
24730
24731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetGrandParent",kwnames,&obj0)) goto fail;
24732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24734 {
24735 PyThreadState* __tstate = wxPyBeginAllowThreads();
24736 result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent();
24737
24738 wxPyEndAllowThreads(__tstate);
24739 if (PyErr_Occurred()) SWIG_fail;
24740 }
24741 {
412d302d 24742 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
24743 }
24744 return resultobj;
24745 fail:
24746 return NULL;
24747}
24748
24749
24750static PyObject *_wrap_Window_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
24751 PyObject *resultobj;
24752 wxWindow *arg1 = (wxWindow *) 0 ;
24753 bool result;
24754 PyObject * obj0 = 0 ;
24755 char *kwnames[] = {
24756 (char *) "self", NULL
24757 };
24758
24759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsTopLevel",kwnames,&obj0)) goto fail;
24760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24762 {
24763 PyThreadState* __tstate = wxPyBeginAllowThreads();
24764 result = (bool)((wxWindow const *)arg1)->IsTopLevel();
24765
24766 wxPyEndAllowThreads(__tstate);
24767 if (PyErr_Occurred()) SWIG_fail;
24768 }
24769 {
24770 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24771 }
24772 return resultobj;
24773 fail:
24774 return NULL;
24775}
24776
24777
24778static PyObject *_wrap_Window_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) {
24779 PyObject *resultobj;
24780 wxWindow *arg1 = (wxWindow *) 0 ;
24781 wxWindow *arg2 = (wxWindow *) 0 ;
24782 bool result;
24783 PyObject * obj0 = 0 ;
24784 PyObject * obj1 = 0 ;
24785 char *kwnames[] = {
24786 (char *) "self",(char *) "newParent", NULL
24787 };
24788
24789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) goto fail;
24790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24792 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24793 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24794 {
24795 PyThreadState* __tstate = wxPyBeginAllowThreads();
24796 result = (bool)(arg1)->Reparent(arg2);
24797
24798 wxPyEndAllowThreads(__tstate);
24799 if (PyErr_Occurred()) SWIG_fail;
24800 }
24801 {
24802 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24803 }
24804 return resultobj;
24805 fail:
24806 return NULL;
24807}
24808
24809
24810static PyObject *_wrap_Window_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) {
24811 PyObject *resultobj;
24812 wxWindow *arg1 = (wxWindow *) 0 ;
24813 wxWindow *arg2 = (wxWindow *) 0 ;
24814 PyObject * obj0 = 0 ;
24815 PyObject * obj1 = 0 ;
24816 char *kwnames[] = {
24817 (char *) "self",(char *) "child", NULL
24818 };
24819
24820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) goto fail;
24821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24823 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24825 {
24826 PyThreadState* __tstate = wxPyBeginAllowThreads();
24827 (arg1)->AddChild(arg2);
24828
24829 wxPyEndAllowThreads(__tstate);
24830 if (PyErr_Occurred()) SWIG_fail;
24831 }
24832 Py_INCREF(Py_None); resultobj = Py_None;
24833 return resultobj;
24834 fail:
24835 return NULL;
24836}
24837
24838
24839static PyObject *_wrap_Window_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) {
24840 PyObject *resultobj;
24841 wxWindow *arg1 = (wxWindow *) 0 ;
24842 wxWindow *arg2 = (wxWindow *) 0 ;
24843 PyObject * obj0 = 0 ;
24844 PyObject * obj1 = 0 ;
24845 char *kwnames[] = {
24846 (char *) "self",(char *) "child", NULL
24847 };
24848
24849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) goto fail;
24850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24852 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24854 {
24855 PyThreadState* __tstate = wxPyBeginAllowThreads();
24856 (arg1)->RemoveChild(arg2);
24857
24858 wxPyEndAllowThreads(__tstate);
24859 if (PyErr_Occurred()) SWIG_fail;
24860 }
24861 Py_INCREF(Py_None); resultobj = Py_None;
24862 return resultobj;
24863 fail:
24864 return NULL;
24865}
24866
24867
24868static PyObject *_wrap_Window_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) {
24869 PyObject *resultobj;
24870 wxWindow *arg1 = (wxWindow *) 0 ;
24871 long arg2 ;
24872 wxWindow *result;
24873 PyObject * obj0 = 0 ;
24874 PyObject * obj1 = 0 ;
24875 char *kwnames[] = {
24876 (char *) "self",(char *) "winid", NULL
24877 };
24878
24879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowById",kwnames,&obj0,&obj1)) goto fail;
24880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24882 arg2 = (long) SWIG_AsLong(obj1);
24883 if (PyErr_Occurred()) SWIG_fail;
24884 {
24885 PyThreadState* __tstate = wxPyBeginAllowThreads();
24886 result = (wxWindow *)(arg1)->FindWindow(arg2);
24887
24888 wxPyEndAllowThreads(__tstate);
24889 if (PyErr_Occurred()) SWIG_fail;
24890 }
24891 {
412d302d 24892 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
24893 }
24894 return resultobj;
24895 fail:
24896 return NULL;
24897}
24898
24899
24900static PyObject *_wrap_Window_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) {
24901 PyObject *resultobj;
24902 wxWindow *arg1 = (wxWindow *) 0 ;
24903 wxString *arg2 = 0 ;
24904 wxWindow *result;
24905 bool temp2 = False ;
24906 PyObject * obj0 = 0 ;
24907 PyObject * obj1 = 0 ;
24908 char *kwnames[] = {
24909 (char *) "self",(char *) "name", NULL
24910 };
24911
24912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) goto fail;
24913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24915 {
24916 arg2 = wxString_in_helper(obj1);
24917 if (arg2 == NULL) SWIG_fail;
24918 temp2 = True;
24919 }
24920 {
24921 PyThreadState* __tstate = wxPyBeginAllowThreads();
24922 result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2);
24923
24924 wxPyEndAllowThreads(__tstate);
24925 if (PyErr_Occurred()) SWIG_fail;
24926 }
24927 {
412d302d 24928 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
24929 }
24930 {
24931 if (temp2)
24932 delete arg2;
24933 }
24934 return resultobj;
24935 fail:
24936 {
24937 if (temp2)
24938 delete arg2;
24939 }
24940 return NULL;
24941}
24942
24943
24944static PyObject *_wrap_Window_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
24945 PyObject *resultobj;
24946 wxWindow *arg1 = (wxWindow *) 0 ;
24947 wxEvtHandler *result;
24948 PyObject * obj0 = 0 ;
24949 char *kwnames[] = {
24950 (char *) "self", NULL
24951 };
24952
24953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetEventHandler",kwnames,&obj0)) goto fail;
24954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24956 {
24957 PyThreadState* __tstate = wxPyBeginAllowThreads();
24958 result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler();
24959
24960 wxPyEndAllowThreads(__tstate);
24961 if (PyErr_Occurred()) SWIG_fail;
24962 }
24963 {
412d302d 24964 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
24965 }
24966 return resultobj;
24967 fail:
24968 return NULL;
24969}
24970
24971
24972static PyObject *_wrap_Window_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
24973 PyObject *resultobj;
24974 wxWindow *arg1 = (wxWindow *) 0 ;
24975 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
24976 PyObject * obj0 = 0 ;
24977 PyObject * obj1 = 0 ;
24978 char *kwnames[] = {
24979 (char *) "self",(char *) "handler", NULL
24980 };
24981
24982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) goto fail;
24983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24985 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
24986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24987 {
24988 PyThreadState* __tstate = wxPyBeginAllowThreads();
24989 (arg1)->SetEventHandler(arg2);
24990
24991 wxPyEndAllowThreads(__tstate);
24992 if (PyErr_Occurred()) SWIG_fail;
24993 }
24994 Py_INCREF(Py_None); resultobj = Py_None;
24995 return resultobj;
24996 fail:
24997 return NULL;
24998}
24999
25000
25001static PyObject *_wrap_Window_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
25002 PyObject *resultobj;
25003 wxWindow *arg1 = (wxWindow *) 0 ;
25004 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
25005 PyObject * obj0 = 0 ;
25006 PyObject * obj1 = 0 ;
25007 char *kwnames[] = {
25008 (char *) "self",(char *) "handler", NULL
25009 };
25010
25011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) goto fail;
25012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25014 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
25015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25016 {
25017 PyThreadState* __tstate = wxPyBeginAllowThreads();
25018 (arg1)->PushEventHandler(arg2);
25019
25020 wxPyEndAllowThreads(__tstate);
25021 if (PyErr_Occurred()) SWIG_fail;
25022 }
25023 Py_INCREF(Py_None); resultobj = Py_None;
25024 return resultobj;
25025 fail:
25026 return NULL;
25027}
25028
25029
25030static PyObject *_wrap_Window_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
25031 PyObject *resultobj;
25032 wxWindow *arg1 = (wxWindow *) 0 ;
25033 bool arg2 = (bool) False ;
25034 wxEvtHandler *result;
25035 PyObject * obj0 = 0 ;
25036 PyObject * obj1 = 0 ;
25037 char *kwnames[] = {
25038 (char *) "self",(char *) "deleteHandler", NULL
25039 };
25040
25041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) goto fail;
25042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25044 if (obj1) {
25045 arg2 = (bool) SWIG_AsBool(obj1);
25046 if (PyErr_Occurred()) SWIG_fail;
25047 }
25048 {
25049 PyThreadState* __tstate = wxPyBeginAllowThreads();
25050 result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2);
25051
25052 wxPyEndAllowThreads(__tstate);
25053 if (PyErr_Occurred()) SWIG_fail;
25054 }
25055 {
412d302d 25056 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
25057 }
25058 return resultobj;
25059 fail:
25060 return NULL;
25061}
25062
25063
25064static PyObject *_wrap_Window_RemoveEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
25065 PyObject *resultobj;
25066 wxWindow *arg1 = (wxWindow *) 0 ;
25067 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
25068 bool result;
25069 PyObject * obj0 = 0 ;
25070 PyObject * obj1 = 0 ;
25071 char *kwnames[] = {
25072 (char *) "self",(char *) "handler", NULL
25073 };
25074
25075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) goto fail;
25076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25078 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
25079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25080 {
25081 PyThreadState* __tstate = wxPyBeginAllowThreads();
25082 result = (bool)(arg1)->RemoveEventHandler(arg2);
25083
25084 wxPyEndAllowThreads(__tstate);
25085 if (PyErr_Occurred()) SWIG_fail;
25086 }
25087 {
25088 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25089 }
25090 return resultobj;
25091 fail:
25092 return NULL;
25093}
25094
25095
25096static PyObject *_wrap_Window_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
25097 PyObject *resultobj;
25098 wxWindow *arg1 = (wxWindow *) 0 ;
25099 wxValidator *arg2 = 0 ;
25100 PyObject * obj0 = 0 ;
25101 PyObject * obj1 = 0 ;
25102 char *kwnames[] = {
25103 (char *) "self",(char *) "validator", NULL
25104 };
25105
25106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) goto fail;
25107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25109 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxValidator,
25110 SWIG_POINTER_EXCEPTION | 0)) == -1)
25111 SWIG_fail;
25112 if (arg2 == NULL) {
25113 PyErr_SetString(PyExc_TypeError,"null reference");
25114 SWIG_fail;
25115 }
25116 {
25117 PyThreadState* __tstate = wxPyBeginAllowThreads();
25118 (arg1)->SetValidator((wxValidator const &)*arg2);
25119
25120 wxPyEndAllowThreads(__tstate);
25121 if (PyErr_Occurred()) SWIG_fail;
25122 }
25123 Py_INCREF(Py_None); resultobj = Py_None;
25124 return resultobj;
25125 fail:
25126 return NULL;
25127}
25128
25129
25130static PyObject *_wrap_Window_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
25131 PyObject *resultobj;
25132 wxWindow *arg1 = (wxWindow *) 0 ;
25133 wxValidator *result;
25134 PyObject * obj0 = 0 ;
25135 char *kwnames[] = {
25136 (char *) "self", NULL
25137 };
25138
25139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetValidator",kwnames,&obj0)) goto fail;
25140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25142 {
25143 PyThreadState* __tstate = wxPyBeginAllowThreads();
25144 result = (wxValidator *)(arg1)->GetValidator();
25145
25146 wxPyEndAllowThreads(__tstate);
25147 if (PyErr_Occurred()) SWIG_fail;
25148 }
25149 {
412d302d 25150 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
25151 }
25152 return resultobj;
25153 fail:
25154 return NULL;
25155}
25156
25157
25158static PyObject *_wrap_Window_Validate(PyObject *self, PyObject *args, PyObject *kwargs) {
25159 PyObject *resultobj;
25160 wxWindow *arg1 = (wxWindow *) 0 ;
25161 bool result;
25162 PyObject * obj0 = 0 ;
25163 char *kwnames[] = {
25164 (char *) "self", NULL
25165 };
25166
25167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Validate",kwnames,&obj0)) goto fail;
25168 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25170 {
25171 PyThreadState* __tstate = wxPyBeginAllowThreads();
25172 result = (bool)(arg1)->Validate();
25173
25174 wxPyEndAllowThreads(__tstate);
25175 if (PyErr_Occurred()) SWIG_fail;
25176 }
25177 {
25178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25179 }
25180 return resultobj;
25181 fail:
25182 return NULL;
25183}
25184
25185
25186static PyObject *_wrap_Window_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
25187 PyObject *resultobj;
25188 wxWindow *arg1 = (wxWindow *) 0 ;
25189 bool result;
25190 PyObject * obj0 = 0 ;
25191 char *kwnames[] = {
25192 (char *) "self", NULL
25193 };
25194
25195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataToWindow",kwnames,&obj0)) goto fail;
25196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25198 {
25199 PyThreadState* __tstate = wxPyBeginAllowThreads();
25200 result = (bool)(arg1)->TransferDataToWindow();
25201
25202 wxPyEndAllowThreads(__tstate);
25203 if (PyErr_Occurred()) SWIG_fail;
25204 }
25205 {
25206 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25207 }
25208 return resultobj;
25209 fail:
25210 return NULL;
25211}
25212
25213
25214static PyObject *_wrap_Window_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
25215 PyObject *resultobj;
25216 wxWindow *arg1 = (wxWindow *) 0 ;
25217 bool result;
25218 PyObject * obj0 = 0 ;
25219 char *kwnames[] = {
25220 (char *) "self", NULL
25221 };
25222
25223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataFromWindow",kwnames,&obj0)) goto fail;
25224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25226 {
25227 PyThreadState* __tstate = wxPyBeginAllowThreads();
25228 result = (bool)(arg1)->TransferDataFromWindow();
25229
25230 wxPyEndAllowThreads(__tstate);
25231 if (PyErr_Occurred()) SWIG_fail;
25232 }
25233 {
25234 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25235 }
25236 return resultobj;
25237 fail:
25238 return NULL;
25239}
25240
25241
25242static PyObject *_wrap_Window_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
25243 PyObject *resultobj;
25244 wxWindow *arg1 = (wxWindow *) 0 ;
25245 PyObject * obj0 = 0 ;
25246 char *kwnames[] = {
25247 (char *) "self", NULL
25248 };
25249
25250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InitDialog",kwnames,&obj0)) goto fail;
25251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25253 {
25254 PyThreadState* __tstate = wxPyBeginAllowThreads();
25255 (arg1)->InitDialog();
25256
25257 wxPyEndAllowThreads(__tstate);
25258 if (PyErr_Occurred()) SWIG_fail;
25259 }
25260 Py_INCREF(Py_None); resultobj = Py_None;
25261 return resultobj;
25262 fail:
25263 return NULL;
25264}
25265
25266
25267static PyObject *_wrap_Window_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
25268 PyObject *resultobj;
25269 wxWindow *arg1 = (wxWindow *) 0 ;
25270 wxAcceleratorTable *arg2 = 0 ;
25271 PyObject * obj0 = 0 ;
25272 PyObject * obj1 = 0 ;
25273 char *kwnames[] = {
25274 (char *) "self",(char *) "accel", NULL
25275 };
25276
25277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) goto fail;
25278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25280 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorTable,
25281 SWIG_POINTER_EXCEPTION | 0)) == -1)
25282 SWIG_fail;
25283 if (arg2 == NULL) {
25284 PyErr_SetString(PyExc_TypeError,"null reference");
25285 SWIG_fail;
25286 }
25287 {
25288 PyThreadState* __tstate = wxPyBeginAllowThreads();
25289 (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2);
25290
25291 wxPyEndAllowThreads(__tstate);
25292 if (PyErr_Occurred()) SWIG_fail;
25293 }
25294 Py_INCREF(Py_None); resultobj = Py_None;
25295 return resultobj;
25296 fail:
25297 return NULL;
25298}
25299
25300
25301static PyObject *_wrap_Window_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
25302 PyObject *resultobj;
25303 wxWindow *arg1 = (wxWindow *) 0 ;
25304 wxAcceleratorTable *result;
25305 PyObject * obj0 = 0 ;
25306 char *kwnames[] = {
25307 (char *) "self", NULL
25308 };
25309
25310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAcceleratorTable",kwnames,&obj0)) goto fail;
25311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25313 {
25314 PyThreadState* __tstate = wxPyBeginAllowThreads();
25315 result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable();
25316
25317 wxPyEndAllowThreads(__tstate);
25318 if (PyErr_Occurred()) SWIG_fail;
25319 }
25320 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 0);
25321 return resultobj;
25322 fail:
25323 return NULL;
25324}
25325
25326
25327static PyObject *_wrap_Window_RegisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) {
25328 PyObject *resultobj;
25329 wxWindow *arg1 = (wxWindow *) 0 ;
25330 int arg2 ;
25331 int arg3 ;
25332 int arg4 ;
25333 bool result;
25334 PyObject * obj0 = 0 ;
25335 PyObject * obj1 = 0 ;
25336 PyObject * obj2 = 0 ;
25337 PyObject * obj3 = 0 ;
25338 char *kwnames[] = {
25339 (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL
25340 };
25341
25342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_RegisterHotKey",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25345 arg2 = (int) SWIG_AsInt(obj1);
25346 if (PyErr_Occurred()) SWIG_fail;
25347 arg3 = (int) SWIG_AsInt(obj2);
25348 if (PyErr_Occurred()) SWIG_fail;
25349 arg4 = (int) SWIG_AsInt(obj3);
25350 if (PyErr_Occurred()) SWIG_fail;
25351 {
25352 PyThreadState* __tstate = wxPyBeginAllowThreads();
25353 result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4);
25354
25355 wxPyEndAllowThreads(__tstate);
25356 if (PyErr_Occurred()) SWIG_fail;
25357 }
25358 {
25359 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25360 }
25361 return resultobj;
25362 fail:
25363 return NULL;
25364}
25365
25366
25367static PyObject *_wrap_Window_UnregisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) {
25368 PyObject *resultobj;
25369 wxWindow *arg1 = (wxWindow *) 0 ;
25370 int arg2 ;
25371 bool result;
25372 PyObject * obj0 = 0 ;
25373 PyObject * obj1 = 0 ;
25374 char *kwnames[] = {
25375 (char *) "self",(char *) "hotkeyId", NULL
25376 };
25377
25378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_UnregisterHotKey",kwnames,&obj0,&obj1)) goto fail;
25379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25381 arg2 = (int) SWIG_AsInt(obj1);
25382 if (PyErr_Occurred()) SWIG_fail;
25383 {
25384 PyThreadState* __tstate = wxPyBeginAllowThreads();
25385 result = (bool)wxWindow_UnregisterHotKey(arg1,arg2);
25386
25387 wxPyEndAllowThreads(__tstate);
25388 if (PyErr_Occurred()) SWIG_fail;
25389 }
25390 {
25391 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25392 }
25393 return resultobj;
25394 fail:
25395 return NULL;
25396}
25397
25398
25399static PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) {
25400 PyObject *resultobj;
25401 wxWindow *arg1 = (wxWindow *) 0 ;
25402 wxPoint *arg2 = 0 ;
25403 wxPoint result;
25404 wxPoint temp2 ;
25405 PyObject * obj0 = 0 ;
25406 PyObject * obj1 = 0 ;
25407 char *kwnames[] = {
25408 (char *) "self",(char *) "pt", NULL
25409 };
25410
25411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) goto fail;
25412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25414 {
25415 arg2 = &temp2;
25416 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
25417 }
25418 {
25419 PyThreadState* __tstate = wxPyBeginAllowThreads();
25420 result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2);
25421
25422 wxPyEndAllowThreads(__tstate);
25423 if (PyErr_Occurred()) SWIG_fail;
25424 }
25425 {
25426 wxPoint * resultptr;
25427 resultptr = new wxPoint((wxPoint &) result);
25428 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
25429 }
25430 return resultobj;
25431 fail:
25432 return NULL;
25433}
25434
25435
25436static PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) {
25437 PyObject *resultobj;
25438 wxWindow *arg1 = (wxWindow *) 0 ;
25439 wxSize *arg2 = 0 ;
25440 wxSize result;
25441 wxSize temp2 ;
25442 PyObject * obj0 = 0 ;
25443 PyObject * obj1 = 0 ;
25444 char *kwnames[] = {
25445 (char *) "self",(char *) "sz", NULL
25446 };
25447
25448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) goto fail;
25449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25451 {
25452 arg2 = &temp2;
25453 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25454 }
25455 {
25456 PyThreadState* __tstate = wxPyBeginAllowThreads();
25457 result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2);
25458
25459 wxPyEndAllowThreads(__tstate);
25460 if (PyErr_Occurred()) SWIG_fail;
25461 }
25462 {
25463 wxSize * resultptr;
25464 resultptr = new wxSize((wxSize &) result);
25465 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
25466 }
25467 return resultobj;
25468 fail:
25469 return NULL;
25470}
25471
25472
25473static PyObject *_wrap_Window_DLG_PNT(PyObject *self, PyObject *args, PyObject *kwargs) {
25474 PyObject *resultobj;
25475 wxWindow *arg1 = (wxWindow *) 0 ;
25476 wxPoint *arg2 = 0 ;
25477 wxPoint result;
25478 wxPoint temp2 ;
25479 PyObject * obj0 = 0 ;
25480 PyObject * obj1 = 0 ;
25481 char *kwnames[] = {
25482 (char *) "self",(char *) "pt", NULL
25483 };
25484
25485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) goto fail;
25486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25488 {
25489 arg2 = &temp2;
25490 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
25491 }
25492 {
25493 PyThreadState* __tstate = wxPyBeginAllowThreads();
25494 result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2);
25495
25496 wxPyEndAllowThreads(__tstate);
25497 if (PyErr_Occurred()) SWIG_fail;
25498 }
25499 {
25500 wxPoint * resultptr;
25501 resultptr = new wxPoint((wxPoint &) result);
25502 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
25503 }
25504 return resultobj;
25505 fail:
25506 return NULL;
25507}
25508
25509
25510static PyObject *_wrap_Window_DLG_SZE(PyObject *self, PyObject *args, PyObject *kwargs) {
25511 PyObject *resultobj;
25512 wxWindow *arg1 = (wxWindow *) 0 ;
25513 wxSize *arg2 = 0 ;
25514 wxSize result;
25515 wxSize temp2 ;
25516 PyObject * obj0 = 0 ;
25517 PyObject * obj1 = 0 ;
25518 char *kwnames[] = {
25519 (char *) "self",(char *) "sz", NULL
25520 };
25521
25522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) goto fail;
25523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25525 {
25526 arg2 = &temp2;
25527 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25528 }
25529 {
25530 PyThreadState* __tstate = wxPyBeginAllowThreads();
25531 result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2);
25532
25533 wxPyEndAllowThreads(__tstate);
25534 if (PyErr_Occurred()) SWIG_fail;
25535 }
25536 {
25537 wxSize * resultptr;
25538 resultptr = new wxSize((wxSize &) result);
25539 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
25540 }
25541 return resultobj;
25542 fail:
25543 return NULL;
25544}
25545
25546
25547static PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
25548 PyObject *resultobj;
25549 wxWindow *arg1 = (wxWindow *) 0 ;
25550 wxPoint *arg2 = 0 ;
25551 wxPoint result;
25552 wxPoint temp2 ;
25553 PyObject * obj0 = 0 ;
25554 PyObject * obj1 = 0 ;
25555 char *kwnames[] = {
25556 (char *) "self",(char *) "pt", NULL
25557 };
25558
25559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) goto fail;
25560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25562 {
25563 arg2 = &temp2;
25564 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
25565 }
25566 {
25567 PyThreadState* __tstate = wxPyBeginAllowThreads();
25568 result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2);
25569
25570 wxPyEndAllowThreads(__tstate);
25571 if (PyErr_Occurred()) SWIG_fail;
25572 }
25573 {
25574 wxPoint * resultptr;
25575 resultptr = new wxPoint((wxPoint &) result);
25576 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
25577 }
25578 return resultobj;
25579 fail:
25580 return NULL;
25581}
25582
25583
25584static PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
25585 PyObject *resultobj;
25586 wxWindow *arg1 = (wxWindow *) 0 ;
25587 wxSize *arg2 = 0 ;
25588 wxSize result;
25589 wxSize temp2 ;
25590 PyObject * obj0 = 0 ;
25591 PyObject * obj1 = 0 ;
25592 char *kwnames[] = {
25593 (char *) "self",(char *) "sz", NULL
25594 };
25595
25596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) goto fail;
25597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25599 {
25600 arg2 = &temp2;
25601 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25602 }
25603 {
25604 PyThreadState* __tstate = wxPyBeginAllowThreads();
25605 result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2);
25606
25607 wxPyEndAllowThreads(__tstate);
25608 if (PyErr_Occurred()) SWIG_fail;
25609 }
25610 {
25611 wxSize * resultptr;
25612 resultptr = new wxSize((wxSize &) result);
25613 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
25614 }
25615 return resultobj;
25616 fail:
25617 return NULL;
25618}
25619
25620
25621static PyObject *_wrap_Window_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) {
25622 PyObject *resultobj;
25623 wxWindow *arg1 = (wxWindow *) 0 ;
25624 int arg2 ;
25625 int arg3 ;
25626 PyObject * obj0 = 0 ;
25627 PyObject * obj1 = 0 ;
25628 PyObject * obj2 = 0 ;
25629 char *kwnames[] = {
25630 (char *) "self",(char *) "x",(char *) "y", NULL
25631 };
25632
25633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_WarpPointer",kwnames,&obj0,&obj1,&obj2)) goto fail;
25634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25636 arg2 = (int) SWIG_AsInt(obj1);
25637 if (PyErr_Occurred()) SWIG_fail;
25638 arg3 = (int) SWIG_AsInt(obj2);
25639 if (PyErr_Occurred()) SWIG_fail;
25640 {
25641 PyThreadState* __tstate = wxPyBeginAllowThreads();
25642 (arg1)->WarpPointer(arg2,arg3);
25643
25644 wxPyEndAllowThreads(__tstate);
25645 if (PyErr_Occurred()) SWIG_fail;
25646 }
25647 Py_INCREF(Py_None); resultobj = Py_None;
25648 return resultobj;
25649 fail:
25650 return NULL;
25651}
25652
25653
25654static PyObject *_wrap_Window_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) {
25655 PyObject *resultobj;
25656 wxWindow *arg1 = (wxWindow *) 0 ;
25657 PyObject * obj0 = 0 ;
25658 char *kwnames[] = {
25659 (char *) "self", NULL
25660 };
25661
25662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_CaptureMouse",kwnames,&obj0)) goto fail;
25663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25665 {
25666 PyThreadState* __tstate = wxPyBeginAllowThreads();
25667 (arg1)->CaptureMouse();
25668
25669 wxPyEndAllowThreads(__tstate);
25670 if (PyErr_Occurred()) SWIG_fail;
25671 }
25672 Py_INCREF(Py_None); resultobj = Py_None;
25673 return resultobj;
25674 fail:
25675 return NULL;
25676}
25677
25678
25679static PyObject *_wrap_Window_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) {
25680 PyObject *resultobj;
25681 wxWindow *arg1 = (wxWindow *) 0 ;
25682 PyObject * obj0 = 0 ;
25683 char *kwnames[] = {
25684 (char *) "self", NULL
25685 };
25686
25687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ReleaseMouse",kwnames,&obj0)) goto fail;
25688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25690 {
25691 PyThreadState* __tstate = wxPyBeginAllowThreads();
25692 (arg1)->ReleaseMouse();
25693
25694 wxPyEndAllowThreads(__tstate);
25695 if (PyErr_Occurred()) SWIG_fail;
25696 }
25697 Py_INCREF(Py_None); resultobj = Py_None;
25698 return resultobj;
25699 fail:
25700 return NULL;
25701}
25702
25703
25704static PyObject *_wrap_Window_GetCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
25705 PyObject *resultobj;
25706 wxWindow *result;
25707 char *kwnames[] = {
25708 NULL
25709 };
25710
25711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_GetCapture",kwnames)) goto fail;
25712 {
0439c23b 25713 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
25714 PyThreadState* __tstate = wxPyBeginAllowThreads();
25715 result = (wxWindow *)wxWindow::GetCapture();
25716
25717 wxPyEndAllowThreads(__tstate);
110da5b0 25718 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
25719 }
25720 {
412d302d 25721 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
25722 }
25723 return resultobj;
25724 fail:
25725 return NULL;
25726}
25727
25728
25729static PyObject *_wrap_Window_HasCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
25730 PyObject *resultobj;
25731 wxWindow *arg1 = (wxWindow *) 0 ;
25732 bool result;
25733 PyObject * obj0 = 0 ;
25734 char *kwnames[] = {
25735 (char *) "self", NULL
25736 };
25737
25738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasCapture",kwnames,&obj0)) goto fail;
25739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25741 {
25742 PyThreadState* __tstate = wxPyBeginAllowThreads();
25743 result = (bool)((wxWindow const *)arg1)->HasCapture();
25744
25745 wxPyEndAllowThreads(__tstate);
25746 if (PyErr_Occurred()) SWIG_fail;
25747 }
25748 {
25749 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25750 }
25751 return resultobj;
25752 fail:
25753 return NULL;
25754}
25755
25756
25757static PyObject *_wrap_Window_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) {
25758 PyObject *resultobj;
25759 wxWindow *arg1 = (wxWindow *) 0 ;
25760 bool arg2 = (bool) True ;
25761 wxRect *arg3 = (wxRect *) NULL ;
25762 PyObject * obj0 = 0 ;
25763 PyObject * obj1 = 0 ;
25764 PyObject * obj2 = 0 ;
25765 char *kwnames[] = {
25766 (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL
25767 };
25768
25769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail;
25770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25772 if (obj1) {
25773 arg2 = (bool) SWIG_AsBool(obj1);
25774 if (PyErr_Occurred()) SWIG_fail;
25775 }
25776 if (obj2) {
25777 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxRect,
25778 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25779 }
25780 {
25781 PyThreadState* __tstate = wxPyBeginAllowThreads();
25782 (arg1)->Refresh(arg2,(wxRect const *)arg3);
25783
25784 wxPyEndAllowThreads(__tstate);
25785 if (PyErr_Occurred()) SWIG_fail;
25786 }
25787 Py_INCREF(Py_None); resultobj = Py_None;
25788 return resultobj;
25789 fail:
25790 return NULL;
25791}
25792
25793
25794static PyObject *_wrap_Window_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) {
25795 PyObject *resultobj;
25796 wxWindow *arg1 = (wxWindow *) 0 ;
25797 wxRect *arg2 = 0 ;
25798 wxRect temp2 ;
25799 PyObject * obj0 = 0 ;
25800 PyObject * obj1 = 0 ;
25801 char *kwnames[] = {
25802 (char *) "self",(char *) "rect", NULL
25803 };
25804
25805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RefreshRect",kwnames,&obj0,&obj1)) goto fail;
25806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25808 {
25809 arg2 = &temp2;
25810 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
25811 }
25812 {
25813 PyThreadState* __tstate = wxPyBeginAllowThreads();
25814 (arg1)->RefreshRect((wxRect const &)*arg2);
25815
25816 wxPyEndAllowThreads(__tstate);
25817 if (PyErr_Occurred()) SWIG_fail;
25818 }
25819 Py_INCREF(Py_None); resultobj = Py_None;
25820 return resultobj;
25821 fail:
25822 return NULL;
25823}
25824
25825
25826static PyObject *_wrap_Window_Update(PyObject *self, PyObject *args, PyObject *kwargs) {
25827 PyObject *resultobj;
25828 wxWindow *arg1 = (wxWindow *) 0 ;
25829 PyObject * obj0 = 0 ;
25830 char *kwnames[] = {
25831 (char *) "self", NULL
25832 };
25833
25834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Update",kwnames,&obj0)) goto fail;
25835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25837 {
25838 PyThreadState* __tstate = wxPyBeginAllowThreads();
25839 (arg1)->Update();
25840
25841 wxPyEndAllowThreads(__tstate);
25842 if (PyErr_Occurred()) SWIG_fail;
25843 }
25844 Py_INCREF(Py_None); resultobj = Py_None;
25845 return resultobj;
25846 fail:
25847 return NULL;
25848}
25849
25850
25851static PyObject *_wrap_Window_ClearBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
25852 PyObject *resultobj;
25853 wxWindow *arg1 = (wxWindow *) 0 ;
25854 PyObject * obj0 = 0 ;
25855 char *kwnames[] = {
25856 (char *) "self", NULL
25857 };
25858
25859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ClearBackground",kwnames,&obj0)) goto fail;
25860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25862 {
25863 PyThreadState* __tstate = wxPyBeginAllowThreads();
25864 (arg1)->ClearBackground();
25865
25866 wxPyEndAllowThreads(__tstate);
25867 if (PyErr_Occurred()) SWIG_fail;
25868 }
25869 Py_INCREF(Py_None); resultobj = Py_None;
25870 return resultobj;
25871 fail:
25872 return NULL;
25873}
25874
25875
25876static PyObject *_wrap_Window_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) {
25877 PyObject *resultobj;
25878 wxWindow *arg1 = (wxWindow *) 0 ;
25879 PyObject * obj0 = 0 ;
25880 char *kwnames[] = {
25881 (char *) "self", NULL
25882 };
25883
25884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Freeze",kwnames,&obj0)) goto fail;
25885 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25887 {
25888 PyThreadState* __tstate = wxPyBeginAllowThreads();
25889 (arg1)->Freeze();
25890
25891 wxPyEndAllowThreads(__tstate);
25892 if (PyErr_Occurred()) SWIG_fail;
25893 }
25894 Py_INCREF(Py_None); resultobj = Py_None;
25895 return resultobj;
25896 fail:
25897 return NULL;
25898}
25899
25900
25901static PyObject *_wrap_Window_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) {
25902 PyObject *resultobj;
25903 wxWindow *arg1 = (wxWindow *) 0 ;
25904 PyObject * obj0 = 0 ;
25905 char *kwnames[] = {
25906 (char *) "self", NULL
25907 };
25908
25909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Thaw",kwnames,&obj0)) goto fail;
25910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25912 {
25913 PyThreadState* __tstate = wxPyBeginAllowThreads();
25914 (arg1)->Thaw();
25915
25916 wxPyEndAllowThreads(__tstate);
25917 if (PyErr_Occurred()) SWIG_fail;
25918 }
25919 Py_INCREF(Py_None); resultobj = Py_None;
25920 return resultobj;
25921 fail:
25922 return NULL;
25923}
25924
25925
25926static PyObject *_wrap_Window_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) {
25927 PyObject *resultobj;
25928 wxWindow *arg1 = (wxWindow *) 0 ;
25929 wxDC *arg2 = 0 ;
25930 PyObject * obj0 = 0 ;
25931 PyObject * obj1 = 0 ;
25932 char *kwnames[] = {
25933 (char *) "self",(char *) "dc", NULL
25934 };
25935
25936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) goto fail;
25937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25939 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
25940 SWIG_POINTER_EXCEPTION | 0)) == -1)
25941 SWIG_fail;
25942 if (arg2 == NULL) {
25943 PyErr_SetString(PyExc_TypeError,"null reference");
25944 SWIG_fail;
25945 }
25946 {
25947 PyThreadState* __tstate = wxPyBeginAllowThreads();
25948 (arg1)->PrepareDC(*arg2);
25949
25950 wxPyEndAllowThreads(__tstate);
25951 if (PyErr_Occurred()) SWIG_fail;
25952 }
25953 Py_INCREF(Py_None); resultobj = Py_None;
25954 return resultobj;
25955 fail:
25956 return NULL;
25957}
25958
25959
25960static PyObject *_wrap_Window_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
25961 PyObject *resultobj;
25962 wxWindow *arg1 = (wxWindow *) 0 ;
25963 wxRegion *result;
25964 PyObject * obj0 = 0 ;
25965 char *kwnames[] = {
25966 (char *) "self", NULL
25967 };
25968
25969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateRegion",kwnames,&obj0)) goto fail;
25970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25972 {
25973 PyThreadState* __tstate = wxPyBeginAllowThreads();
25974 {
25975 wxRegion &_result_ref = (arg1)->GetUpdateRegion();
25976 result = (wxRegion *) &_result_ref;
25977 }
25978
25979 wxPyEndAllowThreads(__tstate);
25980 if (PyErr_Occurred()) SWIG_fail;
25981 }
25982 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 0);
25983 return resultobj;
25984 fail:
25985 return NULL;
25986}
25987
25988
25989static PyObject *_wrap_Window_GetUpdateClientRect(PyObject *self, PyObject *args, PyObject *kwargs) {
25990 PyObject *resultobj;
25991 wxWindow *arg1 = (wxWindow *) 0 ;
25992 wxRect result;
25993 PyObject * obj0 = 0 ;
25994 char *kwnames[] = {
25995 (char *) "self", NULL
25996 };
25997
25998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateClientRect",kwnames,&obj0)) goto fail;
25999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26001 {
26002 PyThreadState* __tstate = wxPyBeginAllowThreads();
26003 result = ((wxWindow const *)arg1)->GetUpdateClientRect();
26004
26005 wxPyEndAllowThreads(__tstate);
26006 if (PyErr_Occurred()) SWIG_fail;
26007 }
26008 {
26009 wxRect * resultptr;
26010 resultptr = new wxRect((wxRect &) result);
26011 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
26012 }
26013 return resultobj;
26014 fail:
26015 return NULL;
26016}
26017
26018
26019static PyObject *_wrap_Window_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) {
26020 PyObject *resultobj;
26021 wxWindow *arg1 = (wxWindow *) 0 ;
26022 int arg2 ;
26023 int arg3 ;
26024 int arg4 = (int) 1 ;
26025 int arg5 = (int) 1 ;
26026 bool result;
26027 PyObject * obj0 = 0 ;
26028 PyObject * obj1 = 0 ;
26029 PyObject * obj2 = 0 ;
26030 PyObject * obj3 = 0 ;
26031 PyObject * obj4 = 0 ;
26032 char *kwnames[] = {
26033 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26034 };
26035
26036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_IsExposed",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
26037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26039 arg2 = (int) SWIG_AsInt(obj1);
26040 if (PyErr_Occurred()) SWIG_fail;
26041 arg3 = (int) SWIG_AsInt(obj2);
26042 if (PyErr_Occurred()) SWIG_fail;
26043 if (obj3) {
26044 arg4 = (int) SWIG_AsInt(obj3);
26045 if (PyErr_Occurred()) SWIG_fail;
26046 }
26047 if (obj4) {
26048 arg5 = (int) SWIG_AsInt(obj4);
26049 if (PyErr_Occurred()) SWIG_fail;
26050 }
26051 {
26052 PyThreadState* __tstate = wxPyBeginAllowThreads();
26053 result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5);
26054
26055 wxPyEndAllowThreads(__tstate);
26056 if (PyErr_Occurred()) SWIG_fail;
26057 }
26058 {
26059 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26060 }
26061 return resultobj;
26062 fail:
26063 return NULL;
26064}
26065
26066
26067static PyObject *_wrap_Window_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
26068 PyObject *resultobj;
26069 wxWindow *arg1 = (wxWindow *) 0 ;
26070 wxPoint *arg2 = 0 ;
26071 bool result;
26072 wxPoint temp2 ;
26073 PyObject * obj0 = 0 ;
26074 PyObject * obj1 = 0 ;
26075 char *kwnames[] = {
26076 (char *) "self",(char *) "pt", NULL
26077 };
26078
26079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) goto fail;
26080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26082 {
26083 arg2 = &temp2;
26084 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26085 }
26086 {
26087 PyThreadState* __tstate = wxPyBeginAllowThreads();
26088 result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2);
26089
26090 wxPyEndAllowThreads(__tstate);
26091 if (PyErr_Occurred()) SWIG_fail;
26092 }
26093 {
26094 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26095 }
26096 return resultobj;
26097 fail:
26098 return NULL;
26099}
26100
26101
26102static PyObject *_wrap_Window_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) {
26103 PyObject *resultobj;
26104 wxWindow *arg1 = (wxWindow *) 0 ;
26105 wxRect *arg2 = 0 ;
26106 bool result;
26107 wxRect temp2 ;
26108 PyObject * obj0 = 0 ;
26109 PyObject * obj1 = 0 ;
26110 char *kwnames[] = {
26111 (char *) "self",(char *) "rect", NULL
26112 };
26113
26114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedRect",kwnames,&obj0,&obj1)) goto fail;
26115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26117 {
26118 arg2 = &temp2;
26119 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
26120 }
26121 {
26122 PyThreadState* __tstate = wxPyBeginAllowThreads();
26123 result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2);
26124
26125 wxPyEndAllowThreads(__tstate);
26126 if (PyErr_Occurred()) SWIG_fail;
26127 }
26128 {
26129 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26130 }
26131 return resultobj;
26132 fail:
26133 return NULL;
26134}
26135
26136
26137static PyObject *_wrap_Window_GetDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
26138 PyObject *resultobj;
26139 wxWindow *arg1 = (wxWindow *) 0 ;
26140 wxVisualAttributes result;
26141 PyObject * obj0 = 0 ;
26142 char *kwnames[] = {
26143 (char *) "self", NULL
26144 };
26145
26146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultAttributes",kwnames,&obj0)) goto fail;
26147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26149 {
26150 PyThreadState* __tstate = wxPyBeginAllowThreads();
26151 result = ((wxWindow const *)arg1)->GetDefaultAttributes();
26152
26153 wxPyEndAllowThreads(__tstate);
26154 if (PyErr_Occurred()) SWIG_fail;
26155 }
26156 {
26157 wxVisualAttributes * resultptr;
26158 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
26159 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
26160 }
26161 return resultobj;
26162 fail:
26163 return NULL;
26164}
26165
26166
26167static PyObject *_wrap_Window_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
26168 PyObject *resultobj;
26169 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
26170 wxVisualAttributes result;
26171 PyObject * obj0 = 0 ;
26172 char *kwnames[] = {
26173 (char *) "variant", NULL
26174 };
26175
26176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Window_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
26177 if (obj0) {
26178 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
26179 if (PyErr_Occurred()) SWIG_fail;
26180 }
26181 {
0439c23b 26182 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
26183 PyThreadState* __tstate = wxPyBeginAllowThreads();
26184 result = wxWindow::GetClassDefaultAttributes((wxWindowVariant )arg1);
26185
26186 wxPyEndAllowThreads(__tstate);
110da5b0 26187 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
26188 }
26189 {
26190 wxVisualAttributes * resultptr;
26191 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
26192 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
26193 }
26194 return resultobj;
26195 fail:
26196 return NULL;
26197}
26198
26199
26200static PyObject *_wrap_Window_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
26201 PyObject *resultobj;
26202 wxWindow *arg1 = (wxWindow *) 0 ;
26203 wxColour *arg2 = 0 ;
26204 bool result;
26205 wxColour temp2 ;
26206 PyObject * obj0 = 0 ;
26207 PyObject * obj1 = 0 ;
26208 char *kwnames[] = {
26209 (char *) "self",(char *) "colour", NULL
26210 };
26211
26212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
26213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26215 {
26216 arg2 = &temp2;
26217 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26218 }
26219 {
26220 PyThreadState* __tstate = wxPyBeginAllowThreads();
26221 result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2);
26222
26223 wxPyEndAllowThreads(__tstate);
26224 if (PyErr_Occurred()) SWIG_fail;
26225 }
26226 {
26227 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26228 }
26229 return resultobj;
26230 fail:
26231 return NULL;
26232}
26233
26234
412d302d 26235static PyObject *_wrap_Window_SetOwnBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26236 PyObject *resultobj;
26237 wxWindow *arg1 = (wxWindow *) 0 ;
26238 wxColour *arg2 = 0 ;
26239 wxColour temp2 ;
26240 PyObject * obj0 = 0 ;
26241 PyObject * obj1 = 0 ;
26242 char *kwnames[] = {
26243 (char *) "self",(char *) "colour", NULL
26244 };
26245
412d302d 26246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
26247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26249 {
26250 arg2 = &temp2;
26251 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26252 }
26253 {
26254 PyThreadState* __tstate = wxPyBeginAllowThreads();
412d302d 26255 (arg1)->SetOwnBackgroundColour((wxColour const &)*arg2);
d55e5bfc
RD
26256
26257 wxPyEndAllowThreads(__tstate);
26258 if (PyErr_Occurred()) SWIG_fail;
26259 }
26260 Py_INCREF(Py_None); resultobj = Py_None;
26261 return resultobj;
26262 fail:
26263 return NULL;
26264}
26265
26266
26267static PyObject *_wrap_Window_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
26268 PyObject *resultobj;
26269 wxWindow *arg1 = (wxWindow *) 0 ;
26270 wxColour *arg2 = 0 ;
26271 bool result;
26272 wxColour temp2 ;
26273 PyObject * obj0 = 0 ;
26274 PyObject * obj1 = 0 ;
26275 char *kwnames[] = {
26276 (char *) "self",(char *) "colour", NULL
26277 };
26278
26279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail;
26280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26282 {
26283 arg2 = &temp2;
26284 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26285 }
26286 {
26287 PyThreadState* __tstate = wxPyBeginAllowThreads();
26288 result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2);
26289
26290 wxPyEndAllowThreads(__tstate);
26291 if (PyErr_Occurred()) SWIG_fail;
26292 }
26293 {
26294 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26295 }
26296 return resultobj;
26297 fail:
26298 return NULL;
26299}
26300
26301
fa47d7a7 26302static PyObject *_wrap_Window_SetOwnForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26303 PyObject *resultobj;
26304 wxWindow *arg1 = (wxWindow *) 0 ;
26305 wxColour *arg2 = 0 ;
26306 wxColour temp2 ;
26307 PyObject * obj0 = 0 ;
26308 PyObject * obj1 = 0 ;
26309 char *kwnames[] = {
26310 (char *) "self",(char *) "colour", NULL
26311 };
26312
fa47d7a7 26313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnForegroundColour",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
26314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26316 {
26317 arg2 = &temp2;
26318 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26319 }
26320 {
26321 PyThreadState* __tstate = wxPyBeginAllowThreads();
fa47d7a7 26322 (arg1)->SetOwnForegroundColour((wxColour const &)*arg2);
d55e5bfc
RD
26323
26324 wxPyEndAllowThreads(__tstate);
26325 if (PyErr_Occurred()) SWIG_fail;
26326 }
26327 Py_INCREF(Py_None); resultobj = Py_None;
26328 return resultobj;
26329 fail:
26330 return NULL;
26331}
26332
26333
26334static PyObject *_wrap_Window_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
26335 PyObject *resultobj;
26336 wxWindow *arg1 = (wxWindow *) 0 ;
26337 wxColour result;
26338 PyObject * obj0 = 0 ;
26339 char *kwnames[] = {
26340 (char *) "self", NULL
26341 };
26342
26343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundColour",kwnames,&obj0)) goto fail;
26344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26346 {
26347 PyThreadState* __tstate = wxPyBeginAllowThreads();
26348 result = ((wxWindow const *)arg1)->GetBackgroundColour();
26349
26350 wxPyEndAllowThreads(__tstate);
26351 if (PyErr_Occurred()) SWIG_fail;
26352 }
26353 {
26354 wxColour * resultptr;
26355 resultptr = new wxColour((wxColour &) result);
26356 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
26357 }
26358 return resultobj;
26359 fail:
26360 return NULL;
26361}
26362
26363
26364static PyObject *_wrap_Window_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
26365 PyObject *resultobj;
26366 wxWindow *arg1 = (wxWindow *) 0 ;
26367 wxColour result;
26368 PyObject * obj0 = 0 ;
26369 char *kwnames[] = {
26370 (char *) "self", NULL
26371 };
26372
26373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetForegroundColour",kwnames,&obj0)) goto fail;
26374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26376 {
26377 PyThreadState* __tstate = wxPyBeginAllowThreads();
26378 result = ((wxWindow const *)arg1)->GetForegroundColour();
26379
26380 wxPyEndAllowThreads(__tstate);
26381 if (PyErr_Occurred()) SWIG_fail;
26382 }
26383 {
26384 wxColour * resultptr;
26385 resultptr = new wxColour((wxColour &) result);
26386 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
26387 }
26388 return resultobj;
26389 fail:
26390 return NULL;
26391}
26392
26393
26394static PyObject *_wrap_Window_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
26395 PyObject *resultobj;
26396 wxWindow *arg1 = (wxWindow *) 0 ;
26397 wxCursor *arg2 = 0 ;
26398 bool result;
26399 PyObject * obj0 = 0 ;
26400 PyObject * obj1 = 0 ;
26401 char *kwnames[] = {
26402 (char *) "self",(char *) "cursor", NULL
26403 };
26404
26405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) goto fail;
26406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26408 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
26409 SWIG_POINTER_EXCEPTION | 0)) == -1)
26410 SWIG_fail;
26411 if (arg2 == NULL) {
26412 PyErr_SetString(PyExc_TypeError,"null reference");
26413 SWIG_fail;
26414 }
26415 {
26416 PyThreadState* __tstate = wxPyBeginAllowThreads();
26417 result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2);
26418
26419 wxPyEndAllowThreads(__tstate);
26420 if (PyErr_Occurred()) SWIG_fail;
26421 }
26422 {
26423 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26424 }
26425 return resultobj;
26426 fail:
26427 return NULL;
26428}
26429
26430
26431static PyObject *_wrap_Window_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
26432 PyObject *resultobj;
26433 wxWindow *arg1 = (wxWindow *) 0 ;
a001823c 26434 wxCursor result;
d55e5bfc
RD
26435 PyObject * obj0 = 0 ;
26436 char *kwnames[] = {
26437 (char *) "self", NULL
26438 };
26439
26440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCursor",kwnames,&obj0)) goto fail;
26441 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26443 {
26444 PyThreadState* __tstate = wxPyBeginAllowThreads();
a001823c 26445 result = (arg1)->GetCursor();
d55e5bfc
RD
26446
26447 wxPyEndAllowThreads(__tstate);
26448 if (PyErr_Occurred()) SWIG_fail;
26449 }
26450 {
a001823c
RD
26451 wxCursor * resultptr;
26452 resultptr = new wxCursor((wxCursor &) result);
26453 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxCursor, 1);
d55e5bfc
RD
26454 }
26455 return resultobj;
26456 fail:
26457 return NULL;
26458}
26459
26460
26461static PyObject *_wrap_Window_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
26462 PyObject *resultobj;
26463 wxWindow *arg1 = (wxWindow *) 0 ;
26464 wxFont *arg2 = 0 ;
26465 bool result;
26466 PyObject * obj0 = 0 ;
26467 PyObject * obj1 = 0 ;
26468 char *kwnames[] = {
26469 (char *) "self",(char *) "font", NULL
26470 };
26471
26472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) goto fail;
26473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26475 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
26476 SWIG_POINTER_EXCEPTION | 0)) == -1)
26477 SWIG_fail;
26478 if (arg2 == NULL) {
26479 PyErr_SetString(PyExc_TypeError,"null reference");
26480 SWIG_fail;
26481 }
26482 {
26483 PyThreadState* __tstate = wxPyBeginAllowThreads();
26484 result = (bool)(arg1)->SetFont((wxFont const &)*arg2);
26485
26486 wxPyEndAllowThreads(__tstate);
26487 if (PyErr_Occurred()) SWIG_fail;
26488 }
26489 {
26490 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26491 }
26492 return resultobj;
26493 fail:
26494 return NULL;
26495}
26496
26497
fa47d7a7 26498static PyObject *_wrap_Window_SetOwnFont(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26499 PyObject *resultobj;
26500 wxWindow *arg1 = (wxWindow *) 0 ;
26501 wxFont *arg2 = 0 ;
26502 PyObject * obj0 = 0 ;
26503 PyObject * obj1 = 0 ;
26504 char *kwnames[] = {
26505 (char *) "self",(char *) "font", NULL
26506 };
26507
fa47d7a7 26508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnFont",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
26509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26511 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
26512 SWIG_POINTER_EXCEPTION | 0)) == -1)
26513 SWIG_fail;
26514 if (arg2 == NULL) {
26515 PyErr_SetString(PyExc_TypeError,"null reference");
26516 SWIG_fail;
26517 }
26518 {
26519 PyThreadState* __tstate = wxPyBeginAllowThreads();
fa47d7a7 26520 (arg1)->SetOwnFont((wxFont const &)*arg2);
d55e5bfc
RD
26521
26522 wxPyEndAllowThreads(__tstate);
26523 if (PyErr_Occurred()) SWIG_fail;
26524 }
26525 Py_INCREF(Py_None); resultobj = Py_None;
26526 return resultobj;
26527 fail:
26528 return NULL;
26529}
26530
26531
26532static PyObject *_wrap_Window_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
26533 PyObject *resultobj;
26534 wxWindow *arg1 = (wxWindow *) 0 ;
a001823c 26535 wxFont result;
d55e5bfc
RD
26536 PyObject * obj0 = 0 ;
26537 char *kwnames[] = {
26538 (char *) "self", NULL
26539 };
26540
26541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetFont",kwnames,&obj0)) goto fail;
26542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26544 {
26545 PyThreadState* __tstate = wxPyBeginAllowThreads();
a001823c 26546 result = (arg1)->GetFont();
d55e5bfc
RD
26547
26548 wxPyEndAllowThreads(__tstate);
26549 if (PyErr_Occurred()) SWIG_fail;
26550 }
26551 {
a001823c
RD
26552 wxFont * resultptr;
26553 resultptr = new wxFont((wxFont &) result);
26554 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
d55e5bfc
RD
26555 }
26556 return resultobj;
26557 fail:
26558 return NULL;
26559}
26560
26561
26562static PyObject *_wrap_Window_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) {
26563 PyObject *resultobj;
26564 wxWindow *arg1 = (wxWindow *) 0 ;
26565 wxCaret *arg2 = (wxCaret *) 0 ;
26566 PyObject * obj0 = 0 ;
26567 PyObject * obj1 = 0 ;
26568 char *kwnames[] = {
26569 (char *) "self",(char *) "caret", NULL
26570 };
26571
26572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",kwnames,&obj0,&obj1)) goto fail;
26573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26575 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCaret,
26576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26577 {
26578 PyThreadState* __tstate = wxPyBeginAllowThreads();
26579 (arg1)->SetCaret(arg2);
26580
26581 wxPyEndAllowThreads(__tstate);
26582 if (PyErr_Occurred()) SWIG_fail;
26583 }
26584 Py_INCREF(Py_None); resultobj = Py_None;
26585 return resultobj;
26586 fail:
26587 return NULL;
26588}
26589
26590
26591static PyObject *_wrap_Window_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) {
26592 PyObject *resultobj;
26593 wxWindow *arg1 = (wxWindow *) 0 ;
26594 wxCaret *result;
26595 PyObject * obj0 = 0 ;
26596 char *kwnames[] = {
26597 (char *) "self", NULL
26598 };
26599
26600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCaret",kwnames,&obj0)) goto fail;
26601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26603 {
26604 PyThreadState* __tstate = wxPyBeginAllowThreads();
26605 result = (wxCaret *)((wxWindow const *)arg1)->GetCaret();
26606
26607 wxPyEndAllowThreads(__tstate);
26608 if (PyErr_Occurred()) SWIG_fail;
26609 }
26610 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 0);
26611 return resultobj;
26612 fail:
26613 return NULL;
26614}
26615
26616
26617static PyObject *_wrap_Window_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
26618 PyObject *resultobj;
26619 wxWindow *arg1 = (wxWindow *) 0 ;
26620 int result;
26621 PyObject * obj0 = 0 ;
26622 char *kwnames[] = {
26623 (char *) "self", NULL
26624 };
26625
26626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharHeight",kwnames,&obj0)) goto fail;
26627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26629 {
26630 PyThreadState* __tstate = wxPyBeginAllowThreads();
26631 result = (int)((wxWindow const *)arg1)->GetCharHeight();
26632
26633 wxPyEndAllowThreads(__tstate);
26634 if (PyErr_Occurred()) SWIG_fail;
26635 }
26636 resultobj = SWIG_FromInt((int)result);
26637 return resultobj;
26638 fail:
26639 return NULL;
26640}
26641
26642
26643static PyObject *_wrap_Window_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
26644 PyObject *resultobj;
26645 wxWindow *arg1 = (wxWindow *) 0 ;
26646 int result;
26647 PyObject * obj0 = 0 ;
26648 char *kwnames[] = {
26649 (char *) "self", NULL
26650 };
26651
26652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharWidth",kwnames,&obj0)) goto fail;
26653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26655 {
26656 PyThreadState* __tstate = wxPyBeginAllowThreads();
26657 result = (int)((wxWindow const *)arg1)->GetCharWidth();
26658
26659 wxPyEndAllowThreads(__tstate);
26660 if (PyErr_Occurred()) SWIG_fail;
26661 }
26662 resultobj = SWIG_FromInt((int)result);
26663 return resultobj;
26664 fail:
26665 return NULL;
26666}
26667
26668
26669static PyObject *_wrap_Window_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
26670 PyObject *resultobj;
26671 wxWindow *arg1 = (wxWindow *) 0 ;
26672 wxString *arg2 = 0 ;
26673 int *arg3 = (int *) 0 ;
26674 int *arg4 = (int *) 0 ;
26675 bool temp2 = False ;
26676 int temp3 ;
26677 int temp4 ;
26678 PyObject * obj0 = 0 ;
26679 PyObject * obj1 = 0 ;
26680 char *kwnames[] = {
26681 (char *) "self",(char *) "string", NULL
26682 };
26683
26684 arg3 = &temp3;
26685 arg4 = &temp4;
26686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
26687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26689 {
26690 arg2 = wxString_in_helper(obj1);
26691 if (arg2 == NULL) SWIG_fail;
26692 temp2 = True;
26693 }
26694 {
26695 PyThreadState* __tstate = wxPyBeginAllowThreads();
26696 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
26697
26698 wxPyEndAllowThreads(__tstate);
26699 if (PyErr_Occurred()) SWIG_fail;
26700 }
26701 Py_INCREF(Py_None); resultobj = Py_None;
26702 {
26703 PyObject *o = PyInt_FromLong((long) (*arg3));
26704 resultobj = t_output_helper(resultobj,o);
26705 }
26706 {
26707 PyObject *o = PyInt_FromLong((long) (*arg4));
26708 resultobj = t_output_helper(resultobj,o);
26709 }
26710 {
26711 if (temp2)
26712 delete arg2;
26713 }
26714 return resultobj;
26715 fail:
26716 {
26717 if (temp2)
26718 delete arg2;
26719 }
26720 return NULL;
26721}
26722
26723
26724static PyObject *_wrap_Window_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
26725 PyObject *resultobj;
26726 wxWindow *arg1 = (wxWindow *) 0 ;
26727 wxString *arg2 = 0 ;
26728 int *arg3 = (int *) 0 ;
26729 int *arg4 = (int *) 0 ;
26730 int *arg5 = (int *) 0 ;
26731 int *arg6 = (int *) 0 ;
26732 wxFont *arg7 = (wxFont *) NULL ;
26733 bool temp2 = False ;
26734 int temp3 ;
26735 int temp4 ;
26736 int temp5 ;
26737 int temp6 ;
26738 PyObject * obj0 = 0 ;
26739 PyObject * obj1 = 0 ;
26740 PyObject * obj2 = 0 ;
26741 char *kwnames[] = {
26742 (char *) "self",(char *) "string",(char *) "font", NULL
26743 };
26744
26745 arg3 = &temp3;
26746 arg4 = &temp4;
26747 arg5 = &temp5;
26748 arg6 = &temp6;
26749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
26750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26752 {
26753 arg2 = wxString_in_helper(obj1);
26754 if (arg2 == NULL) SWIG_fail;
26755 temp2 = True;
26756 }
26757 if (obj2) {
26758 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
26759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26760 }
26761 {
26762 PyThreadState* __tstate = wxPyBeginAllowThreads();
26763 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7);
26764
26765 wxPyEndAllowThreads(__tstate);
26766 if (PyErr_Occurred()) SWIG_fail;
26767 }
26768 Py_INCREF(Py_None); resultobj = Py_None;
26769 {
26770 PyObject *o = PyInt_FromLong((long) (*arg3));
26771 resultobj = t_output_helper(resultobj,o);
26772 }
26773 {
26774 PyObject *o = PyInt_FromLong((long) (*arg4));
26775 resultobj = t_output_helper(resultobj,o);
26776 }
26777 {
26778 PyObject *o = PyInt_FromLong((long) (*arg5));
26779 resultobj = t_output_helper(resultobj,o);
26780 }
26781 {
26782 PyObject *o = PyInt_FromLong((long) (*arg6));
26783 resultobj = t_output_helper(resultobj,o);
26784 }
26785 {
26786 if (temp2)
26787 delete arg2;
26788 }
26789 return resultobj;
26790 fail:
26791 {
26792 if (temp2)
26793 delete arg2;
26794 }
26795 return NULL;
26796}
26797
26798
26799static PyObject *_wrap_Window_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) {
26800 PyObject *resultobj;
26801 wxWindow *arg1 = (wxWindow *) 0 ;
26802 int *arg2 = (int *) 0 ;
26803 int *arg3 = (int *) 0 ;
26804 int temp2 ;
26805 int temp3 ;
26806 PyObject * obj0 = 0 ;
26807 PyObject * obj1 = 0 ;
26808 PyObject * obj2 = 0 ;
26809 char *kwnames[] = {
26810 (char *) "self",(char *) "x",(char *) "y", NULL
26811 };
26812
26813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
26814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26816 {
26817 temp2 = PyInt_AsLong(obj1);
26818 if (PyErr_Occurred()) SWIG_fail;
26819 arg2 = &temp2;
26820 }
26821 {
26822 temp3 = PyInt_AsLong(obj2);
26823 if (PyErr_Occurred()) SWIG_fail;
26824 arg3 = &temp3;
26825 }
26826 {
26827 PyThreadState* __tstate = wxPyBeginAllowThreads();
26828 ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3);
26829
26830 wxPyEndAllowThreads(__tstate);
26831 if (PyErr_Occurred()) SWIG_fail;
26832 }
26833 Py_INCREF(Py_None); resultobj = Py_None;
26834 {
26835 PyObject *o = PyInt_FromLong((long) (*arg2));
26836 resultobj = t_output_helper(resultobj,o);
26837 }
26838 {
26839 PyObject *o = PyInt_FromLong((long) (*arg3));
26840 resultobj = t_output_helper(resultobj,o);
26841 }
26842 return resultobj;
26843 fail:
26844 return NULL;
26845}
26846
26847
26848static PyObject *_wrap_Window_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) {
26849 PyObject *resultobj;
26850 wxWindow *arg1 = (wxWindow *) 0 ;
26851 int *arg2 = (int *) 0 ;
26852 int *arg3 = (int *) 0 ;
26853 int temp2 ;
26854 int temp3 ;
26855 PyObject * obj0 = 0 ;
26856 PyObject * obj1 = 0 ;
26857 PyObject * obj2 = 0 ;
26858 char *kwnames[] = {
26859 (char *) "self",(char *) "x",(char *) "y", NULL
26860 };
26861
26862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
26863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26865 {
26866 temp2 = PyInt_AsLong(obj1);
26867 if (PyErr_Occurred()) SWIG_fail;
26868 arg2 = &temp2;
26869 }
26870 {
26871 temp3 = PyInt_AsLong(obj2);
26872 if (PyErr_Occurred()) SWIG_fail;
26873 arg3 = &temp3;
26874 }
26875 {
26876 PyThreadState* __tstate = wxPyBeginAllowThreads();
26877 ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3);
26878
26879 wxPyEndAllowThreads(__tstate);
26880 if (PyErr_Occurred()) SWIG_fail;
26881 }
26882 Py_INCREF(Py_None); resultobj = Py_None;
26883 {
26884 PyObject *o = PyInt_FromLong((long) (*arg2));
26885 resultobj = t_output_helper(resultobj,o);
26886 }
26887 {
26888 PyObject *o = PyInt_FromLong((long) (*arg3));
26889 resultobj = t_output_helper(resultobj,o);
26890 }
26891 return resultobj;
26892 fail:
26893 return NULL;
26894}
26895
26896
26897static PyObject *_wrap_Window_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) {
26898 PyObject *resultobj;
26899 wxWindow *arg1 = (wxWindow *) 0 ;
26900 wxPoint *arg2 = 0 ;
26901 wxPoint result;
26902 wxPoint temp2 ;
26903 PyObject * obj0 = 0 ;
26904 PyObject * obj1 = 0 ;
26905 char *kwnames[] = {
26906 (char *) "self",(char *) "pt", NULL
26907 };
26908
26909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) goto fail;
26910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26912 {
26913 arg2 = &temp2;
26914 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26915 }
26916 {
26917 PyThreadState* __tstate = wxPyBeginAllowThreads();
26918 result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2);
26919
26920 wxPyEndAllowThreads(__tstate);
26921 if (PyErr_Occurred()) SWIG_fail;
26922 }
26923 {
26924 wxPoint * resultptr;
26925 resultptr = new wxPoint((wxPoint &) result);
26926 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
26927 }
26928 return resultobj;
26929 fail:
26930 return NULL;
26931}
26932
26933
26934static PyObject *_wrap_Window_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) {
26935 PyObject *resultobj;
26936 wxWindow *arg1 = (wxWindow *) 0 ;
26937 wxPoint *arg2 = 0 ;
26938 wxPoint result;
26939 wxPoint temp2 ;
26940 PyObject * obj0 = 0 ;
26941 PyObject * obj1 = 0 ;
26942 char *kwnames[] = {
26943 (char *) "self",(char *) "pt", NULL
26944 };
26945
26946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) goto fail;
26947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26949 {
26950 arg2 = &temp2;
26951 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26952 }
26953 {
26954 PyThreadState* __tstate = wxPyBeginAllowThreads();
26955 result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2);
26956
26957 wxPyEndAllowThreads(__tstate);
26958 if (PyErr_Occurred()) SWIG_fail;
26959 }
26960 {
26961 wxPoint * resultptr;
26962 resultptr = new wxPoint((wxPoint &) result);
26963 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
26964 }
26965 return resultobj;
26966 fail:
26967 return NULL;
26968}
26969
26970
26971static PyObject *_wrap_Window_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) {
26972 PyObject *resultobj;
26973 wxWindow *arg1 = (wxWindow *) 0 ;
26974 int arg2 ;
26975 int arg3 ;
26976 int result;
26977 PyObject * obj0 = 0 ;
26978 PyObject * obj1 = 0 ;
26979 PyObject * obj2 = 0 ;
26980 char *kwnames[] = {
26981 (char *) "self",(char *) "x",(char *) "y", NULL
26982 };
26983
26984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
26985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26987 arg2 = (int) SWIG_AsInt(obj1);
26988 if (PyErr_Occurred()) SWIG_fail;
26989 arg3 = (int) SWIG_AsInt(obj2);
26990 if (PyErr_Occurred()) SWIG_fail;
26991 {
26992 PyThreadState* __tstate = wxPyBeginAllowThreads();
26993 result = (int)((wxWindow const *)arg1)->HitTest(arg2,arg3);
26994
26995 wxPyEndAllowThreads(__tstate);
26996 if (PyErr_Occurred()) SWIG_fail;
26997 }
26998 resultobj = SWIG_FromInt((int)result);
26999 return resultobj;
27000 fail:
27001 return NULL;
27002}
27003
27004
27005static PyObject *_wrap_Window_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
27006 PyObject *resultobj;
27007 wxWindow *arg1 = (wxWindow *) 0 ;
27008 wxPoint *arg2 = 0 ;
27009 int result;
27010 wxPoint temp2 ;
27011 PyObject * obj0 = 0 ;
27012 PyObject * obj1 = 0 ;
27013 char *kwnames[] = {
27014 (char *) "self",(char *) "pt", NULL
27015 };
27016
27017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) goto fail;
27018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27020 {
27021 arg2 = &temp2;
27022 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
27023 }
27024 {
27025 PyThreadState* __tstate = wxPyBeginAllowThreads();
27026 result = (int)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2);
27027
27028 wxPyEndAllowThreads(__tstate);
27029 if (PyErr_Occurred()) SWIG_fail;
27030 }
27031 resultobj = SWIG_FromInt((int)result);
27032 return resultobj;
27033 fail:
27034 return NULL;
27035}
27036
27037
27038static PyObject *_wrap_Window_GetBorder__SWIG_0(PyObject *self, PyObject *args) {
27039 PyObject *resultobj;
27040 wxWindow *arg1 = (wxWindow *) 0 ;
27041 long arg2 ;
27042 int result;
27043 PyObject * obj0 = 0 ;
27044 PyObject * obj1 = 0 ;
27045
27046 if(!PyArg_ParseTuple(args,(char *)"OO:Window_GetBorder",&obj0,&obj1)) goto fail;
27047 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27049 arg2 = (long) SWIG_AsLong(obj1);
27050 if (PyErr_Occurred()) SWIG_fail;
27051 {
27052 PyThreadState* __tstate = wxPyBeginAllowThreads();
27053 result = (int)((wxWindow const *)arg1)->GetBorder(arg2);
27054
27055 wxPyEndAllowThreads(__tstate);
27056 if (PyErr_Occurred()) SWIG_fail;
27057 }
27058 resultobj = SWIG_FromInt((int)result);
27059 return resultobj;
27060 fail:
27061 return NULL;
27062}
27063
27064
27065static PyObject *_wrap_Window_GetBorder__SWIG_1(PyObject *self, PyObject *args) {
27066 PyObject *resultobj;
27067 wxWindow *arg1 = (wxWindow *) 0 ;
27068 int result;
27069 PyObject * obj0 = 0 ;
27070
27071 if(!PyArg_ParseTuple(args,(char *)"O:Window_GetBorder",&obj0)) goto fail;
27072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27074 {
27075 PyThreadState* __tstate = wxPyBeginAllowThreads();
27076 result = (int)((wxWindow const *)arg1)->GetBorder();
27077
27078 wxPyEndAllowThreads(__tstate);
27079 if (PyErr_Occurred()) SWIG_fail;
27080 }
27081 resultobj = SWIG_FromInt((int)result);
27082 return resultobj;
27083 fail:
27084 return NULL;
27085}
27086
27087
27088static PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args) {
27089 int argc;
27090 PyObject *argv[3];
27091 int ii;
27092
27093 argc = PyObject_Length(args);
27094 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
27095 argv[ii] = PyTuple_GetItem(args,ii);
27096 }
27097 if (argc == 1) {
27098 int _v;
27099 {
27100 void *ptr;
27101 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
27102 _v = 0;
27103 PyErr_Clear();
27104 } else {
27105 _v = 1;
27106 }
27107 }
27108 if (_v) {
27109 return _wrap_Window_GetBorder__SWIG_1(self,args);
27110 }
27111 }
27112 if (argc == 2) {
27113 int _v;
27114 {
27115 void *ptr;
27116 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
27117 _v = 0;
27118 PyErr_Clear();
27119 } else {
27120 _v = 1;
27121 }
27122 }
27123 if (_v) {
27124 _v = SWIG_CheckLong(argv[1]);
27125 if (_v) {
27126 return _wrap_Window_GetBorder__SWIG_0(self,args);
27127 }
27128 }
27129 }
27130
27131 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_GetBorder'");
27132 return NULL;
27133}
27134
27135
27136static PyObject *_wrap_Window_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) {
27137 PyObject *resultobj;
27138 wxWindow *arg1 = (wxWindow *) 0 ;
27139 long arg2 = (long) wxUPDATE_UI_NONE ;
27140 PyObject * obj0 = 0 ;
27141 PyObject * obj1 = 0 ;
27142 char *kwnames[] = {
27143 (char *) "self",(char *) "flags", NULL
27144 };
27145
27146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_UpdateWindowUI",kwnames,&obj0,&obj1)) goto fail;
27147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27149 if (obj1) {
27150 arg2 = (long) SWIG_AsLong(obj1);
27151 if (PyErr_Occurred()) SWIG_fail;
27152 }
27153 {
27154 PyThreadState* __tstate = wxPyBeginAllowThreads();
27155 (arg1)->UpdateWindowUI(arg2);
27156
27157 wxPyEndAllowThreads(__tstate);
27158 if (PyErr_Occurred()) SWIG_fail;
27159 }
27160 Py_INCREF(Py_None); resultobj = Py_None;
27161 return resultobj;
27162 fail:
27163 return NULL;
27164}
27165
27166
27167static PyObject *_wrap_Window_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) {
27168 PyObject *resultobj;
27169 wxWindow *arg1 = (wxWindow *) 0 ;
27170 wxMenu *arg2 = (wxMenu *) 0 ;
7a0b95b0
RD
27171 int arg3 = (int) -1 ;
27172 int arg4 = (int) -1 ;
d55e5bfc
RD
27173 bool result;
27174 PyObject * obj0 = 0 ;
27175 PyObject * obj1 = 0 ;
27176 PyObject * obj2 = 0 ;
27177 PyObject * obj3 = 0 ;
27178 char *kwnames[] = {
27179 (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL
27180 };
27181
7a0b95b0 27182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Window_PopupMenuXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
27183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27185 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
27186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7a0b95b0
RD
27187 if (obj2) {
27188 arg3 = (int) SWIG_AsInt(obj2);
27189 if (PyErr_Occurred()) SWIG_fail;
27190 }
27191 if (obj3) {
27192 arg4 = (int) SWIG_AsInt(obj3);
27193 if (PyErr_Occurred()) SWIG_fail;
27194 }
d55e5bfc
RD
27195 {
27196 PyThreadState* __tstate = wxPyBeginAllowThreads();
27197 result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4);
27198
27199 wxPyEndAllowThreads(__tstate);
27200 if (PyErr_Occurred()) SWIG_fail;
27201 }
27202 {
27203 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27204 }
27205 return resultobj;
27206 fail:
27207 return NULL;
27208}
27209
27210
27211static PyObject *_wrap_Window_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
27212 PyObject *resultobj;
27213 wxWindow *arg1 = (wxWindow *) 0 ;
27214 wxMenu *arg2 = (wxMenu *) 0 ;
7a0b95b0
RD
27215 wxPoint const &arg3_defvalue = wxDefaultPosition ;
27216 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
d55e5bfc
RD
27217 bool result;
27218 wxPoint temp3 ;
27219 PyObject * obj0 = 0 ;
27220 PyObject * obj1 = 0 ;
27221 PyObject * obj2 = 0 ;
27222 char *kwnames[] = {
27223 (char *) "self",(char *) "menu",(char *) "pos", NULL
27224 };
27225
7a0b95b0 27226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
27227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27229 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
27230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7a0b95b0
RD
27231 if (obj2) {
27232 {
27233 arg3 = &temp3;
27234 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
27235 }
d55e5bfc
RD
27236 }
27237 {
27238 PyThreadState* __tstate = wxPyBeginAllowThreads();
27239 result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3);
27240
27241 wxPyEndAllowThreads(__tstate);
27242 if (PyErr_Occurred()) SWIG_fail;
27243 }
27244 {
27245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27246 }
27247 return resultobj;
27248 fail:
27249 return NULL;
27250}
27251
27252
27253static PyObject *_wrap_Window_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
27254 PyObject *resultobj;
27255 wxWindow *arg1 = (wxWindow *) 0 ;
27256 long result;
27257 PyObject * obj0 = 0 ;
27258 char *kwnames[] = {
27259 (char *) "self", NULL
27260 };
27261
27262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHandle",kwnames,&obj0)) goto fail;
27263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27265 {
27266 PyThreadState* __tstate = wxPyBeginAllowThreads();
27267 result = (long)wxWindow_GetHandle(arg1);
27268
27269 wxPyEndAllowThreads(__tstate);
27270 if (PyErr_Occurred()) SWIG_fail;
27271 }
27272 resultobj = SWIG_FromLong((long)result);
27273 return resultobj;
27274 fail:
27275 return NULL;
27276}
27277
27278
27279static PyObject *_wrap_Window_OnPaint(PyObject *self, PyObject *args, PyObject *kwargs) {
27280 PyObject *resultobj;
27281 wxWindow *arg1 = (wxWindow *) 0 ;
27282 wxPaintEvent *arg2 = 0 ;
27283 PyObject * obj0 = 0 ;
27284 PyObject * obj1 = 0 ;
27285 char *kwnames[] = {
27286 (char *) "self",(char *) "event", NULL
27287 };
27288
27289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_OnPaint",kwnames,&obj0,&obj1)) goto fail;
27290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27292 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPaintEvent,
27293 SWIG_POINTER_EXCEPTION | 0)) == -1)
27294 SWIG_fail;
27295 if (arg2 == NULL) {
27296 PyErr_SetString(PyExc_TypeError,"null reference");
27297 SWIG_fail;
27298 }
27299 {
27300 PyThreadState* __tstate = wxPyBeginAllowThreads();
27301 (arg1)->OnPaint(*arg2);
27302
27303 wxPyEndAllowThreads(__tstate);
27304 if (PyErr_Occurred()) SWIG_fail;
27305 }
27306 Py_INCREF(Py_None); resultobj = Py_None;
27307 return resultobj;
27308 fail:
27309 return NULL;
27310}
27311
27312
27313static PyObject *_wrap_Window_HasScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) {
27314 PyObject *resultobj;
27315 wxWindow *arg1 = (wxWindow *) 0 ;
27316 int arg2 ;
27317 bool result;
27318 PyObject * obj0 = 0 ;
27319 PyObject * obj1 = 0 ;
27320 char *kwnames[] = {
27321 (char *) "self",(char *) "orient", NULL
27322 };
27323
27324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasScrollbar",kwnames,&obj0,&obj1)) goto fail;
27325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27327 arg2 = (int) SWIG_AsInt(obj1);
27328 if (PyErr_Occurred()) SWIG_fail;
27329 {
27330 PyThreadState* __tstate = wxPyBeginAllowThreads();
27331 result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2);
27332
27333 wxPyEndAllowThreads(__tstate);
27334 if (PyErr_Occurred()) SWIG_fail;
27335 }
27336 {
27337 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27338 }
27339 return resultobj;
27340 fail:
27341 return NULL;
27342}
27343
27344
27345static PyObject *_wrap_Window_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) {
27346 PyObject *resultobj;
27347 wxWindow *arg1 = (wxWindow *) 0 ;
27348 int arg2 ;
27349 int arg3 ;
27350 int arg4 ;
27351 int arg5 ;
27352 bool arg6 = (bool) True ;
27353 PyObject * obj0 = 0 ;
27354 PyObject * obj1 = 0 ;
27355 PyObject * obj2 = 0 ;
27356 PyObject * obj3 = 0 ;
27357 PyObject * obj4 = 0 ;
27358 PyObject * obj5 = 0 ;
27359 char *kwnames[] = {
79fccf9d 27360 (char *) "self",(char *) "orientation",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "refresh", NULL
d55e5bfc
RD
27361 };
27362
27363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
27364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27366 arg2 = (int) SWIG_AsInt(obj1);
27367 if (PyErr_Occurred()) SWIG_fail;
27368 arg3 = (int) SWIG_AsInt(obj2);
27369 if (PyErr_Occurred()) SWIG_fail;
27370 arg4 = (int) SWIG_AsInt(obj3);
27371 if (PyErr_Occurred()) SWIG_fail;
27372 arg5 = (int) SWIG_AsInt(obj4);
27373 if (PyErr_Occurred()) SWIG_fail;
27374 if (obj5) {
27375 arg6 = (bool) SWIG_AsBool(obj5);
27376 if (PyErr_Occurred()) SWIG_fail;
27377 }
27378 {
27379 PyThreadState* __tstate = wxPyBeginAllowThreads();
27380 (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6);
27381
27382 wxPyEndAllowThreads(__tstate);
27383 if (PyErr_Occurred()) SWIG_fail;
27384 }
27385 Py_INCREF(Py_None); resultobj = Py_None;
27386 return resultobj;
27387 fail:
27388 return NULL;
27389}
27390
27391
27392static PyObject *_wrap_Window_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) {
27393 PyObject *resultobj;
27394 wxWindow *arg1 = (wxWindow *) 0 ;
27395 int arg2 ;
27396 int arg3 ;
27397 bool arg4 = (bool) True ;
27398 PyObject * obj0 = 0 ;
27399 PyObject * obj1 = 0 ;
27400 PyObject * obj2 = 0 ;
27401 PyObject * obj3 = 0 ;
27402 char *kwnames[] = {
27403 (char *) "self",(char *) "orientation",(char *) "pos",(char *) "refresh", NULL
27404 };
27405
27406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_SetScrollPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27409 arg2 = (int) SWIG_AsInt(obj1);
27410 if (PyErr_Occurred()) SWIG_fail;
27411 arg3 = (int) SWIG_AsInt(obj2);
27412 if (PyErr_Occurred()) SWIG_fail;
27413 if (obj3) {
27414 arg4 = (bool) SWIG_AsBool(obj3);
27415 if (PyErr_Occurred()) SWIG_fail;
27416 }
27417 {
27418 PyThreadState* __tstate = wxPyBeginAllowThreads();
27419 (arg1)->SetScrollPos(arg2,arg3,arg4);
27420
27421 wxPyEndAllowThreads(__tstate);
27422 if (PyErr_Occurred()) SWIG_fail;
27423 }
27424 Py_INCREF(Py_None); resultobj = Py_None;
27425 return resultobj;
27426 fail:
27427 return NULL;
27428}
27429
27430
27431static PyObject *_wrap_Window_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) {
27432 PyObject *resultobj;
27433 wxWindow *arg1 = (wxWindow *) 0 ;
27434 int arg2 ;
27435 int result;
27436 PyObject * obj0 = 0 ;
27437 PyObject * obj1 = 0 ;
27438 char *kwnames[] = {
27439 (char *) "self",(char *) "orientation", NULL
27440 };
27441
27442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollPos",kwnames,&obj0,&obj1)) goto fail;
27443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27445 arg2 = (int) SWIG_AsInt(obj1);
27446 if (PyErr_Occurred()) SWIG_fail;
27447 {
27448 PyThreadState* __tstate = wxPyBeginAllowThreads();
27449 result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2);
27450
27451 wxPyEndAllowThreads(__tstate);
27452 if (PyErr_Occurred()) SWIG_fail;
27453 }
27454 resultobj = SWIG_FromInt((int)result);
27455 return resultobj;
27456 fail:
27457 return NULL;
27458}
27459
27460
27461static PyObject *_wrap_Window_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) {
27462 PyObject *resultobj;
27463 wxWindow *arg1 = (wxWindow *) 0 ;
27464 int arg2 ;
27465 int result;
27466 PyObject * obj0 = 0 ;
27467 PyObject * obj1 = 0 ;
27468 char *kwnames[] = {
27469 (char *) "self",(char *) "orientation", NULL
27470 };
27471
27472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollThumb",kwnames,&obj0,&obj1)) goto fail;
27473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27475 arg2 = (int) SWIG_AsInt(obj1);
27476 if (PyErr_Occurred()) SWIG_fail;
27477 {
27478 PyThreadState* __tstate = wxPyBeginAllowThreads();
27479 result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2);
27480
27481 wxPyEndAllowThreads(__tstate);
27482 if (PyErr_Occurred()) SWIG_fail;
27483 }
27484 resultobj = SWIG_FromInt((int)result);
27485 return resultobj;
27486 fail:
27487 return NULL;
27488}
27489
27490
27491static PyObject *_wrap_Window_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) {
27492 PyObject *resultobj;
27493 wxWindow *arg1 = (wxWindow *) 0 ;
27494 int arg2 ;
27495 int result;
27496 PyObject * obj0 = 0 ;
27497 PyObject * obj1 = 0 ;
27498 char *kwnames[] = {
27499 (char *) "self",(char *) "orientation", NULL
27500 };
27501
27502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollRange",kwnames,&obj0,&obj1)) goto fail;
27503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27505 arg2 = (int) SWIG_AsInt(obj1);
27506 if (PyErr_Occurred()) SWIG_fail;
27507 {
27508 PyThreadState* __tstate = wxPyBeginAllowThreads();
27509 result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2);
27510
27511 wxPyEndAllowThreads(__tstate);
27512 if (PyErr_Occurred()) SWIG_fail;
27513 }
27514 resultobj = SWIG_FromInt((int)result);
27515 return resultobj;
27516 fail:
27517 return NULL;
27518}
27519
27520
27521static PyObject *_wrap_Window_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
27522 PyObject *resultobj;
27523 wxWindow *arg1 = (wxWindow *) 0 ;
27524 int arg2 ;
27525 int arg3 ;
27526 wxRect *arg4 = (wxRect *) NULL ;
27527 PyObject * obj0 = 0 ;
27528 PyObject * obj1 = 0 ;
27529 PyObject * obj2 = 0 ;
27530 PyObject * obj3 = 0 ;
27531 char *kwnames[] = {
27532 (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL
27533 };
27534
27535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_ScrollWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27538 arg2 = (int) SWIG_AsInt(obj1);
27539 if (PyErr_Occurred()) SWIG_fail;
27540 arg3 = (int) SWIG_AsInt(obj2);
27541 if (PyErr_Occurred()) SWIG_fail;
27542 if (obj3) {
27543 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxRect,
27544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27545 }
27546 {
27547 PyThreadState* __tstate = wxPyBeginAllowThreads();
27548 (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4);
27549
27550 wxPyEndAllowThreads(__tstate);
27551 if (PyErr_Occurred()) SWIG_fail;
27552 }
27553 Py_INCREF(Py_None); resultobj = Py_None;
27554 return resultobj;
27555 fail:
27556 return NULL;
27557}
27558
27559
27560static PyObject *_wrap_Window_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) {
27561 PyObject *resultobj;
27562 wxWindow *arg1 = (wxWindow *) 0 ;
27563 int arg2 ;
27564 bool result;
27565 PyObject * obj0 = 0 ;
27566 PyObject * obj1 = 0 ;
27567 char *kwnames[] = {
27568 (char *) "self",(char *) "lines", NULL
27569 };
27570
27571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollLines",kwnames,&obj0,&obj1)) goto fail;
27572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27574 arg2 = (int) SWIG_AsInt(obj1);
27575 if (PyErr_Occurred()) SWIG_fail;
27576 {
27577 PyThreadState* __tstate = wxPyBeginAllowThreads();
27578 result = (bool)(arg1)->ScrollLines(arg2);
27579
27580 wxPyEndAllowThreads(__tstate);
27581 if (PyErr_Occurred()) SWIG_fail;
27582 }
27583 {
27584 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27585 }
27586 return resultobj;
27587 fail:
27588 return NULL;
27589}
27590
27591
27592static PyObject *_wrap_Window_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) {
27593 PyObject *resultobj;
27594 wxWindow *arg1 = (wxWindow *) 0 ;
27595 int arg2 ;
27596 bool result;
27597 PyObject * obj0 = 0 ;
27598 PyObject * obj1 = 0 ;
27599 char *kwnames[] = {
27600 (char *) "self",(char *) "pages", NULL
27601 };
27602
27603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollPages",kwnames,&obj0,&obj1)) goto fail;
27604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27606 arg2 = (int) SWIG_AsInt(obj1);
27607 if (PyErr_Occurred()) SWIG_fail;
27608 {
27609 PyThreadState* __tstate = wxPyBeginAllowThreads();
27610 result = (bool)(arg1)->ScrollPages(arg2);
27611
27612 wxPyEndAllowThreads(__tstate);
27613 if (PyErr_Occurred()) SWIG_fail;
27614 }
27615 {
27616 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27617 }
27618 return resultobj;
27619 fail:
27620 return NULL;
27621}
27622
27623
27624static PyObject *_wrap_Window_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) {
27625 PyObject *resultobj;
27626 wxWindow *arg1 = (wxWindow *) 0 ;
27627 bool result;
27628 PyObject * obj0 = 0 ;
27629 char *kwnames[] = {
27630 (char *) "self", NULL
27631 };
27632
27633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineUp",kwnames,&obj0)) goto fail;
27634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27636 {
27637 PyThreadState* __tstate = wxPyBeginAllowThreads();
27638 result = (bool)(arg1)->LineUp();
27639
27640 wxPyEndAllowThreads(__tstate);
27641 if (PyErr_Occurred()) SWIG_fail;
27642 }
27643 {
27644 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27645 }
27646 return resultobj;
27647 fail:
27648 return NULL;
27649}
27650
27651
27652static PyObject *_wrap_Window_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) {
27653 PyObject *resultobj;
27654 wxWindow *arg1 = (wxWindow *) 0 ;
27655 bool result;
27656 PyObject * obj0 = 0 ;
27657 char *kwnames[] = {
27658 (char *) "self", NULL
27659 };
27660
27661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineDown",kwnames,&obj0)) goto fail;
27662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27664 {
27665 PyThreadState* __tstate = wxPyBeginAllowThreads();
27666 result = (bool)(arg1)->LineDown();
27667
27668 wxPyEndAllowThreads(__tstate);
27669 if (PyErr_Occurred()) SWIG_fail;
27670 }
27671 {
27672 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27673 }
27674 return resultobj;
27675 fail:
27676 return NULL;
27677}
27678
27679
27680static PyObject *_wrap_Window_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) {
27681 PyObject *resultobj;
27682 wxWindow *arg1 = (wxWindow *) 0 ;
27683 bool result;
27684 PyObject * obj0 = 0 ;
27685 char *kwnames[] = {
27686 (char *) "self", NULL
27687 };
27688
27689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageUp",kwnames,&obj0)) goto fail;
27690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27692 {
27693 PyThreadState* __tstate = wxPyBeginAllowThreads();
27694 result = (bool)(arg1)->PageUp();
27695
27696 wxPyEndAllowThreads(__tstate);
27697 if (PyErr_Occurred()) SWIG_fail;
27698 }
27699 {
27700 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27701 }
27702 return resultobj;
27703 fail:
27704 return NULL;
27705}
27706
27707
27708static PyObject *_wrap_Window_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) {
27709 PyObject *resultobj;
27710 wxWindow *arg1 = (wxWindow *) 0 ;
27711 bool result;
27712 PyObject * obj0 = 0 ;
27713 char *kwnames[] = {
27714 (char *) "self", NULL
27715 };
27716
27717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageDown",kwnames,&obj0)) goto fail;
27718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27720 {
27721 PyThreadState* __tstate = wxPyBeginAllowThreads();
27722 result = (bool)(arg1)->PageDown();
27723
27724 wxPyEndAllowThreads(__tstate);
27725 if (PyErr_Occurred()) SWIG_fail;
27726 }
27727 {
27728 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27729 }
27730 return resultobj;
27731 fail:
27732 return NULL;
27733}
27734
27735
27736static PyObject *_wrap_Window_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) {
27737 PyObject *resultobj;
27738 wxWindow *arg1 = (wxWindow *) 0 ;
27739 wxString *arg2 = 0 ;
27740 bool temp2 = False ;
27741 PyObject * obj0 = 0 ;
27742 PyObject * obj1 = 0 ;
27743 char *kwnames[] = {
27744 (char *) "self",(char *) "text", NULL
27745 };
27746
27747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) goto fail;
27748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27750 {
27751 arg2 = wxString_in_helper(obj1);
27752 if (arg2 == NULL) SWIG_fail;
27753 temp2 = True;
27754 }
27755 {
27756 PyThreadState* __tstate = wxPyBeginAllowThreads();
27757 (arg1)->SetHelpText((wxString const &)*arg2);
27758
27759 wxPyEndAllowThreads(__tstate);
27760 if (PyErr_Occurred()) SWIG_fail;
27761 }
27762 Py_INCREF(Py_None); resultobj = Py_None;
27763 {
27764 if (temp2)
27765 delete arg2;
27766 }
27767 return resultobj;
27768 fail:
27769 {
27770 if (temp2)
27771 delete arg2;
27772 }
27773 return NULL;
27774}
27775
27776
27777static PyObject *_wrap_Window_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) {
27778 PyObject *resultobj;
27779 wxWindow *arg1 = (wxWindow *) 0 ;
27780 wxString *arg2 = 0 ;
27781 bool temp2 = False ;
27782 PyObject * obj0 = 0 ;
27783 PyObject * obj1 = 0 ;
27784 char *kwnames[] = {
27785 (char *) "self",(char *) "text", NULL
27786 };
27787
27788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) goto fail;
27789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27791 {
27792 arg2 = wxString_in_helper(obj1);
27793 if (arg2 == NULL) SWIG_fail;
27794 temp2 = True;
27795 }
27796 {
27797 PyThreadState* __tstate = wxPyBeginAllowThreads();
27798 (arg1)->SetHelpTextForId((wxString const &)*arg2);
27799
27800 wxPyEndAllowThreads(__tstate);
27801 if (PyErr_Occurred()) SWIG_fail;
27802 }
27803 Py_INCREF(Py_None); resultobj = Py_None;
27804 {
27805 if (temp2)
27806 delete arg2;
27807 }
27808 return resultobj;
27809 fail:
27810 {
27811 if (temp2)
27812 delete arg2;
27813 }
27814 return NULL;
27815}
27816
27817
27818static PyObject *_wrap_Window_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) {
27819 PyObject *resultobj;
27820 wxWindow *arg1 = (wxWindow *) 0 ;
27821 wxString result;
27822 PyObject * obj0 = 0 ;
27823 char *kwnames[] = {
27824 (char *) "self", NULL
27825 };
27826
27827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHelpText",kwnames,&obj0)) goto fail;
27828 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27829 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27830 {
27831 PyThreadState* __tstate = wxPyBeginAllowThreads();
27832 result = ((wxWindow const *)arg1)->GetHelpText();
27833
27834 wxPyEndAllowThreads(__tstate);
27835 if (PyErr_Occurred()) SWIG_fail;
27836 }
27837 {
27838#if wxUSE_UNICODE
27839 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
27840#else
27841 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
27842#endif
27843 }
27844 return resultobj;
27845 fail:
27846 return NULL;
27847}
27848
27849
27850static PyObject *_wrap_Window_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) {
27851 PyObject *resultobj;
27852 wxWindow *arg1 = (wxWindow *) 0 ;
27853 wxString *arg2 = 0 ;
27854 bool temp2 = False ;
27855 PyObject * obj0 = 0 ;
27856 PyObject * obj1 = 0 ;
27857 char *kwnames[] = {
27858 (char *) "self",(char *) "tip", NULL
27859 };
27860
27861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) goto fail;
27862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27864 {
27865 arg2 = wxString_in_helper(obj1);
27866 if (arg2 == NULL) SWIG_fail;
27867 temp2 = True;
27868 }
27869 {
27870 PyThreadState* __tstate = wxPyBeginAllowThreads();
27871 (arg1)->SetToolTip((wxString const &)*arg2);
27872
27873 wxPyEndAllowThreads(__tstate);
27874 if (PyErr_Occurred()) SWIG_fail;
27875 }
27876 Py_INCREF(Py_None); resultobj = Py_None;
27877 {
27878 if (temp2)
27879 delete arg2;
27880 }
27881 return resultobj;
27882 fail:
27883 {
27884 if (temp2)
27885 delete arg2;
27886 }
27887 return NULL;
27888}
27889
27890
27891static PyObject *_wrap_Window_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
27892 PyObject *resultobj;
27893 wxWindow *arg1 = (wxWindow *) 0 ;
27894 wxToolTip *arg2 = (wxToolTip *) 0 ;
27895 PyObject * obj0 = 0 ;
27896 PyObject * obj1 = 0 ;
27897 char *kwnames[] = {
27898 (char *) "self",(char *) "tip", NULL
27899 };
27900
27901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) goto fail;
27902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27904 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolTip,
27905 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27906 {
27907 PyThreadState* __tstate = wxPyBeginAllowThreads();
27908 (arg1)->SetToolTip(arg2);
27909
27910 wxPyEndAllowThreads(__tstate);
27911 if (PyErr_Occurred()) SWIG_fail;
27912 }
27913 Py_INCREF(Py_None); resultobj = Py_None;
27914 return resultobj;
27915 fail:
27916 return NULL;
27917}
27918
27919
27920static PyObject *_wrap_Window_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
27921 PyObject *resultobj;
27922 wxWindow *arg1 = (wxWindow *) 0 ;
27923 wxToolTip *result;
27924 PyObject * obj0 = 0 ;
27925 char *kwnames[] = {
27926 (char *) "self", NULL
27927 };
27928
27929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetToolTip",kwnames,&obj0)) goto fail;
27930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27932 {
27933 PyThreadState* __tstate = wxPyBeginAllowThreads();
27934 result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip();
27935
27936 wxPyEndAllowThreads(__tstate);
27937 if (PyErr_Occurred()) SWIG_fail;
27938 }
27939 {
412d302d 27940 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
27941 }
27942 return resultobj;
27943 fail:
27944 return NULL;
27945}
27946
27947
27948static PyObject *_wrap_Window_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
27949 PyObject *resultobj;
27950 wxWindow *arg1 = (wxWindow *) 0 ;
27951 wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ;
27952 PyObject * obj0 = 0 ;
27953 PyObject * obj1 = 0 ;
27954 char *kwnames[] = {
27955 (char *) "self",(char *) "dropTarget", NULL
27956 };
27957
27958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) goto fail;
27959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27961 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyDropTarget,
27962 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
27963 {
27964 PyThreadState* __tstate = wxPyBeginAllowThreads();
27965 (arg1)->SetDropTarget(arg2);
27966
27967 wxPyEndAllowThreads(__tstate);
27968 if (PyErr_Occurred()) SWIG_fail;
27969 }
27970 Py_INCREF(Py_None); resultobj = Py_None;
27971 return resultobj;
27972 fail:
27973 return NULL;
27974}
27975
27976
27977static PyObject *_wrap_Window_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
27978 PyObject *resultobj;
27979 wxWindow *arg1 = (wxWindow *) 0 ;
27980 wxPyDropTarget *result;
27981 PyObject * obj0 = 0 ;
27982 char *kwnames[] = {
27983 (char *) "self", NULL
27984 };
27985
27986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDropTarget",kwnames,&obj0)) goto fail;
27987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27989 {
27990 PyThreadState* __tstate = wxPyBeginAllowThreads();
27991 result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget();
27992
27993 wxPyEndAllowThreads(__tstate);
27994 if (PyErr_Occurred()) SWIG_fail;
27995 }
27996 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 0);
27997 return resultobj;
27998 fail:
27999 return NULL;
28000}
28001
28002
28003static PyObject *_wrap_Window_DragAcceptFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
28004 PyObject *resultobj;
28005 wxWindow *arg1 = (wxWindow *) 0 ;
28006 bool arg2 ;
28007 PyObject * obj0 = 0 ;
28008 PyObject * obj1 = 0 ;
28009 char *kwnames[] = {
28010 (char *) "self",(char *) "accept", NULL
28011 };
28012
28013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DragAcceptFiles",kwnames,&obj0,&obj1)) goto fail;
28014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28016 arg2 = (bool) SWIG_AsBool(obj1);
28017 if (PyErr_Occurred()) SWIG_fail;
28018 {
28019 PyThreadState* __tstate = wxPyBeginAllowThreads();
28020 (arg1)->DragAcceptFiles(arg2);
28021
28022 wxPyEndAllowThreads(__tstate);
28023 if (PyErr_Occurred()) SWIG_fail;
28024 }
28025 Py_INCREF(Py_None); resultobj = Py_None;
28026 return resultobj;
28027 fail:
28028 return NULL;
28029}
28030
28031
28032static PyObject *_wrap_Window_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
28033 PyObject *resultobj;
28034 wxWindow *arg1 = (wxWindow *) 0 ;
28035 wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ;
28036 PyObject * obj0 = 0 ;
28037 PyObject * obj1 = 0 ;
28038 char *kwnames[] = {
28039 (char *) "self",(char *) "constraints", NULL
28040 };
28041
28042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) goto fail;
28043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28045 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints,
28046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28047 {
28048 PyThreadState* __tstate = wxPyBeginAllowThreads();
28049 (arg1)->SetConstraints(arg2);
28050
28051 wxPyEndAllowThreads(__tstate);
28052 if (PyErr_Occurred()) SWIG_fail;
28053 }
28054 Py_INCREF(Py_None); resultobj = Py_None;
28055 return resultobj;
28056 fail:
28057 return NULL;
28058}
28059
28060
28061static PyObject *_wrap_Window_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
28062 PyObject *resultobj;
28063 wxWindow *arg1 = (wxWindow *) 0 ;
28064 wxLayoutConstraints *result;
28065 PyObject * obj0 = 0 ;
28066 char *kwnames[] = {
28067 (char *) "self", NULL
28068 };
28069
28070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetConstraints",kwnames,&obj0)) goto fail;
28071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28073 {
28074 PyThreadState* __tstate = wxPyBeginAllowThreads();
28075 result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints();
28076
28077 wxPyEndAllowThreads(__tstate);
28078 if (PyErr_Occurred()) SWIG_fail;
28079 }
28080 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 0);
28081 return resultobj;
28082 fail:
28083 return NULL;
28084}
28085
28086
28087static PyObject *_wrap_Window_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) {
28088 PyObject *resultobj;
28089 wxWindow *arg1 = (wxWindow *) 0 ;
28090 bool arg2 ;
28091 PyObject * obj0 = 0 ;
28092 PyObject * obj1 = 0 ;
28093 char *kwnames[] = {
28094 (char *) "self",(char *) "autoLayout", NULL
28095 };
28096
28097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) goto fail;
28098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28100 arg2 = (bool) SWIG_AsBool(obj1);
28101 if (PyErr_Occurred()) SWIG_fail;
28102 {
28103 PyThreadState* __tstate = wxPyBeginAllowThreads();
28104 (arg1)->SetAutoLayout(arg2);
28105
28106 wxPyEndAllowThreads(__tstate);
28107 if (PyErr_Occurred()) SWIG_fail;
28108 }
28109 Py_INCREF(Py_None); resultobj = Py_None;
28110 return resultobj;
28111 fail:
28112 return NULL;
28113}
28114
28115
28116static PyObject *_wrap_Window_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) {
28117 PyObject *resultobj;
28118 wxWindow *arg1 = (wxWindow *) 0 ;
28119 bool result;
28120 PyObject * obj0 = 0 ;
28121 char *kwnames[] = {
28122 (char *) "self", NULL
28123 };
28124
28125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAutoLayout",kwnames,&obj0)) goto fail;
28126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28128 {
28129 PyThreadState* __tstate = wxPyBeginAllowThreads();
28130 result = (bool)((wxWindow const *)arg1)->GetAutoLayout();
28131
28132 wxPyEndAllowThreads(__tstate);
28133 if (PyErr_Occurred()) SWIG_fail;
28134 }
28135 {
28136 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28137 }
28138 return resultobj;
28139 fail:
28140 return NULL;
28141}
28142
28143
28144static PyObject *_wrap_Window_Layout(PyObject *self, PyObject *args, PyObject *kwargs) {
28145 PyObject *resultobj;
28146 wxWindow *arg1 = (wxWindow *) 0 ;
28147 bool result;
28148 PyObject * obj0 = 0 ;
28149 char *kwnames[] = {
28150 (char *) "self", NULL
28151 };
28152
28153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Layout",kwnames,&obj0)) goto fail;
28154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28156 {
28157 PyThreadState* __tstate = wxPyBeginAllowThreads();
28158 result = (bool)(arg1)->Layout();
28159
28160 wxPyEndAllowThreads(__tstate);
28161 if (PyErr_Occurred()) SWIG_fail;
28162 }
28163 {
28164 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28165 }
28166 return resultobj;
28167 fail:
28168 return NULL;
28169}
28170
28171
28172static PyObject *_wrap_Window_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
28173 PyObject *resultobj;
28174 wxWindow *arg1 = (wxWindow *) 0 ;
28175 wxSizer *arg2 = (wxSizer *) 0 ;
28176 bool arg3 = (bool) True ;
28177 PyObject * obj0 = 0 ;
28178 PyObject * obj1 = 0 ;
28179 PyObject * obj2 = 0 ;
28180 char *kwnames[] = {
28181 (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL
28182 };
28183
28184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) goto fail;
28185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28187 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
28188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28189 if (obj2) {
28190 arg3 = (bool) SWIG_AsBool(obj2);
28191 if (PyErr_Occurred()) SWIG_fail;
28192 }
28193 {
28194 PyThreadState* __tstate = wxPyBeginAllowThreads();
28195 (arg1)->SetSizer(arg2,arg3);
28196
28197 wxPyEndAllowThreads(__tstate);
28198 if (PyErr_Occurred()) SWIG_fail;
28199 }
28200 Py_INCREF(Py_None); resultobj = Py_None;
28201 return resultobj;
28202 fail:
28203 return NULL;
28204}
28205
28206
28207static PyObject *_wrap_Window_SetSizerAndFit(PyObject *self, PyObject *args, PyObject *kwargs) {
28208 PyObject *resultobj;
28209 wxWindow *arg1 = (wxWindow *) 0 ;
28210 wxSizer *arg2 = (wxSizer *) 0 ;
28211 bool arg3 = (bool) True ;
28212 PyObject * obj0 = 0 ;
28213 PyObject * obj1 = 0 ;
28214 PyObject * obj2 = 0 ;
28215 char *kwnames[] = {
28216 (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL
28217 };
28218
28219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) goto fail;
28220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28222 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
28223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28224 if (obj2) {
28225 arg3 = (bool) SWIG_AsBool(obj2);
28226 if (PyErr_Occurred()) SWIG_fail;
28227 }
28228 {
28229 PyThreadState* __tstate = wxPyBeginAllowThreads();
28230 (arg1)->SetSizerAndFit(arg2,arg3);
28231
28232 wxPyEndAllowThreads(__tstate);
28233 if (PyErr_Occurred()) SWIG_fail;
28234 }
28235 Py_INCREF(Py_None); resultobj = Py_None;
28236 return resultobj;
28237 fail:
28238 return NULL;
28239}
28240
28241
28242static PyObject *_wrap_Window_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
28243 PyObject *resultobj;
28244 wxWindow *arg1 = (wxWindow *) 0 ;
28245 wxSizer *result;
28246 PyObject * obj0 = 0 ;
28247 char *kwnames[] = {
28248 (char *) "self", NULL
28249 };
28250
28251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizer",kwnames,&obj0)) goto fail;
28252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28254 {
28255 PyThreadState* __tstate = wxPyBeginAllowThreads();
28256 result = (wxSizer *)((wxWindow const *)arg1)->GetSizer();
28257
28258 wxPyEndAllowThreads(__tstate);
28259 if (PyErr_Occurred()) SWIG_fail;
28260 }
28261 {
412d302d 28262 resultobj = wxPyMake_wxSizer(result, 0);
d55e5bfc
RD
28263 }
28264 return resultobj;
28265 fail:
28266 return NULL;
28267}
28268
28269
28270static PyObject *_wrap_Window_SetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
28271 PyObject *resultobj;
28272 wxWindow *arg1 = (wxWindow *) 0 ;
28273 wxSizer *arg2 = (wxSizer *) 0 ;
28274 PyObject * obj0 = 0 ;
28275 PyObject * obj1 = 0 ;
28276 char *kwnames[] = {
28277 (char *) "self",(char *) "sizer", NULL
28278 };
28279
28280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) goto fail;
28281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28283 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
28284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28285 {
28286 PyThreadState* __tstate = wxPyBeginAllowThreads();
28287 (arg1)->SetContainingSizer(arg2);
28288
28289 wxPyEndAllowThreads(__tstate);
28290 if (PyErr_Occurred()) SWIG_fail;
28291 }
28292 Py_INCREF(Py_None); resultobj = Py_None;
28293 return resultobj;
28294 fail:
28295 return NULL;
28296}
28297
28298
28299static PyObject *_wrap_Window_GetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
28300 PyObject *resultobj;
28301 wxWindow *arg1 = (wxWindow *) 0 ;
28302 wxSizer *result;
28303 PyObject * obj0 = 0 ;
28304 char *kwnames[] = {
28305 (char *) "self", NULL
28306 };
28307
28308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetContainingSizer",kwnames,&obj0)) goto fail;
28309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28311 {
28312 PyThreadState* __tstate = wxPyBeginAllowThreads();
28313 result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer();
28314
28315 wxPyEndAllowThreads(__tstate);
28316 if (PyErr_Occurred()) SWIG_fail;
28317 }
28318 {
412d302d 28319 resultobj = wxPyMake_wxSizer(result, 0);
d55e5bfc
RD
28320 }
28321 return resultobj;
28322 fail:
28323 return NULL;
28324}
28325
28326
28327static PyObject *_wrap_Window_InheritAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
28328 PyObject *resultobj;
28329 wxWindow *arg1 = (wxWindow *) 0 ;
28330 PyObject * obj0 = 0 ;
28331 char *kwnames[] = {
28332 (char *) "self", NULL
28333 };
28334
28335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InheritAttributes",kwnames,&obj0)) goto fail;
28336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28338 {
28339 PyThreadState* __tstate = wxPyBeginAllowThreads();
28340 (arg1)->InheritAttributes();
28341
28342 wxPyEndAllowThreads(__tstate);
28343 if (PyErr_Occurred()) SWIG_fail;
28344 }
28345 Py_INCREF(Py_None); resultobj = Py_None;
28346 return resultobj;
28347 fail:
28348 return NULL;
28349}
28350
28351
28352static PyObject *_wrap_Window_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) {
28353 PyObject *resultobj;
28354 wxWindow *arg1 = (wxWindow *) 0 ;
28355 bool result;
28356 PyObject * obj0 = 0 ;
28357 char *kwnames[] = {
28358 (char *) "self", NULL
28359 };
28360
28361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ShouldInheritColours",kwnames,&obj0)) goto fail;
28362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28364 {
28365 PyThreadState* __tstate = wxPyBeginAllowThreads();
28366 result = (bool)((wxWindow const *)arg1)->ShouldInheritColours();
28367
28368 wxPyEndAllowThreads(__tstate);
28369 if (PyErr_Occurred()) SWIG_fail;
28370 }
28371 {
28372 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28373 }
28374 return resultobj;
28375 fail:
28376 return NULL;
28377}
28378
28379
28380static PyObject * Window_swigregister(PyObject *self, PyObject *args) {
28381 PyObject *obj;
28382 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28383 SWIG_TypeClientData(SWIGTYPE_p_wxWindow, obj);
28384 Py_INCREF(obj);
28385 return Py_BuildValue((char *)"");
28386}
28387static PyObject *_wrap_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) {
28388 PyObject *resultobj;
28389 long arg1 ;
28390 wxWindow *arg2 = (wxWindow *) NULL ;
28391 wxWindow *result;
28392 PyObject * obj0 = 0 ;
28393 PyObject * obj1 = 0 ;
28394 char *kwnames[] = {
28395 (char *) "id",(char *) "parent", NULL
28396 };
28397
28398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowById",kwnames,&obj0,&obj1)) goto fail;
28399 arg1 = (long) SWIG_AsLong(obj0);
28400 if (PyErr_Occurred()) SWIG_fail;
28401 if (obj1) {
28402 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28404 }
28405 {
0439c23b 28406 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
28407 PyThreadState* __tstate = wxPyBeginAllowThreads();
28408 result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2);
28409
28410 wxPyEndAllowThreads(__tstate);
110da5b0 28411 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
28412 }
28413 {
412d302d 28414 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
28415 }
28416 return resultobj;
28417 fail:
28418 return NULL;
28419}
28420
28421
28422static PyObject *_wrap_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) {
28423 PyObject *resultobj;
28424 wxString *arg1 = 0 ;
28425 wxWindow *arg2 = (wxWindow *) NULL ;
28426 wxWindow *result;
28427 bool temp1 = False ;
28428 PyObject * obj0 = 0 ;
28429 PyObject * obj1 = 0 ;
28430 char *kwnames[] = {
28431 (char *) "name",(char *) "parent", NULL
28432 };
28433
28434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) goto fail;
28435 {
28436 arg1 = wxString_in_helper(obj0);
28437 if (arg1 == NULL) SWIG_fail;
28438 temp1 = True;
28439 }
28440 if (obj1) {
28441 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28443 }
28444 {
0439c23b 28445 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
28446 PyThreadState* __tstate = wxPyBeginAllowThreads();
28447 result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2);
28448
28449 wxPyEndAllowThreads(__tstate);
110da5b0 28450 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
28451 }
28452 {
412d302d 28453 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
28454 }
28455 {
28456 if (temp1)
28457 delete arg1;
28458 }
28459 return resultobj;
28460 fail:
28461 {
28462 if (temp1)
28463 delete arg1;
28464 }
28465 return NULL;
28466}
28467
28468
28469static PyObject *_wrap_FindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
28470 PyObject *resultobj;
28471 wxString *arg1 = 0 ;
28472 wxWindow *arg2 = (wxWindow *) NULL ;
28473 wxWindow *result;
28474 bool temp1 = False ;
28475 PyObject * obj0 = 0 ;
28476 PyObject * obj1 = 0 ;
28477 char *kwnames[] = {
28478 (char *) "label",(char *) "parent", NULL
28479 };
28480
28481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) goto fail;
28482 {
28483 arg1 = wxString_in_helper(obj0);
28484 if (arg1 == NULL) SWIG_fail;
28485 temp1 = True;
28486 }
28487 if (obj1) {
28488 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28490 }
28491 {
0439c23b 28492 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
28493 PyThreadState* __tstate = wxPyBeginAllowThreads();
28494 result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2);
28495
28496 wxPyEndAllowThreads(__tstate);
110da5b0 28497 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
28498 }
28499 {
412d302d 28500 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
28501 }
28502 {
28503 if (temp1)
28504 delete arg1;
28505 }
28506 return resultobj;
28507 fail:
28508 {
28509 if (temp1)
28510 delete arg1;
28511 }
28512 return NULL;
28513}
28514
28515
28516static PyObject *_wrap_Window_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) {
28517 PyObject *resultobj;
28518 wxWindow *arg1 = (wxWindow *) 0 ;
28519 unsigned long arg2 ;
28520 wxWindow *result;
28521 PyObject * obj0 = 0 ;
28522 PyObject * obj1 = 0 ;
28523 char *kwnames[] = {
28524 (char *) "parent",(char *) "_hWnd", NULL
28525 };
28526
28527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FromHWND",kwnames,&obj0,&obj1)) goto fail;
28528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28530 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
28531 if (PyErr_Occurred()) SWIG_fail;
28532 {
28533 PyThreadState* __tstate = wxPyBeginAllowThreads();
28534 result = (wxWindow *)wxWindow_FromHWND(arg1,arg2);
28535
28536 wxPyEndAllowThreads(__tstate);
28537 if (PyErr_Occurred()) SWIG_fail;
28538 }
28539 {
412d302d 28540 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
28541 }
28542 return resultobj;
28543 fail:
28544 return NULL;
28545}
28546
28547
28548static PyObject *_wrap_new_Validator(PyObject *self, PyObject *args, PyObject *kwargs) {
28549 PyObject *resultobj;
28550 wxValidator *result;
28551 char *kwnames[] = {
28552 NULL
28553 };
28554
28555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Validator",kwnames)) goto fail;
28556 {
28557 PyThreadState* __tstate = wxPyBeginAllowThreads();
28558 result = (wxValidator *)new wxValidator();
28559
28560 wxPyEndAllowThreads(__tstate);
28561 if (PyErr_Occurred()) SWIG_fail;
28562 }
28563 {
412d302d 28564 resultobj = wxPyMake_wxObject(result, 1);
d55e5bfc
RD
28565 }
28566 return resultobj;
28567 fail:
28568 return NULL;
28569}
28570
28571
28572static PyObject *_wrap_Validator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) {
28573 PyObject *resultobj;
28574 wxValidator *arg1 = (wxValidator *) 0 ;
28575 wxValidator *result;
28576 PyObject * obj0 = 0 ;
28577 char *kwnames[] = {
28578 (char *) "self", NULL
28579 };
28580
28581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_Clone",kwnames,&obj0)) goto fail;
28582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator,
28583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28584 {
28585 PyThreadState* __tstate = wxPyBeginAllowThreads();
28586 result = (wxValidator *)(arg1)->Clone();
28587
28588 wxPyEndAllowThreads(__tstate);
28589 if (PyErr_Occurred()) SWIG_fail;
28590 }
28591 {
412d302d 28592 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
28593 }
28594 return resultobj;
28595 fail:
28596 return NULL;
28597}
28598
28599
28600static PyObject *_wrap_Validator_Validate(PyObject *self, PyObject *args, PyObject *kwargs) {
28601 PyObject *resultobj;
28602 wxValidator *arg1 = (wxValidator *) 0 ;
28603 wxWindow *arg2 = (wxWindow *) 0 ;
28604 bool result;
28605 PyObject * obj0 = 0 ;
28606 PyObject * obj1 = 0 ;
28607 char *kwnames[] = {
28608 (char *) "self",(char *) "parent", NULL
28609 };
28610
28611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) goto fail;
28612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator,
28613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28614 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28616 {
28617 PyThreadState* __tstate = wxPyBeginAllowThreads();
28618 result = (bool)(arg1)->Validate(arg2);
28619
28620 wxPyEndAllowThreads(__tstate);
28621 if (PyErr_Occurred()) SWIG_fail;
28622 }
28623 {
28624 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28625 }
28626 return resultobj;
28627 fail:
28628 return NULL;
28629}
28630
28631
28632static PyObject *_wrap_Validator_TransferToWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
28633 PyObject *resultobj;
28634 wxValidator *arg1 = (wxValidator *) 0 ;
28635 bool result;
28636 PyObject * obj0 = 0 ;
28637 char *kwnames[] = {
28638 (char *) "self", NULL
28639 };
28640
28641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferToWindow",kwnames,&obj0)) goto fail;
28642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator,
28643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28644 {
28645 PyThreadState* __tstate = wxPyBeginAllowThreads();
28646 result = (bool)(arg1)->TransferToWindow();
28647
28648 wxPyEndAllowThreads(__tstate);
28649 if (PyErr_Occurred()) SWIG_fail;
28650 }
28651 {
28652 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28653 }
28654 return resultobj;
28655 fail:
28656 return NULL;
28657}
28658
28659
28660static PyObject *_wrap_Validator_TransferFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
28661 PyObject *resultobj;
28662 wxValidator *arg1 = (wxValidator *) 0 ;
28663 bool result;
28664 PyObject * obj0 = 0 ;
28665 char *kwnames[] = {
28666 (char *) "self", NULL
28667 };
28668
28669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferFromWindow",kwnames,&obj0)) goto fail;
28670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator,
28671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28672 {
28673 PyThreadState* __tstate = wxPyBeginAllowThreads();
28674 result = (bool)(arg1)->TransferFromWindow();
28675
28676 wxPyEndAllowThreads(__tstate);
28677 if (PyErr_Occurred()) SWIG_fail;
28678 }
28679 {
28680 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28681 }
28682 return resultobj;
28683 fail:
28684 return NULL;
28685}
28686
28687
28688static PyObject *_wrap_Validator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
28689 PyObject *resultobj;
28690 wxValidator *arg1 = (wxValidator *) 0 ;
28691 wxWindow *result;
28692 PyObject * obj0 = 0 ;
28693 char *kwnames[] = {
28694 (char *) "self", NULL
28695 };
28696
28697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_GetWindow",kwnames,&obj0)) goto fail;
28698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator,
28699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28700 {
28701 PyThreadState* __tstate = wxPyBeginAllowThreads();
28702 result = (wxWindow *)(arg1)->GetWindow();
28703
28704 wxPyEndAllowThreads(__tstate);
28705 if (PyErr_Occurred()) SWIG_fail;
28706 }
28707 {
412d302d 28708 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
28709 }
28710 return resultobj;
28711 fail:
28712 return NULL;
28713}
28714
28715
28716static PyObject *_wrap_Validator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
28717 PyObject *resultobj;
28718 wxValidator *arg1 = (wxValidator *) 0 ;
28719 wxWindow *arg2 = (wxWindow *) 0 ;
28720 PyObject * obj0 = 0 ;
28721 PyObject * obj1 = 0 ;
28722 char *kwnames[] = {
28723 (char *) "self",(char *) "window", NULL
28724 };
28725
28726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) goto fail;
28727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator,
28728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28729 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28730 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28731 {
28732 PyThreadState* __tstate = wxPyBeginAllowThreads();
28733 (arg1)->SetWindow(arg2);
28734
28735 wxPyEndAllowThreads(__tstate);
28736 if (PyErr_Occurred()) SWIG_fail;
28737 }
28738 Py_INCREF(Py_None); resultobj = Py_None;
28739 return resultobj;
28740 fail:
28741 return NULL;
28742}
28743
28744
28745static PyObject *_wrap_Validator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) {
28746 PyObject *resultobj;
28747 bool result;
28748 char *kwnames[] = {
28749 NULL
28750 };
28751
28752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Validator_IsSilent",kwnames)) goto fail;
28753 {
28754 PyThreadState* __tstate = wxPyBeginAllowThreads();
28755 result = (bool)wxValidator::IsSilent();
28756
28757 wxPyEndAllowThreads(__tstate);
28758 if (PyErr_Occurred()) SWIG_fail;
28759 }
28760 {
28761 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28762 }
28763 return resultobj;
28764 fail:
28765 return NULL;
28766}
28767
28768
28769static PyObject *_wrap_Validator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) {
28770 PyObject *resultobj;
28771 int arg1 = (int) True ;
28772 PyObject * obj0 = 0 ;
28773 char *kwnames[] = {
28774 (char *) "doIt", NULL
28775 };
28776
28777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Validator_SetBellOnError",kwnames,&obj0)) goto fail;
28778 if (obj0) {
28779 arg1 = (int) SWIG_AsInt(obj0);
28780 if (PyErr_Occurred()) SWIG_fail;
28781 }
28782 {
28783 PyThreadState* __tstate = wxPyBeginAllowThreads();
28784 wxValidator::SetBellOnError(arg1);
28785
28786 wxPyEndAllowThreads(__tstate);
28787 if (PyErr_Occurred()) SWIG_fail;
28788 }
28789 Py_INCREF(Py_None); resultobj = Py_None;
28790 return resultobj;
28791 fail:
28792 return NULL;
28793}
28794
28795
28796static PyObject * Validator_swigregister(PyObject *self, PyObject *args) {
28797 PyObject *obj;
28798 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28799 SWIG_TypeClientData(SWIGTYPE_p_wxValidator, obj);
28800 Py_INCREF(obj);
28801 return Py_BuildValue((char *)"");
28802}
28803static PyObject *_wrap_new_PyValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
28804 PyObject *resultobj;
28805 wxPyValidator *result;
28806 char *kwnames[] = {
28807 NULL
28808 };
28809
28810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyValidator",kwnames)) goto fail;
28811 {
28812 PyThreadState* __tstate = wxPyBeginAllowThreads();
28813 result = (wxPyValidator *)new wxPyValidator();
28814
28815 wxPyEndAllowThreads(__tstate);
28816 if (PyErr_Occurred()) SWIG_fail;
28817 }
28818 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyValidator, 1);
28819 return resultobj;
28820 fail:
28821 return NULL;
28822}
28823
28824
28825static PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
28826 PyObject *resultobj;
28827 wxPyValidator *arg1 = (wxPyValidator *) 0 ;
28828 PyObject *arg2 = (PyObject *) 0 ;
28829 PyObject *arg3 = (PyObject *) 0 ;
28830 int arg4 = (int) True ;
28831 PyObject * obj0 = 0 ;
28832 PyObject * obj1 = 0 ;
28833 PyObject * obj2 = 0 ;
28834 PyObject * obj3 = 0 ;
28835 char *kwnames[] = {
28836 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
28837 };
28838
28839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
28840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyValidator,
28841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28842 arg2 = obj1;
28843 arg3 = obj2;
28844 if (obj3) {
28845 arg4 = (int) SWIG_AsInt(obj3);
28846 if (PyErr_Occurred()) SWIG_fail;
28847 }
28848 {
28849 PyThreadState* __tstate = wxPyBeginAllowThreads();
28850 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
28851
28852 wxPyEndAllowThreads(__tstate);
28853 if (PyErr_Occurred()) SWIG_fail;
28854 }
28855 Py_INCREF(Py_None); resultobj = Py_None;
28856 return resultobj;
28857 fail:
28858 return NULL;
28859}
28860
28861
28862static PyObject * PyValidator_swigregister(PyObject *self, PyObject *args) {
28863 PyObject *obj;
28864 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28865 SWIG_TypeClientData(SWIGTYPE_p_wxPyValidator, obj);
28866 Py_INCREF(obj);
28867 return Py_BuildValue((char *)"");
28868}
28869static int _wrap_DefaultValidator_set(PyObject *_val) {
28870 PyErr_SetString(PyExc_TypeError,"Variable DefaultValidator is read-only.");
28871 return 1;
28872}
28873
28874
28875static PyObject *_wrap_DefaultValidator_get() {
28876 PyObject *pyobj;
28877
28878 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultValidator), SWIGTYPE_p_wxValidator, 0);
28879 return pyobj;
28880}
28881
28882
28883static PyObject *_wrap_new_Menu(PyObject *self, PyObject *args, PyObject *kwargs) {
28884 PyObject *resultobj;
28885 wxString const &arg1_defvalue = wxPyEmptyString ;
28886 wxString *arg1 = (wxString *) &arg1_defvalue ;
28887 long arg2 = (long) 0 ;
28888 wxMenu *result;
28889 bool temp1 = False ;
28890 PyObject * obj0 = 0 ;
28891 PyObject * obj1 = 0 ;
28892 char *kwnames[] = {
28893 (char *) "title",(char *) "style", NULL
28894 };
28895
28896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Menu",kwnames,&obj0,&obj1)) goto fail;
28897 if (obj0) {
28898 {
28899 arg1 = wxString_in_helper(obj0);
28900 if (arg1 == NULL) SWIG_fail;
28901 temp1 = True;
28902 }
28903 }
28904 if (obj1) {
28905 arg2 = (long) SWIG_AsLong(obj1);
28906 if (PyErr_Occurred()) SWIG_fail;
28907 }
28908 {
0439c23b 28909 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
28910 PyThreadState* __tstate = wxPyBeginAllowThreads();
28911 result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2);
28912
28913 wxPyEndAllowThreads(__tstate);
110da5b0 28914 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
28915 }
28916 {
412d302d 28917 resultobj = wxPyMake_wxObject(result, 1);
d55e5bfc
RD
28918 }
28919 {
28920 if (temp1)
28921 delete arg1;
28922 }
28923 return resultobj;
28924 fail:
28925 {
28926 if (temp1)
28927 delete arg1;
28928 }
28929 return NULL;
28930}
28931
28932
28933static PyObject *_wrap_Menu_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
28934 PyObject *resultobj;
28935 wxMenu *arg1 = (wxMenu *) 0 ;
28936 int arg2 ;
28937 wxString *arg3 = 0 ;
28938 wxString const &arg4_defvalue = wxPyEmptyString ;
28939 wxString *arg4 = (wxString *) &arg4_defvalue ;
28940 int arg5 = (int) wxITEM_NORMAL ;
28941 wxMenuItem *result;
28942 bool temp3 = False ;
28943 bool temp4 = False ;
28944 PyObject * obj0 = 0 ;
28945 PyObject * obj1 = 0 ;
28946 PyObject * obj2 = 0 ;
28947 PyObject * obj3 = 0 ;
28948 PyObject * obj4 = 0 ;
28949 char *kwnames[] = {
28950 (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL
28951 };
28952
28953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
28954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
28955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28956 arg2 = (int) SWIG_AsInt(obj1);
28957 if (PyErr_Occurred()) SWIG_fail;
28958 {
28959 arg3 = wxString_in_helper(obj2);
28960 if (arg3 == NULL) SWIG_fail;
28961 temp3 = True;
28962 }
28963 if (obj3) {
28964 {
28965 arg4 = wxString_in_helper(obj3);
28966 if (arg4 == NULL) SWIG_fail;
28967 temp4 = True;
28968 }
28969 }
28970 if (obj4) {
28971 arg5 = (wxItemKind) SWIG_AsInt(obj4);
28972 if (PyErr_Occurred()) SWIG_fail;
28973 }
28974 {
28975 PyThreadState* __tstate = wxPyBeginAllowThreads();
28976 result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5);
28977
28978 wxPyEndAllowThreads(__tstate);
28979 if (PyErr_Occurred()) SWIG_fail;
28980 }
28981 {
412d302d 28982 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
28983 }
28984 {
28985 if (temp3)
28986 delete arg3;
28987 }
28988 {
28989 if (temp4)
28990 delete arg4;
28991 }
28992 return resultobj;
28993 fail:
28994 {
28995 if (temp3)
28996 delete arg3;
28997 }
28998 {
28999 if (temp4)
29000 delete arg4;
29001 }
29002 return NULL;
29003}
29004
29005
29006static PyObject *_wrap_Menu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
29007 PyObject *resultobj;
29008 wxMenu *arg1 = (wxMenu *) 0 ;
29009 wxMenuItem *result;
29010 PyObject * obj0 = 0 ;
29011 char *kwnames[] = {
29012 (char *) "self", NULL
29013 };
29014
29015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_AppendSeparator",kwnames,&obj0)) goto fail;
29016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29018 {
29019 PyThreadState* __tstate = wxPyBeginAllowThreads();
29020 result = (wxMenuItem *)(arg1)->AppendSeparator();
29021
29022 wxPyEndAllowThreads(__tstate);
29023 if (PyErr_Occurred()) SWIG_fail;
29024 }
29025 {
412d302d 29026 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29027 }
29028 return resultobj;
29029 fail:
29030 return NULL;
29031}
29032
29033
29034static PyObject *_wrap_Menu_AppendCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29035 PyObject *resultobj;
29036 wxMenu *arg1 = (wxMenu *) 0 ;
29037 int arg2 ;
29038 wxString *arg3 = 0 ;
29039 wxString const &arg4_defvalue = wxPyEmptyString ;
29040 wxString *arg4 = (wxString *) &arg4_defvalue ;
29041 wxMenuItem *result;
29042 bool temp3 = False ;
29043 bool temp4 = False ;
29044 PyObject * obj0 = 0 ;
29045 PyObject * obj1 = 0 ;
29046 PyObject * obj2 = 0 ;
29047 PyObject * obj3 = 0 ;
29048 char *kwnames[] = {
29049 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
29050 };
29051
29052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
29053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29055 arg2 = (int) SWIG_AsInt(obj1);
29056 if (PyErr_Occurred()) SWIG_fail;
29057 {
29058 arg3 = wxString_in_helper(obj2);
29059 if (arg3 == NULL) SWIG_fail;
29060 temp3 = True;
29061 }
29062 if (obj3) {
29063 {
29064 arg4 = wxString_in_helper(obj3);
29065 if (arg4 == NULL) SWIG_fail;
29066 temp4 = True;
29067 }
29068 }
29069 {
29070 PyThreadState* __tstate = wxPyBeginAllowThreads();
29071 result = (wxMenuItem *)(arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
29072
29073 wxPyEndAllowThreads(__tstate);
29074 if (PyErr_Occurred()) SWIG_fail;
29075 }
29076 {
412d302d 29077 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29078 }
29079 {
29080 if (temp3)
29081 delete arg3;
29082 }
29083 {
29084 if (temp4)
29085 delete arg4;
29086 }
29087 return resultobj;
29088 fail:
29089 {
29090 if (temp3)
29091 delete arg3;
29092 }
29093 {
29094 if (temp4)
29095 delete arg4;
29096 }
29097 return NULL;
29098}
29099
29100
29101static PyObject *_wrap_Menu_AppendRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29102 PyObject *resultobj;
29103 wxMenu *arg1 = (wxMenu *) 0 ;
29104 int arg2 ;
29105 wxString *arg3 = 0 ;
29106 wxString const &arg4_defvalue = wxPyEmptyString ;
29107 wxString *arg4 = (wxString *) &arg4_defvalue ;
29108 wxMenuItem *result;
29109 bool temp3 = False ;
29110 bool temp4 = False ;
29111 PyObject * obj0 = 0 ;
29112 PyObject * obj1 = 0 ;
29113 PyObject * obj2 = 0 ;
29114 PyObject * obj3 = 0 ;
29115 char *kwnames[] = {
29116 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
29117 };
29118
29119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
29120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29122 arg2 = (int) SWIG_AsInt(obj1);
29123 if (PyErr_Occurred()) SWIG_fail;
29124 {
29125 arg3 = wxString_in_helper(obj2);
29126 if (arg3 == NULL) SWIG_fail;
29127 temp3 = True;
29128 }
29129 if (obj3) {
29130 {
29131 arg4 = wxString_in_helper(obj3);
29132 if (arg4 == NULL) SWIG_fail;
29133 temp4 = True;
29134 }
29135 }
29136 {
29137 PyThreadState* __tstate = wxPyBeginAllowThreads();
29138 result = (wxMenuItem *)(arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
29139
29140 wxPyEndAllowThreads(__tstate);
29141 if (PyErr_Occurred()) SWIG_fail;
29142 }
29143 {
412d302d 29144 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29145 }
29146 {
29147 if (temp3)
29148 delete arg3;
29149 }
29150 {
29151 if (temp4)
29152 delete arg4;
29153 }
29154 return resultobj;
29155 fail:
29156 {
29157 if (temp3)
29158 delete arg3;
29159 }
29160 {
29161 if (temp4)
29162 delete arg4;
29163 }
29164 return NULL;
29165}
29166
29167
29168static PyObject *_wrap_Menu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
29169 PyObject *resultobj;
29170 wxMenu *arg1 = (wxMenu *) 0 ;
29171 int arg2 ;
29172 wxString *arg3 = 0 ;
29173 wxMenu *arg4 = (wxMenu *) 0 ;
29174 wxString const &arg5_defvalue = wxPyEmptyString ;
29175 wxString *arg5 = (wxString *) &arg5_defvalue ;
29176 wxMenuItem *result;
29177 bool temp3 = False ;
29178 bool temp5 = False ;
29179 PyObject * obj0 = 0 ;
29180 PyObject * obj1 = 0 ;
29181 PyObject * obj2 = 0 ;
29182 PyObject * obj3 = 0 ;
29183 PyObject * obj4 = 0 ;
29184 char *kwnames[] = {
29185 (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL
29186 };
29187
29188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_AppendMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29191 arg2 = (int) SWIG_AsInt(obj1);
29192 if (PyErr_Occurred()) SWIG_fail;
29193 {
29194 arg3 = wxString_in_helper(obj2);
29195 if (arg3 == NULL) SWIG_fail;
29196 temp3 = True;
29197 }
29198 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu,
29199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29200 if (obj4) {
29201 {
29202 arg5 = wxString_in_helper(obj4);
29203 if (arg5 == NULL) SWIG_fail;
29204 temp5 = True;
29205 }
29206 }
29207 {
29208 PyThreadState* __tstate = wxPyBeginAllowThreads();
29209 result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5);
29210
29211 wxPyEndAllowThreads(__tstate);
29212 if (PyErr_Occurred()) SWIG_fail;
29213 }
29214 {
412d302d 29215 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29216 }
29217 {
29218 if (temp3)
29219 delete arg3;
29220 }
29221 {
29222 if (temp5)
29223 delete arg5;
29224 }
29225 return resultobj;
29226 fail:
29227 {
29228 if (temp3)
29229 delete arg3;
29230 }
29231 {
29232 if (temp5)
29233 delete arg5;
29234 }
29235 return NULL;
29236}
29237
29238
29239static PyObject *_wrap_Menu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29240 PyObject *resultobj;
29241 wxMenu *arg1 = (wxMenu *) 0 ;
29242 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
29243 wxMenuItem *result;
29244 PyObject * obj0 = 0 ;
29245 PyObject * obj1 = 0 ;
29246 char *kwnames[] = {
29247 (char *) "self",(char *) "item", NULL
29248 };
29249
29250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) goto fail;
29251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29253 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem,
29254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29255 {
29256 PyThreadState* __tstate = wxPyBeginAllowThreads();
29257 result = (wxMenuItem *)(arg1)->Append(arg2);
29258
29259 wxPyEndAllowThreads(__tstate);
29260 if (PyErr_Occurred()) SWIG_fail;
29261 }
29262 {
412d302d 29263 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29264 }
29265 return resultobj;
29266 fail:
29267 return NULL;
29268}
29269
29270
29271static PyObject *_wrap_Menu_Break(PyObject *self, PyObject *args, PyObject *kwargs) {
29272 PyObject *resultobj;
29273 wxMenu *arg1 = (wxMenu *) 0 ;
29274 PyObject * obj0 = 0 ;
29275 char *kwnames[] = {
29276 (char *) "self", NULL
29277 };
29278
29279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Break",kwnames,&obj0)) goto fail;
29280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29282 {
29283 PyThreadState* __tstate = wxPyBeginAllowThreads();
29284 (arg1)->Break();
29285
29286 wxPyEndAllowThreads(__tstate);
29287 if (PyErr_Occurred()) SWIG_fail;
29288 }
29289 Py_INCREF(Py_None); resultobj = Py_None;
29290 return resultobj;
29291 fail:
29292 return NULL;
29293}
29294
29295
29296static PyObject *_wrap_Menu_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29297 PyObject *resultobj;
29298 wxMenu *arg1 = (wxMenu *) 0 ;
29299 size_t arg2 ;
29300 wxMenuItem *arg3 = (wxMenuItem *) 0 ;
29301 wxMenuItem *result;
29302 PyObject * obj0 = 0 ;
29303 PyObject * obj1 = 0 ;
29304 PyObject * obj2 = 0 ;
29305 char *kwnames[] = {
29306 (char *) "self",(char *) "pos",(char *) "item", NULL
29307 };
29308
29309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
29310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29312 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
29313 if (PyErr_Occurred()) SWIG_fail;
29314 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenuItem,
29315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29316 {
29317 PyThreadState* __tstate = wxPyBeginAllowThreads();
29318 result = (wxMenuItem *)(arg1)->Insert(arg2,arg3);
29319
29320 wxPyEndAllowThreads(__tstate);
29321 if (PyErr_Occurred()) SWIG_fail;
29322 }
29323 {
412d302d 29324 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29325 }
29326 return resultobj;
29327 fail:
29328 return NULL;
29329}
29330
29331
29332static PyObject *_wrap_Menu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
29333 PyObject *resultobj;
29334 wxMenu *arg1 = (wxMenu *) 0 ;
29335 size_t arg2 ;
29336 int arg3 ;
29337 wxString *arg4 = 0 ;
29338 wxString const &arg5_defvalue = wxPyEmptyString ;
29339 wxString *arg5 = (wxString *) &arg5_defvalue ;
29340 int arg6 = (int) wxITEM_NORMAL ;
29341 wxMenuItem *result;
29342 bool temp4 = False ;
29343 bool temp5 = False ;
29344 PyObject * obj0 = 0 ;
29345 PyObject * obj1 = 0 ;
29346 PyObject * obj2 = 0 ;
29347 PyObject * obj3 = 0 ;
29348 PyObject * obj4 = 0 ;
29349 PyObject * obj5 = 0 ;
29350 char *kwnames[] = {
29351 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL
29352 };
29353
29354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Menu_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
29355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29357 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
29358 if (PyErr_Occurred()) SWIG_fail;
29359 arg3 = (int) SWIG_AsInt(obj2);
29360 if (PyErr_Occurred()) SWIG_fail;
29361 {
29362 arg4 = wxString_in_helper(obj3);
29363 if (arg4 == NULL) SWIG_fail;
29364 temp4 = True;
29365 }
29366 if (obj4) {
29367 {
29368 arg5 = wxString_in_helper(obj4);
29369 if (arg5 == NULL) SWIG_fail;
29370 temp5 = True;
29371 }
29372 }
29373 if (obj5) {
29374 arg6 = (wxItemKind) SWIG_AsInt(obj5);
29375 if (PyErr_Occurred()) SWIG_fail;
29376 }
29377 {
29378 PyThreadState* __tstate = wxPyBeginAllowThreads();
29379 result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxItemKind )arg6);
29380
29381 wxPyEndAllowThreads(__tstate);
29382 if (PyErr_Occurred()) SWIG_fail;
29383 }
29384 {
412d302d 29385 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29386 }
29387 {
29388 if (temp4)
29389 delete arg4;
29390 }
29391 {
29392 if (temp5)
29393 delete arg5;
29394 }
29395 return resultobj;
29396 fail:
29397 {
29398 if (temp4)
29399 delete arg4;
29400 }
29401 {
29402 if (temp5)
29403 delete arg5;
29404 }
29405 return NULL;
29406}
29407
29408
29409static PyObject *_wrap_Menu_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
29410 PyObject *resultobj;
29411 wxMenu *arg1 = (wxMenu *) 0 ;
29412 size_t arg2 ;
29413 wxMenuItem *result;
29414 PyObject * obj0 = 0 ;
29415 PyObject * obj1 = 0 ;
29416 char *kwnames[] = {
29417 (char *) "self",(char *) "pos", NULL
29418 };
29419
29420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) goto fail;
29421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29423 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
29424 if (PyErr_Occurred()) SWIG_fail;
29425 {
29426 PyThreadState* __tstate = wxPyBeginAllowThreads();
29427 result = (wxMenuItem *)(arg1)->InsertSeparator(arg2);
29428
29429 wxPyEndAllowThreads(__tstate);
29430 if (PyErr_Occurred()) SWIG_fail;
29431 }
29432 {
412d302d 29433 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29434 }
29435 return resultobj;
29436 fail:
29437 return NULL;
29438}
29439
29440
29441static PyObject *_wrap_Menu_InsertCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29442 PyObject *resultobj;
29443 wxMenu *arg1 = (wxMenu *) 0 ;
29444 size_t arg2 ;
29445 int arg3 ;
29446 wxString *arg4 = 0 ;
29447 wxString const &arg5_defvalue = wxPyEmptyString ;
29448 wxString *arg5 = (wxString *) &arg5_defvalue ;
29449 wxMenuItem *result;
29450 bool temp4 = False ;
29451 bool temp5 = False ;
29452 PyObject * obj0 = 0 ;
29453 PyObject * obj1 = 0 ;
29454 PyObject * obj2 = 0 ;
29455 PyObject * obj3 = 0 ;
29456 PyObject * obj4 = 0 ;
29457 char *kwnames[] = {
29458 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL
29459 };
29460
29461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29464 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
29465 if (PyErr_Occurred()) SWIG_fail;
29466 arg3 = (int) SWIG_AsInt(obj2);
29467 if (PyErr_Occurred()) SWIG_fail;
29468 {
29469 arg4 = wxString_in_helper(obj3);
29470 if (arg4 == NULL) SWIG_fail;
29471 temp4 = True;
29472 }
29473 if (obj4) {
29474 {
29475 arg5 = wxString_in_helper(obj4);
29476 if (arg5 == NULL) SWIG_fail;
29477 temp5 = True;
29478 }
29479 }
29480 {
29481 PyThreadState* __tstate = wxPyBeginAllowThreads();
29482 result = (wxMenuItem *)(arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5);
29483
29484 wxPyEndAllowThreads(__tstate);
29485 if (PyErr_Occurred()) SWIG_fail;
29486 }
29487 {
412d302d 29488 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29489 }
29490 {
29491 if (temp4)
29492 delete arg4;
29493 }
29494 {
29495 if (temp5)
29496 delete arg5;
29497 }
29498 return resultobj;
29499 fail:
29500 {
29501 if (temp4)
29502 delete arg4;
29503 }
29504 {
29505 if (temp5)
29506 delete arg5;
29507 }
29508 return NULL;
29509}
29510
29511
29512static PyObject *_wrap_Menu_InsertRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29513 PyObject *resultobj;
29514 wxMenu *arg1 = (wxMenu *) 0 ;
29515 size_t arg2 ;
29516 int arg3 ;
29517 wxString *arg4 = 0 ;
29518 wxString const &arg5_defvalue = wxPyEmptyString ;
29519 wxString *arg5 = (wxString *) &arg5_defvalue ;
29520 wxMenuItem *result;
29521 bool temp4 = False ;
29522 bool temp5 = False ;
29523 PyObject * obj0 = 0 ;
29524 PyObject * obj1 = 0 ;
29525 PyObject * obj2 = 0 ;
29526 PyObject * obj3 = 0 ;
29527 PyObject * obj4 = 0 ;
29528 char *kwnames[] = {
29529 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL
29530 };
29531
29532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29535 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
29536 if (PyErr_Occurred()) SWIG_fail;
29537 arg3 = (int) SWIG_AsInt(obj2);
29538 if (PyErr_Occurred()) SWIG_fail;
29539 {
29540 arg4 = wxString_in_helper(obj3);
29541 if (arg4 == NULL) SWIG_fail;
29542 temp4 = True;
29543 }
29544 if (obj4) {
29545 {
29546 arg5 = wxString_in_helper(obj4);
29547 if (arg5 == NULL) SWIG_fail;
29548 temp5 = True;
29549 }
29550 }
29551 {
29552 PyThreadState* __tstate = wxPyBeginAllowThreads();
29553 result = (wxMenuItem *)(arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5);
29554
29555 wxPyEndAllowThreads(__tstate);
29556 if (PyErr_Occurred()) SWIG_fail;
29557 }
29558 {
412d302d 29559 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29560 }
29561 {
29562 if (temp4)
29563 delete arg4;
29564 }
29565 {
29566 if (temp5)
29567 delete arg5;
29568 }
29569 return resultobj;
29570 fail:
29571 {
29572 if (temp4)
29573 delete arg4;
29574 }
29575 {
29576 if (temp5)
29577 delete arg5;
29578 }
29579 return NULL;
29580}
29581
29582
29583static PyObject *_wrap_Menu_InsertMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
29584 PyObject *resultobj;
29585 wxMenu *arg1 = (wxMenu *) 0 ;
29586 size_t arg2 ;
29587 int arg3 ;
29588 wxString *arg4 = 0 ;
29589 wxMenu *arg5 = (wxMenu *) 0 ;
29590 wxString const &arg6_defvalue = wxPyEmptyString ;
29591 wxString *arg6 = (wxString *) &arg6_defvalue ;
29592 wxMenuItem *result;
29593 bool temp4 = False ;
29594 bool temp6 = False ;
29595 PyObject * obj0 = 0 ;
29596 PyObject * obj1 = 0 ;
29597 PyObject * obj2 = 0 ;
29598 PyObject * obj3 = 0 ;
29599 PyObject * obj4 = 0 ;
29600 PyObject * obj5 = 0 ;
29601 char *kwnames[] = {
29602 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL
29603 };
29604
29605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
29606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29608 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
29609 if (PyErr_Occurred()) SWIG_fail;
29610 arg3 = (int) SWIG_AsInt(obj2);
29611 if (PyErr_Occurred()) SWIG_fail;
29612 {
29613 arg4 = wxString_in_helper(obj3);
29614 if (arg4 == NULL) SWIG_fail;
29615 temp4 = True;
29616 }
29617 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxMenu,
29618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29619 if (obj5) {
29620 {
29621 arg6 = wxString_in_helper(obj5);
29622 if (arg6 == NULL) SWIG_fail;
29623 temp6 = True;
29624 }
29625 }
29626 {
29627 PyThreadState* __tstate = wxPyBeginAllowThreads();
29628 result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6);
29629
29630 wxPyEndAllowThreads(__tstate);
29631 if (PyErr_Occurred()) SWIG_fail;
29632 }
29633 {
412d302d 29634 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29635 }
29636 {
29637 if (temp4)
29638 delete arg4;
29639 }
29640 {
29641 if (temp6)
29642 delete arg6;
29643 }
29644 return resultobj;
29645 fail:
29646 {
29647 if (temp4)
29648 delete arg4;
29649 }
29650 {
29651 if (temp6)
29652 delete arg6;
29653 }
29654 return NULL;
29655}
29656
29657
29658static PyObject *_wrap_Menu_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29659 PyObject *resultobj;
29660 wxMenu *arg1 = (wxMenu *) 0 ;
29661 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
29662 wxMenuItem *result;
29663 PyObject * obj0 = 0 ;
29664 PyObject * obj1 = 0 ;
29665 char *kwnames[] = {
29666 (char *) "self",(char *) "item", NULL
29667 };
29668
29669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) goto fail;
29670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29672 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem,
29673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29674 {
29675 PyThreadState* __tstate = wxPyBeginAllowThreads();
29676 result = (wxMenuItem *)(arg1)->Prepend(arg2);
29677
29678 wxPyEndAllowThreads(__tstate);
29679 if (PyErr_Occurred()) SWIG_fail;
29680 }
29681 {
412d302d 29682 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29683 }
29684 return resultobj;
29685 fail:
29686 return NULL;
29687}
29688
29689
29690static PyObject *_wrap_Menu_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) {
29691 PyObject *resultobj;
29692 wxMenu *arg1 = (wxMenu *) 0 ;
29693 int arg2 ;
29694 wxString *arg3 = 0 ;
29695 wxString const &arg4_defvalue = wxPyEmptyString ;
29696 wxString *arg4 = (wxString *) &arg4_defvalue ;
29697 int arg5 = (int) wxITEM_NORMAL ;
29698 wxMenuItem *result;
29699 bool temp3 = False ;
29700 bool temp4 = False ;
29701 PyObject * obj0 = 0 ;
29702 PyObject * obj1 = 0 ;
29703 PyObject * obj2 = 0 ;
29704 PyObject * obj3 = 0 ;
29705 PyObject * obj4 = 0 ;
29706 char *kwnames[] = {
29707 (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL
29708 };
29709
29710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29713 arg2 = (int) SWIG_AsInt(obj1);
29714 if (PyErr_Occurred()) SWIG_fail;
29715 {
29716 arg3 = wxString_in_helper(obj2);
29717 if (arg3 == NULL) SWIG_fail;
29718 temp3 = True;
29719 }
29720 if (obj3) {
29721 {
29722 arg4 = wxString_in_helper(obj3);
29723 if (arg4 == NULL) SWIG_fail;
29724 temp4 = True;
29725 }
29726 }
29727 if (obj4) {
29728 arg5 = (wxItemKind) SWIG_AsInt(obj4);
29729 if (PyErr_Occurred()) SWIG_fail;
29730 }
29731 {
29732 PyThreadState* __tstate = wxPyBeginAllowThreads();
29733 result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5);
29734
29735 wxPyEndAllowThreads(__tstate);
29736 if (PyErr_Occurred()) SWIG_fail;
29737 }
29738 {
412d302d 29739 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29740 }
29741 {
29742 if (temp3)
29743 delete arg3;
29744 }
29745 {
29746 if (temp4)
29747 delete arg4;
29748 }
29749 return resultobj;
29750 fail:
29751 {
29752 if (temp3)
29753 delete arg3;
29754 }
29755 {
29756 if (temp4)
29757 delete arg4;
29758 }
29759 return NULL;
29760}
29761
29762
29763static PyObject *_wrap_Menu_PrependSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
29764 PyObject *resultobj;
29765 wxMenu *arg1 = (wxMenu *) 0 ;
29766 wxMenuItem *result;
29767 PyObject * obj0 = 0 ;
29768 char *kwnames[] = {
29769 (char *) "self", NULL
29770 };
29771
29772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_PrependSeparator",kwnames,&obj0)) goto fail;
29773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29775 {
29776 PyThreadState* __tstate = wxPyBeginAllowThreads();
29777 result = (wxMenuItem *)(arg1)->PrependSeparator();
29778
29779 wxPyEndAllowThreads(__tstate);
29780 if (PyErr_Occurred()) SWIG_fail;
29781 }
29782 {
412d302d 29783 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29784 }
29785 return resultobj;
29786 fail:
29787 return NULL;
29788}
29789
29790
29791static PyObject *_wrap_Menu_PrependCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29792 PyObject *resultobj;
29793 wxMenu *arg1 = (wxMenu *) 0 ;
29794 int arg2 ;
29795 wxString *arg3 = 0 ;
29796 wxString const &arg4_defvalue = wxPyEmptyString ;
29797 wxString *arg4 = (wxString *) &arg4_defvalue ;
29798 wxMenuItem *result;
29799 bool temp3 = False ;
29800 bool temp4 = False ;
29801 PyObject * obj0 = 0 ;
29802 PyObject * obj1 = 0 ;
29803 PyObject * obj2 = 0 ;
29804 PyObject * obj3 = 0 ;
29805 char *kwnames[] = {
29806 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
29807 };
29808
29809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
29810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29812 arg2 = (int) SWIG_AsInt(obj1);
29813 if (PyErr_Occurred()) SWIG_fail;
29814 {
29815 arg3 = wxString_in_helper(obj2);
29816 if (arg3 == NULL) SWIG_fail;
29817 temp3 = True;
29818 }
29819 if (obj3) {
29820 {
29821 arg4 = wxString_in_helper(obj3);
29822 if (arg4 == NULL) SWIG_fail;
29823 temp4 = True;
29824 }
29825 }
29826 {
29827 PyThreadState* __tstate = wxPyBeginAllowThreads();
29828 result = (wxMenuItem *)(arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
29829
29830 wxPyEndAllowThreads(__tstate);
29831 if (PyErr_Occurred()) SWIG_fail;
29832 }
29833 {
412d302d 29834 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29835 }
29836 {
29837 if (temp3)
29838 delete arg3;
29839 }
29840 {
29841 if (temp4)
29842 delete arg4;
29843 }
29844 return resultobj;
29845 fail:
29846 {
29847 if (temp3)
29848 delete arg3;
29849 }
29850 {
29851 if (temp4)
29852 delete arg4;
29853 }
29854 return NULL;
29855}
29856
29857
29858static PyObject *_wrap_Menu_PrependRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29859 PyObject *resultobj;
29860 wxMenu *arg1 = (wxMenu *) 0 ;
29861 int arg2 ;
29862 wxString *arg3 = 0 ;
29863 wxString const &arg4_defvalue = wxPyEmptyString ;
29864 wxString *arg4 = (wxString *) &arg4_defvalue ;
29865 wxMenuItem *result;
29866 bool temp3 = False ;
29867 bool temp4 = False ;
29868 PyObject * obj0 = 0 ;
29869 PyObject * obj1 = 0 ;
29870 PyObject * obj2 = 0 ;
29871 PyObject * obj3 = 0 ;
29872 char *kwnames[] = {
29873 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
29874 };
29875
29876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
29877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29879 arg2 = (int) SWIG_AsInt(obj1);
29880 if (PyErr_Occurred()) SWIG_fail;
29881 {
29882 arg3 = wxString_in_helper(obj2);
29883 if (arg3 == NULL) SWIG_fail;
29884 temp3 = True;
29885 }
29886 if (obj3) {
29887 {
29888 arg4 = wxString_in_helper(obj3);
29889 if (arg4 == NULL) SWIG_fail;
29890 temp4 = True;
29891 }
29892 }
29893 {
29894 PyThreadState* __tstate = wxPyBeginAllowThreads();
29895 result = (wxMenuItem *)(arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
29896
29897 wxPyEndAllowThreads(__tstate);
29898 if (PyErr_Occurred()) SWIG_fail;
29899 }
29900 {
412d302d 29901 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29902 }
29903 {
29904 if (temp3)
29905 delete arg3;
29906 }
29907 {
29908 if (temp4)
29909 delete arg4;
29910 }
29911 return resultobj;
29912 fail:
29913 {
29914 if (temp3)
29915 delete arg3;
29916 }
29917 {
29918 if (temp4)
29919 delete arg4;
29920 }
29921 return NULL;
29922}
29923
29924
29925static PyObject *_wrap_Menu_PrependMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
29926 PyObject *resultobj;
29927 wxMenu *arg1 = (wxMenu *) 0 ;
29928 int arg2 ;
29929 wxString *arg3 = 0 ;
29930 wxMenu *arg4 = (wxMenu *) 0 ;
29931 wxString const &arg5_defvalue = wxPyEmptyString ;
29932 wxString *arg5 = (wxString *) &arg5_defvalue ;
29933 wxMenuItem *result;
29934 bool temp3 = False ;
29935 bool temp5 = False ;
29936 PyObject * obj0 = 0 ;
29937 PyObject * obj1 = 0 ;
29938 PyObject * obj2 = 0 ;
29939 PyObject * obj3 = 0 ;
29940 PyObject * obj4 = 0 ;
29941 char *kwnames[] = {
29942 (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL
29943 };
29944
29945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_PrependMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29946 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29948 arg2 = (int) SWIG_AsInt(obj1);
29949 if (PyErr_Occurred()) SWIG_fail;
29950 {
29951 arg3 = wxString_in_helper(obj2);
29952 if (arg3 == NULL) SWIG_fail;
29953 temp3 = True;
29954 }
29955 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu,
29956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29957 if (obj4) {
29958 {
29959 arg5 = wxString_in_helper(obj4);
29960 if (arg5 == NULL) SWIG_fail;
29961 temp5 = True;
29962 }
29963 }
29964 {
29965 PyThreadState* __tstate = wxPyBeginAllowThreads();
29966 result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5);
29967
29968 wxPyEndAllowThreads(__tstate);
29969 if (PyErr_Occurred()) SWIG_fail;
29970 }
29971 {
412d302d 29972 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29973 }
29974 {
29975 if (temp3)
29976 delete arg3;
29977 }
29978 {
29979 if (temp5)
29980 delete arg5;
29981 }
29982 return resultobj;
29983 fail:
29984 {
29985 if (temp3)
29986 delete arg3;
29987 }
29988 {
29989 if (temp5)
29990 delete arg5;
29991 }
29992 return NULL;
29993}
29994
29995
29996static PyObject *_wrap_Menu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
29997 PyObject *resultobj;
29998 wxMenu *arg1 = (wxMenu *) 0 ;
29999 int arg2 ;
30000 wxMenuItem *result;
30001 PyObject * obj0 = 0 ;
30002 PyObject * obj1 = 0 ;
30003 char *kwnames[] = {
30004 (char *) "self",(char *) "id", NULL
30005 };
30006
30007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Remove",kwnames,&obj0,&obj1)) goto fail;
30008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30010 arg2 = (int) SWIG_AsInt(obj1);
30011 if (PyErr_Occurred()) SWIG_fail;
30012 {
30013 PyThreadState* __tstate = wxPyBeginAllowThreads();
30014 result = (wxMenuItem *)(arg1)->Remove(arg2);
30015
30016 wxPyEndAllowThreads(__tstate);
30017 if (PyErr_Occurred()) SWIG_fail;
30018 }
30019 {
412d302d 30020 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
30021 }
30022 return resultobj;
30023 fail:
30024 return NULL;
30025}
30026
30027
30028static PyObject *_wrap_Menu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) {
30029 PyObject *resultobj;
30030 wxMenu *arg1 = (wxMenu *) 0 ;
30031 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
30032 wxMenuItem *result;
30033 PyObject * obj0 = 0 ;
30034 PyObject * obj1 = 0 ;
30035 char *kwnames[] = {
30036 (char *) "self",(char *) "item", NULL
30037 };
30038
30039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) goto fail;
30040 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30041 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30042 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem,
30043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30044 {
30045 PyThreadState* __tstate = wxPyBeginAllowThreads();
30046 result = (wxMenuItem *)(arg1)->Remove(arg2);
30047
30048 wxPyEndAllowThreads(__tstate);
30049 if (PyErr_Occurred()) SWIG_fail;
30050 }
30051 {
412d302d 30052 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
30053 }
30054 return resultobj;
30055 fail:
30056 return NULL;
30057}
30058
30059
30060static PyObject *_wrap_Menu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
30061 PyObject *resultobj;
30062 wxMenu *arg1 = (wxMenu *) 0 ;
30063 int arg2 ;
30064 bool result;
30065 PyObject * obj0 = 0 ;
30066 PyObject * obj1 = 0 ;
30067 char *kwnames[] = {
30068 (char *) "self",(char *) "id", NULL
30069 };
30070
30071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Delete",kwnames,&obj0,&obj1)) goto fail;
30072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30074 arg2 = (int) SWIG_AsInt(obj1);
30075 if (PyErr_Occurred()) SWIG_fail;
30076 {
30077 PyThreadState* __tstate = wxPyBeginAllowThreads();
30078 result = (bool)(arg1)->Delete(arg2);
30079
30080 wxPyEndAllowThreads(__tstate);
30081 if (PyErr_Occurred()) SWIG_fail;
30082 }
30083 {
30084 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30085 }
30086 return resultobj;
30087 fail:
30088 return NULL;
30089}
30090
30091
30092static PyObject *_wrap_Menu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) {
30093 PyObject *resultobj;
30094 wxMenu *arg1 = (wxMenu *) 0 ;
30095 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
30096 bool result;
30097 PyObject * obj0 = 0 ;
30098 PyObject * obj1 = 0 ;
30099 char *kwnames[] = {
30100 (char *) "self",(char *) "item", NULL
30101 };
30102
30103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) goto fail;
30104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30106 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem,
30107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30108 {
30109 PyThreadState* __tstate = wxPyBeginAllowThreads();
30110 result = (bool)(arg1)->Delete(arg2);
30111
30112 wxPyEndAllowThreads(__tstate);
30113 if (PyErr_Occurred()) SWIG_fail;
30114 }
30115 {
30116 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30117 }
30118 return resultobj;
30119 fail:
30120 return NULL;
30121}
30122
30123
30124static PyObject *_wrap_Menu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
30125 PyObject *resultobj;
30126 wxMenu *arg1 = (wxMenu *) 0 ;
30127 PyObject * obj0 = 0 ;
30128 char *kwnames[] = {
30129 (char *) "self", NULL
30130 };
30131
30132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Destroy",kwnames,&obj0)) goto fail;
30133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30135 {
30136 PyThreadState* __tstate = wxPyBeginAllowThreads();
30137 wxMenu_Destroy(arg1);
30138
30139 wxPyEndAllowThreads(__tstate);
30140 if (PyErr_Occurred()) SWIG_fail;
30141 }
30142 Py_INCREF(Py_None); resultobj = Py_None;
30143 return resultobj;
30144 fail:
30145 return NULL;
30146}
30147
30148
30149static PyObject *_wrap_Menu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) {
30150 PyObject *resultobj;
30151 wxMenu *arg1 = (wxMenu *) 0 ;
30152 int arg2 ;
30153 bool result;
30154 PyObject * obj0 = 0 ;
30155 PyObject * obj1 = 0 ;
30156 char *kwnames[] = {
30157 (char *) "self",(char *) "id", NULL
30158 };
30159
30160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyId",kwnames,&obj0,&obj1)) goto fail;
30161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30163 arg2 = (int) SWIG_AsInt(obj1);
30164 if (PyErr_Occurred()) SWIG_fail;
30165 {
30166 PyThreadState* __tstate = wxPyBeginAllowThreads();
30167 result = (bool)(arg1)->Destroy(arg2);
30168
30169 wxPyEndAllowThreads(__tstate);
30170 if (PyErr_Occurred()) SWIG_fail;
30171 }
30172 {
30173 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30174 }
30175 return resultobj;
30176 fail:
30177 return NULL;
30178}
30179
30180
30181static PyObject *_wrap_Menu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) {
30182 PyObject *resultobj;
30183 wxMenu *arg1 = (wxMenu *) 0 ;
30184 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
30185 bool result;
30186 PyObject * obj0 = 0 ;
30187 PyObject * obj1 = 0 ;
30188 char *kwnames[] = {
30189 (char *) "self",(char *) "item", NULL
30190 };
30191
30192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) goto fail;
30193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30195 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem,
30196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30197 {
30198 PyThreadState* __tstate = wxPyBeginAllowThreads();
30199 result = (bool)(arg1)->Destroy(arg2);
30200
30201 wxPyEndAllowThreads(__tstate);
30202 if (PyErr_Occurred()) SWIG_fail;
30203 }
30204 {
30205 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30206 }
30207 return resultobj;
30208 fail:
30209 return NULL;
30210}
30211
30212
30213static PyObject *_wrap_Menu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
30214 PyObject *resultobj;
30215 wxMenu *arg1 = (wxMenu *) 0 ;
30216 size_t result;
30217 PyObject * obj0 = 0 ;
30218 char *kwnames[] = {
30219 (char *) "self", NULL
30220 };
30221
30222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItemCount",kwnames,&obj0)) goto fail;
30223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30225 {
30226 PyThreadState* __tstate = wxPyBeginAllowThreads();
30227 result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount();
30228
30229 wxPyEndAllowThreads(__tstate);
30230 if (PyErr_Occurred()) SWIG_fail;
30231 }
30232 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
30233 return resultobj;
30234 fail:
30235 return NULL;
30236}
30237
30238
30239static PyObject *_wrap_Menu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) {
30240 PyObject *resultobj;
30241 wxMenu *arg1 = (wxMenu *) 0 ;
30242 PyObject *result;
30243 PyObject * obj0 = 0 ;
30244 char *kwnames[] = {
30245 (char *) "self", NULL
30246 };
30247
30248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItems",kwnames,&obj0)) goto fail;
30249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30251 {
30252 PyThreadState* __tstate = wxPyBeginAllowThreads();
30253 result = (PyObject *)wxMenu_GetMenuItems(arg1);
30254
30255 wxPyEndAllowThreads(__tstate);
30256 if (PyErr_Occurred()) SWIG_fail;
30257 }
30258 resultobj = result;
30259 return resultobj;
30260 fail:
30261 return NULL;
30262}
30263
30264
30265static PyObject *_wrap_Menu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) {
30266 PyObject *resultobj;
30267 wxMenu *arg1 = (wxMenu *) 0 ;
30268 wxString *arg2 = 0 ;
30269 int result;
30270 bool temp2 = False ;
30271 PyObject * obj0 = 0 ;
30272 PyObject * obj1 = 0 ;
30273 char *kwnames[] = {
30274 (char *) "self",(char *) "item", NULL
30275 };
30276
30277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) goto fail;
30278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30280 {
30281 arg2 = wxString_in_helper(obj1);
30282 if (arg2 == NULL) SWIG_fail;
30283 temp2 = True;
30284 }
30285 {
30286 PyThreadState* __tstate = wxPyBeginAllowThreads();
30287 result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2);
30288
30289 wxPyEndAllowThreads(__tstate);
30290 if (PyErr_Occurred()) SWIG_fail;
30291 }
30292 resultobj = SWIG_FromInt((int)result);
30293 {
30294 if (temp2)
30295 delete arg2;
30296 }
30297 return resultobj;
30298 fail:
30299 {
30300 if (temp2)
30301 delete arg2;
30302 }
30303 return NULL;
30304}
30305
30306
30307static PyObject *_wrap_Menu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) {
30308 PyObject *resultobj;
30309 wxMenu *arg1 = (wxMenu *) 0 ;
30310 int arg2 ;
30311 wxMenuItem *result;
30312 PyObject * obj0 = 0 ;
30313 PyObject * obj1 = 0 ;
30314 char *kwnames[] = {
30315 (char *) "self",(char *) "id", NULL
30316 };
30317
30318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemById",kwnames,&obj0,&obj1)) goto fail;
30319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30321 arg2 = (int) SWIG_AsInt(obj1);
30322 if (PyErr_Occurred()) SWIG_fail;
30323 {
30324 PyThreadState* __tstate = wxPyBeginAllowThreads();
30325 result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2);
30326
30327 wxPyEndAllowThreads(__tstate);
30328 if (PyErr_Occurred()) SWIG_fail;
30329 }
30330 {
412d302d 30331 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
30332 }
30333 return resultobj;
30334 fail:
30335 return NULL;
30336}
30337
30338
30339static PyObject *_wrap_Menu_FindItemByPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
30340 PyObject *resultobj;
30341 wxMenu *arg1 = (wxMenu *) 0 ;
30342 size_t arg2 ;
30343 wxMenuItem *result;
30344 PyObject * obj0 = 0 ;
30345 PyObject * obj1 = 0 ;
30346 char *kwnames[] = {
30347 (char *) "self",(char *) "position", NULL
30348 };
30349
30350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) goto fail;
30351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30353 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
30354 if (PyErr_Occurred()) SWIG_fail;
30355 {
30356 PyThreadState* __tstate = wxPyBeginAllowThreads();
30357 result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2);
30358
30359 wxPyEndAllowThreads(__tstate);
30360 if (PyErr_Occurred()) SWIG_fail;
30361 }
30362 {
412d302d 30363 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
30364 }
30365 return resultobj;
30366 fail:
30367 return NULL;
30368}
30369
30370
30371static PyObject *_wrap_Menu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
30372 PyObject *resultobj;
30373 wxMenu *arg1 = (wxMenu *) 0 ;
30374 int arg2 ;
30375 bool arg3 ;
30376 PyObject * obj0 = 0 ;
30377 PyObject * obj1 = 0 ;
30378 PyObject * obj2 = 0 ;
30379 char *kwnames[] = {
30380 (char *) "self",(char *) "id",(char *) "enable", NULL
30381 };
30382
30383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail;
30384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30386 arg2 = (int) SWIG_AsInt(obj1);
30387 if (PyErr_Occurred()) SWIG_fail;
30388 arg3 = (bool) SWIG_AsBool(obj2);
30389 if (PyErr_Occurred()) SWIG_fail;
30390 {
30391 PyThreadState* __tstate = wxPyBeginAllowThreads();
30392 (arg1)->Enable(arg2,arg3);
30393
30394 wxPyEndAllowThreads(__tstate);
30395 if (PyErr_Occurred()) SWIG_fail;
30396 }
30397 Py_INCREF(Py_None); resultobj = Py_None;
30398 return resultobj;
30399 fail:
30400 return NULL;
30401}
30402
30403
30404static PyObject *_wrap_Menu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
30405 PyObject *resultobj;
30406 wxMenu *arg1 = (wxMenu *) 0 ;
30407 int arg2 ;
30408 bool result;
30409 PyObject * obj0 = 0 ;
30410 PyObject * obj1 = 0 ;
30411 char *kwnames[] = {
30412 (char *) "self",(char *) "id", NULL
30413 };
30414
30415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsEnabled",kwnames,&obj0,&obj1)) goto fail;
30416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30418 arg2 = (int) SWIG_AsInt(obj1);
30419 if (PyErr_Occurred()) SWIG_fail;
30420 {
30421 PyThreadState* __tstate = wxPyBeginAllowThreads();
30422 result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2);
30423
30424 wxPyEndAllowThreads(__tstate);
30425 if (PyErr_Occurred()) SWIG_fail;
30426 }
30427 {
30428 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30429 }
30430 return resultobj;
30431 fail:
30432 return NULL;
30433}
30434
30435
30436static PyObject *_wrap_Menu_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
30437 PyObject *resultobj;
30438 wxMenu *arg1 = (wxMenu *) 0 ;
30439 int arg2 ;
30440 bool arg3 ;
30441 PyObject * obj0 = 0 ;
30442 PyObject * obj1 = 0 ;
30443 PyObject * obj2 = 0 ;
30444 char *kwnames[] = {
30445 (char *) "self",(char *) "id",(char *) "check", NULL
30446 };
30447
30448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Check",kwnames,&obj0,&obj1,&obj2)) goto fail;
30449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30451 arg2 = (int) SWIG_AsInt(obj1);
30452 if (PyErr_Occurred()) SWIG_fail;
30453 arg3 = (bool) SWIG_AsBool(obj2);
30454 if (PyErr_Occurred()) SWIG_fail;
30455 {
30456 PyThreadState* __tstate = wxPyBeginAllowThreads();
30457 (arg1)->Check(arg2,arg3);
30458
30459 wxPyEndAllowThreads(__tstate);
30460 if (PyErr_Occurred()) SWIG_fail;
30461 }
30462 Py_INCREF(Py_None); resultobj = Py_None;
30463 return resultobj;
30464 fail:
30465 return NULL;
30466}
30467
30468
30469static PyObject *_wrap_Menu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
30470 PyObject *resultobj;
30471 wxMenu *arg1 = (wxMenu *) 0 ;
30472 int arg2 ;
30473 bool result;
30474 PyObject * obj0 = 0 ;
30475 PyObject * obj1 = 0 ;
30476 char *kwnames[] = {
30477 (char *) "self",(char *) "id", NULL
30478 };
30479
30480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsChecked",kwnames,&obj0,&obj1)) goto fail;
30481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30483 arg2 = (int) SWIG_AsInt(obj1);
30484 if (PyErr_Occurred()) SWIG_fail;
30485 {
30486 PyThreadState* __tstate = wxPyBeginAllowThreads();
30487 result = (bool)((wxMenu const *)arg1)->IsChecked(arg2);
30488
30489 wxPyEndAllowThreads(__tstate);
30490 if (PyErr_Occurred()) SWIG_fail;
30491 }
30492 {
30493 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30494 }
30495 return resultobj;
30496 fail:
30497 return NULL;
30498}
30499
30500
30501static PyObject *_wrap_Menu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
30502 PyObject *resultobj;
30503 wxMenu *arg1 = (wxMenu *) 0 ;
30504 int arg2 ;
30505 wxString *arg3 = 0 ;
30506 bool temp3 = False ;
30507 PyObject * obj0 = 0 ;
30508 PyObject * obj1 = 0 ;
30509 PyObject * obj2 = 0 ;
30510 char *kwnames[] = {
30511 (char *) "self",(char *) "id",(char *) "label", NULL
30512 };
30513
30514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail;
30515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30517 arg2 = (int) SWIG_AsInt(obj1);
30518 if (PyErr_Occurred()) SWIG_fail;
30519 {
30520 arg3 = wxString_in_helper(obj2);
30521 if (arg3 == NULL) SWIG_fail;
30522 temp3 = True;
30523 }
30524 {
30525 PyThreadState* __tstate = wxPyBeginAllowThreads();
30526 (arg1)->SetLabel(arg2,(wxString const &)*arg3);
30527
30528 wxPyEndAllowThreads(__tstate);
30529 if (PyErr_Occurred()) SWIG_fail;
30530 }
30531 Py_INCREF(Py_None); resultobj = Py_None;
30532 {
30533 if (temp3)
30534 delete arg3;
30535 }
30536 return resultobj;
30537 fail:
30538 {
30539 if (temp3)
30540 delete arg3;
30541 }
30542 return NULL;
30543}
30544
30545
30546static PyObject *_wrap_Menu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
30547 PyObject *resultobj;
30548 wxMenu *arg1 = (wxMenu *) 0 ;
30549 int arg2 ;
30550 wxString result;
30551 PyObject * obj0 = 0 ;
30552 PyObject * obj1 = 0 ;
30553 char *kwnames[] = {
30554 (char *) "self",(char *) "id", NULL
30555 };
30556
30557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetLabel",kwnames,&obj0,&obj1)) goto fail;
30558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30560 arg2 = (int) SWIG_AsInt(obj1);
30561 if (PyErr_Occurred()) SWIG_fail;
30562 {
30563 PyThreadState* __tstate = wxPyBeginAllowThreads();
30564 result = ((wxMenu const *)arg1)->GetLabel(arg2);
30565
30566 wxPyEndAllowThreads(__tstate);
30567 if (PyErr_Occurred()) SWIG_fail;
30568 }
30569 {
30570#if wxUSE_UNICODE
30571 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30572#else
30573 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30574#endif
30575 }
30576 return resultobj;
30577 fail:
30578 return NULL;
30579}
30580
30581
30582static PyObject *_wrap_Menu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
30583 PyObject *resultobj;
30584 wxMenu *arg1 = (wxMenu *) 0 ;
30585 int arg2 ;
30586 wxString *arg3 = 0 ;
30587 bool temp3 = False ;
30588 PyObject * obj0 = 0 ;
30589 PyObject * obj1 = 0 ;
30590 PyObject * obj2 = 0 ;
30591 char *kwnames[] = {
30592 (char *) "self",(char *) "id",(char *) "helpString", NULL
30593 };
30594
30595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail;
30596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30598 arg2 = (int) SWIG_AsInt(obj1);
30599 if (PyErr_Occurred()) SWIG_fail;
30600 {
30601 arg3 = wxString_in_helper(obj2);
30602 if (arg3 == NULL) SWIG_fail;
30603 temp3 = True;
30604 }
30605 {
30606 PyThreadState* __tstate = wxPyBeginAllowThreads();
30607 (arg1)->SetHelpString(arg2,(wxString const &)*arg3);
30608
30609 wxPyEndAllowThreads(__tstate);
30610 if (PyErr_Occurred()) SWIG_fail;
30611 }
30612 Py_INCREF(Py_None); resultobj = Py_None;
30613 {
30614 if (temp3)
30615 delete arg3;
30616 }
30617 return resultobj;
30618 fail:
30619 {
30620 if (temp3)
30621 delete arg3;
30622 }
30623 return NULL;
30624}
30625
30626
30627static PyObject *_wrap_Menu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
30628 PyObject *resultobj;
30629 wxMenu *arg1 = (wxMenu *) 0 ;
30630 int arg2 ;
30631 wxString result;
30632 PyObject * obj0 = 0 ;
30633 PyObject * obj1 = 0 ;
30634 char *kwnames[] = {
30635 (char *) "self",(char *) "id", NULL
30636 };
30637
30638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetHelpString",kwnames,&obj0,&obj1)) goto fail;
30639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30641 arg2 = (int) SWIG_AsInt(obj1);
30642 if (PyErr_Occurred()) SWIG_fail;
30643 {
30644 PyThreadState* __tstate = wxPyBeginAllowThreads();
30645 result = ((wxMenu const *)arg1)->GetHelpString(arg2);
30646
30647 wxPyEndAllowThreads(__tstate);
30648 if (PyErr_Occurred()) SWIG_fail;
30649 }
30650 {
30651#if wxUSE_UNICODE
30652 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30653#else
30654 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30655#endif
30656 }
30657 return resultobj;
30658 fail:
30659 return NULL;
30660}
30661
30662
30663static PyObject *_wrap_Menu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
30664 PyObject *resultobj;
30665 wxMenu *arg1 = (wxMenu *) 0 ;
30666 wxString *arg2 = 0 ;
30667 bool temp2 = False ;
30668 PyObject * obj0 = 0 ;
30669 PyObject * obj1 = 0 ;
30670 char *kwnames[] = {
30671 (char *) "self",(char *) "title", NULL
30672 };
30673
30674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) goto fail;
30675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30677 {
30678 arg2 = wxString_in_helper(obj1);
30679 if (arg2 == NULL) SWIG_fail;
30680 temp2 = True;
30681 }
30682 {
30683 PyThreadState* __tstate = wxPyBeginAllowThreads();
30684 (arg1)->SetTitle((wxString const &)*arg2);
30685
30686 wxPyEndAllowThreads(__tstate);
30687 if (PyErr_Occurred()) SWIG_fail;
30688 }
30689 Py_INCREF(Py_None); resultobj = Py_None;
30690 {
30691 if (temp2)
30692 delete arg2;
30693 }
30694 return resultobj;
30695 fail:
30696 {
30697 if (temp2)
30698 delete arg2;
30699 }
30700 return NULL;
30701}
30702
30703
30704static PyObject *_wrap_Menu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
30705 PyObject *resultobj;
30706 wxMenu *arg1 = (wxMenu *) 0 ;
30707 wxString result;
30708 PyObject * obj0 = 0 ;
30709 char *kwnames[] = {
30710 (char *) "self", NULL
30711 };
30712
30713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetTitle",kwnames,&obj0)) goto fail;
30714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30716 {
30717 PyThreadState* __tstate = wxPyBeginAllowThreads();
30718 result = ((wxMenu const *)arg1)->GetTitle();
30719
30720 wxPyEndAllowThreads(__tstate);
30721 if (PyErr_Occurred()) SWIG_fail;
30722 }
30723 {
30724#if wxUSE_UNICODE
30725 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30726#else
30727 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30728#endif
30729 }
30730 return resultobj;
30731 fail:
30732 return NULL;
30733}
30734
30735
30736static PyObject *_wrap_Menu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
30737 PyObject *resultobj;
30738 wxMenu *arg1 = (wxMenu *) 0 ;
30739 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
30740 PyObject * obj0 = 0 ;
30741 PyObject * obj1 = 0 ;
30742 char *kwnames[] = {
30743 (char *) "self",(char *) "handler", NULL
30744 };
30745
30746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) goto fail;
30747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30749 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
30750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30751 {
30752 PyThreadState* __tstate = wxPyBeginAllowThreads();
30753 (arg1)->SetEventHandler(arg2);
30754
30755 wxPyEndAllowThreads(__tstate);
30756 if (PyErr_Occurred()) SWIG_fail;
30757 }
30758 Py_INCREF(Py_None); resultobj = Py_None;
30759 return resultobj;
30760 fail:
30761 return NULL;
30762}
30763
30764
30765static PyObject *_wrap_Menu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
30766 PyObject *resultobj;
30767 wxMenu *arg1 = (wxMenu *) 0 ;
30768 wxEvtHandler *result;
30769 PyObject * obj0 = 0 ;
30770 char *kwnames[] = {
30771 (char *) "self", NULL
30772 };
30773
30774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetEventHandler",kwnames,&obj0)) goto fail;
30775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30777 {
30778 PyThreadState* __tstate = wxPyBeginAllowThreads();
30779 result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler();
30780
30781 wxPyEndAllowThreads(__tstate);
30782 if (PyErr_Occurred()) SWIG_fail;
30783 }
30784 {
412d302d 30785 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
30786 }
30787 return resultobj;
30788 fail:
30789 return NULL;
30790}
30791
30792
30793static PyObject *_wrap_Menu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
30794 PyObject *resultobj;
30795 wxMenu *arg1 = (wxMenu *) 0 ;
30796 wxWindow *arg2 = (wxWindow *) 0 ;
30797 PyObject * obj0 = 0 ;
30798 PyObject * obj1 = 0 ;
30799 char *kwnames[] = {
30800 (char *) "self",(char *) "win", NULL
30801 };
30802
30803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) goto fail;
30804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30806 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30808 {
30809 PyThreadState* __tstate = wxPyBeginAllowThreads();
30810 (arg1)->SetInvokingWindow(arg2);
30811
30812 wxPyEndAllowThreads(__tstate);
30813 if (PyErr_Occurred()) SWIG_fail;
30814 }
30815 Py_INCREF(Py_None); resultobj = Py_None;
30816 return resultobj;
30817 fail:
30818 return NULL;
30819}
30820
30821
30822static PyObject *_wrap_Menu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
30823 PyObject *resultobj;
30824 wxMenu *arg1 = (wxMenu *) 0 ;
30825 wxWindow *result;
30826 PyObject * obj0 = 0 ;
30827 char *kwnames[] = {
30828 (char *) "self", NULL
30829 };
30830
30831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetInvokingWindow",kwnames,&obj0)) goto fail;
30832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30834 {
30835 PyThreadState* __tstate = wxPyBeginAllowThreads();
30836 result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow();
30837
30838 wxPyEndAllowThreads(__tstate);
30839 if (PyErr_Occurred()) SWIG_fail;
30840 }
30841 {
412d302d 30842 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
30843 }
30844 return resultobj;
30845 fail:
30846 return NULL;
30847}
30848
30849
30850static PyObject *_wrap_Menu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
30851 PyObject *resultobj;
30852 wxMenu *arg1 = (wxMenu *) 0 ;
30853 long result;
30854 PyObject * obj0 = 0 ;
30855 char *kwnames[] = {
30856 (char *) "self", NULL
30857 };
30858
30859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetStyle",kwnames,&obj0)) goto fail;
30860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30862 {
30863 PyThreadState* __tstate = wxPyBeginAllowThreads();
30864 result = (long)((wxMenu const *)arg1)->GetStyle();
30865
30866 wxPyEndAllowThreads(__tstate);
30867 if (PyErr_Occurred()) SWIG_fail;
30868 }
30869 resultobj = SWIG_FromLong((long)result);
30870 return resultobj;
30871 fail:
30872 return NULL;
30873}
30874
30875
30876static PyObject *_wrap_Menu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) {
30877 PyObject *resultobj;
30878 wxMenu *arg1 = (wxMenu *) 0 ;
30879 wxEvtHandler *arg2 = (wxEvtHandler *) NULL ;
30880 PyObject * obj0 = 0 ;
30881 PyObject * obj1 = 0 ;
30882 char *kwnames[] = {
30883 (char *) "self",(char *) "source", NULL
30884 };
30885
30886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) goto fail;
30887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30889 if (obj1) {
30890 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
30891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30892 }
30893 {
30894 PyThreadState* __tstate = wxPyBeginAllowThreads();
30895 (arg1)->UpdateUI(arg2);
30896
30897 wxPyEndAllowThreads(__tstate);
30898 if (PyErr_Occurred()) SWIG_fail;
30899 }
30900 Py_INCREF(Py_None); resultobj = Py_None;
30901 return resultobj;
30902 fail:
30903 return NULL;
30904}
30905
30906
30907static PyObject *_wrap_Menu_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) {
30908 PyObject *resultobj;
30909 wxMenu *arg1 = (wxMenu *) 0 ;
30910 wxMenuBar *result;
30911 PyObject * obj0 = 0 ;
30912 char *kwnames[] = {
30913 (char *) "self", NULL
30914 };
30915
30916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuBar",kwnames,&obj0)) goto fail;
30917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30919 {
30920 PyThreadState* __tstate = wxPyBeginAllowThreads();
30921 result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar();
30922
30923 wxPyEndAllowThreads(__tstate);
30924 if (PyErr_Occurred()) SWIG_fail;
30925 }
30926 {
412d302d 30927 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
30928 }
30929 return resultobj;
30930 fail:
30931 return NULL;
30932}
30933
30934
30935static PyObject *_wrap_Menu_Attach(PyObject *self, PyObject *args, PyObject *kwargs) {
30936 PyObject *resultobj;
30937 wxMenu *arg1 = (wxMenu *) 0 ;
30938 wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ;
30939 PyObject * obj0 = 0 ;
30940 PyObject * obj1 = 0 ;
30941 char *kwnames[] = {
30942 (char *) "self",(char *) "menubar", NULL
30943 };
30944
30945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) goto fail;
30946 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30948 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuBarBase,
30949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30950 {
30951 PyThreadState* __tstate = wxPyBeginAllowThreads();
30952 (arg1)->Attach(arg2);
30953
30954 wxPyEndAllowThreads(__tstate);
30955 if (PyErr_Occurred()) SWIG_fail;
30956 }
30957 Py_INCREF(Py_None); resultobj = Py_None;
30958 return resultobj;
30959 fail:
30960 return NULL;
30961}
30962
30963
30964static PyObject *_wrap_Menu_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
30965 PyObject *resultobj;
30966 wxMenu *arg1 = (wxMenu *) 0 ;
30967 PyObject * obj0 = 0 ;
30968 char *kwnames[] = {
30969 (char *) "self", NULL
30970 };
30971
30972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Detach",kwnames,&obj0)) goto fail;
30973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30975 {
30976 PyThreadState* __tstate = wxPyBeginAllowThreads();
30977 (arg1)->Detach();
30978
30979 wxPyEndAllowThreads(__tstate);
30980 if (PyErr_Occurred()) SWIG_fail;
30981 }
30982 Py_INCREF(Py_None); resultobj = Py_None;
30983 return resultobj;
30984 fail:
30985 return NULL;
30986}
30987
30988
30989static PyObject *_wrap_Menu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) {
30990 PyObject *resultobj;
30991 wxMenu *arg1 = (wxMenu *) 0 ;
30992 bool result;
30993 PyObject * obj0 = 0 ;
30994 char *kwnames[] = {
30995 (char *) "self", NULL
30996 };
30997
30998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_IsAttached",kwnames,&obj0)) goto fail;
30999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
31000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31001 {
31002 PyThreadState* __tstate = wxPyBeginAllowThreads();
31003 result = (bool)((wxMenu const *)arg1)->IsAttached();
31004
31005 wxPyEndAllowThreads(__tstate);
31006 if (PyErr_Occurred()) SWIG_fail;
31007 }
31008 {
31009 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31010 }
31011 return resultobj;
31012 fail:
31013 return NULL;
31014}
31015
31016
31017static PyObject *_wrap_Menu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
31018 PyObject *resultobj;
31019 wxMenu *arg1 = (wxMenu *) 0 ;
31020 wxMenu *arg2 = (wxMenu *) 0 ;
31021 PyObject * obj0 = 0 ;
31022 PyObject * obj1 = 0 ;
31023 char *kwnames[] = {
31024 (char *) "self",(char *) "parent", NULL
31025 };
31026
31027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) goto fail;
31028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
31029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31030 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
31031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31032 {
31033 PyThreadState* __tstate = wxPyBeginAllowThreads();
31034 (arg1)->SetParent(arg2);
31035
31036 wxPyEndAllowThreads(__tstate);
31037 if (PyErr_Occurred()) SWIG_fail;
31038 }
31039 Py_INCREF(Py_None); resultobj = Py_None;
31040 return resultobj;
31041 fail:
31042 return NULL;
31043}
31044
31045
31046static PyObject *_wrap_Menu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
31047 PyObject *resultobj;
31048 wxMenu *arg1 = (wxMenu *) 0 ;
31049 wxMenu *result;
31050 PyObject * obj0 = 0 ;
31051 char *kwnames[] = {
31052 (char *) "self", NULL
31053 };
31054
31055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetParent",kwnames,&obj0)) goto fail;
31056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
31057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31058 {
31059 PyThreadState* __tstate = wxPyBeginAllowThreads();
31060 result = (wxMenu *)((wxMenu const *)arg1)->GetParent();
31061
31062 wxPyEndAllowThreads(__tstate);
31063 if (PyErr_Occurred()) SWIG_fail;
31064 }
31065 {
412d302d 31066 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
31067 }
31068 return resultobj;
31069 fail:
31070 return NULL;
31071}
31072
31073
31074static PyObject * Menu_swigregister(PyObject *self, PyObject *args) {
31075 PyObject *obj;
31076 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
31077 SWIG_TypeClientData(SWIGTYPE_p_wxMenu, obj);
31078 Py_INCREF(obj);
31079 return Py_BuildValue((char *)"");
31080}
31081static PyObject *_wrap_new_MenuBar(PyObject *self, PyObject *args, PyObject *kwargs) {
31082 PyObject *resultobj;
31083 long arg1 = (long) 0 ;
31084 wxMenuBar *result;
31085 PyObject * obj0 = 0 ;
31086 char *kwnames[] = {
31087 (char *) "style", NULL
31088 };
31089
31090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MenuBar",kwnames,&obj0)) goto fail;
31091 if (obj0) {
31092 arg1 = (long) SWIG_AsLong(obj0);
31093 if (PyErr_Occurred()) SWIG_fail;
31094 }
31095 {
0439c23b 31096 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
31097 PyThreadState* __tstate = wxPyBeginAllowThreads();
31098 result = (wxMenuBar *)new wxMenuBar(arg1);
31099
31100 wxPyEndAllowThreads(__tstate);
110da5b0 31101 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
31102 }
31103 {
412d302d 31104 resultobj = wxPyMake_wxObject(result, 1);
d55e5bfc
RD
31105 }
31106 return resultobj;
31107 fail:
31108 return NULL;
31109}
31110
31111
31112static PyObject *_wrap_MenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
31113 PyObject *resultobj;
31114 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31115 wxMenu *arg2 = (wxMenu *) 0 ;
31116 wxString *arg3 = 0 ;
31117 bool result;
31118 bool temp3 = False ;
31119 PyObject * obj0 = 0 ;
31120 PyObject * obj1 = 0 ;
31121 PyObject * obj2 = 0 ;
31122 char *kwnames[] = {
31123 (char *) "self",(char *) "menu",(char *) "title", NULL
31124 };
31125
31126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) goto fail;
31127 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31129 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
31130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31131 {
31132 arg3 = wxString_in_helper(obj2);
31133 if (arg3 == NULL) SWIG_fail;
31134 temp3 = True;
31135 }
31136 {
31137 PyThreadState* __tstate = wxPyBeginAllowThreads();
31138 result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3);
31139
31140 wxPyEndAllowThreads(__tstate);
31141 if (PyErr_Occurred()) SWIG_fail;
31142 }
31143 {
31144 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31145 }
31146 {
31147 if (temp3)
31148 delete arg3;
31149 }
31150 return resultobj;
31151 fail:
31152 {
31153 if (temp3)
31154 delete arg3;
31155 }
31156 return NULL;
31157}
31158
31159
31160static PyObject *_wrap_MenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
31161 PyObject *resultobj;
31162 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31163 size_t arg2 ;
31164 wxMenu *arg3 = (wxMenu *) 0 ;
31165 wxString *arg4 = 0 ;
31166 bool result;
31167 bool temp4 = False ;
31168 PyObject * obj0 = 0 ;
31169 PyObject * obj1 = 0 ;
31170 PyObject * obj2 = 0 ;
31171 PyObject * obj3 = 0 ;
31172 char *kwnames[] = {
31173 (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL
31174 };
31175
31176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
31177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31179 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
31180 if (PyErr_Occurred()) SWIG_fail;
31181 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu,
31182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31183 {
31184 arg4 = wxString_in_helper(obj3);
31185 if (arg4 == NULL) SWIG_fail;
31186 temp4 = True;
31187 }
31188 {
31189 PyThreadState* __tstate = wxPyBeginAllowThreads();
31190 result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4);
31191
31192 wxPyEndAllowThreads(__tstate);
31193 if (PyErr_Occurred()) SWIG_fail;
31194 }
31195 {
31196 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31197 }
31198 {
31199 if (temp4)
31200 delete arg4;
31201 }
31202 return resultobj;
31203 fail:
31204 {
31205 if (temp4)
31206 delete arg4;
31207 }
31208 return NULL;
31209}
31210
31211
31212static PyObject *_wrap_MenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) {
31213 PyObject *resultobj;
31214 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31215 size_t result;
31216 PyObject * obj0 = 0 ;
31217 char *kwnames[] = {
31218 (char *) "self", NULL
31219 };
31220
31221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetMenuCount",kwnames,&obj0)) goto fail;
31222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31224 {
31225 PyThreadState* __tstate = wxPyBeginAllowThreads();
31226 result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount();
31227
31228 wxPyEndAllowThreads(__tstate);
31229 if (PyErr_Occurred()) SWIG_fail;
31230 }
31231 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
31232 return resultobj;
31233 fail:
31234 return NULL;
31235}
31236
31237
31238static PyObject *_wrap_MenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
31239 PyObject *resultobj;
31240 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31241 size_t arg2 ;
31242 wxMenu *result;
31243 PyObject * obj0 = 0 ;
31244 PyObject * obj1 = 0 ;
31245 char *kwnames[] = {
31246 (char *) "self",(char *) "pos", NULL
31247 };
31248
31249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) goto fail;
31250 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31252 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
31253 if (PyErr_Occurred()) SWIG_fail;
31254 {
31255 PyThreadState* __tstate = wxPyBeginAllowThreads();
31256 result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2);
31257
31258 wxPyEndAllowThreads(__tstate);
31259 if (PyErr_Occurred()) SWIG_fail;
31260 }
31261 {
412d302d 31262 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
31263 }
31264 return resultobj;
31265 fail:
31266 return NULL;
31267}
31268
31269
31270static PyObject *_wrap_MenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
31271 PyObject *resultobj;
31272 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31273 size_t arg2 ;
31274 wxMenu *arg3 = (wxMenu *) 0 ;
31275 wxString *arg4 = 0 ;
31276 wxMenu *result;
31277 bool temp4 = False ;
31278 PyObject * obj0 = 0 ;
31279 PyObject * obj1 = 0 ;
31280 PyObject * obj2 = 0 ;
31281 PyObject * obj3 = 0 ;
31282 char *kwnames[] = {
31283 (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL
31284 };
31285
31286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
31287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31289 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
31290 if (PyErr_Occurred()) SWIG_fail;
31291 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu,
31292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31293 {
31294 arg4 = wxString_in_helper(obj3);
31295 if (arg4 == NULL) SWIG_fail;
31296 temp4 = True;
31297 }
31298 {
31299 PyThreadState* __tstate = wxPyBeginAllowThreads();
31300 result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
31301
31302 wxPyEndAllowThreads(__tstate);
31303 if (PyErr_Occurred()) SWIG_fail;
31304 }
31305 {
412d302d 31306 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
31307 }
31308 {
31309 if (temp4)
31310 delete arg4;
31311 }
31312 return resultobj;
31313 fail:
31314 {
31315 if (temp4)
31316 delete arg4;
31317 }
31318 return NULL;
31319}
31320
31321
31322static PyObject *_wrap_MenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
31323 PyObject *resultobj;
31324 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31325 size_t arg2 ;
31326 wxMenu *result;
31327 PyObject * obj0 = 0 ;
31328 PyObject * obj1 = 0 ;
31329 char *kwnames[] = {
31330 (char *) "self",(char *) "pos", NULL
31331 };
31332
31333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) goto fail;
31334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31336 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
31337 if (PyErr_Occurred()) SWIG_fail;
31338 {
31339 PyThreadState* __tstate = wxPyBeginAllowThreads();
31340 result = (wxMenu *)(arg1)->Remove(arg2);
31341
31342 wxPyEndAllowThreads(__tstate);
31343 if (PyErr_Occurred()) SWIG_fail;
31344 }
31345 {
412d302d 31346 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
31347 }
31348 return resultobj;
31349 fail:
31350 return NULL;
31351}
31352
31353
31354static PyObject *_wrap_MenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) {
31355 PyObject *resultobj;
31356 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31357 size_t arg2 ;
31358 bool arg3 ;
31359 PyObject * obj0 = 0 ;
31360 PyObject * obj1 = 0 ;
31361 PyObject * obj2 = 0 ;
31362 char *kwnames[] = {
31363 (char *) "self",(char *) "pos",(char *) "enable", NULL
31364 };
31365
31366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) goto fail;
31367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31369 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
31370 if (PyErr_Occurred()) SWIG_fail;
31371 arg3 = (bool) SWIG_AsBool(obj2);
31372 if (PyErr_Occurred()) SWIG_fail;
31373 {
31374 PyThreadState* __tstate = wxPyBeginAllowThreads();
31375 (arg1)->EnableTop(arg2,arg3);
31376
31377 wxPyEndAllowThreads(__tstate);
31378 if (PyErr_Occurred()) SWIG_fail;
31379 }
31380 Py_INCREF(Py_None); resultobj = Py_None;
31381 return resultobj;
31382 fail:
31383 return NULL;
31384}
31385
31386
31387static PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *self, PyObject *args, PyObject *kwargs) {
31388 PyObject *resultobj;
31389 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31390 size_t arg2 ;
31391 bool result;
31392 PyObject * obj0 = 0 ;
31393 PyObject * obj1 = 0 ;
31394 char *kwnames[] = {
31395 (char *) "self",(char *) "pos", NULL
31396 };
31397
31398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) goto fail;
31399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31401 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
31402 if (PyErr_Occurred()) SWIG_fail;
31403 {
31404 PyThreadState* __tstate = wxPyBeginAllowThreads();
31405 result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2);
31406
31407 wxPyEndAllowThreads(__tstate);
31408 if (PyErr_Occurred()) SWIG_fail;
31409 }
31410 {
31411 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31412 }
31413 return resultobj;
31414 fail:
31415 return NULL;
31416}
31417
31418
31419static PyObject *_wrap_MenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) {
31420 PyObject *resultobj;
31421 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31422 size_t arg2 ;
31423 wxString *arg3 = 0 ;
31424 bool temp3 = False ;
31425 PyObject * obj0 = 0 ;
31426 PyObject * obj1 = 0 ;
31427 PyObject * obj2 = 0 ;
31428 char *kwnames[] = {
31429 (char *) "self",(char *) "pos",(char *) "label", NULL
31430 };
31431
31432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) goto fail;
31433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31435 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
31436 if (PyErr_Occurred()) SWIG_fail;
31437 {
31438 arg3 = wxString_in_helper(obj2);
31439 if (arg3 == NULL) SWIG_fail;
31440 temp3 = True;
31441 }
31442 {
31443 PyThreadState* __tstate = wxPyBeginAllowThreads();
31444 (arg1)->SetLabelTop(arg2,(wxString const &)*arg3);
31445
31446 wxPyEndAllowThreads(__tstate);
31447 if (PyErr_Occurred()) SWIG_fail;
31448 }
31449 Py_INCREF(Py_None); resultobj = Py_None;
31450 {
31451 if (temp3)
31452 delete arg3;
31453 }
31454 return resultobj;
31455 fail:
31456 {
31457 if (temp3)
31458 delete arg3;
31459 }
31460 return NULL;
31461}
31462
31463
31464static PyObject *_wrap_MenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) {
31465 PyObject *resultobj;
31466 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31467 size_t arg2 ;
31468 wxString result;
31469 PyObject * obj0 = 0 ;
31470 PyObject * obj1 = 0 ;
31471 char *kwnames[] = {
31472 (char *) "self",(char *) "pos", NULL
31473 };
31474
31475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) goto fail;
31476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31478 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
31479 if (PyErr_Occurred()) SWIG_fail;
31480 {
31481 PyThreadState* __tstate = wxPyBeginAllowThreads();
31482 result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2);
31483
31484 wxPyEndAllowThreads(__tstate);
31485 if (PyErr_Occurred()) SWIG_fail;
31486 }
31487 {
31488#if wxUSE_UNICODE
31489 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
31490#else
31491 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
31492#endif
31493 }
31494 return resultobj;
31495 fail:
31496 return NULL;
31497}
31498
31499
31500static PyObject *_wrap_MenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) {
31501 PyObject *resultobj;
31502 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31503 wxString *arg2 = 0 ;
31504 wxString *arg3 = 0 ;
31505 int result;
31506 bool temp2 = False ;
31507 bool temp3 = False ;
31508 PyObject * obj0 = 0 ;
31509 PyObject * obj1 = 0 ;
31510 PyObject * obj2 = 0 ;
31511 char *kwnames[] = {
31512 (char *) "self",(char *) "menu",(char *) "item", NULL
31513 };
31514
31515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
31516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31518 {
31519 arg2 = wxString_in_helper(obj1);
31520 if (arg2 == NULL) SWIG_fail;
31521 temp2 = True;
31522 }
31523 {
31524 arg3 = wxString_in_helper(obj2);
31525 if (arg3 == NULL) SWIG_fail;
31526 temp3 = True;
31527 }
31528 {
31529 PyThreadState* __tstate = wxPyBeginAllowThreads();
31530 result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3);
31531
31532 wxPyEndAllowThreads(__tstate);
31533 if (PyErr_Occurred()) SWIG_fail;
31534 }
31535 resultobj = SWIG_FromInt((int)result);
31536 {
31537 if (temp2)
31538 delete arg2;
31539 }
31540 {
31541 if (temp3)
31542 delete arg3;
31543 }
31544 return resultobj;
31545 fail:
31546 {
31547 if (temp2)
31548 delete arg2;
31549 }
31550 {
31551 if (temp3)
31552 delete arg3;
31553 }
31554 return NULL;
31555}
31556
31557
31558static PyObject *_wrap_MenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) {
31559 PyObject *resultobj;
31560 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31561 int arg2 ;
31562 wxMenuItem *result;
31563 PyObject * obj0 = 0 ;
31564 PyObject * obj1 = 0 ;
31565 char *kwnames[] = {
31566 (char *) "self",(char *) "id", NULL
31567 };
31568
31569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindItemById",kwnames,&obj0,&obj1)) goto fail;
31570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31572 arg2 = (int) SWIG_AsInt(obj1);
31573 if (PyErr_Occurred()) SWIG_fail;
31574 {
31575 PyThreadState* __tstate = wxPyBeginAllowThreads();
31576 result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2);
31577
31578 wxPyEndAllowThreads(__tstate);
31579 if (PyErr_Occurred()) SWIG_fail;
31580 }
31581 {
412d302d 31582 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
31583 }
31584 return resultobj;
31585 fail:
31586 return NULL;
31587}
31588
31589
31590static PyObject *_wrap_MenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
31591 PyObject *resultobj;
31592 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31593 wxString *arg2 = 0 ;
31594 int result;
31595 bool temp2 = False ;
31596 PyObject * obj0 = 0 ;
31597 PyObject * obj1 = 0 ;
31598 char *kwnames[] = {
31599 (char *) "self",(char *) "title", NULL
31600 };
31601
31602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) goto fail;
31603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31605 {
31606 arg2 = wxString_in_helper(obj1);
31607 if (arg2 == NULL) SWIG_fail;
31608 temp2 = True;
31609 }
31610 {
31611 PyThreadState* __tstate = wxPyBeginAllowThreads();
31612 result = (int)((wxMenuBar const *)arg1)->FindMenu((wxString const &)*arg2);
31613
31614 wxPyEndAllowThreads(__tstate);
31615 if (PyErr_Occurred()) SWIG_fail;
31616 }
31617 resultobj = SWIG_FromInt((int)result);
31618 {
31619 if (temp2)
31620 delete arg2;
31621 }
31622 return resultobj;
31623 fail:
31624 {
31625 if (temp2)
31626 delete arg2;
31627 }
31628 return NULL;
31629}
31630
31631
31632static PyObject *_wrap_MenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
31633 PyObject *resultobj;
31634 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31635 int arg2 ;
31636 bool arg3 ;
31637 PyObject * obj0 = 0 ;
31638 PyObject * obj1 = 0 ;
31639 PyObject * obj2 = 0 ;
31640 char *kwnames[] = {
31641 (char *) "self",(char *) "id",(char *) "enable", NULL
31642 };
31643
31644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail;
31645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31647 arg2 = (int) SWIG_AsInt(obj1);
31648 if (PyErr_Occurred()) SWIG_fail;
31649 arg3 = (bool) SWIG_AsBool(obj2);
31650 if (PyErr_Occurred()) SWIG_fail;
31651 {
31652 PyThreadState* __tstate = wxPyBeginAllowThreads();
31653 (arg1)->Enable(arg2,arg3);
31654
31655 wxPyEndAllowThreads(__tstate);
31656 if (PyErr_Occurred()) SWIG_fail;
31657 }
31658 Py_INCREF(Py_None); resultobj = Py_None;
31659 return resultobj;
31660 fail:
31661 return NULL;
31662}
31663
31664
31665static PyObject *_wrap_MenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
31666 PyObject *resultobj;
31667 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31668 int arg2 ;
31669 bool arg3 ;
31670 PyObject * obj0 = 0 ;
31671 PyObject * obj1 = 0 ;
31672 PyObject * obj2 = 0 ;
31673 char *kwnames[] = {
31674 (char *) "self",(char *) "id",(char *) "check", NULL
31675 };
31676
31677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Check",kwnames,&obj0,&obj1,&obj2)) goto fail;
31678 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31679 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31680 arg2 = (int) SWIG_AsInt(obj1);
31681 if (PyErr_Occurred()) SWIG_fail;
31682 arg3 = (bool) SWIG_AsBool(obj2);
31683 if (PyErr_Occurred()) SWIG_fail;
31684 {
31685 PyThreadState* __tstate = wxPyBeginAllowThreads();
31686 (arg1)->Check(arg2,arg3);
31687
31688 wxPyEndAllowThreads(__tstate);
31689 if (PyErr_Occurred()) SWIG_fail;
31690 }
31691 Py_INCREF(Py_None); resultobj = Py_None;
31692 return resultobj;
31693 fail:
31694 return NULL;
31695}
31696
31697
31698static PyObject *_wrap_MenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
31699 PyObject *resultobj;
31700 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31701 int arg2 ;
31702 bool result;
31703 PyObject * obj0 = 0 ;
31704 PyObject * obj1 = 0 ;
31705 char *kwnames[] = {
31706 (char *) "self",(char *) "id", NULL
31707 };
31708
31709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsChecked",kwnames,&obj0,&obj1)) goto fail;
31710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31712 arg2 = (int) SWIG_AsInt(obj1);
31713 if (PyErr_Occurred()) SWIG_fail;
31714 {
31715 PyThreadState* __tstate = wxPyBeginAllowThreads();
31716 result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2);
31717
31718 wxPyEndAllowThreads(__tstate);
31719 if (PyErr_Occurred()) SWIG_fail;
31720 }
31721 {
31722 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31723 }
31724 return resultobj;
31725 fail:
31726 return NULL;
31727}
31728
31729
31730static PyObject *_wrap_MenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
31731 PyObject *resultobj;
31732 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31733 int arg2 ;
31734 bool result;
31735 PyObject * obj0 = 0 ;
31736 PyObject * obj1 = 0 ;
31737 char *kwnames[] = {
31738 (char *) "self",(char *) "id", NULL
31739 };
31740
31741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabled",kwnames,&obj0,&obj1)) goto fail;
31742 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31743 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31744 arg2 = (int) SWIG_AsInt(obj1);
31745 if (PyErr_Occurred()) SWIG_fail;
31746 {
31747 PyThreadState* __tstate = wxPyBeginAllowThreads();
31748 result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2);
31749
31750 wxPyEndAllowThreads(__tstate);
31751 if (PyErr_Occurred()) SWIG_fail;
31752 }
31753 {
31754 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31755 }
31756 return resultobj;
31757 fail:
31758 return NULL;
31759}
31760
31761
31762static PyObject *_wrap_MenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
31763 PyObject *resultobj;
31764 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31765 int arg2 ;
31766 wxString *arg3 = 0 ;
31767 bool temp3 = False ;
31768 PyObject * obj0 = 0 ;
31769 PyObject * obj1 = 0 ;
31770 PyObject * obj2 = 0 ;
31771 char *kwnames[] = {
31772 (char *) "self",(char *) "id",(char *) "label", NULL
31773 };
31774
31775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail;
31776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31778 arg2 = (int) SWIG_AsInt(obj1);
31779 if (PyErr_Occurred()) SWIG_fail;
31780 {
31781 arg3 = wxString_in_helper(obj2);
31782 if (arg3 == NULL) SWIG_fail;
31783 temp3 = True;
31784 }
31785 {
31786 PyThreadState* __tstate = wxPyBeginAllowThreads();
31787 (arg1)->SetLabel(arg2,(wxString const &)*arg3);
31788
31789 wxPyEndAllowThreads(__tstate);
31790 if (PyErr_Occurred()) SWIG_fail;
31791 }
31792 Py_INCREF(Py_None); resultobj = Py_None;
31793 {
31794 if (temp3)
31795 delete arg3;
31796 }
31797 return resultobj;
31798 fail:
31799 {
31800 if (temp3)
31801 delete arg3;
31802 }
31803 return NULL;
31804}
31805
31806
31807static PyObject *_wrap_MenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
31808 PyObject *resultobj;
31809 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31810 int arg2 ;
31811 wxString result;
31812 PyObject * obj0 = 0 ;
31813 PyObject * obj1 = 0 ;
31814 char *kwnames[] = {
31815 (char *) "self",(char *) "id", NULL
31816 };
31817
31818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabel",kwnames,&obj0,&obj1)) goto fail;
31819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31821 arg2 = (int) SWIG_AsInt(obj1);
31822 if (PyErr_Occurred()) SWIG_fail;
31823 {
31824 PyThreadState* __tstate = wxPyBeginAllowThreads();
31825 result = ((wxMenuBar const *)arg1)->GetLabel(arg2);
31826
31827 wxPyEndAllowThreads(__tstate);
31828 if (PyErr_Occurred()) SWIG_fail;
31829 }
31830 {
31831#if wxUSE_UNICODE
31832 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
31833#else
31834 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
31835#endif
31836 }
31837 return resultobj;
31838 fail:
31839 return NULL;
31840}
31841
31842
31843static PyObject *_wrap_MenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
31844 PyObject *resultobj;
31845 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31846 int arg2 ;
31847 wxString *arg3 = 0 ;
31848 bool temp3 = False ;
31849 PyObject * obj0 = 0 ;
31850 PyObject * obj1 = 0 ;
31851 PyObject * obj2 = 0 ;
31852 char *kwnames[] = {
31853 (char *) "self",(char *) "id",(char *) "helpString", NULL
31854 };
31855
31856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail;
31857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31859 arg2 = (int) SWIG_AsInt(obj1);
31860 if (PyErr_Occurred()) SWIG_fail;
31861 {
31862 arg3 = wxString_in_helper(obj2);
31863 if (arg3 == NULL) SWIG_fail;
31864 temp3 = True;
31865 }
31866 {
31867 PyThreadState* __tstate = wxPyBeginAllowThreads();
31868 (arg1)->SetHelpString(arg2,(wxString const &)*arg3);
31869
31870 wxPyEndAllowThreads(__tstate);
31871 if (PyErr_Occurred()) SWIG_fail;
31872 }
31873 Py_INCREF(Py_None); resultobj = Py_None;
31874 {
31875 if (temp3)
31876 delete arg3;
31877 }
31878 return resultobj;
31879 fail:
31880 {
31881 if (temp3)
31882 delete arg3;
31883 }
31884 return NULL;
31885}
31886
31887
31888static PyObject *_wrap_MenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
31889 PyObject *resultobj;
31890 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31891 int arg2 ;
31892 wxString result;
31893 PyObject * obj0 = 0 ;
31894 PyObject * obj1 = 0 ;
31895 char *kwnames[] = {
31896 (char *) "self",(char *) "id", NULL
31897 };
31898
31899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetHelpString",kwnames,&obj0,&obj1)) goto fail;
31900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31902 arg2 = (int) SWIG_AsInt(obj1);
31903 if (PyErr_Occurred()) SWIG_fail;
31904 {
31905 PyThreadState* __tstate = wxPyBeginAllowThreads();
31906 result = ((wxMenuBar const *)arg1)->GetHelpString(arg2);
31907
31908 wxPyEndAllowThreads(__tstate);
31909 if (PyErr_Occurred()) SWIG_fail;
31910 }
31911 {
31912#if wxUSE_UNICODE
31913 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
31914#else
31915 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
31916#endif
31917 }
31918 return resultobj;
31919 fail:
31920 return NULL;
31921}
31922
31923
31924static PyObject *_wrap_MenuBar_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
31925 PyObject *resultobj;
31926 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31927 wxFrame *result;
31928 PyObject * obj0 = 0 ;
31929 char *kwnames[] = {
31930 (char *) "self", NULL
31931 };
31932
31933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetFrame",kwnames,&obj0)) goto fail;
31934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31936 {
31937 PyThreadState* __tstate = wxPyBeginAllowThreads();
31938 result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame();
31939
31940 wxPyEndAllowThreads(__tstate);
31941 if (PyErr_Occurred()) SWIG_fail;
31942 }
31943 {
412d302d 31944 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
31945 }
31946 return resultobj;
31947 fail:
31948 return NULL;
31949}
31950
31951
31952static PyObject *_wrap_MenuBar_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) {
31953 PyObject *resultobj;
31954 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31955 bool result;
31956 PyObject * obj0 = 0 ;
31957 char *kwnames[] = {
31958 (char *) "self", NULL
31959 };
31960
31961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_IsAttached",kwnames,&obj0)) goto fail;
31962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31964 {
31965 PyThreadState* __tstate = wxPyBeginAllowThreads();
31966 result = (bool)((wxMenuBar const *)arg1)->IsAttached();
31967
31968 wxPyEndAllowThreads(__tstate);
31969 if (PyErr_Occurred()) SWIG_fail;
31970 }
31971 {
31972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31973 }
31974 return resultobj;
31975 fail:
31976 return NULL;
31977}
31978
31979
31980static PyObject *_wrap_MenuBar_Attach(PyObject *self, PyObject *args, PyObject *kwargs) {
31981 PyObject *resultobj;
31982 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31983 wxFrame *arg2 = (wxFrame *) 0 ;
31984 PyObject * obj0 = 0 ;
31985 PyObject * obj1 = 0 ;
31986 char *kwnames[] = {
31987 (char *) "self",(char *) "frame", NULL
31988 };
31989
31990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) goto fail;
31991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31993 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame,
31994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31995 {
31996 PyThreadState* __tstate = wxPyBeginAllowThreads();
31997 (arg1)->Attach(arg2);
31998
31999 wxPyEndAllowThreads(__tstate);
32000 if (PyErr_Occurred()) SWIG_fail;
32001 }
32002 Py_INCREF(Py_None); resultobj = Py_None;
32003 return resultobj;
32004 fail:
32005 return NULL;
32006}
32007
32008
32009static PyObject *_wrap_MenuBar_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
32010 PyObject *resultobj;
32011 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
32012 PyObject * obj0 = 0 ;
32013 char *kwnames[] = {
32014 (char *) "self", NULL
32015 };
32016
32017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_Detach",kwnames,&obj0)) goto fail;
32018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
32019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32020 {
32021 PyThreadState* __tstate = wxPyBeginAllowThreads();
32022 (arg1)->Detach();
32023
32024 wxPyEndAllowThreads(__tstate);
32025 if (PyErr_Occurred()) SWIG_fail;
32026 }
32027 Py_INCREF(Py_None); resultobj = Py_None;
32028 return resultobj;
32029 fail:
32030 return NULL;
32031}
32032
32033
32034static PyObject * MenuBar_swigregister(PyObject *self, PyObject *args) {
32035 PyObject *obj;
32036 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
32037 SWIG_TypeClientData(SWIGTYPE_p_wxMenuBar, obj);
32038 Py_INCREF(obj);
32039 return Py_BuildValue((char *)"");
32040}
32041static PyObject *_wrap_new_MenuItem(PyObject *self, PyObject *args, PyObject *kwargs) {
32042 PyObject *resultobj;
32043 wxMenu *arg1 = (wxMenu *) NULL ;
32044 int arg2 = (int) wxID_ANY ;
32045 wxString const &arg3_defvalue = wxPyEmptyString ;
32046 wxString *arg3 = (wxString *) &arg3_defvalue ;
32047 wxString const &arg4_defvalue = wxPyEmptyString ;
32048 wxString *arg4 = (wxString *) &arg4_defvalue ;
32049 int arg5 = (int) wxITEM_NORMAL ;
32050 wxMenu *arg6 = (wxMenu *) NULL ;
32051 wxMenuItem *result;
32052 bool temp3 = False ;
32053 bool temp4 = False ;
32054 PyObject * obj0 = 0 ;
32055 PyObject * obj1 = 0 ;
32056 PyObject * obj2 = 0 ;
32057 PyObject * obj3 = 0 ;
32058 PyObject * obj4 = 0 ;
32059 PyObject * obj5 = 0 ;
32060 char *kwnames[] = {
32061 (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL
32062 };
32063
32064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_MenuItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
32065 if (obj0) {
32066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
32067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32068 }
32069 if (obj1) {
32070 arg2 = (int) SWIG_AsInt(obj1);
32071 if (PyErr_Occurred()) SWIG_fail;
32072 }
32073 if (obj2) {
32074 {
32075 arg3 = wxString_in_helper(obj2);
32076 if (arg3 == NULL) SWIG_fail;
32077 temp3 = True;
32078 }
32079 }
32080 if (obj3) {
32081 {
32082 arg4 = wxString_in_helper(obj3);
32083 if (arg4 == NULL) SWIG_fail;
32084 temp4 = True;
32085 }
32086 }
32087 if (obj4) {
32088 arg5 = (wxItemKind) SWIG_AsInt(obj4);
32089 if (PyErr_Occurred()) SWIG_fail;
32090 }
32091 if (obj5) {
32092 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxMenu,
32093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32094 }
32095 {
32096 PyThreadState* __tstate = wxPyBeginAllowThreads();
32097 result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5,arg6);
32098
32099 wxPyEndAllowThreads(__tstate);
32100 if (PyErr_Occurred()) SWIG_fail;
32101 }
32102 {
412d302d 32103 resultobj = wxPyMake_wxObject(result, 1);
d55e5bfc
RD
32104 }
32105 {
32106 if (temp3)
32107 delete arg3;
32108 }
32109 {
32110 if (temp4)
32111 delete arg4;
32112 }
32113 return resultobj;
32114 fail:
32115 {
32116 if (temp3)
32117 delete arg3;
32118 }
32119 {
32120 if (temp4)
32121 delete arg4;
32122 }
32123 return NULL;
32124}
32125
32126
32127static PyObject *_wrap_MenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
32128 PyObject *resultobj;
32129 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32130 wxMenu *result;
32131 PyObject * obj0 = 0 ;
32132 char *kwnames[] = {
32133 (char *) "self", NULL
32134 };
32135
32136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMenu",kwnames,&obj0)) goto fail;
32137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32139 {
32140 PyThreadState* __tstate = wxPyBeginAllowThreads();
32141 result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu();
32142
32143 wxPyEndAllowThreads(__tstate);
32144 if (PyErr_Occurred()) SWIG_fail;
32145 }
32146 {
412d302d 32147 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
32148 }
32149 return resultobj;
32150 fail:
32151 return NULL;
32152}
32153
32154
32155static PyObject *_wrap_MenuItem_SetMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
32156 PyObject *resultobj;
32157 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32158 wxMenu *arg2 = (wxMenu *) 0 ;
32159 PyObject * obj0 = 0 ;
32160 PyObject * obj1 = 0 ;
32161 char *kwnames[] = {
32162 (char *) "self",(char *) "menu", NULL
32163 };
32164
32165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) goto fail;
32166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32168 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
32169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32170 {
32171 PyThreadState* __tstate = wxPyBeginAllowThreads();
32172 (arg1)->SetMenu(arg2);
32173
32174 wxPyEndAllowThreads(__tstate);
32175 if (PyErr_Occurred()) SWIG_fail;
32176 }
32177 Py_INCREF(Py_None); resultobj = Py_None;
32178 return resultobj;
32179 fail:
32180 return NULL;
32181}
32182
32183
32184static PyObject *_wrap_MenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
32185 PyObject *resultobj;
32186 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32187 int arg2 ;
32188 PyObject * obj0 = 0 ;
32189 PyObject * obj1 = 0 ;
32190 char *kwnames[] = {
32191 (char *) "self",(char *) "id", NULL
32192 };
32193
32194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetId",kwnames,&obj0,&obj1)) goto fail;
32195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32197 arg2 = (int) SWIG_AsInt(obj1);
32198 if (PyErr_Occurred()) SWIG_fail;
32199 {
32200 PyThreadState* __tstate = wxPyBeginAllowThreads();
32201 (arg1)->SetId(arg2);
32202
32203 wxPyEndAllowThreads(__tstate);
32204 if (PyErr_Occurred()) SWIG_fail;
32205 }
32206 Py_INCREF(Py_None); resultobj = Py_None;
32207 return resultobj;
32208 fail:
32209 return NULL;
32210}
32211
32212
32213static PyObject *_wrap_MenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
32214 PyObject *resultobj;
32215 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32216 int result;
32217 PyObject * obj0 = 0 ;
32218 char *kwnames[] = {
32219 (char *) "self", NULL
32220 };
32221
32222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetId",kwnames,&obj0)) goto fail;
32223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32225 {
32226 PyThreadState* __tstate = wxPyBeginAllowThreads();
32227 result = (int)((wxMenuItem const *)arg1)->GetId();
32228
32229 wxPyEndAllowThreads(__tstate);
32230 if (PyErr_Occurred()) SWIG_fail;
32231 }
32232 resultobj = SWIG_FromInt((int)result);
32233 return resultobj;
32234 fail:
32235 return NULL;
32236}
32237
32238
32239static PyObject *_wrap_MenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
32240 PyObject *resultobj;
32241 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32242 bool result;
32243 PyObject * obj0 = 0 ;
32244 char *kwnames[] = {
32245 (char *) "self", NULL
32246 };
32247
32248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSeparator",kwnames,&obj0)) goto fail;
32249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32251 {
32252 PyThreadState* __tstate = wxPyBeginAllowThreads();
32253 result = (bool)((wxMenuItem const *)arg1)->IsSeparator();
32254
32255 wxPyEndAllowThreads(__tstate);
32256 if (PyErr_Occurred()) SWIG_fail;
32257 }
32258 {
32259 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32260 }
32261 return resultobj;
32262 fail:
32263 return NULL;
32264}
32265
32266
32267static PyObject *_wrap_MenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
32268 PyObject *resultobj;
32269 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32270 wxString *arg2 = 0 ;
32271 bool temp2 = False ;
32272 PyObject * obj0 = 0 ;
32273 PyObject * obj1 = 0 ;
32274 char *kwnames[] = {
32275 (char *) "self",(char *) "str", NULL
32276 };
32277
32278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) goto fail;
32279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32281 {
32282 arg2 = wxString_in_helper(obj1);
32283 if (arg2 == NULL) SWIG_fail;
32284 temp2 = True;
32285 }
32286 {
32287 PyThreadState* __tstate = wxPyBeginAllowThreads();
32288 (arg1)->SetText((wxString const &)*arg2);
32289
32290 wxPyEndAllowThreads(__tstate);
32291 if (PyErr_Occurred()) SWIG_fail;
32292 }
32293 Py_INCREF(Py_None); resultobj = Py_None;
32294 {
32295 if (temp2)
32296 delete arg2;
32297 }
32298 return resultobj;
32299 fail:
32300 {
32301 if (temp2)
32302 delete arg2;
32303 }
32304 return NULL;
32305}
32306
32307
32308static PyObject *_wrap_MenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
32309 PyObject *resultobj;
32310 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32311 wxString result;
32312 PyObject * obj0 = 0 ;
32313 char *kwnames[] = {
32314 (char *) "self", NULL
32315 };
32316
32317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabel",kwnames,&obj0)) goto fail;
32318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32320 {
32321 PyThreadState* __tstate = wxPyBeginAllowThreads();
32322 result = ((wxMenuItem const *)arg1)->GetLabel();
32323
32324 wxPyEndAllowThreads(__tstate);
32325 if (PyErr_Occurred()) SWIG_fail;
32326 }
32327 {
32328#if wxUSE_UNICODE
32329 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32330#else
32331 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32332#endif
32333 }
32334 return resultobj;
32335 fail:
32336 return NULL;
32337}
32338
32339
32340static PyObject *_wrap_MenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
32341 PyObject *resultobj;
32342 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32343 wxString *result;
32344 PyObject * obj0 = 0 ;
32345 char *kwnames[] = {
32346 (char *) "self", NULL
32347 };
32348
32349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetText",kwnames,&obj0)) goto fail;
32350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32352 {
32353 PyThreadState* __tstate = wxPyBeginAllowThreads();
32354 {
32355 wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText();
32356 result = (wxString *) &_result_ref;
32357 }
32358
32359 wxPyEndAllowThreads(__tstate);
32360 if (PyErr_Occurred()) SWIG_fail;
32361 }
32362 {
32363#if wxUSE_UNICODE
32364 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
32365#else
32366 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
32367#endif
32368 }
32369 return resultobj;
32370 fail:
32371 return NULL;
32372}
32373
32374
32375static PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) {
32376 PyObject *resultobj;
32377 wxString *arg1 = 0 ;
32378 wxString result;
32379 bool temp1 = False ;
32380 PyObject * obj0 = 0 ;
32381 char *kwnames[] = {
32382 (char *) "text", NULL
32383 };
32384
32385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) goto fail;
32386 {
32387 arg1 = wxString_in_helper(obj0);
32388 if (arg1 == NULL) SWIG_fail;
32389 temp1 = True;
32390 }
32391 {
32392 PyThreadState* __tstate = wxPyBeginAllowThreads();
32393 result = wxMenuItem::GetLabelFromText((wxString const &)*arg1);
32394
32395 wxPyEndAllowThreads(__tstate);
32396 if (PyErr_Occurred()) SWIG_fail;
32397 }
32398 {
32399#if wxUSE_UNICODE
32400 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32401#else
32402 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32403#endif
32404 }
32405 {
32406 if (temp1)
32407 delete arg1;
32408 }
32409 return resultobj;
32410 fail:
32411 {
32412 if (temp1)
32413 delete arg1;
32414 }
32415 return NULL;
32416}
32417
32418
32419static PyObject *_wrap_MenuItem_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) {
32420 PyObject *resultobj;
32421 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32422 int result;
32423 PyObject * obj0 = 0 ;
32424 char *kwnames[] = {
32425 (char *) "self", NULL
32426 };
32427
32428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetKind",kwnames,&obj0)) goto fail;
32429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32431 {
32432 PyThreadState* __tstate = wxPyBeginAllowThreads();
32433 result = (int)((wxMenuItem const *)arg1)->GetKind();
32434
32435 wxPyEndAllowThreads(__tstate);
32436 if (PyErr_Occurred()) SWIG_fail;
32437 }
32438 resultobj = SWIG_FromInt((int)result);
32439 return resultobj;
32440 fail:
32441 return NULL;
32442}
32443
32444
32445static PyObject *_wrap_MenuItem_SetKind(PyObject *self, PyObject *args, PyObject *kwargs) {
32446 PyObject *resultobj;
32447 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32448 int arg2 ;
32449 PyObject * obj0 = 0 ;
32450 PyObject * obj1 = 0 ;
32451 char *kwnames[] = {
32452 (char *) "self",(char *) "kind", NULL
32453 };
32454
32455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetKind",kwnames,&obj0,&obj1)) goto fail;
32456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32458 arg2 = (wxItemKind) SWIG_AsInt(obj1);
32459 if (PyErr_Occurred()) SWIG_fail;
32460 {
32461 PyThreadState* __tstate = wxPyBeginAllowThreads();
32462 (arg1)->SetKind((wxItemKind )arg2);
32463
32464 wxPyEndAllowThreads(__tstate);
32465 if (PyErr_Occurred()) SWIG_fail;
32466 }
32467 Py_INCREF(Py_None); resultobj = Py_None;
32468 return resultobj;
32469 fail:
32470 return NULL;
32471}
32472
32473
32474static PyObject *_wrap_MenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) {
32475 PyObject *resultobj;
32476 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32477 bool arg2 ;
32478 PyObject * obj0 = 0 ;
32479 PyObject * obj1 = 0 ;
32480 char *kwnames[] = {
32481 (char *) "self",(char *) "checkable", NULL
32482 };
32483
32484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) goto fail;
32485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32487 arg2 = (bool) SWIG_AsBool(obj1);
32488 if (PyErr_Occurred()) SWIG_fail;
32489 {
32490 PyThreadState* __tstate = wxPyBeginAllowThreads();
32491 (arg1)->SetCheckable(arg2);
32492
32493 wxPyEndAllowThreads(__tstate);
32494 if (PyErr_Occurred()) SWIG_fail;
32495 }
32496 Py_INCREF(Py_None); resultobj = Py_None;
32497 return resultobj;
32498 fail:
32499 return NULL;
32500}
32501
32502
32503static PyObject *_wrap_MenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) {
32504 PyObject *resultobj;
32505 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32506 bool result;
32507 PyObject * obj0 = 0 ;
32508 char *kwnames[] = {
32509 (char *) "self", NULL
32510 };
32511
32512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsCheckable",kwnames,&obj0)) goto fail;
32513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32515 {
32516 PyThreadState* __tstate = wxPyBeginAllowThreads();
32517 result = (bool)((wxMenuItem const *)arg1)->IsCheckable();
32518
32519 wxPyEndAllowThreads(__tstate);
32520 if (PyErr_Occurred()) SWIG_fail;
32521 }
32522 {
32523 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32524 }
32525 return resultobj;
32526 fail:
32527 return NULL;
32528}
32529
32530
32531static PyObject *_wrap_MenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
32532 PyObject *resultobj;
32533 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32534 bool result;
32535 PyObject * obj0 = 0 ;
32536 char *kwnames[] = {
32537 (char *) "self", NULL
32538 };
32539
32540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSubMenu",kwnames,&obj0)) goto fail;
32541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32543 {
32544 PyThreadState* __tstate = wxPyBeginAllowThreads();
32545 result = (bool)((wxMenuItem const *)arg1)->IsSubMenu();
32546
32547 wxPyEndAllowThreads(__tstate);
32548 if (PyErr_Occurred()) SWIG_fail;
32549 }
32550 {
32551 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32552 }
32553 return resultobj;
32554 fail:
32555 return NULL;
32556}
32557
32558
32559static PyObject *_wrap_MenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
32560 PyObject *resultobj;
32561 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32562 wxMenu *arg2 = (wxMenu *) 0 ;
32563 PyObject * obj0 = 0 ;
32564 PyObject * obj1 = 0 ;
32565 char *kwnames[] = {
32566 (char *) "self",(char *) "menu", NULL
32567 };
32568
32569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) goto fail;
32570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32572 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
32573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32574 {
32575 PyThreadState* __tstate = wxPyBeginAllowThreads();
32576 (arg1)->SetSubMenu(arg2);
32577
32578 wxPyEndAllowThreads(__tstate);
32579 if (PyErr_Occurred()) SWIG_fail;
32580 }
32581 Py_INCREF(Py_None); resultobj = Py_None;
32582 return resultobj;
32583 fail:
32584 return NULL;
32585}
32586
32587
32588static PyObject *_wrap_MenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
32589 PyObject *resultobj;
32590 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32591 wxMenu *result;
32592 PyObject * obj0 = 0 ;
32593 char *kwnames[] = {
32594 (char *) "self", NULL
32595 };
32596
32597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetSubMenu",kwnames,&obj0)) goto fail;
32598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32600 {
32601 PyThreadState* __tstate = wxPyBeginAllowThreads();
32602 result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu();
32603
32604 wxPyEndAllowThreads(__tstate);
32605 if (PyErr_Occurred()) SWIG_fail;
32606 }
32607 {
412d302d 32608 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
32609 }
32610 return resultobj;
32611 fail:
32612 return NULL;
32613}
32614
32615
32616static PyObject *_wrap_MenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
32617 PyObject *resultobj;
32618 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32619 bool arg2 = (bool) True ;
32620 PyObject * obj0 = 0 ;
32621 PyObject * obj1 = 0 ;
32622 char *kwnames[] = {
32623 (char *) "self",(char *) "enable", NULL
32624 };
32625
32626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) goto fail;
32627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32629 if (obj1) {
32630 arg2 = (bool) SWIG_AsBool(obj1);
32631 if (PyErr_Occurred()) SWIG_fail;
32632 }
32633 {
32634 PyThreadState* __tstate = wxPyBeginAllowThreads();
32635 (arg1)->Enable(arg2);
32636
32637 wxPyEndAllowThreads(__tstate);
32638 if (PyErr_Occurred()) SWIG_fail;
32639 }
32640 Py_INCREF(Py_None); resultobj = Py_None;
32641 return resultobj;
32642 fail:
32643 return NULL;
32644}
32645
32646
32647static PyObject *_wrap_MenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
32648 PyObject *resultobj;
32649 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32650 bool result;
32651 PyObject * obj0 = 0 ;
32652 char *kwnames[] = {
32653 (char *) "self", NULL
32654 };
32655
32656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsEnabled",kwnames,&obj0)) goto fail;
32657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32659 {
32660 PyThreadState* __tstate = wxPyBeginAllowThreads();
32661 result = (bool)((wxMenuItem const *)arg1)->IsEnabled();
32662
32663 wxPyEndAllowThreads(__tstate);
32664 if (PyErr_Occurred()) SWIG_fail;
32665 }
32666 {
32667 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32668 }
32669 return resultobj;
32670 fail:
32671 return NULL;
32672}
32673
32674
32675static PyObject *_wrap_MenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
32676 PyObject *resultobj;
32677 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32678 bool arg2 = (bool) True ;
32679 PyObject * obj0 = 0 ;
32680 PyObject * obj1 = 0 ;
32681 char *kwnames[] = {
32682 (char *) "self",(char *) "check", NULL
32683 };
32684
32685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) goto fail;
32686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32688 if (obj1) {
32689 arg2 = (bool) SWIG_AsBool(obj1);
32690 if (PyErr_Occurred()) SWIG_fail;
32691 }
32692 {
32693 PyThreadState* __tstate = wxPyBeginAllowThreads();
32694 (arg1)->Check(arg2);
32695
32696 wxPyEndAllowThreads(__tstate);
32697 if (PyErr_Occurred()) SWIG_fail;
32698 }
32699 Py_INCREF(Py_None); resultobj = Py_None;
32700 return resultobj;
32701 fail:
32702 return NULL;
32703}
32704
32705
32706static PyObject *_wrap_MenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
32707 PyObject *resultobj;
32708 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32709 bool result;
32710 PyObject * obj0 = 0 ;
32711 char *kwnames[] = {
32712 (char *) "self", NULL
32713 };
32714
32715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsChecked",kwnames,&obj0)) goto fail;
32716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32717 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32718 {
32719 PyThreadState* __tstate = wxPyBeginAllowThreads();
32720 result = (bool)((wxMenuItem const *)arg1)->IsChecked();
32721
32722 wxPyEndAllowThreads(__tstate);
32723 if (PyErr_Occurred()) SWIG_fail;
32724 }
32725 {
32726 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32727 }
32728 return resultobj;
32729 fail:
32730 return NULL;
32731}
32732
32733
32734static PyObject *_wrap_MenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
32735 PyObject *resultobj;
32736 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32737 PyObject * obj0 = 0 ;
32738 char *kwnames[] = {
32739 (char *) "self", NULL
32740 };
32741
32742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_Toggle",kwnames,&obj0)) goto fail;
32743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32745 {
32746 PyThreadState* __tstate = wxPyBeginAllowThreads();
32747 (arg1)->Toggle();
32748
32749 wxPyEndAllowThreads(__tstate);
32750 if (PyErr_Occurred()) SWIG_fail;
32751 }
32752 Py_INCREF(Py_None); resultobj = Py_None;
32753 return resultobj;
32754 fail:
32755 return NULL;
32756}
32757
32758
32759static PyObject *_wrap_MenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
32760 PyObject *resultobj;
32761 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32762 wxString *arg2 = 0 ;
32763 bool temp2 = False ;
32764 PyObject * obj0 = 0 ;
32765 PyObject * obj1 = 0 ;
32766 char *kwnames[] = {
32767 (char *) "self",(char *) "str", NULL
32768 };
32769
32770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) goto fail;
32771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32773 {
32774 arg2 = wxString_in_helper(obj1);
32775 if (arg2 == NULL) SWIG_fail;
32776 temp2 = True;
32777 }
32778 {
32779 PyThreadState* __tstate = wxPyBeginAllowThreads();
32780 (arg1)->SetHelp((wxString const &)*arg2);
32781
32782 wxPyEndAllowThreads(__tstate);
32783 if (PyErr_Occurred()) SWIG_fail;
32784 }
32785 Py_INCREF(Py_None); resultobj = Py_None;
32786 {
32787 if (temp2)
32788 delete arg2;
32789 }
32790 return resultobj;
32791 fail:
32792 {
32793 if (temp2)
32794 delete arg2;
32795 }
32796 return NULL;
32797}
32798
32799
32800static PyObject *_wrap_MenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
32801 PyObject *resultobj;
32802 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32803 wxString *result;
32804 PyObject * obj0 = 0 ;
32805 char *kwnames[] = {
32806 (char *) "self", NULL
32807 };
32808
32809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetHelp",kwnames,&obj0)) goto fail;
32810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32812 {
32813 PyThreadState* __tstate = wxPyBeginAllowThreads();
32814 {
32815 wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp();
32816 result = (wxString *) &_result_ref;
32817 }
32818
32819 wxPyEndAllowThreads(__tstate);
32820 if (PyErr_Occurred()) SWIG_fail;
32821 }
32822 {
32823#if wxUSE_UNICODE
32824 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
32825#else
32826 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
32827#endif
32828 }
32829 return resultobj;
32830 fail:
32831 return NULL;
32832}
32833
32834
32835static PyObject *_wrap_MenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) {
32836 PyObject *resultobj;
32837 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32838 wxAcceleratorEntry *result;
32839 PyObject * obj0 = 0 ;
32840 char *kwnames[] = {
32841 (char *) "self", NULL
32842 };
32843
32844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetAccel",kwnames,&obj0)) goto fail;
32845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32847 {
32848 PyThreadState* __tstate = wxPyBeginAllowThreads();
32849 result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel();
32850
32851 wxPyEndAllowThreads(__tstate);
32852 if (PyErr_Occurred()) SWIG_fail;
32853 }
32854 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0);
32855 return resultobj;
32856 fail:
32857 return NULL;
32858}
32859
32860
32861static PyObject *_wrap_MenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) {
32862 PyObject *resultobj;
32863 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32864 wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ;
32865 PyObject * obj0 = 0 ;
32866 PyObject * obj1 = 0 ;
32867 char *kwnames[] = {
32868 (char *) "self",(char *) "accel", NULL
32869 };
32870
32871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) goto fail;
32872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32874 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorEntry,
32875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32876 {
32877 PyThreadState* __tstate = wxPyBeginAllowThreads();
32878 (arg1)->SetAccel(arg2);
32879
32880 wxPyEndAllowThreads(__tstate);
32881 if (PyErr_Occurred()) SWIG_fail;
32882 }
32883 Py_INCREF(Py_None); resultobj = Py_None;
32884 return resultobj;
32885 fail:
32886 return NULL;
32887}
32888
32889
32890static PyObject *_wrap_MenuItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
32891 PyObject *resultobj;
32892 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32893 wxFont *arg2 = 0 ;
32894 PyObject * obj0 = 0 ;
32895 PyObject * obj1 = 0 ;
32896 char *kwnames[] = {
32897 (char *) "self",(char *) "font", NULL
32898 };
32899
32900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetFont",kwnames,&obj0,&obj1)) goto fail;
32901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32903 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
32904 SWIG_POINTER_EXCEPTION | 0)) == -1)
32905 SWIG_fail;
32906 if (arg2 == NULL) {
32907 PyErr_SetString(PyExc_TypeError,"null reference");
32908 SWIG_fail;
32909 }
32910 {
32911 PyThreadState* __tstate = wxPyBeginAllowThreads();
32912 (arg1)->SetFont((wxFont const &)*arg2);
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_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
32925 PyObject *resultobj;
32926 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32927 wxFont result;
32928 PyObject * obj0 = 0 ;
32929 char *kwnames[] = {
32930 (char *) "self", NULL
32931 };
32932
32933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetFont",kwnames,&obj0)) goto fail;
32934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32936 {
32937 PyThreadState* __tstate = wxPyBeginAllowThreads();
32938 result = (arg1)->GetFont();
32939
32940 wxPyEndAllowThreads(__tstate);
32941 if (PyErr_Occurred()) SWIG_fail;
32942 }
32943 {
32944 wxFont * resultptr;
32945 resultptr = new wxFont((wxFont &) result);
32946 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
32947 }
32948 return resultobj;
32949 fail:
32950 return NULL;
32951}
32952
32953
32954static PyObject *_wrap_MenuItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
32955 PyObject *resultobj;
32956 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32957 wxColour *arg2 = 0 ;
32958 wxColour temp2 ;
32959 PyObject * obj0 = 0 ;
32960 PyObject * obj1 = 0 ;
32961 char *kwnames[] = {
32962 (char *) "self",(char *) "colText", NULL
32963 };
32964
32965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
32966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32968 {
32969 arg2 = &temp2;
32970 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32971 }
32972 {
32973 PyThreadState* __tstate = wxPyBeginAllowThreads();
32974 (arg1)->SetTextColour((wxColour const &)*arg2);
32975
32976 wxPyEndAllowThreads(__tstate);
32977 if (PyErr_Occurred()) SWIG_fail;
32978 }
32979 Py_INCREF(Py_None); resultobj = Py_None;
32980 return resultobj;
32981 fail:
32982 return NULL;
32983}
32984
32985
32986static PyObject *_wrap_MenuItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
32987 PyObject *resultobj;
32988 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32989 wxColour result;
32990 PyObject * obj0 = 0 ;
32991 char *kwnames[] = {
32992 (char *) "self", NULL
32993 };
32994
32995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetTextColour",kwnames,&obj0)) goto fail;
32996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32998 {
32999 PyThreadState* __tstate = wxPyBeginAllowThreads();
33000 result = (arg1)->GetTextColour();
33001
33002 wxPyEndAllowThreads(__tstate);
33003 if (PyErr_Occurred()) SWIG_fail;
33004 }
33005 {
33006 wxColour * resultptr;
33007 resultptr = new wxColour((wxColour &) result);
33008 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
33009 }
33010 return resultobj;
33011 fail:
33012 return NULL;
33013}
33014
33015
33016static PyObject *_wrap_MenuItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
33017 PyObject *resultobj;
33018 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33019 wxColour *arg2 = 0 ;
33020 wxColour temp2 ;
33021 PyObject * obj0 = 0 ;
33022 PyObject * obj1 = 0 ;
33023 char *kwnames[] = {
33024 (char *) "self",(char *) "colBack", NULL
33025 };
33026
33027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
33028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33030 {
33031 arg2 = &temp2;
33032 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
33033 }
33034 {
33035 PyThreadState* __tstate = wxPyBeginAllowThreads();
33036 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
33037
33038 wxPyEndAllowThreads(__tstate);
33039 if (PyErr_Occurred()) SWIG_fail;
33040 }
33041 Py_INCREF(Py_None); resultobj = Py_None;
33042 return resultobj;
33043 fail:
33044 return NULL;
33045}
33046
33047
33048static PyObject *_wrap_MenuItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
33049 PyObject *resultobj;
33050 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33051 wxColour result;
33052 PyObject * obj0 = 0 ;
33053 char *kwnames[] = {
33054 (char *) "self", NULL
33055 };
33056
33057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBackgroundColour",kwnames,&obj0)) goto fail;
33058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33060 {
33061 PyThreadState* __tstate = wxPyBeginAllowThreads();
33062 result = (arg1)->GetBackgroundColour();
33063
33064 wxPyEndAllowThreads(__tstate);
33065 if (PyErr_Occurred()) SWIG_fail;
33066 }
33067 {
33068 wxColour * resultptr;
33069 resultptr = new wxColour((wxColour &) result);
33070 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
33071 }
33072 return resultobj;
33073 fail:
33074 return NULL;
33075}
33076
33077
33078static PyObject *_wrap_MenuItem_SetBitmaps(PyObject *self, PyObject *args, PyObject *kwargs) {
33079 PyObject *resultobj;
33080 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33081 wxBitmap *arg2 = 0 ;
33082 wxBitmap const &arg3_defvalue = wxNullBitmap ;
33083 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
33084 PyObject * obj0 = 0 ;
33085 PyObject * obj1 = 0 ;
33086 PyObject * obj2 = 0 ;
33087 char *kwnames[] = {
33088 (char *) "self",(char *) "bmpChecked",(char *) "bmpUnchecked", NULL
33089 };
33090
33091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MenuItem_SetBitmaps",kwnames,&obj0,&obj1,&obj2)) goto fail;
33092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33094 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
33095 SWIG_POINTER_EXCEPTION | 0)) == -1)
33096 SWIG_fail;
33097 if (arg2 == NULL) {
33098 PyErr_SetString(PyExc_TypeError,"null reference");
33099 SWIG_fail;
33100 }
33101 if (obj2) {
33102 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
33103 SWIG_POINTER_EXCEPTION | 0)) == -1)
33104 SWIG_fail;
33105 if (arg3 == NULL) {
33106 PyErr_SetString(PyExc_TypeError,"null reference");
33107 SWIG_fail;
33108 }
33109 }
33110 {
33111 PyThreadState* __tstate = wxPyBeginAllowThreads();
33112 (arg1)->SetBitmaps((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
33113
33114 wxPyEndAllowThreads(__tstate);
33115 if (PyErr_Occurred()) SWIG_fail;
33116 }
33117 Py_INCREF(Py_None); resultobj = Py_None;
33118 return resultobj;
33119 fail:
33120 return NULL;
33121}
33122
33123
33124static PyObject *_wrap_MenuItem_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
33125 PyObject *resultobj;
33126 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33127 wxBitmap *arg2 = 0 ;
33128 PyObject * obj0 = 0 ;
33129 PyObject * obj1 = 0 ;
33130 char *kwnames[] = {
33131 (char *) "self",(char *) "bmpDisabled", NULL
33132 };
33133
33134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail;
33135 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33137 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
33138 SWIG_POINTER_EXCEPTION | 0)) == -1)
33139 SWIG_fail;
33140 if (arg2 == NULL) {
33141 PyErr_SetString(PyExc_TypeError,"null reference");
33142 SWIG_fail;
33143 }
33144 {
33145 PyThreadState* __tstate = wxPyBeginAllowThreads();
33146 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
33147
33148 wxPyEndAllowThreads(__tstate);
33149 if (PyErr_Occurred()) SWIG_fail;
33150 }
33151 Py_INCREF(Py_None); resultobj = Py_None;
33152 return resultobj;
33153 fail:
33154 return NULL;
33155}
33156
33157
33158static PyObject *_wrap_MenuItem_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
33159 PyObject *resultobj;
33160 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33161 wxBitmap *result;
33162 PyObject * obj0 = 0 ;
33163 char *kwnames[] = {
33164 (char *) "self", NULL
33165 };
33166
33167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetDisabledBitmap",kwnames,&obj0)) goto fail;
33168 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33170 {
33171 PyThreadState* __tstate = wxPyBeginAllowThreads();
33172 {
33173 wxBitmap const &_result_ref = ((wxMenuItem const *)arg1)->GetDisabledBitmap();
33174 result = (wxBitmap *) &_result_ref;
33175 }
33176
33177 wxPyEndAllowThreads(__tstate);
33178 if (PyErr_Occurred()) SWIG_fail;
33179 }
33180 {
33181 wxBitmap* resultptr = new wxBitmap(*result);
33182 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
33183 }
33184 return resultobj;
33185 fail:
33186 return NULL;
33187}
33188
33189
33190static PyObject *_wrap_MenuItem_SetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
33191 PyObject *resultobj;
33192 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33193 int arg2 ;
33194 PyObject * obj0 = 0 ;
33195 PyObject * obj1 = 0 ;
33196 char *kwnames[] = {
33197 (char *) "self",(char *) "nWidth", NULL
33198 };
33199
33200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMarginWidth",kwnames,&obj0,&obj1)) goto fail;
33201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33203 arg2 = (int) SWIG_AsInt(obj1);
33204 if (PyErr_Occurred()) SWIG_fail;
33205 {
33206 PyThreadState* __tstate = wxPyBeginAllowThreads();
33207 (arg1)->SetMarginWidth(arg2);
33208
33209 wxPyEndAllowThreads(__tstate);
33210 if (PyErr_Occurred()) SWIG_fail;
33211 }
33212 Py_INCREF(Py_None); resultobj = Py_None;
33213 return resultobj;
33214 fail:
33215 return NULL;
33216}
33217
33218
33219static PyObject *_wrap_MenuItem_GetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
33220 PyObject *resultobj;
33221 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33222 int result;
33223 PyObject * obj0 = 0 ;
33224 char *kwnames[] = {
33225 (char *) "self", NULL
33226 };
33227
33228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMarginWidth",kwnames,&obj0)) goto fail;
33229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33231 {
33232 PyThreadState* __tstate = wxPyBeginAllowThreads();
33233 result = (int)(arg1)->GetMarginWidth();
33234
33235 wxPyEndAllowThreads(__tstate);
33236 if (PyErr_Occurred()) SWIG_fail;
33237 }
33238 resultobj = SWIG_FromInt((int)result);
33239 return resultobj;
33240 fail:
33241 return NULL;
33242}
33243
33244
33245static PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
33246 PyObject *resultobj;
33247 int result;
33248 char *kwnames[] = {
33249 NULL
33250 };
33251
33252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MenuItem_GetDefaultMarginWidth",kwnames)) goto fail;
33253 {
33254 PyThreadState* __tstate = wxPyBeginAllowThreads();
33255 result = (int)wxMenuItem::GetDefaultMarginWidth();
33256
33257 wxPyEndAllowThreads(__tstate);
33258 if (PyErr_Occurred()) SWIG_fail;
33259 }
33260 resultobj = SWIG_FromInt((int)result);
33261 return resultobj;
33262 fail:
33263 return NULL;
33264}
33265
33266
33267static PyObject *_wrap_MenuItem_IsOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) {
33268 PyObject *resultobj;
33269 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33270 bool result;
33271 PyObject * obj0 = 0 ;
33272 char *kwnames[] = {
33273 (char *) "self", NULL
33274 };
33275
33276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsOwnerDrawn",kwnames,&obj0)) goto fail;
33277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33279 {
33280 PyThreadState* __tstate = wxPyBeginAllowThreads();
33281 result = (bool)(arg1)->IsOwnerDrawn();
33282
33283 wxPyEndAllowThreads(__tstate);
33284 if (PyErr_Occurred()) SWIG_fail;
33285 }
33286 {
33287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33288 }
33289 return resultobj;
33290 fail:
33291 return NULL;
33292}
33293
33294
33295static PyObject *_wrap_MenuItem_SetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) {
33296 PyObject *resultobj;
33297 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33298 bool arg2 = (bool) True ;
33299 PyObject * obj0 = 0 ;
33300 PyObject * obj1 = 0 ;
33301 char *kwnames[] = {
33302 (char *) "self",(char *) "ownerDrawn", NULL
33303 };
33304
33305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_SetOwnerDrawn",kwnames,&obj0,&obj1)) goto fail;
33306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33308 if (obj1) {
33309 arg2 = (bool) SWIG_AsBool(obj1);
33310 if (PyErr_Occurred()) SWIG_fail;
33311 }
33312 {
33313 PyThreadState* __tstate = wxPyBeginAllowThreads();
33314 (arg1)->SetOwnerDrawn(arg2);
33315
33316 wxPyEndAllowThreads(__tstate);
33317 if (PyErr_Occurred()) SWIG_fail;
33318 }
33319 Py_INCREF(Py_None); resultobj = Py_None;
33320 return resultobj;
33321 fail:
33322 return NULL;
33323}
33324
33325
33326static PyObject *_wrap_MenuItem_ResetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) {
33327 PyObject *resultobj;
33328 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33329 PyObject * obj0 = 0 ;
33330 char *kwnames[] = {
33331 (char *) "self", NULL
33332 };
33333
33334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_ResetOwnerDrawn",kwnames,&obj0)) goto fail;
33335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33337 {
33338 PyThreadState* __tstate = wxPyBeginAllowThreads();
33339 (arg1)->ResetOwnerDrawn();
33340
33341 wxPyEndAllowThreads(__tstate);
33342 if (PyErr_Occurred()) SWIG_fail;
33343 }
33344 Py_INCREF(Py_None); resultobj = Py_None;
33345 return resultobj;
33346 fail:
33347 return NULL;
33348}
33349
33350
33351static PyObject *_wrap_MenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
33352 PyObject *resultobj;
33353 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33354 wxBitmap *arg2 = 0 ;
33355 PyObject * obj0 = 0 ;
33356 PyObject * obj1 = 0 ;
33357 char *kwnames[] = {
33358 (char *) "self",(char *) "bitmap", NULL
33359 };
33360
33361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
33362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33364 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
33365 SWIG_POINTER_EXCEPTION | 0)) == -1)
33366 SWIG_fail;
33367 if (arg2 == NULL) {
33368 PyErr_SetString(PyExc_TypeError,"null reference");
33369 SWIG_fail;
33370 }
33371 {
33372 PyThreadState* __tstate = wxPyBeginAllowThreads();
33373 (arg1)->SetBitmap((wxBitmap const &)*arg2);
33374
33375 wxPyEndAllowThreads(__tstate);
33376 if (PyErr_Occurred()) SWIG_fail;
33377 }
33378 Py_INCREF(Py_None); resultobj = Py_None;
33379 return resultobj;
33380 fail:
33381 return NULL;
33382}
33383
33384
33385static PyObject *_wrap_MenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
33386 PyObject *resultobj;
33387 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33388 wxBitmap *result;
33389 PyObject * obj0 = 0 ;
33390 char *kwnames[] = {
33391 (char *) "self", NULL
33392 };
33393
33394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBitmap",kwnames,&obj0)) goto fail;
33395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33397 {
33398 PyThreadState* __tstate = wxPyBeginAllowThreads();
33399 {
33400 wxBitmap const &_result_ref = (arg1)->GetBitmap();
33401 result = (wxBitmap *) &_result_ref;
33402 }
33403
33404 wxPyEndAllowThreads(__tstate);
33405 if (PyErr_Occurred()) SWIG_fail;
33406 }
33407 {
33408 wxBitmap* resultptr = new wxBitmap(*result);
33409 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
33410 }
33411 return resultobj;
33412 fail:
33413 return NULL;
33414}
33415
33416
33417static PyObject * MenuItem_swigregister(PyObject *self, PyObject *args) {
33418 PyObject *obj;
33419 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
33420 SWIG_TypeClientData(SWIGTYPE_p_wxMenuItem, obj);
33421 Py_INCREF(obj);
33422 return Py_BuildValue((char *)"");
33423}
33424static int _wrap_ControlNameStr_set(PyObject *_val) {
33425 PyErr_SetString(PyExc_TypeError,"Variable ControlNameStr is read-only.");
33426 return 1;
33427}
33428
33429
33430static PyObject *_wrap_ControlNameStr_get() {
33431 PyObject *pyobj;
33432
33433 {
33434#if wxUSE_UNICODE
33435 pyobj = PyUnicode_FromWideChar((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len());
33436#else
33437 pyobj = PyString_FromStringAndSize((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len());
33438#endif
33439 }
33440 return pyobj;
33441}
33442
33443
33444static PyObject *_wrap_new_Control(PyObject *self, PyObject *args, PyObject *kwargs) {
33445 PyObject *resultobj;
33446 wxWindow *arg1 = (wxWindow *) 0 ;
248ed943 33447 int arg2 = (int) -1 ;
d55e5bfc
RD
33448 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33449 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33450 wxSize const &arg4_defvalue = wxDefaultSize ;
33451 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33452 long arg5 = (long) 0 ;
33453 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33454 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33455 wxString const &arg7_defvalue = wxPyControlNameStr ;
33456 wxString *arg7 = (wxString *) &arg7_defvalue ;
33457 wxControl *result;
33458 wxPoint temp3 ;
33459 wxSize temp4 ;
33460 bool temp7 = False ;
33461 PyObject * obj0 = 0 ;
33462 PyObject * obj1 = 0 ;
33463 PyObject * obj2 = 0 ;
33464 PyObject * obj3 = 0 ;
33465 PyObject * obj4 = 0 ;
33466 PyObject * obj5 = 0 ;
33467 PyObject * obj6 = 0 ;
33468 char *kwnames[] = {
33469 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33470 };
33471
248ed943 33472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Control",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
d55e5bfc
RD
33473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
33474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
248ed943
RD
33475 if (obj1) {
33476 arg2 = (int) SWIG_AsInt(obj1);
33477 if (PyErr_Occurred()) SWIG_fail;
33478 }
d55e5bfc
RD
33479 if (obj2) {
33480 {
33481 arg3 = &temp3;
33482 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33483 }
33484 }
33485 if (obj3) {
33486 {
33487 arg4 = &temp4;
33488 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
33489 }
33490 }
33491 if (obj4) {
33492 arg5 = (long) SWIG_AsLong(obj4);
33493 if (PyErr_Occurred()) SWIG_fail;
33494 }
33495 if (obj5) {
33496 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
33497 SWIG_POINTER_EXCEPTION | 0)) == -1)
33498 SWIG_fail;
33499 if (arg6 == NULL) {
33500 PyErr_SetString(PyExc_TypeError,"null reference");
33501 SWIG_fail;
33502 }
33503 }
33504 if (obj6) {
33505 {
33506 arg7 = wxString_in_helper(obj6);
33507 if (arg7 == NULL) SWIG_fail;
33508 temp7 = True;
33509 }
33510 }
33511 {
0439c23b 33512 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
33513 PyThreadState* __tstate = wxPyBeginAllowThreads();
33514 result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33515
33516 wxPyEndAllowThreads(__tstate);
110da5b0 33517 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
33518 }
33519 {
412d302d 33520 resultobj = wxPyMake_wxObject(result, 1);
d55e5bfc
RD
33521 }
33522 {
33523 if (temp7)
33524 delete arg7;
33525 }
33526 return resultobj;
33527 fail:
33528 {
33529 if (temp7)
33530 delete arg7;
33531 }
33532 return NULL;
33533}
33534
33535
33536static PyObject *_wrap_new_PreControl(PyObject *self, PyObject *args, PyObject *kwargs) {
33537 PyObject *resultobj;
33538 wxControl *result;
33539 char *kwnames[] = {
33540 NULL
33541 };
33542
33543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreControl",kwnames)) goto fail;
33544 {
0439c23b 33545 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
33546 PyThreadState* __tstate = wxPyBeginAllowThreads();
33547 result = (wxControl *)new wxControl();
33548
33549 wxPyEndAllowThreads(__tstate);
110da5b0 33550 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
33551 }
33552 {
412d302d 33553 resultobj = wxPyMake_wxObject(result, 1);
d55e5bfc
RD
33554 }
33555 return resultobj;
33556 fail:
33557 return NULL;
33558}
33559
33560
33561static PyObject *_wrap_Control_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
33562 PyObject *resultobj;
33563 wxControl *arg1 = (wxControl *) 0 ;
33564 wxWindow *arg2 = (wxWindow *) 0 ;
248ed943 33565 int arg3 = (int) -1 ;
d55e5bfc
RD
33566 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33567 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33568 wxSize const &arg5_defvalue = wxDefaultSize ;
33569 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33570 long arg6 = (long) 0 ;
33571 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33572 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33573 wxString const &arg8_defvalue = wxPyControlNameStr ;
33574 wxString *arg8 = (wxString *) &arg8_defvalue ;
33575 bool result;
33576 wxPoint temp4 ;
33577 wxSize temp5 ;
33578 bool temp8 = False ;
33579 PyObject * obj0 = 0 ;
33580 PyObject * obj1 = 0 ;
33581 PyObject * obj2 = 0 ;
33582 PyObject * obj3 = 0 ;
33583 PyObject * obj4 = 0 ;
33584 PyObject * obj5 = 0 ;
33585 PyObject * obj6 = 0 ;
33586 PyObject * obj7 = 0 ;
33587 char *kwnames[] = {
33588 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33589 };
33590
248ed943 33591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Control_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
d55e5bfc
RD
33592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl,
33593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33594 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
33595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
248ed943
RD
33596 if (obj2) {
33597 arg3 = (int) SWIG_AsInt(obj2);
33598 if (PyErr_Occurred()) SWIG_fail;
33599 }
d55e5bfc
RD
33600 if (obj3) {
33601 {
33602 arg4 = &temp4;
33603 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
33604 }
33605 }
33606 if (obj4) {
33607 {
33608 arg5 = &temp5;
33609 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
33610 }
33611 }
33612 if (obj5) {
33613 arg6 = (long) SWIG_AsLong(obj5);
33614 if (PyErr_Occurred()) SWIG_fail;
33615 }
33616 if (obj6) {
33617 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
33618 SWIG_POINTER_EXCEPTION | 0)) == -1)
33619 SWIG_fail;
33620 if (arg7 == NULL) {
33621 PyErr_SetString(PyExc_TypeError,"null reference");
33622 SWIG_fail;
33623 }
33624 }
33625 if (obj7) {
33626 {
33627 arg8 = wxString_in_helper(obj7);
33628 if (arg8 == NULL) SWIG_fail;
33629 temp8 = True;
33630 }
33631 }
33632 {
33633 PyThreadState* __tstate = wxPyBeginAllowThreads();
33634 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
33635
33636 wxPyEndAllowThreads(__tstate);
33637 if (PyErr_Occurred()) SWIG_fail;
33638 }
33639 {
33640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33641 }
33642 {
33643 if (temp8)
33644 delete arg8;
33645 }
33646 return resultobj;
33647 fail:
33648 {
33649 if (temp8)
33650 delete arg8;
33651 }
33652 return NULL;
33653}
33654
33655
33656static PyObject *_wrap_Control_Command(PyObject *self, PyObject *args, PyObject *kwargs) {
33657 PyObject *resultobj;
33658 wxControl *arg1 = (wxControl *) 0 ;
33659 wxCommandEvent *arg2 = 0 ;
33660 PyObject * obj0 = 0 ;
33661 PyObject * obj1 = 0 ;
33662 char *kwnames[] = {
33663 (char *) "self",(char *) "event", NULL
33664 };
33665
33666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) goto fail;
33667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl,
33668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33669 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCommandEvent,
33670 SWIG_POINTER_EXCEPTION | 0)) == -1)
33671 SWIG_fail;
33672 if (arg2 == NULL) {
33673 PyErr_SetString(PyExc_TypeError,"null reference");
33674 SWIG_fail;
33675 }
33676 {
33677 PyThreadState* __tstate = wxPyBeginAllowThreads();
33678 (arg1)->Command(*arg2);
33679
33680 wxPyEndAllowThreads(__tstate);
33681 if (PyErr_Occurred()) SWIG_fail;
33682 }
33683 Py_INCREF(Py_None); resultobj = Py_None;
33684 return resultobj;
33685 fail:
33686 return NULL;
33687}
33688
33689
33690static PyObject *_wrap_Control_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
33691 PyObject *resultobj;
33692 wxControl *arg1 = (wxControl *) 0 ;
33693 wxString result;
33694 PyObject * obj0 = 0 ;
33695 char *kwnames[] = {
33696 (char *) "self", NULL
33697 };
33698
33699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_GetLabel",kwnames,&obj0)) goto fail;
33700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl,
33701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33702 {
33703 PyThreadState* __tstate = wxPyBeginAllowThreads();
33704 result = (arg1)->GetLabel();
33705
33706 wxPyEndAllowThreads(__tstate);
33707 if (PyErr_Occurred()) SWIG_fail;
33708 }
33709 {
33710#if wxUSE_UNICODE
33711 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33712#else
33713 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33714#endif
33715 }
33716 return resultobj;
33717 fail:
33718 return NULL;
33719}
33720
33721
33722static PyObject *_wrap_Control_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
33723 PyObject *resultobj;
33724 wxControl *arg1 = (wxControl *) 0 ;
33725 wxString *arg2 = 0 ;
33726 bool temp2 = False ;
33727 PyObject * obj0 = 0 ;
33728 PyObject * obj1 = 0 ;
33729 char *kwnames[] = {
33730 (char *) "self",(char *) "label", NULL
33731 };
33732
33733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_SetLabel",kwnames,&obj0,&obj1)) goto fail;
33734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl,
33735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33736 {
33737 arg2 = wxString_in_helper(obj1);
33738 if (arg2 == NULL) SWIG_fail;
33739 temp2 = True;
33740 }
33741 {
33742 PyThreadState* __tstate = wxPyBeginAllowThreads();
33743 (arg1)->SetLabel((wxString const &)*arg2);
33744
33745 wxPyEndAllowThreads(__tstate);
33746 if (PyErr_Occurred()) SWIG_fail;
33747 }
33748 Py_INCREF(Py_None); resultobj = Py_None;
33749 {
33750 if (temp2)
33751 delete arg2;
33752 }
33753 return resultobj;
33754 fail:
33755 {
33756 if (temp2)
33757 delete arg2;
33758 }
33759 return NULL;
33760}
33761
33762
33763static PyObject *_wrap_Control_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
33764 PyObject *resultobj;
33765 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
33766 wxVisualAttributes result;
33767 PyObject * obj0 = 0 ;
33768 char *kwnames[] = {
33769 (char *) "variant", NULL
33770 };
33771
33772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Control_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
33773 if (obj0) {
33774 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
33775 if (PyErr_Occurred()) SWIG_fail;
33776 }
33777 {
a001823c 33778 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
33779 PyThreadState* __tstate = wxPyBeginAllowThreads();
33780 result = wxControl::GetClassDefaultAttributes((wxWindowVariant )arg1);
33781
33782 wxPyEndAllowThreads(__tstate);
110da5b0 33783 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
33784 }
33785 {
33786 wxVisualAttributes * resultptr;
33787 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
33788 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
33789 }
33790 return resultobj;
33791 fail:
33792 return NULL;
33793}
33794
33795
33796static PyObject * Control_swigregister(PyObject *self, PyObject *args) {
33797 PyObject *obj;
33798 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
33799 SWIG_TypeClientData(SWIGTYPE_p_wxControl, obj);
33800 Py_INCREF(obj);
33801 return Py_BuildValue((char *)"");
33802}
33803static PyObject *_wrap_ItemContainer_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
33804 PyObject *resultobj;
33805 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33806 wxString *arg2 = 0 ;
33807 PyObject *arg3 = (PyObject *) NULL ;
33808 int result;
33809 bool temp2 = False ;
33810 PyObject * obj0 = 0 ;
33811 PyObject * obj1 = 0 ;
33812 PyObject * obj2 = 0 ;
33813 char *kwnames[] = {
33814 (char *) "self",(char *) "item",(char *) "clientData", NULL
33815 };
33816
33817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) goto fail;
33818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33820 {
33821 arg2 = wxString_in_helper(obj1);
33822 if (arg2 == NULL) SWIG_fail;
33823 temp2 = True;
33824 }
33825 if (obj2) {
33826 arg3 = obj2;
33827 }
33828 {
33829 PyThreadState* __tstate = wxPyBeginAllowThreads();
33830 result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3);
33831
33832 wxPyEndAllowThreads(__tstate);
33833 if (PyErr_Occurred()) SWIG_fail;
33834 }
33835 resultobj = SWIG_FromInt((int)result);
33836 {
33837 if (temp2)
33838 delete arg2;
33839 }
33840 return resultobj;
33841 fail:
33842 {
33843 if (temp2)
33844 delete arg2;
33845 }
33846 return NULL;
33847}
33848
33849
33850static PyObject *_wrap_ItemContainer_AppendItems(PyObject *self, PyObject *args, PyObject *kwargs) {
33851 PyObject *resultobj;
33852 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33853 wxArrayString *arg2 = 0 ;
33854 bool temp2 = False ;
33855 PyObject * obj0 = 0 ;
33856 PyObject * obj1 = 0 ;
33857 char *kwnames[] = {
33858 (char *) "self",(char *) "strings", NULL
33859 };
33860
33861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) goto fail;
33862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33864 {
33865 if (! PySequence_Check(obj1)) {
33866 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
33867 SWIG_fail;
33868 }
33869 arg2 = new wxArrayString;
33870 temp2 = True;
33871 int i, len=PySequence_Length(obj1);
33872 for (i=0; i<len; i++) {
33873 PyObject* item = PySequence_GetItem(obj1, i);
33874#if wxUSE_UNICODE
33875 PyObject* str = PyObject_Unicode(item);
33876#else
33877 PyObject* str = PyObject_Str(item);
33878#endif
33879 if (PyErr_Occurred()) SWIG_fail;
33880 arg2->Add(Py2wxString(str));
33881 Py_DECREF(item);
33882 Py_DECREF(str);
33883 }
33884 }
33885 {
33886 PyThreadState* __tstate = wxPyBeginAllowThreads();
33887 (arg1)->Append((wxArrayString const &)*arg2);
33888
33889 wxPyEndAllowThreads(__tstate);
33890 if (PyErr_Occurred()) SWIG_fail;
33891 }
33892 Py_INCREF(Py_None); resultobj = Py_None;
33893 {
33894 if (temp2) delete arg2;
33895 }
33896 return resultobj;
33897 fail:
33898 {
33899 if (temp2) delete arg2;
33900 }
33901 return NULL;
33902}
33903
33904
33905static PyObject *_wrap_ItemContainer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
33906 PyObject *resultobj;
33907 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33908 wxString *arg2 = 0 ;
33909 int arg3 ;
33910 PyObject *arg4 = (PyObject *) NULL ;
33911 int result;
33912 bool temp2 = False ;
33913 PyObject * obj0 = 0 ;
33914 PyObject * obj1 = 0 ;
33915 PyObject * obj2 = 0 ;
33916 PyObject * obj3 = 0 ;
33917 char *kwnames[] = {
33918 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
33919 };
33920
33921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
33922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33924 {
33925 arg2 = wxString_in_helper(obj1);
33926 if (arg2 == NULL) SWIG_fail;
33927 temp2 = True;
33928 }
33929 arg3 = (int) SWIG_AsInt(obj2);
33930 if (PyErr_Occurred()) SWIG_fail;
33931 if (obj3) {
33932 arg4 = obj3;
33933 }
33934 {
33935 PyThreadState* __tstate = wxPyBeginAllowThreads();
33936 result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
33937
33938 wxPyEndAllowThreads(__tstate);
33939 if (PyErr_Occurred()) SWIG_fail;
33940 }
33941 resultobj = SWIG_FromInt((int)result);
33942 {
33943 if (temp2)
33944 delete arg2;
33945 }
33946 return resultobj;
33947 fail:
33948 {
33949 if (temp2)
33950 delete arg2;
33951 }
33952 return NULL;
33953}
33954
33955
33956static PyObject *_wrap_ItemContainer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
33957 PyObject *resultobj;
33958 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33959 PyObject * obj0 = 0 ;
33960 char *kwnames[] = {
33961 (char *) "self", NULL
33962 };
33963
33964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_Clear",kwnames,&obj0)) goto fail;
33965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33967 {
33968 PyThreadState* __tstate = wxPyBeginAllowThreads();
33969 (arg1)->Clear();
33970
33971 wxPyEndAllowThreads(__tstate);
33972 if (PyErr_Occurred()) SWIG_fail;
33973 }
33974 Py_INCREF(Py_None); resultobj = Py_None;
33975 return resultobj;
33976 fail:
33977 return NULL;
33978}
33979
33980
33981static PyObject *_wrap_ItemContainer_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
33982 PyObject *resultobj;
33983 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33984 int arg2 ;
33985 PyObject * obj0 = 0 ;
33986 PyObject * obj1 = 0 ;
33987 char *kwnames[] = {
33988 (char *) "self",(char *) "n", NULL
33989 };
33990
33991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Delete",kwnames,&obj0,&obj1)) goto fail;
33992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33994 arg2 = (int) SWIG_AsInt(obj1);
33995 if (PyErr_Occurred()) SWIG_fail;
33996 {
33997 PyThreadState* __tstate = wxPyBeginAllowThreads();
33998 (arg1)->Delete(arg2);
33999
34000 wxPyEndAllowThreads(__tstate);
34001 if (PyErr_Occurred()) SWIG_fail;
34002 }
34003 Py_INCREF(Py_None); resultobj = Py_None;
34004 return resultobj;
34005 fail:
34006 return NULL;
34007}
34008
34009
34010static PyObject *_wrap_ItemContainer_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
34011 PyObject *resultobj;
34012 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34013 int result;
34014 PyObject * obj0 = 0 ;
34015 char *kwnames[] = {
34016 (char *) "self", NULL
34017 };
34018
34019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetCount",kwnames,&obj0)) goto fail;
34020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34022 {
34023 PyThreadState* __tstate = wxPyBeginAllowThreads();
34024 result = (int)((wxItemContainer const *)arg1)->GetCount();
34025
34026 wxPyEndAllowThreads(__tstate);
34027 if (PyErr_Occurred()) SWIG_fail;
34028 }
34029 resultobj = SWIG_FromInt((int)result);
34030 return resultobj;
34031 fail:
34032 return NULL;
34033}
34034
34035
34036static PyObject *_wrap_ItemContainer_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
34037 PyObject *resultobj;
34038 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34039 bool result;
34040 PyObject * obj0 = 0 ;
34041 char *kwnames[] = {
34042 (char *) "self", NULL
34043 };
34044
34045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_IsEmpty",kwnames,&obj0)) goto fail;
34046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34048 {
34049 PyThreadState* __tstate = wxPyBeginAllowThreads();
34050 result = (bool)((wxItemContainer const *)arg1)->IsEmpty();
34051
34052 wxPyEndAllowThreads(__tstate);
34053 if (PyErr_Occurred()) SWIG_fail;
34054 }
34055 {
34056 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34057 }
34058 return resultobj;
34059 fail:
34060 return NULL;
34061}
34062
34063
34064static PyObject *_wrap_ItemContainer_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
34065 PyObject *resultobj;
34066 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34067 int arg2 ;
34068 wxString result;
34069 PyObject * obj0 = 0 ;
34070 PyObject * obj1 = 0 ;
34071 char *kwnames[] = {
34072 (char *) "self",(char *) "n", NULL
34073 };
34074
34075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetString",kwnames,&obj0,&obj1)) goto fail;
34076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34078 arg2 = (int) SWIG_AsInt(obj1);
34079 if (PyErr_Occurred()) SWIG_fail;
34080 {
34081 PyThreadState* __tstate = wxPyBeginAllowThreads();
34082 result = ((wxItemContainer const *)arg1)->GetString(arg2);
34083
34084 wxPyEndAllowThreads(__tstate);
34085 if (PyErr_Occurred()) SWIG_fail;
34086 }
34087 {
34088#if wxUSE_UNICODE
34089 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34090#else
34091 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34092#endif
34093 }
34094 return resultobj;
34095 fail:
34096 return NULL;
34097}
34098
34099
34100static PyObject *_wrap_ItemContainer_GetStrings(PyObject *self, PyObject *args, PyObject *kwargs) {
34101 PyObject *resultobj;
34102 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34103 wxArrayString result;
34104 PyObject * obj0 = 0 ;
34105 char *kwnames[] = {
34106 (char *) "self", NULL
34107 };
34108
34109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStrings",kwnames,&obj0)) goto fail;
34110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34112 {
34113 PyThreadState* __tstate = wxPyBeginAllowThreads();
34114 result = ((wxItemContainer const *)arg1)->GetStrings();
34115
34116 wxPyEndAllowThreads(__tstate);
34117 if (PyErr_Occurred()) SWIG_fail;
34118 }
34119 {
34120 resultobj = wxArrayString2PyList_helper(result);
34121 }
34122 return resultobj;
34123 fail:
34124 return NULL;
34125}
34126
34127
34128static PyObject *_wrap_ItemContainer_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
34129 PyObject *resultobj;
34130 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34131 int arg2 ;
34132 wxString *arg3 = 0 ;
34133 bool temp3 = False ;
34134 PyObject * obj0 = 0 ;
34135 PyObject * obj1 = 0 ;
34136 PyObject * obj2 = 0 ;
34137 char *kwnames[] = {
34138 (char *) "self",(char *) "n",(char *) "s", NULL
34139 };
34140
34141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
34142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34144 arg2 = (int) SWIG_AsInt(obj1);
34145 if (PyErr_Occurred()) SWIG_fail;
34146 {
34147 arg3 = wxString_in_helper(obj2);
34148 if (arg3 == NULL) SWIG_fail;
34149 temp3 = True;
34150 }
34151 {
34152 PyThreadState* __tstate = wxPyBeginAllowThreads();
34153 (arg1)->SetString(arg2,(wxString const &)*arg3);
34154
34155 wxPyEndAllowThreads(__tstate);
34156 if (PyErr_Occurred()) SWIG_fail;
34157 }
34158 Py_INCREF(Py_None); resultobj = Py_None;
34159 {
34160 if (temp3)
34161 delete arg3;
34162 }
34163 return resultobj;
34164 fail:
34165 {
34166 if (temp3)
34167 delete arg3;
34168 }
34169 return NULL;
34170}
34171
34172
34173static PyObject *_wrap_ItemContainer_FindString(PyObject *self, PyObject *args, PyObject *kwargs) {
34174 PyObject *resultobj;
34175 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34176 wxString *arg2 = 0 ;
34177 int result;
34178 bool temp2 = False ;
34179 PyObject * obj0 = 0 ;
34180 PyObject * obj1 = 0 ;
34181 char *kwnames[] = {
34182 (char *) "self",(char *) "s", NULL
34183 };
34184
34185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) goto fail;
34186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34188 {
34189 arg2 = wxString_in_helper(obj1);
34190 if (arg2 == NULL) SWIG_fail;
34191 temp2 = True;
34192 }
34193 {
34194 PyThreadState* __tstate = wxPyBeginAllowThreads();
34195 result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2);
34196
34197 wxPyEndAllowThreads(__tstate);
34198 if (PyErr_Occurred()) SWIG_fail;
34199 }
34200 resultobj = SWIG_FromInt((int)result);
34201 {
34202 if (temp2)
34203 delete arg2;
34204 }
34205 return resultobj;
34206 fail:
34207 {
34208 if (temp2)
34209 delete arg2;
34210 }
34211 return NULL;
34212}
34213
34214
34215static PyObject *_wrap_ItemContainer_Select(PyObject *self, PyObject *args, PyObject *kwargs) {
34216 PyObject *resultobj;
34217 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34218 int arg2 ;
34219 PyObject * obj0 = 0 ;
34220 PyObject * obj1 = 0 ;
34221 char *kwnames[] = {
34222 (char *) "self",(char *) "n", NULL
34223 };
34224
34225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Select",kwnames,&obj0,&obj1)) goto fail;
34226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34228 arg2 = (int) SWIG_AsInt(obj1);
34229 if (PyErr_Occurred()) SWIG_fail;
34230 {
34231 PyThreadState* __tstate = wxPyBeginAllowThreads();
34232 (arg1)->Select(arg2);
34233
34234 wxPyEndAllowThreads(__tstate);
34235 if (PyErr_Occurred()) SWIG_fail;
34236 }
34237 Py_INCREF(Py_None); resultobj = Py_None;
34238 return resultobj;
34239 fail:
34240 return NULL;
34241}
34242
34243
34244static PyObject *_wrap_ItemContainer_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
34245 PyObject *resultobj;
34246 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34247 int result;
34248 PyObject * obj0 = 0 ;
34249 char *kwnames[] = {
34250 (char *) "self", NULL
34251 };
34252
34253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetSelection",kwnames,&obj0)) goto fail;
34254 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34256 {
34257 PyThreadState* __tstate = wxPyBeginAllowThreads();
34258 result = (int)((wxItemContainer const *)arg1)->GetSelection();
34259
34260 wxPyEndAllowThreads(__tstate);
34261 if (PyErr_Occurred()) SWIG_fail;
34262 }
34263 resultobj = SWIG_FromInt((int)result);
34264 return resultobj;
34265 fail:
34266 return NULL;
34267}
34268
34269
34270static PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
34271 PyObject *resultobj;
34272 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34273 wxString result;
34274 PyObject * obj0 = 0 ;
34275 char *kwnames[] = {
34276 (char *) "self", NULL
34277 };
34278
34279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStringSelection",kwnames,&obj0)) goto fail;
34280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34282 {
34283 PyThreadState* __tstate = wxPyBeginAllowThreads();
34284 result = ((wxItemContainer const *)arg1)->GetStringSelection();
34285
34286 wxPyEndAllowThreads(__tstate);
34287 if (PyErr_Occurred()) SWIG_fail;
34288 }
34289 {
34290#if wxUSE_UNICODE
34291 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34292#else
34293 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34294#endif
34295 }
34296 return resultobj;
34297 fail:
34298 return NULL;
34299}
34300
34301
34302static PyObject *_wrap_ItemContainer_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
34303 PyObject *resultobj;
34304 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34305 int arg2 ;
34306 PyObject *result;
34307 PyObject * obj0 = 0 ;
34308 PyObject * obj1 = 0 ;
34309 char *kwnames[] = {
34310 (char *) "self",(char *) "n", NULL
34311 };
34312
34313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetClientData",kwnames,&obj0,&obj1)) goto fail;
34314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34316 arg2 = (int) SWIG_AsInt(obj1);
34317 if (PyErr_Occurred()) SWIG_fail;
34318 {
34319 PyThreadState* __tstate = wxPyBeginAllowThreads();
34320 result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2);
34321
34322 wxPyEndAllowThreads(__tstate);
34323 if (PyErr_Occurred()) SWIG_fail;
34324 }
34325 resultobj = result;
34326 return resultobj;
34327 fail:
34328 return NULL;
34329}
34330
34331
34332static PyObject *_wrap_ItemContainer_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
34333 PyObject *resultobj;
34334 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34335 int arg2 ;
34336 PyObject *arg3 = (PyObject *) 0 ;
34337 PyObject * obj0 = 0 ;
34338 PyObject * obj1 = 0 ;
34339 PyObject * obj2 = 0 ;
34340 char *kwnames[] = {
34341 (char *) "self",(char *) "n",(char *) "clientData", NULL
34342 };
34343
34344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetClientData",kwnames,&obj0,&obj1,&obj2)) goto fail;
34345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34347 arg2 = (int) SWIG_AsInt(obj1);
34348 if (PyErr_Occurred()) SWIG_fail;
34349 arg3 = obj2;
34350 {
34351 PyThreadState* __tstate = wxPyBeginAllowThreads();
34352 wxItemContainer_SetClientData(arg1,arg2,arg3);
34353
34354 wxPyEndAllowThreads(__tstate);
34355 if (PyErr_Occurred()) SWIG_fail;
34356 }
34357 Py_INCREF(Py_None); resultobj = Py_None;
34358 return resultobj;
34359 fail:
34360 return NULL;
34361}
34362
34363
34364static PyObject * ItemContainer_swigregister(PyObject *self, PyObject *args) {
34365 PyObject *obj;
34366 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
34367 SWIG_TypeClientData(SWIGTYPE_p_wxItemContainer, obj);
34368 Py_INCREF(obj);
34369 return Py_BuildValue((char *)"");
34370}
34371static PyObject * ControlWithItems_swigregister(PyObject *self, PyObject *args) {
34372 PyObject *obj;
34373 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
34374 SWIG_TypeClientData(SWIGTYPE_p_wxControlWithItems, obj);
34375 Py_INCREF(obj);
34376 return Py_BuildValue((char *)"");
34377}
34378static PyObject *_wrap_new_SizerItem(PyObject *self, PyObject *args, PyObject *kwargs) {
34379 PyObject *resultobj;
34380 wxSizerItem *result;
34381 char *kwnames[] = {
34382 NULL
34383 };
34384
34385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SizerItem",kwnames)) goto fail;
34386 {
34387 PyThreadState* __tstate = wxPyBeginAllowThreads();
34388 result = (wxSizerItem *)new wxSizerItem();
34389
34390 wxPyEndAllowThreads(__tstate);
34391 if (PyErr_Occurred()) SWIG_fail;
34392 }
34393 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1);
34394 return resultobj;
34395 fail:
34396 return NULL;
34397}
34398
34399
248ed943 34400static PyObject *_wrap_new_SizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc 34401 PyObject *resultobj;
248ed943 34402 wxWindow *arg1 = (wxWindow *) 0 ;
d55e5bfc
RD
34403 int arg2 ;
34404 int arg3 ;
34405 int arg4 ;
248ed943 34406 PyObject *arg5 = (PyObject *) NULL ;
d55e5bfc
RD
34407 wxSizerItem *result;
34408 PyObject * obj0 = 0 ;
34409 PyObject * obj1 = 0 ;
34410 PyObject * obj2 = 0 ;
34411 PyObject * obj3 = 0 ;
34412 PyObject * obj4 = 0 ;
d55e5bfc 34413 char *kwnames[] = {
248ed943 34414 (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
d55e5bfc
RD
34415 };
34416
248ed943
RD
34417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
34418 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
34419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d55e5bfc
RD
34420 arg2 = (int) SWIG_AsInt(obj1);
34421 if (PyErr_Occurred()) SWIG_fail;
34422 arg3 = (int) SWIG_AsInt(obj2);
34423 if (PyErr_Occurred()) SWIG_fail;
34424 arg4 = (int) SWIG_AsInt(obj3);
34425 if (PyErr_Occurred()) SWIG_fail;
248ed943
RD
34426 if (obj4) {
34427 arg5 = obj4;
34428 }
d55e5bfc
RD
34429 {
34430 PyThreadState* __tstate = wxPyBeginAllowThreads();
248ed943 34431 result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5);
d55e5bfc
RD
34432
34433 wxPyEndAllowThreads(__tstate);
34434 if (PyErr_Occurred()) SWIG_fail;
34435 }
34436 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1);
34437 return resultobj;
34438 fail:
34439 return NULL;
34440}
34441
34442
248ed943 34443static PyObject *_wrap_new_SizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc 34444 PyObject *resultobj;
248ed943 34445 int arg1 ;
d55e5bfc
RD
34446 int arg2 ;
34447 int arg3 ;
34448 int arg4 ;
248ed943
RD
34449 int arg5 ;
34450 PyObject *arg6 = (PyObject *) NULL ;
d55e5bfc
RD
34451 wxSizerItem *result;
34452 PyObject * obj0 = 0 ;
34453 PyObject * obj1 = 0 ;
34454 PyObject * obj2 = 0 ;
34455 PyObject * obj3 = 0 ;
34456 PyObject * obj4 = 0 ;
248ed943 34457 PyObject * obj5 = 0 ;
d55e5bfc 34458 char *kwnames[] = {
248ed943 34459 (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
d55e5bfc
RD
34460 };
34461
248ed943
RD
34462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_SizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
34463 arg1 = (int) SWIG_AsInt(obj0);
34464 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
34465 arg2 = (int) SWIG_AsInt(obj1);
34466 if (PyErr_Occurred()) SWIG_fail;
34467 arg3 = (int) SWIG_AsInt(obj2);
34468 if (PyErr_Occurred()) SWIG_fail;
34469 arg4 = (int) SWIG_AsInt(obj3);
34470 if (PyErr_Occurred()) SWIG_fail;
248ed943
RD
34471 arg5 = (int) SWIG_AsInt(obj4);
34472 if (PyErr_Occurred()) SWIG_fail;
34473 if (obj5) {
34474 arg6 = obj5;
34475 }
d55e5bfc
RD
34476 {
34477 PyThreadState* __tstate = wxPyBeginAllowThreads();
248ed943 34478 result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6);
d55e5bfc
RD
34479
34480 wxPyEndAllowThreads(__tstate);
34481 if (PyErr_Occurred()) SWIG_fail;
34482 }
34483 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1);
34484 return resultobj;
34485 fail:
34486 return NULL;
34487}
34488
34489
34490static PyObject *_wrap_new_SizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
34491 PyObject *resultobj;
34492 wxSizer *arg1 = (wxSizer *) 0 ;
34493 int arg2 ;
34494 int arg3 ;
34495 int arg4 ;
248ed943 34496 PyObject *arg5 = (PyObject *) NULL ;
d55e5bfc
RD
34497 wxSizerItem *result;
34498 PyObject * obj0 = 0 ;
34499 PyObject * obj1 = 0 ;
34500 PyObject * obj2 = 0 ;
34501 PyObject * obj3 = 0 ;
34502 PyObject * obj4 = 0 ;
34503 char *kwnames[] = {
34504 (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
34505 };
34506
248ed943 34507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
34508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
34509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34510 arg2 = (int) SWIG_AsInt(obj1);
34511 if (PyErr_Occurred()) SWIG_fail;
34512 arg3 = (int) SWIG_AsInt(obj2);
34513 if (PyErr_Occurred()) SWIG_fail;
34514 arg4 = (int) SWIG_AsInt(obj3);
34515 if (PyErr_Occurred()) SWIG_fail;
248ed943
RD
34516 if (obj4) {
34517 arg5 = obj4;
34518 }
d55e5bfc
RD
34519 {
34520 PyThreadState* __tstate = wxPyBeginAllowThreads();
248ed943 34521 result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5);
d55e5bfc
RD
34522
34523 wxPyEndAllowThreads(__tstate);
34524 if (PyErr_Occurred()) SWIG_fail;
34525 }
34526 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1);
34527 return resultobj;
34528 fail:
34529 return NULL;
34530}
34531
34532
34533static PyObject *_wrap_SizerItem_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) {
34534 PyObject *resultobj;
34535 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34536 PyObject * obj0 = 0 ;
34537 char *kwnames[] = {
34538 (char *) "self", NULL
34539 };
34540
34541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DeleteWindows",kwnames,&obj0)) goto fail;
34542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34544 {
34545 PyThreadState* __tstate = wxPyBeginAllowThreads();
34546 (arg1)->DeleteWindows();
34547
34548 wxPyEndAllowThreads(__tstate);
34549 if (PyErr_Occurred()) SWIG_fail;
34550 }
34551 Py_INCREF(Py_None); resultobj = Py_None;
34552 return resultobj;
34553 fail:
34554 return NULL;
34555}
34556
34557
34558static PyObject *_wrap_SizerItem_DetachSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
34559 PyObject *resultobj;
34560 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34561 PyObject * obj0 = 0 ;
34562 char *kwnames[] = {
34563 (char *) "self", NULL
34564 };
34565
34566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DetachSizer",kwnames,&obj0)) goto fail;
34567 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34569 {
34570 PyThreadState* __tstate = wxPyBeginAllowThreads();
34571 (arg1)->DetachSizer();
34572
34573 wxPyEndAllowThreads(__tstate);
34574 if (PyErr_Occurred()) SWIG_fail;
34575 }
34576 Py_INCREF(Py_None); resultobj = Py_None;
34577 return resultobj;
34578 fail:
34579 return NULL;
34580}
34581
34582
34583static PyObject *_wrap_SizerItem_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
34584 PyObject *resultobj;
34585 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34586 wxSize result;
34587 PyObject * obj0 = 0 ;
34588 char *kwnames[] = {
34589 (char *) "self", NULL
34590 };
34591
34592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSize",kwnames,&obj0)) goto fail;
34593 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34595 {
34596 PyThreadState* __tstate = wxPyBeginAllowThreads();
34597 result = (arg1)->GetSize();
34598
34599 wxPyEndAllowThreads(__tstate);
34600 if (PyErr_Occurred()) SWIG_fail;
34601 }
34602 {
34603 wxSize * resultptr;
34604 resultptr = new wxSize((wxSize &) result);
34605 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
34606 }
34607 return resultobj;
34608 fail:
34609 return NULL;
34610}
34611
34612
34613static PyObject *_wrap_SizerItem_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
34614 PyObject *resultobj;
34615 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34616 wxSize result;
34617 PyObject * obj0 = 0 ;
34618 char *kwnames[] = {
34619 (char *) "self", NULL
34620 };
34621
34622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_CalcMin",kwnames,&obj0)) goto fail;
34623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34625 {
34626 PyThreadState* __tstate = wxPyBeginAllowThreads();
34627 result = (arg1)->CalcMin();
34628
34629 wxPyEndAllowThreads(__tstate);
34630 if (PyErr_Occurred()) SWIG_fail;
34631 }
34632 {
34633 wxSize * resultptr;
34634 resultptr = new wxSize((wxSize &) result);
34635 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
34636 }
34637 return resultobj;
34638 fail:
34639 return NULL;
34640}
34641
34642
34643static PyObject *_wrap_SizerItem_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) {
34644 PyObject *resultobj;
34645 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34646 wxPoint arg2 ;
34647 wxSize arg3 ;
34648 wxPoint *argp2 ;
34649 wxSize *argp3 ;
34650 PyObject * obj0 = 0 ;
34651 PyObject * obj1 = 0 ;
34652 PyObject * obj2 = 0 ;
34653 char *kwnames[] = {
34654 (char *) "self",(char *) "pos",(char *) "size", NULL
34655 };
34656
34657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail;
34658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34660 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint,
34661 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
34662 arg2 = *argp2;
34663 if ((SWIG_ConvertPtr(obj2,(void **)(&argp3),SWIGTYPE_p_wxSize,
34664 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
34665 arg3 = *argp3;
34666 {
34667 PyThreadState* __tstate = wxPyBeginAllowThreads();
34668 (arg1)->SetDimension(arg2,arg3);
34669
34670 wxPyEndAllowThreads(__tstate);
34671 if (PyErr_Occurred()) SWIG_fail;
34672 }
34673 Py_INCREF(Py_None); resultobj = Py_None;
34674 return resultobj;
34675 fail:
34676 return NULL;
34677}
34678
34679
34680static PyObject *_wrap_SizerItem_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) {
34681 PyObject *resultobj;
34682 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34683 wxSize result;
34684 PyObject * obj0 = 0 ;
34685 char *kwnames[] = {
34686 (char *) "self", NULL
34687 };
34688
34689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSize",kwnames,&obj0)) goto fail;
34690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34692 {
34693 PyThreadState* __tstate = wxPyBeginAllowThreads();
34694 result = (arg1)->GetMinSize();
34695
34696 wxPyEndAllowThreads(__tstate);
34697 if (PyErr_Occurred()) SWIG_fail;
34698 }
34699 {
34700 wxSize * resultptr;
34701 resultptr = new wxSize((wxSize &) result);
34702 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
34703 }
34704 return resultobj;
34705 fail:
34706 return NULL;
34707}
34708
34709
a001823c
RD
34710static PyObject *_wrap_SizerItem_GetMinSizeWithBorder(PyObject *self, PyObject *args, PyObject *kwargs) {
34711 PyObject *resultobj;
34712 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34713 wxSize result;
34714 PyObject * obj0 = 0 ;
34715 char *kwnames[] = {
34716 (char *) "self", NULL
34717 };
34718
34719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSizeWithBorder",kwnames,&obj0)) goto fail;
34720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34722 {
34723 PyThreadState* __tstate = wxPyBeginAllowThreads();
34724 result = ((wxSizerItem const *)arg1)->GetMinSizeWithBorder();
34725
34726 wxPyEndAllowThreads(__tstate);
34727 if (PyErr_Occurred()) SWIG_fail;
34728 }
34729 {
34730 wxSize * resultptr;
34731 resultptr = new wxSize((wxSize &) result);
34732 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
34733 }
34734 return resultobj;
34735 fail:
34736 return NULL;
34737}
34738
34739
d55e5bfc
RD
34740static PyObject *_wrap_SizerItem_SetInitSize(PyObject *self, PyObject *args, PyObject *kwargs) {
34741 PyObject *resultobj;
34742 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34743 int arg2 ;
34744 int arg3 ;
34745 PyObject * obj0 = 0 ;
34746 PyObject * obj1 = 0 ;
34747 PyObject * obj2 = 0 ;
34748 char *kwnames[] = {
34749 (char *) "self",(char *) "x",(char *) "y", NULL
34750 };
34751
34752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetInitSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
34753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34755 arg2 = (int) SWIG_AsInt(obj1);
34756 if (PyErr_Occurred()) SWIG_fail;
34757 arg3 = (int) SWIG_AsInt(obj2);
34758 if (PyErr_Occurred()) SWIG_fail;
34759 {
34760 PyThreadState* __tstate = wxPyBeginAllowThreads();
34761 (arg1)->SetInitSize(arg2,arg3);
34762
34763 wxPyEndAllowThreads(__tstate);
34764 if (PyErr_Occurred()) SWIG_fail;
34765 }
34766 Py_INCREF(Py_None); resultobj = Py_None;
34767 return resultobj;
34768 fail:
34769 return NULL;
34770}
34771
34772
34773static PyObject *_wrap_SizerItem_SetRatioWH(PyObject *self, PyObject *args, PyObject *kwargs) {
34774 PyObject *resultobj;
34775 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34776 int arg2 ;
34777 int arg3 ;
34778 PyObject * obj0 = 0 ;
34779 PyObject * obj1 = 0 ;
34780 PyObject * obj2 = 0 ;
34781 char *kwnames[] = {
34782 (char *) "self",(char *) "width",(char *) "height", NULL
34783 };
34784
34785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetRatioWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
34786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34788 arg2 = (int) SWIG_AsInt(obj1);
34789 if (PyErr_Occurred()) SWIG_fail;
34790 arg3 = (int) SWIG_AsInt(obj2);
34791 if (PyErr_Occurred()) SWIG_fail;
34792 {
34793 PyThreadState* __tstate = wxPyBeginAllowThreads();
34794 (arg1)->SetRatio(arg2,arg3);
34795
34796 wxPyEndAllowThreads(__tstate);
34797 if (PyErr_Occurred()) SWIG_fail;
34798 }
34799 Py_INCREF(Py_None); resultobj = Py_None;
34800 return resultobj;
34801 fail:
34802 return NULL;
34803}
34804
34805
34806static PyObject *_wrap_SizerItem_SetRatioSize(PyObject *self, PyObject *args, PyObject *kwargs) {
34807 PyObject *resultobj;
34808 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34809 wxSize arg2 ;
34810 wxSize *argp2 ;
34811 PyObject * obj0 = 0 ;
34812 PyObject * obj1 = 0 ;
34813 char *kwnames[] = {
34814 (char *) "self",(char *) "size", NULL
34815 };
34816
34817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) goto fail;
34818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34820 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize,
34821 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
34822 arg2 = *argp2;
34823 {
34824 PyThreadState* __tstate = wxPyBeginAllowThreads();
34825 (arg1)->SetRatio(arg2);
34826
34827 wxPyEndAllowThreads(__tstate);
34828 if (PyErr_Occurred()) SWIG_fail;
34829 }
34830 Py_INCREF(Py_None); resultobj = Py_None;
34831 return resultobj;
34832 fail:
34833 return NULL;
34834}
34835
34836
34837static PyObject *_wrap_SizerItem_SetRatio(PyObject *self, PyObject *args, PyObject *kwargs) {
34838 PyObject *resultobj;
34839 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34840 float arg2 ;
34841 PyObject * obj0 = 0 ;
34842 PyObject * obj1 = 0 ;
34843 char *kwnames[] = {
34844 (char *) "self",(char *) "ratio", NULL
34845 };
34846
34847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatio",kwnames,&obj0,&obj1)) goto fail;
34848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34850 arg2 = (float) SWIG_AsFloat(obj1);
34851 if (PyErr_Occurred()) SWIG_fail;
34852 {
34853 PyThreadState* __tstate = wxPyBeginAllowThreads();
34854 (arg1)->SetRatio(arg2);
34855
34856 wxPyEndAllowThreads(__tstate);
34857 if (PyErr_Occurred()) SWIG_fail;
34858 }
34859 Py_INCREF(Py_None); resultobj = Py_None;
34860 return resultobj;
34861 fail:
34862 return NULL;
34863}
34864
34865
34866static PyObject *_wrap_SizerItem_GetRatio(PyObject *self, PyObject *args, PyObject *kwargs) {
34867 PyObject *resultobj;
34868 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34869 float result;
34870 PyObject * obj0 = 0 ;
34871 char *kwnames[] = {
34872 (char *) "self", NULL
34873 };
34874
34875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRatio",kwnames,&obj0)) goto fail;
34876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34878 {
34879 PyThreadState* __tstate = wxPyBeginAllowThreads();
34880 result = (float)(arg1)->GetRatio();
34881
34882 wxPyEndAllowThreads(__tstate);
34883 if (PyErr_Occurred()) SWIG_fail;
34884 }
34885 resultobj = SWIG_FromFloat((float)result);
34886 return resultobj;
34887 fail:
34888 return NULL;
34889}
34890
34891
34892static PyObject *_wrap_SizerItem_IsWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
34893 PyObject *resultobj;
34894 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34895 bool result;
34896 PyObject * obj0 = 0 ;
34897 char *kwnames[] = {
34898 (char *) "self", NULL
34899 };
34900
34901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsWindow",kwnames,&obj0)) goto fail;
34902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34904 {
34905 PyThreadState* __tstate = wxPyBeginAllowThreads();
34906 result = (bool)(arg1)->IsWindow();
34907
34908 wxPyEndAllowThreads(__tstate);
34909 if (PyErr_Occurred()) SWIG_fail;
34910 }
34911 {
34912 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34913 }
34914 return resultobj;
34915 fail:
34916 return NULL;
34917}
34918
34919
34920static PyObject *_wrap_SizerItem_IsSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
34921 PyObject *resultobj;
34922 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34923 bool result;
34924 PyObject * obj0 = 0 ;
34925 char *kwnames[] = {
34926 (char *) "self", NULL
34927 };
34928
34929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSizer",kwnames,&obj0)) goto fail;
34930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34932 {
34933 PyThreadState* __tstate = wxPyBeginAllowThreads();
34934 result = (bool)(arg1)->IsSizer();
34935
34936 wxPyEndAllowThreads(__tstate);
34937 if (PyErr_Occurred()) SWIG_fail;
34938 }
34939 {
34940 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34941 }
34942 return resultobj;
34943 fail:
34944 return NULL;
34945}
34946
34947
34948static PyObject *_wrap_SizerItem_IsSpacer(PyObject *self, PyObject *args, PyObject *kwargs) {
34949 PyObject *resultobj;
34950 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34951 bool result;
34952 PyObject * obj0 = 0 ;
34953 char *kwnames[] = {
34954 (char *) "self", NULL
34955 };
34956
34957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSpacer",kwnames,&obj0)) goto fail;
34958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34960 {
34961 PyThreadState* __tstate = wxPyBeginAllowThreads();
34962 result = (bool)(arg1)->IsSpacer();
34963
34964 wxPyEndAllowThreads(__tstate);
34965 if (PyErr_Occurred()) SWIG_fail;
34966 }
34967 {
34968 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34969 }
34970 return resultobj;
34971 fail:
34972 return NULL;
34973}
34974
34975
34976static PyObject *_wrap_SizerItem_SetProportion(PyObject *self, PyObject *args, PyObject *kwargs) {
34977 PyObject *resultobj;
34978 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34979 int arg2 ;
34980 PyObject * obj0 = 0 ;
34981 PyObject * obj1 = 0 ;
34982 char *kwnames[] = {
34983 (char *) "self",(char *) "proportion", NULL
34984 };
34985
34986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetProportion",kwnames,&obj0,&obj1)) goto fail;
34987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34989 arg2 = (int) SWIG_AsInt(obj1);
34990 if (PyErr_Occurred()) SWIG_fail;
34991 {
34992 PyThreadState* __tstate = wxPyBeginAllowThreads();
34993 (arg1)->SetProportion(arg2);
34994
34995 wxPyEndAllowThreads(__tstate);
34996 if (PyErr_Occurred()) SWIG_fail;
34997 }
34998 Py_INCREF(Py_None); resultobj = Py_None;
34999 return resultobj;
35000 fail:
35001 return NULL;
35002}
35003
35004
35005static PyObject *_wrap_SizerItem_GetProportion(PyObject *self, PyObject *args, PyObject *kwargs) {
35006 PyObject *resultobj;
35007 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35008 int result;
35009 PyObject * obj0 = 0 ;
35010 char *kwnames[] = {
35011 (char *) "self", NULL
35012 };
35013
35014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetProportion",kwnames,&obj0)) goto fail;
35015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35017 {
35018 PyThreadState* __tstate = wxPyBeginAllowThreads();
35019 result = (int)(arg1)->GetProportion();
35020
35021 wxPyEndAllowThreads(__tstate);
35022 if (PyErr_Occurred()) SWIG_fail;
35023 }
35024 resultobj = SWIG_FromInt((int)result);
35025 return resultobj;
35026 fail:
35027 return NULL;
35028}
35029
35030
35031static PyObject *_wrap_SizerItem_SetFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
35032 PyObject *resultobj;
35033 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35034 int arg2 ;
35035 PyObject * obj0 = 0 ;
35036 PyObject * obj1 = 0 ;
35037 char *kwnames[] = {
35038 (char *) "self",(char *) "flag", NULL
35039 };
35040
35041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetFlag",kwnames,&obj0,&obj1)) goto fail;
35042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35044 arg2 = (int) SWIG_AsInt(obj1);
35045 if (PyErr_Occurred()) SWIG_fail;
35046 {
35047 PyThreadState* __tstate = wxPyBeginAllowThreads();
35048 (arg1)->SetFlag(arg2);
35049
35050 wxPyEndAllowThreads(__tstate);
35051 if (PyErr_Occurred()) SWIG_fail;
35052 }
35053 Py_INCREF(Py_None); resultobj = Py_None;
35054 return resultobj;
35055 fail:
35056 return NULL;
35057}
35058
35059
35060static PyObject *_wrap_SizerItem_GetFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
35061 PyObject *resultobj;
35062 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35063 int result;
35064 PyObject * obj0 = 0 ;
35065 char *kwnames[] = {
35066 (char *) "self", NULL
35067 };
35068
35069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetFlag",kwnames,&obj0)) goto fail;
35070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35072 {
35073 PyThreadState* __tstate = wxPyBeginAllowThreads();
35074 result = (int)(arg1)->GetFlag();
35075
35076 wxPyEndAllowThreads(__tstate);
35077 if (PyErr_Occurred()) SWIG_fail;
35078 }
35079 resultobj = SWIG_FromInt((int)result);
35080 return resultobj;
35081 fail:
35082 return NULL;
35083}
35084
35085
35086static PyObject *_wrap_SizerItem_SetBorder(PyObject *self, PyObject *args, PyObject *kwargs) {
35087 PyObject *resultobj;
35088 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35089 int arg2 ;
35090 PyObject * obj0 = 0 ;
35091 PyObject * obj1 = 0 ;
35092 char *kwnames[] = {
35093 (char *) "self",(char *) "border", NULL
35094 };
35095
35096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetBorder",kwnames,&obj0,&obj1)) goto fail;
35097 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35098 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35099 arg2 = (int) SWIG_AsInt(obj1);
35100 if (PyErr_Occurred()) SWIG_fail;
35101 {
35102 PyThreadState* __tstate = wxPyBeginAllowThreads();
35103 (arg1)->SetBorder(arg2);
35104
35105 wxPyEndAllowThreads(__tstate);
35106 if (PyErr_Occurred()) SWIG_fail;
35107 }
35108 Py_INCREF(Py_None); resultobj = Py_None;
35109 return resultobj;
35110 fail:
35111 return NULL;
35112}
35113
35114
35115static PyObject *_wrap_SizerItem_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) {
35116 PyObject *resultobj;
35117 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35118 int result;
35119 PyObject * obj0 = 0 ;
35120 char *kwnames[] = {
35121 (char *) "self", NULL
35122 };
35123
35124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetBorder",kwnames,&obj0)) goto fail;
35125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35127 {
35128 PyThreadState* __tstate = wxPyBeginAllowThreads();
35129 result = (int)(arg1)->GetBorder();
35130
35131 wxPyEndAllowThreads(__tstate);
35132 if (PyErr_Occurred()) SWIG_fail;
35133 }
35134 resultobj = SWIG_FromInt((int)result);
35135 return resultobj;
35136 fail:
35137 return NULL;
35138}
35139
35140
35141static PyObject *_wrap_SizerItem_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
35142 PyObject *resultobj;
35143 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35144 wxWindow *result;
35145 PyObject * obj0 = 0 ;
35146 char *kwnames[] = {
35147 (char *) "self", NULL
35148 };
35149
35150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetWindow",kwnames,&obj0)) goto fail;
35151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35153 {
35154 PyThreadState* __tstate = wxPyBeginAllowThreads();
35155 result = (wxWindow *)(arg1)->GetWindow();
35156
35157 wxPyEndAllowThreads(__tstate);
35158 if (PyErr_Occurred()) SWIG_fail;
35159 }
35160 {
412d302d 35161 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
35162 }
35163 return resultobj;
35164 fail:
35165 return NULL;
35166}
35167
35168
35169static PyObject *_wrap_SizerItem_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
35170 PyObject *resultobj;
35171 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35172 wxWindow *arg2 = (wxWindow *) 0 ;
35173 PyObject * obj0 = 0 ;
35174 PyObject * obj1 = 0 ;
35175 char *kwnames[] = {
35176 (char *) "self",(char *) "window", NULL
35177 };
35178
35179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) goto fail;
35180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35182 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
35183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35184 {
35185 PyThreadState* __tstate = wxPyBeginAllowThreads();
35186 (arg1)->SetWindow(arg2);
35187
35188 wxPyEndAllowThreads(__tstate);
35189 if (PyErr_Occurred()) SWIG_fail;
35190 }
35191 Py_INCREF(Py_None); resultobj = Py_None;
35192 return resultobj;
35193 fail:
35194 return NULL;
35195}
35196
35197
35198static PyObject *_wrap_SizerItem_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
35199 PyObject *resultobj;
35200 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35201 wxSizer *result;
35202 PyObject * obj0 = 0 ;
35203 char *kwnames[] = {
35204 (char *) "self", NULL
35205 };
35206
35207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSizer",kwnames,&obj0)) goto fail;
35208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35210 {
35211 PyThreadState* __tstate = wxPyBeginAllowThreads();
35212 result = (wxSizer *)(arg1)->GetSizer();
35213
35214 wxPyEndAllowThreads(__tstate);
35215 if (PyErr_Occurred()) SWIG_fail;
35216 }
35217 {
412d302d 35218 resultobj = wxPyMake_wxSizer(result, 0);
d55e5bfc
RD
35219 }
35220 return resultobj;
35221 fail:
35222 return NULL;
35223}
35224
35225
35226static PyObject *_wrap_SizerItem_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
35227 PyObject *resultobj;
35228 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35229 wxSizer *arg2 = (wxSizer *) 0 ;
35230 PyObject * obj0 = 0 ;
35231 PyObject * obj1 = 0 ;
35232 char *kwnames[] = {
35233 (char *) "self",(char *) "sizer", NULL
35234 };
35235
35236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) goto fail;
35237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35239 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
35240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35241 {
35242 PyThreadState* __tstate = wxPyBeginAllowThreads();
35243 (arg1)->SetSizer(arg2);
35244
35245 wxPyEndAllowThreads(__tstate);
35246 if (PyErr_Occurred()) SWIG_fail;
35247 }
35248 Py_INCREF(Py_None); resultobj = Py_None;
35249 return resultobj;
35250 fail:
35251 return NULL;
35252}
35253
35254
35255static PyObject *_wrap_SizerItem_GetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) {
35256 PyObject *resultobj;
35257 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35258 wxSize *result;
35259 PyObject * obj0 = 0 ;
35260 char *kwnames[] = {
35261 (char *) "self", NULL
35262 };
35263
35264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSpacer",kwnames,&obj0)) goto fail;
35265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35267 {
35268 PyThreadState* __tstate = wxPyBeginAllowThreads();
35269 {
35270 wxSize const &_result_ref = (arg1)->GetSpacer();
35271 result = (wxSize *) &_result_ref;
35272 }
35273
35274 wxPyEndAllowThreads(__tstate);
35275 if (PyErr_Occurred()) SWIG_fail;
35276 }
35277 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0);
35278 return resultobj;
35279 fail:
35280 return NULL;
35281}
35282
35283
35284static PyObject *_wrap_SizerItem_SetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) {
35285 PyObject *resultobj;
35286 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35287 wxSize *arg2 = 0 ;
35288 wxSize temp2 ;
35289 PyObject * obj0 = 0 ;
35290 PyObject * obj1 = 0 ;
35291 char *kwnames[] = {
35292 (char *) "self",(char *) "size", NULL
35293 };
35294
35295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) goto fail;
35296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35298 {
35299 arg2 = &temp2;
35300 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
35301 }
35302 {
35303 PyThreadState* __tstate = wxPyBeginAllowThreads();
35304 (arg1)->SetSpacer((wxSize const &)*arg2);
35305
35306 wxPyEndAllowThreads(__tstate);
35307 if (PyErr_Occurred()) SWIG_fail;
35308 }
35309 Py_INCREF(Py_None); resultobj = Py_None;
35310 return resultobj;
35311 fail:
35312 return NULL;
35313}
35314
35315
35316static PyObject *_wrap_SizerItem_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
35317 PyObject *resultobj;
35318 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35319 bool arg2 ;
35320 PyObject * obj0 = 0 ;
35321 PyObject * obj1 = 0 ;
35322 char *kwnames[] = {
35323 (char *) "self",(char *) "show", NULL
35324 };
35325
35326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) goto fail;
35327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35329 arg2 = (bool) SWIG_AsBool(obj1);
35330 if (PyErr_Occurred()) SWIG_fail;
35331 {
35332 PyThreadState* __tstate = wxPyBeginAllowThreads();
35333 (arg1)->Show(arg2);
35334
35335 wxPyEndAllowThreads(__tstate);
35336 if (PyErr_Occurred()) SWIG_fail;
35337 }
35338 Py_INCREF(Py_None); resultobj = Py_None;
35339 return resultobj;
35340 fail:
35341 return NULL;
35342}
35343
35344
35345static PyObject *_wrap_SizerItem_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) {
35346 PyObject *resultobj;
35347 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35348 bool result;
35349 PyObject * obj0 = 0 ;
35350 char *kwnames[] = {
35351 (char *) "self", NULL
35352 };
35353
35354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsShown",kwnames,&obj0)) goto fail;
35355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35357 {
35358 PyThreadState* __tstate = wxPyBeginAllowThreads();
35359 result = (bool)(arg1)->IsShown();
35360
35361 wxPyEndAllowThreads(__tstate);
35362 if (PyErr_Occurred()) SWIG_fail;
35363 }
35364 {
35365 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35366 }
35367 return resultobj;
35368 fail:
35369 return NULL;
35370}
35371
35372
35373static PyObject *_wrap_SizerItem_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
35374 PyObject *resultobj;
35375 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35376 wxPoint result;
35377 PyObject * obj0 = 0 ;
35378 char *kwnames[] = {
35379 (char *) "self", NULL
35380 };
35381
35382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetPosition",kwnames,&obj0)) goto fail;
35383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35385 {
35386 PyThreadState* __tstate = wxPyBeginAllowThreads();
35387 result = (arg1)->GetPosition();
35388
35389 wxPyEndAllowThreads(__tstate);
35390 if (PyErr_Occurred()) SWIG_fail;
35391 }
35392 {
35393 wxPoint * resultptr;
35394 resultptr = new wxPoint((wxPoint &) result);
35395 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
35396 }
35397 return resultobj;
35398 fail:
35399 return NULL;
35400}
35401
35402
35403static PyObject *_wrap_SizerItem_GetUserData(PyObject *self, PyObject *args, PyObject *kwargs) {
35404 PyObject *resultobj;
35405 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35406 PyObject *result;
35407 PyObject * obj0 = 0 ;
35408 char *kwnames[] = {
35409 (char *) "self", NULL
35410 };
35411
35412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetUserData",kwnames,&obj0)) goto fail;
35413 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35415 {
35416 PyThreadState* __tstate = wxPyBeginAllowThreads();
35417 result = (PyObject *)wxSizerItem_GetUserData(arg1);
35418
35419 wxPyEndAllowThreads(__tstate);
35420 if (PyErr_Occurred()) SWIG_fail;
35421 }
35422 resultobj = result;
35423 return resultobj;
35424 fail:
35425 return NULL;
35426}
35427
35428
35429static PyObject * SizerItem_swigregister(PyObject *self, PyObject *args) {
35430 PyObject *obj;
35431 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
35432 SWIG_TypeClientData(SWIGTYPE_p_wxSizerItem, obj);
35433 Py_INCREF(obj);
35434 return Py_BuildValue((char *)"");
35435}
35436static PyObject *_wrap_Sizer__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
35437 PyObject *resultobj;
35438 wxSizer *arg1 = (wxSizer *) 0 ;
35439 PyObject *arg2 = (PyObject *) 0 ;
35440 PyObject * obj0 = 0 ;
35441 PyObject * obj1 = 0 ;
35442 char *kwnames[] = {
35443 (char *) "self",(char *) "_self", NULL
35444 };
35445
35446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
35447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35449 arg2 = obj1;
35450 {
35451 PyThreadState* __tstate = wxPyBeginAllowThreads();
35452 wxSizer__setOORInfo(arg1,arg2);
35453
35454 wxPyEndAllowThreads(__tstate);
35455 if (PyErr_Occurred()) SWIG_fail;
35456 }
35457 Py_INCREF(Py_None); resultobj = Py_None;
35458 return resultobj;
35459 fail:
35460 return NULL;
35461}
35462
35463
35464static PyObject *_wrap_Sizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
35465 PyObject *resultobj;
35466 wxSizer *arg1 = (wxSizer *) 0 ;
35467 PyObject *arg2 = (PyObject *) 0 ;
35468 int arg3 = (int) 0 ;
35469 int arg4 = (int) 0 ;
35470 int arg5 = (int) 0 ;
35471 PyObject *arg6 = (PyObject *) NULL ;
35472 PyObject * obj0 = 0 ;
35473 PyObject * obj1 = 0 ;
35474 PyObject * obj2 = 0 ;
35475 PyObject * obj3 = 0 ;
35476 PyObject * obj4 = 0 ;
35477 PyObject * obj5 = 0 ;
35478 char *kwnames[] = {
35479 (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
35480 };
35481
35482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
35483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35485 arg2 = obj1;
35486 if (obj2) {
35487 arg3 = (int) SWIG_AsInt(obj2);
35488 if (PyErr_Occurred()) SWIG_fail;
35489 }
35490 if (obj3) {
35491 arg4 = (int) SWIG_AsInt(obj3);
35492 if (PyErr_Occurred()) SWIG_fail;
35493 }
35494 if (obj4) {
35495 arg5 = (int) SWIG_AsInt(obj4);
35496 if (PyErr_Occurred()) SWIG_fail;
35497 }
35498 if (obj5) {
35499 arg6 = obj5;
35500 }
35501 {
35502 PyThreadState* __tstate = wxPyBeginAllowThreads();
35503 wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6);
35504
35505 wxPyEndAllowThreads(__tstate);
35506 if (PyErr_Occurred()) SWIG_fail;
35507 }
35508 Py_INCREF(Py_None); resultobj = Py_None;
35509 return resultobj;
35510 fail:
35511 return NULL;
35512}
35513
35514
35515static PyObject *_wrap_Sizer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
35516 PyObject *resultobj;
35517 wxSizer *arg1 = (wxSizer *) 0 ;
35518 int arg2 ;
35519 PyObject *arg3 = (PyObject *) 0 ;
35520 int arg4 = (int) 0 ;
35521 int arg5 = (int) 0 ;
35522 int arg6 = (int) 0 ;
35523 PyObject *arg7 = (PyObject *) NULL ;
35524 PyObject * obj0 = 0 ;
35525 PyObject * obj1 = 0 ;
35526 PyObject * obj2 = 0 ;
35527 PyObject * obj3 = 0 ;
35528 PyObject * obj4 = 0 ;
35529 PyObject * obj5 = 0 ;
35530 PyObject * obj6 = 0 ;
35531 char *kwnames[] = {
35532 (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
35533 };
35534
35535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Sizer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
35536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35538 arg2 = (int) SWIG_AsInt(obj1);
35539 if (PyErr_Occurred()) SWIG_fail;
35540 arg3 = obj2;
35541 if (obj3) {
35542 arg4 = (int) SWIG_AsInt(obj3);
35543 if (PyErr_Occurred()) SWIG_fail;
35544 }
35545 if (obj4) {
35546 arg5 = (int) SWIG_AsInt(obj4);
35547 if (PyErr_Occurred()) SWIG_fail;
35548 }
35549 if (obj5) {
35550 arg6 = (int) SWIG_AsInt(obj5);
35551 if (PyErr_Occurred()) SWIG_fail;
35552 }
35553 if (obj6) {
35554 arg7 = obj6;
35555 }
35556 {
35557 PyThreadState* __tstate = wxPyBeginAllowThreads();
35558 wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
35559
35560 wxPyEndAllowThreads(__tstate);
35561 if (PyErr_Occurred()) SWIG_fail;
35562 }
35563 Py_INCREF(Py_None); resultobj = Py_None;
35564 return resultobj;
35565 fail:
35566 return NULL;
35567}
35568
35569
35570static PyObject *_wrap_Sizer_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) {
35571 PyObject *resultobj;
35572 wxSizer *arg1 = (wxSizer *) 0 ;
35573 PyObject *arg2 = (PyObject *) 0 ;
35574 int arg3 = (int) 0 ;
35575 int arg4 = (int) 0 ;
35576 int arg5 = (int) 0 ;
35577 PyObject *arg6 = (PyObject *) NULL ;
35578 PyObject * obj0 = 0 ;
35579 PyObject * obj1 = 0 ;
35580 PyObject * obj2 = 0 ;
35581 PyObject * obj3 = 0 ;
35582 PyObject * obj4 = 0 ;
35583 PyObject * obj5 = 0 ;
35584 char *kwnames[] = {
35585 (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
35586 };
35587
35588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
35589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35591 arg2 = obj1;
35592 if (obj2) {
35593 arg3 = (int) SWIG_AsInt(obj2);
35594 if (PyErr_Occurred()) SWIG_fail;
35595 }
35596 if (obj3) {
35597 arg4 = (int) SWIG_AsInt(obj3);
35598 if (PyErr_Occurred()) SWIG_fail;
35599 }
35600 if (obj4) {
35601 arg5 = (int) SWIG_AsInt(obj4);
35602 if (PyErr_Occurred()) SWIG_fail;
35603 }
35604 if (obj5) {
35605 arg6 = obj5;
35606 }
35607 {
35608 PyThreadState* __tstate = wxPyBeginAllowThreads();
35609 wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6);
35610
35611 wxPyEndAllowThreads(__tstate);
35612 if (PyErr_Occurred()) SWIG_fail;
35613 }
35614 Py_INCREF(Py_None); resultobj = Py_None;
35615 return resultobj;
35616 fail:
35617 return NULL;
35618}
35619
35620
35621static PyObject *_wrap_Sizer_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
35622 PyObject *resultobj;
35623 wxSizer *arg1 = (wxSizer *) 0 ;
35624 PyObject *arg2 = (PyObject *) 0 ;
35625 bool result;
35626 PyObject * obj0 = 0 ;
35627 PyObject * obj1 = 0 ;
35628 char *kwnames[] = {
35629 (char *) "self",(char *) "item", NULL
35630 };
35631
35632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) goto fail;
35633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35635 arg2 = obj1;
35636 {
35637 PyThreadState* __tstate = wxPyBeginAllowThreads();
35638 result = (bool)wxSizer_Remove(arg1,arg2);
35639
35640 wxPyEndAllowThreads(__tstate);
35641 if (PyErr_Occurred()) SWIG_fail;
35642 }
35643 {
35644 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35645 }
35646 return resultobj;
35647 fail:
35648 return NULL;
35649}
35650
35651
1a6bba1e
RD
35652static PyObject *_wrap_Sizer_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
35653 PyObject *resultobj;
35654 wxSizer *arg1 = (wxSizer *) 0 ;
35655 PyObject *arg2 = (PyObject *) 0 ;
35656 bool result;
35657 PyObject * obj0 = 0 ;
35658 PyObject * obj1 = 0 ;
35659 char *kwnames[] = {
35660 (char *) "self",(char *) "item", NULL
35661 };
35662
35663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Detach",kwnames,&obj0,&obj1)) goto fail;
35664 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35665 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35666 arg2 = obj1;
35667 {
35668 PyThreadState* __tstate = wxPyBeginAllowThreads();
35669 result = (bool)wxSizer_Detach(arg1,arg2);
35670
35671 wxPyEndAllowThreads(__tstate);
35672 if (PyErr_Occurred()) SWIG_fail;
35673 }
35674 {
35675 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35676 }
35677 return resultobj;
35678 fail:
35679 return NULL;
35680}
35681
35682
d55e5bfc
RD
35683static PyObject *_wrap_Sizer__SetItemMinSize(PyObject *self, PyObject *args, PyObject *kwargs) {
35684 PyObject *resultobj;
35685 wxSizer *arg1 = (wxSizer *) 0 ;
35686 PyObject *arg2 = (PyObject *) 0 ;
35687 wxSize *arg3 = 0 ;
35688 wxSize temp3 ;
35689 PyObject * obj0 = 0 ;
35690 PyObject * obj1 = 0 ;
35691 PyObject * obj2 = 0 ;
35692 char *kwnames[] = {
35693 (char *) "self",(char *) "item",(char *) "size", NULL
35694 };
35695
35696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
35697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35699 arg2 = obj1;
35700 {
35701 arg3 = &temp3;
35702 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
35703 }
35704 {
35705 PyThreadState* __tstate = wxPyBeginAllowThreads();
35706 wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3);
35707
35708 wxPyEndAllowThreads(__tstate);
35709 if (PyErr_Occurred()) SWIG_fail;
35710 }
35711 Py_INCREF(Py_None); resultobj = Py_None;
35712 return resultobj;
35713 fail:
35714 return NULL;
35715}
35716
35717
35718static PyObject *_wrap_Sizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) {
35719 PyObject *resultobj;
35720 wxSizer *arg1 = (wxSizer *) 0 ;
35721 wxSizerItem *arg2 = (wxSizerItem *) 0 ;
35722 PyObject * obj0 = 0 ;
35723 PyObject * obj1 = 0 ;
35724 char *kwnames[] = {
35725 (char *) "self",(char *) "item", NULL
35726 };
35727
35728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) goto fail;
35729 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35730 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35731 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem,
35732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35733 {
35734 PyThreadState* __tstate = wxPyBeginAllowThreads();
35735 (arg1)->Add(arg2);
35736
35737 wxPyEndAllowThreads(__tstate);
35738 if (PyErr_Occurred()) SWIG_fail;
35739 }
35740 Py_INCREF(Py_None); resultobj = Py_None;
35741 return resultobj;
35742 fail:
35743 return NULL;
35744}
35745
35746
35747static PyObject *_wrap_Sizer_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
35748 PyObject *resultobj;
35749 wxSizer *arg1 = (wxSizer *) 0 ;
35750 size_t arg2 ;
35751 wxSizerItem *arg3 = (wxSizerItem *) 0 ;
35752 PyObject * obj0 = 0 ;
35753 PyObject * obj1 = 0 ;
35754 PyObject * obj2 = 0 ;
35755 char *kwnames[] = {
35756 (char *) "self",(char *) "index",(char *) "item", NULL
35757 };
35758
35759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
35760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35762 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
35763 if (PyErr_Occurred()) SWIG_fail;
35764 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxSizerItem,
35765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35766 {
35767 PyThreadState* __tstate = wxPyBeginAllowThreads();
35768 (arg1)->Insert(arg2,arg3);
35769
35770 wxPyEndAllowThreads(__tstate);
35771 if (PyErr_Occurred()) SWIG_fail;
35772 }
35773 Py_INCREF(Py_None); resultobj = Py_None;
35774 return resultobj;
35775 fail:
35776 return NULL;
35777}
35778
35779
35780static PyObject *_wrap_Sizer_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) {
35781 PyObject *resultobj;
35782 wxSizer *arg1 = (wxSizer *) 0 ;
35783 wxSizerItem *arg2 = (wxSizerItem *) 0 ;
35784 PyObject * obj0 = 0 ;
35785 PyObject * obj1 = 0 ;
35786 char *kwnames[] = {
35787 (char *) "self",(char *) "item", NULL
35788 };
35789
35790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) goto fail;
35791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35793 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem,
35794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35795 {
35796 PyThreadState* __tstate = wxPyBeginAllowThreads();
35797 (arg1)->Prepend(arg2);
35798
35799 wxPyEndAllowThreads(__tstate);
35800 if (PyErr_Occurred()) SWIG_fail;
35801 }
35802 Py_INCREF(Py_None); resultobj = Py_None;
35803 return resultobj;
35804 fail:
35805 return NULL;
35806}
35807
35808
35809static PyObject *_wrap_Sizer_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) {
35810 PyObject *resultobj;
35811 wxSizer *arg1 = (wxSizer *) 0 ;
35812 int arg2 ;
35813 int arg3 ;
35814 int arg4 ;
35815 int arg5 ;
35816 PyObject * obj0 = 0 ;
35817 PyObject * obj1 = 0 ;
35818 PyObject * obj2 = 0 ;
35819 PyObject * obj3 = 0 ;
35820 PyObject * obj4 = 0 ;
35821 char *kwnames[] = {
35822 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
35823 };
35824
35825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Sizer_SetDimension",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
35826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35828 arg2 = (int) SWIG_AsInt(obj1);
35829 if (PyErr_Occurred()) SWIG_fail;
35830 arg3 = (int) SWIG_AsInt(obj2);
35831 if (PyErr_Occurred()) SWIG_fail;
35832 arg4 = (int) SWIG_AsInt(obj3);
35833 if (PyErr_Occurred()) SWIG_fail;
35834 arg5 = (int) SWIG_AsInt(obj4);
35835 if (PyErr_Occurred()) SWIG_fail;
35836 {
35837 PyThreadState* __tstate = wxPyBeginAllowThreads();
35838 (arg1)->SetDimension(arg2,arg3,arg4,arg5);
35839
35840 wxPyEndAllowThreads(__tstate);
35841 if (PyErr_Occurred()) SWIG_fail;
35842 }
35843 Py_INCREF(Py_None); resultobj = Py_None;
35844 return resultobj;
35845 fail:
35846 return NULL;
35847}
35848
35849
35850static PyObject *_wrap_Sizer_SetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) {
35851 PyObject *resultobj;
35852 wxSizer *arg1 = (wxSizer *) 0 ;
35853 wxSize *arg2 = 0 ;
35854 wxSize temp2 ;
35855 PyObject * obj0 = 0 ;
35856 PyObject * obj1 = 0 ;
35857 char *kwnames[] = {
35858 (char *) "self",(char *) "size", NULL
35859 };
35860
35861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) goto fail;
35862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35864 {
35865 arg2 = &temp2;
35866 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
35867 }
35868 {
35869 PyThreadState* __tstate = wxPyBeginAllowThreads();
35870 (arg1)->SetMinSize((wxSize const &)*arg2);
35871
35872 wxPyEndAllowThreads(__tstate);
35873 if (PyErr_Occurred()) SWIG_fail;
35874 }
35875 Py_INCREF(Py_None); resultobj = Py_None;
35876 return resultobj;
35877 fail:
35878 return NULL;
35879}
35880
35881
35882static PyObject *_wrap_Sizer_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
35883 PyObject *resultobj;
35884 wxSizer *arg1 = (wxSizer *) 0 ;
35885 wxSize result;
35886 PyObject * obj0 = 0 ;
35887 char *kwnames[] = {
35888 (char *) "self", NULL
35889 };
35890
35891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetSize",kwnames,&obj0)) goto fail;
35892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35894 {
35895 PyThreadState* __tstate = wxPyBeginAllowThreads();
35896 result = (arg1)->GetSize();
35897
35898 wxPyEndAllowThreads(__tstate);
35899 if (PyErr_Occurred()) SWIG_fail;
35900 }
35901 {
35902 wxSize * resultptr;
35903 resultptr = new wxSize((wxSize &) result);
35904 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
35905 }
35906 return resultobj;
35907 fail:
35908 return NULL;
35909}
35910
35911
35912static PyObject *_wrap_Sizer_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
35913 PyObject *resultobj;
35914 wxSizer *arg1 = (wxSizer *) 0 ;
35915 wxPoint result;
35916 PyObject * obj0 = 0 ;
35917 char *kwnames[] = {
35918 (char *) "self", NULL
35919 };
35920
35921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetPosition",kwnames,&obj0)) goto fail;
35922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35924 {
35925 PyThreadState* __tstate = wxPyBeginAllowThreads();
35926 result = (arg1)->GetPosition();
35927
35928 wxPyEndAllowThreads(__tstate);
35929 if (PyErr_Occurred()) SWIG_fail;
35930 }
35931 {
35932 wxPoint * resultptr;
35933 resultptr = new wxPoint((wxPoint &) result);
35934 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
35935 }
35936 return resultobj;
35937 fail:
35938 return NULL;
35939}
35940
35941
35942static PyObject *_wrap_Sizer_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) {
35943 PyObject *resultobj;
35944 wxSizer *arg1 = (wxSizer *) 0 ;
35945 wxSize result;
35946 PyObject * obj0 = 0 ;
35947 char *kwnames[] = {
35948 (char *) "self", NULL
35949 };
35950
35951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetMinSize",kwnames,&obj0)) goto fail;
35952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35954 {
35955 PyThreadState* __tstate = wxPyBeginAllowThreads();
35956 result = (arg1)->GetMinSize();
35957
35958 wxPyEndAllowThreads(__tstate);
35959 if (PyErr_Occurred()) SWIG_fail;
35960 }
35961 {
35962 wxSize * resultptr;
35963 resultptr = new wxSize((wxSize &) result);
35964 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
35965 }
35966 return resultobj;
35967 fail:
35968 return NULL;
35969}
35970
35971
35972static PyObject *_wrap_Sizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
35973 PyObject *resultobj;
35974 wxSizer *arg1 = (wxSizer *) 0 ;
35975 PyObject * obj0 = 0 ;
35976 char *kwnames[] = {
35977 (char *) "self", NULL
35978 };
35979
35980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_RecalcSizes",kwnames,&obj0)) goto fail;
35981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35983 {
35984 PyThreadState* __tstate = wxPyBeginAllowThreads();
35985 (arg1)->RecalcSizes();
35986
35987 wxPyEndAllowThreads(__tstate);
35988 if (PyErr_Occurred()) SWIG_fail;
35989 }
35990 Py_INCREF(Py_None); resultobj = Py_None;
35991 return resultobj;
35992 fail:
35993 return NULL;
35994}
35995
35996
35997static PyObject *_wrap_Sizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
35998 PyObject *resultobj;
35999 wxSizer *arg1 = (wxSizer *) 0 ;
36000 wxSize result;
36001 PyObject * obj0 = 0 ;
36002 char *kwnames[] = {
36003 (char *) "self", NULL
36004 };
36005
36006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_CalcMin",kwnames,&obj0)) goto fail;
36007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36009 {
36010 PyThreadState* __tstate = wxPyBeginAllowThreads();
36011 result = (arg1)->CalcMin();
36012
36013 wxPyEndAllowThreads(__tstate);
36014 if (PyErr_Occurred()) SWIG_fail;
36015 }
36016 {
36017 wxSize * resultptr;
36018 resultptr = new wxSize((wxSize &) result);
36019 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
36020 }
36021 return resultobj;
36022 fail:
36023 return NULL;
36024}
36025
36026
36027static PyObject *_wrap_Sizer_Layout(PyObject *self, PyObject *args, PyObject *kwargs) {
36028 PyObject *resultobj;
36029 wxSizer *arg1 = (wxSizer *) 0 ;
36030 PyObject * obj0 = 0 ;
36031 char *kwnames[] = {
36032 (char *) "self", NULL
36033 };
36034
36035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_Layout",kwnames,&obj0)) goto fail;
36036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36038 {
36039 PyThreadState* __tstate = wxPyBeginAllowThreads();
36040 (arg1)->Layout();
36041
36042 wxPyEndAllowThreads(__tstate);
36043 if (PyErr_Occurred()) SWIG_fail;
36044 }
36045 Py_INCREF(Py_None); resultobj = Py_None;
36046 return resultobj;
36047 fail:
36048 return NULL;
36049}
36050
36051
36052static PyObject *_wrap_Sizer_Fit(PyObject *self, PyObject *args, PyObject *kwargs) {
36053 PyObject *resultobj;
36054 wxSizer *arg1 = (wxSizer *) 0 ;
36055 wxWindow *arg2 = (wxWindow *) 0 ;
36056 wxSize result;
36057 PyObject * obj0 = 0 ;
36058 PyObject * obj1 = 0 ;
36059 char *kwnames[] = {
36060 (char *) "self",(char *) "window", NULL
36061 };
36062
36063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) goto fail;
36064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36066 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
36067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36068 {
36069 PyThreadState* __tstate = wxPyBeginAllowThreads();
36070 result = (arg1)->Fit(arg2);
36071
36072 wxPyEndAllowThreads(__tstate);
36073 if (PyErr_Occurred()) SWIG_fail;
36074 }
36075 {
36076 wxSize * resultptr;
36077 resultptr = new wxSize((wxSize &) result);
36078 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
36079 }
36080 return resultobj;
36081 fail:
36082 return NULL;
36083}
36084
36085
36086static PyObject *_wrap_Sizer_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) {
36087 PyObject *resultobj;
36088 wxSizer *arg1 = (wxSizer *) 0 ;
36089 wxWindow *arg2 = (wxWindow *) 0 ;
36090 PyObject * obj0 = 0 ;
36091 PyObject * obj1 = 0 ;
36092 char *kwnames[] = {
36093 (char *) "self",(char *) "window", NULL
36094 };
36095
36096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) goto fail;
36097 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36098 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36099 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
36100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36101 {
36102 PyThreadState* __tstate = wxPyBeginAllowThreads();
36103 (arg1)->FitInside(arg2);
36104
36105 wxPyEndAllowThreads(__tstate);
36106 if (PyErr_Occurred()) SWIG_fail;
36107 }
36108 Py_INCREF(Py_None); resultobj = Py_None;
36109 return resultobj;
36110 fail:
36111 return NULL;
36112}
36113
36114
36115static PyObject *_wrap_Sizer_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) {
36116 PyObject *resultobj;
36117 wxSizer *arg1 = (wxSizer *) 0 ;
36118 wxWindow *arg2 = (wxWindow *) 0 ;
36119 PyObject * obj0 = 0 ;
36120 PyObject * obj1 = 0 ;
36121 char *kwnames[] = {
36122 (char *) "self",(char *) "window", NULL
36123 };
36124
36125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) goto fail;
36126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36128 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
36129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36130 {
36131 PyThreadState* __tstate = wxPyBeginAllowThreads();
36132 (arg1)->SetSizeHints(arg2);
36133
36134 wxPyEndAllowThreads(__tstate);
36135 if (PyErr_Occurred()) SWIG_fail;
36136 }
36137 Py_INCREF(Py_None); resultobj = Py_None;
36138 return resultobj;
36139 fail:
36140 return NULL;
36141}
36142
36143
36144static PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) {
36145 PyObject *resultobj;
36146 wxSizer *arg1 = (wxSizer *) 0 ;
36147 wxWindow *arg2 = (wxWindow *) 0 ;
36148 PyObject * obj0 = 0 ;
36149 PyObject * obj1 = 0 ;
36150 char *kwnames[] = {
36151 (char *) "self",(char *) "window", NULL
36152 };
36153
36154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) goto fail;
36155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36157 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
36158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36159 {
36160 PyThreadState* __tstate = wxPyBeginAllowThreads();
36161 (arg1)->SetVirtualSizeHints(arg2);
36162
36163 wxPyEndAllowThreads(__tstate);
36164 if (PyErr_Occurred()) SWIG_fail;
36165 }
36166 Py_INCREF(Py_None); resultobj = Py_None;
36167 return resultobj;
36168 fail:
36169 return NULL;
36170}
36171
36172
36173static PyObject *_wrap_Sizer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
36174 PyObject *resultobj;
36175 wxSizer *arg1 = (wxSizer *) 0 ;
36176 bool arg2 = (bool) False ;
36177 PyObject * obj0 = 0 ;
36178 PyObject * obj1 = 0 ;
36179 char *kwnames[] = {
248ed943 36180 (char *) "self",(char *) "deleteWindows", NULL
d55e5bfc
RD
36181 };
36182
36183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) goto fail;
36184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36186 if (obj1) {
36187 arg2 = (bool) SWIG_AsBool(obj1);
36188 if (PyErr_Occurred()) SWIG_fail;
36189 }
36190 {
36191 PyThreadState* __tstate = wxPyBeginAllowThreads();
36192 (arg1)->Clear(arg2);
36193
36194 wxPyEndAllowThreads(__tstate);
36195 if (PyErr_Occurred()) SWIG_fail;
36196 }
36197 Py_INCREF(Py_None); resultobj = Py_None;
36198 return resultobj;
36199 fail:
36200 return NULL;
36201}
36202
36203
36204static PyObject *_wrap_Sizer_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) {
36205 PyObject *resultobj;
36206 wxSizer *arg1 = (wxSizer *) 0 ;
36207 PyObject * obj0 = 0 ;
36208 char *kwnames[] = {
36209 (char *) "self", NULL
36210 };
36211
36212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_DeleteWindows",kwnames,&obj0)) goto fail;
36213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36215 {
36216 PyThreadState* __tstate = wxPyBeginAllowThreads();
36217 (arg1)->DeleteWindows();
36218
36219 wxPyEndAllowThreads(__tstate);
36220 if (PyErr_Occurred()) SWIG_fail;
36221 }
36222 Py_INCREF(Py_None); resultobj = Py_None;
36223 return resultobj;
36224 fail:
36225 return NULL;
36226}
36227
36228
36229static PyObject *_wrap_Sizer_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
36230 PyObject *resultobj;
36231 wxSizer *arg1 = (wxSizer *) 0 ;
36232 PyObject *result;
36233 PyObject * obj0 = 0 ;
36234 char *kwnames[] = {
36235 (char *) "self", NULL
36236 };
36237
36238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetChildren",kwnames,&obj0)) goto fail;
36239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36241 {
36242 PyThreadState* __tstate = wxPyBeginAllowThreads();
36243 result = (PyObject *)wxSizer_GetChildren(arg1);
36244
36245 wxPyEndAllowThreads(__tstate);
36246 if (PyErr_Occurred()) SWIG_fail;
36247 }
36248 resultobj = result;
36249 return resultobj;
36250 fail:
36251 return NULL;
36252}
36253
36254
36255static PyObject *_wrap_Sizer_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
36256 PyObject *resultobj;
36257 wxSizer *arg1 = (wxSizer *) 0 ;
36258 PyObject *arg2 = (PyObject *) 0 ;
36259 bool arg3 = (bool) True ;
36260 PyObject * obj0 = 0 ;
36261 PyObject * obj1 = 0 ;
36262 PyObject * obj2 = 0 ;
36263 char *kwnames[] = {
36264 (char *) "self",(char *) "item",(char *) "show", NULL
36265 };
36266
36267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Sizer_Show",kwnames,&obj0,&obj1,&obj2)) goto fail;
36268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36270 arg2 = obj1;
36271 if (obj2) {
36272 arg3 = (bool) SWIG_AsBool(obj2);
36273 if (PyErr_Occurred()) SWIG_fail;
36274 }
36275 {
36276 PyThreadState* __tstate = wxPyBeginAllowThreads();
36277 wxSizer_Show(arg1,arg2,arg3);
36278
36279 wxPyEndAllowThreads(__tstate);
36280 if (PyErr_Occurred()) SWIG_fail;
36281 }
36282 Py_INCREF(Py_None); resultobj = Py_None;
36283 return resultobj;
36284 fail:
36285 return NULL;
36286}
36287
36288
d55e5bfc
RD
36289static PyObject *_wrap_Sizer_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) {
36290 PyObject *resultobj;
36291 wxSizer *arg1 = (wxSizer *) 0 ;
36292 PyObject *arg2 = (PyObject *) 0 ;
36293 bool result;
36294 PyObject * obj0 = 0 ;
36295 PyObject * obj1 = 0 ;
36296 char *kwnames[] = {
36297 (char *) "self",(char *) "item", NULL
36298 };
36299
36300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) goto fail;
36301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36303 arg2 = obj1;
36304 {
36305 PyThreadState* __tstate = wxPyBeginAllowThreads();
36306 result = (bool)wxSizer_IsShown(arg1,arg2);
36307
36308 wxPyEndAllowThreads(__tstate);
36309 if (PyErr_Occurred()) SWIG_fail;
36310 }
36311 {
36312 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36313 }
36314 return resultobj;
36315 fail:
36316 return NULL;
36317}
36318
36319
36320static PyObject *_wrap_Sizer_ShowItems(PyObject *self, PyObject *args, PyObject *kwargs) {
36321 PyObject *resultobj;
36322 wxSizer *arg1 = (wxSizer *) 0 ;
36323 bool arg2 ;
36324 PyObject * obj0 = 0 ;
36325 PyObject * obj1 = 0 ;
36326 char *kwnames[] = {
36327 (char *) "self",(char *) "show", NULL
36328 };
36329
36330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) goto fail;
36331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36333 arg2 = (bool) SWIG_AsBool(obj1);
36334 if (PyErr_Occurred()) SWIG_fail;
36335 {
36336 PyThreadState* __tstate = wxPyBeginAllowThreads();
36337 (arg1)->ShowItems(arg2);
36338
36339 wxPyEndAllowThreads(__tstate);
36340 if (PyErr_Occurred()) SWIG_fail;
36341 }
36342 Py_INCREF(Py_None); resultobj = Py_None;
36343 return resultobj;
36344 fail:
36345 return NULL;
36346}
36347
36348
36349static PyObject * Sizer_swigregister(PyObject *self, PyObject *args) {
36350 PyObject *obj;
36351 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
36352 SWIG_TypeClientData(SWIGTYPE_p_wxSizer, obj);
36353 Py_INCREF(obj);
36354 return Py_BuildValue((char *)"");
36355}
36356static PyObject *_wrap_new_PySizer(PyObject *self, PyObject *args, PyObject *kwargs) {
36357 PyObject *resultobj;
36358 wxPySizer *result;
36359 char *kwnames[] = {
36360 NULL
36361 };
36362
36363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PySizer",kwnames)) goto fail;
36364 {
36365 PyThreadState* __tstate = wxPyBeginAllowThreads();
36366 result = (wxPySizer *)new wxPySizer();
36367
36368 wxPyEndAllowThreads(__tstate);
36369 if (PyErr_Occurred()) SWIG_fail;
36370 }
36371 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPySizer, 1);
36372 return resultobj;
36373 fail:
36374 return NULL;
36375}
36376
36377
36378static PyObject *_wrap_PySizer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
36379 PyObject *resultobj;
36380 wxPySizer *arg1 = (wxPySizer *) 0 ;
36381 PyObject *arg2 = (PyObject *) 0 ;
36382 PyObject *arg3 = (PyObject *) 0 ;
36383 PyObject * obj0 = 0 ;
36384 PyObject * obj1 = 0 ;
36385 PyObject * obj2 = 0 ;
36386 char *kwnames[] = {
36387 (char *) "self",(char *) "self",(char *) "_class", NULL
36388 };
36389
36390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
36391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPySizer,
36392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36393 arg2 = obj1;
36394 arg3 = obj2;
36395 {
36396 PyThreadState* __tstate = wxPyBeginAllowThreads();
36397 (arg1)->_setCallbackInfo(arg2,arg3);
36398
36399 wxPyEndAllowThreads(__tstate);
36400 if (PyErr_Occurred()) SWIG_fail;
36401 }
36402 Py_INCREF(Py_None); resultobj = Py_None;
36403 return resultobj;
36404 fail:
36405 return NULL;
36406}
36407
36408
36409static PyObject * PySizer_swigregister(PyObject *self, PyObject *args) {
36410 PyObject *obj;
36411 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
36412 SWIG_TypeClientData(SWIGTYPE_p_wxPySizer, obj);
36413 Py_INCREF(obj);
36414 return Py_BuildValue((char *)"");
36415}
36416static PyObject *_wrap_new_BoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
36417 PyObject *resultobj;
36418 int arg1 = (int) wxHORIZONTAL ;
36419 wxBoxSizer *result;
36420 PyObject * obj0 = 0 ;
36421 char *kwnames[] = {
36422 (char *) "orient", NULL
36423 };
36424
36425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BoxSizer",kwnames,&obj0)) goto fail;
36426 if (obj0) {
36427 arg1 = (int) SWIG_AsInt(obj0);
36428 if (PyErr_Occurred()) SWIG_fail;
36429 }
36430 {
36431 PyThreadState* __tstate = wxPyBeginAllowThreads();
36432 result = (wxBoxSizer *)new wxBoxSizer(arg1);
36433
36434 wxPyEndAllowThreads(__tstate);
36435 if (PyErr_Occurred()) SWIG_fail;
36436 }
36437 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBoxSizer, 1);
36438 return resultobj;
36439 fail:
36440 return NULL;
36441}
36442
36443
36444static PyObject *_wrap_BoxSizer_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
36445 PyObject *resultobj;
36446 wxBoxSizer *arg1 = (wxBoxSizer *) 0 ;
36447 int result;
36448 PyObject * obj0 = 0 ;
36449 char *kwnames[] = {
36450 (char *) "self", NULL
36451 };
36452
36453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_GetOrientation",kwnames,&obj0)) goto fail;
36454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer,
36455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36456 {
36457 PyThreadState* __tstate = wxPyBeginAllowThreads();
36458 result = (int)(arg1)->GetOrientation();
36459
36460 wxPyEndAllowThreads(__tstate);
36461 if (PyErr_Occurred()) SWIG_fail;
36462 }
36463 resultobj = SWIG_FromInt((int)result);
36464 return resultobj;
36465 fail:
36466 return NULL;
36467}
36468
36469
36470static PyObject *_wrap_BoxSizer_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
36471 PyObject *resultobj;
36472 wxBoxSizer *arg1 = (wxBoxSizer *) 0 ;
36473 int arg2 ;
36474 PyObject * obj0 = 0 ;
36475 PyObject * obj1 = 0 ;
36476 char *kwnames[] = {
36477 (char *) "self",(char *) "orient", NULL
36478 };
36479
36480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BoxSizer_SetOrientation",kwnames,&obj0,&obj1)) goto fail;
36481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer,
36482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36483 arg2 = (int) SWIG_AsInt(obj1);
36484 if (PyErr_Occurred()) SWIG_fail;
36485 {
36486 PyThreadState* __tstate = wxPyBeginAllowThreads();
36487 (arg1)->SetOrientation(arg2);
36488
36489 wxPyEndAllowThreads(__tstate);
36490 if (PyErr_Occurred()) SWIG_fail;
36491 }
36492 Py_INCREF(Py_None); resultobj = Py_None;
36493 return resultobj;
36494 fail:
36495 return NULL;
36496}
36497
36498
d55e5bfc
RD
36499static PyObject * BoxSizer_swigregister(PyObject *self, PyObject *args) {
36500 PyObject *obj;
36501 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
36502 SWIG_TypeClientData(SWIGTYPE_p_wxBoxSizer, obj);
36503 Py_INCREF(obj);
36504 return Py_BuildValue((char *)"");
36505}
36506static PyObject *_wrap_new_StaticBoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
36507 PyObject *resultobj;
36508 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
36509 int arg2 = (int) wxHORIZONTAL ;
36510 wxStaticBoxSizer *result;
36511 PyObject * obj0 = 0 ;
36512 PyObject * obj1 = 0 ;
36513 char *kwnames[] = {
36514 (char *) "box",(char *) "orient", NULL
36515 };
36516
36517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_StaticBoxSizer",kwnames,&obj0,&obj1)) goto fail;
36518 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox,
36519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36520 if (obj1) {
36521 arg2 = (int) SWIG_AsInt(obj1);
36522 if (PyErr_Occurred()) SWIG_fail;
36523 }
36524 {
36525 PyThreadState* __tstate = wxPyBeginAllowThreads();
36526 result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2);
36527
36528 wxPyEndAllowThreads(__tstate);
36529 if (PyErr_Occurred()) SWIG_fail;
36530 }
36531 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBoxSizer, 1);
36532 return resultobj;
36533 fail:
36534 return NULL;
36535}
36536
36537
36538static PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) {
36539 PyObject *resultobj;
36540 wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ;
36541 wxStaticBox *result;
36542 PyObject * obj0 = 0 ;
36543 char *kwnames[] = {
36544 (char *) "self", NULL
36545 };
36546
36547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_GetStaticBox",kwnames,&obj0)) goto fail;
36548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer,
36549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36550 {
36551 PyThreadState* __tstate = wxPyBeginAllowThreads();
36552 result = (wxStaticBox *)(arg1)->GetStaticBox();
36553
36554 wxPyEndAllowThreads(__tstate);
36555 if (PyErr_Occurred()) SWIG_fail;
36556 }
36557 {
412d302d 36558 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
36559 }
36560 return resultobj;
36561 fail:
36562 return NULL;
36563}
36564
36565
d55e5bfc
RD
36566static PyObject * StaticBoxSizer_swigregister(PyObject *self, PyObject *args) {
36567 PyObject *obj;
36568 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
36569 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBoxSizer, obj);
36570 Py_INCREF(obj);
36571 return Py_BuildValue((char *)"");
36572}
36573static PyObject *_wrap_new_GridSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
36574 PyObject *resultobj;
36575 int arg1 = (int) 1 ;
36576 int arg2 = (int) 0 ;
36577 int arg3 = (int) 0 ;
36578 int arg4 = (int) 0 ;
36579 wxGridSizer *result;
36580 PyObject * obj0 = 0 ;
36581 PyObject * obj1 = 0 ;
36582 PyObject * obj2 = 0 ;
36583 PyObject * obj3 = 0 ;
36584 char *kwnames[] = {
36585 (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL
36586 };
36587
36588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_GridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
36589 if (obj0) {
36590 arg1 = (int) SWIG_AsInt(obj0);
36591 if (PyErr_Occurred()) SWIG_fail;
36592 }
36593 if (obj1) {
36594 arg2 = (int) SWIG_AsInt(obj1);
36595 if (PyErr_Occurred()) SWIG_fail;
36596 }
36597 if (obj2) {
36598 arg3 = (int) SWIG_AsInt(obj2);
36599 if (PyErr_Occurred()) SWIG_fail;
36600 }
36601 if (obj3) {
36602 arg4 = (int) SWIG_AsInt(obj3);
36603 if (PyErr_Occurred()) SWIG_fail;
36604 }
36605 {
36606 PyThreadState* __tstate = wxPyBeginAllowThreads();
36607 result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4);
36608
36609 wxPyEndAllowThreads(__tstate);
36610 if (PyErr_Occurred()) SWIG_fail;
36611 }
36612 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridSizer, 1);
36613 return resultobj;
36614 fail:
36615 return NULL;
36616}
36617
36618
d55e5bfc
RD
36619static PyObject *_wrap_GridSizer_SetCols(PyObject *self, PyObject *args, PyObject *kwargs) {
36620 PyObject *resultobj;
36621 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36622 int arg2 ;
36623 PyObject * obj0 = 0 ;
36624 PyObject * obj1 = 0 ;
36625 char *kwnames[] = {
36626 (char *) "self",(char *) "cols", NULL
36627 };
36628
36629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetCols",kwnames,&obj0,&obj1)) goto fail;
36630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36632 arg2 = (int) SWIG_AsInt(obj1);
36633 if (PyErr_Occurred()) SWIG_fail;
36634 {
36635 PyThreadState* __tstate = wxPyBeginAllowThreads();
36636 (arg1)->SetCols(arg2);
36637
36638 wxPyEndAllowThreads(__tstate);
36639 if (PyErr_Occurred()) SWIG_fail;
36640 }
36641 Py_INCREF(Py_None); resultobj = Py_None;
36642 return resultobj;
36643 fail:
36644 return NULL;
36645}
36646
36647
36648static PyObject *_wrap_GridSizer_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) {
36649 PyObject *resultobj;
36650 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36651 int arg2 ;
36652 PyObject * obj0 = 0 ;
36653 PyObject * obj1 = 0 ;
36654 char *kwnames[] = {
36655 (char *) "self",(char *) "rows", NULL
36656 };
36657
36658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetRows",kwnames,&obj0,&obj1)) goto fail;
36659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36661 arg2 = (int) SWIG_AsInt(obj1);
36662 if (PyErr_Occurred()) SWIG_fail;
36663 {
36664 PyThreadState* __tstate = wxPyBeginAllowThreads();
36665 (arg1)->SetRows(arg2);
36666
36667 wxPyEndAllowThreads(__tstate);
36668 if (PyErr_Occurred()) SWIG_fail;
36669 }
36670 Py_INCREF(Py_None); resultobj = Py_None;
36671 return resultobj;
36672 fail:
36673 return NULL;
36674}
36675
36676
36677static PyObject *_wrap_GridSizer_SetVGap(PyObject *self, PyObject *args, PyObject *kwargs) {
36678 PyObject *resultobj;
36679 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36680 int arg2 ;
36681 PyObject * obj0 = 0 ;
36682 PyObject * obj1 = 0 ;
36683 char *kwnames[] = {
36684 (char *) "self",(char *) "gap", NULL
36685 };
36686
36687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetVGap",kwnames,&obj0,&obj1)) goto fail;
36688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36690 arg2 = (int) SWIG_AsInt(obj1);
36691 if (PyErr_Occurred()) SWIG_fail;
36692 {
36693 PyThreadState* __tstate = wxPyBeginAllowThreads();
36694 (arg1)->SetVGap(arg2);
36695
36696 wxPyEndAllowThreads(__tstate);
36697 if (PyErr_Occurred()) SWIG_fail;
36698 }
36699 Py_INCREF(Py_None); resultobj = Py_None;
36700 return resultobj;
36701 fail:
36702 return NULL;
36703}
36704
36705
36706static PyObject *_wrap_GridSizer_SetHGap(PyObject *self, PyObject *args, PyObject *kwargs) {
36707 PyObject *resultobj;
36708 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36709 int arg2 ;
36710 PyObject * obj0 = 0 ;
36711 PyObject * obj1 = 0 ;
36712 char *kwnames[] = {
36713 (char *) "self",(char *) "gap", NULL
36714 };
36715
36716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetHGap",kwnames,&obj0,&obj1)) goto fail;
36717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36719 arg2 = (int) SWIG_AsInt(obj1);
36720 if (PyErr_Occurred()) SWIG_fail;
36721 {
36722 PyThreadState* __tstate = wxPyBeginAllowThreads();
36723 (arg1)->SetHGap(arg2);
36724
36725 wxPyEndAllowThreads(__tstate);
36726 if (PyErr_Occurred()) SWIG_fail;
36727 }
36728 Py_INCREF(Py_None); resultobj = Py_None;
36729 return resultobj;
36730 fail:
36731 return NULL;
36732}
36733
36734
36735static PyObject *_wrap_GridSizer_GetCols(PyObject *self, PyObject *args, PyObject *kwargs) {
36736 PyObject *resultobj;
36737 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36738 int result;
36739 PyObject * obj0 = 0 ;
36740 char *kwnames[] = {
36741 (char *) "self", NULL
36742 };
36743
36744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetCols",kwnames,&obj0)) goto fail;
36745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36747 {
36748 PyThreadState* __tstate = wxPyBeginAllowThreads();
36749 result = (int)(arg1)->GetCols();
36750
36751 wxPyEndAllowThreads(__tstate);
36752 if (PyErr_Occurred()) SWIG_fail;
36753 }
36754 resultobj = SWIG_FromInt((int)result);
36755 return resultobj;
36756 fail:
36757 return NULL;
36758}
36759
36760
36761static PyObject *_wrap_GridSizer_GetRows(PyObject *self, PyObject *args, PyObject *kwargs) {
36762 PyObject *resultobj;
36763 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36764 int result;
36765 PyObject * obj0 = 0 ;
36766 char *kwnames[] = {
36767 (char *) "self", NULL
36768 };
36769
36770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetRows",kwnames,&obj0)) goto fail;
36771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36773 {
36774 PyThreadState* __tstate = wxPyBeginAllowThreads();
36775 result = (int)(arg1)->GetRows();
36776
36777 wxPyEndAllowThreads(__tstate);
36778 if (PyErr_Occurred()) SWIG_fail;
36779 }
36780 resultobj = SWIG_FromInt((int)result);
36781 return resultobj;
36782 fail:
36783 return NULL;
36784}
36785
36786
36787static PyObject *_wrap_GridSizer_GetVGap(PyObject *self, PyObject *args, PyObject *kwargs) {
36788 PyObject *resultobj;
36789 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36790 int result;
36791 PyObject * obj0 = 0 ;
36792 char *kwnames[] = {
36793 (char *) "self", NULL
36794 };
36795
36796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetVGap",kwnames,&obj0)) goto fail;
36797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36799 {
36800 PyThreadState* __tstate = wxPyBeginAllowThreads();
36801 result = (int)(arg1)->GetVGap();
36802
36803 wxPyEndAllowThreads(__tstate);
36804 if (PyErr_Occurred()) SWIG_fail;
36805 }
36806 resultobj = SWIG_FromInt((int)result);
36807 return resultobj;
36808 fail:
36809 return NULL;
36810}
36811
36812
36813static PyObject *_wrap_GridSizer_GetHGap(PyObject *self, PyObject *args, PyObject *kwargs) {
36814 PyObject *resultobj;
36815 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36816 int result;
36817 PyObject * obj0 = 0 ;
36818 char *kwnames[] = {
36819 (char *) "self", NULL
36820 };
36821
36822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetHGap",kwnames,&obj0)) goto fail;
36823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36825 {
36826 PyThreadState* __tstate = wxPyBeginAllowThreads();
36827 result = (int)(arg1)->GetHGap();
36828
36829 wxPyEndAllowThreads(__tstate);
36830 if (PyErr_Occurred()) SWIG_fail;
36831 }
36832 resultobj = SWIG_FromInt((int)result);
36833 return resultobj;
36834 fail:
36835 return NULL;
36836}
36837
36838
36839static PyObject * GridSizer_swigregister(PyObject *self, PyObject *args) {
36840 PyObject *obj;
36841 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
36842 SWIG_TypeClientData(SWIGTYPE_p_wxGridSizer, obj);
36843 Py_INCREF(obj);
36844 return Py_BuildValue((char *)"");
36845}
36846static PyObject *_wrap_new_FlexGridSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
36847 PyObject *resultobj;
36848 int arg1 = (int) 1 ;
36849 int arg2 = (int) 0 ;
36850 int arg3 = (int) 0 ;
36851 int arg4 = (int) 0 ;
36852 wxFlexGridSizer *result;
36853 PyObject * obj0 = 0 ;
36854 PyObject * obj1 = 0 ;
36855 PyObject * obj2 = 0 ;
36856 PyObject * obj3 = 0 ;
36857 char *kwnames[] = {
36858 (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL
36859 };
36860
36861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_FlexGridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
36862 if (obj0) {
36863 arg1 = (int) SWIG_AsInt(obj0);
36864 if (PyErr_Occurred()) SWIG_fail;
36865 }
36866 if (obj1) {
36867 arg2 = (int) SWIG_AsInt(obj1);
36868 if (PyErr_Occurred()) SWIG_fail;
36869 }
36870 if (obj2) {
36871 arg3 = (int) SWIG_AsInt(obj2);
36872 if (PyErr_Occurred()) SWIG_fail;
36873 }
36874 if (obj3) {
36875 arg4 = (int) SWIG_AsInt(obj3);
36876 if (PyErr_Occurred()) SWIG_fail;
36877 }
36878 {
36879 PyThreadState* __tstate = wxPyBeginAllowThreads();
36880 result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4);
36881
36882 wxPyEndAllowThreads(__tstate);
36883 if (PyErr_Occurred()) SWIG_fail;
36884 }
36885 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFlexGridSizer, 1);
36886 return resultobj;
36887 fail:
36888 return NULL;
36889}
36890
36891
d55e5bfc
RD
36892static PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) {
36893 PyObject *resultobj;
36894 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36895 size_t arg2 ;
36896 int arg3 = (int) 0 ;
36897 PyObject * obj0 = 0 ;
36898 PyObject * obj1 = 0 ;
36899 PyObject * obj2 = 0 ;
36900 char *kwnames[] = {
36901 (char *) "self",(char *) "idx",(char *) "proportion", NULL
36902 };
36903
36904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&obj2)) goto fail;
36905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36907 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
36908 if (PyErr_Occurred()) SWIG_fail;
36909 if (obj2) {
36910 arg3 = (int) SWIG_AsInt(obj2);
36911 if (PyErr_Occurred()) SWIG_fail;
36912 }
36913 {
36914 PyThreadState* __tstate = wxPyBeginAllowThreads();
36915 (arg1)->AddGrowableRow(arg2,arg3);
36916
36917 wxPyEndAllowThreads(__tstate);
36918 if (PyErr_Occurred()) SWIG_fail;
36919 }
36920 Py_INCREF(Py_None); resultobj = Py_None;
36921 return resultobj;
36922 fail:
36923 return NULL;
36924}
36925
36926
36927static PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) {
36928 PyObject *resultobj;
36929 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36930 size_t arg2 ;
36931 PyObject * obj0 = 0 ;
36932 PyObject * obj1 = 0 ;
36933 char *kwnames[] = {
36934 (char *) "self",(char *) "idx", NULL
36935 };
36936
36937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) goto fail;
36938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36940 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
36941 if (PyErr_Occurred()) SWIG_fail;
36942 {
36943 PyThreadState* __tstate = wxPyBeginAllowThreads();
36944 (arg1)->RemoveGrowableRow(arg2);
36945
36946 wxPyEndAllowThreads(__tstate);
36947 if (PyErr_Occurred()) SWIG_fail;
36948 }
36949 Py_INCREF(Py_None); resultobj = Py_None;
36950 return resultobj;
36951 fail:
36952 return NULL;
36953}
36954
36955
36956static PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) {
36957 PyObject *resultobj;
36958 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36959 size_t arg2 ;
36960 int arg3 = (int) 0 ;
36961 PyObject * obj0 = 0 ;
36962 PyObject * obj1 = 0 ;
36963 PyObject * obj2 = 0 ;
36964 char *kwnames[] = {
36965 (char *) "self",(char *) "idx",(char *) "proportion", NULL
36966 };
36967
36968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&obj2)) goto fail;
36969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36971 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
36972 if (PyErr_Occurred()) SWIG_fail;
36973 if (obj2) {
36974 arg3 = (int) SWIG_AsInt(obj2);
36975 if (PyErr_Occurred()) SWIG_fail;
36976 }
36977 {
36978 PyThreadState* __tstate = wxPyBeginAllowThreads();
36979 (arg1)->AddGrowableCol(arg2,arg3);
36980
36981 wxPyEndAllowThreads(__tstate);
36982 if (PyErr_Occurred()) SWIG_fail;
36983 }
36984 Py_INCREF(Py_None); resultobj = Py_None;
36985 return resultobj;
36986 fail:
36987 return NULL;
36988}
36989
36990
36991static PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) {
36992 PyObject *resultobj;
36993 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36994 size_t arg2 ;
36995 PyObject * obj0 = 0 ;
36996 PyObject * obj1 = 0 ;
36997 char *kwnames[] = {
36998 (char *) "self",(char *) "idx", NULL
36999 };
37000
37001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) goto fail;
37002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
37003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37004 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
37005 if (PyErr_Occurred()) SWIG_fail;
37006 {
37007 PyThreadState* __tstate = wxPyBeginAllowThreads();
37008 (arg1)->RemoveGrowableCol(arg2);
37009
37010 wxPyEndAllowThreads(__tstate);
37011 if (PyErr_Occurred()) SWIG_fail;
37012 }
37013 Py_INCREF(Py_None); resultobj = Py_None;
37014 return resultobj;
37015 fail:
37016 return NULL;
37017}
37018
37019
37020static PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) {
37021 PyObject *resultobj;
37022 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
37023 int arg2 ;
37024 PyObject * obj0 = 0 ;
37025 PyObject * obj1 = 0 ;
37026 char *kwnames[] = {
37027 (char *) "self",(char *) "direction", NULL
37028 };
37029
37030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&obj1)) goto fail;
37031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
37032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37033 arg2 = (int) SWIG_AsInt(obj1);
37034 if (PyErr_Occurred()) SWIG_fail;
37035 {
37036 PyThreadState* __tstate = wxPyBeginAllowThreads();
37037 (arg1)->SetFlexibleDirection(arg2);
37038
37039 wxPyEndAllowThreads(__tstate);
37040 if (PyErr_Occurred()) SWIG_fail;
37041 }
37042 Py_INCREF(Py_None); resultobj = Py_None;
37043 return resultobj;
37044 fail:
37045 return NULL;
37046}
37047
37048
37049static PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) {
37050 PyObject *resultobj;
37051 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
37052 int result;
37053 PyObject * obj0 = 0 ;
37054 char *kwnames[] = {
37055 (char *) "self", NULL
37056 };
37057
37058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetFlexibleDirection",kwnames,&obj0)) goto fail;
37059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
37060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37061 {
37062 PyThreadState* __tstate = wxPyBeginAllowThreads();
37063 result = (int)(arg1)->GetFlexibleDirection();
37064
37065 wxPyEndAllowThreads(__tstate);
37066 if (PyErr_Occurred()) SWIG_fail;
37067 }
37068 resultobj = SWIG_FromInt((int)result);
37069 return resultobj;
37070 fail:
37071 return NULL;
37072}
37073
37074
37075static PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) {
37076 PyObject *resultobj;
37077 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
37078 int arg2 ;
37079 PyObject * obj0 = 0 ;
37080 PyObject * obj1 = 0 ;
37081 char *kwnames[] = {
37082 (char *) "self",(char *) "mode", NULL
37083 };
37084
37085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&obj1)) goto fail;
37086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
37087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37088 arg2 = (wxFlexSizerGrowMode) SWIG_AsInt(obj1);
37089 if (PyErr_Occurred()) SWIG_fail;
37090 {
37091 PyThreadState* __tstate = wxPyBeginAllowThreads();
37092 (arg1)->SetNonFlexibleGrowMode((wxFlexSizerGrowMode )arg2);
37093
37094 wxPyEndAllowThreads(__tstate);
37095 if (PyErr_Occurred()) SWIG_fail;
37096 }
37097 Py_INCREF(Py_None); resultobj = Py_None;
37098 return resultobj;
37099 fail:
37100 return NULL;
37101}
37102
37103
37104static PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) {
37105 PyObject *resultobj;
37106 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
37107 int result;
37108 PyObject * obj0 = 0 ;
37109 char *kwnames[] = {
37110 (char *) "self", NULL
37111 };
37112
37113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetNonFlexibleGrowMode",kwnames,&obj0)) goto fail;
37114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
37115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37116 {
37117 PyThreadState* __tstate = wxPyBeginAllowThreads();
37118 result = (int)(arg1)->GetNonFlexibleGrowMode();
37119
37120 wxPyEndAllowThreads(__tstate);
37121 if (PyErr_Occurred()) SWIG_fail;
37122 }
37123 resultobj = SWIG_FromInt((int)result);
37124 return resultobj;
37125 fail:
37126 return NULL;
37127}
37128
37129
37130static PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *self, PyObject *args, PyObject *kwargs) {
37131 PyObject *resultobj;
37132 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
37133 wxArrayInt *result;
37134 PyObject * obj0 = 0 ;
37135 char *kwnames[] = {
37136 (char *) "self", NULL
37137 };
37138
37139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetRowHeights",kwnames,&obj0)) goto fail;
37140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
37141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37142 {
37143 PyThreadState* __tstate = wxPyBeginAllowThreads();
37144 {
37145 wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights();
37146 result = (wxArrayInt *) &_result_ref;
37147 }
37148
37149 wxPyEndAllowThreads(__tstate);
37150 if (PyErr_Occurred()) SWIG_fail;
37151 }
37152 {
37153 resultobj = PyList_New(0);
37154 size_t idx;
37155 for (idx = 0; idx < result->GetCount(); idx += 1) {
37156 PyObject* val = PyInt_FromLong( result->Item(idx) );
37157 PyList_Append(resultobj, val);
37158 Py_DECREF(val);
37159 }
37160 }
37161 return resultobj;
37162 fail:
37163 return NULL;
37164}
37165
37166
37167static PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *self, PyObject *args, PyObject *kwargs) {
37168 PyObject *resultobj;
37169 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
37170 wxArrayInt *result;
37171 PyObject * obj0 = 0 ;
37172 char *kwnames[] = {
37173 (char *) "self", NULL
37174 };
37175
37176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetColWidths",kwnames,&obj0)) goto fail;
37177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
37178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37179 {
37180 PyThreadState* __tstate = wxPyBeginAllowThreads();
37181 {
37182 wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths();
37183 result = (wxArrayInt *) &_result_ref;
37184 }
37185
37186 wxPyEndAllowThreads(__tstate);
37187 if (PyErr_Occurred()) SWIG_fail;
37188 }
37189 {
37190 resultobj = PyList_New(0);
37191 size_t idx;
37192 for (idx = 0; idx < result->GetCount(); idx += 1) {
37193 PyObject* val = PyInt_FromLong( result->Item(idx) );
37194 PyList_Append(resultobj, val);
37195 Py_DECREF(val);
37196 }
37197 }
37198 return resultobj;
37199 fail:
37200 return NULL;
37201}
37202
37203
37204static PyObject * FlexGridSizer_swigregister(PyObject *self, PyObject *args) {
37205 PyObject *obj;
37206 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
37207 SWIG_TypeClientData(SWIGTYPE_p_wxFlexGridSizer, obj);
37208 Py_INCREF(obj);
37209 return Py_BuildValue((char *)"");
37210}
37211static PyObject *_wrap_new_GBPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
37212 PyObject *resultobj;
37213 int arg1 = (int) 0 ;
37214 int arg2 = (int) 0 ;
37215 wxGBPosition *result;
37216 PyObject * obj0 = 0 ;
37217 PyObject * obj1 = 0 ;
37218 char *kwnames[] = {
37219 (char *) "row",(char *) "col", NULL
37220 };
37221
37222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBPosition",kwnames,&obj0,&obj1)) goto fail;
37223 if (obj0) {
37224 arg1 = (int) SWIG_AsInt(obj0);
37225 if (PyErr_Occurred()) SWIG_fail;
37226 }
37227 if (obj1) {
37228 arg2 = (int) SWIG_AsInt(obj1);
37229 if (PyErr_Occurred()) SWIG_fail;
37230 }
37231 {
37232 PyThreadState* __tstate = wxPyBeginAllowThreads();
37233 result = (wxGBPosition *)new wxGBPosition(arg1,arg2);
37234
37235 wxPyEndAllowThreads(__tstate);
37236 if (PyErr_Occurred()) SWIG_fail;
37237 }
37238 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBPosition, 1);
37239 return resultobj;
37240 fail:
37241 return NULL;
37242}
37243
37244
37245static PyObject *_wrap_GBPosition_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
37246 PyObject *resultobj;
37247 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
37248 int result;
37249 PyObject * obj0 = 0 ;
37250 char *kwnames[] = {
37251 (char *) "self", NULL
37252 };
37253
37254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetRow",kwnames,&obj0)) goto fail;
37255 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
37256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37257 {
37258 PyThreadState* __tstate = wxPyBeginAllowThreads();
37259 result = (int)((wxGBPosition const *)arg1)->GetRow();
37260
37261 wxPyEndAllowThreads(__tstate);
37262 if (PyErr_Occurred()) SWIG_fail;
37263 }
37264 resultobj = SWIG_FromInt((int)result);
37265 return resultobj;
37266 fail:
37267 return NULL;
37268}
37269
37270
37271static PyObject *_wrap_GBPosition_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
37272 PyObject *resultobj;
37273 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
37274 int result;
37275 PyObject * obj0 = 0 ;
37276 char *kwnames[] = {
37277 (char *) "self", NULL
37278 };
37279
37280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetCol",kwnames,&obj0)) goto fail;
37281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
37282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37283 {
37284 PyThreadState* __tstate = wxPyBeginAllowThreads();
37285 result = (int)((wxGBPosition const *)arg1)->GetCol();
37286
37287 wxPyEndAllowThreads(__tstate);
37288 if (PyErr_Occurred()) SWIG_fail;
37289 }
37290 resultobj = SWIG_FromInt((int)result);
37291 return resultobj;
37292 fail:
37293 return NULL;
37294}
37295
37296
37297static PyObject *_wrap_GBPosition_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
37298 PyObject *resultobj;
37299 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
37300 int arg2 ;
37301 PyObject * obj0 = 0 ;
37302 PyObject * obj1 = 0 ;
37303 char *kwnames[] = {
37304 (char *) "self",(char *) "row", NULL
37305 };
37306
37307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetRow",kwnames,&obj0,&obj1)) goto fail;
37308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
37309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37310 arg2 = (int) SWIG_AsInt(obj1);
37311 if (PyErr_Occurred()) SWIG_fail;
37312 {
37313 PyThreadState* __tstate = wxPyBeginAllowThreads();
37314 (arg1)->SetRow(arg2);
37315
37316 wxPyEndAllowThreads(__tstate);
37317 if (PyErr_Occurred()) SWIG_fail;
37318 }
37319 Py_INCREF(Py_None); resultobj = Py_None;
37320 return resultobj;
37321 fail:
37322 return NULL;
37323}
37324
37325
37326static PyObject *_wrap_GBPosition_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
37327 PyObject *resultobj;
37328 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
37329 int arg2 ;
37330 PyObject * obj0 = 0 ;
37331 PyObject * obj1 = 0 ;
37332 char *kwnames[] = {
37333 (char *) "self",(char *) "col", NULL
37334 };
37335
37336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetCol",kwnames,&obj0,&obj1)) goto fail;
37337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
37338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37339 arg2 = (int) SWIG_AsInt(obj1);
37340 if (PyErr_Occurred()) SWIG_fail;
37341 {
37342 PyThreadState* __tstate = wxPyBeginAllowThreads();
37343 (arg1)->SetCol(arg2);
37344
37345 wxPyEndAllowThreads(__tstate);
37346 if (PyErr_Occurred()) SWIG_fail;
37347 }
37348 Py_INCREF(Py_None); resultobj = Py_None;
37349 return resultobj;
37350 fail:
37351 return NULL;
37352}
37353
37354
37355static PyObject *_wrap_GBPosition___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
37356 PyObject *resultobj;
37357 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
37358 wxGBPosition *arg2 = 0 ;
37359 bool result;
37360 wxGBPosition temp2 ;
37361 PyObject * obj0 = 0 ;
37362 PyObject * obj1 = 0 ;
37363 char *kwnames[] = {
37364 (char *) "self",(char *) "other", NULL
37365 };
37366
37367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) goto fail;
37368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
37369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37370 {
37371 arg2 = &temp2;
37372 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
37373 }
37374 {
37375 PyThreadState* __tstate = wxPyBeginAllowThreads();
37376 result = (bool)(arg1)->operator ==((wxGBPosition const &)*arg2);
37377
37378 wxPyEndAllowThreads(__tstate);
37379 if (PyErr_Occurred()) SWIG_fail;
37380 }
37381 {
37382 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37383 }
37384 return resultobj;
37385 fail:
37386 return NULL;
37387}
37388
37389
37390static PyObject *_wrap_GBPosition___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
37391 PyObject *resultobj;
37392 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
37393 wxGBPosition *arg2 = 0 ;
37394 bool result;
37395 wxGBPosition temp2 ;
37396 PyObject * obj0 = 0 ;
37397 PyObject * obj1 = 0 ;
37398 char *kwnames[] = {
37399 (char *) "self",(char *) "other", NULL
37400 };
37401
37402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) goto fail;
37403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
37404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37405 {
37406 arg2 = &temp2;
37407 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
37408 }
37409 {
37410 PyThreadState* __tstate = wxPyBeginAllowThreads();
37411 result = (bool)(arg1)->operator !=((wxGBPosition const &)*arg2);
37412
37413 wxPyEndAllowThreads(__tstate);
37414 if (PyErr_Occurred()) SWIG_fail;
37415 }
37416 {
37417 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37418 }
37419 return resultobj;
37420 fail:
37421 return NULL;
37422}
37423
37424
37425static PyObject *_wrap_GBPosition_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
37426 PyObject *resultobj;
37427 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
37428 int arg2 = (int) 0 ;
37429 int arg3 = (int) 0 ;
37430 PyObject * obj0 = 0 ;
37431 PyObject * obj1 = 0 ;
37432 PyObject * obj2 = 0 ;
37433 char *kwnames[] = {
37434 (char *) "self",(char *) "row",(char *) "col", NULL
37435 };
37436
37437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBPosition_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
37438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
37439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37440 if (obj1) {
37441 arg2 = (int) SWIG_AsInt(obj1);
37442 if (PyErr_Occurred()) SWIG_fail;
37443 }
37444 if (obj2) {
37445 arg3 = (int) SWIG_AsInt(obj2);
37446 if (PyErr_Occurred()) SWIG_fail;
37447 }
37448 {
37449 PyThreadState* __tstate = wxPyBeginAllowThreads();
37450 wxGBPosition_Set(arg1,arg2,arg3);
37451
37452 wxPyEndAllowThreads(__tstate);
37453 if (PyErr_Occurred()) SWIG_fail;
37454 }
37455 Py_INCREF(Py_None); resultobj = Py_None;
37456 return resultobj;
37457 fail:
37458 return NULL;
37459}
37460
37461
37462static PyObject *_wrap_GBPosition_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
37463 PyObject *resultobj;
37464 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
37465 PyObject *result;
37466 PyObject * obj0 = 0 ;
37467 char *kwnames[] = {
37468 (char *) "self", NULL
37469 };
37470
37471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_Get",kwnames,&obj0)) goto fail;
37472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
37473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37474 {
37475 PyThreadState* __tstate = wxPyBeginAllowThreads();
37476 result = (PyObject *)wxGBPosition_Get(arg1);
37477
37478 wxPyEndAllowThreads(__tstate);
37479 if (PyErr_Occurred()) SWIG_fail;
37480 }
37481 resultobj = result;
37482 return resultobj;
37483 fail:
37484 return NULL;
37485}
37486
37487
37488static PyObject * GBPosition_swigregister(PyObject *self, PyObject *args) {
37489 PyObject *obj;
37490 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
37491 SWIG_TypeClientData(SWIGTYPE_p_wxGBPosition, obj);
37492 Py_INCREF(obj);
37493 return Py_BuildValue((char *)"");
37494}
37495static PyObject *_wrap_new_GBSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
37496 PyObject *resultobj;
37497 int arg1 = (int) 1 ;
37498 int arg2 = (int) 1 ;
37499 wxGBSpan *result;
37500 PyObject * obj0 = 0 ;
37501 PyObject * obj1 = 0 ;
37502 char *kwnames[] = {
37503 (char *) "rowspan",(char *) "colspan", NULL
37504 };
37505
37506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBSpan",kwnames,&obj0,&obj1)) goto fail;
37507 if (obj0) {
37508 arg1 = (int) SWIG_AsInt(obj0);
37509 if (PyErr_Occurred()) SWIG_fail;
37510 }
37511 if (obj1) {
37512 arg2 = (int) SWIG_AsInt(obj1);
37513 if (PyErr_Occurred()) SWIG_fail;
37514 }
37515 {
37516 PyThreadState* __tstate = wxPyBeginAllowThreads();
37517 result = (wxGBSpan *)new wxGBSpan(arg1,arg2);
37518
37519 wxPyEndAllowThreads(__tstate);
37520 if (PyErr_Occurred()) SWIG_fail;
37521 }
37522 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSpan, 1);
37523 return resultobj;
37524 fail:
37525 return NULL;
37526}
37527
37528
37529static PyObject *_wrap_GBSpan_GetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) {
37530 PyObject *resultobj;
37531 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37532 int result;
37533 PyObject * obj0 = 0 ;
37534 char *kwnames[] = {
37535 (char *) "self", NULL
37536 };
37537
37538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetRowspan",kwnames,&obj0)) goto fail;
37539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37541 {
37542 PyThreadState* __tstate = wxPyBeginAllowThreads();
37543 result = (int)((wxGBSpan const *)arg1)->GetRowspan();
37544
37545 wxPyEndAllowThreads(__tstate);
37546 if (PyErr_Occurred()) SWIG_fail;
37547 }
37548 resultobj = SWIG_FromInt((int)result);
37549 return resultobj;
37550 fail:
37551 return NULL;
37552}
37553
37554
37555static PyObject *_wrap_GBSpan_GetColspan(PyObject *self, PyObject *args, PyObject *kwargs) {
37556 PyObject *resultobj;
37557 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37558 int result;
37559 PyObject * obj0 = 0 ;
37560 char *kwnames[] = {
37561 (char *) "self", NULL
37562 };
37563
37564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetColspan",kwnames,&obj0)) goto fail;
37565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37567 {
37568 PyThreadState* __tstate = wxPyBeginAllowThreads();
37569 result = (int)((wxGBSpan const *)arg1)->GetColspan();
37570
37571 wxPyEndAllowThreads(__tstate);
37572 if (PyErr_Occurred()) SWIG_fail;
37573 }
37574 resultobj = SWIG_FromInt((int)result);
37575 return resultobj;
37576 fail:
37577 return NULL;
37578}
37579
37580
37581static PyObject *_wrap_GBSpan_SetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) {
37582 PyObject *resultobj;
37583 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37584 int arg2 ;
37585 PyObject * obj0 = 0 ;
37586 PyObject * obj1 = 0 ;
37587 char *kwnames[] = {
37588 (char *) "self",(char *) "rowspan", NULL
37589 };
37590
37591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetRowspan",kwnames,&obj0,&obj1)) goto fail;
37592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37594 arg2 = (int) SWIG_AsInt(obj1);
37595 if (PyErr_Occurred()) SWIG_fail;
37596 {
37597 PyThreadState* __tstate = wxPyBeginAllowThreads();
37598 (arg1)->SetRowspan(arg2);
37599
37600 wxPyEndAllowThreads(__tstate);
37601 if (PyErr_Occurred()) SWIG_fail;
37602 }
37603 Py_INCREF(Py_None); resultobj = Py_None;
37604 return resultobj;
37605 fail:
37606 return NULL;
37607}
37608
37609
37610static PyObject *_wrap_GBSpan_SetColspan(PyObject *self, PyObject *args, PyObject *kwargs) {
37611 PyObject *resultobj;
37612 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37613 int arg2 ;
37614 PyObject * obj0 = 0 ;
37615 PyObject * obj1 = 0 ;
37616 char *kwnames[] = {
37617 (char *) "self",(char *) "colspan", NULL
37618 };
37619
37620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetColspan",kwnames,&obj0,&obj1)) goto fail;
37621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37623 arg2 = (int) SWIG_AsInt(obj1);
37624 if (PyErr_Occurred()) SWIG_fail;
37625 {
37626 PyThreadState* __tstate = wxPyBeginAllowThreads();
37627 (arg1)->SetColspan(arg2);
37628
37629 wxPyEndAllowThreads(__tstate);
37630 if (PyErr_Occurred()) SWIG_fail;
37631 }
37632 Py_INCREF(Py_None); resultobj = Py_None;
37633 return resultobj;
37634 fail:
37635 return NULL;
37636}
37637
37638
37639static PyObject *_wrap_GBSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
37640 PyObject *resultobj;
37641 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37642 wxGBSpan *arg2 = 0 ;
37643 bool result;
37644 wxGBSpan temp2 ;
37645 PyObject * obj0 = 0 ;
37646 PyObject * obj1 = 0 ;
37647 char *kwnames[] = {
37648 (char *) "self",(char *) "other", NULL
37649 };
37650
37651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
37652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37654 {
37655 arg2 = &temp2;
37656 if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail;
37657 }
37658 {
37659 PyThreadState* __tstate = wxPyBeginAllowThreads();
37660 result = (bool)(arg1)->operator ==((wxGBSpan const &)*arg2);
37661
37662 wxPyEndAllowThreads(__tstate);
37663 if (PyErr_Occurred()) SWIG_fail;
37664 }
37665 {
37666 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37667 }
37668 return resultobj;
37669 fail:
37670 return NULL;
37671}
37672
37673
37674static PyObject *_wrap_GBSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
37675 PyObject *resultobj;
37676 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37677 wxGBSpan *arg2 = 0 ;
37678 bool result;
37679 wxGBSpan temp2 ;
37680 PyObject * obj0 = 0 ;
37681 PyObject * obj1 = 0 ;
37682 char *kwnames[] = {
37683 (char *) "self",(char *) "other", NULL
37684 };
37685
37686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
37687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37689 {
37690 arg2 = &temp2;
37691 if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail;
37692 }
37693 {
37694 PyThreadState* __tstate = wxPyBeginAllowThreads();
37695 result = (bool)(arg1)->operator !=((wxGBSpan const &)*arg2);
37696
37697 wxPyEndAllowThreads(__tstate);
37698 if (PyErr_Occurred()) SWIG_fail;
37699 }
37700 {
37701 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37702 }
37703 return resultobj;
37704 fail:
37705 return NULL;
37706}
37707
37708
37709static PyObject *_wrap_GBSpan_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
37710 PyObject *resultobj;
37711 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37712 int arg2 = (int) 1 ;
37713 int arg3 = (int) 1 ;
37714 PyObject * obj0 = 0 ;
37715 PyObject * obj1 = 0 ;
37716 PyObject * obj2 = 0 ;
37717 char *kwnames[] = {
37718 (char *) "self",(char *) "rowspan",(char *) "colspan", NULL
37719 };
37720
37721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBSpan_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
37722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37724 if (obj1) {
37725 arg2 = (int) SWIG_AsInt(obj1);
37726 if (PyErr_Occurred()) SWIG_fail;
37727 }
37728 if (obj2) {
37729 arg3 = (int) SWIG_AsInt(obj2);
37730 if (PyErr_Occurred()) SWIG_fail;
37731 }
37732 {
37733 PyThreadState* __tstate = wxPyBeginAllowThreads();
37734 wxGBSpan_Set(arg1,arg2,arg3);
37735
37736 wxPyEndAllowThreads(__tstate);
37737 if (PyErr_Occurred()) SWIG_fail;
37738 }
37739 Py_INCREF(Py_None); resultobj = Py_None;
37740 return resultobj;
37741 fail:
37742 return NULL;
37743}
37744
37745
37746static PyObject *_wrap_GBSpan_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
37747 PyObject *resultobj;
37748 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37749 PyObject *result;
37750 PyObject * obj0 = 0 ;
37751 char *kwnames[] = {
37752 (char *) "self", NULL
37753 };
37754
37755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_Get",kwnames,&obj0)) goto fail;
37756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37758 {
37759 PyThreadState* __tstate = wxPyBeginAllowThreads();
37760 result = (PyObject *)wxGBSpan_Get(arg1);
37761
37762 wxPyEndAllowThreads(__tstate);
37763 if (PyErr_Occurred()) SWIG_fail;
37764 }
37765 resultobj = result;
37766 return resultobj;
37767 fail:
37768 return NULL;
37769}
37770
37771
37772static PyObject * GBSpan_swigregister(PyObject *self, PyObject *args) {
37773 PyObject *obj;
37774 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
37775 SWIG_TypeClientData(SWIGTYPE_p_wxGBSpan, obj);
37776 Py_INCREF(obj);
37777 return Py_BuildValue((char *)"");
37778}
37779static int _wrap_DefaultSpan_set(PyObject *_val) {
37780 PyErr_SetString(PyExc_TypeError,"Variable DefaultSpan is read-only.");
37781 return 1;
37782}
37783
37784
37785static PyObject *_wrap_DefaultSpan_get() {
37786 PyObject *pyobj;
37787
37788 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSpan), SWIGTYPE_p_wxGBSpan, 0);
37789 return pyobj;
37790}
37791
37792
37793static PyObject *_wrap_new_GBSizerItem(PyObject *self, PyObject *args, PyObject *kwargs) {
37794 PyObject *resultobj;
37795 wxGBSizerItem *result;
37796 char *kwnames[] = {
37797 NULL
37798 };
37799
37800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GBSizerItem",kwnames)) goto fail;
37801 {
37802 PyThreadState* __tstate = wxPyBeginAllowThreads();
37803 result = (wxGBSizerItem *)new wxGBSizerItem();
37804
37805 wxPyEndAllowThreads(__tstate);
37806 if (PyErr_Occurred()) SWIG_fail;
37807 }
37808 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1);
37809 return resultobj;
37810 fail:
37811 return NULL;
37812}
37813
37814
37815static PyObject *_wrap_new_GBSizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
37816 PyObject *resultobj;
37817 wxWindow *arg1 = (wxWindow *) 0 ;
37818 wxGBPosition *arg2 = 0 ;
37819 wxGBSpan *arg3 = 0 ;
37820 int arg4 ;
37821 int arg5 ;
248ed943 37822 PyObject *arg6 = (PyObject *) NULL ;
d55e5bfc
RD
37823 wxGBSizerItem *result;
37824 wxGBPosition temp2 ;
37825 wxGBSpan temp3 ;
37826 PyObject * obj0 = 0 ;
37827 PyObject * obj1 = 0 ;
37828 PyObject * obj2 = 0 ;
37829 PyObject * obj3 = 0 ;
37830 PyObject * obj4 = 0 ;
37831 PyObject * obj5 = 0 ;
37832 char *kwnames[] = {
37833 (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
37834 };
37835
248ed943 37836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
d55e5bfc
RD
37837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
37838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37839 {
37840 arg2 = &temp2;
37841 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
37842 }
37843 {
37844 arg3 = &temp3;
37845 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
37846 }
37847 arg4 = (int) SWIG_AsInt(obj3);
37848 if (PyErr_Occurred()) SWIG_fail;
37849 arg5 = (int) SWIG_AsInt(obj4);
37850 if (PyErr_Occurred()) SWIG_fail;
248ed943
RD
37851 if (obj5) {
37852 arg6 = obj5;
37853 }
d55e5bfc
RD
37854 {
37855 PyThreadState* __tstate = wxPyBeginAllowThreads();
248ed943 37856 result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6);
d55e5bfc
RD
37857
37858 wxPyEndAllowThreads(__tstate);
37859 if (PyErr_Occurred()) SWIG_fail;
37860 }
37861 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1);
37862 return resultobj;
37863 fail:
37864 return NULL;
37865}
37866
37867
37868static PyObject *_wrap_new_GBSizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
37869 PyObject *resultobj;
37870 wxSizer *arg1 = (wxSizer *) 0 ;
37871 wxGBPosition *arg2 = 0 ;
37872 wxGBSpan *arg3 = 0 ;
37873 int arg4 ;
37874 int arg5 ;
248ed943 37875 PyObject *arg6 = (PyObject *) NULL ;
d55e5bfc
RD
37876 wxGBSizerItem *result;
37877 wxGBPosition temp2 ;
37878 wxGBSpan temp3 ;
37879 PyObject * obj0 = 0 ;
37880 PyObject * obj1 = 0 ;
37881 PyObject * obj2 = 0 ;
37882 PyObject * obj3 = 0 ;
37883 PyObject * obj4 = 0 ;
37884 PyObject * obj5 = 0 ;
37885 char *kwnames[] = {
37886 (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
37887 };
37888
248ed943 37889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
d55e5bfc
RD
37890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
37891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37892 {
37893 arg2 = &temp2;
37894 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
37895 }
37896 {
37897 arg3 = &temp3;
37898 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
37899 }
37900 arg4 = (int) SWIG_AsInt(obj3);
37901 if (PyErr_Occurred()) SWIG_fail;
37902 arg5 = (int) SWIG_AsInt(obj4);
37903 if (PyErr_Occurred()) SWIG_fail;
248ed943
RD
37904 if (obj5) {
37905 arg6 = obj5;
37906 }
d55e5bfc
RD
37907 {
37908 PyThreadState* __tstate = wxPyBeginAllowThreads();
248ed943 37909 result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6);
d55e5bfc
RD
37910
37911 wxPyEndAllowThreads(__tstate);
37912 if (PyErr_Occurred()) SWIG_fail;
37913 }
37914 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1);
37915 return resultobj;
37916 fail:
37917 return NULL;
37918}
37919
37920
37921static PyObject *_wrap_new_GBSizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) {
37922 PyObject *resultobj;
37923 int arg1 ;
37924 int arg2 ;
37925 wxGBPosition *arg3 = 0 ;
37926 wxGBSpan *arg4 = 0 ;
37927 int arg5 ;
37928 int arg6 ;
248ed943 37929 PyObject *arg7 = (PyObject *) NULL ;
d55e5bfc
RD
37930 wxGBSizerItem *result;
37931 wxGBPosition temp3 ;
37932 wxGBSpan temp4 ;
37933 PyObject * obj0 = 0 ;
37934 PyObject * obj1 = 0 ;
37935 PyObject * obj2 = 0 ;
37936 PyObject * obj3 = 0 ;
37937 PyObject * obj4 = 0 ;
37938 PyObject * obj5 = 0 ;
37939 PyObject * obj6 = 0 ;
37940 char *kwnames[] = {
37941 (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
37942 };
37943
248ed943 37944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:new_GBSizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
d55e5bfc
RD
37945 arg1 = (int) SWIG_AsInt(obj0);
37946 if (PyErr_Occurred()) SWIG_fail;
37947 arg2 = (int) SWIG_AsInt(obj1);
37948 if (PyErr_Occurred()) SWIG_fail;
37949 {
37950 arg3 = &temp3;
37951 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
37952 }
37953 {
37954 arg4 = &temp4;
37955 if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail;
37956 }
37957 arg5 = (int) SWIG_AsInt(obj4);
37958 if (PyErr_Occurred()) SWIG_fail;
37959 arg6 = (int) SWIG_AsInt(obj5);
37960 if (PyErr_Occurred()) SWIG_fail;
248ed943
RD
37961 if (obj6) {
37962 arg7 = obj6;
37963 }
d55e5bfc
RD
37964 {
37965 PyThreadState* __tstate = wxPyBeginAllowThreads();
248ed943 37966 result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7);
d55e5bfc
RD
37967
37968 wxPyEndAllowThreads(__tstate);
37969 if (PyErr_Occurred()) SWIG_fail;
37970 }
37971 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1);
37972 return resultobj;
37973 fail:
37974 return NULL;
37975}
37976
37977
37978static PyObject *_wrap_GBSizerItem_GetPos(PyObject *self, PyObject *args, PyObject *kwargs) {
37979 PyObject *resultobj;
37980 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
37981 wxGBPosition result;
37982 PyObject * obj0 = 0 ;
37983 char *kwnames[] = {
37984 (char *) "self", NULL
37985 };
37986
37987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetPos",kwnames,&obj0)) goto fail;
37988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
37989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37990 {
37991 PyThreadState* __tstate = wxPyBeginAllowThreads();
37992 result = ((wxGBSizerItem const *)arg1)->GetPos();
37993
37994 wxPyEndAllowThreads(__tstate);
37995 if (PyErr_Occurred()) SWIG_fail;
37996 }
37997 {
37998 wxGBPosition * resultptr;
37999 resultptr = new wxGBPosition((wxGBPosition &) result);
38000 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1);
38001 }
38002 return resultobj;
38003 fail:
38004 return NULL;
38005}
38006
38007
38008static PyObject *_wrap_GBSizerItem_GetSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
38009 PyObject *resultobj;
38010 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
38011 wxGBSpan result;
38012 PyObject * obj0 = 0 ;
38013 char *kwnames[] = {
38014 (char *) "self", NULL
38015 };
38016
38017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetSpan",kwnames,&obj0)) goto fail;
38018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
38019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38020 {
38021 PyThreadState* __tstate = wxPyBeginAllowThreads();
38022 result = ((wxGBSizerItem const *)arg1)->GetSpan();
38023
38024 wxPyEndAllowThreads(__tstate);
38025 if (PyErr_Occurred()) SWIG_fail;
38026 }
38027 {
38028 wxGBSpan * resultptr;
38029 resultptr = new wxGBSpan((wxGBSpan &) result);
38030 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1);
38031 }
38032 return resultobj;
38033 fail:
38034 return NULL;
38035}
38036
38037
38038static PyObject *_wrap_GBSizerItem_SetPos(PyObject *self, PyObject *args, PyObject *kwargs) {
38039 PyObject *resultobj;
38040 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
38041 wxGBPosition *arg2 = 0 ;
38042 bool result;
38043 wxGBPosition temp2 ;
38044 PyObject * obj0 = 0 ;
38045 PyObject * obj1 = 0 ;
38046 char *kwnames[] = {
38047 (char *) "self",(char *) "pos", NULL
38048 };
38049
38050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) goto fail;
38051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
38052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38053 {
38054 arg2 = &temp2;
38055 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
38056 }
38057 {
38058 PyThreadState* __tstate = wxPyBeginAllowThreads();
38059 result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2);
38060
38061 wxPyEndAllowThreads(__tstate);
38062 if (PyErr_Occurred()) SWIG_fail;
38063 }
38064 {
38065 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38066 }
38067 return resultobj;
38068 fail:
38069 return NULL;
38070}
38071
38072
38073static PyObject *_wrap_GBSizerItem_SetSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
38074 PyObject *resultobj;
38075 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
38076 wxGBSpan *arg2 = 0 ;
38077 bool result;
38078 wxGBSpan temp2 ;
38079 PyObject * obj0 = 0 ;
38080 PyObject * obj1 = 0 ;
38081 char *kwnames[] = {
38082 (char *) "self",(char *) "span", NULL
38083 };
38084
38085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) goto fail;
38086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
38087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38088 {
38089 arg2 = &temp2;
38090 if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail;
38091 }
38092 {
38093 PyThreadState* __tstate = wxPyBeginAllowThreads();
38094 result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2);
38095
38096 wxPyEndAllowThreads(__tstate);
38097 if (PyErr_Occurred()) SWIG_fail;
38098 }
38099 {
38100 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38101 }
38102 return resultobj;
38103 fail:
38104 return NULL;
38105}
38106
38107
248ed943 38108static PyObject *_wrap_GBSizerItem_Intersects(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
38109 PyObject *resultobj;
38110 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
38111 wxGBSizerItem *arg2 = 0 ;
38112 bool result;
38113 PyObject * obj0 = 0 ;
38114 PyObject * obj1 = 0 ;
248ed943
RD
38115 char *kwnames[] = {
38116 (char *) "self",(char *) "other", NULL
38117 };
d55e5bfc 38118
248ed943 38119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_Intersects",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
38120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
38121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38122 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem,
38123 SWIG_POINTER_EXCEPTION | 0)) == -1)
38124 SWIG_fail;
38125 if (arg2 == NULL) {
38126 PyErr_SetString(PyExc_TypeError,"null reference");
38127 SWIG_fail;
38128 }
38129 {
38130 PyThreadState* __tstate = wxPyBeginAllowThreads();
38131 result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2);
38132
38133 wxPyEndAllowThreads(__tstate);
38134 if (PyErr_Occurred()) SWIG_fail;
38135 }
38136 {
38137 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38138 }
38139 return resultobj;
38140 fail:
38141 return NULL;
38142}
38143
38144
248ed943 38145static PyObject *_wrap_GBSizerItem_IntersectsPos(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
38146 PyObject *resultobj;
38147 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
38148 wxGBPosition *arg2 = 0 ;
38149 wxGBSpan *arg3 = 0 ;
38150 bool result;
38151 wxGBPosition temp2 ;
38152 wxGBSpan temp3 ;
38153 PyObject * obj0 = 0 ;
38154 PyObject * obj1 = 0 ;
38155 PyObject * obj2 = 0 ;
248ed943
RD
38156 char *kwnames[] = {
38157 (char *) "self",(char *) "pos",(char *) "span", NULL
38158 };
d55e5bfc 38159
248ed943 38160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_IntersectsPos",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
38161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
38162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38163 {
38164 arg2 = &temp2;
38165 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
38166 }
38167 {
38168 arg3 = &temp3;
38169 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
38170 }
38171 {
38172 PyThreadState* __tstate = wxPyBeginAllowThreads();
38173 result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3);
38174
38175 wxPyEndAllowThreads(__tstate);
38176 if (PyErr_Occurred()) SWIG_fail;
38177 }
38178 {
38179 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38180 }
38181 return resultobj;
38182 fail:
38183 return NULL;
38184}
38185
38186
d55e5bfc
RD
38187static PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *self, PyObject *args, PyObject *kwargs) {
38188 PyObject *resultobj;
38189 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
248ed943 38190 wxGBPosition result;
d55e5bfc 38191 PyObject * obj0 = 0 ;
d55e5bfc 38192 char *kwnames[] = {
248ed943 38193 (char *) "self", NULL
d55e5bfc
RD
38194 };
38195
248ed943 38196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetEndPos",kwnames,&obj0)) goto fail;
d55e5bfc
RD
38197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
38198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d55e5bfc
RD
38199 {
38200 PyThreadState* __tstate = wxPyBeginAllowThreads();
248ed943 38201 result = wxGBSizerItem_GetEndPos(arg1);
d55e5bfc
RD
38202
38203 wxPyEndAllowThreads(__tstate);
38204 if (PyErr_Occurred()) SWIG_fail;
38205 }
248ed943
RD
38206 {
38207 wxGBPosition * resultptr;
38208 resultptr = new wxGBPosition((wxGBPosition &) result);
38209 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1);
38210 }
d55e5bfc
RD
38211 return resultobj;
38212 fail:
38213 return NULL;
38214}
38215
38216
38217static PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
38218 PyObject *resultobj;
38219 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
38220 wxGridBagSizer *result;
38221 PyObject * obj0 = 0 ;
38222 char *kwnames[] = {
38223 (char *) "self", NULL
38224 };
38225
38226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetGBSizer",kwnames,&obj0)) goto fail;
38227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
38228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38229 {
38230 PyThreadState* __tstate = wxPyBeginAllowThreads();
38231 result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer();
38232
38233 wxPyEndAllowThreads(__tstate);
38234 if (PyErr_Occurred()) SWIG_fail;
38235 }
38236 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 0);
38237 return resultobj;
38238 fail:
38239 return NULL;
38240}
38241
38242
38243static PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
38244 PyObject *resultobj;
38245 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
38246 wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ;
38247 PyObject * obj0 = 0 ;
38248 PyObject * obj1 = 0 ;
38249 char *kwnames[] = {
38250 (char *) "self",(char *) "sizer", NULL
38251 };
38252
38253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) goto fail;
38254 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
38255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38256 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridBagSizer,
38257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38258 {
38259 PyThreadState* __tstate = wxPyBeginAllowThreads();
38260 (arg1)->SetGBSizer(arg2);
38261
38262 wxPyEndAllowThreads(__tstate);
38263 if (PyErr_Occurred()) SWIG_fail;
38264 }
38265 Py_INCREF(Py_None); resultobj = Py_None;
38266 return resultobj;
38267 fail:
38268 return NULL;
38269}
38270
38271
38272static PyObject * GBSizerItem_swigregister(PyObject *self, PyObject *args) {
38273 PyObject *obj;
38274 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
38275 SWIG_TypeClientData(SWIGTYPE_p_wxGBSizerItem, obj);
38276 Py_INCREF(obj);
38277 return Py_BuildValue((char *)"");
38278}
38279static PyObject *_wrap_new_GridBagSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
38280 PyObject *resultobj;
38281 int arg1 = (int) 0 ;
38282 int arg2 = (int) 0 ;
38283 wxGridBagSizer *result;
38284 PyObject * obj0 = 0 ;
38285 PyObject * obj1 = 0 ;
38286 char *kwnames[] = {
38287 (char *) "vgap",(char *) "hgap", NULL
38288 };
38289
38290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridBagSizer",kwnames,&obj0,&obj1)) goto fail;
38291 if (obj0) {
38292 arg1 = (int) SWIG_AsInt(obj0);
38293 if (PyErr_Occurred()) SWIG_fail;
38294 }
38295 if (obj1) {
38296 arg2 = (int) SWIG_AsInt(obj1);
38297 if (PyErr_Occurred()) SWIG_fail;
38298 }
38299 {
38300 PyThreadState* __tstate = wxPyBeginAllowThreads();
38301 result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2);
38302
38303 wxPyEndAllowThreads(__tstate);
38304 if (PyErr_Occurred()) SWIG_fail;
38305 }
38306 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 1);
38307 return resultobj;
38308 fail:
38309 return NULL;
38310}
38311
38312
38313static PyObject *_wrap_GridBagSizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
38314 PyObject *resultobj;
38315 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38316 PyObject *arg2 = (PyObject *) 0 ;
38317 wxGBPosition *arg3 = 0 ;
38318 wxGBSpan const &arg4_defvalue = wxDefaultSpan ;
38319 wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ;
38320 int arg5 = (int) 0 ;
38321 int arg6 = (int) 0 ;
38322 PyObject *arg7 = (PyObject *) NULL ;
38323 bool result;
38324 wxGBPosition temp3 ;
38325 wxGBSpan temp4 ;
38326 PyObject * obj0 = 0 ;
38327 PyObject * obj1 = 0 ;
38328 PyObject * obj2 = 0 ;
38329 PyObject * obj3 = 0 ;
38330 PyObject * obj4 = 0 ;
38331 PyObject * obj5 = 0 ;
38332 PyObject * obj6 = 0 ;
38333 char *kwnames[] = {
38334 (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
38335 };
38336
38337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
38338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38340 arg2 = obj1;
38341 {
38342 arg3 = &temp3;
38343 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
38344 }
38345 if (obj3) {
38346 {
38347 arg4 = &temp4;
38348 if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail;
38349 }
38350 }
38351 if (obj4) {
38352 arg5 = (int) SWIG_AsInt(obj4);
38353 if (PyErr_Occurred()) SWIG_fail;
38354 }
38355 if (obj5) {
38356 arg6 = (int) SWIG_AsInt(obj5);
38357 if (PyErr_Occurred()) SWIG_fail;
38358 }
38359 if (obj6) {
38360 arg7 = obj6;
38361 }
38362 {
38363 PyThreadState* __tstate = wxPyBeginAllowThreads();
38364 result = (bool)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7);
38365
38366 wxPyEndAllowThreads(__tstate);
38367 if (PyErr_Occurred()) SWIG_fail;
38368 }
38369 {
38370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38371 }
38372 return resultobj;
38373 fail:
38374 return NULL;
38375}
38376
38377
38378static PyObject *_wrap_GridBagSizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) {
38379 PyObject *resultobj;
38380 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38381 wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ;
38382 bool result;
38383 PyObject * obj0 = 0 ;
38384 PyObject * obj1 = 0 ;
38385 char *kwnames[] = {
38386 (char *) "self",(char *) "item", NULL
38387 };
38388
38389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) goto fail;
38390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38392 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem,
38393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38394 {
38395 PyThreadState* __tstate = wxPyBeginAllowThreads();
38396 result = (bool)(arg1)->Add(arg2);
38397
38398 wxPyEndAllowThreads(__tstate);
38399 if (PyErr_Occurred()) SWIG_fail;
38400 }
38401 {
38402 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38403 }
38404 return resultobj;
38405 fail:
38406 return NULL;
38407}
38408
38409
38410static PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) {
38411 PyObject *resultobj;
38412 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38413 wxSize result;
38414 PyObject * obj0 = 0 ;
38415 char *kwnames[] = {
38416 (char *) "self", NULL
38417 };
38418
38419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_GetEmptyCellSize",kwnames,&obj0)) goto fail;
38420 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38421 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38422 {
38423 PyThreadState* __tstate = wxPyBeginAllowThreads();
38424 result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize();
38425
38426 wxPyEndAllowThreads(__tstate);
38427 if (PyErr_Occurred()) SWIG_fail;
38428 }
38429 {
38430 wxSize * resultptr;
38431 resultptr = new wxSize((wxSize &) result);
38432 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
38433 }
38434 return resultobj;
38435 fail:
38436 return NULL;
38437}
38438
38439
38440static PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) {
38441 PyObject *resultobj;
38442 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38443 wxSize *arg2 = 0 ;
38444 wxSize temp2 ;
38445 PyObject * obj0 = 0 ;
38446 PyObject * obj1 = 0 ;
38447 char *kwnames[] = {
38448 (char *) "self",(char *) "sz", NULL
38449 };
38450
38451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) goto fail;
38452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38454 {
38455 arg2 = &temp2;
38456 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
38457 }
38458 {
38459 PyThreadState* __tstate = wxPyBeginAllowThreads();
38460 (arg1)->SetEmptyCellSize((wxSize const &)*arg2);
38461
38462 wxPyEndAllowThreads(__tstate);
38463 if (PyErr_Occurred()) SWIG_fail;
38464 }
38465 Py_INCREF(Py_None); resultobj = Py_None;
38466 return resultobj;
38467 fail:
38468 return NULL;
38469}
38470
38471
38472static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *self, PyObject *args) {
38473 PyObject *resultobj;
38474 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38475 wxWindow *arg2 = (wxWindow *) 0 ;
38476 wxGBPosition result;
38477 PyObject * obj0 = 0 ;
38478 PyObject * obj1 = 0 ;
38479
38480 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail;
38481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38483 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
38484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38485 {
38486 PyThreadState* __tstate = wxPyBeginAllowThreads();
38487 result = (arg1)->GetItemPosition(arg2);
38488
38489 wxPyEndAllowThreads(__tstate);
38490 if (PyErr_Occurred()) SWIG_fail;
38491 }
38492 {
38493 wxGBPosition * resultptr;
38494 resultptr = new wxGBPosition((wxGBPosition &) result);
38495 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1);
38496 }
38497 return resultobj;
38498 fail:
38499 return NULL;
38500}
38501
38502
38503static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *self, PyObject *args) {
38504 PyObject *resultobj;
38505 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38506 wxSizer *arg2 = (wxSizer *) 0 ;
38507 wxGBPosition result;
38508 PyObject * obj0 = 0 ;
38509 PyObject * obj1 = 0 ;
38510
38511 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail;
38512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38514 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
38515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38516 {
38517 PyThreadState* __tstate = wxPyBeginAllowThreads();
38518 result = (arg1)->GetItemPosition(arg2);
38519
38520 wxPyEndAllowThreads(__tstate);
38521 if (PyErr_Occurred()) SWIG_fail;
38522 }
38523 {
38524 wxGBPosition * resultptr;
38525 resultptr = new wxGBPosition((wxGBPosition &) result);
38526 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1);
38527 }
38528 return resultobj;
38529 fail:
38530 return NULL;
38531}
38532
38533
38534static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *self, PyObject *args) {
38535 PyObject *resultobj;
38536 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38537 size_t arg2 ;
38538 wxGBPosition result;
38539 PyObject * obj0 = 0 ;
38540 PyObject * obj1 = 0 ;
38541
38542 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail;
38543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38545 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
38546 if (PyErr_Occurred()) SWIG_fail;
38547 {
38548 PyThreadState* __tstate = wxPyBeginAllowThreads();
38549 result = (arg1)->GetItemPosition(arg2);
38550
38551 wxPyEndAllowThreads(__tstate);
38552 if (PyErr_Occurred()) SWIG_fail;
38553 }
38554 {
38555 wxGBPosition * resultptr;
38556 resultptr = new wxGBPosition((wxGBPosition &) result);
38557 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1);
38558 }
38559 return resultobj;
38560 fail:
38561 return NULL;
38562}
38563
38564
38565static PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) {
38566 int argc;
38567 PyObject *argv[3];
38568 int ii;
38569
38570 argc = PyObject_Length(args);
38571 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
38572 argv[ii] = PyTuple_GetItem(args,ii);
38573 }
38574 if (argc == 2) {
38575 int _v;
38576 {
38577 void *ptr;
38578 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38579 _v = 0;
38580 PyErr_Clear();
38581 } else {
38582 _v = 1;
38583 }
38584 }
38585 if (_v) {
38586 {
38587 void *ptr;
38588 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
38589 _v = 0;
38590 PyErr_Clear();
38591 } else {
38592 _v = 1;
38593 }
38594 }
38595 if (_v) {
38596 return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self,args);
38597 }
38598 }
38599 }
38600 if (argc == 2) {
38601 int _v;
38602 {
38603 void *ptr;
38604 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38605 _v = 0;
38606 PyErr_Clear();
38607 } else {
38608 _v = 1;
38609 }
38610 }
38611 if (_v) {
38612 {
38613 void *ptr;
38614 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
38615 _v = 0;
38616 PyErr_Clear();
38617 } else {
38618 _v = 1;
38619 }
38620 }
38621 if (_v) {
38622 return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self,args);
38623 }
38624 }
38625 }
38626 if (argc == 2) {
38627 int _v;
38628 {
38629 void *ptr;
38630 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38631 _v = 0;
38632 PyErr_Clear();
38633 } else {
38634 _v = 1;
38635 }
38636 }
38637 if (_v) {
38638 _v = SWIG_CheckUnsignedLong(argv[1]);
38639 if (_v) {
38640 return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self,args);
38641 }
38642 }
38643 }
38644
38645 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'");
38646 return NULL;
38647}
38648
38649
38650static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *self, PyObject *args) {
38651 PyObject *resultobj;
38652 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38653 wxWindow *arg2 = (wxWindow *) 0 ;
38654 wxGBPosition *arg3 = 0 ;
38655 bool result;
38656 wxGBPosition temp3 ;
38657 PyObject * obj0 = 0 ;
38658 PyObject * obj1 = 0 ;
38659 PyObject * obj2 = 0 ;
38660
38661 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail;
38662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38664 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
38665 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38666 {
38667 arg3 = &temp3;
38668 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
38669 }
38670 {
38671 PyThreadState* __tstate = wxPyBeginAllowThreads();
38672 result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3);
38673
38674 wxPyEndAllowThreads(__tstate);
38675 if (PyErr_Occurred()) SWIG_fail;
38676 }
38677 {
38678 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38679 }
38680 return resultobj;
38681 fail:
38682 return NULL;
38683}
38684
38685
38686static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *self, PyObject *args) {
38687 PyObject *resultobj;
38688 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38689 wxSizer *arg2 = (wxSizer *) 0 ;
38690 wxGBPosition *arg3 = 0 ;
38691 bool result;
38692 wxGBPosition temp3 ;
38693 PyObject * obj0 = 0 ;
38694 PyObject * obj1 = 0 ;
38695 PyObject * obj2 = 0 ;
38696
38697 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail;
38698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38700 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
38701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38702 {
38703 arg3 = &temp3;
38704 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
38705 }
38706 {
38707 PyThreadState* __tstate = wxPyBeginAllowThreads();
38708 result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3);
38709
38710 wxPyEndAllowThreads(__tstate);
38711 if (PyErr_Occurred()) SWIG_fail;
38712 }
38713 {
38714 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38715 }
38716 return resultobj;
38717 fail:
38718 return NULL;
38719}
38720
38721
38722static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *self, PyObject *args) {
38723 PyObject *resultobj;
38724 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38725 size_t arg2 ;
38726 wxGBPosition *arg3 = 0 ;
38727 bool result;
38728 wxGBPosition temp3 ;
38729 PyObject * obj0 = 0 ;
38730 PyObject * obj1 = 0 ;
38731 PyObject * obj2 = 0 ;
38732
38733 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail;
38734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38736 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
38737 if (PyErr_Occurred()) SWIG_fail;
38738 {
38739 arg3 = &temp3;
38740 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
38741 }
38742 {
38743 PyThreadState* __tstate = wxPyBeginAllowThreads();
38744 result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3);
38745
38746 wxPyEndAllowThreads(__tstate);
38747 if (PyErr_Occurred()) SWIG_fail;
38748 }
38749 {
38750 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38751 }
38752 return resultobj;
38753 fail:
38754 return NULL;
38755}
38756
38757
38758static PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) {
38759 int argc;
38760 PyObject *argv[4];
38761 int ii;
38762
38763 argc = PyObject_Length(args);
38764 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
38765 argv[ii] = PyTuple_GetItem(args,ii);
38766 }
38767 if (argc == 3) {
38768 int _v;
38769 {
38770 void *ptr;
38771 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38772 _v = 0;
38773 PyErr_Clear();
38774 } else {
38775 _v = 1;
38776 }
38777 }
38778 if (_v) {
38779 {
38780 void *ptr;
38781 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
38782 _v = 0;
38783 PyErr_Clear();
38784 } else {
38785 _v = 1;
38786 }
38787 }
38788 if (_v) {
38789 {
38790 _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2);
38791 }
38792 if (_v) {
38793 return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self,args);
38794 }
38795 }
38796 }
38797 }
38798 if (argc == 3) {
38799 int _v;
38800 {
38801 void *ptr;
38802 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38803 _v = 0;
38804 PyErr_Clear();
38805 } else {
38806 _v = 1;
38807 }
38808 }
38809 if (_v) {
38810 {
38811 void *ptr;
38812 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
38813 _v = 0;
38814 PyErr_Clear();
38815 } else {
38816 _v = 1;
38817 }
38818 }
38819 if (_v) {
38820 {
38821 _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2);
38822 }
38823 if (_v) {
38824 return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self,args);
38825 }
38826 }
38827 }
38828 }
38829 if (argc == 3) {
38830 int _v;
38831 {
38832 void *ptr;
38833 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38834 _v = 0;
38835 PyErr_Clear();
38836 } else {
38837 _v = 1;
38838 }
38839 }
38840 if (_v) {
38841 _v = SWIG_CheckUnsignedLong(argv[1]);
38842 if (_v) {
38843 {
38844 _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2);
38845 }
38846 if (_v) {
38847 return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self,args);
38848 }
38849 }
38850 }
38851 }
38852
38853 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'");
38854 return NULL;
38855}
38856
38857
38858static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *self, PyObject *args) {
38859 PyObject *resultobj;
38860 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38861 wxWindow *arg2 = (wxWindow *) 0 ;
38862 wxGBSpan result;
38863 PyObject * obj0 = 0 ;
38864 PyObject * obj1 = 0 ;
38865
38866 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail;
38867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38869 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
38870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38871 {
38872 PyThreadState* __tstate = wxPyBeginAllowThreads();
38873 result = (arg1)->GetItemSpan(arg2);
38874
38875 wxPyEndAllowThreads(__tstate);
38876 if (PyErr_Occurred()) SWIG_fail;
38877 }
38878 {
38879 wxGBSpan * resultptr;
38880 resultptr = new wxGBSpan((wxGBSpan &) result);
38881 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1);
38882 }
38883 return resultobj;
38884 fail:
38885 return NULL;
38886}
38887
38888
38889static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *self, PyObject *args) {
38890 PyObject *resultobj;
38891 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38892 wxSizer *arg2 = (wxSizer *) 0 ;
38893 wxGBSpan result;
38894 PyObject * obj0 = 0 ;
38895 PyObject * obj1 = 0 ;
38896
38897 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail;
38898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38900 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
38901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38902 {
38903 PyThreadState* __tstate = wxPyBeginAllowThreads();
38904 result = (arg1)->GetItemSpan(arg2);
38905
38906 wxPyEndAllowThreads(__tstate);
38907 if (PyErr_Occurred()) SWIG_fail;
38908 }
38909 {
38910 wxGBSpan * resultptr;
38911 resultptr = new wxGBSpan((wxGBSpan &) result);
38912 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1);
38913 }
38914 return resultobj;
38915 fail:
38916 return NULL;
38917}
38918
38919
38920static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *self, PyObject *args) {
38921 PyObject *resultobj;
38922 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38923 size_t arg2 ;
38924 wxGBSpan result;
38925 PyObject * obj0 = 0 ;
38926 PyObject * obj1 = 0 ;
38927
38928 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail;
38929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38931 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
38932 if (PyErr_Occurred()) SWIG_fail;
38933 {
38934 PyThreadState* __tstate = wxPyBeginAllowThreads();
38935 result = (arg1)->GetItemSpan(arg2);
38936
38937 wxPyEndAllowThreads(__tstate);
38938 if (PyErr_Occurred()) SWIG_fail;
38939 }
38940 {
38941 wxGBSpan * resultptr;
38942 resultptr = new wxGBSpan((wxGBSpan &) result);
38943 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1);
38944 }
38945 return resultobj;
38946 fail:
38947 return NULL;
38948}
38949
38950
38951static PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) {
38952 int argc;
38953 PyObject *argv[3];
38954 int ii;
38955
38956 argc = PyObject_Length(args);
38957 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
38958 argv[ii] = PyTuple_GetItem(args,ii);
38959 }
38960 if (argc == 2) {
38961 int _v;
38962 {
38963 void *ptr;
38964 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38965 _v = 0;
38966 PyErr_Clear();
38967 } else {
38968 _v = 1;
38969 }
38970 }
38971 if (_v) {
38972 {
38973 void *ptr;
38974 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
38975 _v = 0;
38976 PyErr_Clear();
38977 } else {
38978 _v = 1;
38979 }
38980 }
38981 if (_v) {
38982 return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self,args);
38983 }
38984 }
38985 }
38986 if (argc == 2) {
38987 int _v;
38988 {
38989 void *ptr;
38990 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38991 _v = 0;
38992 PyErr_Clear();
38993 } else {
38994 _v = 1;
38995 }
38996 }
38997 if (_v) {
38998 {
38999 void *ptr;
39000 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
39001 _v = 0;
39002 PyErr_Clear();
39003 } else {
39004 _v = 1;
39005 }
39006 }
39007 if (_v) {
39008 return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self,args);
39009 }
39010 }
39011 }
39012 if (argc == 2) {
39013 int _v;
39014 {
39015 void *ptr;
39016 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
39017 _v = 0;
39018 PyErr_Clear();
39019 } else {
39020 _v = 1;
39021 }
39022 }
39023 if (_v) {
39024 _v = SWIG_CheckUnsignedLong(argv[1]);
39025 if (_v) {
39026 return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self,args);
39027 }
39028 }
39029 }
39030
39031 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'");
39032 return NULL;
39033}
39034
39035
39036static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *self, PyObject *args) {
39037 PyObject *resultobj;
39038 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39039 wxWindow *arg2 = (wxWindow *) 0 ;
39040 wxGBSpan *arg3 = 0 ;
39041 bool result;
39042 wxGBSpan temp3 ;
39043 PyObject * obj0 = 0 ;
39044 PyObject * obj1 = 0 ;
39045 PyObject * obj2 = 0 ;
39046
39047 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail;
39048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39050 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39052 {
39053 arg3 = &temp3;
39054 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
39055 }
39056 {
39057 PyThreadState* __tstate = wxPyBeginAllowThreads();
39058 result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3);
39059
39060 wxPyEndAllowThreads(__tstate);
39061 if (PyErr_Occurred()) SWIG_fail;
39062 }
39063 {
39064 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39065 }
39066 return resultobj;
39067 fail:
39068 return NULL;
39069}
39070
39071
39072static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *self, PyObject *args) {
39073 PyObject *resultobj;
39074 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39075 wxSizer *arg2 = (wxSizer *) 0 ;
39076 wxGBSpan *arg3 = 0 ;
39077 bool result;
39078 wxGBSpan temp3 ;
39079 PyObject * obj0 = 0 ;
39080 PyObject * obj1 = 0 ;
39081 PyObject * obj2 = 0 ;
39082
39083 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail;
39084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39086 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
39087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39088 {
39089 arg3 = &temp3;
39090 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
39091 }
39092 {
39093 PyThreadState* __tstate = wxPyBeginAllowThreads();
39094 result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3);
39095
39096 wxPyEndAllowThreads(__tstate);
39097 if (PyErr_Occurred()) SWIG_fail;
39098 }
39099 {
39100 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39101 }
39102 return resultobj;
39103 fail:
39104 return NULL;
39105}
39106
39107
39108static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *self, PyObject *args) {
39109 PyObject *resultobj;
39110 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39111 size_t arg2 ;
39112 wxGBSpan *arg3 = 0 ;
39113 bool result;
39114 wxGBSpan temp3 ;
39115 PyObject * obj0 = 0 ;
39116 PyObject * obj1 = 0 ;
39117 PyObject * obj2 = 0 ;
39118
39119 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail;
39120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39122 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
39123 if (PyErr_Occurred()) SWIG_fail;
39124 {
39125 arg3 = &temp3;
39126 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
39127 }
39128 {
39129 PyThreadState* __tstate = wxPyBeginAllowThreads();
39130 result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3);
39131
39132 wxPyEndAllowThreads(__tstate);
39133 if (PyErr_Occurred()) SWIG_fail;
39134 }
39135 {
39136 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39137 }
39138 return resultobj;
39139 fail:
39140 return NULL;
39141}
39142
39143
39144static PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) {
39145 int argc;
39146 PyObject *argv[4];
39147 int ii;
39148
39149 argc = PyObject_Length(args);
39150 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
39151 argv[ii] = PyTuple_GetItem(args,ii);
39152 }
39153 if (argc == 3) {
39154 int _v;
39155 {
39156 void *ptr;
39157 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
39158 _v = 0;
39159 PyErr_Clear();
39160 } else {
39161 _v = 1;
39162 }
39163 }
39164 if (_v) {
39165 {
39166 void *ptr;
39167 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
39168 _v = 0;
39169 PyErr_Clear();
39170 } else {
39171 _v = 1;
39172 }
39173 }
39174 if (_v) {
39175 {
39176 _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2);
39177 }
39178 if (_v) {
39179 return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self,args);
39180 }
39181 }
39182 }
39183 }
39184 if (argc == 3) {
39185 int _v;
39186 {
39187 void *ptr;
39188 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
39189 _v = 0;
39190 PyErr_Clear();
39191 } else {
39192 _v = 1;
39193 }
39194 }
39195 if (_v) {
39196 {
39197 void *ptr;
39198 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
39199 _v = 0;
39200 PyErr_Clear();
39201 } else {
39202 _v = 1;
39203 }
39204 }
39205 if (_v) {
39206 {
39207 _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2);
39208 }
39209 if (_v) {
39210 return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self,args);
39211 }
39212 }
39213 }
39214 }
39215 if (argc == 3) {
39216 int _v;
39217 {
39218 void *ptr;
39219 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
39220 _v = 0;
39221 PyErr_Clear();
39222 } else {
39223 _v = 1;
39224 }
39225 }
39226 if (_v) {
39227 _v = SWIG_CheckUnsignedLong(argv[1]);
39228 if (_v) {
39229 {
39230 _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2);
39231 }
39232 if (_v) {
39233 return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self,args);
39234 }
39235 }
39236 }
39237 }
39238
39239 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'");
39240 return NULL;
39241}
39242
39243
39244static PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *self, PyObject *args) {
39245 PyObject *resultobj;
39246 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39247 wxWindow *arg2 = (wxWindow *) 0 ;
39248 wxGBSizerItem *result;
39249 PyObject * obj0 = 0 ;
39250 PyObject * obj1 = 0 ;
39251
39252 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail;
39253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39255 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39257 {
39258 PyThreadState* __tstate = wxPyBeginAllowThreads();
39259 result = (wxGBSizerItem *)(arg1)->FindItem(arg2);
39260
39261 wxPyEndAllowThreads(__tstate);
39262 if (PyErr_Occurred()) SWIG_fail;
39263 }
39264 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0);
39265 return resultobj;
39266 fail:
39267 return NULL;
39268}
39269
39270
39271static PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *self, PyObject *args) {
39272 PyObject *resultobj;
39273 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39274 wxSizer *arg2 = (wxSizer *) 0 ;
39275 wxGBSizerItem *result;
39276 PyObject * obj0 = 0 ;
39277 PyObject * obj1 = 0 ;
39278
39279 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail;
39280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39282 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
39283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39284 {
39285 PyThreadState* __tstate = wxPyBeginAllowThreads();
39286 result = (wxGBSizerItem *)(arg1)->FindItem(arg2);
39287
39288 wxPyEndAllowThreads(__tstate);
39289 if (PyErr_Occurred()) SWIG_fail;
39290 }
39291 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0);
39292 return resultobj;
39293 fail:
39294 return NULL;
39295}
39296
39297
39298static PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) {
39299 int argc;
39300 PyObject *argv[3];
39301 int ii;
39302
39303 argc = PyObject_Length(args);
39304 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
39305 argv[ii] = PyTuple_GetItem(args,ii);
39306 }
39307 if (argc == 2) {
39308 int _v;
39309 {
39310 void *ptr;
39311 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
39312 _v = 0;
39313 PyErr_Clear();
39314 } else {
39315 _v = 1;
39316 }
39317 }
39318 if (_v) {
39319 {
39320 void *ptr;
39321 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
39322 _v = 0;
39323 PyErr_Clear();
39324 } else {
39325 _v = 1;
39326 }
39327 }
39328 if (_v) {
39329 return _wrap_GridBagSizer_FindItem__SWIG_0(self,args);
39330 }
39331 }
39332 }
39333 if (argc == 2) {
39334 int _v;
39335 {
39336 void *ptr;
39337 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
39338 _v = 0;
39339 PyErr_Clear();
39340 } else {
39341 _v = 1;
39342 }
39343 }
39344 if (_v) {
39345 {
39346 void *ptr;
39347 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
39348 _v = 0;
39349 PyErr_Clear();
39350 } else {
39351 _v = 1;
39352 }
39353 }
39354 if (_v) {
39355 return _wrap_GridBagSizer_FindItem__SWIG_1(self,args);
39356 }
39357 }
39358 }
39359
39360 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_FindItem'");
39361 return NULL;
39362}
39363
39364
39365static PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
39366 PyObject *resultobj;
39367 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39368 wxGBPosition *arg2 = 0 ;
39369 wxGBSizerItem *result;
39370 wxGBPosition temp2 ;
39371 PyObject * obj0 = 0 ;
39372 PyObject * obj1 = 0 ;
39373 char *kwnames[] = {
39374 (char *) "self",(char *) "pos", NULL
39375 };
39376
39377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) goto fail;
39378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39380 {
39381 arg2 = &temp2;
39382 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
39383 }
39384 {
39385 PyThreadState* __tstate = wxPyBeginAllowThreads();
39386 result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2);
39387
39388 wxPyEndAllowThreads(__tstate);
39389 if (PyErr_Occurred()) SWIG_fail;
39390 }
39391 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0);
39392 return resultobj;
39393 fail:
39394 return NULL;
39395}
39396
39397
39398static PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
39399 PyObject *resultobj;
39400 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39401 wxPoint *arg2 = 0 ;
39402 wxGBSizerItem *result;
39403 wxPoint temp2 ;
39404 PyObject * obj0 = 0 ;
39405 PyObject * obj1 = 0 ;
39406 char *kwnames[] = {
39407 (char *) "self",(char *) "pt", NULL
39408 };
39409
39410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) goto fail;
39411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39413 {
39414 arg2 = &temp2;
39415 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39416 }
39417 {
39418 PyThreadState* __tstate = wxPyBeginAllowThreads();
39419 result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2);
39420
39421 wxPyEndAllowThreads(__tstate);
39422 if (PyErr_Occurred()) SWIG_fail;
39423 }
39424 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0);
39425 return resultobj;
39426 fail:
39427 return NULL;
39428}
39429
39430
248ed943 39431static PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
39432 PyObject *resultobj;
39433 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39434 wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ;
39435 wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ;
39436 bool result;
39437 PyObject * obj0 = 0 ;
39438 PyObject * obj1 = 0 ;
39439 PyObject * obj2 = 0 ;
248ed943
RD
39440 char *kwnames[] = {
39441 (char *) "self",(char *) "item",(char *) "excludeItem", NULL
39442 };
d55e5bfc 39443
248ed943 39444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GridBagSizer_CheckForIntersection",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
39445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39447 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem,
39448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39449 if (obj2) {
39450 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGBSizerItem,
39451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39452 }
39453 {
39454 PyThreadState* __tstate = wxPyBeginAllowThreads();
39455 result = (bool)(arg1)->CheckForIntersection(arg2,arg3);
39456
39457 wxPyEndAllowThreads(__tstate);
39458 if (PyErr_Occurred()) SWIG_fail;
39459 }
39460 {
39461 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39462 }
39463 return resultobj;
39464 fail:
39465 return NULL;
39466}
39467
39468
248ed943 39469static PyObject *_wrap_GridBagSizer_CheckForIntersectionPos(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
39470 PyObject *resultobj;
39471 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39472 wxGBPosition *arg2 = 0 ;
39473 wxGBSpan *arg3 = 0 ;
39474 wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ;
39475 bool result;
39476 wxGBPosition temp2 ;
39477 wxGBSpan temp3 ;
39478 PyObject * obj0 = 0 ;
39479 PyObject * obj1 = 0 ;
39480 PyObject * obj2 = 0 ;
39481 PyObject * obj3 = 0 ;
248ed943
RD
39482 char *kwnames[] = {
39483 (char *) "self",(char *) "pos",(char *) "span",(char *) "excludeItem", NULL
39484 };
d55e5bfc 39485
248ed943 39486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:GridBagSizer_CheckForIntersectionPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
39487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39489 {
39490 arg2 = &temp2;
39491 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
39492 }
39493 {
39494 arg3 = &temp3;
39495 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
39496 }
39497 if (obj3) {
39498 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGBSizerItem,
39499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39500 }
39501 {
39502 PyThreadState* __tstate = wxPyBeginAllowThreads();
39503 result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4);
39504
39505 wxPyEndAllowThreads(__tstate);
39506 if (PyErr_Occurred()) SWIG_fail;
39507 }
39508 {
39509 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39510 }
39511 return resultobj;
39512 fail:
39513 return NULL;
39514}
39515
39516
d55e5bfc
RD
39517static PyObject * GridBagSizer_swigregister(PyObject *self, PyObject *args) {
39518 PyObject *obj;
39519 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
39520 SWIG_TypeClientData(SWIGTYPE_p_wxGridBagSizer, obj);
39521 Py_INCREF(obj);
39522 return Py_BuildValue((char *)"");
39523}
39524static PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
39525 PyObject *resultobj;
39526 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39527 int arg2 ;
39528 wxWindow *arg3 = (wxWindow *) 0 ;
39529 int arg4 ;
39530 int arg5 = (int) 0 ;
39531 int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ;
39532 PyObject * obj0 = 0 ;
39533 PyObject * obj1 = 0 ;
39534 PyObject * obj2 = 0 ;
39535 PyObject * obj3 = 0 ;
39536 PyObject * obj4 = 0 ;
39537 PyObject * obj5 = 0 ;
39538 char *kwnames[] = {
39539 (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL
39540 };
39541
39542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:IndividualLayoutConstraint_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
39543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39545 arg2 = (wxRelationship) SWIG_AsInt(obj1);
39546 if (PyErr_Occurred()) SWIG_fail;
39547 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
39548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39549 arg4 = (wxEdge) SWIG_AsInt(obj3);
39550 if (PyErr_Occurred()) SWIG_fail;
39551 if (obj4) {
39552 arg5 = (int) SWIG_AsInt(obj4);
39553 if (PyErr_Occurred()) SWIG_fail;
39554 }
39555 if (obj5) {
39556 arg6 = (int) SWIG_AsInt(obj5);
39557 if (PyErr_Occurred()) SWIG_fail;
39558 }
39559 {
39560 PyThreadState* __tstate = wxPyBeginAllowThreads();
39561 (arg1)->Set((wxRelationship )arg2,arg3,(wxEdge )arg4,arg5,arg6);
39562
39563 wxPyEndAllowThreads(__tstate);
39564 if (PyErr_Occurred()) SWIG_fail;
39565 }
39566 Py_INCREF(Py_None); resultobj = Py_None;
39567 return resultobj;
39568 fail:
39569 return NULL;
39570}
39571
39572
39573static PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *self, PyObject *args, PyObject *kwargs) {
39574 PyObject *resultobj;
39575 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39576 wxWindow *arg2 = (wxWindow *) 0 ;
39577 int arg3 = (int) 0 ;
39578 PyObject * obj0 = 0 ;
39579 PyObject * obj1 = 0 ;
39580 PyObject * obj2 = 0 ;
39581 char *kwnames[] = {
39582 (char *) "self",(char *) "sibling",(char *) "marg", NULL
39583 };
39584
39585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&obj2)) goto fail;
39586 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39587 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39588 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39590 if (obj2) {
39591 arg3 = (int) SWIG_AsInt(obj2);
39592 if (PyErr_Occurred()) SWIG_fail;
39593 }
39594 {
39595 PyThreadState* __tstate = wxPyBeginAllowThreads();
39596 (arg1)->LeftOf(arg2,arg3);
39597
39598 wxPyEndAllowThreads(__tstate);
39599 if (PyErr_Occurred()) SWIG_fail;
39600 }
39601 Py_INCREF(Py_None); resultobj = Py_None;
39602 return resultobj;
39603 fail:
39604 return NULL;
39605}
39606
39607
39608static PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *self, PyObject *args, PyObject *kwargs) {
39609 PyObject *resultobj;
39610 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39611 wxWindow *arg2 = (wxWindow *) 0 ;
39612 int arg3 = (int) 0 ;
39613 PyObject * obj0 = 0 ;
39614 PyObject * obj1 = 0 ;
39615 PyObject * obj2 = 0 ;
39616 char *kwnames[] = {
39617 (char *) "self",(char *) "sibling",(char *) "marg", NULL
39618 };
39619
39620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&obj2)) goto fail;
39621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39623 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39625 if (obj2) {
39626 arg3 = (int) SWIG_AsInt(obj2);
39627 if (PyErr_Occurred()) SWIG_fail;
39628 }
39629 {
39630 PyThreadState* __tstate = wxPyBeginAllowThreads();
39631 (arg1)->RightOf(arg2,arg3);
39632
39633 wxPyEndAllowThreads(__tstate);
39634 if (PyErr_Occurred()) SWIG_fail;
39635 }
39636 Py_INCREF(Py_None); resultobj = Py_None;
39637 return resultobj;
39638 fail:
39639 return NULL;
39640}
39641
39642
39643static PyObject *_wrap_IndividualLayoutConstraint_Above(PyObject *self, PyObject *args, PyObject *kwargs) {
39644 PyObject *resultobj;
39645 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39646 wxWindow *arg2 = (wxWindow *) 0 ;
39647 int arg3 = (int) 0 ;
39648 PyObject * obj0 = 0 ;
39649 PyObject * obj1 = 0 ;
39650 PyObject * obj2 = 0 ;
39651 char *kwnames[] = {
39652 (char *) "self",(char *) "sibling",(char *) "marg", NULL
39653 };
39654
39655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&obj2)) goto fail;
39656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39658 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39660 if (obj2) {
39661 arg3 = (int) SWIG_AsInt(obj2);
39662 if (PyErr_Occurred()) SWIG_fail;
39663 }
39664 {
39665 PyThreadState* __tstate = wxPyBeginAllowThreads();
39666 (arg1)->Above(arg2,arg3);
39667
39668 wxPyEndAllowThreads(__tstate);
39669 if (PyErr_Occurred()) SWIG_fail;
39670 }
39671 Py_INCREF(Py_None); resultobj = Py_None;
39672 return resultobj;
39673 fail:
39674 return NULL;
39675}
39676
39677
39678static PyObject *_wrap_IndividualLayoutConstraint_Below(PyObject *self, PyObject *args, PyObject *kwargs) {
39679 PyObject *resultobj;
39680 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39681 wxWindow *arg2 = (wxWindow *) 0 ;
39682 int arg3 = (int) 0 ;
39683 PyObject * obj0 = 0 ;
39684 PyObject * obj1 = 0 ;
39685 PyObject * obj2 = 0 ;
39686 char *kwnames[] = {
39687 (char *) "self",(char *) "sibling",(char *) "marg", NULL
39688 };
39689
39690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&obj2)) goto fail;
39691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39693 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39695 if (obj2) {
39696 arg3 = (int) SWIG_AsInt(obj2);
39697 if (PyErr_Occurred()) SWIG_fail;
39698 }
39699 {
39700 PyThreadState* __tstate = wxPyBeginAllowThreads();
39701 (arg1)->Below(arg2,arg3);
39702
39703 wxPyEndAllowThreads(__tstate);
39704 if (PyErr_Occurred()) SWIG_fail;
39705 }
39706 Py_INCREF(Py_None); resultobj = Py_None;
39707 return resultobj;
39708 fail:
39709 return NULL;
39710}
39711
39712
39713static PyObject *_wrap_IndividualLayoutConstraint_SameAs(PyObject *self, PyObject *args, PyObject *kwargs) {
39714 PyObject *resultobj;
39715 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39716 wxWindow *arg2 = (wxWindow *) 0 ;
39717 int arg3 ;
39718 int arg4 = (int) 0 ;
39719 PyObject * obj0 = 0 ;
39720 PyObject * obj1 = 0 ;
39721 PyObject * obj2 = 0 ;
39722 PyObject * obj3 = 0 ;
39723 char *kwnames[] = {
39724 (char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL
39725 };
39726
39727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
39728 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39730 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39732 arg3 = (wxEdge) SWIG_AsInt(obj2);
39733 if (PyErr_Occurred()) SWIG_fail;
39734 if (obj3) {
39735 arg4 = (int) SWIG_AsInt(obj3);
39736 if (PyErr_Occurred()) SWIG_fail;
39737 }
39738 {
39739 PyThreadState* __tstate = wxPyBeginAllowThreads();
39740 (arg1)->SameAs(arg2,(wxEdge )arg3,arg4);
39741
39742 wxPyEndAllowThreads(__tstate);
39743 if (PyErr_Occurred()) SWIG_fail;
39744 }
39745 Py_INCREF(Py_None); resultobj = Py_None;
39746 return resultobj;
39747 fail:
39748 return NULL;
39749}
39750
39751
39752static PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *self, PyObject *args, PyObject *kwargs) {
39753 PyObject *resultobj;
39754 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39755 wxWindow *arg2 = (wxWindow *) 0 ;
39756 int arg3 ;
39757 int arg4 ;
39758 PyObject * obj0 = 0 ;
39759 PyObject * obj1 = 0 ;
39760 PyObject * obj2 = 0 ;
39761 PyObject * obj3 = 0 ;
39762 char *kwnames[] = {
39763 (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL
39764 };
39765
39766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
39767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39769 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39771 arg3 = (wxEdge) SWIG_AsInt(obj2);
39772 if (PyErr_Occurred()) SWIG_fail;
39773 arg4 = (int) SWIG_AsInt(obj3);
39774 if (PyErr_Occurred()) SWIG_fail;
39775 {
39776 PyThreadState* __tstate = wxPyBeginAllowThreads();
39777 (arg1)->PercentOf(arg2,(wxEdge )arg3,arg4);
39778
39779 wxPyEndAllowThreads(__tstate);
39780 if (PyErr_Occurred()) SWIG_fail;
39781 }
39782 Py_INCREF(Py_None); resultobj = Py_None;
39783 return resultobj;
39784 fail:
39785 return NULL;
39786}
39787
39788
39789static PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *self, PyObject *args, PyObject *kwargs) {
39790 PyObject *resultobj;
39791 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39792 int arg2 ;
39793 PyObject * obj0 = 0 ;
39794 PyObject * obj1 = 0 ;
39795 char *kwnames[] = {
39796 (char *) "self",(char *) "val", NULL
39797 };
39798
39799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&obj1)) goto fail;
39800 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39801 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39802 arg2 = (int) SWIG_AsInt(obj1);
39803 if (PyErr_Occurred()) SWIG_fail;
39804 {
39805 PyThreadState* __tstate = wxPyBeginAllowThreads();
39806 (arg1)->Absolute(arg2);
39807
39808 wxPyEndAllowThreads(__tstate);
39809 if (PyErr_Occurred()) SWIG_fail;
39810 }
39811 Py_INCREF(Py_None); resultobj = Py_None;
39812 return resultobj;
39813 fail:
39814 return NULL;
39815}
39816
39817
39818static PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *self, PyObject *args, PyObject *kwargs) {
39819 PyObject *resultobj;
39820 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39821 PyObject * obj0 = 0 ;
39822 char *kwnames[] = {
39823 (char *) "self", NULL
39824 };
39825
39826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_Unconstrained",kwnames,&obj0)) goto fail;
39827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39829 {
39830 PyThreadState* __tstate = wxPyBeginAllowThreads();
39831 (arg1)->Unconstrained();
39832
39833 wxPyEndAllowThreads(__tstate);
39834 if (PyErr_Occurred()) SWIG_fail;
39835 }
39836 Py_INCREF(Py_None); resultobj = Py_None;
39837 return resultobj;
39838 fail:
39839 return NULL;
39840}
39841
39842
39843static PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *self, PyObject *args, PyObject *kwargs) {
39844 PyObject *resultobj;
39845 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39846 PyObject * obj0 = 0 ;
39847 char *kwnames[] = {
39848 (char *) "self", NULL
39849 };
39850
39851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_AsIs",kwnames,&obj0)) goto fail;
39852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39854 {
39855 PyThreadState* __tstate = wxPyBeginAllowThreads();
39856 (arg1)->AsIs();
39857
39858 wxPyEndAllowThreads(__tstate);
39859 if (PyErr_Occurred()) SWIG_fail;
39860 }
39861 Py_INCREF(Py_None); resultobj = Py_None;
39862 return resultobj;
39863 fail:
39864 return NULL;
39865}
39866
39867
39868static PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
39869 PyObject *resultobj;
39870 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39871 wxWindow *result;
39872 PyObject * obj0 = 0 ;
39873 char *kwnames[] = {
39874 (char *) "self", NULL
39875 };
39876
39877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherWindow",kwnames,&obj0)) goto fail;
39878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39880 {
39881 PyThreadState* __tstate = wxPyBeginAllowThreads();
39882 result = (wxWindow *)(arg1)->GetOtherWindow();
39883
39884 wxPyEndAllowThreads(__tstate);
39885 if (PyErr_Occurred()) SWIG_fail;
39886 }
39887 {
412d302d 39888 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
39889 }
39890 return resultobj;
39891 fail:
39892 return NULL;
39893}
39894
39895
39896static PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
39897 PyObject *resultobj;
39898 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39899 int result;
39900 PyObject * obj0 = 0 ;
39901 char *kwnames[] = {
39902 (char *) "self", NULL
39903 };
39904
39905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMyEdge",kwnames,&obj0)) goto fail;
39906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39908 {
39909 PyThreadState* __tstate = wxPyBeginAllowThreads();
39910 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge();
39911
39912 wxPyEndAllowThreads(__tstate);
39913 if (PyErr_Occurred()) SWIG_fail;
39914 }
39915 resultobj = SWIG_FromInt((int)result);
39916 return resultobj;
39917 fail:
39918 return NULL;
39919}
39920
39921
39922static PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
39923 PyObject *resultobj;
39924 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39925 int arg2 ;
39926 PyObject * obj0 = 0 ;
39927 PyObject * obj1 = 0 ;
39928 char *kwnames[] = {
39929 (char *) "self",(char *) "which", NULL
39930 };
39931
39932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&obj1)) goto fail;
39933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39935 arg2 = (wxEdge) SWIG_AsInt(obj1);
39936 if (PyErr_Occurred()) SWIG_fail;
39937 {
39938 PyThreadState* __tstate = wxPyBeginAllowThreads();
39939 (arg1)->SetEdge((wxEdge )arg2);
39940
39941 wxPyEndAllowThreads(__tstate);
39942 if (PyErr_Occurred()) SWIG_fail;
39943 }
39944 Py_INCREF(Py_None); resultobj = Py_None;
39945 return resultobj;
39946 fail:
39947 return NULL;
39948}
39949
39950
39951static PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
39952 PyObject *resultobj;
39953 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39954 int arg2 ;
39955 PyObject * obj0 = 0 ;
39956 PyObject * obj1 = 0 ;
39957 char *kwnames[] = {
39958 (char *) "self",(char *) "v", NULL
39959 };
39960
39961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&obj1)) goto fail;
39962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39964 arg2 = (int) SWIG_AsInt(obj1);
39965 if (PyErr_Occurred()) SWIG_fail;
39966 {
39967 PyThreadState* __tstate = wxPyBeginAllowThreads();
39968 (arg1)->SetValue(arg2);
39969
39970 wxPyEndAllowThreads(__tstate);
39971 if (PyErr_Occurred()) SWIG_fail;
39972 }
39973 Py_INCREF(Py_None); resultobj = Py_None;
39974 return resultobj;
39975 fail:
39976 return NULL;
39977}
39978
39979
39980static PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *self, PyObject *args, PyObject *kwargs) {
39981 PyObject *resultobj;
39982 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39983 int result;
39984 PyObject * obj0 = 0 ;
39985 char *kwnames[] = {
39986 (char *) "self", NULL
39987 };
39988
39989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMargin",kwnames,&obj0)) goto fail;
39990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39992 {
39993 PyThreadState* __tstate = wxPyBeginAllowThreads();
39994 result = (int)(arg1)->GetMargin();
39995
39996 wxPyEndAllowThreads(__tstate);
39997 if (PyErr_Occurred()) SWIG_fail;
39998 }
39999 resultobj = SWIG_FromInt((int)result);
40000 return resultobj;
40001 fail:
40002 return NULL;
40003}
40004
40005
40006static PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *self, PyObject *args, PyObject *kwargs) {
40007 PyObject *resultobj;
40008 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40009 int arg2 ;
40010 PyObject * obj0 = 0 ;
40011 PyObject * obj1 = 0 ;
40012 char *kwnames[] = {
40013 (char *) "self",(char *) "m", NULL
40014 };
40015
40016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&obj1)) goto fail;
40017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40019 arg2 = (int) SWIG_AsInt(obj1);
40020 if (PyErr_Occurred()) SWIG_fail;
40021 {
40022 PyThreadState* __tstate = wxPyBeginAllowThreads();
40023 (arg1)->SetMargin(arg2);
40024
40025 wxPyEndAllowThreads(__tstate);
40026 if (PyErr_Occurred()) SWIG_fail;
40027 }
40028 Py_INCREF(Py_None); resultobj = Py_None;
40029 return resultobj;
40030 fail:
40031 return NULL;
40032}
40033
40034
40035static PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
40036 PyObject *resultobj;
40037 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40038 int result;
40039 PyObject * obj0 = 0 ;
40040 char *kwnames[] = {
40041 (char *) "self", NULL
40042 };
40043
40044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetValue",kwnames,&obj0)) goto fail;
40045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40047 {
40048 PyThreadState* __tstate = wxPyBeginAllowThreads();
40049 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue();
40050
40051 wxPyEndAllowThreads(__tstate);
40052 if (PyErr_Occurred()) SWIG_fail;
40053 }
40054 resultobj = SWIG_FromInt((int)result);
40055 return resultobj;
40056 fail:
40057 return NULL;
40058}
40059
40060
40061static PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *self, PyObject *args, PyObject *kwargs) {
40062 PyObject *resultobj;
40063 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40064 int result;
40065 PyObject * obj0 = 0 ;
40066 char *kwnames[] = {
40067 (char *) "self", NULL
40068 };
40069
40070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetPercent",kwnames,&obj0)) goto fail;
40071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40073 {
40074 PyThreadState* __tstate = wxPyBeginAllowThreads();
40075 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent();
40076
40077 wxPyEndAllowThreads(__tstate);
40078 if (PyErr_Occurred()) SWIG_fail;
40079 }
40080 resultobj = SWIG_FromInt((int)result);
40081 return resultobj;
40082 fail:
40083 return NULL;
40084}
40085
40086
40087static PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
40088 PyObject *resultobj;
40089 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40090 int result;
40091 PyObject * obj0 = 0 ;
40092 char *kwnames[] = {
40093 (char *) "self", NULL
40094 };
40095
40096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherEdge",kwnames,&obj0)) goto fail;
40097 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40098 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40099 {
40100 PyThreadState* __tstate = wxPyBeginAllowThreads();
40101 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge();
40102
40103 wxPyEndAllowThreads(__tstate);
40104 if (PyErr_Occurred()) SWIG_fail;
40105 }
40106 resultobj = SWIG_FromInt((int)result);
40107 return resultobj;
40108 fail:
40109 return NULL;
40110}
40111
40112
40113static PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *self, PyObject *args, PyObject *kwargs) {
40114 PyObject *resultobj;
40115 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40116 bool result;
40117 PyObject * obj0 = 0 ;
40118 char *kwnames[] = {
40119 (char *) "self", NULL
40120 };
40121
40122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetDone",kwnames,&obj0)) goto fail;
40123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40125 {
40126 PyThreadState* __tstate = wxPyBeginAllowThreads();
40127 result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone();
40128
40129 wxPyEndAllowThreads(__tstate);
40130 if (PyErr_Occurred()) SWIG_fail;
40131 }
40132 {
40133 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40134 }
40135 return resultobj;
40136 fail:
40137 return NULL;
40138}
40139
40140
40141static PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *self, PyObject *args, PyObject *kwargs) {
40142 PyObject *resultobj;
40143 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40144 bool arg2 ;
40145 PyObject * obj0 = 0 ;
40146 PyObject * obj1 = 0 ;
40147 char *kwnames[] = {
40148 (char *) "self",(char *) "d", NULL
40149 };
40150
40151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) goto fail;
40152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40154 arg2 = (bool) SWIG_AsBool(obj1);
40155 if (PyErr_Occurred()) SWIG_fail;
40156 {
40157 PyThreadState* __tstate = wxPyBeginAllowThreads();
40158 (arg1)->SetDone(arg2);
40159
40160 wxPyEndAllowThreads(__tstate);
40161 if (PyErr_Occurred()) SWIG_fail;
40162 }
40163 Py_INCREF(Py_None); resultobj = Py_None;
40164 return resultobj;
40165 fail:
40166 return NULL;
40167}
40168
40169
40170static PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) {
40171 PyObject *resultobj;
40172 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40173 int result;
40174 PyObject * obj0 = 0 ;
40175 char *kwnames[] = {
40176 (char *) "self", NULL
40177 };
40178
40179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetRelationship",kwnames,&obj0)) goto fail;
40180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40182 {
40183 PyThreadState* __tstate = wxPyBeginAllowThreads();
40184 result = (int)(arg1)->GetRelationship();
40185
40186 wxPyEndAllowThreads(__tstate);
40187 if (PyErr_Occurred()) SWIG_fail;
40188 }
40189 resultobj = SWIG_FromInt((int)result);
40190 return resultobj;
40191 fail:
40192 return NULL;
40193}
40194
40195
40196static PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) {
40197 PyObject *resultobj;
40198 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40199 int arg2 ;
40200 PyObject * obj0 = 0 ;
40201 PyObject * obj1 = 0 ;
40202 char *kwnames[] = {
40203 (char *) "self",(char *) "r", NULL
40204 };
40205
40206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&obj1)) goto fail;
40207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40209 arg2 = (wxRelationship) SWIG_AsInt(obj1);
40210 if (PyErr_Occurred()) SWIG_fail;
40211 {
40212 PyThreadState* __tstate = wxPyBeginAllowThreads();
40213 (arg1)->SetRelationship((wxRelationship )arg2);
40214
40215 wxPyEndAllowThreads(__tstate);
40216 if (PyErr_Occurred()) SWIG_fail;
40217 }
40218 Py_INCREF(Py_None); resultobj = Py_None;
40219 return resultobj;
40220 fail:
40221 return NULL;
40222}
40223
40224
40225static PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *self, PyObject *args, PyObject *kwargs) {
40226 PyObject *resultobj;
40227 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40228 wxWindow *arg2 = (wxWindow *) 0 ;
40229 bool result;
40230 PyObject * obj0 = 0 ;
40231 PyObject * obj1 = 0 ;
40232 char *kwnames[] = {
40233 (char *) "self",(char *) "otherW", NULL
40234 };
40235
40236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) goto fail;
40237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40239 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
40240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40241 {
40242 PyThreadState* __tstate = wxPyBeginAllowThreads();
40243 result = (bool)(arg1)->ResetIfWin(arg2);
40244
40245 wxPyEndAllowThreads(__tstate);
40246 if (PyErr_Occurred()) SWIG_fail;
40247 }
40248 {
40249 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40250 }
40251 return resultobj;
40252 fail:
40253 return NULL;
40254}
40255
40256
40257static PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *self, PyObject *args, PyObject *kwargs) {
40258 PyObject *resultobj;
40259 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40260 wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ;
40261 wxWindow *arg3 = (wxWindow *) 0 ;
40262 bool result;
40263 PyObject * obj0 = 0 ;
40264 PyObject * obj1 = 0 ;
40265 PyObject * obj2 = 0 ;
40266 char *kwnames[] = {
40267 (char *) "self",(char *) "constraints",(char *) "win", NULL
40268 };
40269
40270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail;
40271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40273 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints,
40274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40275 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
40276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40277 {
40278 PyThreadState* __tstate = wxPyBeginAllowThreads();
40279 result = (bool)(arg1)->SatisfyConstraint(arg2,arg3);
40280
40281 wxPyEndAllowThreads(__tstate);
40282 if (PyErr_Occurred()) SWIG_fail;
40283 }
40284 {
40285 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40286 }
40287 return resultobj;
40288 fail:
40289 return NULL;
40290}
40291
40292
40293static PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
40294 PyObject *resultobj;
40295 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40296 int arg2 ;
40297 wxWindow *arg3 = (wxWindow *) 0 ;
40298 wxWindow *arg4 = (wxWindow *) 0 ;
40299 int result;
40300 PyObject * obj0 = 0 ;
40301 PyObject * obj1 = 0 ;
40302 PyObject * obj2 = 0 ;
40303 PyObject * obj3 = 0 ;
40304 char *kwnames[] = {
40305 (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL
40306 };
40307
40308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
40309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40311 arg2 = (wxEdge) SWIG_AsInt(obj1);
40312 if (PyErr_Occurred()) SWIG_fail;
40313 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
40314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40315 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
40316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40317 {
40318 PyThreadState* __tstate = wxPyBeginAllowThreads();
40319 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge((wxEdge )arg2,arg3,arg4);
40320
40321 wxPyEndAllowThreads(__tstate);
40322 if (PyErr_Occurred()) SWIG_fail;
40323 }
40324 resultobj = SWIG_FromInt((int)result);
40325 return resultobj;
40326 fail:
40327 return NULL;
40328}
40329
40330
40331static PyObject * IndividualLayoutConstraint_swigregister(PyObject *self, PyObject *args) {
40332 PyObject *obj;
40333 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
40334 SWIG_TypeClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, obj);
40335 Py_INCREF(obj);
40336 return Py_BuildValue((char *)"");
40337}
40338static PyObject *_wrap_LayoutConstraints_left_get(PyObject *self, PyObject *args, PyObject *kwargs) {
40339 PyObject *resultobj;
40340 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40341 wxIndividualLayoutConstraint *result;
40342 PyObject * obj0 = 0 ;
40343 char *kwnames[] = {
40344 (char *) "self", NULL
40345 };
40346
40347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_left_get",kwnames,&obj0)) goto fail;
40348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40350 result = (wxIndividualLayoutConstraint *)& ((arg1)->left);
40351
40352 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
40353 return resultobj;
40354 fail:
40355 return NULL;
40356}
40357
40358
40359static PyObject *_wrap_LayoutConstraints_top_get(PyObject *self, PyObject *args, PyObject *kwargs) {
40360 PyObject *resultobj;
40361 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40362 wxIndividualLayoutConstraint *result;
40363 PyObject * obj0 = 0 ;
40364 char *kwnames[] = {
40365 (char *) "self", NULL
40366 };
40367
40368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_top_get",kwnames,&obj0)) goto fail;
40369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40371 result = (wxIndividualLayoutConstraint *)& ((arg1)->top);
40372
40373 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
40374 return resultobj;
40375 fail:
40376 return NULL;
40377}
40378
40379
40380static PyObject *_wrap_LayoutConstraints_right_get(PyObject *self, PyObject *args, PyObject *kwargs) {
40381 PyObject *resultobj;
40382 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40383 wxIndividualLayoutConstraint *result;
40384 PyObject * obj0 = 0 ;
40385 char *kwnames[] = {
40386 (char *) "self", NULL
40387 };
40388
40389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_right_get",kwnames,&obj0)) goto fail;
40390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40392 result = (wxIndividualLayoutConstraint *)& ((arg1)->right);
40393
40394 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
40395 return resultobj;
40396 fail:
40397 return NULL;
40398}
40399
40400
40401static PyObject *_wrap_LayoutConstraints_bottom_get(PyObject *self, PyObject *args, PyObject *kwargs) {
40402 PyObject *resultobj;
40403 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40404 wxIndividualLayoutConstraint *result;
40405 PyObject * obj0 = 0 ;
40406 char *kwnames[] = {
40407 (char *) "self", NULL
40408 };
40409
40410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_bottom_get",kwnames,&obj0)) goto fail;
40411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40413 result = (wxIndividualLayoutConstraint *)& ((arg1)->bottom);
40414
40415 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
40416 return resultobj;
40417 fail:
40418 return NULL;
40419}
40420
40421
40422static PyObject *_wrap_LayoutConstraints_width_get(PyObject *self, PyObject *args, PyObject *kwargs) {
40423 PyObject *resultobj;
40424 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40425 wxIndividualLayoutConstraint *result;
40426 PyObject * obj0 = 0 ;
40427 char *kwnames[] = {
40428 (char *) "self", NULL
40429 };
40430
40431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_width_get",kwnames,&obj0)) goto fail;
40432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40434 result = (wxIndividualLayoutConstraint *)& ((arg1)->width);
40435
40436 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
40437 return resultobj;
40438 fail:
40439 return NULL;
40440}
40441
40442
40443static PyObject *_wrap_LayoutConstraints_height_get(PyObject *self, PyObject *args, PyObject *kwargs) {
40444 PyObject *resultobj;
40445 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40446 wxIndividualLayoutConstraint *result;
40447 PyObject * obj0 = 0 ;
40448 char *kwnames[] = {
40449 (char *) "self", NULL
40450 };
40451
40452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_height_get",kwnames,&obj0)) goto fail;
40453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40455 result = (wxIndividualLayoutConstraint *)& ((arg1)->height);
40456
40457 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
40458 return resultobj;
40459 fail:
40460 return NULL;
40461}
40462
40463
40464static PyObject *_wrap_LayoutConstraints_centreX_get(PyObject *self, PyObject *args, PyObject *kwargs) {
40465 PyObject *resultobj;
40466 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40467 wxIndividualLayoutConstraint *result;
40468 PyObject * obj0 = 0 ;
40469 char *kwnames[] = {
40470 (char *) "self", NULL
40471 };
40472
40473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreX_get",kwnames,&obj0)) goto fail;
40474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40476 result = (wxIndividualLayoutConstraint *)& ((arg1)->centreX);
40477
40478 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
40479 return resultobj;
40480 fail:
40481 return NULL;
40482}
40483
40484
40485static PyObject *_wrap_LayoutConstraints_centreY_get(PyObject *self, PyObject *args, PyObject *kwargs) {
40486 PyObject *resultobj;
40487 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40488 wxIndividualLayoutConstraint *result;
40489 PyObject * obj0 = 0 ;
40490 char *kwnames[] = {
40491 (char *) "self", NULL
40492 };
40493
40494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreY_get",kwnames,&obj0)) goto fail;
40495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40497 result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY);
40498
40499 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
40500 return resultobj;
40501 fail:
40502 return NULL;
40503}
40504
40505
40506static PyObject *_wrap_new_LayoutConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
40507 PyObject *resultobj;
40508 wxLayoutConstraints *result;
40509 char *kwnames[] = {
40510 NULL
40511 };
40512
40513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutConstraints",kwnames)) goto fail;
40514 {
40515 PyThreadState* __tstate = wxPyBeginAllowThreads();
40516 result = (wxLayoutConstraints *)new wxLayoutConstraints();
40517
40518 wxPyEndAllowThreads(__tstate);
40519 if (PyErr_Occurred()) SWIG_fail;
40520 }
40521 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 1);
40522 return resultobj;
40523 fail:
40524 return NULL;
40525}
40526
40527
40528static PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
40529 PyObject *resultobj;
40530 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40531 wxWindow *arg2 = (wxWindow *) 0 ;
40532 int *arg3 = (int *) 0 ;
40533 bool result;
40534 int temp3 ;
40535 PyObject * obj0 = 0 ;
40536 PyObject * obj1 = 0 ;
40537 char *kwnames[] = {
40538 (char *) "self",(char *) "win", NULL
40539 };
40540
40541 arg3 = &temp3;
40542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) goto fail;
40543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40545 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
40546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40547 {
40548 PyThreadState* __tstate = wxPyBeginAllowThreads();
40549 result = (bool)(arg1)->SatisfyConstraints(arg2,arg3);
40550
40551 wxPyEndAllowThreads(__tstate);
40552 if (PyErr_Occurred()) SWIG_fail;
40553 }
40554 {
40555 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40556 }
40557 {
40558 PyObject *o = PyInt_FromLong((long) (*arg3));
40559 resultobj = t_output_helper(resultobj,o);
40560 }
40561 return resultobj;
40562 fail:
40563 return NULL;
40564}
40565
40566
40567static PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *self, PyObject *args, PyObject *kwargs) {
40568 PyObject *resultobj;
40569 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40570 bool result;
40571 PyObject * obj0 = 0 ;
40572 char *kwnames[] = {
40573 (char *) "self", NULL
40574 };
40575
40576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_AreSatisfied",kwnames,&obj0)) goto fail;
40577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40579 {
40580 PyThreadState* __tstate = wxPyBeginAllowThreads();
40581 result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied();
40582
40583 wxPyEndAllowThreads(__tstate);
40584 if (PyErr_Occurred()) SWIG_fail;
40585 }
40586 {
40587 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40588 }
40589 return resultobj;
40590 fail:
40591 return NULL;
40592}
40593
40594
40595static PyObject * LayoutConstraints_swigregister(PyObject *self, PyObject *args) {
40596 PyObject *obj;
40597 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
40598 SWIG_TypeClientData(SWIGTYPE_p_wxLayoutConstraints, obj);
40599 Py_INCREF(obj);
40600 return Py_BuildValue((char *)"");
40601}
40602static PyMethodDef SwigMethods[] = {
40603 { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS },
40604 { (char *)"_wxPyFixStockObjects", __wxPyFixStockObjects, METH_VARARGS },
40605 { (char *)"Object_GetClassName", (PyCFunction) _wrap_Object_GetClassName, METH_VARARGS | METH_KEYWORDS },
40606 { (char *)"Object_Destroy", (PyCFunction) _wrap_Object_Destroy, METH_VARARGS | METH_KEYWORDS },
40607 { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS },
40608 { (char *)"Size_width_set", (PyCFunction) _wrap_Size_width_set, METH_VARARGS | METH_KEYWORDS },
40609 { (char *)"Size_width_get", (PyCFunction) _wrap_Size_width_get, METH_VARARGS | METH_KEYWORDS },
40610 { (char *)"Size_height_set", (PyCFunction) _wrap_Size_height_set, METH_VARARGS | METH_KEYWORDS },
40611 { (char *)"Size_height_get", (PyCFunction) _wrap_Size_height_get, METH_VARARGS | METH_KEYWORDS },
40612 { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS },
40613 { (char *)"delete_Size", (PyCFunction) _wrap_delete_Size, METH_VARARGS | METH_KEYWORDS },
40614 { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS },
40615 { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS },
40616 { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS },
40617 { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS },
40618 { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS },
40619 { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS },
40620 { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS },
40621 { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS },
40622 { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS },
40623 { (char *)"Size_GetWidth", (PyCFunction) _wrap_Size_GetWidth, METH_VARARGS | METH_KEYWORDS },
40624 { (char *)"Size_GetHeight", (PyCFunction) _wrap_Size_GetHeight, METH_VARARGS | METH_KEYWORDS },
40625 { (char *)"Size_IsFullySpecified", (PyCFunction) _wrap_Size_IsFullySpecified, METH_VARARGS | METH_KEYWORDS },
40626 { (char *)"Size_SetDefaults", (PyCFunction) _wrap_Size_SetDefaults, METH_VARARGS | METH_KEYWORDS },
40627 { (char *)"Size_Get", (PyCFunction) _wrap_Size_Get, METH_VARARGS | METH_KEYWORDS },
40628 { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS },
40629 { (char *)"RealPoint_x_set", (PyCFunction) _wrap_RealPoint_x_set, METH_VARARGS | METH_KEYWORDS },
40630 { (char *)"RealPoint_x_get", (PyCFunction) _wrap_RealPoint_x_get, METH_VARARGS | METH_KEYWORDS },
40631 { (char *)"RealPoint_y_set", (PyCFunction) _wrap_RealPoint_y_set, METH_VARARGS | METH_KEYWORDS },
40632 { (char *)"RealPoint_y_get", (PyCFunction) _wrap_RealPoint_y_get, METH_VARARGS | METH_KEYWORDS },
40633 { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS },
40634 { (char *)"delete_RealPoint", (PyCFunction) _wrap_delete_RealPoint, METH_VARARGS | METH_KEYWORDS },
40635 { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS },
40636 { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS },
40637 { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS },
40638 { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS },
40639 { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS },
40640 { (char *)"RealPoint_Get", (PyCFunction) _wrap_RealPoint_Get, METH_VARARGS | METH_KEYWORDS },
40641 { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS },
40642 { (char *)"Point_x_set", (PyCFunction) _wrap_Point_x_set, METH_VARARGS | METH_KEYWORDS },
40643 { (char *)"Point_x_get", (PyCFunction) _wrap_Point_x_get, METH_VARARGS | METH_KEYWORDS },
40644 { (char *)"Point_y_set", (PyCFunction) _wrap_Point_y_set, METH_VARARGS | METH_KEYWORDS },
40645 { (char *)"Point_y_get", (PyCFunction) _wrap_Point_y_get, METH_VARARGS | METH_KEYWORDS },
40646 { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS },
40647 { (char *)"delete_Point", (PyCFunction) _wrap_delete_Point, METH_VARARGS | METH_KEYWORDS },
40648 { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS },
40649 { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS },
40650 { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS },
40651 { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS },
40652 { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS },
40653 { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS },
40654 { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS },
40655 { (char *)"Point_Get", (PyCFunction) _wrap_Point_Get, METH_VARARGS | METH_KEYWORDS },
40656 { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS },
40657 { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS },
40658 { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS },
40659 { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS },
40660 { (char *)"delete_Rect", (PyCFunction) _wrap_delete_Rect, METH_VARARGS | METH_KEYWORDS },
40661 { (char *)"Rect_GetX", (PyCFunction) _wrap_Rect_GetX, METH_VARARGS | METH_KEYWORDS },
40662 { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS },
40663 { (char *)"Rect_GetY", (PyCFunction) _wrap_Rect_GetY, METH_VARARGS | METH_KEYWORDS },
40664 { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS },
40665 { (char *)"Rect_GetWidth", (PyCFunction) _wrap_Rect_GetWidth, METH_VARARGS | METH_KEYWORDS },
40666 { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS },
40667 { (char *)"Rect_GetHeight", (PyCFunction) _wrap_Rect_GetHeight, METH_VARARGS | METH_KEYWORDS },
40668 { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS },
40669 { (char *)"Rect_GetPosition", (PyCFunction) _wrap_Rect_GetPosition, METH_VARARGS | METH_KEYWORDS },
40670 { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS },
40671 { (char *)"Rect_GetSize", (PyCFunction) _wrap_Rect_GetSize, METH_VARARGS | METH_KEYWORDS },
40672 { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS },
40673 { (char *)"Rect_GetTopLeft", (PyCFunction) _wrap_Rect_GetTopLeft, METH_VARARGS | METH_KEYWORDS },
40674 { (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS },
40675 { (char *)"Rect_GetBottomRight", (PyCFunction) _wrap_Rect_GetBottomRight, METH_VARARGS | METH_KEYWORDS },
40676 { (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS },
40677 { (char *)"Rect_GetLeft", (PyCFunction) _wrap_Rect_GetLeft, METH_VARARGS | METH_KEYWORDS },
40678 { (char *)"Rect_GetTop", (PyCFunction) _wrap_Rect_GetTop, METH_VARARGS | METH_KEYWORDS },
40679 { (char *)"Rect_GetBottom", (PyCFunction) _wrap_Rect_GetBottom, METH_VARARGS | METH_KEYWORDS },
40680 { (char *)"Rect_GetRight", (PyCFunction) _wrap_Rect_GetRight, METH_VARARGS | METH_KEYWORDS },
40681 { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS },
40682 { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS },
40683 { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS },
40684 { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS },
40685 { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS },
40686 { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS },
40687 { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS },
40688 { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS },
40689 { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS },
40690 { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS },
40691 { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS },
40692 { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS },
40693 { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS },
40694 { (char *)"Rect_InsideXY", (PyCFunction) _wrap_Rect_InsideXY, METH_VARARGS | METH_KEYWORDS },
40695 { (char *)"Rect_Inside", (PyCFunction) _wrap_Rect_Inside, METH_VARARGS | METH_KEYWORDS },
40696 { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS },
40697 { (char *)"Rect_x_set", (PyCFunction) _wrap_Rect_x_set, METH_VARARGS | METH_KEYWORDS },
40698 { (char *)"Rect_x_get", (PyCFunction) _wrap_Rect_x_get, METH_VARARGS | METH_KEYWORDS },
40699 { (char *)"Rect_y_set", (PyCFunction) _wrap_Rect_y_set, METH_VARARGS | METH_KEYWORDS },
40700 { (char *)"Rect_y_get", (PyCFunction) _wrap_Rect_y_get, METH_VARARGS | METH_KEYWORDS },
40701 { (char *)"Rect_width_set", (PyCFunction) _wrap_Rect_width_set, METH_VARARGS | METH_KEYWORDS },
40702 { (char *)"Rect_width_get", (PyCFunction) _wrap_Rect_width_get, METH_VARARGS | METH_KEYWORDS },
40703 { (char *)"Rect_height_set", (PyCFunction) _wrap_Rect_height_set, METH_VARARGS | METH_KEYWORDS },
40704 { (char *)"Rect_height_get", (PyCFunction) _wrap_Rect_height_get, METH_VARARGS | METH_KEYWORDS },
40705 { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS },
40706 { (char *)"Rect_Get", (PyCFunction) _wrap_Rect_Get, METH_VARARGS | METH_KEYWORDS },
40707 { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS },
40708 { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS },
40709 { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS },
40710 { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS },
40711 { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS },
40712 { (char *)"Point2D_GetFloor", (PyCFunction) _wrap_Point2D_GetFloor, METH_VARARGS | METH_KEYWORDS },
40713 { (char *)"Point2D_GetRounded", (PyCFunction) _wrap_Point2D_GetRounded, METH_VARARGS | METH_KEYWORDS },
40714 { (char *)"Point2D_GetVectorLength", (PyCFunction) _wrap_Point2D_GetVectorLength, METH_VARARGS | METH_KEYWORDS },
40715 { (char *)"Point2D_GetVectorAngle", (PyCFunction) _wrap_Point2D_GetVectorAngle, METH_VARARGS | METH_KEYWORDS },
40716 { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS },
40717 { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS },
40718 { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS },
40719 { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS },
40720 { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS },
40721 { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS },
40722 { (char *)"Point2D___neg__", (PyCFunction) _wrap_Point2D___neg__, METH_VARARGS | METH_KEYWORDS },
40723 { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS },
40724 { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS },
40725 { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS },
40726 { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS },
40727 { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS },
40728 { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS },
40729 { (char *)"Point2D_x_set", (PyCFunction) _wrap_Point2D_x_set, METH_VARARGS | METH_KEYWORDS },
40730 { (char *)"Point2D_x_get", (PyCFunction) _wrap_Point2D_x_get, METH_VARARGS | METH_KEYWORDS },
40731 { (char *)"Point2D_y_set", (PyCFunction) _wrap_Point2D_y_set, METH_VARARGS | METH_KEYWORDS },
40732 { (char *)"Point2D_y_get", (PyCFunction) _wrap_Point2D_y_get, METH_VARARGS | METH_KEYWORDS },
40733 { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS },
40734 { (char *)"Point2D_Get", (PyCFunction) _wrap_Point2D_Get, METH_VARARGS | METH_KEYWORDS },
40735 { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS },
40736 { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS },
40737 { (char *)"InputStream_close", (PyCFunction) _wrap_InputStream_close, METH_VARARGS | METH_KEYWORDS },
40738 { (char *)"InputStream_flush", (PyCFunction) _wrap_InputStream_flush, METH_VARARGS | METH_KEYWORDS },
40739 { (char *)"InputStream_eof", (PyCFunction) _wrap_InputStream_eof, METH_VARARGS | METH_KEYWORDS },
40740 { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS },
40741 { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS },
40742 { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS },
40743 { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS },
40744 { (char *)"InputStream_tell", (PyCFunction) _wrap_InputStream_tell, METH_VARARGS | METH_KEYWORDS },
40745 { (char *)"InputStream_Peek", (PyCFunction) _wrap_InputStream_Peek, METH_VARARGS | METH_KEYWORDS },
40746 { (char *)"InputStream_GetC", (PyCFunction) _wrap_InputStream_GetC, METH_VARARGS | METH_KEYWORDS },
40747 { (char *)"InputStream_LastRead", (PyCFunction) _wrap_InputStream_LastRead, METH_VARARGS | METH_KEYWORDS },
40748 { (char *)"InputStream_CanRead", (PyCFunction) _wrap_InputStream_CanRead, METH_VARARGS | METH_KEYWORDS },
40749 { (char *)"InputStream_Eof", (PyCFunction) _wrap_InputStream_Eof, METH_VARARGS | METH_KEYWORDS },
40750 { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS },
40751 { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS },
40752 { (char *)"InputStream_TellI", (PyCFunction) _wrap_InputStream_TellI, METH_VARARGS | METH_KEYWORDS },
40753 { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS },
40754 { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS },
40755 { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS },
40756 { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS },
40757 { (char *)"delete_FSFile", (PyCFunction) _wrap_delete_FSFile, METH_VARARGS | METH_KEYWORDS },
40758 { (char *)"FSFile_GetStream", (PyCFunction) _wrap_FSFile_GetStream, METH_VARARGS | METH_KEYWORDS },
40759 { (char *)"FSFile_GetMimeType", (PyCFunction) _wrap_FSFile_GetMimeType, METH_VARARGS | METH_KEYWORDS },
40760 { (char *)"FSFile_GetLocation", (PyCFunction) _wrap_FSFile_GetLocation, METH_VARARGS | METH_KEYWORDS },
40761 { (char *)"FSFile_GetAnchor", (PyCFunction) _wrap_FSFile_GetAnchor, METH_VARARGS | METH_KEYWORDS },
40762 { (char *)"FSFile_GetModificationTime", (PyCFunction) _wrap_FSFile_GetModificationTime, METH_VARARGS | METH_KEYWORDS },
40763 { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS },
40764 { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS },
40765 { (char *)"new_FileSystemHandler", (PyCFunction) _wrap_new_FileSystemHandler, METH_VARARGS | METH_KEYWORDS },
40766 { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
40767 { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS },
40768 { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS },
40769 { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS },
40770 { (char *)"FileSystemHandler_FindNext", (PyCFunction) _wrap_FileSystemHandler_FindNext, METH_VARARGS | METH_KEYWORDS },
40771 { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS },
40772 { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS },
40773 { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS },
40774 { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS },
40775 { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS },
40776 { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS },
40777 { (char *)"new_FileSystem", (PyCFunction) _wrap_new_FileSystem, METH_VARARGS | METH_KEYWORDS },
40778 { (char *)"delete_FileSystem", (PyCFunction) _wrap_delete_FileSystem, METH_VARARGS | METH_KEYWORDS },
40779 { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS },
40780 { (char *)"FileSystem_GetPath", (PyCFunction) _wrap_FileSystem_GetPath, METH_VARARGS | METH_KEYWORDS },
40781 { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS },
40782 { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS },
40783 { (char *)"FileSystem_FindNext", (PyCFunction) _wrap_FileSystem_FindNext, METH_VARARGS | METH_KEYWORDS },
40784 { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS },
40785 { (char *)"FileSystem_CleanUpHandlers", (PyCFunction) _wrap_FileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS },
40786 { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS },
40787 { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS },
40788 { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS },
40789 { (char *)"new_InternetFSHandler", (PyCFunction) _wrap_new_InternetFSHandler, METH_VARARGS | METH_KEYWORDS },
40790 { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS },
40791 { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS },
40792 { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS },
40793 { (char *)"new_ZipFSHandler", (PyCFunction) _wrap_new_ZipFSHandler, METH_VARARGS | METH_KEYWORDS },
40794 { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS },
40795 { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS },
40796 { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS },
40797 { (char *)"ZipFSHandler_FindNext", (PyCFunction) _wrap_ZipFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS },
40798 { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS },
40799 { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS },
40800 { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS },
40801 { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS },
40802 { (char *)"new_MemoryFSHandler", (PyCFunction) _wrap_new_MemoryFSHandler, METH_VARARGS | METH_KEYWORDS },
40803 { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS },
40804 { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS },
40805 { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS },
40806 { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS },
40807 { (char *)"MemoryFSHandler_FindNext", (PyCFunction) _wrap_MemoryFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS },
40808 { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS },
40809 { (char *)"ImageHandler_GetName", (PyCFunction) _wrap_ImageHandler_GetName, METH_VARARGS | METH_KEYWORDS },
40810 { (char *)"ImageHandler_GetExtension", (PyCFunction) _wrap_ImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS },
40811 { (char *)"ImageHandler_GetType", (PyCFunction) _wrap_ImageHandler_GetType, METH_VARARGS | METH_KEYWORDS },
40812 { (char *)"ImageHandler_GetMimeType", (PyCFunction) _wrap_ImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS },
40813 { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS },
40814 { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS },
40815 { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS },
40816 { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS },
40817 { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS },
40818 { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS },
40819 { (char *)"new_ImageHistogram", (PyCFunction) _wrap_new_ImageHistogram, METH_VARARGS | METH_KEYWORDS },
40820 { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS },
40821 { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS },
40822 { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS },
40823 { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS },
40824 { (char *)"delete_Image", (PyCFunction) _wrap_delete_Image, METH_VARARGS | METH_KEYWORDS },
40825 { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS },
40826 { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS },
40827 { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS },
c24da6d6 40828 { (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
40829 { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS },
40830 { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS },
40831 { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS },
40832 { (char *)"Image_Destroy", (PyCFunction) _wrap_Image_Destroy, METH_VARARGS | METH_KEYWORDS },
40833 { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS },
40834 { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS },
40835 { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS },
40836 { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS },
40837 { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS },
40838 { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS },
40839 { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS },
40840 { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS },
40841 { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS },
40842 { (char *)"Image_HasAlpha", (PyCFunction) _wrap_Image_HasAlpha, METH_VARARGS | METH_KEYWORDS },
40843 { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS },
40844 { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS },
40845 { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS },
40846 { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS },
40847 { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS },
40848 { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS },
40849 { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS },
40850 { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS },
40851 { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS },
40852 { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS },
40853 { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS },
40854 { (char *)"Image_Ok", (PyCFunction) _wrap_Image_Ok, METH_VARARGS | METH_KEYWORDS },
40855 { (char *)"Image_GetWidth", (PyCFunction) _wrap_Image_GetWidth, METH_VARARGS | METH_KEYWORDS },
40856 { (char *)"Image_GetHeight", (PyCFunction) _wrap_Image_GetHeight, METH_VARARGS | METH_KEYWORDS },
40857 { (char *)"Image_GetSize", (PyCFunction) _wrap_Image_GetSize, METH_VARARGS | METH_KEYWORDS },
40858 { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS },
40859 { (char *)"Image_Copy", (PyCFunction) _wrap_Image_Copy, METH_VARARGS | METH_KEYWORDS },
40860 { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS },
40861 { (char *)"Image_GetData", (PyCFunction) _wrap_Image_GetData, METH_VARARGS | METH_KEYWORDS },
40862 { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS },
40863 { (char *)"Image_GetDataBuffer", (PyCFunction) _wrap_Image_GetDataBuffer, METH_VARARGS | METH_KEYWORDS },
40864 { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS },
40865 { (char *)"Image_GetAlphaData", (PyCFunction) _wrap_Image_GetAlphaData, METH_VARARGS | METH_KEYWORDS },
40866 { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS },
40867 { (char *)"Image_GetAlphaBuffer", (PyCFunction) _wrap_Image_GetAlphaBuffer, METH_VARARGS | METH_KEYWORDS },
40868 { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS },
40869 { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
40870 { (char *)"Image_GetMaskRed", (PyCFunction) _wrap_Image_GetMaskRed, METH_VARARGS | METH_KEYWORDS },
40871 { (char *)"Image_GetMaskGreen", (PyCFunction) _wrap_Image_GetMaskGreen, METH_VARARGS | METH_KEYWORDS },
40872 { (char *)"Image_GetMaskBlue", (PyCFunction) _wrap_Image_GetMaskBlue, METH_VARARGS | METH_KEYWORDS },
40873 { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS },
40874 { (char *)"Image_HasMask", (PyCFunction) _wrap_Image_HasMask, METH_VARARGS | METH_KEYWORDS },
40875 { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS },
40876 { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS },
40877 { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS },
40878 { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS },
40879 { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS },
40880 { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS },
40881 { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS },
40882 { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS },
40883 { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS },
40884 { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS },
40885 { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS },
40886 { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS },
40887 { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS },
40888 { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS },
40889 { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS },
40890 { (char *)"Image_GetImageExtWildcard", (PyCFunction) _wrap_Image_GetImageExtWildcard, METH_VARARGS | METH_KEYWORDS },
40891 { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
40892 { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS },
40893 { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS },
d55e5bfc
RD
40894 { (char *)"new_BMPHandler", (PyCFunction) _wrap_new_BMPHandler, METH_VARARGS | METH_KEYWORDS },
40895 { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS },
40896 { (char *)"new_ICOHandler", (PyCFunction) _wrap_new_ICOHandler, METH_VARARGS | METH_KEYWORDS },
40897 { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS },
40898 { (char *)"new_CURHandler", (PyCFunction) _wrap_new_CURHandler, METH_VARARGS | METH_KEYWORDS },
40899 { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS },
40900 { (char *)"new_ANIHandler", (PyCFunction) _wrap_new_ANIHandler, METH_VARARGS | METH_KEYWORDS },
40901 { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS },
40902 { (char *)"new_PNGHandler", (PyCFunction) _wrap_new_PNGHandler, METH_VARARGS | METH_KEYWORDS },
40903 { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS },
40904 { (char *)"new_GIFHandler", (PyCFunction) _wrap_new_GIFHandler, METH_VARARGS | METH_KEYWORDS },
40905 { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS },
40906 { (char *)"new_PCXHandler", (PyCFunction) _wrap_new_PCXHandler, METH_VARARGS | METH_KEYWORDS },
40907 { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS },
40908 { (char *)"new_JPEGHandler", (PyCFunction) _wrap_new_JPEGHandler, METH_VARARGS | METH_KEYWORDS },
40909 { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS },
40910 { (char *)"new_PNMHandler", (PyCFunction) _wrap_new_PNMHandler, METH_VARARGS | METH_KEYWORDS },
40911 { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS },
40912 { (char *)"new_XPMHandler", (PyCFunction) _wrap_new_XPMHandler, METH_VARARGS | METH_KEYWORDS },
40913 { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS },
40914 { (char *)"new_TIFFHandler", (PyCFunction) _wrap_new_TIFFHandler, METH_VARARGS | METH_KEYWORDS },
40915 { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS },
40916 { (char *)"new_EvtHandler", (PyCFunction) _wrap_new_EvtHandler, METH_VARARGS | METH_KEYWORDS },
40917 { (char *)"EvtHandler_GetNextHandler", (PyCFunction) _wrap_EvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS },
40918 { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction) _wrap_EvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS },
40919 { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS },
40920 { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS },
40921 { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS },
40922 { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS },
40923 { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS },
40924 { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS },
40925 { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction) _wrap_EvtHandler_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS },
40926 { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS },
40927 { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS },
40928 { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS },
40929 { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS },
40930 { (char *)"NewEventType", (PyCFunction) _wrap_NewEventType, METH_VARARGS | METH_KEYWORDS },
40931 { (char *)"delete_Event", (PyCFunction) _wrap_delete_Event, METH_VARARGS | METH_KEYWORDS },
40932 { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS },
40933 { (char *)"Event_GetEventType", (PyCFunction) _wrap_Event_GetEventType, METH_VARARGS | METH_KEYWORDS },
40934 { (char *)"Event_GetEventObject", (PyCFunction) _wrap_Event_GetEventObject, METH_VARARGS | METH_KEYWORDS },
40935 { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS },
40936 { (char *)"Event_GetTimestamp", (PyCFunction) _wrap_Event_GetTimestamp, METH_VARARGS | METH_KEYWORDS },
40937 { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS },
40938 { (char *)"Event_GetId", (PyCFunction) _wrap_Event_GetId, METH_VARARGS | METH_KEYWORDS },
40939 { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS },
40940 { (char *)"Event_IsCommandEvent", (PyCFunction) _wrap_Event_IsCommandEvent, METH_VARARGS | METH_KEYWORDS },
40941 { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS },
40942 { (char *)"Event_GetSkipped", (PyCFunction) _wrap_Event_GetSkipped, METH_VARARGS | METH_KEYWORDS },
40943 { (char *)"Event_ShouldPropagate", (PyCFunction) _wrap_Event_ShouldPropagate, METH_VARARGS | METH_KEYWORDS },
40944 { (char *)"Event_StopPropagation", (PyCFunction) _wrap_Event_StopPropagation, METH_VARARGS | METH_KEYWORDS },
40945 { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS },
40946 { (char *)"Event_Clone", (PyCFunction) _wrap_Event_Clone, METH_VARARGS | METH_KEYWORDS },
40947 { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS },
40948 { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS },
40949 { (char *)"delete_PropagationDisabler", (PyCFunction) _wrap_delete_PropagationDisabler, METH_VARARGS | METH_KEYWORDS },
40950 { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS },
40951 { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS },
40952 { (char *)"delete_PropagateOnce", (PyCFunction) _wrap_delete_PropagateOnce, METH_VARARGS | METH_KEYWORDS },
40953 { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS },
40954 { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS },
40955 { (char *)"CommandEvent_GetSelection", (PyCFunction) _wrap_CommandEvent_GetSelection, METH_VARARGS | METH_KEYWORDS },
40956 { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS },
40957 { (char *)"CommandEvent_GetString", (PyCFunction) _wrap_CommandEvent_GetString, METH_VARARGS | METH_KEYWORDS },
40958 { (char *)"CommandEvent_IsChecked", (PyCFunction) _wrap_CommandEvent_IsChecked, METH_VARARGS | METH_KEYWORDS },
40959 { (char *)"CommandEvent_IsSelection", (PyCFunction) _wrap_CommandEvent_IsSelection, METH_VARARGS | METH_KEYWORDS },
40960 { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS },
40961 { (char *)"CommandEvent_GetExtraLong", (PyCFunction) _wrap_CommandEvent_GetExtraLong, METH_VARARGS | METH_KEYWORDS },
40962 { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS },
40963 { (char *)"CommandEvent_GetInt", (PyCFunction) _wrap_CommandEvent_GetInt, METH_VARARGS | METH_KEYWORDS },
40964 { (char *)"CommandEvent_Clone", (PyCFunction) _wrap_CommandEvent_Clone, METH_VARARGS | METH_KEYWORDS },
40965 { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS },
40966 { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS },
40967 { (char *)"NotifyEvent_Veto", (PyCFunction) _wrap_NotifyEvent_Veto, METH_VARARGS | METH_KEYWORDS },
40968 { (char *)"NotifyEvent_Allow", (PyCFunction) _wrap_NotifyEvent_Allow, METH_VARARGS | METH_KEYWORDS },
40969 { (char *)"NotifyEvent_IsAllowed", (PyCFunction) _wrap_NotifyEvent_IsAllowed, METH_VARARGS | METH_KEYWORDS },
40970 { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS },
40971 { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS },
40972 { (char *)"ScrollEvent_GetOrientation", (PyCFunction) _wrap_ScrollEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS },
40973 { (char *)"ScrollEvent_GetPosition", (PyCFunction) _wrap_ScrollEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
40974 { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS },
40975 { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
40976 { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS },
40977 { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS },
40978 { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction) _wrap_ScrollWinEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS },
40979 { (char *)"ScrollWinEvent_GetPosition", (PyCFunction) _wrap_ScrollWinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
40980 { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS },
40981 { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
40982 { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS },
40983 { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS },
40984 { (char *)"MouseEvent_IsButton", (PyCFunction) _wrap_MouseEvent_IsButton, METH_VARARGS | METH_KEYWORDS },
40985 { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS },
40986 { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS },
40987 { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS },
40988 { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS },
40989 { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS },
40990 { (char *)"MouseEvent_GetButton", (PyCFunction) _wrap_MouseEvent_GetButton, METH_VARARGS | METH_KEYWORDS },
40991 { (char *)"MouseEvent_ControlDown", (PyCFunction) _wrap_MouseEvent_ControlDown, METH_VARARGS | METH_KEYWORDS },
40992 { (char *)"MouseEvent_MetaDown", (PyCFunction) _wrap_MouseEvent_MetaDown, METH_VARARGS | METH_KEYWORDS },
40993 { (char *)"MouseEvent_AltDown", (PyCFunction) _wrap_MouseEvent_AltDown, METH_VARARGS | METH_KEYWORDS },
40994 { (char *)"MouseEvent_ShiftDown", (PyCFunction) _wrap_MouseEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS },
412d302d 40995 { (char *)"MouseEvent_CmdDown", (PyCFunction) _wrap_MouseEvent_CmdDown, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
40996 { (char *)"MouseEvent_LeftDown", (PyCFunction) _wrap_MouseEvent_LeftDown, METH_VARARGS | METH_KEYWORDS },
40997 { (char *)"MouseEvent_MiddleDown", (PyCFunction) _wrap_MouseEvent_MiddleDown, METH_VARARGS | METH_KEYWORDS },
40998 { (char *)"MouseEvent_RightDown", (PyCFunction) _wrap_MouseEvent_RightDown, METH_VARARGS | METH_KEYWORDS },
40999 { (char *)"MouseEvent_LeftUp", (PyCFunction) _wrap_MouseEvent_LeftUp, METH_VARARGS | METH_KEYWORDS },
41000 { (char *)"MouseEvent_MiddleUp", (PyCFunction) _wrap_MouseEvent_MiddleUp, METH_VARARGS | METH_KEYWORDS },
41001 { (char *)"MouseEvent_RightUp", (PyCFunction) _wrap_MouseEvent_RightUp, METH_VARARGS | METH_KEYWORDS },
41002 { (char *)"MouseEvent_LeftDClick", (PyCFunction) _wrap_MouseEvent_LeftDClick, METH_VARARGS | METH_KEYWORDS },
41003 { (char *)"MouseEvent_MiddleDClick", (PyCFunction) _wrap_MouseEvent_MiddleDClick, METH_VARARGS | METH_KEYWORDS },
41004 { (char *)"MouseEvent_RightDClick", (PyCFunction) _wrap_MouseEvent_RightDClick, METH_VARARGS | METH_KEYWORDS },
41005 { (char *)"MouseEvent_LeftIsDown", (PyCFunction) _wrap_MouseEvent_LeftIsDown, METH_VARARGS | METH_KEYWORDS },
41006 { (char *)"MouseEvent_MiddleIsDown", (PyCFunction) _wrap_MouseEvent_MiddleIsDown, METH_VARARGS | METH_KEYWORDS },
41007 { (char *)"MouseEvent_RightIsDown", (PyCFunction) _wrap_MouseEvent_RightIsDown, METH_VARARGS | METH_KEYWORDS },
41008 { (char *)"MouseEvent_Dragging", (PyCFunction) _wrap_MouseEvent_Dragging, METH_VARARGS | METH_KEYWORDS },
41009 { (char *)"MouseEvent_Moving", (PyCFunction) _wrap_MouseEvent_Moving, METH_VARARGS | METH_KEYWORDS },
41010 { (char *)"MouseEvent_Entering", (PyCFunction) _wrap_MouseEvent_Entering, METH_VARARGS | METH_KEYWORDS },
41011 { (char *)"MouseEvent_Leaving", (PyCFunction) _wrap_MouseEvent_Leaving, METH_VARARGS | METH_KEYWORDS },
41012 { (char *)"MouseEvent_GetPosition", (PyCFunction) _wrap_MouseEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
41013 { (char *)"MouseEvent_GetPositionTuple", (PyCFunction) _wrap_MouseEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
41014 { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS },
41015 { (char *)"MouseEvent_GetX", (PyCFunction) _wrap_MouseEvent_GetX, METH_VARARGS | METH_KEYWORDS },
41016 { (char *)"MouseEvent_GetY", (PyCFunction) _wrap_MouseEvent_GetY, METH_VARARGS | METH_KEYWORDS },
41017 { (char *)"MouseEvent_GetWheelRotation", (PyCFunction) _wrap_MouseEvent_GetWheelRotation, METH_VARARGS | METH_KEYWORDS },
41018 { (char *)"MouseEvent_GetWheelDelta", (PyCFunction) _wrap_MouseEvent_GetWheelDelta, METH_VARARGS | METH_KEYWORDS },
41019 { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction) _wrap_MouseEvent_GetLinesPerAction, METH_VARARGS | METH_KEYWORDS },
41020 { (char *)"MouseEvent_IsPageScroll", (PyCFunction) _wrap_MouseEvent_IsPageScroll, METH_VARARGS | METH_KEYWORDS },
41021 { (char *)"MouseEvent_m_x_set", (PyCFunction) _wrap_MouseEvent_m_x_set, METH_VARARGS | METH_KEYWORDS },
41022 { (char *)"MouseEvent_m_x_get", (PyCFunction) _wrap_MouseEvent_m_x_get, METH_VARARGS | METH_KEYWORDS },
41023 { (char *)"MouseEvent_m_y_set", (PyCFunction) _wrap_MouseEvent_m_y_set, METH_VARARGS | METH_KEYWORDS },
41024 { (char *)"MouseEvent_m_y_get", (PyCFunction) _wrap_MouseEvent_m_y_get, METH_VARARGS | METH_KEYWORDS },
41025 { (char *)"MouseEvent_m_leftDown_set", (PyCFunction) _wrap_MouseEvent_m_leftDown_set, METH_VARARGS | METH_KEYWORDS },
41026 { (char *)"MouseEvent_m_leftDown_get", (PyCFunction) _wrap_MouseEvent_m_leftDown_get, METH_VARARGS | METH_KEYWORDS },
41027 { (char *)"MouseEvent_m_middleDown_set", (PyCFunction) _wrap_MouseEvent_m_middleDown_set, METH_VARARGS | METH_KEYWORDS },
41028 { (char *)"MouseEvent_m_middleDown_get", (PyCFunction) _wrap_MouseEvent_m_middleDown_get, METH_VARARGS | METH_KEYWORDS },
41029 { (char *)"MouseEvent_m_rightDown_set", (PyCFunction) _wrap_MouseEvent_m_rightDown_set, METH_VARARGS | METH_KEYWORDS },
41030 { (char *)"MouseEvent_m_rightDown_get", (PyCFunction) _wrap_MouseEvent_m_rightDown_get, METH_VARARGS | METH_KEYWORDS },
41031 { (char *)"MouseEvent_m_controlDown_set", (PyCFunction) _wrap_MouseEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS },
41032 { (char *)"MouseEvent_m_controlDown_get", (PyCFunction) _wrap_MouseEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS },
41033 { (char *)"MouseEvent_m_shiftDown_set", (PyCFunction) _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS },
41034 { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction) _wrap_MouseEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS },
41035 { (char *)"MouseEvent_m_altDown_set", (PyCFunction) _wrap_MouseEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS },
41036 { (char *)"MouseEvent_m_altDown_get", (PyCFunction) _wrap_MouseEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS },
41037 { (char *)"MouseEvent_m_metaDown_set", (PyCFunction) _wrap_MouseEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS },
41038 { (char *)"MouseEvent_m_metaDown_get", (PyCFunction) _wrap_MouseEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS },
41039 { (char *)"MouseEvent_m_wheelRotation_set", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS | METH_KEYWORDS },
41040 { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_get, METH_VARARGS | METH_KEYWORDS },
41041 { (char *)"MouseEvent_m_wheelDelta_set", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS | METH_KEYWORDS },
41042 { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_get, METH_VARARGS | METH_KEYWORDS },
41043 { (char *)"MouseEvent_m_linesPerAction_set", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS | METH_KEYWORDS },
41044 { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_get, METH_VARARGS | METH_KEYWORDS },
41045 { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS },
41046 { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS },
41047 { (char *)"SetCursorEvent_GetX", (PyCFunction) _wrap_SetCursorEvent_GetX, METH_VARARGS | METH_KEYWORDS },
41048 { (char *)"SetCursorEvent_GetY", (PyCFunction) _wrap_SetCursorEvent_GetY, METH_VARARGS | METH_KEYWORDS },
41049 { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS },
41050 { (char *)"SetCursorEvent_GetCursor", (PyCFunction) _wrap_SetCursorEvent_GetCursor, METH_VARARGS | METH_KEYWORDS },
41051 { (char *)"SetCursorEvent_HasCursor", (PyCFunction) _wrap_SetCursorEvent_HasCursor, METH_VARARGS | METH_KEYWORDS },
41052 { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS },
41053 { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS },
41054 { (char *)"KeyEvent_ControlDown", (PyCFunction) _wrap_KeyEvent_ControlDown, METH_VARARGS | METH_KEYWORDS },
41055 { (char *)"KeyEvent_MetaDown", (PyCFunction) _wrap_KeyEvent_MetaDown, METH_VARARGS | METH_KEYWORDS },
41056 { (char *)"KeyEvent_AltDown", (PyCFunction) _wrap_KeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS },
41057 { (char *)"KeyEvent_ShiftDown", (PyCFunction) _wrap_KeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS },
412d302d 41058 { (char *)"KeyEvent_CmdDown", (PyCFunction) _wrap_KeyEvent_CmdDown, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41059 { (char *)"KeyEvent_HasModifiers", (PyCFunction) _wrap_KeyEvent_HasModifiers, METH_VARARGS | METH_KEYWORDS },
41060 { (char *)"KeyEvent_GetKeyCode", (PyCFunction) _wrap_KeyEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS },
19272049 41061 { (char *)"KeyEvent_GetUnicodeKey", (PyCFunction) _wrap_KeyEvent_GetUnicodeKey, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41062 { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction) _wrap_KeyEvent_GetRawKeyCode, METH_VARARGS | METH_KEYWORDS },
41063 { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction) _wrap_KeyEvent_GetRawKeyFlags, METH_VARARGS | METH_KEYWORDS },
41064 { (char *)"KeyEvent_GetPosition", (PyCFunction) _wrap_KeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
41065 { (char *)"KeyEvent_GetPositionTuple", (PyCFunction) _wrap_KeyEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
41066 { (char *)"KeyEvent_GetX", (PyCFunction) _wrap_KeyEvent_GetX, METH_VARARGS | METH_KEYWORDS },
41067 { (char *)"KeyEvent_GetY", (PyCFunction) _wrap_KeyEvent_GetY, METH_VARARGS | METH_KEYWORDS },
41068 { (char *)"KeyEvent_m_x_set", (PyCFunction) _wrap_KeyEvent_m_x_set, METH_VARARGS | METH_KEYWORDS },
41069 { (char *)"KeyEvent_m_x_get", (PyCFunction) _wrap_KeyEvent_m_x_get, METH_VARARGS | METH_KEYWORDS },
41070 { (char *)"KeyEvent_m_y_set", (PyCFunction) _wrap_KeyEvent_m_y_set, METH_VARARGS | METH_KEYWORDS },
41071 { (char *)"KeyEvent_m_y_get", (PyCFunction) _wrap_KeyEvent_m_y_get, METH_VARARGS | METH_KEYWORDS },
41072 { (char *)"KeyEvent_m_keyCode_set", (PyCFunction) _wrap_KeyEvent_m_keyCode_set, METH_VARARGS | METH_KEYWORDS },
41073 { (char *)"KeyEvent_m_keyCode_get", (PyCFunction) _wrap_KeyEvent_m_keyCode_get, METH_VARARGS | METH_KEYWORDS },
41074 { (char *)"KeyEvent_m_controlDown_set", (PyCFunction) _wrap_KeyEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS },
41075 { (char *)"KeyEvent_m_controlDown_get", (PyCFunction) _wrap_KeyEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS },
41076 { (char *)"KeyEvent_m_shiftDown_set", (PyCFunction) _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS },
41077 { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction) _wrap_KeyEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS },
41078 { (char *)"KeyEvent_m_altDown_set", (PyCFunction) _wrap_KeyEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS },
41079 { (char *)"KeyEvent_m_altDown_get", (PyCFunction) _wrap_KeyEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS },
41080 { (char *)"KeyEvent_m_metaDown_set", (PyCFunction) _wrap_KeyEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS },
41081 { (char *)"KeyEvent_m_metaDown_get", (PyCFunction) _wrap_KeyEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS },
41082 { (char *)"KeyEvent_m_scanCode_set", (PyCFunction) _wrap_KeyEvent_m_scanCode_set, METH_VARARGS | METH_KEYWORDS },
41083 { (char *)"KeyEvent_m_scanCode_get", (PyCFunction) _wrap_KeyEvent_m_scanCode_get, METH_VARARGS | METH_KEYWORDS },
41084 { (char *)"KeyEvent_m_rawCode_set", (PyCFunction) _wrap_KeyEvent_m_rawCode_set, METH_VARARGS | METH_KEYWORDS },
41085 { (char *)"KeyEvent_m_rawCode_get", (PyCFunction) _wrap_KeyEvent_m_rawCode_get, METH_VARARGS | METH_KEYWORDS },
41086 { (char *)"KeyEvent_m_rawFlags_set", (PyCFunction) _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS | METH_KEYWORDS },
41087 { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction) _wrap_KeyEvent_m_rawFlags_get, METH_VARARGS | METH_KEYWORDS },
41088 { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS },
41089 { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS },
41090 { (char *)"SizeEvent_GetSize", (PyCFunction) _wrap_SizeEvent_GetSize, METH_VARARGS | METH_KEYWORDS },
41091 { (char *)"SizeEvent_GetRect", (PyCFunction) _wrap_SizeEvent_GetRect, METH_VARARGS | METH_KEYWORDS },
41092 { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS },
41093 { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS },
41094 { (char *)"SizeEvent_m_size_set", (PyCFunction) _wrap_SizeEvent_m_size_set, METH_VARARGS | METH_KEYWORDS },
41095 { (char *)"SizeEvent_m_size_get", (PyCFunction) _wrap_SizeEvent_m_size_get, METH_VARARGS | METH_KEYWORDS },
41096 { (char *)"SizeEvent_m_rect_set", (PyCFunction) _wrap_SizeEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS },
41097 { (char *)"SizeEvent_m_rect_get", (PyCFunction) _wrap_SizeEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS },
41098 { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS },
41099 { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS },
41100 { (char *)"MoveEvent_GetPosition", (PyCFunction) _wrap_MoveEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
41101 { (char *)"MoveEvent_GetRect", (PyCFunction) _wrap_MoveEvent_GetRect, METH_VARARGS | METH_KEYWORDS },
41102 { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS },
41103 { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
41104 { (char *)"MoveEvent_m_pos_set", (PyCFunction) _wrap_MoveEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS },
41105 { (char *)"MoveEvent_m_pos_get", (PyCFunction) _wrap_MoveEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS },
41106 { (char *)"MoveEvent_m_rect_set", (PyCFunction) _wrap_MoveEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS },
41107 { (char *)"MoveEvent_m_rect_get", (PyCFunction) _wrap_MoveEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS },
41108 { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS },
41109 { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS },
41110 { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS },
41111 { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS },
41112 { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS },
41113 { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS },
41114 { (char *)"EraseEvent_GetDC", (PyCFunction) _wrap_EraseEvent_GetDC, METH_VARARGS | METH_KEYWORDS },
41115 { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS },
41116 { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS },
41117 { (char *)"FocusEvent_GetWindow", (PyCFunction) _wrap_FocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS },
41118 { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS },
41119 { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS },
41120 { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS },
41121 { (char *)"ChildFocusEvent_GetWindow", (PyCFunction) _wrap_ChildFocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS },
41122 { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS },
41123 { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS },
41124 { (char *)"ActivateEvent_GetActive", (PyCFunction) _wrap_ActivateEvent_GetActive, METH_VARARGS | METH_KEYWORDS },
41125 { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS },
41126 { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS },
41127 { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS },
41128 { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS },
41129 { (char *)"MenuEvent_GetMenuId", (PyCFunction) _wrap_MenuEvent_GetMenuId, METH_VARARGS | METH_KEYWORDS },
41130 { (char *)"MenuEvent_IsPopup", (PyCFunction) _wrap_MenuEvent_IsPopup, METH_VARARGS | METH_KEYWORDS },
41131 { (char *)"MenuEvent_GetMenu", (PyCFunction) _wrap_MenuEvent_GetMenu, METH_VARARGS | METH_KEYWORDS },
41132 { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS },
41133 { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS },
41134 { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS },
41135 { (char *)"CloseEvent_GetLoggingOff", (PyCFunction) _wrap_CloseEvent_GetLoggingOff, METH_VARARGS | METH_KEYWORDS },
41136 { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS },
41137 { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS },
41138 { (char *)"CloseEvent_CanVeto", (PyCFunction) _wrap_CloseEvent_CanVeto, METH_VARARGS | METH_KEYWORDS },
41139 { (char *)"CloseEvent_GetVeto", (PyCFunction) _wrap_CloseEvent_GetVeto, METH_VARARGS | METH_KEYWORDS },
41140 { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS },
41141 { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS },
41142 { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS },
41143 { (char *)"ShowEvent_GetShow", (PyCFunction) _wrap_ShowEvent_GetShow, METH_VARARGS | METH_KEYWORDS },
41144 { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS },
41145 { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS },
41146 { (char *)"IconizeEvent_Iconized", (PyCFunction) _wrap_IconizeEvent_Iconized, METH_VARARGS | METH_KEYWORDS },
41147 { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS },
41148 { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS },
41149 { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS },
41150 { (char *)"DropFilesEvent_GetPosition", (PyCFunction) _wrap_DropFilesEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
41151 { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction) _wrap_DropFilesEvent_GetNumberOfFiles, METH_VARARGS | METH_KEYWORDS },
41152 { (char *)"DropFilesEvent_GetFiles", (PyCFunction) _wrap_DropFilesEvent_GetFiles, METH_VARARGS | METH_KEYWORDS },
41153 { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS },
41154 { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS },
41155 { (char *)"UpdateUIEvent_GetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetChecked, METH_VARARGS | METH_KEYWORDS },
41156 { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetEnabled, METH_VARARGS | METH_KEYWORDS },
41157 { (char *)"UpdateUIEvent_GetText", (PyCFunction) _wrap_UpdateUIEvent_GetText, METH_VARARGS | METH_KEYWORDS },
41158 { (char *)"UpdateUIEvent_GetSetText", (PyCFunction) _wrap_UpdateUIEvent_GetSetText, METH_VARARGS | METH_KEYWORDS },
41159 { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetSetChecked, METH_VARARGS | METH_KEYWORDS },
41160 { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetSetEnabled, METH_VARARGS | METH_KEYWORDS },
41161 { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS },
41162 { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS },
41163 { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS },
41164 { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS },
41165 { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_GetUpdateInterval, METH_VARARGS | METH_KEYWORDS },
41166 { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS },
41167 { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction) _wrap_UpdateUIEvent_ResetUpdateTime, METH_VARARGS | METH_KEYWORDS },
41168 { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS },
41169 { (char *)"UpdateUIEvent_GetMode", (PyCFunction) _wrap_UpdateUIEvent_GetMode, METH_VARARGS | METH_KEYWORDS },
41170 { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS },
41171 { (char *)"new_SysColourChangedEvent", (PyCFunction) _wrap_new_SysColourChangedEvent, METH_VARARGS | METH_KEYWORDS },
41172 { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS },
41173 { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS },
41174 { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction) _wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_VARARGS | METH_KEYWORDS },
41175 { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS },
41176 { (char *)"new_DisplayChangedEvent", (PyCFunction) _wrap_new_DisplayChangedEvent, METH_VARARGS | METH_KEYWORDS },
41177 { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS },
41178 { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS },
41179 { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS },
41180 { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_GetChangedWindow, METH_VARARGS | METH_KEYWORDS },
41181 { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS },
41182 { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS },
41183 { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS },
41184 { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_VARARGS | METH_KEYWORDS },
41185 { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS },
41186 { (char *)"new_NavigationKeyEvent", (PyCFunction) _wrap_new_NavigationKeyEvent, METH_VARARGS | METH_KEYWORDS },
41187 { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction) _wrap_NavigationKeyEvent_GetDirection, METH_VARARGS | METH_KEYWORDS },
41188 { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS },
41189 { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_IsWindowChange, METH_VARARGS | METH_KEYWORDS },
41190 { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS },
908b74cd 41191 { (char *)"NavigationKeyEvent_SetFlags", (PyCFunction) _wrap_NavigationKeyEvent_SetFlags, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41192 { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_GetCurrentFocus, METH_VARARGS | METH_KEYWORDS },
41193 { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS },
41194 { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS },
41195 { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS },
41196 { (char *)"WindowCreateEvent_GetWindow", (PyCFunction) _wrap_WindowCreateEvent_GetWindow, METH_VARARGS | METH_KEYWORDS },
41197 { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS },
41198 { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS },
41199 { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction) _wrap_WindowDestroyEvent_GetWindow, METH_VARARGS | METH_KEYWORDS },
41200 { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS },
41201 { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS },
41202 { (char *)"ContextMenuEvent_GetPosition", (PyCFunction) _wrap_ContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
41203 { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
41204 { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS },
41205 { (char *)"new_IdleEvent", (PyCFunction) _wrap_new_IdleEvent, METH_VARARGS | METH_KEYWORDS },
41206 { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS },
41207 { (char *)"IdleEvent_MoreRequested", (PyCFunction) _wrap_IdleEvent_MoreRequested, METH_VARARGS | METH_KEYWORDS },
41208 { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS },
41209 { (char *)"IdleEvent_GetMode", (PyCFunction) _wrap_IdleEvent_GetMode, METH_VARARGS | METH_KEYWORDS },
41210 { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS },
41211 { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS },
41212 { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS },
41213 { (char *)"delete_PyEvent", (PyCFunction) _wrap_delete_PyEvent, METH_VARARGS | METH_KEYWORDS },
41214 { (char *)"PyEvent_SetSelf", (PyCFunction) _wrap_PyEvent_SetSelf, METH_VARARGS | METH_KEYWORDS },
41215 { (char *)"PyEvent_GetSelf", (PyCFunction) _wrap_PyEvent_GetSelf, METH_VARARGS | METH_KEYWORDS },
41216 { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS },
41217 { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS },
41218 { (char *)"delete_PyCommandEvent", (PyCFunction) _wrap_delete_PyCommandEvent, METH_VARARGS | METH_KEYWORDS },
41219 { (char *)"PyCommandEvent_SetSelf", (PyCFunction) _wrap_PyCommandEvent_SetSelf, METH_VARARGS | METH_KEYWORDS },
41220 { (char *)"PyCommandEvent_GetSelf", (PyCFunction) _wrap_PyCommandEvent_GetSelf, METH_VARARGS | METH_KEYWORDS },
41221 { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS },
41222 { (char *)"new_PyApp", (PyCFunction) _wrap_new_PyApp, METH_VARARGS | METH_KEYWORDS },
41223 { (char *)"delete_PyApp", (PyCFunction) _wrap_delete_PyApp, METH_VARARGS | METH_KEYWORDS },
41224 { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
41225 { (char *)"PyApp_GetAppName", (PyCFunction) _wrap_PyApp_GetAppName, METH_VARARGS | METH_KEYWORDS },
41226 { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS },
41227 { (char *)"PyApp_GetClassName", (PyCFunction) _wrap_PyApp_GetClassName, METH_VARARGS | METH_KEYWORDS },
41228 { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS },
41229 { (char *)"PyApp_GetVendorName", (PyCFunction) _wrap_PyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS },
41230 { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS },
41231 { (char *)"PyApp_GetTraits", (PyCFunction) _wrap_PyApp_GetTraits, METH_VARARGS | METH_KEYWORDS },
41232 { (char *)"PyApp_ProcessPendingEvents", (PyCFunction) _wrap_PyApp_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS },
41233 { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS },
41234 { (char *)"PyApp_WakeUpIdle", (PyCFunction) _wrap_PyApp_WakeUpIdle, METH_VARARGS | METH_KEYWORDS },
41235 { (char *)"PyApp_MainLoop", (PyCFunction) _wrap_PyApp_MainLoop, METH_VARARGS | METH_KEYWORDS },
41236 { (char *)"PyApp_Exit", (PyCFunction) _wrap_PyApp_Exit, METH_VARARGS | METH_KEYWORDS },
41237 { (char *)"PyApp_ExitMainLoop", (PyCFunction) _wrap_PyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS },
41238 { (char *)"PyApp_Pending", (PyCFunction) _wrap_PyApp_Pending, METH_VARARGS | METH_KEYWORDS },
41239 { (char *)"PyApp_Dispatch", (PyCFunction) _wrap_PyApp_Dispatch, METH_VARARGS | METH_KEYWORDS },
41240 { (char *)"PyApp_ProcessIdle", (PyCFunction) _wrap_PyApp_ProcessIdle, METH_VARARGS | METH_KEYWORDS },
41241 { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS },
41242 { (char *)"PyApp_IsActive", (PyCFunction) _wrap_PyApp_IsActive, METH_VARARGS | METH_KEYWORDS },
41243 { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS },
41244 { (char *)"PyApp_GetTopWindow", (PyCFunction) _wrap_PyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS },
41245 { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS },
41246 { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS },
41247 { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS },
41248 { (char *)"PyApp_GetUseBestVisual", (PyCFunction) _wrap_PyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS },
41249 { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS },
41250 { (char *)"PyApp_GetPrintMode", (PyCFunction) _wrap_PyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS },
41251 { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS },
41252 { (char *)"PyApp_GetAssertMode", (PyCFunction) _wrap_PyApp_GetAssertMode, METH_VARARGS | METH_KEYWORDS },
41253 { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS },
41254 { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_GetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS },
41255 { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_GetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS },
41256 { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_GetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS },
41257 { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_GetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS },
41258 { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS },
41259 { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS },
41260 { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS },
41261 { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS },
41262 { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS },
41263 { (char *)"PyApp__BootstrapApp", (PyCFunction) _wrap_PyApp__BootstrapApp, METH_VARARGS | METH_KEYWORDS },
41264 { (char *)"PyApp_GetComCtl32Version", (PyCFunction) _wrap_PyApp_GetComCtl32Version, METH_VARARGS | METH_KEYWORDS },
41265 { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS },
41266 { (char *)"Exit", (PyCFunction) _wrap_Exit, METH_VARARGS | METH_KEYWORDS },
41267 { (char *)"Yield", (PyCFunction) _wrap_Yield, METH_VARARGS | METH_KEYWORDS },
41268 { (char *)"YieldIfNeeded", (PyCFunction) _wrap_YieldIfNeeded, METH_VARARGS | METH_KEYWORDS },
41269 { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS },
41270 { (char *)"WakeUpIdle", (PyCFunction) _wrap_WakeUpIdle, METH_VARARGS | METH_KEYWORDS },
41271 { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS },
41272 { (char *)"App_CleanUp", (PyCFunction) _wrap_App_CleanUp, METH_VARARGS | METH_KEYWORDS },
41273 { (char *)"GetApp", (PyCFunction) _wrap_GetApp, METH_VARARGS | METH_KEYWORDS },
41274 { (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS },
41275 { (char *)"delete_AcceleratorEntry", (PyCFunction) _wrap_delete_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS },
41276 { (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41277 { (char *)"AcceleratorEntry_GetFlags", (PyCFunction) _wrap_AcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS },
41278 { (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_AcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS },
41279 { (char *)"AcceleratorEntry_GetCommand", (PyCFunction) _wrap_AcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS },
41280 { (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS },
41281 { (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS },
41282 { (char *)"delete_AcceleratorTable", (PyCFunction) _wrap_delete_AcceleratorTable, METH_VARARGS | METH_KEYWORDS },
41283 { (char *)"AcceleratorTable_Ok", (PyCFunction) _wrap_AcceleratorTable_Ok, METH_VARARGS | METH_KEYWORDS },
41284 { (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS },
41285 { (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS },
41286 { (char *)"new_VisualAttributes", (PyCFunction) _wrap_new_VisualAttributes, METH_VARARGS | METH_KEYWORDS },
41287 { (char *)"delete_VisualAttributes", (PyCFunction) _wrap_delete_VisualAttributes, METH_VARARGS | METH_KEYWORDS },
41288 { (char *)"VisualAttributes_font_set", (PyCFunction) _wrap_VisualAttributes_font_set, METH_VARARGS | METH_KEYWORDS },
41289 { (char *)"VisualAttributes_font_get", (PyCFunction) _wrap_VisualAttributes_font_get, METH_VARARGS | METH_KEYWORDS },
41290 { (char *)"VisualAttributes_colFg_set", (PyCFunction) _wrap_VisualAttributes_colFg_set, METH_VARARGS | METH_KEYWORDS },
41291 { (char *)"VisualAttributes_colFg_get", (PyCFunction) _wrap_VisualAttributes_colFg_get, METH_VARARGS | METH_KEYWORDS },
41292 { (char *)"VisualAttributes_colBg_set", (PyCFunction) _wrap_VisualAttributes_colBg_set, METH_VARARGS | METH_KEYWORDS },
41293 { (char *)"VisualAttributes_colBg_get", (PyCFunction) _wrap_VisualAttributes_colBg_get, METH_VARARGS | METH_KEYWORDS },
41294 { (char *)"VisualAttributes_swigregister", VisualAttributes_swigregister, METH_VARARGS },
41295 { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS },
41296 { (char *)"new_PreWindow", (PyCFunction) _wrap_new_PreWindow, METH_VARARGS | METH_KEYWORDS },
41297 { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS },
41298 { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS },
41299 { (char *)"Window_Destroy", (PyCFunction) _wrap_Window_Destroy, METH_VARARGS | METH_KEYWORDS },
41300 { (char *)"Window_DestroyChildren", (PyCFunction) _wrap_Window_DestroyChildren, METH_VARARGS | METH_KEYWORDS },
41301 { (char *)"Window_IsBeingDeleted", (PyCFunction) _wrap_Window_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS },
41302 { (char *)"Window_SetTitle", (PyCFunction) _wrap_Window_SetTitle, METH_VARARGS | METH_KEYWORDS },
41303 { (char *)"Window_GetTitle", (PyCFunction) _wrap_Window_GetTitle, METH_VARARGS | METH_KEYWORDS },
41304 { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS },
41305 { (char *)"Window_GetLabel", (PyCFunction) _wrap_Window_GetLabel, METH_VARARGS | METH_KEYWORDS },
41306 { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS },
41307 { (char *)"Window_GetName", (PyCFunction) _wrap_Window_GetName, METH_VARARGS | METH_KEYWORDS },
41308 { (char *)"Window_SetWindowVariant", (PyCFunction) _wrap_Window_SetWindowVariant, METH_VARARGS | METH_KEYWORDS },
41309 { (char *)"Window_GetWindowVariant", (PyCFunction) _wrap_Window_GetWindowVariant, METH_VARARGS | METH_KEYWORDS },
41310 { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS },
41311 { (char *)"Window_GetId", (PyCFunction) _wrap_Window_GetId, METH_VARARGS | METH_KEYWORDS },
41312 { (char *)"Window_NewControlId", (PyCFunction) _wrap_Window_NewControlId, METH_VARARGS | METH_KEYWORDS },
41313 { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS },
41314 { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS },
41315 { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS },
41316 { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS },
41317 { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS },
41318 { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS },
41319 { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS },
41320 { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS },
f8167d6e 41321 { (char *)"Window_SetBestFittingSize", (PyCFunction) _wrap_Window_SetBestFittingSize, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41322 { (char *)"Window_Raise", (PyCFunction) _wrap_Window_Raise, METH_VARARGS | METH_KEYWORDS },
41323 { (char *)"Window_Lower", (PyCFunction) _wrap_Window_Lower, METH_VARARGS | METH_KEYWORDS },
41324 { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS },
41325 { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS },
41326 { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS },
41327 { (char *)"Window_GetPosition", (PyCFunction) _wrap_Window_GetPosition, METH_VARARGS | METH_KEYWORDS },
41328 { (char *)"Window_GetPositionTuple", (PyCFunction) _wrap_Window_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
41329 { (char *)"Window_GetSize", (PyCFunction) _wrap_Window_GetSize, METH_VARARGS | METH_KEYWORDS },
41330 { (char *)"Window_GetSizeTuple", (PyCFunction) _wrap_Window_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
41331 { (char *)"Window_GetRect", (PyCFunction) _wrap_Window_GetRect, METH_VARARGS | METH_KEYWORDS },
41332 { (char *)"Window_GetClientSize", (PyCFunction) _wrap_Window_GetClientSize, METH_VARARGS | METH_KEYWORDS },
41333 { (char *)"Window_GetClientSizeTuple", (PyCFunction) _wrap_Window_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS },
41334 { (char *)"Window_GetClientAreaOrigin", (PyCFunction) _wrap_Window_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS },
41335 { (char *)"Window_GetClientRect", (PyCFunction) _wrap_Window_GetClientRect, METH_VARARGS | METH_KEYWORDS },
41336 { (char *)"Window_GetBestSize", (PyCFunction) _wrap_Window_GetBestSize, METH_VARARGS | METH_KEYWORDS },
41337 { (char *)"Window_GetBestSizeTuple", (PyCFunction) _wrap_Window_GetBestSizeTuple, METH_VARARGS | METH_KEYWORDS },
a001823c
RD
41338 { (char *)"Window_InvalidateBestSize", (PyCFunction) _wrap_Window_InvalidateBestSize, METH_VARARGS | METH_KEYWORDS },
41339 { (char *)"Window_GetBestFittingSize", (PyCFunction) _wrap_Window_GetBestFittingSize, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41340 { (char *)"Window_GetAdjustedBestSize", (PyCFunction) _wrap_Window_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS },
41341 { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS },
41342 { (char *)"Window_CenterOnScreen", (PyCFunction) _wrap_Window_CenterOnScreen, METH_VARARGS | METH_KEYWORDS },
41343 { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS },
41344 { (char *)"Window_Fit", (PyCFunction) _wrap_Window_Fit, METH_VARARGS | METH_KEYWORDS },
41345 { (char *)"Window_FitInside", (PyCFunction) _wrap_Window_FitInside, METH_VARARGS | METH_KEYWORDS },
41346 { (char *)"Window_SetSizeHints", _wrap_Window_SetSizeHints, METH_VARARGS },
41347 { (char *)"Window_SetVirtualSizeHints", _wrap_Window_SetVirtualSizeHints, METH_VARARGS },
908b74cd
RD
41348 { (char *)"Window_GetMaxSize", (PyCFunction) _wrap_Window_GetMaxSize, METH_VARARGS | METH_KEYWORDS },
41349 { (char *)"Window_GetMinSize", (PyCFunction) _wrap_Window_GetMinSize, METH_VARARGS | METH_KEYWORDS },
41350 { (char *)"Window_SetMinSize", (PyCFunction) _wrap_Window_SetMinSize, METH_VARARGS | METH_KEYWORDS },
41351 { (char *)"Window_SetMaxSize", (PyCFunction) _wrap_Window_SetMaxSize, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41352 { (char *)"Window_GetMinWidth", (PyCFunction) _wrap_Window_GetMinWidth, METH_VARARGS | METH_KEYWORDS },
41353 { (char *)"Window_GetMinHeight", (PyCFunction) _wrap_Window_GetMinHeight, METH_VARARGS | METH_KEYWORDS },
41354 { (char *)"Window_GetMaxWidth", (PyCFunction) _wrap_Window_GetMaxWidth, METH_VARARGS | METH_KEYWORDS },
41355 { (char *)"Window_GetMaxHeight", (PyCFunction) _wrap_Window_GetMaxHeight, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41356 { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS },
41357 { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS },
41358 { (char *)"Window_GetVirtualSize", (PyCFunction) _wrap_Window_GetVirtualSize, METH_VARARGS | METH_KEYWORDS },
41359 { (char *)"Window_GetVirtualSizeTuple", (PyCFunction) _wrap_Window_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS },
41360 { (char *)"Window_GetBestVirtualSize", (PyCFunction) _wrap_Window_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS },
41361 { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS },
41362 { (char *)"Window_Hide", (PyCFunction) _wrap_Window_Hide, METH_VARARGS | METH_KEYWORDS },
41363 { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS },
41364 { (char *)"Window_Disable", (PyCFunction) _wrap_Window_Disable, METH_VARARGS | METH_KEYWORDS },
41365 { (char *)"Window_IsShown", (PyCFunction) _wrap_Window_IsShown, METH_VARARGS | METH_KEYWORDS },
41366 { (char *)"Window_IsEnabled", (PyCFunction) _wrap_Window_IsEnabled, METH_VARARGS | METH_KEYWORDS },
41367 { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
41368 { (char *)"Window_GetWindowStyleFlag", (PyCFunction) _wrap_Window_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
41369 { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS },
41370 { (char *)"Window_IsRetained", (PyCFunction) _wrap_Window_IsRetained, METH_VARARGS | METH_KEYWORDS },
41371 { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS },
41372 { (char *)"Window_GetExtraStyle", (PyCFunction) _wrap_Window_GetExtraStyle, METH_VARARGS | METH_KEYWORDS },
41373 { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS },
41374 { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS },
41375 { (char *)"Window_GetThemeEnabled", (PyCFunction) _wrap_Window_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS },
41376 { (char *)"Window_SetFocus", (PyCFunction) _wrap_Window_SetFocus, METH_VARARGS | METH_KEYWORDS },
41377 { (char *)"Window_SetFocusFromKbd", (PyCFunction) _wrap_Window_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS },
41378 { (char *)"Window_FindFocus", (PyCFunction) _wrap_Window_FindFocus, METH_VARARGS | METH_KEYWORDS },
41379 { (char *)"Window_AcceptsFocus", (PyCFunction) _wrap_Window_AcceptsFocus, METH_VARARGS | METH_KEYWORDS },
41380 { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_Window_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS },
41381 { (char *)"Window_GetDefaultItem", (PyCFunction) _wrap_Window_GetDefaultItem, METH_VARARGS | METH_KEYWORDS },
41382 { (char *)"Window_SetDefaultItem", (PyCFunction) _wrap_Window_SetDefaultItem, METH_VARARGS | METH_KEYWORDS },
41383 { (char *)"Window_SetTmpDefaultItem", (PyCFunction) _wrap_Window_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS },
908b74cd 41384 { (char *)"Window_Navigate", (PyCFunction) _wrap_Window_Navigate, METH_VARARGS | METH_KEYWORDS },
bf26d883
RD
41385 { (char *)"Window_MoveAfterInTabOrder", (PyCFunction) _wrap_Window_MoveAfterInTabOrder, METH_VARARGS | METH_KEYWORDS },
41386 { (char *)"Window_MoveBeforeInTabOrder", (PyCFunction) _wrap_Window_MoveBeforeInTabOrder, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41387 { (char *)"Window_GetChildren", (PyCFunction) _wrap_Window_GetChildren, METH_VARARGS | METH_KEYWORDS },
41388 { (char *)"Window_GetParent", (PyCFunction) _wrap_Window_GetParent, METH_VARARGS | METH_KEYWORDS },
41389 { (char *)"Window_GetGrandParent", (PyCFunction) _wrap_Window_GetGrandParent, METH_VARARGS | METH_KEYWORDS },
41390 { (char *)"Window_IsTopLevel", (PyCFunction) _wrap_Window_IsTopLevel, METH_VARARGS | METH_KEYWORDS },
41391 { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS },
41392 { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS },
41393 { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS },
41394 { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS },
41395 { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS },
41396 { (char *)"Window_GetEventHandler", (PyCFunction) _wrap_Window_GetEventHandler, METH_VARARGS | METH_KEYWORDS },
41397 { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS },
41398 { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS },
41399 { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS },
41400 { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS },
41401 { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS },
41402 { (char *)"Window_GetValidator", (PyCFunction) _wrap_Window_GetValidator, METH_VARARGS | METH_KEYWORDS },
41403 { (char *)"Window_Validate", (PyCFunction) _wrap_Window_Validate, METH_VARARGS | METH_KEYWORDS },
41404 { (char *)"Window_TransferDataToWindow", (PyCFunction) _wrap_Window_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS },
41405 { (char *)"Window_TransferDataFromWindow", (PyCFunction) _wrap_Window_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS },
41406 { (char *)"Window_InitDialog", (PyCFunction) _wrap_Window_InitDialog, METH_VARARGS | METH_KEYWORDS },
41407 { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS },
41408 { (char *)"Window_GetAcceleratorTable", (PyCFunction) _wrap_Window_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS },
41409 { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS },
41410 { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS },
41411 { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS },
41412 { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS },
41413 { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS },
41414 { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS },
41415 { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS },
41416 { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS },
41417 { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS },
41418 { (char *)"Window_CaptureMouse", (PyCFunction) _wrap_Window_CaptureMouse, METH_VARARGS | METH_KEYWORDS },
41419 { (char *)"Window_ReleaseMouse", (PyCFunction) _wrap_Window_ReleaseMouse, METH_VARARGS | METH_KEYWORDS },
41420 { (char *)"Window_GetCapture", (PyCFunction) _wrap_Window_GetCapture, METH_VARARGS | METH_KEYWORDS },
41421 { (char *)"Window_HasCapture", (PyCFunction) _wrap_Window_HasCapture, METH_VARARGS | METH_KEYWORDS },
41422 { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS },
41423 { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS },
41424 { (char *)"Window_Update", (PyCFunction) _wrap_Window_Update, METH_VARARGS | METH_KEYWORDS },
41425 { (char *)"Window_ClearBackground", (PyCFunction) _wrap_Window_ClearBackground, METH_VARARGS | METH_KEYWORDS },
41426 { (char *)"Window_Freeze", (PyCFunction) _wrap_Window_Freeze, METH_VARARGS | METH_KEYWORDS },
41427 { (char *)"Window_Thaw", (PyCFunction) _wrap_Window_Thaw, METH_VARARGS | METH_KEYWORDS },
41428 { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS },
41429 { (char *)"Window_GetUpdateRegion", (PyCFunction) _wrap_Window_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS },
41430 { (char *)"Window_GetUpdateClientRect", (PyCFunction) _wrap_Window_GetUpdateClientRect, METH_VARARGS | METH_KEYWORDS },
41431 { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS },
41432 { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS },
41433 { (char *)"Window_IsExposedRect", (PyCFunction) _wrap_Window_IsExposedRect, METH_VARARGS | METH_KEYWORDS },
41434 { (char *)"Window_GetDefaultAttributes", (PyCFunction) _wrap_Window_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
41435 { (char *)"Window_GetClassDefaultAttributes", (PyCFunction) _wrap_Window_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
41436 { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
412d302d 41437 { (char *)"Window_SetOwnBackgroundColour", (PyCFunction) _wrap_Window_SetOwnBackgroundColour, METH_VARARGS | METH_KEYWORDS },
d55e5bfc 41438 { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS },
fa47d7a7 41439 { (char *)"Window_SetOwnForegroundColour", (PyCFunction) _wrap_Window_SetOwnForegroundColour, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41440 { (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
41441 { (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS },
41442 { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS },
41443 { (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS },
41444 { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS },
fa47d7a7 41445 { (char *)"Window_SetOwnFont", (PyCFunction) _wrap_Window_SetOwnFont, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41446 { (char *)"Window_GetFont", (PyCFunction) _wrap_Window_GetFont, METH_VARARGS | METH_KEYWORDS },
41447 { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS },
41448 { (char *)"Window_GetCaret", (PyCFunction) _wrap_Window_GetCaret, METH_VARARGS | METH_KEYWORDS },
41449 { (char *)"Window_GetCharHeight", (PyCFunction) _wrap_Window_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
41450 { (char *)"Window_GetCharWidth", (PyCFunction) _wrap_Window_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
41451 { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
41452 { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
41453 { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS },
41454 { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS },
41455 { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS },
41456 { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS },
41457 { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS },
41458 { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS },
41459 { (char *)"Window_GetBorder", _wrap_Window_GetBorder, METH_VARARGS },
41460 { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS },
41461 { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS },
41462 { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS },
41463 { (char *)"Window_GetHandle", (PyCFunction) _wrap_Window_GetHandle, METH_VARARGS | METH_KEYWORDS },
41464 { (char *)"Window_OnPaint", (PyCFunction) _wrap_Window_OnPaint, METH_VARARGS | METH_KEYWORDS },
41465 { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS },
41466 { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS },
41467 { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS },
41468 { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS },
41469 { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS },
41470 { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS },
41471 { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS },
41472 { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS },
41473 { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS },
41474 { (char *)"Window_LineUp", (PyCFunction) _wrap_Window_LineUp, METH_VARARGS | METH_KEYWORDS },
41475 { (char *)"Window_LineDown", (PyCFunction) _wrap_Window_LineDown, METH_VARARGS | METH_KEYWORDS },
41476 { (char *)"Window_PageUp", (PyCFunction) _wrap_Window_PageUp, METH_VARARGS | METH_KEYWORDS },
41477 { (char *)"Window_PageDown", (PyCFunction) _wrap_Window_PageDown, METH_VARARGS | METH_KEYWORDS },
41478 { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS },
41479 { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS },
41480 { (char *)"Window_GetHelpText", (PyCFunction) _wrap_Window_GetHelpText, METH_VARARGS | METH_KEYWORDS },
41481 { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS },
41482 { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS },
41483 { (char *)"Window_GetToolTip", (PyCFunction) _wrap_Window_GetToolTip, METH_VARARGS | METH_KEYWORDS },
41484 { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS },
41485 { (char *)"Window_GetDropTarget", (PyCFunction) _wrap_Window_GetDropTarget, METH_VARARGS | METH_KEYWORDS },
41486 { (char *)"Window_DragAcceptFiles", (PyCFunction) _wrap_Window_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS },
41487 { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS },
41488 { (char *)"Window_GetConstraints", (PyCFunction) _wrap_Window_GetConstraints, METH_VARARGS | METH_KEYWORDS },
41489 { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS },
41490 { (char *)"Window_GetAutoLayout", (PyCFunction) _wrap_Window_GetAutoLayout, METH_VARARGS | METH_KEYWORDS },
41491 { (char *)"Window_Layout", (PyCFunction) _wrap_Window_Layout, METH_VARARGS | METH_KEYWORDS },
41492 { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS },
41493 { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS },
41494 { (char *)"Window_GetSizer", (PyCFunction) _wrap_Window_GetSizer, METH_VARARGS | METH_KEYWORDS },
41495 { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS },
41496 { (char *)"Window_GetContainingSizer", (PyCFunction) _wrap_Window_GetContainingSizer, METH_VARARGS | METH_KEYWORDS },
41497 { (char *)"Window_InheritAttributes", (PyCFunction) _wrap_Window_InheritAttributes, METH_VARARGS | METH_KEYWORDS },
41498 { (char *)"Window_ShouldInheritColours", (PyCFunction) _wrap_Window_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS },
41499 { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS },
41500 { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS },
41501 { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS },
41502 { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS },
41503 { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS },
41504 { (char *)"new_Validator", (PyCFunction) _wrap_new_Validator, METH_VARARGS | METH_KEYWORDS },
41505 { (char *)"Validator_Clone", (PyCFunction) _wrap_Validator_Clone, METH_VARARGS | METH_KEYWORDS },
41506 { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS },
41507 { (char *)"Validator_TransferToWindow", (PyCFunction) _wrap_Validator_TransferToWindow, METH_VARARGS | METH_KEYWORDS },
41508 { (char *)"Validator_TransferFromWindow", (PyCFunction) _wrap_Validator_TransferFromWindow, METH_VARARGS | METH_KEYWORDS },
41509 { (char *)"Validator_GetWindow", (PyCFunction) _wrap_Validator_GetWindow, METH_VARARGS | METH_KEYWORDS },
41510 { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS },
41511 { (char *)"Validator_IsSilent", (PyCFunction) _wrap_Validator_IsSilent, METH_VARARGS | METH_KEYWORDS },
41512 { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS },
41513 { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS },
41514 { (char *)"new_PyValidator", (PyCFunction) _wrap_new_PyValidator, METH_VARARGS | METH_KEYWORDS },
41515 { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
41516 { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS },
41517 { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS },
41518 { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS },
41519 { (char *)"Menu_AppendSeparator", (PyCFunction) _wrap_Menu_AppendSeparator, METH_VARARGS | METH_KEYWORDS },
41520 { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS },
41521 { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS },
41522 { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS },
41523 { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS },
41524 { (char *)"Menu_Break", (PyCFunction) _wrap_Menu_Break, METH_VARARGS | METH_KEYWORDS },
41525 { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS },
41526 { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS },
41527 { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS },
41528 { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS },
41529 { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS },
41530 { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS },
41531 { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS },
41532 { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS },
41533 { (char *)"Menu_PrependSeparator", (PyCFunction) _wrap_Menu_PrependSeparator, METH_VARARGS | METH_KEYWORDS },
41534 { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS },
41535 { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS },
41536 { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS },
41537 { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS },
41538 { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS },
41539 { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS },
41540 { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS },
41541 { (char *)"Menu_Destroy", (PyCFunction) _wrap_Menu_Destroy, METH_VARARGS | METH_KEYWORDS },
41542 { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS },
41543 { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS },
41544 { (char *)"Menu_GetMenuItemCount", (PyCFunction) _wrap_Menu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS },
41545 { (char *)"Menu_GetMenuItems", (PyCFunction) _wrap_Menu_GetMenuItems, METH_VARARGS | METH_KEYWORDS },
41546 { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS },
41547 { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS },
41548 { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS },
41549 { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS },
41550 { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS },
41551 { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS },
41552 { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS },
41553 { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS },
41554 { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS },
41555 { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS },
41556 { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS },
41557 { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS },
41558 { (char *)"Menu_GetTitle", (PyCFunction) _wrap_Menu_GetTitle, METH_VARARGS | METH_KEYWORDS },
41559 { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS },
41560 { (char *)"Menu_GetEventHandler", (PyCFunction) _wrap_Menu_GetEventHandler, METH_VARARGS | METH_KEYWORDS },
41561 { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS },
41562 { (char *)"Menu_GetInvokingWindow", (PyCFunction) _wrap_Menu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS },
41563 { (char *)"Menu_GetStyle", (PyCFunction) _wrap_Menu_GetStyle, METH_VARARGS | METH_KEYWORDS },
41564 { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS },
41565 { (char *)"Menu_GetMenuBar", (PyCFunction) _wrap_Menu_GetMenuBar, METH_VARARGS | METH_KEYWORDS },
41566 { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS },
41567 { (char *)"Menu_Detach", (PyCFunction) _wrap_Menu_Detach, METH_VARARGS | METH_KEYWORDS },
41568 { (char *)"Menu_IsAttached", (PyCFunction) _wrap_Menu_IsAttached, METH_VARARGS | METH_KEYWORDS },
41569 { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS },
41570 { (char *)"Menu_GetParent", (PyCFunction) _wrap_Menu_GetParent, METH_VARARGS | METH_KEYWORDS },
41571 { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS },
41572 { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS },
41573 { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS },
41574 { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS },
41575 { (char *)"MenuBar_GetMenuCount", (PyCFunction) _wrap_MenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS },
41576 { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS },
41577 { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS },
41578 { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS },
41579 { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS },
41580 { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS },
41581 { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS },
41582 { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS },
41583 { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS },
41584 { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS },
41585 { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS },
41586 { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS },
41587 { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS },
41588 { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS },
41589 { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS },
41590 { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS },
41591 { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS },
41592 { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS },
41593 { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS },
41594 { (char *)"MenuBar_GetFrame", (PyCFunction) _wrap_MenuBar_GetFrame, METH_VARARGS | METH_KEYWORDS },
41595 { (char *)"MenuBar_IsAttached", (PyCFunction) _wrap_MenuBar_IsAttached, METH_VARARGS | METH_KEYWORDS },
41596 { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS },
41597 { (char *)"MenuBar_Detach", (PyCFunction) _wrap_MenuBar_Detach, METH_VARARGS | METH_KEYWORDS },
41598 { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS },
41599 { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS },
41600 { (char *)"MenuItem_GetMenu", (PyCFunction) _wrap_MenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS },
41601 { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS },
41602 { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS },
41603 { (char *)"MenuItem_GetId", (PyCFunction) _wrap_MenuItem_GetId, METH_VARARGS | METH_KEYWORDS },
41604 { (char *)"MenuItem_IsSeparator", (PyCFunction) _wrap_MenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS },
41605 { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS },
41606 { (char *)"MenuItem_GetLabel", (PyCFunction) _wrap_MenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS },
41607 { (char *)"MenuItem_GetText", (PyCFunction) _wrap_MenuItem_GetText, METH_VARARGS | METH_KEYWORDS },
41608 { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS },
41609 { (char *)"MenuItem_GetKind", (PyCFunction) _wrap_MenuItem_GetKind, METH_VARARGS | METH_KEYWORDS },
41610 { (char *)"MenuItem_SetKind", (PyCFunction) _wrap_MenuItem_SetKind, METH_VARARGS | METH_KEYWORDS },
41611 { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS },
41612 { (char *)"MenuItem_IsCheckable", (PyCFunction) _wrap_MenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS },
41613 { (char *)"MenuItem_IsSubMenu", (PyCFunction) _wrap_MenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS },
41614 { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS },
41615 { (char *)"MenuItem_GetSubMenu", (PyCFunction) _wrap_MenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS },
41616 { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS },
41617 { (char *)"MenuItem_IsEnabled", (PyCFunction) _wrap_MenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS },
41618 { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS },
41619 { (char *)"MenuItem_IsChecked", (PyCFunction) _wrap_MenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS },
41620 { (char *)"MenuItem_Toggle", (PyCFunction) _wrap_MenuItem_Toggle, METH_VARARGS | METH_KEYWORDS },
41621 { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS },
41622 { (char *)"MenuItem_GetHelp", (PyCFunction) _wrap_MenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS },
41623 { (char *)"MenuItem_GetAccel", (PyCFunction) _wrap_MenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS },
41624 { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS },
41625 { (char *)"MenuItem_SetFont", (PyCFunction) _wrap_MenuItem_SetFont, METH_VARARGS | METH_KEYWORDS },
41626 { (char *)"MenuItem_GetFont", (PyCFunction) _wrap_MenuItem_GetFont, METH_VARARGS | METH_KEYWORDS },
41627 { (char *)"MenuItem_SetTextColour", (PyCFunction) _wrap_MenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS },
41628 { (char *)"MenuItem_GetTextColour", (PyCFunction) _wrap_MenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS },
41629 { (char *)"MenuItem_SetBackgroundColour", (PyCFunction) _wrap_MenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
41630 { (char *)"MenuItem_GetBackgroundColour", (PyCFunction) _wrap_MenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
41631 { (char *)"MenuItem_SetBitmaps", (PyCFunction) _wrap_MenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS },
41632 { (char *)"MenuItem_SetDisabledBitmap", (PyCFunction) _wrap_MenuItem_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS },
41633 { (char *)"MenuItem_GetDisabledBitmap", (PyCFunction) _wrap_MenuItem_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS },
41634 { (char *)"MenuItem_SetMarginWidth", (PyCFunction) _wrap_MenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS },
41635 { (char *)"MenuItem_GetMarginWidth", (PyCFunction) _wrap_MenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS },
41636 { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_MenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS },
41637 { (char *)"MenuItem_IsOwnerDrawn", (PyCFunction) _wrap_MenuItem_IsOwnerDrawn, METH_VARARGS | METH_KEYWORDS },
41638 { (char *)"MenuItem_SetOwnerDrawn", (PyCFunction) _wrap_MenuItem_SetOwnerDrawn, METH_VARARGS | METH_KEYWORDS },
41639 { (char *)"MenuItem_ResetOwnerDrawn", (PyCFunction) _wrap_MenuItem_ResetOwnerDrawn, METH_VARARGS | METH_KEYWORDS },
41640 { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS },
41641 { (char *)"MenuItem_GetBitmap", (PyCFunction) _wrap_MenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS },
41642 { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS },
41643 { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS },
41644 { (char *)"new_PreControl", (PyCFunction) _wrap_new_PreControl, METH_VARARGS | METH_KEYWORDS },
41645 { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS },
41646 { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS },
41647 { (char *)"Control_GetLabel", (PyCFunction) _wrap_Control_GetLabel, METH_VARARGS | METH_KEYWORDS },
41648 { (char *)"Control_SetLabel", (PyCFunction) _wrap_Control_SetLabel, METH_VARARGS | METH_KEYWORDS },
41649 { (char *)"Control_GetClassDefaultAttributes", (PyCFunction) _wrap_Control_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
41650 { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS },
41651 { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS },
41652 { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS },
41653 { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS },
41654 { (char *)"ItemContainer_Clear", (PyCFunction) _wrap_ItemContainer_Clear, METH_VARARGS | METH_KEYWORDS },
41655 { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS },
41656 { (char *)"ItemContainer_GetCount", (PyCFunction) _wrap_ItemContainer_GetCount, METH_VARARGS | METH_KEYWORDS },
41657 { (char *)"ItemContainer_IsEmpty", (PyCFunction) _wrap_ItemContainer_IsEmpty, METH_VARARGS | METH_KEYWORDS },
41658 { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS },
41659 { (char *)"ItemContainer_GetStrings", (PyCFunction) _wrap_ItemContainer_GetStrings, METH_VARARGS | METH_KEYWORDS },
41660 { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS },
41661 { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS },
41662 { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS },
41663 { (char *)"ItemContainer_GetSelection", (PyCFunction) _wrap_ItemContainer_GetSelection, METH_VARARGS | METH_KEYWORDS },
41664 { (char *)"ItemContainer_GetStringSelection", (PyCFunction) _wrap_ItemContainer_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
41665 { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS },
41666 { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS },
41667 { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS },
41668 { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS },
41669 { (char *)"new_SizerItem", (PyCFunction) _wrap_new_SizerItem, METH_VARARGS | METH_KEYWORDS },
d55e5bfc 41670 { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS },
248ed943 41671 { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41672 { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS },
41673 { (char *)"SizerItem_DeleteWindows", (PyCFunction) _wrap_SizerItem_DeleteWindows, METH_VARARGS | METH_KEYWORDS },
41674 { (char *)"SizerItem_DetachSizer", (PyCFunction) _wrap_SizerItem_DetachSizer, METH_VARARGS | METH_KEYWORDS },
41675 { (char *)"SizerItem_GetSize", (PyCFunction) _wrap_SizerItem_GetSize, METH_VARARGS | METH_KEYWORDS },
41676 { (char *)"SizerItem_CalcMin", (PyCFunction) _wrap_SizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS },
41677 { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS },
41678 { (char *)"SizerItem_GetMinSize", (PyCFunction) _wrap_SizerItem_GetMinSize, METH_VARARGS | METH_KEYWORDS },
a001823c 41679 { (char *)"SizerItem_GetMinSizeWithBorder", (PyCFunction) _wrap_SizerItem_GetMinSizeWithBorder, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41680 { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS },
41681 { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS },
41682 { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS },
41683 { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS },
41684 { (char *)"SizerItem_GetRatio", (PyCFunction) _wrap_SizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS },
41685 { (char *)"SizerItem_IsWindow", (PyCFunction) _wrap_SizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS },
41686 { (char *)"SizerItem_IsSizer", (PyCFunction) _wrap_SizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS },
41687 { (char *)"SizerItem_IsSpacer", (PyCFunction) _wrap_SizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS },
41688 { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS },
41689 { (char *)"SizerItem_GetProportion", (PyCFunction) _wrap_SizerItem_GetProportion, METH_VARARGS | METH_KEYWORDS },
41690 { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS },
41691 { (char *)"SizerItem_GetFlag", (PyCFunction) _wrap_SizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS },
41692 { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS },
41693 { (char *)"SizerItem_GetBorder", (PyCFunction) _wrap_SizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS },
41694 { (char *)"SizerItem_GetWindow", (PyCFunction) _wrap_SizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS },
41695 { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS },
41696 { (char *)"SizerItem_GetSizer", (PyCFunction) _wrap_SizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS },
41697 { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS },
41698 { (char *)"SizerItem_GetSpacer", (PyCFunction) _wrap_SizerItem_GetSpacer, METH_VARARGS | METH_KEYWORDS },
41699 { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS },
41700 { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS },
41701 { (char *)"SizerItem_IsShown", (PyCFunction) _wrap_SizerItem_IsShown, METH_VARARGS | METH_KEYWORDS },
41702 { (char *)"SizerItem_GetPosition", (PyCFunction) _wrap_SizerItem_GetPosition, METH_VARARGS | METH_KEYWORDS },
41703 { (char *)"SizerItem_GetUserData", (PyCFunction) _wrap_SizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS },
41704 { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS },
41705 { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS },
41706 { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS },
41707 { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS },
41708 { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS },
41709 { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS },
1a6bba1e 41710 { (char *)"Sizer_Detach", (PyCFunction) _wrap_Sizer_Detach, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41711 { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS },
41712 { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS },
41713 { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS },
41714 { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS },
41715 { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS },
41716 { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS },
41717 { (char *)"Sizer_GetSize", (PyCFunction) _wrap_Sizer_GetSize, METH_VARARGS | METH_KEYWORDS },
41718 { (char *)"Sizer_GetPosition", (PyCFunction) _wrap_Sizer_GetPosition, METH_VARARGS | METH_KEYWORDS },
41719 { (char *)"Sizer_GetMinSize", (PyCFunction) _wrap_Sizer_GetMinSize, METH_VARARGS | METH_KEYWORDS },
41720 { (char *)"Sizer_RecalcSizes", (PyCFunction) _wrap_Sizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
41721 { (char *)"Sizer_CalcMin", (PyCFunction) _wrap_Sizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
41722 { (char *)"Sizer_Layout", (PyCFunction) _wrap_Sizer_Layout, METH_VARARGS | METH_KEYWORDS },
41723 { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS },
41724 { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS },
41725 { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS },
41726 { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS },
41727 { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS },
41728 { (char *)"Sizer_DeleteWindows", (PyCFunction) _wrap_Sizer_DeleteWindows, METH_VARARGS | METH_KEYWORDS },
41729 { (char *)"Sizer_GetChildren", (PyCFunction) _wrap_Sizer_GetChildren, METH_VARARGS | METH_KEYWORDS },
41730 { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41731 { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS },
41732 { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS },
41733 { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS },
41734 { (char *)"new_PySizer", (PyCFunction) _wrap_new_PySizer, METH_VARARGS | METH_KEYWORDS },
41735 { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
41736 { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS },
41737 { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS },
41738 { (char *)"BoxSizer_GetOrientation", (PyCFunction) _wrap_BoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS },
41739 { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41740 { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS },
41741 { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS },
41742 { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_StaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41743 { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS },
41744 { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41745 { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS },
41746 { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS },
41747 { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS },
41748 { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS },
41749 { (char *)"GridSizer_GetCols", (PyCFunction) _wrap_GridSizer_GetCols, METH_VARARGS | METH_KEYWORDS },
41750 { (char *)"GridSizer_GetRows", (PyCFunction) _wrap_GridSizer_GetRows, METH_VARARGS | METH_KEYWORDS },
41751 { (char *)"GridSizer_GetVGap", (PyCFunction) _wrap_GridSizer_GetVGap, METH_VARARGS | METH_KEYWORDS },
41752 { (char *)"GridSizer_GetHGap", (PyCFunction) _wrap_GridSizer_GetHGap, METH_VARARGS | METH_KEYWORDS },
41753 { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS },
41754 { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41755 { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS },
41756 { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS },
41757 { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS },
41758 { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS },
41759 { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS },
41760 { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_GetFlexibleDirection, METH_VARARGS | METH_KEYWORDS },
41761 { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS },
41762 { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS },
41763 { (char *)"FlexGridSizer_GetRowHeights", (PyCFunction) _wrap_FlexGridSizer_GetRowHeights, METH_VARARGS | METH_KEYWORDS },
41764 { (char *)"FlexGridSizer_GetColWidths", (PyCFunction) _wrap_FlexGridSizer_GetColWidths, METH_VARARGS | METH_KEYWORDS },
41765 { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS },
41766 { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS },
41767 { (char *)"GBPosition_GetRow", (PyCFunction) _wrap_GBPosition_GetRow, METH_VARARGS | METH_KEYWORDS },
41768 { (char *)"GBPosition_GetCol", (PyCFunction) _wrap_GBPosition_GetCol, METH_VARARGS | METH_KEYWORDS },
41769 { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS },
41770 { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS },
41771 { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS },
41772 { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS },
41773 { (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS },
41774 { (char *)"GBPosition_Get", (PyCFunction) _wrap_GBPosition_Get, METH_VARARGS | METH_KEYWORDS },
41775 { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS },
41776 { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS },
41777 { (char *)"GBSpan_GetRowspan", (PyCFunction) _wrap_GBSpan_GetRowspan, METH_VARARGS | METH_KEYWORDS },
41778 { (char *)"GBSpan_GetColspan", (PyCFunction) _wrap_GBSpan_GetColspan, METH_VARARGS | METH_KEYWORDS },
41779 { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS },
41780 { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS },
41781 { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS },
41782 { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS },
41783 { (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS },
41784 { (char *)"GBSpan_Get", (PyCFunction) _wrap_GBSpan_Get, METH_VARARGS | METH_KEYWORDS },
41785 { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS },
41786 { (char *)"new_GBSizerItem", (PyCFunction) _wrap_new_GBSizerItem, METH_VARARGS | METH_KEYWORDS },
41787 { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS },
41788 { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS },
41789 { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS },
41790 { (char *)"GBSizerItem_GetPos", (PyCFunction) _wrap_GBSizerItem_GetPos, METH_VARARGS | METH_KEYWORDS },
41791 { (char *)"GBSizerItem_GetSpan", (PyCFunction) _wrap_GBSizerItem_GetSpan, METH_VARARGS | METH_KEYWORDS },
41792 { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS },
41793 { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS },
248ed943
RD
41794 { (char *)"GBSizerItem_Intersects", (PyCFunction) _wrap_GBSizerItem_Intersects, METH_VARARGS | METH_KEYWORDS },
41795 { (char *)"GBSizerItem_IntersectsPos", (PyCFunction) _wrap_GBSizerItem_IntersectsPos, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41796 { (char *)"GBSizerItem_GetEndPos", (PyCFunction) _wrap_GBSizerItem_GetEndPos, METH_VARARGS | METH_KEYWORDS },
41797 { (char *)"GBSizerItem_GetGBSizer", (PyCFunction) _wrap_GBSizerItem_GetGBSizer, METH_VARARGS | METH_KEYWORDS },
41798 { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS },
41799 { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS },
41800 { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS },
41801 { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS },
41802 { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS },
41803 { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_GetEmptyCellSize, METH_VARARGS | METH_KEYWORDS },
41804 { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS },
41805 { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS },
41806 { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS },
41807 { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS },
41808 { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS },
41809 { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS },
41810 { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS },
41811 { (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS },
248ed943
RD
41812 { (char *)"GridBagSizer_CheckForIntersection", (PyCFunction) _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS | METH_KEYWORDS },
41813 { (char *)"GridBagSizer_CheckForIntersectionPos", (PyCFunction) _wrap_GridBagSizer_CheckForIntersectionPos, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41814 { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS },
41815 { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS },
41816 { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS },
41817 { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS },
41818 { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS },
41819 { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS },
41820 { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS },
41821 { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS },
41822 { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS },
41823 { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_IndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS },
41824 { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_IndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS },
41825 { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherWindow, METH_VARARGS | METH_KEYWORDS },
41826 { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMyEdge, METH_VARARGS | METH_KEYWORDS },
41827 { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS },
41828 { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS },
41829 { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMargin, METH_VARARGS | METH_KEYWORDS },
41830 { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS },
41831 { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_GetValue, METH_VARARGS | METH_KEYWORDS },
41832 { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction) _wrap_IndividualLayoutConstraint_GetPercent, METH_VARARGS | METH_KEYWORDS },
41833 { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherEdge, METH_VARARGS | METH_KEYWORDS },
41834 { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_GetDone, METH_VARARGS | METH_KEYWORDS },
41835 { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS },
41836 { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_GetRelationship, METH_VARARGS | METH_KEYWORDS },
41837 { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS },
41838 { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS },
41839 { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS },
41840 { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS },
41841 { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS },
41842 { (char *)"LayoutConstraints_left_get", (PyCFunction) _wrap_LayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS },
41843 { (char *)"LayoutConstraints_top_get", (PyCFunction) _wrap_LayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS },
41844 { (char *)"LayoutConstraints_right_get", (PyCFunction) _wrap_LayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS },
41845 { (char *)"LayoutConstraints_bottom_get", (PyCFunction) _wrap_LayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS },
41846 { (char *)"LayoutConstraints_width_get", (PyCFunction) _wrap_LayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS },
41847 { (char *)"LayoutConstraints_height_get", (PyCFunction) _wrap_LayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS },
41848 { (char *)"LayoutConstraints_centreX_get", (PyCFunction) _wrap_LayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS },
41849 { (char *)"LayoutConstraints_centreY_get", (PyCFunction) _wrap_LayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS },
41850 { (char *)"new_LayoutConstraints", (PyCFunction) _wrap_new_LayoutConstraints, METH_VARARGS | METH_KEYWORDS },
41851 { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS },
41852 { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction) _wrap_LayoutConstraints_AreSatisfied, METH_VARARGS | METH_KEYWORDS },
41853 { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS },
41854 { NULL, NULL }
41855};
41856
41857
41858/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
41859
41860static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) {
41861 return (void *)((wxSizerItem *) ((wxGBSizerItem *) x));
41862}
41863static void *_p_wxBoxSizerTo_p_wxSizer(void *x) {
41864 return (void *)((wxSizer *) ((wxBoxSizer *) x));
41865}
41866static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) {
41867 return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x));
41868}
41869static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) {
41870 return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
41871}
41872static void *_p_wxGridSizerTo_p_wxSizer(void *x) {
41873 return (void *)((wxSizer *) ((wxGridSizer *) x));
41874}
41875static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) {
41876 return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x));
41877}
41878static void *_p_wxPySizerTo_p_wxSizer(void *x) {
41879 return (void *)((wxSizer *) ((wxPySizer *) x));
41880}
41881static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) {
41882 return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x));
41883}
41884static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
41885 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
41886}
41887static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
41888 return (void *)((wxEvent *) ((wxMenuEvent *) x));
41889}
41890static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
41891 return (void *)((wxEvent *) ((wxCloseEvent *) x));
41892}
41893static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
41894 return (void *)((wxEvent *) ((wxMouseEvent *) x));
41895}
41896static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
41897 return (void *)((wxEvent *) ((wxEraseEvent *) x));
41898}
41899static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
41900 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
41901}
41902static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
41903 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
41904}
41905static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
41906 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
41907}
41908static void *_p_wxPyEventTo_p_wxEvent(void *x) {
41909 return (void *)((wxEvent *) ((wxPyEvent *) x));
41910}
41911static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
41912 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
41913}
41914static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
41915 return (void *)((wxEvent *) ((wxIdleEvent *) x));
41916}
41917static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
41918 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
41919}
41920static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
41921 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
41922}
41923static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
41924 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
41925}
41926static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
41927 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
41928}
41929static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
41930 return (void *)((wxEvent *) ((wxActivateEvent *) x));
41931}
41932static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
41933 return (void *)((wxEvent *) ((wxSizeEvent *) x));
41934}
41935static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
41936 return (void *)((wxEvent *) ((wxMoveEvent *) x));
41937}
41938static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
41939 return (void *)((wxEvent *) ((wxPaintEvent *) x));
41940}
41941static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
41942 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
41943}
41944static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
41945 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
41946}
41947static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
41948 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
41949}
41950static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
41951 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
41952}
41953static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
41954 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
41955}
41956static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
41957 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
41958}
41959static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
41960 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
41961}
41962static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
41963 return (void *)((wxEvent *) ((wxFocusEvent *) x));
41964}
41965static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
41966 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
41967}
41968static void *_p_wxShowEventTo_p_wxEvent(void *x) {
41969 return (void *)((wxEvent *) ((wxShowEvent *) x));
41970}
41971static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
41972 return (void *)((wxEvent *) ((wxCommandEvent *) x));
41973}
41974static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
41975 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
41976}
41977static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
41978 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
41979}
41980static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
41981 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
41982}
41983static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
41984 return (void *)((wxEvent *) ((wxKeyEvent *) x));
41985}
41986static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
41987 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
41988}
41989static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) {
41990 return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x));
41991}
41992static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) {
41993 return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x));
41994}
41995static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) {
41996 return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x));
41997}
41998static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
41999 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
42000}
42001static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
42002 return (void *)((wxControl *) ((wxControlWithItems *) x));
42003}
42004static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
42005 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
42006}
42007static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
42008 return (void *)((wxEvtHandler *) ((wxWindow *) x));
42009}
42010static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
42011 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
42012}
42013static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
42014 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
42015}
42016static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
42017 return (void *)((wxEvtHandler *) ((wxValidator *) x));
42018}
42019static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
42020 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
42021}
42022static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
42023 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
42024}
42025static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
42026 return (void *)((wxEvtHandler *) ((wxMenu *) x));
42027}
42028static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) {
42029 return (void *)((wxCURHandler *) ((wxANIHandler *) x));
42030}
42031static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) {
42032 return (void *)((wxICOHandler *) ((wxCURHandler *) x));
42033}
42034static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) {
42035 return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x));
42036}
42037static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) {
42038 return (void *)((wxBMPHandler *) ((wxICOHandler *) x));
42039}
42040static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) {
42041 return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x));
42042}
42043static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) {
42044 return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
42045}
42046static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) {
42047 return (void *)((wxImageHandler *) ((wxBMPHandler *) x));
42048}
42049static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) {
42050 return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x));
42051}
42052static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) {
42053 return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
42054}
42055static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) {
42056 return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
42057}
42058static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) {
42059 return (void *)((wxImageHandler *) ((wxPNGHandler *) x));
42060}
42061static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) {
42062 return (void *)((wxImageHandler *) ((wxGIFHandler *) x));
42063}
42064static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) {
42065 return (void *)((wxImageHandler *) ((wxPCXHandler *) x));
42066}
42067static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) {
42068 return (void *)((wxImageHandler *) ((wxJPEGHandler *) x));
42069}
42070static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) {
42071 return (void *)((wxImageHandler *) ((wxPNMHandler *) x));
42072}
42073static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) {
42074 return (void *)((wxImageHandler *) ((wxXPMHandler *) x));
42075}
42076static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) {
42077 return (void *)((wxImageHandler *) ((wxTIFFHandler *) x));
42078}
42079static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) {
42080 return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x));
42081}
42082static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) {
42083 return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x));
42084}
42085static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) {
42086 return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x));
42087}
42088static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) {
42089 return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x));
42090}
42091static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
42092 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
42093}
42094static void *_p_wxMenuEventTo_p_wxObject(void *x) {
42095 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
42096}
42097static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
42098 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
42099}
42100static void *_p_wxEraseEventTo_p_wxObject(void *x) {
42101 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
42102}
42103static void *_p_wxMouseEventTo_p_wxObject(void *x) {
42104 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
42105}
42106static void *_p_wxCloseEventTo_p_wxObject(void *x) {
42107 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
42108}
42109static void *_p_wxValidatorTo_p_wxObject(void *x) {
42110 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
42111}
42112static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
42113 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
42114}
42115static void *_p_wxMenuBarTo_p_wxObject(void *x) {
42116 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
42117}
42118static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
42119 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
42120}
42121static void *_p_wxSizerTo_p_wxObject(void *x) {
42122 return (void *)((wxObject *) ((wxSizer *) x));
42123}
42124static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
42125 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
42126}
42127static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
42128 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
42129}
42130static void *_p_wxMenuTo_p_wxObject(void *x) {
42131 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
42132}
42133static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
42134 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
42135}
42136static void *_p_wxImageTo_p_wxObject(void *x) {
42137 return (void *)((wxObject *) ((wxImage *) x));
42138}
42139static void *_p_wxScrollEventTo_p_wxObject(void *x) {
42140 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
42141}
42142static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
42143 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
42144}
42145static void *_p_wxPyEventTo_p_wxObject(void *x) {
42146 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
42147}
42148static void *_p_wxWindowTo_p_wxObject(void *x) {
42149 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
42150}
42151static void *_p_wxControlTo_p_wxObject(void *x) {
42152 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
42153}
42154static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
42155 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
42156}
42157static void *_p_wxGridSizerTo_p_wxObject(void *x) {
42158 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
42159}
42160static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
42161 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
42162}
42163static void *_p_wxPyAppTo_p_wxObject(void *x) {
42164 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
42165}
42166static void *_p_wxEventTo_p_wxObject(void *x) {
42167 return (void *)((wxObject *) ((wxEvent *) x));
42168}
42169static void *_p_wxActivateEventTo_p_wxObject(void *x) {
42170 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
42171}
42172static void *_p_wxMoveEventTo_p_wxObject(void *x) {
42173 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
42174}
42175static void *_p_wxSizeEventTo_p_wxObject(void *x) {
42176 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
42177}
42178static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
42179 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
42180}
42181static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
42182 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
42183}
42184static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
42185 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
42186}
42187static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
42188 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
42189}
42190static void *_p_wxIdleEventTo_p_wxObject(void *x) {
42191 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
42192}
42193static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
42194 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
42195}
42196static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
42197 return (void *)((wxObject *) ((wxEvtHandler *) x));
42198}
42199static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
42200 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
42201}
42202static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
42203 return (void *)((wxObject *) ((wxImageHandler *) x));
42204}
42205static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
42206 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
42207}
42208static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
42209 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
42210}
42211static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
42212 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
42213}
42214static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
42215 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
42216}
42217static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
42218 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
42219}
42220static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
42221 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
42222}
42223static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
42224 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
42225}
42226static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
42227 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
42228}
42229static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
42230 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
42231}
42232static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
42233 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
42234}
42235static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
42236 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
42237}
42238static void *_p_wxPaintEventTo_p_wxObject(void *x) {
42239 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
42240}
42241static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
42242 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
42243}
42244static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
42245 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
42246}
42247static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
42248 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
42249}
42250static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
42251 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
42252}
42253static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
42254 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
42255}
42256static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
42257 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
42258}
42259static void *_p_wxFileSystemTo_p_wxObject(void *x) {
42260 return (void *)((wxObject *) ((wxFileSystem *) x));
42261}
42262static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
42263 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
42264}
42265static void *_p_wxFocusEventTo_p_wxObject(void *x) {
42266 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
42267}
42268static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
42269 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
42270}
42271static void *_p_wxSizerItemTo_p_wxObject(void *x) {
42272 return (void *)((wxObject *) ((wxSizerItem *) x));
42273}
42274static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
42275 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
42276}
42277static void *_p_wxShowEventTo_p_wxObject(void *x) {
42278 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
42279}
42280static void *_p_wxFSFileTo_p_wxObject(void *x) {
42281 return (void *)((wxObject *) ((wxFSFile *) x));
42282}
42283static void *_p_wxCommandEventTo_p_wxObject(void *x) {
42284 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
42285}
42286static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
42287 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
42288}
42289static void *_p_wxKeyEventTo_p_wxObject(void *x) {
42290 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
42291}
42292static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
42293 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
42294}
42295static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
42296 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
42297}
42298static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
42299 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
42300}
42301static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
42302 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
42303}
42304static void *_p_wxMenuItemTo_p_wxObject(void *x) {
42305 return (void *)((wxObject *) ((wxMenuItem *) x));
42306}
42307static void *_p_wxPySizerTo_p_wxObject(void *x) {
42308 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
42309}
42310static void *_p_wxControlTo_p_wxWindow(void *x) {
42311 return (void *)((wxWindow *) ((wxControl *) x));
42312}
42313static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
42314 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
42315}
42316static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
42317 return (void *)((wxWindow *) ((wxMenuBar *) x));
42318}
42319static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
42320 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
42321}
42322static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
42323 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
42324}
42325static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
42326 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
42327}
42328static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
42329 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
42330}
42331static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
42332 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
42333}
42334static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
42335 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
42336}
42337static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
42338 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
42339}
42340static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
42341 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
42342}
42343static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
42344 return (void *)((wxValidator *) ((wxPyValidator *) x));
42345}
42346static 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}};
42347static 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}};
42348static 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}};
42349static 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}};
42350static 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}};
42351static 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}};
42352static 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}};
42353static 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}};
42354static 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}};
42355static 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}};
42356static 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}};
42357static 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}};
42358static 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}};
42359static 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}};
42360static 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}};
42361static 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}};
42362static 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}};
42363static 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}};
42364static 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}};
42365static 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}};
42366static 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}};
42367static 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}};
42368static 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}};
42369static 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}};
42370static 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}};
42371static 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}};
42372static 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}};
42373static 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}};
42374static 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}};
42375static 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}};
42376static 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}};
42377static 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}};
42378static 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}};
42379static 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}};
42380static 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}};
42381static 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}};
42382static 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}};
42383static 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}};
42384static 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}};
42385static 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}};
42386static 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}};
42387static 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}};
42388static 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}};
42389static 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}};
42390static 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}};
42391static 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}};
42392static 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}};
42393static 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}};
42394static 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}};
42395static 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}};
42396static 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}};
42397static 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}};
42398static 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}};
42399static 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}};
42400static 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}};
42401static 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}};
42402static 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}};
42403static 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}};
42404static 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}};
42405static 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}};
42406static 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}};
42407static 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}};
42408static 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}};
42409static 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}};
42410static 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}};
42411static 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}};
42412static 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}};
42413static 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}};
42414static 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}};
42415static 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}};
42416static 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}};
42417static 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}};
42418static 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}};
42419static 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}};
42420static 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}};
42421static 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}};
42422static 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}};
42423static 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}};
42424static 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}};
42425static 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}};
42426static 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}};
42427static 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}};
42428static 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}};
42429static 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}};
42430static 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}};
42431static 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}};
42432static 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}};
42433static 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}};
42434static 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}};
42435static 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}};
42436static 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}};
42437static 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}};
42438static 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}};
42439static 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}};
42440static 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}};
42441static 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}};
42442static 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}};
42443static 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}};
42444static 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}};
42445static 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}};
42446static 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}};
42447static 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}};
42448static 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}};
42449static 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}};
42450static 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}};
42451static 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}};
42452static 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}};
42453static 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}};
42454static 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}};
42455static 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}};
42456static 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}};
42457static 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}};
42458static 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}};
42459static 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}};
42460static 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}};
42461
42462static swig_type_info *swig_types_initial[] = {
42463_swigt__p_wxLayoutConstraints,
42464_swigt__p_wxRealPoint,
42465_swigt__p_wxSizerItem,
42466_swigt__p_wxGBSizerItem,
42467_swigt__p_wxScrollEvent,
42468_swigt__p_wxIndividualLayoutConstraint,
42469_swigt__p_wxSizer,
42470_swigt__p_wxBoxSizer,
42471_swigt__p_wxStaticBoxSizer,
42472_swigt__p_wxGridBagSizer,
42473_swigt__p_wxAcceleratorEntry,
42474_swigt__p_wxUpdateUIEvent,
42475_swigt__p_wxMenu,
42476_swigt__p_wxEvent,
42477_swigt__p_wxGridSizer,
42478_swigt__p_wxFlexGridSizer,
42479_swigt__p_wxInitDialogEvent,
42480_swigt__p_wxItemContainer,
42481_swigt__p_wxNcPaintEvent,
42482_swigt__p_wxPaintEvent,
42483_swigt__p_wxSysColourChangedEvent,
42484_swigt__p_wxMouseCaptureChangedEvent,
42485_swigt__p_wxDisplayChangedEvent,
42486_swigt__p_wxPaletteChangedEvent,
42487_swigt__p_wxControl,
42488_swigt__p_wxFont,
42489_swigt__p_wxMenuBarBase,
42490_swigt__p_wxSetCursorEvent,
42491_swigt__p_wxFSFile,
42492_swigt__p_wxCaret,
42493_swigt__p_wxRegion,
42494_swigt__p_wxPoint2D,
42495_swigt__p_int,
42496_swigt__p_wxSize,
42497_swigt__p_wxDC,
42498_swigt__p_wxPySizer,
42499_swigt__p_wxVisualAttributes,
42500_swigt__p_wxNotifyEvent,
42501_swigt__p_wxPyEvent,
42502_swigt__p_wxPropagationDisabler,
42503_swigt__p_wxAppTraits,
42504_swigt__p_wxArrayString,
42505_swigt__p_wxShowEvent,
42506_swigt__p_wxToolTip,
42507_swigt__p_wxMaximizeEvent,
42508_swigt__p_wxIconizeEvent,
42509_swigt__p_wxActivateEvent,
42510_swigt__p_wxMoveEvent,
42511_swigt__p_wxSizeEvent,
42512_swigt__p_wxQueryNewPaletteEvent,
42513_swigt__p_wxWindowCreateEvent,
42514_swigt__p_wxIdleEvent,
42515_swigt__p_wxMenuItem,
42516_swigt__p_wxStaticBox,
42517_swigt__p_long,
42518_swigt__p_wxTIFFHandler,
42519_swigt__p_wxXPMHandler,
42520_swigt__p_wxPNMHandler,
42521_swigt__p_wxJPEGHandler,
42522_swigt__p_wxPCXHandler,
42523_swigt__p_wxGIFHandler,
42524_swigt__p_wxPNGHandler,
42525_swigt__p_wxANIHandler,
42526_swigt__p_wxMemoryFSHandler,
42527_swigt__p_wxEvtHandler,
42528_swigt__p_wxCURHandler,
42529_swigt__p_wxICOHandler,
42530_swigt__p_wxBMPHandler,
42531_swigt__p_wxImageHandler,
42532_swigt__p_wxFileSystemHandler,
42533_swigt__p_wxPyFileSystemHandler,
42534_swigt__p_wxInternetFSHandler,
42535_swigt__p_wxZipFSHandler,
42536_swigt__p_wxRect,
42537_swigt__p_wxGBSpan,
42538_swigt__p_wxPropagateOnce,
42539_swigt__p_wxAcceleratorTable,
42540_swigt__p_char,
42541_swigt__p_wxGBPosition,
42542_swigt__p_wxImage,
42543_swigt__p_wxFrame,
42544_swigt__p_wxScrollWinEvent,
42545_swigt__p_wxImageHistogram,
42546_swigt__p_byte,
42547_swigt__p_wxPoint,
42548_swigt__p_wxCursor,
42549_swigt__p_wxObject,
42550_swigt__p_wxPyInputStream,
42551_swigt__p_wxOutputStream,
42552_swigt__p_wxInputStream,
42553_swigt__p_wxDateTime,
42554_swigt__p_wxKeyEvent,
42555_swigt__p_wxNavigationKeyEvent,
42556_swigt__p_wxWindowDestroyEvent,
42557_swigt__p_wxWindow,
42558_swigt__p_wxMenuBar,
42559_swigt__p_wxFileSystem,
42560_swigt__p_wxBitmap,
42561_swigt__p_wxMenuEvent,
42562_swigt__p_wxContextMenuEvent,
42563_swigt__p_unsigned_char,
42564_swigt__p_wxCloseEvent,
42565_swigt__p_wxEraseEvent,
42566_swigt__p_wxMouseEvent,
42567_swigt__p_wxPyApp,
42568_swigt__p_wxCommandEvent,
42569_swigt__p_wxPyCommandEvent,
42570_swigt__p_wxPyDropTarget,
42571_swigt__p_wxChildFocusEvent,
42572_swigt__p_wxFocusEvent,
42573_swigt__p_wxDropFilesEvent,
42574_swigt__p_wxControlWithItems,
42575_swigt__p_wxColour,
42576_swigt__p_wxValidator,
42577_swigt__p_wxPyValidator,
425780
42579};
42580
42581
42582/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
42583
42584static swig_const_info swig_const_table[] = {
42585{0}};
42586
42587#ifdef __cplusplus
42588}
42589#endif
42590
42591#ifdef __cplusplus
42592extern "C"
42593#endif
42594SWIGEXPORT(void) SWIG_init(void) {
42595 static PyObject *SWIG_globals = 0;
42596 static int typeinit = 0;
42597 PyObject *m, *d;
42598 int i;
42599 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
42600 m = Py_InitModule((char *) SWIG_name, SwigMethods);
42601 d = PyModule_GetDict(m);
42602
42603 if (!typeinit) {
42604 for (i = 0; swig_types_initial[i]; i++) {
42605 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
42606 }
42607 typeinit = 1;
42608 }
42609 SWIG_InstallConstants(d,swig_const_table);
42610
42611
42612#ifndef wxPyUSE_EXPORT
42613 // Make our API structure a CObject so other modules can import it
42614 // from this module.
42615 PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL);
42616 PyDict_SetItemString(d,"_wxPyCoreAPI", cobj);
42617 Py_XDECREF(cobj);
42618#endif
42619
42620 PyDict_SetItemString(d,"NOT_FOUND", SWIG_FromInt((int)wxNOT_FOUND));
42621 PyDict_SetItemString(d,"VSCROLL", SWIG_FromInt((int)wxVSCROLL));
42622 PyDict_SetItemString(d,"HSCROLL", SWIG_FromInt((int)wxHSCROLL));
42623 PyDict_SetItemString(d,"CAPTION", SWIG_FromInt((int)wxCAPTION));
42624 PyDict_SetItemString(d,"DOUBLE_BORDER", SWIG_FromInt((int)wxDOUBLE_BORDER));
42625 PyDict_SetItemString(d,"SUNKEN_BORDER", SWIG_FromInt((int)wxSUNKEN_BORDER));
42626 PyDict_SetItemString(d,"RAISED_BORDER", SWIG_FromInt((int)wxRAISED_BORDER));
42627 PyDict_SetItemString(d,"BORDER", SWIG_FromInt((int)wxBORDER));
42628 PyDict_SetItemString(d,"SIMPLE_BORDER", SWIG_FromInt((int)wxSIMPLE_BORDER));
42629 PyDict_SetItemString(d,"STATIC_BORDER", SWIG_FromInt((int)wxSTATIC_BORDER));
42630 PyDict_SetItemString(d,"TRANSPARENT_WINDOW", SWIG_FromInt((int)wxTRANSPARENT_WINDOW));
42631 PyDict_SetItemString(d,"NO_BORDER", SWIG_FromInt((int)wxNO_BORDER));
42632 PyDict_SetItemString(d,"TAB_TRAVERSAL", SWIG_FromInt((int)wxTAB_TRAVERSAL));
42633 PyDict_SetItemString(d,"WANTS_CHARS", SWIG_FromInt((int)wxWANTS_CHARS));
42634 PyDict_SetItemString(d,"POPUP_WINDOW", SWIG_FromInt((int)wxPOPUP_WINDOW));
42635 PyDict_SetItemString(d,"CENTER_FRAME", SWIG_FromInt((int)wxCENTER_FRAME));
42636 PyDict_SetItemString(d,"CENTRE_ON_SCREEN", SWIG_FromInt((int)wxCENTRE_ON_SCREEN));
42637 PyDict_SetItemString(d,"CENTER_ON_SCREEN", SWIG_FromInt((int)wxCENTER_ON_SCREEN));
42638 PyDict_SetItemString(d,"ED_CLIENT_MARGIN", SWIG_FromInt((int)wxED_CLIENT_MARGIN));
42639 PyDict_SetItemString(d,"ED_BUTTONS_BOTTOM", SWIG_FromInt((int)wxED_BUTTONS_BOTTOM));
42640 PyDict_SetItemString(d,"ED_BUTTONS_RIGHT", SWIG_FromInt((int)wxED_BUTTONS_RIGHT));
42641 PyDict_SetItemString(d,"ED_STATIC_LINE", SWIG_FromInt((int)wxED_STATIC_LINE));
42642 PyDict_SetItemString(d,"EXT_DIALOG_STYLE", SWIG_FromInt((int)wxEXT_DIALOG_STYLE));
42643 PyDict_SetItemString(d,"CLIP_CHILDREN", SWIG_FromInt((int)wxCLIP_CHILDREN));
42644 PyDict_SetItemString(d,"CLIP_SIBLINGS", SWIG_FromInt((int)wxCLIP_SIBLINGS));
42645 PyDict_SetItemString(d,"ALWAYS_SHOW_SB", SWIG_FromInt((int)wxALWAYS_SHOW_SB));
42646 PyDict_SetItemString(d,"RETAINED", SWIG_FromInt((int)wxRETAINED));
42647 PyDict_SetItemString(d,"BACKINGSTORE", SWIG_FromInt((int)wxBACKINGSTORE));
42648 PyDict_SetItemString(d,"COLOURED", SWIG_FromInt((int)wxCOLOURED));
42649 PyDict_SetItemString(d,"FIXED_LENGTH", SWIG_FromInt((int)wxFIXED_LENGTH));
42650 PyDict_SetItemString(d,"LB_NEEDED_SB", SWIG_FromInt((int)wxLB_NEEDED_SB));
42651 PyDict_SetItemString(d,"LB_ALWAYS_SB", SWIG_FromInt((int)wxLB_ALWAYS_SB));
42652 PyDict_SetItemString(d,"LB_SORT", SWIG_FromInt((int)wxLB_SORT));
42653 PyDict_SetItemString(d,"LB_SINGLE", SWIG_FromInt((int)wxLB_SINGLE));
42654 PyDict_SetItemString(d,"LB_MULTIPLE", SWIG_FromInt((int)wxLB_MULTIPLE));
42655 PyDict_SetItemString(d,"LB_EXTENDED", SWIG_FromInt((int)wxLB_EXTENDED));
42656 PyDict_SetItemString(d,"LB_OWNERDRAW", SWIG_FromInt((int)wxLB_OWNERDRAW));
42657 PyDict_SetItemString(d,"LB_HSCROLL", SWIG_FromInt((int)wxLB_HSCROLL));
42658 PyDict_SetItemString(d,"PROCESS_ENTER", SWIG_FromInt((int)wxPROCESS_ENTER));
42659 PyDict_SetItemString(d,"PASSWORD", SWIG_FromInt((int)wxPASSWORD));
42660 PyDict_SetItemString(d,"CB_SIMPLE", SWIG_FromInt((int)wxCB_SIMPLE));
42661 PyDict_SetItemString(d,"CB_DROPDOWN", SWIG_FromInt((int)wxCB_DROPDOWN));
42662 PyDict_SetItemString(d,"CB_SORT", SWIG_FromInt((int)wxCB_SORT));
42663 PyDict_SetItemString(d,"CB_READONLY", SWIG_FromInt((int)wxCB_READONLY));
42664 PyDict_SetItemString(d,"RA_HORIZONTAL", SWIG_FromInt((int)wxRA_HORIZONTAL));
42665 PyDict_SetItemString(d,"RA_VERTICAL", SWIG_FromInt((int)wxRA_VERTICAL));
42666 PyDict_SetItemString(d,"RA_SPECIFY_ROWS", SWIG_FromInt((int)wxRA_SPECIFY_ROWS));
42667 PyDict_SetItemString(d,"RA_SPECIFY_COLS", SWIG_FromInt((int)wxRA_SPECIFY_COLS));
42668 PyDict_SetItemString(d,"RB_GROUP", SWIG_FromInt((int)wxRB_GROUP));
42669 PyDict_SetItemString(d,"RB_SINGLE", SWIG_FromInt((int)wxRB_SINGLE));
42670 PyDict_SetItemString(d,"SL_HORIZONTAL", SWIG_FromInt((int)wxSL_HORIZONTAL));
42671 PyDict_SetItemString(d,"SL_VERTICAL", SWIG_FromInt((int)wxSL_VERTICAL));
42672 PyDict_SetItemString(d,"SL_AUTOTICKS", SWIG_FromInt((int)wxSL_AUTOTICKS));
42673 PyDict_SetItemString(d,"SL_LABELS", SWIG_FromInt((int)wxSL_LABELS));
42674 PyDict_SetItemString(d,"SL_LEFT", SWIG_FromInt((int)wxSL_LEFT));
42675 PyDict_SetItemString(d,"SL_TOP", SWIG_FromInt((int)wxSL_TOP));
42676 PyDict_SetItemString(d,"SL_RIGHT", SWIG_FromInt((int)wxSL_RIGHT));
42677 PyDict_SetItemString(d,"SL_BOTTOM", SWIG_FromInt((int)wxSL_BOTTOM));
42678 PyDict_SetItemString(d,"SL_BOTH", SWIG_FromInt((int)wxSL_BOTH));
42679 PyDict_SetItemString(d,"SL_SELRANGE", SWIG_FromInt((int)wxSL_SELRANGE));
42680 PyDict_SetItemString(d,"SB_HORIZONTAL", SWIG_FromInt((int)wxSB_HORIZONTAL));
42681 PyDict_SetItemString(d,"SB_VERTICAL", SWIG_FromInt((int)wxSB_VERTICAL));
42682 PyDict_SetItemString(d,"ST_SIZEGRIP", SWIG_FromInt((int)wxST_SIZEGRIP));
42683 PyDict_SetItemString(d,"ST_NO_AUTORESIZE", SWIG_FromInt((int)wxST_NO_AUTORESIZE));
42684 PyDict_SetItemString(d,"FLOOD_SURFACE", SWIG_FromInt((int)wxFLOOD_SURFACE));
42685 PyDict_SetItemString(d,"FLOOD_BORDER", SWIG_FromInt((int)wxFLOOD_BORDER));
42686 PyDict_SetItemString(d,"ODDEVEN_RULE", SWIG_FromInt((int)wxODDEVEN_RULE));
42687 PyDict_SetItemString(d,"WINDING_RULE", SWIG_FromInt((int)wxWINDING_RULE));
42688 PyDict_SetItemString(d,"TOOL_TOP", SWIG_FromInt((int)wxTOOL_TOP));
42689 PyDict_SetItemString(d,"TOOL_BOTTOM", SWIG_FromInt((int)wxTOOL_BOTTOM));
42690 PyDict_SetItemString(d,"TOOL_LEFT", SWIG_FromInt((int)wxTOOL_LEFT));
42691 PyDict_SetItemString(d,"TOOL_RIGHT", SWIG_FromInt((int)wxTOOL_RIGHT));
42692 PyDict_SetItemString(d,"OK", SWIG_FromInt((int)wxOK));
42693 PyDict_SetItemString(d,"YES_NO", SWIG_FromInt((int)wxYES_NO));
42694 PyDict_SetItemString(d,"CANCEL", SWIG_FromInt((int)wxCANCEL));
42695 PyDict_SetItemString(d,"YES", SWIG_FromInt((int)wxYES));
42696 PyDict_SetItemString(d,"NO", SWIG_FromInt((int)wxNO));
42697 PyDict_SetItemString(d,"NO_DEFAULT", SWIG_FromInt((int)wxNO_DEFAULT));
42698 PyDict_SetItemString(d,"YES_DEFAULT", SWIG_FromInt((int)wxYES_DEFAULT));
42699 PyDict_SetItemString(d,"ICON_EXCLAMATION", SWIG_FromInt((int)wxICON_EXCLAMATION));
42700 PyDict_SetItemString(d,"ICON_HAND", SWIG_FromInt((int)wxICON_HAND));
42701 PyDict_SetItemString(d,"ICON_QUESTION", SWIG_FromInt((int)wxICON_QUESTION));
42702 PyDict_SetItemString(d,"ICON_INFORMATION", SWIG_FromInt((int)wxICON_INFORMATION));
42703 PyDict_SetItemString(d,"ICON_STOP", SWIG_FromInt((int)wxICON_STOP));
42704 PyDict_SetItemString(d,"ICON_ASTERISK", SWIG_FromInt((int)wxICON_ASTERISK));
42705 PyDict_SetItemString(d,"ICON_MASK", SWIG_FromInt((int)wxICON_MASK));
42706 PyDict_SetItemString(d,"ICON_WARNING", SWIG_FromInt((int)wxICON_WARNING));
42707 PyDict_SetItemString(d,"ICON_ERROR", SWIG_FromInt((int)wxICON_ERROR));
42708 PyDict_SetItemString(d,"FORWARD", SWIG_FromInt((int)wxFORWARD));
42709 PyDict_SetItemString(d,"BACKWARD", SWIG_FromInt((int)wxBACKWARD));
42710 PyDict_SetItemString(d,"RESET", SWIG_FromInt((int)wxRESET));
42711 PyDict_SetItemString(d,"HELP", SWIG_FromInt((int)wxHELP));
42712 PyDict_SetItemString(d,"MORE", SWIG_FromInt((int)wxMORE));
42713 PyDict_SetItemString(d,"SETUP", SWIG_FromInt((int)wxSETUP));
42714 PyDict_SetItemString(d,"SIZE_AUTO_WIDTH", SWIG_FromInt((int)wxSIZE_AUTO_WIDTH));
42715 PyDict_SetItemString(d,"SIZE_AUTO_HEIGHT", SWIG_FromInt((int)wxSIZE_AUTO_HEIGHT));
42716 PyDict_SetItemString(d,"SIZE_AUTO", SWIG_FromInt((int)wxSIZE_AUTO));
42717 PyDict_SetItemString(d,"SIZE_USE_EXISTING", SWIG_FromInt((int)wxSIZE_USE_EXISTING));
42718 PyDict_SetItemString(d,"SIZE_ALLOW_MINUS_ONE", SWIG_FromInt((int)wxSIZE_ALLOW_MINUS_ONE));
42719 PyDict_SetItemString(d,"PORTRAIT", SWIG_FromInt((int)wxPORTRAIT));
42720 PyDict_SetItemString(d,"LANDSCAPE", SWIG_FromInt((int)wxLANDSCAPE));
42721 PyDict_SetItemString(d,"PRINT_QUALITY_HIGH", SWIG_FromInt((int)wxPRINT_QUALITY_HIGH));
42722 PyDict_SetItemString(d,"PRINT_QUALITY_MEDIUM", SWIG_FromInt((int)wxPRINT_QUALITY_MEDIUM));
42723 PyDict_SetItemString(d,"PRINT_QUALITY_LOW", SWIG_FromInt((int)wxPRINT_QUALITY_LOW));
42724 PyDict_SetItemString(d,"PRINT_QUALITY_DRAFT", SWIG_FromInt((int)wxPRINT_QUALITY_DRAFT));
42725 PyDict_SetItemString(d,"ID_ANY", SWIG_FromInt((int)wxID_ANY));
42726 PyDict_SetItemString(d,"ID_SEPARATOR", SWIG_FromInt((int)wxID_SEPARATOR));
42727 PyDict_SetItemString(d,"ID_LOWEST", SWIG_FromInt((int)wxID_LOWEST));
42728 PyDict_SetItemString(d,"ID_OPEN", SWIG_FromInt((int)wxID_OPEN));
42729 PyDict_SetItemString(d,"ID_CLOSE", SWIG_FromInt((int)wxID_CLOSE));
42730 PyDict_SetItemString(d,"ID_NEW", SWIG_FromInt((int)wxID_NEW));
42731 PyDict_SetItemString(d,"ID_SAVE", SWIG_FromInt((int)wxID_SAVE));
42732 PyDict_SetItemString(d,"ID_SAVEAS", SWIG_FromInt((int)wxID_SAVEAS));
42733 PyDict_SetItemString(d,"ID_REVERT", SWIG_FromInt((int)wxID_REVERT));
42734 PyDict_SetItemString(d,"ID_EXIT", SWIG_FromInt((int)wxID_EXIT));
42735 PyDict_SetItemString(d,"ID_UNDO", SWIG_FromInt((int)wxID_UNDO));
42736 PyDict_SetItemString(d,"ID_REDO", SWIG_FromInt((int)wxID_REDO));
42737 PyDict_SetItemString(d,"ID_HELP", SWIG_FromInt((int)wxID_HELP));
42738 PyDict_SetItemString(d,"ID_PRINT", SWIG_FromInt((int)wxID_PRINT));
42739 PyDict_SetItemString(d,"ID_PRINT_SETUP", SWIG_FromInt((int)wxID_PRINT_SETUP));
42740 PyDict_SetItemString(d,"ID_PREVIEW", SWIG_FromInt((int)wxID_PREVIEW));
42741 PyDict_SetItemString(d,"ID_ABOUT", SWIG_FromInt((int)wxID_ABOUT));
42742 PyDict_SetItemString(d,"ID_HELP_CONTENTS", SWIG_FromInt((int)wxID_HELP_CONTENTS));
42743 PyDict_SetItemString(d,"ID_HELP_COMMANDS", SWIG_FromInt((int)wxID_HELP_COMMANDS));
42744 PyDict_SetItemString(d,"ID_HELP_PROCEDURES", SWIG_FromInt((int)wxID_HELP_PROCEDURES));
42745 PyDict_SetItemString(d,"ID_HELP_CONTEXT", SWIG_FromInt((int)wxID_HELP_CONTEXT));
42746 PyDict_SetItemString(d,"ID_CLOSE_ALL", SWIG_FromInt((int)wxID_CLOSE_ALL));
42747 PyDict_SetItemString(d,"ID_PREFERENCES", SWIG_FromInt((int)wxID_PREFERENCES));
42748 PyDict_SetItemString(d,"ID_CUT", SWIG_FromInt((int)wxID_CUT));
42749 PyDict_SetItemString(d,"ID_COPY", SWIG_FromInt((int)wxID_COPY));
42750 PyDict_SetItemString(d,"ID_PASTE", SWIG_FromInt((int)wxID_PASTE));
42751 PyDict_SetItemString(d,"ID_CLEAR", SWIG_FromInt((int)wxID_CLEAR));
42752 PyDict_SetItemString(d,"ID_FIND", SWIG_FromInt((int)wxID_FIND));
42753 PyDict_SetItemString(d,"ID_DUPLICATE", SWIG_FromInt((int)wxID_DUPLICATE));
42754 PyDict_SetItemString(d,"ID_SELECTALL", SWIG_FromInt((int)wxID_SELECTALL));
42755 PyDict_SetItemString(d,"ID_DELETE", SWIG_FromInt((int)wxID_DELETE));
42756 PyDict_SetItemString(d,"ID_REPLACE", SWIG_FromInt((int)wxID_REPLACE));
42757 PyDict_SetItemString(d,"ID_REPLACE_ALL", SWIG_FromInt((int)wxID_REPLACE_ALL));
42758 PyDict_SetItemString(d,"ID_PROPERTIES", SWIG_FromInt((int)wxID_PROPERTIES));
42759 PyDict_SetItemString(d,"ID_VIEW_DETAILS", SWIG_FromInt((int)wxID_VIEW_DETAILS));
42760 PyDict_SetItemString(d,"ID_VIEW_LARGEICONS", SWIG_FromInt((int)wxID_VIEW_LARGEICONS));
42761 PyDict_SetItemString(d,"ID_VIEW_SMALLICONS", SWIG_FromInt((int)wxID_VIEW_SMALLICONS));
42762 PyDict_SetItemString(d,"ID_VIEW_LIST", SWIG_FromInt((int)wxID_VIEW_LIST));
42763 PyDict_SetItemString(d,"ID_VIEW_SORTDATE", SWIG_FromInt((int)wxID_VIEW_SORTDATE));
42764 PyDict_SetItemString(d,"ID_VIEW_SORTNAME", SWIG_FromInt((int)wxID_VIEW_SORTNAME));
42765 PyDict_SetItemString(d,"ID_VIEW_SORTSIZE", SWIG_FromInt((int)wxID_VIEW_SORTSIZE));
42766 PyDict_SetItemString(d,"ID_VIEW_SORTTYPE", SWIG_FromInt((int)wxID_VIEW_SORTTYPE));
42767 PyDict_SetItemString(d,"ID_FILE1", SWIG_FromInt((int)wxID_FILE1));
42768 PyDict_SetItemString(d,"ID_FILE2", SWIG_FromInt((int)wxID_FILE2));
42769 PyDict_SetItemString(d,"ID_FILE3", SWIG_FromInt((int)wxID_FILE3));
42770 PyDict_SetItemString(d,"ID_FILE4", SWIG_FromInt((int)wxID_FILE4));
42771 PyDict_SetItemString(d,"ID_FILE5", SWIG_FromInt((int)wxID_FILE5));
42772 PyDict_SetItemString(d,"ID_FILE6", SWIG_FromInt((int)wxID_FILE6));
42773 PyDict_SetItemString(d,"ID_FILE7", SWIG_FromInt((int)wxID_FILE7));
42774 PyDict_SetItemString(d,"ID_FILE8", SWIG_FromInt((int)wxID_FILE8));
42775 PyDict_SetItemString(d,"ID_FILE9", SWIG_FromInt((int)wxID_FILE9));
42776 PyDict_SetItemString(d,"ID_OK", SWIG_FromInt((int)wxID_OK));
42777 PyDict_SetItemString(d,"ID_CANCEL", SWIG_FromInt((int)wxID_CANCEL));
42778 PyDict_SetItemString(d,"ID_APPLY", SWIG_FromInt((int)wxID_APPLY));
42779 PyDict_SetItemString(d,"ID_YES", SWIG_FromInt((int)wxID_YES));
42780 PyDict_SetItemString(d,"ID_NO", SWIG_FromInt((int)wxID_NO));
42781 PyDict_SetItemString(d,"ID_STATIC", SWIG_FromInt((int)wxID_STATIC));
42782 PyDict_SetItemString(d,"ID_FORWARD", SWIG_FromInt((int)wxID_FORWARD));
42783 PyDict_SetItemString(d,"ID_BACKWARD", SWIG_FromInt((int)wxID_BACKWARD));
42784 PyDict_SetItemString(d,"ID_DEFAULT", SWIG_FromInt((int)wxID_DEFAULT));
42785 PyDict_SetItemString(d,"ID_MORE", SWIG_FromInt((int)wxID_MORE));
42786 PyDict_SetItemString(d,"ID_SETUP", SWIG_FromInt((int)wxID_SETUP));
42787 PyDict_SetItemString(d,"ID_RESET", SWIG_FromInt((int)wxID_RESET));
42788 PyDict_SetItemString(d,"ID_CONTEXT_HELP", SWIG_FromInt((int)wxID_CONTEXT_HELP));
42789 PyDict_SetItemString(d,"ID_YESTOALL", SWIG_FromInt((int)wxID_YESTOALL));
42790 PyDict_SetItemString(d,"ID_NOTOALL", SWIG_FromInt((int)wxID_NOTOALL));
42791 PyDict_SetItemString(d,"ID_ABORT", SWIG_FromInt((int)wxID_ABORT));
42792 PyDict_SetItemString(d,"ID_RETRY", SWIG_FromInt((int)wxID_RETRY));
42793 PyDict_SetItemString(d,"ID_IGNORE", SWIG_FromInt((int)wxID_IGNORE));
42794 PyDict_SetItemString(d,"ID_HIGHEST", SWIG_FromInt((int)wxID_HIGHEST));
42795 PyDict_SetItemString(d,"OPEN", SWIG_FromInt((int)wxOPEN));
42796 PyDict_SetItemString(d,"SAVE", SWIG_FromInt((int)wxSAVE));
42797 PyDict_SetItemString(d,"HIDE_READONLY", SWIG_FromInt((int)wxHIDE_READONLY));
42798 PyDict_SetItemString(d,"OVERWRITE_PROMPT", SWIG_FromInt((int)wxOVERWRITE_PROMPT));
42799 PyDict_SetItemString(d,"FILE_MUST_EXIST", SWIG_FromInt((int)wxFILE_MUST_EXIST));
42800 PyDict_SetItemString(d,"MULTIPLE", SWIG_FromInt((int)wxMULTIPLE));
42801 PyDict_SetItemString(d,"CHANGE_DIR", SWIG_FromInt((int)wxCHANGE_DIR));
42802 PyDict_SetItemString(d,"ACCEL_ALT", SWIG_FromInt((int)wxACCEL_ALT));
42803 PyDict_SetItemString(d,"ACCEL_CTRL", SWIG_FromInt((int)wxACCEL_CTRL));
42804 PyDict_SetItemString(d,"ACCEL_SHIFT", SWIG_FromInt((int)wxACCEL_SHIFT));
42805 PyDict_SetItemString(d,"ACCEL_NORMAL", SWIG_FromInt((int)wxACCEL_NORMAL));
42806 PyDict_SetItemString(d,"PD_AUTO_HIDE", SWIG_FromInt((int)wxPD_AUTO_HIDE));
42807 PyDict_SetItemString(d,"PD_APP_MODAL", SWIG_FromInt((int)wxPD_APP_MODAL));
42808 PyDict_SetItemString(d,"PD_CAN_ABORT", SWIG_FromInt((int)wxPD_CAN_ABORT));
42809 PyDict_SetItemString(d,"PD_ELAPSED_TIME", SWIG_FromInt((int)wxPD_ELAPSED_TIME));
42810 PyDict_SetItemString(d,"PD_ESTIMATED_TIME", SWIG_FromInt((int)wxPD_ESTIMATED_TIME));
42811 PyDict_SetItemString(d,"PD_REMAINING_TIME", SWIG_FromInt((int)wxPD_REMAINING_TIME));
42812 PyDict_SetItemString(d,"DD_NEW_DIR_BUTTON", SWIG_FromInt((int)wxDD_NEW_DIR_BUTTON));
42813 PyDict_SetItemString(d,"DD_DEFAULT_STYLE", SWIG_FromInt((int)wxDD_DEFAULT_STYLE));
42814 PyDict_SetItemString(d,"MENU_TEAROFF", SWIG_FromInt((int)wxMENU_TEAROFF));
42815 PyDict_SetItemString(d,"MB_DOCKABLE", SWIG_FromInt((int)wxMB_DOCKABLE));
42816 PyDict_SetItemString(d,"NO_FULL_REPAINT_ON_RESIZE", SWIG_FromInt((int)wxNO_FULL_REPAINT_ON_RESIZE));
42817 PyDict_SetItemString(d,"FULL_REPAINT_ON_RESIZE", SWIG_FromInt((int)wxFULL_REPAINT_ON_RESIZE));
42818 PyDict_SetItemString(d,"LI_HORIZONTAL", SWIG_FromInt((int)wxLI_HORIZONTAL));
42819 PyDict_SetItemString(d,"LI_VERTICAL", SWIG_FromInt((int)wxLI_VERTICAL));
42820 PyDict_SetItemString(d,"WS_EX_VALIDATE_RECURSIVELY", SWIG_FromInt((int)wxWS_EX_VALIDATE_RECURSIVELY));
42821 PyDict_SetItemString(d,"WS_EX_BLOCK_EVENTS", SWIG_FromInt((int)wxWS_EX_BLOCK_EVENTS));
42822 PyDict_SetItemString(d,"WS_EX_TRANSIENT", SWIG_FromInt((int)wxWS_EX_TRANSIENT));
42823 PyDict_SetItemString(d,"WS_EX_THEMED_BACKGROUND", SWIG_FromInt((int)wxWS_EX_THEMED_BACKGROUND));
42824 PyDict_SetItemString(d,"WS_EX_PROCESS_IDLE", SWIG_FromInt((int)wxWS_EX_PROCESS_IDLE));
42825 PyDict_SetItemString(d,"WS_EX_PROCESS_UI_UPDATES", SWIG_FromInt((int)wxWS_EX_PROCESS_UI_UPDATES));
42826 PyDict_SetItemString(d,"MM_TEXT", SWIG_FromInt((int)wxMM_TEXT));
42827 PyDict_SetItemString(d,"MM_LOMETRIC", SWIG_FromInt((int)wxMM_LOMETRIC));
42828 PyDict_SetItemString(d,"MM_HIMETRIC", SWIG_FromInt((int)wxMM_HIMETRIC));
42829 PyDict_SetItemString(d,"MM_LOENGLISH", SWIG_FromInt((int)wxMM_LOENGLISH));
42830 PyDict_SetItemString(d,"MM_HIENGLISH", SWIG_FromInt((int)wxMM_HIENGLISH));
42831 PyDict_SetItemString(d,"MM_TWIPS", SWIG_FromInt((int)wxMM_TWIPS));
42832 PyDict_SetItemString(d,"MM_ISOTROPIC", SWIG_FromInt((int)wxMM_ISOTROPIC));
42833 PyDict_SetItemString(d,"MM_ANISOTROPIC", SWIG_FromInt((int)wxMM_ANISOTROPIC));
42834 PyDict_SetItemString(d,"MM_POINTS", SWIG_FromInt((int)wxMM_POINTS));
42835 PyDict_SetItemString(d,"MM_METRIC", SWIG_FromInt((int)wxMM_METRIC));
42836 PyDict_SetItemString(d,"CENTRE", SWIG_FromInt((int)wxCENTRE));
42837 PyDict_SetItemString(d,"CENTER", SWIG_FromInt((int)wxCENTER));
42838 PyDict_SetItemString(d,"HORIZONTAL", SWIG_FromInt((int)wxHORIZONTAL));
42839 PyDict_SetItemString(d,"VERTICAL", SWIG_FromInt((int)wxVERTICAL));
42840 PyDict_SetItemString(d,"BOTH", SWIG_FromInt((int)wxBOTH));
42841 PyDict_SetItemString(d,"LEFT", SWIG_FromInt((int)wxLEFT));
42842 PyDict_SetItemString(d,"RIGHT", SWIG_FromInt((int)wxRIGHT));
42843 PyDict_SetItemString(d,"UP", SWIG_FromInt((int)wxUP));
42844 PyDict_SetItemString(d,"DOWN", SWIG_FromInt((int)wxDOWN));
42845 PyDict_SetItemString(d,"TOP", SWIG_FromInt((int)wxTOP));
42846 PyDict_SetItemString(d,"BOTTOM", SWIG_FromInt((int)wxBOTTOM));
42847 PyDict_SetItemString(d,"NORTH", SWIG_FromInt((int)wxNORTH));
42848 PyDict_SetItemString(d,"SOUTH", SWIG_FromInt((int)wxSOUTH));
42849 PyDict_SetItemString(d,"WEST", SWIG_FromInt((int)wxWEST));
42850 PyDict_SetItemString(d,"EAST", SWIG_FromInt((int)wxEAST));
42851 PyDict_SetItemString(d,"ALL", SWIG_FromInt((int)wxALL));
42852 PyDict_SetItemString(d,"ALIGN_NOT", SWIG_FromInt((int)wxALIGN_NOT));
42853 PyDict_SetItemString(d,"ALIGN_CENTER_HORIZONTAL", SWIG_FromInt((int)wxALIGN_CENTER_HORIZONTAL));
42854 PyDict_SetItemString(d,"ALIGN_CENTRE_HORIZONTAL", SWIG_FromInt((int)wxALIGN_CENTRE_HORIZONTAL));
42855 PyDict_SetItemString(d,"ALIGN_LEFT", SWIG_FromInt((int)wxALIGN_LEFT));
42856 PyDict_SetItemString(d,"ALIGN_TOP", SWIG_FromInt((int)wxALIGN_TOP));
42857 PyDict_SetItemString(d,"ALIGN_RIGHT", SWIG_FromInt((int)wxALIGN_RIGHT));
42858 PyDict_SetItemString(d,"ALIGN_BOTTOM", SWIG_FromInt((int)wxALIGN_BOTTOM));
42859 PyDict_SetItemString(d,"ALIGN_CENTER_VERTICAL", SWIG_FromInt((int)wxALIGN_CENTER_VERTICAL));
42860 PyDict_SetItemString(d,"ALIGN_CENTRE_VERTICAL", SWIG_FromInt((int)wxALIGN_CENTRE_VERTICAL));
42861 PyDict_SetItemString(d,"ALIGN_CENTER", SWIG_FromInt((int)wxALIGN_CENTER));
42862 PyDict_SetItemString(d,"ALIGN_CENTRE", SWIG_FromInt((int)wxALIGN_CENTRE));
42863 PyDict_SetItemString(d,"ALIGN_MASK", SWIG_FromInt((int)wxALIGN_MASK));
42864 PyDict_SetItemString(d,"STRETCH_NOT", SWIG_FromInt((int)wxSTRETCH_NOT));
42865 PyDict_SetItemString(d,"SHRINK", SWIG_FromInt((int)wxSHRINK));
42866 PyDict_SetItemString(d,"GROW", SWIG_FromInt((int)wxGROW));
42867 PyDict_SetItemString(d,"EXPAND", SWIG_FromInt((int)wxEXPAND));
42868 PyDict_SetItemString(d,"SHAPED", SWIG_FromInt((int)wxSHAPED));
42869 PyDict_SetItemString(d,"FIXED_MINSIZE", SWIG_FromInt((int)wxFIXED_MINSIZE));
42870 PyDict_SetItemString(d,"TILE", SWIG_FromInt((int)wxTILE));
42871 PyDict_SetItemString(d,"ADJUST_MINSIZE", SWIG_FromInt((int)wxADJUST_MINSIZE));
42872 PyDict_SetItemString(d,"BORDER_DEFAULT", SWIG_FromInt((int)wxBORDER_DEFAULT));
42873 PyDict_SetItemString(d,"BORDER_NONE", SWIG_FromInt((int)wxBORDER_NONE));
42874 PyDict_SetItemString(d,"BORDER_STATIC", SWIG_FromInt((int)wxBORDER_STATIC));
42875 PyDict_SetItemString(d,"BORDER_SIMPLE", SWIG_FromInt((int)wxBORDER_SIMPLE));
42876 PyDict_SetItemString(d,"BORDER_RAISED", SWIG_FromInt((int)wxBORDER_RAISED));
42877 PyDict_SetItemString(d,"BORDER_SUNKEN", SWIG_FromInt((int)wxBORDER_SUNKEN));
42878 PyDict_SetItemString(d,"BORDER_DOUBLE", SWIG_FromInt((int)wxBORDER_DOUBLE));
42879 PyDict_SetItemString(d,"BORDER_MASK", SWIG_FromInt((int)wxBORDER_MASK));
42880 PyDict_SetItemString(d,"DEFAULT", SWIG_FromInt((int)wxDEFAULT));
42881 PyDict_SetItemString(d,"DECORATIVE", SWIG_FromInt((int)wxDECORATIVE));
42882 PyDict_SetItemString(d,"ROMAN", SWIG_FromInt((int)wxROMAN));
42883 PyDict_SetItemString(d,"SCRIPT", SWIG_FromInt((int)wxSCRIPT));
42884 PyDict_SetItemString(d,"SWISS", SWIG_FromInt((int)wxSWISS));
42885 PyDict_SetItemString(d,"MODERN", SWIG_FromInt((int)wxMODERN));
42886 PyDict_SetItemString(d,"TELETYPE", SWIG_FromInt((int)wxTELETYPE));
42887 PyDict_SetItemString(d,"VARIABLE", SWIG_FromInt((int)wxVARIABLE));
42888 PyDict_SetItemString(d,"FIXED", SWIG_FromInt((int)wxFIXED));
42889 PyDict_SetItemString(d,"NORMAL", SWIG_FromInt((int)wxNORMAL));
42890 PyDict_SetItemString(d,"LIGHT", SWIG_FromInt((int)wxLIGHT));
42891 PyDict_SetItemString(d,"BOLD", SWIG_FromInt((int)wxBOLD));
42892 PyDict_SetItemString(d,"ITALIC", SWIG_FromInt((int)wxITALIC));
42893 PyDict_SetItemString(d,"SLANT", SWIG_FromInt((int)wxSLANT));
42894 PyDict_SetItemString(d,"SOLID", SWIG_FromInt((int)wxSOLID));
42895 PyDict_SetItemString(d,"DOT", SWIG_FromInt((int)wxDOT));
42896 PyDict_SetItemString(d,"LONG_DASH", SWIG_FromInt((int)wxLONG_DASH));
42897 PyDict_SetItemString(d,"SHORT_DASH", SWIG_FromInt((int)wxSHORT_DASH));
42898 PyDict_SetItemString(d,"DOT_DASH", SWIG_FromInt((int)wxDOT_DASH));
42899 PyDict_SetItemString(d,"USER_DASH", SWIG_FromInt((int)wxUSER_DASH));
42900 PyDict_SetItemString(d,"TRANSPARENT", SWIG_FromInt((int)wxTRANSPARENT));
42901 PyDict_SetItemString(d,"STIPPLE", SWIG_FromInt((int)wxSTIPPLE));
42902 PyDict_SetItemString(d,"BDIAGONAL_HATCH", SWIG_FromInt((int)wxBDIAGONAL_HATCH));
42903 PyDict_SetItemString(d,"CROSSDIAG_HATCH", SWIG_FromInt((int)wxCROSSDIAG_HATCH));
42904 PyDict_SetItemString(d,"FDIAGONAL_HATCH", SWIG_FromInt((int)wxFDIAGONAL_HATCH));
42905 PyDict_SetItemString(d,"CROSS_HATCH", SWIG_FromInt((int)wxCROSS_HATCH));
42906 PyDict_SetItemString(d,"HORIZONTAL_HATCH", SWIG_FromInt((int)wxHORIZONTAL_HATCH));
42907 PyDict_SetItemString(d,"VERTICAL_HATCH", SWIG_FromInt((int)wxVERTICAL_HATCH));
42908 PyDict_SetItemString(d,"JOIN_BEVEL", SWIG_FromInt((int)wxJOIN_BEVEL));
42909 PyDict_SetItemString(d,"JOIN_MITER", SWIG_FromInt((int)wxJOIN_MITER));
42910 PyDict_SetItemString(d,"JOIN_ROUND", SWIG_FromInt((int)wxJOIN_ROUND));
42911 PyDict_SetItemString(d,"CAP_ROUND", SWIG_FromInt((int)wxCAP_ROUND));
42912 PyDict_SetItemString(d,"CAP_PROJECTING", SWIG_FromInt((int)wxCAP_PROJECTING));
42913 PyDict_SetItemString(d,"CAP_BUTT", SWIG_FromInt((int)wxCAP_BUTT));
42914 PyDict_SetItemString(d,"CLEAR", SWIG_FromInt((int)wxCLEAR));
42915 PyDict_SetItemString(d,"XOR", SWIG_FromInt((int)wxXOR));
42916 PyDict_SetItemString(d,"INVERT", SWIG_FromInt((int)wxINVERT));
42917 PyDict_SetItemString(d,"OR_REVERSE", SWIG_FromInt((int)wxOR_REVERSE));
42918 PyDict_SetItemString(d,"AND_REVERSE", SWIG_FromInt((int)wxAND_REVERSE));
42919 PyDict_SetItemString(d,"COPY", SWIG_FromInt((int)wxCOPY));
42920 PyDict_SetItemString(d,"AND", SWIG_FromInt((int)wxAND));
42921 PyDict_SetItemString(d,"AND_INVERT", SWIG_FromInt((int)wxAND_INVERT));
42922 PyDict_SetItemString(d,"NO_OP", SWIG_FromInt((int)wxNO_OP));
42923 PyDict_SetItemString(d,"NOR", SWIG_FromInt((int)wxNOR));
42924 PyDict_SetItemString(d,"EQUIV", SWIG_FromInt((int)wxEQUIV));
42925 PyDict_SetItemString(d,"SRC_INVERT", SWIG_FromInt((int)wxSRC_INVERT));
42926 PyDict_SetItemString(d,"OR_INVERT", SWIG_FromInt((int)wxOR_INVERT));
42927 PyDict_SetItemString(d,"NAND", SWIG_FromInt((int)wxNAND));
42928 PyDict_SetItemString(d,"OR", SWIG_FromInt((int)wxOR));
42929 PyDict_SetItemString(d,"SET", SWIG_FromInt((int)wxSET));
42930 PyDict_SetItemString(d,"WXK_BACK", SWIG_FromInt((int)WXK_BACK));
42931 PyDict_SetItemString(d,"WXK_TAB", SWIG_FromInt((int)WXK_TAB));
42932 PyDict_SetItemString(d,"WXK_RETURN", SWIG_FromInt((int)WXK_RETURN));
42933 PyDict_SetItemString(d,"WXK_ESCAPE", SWIG_FromInt((int)WXK_ESCAPE));
42934 PyDict_SetItemString(d,"WXK_SPACE", SWIG_FromInt((int)WXK_SPACE));
42935 PyDict_SetItemString(d,"WXK_DELETE", SWIG_FromInt((int)WXK_DELETE));
42936 PyDict_SetItemString(d,"WXK_START", SWIG_FromInt((int)WXK_START));
42937 PyDict_SetItemString(d,"WXK_LBUTTON", SWIG_FromInt((int)WXK_LBUTTON));
42938 PyDict_SetItemString(d,"WXK_RBUTTON", SWIG_FromInt((int)WXK_RBUTTON));
42939 PyDict_SetItemString(d,"WXK_CANCEL", SWIG_FromInt((int)WXK_CANCEL));
42940 PyDict_SetItemString(d,"WXK_MBUTTON", SWIG_FromInt((int)WXK_MBUTTON));
42941 PyDict_SetItemString(d,"WXK_CLEAR", SWIG_FromInt((int)WXK_CLEAR));
42942 PyDict_SetItemString(d,"WXK_SHIFT", SWIG_FromInt((int)WXK_SHIFT));
42943 PyDict_SetItemString(d,"WXK_ALT", SWIG_FromInt((int)WXK_ALT));
42944 PyDict_SetItemString(d,"WXK_CONTROL", SWIG_FromInt((int)WXK_CONTROL));
42945 PyDict_SetItemString(d,"WXK_MENU", SWIG_FromInt((int)WXK_MENU));
42946 PyDict_SetItemString(d,"WXK_PAUSE", SWIG_FromInt((int)WXK_PAUSE));
42947 PyDict_SetItemString(d,"WXK_CAPITAL", SWIG_FromInt((int)WXK_CAPITAL));
42948 PyDict_SetItemString(d,"WXK_PRIOR", SWIG_FromInt((int)WXK_PRIOR));
42949 PyDict_SetItemString(d,"WXK_NEXT", SWIG_FromInt((int)WXK_NEXT));
42950 PyDict_SetItemString(d,"WXK_END", SWIG_FromInt((int)WXK_END));
42951 PyDict_SetItemString(d,"WXK_HOME", SWIG_FromInt((int)WXK_HOME));
42952 PyDict_SetItemString(d,"WXK_LEFT", SWIG_FromInt((int)WXK_LEFT));
42953 PyDict_SetItemString(d,"WXK_UP", SWIG_FromInt((int)WXK_UP));
42954 PyDict_SetItemString(d,"WXK_RIGHT", SWIG_FromInt((int)WXK_RIGHT));
42955 PyDict_SetItemString(d,"WXK_DOWN", SWIG_FromInt((int)WXK_DOWN));
42956 PyDict_SetItemString(d,"WXK_SELECT", SWIG_FromInt((int)WXK_SELECT));
42957 PyDict_SetItemString(d,"WXK_PRINT", SWIG_FromInt((int)WXK_PRINT));
42958 PyDict_SetItemString(d,"WXK_EXECUTE", SWIG_FromInt((int)WXK_EXECUTE));
42959 PyDict_SetItemString(d,"WXK_SNAPSHOT", SWIG_FromInt((int)WXK_SNAPSHOT));
42960 PyDict_SetItemString(d,"WXK_INSERT", SWIG_FromInt((int)WXK_INSERT));
42961 PyDict_SetItemString(d,"WXK_HELP", SWIG_FromInt((int)WXK_HELP));
42962 PyDict_SetItemString(d,"WXK_NUMPAD0", SWIG_FromInt((int)WXK_NUMPAD0));
42963 PyDict_SetItemString(d,"WXK_NUMPAD1", SWIG_FromInt((int)WXK_NUMPAD1));
42964 PyDict_SetItemString(d,"WXK_NUMPAD2", SWIG_FromInt((int)WXK_NUMPAD2));
42965 PyDict_SetItemString(d,"WXK_NUMPAD3", SWIG_FromInt((int)WXK_NUMPAD3));
42966 PyDict_SetItemString(d,"WXK_NUMPAD4", SWIG_FromInt((int)WXK_NUMPAD4));
42967 PyDict_SetItemString(d,"WXK_NUMPAD5", SWIG_FromInt((int)WXK_NUMPAD5));
42968 PyDict_SetItemString(d,"WXK_NUMPAD6", SWIG_FromInt((int)WXK_NUMPAD6));
42969 PyDict_SetItemString(d,"WXK_NUMPAD7", SWIG_FromInt((int)WXK_NUMPAD7));
42970 PyDict_SetItemString(d,"WXK_NUMPAD8", SWIG_FromInt((int)WXK_NUMPAD8));
42971 PyDict_SetItemString(d,"WXK_NUMPAD9", SWIG_FromInt((int)WXK_NUMPAD9));
42972 PyDict_SetItemString(d,"WXK_MULTIPLY", SWIG_FromInt((int)WXK_MULTIPLY));
42973 PyDict_SetItemString(d,"WXK_ADD", SWIG_FromInt((int)WXK_ADD));
42974 PyDict_SetItemString(d,"WXK_SEPARATOR", SWIG_FromInt((int)WXK_SEPARATOR));
42975 PyDict_SetItemString(d,"WXK_SUBTRACT", SWIG_FromInt((int)WXK_SUBTRACT));
42976 PyDict_SetItemString(d,"WXK_DECIMAL", SWIG_FromInt((int)WXK_DECIMAL));
42977 PyDict_SetItemString(d,"WXK_DIVIDE", SWIG_FromInt((int)WXK_DIVIDE));
42978 PyDict_SetItemString(d,"WXK_F1", SWIG_FromInt((int)WXK_F1));
42979 PyDict_SetItemString(d,"WXK_F2", SWIG_FromInt((int)WXK_F2));
42980 PyDict_SetItemString(d,"WXK_F3", SWIG_FromInt((int)WXK_F3));
42981 PyDict_SetItemString(d,"WXK_F4", SWIG_FromInt((int)WXK_F4));
42982 PyDict_SetItemString(d,"WXK_F5", SWIG_FromInt((int)WXK_F5));
42983 PyDict_SetItemString(d,"WXK_F6", SWIG_FromInt((int)WXK_F6));
42984 PyDict_SetItemString(d,"WXK_F7", SWIG_FromInt((int)WXK_F7));
42985 PyDict_SetItemString(d,"WXK_F8", SWIG_FromInt((int)WXK_F8));
42986 PyDict_SetItemString(d,"WXK_F9", SWIG_FromInt((int)WXK_F9));
42987 PyDict_SetItemString(d,"WXK_F10", SWIG_FromInt((int)WXK_F10));
42988 PyDict_SetItemString(d,"WXK_F11", SWIG_FromInt((int)WXK_F11));
42989 PyDict_SetItemString(d,"WXK_F12", SWIG_FromInt((int)WXK_F12));
42990 PyDict_SetItemString(d,"WXK_F13", SWIG_FromInt((int)WXK_F13));
42991 PyDict_SetItemString(d,"WXK_F14", SWIG_FromInt((int)WXK_F14));
42992 PyDict_SetItemString(d,"WXK_F15", SWIG_FromInt((int)WXK_F15));
42993 PyDict_SetItemString(d,"WXK_F16", SWIG_FromInt((int)WXK_F16));
42994 PyDict_SetItemString(d,"WXK_F17", SWIG_FromInt((int)WXK_F17));
42995 PyDict_SetItemString(d,"WXK_F18", SWIG_FromInt((int)WXK_F18));
42996 PyDict_SetItemString(d,"WXK_F19", SWIG_FromInt((int)WXK_F19));
42997 PyDict_SetItemString(d,"WXK_F20", SWIG_FromInt((int)WXK_F20));
42998 PyDict_SetItemString(d,"WXK_F21", SWIG_FromInt((int)WXK_F21));
42999 PyDict_SetItemString(d,"WXK_F22", SWIG_FromInt((int)WXK_F22));
43000 PyDict_SetItemString(d,"WXK_F23", SWIG_FromInt((int)WXK_F23));
43001 PyDict_SetItemString(d,"WXK_F24", SWIG_FromInt((int)WXK_F24));
43002 PyDict_SetItemString(d,"WXK_NUMLOCK", SWIG_FromInt((int)WXK_NUMLOCK));
43003 PyDict_SetItemString(d,"WXK_SCROLL", SWIG_FromInt((int)WXK_SCROLL));
43004 PyDict_SetItemString(d,"WXK_PAGEUP", SWIG_FromInt((int)WXK_PAGEUP));
43005 PyDict_SetItemString(d,"WXK_PAGEDOWN", SWIG_FromInt((int)WXK_PAGEDOWN));
43006 PyDict_SetItemString(d,"WXK_NUMPAD_SPACE", SWIG_FromInt((int)WXK_NUMPAD_SPACE));
43007 PyDict_SetItemString(d,"WXK_NUMPAD_TAB", SWIG_FromInt((int)WXK_NUMPAD_TAB));
43008 PyDict_SetItemString(d,"WXK_NUMPAD_ENTER", SWIG_FromInt((int)WXK_NUMPAD_ENTER));
43009 PyDict_SetItemString(d,"WXK_NUMPAD_F1", SWIG_FromInt((int)WXK_NUMPAD_F1));
43010 PyDict_SetItemString(d,"WXK_NUMPAD_F2", SWIG_FromInt((int)WXK_NUMPAD_F2));
43011 PyDict_SetItemString(d,"WXK_NUMPAD_F3", SWIG_FromInt((int)WXK_NUMPAD_F3));
43012 PyDict_SetItemString(d,"WXK_NUMPAD_F4", SWIG_FromInt((int)WXK_NUMPAD_F4));
43013 PyDict_SetItemString(d,"WXK_NUMPAD_HOME", SWIG_FromInt((int)WXK_NUMPAD_HOME));
43014 PyDict_SetItemString(d,"WXK_NUMPAD_LEFT", SWIG_FromInt((int)WXK_NUMPAD_LEFT));
43015 PyDict_SetItemString(d,"WXK_NUMPAD_UP", SWIG_FromInt((int)WXK_NUMPAD_UP));
43016 PyDict_SetItemString(d,"WXK_NUMPAD_RIGHT", SWIG_FromInt((int)WXK_NUMPAD_RIGHT));
43017 PyDict_SetItemString(d,"WXK_NUMPAD_DOWN", SWIG_FromInt((int)WXK_NUMPAD_DOWN));
43018 PyDict_SetItemString(d,"WXK_NUMPAD_PRIOR", SWIG_FromInt((int)WXK_NUMPAD_PRIOR));
43019 PyDict_SetItemString(d,"WXK_NUMPAD_PAGEUP", SWIG_FromInt((int)WXK_NUMPAD_PAGEUP));
43020 PyDict_SetItemString(d,"WXK_NUMPAD_NEXT", SWIG_FromInt((int)WXK_NUMPAD_NEXT));
43021 PyDict_SetItemString(d,"WXK_NUMPAD_PAGEDOWN", SWIG_FromInt((int)WXK_NUMPAD_PAGEDOWN));
43022 PyDict_SetItemString(d,"WXK_NUMPAD_END", SWIG_FromInt((int)WXK_NUMPAD_END));
43023 PyDict_SetItemString(d,"WXK_NUMPAD_BEGIN", SWIG_FromInt((int)WXK_NUMPAD_BEGIN));
43024 PyDict_SetItemString(d,"WXK_NUMPAD_INSERT", SWIG_FromInt((int)WXK_NUMPAD_INSERT));
43025 PyDict_SetItemString(d,"WXK_NUMPAD_DELETE", SWIG_FromInt((int)WXK_NUMPAD_DELETE));
43026 PyDict_SetItemString(d,"WXK_NUMPAD_EQUAL", SWIG_FromInt((int)WXK_NUMPAD_EQUAL));
43027 PyDict_SetItemString(d,"WXK_NUMPAD_MULTIPLY", SWIG_FromInt((int)WXK_NUMPAD_MULTIPLY));
43028 PyDict_SetItemString(d,"WXK_NUMPAD_ADD", SWIG_FromInt((int)WXK_NUMPAD_ADD));
43029 PyDict_SetItemString(d,"WXK_NUMPAD_SEPARATOR", SWIG_FromInt((int)WXK_NUMPAD_SEPARATOR));
43030 PyDict_SetItemString(d,"WXK_NUMPAD_SUBTRACT", SWIG_FromInt((int)WXK_NUMPAD_SUBTRACT));
43031 PyDict_SetItemString(d,"WXK_NUMPAD_DECIMAL", SWIG_FromInt((int)WXK_NUMPAD_DECIMAL));
43032 PyDict_SetItemString(d,"WXK_NUMPAD_DIVIDE", SWIG_FromInt((int)WXK_NUMPAD_DIVIDE));
43033 PyDict_SetItemString(d,"WXK_WINDOWS_LEFT", SWIG_FromInt((int)WXK_WINDOWS_LEFT));
43034 PyDict_SetItemString(d,"WXK_WINDOWS_RIGHT", SWIG_FromInt((int)WXK_WINDOWS_RIGHT));
43035 PyDict_SetItemString(d,"WXK_WINDOWS_MENU", SWIG_FromInt((int)WXK_WINDOWS_MENU));
43036 PyDict_SetItemString(d,"PAPER_NONE", SWIG_FromInt((int)wxPAPER_NONE));
43037 PyDict_SetItemString(d,"PAPER_LETTER", SWIG_FromInt((int)wxPAPER_LETTER));
43038 PyDict_SetItemString(d,"PAPER_LEGAL", SWIG_FromInt((int)wxPAPER_LEGAL));
43039 PyDict_SetItemString(d,"PAPER_A4", SWIG_FromInt((int)wxPAPER_A4));
43040 PyDict_SetItemString(d,"PAPER_CSHEET", SWIG_FromInt((int)wxPAPER_CSHEET));
43041 PyDict_SetItemString(d,"PAPER_DSHEET", SWIG_FromInt((int)wxPAPER_DSHEET));
43042 PyDict_SetItemString(d,"PAPER_ESHEET", SWIG_FromInt((int)wxPAPER_ESHEET));
43043 PyDict_SetItemString(d,"PAPER_LETTERSMALL", SWIG_FromInt((int)wxPAPER_LETTERSMALL));
43044 PyDict_SetItemString(d,"PAPER_TABLOID", SWIG_FromInt((int)wxPAPER_TABLOID));
43045 PyDict_SetItemString(d,"PAPER_LEDGER", SWIG_FromInt((int)wxPAPER_LEDGER));
43046 PyDict_SetItemString(d,"PAPER_STATEMENT", SWIG_FromInt((int)wxPAPER_STATEMENT));
43047 PyDict_SetItemString(d,"PAPER_EXECUTIVE", SWIG_FromInt((int)wxPAPER_EXECUTIVE));
43048 PyDict_SetItemString(d,"PAPER_A3", SWIG_FromInt((int)wxPAPER_A3));
43049 PyDict_SetItemString(d,"PAPER_A4SMALL", SWIG_FromInt((int)wxPAPER_A4SMALL));
43050 PyDict_SetItemString(d,"PAPER_A5", SWIG_FromInt((int)wxPAPER_A5));
43051 PyDict_SetItemString(d,"PAPER_B4", SWIG_FromInt((int)wxPAPER_B4));
43052 PyDict_SetItemString(d,"PAPER_B5", SWIG_FromInt((int)wxPAPER_B5));
43053 PyDict_SetItemString(d,"PAPER_FOLIO", SWIG_FromInt((int)wxPAPER_FOLIO));
43054 PyDict_SetItemString(d,"PAPER_QUARTO", SWIG_FromInt((int)wxPAPER_QUARTO));
43055 PyDict_SetItemString(d,"PAPER_10X14", SWIG_FromInt((int)wxPAPER_10X14));
43056 PyDict_SetItemString(d,"PAPER_11X17", SWIG_FromInt((int)wxPAPER_11X17));
43057 PyDict_SetItemString(d,"PAPER_NOTE", SWIG_FromInt((int)wxPAPER_NOTE));
43058 PyDict_SetItemString(d,"PAPER_ENV_9", SWIG_FromInt((int)wxPAPER_ENV_9));
43059 PyDict_SetItemString(d,"PAPER_ENV_10", SWIG_FromInt((int)wxPAPER_ENV_10));
43060 PyDict_SetItemString(d,"PAPER_ENV_11", SWIG_FromInt((int)wxPAPER_ENV_11));
43061 PyDict_SetItemString(d,"PAPER_ENV_12", SWIG_FromInt((int)wxPAPER_ENV_12));
43062 PyDict_SetItemString(d,"PAPER_ENV_14", SWIG_FromInt((int)wxPAPER_ENV_14));
43063 PyDict_SetItemString(d,"PAPER_ENV_DL", SWIG_FromInt((int)wxPAPER_ENV_DL));
43064 PyDict_SetItemString(d,"PAPER_ENV_C5", SWIG_FromInt((int)wxPAPER_ENV_C5));
43065 PyDict_SetItemString(d,"PAPER_ENV_C3", SWIG_FromInt((int)wxPAPER_ENV_C3));
43066 PyDict_SetItemString(d,"PAPER_ENV_C4", SWIG_FromInt((int)wxPAPER_ENV_C4));
43067 PyDict_SetItemString(d,"PAPER_ENV_C6", SWIG_FromInt((int)wxPAPER_ENV_C6));
43068 PyDict_SetItemString(d,"PAPER_ENV_C65", SWIG_FromInt((int)wxPAPER_ENV_C65));
43069 PyDict_SetItemString(d,"PAPER_ENV_B4", SWIG_FromInt((int)wxPAPER_ENV_B4));
43070 PyDict_SetItemString(d,"PAPER_ENV_B5", SWIG_FromInt((int)wxPAPER_ENV_B5));
43071 PyDict_SetItemString(d,"PAPER_ENV_B6", SWIG_FromInt((int)wxPAPER_ENV_B6));
43072 PyDict_SetItemString(d,"PAPER_ENV_ITALY", SWIG_FromInt((int)wxPAPER_ENV_ITALY));
43073 PyDict_SetItemString(d,"PAPER_ENV_MONARCH", SWIG_FromInt((int)wxPAPER_ENV_MONARCH));
43074 PyDict_SetItemString(d,"PAPER_ENV_PERSONAL", SWIG_FromInt((int)wxPAPER_ENV_PERSONAL));
43075 PyDict_SetItemString(d,"PAPER_FANFOLD_US", SWIG_FromInt((int)wxPAPER_FANFOLD_US));
43076 PyDict_SetItemString(d,"PAPER_FANFOLD_STD_GERMAN", SWIG_FromInt((int)wxPAPER_FANFOLD_STD_GERMAN));
43077 PyDict_SetItemString(d,"PAPER_FANFOLD_LGL_GERMAN", SWIG_FromInt((int)wxPAPER_FANFOLD_LGL_GERMAN));
43078 PyDict_SetItemString(d,"PAPER_ISO_B4", SWIG_FromInt((int)wxPAPER_ISO_B4));
43079 PyDict_SetItemString(d,"PAPER_JAPANESE_POSTCARD", SWIG_FromInt((int)wxPAPER_JAPANESE_POSTCARD));
43080 PyDict_SetItemString(d,"PAPER_9X11", SWIG_FromInt((int)wxPAPER_9X11));
43081 PyDict_SetItemString(d,"PAPER_10X11", SWIG_FromInt((int)wxPAPER_10X11));
43082 PyDict_SetItemString(d,"PAPER_15X11", SWIG_FromInt((int)wxPAPER_15X11));
43083 PyDict_SetItemString(d,"PAPER_ENV_INVITE", SWIG_FromInt((int)wxPAPER_ENV_INVITE));
43084 PyDict_SetItemString(d,"PAPER_LETTER_EXTRA", SWIG_FromInt((int)wxPAPER_LETTER_EXTRA));
43085 PyDict_SetItemString(d,"PAPER_LEGAL_EXTRA", SWIG_FromInt((int)wxPAPER_LEGAL_EXTRA));
43086 PyDict_SetItemString(d,"PAPER_TABLOID_EXTRA", SWIG_FromInt((int)wxPAPER_TABLOID_EXTRA));
43087 PyDict_SetItemString(d,"PAPER_A4_EXTRA", SWIG_FromInt((int)wxPAPER_A4_EXTRA));
43088 PyDict_SetItemString(d,"PAPER_LETTER_TRANSVERSE", SWIG_FromInt((int)wxPAPER_LETTER_TRANSVERSE));
43089 PyDict_SetItemString(d,"PAPER_A4_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A4_TRANSVERSE));
43090 PyDict_SetItemString(d,"PAPER_LETTER_EXTRA_TRANSVERSE", SWIG_FromInt((int)wxPAPER_LETTER_EXTRA_TRANSVERSE));
43091 PyDict_SetItemString(d,"PAPER_A_PLUS", SWIG_FromInt((int)wxPAPER_A_PLUS));
43092 PyDict_SetItemString(d,"PAPER_B_PLUS", SWIG_FromInt((int)wxPAPER_B_PLUS));
43093 PyDict_SetItemString(d,"PAPER_LETTER_PLUS", SWIG_FromInt((int)wxPAPER_LETTER_PLUS));
43094 PyDict_SetItemString(d,"PAPER_A4_PLUS", SWIG_FromInt((int)wxPAPER_A4_PLUS));
43095 PyDict_SetItemString(d,"PAPER_A5_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A5_TRANSVERSE));
43096 PyDict_SetItemString(d,"PAPER_B5_TRANSVERSE", SWIG_FromInt((int)wxPAPER_B5_TRANSVERSE));
43097 PyDict_SetItemString(d,"PAPER_A3_EXTRA", SWIG_FromInt((int)wxPAPER_A3_EXTRA));
43098 PyDict_SetItemString(d,"PAPER_A5_EXTRA", SWIG_FromInt((int)wxPAPER_A5_EXTRA));
43099 PyDict_SetItemString(d,"PAPER_B5_EXTRA", SWIG_FromInt((int)wxPAPER_B5_EXTRA));
43100 PyDict_SetItemString(d,"PAPER_A2", SWIG_FromInt((int)wxPAPER_A2));
43101 PyDict_SetItemString(d,"PAPER_A3_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A3_TRANSVERSE));
43102 PyDict_SetItemString(d,"PAPER_A3_EXTRA_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A3_EXTRA_TRANSVERSE));
43103 PyDict_SetItemString(d,"DUPLEX_SIMPLEX", SWIG_FromInt((int)wxDUPLEX_SIMPLEX));
43104 PyDict_SetItemString(d,"DUPLEX_HORIZONTAL", SWIG_FromInt((int)wxDUPLEX_HORIZONTAL));
43105 PyDict_SetItemString(d,"DUPLEX_VERTICAL", SWIG_FromInt((int)wxDUPLEX_VERTICAL));
43106 PyDict_SetItemString(d,"ITEM_SEPARATOR", SWIG_FromInt((int)wxITEM_SEPARATOR));
43107 PyDict_SetItemString(d,"ITEM_NORMAL", SWIG_FromInt((int)wxITEM_NORMAL));
43108 PyDict_SetItemString(d,"ITEM_CHECK", SWIG_FromInt((int)wxITEM_CHECK));
43109 PyDict_SetItemString(d,"ITEM_RADIO", SWIG_FromInt((int)wxITEM_RADIO));
43110 PyDict_SetItemString(d,"ITEM_MAX", SWIG_FromInt((int)wxITEM_MAX));
43111 PyDict_SetItemString(d,"HT_NOWHERE", SWIG_FromInt((int)wxHT_NOWHERE));
43112 PyDict_SetItemString(d,"HT_SCROLLBAR_FIRST", SWIG_FromInt((int)wxHT_SCROLLBAR_FIRST));
43113 PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_1", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_1));
43114 PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_2", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_2));
43115 PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_1", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_1));
43116 PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_2", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_2));
43117 PyDict_SetItemString(d,"HT_SCROLLBAR_THUMB", SWIG_FromInt((int)wxHT_SCROLLBAR_THUMB));
43118 PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_1", SWIG_FromInt((int)wxHT_SCROLLBAR_BAR_1));
43119 PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_2", SWIG_FromInt((int)wxHT_SCROLLBAR_BAR_2));
43120 PyDict_SetItemString(d,"HT_SCROLLBAR_LAST", SWIG_FromInt((int)wxHT_SCROLLBAR_LAST));
43121 PyDict_SetItemString(d,"HT_WINDOW_OUTSIDE", SWIG_FromInt((int)wxHT_WINDOW_OUTSIDE));
43122 PyDict_SetItemString(d,"HT_WINDOW_INSIDE", SWIG_FromInt((int)wxHT_WINDOW_INSIDE));
43123 PyDict_SetItemString(d,"HT_WINDOW_VERT_SCROLLBAR", SWIG_FromInt((int)wxHT_WINDOW_VERT_SCROLLBAR));
43124 PyDict_SetItemString(d,"HT_WINDOW_HORZ_SCROLLBAR", SWIG_FromInt((int)wxHT_WINDOW_HORZ_SCROLLBAR));
43125 PyDict_SetItemString(d,"HT_WINDOW_CORNER", SWIG_FromInt((int)wxHT_WINDOW_CORNER));
43126 PyDict_SetItemString(d,"HT_MAX", SWIG_FromInt((int)wxHT_MAX));
43127 PyDict_SetItemString(d,"MOD_NONE", SWIG_FromInt((int)wxMOD_NONE));
43128 PyDict_SetItemString(d,"MOD_ALT", SWIG_FromInt((int)wxMOD_ALT));
43129 PyDict_SetItemString(d,"MOD_CONTROL", SWIG_FromInt((int)wxMOD_CONTROL));
43130 PyDict_SetItemString(d,"MOD_SHIFT", SWIG_FromInt((int)wxMOD_SHIFT));
43131 PyDict_SetItemString(d,"MOD_WIN", SWIG_FromInt((int)wxMOD_WIN));
43132 PyDict_SetItemString(d,"UPDATE_UI_NONE", SWIG_FromInt((int)wxUPDATE_UI_NONE));
43133 PyDict_SetItemString(d,"UPDATE_UI_RECURSE", SWIG_FromInt((int)wxUPDATE_UI_RECURSE));
43134 PyDict_SetItemString(d,"UPDATE_UI_FROMIDLE", SWIG_FromInt((int)wxUPDATE_UI_FROMIDLE));
43135 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
43136 SWIG_addvarlink(SWIG_globals,(char*)"EmptyString",_wrap_EmptyString_get, _wrap_EmptyString_set);
43137 PyDict_SetItemString(d,"BITMAP_TYPE_INVALID", SWIG_FromInt((int)wxBITMAP_TYPE_INVALID));
43138 PyDict_SetItemString(d,"BITMAP_TYPE_BMP", SWIG_FromInt((int)wxBITMAP_TYPE_BMP));
43139 PyDict_SetItemString(d,"BITMAP_TYPE_ICO", SWIG_FromInt((int)wxBITMAP_TYPE_ICO));
43140 PyDict_SetItemString(d,"BITMAP_TYPE_CUR", SWIG_FromInt((int)wxBITMAP_TYPE_CUR));
43141 PyDict_SetItemString(d,"BITMAP_TYPE_XBM", SWIG_FromInt((int)wxBITMAP_TYPE_XBM));
43142 PyDict_SetItemString(d,"BITMAP_TYPE_XBM_DATA", SWIG_FromInt((int)wxBITMAP_TYPE_XBM_DATA));
43143 PyDict_SetItemString(d,"BITMAP_TYPE_XPM", SWIG_FromInt((int)wxBITMAP_TYPE_XPM));
43144 PyDict_SetItemString(d,"BITMAP_TYPE_XPM_DATA", SWIG_FromInt((int)wxBITMAP_TYPE_XPM_DATA));
43145 PyDict_SetItemString(d,"BITMAP_TYPE_TIF", SWIG_FromInt((int)wxBITMAP_TYPE_TIF));
43146 PyDict_SetItemString(d,"BITMAP_TYPE_GIF", SWIG_FromInt((int)wxBITMAP_TYPE_GIF));
43147 PyDict_SetItemString(d,"BITMAP_TYPE_PNG", SWIG_FromInt((int)wxBITMAP_TYPE_PNG));
43148 PyDict_SetItemString(d,"BITMAP_TYPE_JPEG", SWIG_FromInt((int)wxBITMAP_TYPE_JPEG));
43149 PyDict_SetItemString(d,"BITMAP_TYPE_PNM", SWIG_FromInt((int)wxBITMAP_TYPE_PNM));
43150 PyDict_SetItemString(d,"BITMAP_TYPE_PCX", SWIG_FromInt((int)wxBITMAP_TYPE_PCX));
43151 PyDict_SetItemString(d,"BITMAP_TYPE_PICT", SWIG_FromInt((int)wxBITMAP_TYPE_PICT));
43152 PyDict_SetItemString(d,"BITMAP_TYPE_ICON", SWIG_FromInt((int)wxBITMAP_TYPE_ICON));
43153 PyDict_SetItemString(d,"BITMAP_TYPE_ANI", SWIG_FromInt((int)wxBITMAP_TYPE_ANI));
43154 PyDict_SetItemString(d,"BITMAP_TYPE_IFF", SWIG_FromInt((int)wxBITMAP_TYPE_IFF));
43155 PyDict_SetItemString(d,"BITMAP_TYPE_MACCURSOR", SWIG_FromInt((int)wxBITMAP_TYPE_MACCURSOR));
43156 PyDict_SetItemString(d,"BITMAP_TYPE_ANY", SWIG_FromInt((int)wxBITMAP_TYPE_ANY));
43157 PyDict_SetItemString(d,"CURSOR_NONE", SWIG_FromInt((int)wxCURSOR_NONE));
43158 PyDict_SetItemString(d,"CURSOR_ARROW", SWIG_FromInt((int)wxCURSOR_ARROW));
43159 PyDict_SetItemString(d,"CURSOR_RIGHT_ARROW", SWIG_FromInt((int)wxCURSOR_RIGHT_ARROW));
43160 PyDict_SetItemString(d,"CURSOR_BULLSEYE", SWIG_FromInt((int)wxCURSOR_BULLSEYE));
43161 PyDict_SetItemString(d,"CURSOR_CHAR", SWIG_FromInt((int)wxCURSOR_CHAR));
43162 PyDict_SetItemString(d,"CURSOR_CROSS", SWIG_FromInt((int)wxCURSOR_CROSS));
43163 PyDict_SetItemString(d,"CURSOR_HAND", SWIG_FromInt((int)wxCURSOR_HAND));
43164 PyDict_SetItemString(d,"CURSOR_IBEAM", SWIG_FromInt((int)wxCURSOR_IBEAM));
43165 PyDict_SetItemString(d,"CURSOR_LEFT_BUTTON", SWIG_FromInt((int)wxCURSOR_LEFT_BUTTON));
43166 PyDict_SetItemString(d,"CURSOR_MAGNIFIER", SWIG_FromInt((int)wxCURSOR_MAGNIFIER));
43167 PyDict_SetItemString(d,"CURSOR_MIDDLE_BUTTON", SWIG_FromInt((int)wxCURSOR_MIDDLE_BUTTON));
43168 PyDict_SetItemString(d,"CURSOR_NO_ENTRY", SWIG_FromInt((int)wxCURSOR_NO_ENTRY));
43169 PyDict_SetItemString(d,"CURSOR_PAINT_BRUSH", SWIG_FromInt((int)wxCURSOR_PAINT_BRUSH));
43170 PyDict_SetItemString(d,"CURSOR_PENCIL", SWIG_FromInt((int)wxCURSOR_PENCIL));
43171 PyDict_SetItemString(d,"CURSOR_POINT_LEFT", SWIG_FromInt((int)wxCURSOR_POINT_LEFT));
43172 PyDict_SetItemString(d,"CURSOR_POINT_RIGHT", SWIG_FromInt((int)wxCURSOR_POINT_RIGHT));
43173 PyDict_SetItemString(d,"CURSOR_QUESTION_ARROW", SWIG_FromInt((int)wxCURSOR_QUESTION_ARROW));
43174 PyDict_SetItemString(d,"CURSOR_RIGHT_BUTTON", SWIG_FromInt((int)wxCURSOR_RIGHT_BUTTON));
43175 PyDict_SetItemString(d,"CURSOR_SIZENESW", SWIG_FromInt((int)wxCURSOR_SIZENESW));
43176 PyDict_SetItemString(d,"CURSOR_SIZENS", SWIG_FromInt((int)wxCURSOR_SIZENS));
43177 PyDict_SetItemString(d,"CURSOR_SIZENWSE", SWIG_FromInt((int)wxCURSOR_SIZENWSE));
43178 PyDict_SetItemString(d,"CURSOR_SIZEWE", SWIG_FromInt((int)wxCURSOR_SIZEWE));
43179 PyDict_SetItemString(d,"CURSOR_SIZING", SWIG_FromInt((int)wxCURSOR_SIZING));
43180 PyDict_SetItemString(d,"CURSOR_SPRAYCAN", SWIG_FromInt((int)wxCURSOR_SPRAYCAN));
43181 PyDict_SetItemString(d,"CURSOR_WAIT", SWIG_FromInt((int)wxCURSOR_WAIT));
43182 PyDict_SetItemString(d,"CURSOR_WATCH", SWIG_FromInt((int)wxCURSOR_WATCH));
43183 PyDict_SetItemString(d,"CURSOR_BLANK", SWIG_FromInt((int)wxCURSOR_BLANK));
43184 PyDict_SetItemString(d,"CURSOR_DEFAULT", SWIG_FromInt((int)wxCURSOR_DEFAULT));
43185 PyDict_SetItemString(d,"CURSOR_COPY_ARROW", SWIG_FromInt((int)wxCURSOR_COPY_ARROW));
43186 PyDict_SetItemString(d,"CURSOR_ARROWWAIT", SWIG_FromInt((int)wxCURSOR_ARROWWAIT));
43187 PyDict_SetItemString(d,"CURSOR_MAX", SWIG_FromInt((int)wxCURSOR_MAX));
43188 SWIG_addvarlink(SWIG_globals,(char*)"DefaultPosition",_wrap_DefaultPosition_get, _wrap_DefaultPosition_set);
43189 SWIG_addvarlink(SWIG_globals,(char*)"DefaultSize",_wrap_DefaultSize_get, _wrap_DefaultSize_set);
43190 PyDict_SetItemString(d,"FromStart", SWIG_FromInt((int)wxFromStart));
43191 PyDict_SetItemString(d,"FromCurrent", SWIG_FromInt((int)wxFromCurrent));
43192 PyDict_SetItemString(d,"FromEnd", SWIG_FromInt((int)wxFromEnd));
43193
43194 wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream");
43195
43196
43197 wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler");
43198
43199 SWIG_addvarlink(SWIG_globals,(char*)"NullImage",_wrap_NullImage_get, _wrap_NullImage_set);
43200 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BMP_FORMAT",_wrap_IMAGE_OPTION_BMP_FORMAT_get, _wrap_IMAGE_OPTION_BMP_FORMAT_set);
43201 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set);
43202 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set);
43203 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTION",_wrap_IMAGE_OPTION_RESOLUTION_get, _wrap_IMAGE_OPTION_RESOLUTION_set);
43204 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONUNIT",_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get, _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set);
43205 PyDict_SetItemString(d,"IMAGE_RESOLUTION_INCHES", SWIG_FromInt((int)wxIMAGE_RESOLUTION_INCHES));
43206 PyDict_SetItemString(d,"IMAGE_RESOLUTION_CM", SWIG_FromInt((int)wxIMAGE_RESOLUTION_CM));
43207 PyDict_SetItemString(d,"BMP_24BPP", SWIG_FromInt((int)wxBMP_24BPP));
43208 PyDict_SetItemString(d,"BMP_8BPP", SWIG_FromInt((int)wxBMP_8BPP));
43209 PyDict_SetItemString(d,"BMP_8BPP_GREY", SWIG_FromInt((int)wxBMP_8BPP_GREY));
43210 PyDict_SetItemString(d,"BMP_8BPP_GRAY", SWIG_FromInt((int)wxBMP_8BPP_GRAY));
43211 PyDict_SetItemString(d,"BMP_8BPP_RED", SWIG_FromInt((int)wxBMP_8BPP_RED));
43212 PyDict_SetItemString(d,"BMP_8BPP_PALETTE", SWIG_FromInt((int)wxBMP_8BPP_PALETTE));
43213 PyDict_SetItemString(d,"BMP_4BPP", SWIG_FromInt((int)wxBMP_4BPP));
43214 PyDict_SetItemString(d,"BMP_1BPP", SWIG_FromInt((int)wxBMP_1BPP));
43215 PyDict_SetItemString(d,"BMP_1BPP_BW", SWIG_FromInt((int)wxBMP_1BPP_BW));
43216 PyDict_SetItemString(d,"EVENT_PROPAGATE_NONE", SWIG_FromInt((int)wxEVENT_PROPAGATE_NONE));
43217 PyDict_SetItemString(d,"EVENT_PROPAGATE_MAX", SWIG_FromInt((int)wxEVENT_PROPAGATE_MAX));
43218 PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL));
43219 PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST));
43220 PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST));
43221 PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED));
43222 PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED));
43223 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED));
43224 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED));
43225 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED));
43226 PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED));
43227 PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED));
43228 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED));
43229 PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED));
43230 PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED));
43231 PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED));
43232 PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED));
43233 PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED));
43234 PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED));
43235 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED));
43236 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER));
43237 PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN));
43238 PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP));
43239 PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN));
43240 PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP));
43241 PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN));
43242 PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP));
43243 PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION));
43244 PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW));
43245 PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW));
43246 PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK));
43247 PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK));
43248 PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK));
43249 PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS));
43250 PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS));
43251 PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS));
43252 PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL));
43253 PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN));
43254 PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP));
43255 PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN));
43256 PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP));
43257 PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN));
43258 PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP));
43259 PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION));
43260 PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW));
43261 PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW));
43262 PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK));
43263 PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK));
43264 PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK));
43265 PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR));
43266 PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK));
43267 PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY));
43268 PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN));
43269 PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP));
43270 PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY));
43271 PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR));
43272 PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP));
43273 PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM));
43274 PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP));
43275 PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN));
43276 PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP));
43277 PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN));
43278 PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK));
43279 PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE));
43280 PyDict_SetItemString(d, "wxEVT_SCROLL_ENDSCROLL", PyInt_FromLong(wxEVT_SCROLL_ENDSCROLL));
43281 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP));
43282 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM));
43283 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP));
43284 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN));
43285 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP));
43286 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN));
43287 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK));
43288 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE));
43289 PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE));
43290 PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE));
43291 PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW));
43292 PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION));
43293 PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION));
43294 PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP));
43295 PyDict_SetItemString(d, "wxEVT_POWER", PyInt_FromLong(wxEVT_POWER));
43296 PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE));
43297 PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE));
43298 PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY));
43299 PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW));
43300 PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE));
43301 PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE));
43302 PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED));
43303 PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT));
43304 PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND));
43305 PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT));
43306 PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON));
43307 PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN));
43308 PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE));
43309 PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT));
43310 PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU));
43311 PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED));
43312 PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED));
43313 PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED));
43314 PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE));
43315 PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED));
43316 PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES));
43317 PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM));
43318 PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM));
43319 PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM));
43320 PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG));
43321 PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE));
43322 PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI));
43323 PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING));
43324 PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING));
43325 PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK));
43326 PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK));
43327 PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK));
43328 PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK));
43329 PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS));
43330 PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS));
43331 PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER));
43332 PyDict_SetItemString(d,"MOUSE_BTN_ANY", SWIG_FromInt((int)wxMOUSE_BTN_ANY));
43333 PyDict_SetItemString(d,"MOUSE_BTN_NONE", SWIG_FromInt((int)wxMOUSE_BTN_NONE));
43334 PyDict_SetItemString(d,"MOUSE_BTN_LEFT", SWIG_FromInt((int)wxMOUSE_BTN_LEFT));
43335 PyDict_SetItemString(d,"MOUSE_BTN_MIDDLE", SWIG_FromInt((int)wxMOUSE_BTN_MIDDLE));
43336 PyDict_SetItemString(d,"MOUSE_BTN_RIGHT", SWIG_FromInt((int)wxMOUSE_BTN_RIGHT));
43337 PyDict_SetItemString(d,"UPDATE_UI_PROCESS_ALL", SWIG_FromInt((int)wxUPDATE_UI_PROCESS_ALL));
43338 PyDict_SetItemString(d,"UPDATE_UI_PROCESS_SPECIFIED", SWIG_FromInt((int)wxUPDATE_UI_PROCESS_SPECIFIED));
908b74cd
RD
43339 PyDict_SetItemString(d,"NavigationKeyEvent_IsForward", SWIG_FromInt((int)wxNavigationKeyEvent::IsForward));
43340 PyDict_SetItemString(d,"NavigationKeyEvent_WinChange", SWIG_FromInt((int)wxNavigationKeyEvent::WinChange));
d55e5bfc
RD
43341 PyDict_SetItemString(d,"IDLE_PROCESS_ALL", SWIG_FromInt((int)wxIDLE_PROCESS_ALL));
43342 PyDict_SetItemString(d,"IDLE_PROCESS_SPECIFIED", SWIG_FromInt((int)wxIDLE_PROCESS_SPECIFIED));
43343 PyDict_SetItemString(d,"PYAPP_ASSERT_SUPPRESS", SWIG_FromInt((int)wxPYAPP_ASSERT_SUPPRESS));
43344 PyDict_SetItemString(d,"PYAPP_ASSERT_EXCEPTION", SWIG_FromInt((int)wxPYAPP_ASSERT_EXCEPTION));
43345 PyDict_SetItemString(d,"PYAPP_ASSERT_DIALOG", SWIG_FromInt((int)wxPYAPP_ASSERT_DIALOG));
43346 PyDict_SetItemString(d,"PYAPP_ASSERT_LOG", SWIG_FromInt((int)wxPYAPP_ASSERT_LOG));
43347 PyDict_SetItemString(d,"PRINT_WINDOWS", SWIG_FromInt((int)wxPRINT_WINDOWS));
43348 PyDict_SetItemString(d,"PRINT_POSTSCRIPT", SWIG_FromInt((int)wxPRINT_POSTSCRIPT));
43349 SWIG_addvarlink(SWIG_globals,(char*)"NullAcceleratorTable",_wrap_NullAcceleratorTable_get, _wrap_NullAcceleratorTable_set);
43350 SWIG_addvarlink(SWIG_globals,(char*)"PanelNameStr",_wrap_PanelNameStr_get, _wrap_PanelNameStr_set);
43351 PyDict_SetItemString(d,"WINDOW_VARIANT_NORMAL", SWIG_FromInt((int)wxWINDOW_VARIANT_NORMAL));
43352 PyDict_SetItemString(d,"WINDOW_VARIANT_SMALL", SWIG_FromInt((int)wxWINDOW_VARIANT_SMALL));
43353 PyDict_SetItemString(d,"WINDOW_VARIANT_MINI", SWIG_FromInt((int)wxWINDOW_VARIANT_MINI));
43354 PyDict_SetItemString(d,"WINDOW_VARIANT_LARGE", SWIG_FromInt((int)wxWINDOW_VARIANT_LARGE));
43355 PyDict_SetItemString(d,"WINDOW_VARIANT_MAX", SWIG_FromInt((int)wxWINDOW_VARIANT_MAX));
43356 SWIG_addvarlink(SWIG_globals,(char*)"DefaultValidator",_wrap_DefaultValidator_get, _wrap_DefaultValidator_set);
43357 SWIG_addvarlink(SWIG_globals,(char*)"ControlNameStr",_wrap_ControlNameStr_get, _wrap_ControlNameStr_set);
43358 PyDict_SetItemString(d,"FLEX_GROWMODE_NONE", SWIG_FromInt((int)wxFLEX_GROWMODE_NONE));
43359 PyDict_SetItemString(d,"FLEX_GROWMODE_SPECIFIED", SWIG_FromInt((int)wxFLEX_GROWMODE_SPECIFIED));
43360 PyDict_SetItemString(d,"FLEX_GROWMODE_ALL", SWIG_FromInt((int)wxFLEX_GROWMODE_ALL));
43361 SWIG_addvarlink(SWIG_globals,(char*)"DefaultSpan",_wrap_DefaultSpan_get, _wrap_DefaultSpan_set);
43362 PyDict_SetItemString(d,"Left", SWIG_FromInt((int)wxLeft));
43363 PyDict_SetItemString(d,"Top", SWIG_FromInt((int)wxTop));
43364 PyDict_SetItemString(d,"Right", SWIG_FromInt((int)wxRight));
43365 PyDict_SetItemString(d,"Bottom", SWIG_FromInt((int)wxBottom));
43366 PyDict_SetItemString(d,"Width", SWIG_FromInt((int)wxWidth));
43367 PyDict_SetItemString(d,"Height", SWIG_FromInt((int)wxHeight));
43368 PyDict_SetItemString(d,"Centre", SWIG_FromInt((int)wxCentre));
43369 PyDict_SetItemString(d,"Center", SWIG_FromInt((int)wxCenter));
43370 PyDict_SetItemString(d,"CentreX", SWIG_FromInt((int)wxCentreX));
43371 PyDict_SetItemString(d,"CentreY", SWIG_FromInt((int)wxCentreY));
43372 PyDict_SetItemString(d,"Unconstrained", SWIG_FromInt((int)wxUnconstrained));
43373 PyDict_SetItemString(d,"AsIs", SWIG_FromInt((int)wxAsIs));
43374 PyDict_SetItemString(d,"PercentOf", SWIG_FromInt((int)wxPercentOf));
43375 PyDict_SetItemString(d,"Above", SWIG_FromInt((int)wxAbove));
43376 PyDict_SetItemString(d,"Below", SWIG_FromInt((int)wxBelow));
43377 PyDict_SetItemString(d,"LeftOf", SWIG_FromInt((int)wxLeftOf));
43378 PyDict_SetItemString(d,"RightOf", SWIG_FromInt((int)wxRightOf));
43379 PyDict_SetItemString(d,"SameAs", SWIG_FromInt((int)wxSameAs));
43380 PyDict_SetItemString(d,"Absolute", SWIG_FromInt((int)wxAbsolute));
43381
43382 // Initialize threading, some globals and such
43383 __wxPyPreStart(d);
43384
43385
43386 // Although these are defined in __version__ they need to be here too so
43387 // that an assert can be done to ensure that the wxPython and the wxWindows
43388 // versions match.
43389 PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION ));
43390 PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION ));
43391 PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER ));
43392
43393}
43394