]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/_core_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / msw / _core_wrap.cpp
CommitLineData
d55e5bfc
RD
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11#define SWIGPYTHON
12#define SWIG_NOINCLUDE
13
14#ifdef __cplusplus
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27};
28#endif
29
30
31#include "Python.h"
32
33/*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41#define SWIG_TypeRegister SWIG_Python_TypeRegister
42#define SWIG_TypeCheck SWIG_Python_TypeCheck
43#define SWIG_TypeCast SWIG_Python_TypeCast
44#define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45#define SWIG_TypeName SWIG_Python_TypeName
46#define SWIG_TypeQuery SWIG_Python_TypeQuery
47#define SWIG_TypeClientData SWIG_Python_TypeClientData
48#define SWIG_PackData SWIG_Python_PackData
49#define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52/***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62#include <string.h>
63
64#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65# if defined(_MSC_VER) || defined(__GNUC__)
66# if defined(STATIC_LINKED)
67# define SWIGEXPORT(a) a
68# define SWIGIMPORT(a) extern a
69# else
70# define SWIGEXPORT(a) __declspec(dllexport) a
71# define SWIGIMPORT(a) extern a
72# endif
73# else
74# if defined(__BORLANDC__)
75# define SWIGEXPORT(a) a _export
76# define SWIGIMPORT(a) a _export
77# else
78# define SWIGEXPORT(a) a
79# define SWIGIMPORT(a) a
80# endif
81# endif
82#else
83# define SWIGEXPORT(a) a
84# define SWIGIMPORT(a) a
85#endif
86
87#ifdef SWIG_GLOBAL
88# define SWIGRUNTIME(a) SWIGEXPORT(a)
89#else
90# define SWIGRUNTIME(a) static a
91#endif
92
93#ifdef __cplusplus
94extern "C" {
95#endif
96
97typedef void *(*swig_converter_func)(void *);
98typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108} swig_type_info;
109
110
111SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122#ifdef __cplusplus
123}
124#endif
125
126/***********************************************************************
127 * pyrun.swg for wxPython
128 *
129 * Include only the function prototypes and such from SWIG's pyrun.swg,
130 * but not the runtime functions themselves. This helps keep the
131 * wrapper files clean of unnecessary stuff that is in the libpy.c file
132 * anyway.
133 *
134 ************************************************************************/
135
136#include "Python.h"
137
138#ifdef __cplusplus
139extern "C" {
140#endif
141
142#define SWIG_PY_INT 1
143#define SWIG_PY_FLOAT 2
144#define SWIG_PY_STRING 3
145#define SWIG_PY_POINTER 4
146#define SWIG_PY_BINARY 5
147
148/* Flags for pointer conversion */
149
150#define SWIG_POINTER_EXCEPTION 0x1
151#define SWIG_POINTER_DISOWN 0x2
152
153/* Exception handling in wrappers */
154#define SWIG_fail goto fail
155
156/* Constant information structure */
157typedef struct swig_const_info {
158 int type;
159 char *name;
160 long lvalue;
161 double dvalue;
162 void *pvalue;
163 swig_type_info **ptype;
164} swig_const_info;
165
166/* Common SWIG API */
167#define SWIG_ConvertPtr(obj, pp, type, flags) \
168 SWIG_Python_ConvertPtr(obj, pp, type, flags)
169#define SWIG_NewPointerObj(p, type, flags) \
170 SWIG_Python_NewPointerObj(p, type, flags)
171#define SWIG_MustGetPtr(p, type, argnum, flags) \
172 SWIG_Python_MustGetPtr(p, type, argnum, flags)
173
174/* Python-specific SWIG API */
175#define SWIG_newvarlink() \
176 SWIG_Python_newvarlink()
177#define SWIG_addvarlink(p, name, get_attr, set_attr) \
178 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
179#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
180 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
181#define SWIG_NewPackedObj(ptr, sz, type) \
182 SWIG_Python_NewPackedObj(ptr, sz, type)
183#define SWIG_InstallConstants(d, constants) \
184 SWIG_Python_InstallConstants(d, constants)
185
186typedef double (*py_objasdbl_conv)(PyObject *obj);
187
188SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
189SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
190SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
191SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
192SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
193SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
194SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
195SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
196
197
198/* Contract support */
199
200#define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
201
202#ifdef __cplusplus
203}
204#endif
205
206
207/* -------- TYPES TABLE (BEGIN) -------- */
208
209#define SWIGTYPE_p_wxLayoutConstraints swig_types[0]
210#define SWIGTYPE_p_wxRealPoint swig_types[1]
211#define SWIGTYPE_p_wxSizerItem swig_types[2]
212#define SWIGTYPE_p_wxGBSizerItem swig_types[3]
213#define SWIGTYPE_p_wxScrollEvent swig_types[4]
214#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[5]
215#define SWIGTYPE_p_wxSizer swig_types[6]
216#define SWIGTYPE_p_wxBoxSizer swig_types[7]
217#define SWIGTYPE_p_wxStaticBoxSizer swig_types[8]
218#define SWIGTYPE_p_wxGridBagSizer swig_types[9]
219#define SWIGTYPE_p_wxAcceleratorEntry swig_types[10]
220#define SWIGTYPE_p_wxUpdateUIEvent swig_types[11]
221#define SWIGTYPE_p_wxMenu swig_types[12]
222#define SWIGTYPE_p_wxEvent swig_types[13]
223#define SWIGTYPE_p_wxGridSizer swig_types[14]
224#define SWIGTYPE_p_wxFlexGridSizer swig_types[15]
225#define SWIGTYPE_p_wxInitDialogEvent swig_types[16]
226#define SWIGTYPE_p_wxItemContainer swig_types[17]
227#define SWIGTYPE_p_wxNcPaintEvent swig_types[18]
228#define SWIGTYPE_p_wxPaintEvent swig_types[19]
229#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[20]
230#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[21]
231#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[22]
232#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[23]
233#define SWIGTYPE_p_wxControl swig_types[24]
234#define SWIGTYPE_p_wxFont swig_types[25]
235#define SWIGTYPE_p_wxMenuBarBase swig_types[26]
236#define SWIGTYPE_p_wxSetCursorEvent swig_types[27]
237#define SWIGTYPE_p_wxFSFile swig_types[28]
238#define SWIGTYPE_p_wxCaret swig_types[29]
239#define SWIGTYPE_p_wxRegion swig_types[30]
240#define SWIGTYPE_p_wxPoint2D swig_types[31]
241#define SWIGTYPE_p_int swig_types[32]
242#define SWIGTYPE_p_wxSize swig_types[33]
243#define SWIGTYPE_p_wxDC swig_types[34]
244#define SWIGTYPE_p_wxPySizer swig_types[35]
245#define SWIGTYPE_p_wxVisualAttributes swig_types[36]
246#define SWIGTYPE_p_wxNotifyEvent swig_types[37]
247#define SWIGTYPE_p_wxPyEvent swig_types[38]
248#define SWIGTYPE_p_wxPropagationDisabler swig_types[39]
249#define SWIGTYPE_p_wxAppTraits swig_types[40]
250#define SWIGTYPE_p_wxArrayString swig_types[41]
251#define SWIGTYPE_p_wxShowEvent swig_types[42]
252#define SWIGTYPE_p_wxToolTip swig_types[43]
253#define SWIGTYPE_p_wxMaximizeEvent swig_types[44]
254#define SWIGTYPE_p_wxIconizeEvent swig_types[45]
255#define SWIGTYPE_p_wxActivateEvent swig_types[46]
256#define SWIGTYPE_p_wxMoveEvent swig_types[47]
257#define SWIGTYPE_p_wxSizeEvent swig_types[48]
258#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[49]
259#define SWIGTYPE_p_wxWindowCreateEvent swig_types[50]
260#define SWIGTYPE_p_wxIdleEvent swig_types[51]
261#define SWIGTYPE_p_wxMenuItem swig_types[52]
262#define SWIGTYPE_p_wxStaticBox swig_types[53]
263#define SWIGTYPE_p_long swig_types[54]
264#define SWIGTYPE_p_wxTIFFHandler swig_types[55]
265#define SWIGTYPE_p_wxXPMHandler swig_types[56]
266#define SWIGTYPE_p_wxPNMHandler swig_types[57]
267#define SWIGTYPE_p_wxJPEGHandler swig_types[58]
268#define SWIGTYPE_p_wxPCXHandler swig_types[59]
269#define SWIGTYPE_p_wxGIFHandler swig_types[60]
270#define SWIGTYPE_p_wxPNGHandler swig_types[61]
271#define SWIGTYPE_p_wxANIHandler swig_types[62]
272#define SWIGTYPE_p_wxMemoryFSHandler swig_types[63]
273#define SWIGTYPE_p_wxEvtHandler swig_types[64]
274#define SWIGTYPE_p_wxCURHandler swig_types[65]
275#define SWIGTYPE_p_wxICOHandler swig_types[66]
276#define SWIGTYPE_p_wxBMPHandler swig_types[67]
277#define SWIGTYPE_p_wxImageHandler swig_types[68]
278#define SWIGTYPE_p_wxFileSystemHandler swig_types[69]
279#define SWIGTYPE_p_wxPyFileSystemHandler swig_types[70]
280#define SWIGTYPE_p_wxInternetFSHandler swig_types[71]
281#define SWIGTYPE_p_wxZipFSHandler swig_types[72]
282#define SWIGTYPE_p_wxRect swig_types[73]
283#define SWIGTYPE_p_wxGBSpan swig_types[74]
284#define SWIGTYPE_p_wxPropagateOnce swig_types[75]
285#define SWIGTYPE_p_wxAcceleratorTable swig_types[76]
286#define SWIGTYPE_p_char swig_types[77]
287#define SWIGTYPE_p_wxGBPosition swig_types[78]
288#define SWIGTYPE_p_wxImage swig_types[79]
289#define SWIGTYPE_p_wxFrame swig_types[80]
290#define SWIGTYPE_p_wxScrollWinEvent swig_types[81]
291#define SWIGTYPE_p_wxImageHistogram swig_types[82]
292#define SWIGTYPE_p_byte swig_types[83]
293#define SWIGTYPE_p_wxPoint swig_types[84]
294#define SWIGTYPE_p_wxCursor swig_types[85]
295#define SWIGTYPE_p_wxObject swig_types[86]
296#define SWIGTYPE_p_wxPyInputStream swig_types[87]
297#define SWIGTYPE_p_wxOutputStream swig_types[88]
298#define SWIGTYPE_p_wxInputStream swig_types[89]
299#define SWIGTYPE_p_wxDateTime swig_types[90]
300#define SWIGTYPE_p_wxKeyEvent swig_types[91]
301#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[92]
302#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[93]
303#define SWIGTYPE_p_wxWindow swig_types[94]
304#define SWIGTYPE_p_wxMenuBar swig_types[95]
305#define SWIGTYPE_p_wxFileSystem swig_types[96]
306#define SWIGTYPE_p_wxBitmap swig_types[97]
307#define SWIGTYPE_p_wxMenuEvent swig_types[98]
308#define SWIGTYPE_p_wxContextMenuEvent swig_types[99]
309#define SWIGTYPE_p_unsigned_char swig_types[100]
310#define SWIGTYPE_p_wxCloseEvent swig_types[101]
311#define SWIGTYPE_p_wxEraseEvent swig_types[102]
312#define SWIGTYPE_p_wxMouseEvent swig_types[103]
313#define SWIGTYPE_p_wxPyApp swig_types[104]
314#define SWIGTYPE_p_wxCommandEvent swig_types[105]
315#define SWIGTYPE_p_wxPyCommandEvent swig_types[106]
316#define SWIGTYPE_p_wxPyDropTarget swig_types[107]
317#define SWIGTYPE_p_wxChildFocusEvent swig_types[108]
318#define SWIGTYPE_p_wxFocusEvent swig_types[109]
319#define SWIGTYPE_p_wxDropFilesEvent swig_types[110]
320#define SWIGTYPE_p_wxControlWithItems swig_types[111]
321#define SWIGTYPE_p_wxColour swig_types[112]
322#define SWIGTYPE_p_wxValidator swig_types[113]
323#define SWIGTYPE_p_wxPyValidator swig_types[114]
324static swig_type_info *swig_types[116];
325
326/* -------- TYPES TABLE (END) -------- */
327
328
329/*-----------------------------------------------
330 @(target):= _core_.so
331 ------------------------------------------------*/
332#define SWIG_init init_core_
333
334#define SWIG_name "_core_"
335
336/* Auxiliar swig macros */
337
338#ifdef __cplusplus
339#define SWIGSTATICINLINE(a) static inline a
340#define SWIGSTATIC(a) static a
341#define swig_new_array(type, size) (new type[(size)])
342#define swig_delete_array(cptr) delete[] cptr
343#define swig_const_cast(type,a) const_cast<type>(a)
344#define swig_static_cast(type,a) static_cast<type>(a)
345#define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a)
346
347#ifdef HAVE_NUMERIC_CAST
348#define swig_numeric_cast(type,a) numeric_cast<type>(a)
349#else
350#define swig_numeric_cast(type,a) static_cast<type>(a)
351#endif
352
353#else /* C case */
354
355#define SWIGSTATICINLINE(a) static a
356#define SWIGSTATIC(a) static a
357#define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type)))
358#define swig_delete_array(cptr) free((char*)cptr)
359#define swig_const_cast(type,a) (type)(a)
360#define swig_static_cast(type,a) (type)(a)
361#define swig_reinterpret_cast(type,a) (type)(a)
362#define swig_numeric_cast(type,a) (type)(a)
363
364#endif /* __cplusplus */
365
366
367#define SWIG_FromSignedChar PyInt_FromLong
368#define SWIG_FromUnsignedChar PyInt_FromLong
369#define SWIG_FromShort PyInt_FromLong
370#define SWIG_FromUnsignedShort PyInt_FromLong
371#define SWIG_FromInt PyInt_FromLong
372#define SWIG_FromLong PyInt_FromLong
373#define SWIG_FromFloat PyFloat_FromDouble
374#define SWIG_FromDouble PyFloat_FromDouble
375#define SWIG_FromFloat PyFloat_FromDouble
376#define SWIG_FromDouble PyFloat_FromDouble
377
378
379#include "wx/wxPython/wxPython_int.h"
380#include "wx/wxPython/pyclasses.h"
381
382
383#ifndef wxPyUSE_EXPORT
384// Helper functions for dealing with SWIG objects and such. These are
385// located here so they know about the SWIG types and functions declared
386// in the wrapper code.
387
388#include <wx/hashmap.h>
389WX_DECLARE_STRING_HASH_MAP( swig_type_info*, wxPyTypeInfoHashMap );
390
391
392// Maintains a hashmap of className to swig_type_info pointers. Given the
393// name of a class either looks up the type info in the cache, or scans the
394// SWIG tables for it.
395extern PyObject* wxPyPtrTypeMap;
396static
397swig_type_info* wxPyFindSwigType(const wxChar* className) {
398
399 static wxPyTypeInfoHashMap* typeInfoCache = NULL;
400
401 if (typeInfoCache == NULL)
402 typeInfoCache = new wxPyTypeInfoHashMap;
403
404 wxString name(className);
405 swig_type_info* swigType = (*typeInfoCache)[name];
406
407 if (! swigType) {
408 // it wasn't in the cache, so look it up from SWIG
409 name.Append(wxT(" *"));
410 swigType = SWIG_Python_TypeQuery(name.mb_str());
411
412 // if it still wasn't found, try looking for a mapped name
413 if (!swigType) {
414 PyObject* item;
415 name = className;
416
417 if ((item = PyDict_GetItemString(wxPyPtrTypeMap,
418 (char*)(const char*)name.mbc_str())) != NULL) {
419 name = wxString(PyString_AsString(item), *wxConvCurrent);
420 name.Append(wxT(" *"));
421 swigType = SWIG_Python_TypeQuery(name.mb_str());
422 }
423 }
424 if (swigType) {
425 // and add it to the map if found
426 (*typeInfoCache)[className] = swigType;
427 }
428 }
429 return swigType;
430}
431
432
433// Check if a class name is a type known to SWIG
434bool wxPyCheckSwigType(const wxChar* className) {
435
436 swig_type_info* swigType = wxPyFindSwigType(className);
437 return swigType != NULL;
438}
439
440
441// Given a pointer to a C++ object and a class name, construct a Python proxy
442// object for it.
443PyObject* wxPyConstructObject(void* ptr,
444 const wxChar* className,
445 int setThisOwn) {
446
447 swig_type_info* swigType = wxPyFindSwigType(className);
448 wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConstructObject"));
449
450 return SWIG_Python_NewPointerObj(ptr, swigType, setThisOwn);
451}
452
453
454// Extract a pointer to the wrapped C++ object from a Python proxy object.
455// Ensures that the proxy object is of the specified (or derived) type. If
456// not able to perform the conversion then a Python exception is set and the
457// error should be handled properly in the caller. Returns True on success.
458bool wxPyConvertSwigPtr(PyObject* obj, void **ptr,
459 const wxChar* className) {
460
461 swig_type_info* swigType = wxPyFindSwigType(className);
462 wxCHECK_MSG(swigType != NULL, False, wxT("Unknown type in wxPyConvertSwigPtr"));
463
464 return SWIG_Python_ConvertPtr(obj, ptr, swigType, SWIG_POINTER_EXCEPTION) != -1;
465}
466
467
468// Make a SWIGified pointer object suitable for a .this attribute
469PyObject* wxPyMakeSwigPtr(void* ptr, const wxChar* className) {
470
471 PyObject* robj = NULL;
472
473 swig_type_info* swigType = wxPyFindSwigType(className);
474 wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConvertSwigPtr"));
475
476#ifdef SWIG_COBJECT_TYPES
477 robj = PyCObject_FromVoidPtrAndDesc((void *) ptr, (char *) swigType->name, NULL);
478#else
479 {
480 char result[1024];
481 char *r = result;
482 *(r++) = '_';
483 r = SWIG_Python_PackData(r, &ptr, sizeof(void *));
484 strcpy(r, swigType->name);
485 robj = PyString_FromString(result);
486 }
487#endif
488
489 return robj;
490}
491
492
493
494
495// Export a C API in a struct. Other modules will be able to load this from
496// the wx._core_ module and will then have safe access to these functions,
497// even if they are located in another shared library.
498static wxPyCoreAPI API = {
499
500 (p_SWIG_Python_TypeRegister_t)SWIG_Python_TypeRegister,
501 (p_SWIG_Python_TypeCheck_t)SWIG_Python_TypeCheck,
502 (p_SWIG_Python_TypeCast_t)SWIG_Python_TypeCast,
503 (p_SWIG_Python_TypeDynamicCast_t)SWIG_Python_TypeDynamicCast,
504 (p_SWIG_Python_TypeName_t)SWIG_Python_TypeName,
505 (p_SWIG_Python_TypeQuery_t)SWIG_Python_TypeQuery,
506 (p_SWIG_Python_TypeClientData_t)SWIG_Python_TypeClientData,
507 (p_SWIG_Python_newvarlink_t)SWIG_Python_newvarlink,
508 (p_SWIG_Python_addvarlink_t)SWIG_Python_addvarlink,
509 (p_SWIG_Python_ConvertPtr_t)SWIG_Python_ConvertPtr,
510 (p_SWIG_Python_ConvertPacked_t)SWIG_Python_ConvertPacked,
511 (p_SWIG_Python_PackData_t)SWIG_Python_PackData,
512 (p_SWIG_Python_UnpackData_t)SWIG_Python_UnpackData,
513 (p_SWIG_Python_NewPointerObj_t)SWIG_Python_NewPointerObj,
514 (p_SWIG_Python_NewPackedObj_t)SWIG_Python_NewPackedObj,
515 (p_SWIG_Python_InstallConstants_t)SWIG_Python_InstallConstants,
516 (p_SWIG_Python_MustGetPtr_t)SWIG_Python_MustGetPtr,
517
518 wxPyCheckSwigType,
519 wxPyConstructObject,
520 wxPyConvertSwigPtr,
521 wxPyMakeSwigPtr,
522
523 wxPyBeginAllowThreads,
524 wxPyEndAllowThreads,
525 wxPyBeginBlockThreads,
526 wxPyEndBlockThreads,
527
528 wxPy_ConvertList,
529
530 wxString_in_helper,
531 Py2wxString,
532 wx2PyString,
533
534 byte_LIST_helper,
535 int_LIST_helper,
536 long_LIST_helper,
537 string_LIST_helper,
538 wxPoint_LIST_helper,
539 wxBitmap_LIST_helper,
540 wxString_LIST_helper,
541 wxAcceleratorEntry_LIST_helper,
542
543 wxSize_helper,
544 wxPoint_helper,
545 wxRealPoint_helper,
546 wxRect_helper,
547 wxColour_helper,
548 wxPoint2D_helper,
549
550 wxPySimple_typecheck,
551 wxColour_typecheck,
552
553 wxPyCBH_setCallbackInfo,
554 wxPyCBH_findCallback,
555 wxPyCBH_callCallback,
556 wxPyCBH_callCallbackObj,
557 wxPyCBH_delete,
558
559 wxPyMake_wxObject,
560 wxPyMake_wxSizer,
561 wxPyPtrTypeMap_Add,
562 wxPy2int_seq_helper,
563 wxPy4int_seq_helper,
564 wxArrayString2PyList_helper,
565 wxArrayInt2PyList_helper,
566
567 wxPyClientData_dtor,
568 wxPyUserData_dtor,
569 wxPyOORClientData_dtor,
570
571 wxPyCBInputStream_create,
572
573 wxPyInstance_Check,
0439c23b
RD
574 wxPySwigInstance_Check,
575
576 wxPyCheckForApp
d55e5bfc
RD
577
578};
579
580#endif
581
582
583#if ! wxUSE_HOTKEY
584enum wxHotkeyModifier
585{
586 wxMOD_NONE = 0,
587 wxMOD_ALT = 1,
588 wxMOD_CONTROL = 2,
589 wxMOD_SHIFT = 4,
590 wxMOD_WIN = 8
591};
592#define wxEVT_HOTKEY 9999
593#endif
594
595 static const wxString wxPyEmptyString(wxEmptyString);
596wxString wxObject_GetClassName(wxObject *self){
597 return self->GetClassInfo()->GetClassName();
598 }
599void wxObject_Destroy(wxObject *self){
600 delete self;
601 }
602
603#ifndef __WXMAC__
604#define wxCURSOR_COPY_ARROW wxCURSOR_ARROW
605#endif
606
607
608#include <limits.h>
609
610
611SWIGSTATICINLINE(long)
612SWIG_CheckLongInRange(long value, const char* type,
613 long min_value, long max_value)
614{
615 if (!PyErr_Occurred()) {
616 if (value < min_value) {
617 PyObject *err =
618 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
619 value, type, min_value);
620
621 PyErr_SetObject(PyExc_OverflowError, err);
622 Py_DECREF(err);
623 } else if (value > max_value) {
624 PyObject *err =
625 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
626 value, type, max_value);
627 PyErr_SetObject(PyExc_OverflowError, err);
628 Py_DECREF(err);
629 }
630 }
631 return value;
632}
633
634
635SWIGSTATICINLINE(long)
636SWIG_AsLong(PyObject * obj)
637{
638 if (PyNumber_Check(obj))
639 return PyInt_AsLong(obj);
640 else {
641 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
642 obj->ob_type->tp_name);
643 PyErr_SetObject(PyExc_TypeError, errmsg);
644 Py_DECREF(errmsg);
645 return 0;
646 }
647}
648
649
650#if INT_MAX != LONG_MAX
651SWIGSTATICINLINE(int)
652SWIG_AsInt(PyObject *obj)
653{
654 return swig_numeric_cast(int,
655 SWIG_CheckLongInRange(SWIG_AsLong(obj),
656 "int", INT_MIN, INT_MAX));
657}
658#else
659#define SWIG_AsInt SWIG_AsLong
660#endif
661
662
663SWIGSTATICINLINE(int)
664SWIG_CheckInt(PyObject* obj)
665{
666 SWIG_AsInt(obj);
667 if (PyErr_Occurred()) {
668 PyErr_Clear();
669 return 0;
670 } else {
671 return 1;
672 }
673}
674
675PyObject *wxSize_Get(wxSize *self){
676 bool blocked = wxPyBeginBlockThreads();
677 PyObject* tup = PyTuple_New(2);
678 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
679 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
680 wxPyEndBlockThreads(blocked);
681 return tup;
682 }
683
684SWIGSTATICINLINE(double)
685SWIG_AsDouble(PyObject *obj)
686{
687 if (PyNumber_Check(obj))
688 return PyFloat_AsDouble(obj);
689 else {
690 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
691 obj->ob_type->tp_name);
692 PyErr_SetObject(PyExc_TypeError, errmsg);
693 Py_DECREF(errmsg);
694 return 0;
695 }
696}
697
698
699SWIGSTATICINLINE(int)
700SWIG_CheckDouble(PyObject* obj)
701{
702 SWIG_AsDouble(obj);
703 if (PyErr_Occurred()) {
704 PyErr_Clear();
705 return 0;
706 } else {
707 return 1;
708 }
709}
710
711void wxRealPoint_Set(wxRealPoint *self,double x,double y){
712 self->x = x;
713 self->y = y;
714 }
715PyObject *wxRealPoint_Get(wxRealPoint *self){
716 bool blocked = wxPyBeginBlockThreads();
717 PyObject* tup = PyTuple_New(2);
718 PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->x));
719 PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->y));
720 wxPyEndBlockThreads(blocked);
721 return tup;
722 }
723
724SWIGSTATICINLINE(int)
725SWIG_CheckLong(PyObject* obj)
726{
727 SWIG_AsLong(obj);
728 if (PyErr_Occurred()) {
729 PyErr_Clear();
730 return 0;
731 } else {
732 return 1;
733 }
734}
735
736void wxPoint_Set(wxPoint *self,long x,long y){
737 self->x = x;
738 self->y = y;
739 }
740PyObject *wxPoint_Get(wxPoint *self){
741 bool blocked = wxPyBeginBlockThreads();
742 PyObject* tup = PyTuple_New(2);
743 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
744 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
745 wxPyEndBlockThreads(blocked);
746 return tup;
747 }
748void wxRect_Set(wxRect *self,int x,int y,int width,int height){
749 self->x = x;
750 self->y = y;
751 self->width = width;
752 self->height = height;
753 }
754PyObject *wxRect_Get(wxRect *self){
755 bool blocked = wxPyBeginBlockThreads();
756 PyObject* tup = PyTuple_New(4);
757 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
758 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
759 PyTuple_SET_ITEM(tup, 2, PyInt_FromLong(self->width));
760 PyTuple_SET_ITEM(tup, 3, PyInt_FromLong(self->height));
761 wxPyEndBlockThreads(blocked);
762 return tup;
763 }
764
765 PyObject* wxIntersectRect(wxRect* r1, wxRect* r2) {
766 wxRegion reg1(*r1);
767 wxRegion reg2(*r2);
768 wxRect dest(0,0,0,0);
769 PyObject* obj;
770
771 reg1.Intersect(reg2);
772 dest = reg1.GetBox();
773
774 if (dest != wxRect(0,0,0,0)) {
775 bool blocked = wxPyBeginBlockThreads();
776 wxRect* newRect = new wxRect(dest);
777 obj = wxPyConstructObject((void*)newRect, wxT("wxRect"), True);
778 wxPyEndBlockThreads(blocked);
779 return obj;
780 }
781 Py_INCREF(Py_None);
782 return Py_None;
783 }
784
785
786static PyObject* t_output_helper(PyObject* target, PyObject* o) {
787 PyObject* o2;
788 PyObject* o3;
789
790 if (!target) {
791 target = o;
792 } else if (target == Py_None) {
793 Py_DECREF(Py_None);
794 target = o;
795 } else {
796 if (!PyTuple_Check(target)) {
797 o2 = target;
798 target = PyTuple_New(1);
799 PyTuple_SetItem(target, 0, o2);
800 }
801 o3 = PyTuple_New(1);
802 PyTuple_SetItem(o3, 0, o);
803
804 o2 = target;
805 target = PySequence_Concat(o2, o3);
806 Py_DECREF(o2);
807 Py_DECREF(o3);
808 }
809 return target;
810}
811
812void wxPoint2D_Set(wxPoint2D *self,double x,double y){
813 self->m_x = x;
814 self->m_y = y;
815 }
816PyObject *wxPoint2D_Get(wxPoint2D *self){
817 bool blocked = wxPyBeginBlockThreads();
818 PyObject* tup = PyTuple_New(2);
819 PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->m_x));
820 PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->m_y));
821 wxPyEndBlockThreads(blocked);
822 return tup;
823 }
824
825#include "wx/wxPython/pyistream.h"
826
827wxPyInputStream *new_wxPyInputStream(PyObject *p){
828 wxInputStream* wxis = wxPyCBInputStream::create(p);
829 if (wxis)
830 return new wxPyInputStream(wxis);
831 else
832 return NULL;
833 }
834
835SWIGSTATICINLINE(PyObject*)
836SWIG_FromChar(char c)
837{
838 return PyString_FromStringAndSize(&c,1);
839}
840
841
842SWIGSTATICINLINE(PyObject* )
843SWIG_FromUnsignedLong(unsigned long value)
844{
845 return (value > LONG_MAX) ?
846 PyLong_FromUnsignedLong(value)
847 : PyInt_FromLong(swig_numeric_cast(long,value));
848}
849
850
851/* returns '1' if the input is a raw char*, '0' if is a PyString */
852SWIGSTATIC(int)
853SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* size)
854{
855 static swig_type_info* pchar_info = 0;
856 int psize = 0;
857 if (!pchar_info) pchar_info = SWIG_TypeQuery("char *");
858
859 if (SWIG_ConvertPtr(obj, swig_reinterpret_cast(void **,cptr), pchar_info, 0) == -1) {
860 PyErr_Clear();
861 PyString_AsStringAndSize(obj, cptr, &psize);
862 if (PyErr_Occurred()) {
863 PyErr_Clear();
864 PyErr_SetString(PyExc_TypeError,"a string is expected");
865 }
866 if (size) *size = psize;
867 return 0;
868 } else {
869 if (size) *size = (*cptr) ? (strlen(*cptr) + 1) : 0;
870 return 1;
871 }
872}
873
874
875SWIGSTATIC(void)
876SWIG_AsCharArray(PyObject *obj, char* carray, size_t size)
877{
878 char* cptr; size_t csize;
879 SWIG_AsCharPtrAndSize(obj, &cptr, &csize);
880 if (PyErr_Occurred()) {
881 PyErr_Clear();
882 PyObject *err =
883 PyString_FromFormat("a char array of size %d is expected", size);
884 PyErr_SetObject(PyExc_TypeError, err);
885 Py_DECREF(err);
886 } else {
887 /* in C (but not in C++) you can do:
888
889 char x[5] = "hello";
890
891 ie, assing the array using an extra '0' char.
892 */
893#ifndef __cplusplus
894 if ((csize == size + 1) && !(cptr[csize-1])) --csize;
895#endif
896 if (csize > size) {
897 PyObject *err =
898 PyString_FromFormat("a char array of maximum size %d is expected",
899 size);
900 PyErr_SetObject(PyExc_TypeError, err);
901 Py_DECREF(err);
902 } else {
903 if (csize) memcpy(carray, cptr, csize);
904 if (csize < size) memset(carray + csize, 0, size - csize);
905 }
906 }
907}
908
909
910SWIGSTATICINLINE(char)
911SWIG_AsChar(PyObject *obj)
912{
913 char c = 0;
914 if (PyInt_Check(obj) || PyLong_Check(obj)) {
915 c = swig_numeric_cast(char,
916 SWIG_CheckLongInRange(SWIG_AsLong(obj),
917 "char", CHAR_MIN, CHAR_MAX));
918 } else {
919 SWIG_AsCharArray(obj, &c, 1);
920 if (PyErr_Occurred()) {
921 PyErr_Clear();
922 PyErr_SetString(PyExc_TypeError, "a char is expected");
923 }
924 }
925 return c;
926}
927
928
929SWIGSTATICINLINE(int)
930SWIG_CheckChar(PyObject* obj)
931{
932 SWIG_AsChar(obj);
933 if (PyErr_Occurred()) {
934 PyErr_Clear();
935 return 0;
936 } else {
937 return 1;
938 }
939}
940
941void wxOutputStream_write(wxOutputStream *self,PyObject *obj){
942 // We use only strings for the streams, not unicode
943 PyObject* str = PyObject_Str(obj);
944 if (! str) {
945 PyErr_SetString(PyExc_TypeError, "Unable to convert to string");
946 return;
947 }
948 self->Write(PyString_AS_STRING(str),
949 PyString_GET_SIZE(str));
950 Py_DECREF(str);
951 }
952
953#include "wx/wxPython/pyistream.h"
954
955
956class wxPyFileSystemHandler : public wxFileSystemHandler
957{
958public:
959 wxPyFileSystemHandler() : wxFileSystemHandler() {}
960
961 DEC_PYCALLBACK_BOOL_STRING_pure(CanOpen);
962 DEC_PYCALLBACK_FSF_FSSTRING_pure(OpenFile);
963 DEC_PYCALLBACK_STRING_STRINGINT_pure(FindFirst);
964 DEC_PYCALLBACK_STRING__pure(FindNext);
965
966 wxString GetProtocol(const wxString& location) {
967 return wxFileSystemHandler::GetProtocol(location);
968 }
969
970 wxString GetLeftLocation(const wxString& location) {
971 return wxFileSystemHandler::GetLeftLocation(location);
972 }
973
974 wxString GetAnchor(const wxString& location) {
975 return wxFileSystemHandler::GetAnchor(location);
976 }
977
978 wxString GetRightLocation(const wxString& location) {
979 return wxFileSystemHandler::GetRightLocation(location);
980 }
981
982 wxString GetMimeTypeFromExt(const wxString& location) {
983 return wxFileSystemHandler::GetMimeTypeFromExt(location);
984 }
985
986 PYPRIVATE;
987};
988
989
990IMP_PYCALLBACK_BOOL_STRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, CanOpen);
991IMP_PYCALLBACK_FSF_FSSTRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, OpenFile);
992IMP_PYCALLBACK_STRING_STRINGINT_pure(wxPyFileSystemHandler, wxFileSystemHandler, FindFirst);
993IMP_PYCALLBACK_STRING__pure(wxPyFileSystemHandler, wxFileSystemHandler, FindNext);
994
995
996SWIGSTATICINLINE(bool)
997SWIG_AsBool(PyObject *obj)
998{
999 return PyObject_IsTrue(obj) ? true : false;
1000}
1001
1002
1003SWIGSTATICINLINE(int)
1004SWIG_CheckBool(PyObject* obj)
1005{
1006 SWIG_AsBool(obj);
1007 if (PyErr_Occurred()) {
1008 PyErr_Clear();
1009 return 0;
1010 } else {
1011 return 1;
1012 }
1013}
1014
1015
1016 wxString wxFileSystem_URLToFileName(const wxString& url) {
1017 wxFileName fname = wxFileSystem::URLToFileName(url);
1018 return fname.GetFullPath();
1019 }
1020
1021
1022 void __wxMemoryFSHandler_AddFile_wxImage(const wxString& filename,
1023 wxImage& image,
1024 long type) {
1025 wxMemoryFSHandler::AddFile(filename, image, type);
1026 }
1027
1028 void __wxMemoryFSHandler_AddFile_wxBitmap(const wxString& filename,
1029 const wxBitmap& bitmap,
1030 long type) {
1031 wxMemoryFSHandler::AddFile(filename, bitmap, type);
1032 }
1033
1034 void __wxMemoryFSHandler_AddFile_Data(const wxString& filename,
1035 PyObject* data) {
1036 wxMemoryFSHandler::AddFile(filename,
1037 // TODO: Verify data type
1038 (void*)PyString_AsString(data),
1039 (size_t)PyString_Size(data));
1040 }
1041
1042
1043#include "wx/wxPython/pyistream.h"
1044
1045
1046SWIGSTATICINLINE(unsigned long)
1047SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type,
1048 unsigned long max_value)
1049{
1050 if (!PyErr_Occurred()) {
1051 if (value > max_value) {
1052 PyObject *err =
1053 PyString_FromFormat("value %ld is greater than '%s' minimum %ld",
1054 value, type, max_value);
1055 PyErr_SetObject(PyExc_OverflowError, err);
1056 Py_DECREF(err);
1057 }
1058 }
1059 return value;
1060}
1061
1062
1063SWIGSTATICINLINE(unsigned long)
1064SWIG_AsUnsignedLong(PyObject * obj)
1065{
1066 if (PyLong_Check(obj)) {
1067 return PyLong_AsUnsignedLong(obj);
1068 } else {
1069 long i = SWIG_AsLong(obj);
1070 if ( !PyErr_Occurred() && (i < 0)) {
1071 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
1072 }
1073 return i;
1074 }
1075}
1076
1077
1078SWIGSTATICINLINE(unsigned char)
1079SWIG_AsUnsignedChar(PyObject *obj)
1080{
1081 return swig_numeric_cast(unsigned char,
1082 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
1083 "unsigned char", UCHAR_MAX));
1084}
1085
1086
1087SWIGSTATICINLINE(int)
1088SWIG_CheckUnsignedChar(PyObject* obj)
1089{
1090 SWIG_AsUnsignedChar(obj);
1091 if (PyErr_Occurred()) {
1092 PyErr_Clear();
1093 return 0;
1094 } else {
1095 return 1;
1096 }
1097}
1098
c24da6d6 1099wxImage *new_wxImage(int width,int height,bool clear){
d55e5bfc
RD
1100 if (width > 0 && height > 0)
1101 return new wxImage(width, height, clear);
1102 else
1103 return new wxImage;
1104 }
d55e5bfc
RD
1105wxImage *new_wxImage(wxBitmap const &bitmap){
1106 return new wxImage(bitmap.ConvertToImage());
1107 }
1108wxImage *new_wxImage(int width,int height,unsigned char *data){
1109 // Copy the source data so the wxImage can clean it up later
1110 unsigned char* copy = (unsigned char*)malloc(width*height*3);
1111 if (copy == NULL) {
1112 PyErr_NoMemory();
1113 return NULL;
1114 }
1115 memcpy(copy, data, width*height*3);
1116 return new wxImage(width, height, copy, False);
1117 }
1118wxSize wxImage_GetSize(wxImage *self){
1119 wxSize size(self->GetWidth(), self->GetHeight());
1120 return size;
1121 }
1122PyObject *wxImage_GetData(wxImage *self){
1123 unsigned char* data = self->GetData();
1124 int len = self->GetWidth() * self->GetHeight() * 3;
1125 PyObject* rv;
1126 wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len));
1127 return rv;
1128 }
1129void wxImage_SetData(wxImage *self,PyObject *data){
1130 unsigned char* dataPtr;
1131
1132 if (! PyString_Check(data)) {
1133 PyErr_SetString(PyExc_TypeError, "Expected string object");
1134 return /* NULL */ ;
1135 }
1136
1137 size_t len = self->GetWidth() * self->GetHeight() * 3;
1138 dataPtr = (unsigned char*) malloc(len);
1139 wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) );
1140 self->SetData(dataPtr);
1141 // wxImage takes ownership of dataPtr...
1142 }
1143PyObject *wxImage_GetDataBuffer(wxImage *self){
1144 unsigned char* data = self->GetData();
1145 int len = self->GetWidth() * self->GetHeight() * 3;
1146 PyObject* rv;
1147 wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) );
1148 return rv;
1149 }
1150void wxImage_SetDataBuffer(wxImage *self,PyObject *data){
1151 unsigned char* buffer;
1152 int size;
1153
1154 bool blocked = wxPyBeginBlockThreads();
1155 if (!PyArg_Parse(data, "t#", &buffer, &size))
1156 goto done;
1157
1158 if (size != self->GetWidth() * self->GetHeight() * 3) {
1159 PyErr_SetString(PyExc_TypeError, "Incorrect buffer size");
1160 goto done;
1161 }
1162 self->SetData(buffer);
1163 done:
1164 wxPyEndBlockThreads(blocked);
1165 }
1166PyObject *wxImage_GetAlphaData(wxImage *self){
1167 unsigned char* data = self->GetAlpha();
1168 if (! data) {
1169 RETURN_NONE();
1170 } else {
1171 int len = self->GetWidth() * self->GetHeight();
1172 PyObject* rv;
1173 wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len) );
1174 return rv;
1175 }
1176 }
1177void wxImage_SetAlphaData(wxImage *self,PyObject *data){
1178 unsigned char* dataPtr;
1179
1180 if (! PyString_Check(data)) {
1181 PyErr_SetString(PyExc_TypeError, "Expected string object");
1182 return /* NULL */ ;
1183 }
1184
1185 size_t len = self->GetWidth() * self->GetHeight();
1186 dataPtr = (unsigned char*) malloc(len);
1187 wxPyBLOCK_THREADS( memcpy(dataPtr, PyString_AsString(data), len) );
1188 self->SetAlpha(dataPtr);
1189 // wxImage takes ownership of dataPtr...
1190 }
1191PyObject *wxImage_GetAlphaBuffer(wxImage *self){
1192 unsigned char* data = self->GetAlpha();
1193 int len = self->GetWidth() * self->GetHeight();
1194 PyObject* rv;
1195 wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) );
1196 return rv;
1197 }
1198void wxImage_SetAlphaBuffer(wxImage *self,PyObject *data){
1199 unsigned char* buffer;
1200 int size;
1201
1202 bool blocked = wxPyBeginBlockThreads();
1203 if (!PyArg_Parse(data, "t#", &buffer, &size))
1204 goto done;
1205
1206 if (size != self->GetWidth() * self->GetHeight()) {
1207 PyErr_SetString(PyExc_TypeError, "Incorrect buffer size");
1208 goto done;
1209 }
1210 self->SetAlpha(buffer);
1211 done:
1212 wxPyEndBlockThreads(blocked);
1213 }
1214
1215SWIGSTATICINLINE(int)
1216SWIG_CheckUnsignedLong(PyObject* obj)
1217{
1218 SWIG_AsUnsignedLong(obj);
1219 if (PyErr_Occurred()) {
1220 PyErr_Clear();
1221 return 0;
1222 } else {
1223 return 1;
1224 }
1225}
1226
1227wxBitmap wxImage_ConvertToBitmap(wxImage *self){
1228 wxBitmap bitmap(*self);
1229 return bitmap;
1230 }
1231wxBitmap wxImage_ConvertToMonoBitmap(wxImage *self,unsigned char red,unsigned char green,unsigned char blue){
1232 wxImage mono = self->ConvertToMono( red, green, blue );
1233 wxBitmap bitmap( mono, 1 );
1234 return bitmap;
1235 }
1236 static const wxString wxPyIMAGE_OPTION_BMP_FORMAT(wxIMAGE_OPTION_BMP_FORMAT);
1237 static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_X(wxIMAGE_OPTION_CUR_HOTSPOT_X);
1238 static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_Y(wxIMAGE_OPTION_CUR_HOTSPOT_Y);
1239 static const wxString wxPyIMAGE_OPTION_RESOLUTION(wxIMAGE_OPTION_RESOLUTION);
1240 static const wxString wxPyIMAGE_OPTION_RESOLUTIONUNIT(wxIMAGE_OPTION_RESOLUTIONUNIT);
1241void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject *func){
1242 if (PyCallable_Check(func)) {
1243 self->Connect(id, lastId, eventType,
1244 (wxObjectEventFunction) &wxPyCallback::EventThunker,
1245 new wxPyCallback(func));
1246 }
1247 else if (func == Py_None) {
1248 self->Disconnect(id, lastId, eventType,
1249 (wxObjectEventFunction)
1250 &wxPyCallback::EventThunker);
1251 }
1252 else {
1253 wxPyBLOCK_THREADS(
1254 PyErr_SetString(PyExc_TypeError, "Expected callable object or None."));
1255 }
1256 }
1257bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType){
1258 return self->Disconnect(id, lastId, eventType,
1259 (wxObjectEventFunction)
1260 &wxPyCallback::EventThunker);
1261 }
1262void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject *_self){
1263 if (_self && _self != Py_None) {
1264 self->SetClientObject(new wxPyOORClientData(_self));
1265 }
1266 else {
1267 wxPyOORClientData* data = (wxPyOORClientData*)self->GetClientObject();
1268 if (data) {
1269 self->SetClientObject(NULL); // This will delete it too
1270 }
1271 }
1272 }
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){
b0f7404b
RD
1606 if (!self->GetClientObject())
1607 self->SetClientObject(new wxPyOORClientData(_self));
d55e5bfc
RD
1608 }
1609void wxSizer_Add(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){
1610
1611 wxPyUserData* data = NULL;
1612 bool blocked = wxPyBeginBlockThreads();
1613 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False);
1614 if ( userData && (info.window || info.sizer || info.gotSize) )
1615 data = new wxPyUserData(userData);
1616 wxPyEndBlockThreads(blocked);
1617
1618 // Now call the real Add method if a valid item type was found
1619 if ( info.window )
1620 self->Add(info.window, proportion, flag, border, data);
1621 else if ( info.sizer )
1622 self->Add(info.sizer, proportion, flag, border, data);
1623 else if (info.gotSize)
1624 self->Add(info.size.GetWidth(), info.size.GetHeight(),
1625 proportion, flag, border, data);
1626 }
1627void wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion,int flag,int border,PyObject *userData){
1628
1629 wxPyUserData* data = NULL;
1630 bool blocked = wxPyBeginBlockThreads();
1631 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False);
1632 if ( userData && (info.window || info.sizer || info.gotSize) )
1633 data = new wxPyUserData(userData);
1634 wxPyEndBlockThreads(blocked);
1635
1636 // Now call the real Insert method if a valid item type was found
1637 if ( info.window )
1638 self->Insert(before, info.window, proportion, flag, border, data);
1639 else if ( info.sizer )
1640 self->Insert(before, info.sizer, proportion, flag, border, data);
1641 else if (info.gotSize)
1642 self->Insert(before, info.size.GetWidth(), info.size.GetHeight(),
1643 proportion, flag, border, data);
1644 }
1645void wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion,int flag,int border,PyObject *userData){
1646
1647 wxPyUserData* data = NULL;
1648 bool blocked = wxPyBeginBlockThreads();
1649 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False);
1650 if ( userData && (info.window || info.sizer || info.gotSize) )
1651 data = new wxPyUserData(userData);
1652 wxPyEndBlockThreads(blocked);
1653
1654 // Now call the real Prepend method if a valid item type was found
1655 if ( info.window )
1656 self->Prepend(info.window, proportion, flag, border, data);
1657 else if ( info.sizer )
1658 self->Prepend(info.sizer, proportion, flag, border, data);
1659 else if (info.gotSize)
1660 self->Prepend(info.size.GetWidth(), info.size.GetHeight(),
1661 proportion, flag, border, data);
1662 }
1663bool wxSizer_Remove(wxSizer *self,PyObject *item){
1664 bool blocked = wxPyBeginBlockThreads();
1665 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True);
1666 wxPyEndBlockThreads(blocked);
1667 if ( info.window )
1668 return self->Remove(info.window);
1669 else if ( info.sizer )
1670 return self->Remove(info.sizer);
1671 else if ( info.gotPos )
1672 return self->Remove(info.pos);
1673 else
1674 return False;
1675 }
1a6bba1e
RD
1676bool wxSizer_Detach(wxSizer *self,PyObject *item){
1677 bool blocked = wxPyBeginBlockThreads();
1678 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True);
1679 wxPyEndBlockThreads(blocked);
1680 if ( info.window )
1681 return self->Detach(info.window);
1682 else if ( info.sizer )
1683 return self->Detach(info.sizer);
1684 else if ( info.gotPos )
1685 return self->Detach(info.pos);
1686 else
1687 return False;
1688 }
d55e5bfc
RD
1689void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize const &size){
1690 bool blocked = wxPyBeginBlockThreads();
1691 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True);
1692 wxPyEndBlockThreads(blocked);
1693 if ( info.window )
1694 self->SetItemMinSize(info.window, size);
1695 else if ( info.sizer )
1696 self->SetItemMinSize(info.sizer, size);
1697 else if ( info.gotPos )
1698 self->SetItemMinSize(info.pos, size);
1699 }
1700PyObject *wxSizer_GetChildren(wxSizer *self){
1701 wxSizerItemList& list = self->GetChildren();
1702 return wxPy_ConvertList(&list);
1703 }
1704void wxSizer_Show(wxSizer *self,PyObject *item,bool show){
c24da6d6 1705 bool blocked = wxPyBeginBlockThreads();
248ed943 1706 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, True);
c24da6d6 1707 wxPyEndBlockThreads(blocked);
d55e5bfc
RD
1708 if ( info.window )
1709 self->Show(info.window, show);
1710 else if ( info.sizer )
1711 self->Show(info.sizer, show);
248ed943
RD
1712 else if ( info.gotPos )
1713 self->Show(info.pos, show);
d55e5bfc
RD
1714 }
1715bool wxSizer_IsShown(wxSizer *self,PyObject *item){
c24da6d6 1716 bool blocked = wxPyBeginBlockThreads();
d55e5bfc 1717 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, False, False);
c24da6d6 1718 wxPyEndBlockThreads(blocked);
d55e5bfc
RD
1719 if ( info.window )
1720 return self->IsShown(info.window);
1721 else if ( info.sizer )
1722 return self->IsShown(info.sizer);
248ed943
RD
1723 else if ( info.gotPos )
1724 return self->IsShown(info.pos);
d55e5bfc
RD
1725 else
1726 return False;
1727 }
1728
1729// See pyclasses.h
1730IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes);
1731IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin);
1732IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer);
1733
1734
1735
1736
1737bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj)
1738{
1739 if (source == Py_None) {
1740 **obj = wxGBPosition(-1,-1);
1741 return True;
1742 }
1743 return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition"));
1744}
1745
1746bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj)
1747{
1748 if (source == Py_None) {
1749 **obj = wxGBSpan(-1,-1);
1750 return True;
1751 }
1752 return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan"));
1753}
1754
1755
1756void wxGBPosition_Set(wxGBPosition *self,int row,int col){
1757 self->SetRow(row);
1758 self->SetCol(col);
1759 }
1760PyObject *wxGBPosition_Get(wxGBPosition *self){
1761 bool blocked = wxPyBeginBlockThreads();
1762 PyObject* tup = PyTuple_New(2);
1763 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow()));
1764 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol()));
1765 wxPyEndBlockThreads(blocked);
1766 return tup;
1767 }
1768void wxGBSpan_Set(wxGBSpan *self,int rowspan,int colspan){
1769 self->SetRowspan(rowspan);
1770 self->SetColspan(colspan);
1771 }
1772PyObject *wxGBSpan_Get(wxGBSpan *self){
1773 bool blocked = wxPyBeginBlockThreads();
1774 PyObject* tup = PyTuple_New(2);
1775 PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRowspan()));
1776 PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetColspan()));
1777 wxPyEndBlockThreads(blocked);
1778 return tup;
1779 }
248ed943
RD
1780wxGBSizerItem *new_wxGBSizerItem(wxWindow *window,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){
1781 wxPyUserData* data = NULL;
1782 if ( userData ) {
1783 bool blocked = wxPyBeginBlockThreads();
1784 data = new wxPyUserData(userData);
1785 wxPyEndBlockThreads(blocked);
1786 }
1787 return new wxGBSizerItem(window, pos, span, flag, border, data);
1788 }
1789wxGBSizerItem *new_wxGBSizerItem(wxSizer *sizer,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){
1790 wxPyUserData* data = NULL;
1791 if ( userData ) {
1792 bool blocked = wxPyBeginBlockThreads();
1793 data = new wxPyUserData(userData);
1794 wxPyEndBlockThreads(blocked);
1795 }
1796 return new wxGBSizerItem(sizer, pos, span, flag, border, data);
1797 }
1798wxGBSizerItem *new_wxGBSizerItem(int width,int height,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){
1799 wxPyUserData* data = NULL;
1800 if ( userData ) {
1801 bool blocked = wxPyBeginBlockThreads();
1802 data = new wxPyUserData(userData);
1803 wxPyEndBlockThreads(blocked);
1804 }
1805 return new wxGBSizerItem(width, height, pos, span, flag, border, data);
1806 }
1807wxGBPosition wxGBSizerItem_GetEndPos(wxGBSizerItem *self){
1808 int row, col;
1809 self->GetEndPos(row, col);
1810 return wxGBPosition(row, col);
1811 }
d55e5bfc
RD
1812bool wxGridBagSizer_Add(wxGridBagSizer *self,PyObject *item,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData){
1813
1814 wxPyUserData* data = NULL;
1815 bool blocked = wxPyBeginBlockThreads();
1816 wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, True, False);
1817 if ( userData && (info.window || info.sizer || info.gotSize) )
1818 data = new wxPyUserData(userData);
1819 wxPyEndBlockThreads(blocked);
1820
1821 // Now call the real Add method if a valid item type was found
1822 if ( info.window )
1823 return self->Add(info.window, pos, span, flag, border, data);
1824 else if ( info.sizer )
1825 return self->Add(info.sizer, pos, span, flag, border, data);
1826 else if (info.gotSize)
1827 return self->Add(info.size.GetWidth(), info.size.GetHeight(),
1828 pos, span, flag, border, data);
1829 return False;
1830 }
1831
1832
1833#ifdef __cplusplus
1834extern "C" {
1835#endif
1836static int _wrap_EmptyString_set(PyObject *_val) {
1837 PyErr_SetString(PyExc_TypeError,"Variable EmptyString is read-only.");
1838 return 1;
1839}
1840
1841
1842static PyObject *_wrap_EmptyString_get() {
1843 PyObject *pyobj;
1844
1845 {
1846#if wxUSE_UNICODE
1847 pyobj = PyUnicode_FromWideChar((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len());
1848#else
1849 pyobj = PyString_FromStringAndSize((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len());
1850#endif
1851 }
1852 return pyobj;
1853}
1854
1855
1856static PyObject *_wrap_Object_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) {
1857 PyObject *resultobj;
1858 wxObject *arg1 = (wxObject *) 0 ;
1859 wxString result;
1860 PyObject * obj0 = 0 ;
1861 char *kwnames[] = {
1862 (char *) "self", NULL
1863 };
1864
1865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_GetClassName",kwnames,&obj0)) goto fail;
1866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject,
1867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1868 {
1869 PyThreadState* __tstate = wxPyBeginAllowThreads();
1870 result = wxObject_GetClassName(arg1);
1871
1872 wxPyEndAllowThreads(__tstate);
1873 if (PyErr_Occurred()) SWIG_fail;
1874 }
1875 {
1876#if wxUSE_UNICODE
1877 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
1878#else
1879 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
1880#endif
1881 }
1882 return resultobj;
1883 fail:
1884 return NULL;
1885}
1886
1887
1888static PyObject *_wrap_Object_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
1889 PyObject *resultobj;
1890 wxObject *arg1 = (wxObject *) 0 ;
1891 PyObject * obj0 = 0 ;
1892 char *kwnames[] = {
1893 (char *) "self", NULL
1894 };
1895
1896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Object_Destroy",kwnames,&obj0)) goto fail;
1897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxObject,
1898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1899 {
1900 PyThreadState* __tstate = wxPyBeginAllowThreads();
1901 wxObject_Destroy(arg1);
1902
1903 wxPyEndAllowThreads(__tstate);
1904 if (PyErr_Occurred()) SWIG_fail;
1905 }
1906 Py_INCREF(Py_None); resultobj = Py_None;
1907 return resultobj;
1908 fail:
1909 return NULL;
1910}
1911
1912
1913static PyObject * Object_swigregister(PyObject *self, PyObject *args) {
1914 PyObject *obj;
1915 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1916 SWIG_TypeClientData(SWIGTYPE_p_wxObject, obj);
1917 Py_INCREF(obj);
1918 return Py_BuildValue((char *)"");
1919}
1920static PyObject *_wrap_Size_width_set(PyObject *self, PyObject *args, PyObject *kwargs) {
1921 PyObject *resultobj;
1922 wxSize *arg1 = (wxSize *) 0 ;
1923 int arg2 ;
1924 PyObject * obj0 = 0 ;
1925 PyObject * obj1 = 0 ;
1926 char *kwnames[] = {
1927 (char *) "self",(char *) "x", NULL
1928 };
1929
1930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_width_set",kwnames,&obj0,&obj1)) goto fail;
1931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
1932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1933 arg2 = (int) SWIG_AsInt(obj1);
1934 if (PyErr_Occurred()) SWIG_fail;
1935 if (arg1) (arg1)->x = arg2;
1936
1937 Py_INCREF(Py_None); resultobj = Py_None;
1938 return resultobj;
1939 fail:
1940 return NULL;
1941}
1942
1943
1944static PyObject *_wrap_Size_width_get(PyObject *self, PyObject *args, PyObject *kwargs) {
1945 PyObject *resultobj;
1946 wxSize *arg1 = (wxSize *) 0 ;
1947 int result;
1948 PyObject * obj0 = 0 ;
1949 char *kwnames[] = {
1950 (char *) "self", NULL
1951 };
1952
1953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_width_get",kwnames,&obj0)) goto fail;
1954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
1955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1956 result = (int) ((arg1)->x);
1957
1958 resultobj = SWIG_FromInt((int)result);
1959 return resultobj;
1960 fail:
1961 return NULL;
1962}
1963
1964
1965static PyObject *_wrap_Size_height_set(PyObject *self, PyObject *args, PyObject *kwargs) {
1966 PyObject *resultobj;
1967 wxSize *arg1 = (wxSize *) 0 ;
1968 int arg2 ;
1969 PyObject * obj0 = 0 ;
1970 PyObject * obj1 = 0 ;
1971 char *kwnames[] = {
1972 (char *) "self",(char *) "y", NULL
1973 };
1974
1975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_height_set",kwnames,&obj0,&obj1)) goto fail;
1976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
1977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1978 arg2 = (int) SWIG_AsInt(obj1);
1979 if (PyErr_Occurred()) SWIG_fail;
1980 if (arg1) (arg1)->y = arg2;
1981
1982 Py_INCREF(Py_None); resultobj = Py_None;
1983 return resultobj;
1984 fail:
1985 return NULL;
1986}
1987
1988
1989static PyObject *_wrap_Size_height_get(PyObject *self, PyObject *args, PyObject *kwargs) {
1990 PyObject *resultobj;
1991 wxSize *arg1 = (wxSize *) 0 ;
1992 int result;
1993 PyObject * obj0 = 0 ;
1994 char *kwnames[] = {
1995 (char *) "self", NULL
1996 };
1997
1998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_height_get",kwnames,&obj0)) goto fail;
1999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2001 result = (int) ((arg1)->y);
2002
2003 resultobj = SWIG_FromInt((int)result);
2004 return resultobj;
2005 fail:
2006 return NULL;
2007}
2008
2009
2010static PyObject *_wrap_new_Size(PyObject *self, PyObject *args, PyObject *kwargs) {
2011 PyObject *resultobj;
2012 int arg1 = (int) 0 ;
2013 int arg2 = (int) 0 ;
2014 wxSize *result;
2015 PyObject * obj0 = 0 ;
2016 PyObject * obj1 = 0 ;
2017 char *kwnames[] = {
2018 (char *) "w",(char *) "h", NULL
2019 };
2020
2021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Size",kwnames,&obj0,&obj1)) goto fail;
2022 if (obj0) {
2023 arg1 = (int) SWIG_AsInt(obj0);
2024 if (PyErr_Occurred()) SWIG_fail;
2025 }
2026 if (obj1) {
2027 arg2 = (int) SWIG_AsInt(obj1);
2028 if (PyErr_Occurred()) SWIG_fail;
2029 }
2030 {
2031 PyThreadState* __tstate = wxPyBeginAllowThreads();
2032 result = (wxSize *)new wxSize(arg1,arg2);
2033
2034 wxPyEndAllowThreads(__tstate);
2035 if (PyErr_Occurred()) SWIG_fail;
2036 }
2037 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 1);
2038 return resultobj;
2039 fail:
2040 return NULL;
2041}
2042
2043
2044static PyObject *_wrap_delete_Size(PyObject *self, PyObject *args, PyObject *kwargs) {
2045 PyObject *resultobj;
2046 wxSize *arg1 = (wxSize *) 0 ;
2047 PyObject * obj0 = 0 ;
2048 char *kwnames[] = {
2049 (char *) "self", NULL
2050 };
2051
2052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Size",kwnames,&obj0)) goto fail;
2053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2055 {
2056 PyThreadState* __tstate = wxPyBeginAllowThreads();
2057 delete arg1;
2058
2059 wxPyEndAllowThreads(__tstate);
2060 if (PyErr_Occurred()) SWIG_fail;
2061 }
2062 Py_INCREF(Py_None); resultobj = Py_None;
2063 return resultobj;
2064 fail:
2065 return NULL;
2066}
2067
2068
2069static PyObject *_wrap_Size___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
2070 PyObject *resultobj;
2071 wxSize *arg1 = (wxSize *) 0 ;
2072 wxSize *arg2 = 0 ;
2073 bool result;
2074 wxSize temp2 ;
2075 PyObject * obj0 = 0 ;
2076 PyObject * obj1 = 0 ;
2077 char *kwnames[] = {
2078 (char *) "self",(char *) "sz", NULL
2079 };
2080
2081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___eq__",kwnames,&obj0,&obj1)) goto fail;
2082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2084 {
2085 arg2 = &temp2;
2086 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2087 }
2088 {
2089 PyThreadState* __tstate = wxPyBeginAllowThreads();
2090 result = (bool)(arg1)->operator ==((wxSize const &)*arg2);
2091
2092 wxPyEndAllowThreads(__tstate);
2093 if (PyErr_Occurred()) SWIG_fail;
2094 }
2095 {
2096 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2097 }
2098 return resultobj;
2099 fail:
2100 return NULL;
2101}
2102
2103
2104static PyObject *_wrap_Size___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
2105 PyObject *resultobj;
2106 wxSize *arg1 = (wxSize *) 0 ;
2107 wxSize *arg2 = 0 ;
2108 bool result;
2109 wxSize temp2 ;
2110 PyObject * obj0 = 0 ;
2111 PyObject * obj1 = 0 ;
2112 char *kwnames[] = {
2113 (char *) "self",(char *) "sz", NULL
2114 };
2115
2116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___ne__",kwnames,&obj0,&obj1)) goto fail;
2117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2119 {
2120 arg2 = &temp2;
2121 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2122 }
2123 {
2124 PyThreadState* __tstate = wxPyBeginAllowThreads();
2125 result = (bool)(arg1)->operator !=((wxSize const &)*arg2);
2126
2127 wxPyEndAllowThreads(__tstate);
2128 if (PyErr_Occurred()) SWIG_fail;
2129 }
2130 {
2131 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2132 }
2133 return resultobj;
2134 fail:
2135 return NULL;
2136}
2137
2138
2139static PyObject *_wrap_Size___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
2140 PyObject *resultobj;
2141 wxSize *arg1 = (wxSize *) 0 ;
2142 wxSize *arg2 = 0 ;
2143 wxSize result;
2144 wxSize temp2 ;
2145 PyObject * obj0 = 0 ;
2146 PyObject * obj1 = 0 ;
2147 char *kwnames[] = {
2148 (char *) "self",(char *) "sz", NULL
2149 };
2150
2151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___add__",kwnames,&obj0,&obj1)) goto fail;
2152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2154 {
2155 arg2 = &temp2;
2156 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2157 }
2158 {
2159 PyThreadState* __tstate = wxPyBeginAllowThreads();
2160 result = (arg1)->operator +((wxSize const &)*arg2);
2161
2162 wxPyEndAllowThreads(__tstate);
2163 if (PyErr_Occurred()) SWIG_fail;
2164 }
2165 {
2166 wxSize * resultptr;
2167 resultptr = new wxSize((wxSize &) result);
2168 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
2169 }
2170 return resultobj;
2171 fail:
2172 return NULL;
2173}
2174
2175
2176static PyObject *_wrap_Size___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
2177 PyObject *resultobj;
2178 wxSize *arg1 = (wxSize *) 0 ;
2179 wxSize *arg2 = 0 ;
2180 wxSize result;
2181 wxSize temp2 ;
2182 PyObject * obj0 = 0 ;
2183 PyObject * obj1 = 0 ;
2184 char *kwnames[] = {
2185 (char *) "self",(char *) "sz", NULL
2186 };
2187
2188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___sub__",kwnames,&obj0,&obj1)) goto fail;
2189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2191 {
2192 arg2 = &temp2;
2193 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2194 }
2195 {
2196 PyThreadState* __tstate = wxPyBeginAllowThreads();
2197 result = (arg1)->operator -((wxSize const &)*arg2);
2198
2199 wxPyEndAllowThreads(__tstate);
2200 if (PyErr_Occurred()) SWIG_fail;
2201 }
2202 {
2203 wxSize * resultptr;
2204 resultptr = new wxSize((wxSize &) result);
2205 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
2206 }
2207 return resultobj;
2208 fail:
2209 return NULL;
2210}
2211
2212
2213static PyObject *_wrap_Size_IncTo(PyObject *self, PyObject *args, PyObject *kwargs) {
2214 PyObject *resultobj;
2215 wxSize *arg1 = (wxSize *) 0 ;
2216 wxSize *arg2 = 0 ;
2217 wxSize temp2 ;
2218 PyObject * obj0 = 0 ;
2219 PyObject * obj1 = 0 ;
2220 char *kwnames[] = {
2221 (char *) "self",(char *) "sz", NULL
2222 };
2223
2224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_IncTo",kwnames,&obj0,&obj1)) goto fail;
2225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2227 {
2228 arg2 = &temp2;
2229 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2230 }
2231 {
2232 PyThreadState* __tstate = wxPyBeginAllowThreads();
2233 (arg1)->IncTo((wxSize const &)*arg2);
2234
2235 wxPyEndAllowThreads(__tstate);
2236 if (PyErr_Occurred()) SWIG_fail;
2237 }
2238 Py_INCREF(Py_None); resultobj = Py_None;
2239 return resultobj;
2240 fail:
2241 return NULL;
2242}
2243
2244
2245static PyObject *_wrap_Size_DecTo(PyObject *self, PyObject *args, PyObject *kwargs) {
2246 PyObject *resultobj;
2247 wxSize *arg1 = (wxSize *) 0 ;
2248 wxSize *arg2 = 0 ;
2249 wxSize temp2 ;
2250 PyObject * obj0 = 0 ;
2251 PyObject * obj1 = 0 ;
2252 char *kwnames[] = {
2253 (char *) "self",(char *) "sz", NULL
2254 };
2255
2256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_DecTo",kwnames,&obj0,&obj1)) goto fail;
2257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2259 {
2260 arg2 = &temp2;
2261 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2262 }
2263 {
2264 PyThreadState* __tstate = wxPyBeginAllowThreads();
2265 (arg1)->DecTo((wxSize const &)*arg2);
2266
2267 wxPyEndAllowThreads(__tstate);
2268 if (PyErr_Occurred()) SWIG_fail;
2269 }
2270 Py_INCREF(Py_None); resultobj = Py_None;
2271 return resultobj;
2272 fail:
2273 return NULL;
2274}
2275
2276
2277static PyObject *_wrap_Size_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
2278 PyObject *resultobj;
2279 wxSize *arg1 = (wxSize *) 0 ;
2280 int arg2 ;
2281 int arg3 ;
2282 PyObject * obj0 = 0 ;
2283 PyObject * obj1 = 0 ;
2284 PyObject * obj2 = 0 ;
2285 char *kwnames[] = {
2286 (char *) "self",(char *) "w",(char *) "h", NULL
2287 };
2288
2289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
2290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2292 arg2 = (int) SWIG_AsInt(obj1);
2293 if (PyErr_Occurred()) SWIG_fail;
2294 arg3 = (int) SWIG_AsInt(obj2);
2295 if (PyErr_Occurred()) SWIG_fail;
2296 {
2297 PyThreadState* __tstate = wxPyBeginAllowThreads();
2298 (arg1)->Set(arg2,arg3);
2299
2300 wxPyEndAllowThreads(__tstate);
2301 if (PyErr_Occurred()) SWIG_fail;
2302 }
2303 Py_INCREF(Py_None); resultobj = Py_None;
2304 return resultobj;
2305 fail:
2306 return NULL;
2307}
2308
2309
2310static PyObject *_wrap_Size_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2311 PyObject *resultobj;
2312 wxSize *arg1 = (wxSize *) 0 ;
2313 int arg2 ;
2314 PyObject * obj0 = 0 ;
2315 PyObject * obj1 = 0 ;
2316 char *kwnames[] = {
2317 (char *) "self",(char *) "w", NULL
2318 };
2319
2320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2323 arg2 = (int) SWIG_AsInt(obj1);
2324 if (PyErr_Occurred()) SWIG_fail;
2325 {
2326 PyThreadState* __tstate = wxPyBeginAllowThreads();
2327 (arg1)->SetWidth(arg2);
2328
2329 wxPyEndAllowThreads(__tstate);
2330 if (PyErr_Occurred()) SWIG_fail;
2331 }
2332 Py_INCREF(Py_None); resultobj = Py_None;
2333 return resultobj;
2334 fail:
2335 return NULL;
2336}
2337
2338
2339static PyObject *_wrap_Size_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2340 PyObject *resultobj;
2341 wxSize *arg1 = (wxSize *) 0 ;
2342 int arg2 ;
2343 PyObject * obj0 = 0 ;
2344 PyObject * obj1 = 0 ;
2345 char *kwnames[] = {
2346 (char *) "self",(char *) "h", NULL
2347 };
2348
2349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetHeight",kwnames,&obj0,&obj1)) goto fail;
2350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2352 arg2 = (int) SWIG_AsInt(obj1);
2353 if (PyErr_Occurred()) SWIG_fail;
2354 {
2355 PyThreadState* __tstate = wxPyBeginAllowThreads();
2356 (arg1)->SetHeight(arg2);
2357
2358 wxPyEndAllowThreads(__tstate);
2359 if (PyErr_Occurred()) SWIG_fail;
2360 }
2361 Py_INCREF(Py_None); resultobj = Py_None;
2362 return resultobj;
2363 fail:
2364 return NULL;
2365}
2366
2367
2368static PyObject *_wrap_Size_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2369 PyObject *resultobj;
2370 wxSize *arg1 = (wxSize *) 0 ;
2371 int result;
2372 PyObject * obj0 = 0 ;
2373 char *kwnames[] = {
2374 (char *) "self", NULL
2375 };
2376
2377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetWidth",kwnames,&obj0)) goto fail;
2378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2380 {
2381 PyThreadState* __tstate = wxPyBeginAllowThreads();
2382 result = (int)((wxSize const *)arg1)->GetWidth();
2383
2384 wxPyEndAllowThreads(__tstate);
2385 if (PyErr_Occurred()) SWIG_fail;
2386 }
2387 resultobj = SWIG_FromInt((int)result);
2388 return resultobj;
2389 fail:
2390 return NULL;
2391}
2392
2393
2394static PyObject *_wrap_Size_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2395 PyObject *resultobj;
2396 wxSize *arg1 = (wxSize *) 0 ;
2397 int result;
2398 PyObject * obj0 = 0 ;
2399 char *kwnames[] = {
2400 (char *) "self", NULL
2401 };
2402
2403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_GetHeight",kwnames,&obj0)) goto fail;
2404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2406 {
2407 PyThreadState* __tstate = wxPyBeginAllowThreads();
2408 result = (int)((wxSize const *)arg1)->GetHeight();
2409
2410 wxPyEndAllowThreads(__tstate);
2411 if (PyErr_Occurred()) SWIG_fail;
2412 }
2413 resultobj = SWIG_FromInt((int)result);
2414 return resultobj;
2415 fail:
2416 return NULL;
2417}
2418
2419
2420static PyObject *_wrap_Size_IsFullySpecified(PyObject *self, PyObject *args, PyObject *kwargs) {
2421 PyObject *resultobj;
2422 wxSize *arg1 = (wxSize *) 0 ;
2423 bool result;
2424 PyObject * obj0 = 0 ;
2425 char *kwnames[] = {
2426 (char *) "self", NULL
2427 };
2428
2429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_IsFullySpecified",kwnames,&obj0)) goto fail;
2430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2432 {
2433 PyThreadState* __tstate = wxPyBeginAllowThreads();
2434 result = (bool)((wxSize const *)arg1)->IsFullySpecified();
2435
2436 wxPyEndAllowThreads(__tstate);
2437 if (PyErr_Occurred()) SWIG_fail;
2438 }
2439 {
2440 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2441 }
2442 return resultobj;
2443 fail:
2444 return NULL;
2445}
2446
2447
2448static PyObject *_wrap_Size_SetDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
2449 PyObject *resultobj;
2450 wxSize *arg1 = (wxSize *) 0 ;
2451 wxSize *arg2 = 0 ;
2452 wxSize temp2 ;
2453 PyObject * obj0 = 0 ;
2454 PyObject * obj1 = 0 ;
2455 char *kwnames[] = {
2456 (char *) "self",(char *) "size", NULL
2457 };
2458
2459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetDefaults",kwnames,&obj0,&obj1)) goto fail;
2460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2462 {
2463 arg2 = &temp2;
2464 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
2465 }
2466 {
2467 PyThreadState* __tstate = wxPyBeginAllowThreads();
2468 (arg1)->SetDefaults((wxSize const &)*arg2);
2469
2470 wxPyEndAllowThreads(__tstate);
2471 if (PyErr_Occurred()) SWIG_fail;
2472 }
2473 Py_INCREF(Py_None); resultobj = Py_None;
2474 return resultobj;
2475 fail:
2476 return NULL;
2477}
2478
2479
2480static PyObject *_wrap_Size_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
2481 PyObject *resultobj;
2482 wxSize *arg1 = (wxSize *) 0 ;
2483 PyObject *result;
2484 PyObject * obj0 = 0 ;
2485 char *kwnames[] = {
2486 (char *) "self", NULL
2487 };
2488
2489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Size_Get",kwnames,&obj0)) goto fail;
2490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSize,
2491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2492 {
2493 PyThreadState* __tstate = wxPyBeginAllowThreads();
2494 result = (PyObject *)wxSize_Get(arg1);
2495
2496 wxPyEndAllowThreads(__tstate);
2497 if (PyErr_Occurred()) SWIG_fail;
2498 }
2499 resultobj = result;
2500 return resultobj;
2501 fail:
2502 return NULL;
2503}
2504
2505
2506static PyObject * Size_swigregister(PyObject *self, PyObject *args) {
2507 PyObject *obj;
2508 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2509 SWIG_TypeClientData(SWIGTYPE_p_wxSize, obj);
2510 Py_INCREF(obj);
2511 return Py_BuildValue((char *)"");
2512}
2513static PyObject *_wrap_RealPoint_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
2514 PyObject *resultobj;
2515 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2516 double arg2 ;
2517 PyObject * obj0 = 0 ;
2518 PyObject * obj1 = 0 ;
2519 char *kwnames[] = {
2520 (char *) "self",(char *) "x", NULL
2521 };
2522
2523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_x_set",kwnames,&obj0,&obj1)) goto fail;
2524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2526 arg2 = (double) SWIG_AsDouble(obj1);
2527 if (PyErr_Occurred()) SWIG_fail;
2528 if (arg1) (arg1)->x = arg2;
2529
2530 Py_INCREF(Py_None); resultobj = Py_None;
2531 return resultobj;
2532 fail:
2533 return NULL;
2534}
2535
2536
2537static PyObject *_wrap_RealPoint_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
2538 PyObject *resultobj;
2539 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2540 double result;
2541 PyObject * obj0 = 0 ;
2542 char *kwnames[] = {
2543 (char *) "self", NULL
2544 };
2545
2546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_x_get",kwnames,&obj0)) goto fail;
2547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2549 result = (double) ((arg1)->x);
2550
2551 resultobj = SWIG_FromDouble((double)result);
2552 return resultobj;
2553 fail:
2554 return NULL;
2555}
2556
2557
2558static PyObject *_wrap_RealPoint_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
2559 PyObject *resultobj;
2560 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2561 double arg2 ;
2562 PyObject * obj0 = 0 ;
2563 PyObject * obj1 = 0 ;
2564 char *kwnames[] = {
2565 (char *) "self",(char *) "y", NULL
2566 };
2567
2568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint_y_set",kwnames,&obj0,&obj1)) goto fail;
2569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2571 arg2 = (double) SWIG_AsDouble(obj1);
2572 if (PyErr_Occurred()) SWIG_fail;
2573 if (arg1) (arg1)->y = arg2;
2574
2575 Py_INCREF(Py_None); resultobj = Py_None;
2576 return resultobj;
2577 fail:
2578 return NULL;
2579}
2580
2581
2582static PyObject *_wrap_RealPoint_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
2583 PyObject *resultobj;
2584 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2585 double result;
2586 PyObject * obj0 = 0 ;
2587 char *kwnames[] = {
2588 (char *) "self", NULL
2589 };
2590
2591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_y_get",kwnames,&obj0)) goto fail;
2592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2594 result = (double) ((arg1)->y);
2595
2596 resultobj = SWIG_FromDouble((double)result);
2597 return resultobj;
2598 fail:
2599 return NULL;
2600}
2601
2602
2603static PyObject *_wrap_new_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
2604 PyObject *resultobj;
2605 double arg1 = (double) 0.0 ;
2606 double arg2 = (double) 0.0 ;
2607 wxRealPoint *result;
2608 PyObject * obj0 = 0 ;
2609 PyObject * obj1 = 0 ;
2610 char *kwnames[] = {
2611 (char *) "x",(char *) "y", NULL
2612 };
2613
2614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RealPoint",kwnames,&obj0,&obj1)) goto fail;
2615 if (obj0) {
2616 arg1 = (double) SWIG_AsDouble(obj0);
2617 if (PyErr_Occurred()) SWIG_fail;
2618 }
2619 if (obj1) {
2620 arg2 = (double) SWIG_AsDouble(obj1);
2621 if (PyErr_Occurred()) SWIG_fail;
2622 }
2623 {
2624 PyThreadState* __tstate = wxPyBeginAllowThreads();
2625 result = (wxRealPoint *)new wxRealPoint(arg1,arg2);
2626
2627 wxPyEndAllowThreads(__tstate);
2628 if (PyErr_Occurred()) SWIG_fail;
2629 }
2630 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRealPoint, 1);
2631 return resultobj;
2632 fail:
2633 return NULL;
2634}
2635
2636
2637static PyObject *_wrap_delete_RealPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
2638 PyObject *resultobj;
2639 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2640 PyObject * obj0 = 0 ;
2641 char *kwnames[] = {
2642 (char *) "self", NULL
2643 };
2644
2645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RealPoint",kwnames,&obj0)) goto fail;
2646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2648 {
2649 PyThreadState* __tstate = wxPyBeginAllowThreads();
2650 delete arg1;
2651
2652 wxPyEndAllowThreads(__tstate);
2653 if (PyErr_Occurred()) SWIG_fail;
2654 }
2655 Py_INCREF(Py_None); resultobj = Py_None;
2656 return resultobj;
2657 fail:
2658 return NULL;
2659}
2660
2661
2662static PyObject *_wrap_RealPoint___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
2663 PyObject *resultobj;
2664 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2665 wxRealPoint *arg2 = 0 ;
2666 bool result;
2667 wxRealPoint temp2 ;
2668 PyObject * obj0 = 0 ;
2669 PyObject * obj1 = 0 ;
2670 char *kwnames[] = {
2671 (char *) "self",(char *) "pt", NULL
2672 };
2673
2674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___eq__",kwnames,&obj0,&obj1)) goto fail;
2675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2677 {
2678 arg2 = &temp2;
2679 if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail;
2680 }
2681 {
2682 PyThreadState* __tstate = wxPyBeginAllowThreads();
2683 result = (bool)(arg1)->operator ==((wxRealPoint const &)*arg2);
2684
2685 wxPyEndAllowThreads(__tstate);
2686 if (PyErr_Occurred()) SWIG_fail;
2687 }
2688 {
2689 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2690 }
2691 return resultobj;
2692 fail:
2693 return NULL;
2694}
2695
2696
2697static PyObject *_wrap_RealPoint___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
2698 PyObject *resultobj;
2699 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2700 wxRealPoint *arg2 = 0 ;
2701 bool result;
2702 wxRealPoint temp2 ;
2703 PyObject * obj0 = 0 ;
2704 PyObject * obj1 = 0 ;
2705 char *kwnames[] = {
2706 (char *) "self",(char *) "pt", NULL
2707 };
2708
2709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___ne__",kwnames,&obj0,&obj1)) goto fail;
2710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2712 {
2713 arg2 = &temp2;
2714 if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail;
2715 }
2716 {
2717 PyThreadState* __tstate = wxPyBeginAllowThreads();
2718 result = (bool)(arg1)->operator !=((wxRealPoint const &)*arg2);
2719
2720 wxPyEndAllowThreads(__tstate);
2721 if (PyErr_Occurred()) SWIG_fail;
2722 }
2723 {
2724 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2725 }
2726 return resultobj;
2727 fail:
2728 return NULL;
2729}
2730
2731
2732static PyObject *_wrap_RealPoint___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
2733 PyObject *resultobj;
2734 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2735 wxRealPoint *arg2 = 0 ;
2736 wxRealPoint result;
2737 wxRealPoint temp2 ;
2738 PyObject * obj0 = 0 ;
2739 PyObject * obj1 = 0 ;
2740 char *kwnames[] = {
2741 (char *) "self",(char *) "pt", NULL
2742 };
2743
2744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___add__",kwnames,&obj0,&obj1)) goto fail;
2745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2747 {
2748 arg2 = &temp2;
2749 if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail;
2750 }
2751 {
2752 PyThreadState* __tstate = wxPyBeginAllowThreads();
2753 result = (arg1)->operator +((wxRealPoint const &)*arg2);
2754
2755 wxPyEndAllowThreads(__tstate);
2756 if (PyErr_Occurred()) SWIG_fail;
2757 }
2758 {
2759 wxRealPoint * resultptr;
2760 resultptr = new wxRealPoint((wxRealPoint &) result);
2761 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1);
2762 }
2763 return resultobj;
2764 fail:
2765 return NULL;
2766}
2767
2768
2769static PyObject *_wrap_RealPoint___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
2770 PyObject *resultobj;
2771 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2772 wxRealPoint *arg2 = 0 ;
2773 wxRealPoint result;
2774 wxRealPoint temp2 ;
2775 PyObject * obj0 = 0 ;
2776 PyObject * obj1 = 0 ;
2777 char *kwnames[] = {
2778 (char *) "self",(char *) "pt", NULL
2779 };
2780
2781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___sub__",kwnames,&obj0,&obj1)) goto fail;
2782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2784 {
2785 arg2 = &temp2;
2786 if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail;
2787 }
2788 {
2789 PyThreadState* __tstate = wxPyBeginAllowThreads();
2790 result = (arg1)->operator -((wxRealPoint const &)*arg2);
2791
2792 wxPyEndAllowThreads(__tstate);
2793 if (PyErr_Occurred()) SWIG_fail;
2794 }
2795 {
2796 wxRealPoint * resultptr;
2797 resultptr = new wxRealPoint((wxRealPoint &) result);
2798 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRealPoint, 1);
2799 }
2800 return resultobj;
2801 fail:
2802 return NULL;
2803}
2804
2805
2806static PyObject *_wrap_RealPoint_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
2807 PyObject *resultobj;
2808 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2809 double arg2 ;
2810 double arg3 ;
2811 PyObject * obj0 = 0 ;
2812 PyObject * obj1 = 0 ;
2813 PyObject * obj2 = 0 ;
2814 char *kwnames[] = {
2815 (char *) "self",(char *) "x",(char *) "y", NULL
2816 };
2817
2818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RealPoint_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
2819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2821 arg2 = (double) SWIG_AsDouble(obj1);
2822 if (PyErr_Occurred()) SWIG_fail;
2823 arg3 = (double) SWIG_AsDouble(obj2);
2824 if (PyErr_Occurred()) SWIG_fail;
2825 {
2826 PyThreadState* __tstate = wxPyBeginAllowThreads();
2827 wxRealPoint_Set(arg1,arg2,arg3);
2828
2829 wxPyEndAllowThreads(__tstate);
2830 if (PyErr_Occurred()) SWIG_fail;
2831 }
2832 Py_INCREF(Py_None); resultobj = Py_None;
2833 return resultobj;
2834 fail:
2835 return NULL;
2836}
2837
2838
2839static PyObject *_wrap_RealPoint_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
2840 PyObject *resultobj;
2841 wxRealPoint *arg1 = (wxRealPoint *) 0 ;
2842 PyObject *result;
2843 PyObject * obj0 = 0 ;
2844 char *kwnames[] = {
2845 (char *) "self", NULL
2846 };
2847
2848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RealPoint_Get",kwnames,&obj0)) goto fail;
2849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRealPoint,
2850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2851 {
2852 PyThreadState* __tstate = wxPyBeginAllowThreads();
2853 result = (PyObject *)wxRealPoint_Get(arg1);
2854
2855 wxPyEndAllowThreads(__tstate);
2856 if (PyErr_Occurred()) SWIG_fail;
2857 }
2858 resultobj = result;
2859 return resultobj;
2860 fail:
2861 return NULL;
2862}
2863
2864
2865static PyObject * RealPoint_swigregister(PyObject *self, PyObject *args) {
2866 PyObject *obj;
2867 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2868 SWIG_TypeClientData(SWIGTYPE_p_wxRealPoint, obj);
2869 Py_INCREF(obj);
2870 return Py_BuildValue((char *)"");
2871}
2872static PyObject *_wrap_Point_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
2873 PyObject *resultobj;
2874 wxPoint *arg1 = (wxPoint *) 0 ;
2875 int arg2 ;
2876 PyObject * obj0 = 0 ;
2877 PyObject * obj1 = 0 ;
2878 char *kwnames[] = {
2879 (char *) "self",(char *) "x", NULL
2880 };
2881
2882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_x_set",kwnames,&obj0,&obj1)) goto fail;
2883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
2884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2885 arg2 = (int) SWIG_AsInt(obj1);
2886 if (PyErr_Occurred()) SWIG_fail;
2887 if (arg1) (arg1)->x = arg2;
2888
2889 Py_INCREF(Py_None); resultobj = Py_None;
2890 return resultobj;
2891 fail:
2892 return NULL;
2893}
2894
2895
2896static PyObject *_wrap_Point_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
2897 PyObject *resultobj;
2898 wxPoint *arg1 = (wxPoint *) 0 ;
2899 int result;
2900 PyObject * obj0 = 0 ;
2901 char *kwnames[] = {
2902 (char *) "self", NULL
2903 };
2904
2905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_x_get",kwnames,&obj0)) goto fail;
2906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
2907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2908 result = (int) ((arg1)->x);
2909
2910 resultobj = SWIG_FromInt((int)result);
2911 return resultobj;
2912 fail:
2913 return NULL;
2914}
2915
2916
2917static PyObject *_wrap_Point_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
2918 PyObject *resultobj;
2919 wxPoint *arg1 = (wxPoint *) 0 ;
2920 int arg2 ;
2921 PyObject * obj0 = 0 ;
2922 PyObject * obj1 = 0 ;
2923 char *kwnames[] = {
2924 (char *) "self",(char *) "y", NULL
2925 };
2926
2927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point_y_set",kwnames,&obj0,&obj1)) goto fail;
2928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
2929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2930 arg2 = (int) SWIG_AsInt(obj1);
2931 if (PyErr_Occurred()) SWIG_fail;
2932 if (arg1) (arg1)->y = arg2;
2933
2934 Py_INCREF(Py_None); resultobj = Py_None;
2935 return resultobj;
2936 fail:
2937 return NULL;
2938}
2939
2940
2941static PyObject *_wrap_Point_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
2942 PyObject *resultobj;
2943 wxPoint *arg1 = (wxPoint *) 0 ;
2944 int result;
2945 PyObject * obj0 = 0 ;
2946 char *kwnames[] = {
2947 (char *) "self", NULL
2948 };
2949
2950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_y_get",kwnames,&obj0)) goto fail;
2951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
2952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2953 result = (int) ((arg1)->y);
2954
2955 resultobj = SWIG_FromInt((int)result);
2956 return resultobj;
2957 fail:
2958 return NULL;
2959}
2960
2961
2962static PyObject *_wrap_new_Point(PyObject *self, PyObject *args, PyObject *kwargs) {
2963 PyObject *resultobj;
2964 int arg1 = (int) 0 ;
2965 int arg2 = (int) 0 ;
2966 wxPoint *result;
2967 PyObject * obj0 = 0 ;
2968 PyObject * obj1 = 0 ;
2969 char *kwnames[] = {
2970 (char *) "x",(char *) "y", NULL
2971 };
2972
2973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point",kwnames,&obj0,&obj1)) goto fail;
2974 if (obj0) {
2975 arg1 = (int) SWIG_AsInt(obj0);
2976 if (PyErr_Occurred()) SWIG_fail;
2977 }
2978 if (obj1) {
2979 arg2 = (int) SWIG_AsInt(obj1);
2980 if (PyErr_Occurred()) SWIG_fail;
2981 }
2982 {
2983 PyThreadState* __tstate = wxPyBeginAllowThreads();
2984 result = (wxPoint *)new wxPoint(arg1,arg2);
2985
2986 wxPyEndAllowThreads(__tstate);
2987 if (PyErr_Occurred()) SWIG_fail;
2988 }
2989 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 1);
2990 return resultobj;
2991 fail:
2992 return NULL;
2993}
2994
2995
2996static PyObject *_wrap_delete_Point(PyObject *self, PyObject *args, PyObject *kwargs) {
2997 PyObject *resultobj;
2998 wxPoint *arg1 = (wxPoint *) 0 ;
2999 PyObject * obj0 = 0 ;
3000 char *kwnames[] = {
3001 (char *) "self", NULL
3002 };
3003
3004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Point",kwnames,&obj0)) goto fail;
3005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3007 {
3008 PyThreadState* __tstate = wxPyBeginAllowThreads();
3009 delete arg1;
3010
3011 wxPyEndAllowThreads(__tstate);
3012 if (PyErr_Occurred()) SWIG_fail;
3013 }
3014 Py_INCREF(Py_None); resultobj = Py_None;
3015 return resultobj;
3016 fail:
3017 return NULL;
3018}
3019
3020
3021static PyObject *_wrap_Point___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
3022 PyObject *resultobj;
3023 wxPoint *arg1 = (wxPoint *) 0 ;
3024 wxPoint *arg2 = 0 ;
3025 bool result;
3026 wxPoint temp2 ;
3027 PyObject * obj0 = 0 ;
3028 PyObject * obj1 = 0 ;
3029 char *kwnames[] = {
3030 (char *) "self",(char *) "pt", NULL
3031 };
3032
3033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___eq__",kwnames,&obj0,&obj1)) goto fail;
3034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3036 {
3037 arg2 = &temp2;
3038 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3039 }
3040 {
3041 PyThreadState* __tstate = wxPyBeginAllowThreads();
3042 result = (bool)(arg1)->operator ==((wxPoint const &)*arg2);
3043
3044 wxPyEndAllowThreads(__tstate);
3045 if (PyErr_Occurred()) SWIG_fail;
3046 }
3047 {
3048 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3049 }
3050 return resultobj;
3051 fail:
3052 return NULL;
3053}
3054
3055
3056static PyObject *_wrap_Point___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
3057 PyObject *resultobj;
3058 wxPoint *arg1 = (wxPoint *) 0 ;
3059 wxPoint *arg2 = 0 ;
3060 bool result;
3061 wxPoint temp2 ;
3062 PyObject * obj0 = 0 ;
3063 PyObject * obj1 = 0 ;
3064 char *kwnames[] = {
3065 (char *) "self",(char *) "pt", NULL
3066 };
3067
3068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___ne__",kwnames,&obj0,&obj1)) goto fail;
3069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3071 {
3072 arg2 = &temp2;
3073 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3074 }
3075 {
3076 PyThreadState* __tstate = wxPyBeginAllowThreads();
3077 result = (bool)(arg1)->operator !=((wxPoint const &)*arg2);
3078
3079 wxPyEndAllowThreads(__tstate);
3080 if (PyErr_Occurred()) SWIG_fail;
3081 }
3082 {
3083 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3084 }
3085 return resultobj;
3086 fail:
3087 return NULL;
3088}
3089
3090
3091static PyObject *_wrap_Point___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
3092 PyObject *resultobj;
3093 wxPoint *arg1 = (wxPoint *) 0 ;
3094 wxPoint *arg2 = 0 ;
3095 wxPoint result;
3096 wxPoint temp2 ;
3097 PyObject * obj0 = 0 ;
3098 PyObject * obj1 = 0 ;
3099 char *kwnames[] = {
3100 (char *) "self",(char *) "pt", NULL
3101 };
3102
3103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___add__",kwnames,&obj0,&obj1)) goto fail;
3104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3106 {
3107 arg2 = &temp2;
3108 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3109 }
3110 {
3111 PyThreadState* __tstate = wxPyBeginAllowThreads();
3112 result = (arg1)->operator +((wxPoint const &)*arg2);
3113
3114 wxPyEndAllowThreads(__tstate);
3115 if (PyErr_Occurred()) SWIG_fail;
3116 }
3117 {
3118 wxPoint * resultptr;
3119 resultptr = new wxPoint((wxPoint &) result);
3120 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
3121 }
3122 return resultobj;
3123 fail:
3124 return NULL;
3125}
3126
3127
3128static PyObject *_wrap_Point___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
3129 PyObject *resultobj;
3130 wxPoint *arg1 = (wxPoint *) 0 ;
3131 wxPoint *arg2 = 0 ;
3132 wxPoint result;
3133 wxPoint temp2 ;
3134 PyObject * obj0 = 0 ;
3135 PyObject * obj1 = 0 ;
3136 char *kwnames[] = {
3137 (char *) "self",(char *) "pt", NULL
3138 };
3139
3140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___sub__",kwnames,&obj0,&obj1)) goto fail;
3141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3143 {
3144 arg2 = &temp2;
3145 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3146 }
3147 {
3148 PyThreadState* __tstate = wxPyBeginAllowThreads();
3149 result = (arg1)->operator -((wxPoint const &)*arg2);
3150
3151 wxPyEndAllowThreads(__tstate);
3152 if (PyErr_Occurred()) SWIG_fail;
3153 }
3154 {
3155 wxPoint * resultptr;
3156 resultptr = new wxPoint((wxPoint &) result);
3157 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
3158 }
3159 return resultobj;
3160 fail:
3161 return NULL;
3162}
3163
3164
3165static PyObject *_wrap_Point___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
3166 PyObject *resultobj;
3167 wxPoint *arg1 = (wxPoint *) 0 ;
3168 wxPoint *arg2 = 0 ;
3169 wxPoint *result;
3170 wxPoint temp2 ;
3171 PyObject * obj0 = 0 ;
3172 PyObject * obj1 = 0 ;
3173 char *kwnames[] = {
3174 (char *) "self",(char *) "pt", NULL
3175 };
3176
3177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___iadd__",kwnames,&obj0,&obj1)) goto fail;
3178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3180 {
3181 arg2 = &temp2;
3182 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3183 }
3184 {
3185 PyThreadState* __tstate = wxPyBeginAllowThreads();
3186 {
3187 wxPoint &_result_ref = (arg1)->operator +=((wxPoint const &)*arg2);
3188 result = (wxPoint *) &_result_ref;
3189 }
3190
3191 wxPyEndAllowThreads(__tstate);
3192 if (PyErr_Occurred()) SWIG_fail;
3193 }
3194 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
3195 return resultobj;
3196 fail:
3197 return NULL;
3198}
3199
3200
3201static PyObject *_wrap_Point___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
3202 PyObject *resultobj;
3203 wxPoint *arg1 = (wxPoint *) 0 ;
3204 wxPoint *arg2 = 0 ;
3205 wxPoint *result;
3206 wxPoint temp2 ;
3207 PyObject * obj0 = 0 ;
3208 PyObject * obj1 = 0 ;
3209 char *kwnames[] = {
3210 (char *) "self",(char *) "pt", NULL
3211 };
3212
3213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___isub__",kwnames,&obj0,&obj1)) goto fail;
3214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3216 {
3217 arg2 = &temp2;
3218 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3219 }
3220 {
3221 PyThreadState* __tstate = wxPyBeginAllowThreads();
3222 {
3223 wxPoint &_result_ref = (arg1)->operator -=((wxPoint const &)*arg2);
3224 result = (wxPoint *) &_result_ref;
3225 }
3226
3227 wxPyEndAllowThreads(__tstate);
3228 if (PyErr_Occurred()) SWIG_fail;
3229 }
3230 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
3231 return resultobj;
3232 fail:
3233 return NULL;
3234}
3235
3236
3237static PyObject *_wrap_Point_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
3238 PyObject *resultobj;
3239 wxPoint *arg1 = (wxPoint *) 0 ;
3240 long arg2 ;
3241 long arg3 ;
3242 PyObject * obj0 = 0 ;
3243 PyObject * obj1 = 0 ;
3244 PyObject * obj2 = 0 ;
3245 char *kwnames[] = {
3246 (char *) "self",(char *) "x",(char *) "y", NULL
3247 };
3248
3249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Point_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
3250 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3252 arg2 = (long) SWIG_AsLong(obj1);
3253 if (PyErr_Occurred()) SWIG_fail;
3254 arg3 = (long) SWIG_AsLong(obj2);
3255 if (PyErr_Occurred()) SWIG_fail;
3256 {
3257 PyThreadState* __tstate = wxPyBeginAllowThreads();
3258 wxPoint_Set(arg1,arg2,arg3);
3259
3260 wxPyEndAllowThreads(__tstate);
3261 if (PyErr_Occurred()) SWIG_fail;
3262 }
3263 Py_INCREF(Py_None); resultobj = Py_None;
3264 return resultobj;
3265 fail:
3266 return NULL;
3267}
3268
3269
3270static PyObject *_wrap_Point_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
3271 PyObject *resultobj;
3272 wxPoint *arg1 = (wxPoint *) 0 ;
3273 PyObject *result;
3274 PyObject * obj0 = 0 ;
3275 char *kwnames[] = {
3276 (char *) "self", NULL
3277 };
3278
3279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point_Get",kwnames,&obj0)) goto fail;
3280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint,
3281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3282 {
3283 PyThreadState* __tstate = wxPyBeginAllowThreads();
3284 result = (PyObject *)wxPoint_Get(arg1);
3285
3286 wxPyEndAllowThreads(__tstate);
3287 if (PyErr_Occurred()) SWIG_fail;
3288 }
3289 resultobj = result;
3290 return resultobj;
3291 fail:
3292 return NULL;
3293}
3294
3295
3296static PyObject * Point_swigregister(PyObject *self, PyObject *args) {
3297 PyObject *obj;
3298 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3299 SWIG_TypeClientData(SWIGTYPE_p_wxPoint, obj);
3300 Py_INCREF(obj);
3301 return Py_BuildValue((char *)"");
3302}
3303static PyObject *_wrap_new_Rect(PyObject *self, PyObject *args, PyObject *kwargs) {
3304 PyObject *resultobj;
3305 int arg1 = (int) 0 ;
3306 int arg2 = (int) 0 ;
3307 int arg3 = (int) 0 ;
3308 int arg4 = (int) 0 ;
3309 wxRect *result;
3310 PyObject * obj0 = 0 ;
3311 PyObject * obj1 = 0 ;
3312 PyObject * obj2 = 0 ;
3313 PyObject * obj3 = 0 ;
3314 char *kwnames[] = {
3315 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
3316 };
3317
3318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Rect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3319 if (obj0) {
3320 arg1 = (int) SWIG_AsInt(obj0);
3321 if (PyErr_Occurred()) SWIG_fail;
3322 }
3323 if (obj1) {
3324 arg2 = (int) SWIG_AsInt(obj1);
3325 if (PyErr_Occurred()) SWIG_fail;
3326 }
3327 if (obj2) {
3328 arg3 = (int) SWIG_AsInt(obj2);
3329 if (PyErr_Occurred()) SWIG_fail;
3330 }
3331 if (obj3) {
3332 arg4 = (int) SWIG_AsInt(obj3);
3333 if (PyErr_Occurred()) SWIG_fail;
3334 }
3335 {
3336 PyThreadState* __tstate = wxPyBeginAllowThreads();
3337 result = (wxRect *)new wxRect(arg1,arg2,arg3,arg4);
3338
3339 wxPyEndAllowThreads(__tstate);
3340 if (PyErr_Occurred()) SWIG_fail;
3341 }
3342 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1);
3343 return resultobj;
3344 fail:
3345 return NULL;
3346}
3347
3348
3349static PyObject *_wrap_new_RectPP(PyObject *self, PyObject *args, PyObject *kwargs) {
3350 PyObject *resultobj;
3351 wxPoint *arg1 = 0 ;
3352 wxPoint *arg2 = 0 ;
3353 wxRect *result;
3354 wxPoint temp1 ;
3355 wxPoint temp2 ;
3356 PyObject * obj0 = 0 ;
3357 PyObject * obj1 = 0 ;
3358 char *kwnames[] = {
3359 (char *) "topLeft",(char *) "bottomRight", NULL
3360 };
3361
3362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPP",kwnames,&obj0,&obj1)) goto fail;
3363 {
3364 arg1 = &temp1;
3365 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
3366 }
3367 {
3368 arg2 = &temp2;
3369 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3370 }
3371 {
3372 PyThreadState* __tstate = wxPyBeginAllowThreads();
3373 result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxPoint const &)*arg2);
3374
3375 wxPyEndAllowThreads(__tstate);
3376 if (PyErr_Occurred()) SWIG_fail;
3377 }
3378 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1);
3379 return resultobj;
3380 fail:
3381 return NULL;
3382}
3383
3384
3385static PyObject *_wrap_new_RectPS(PyObject *self, PyObject *args, PyObject *kwargs) {
3386 PyObject *resultobj;
3387 wxPoint *arg1 = 0 ;
3388 wxSize *arg2 = 0 ;
3389 wxRect *result;
3390 wxPoint temp1 ;
3391 wxSize temp2 ;
3392 PyObject * obj0 = 0 ;
3393 PyObject * obj1 = 0 ;
3394 char *kwnames[] = {
3395 (char *) "pos",(char *) "size", NULL
3396 };
3397
3398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPS",kwnames,&obj0,&obj1)) goto fail;
3399 {
3400 arg1 = &temp1;
3401 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
3402 }
3403 {
3404 arg2 = &temp2;
3405 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3406 }
3407 {
3408 PyThreadState* __tstate = wxPyBeginAllowThreads();
3409 result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxSize const &)*arg2);
3410
3411 wxPyEndAllowThreads(__tstate);
3412 if (PyErr_Occurred()) SWIG_fail;
3413 }
3414 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 1);
3415 return resultobj;
3416 fail:
3417 return NULL;
3418}
3419
3420
3421static PyObject *_wrap_delete_Rect(PyObject *self, PyObject *args, PyObject *kwargs) {
3422 PyObject *resultobj;
3423 wxRect *arg1 = (wxRect *) 0 ;
3424 PyObject * obj0 = 0 ;
3425 char *kwnames[] = {
3426 (char *) "self", NULL
3427 };
3428
3429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Rect",kwnames,&obj0)) goto fail;
3430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3432 {
3433 PyThreadState* __tstate = wxPyBeginAllowThreads();
3434 delete arg1;
3435
3436 wxPyEndAllowThreads(__tstate);
3437 if (PyErr_Occurred()) SWIG_fail;
3438 }
3439 Py_INCREF(Py_None); resultobj = Py_None;
3440 return resultobj;
3441 fail:
3442 return NULL;
3443}
3444
3445
3446static PyObject *_wrap_Rect_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
3447 PyObject *resultobj;
3448 wxRect *arg1 = (wxRect *) 0 ;
3449 int result;
3450 PyObject * obj0 = 0 ;
3451 char *kwnames[] = {
3452 (char *) "self", NULL
3453 };
3454
3455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetX",kwnames,&obj0)) goto fail;
3456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3458 {
3459 PyThreadState* __tstate = wxPyBeginAllowThreads();
3460 result = (int)((wxRect const *)arg1)->GetX();
3461
3462 wxPyEndAllowThreads(__tstate);
3463 if (PyErr_Occurred()) SWIG_fail;
3464 }
3465 resultobj = SWIG_FromInt((int)result);
3466 return resultobj;
3467 fail:
3468 return NULL;
3469}
3470
3471
3472static PyObject *_wrap_Rect_SetX(PyObject *self, PyObject *args, PyObject *kwargs) {
3473 PyObject *resultobj;
3474 wxRect *arg1 = (wxRect *) 0 ;
3475 int arg2 ;
3476 PyObject * obj0 = 0 ;
3477 PyObject * obj1 = 0 ;
3478 char *kwnames[] = {
3479 (char *) "self",(char *) "x", NULL
3480 };
3481
3482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetX",kwnames,&obj0,&obj1)) goto fail;
3483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3485 arg2 = (int) SWIG_AsInt(obj1);
3486 if (PyErr_Occurred()) SWIG_fail;
3487 {
3488 PyThreadState* __tstate = wxPyBeginAllowThreads();
3489 (arg1)->SetX(arg2);
3490
3491 wxPyEndAllowThreads(__tstate);
3492 if (PyErr_Occurred()) SWIG_fail;
3493 }
3494 Py_INCREF(Py_None); resultobj = Py_None;
3495 return resultobj;
3496 fail:
3497 return NULL;
3498}
3499
3500
3501static PyObject *_wrap_Rect_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
3502 PyObject *resultobj;
3503 wxRect *arg1 = (wxRect *) 0 ;
3504 int result;
3505 PyObject * obj0 = 0 ;
3506 char *kwnames[] = {
3507 (char *) "self", NULL
3508 };
3509
3510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetY",kwnames,&obj0)) goto fail;
3511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3513 {
3514 PyThreadState* __tstate = wxPyBeginAllowThreads();
3515 result = (int)(arg1)->GetY();
3516
3517 wxPyEndAllowThreads(__tstate);
3518 if (PyErr_Occurred()) SWIG_fail;
3519 }
3520 resultobj = SWIG_FromInt((int)result);
3521 return resultobj;
3522 fail:
3523 return NULL;
3524}
3525
3526
3527static PyObject *_wrap_Rect_SetY(PyObject *self, PyObject *args, PyObject *kwargs) {
3528 PyObject *resultobj;
3529 wxRect *arg1 = (wxRect *) 0 ;
3530 int arg2 ;
3531 PyObject * obj0 = 0 ;
3532 PyObject * obj1 = 0 ;
3533 char *kwnames[] = {
3534 (char *) "self",(char *) "y", NULL
3535 };
3536
3537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetY",kwnames,&obj0,&obj1)) goto fail;
3538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3540 arg2 = (int) SWIG_AsInt(obj1);
3541 if (PyErr_Occurred()) SWIG_fail;
3542 {
3543 PyThreadState* __tstate = wxPyBeginAllowThreads();
3544 (arg1)->SetY(arg2);
3545
3546 wxPyEndAllowThreads(__tstate);
3547 if (PyErr_Occurred()) SWIG_fail;
3548 }
3549 Py_INCREF(Py_None); resultobj = Py_None;
3550 return resultobj;
3551 fail:
3552 return NULL;
3553}
3554
3555
3556static PyObject *_wrap_Rect_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3557 PyObject *resultobj;
3558 wxRect *arg1 = (wxRect *) 0 ;
3559 int result;
3560 PyObject * obj0 = 0 ;
3561 char *kwnames[] = {
3562 (char *) "self", NULL
3563 };
3564
3565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetWidth",kwnames,&obj0)) goto fail;
3566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3568 {
3569 PyThreadState* __tstate = wxPyBeginAllowThreads();
3570 result = (int)((wxRect const *)arg1)->GetWidth();
3571
3572 wxPyEndAllowThreads(__tstate);
3573 if (PyErr_Occurred()) SWIG_fail;
3574 }
3575 resultobj = SWIG_FromInt((int)result);
3576 return resultobj;
3577 fail:
3578 return NULL;
3579}
3580
3581
3582static PyObject *_wrap_Rect_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3583 PyObject *resultobj;
3584 wxRect *arg1 = (wxRect *) 0 ;
3585 int arg2 ;
3586 PyObject * obj0 = 0 ;
3587 PyObject * obj1 = 0 ;
3588 char *kwnames[] = {
3589 (char *) "self",(char *) "w", NULL
3590 };
3591
3592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3593 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3595 arg2 = (int) SWIG_AsInt(obj1);
3596 if (PyErr_Occurred()) SWIG_fail;
3597 {
3598 PyThreadState* __tstate = wxPyBeginAllowThreads();
3599 (arg1)->SetWidth(arg2);
3600
3601 wxPyEndAllowThreads(__tstate);
3602 if (PyErr_Occurred()) SWIG_fail;
3603 }
3604 Py_INCREF(Py_None); resultobj = Py_None;
3605 return resultobj;
3606 fail:
3607 return NULL;
3608}
3609
3610
3611static PyObject *_wrap_Rect_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3612 PyObject *resultobj;
3613 wxRect *arg1 = (wxRect *) 0 ;
3614 int result;
3615 PyObject * obj0 = 0 ;
3616 char *kwnames[] = {
3617 (char *) "self", NULL
3618 };
3619
3620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetHeight",kwnames,&obj0)) goto fail;
3621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3623 {
3624 PyThreadState* __tstate = wxPyBeginAllowThreads();
3625 result = (int)((wxRect const *)arg1)->GetHeight();
3626
3627 wxPyEndAllowThreads(__tstate);
3628 if (PyErr_Occurred()) SWIG_fail;
3629 }
3630 resultobj = SWIG_FromInt((int)result);
3631 return resultobj;
3632 fail:
3633 return NULL;
3634}
3635
3636
3637static PyObject *_wrap_Rect_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3638 PyObject *resultobj;
3639 wxRect *arg1 = (wxRect *) 0 ;
3640 int arg2 ;
3641 PyObject * obj0 = 0 ;
3642 PyObject * obj1 = 0 ;
3643 char *kwnames[] = {
3644 (char *) "self",(char *) "h", NULL
3645 };
3646
3647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3650 arg2 = (int) SWIG_AsInt(obj1);
3651 if (PyErr_Occurred()) SWIG_fail;
3652 {
3653 PyThreadState* __tstate = wxPyBeginAllowThreads();
3654 (arg1)->SetHeight(arg2);
3655
3656 wxPyEndAllowThreads(__tstate);
3657 if (PyErr_Occurred()) SWIG_fail;
3658 }
3659 Py_INCREF(Py_None); resultobj = Py_None;
3660 return resultobj;
3661 fail:
3662 return NULL;
3663}
3664
3665
3666static PyObject *_wrap_Rect_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
3667 PyObject *resultobj;
3668 wxRect *arg1 = (wxRect *) 0 ;
3669 wxPoint result;
3670 PyObject * obj0 = 0 ;
3671 char *kwnames[] = {
3672 (char *) "self", NULL
3673 };
3674
3675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetPosition",kwnames,&obj0)) goto fail;
3676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3678 {
3679 PyThreadState* __tstate = wxPyBeginAllowThreads();
3680 result = ((wxRect const *)arg1)->GetPosition();
3681
3682 wxPyEndAllowThreads(__tstate);
3683 if (PyErr_Occurred()) SWIG_fail;
3684 }
3685 {
3686 wxPoint * resultptr;
3687 resultptr = new wxPoint((wxPoint &) result);
3688 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
3689 }
3690 return resultobj;
3691 fail:
3692 return NULL;
3693}
3694
3695
3696static PyObject *_wrap_Rect_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
3697 PyObject *resultobj;
3698 wxRect *arg1 = (wxRect *) 0 ;
3699 wxPoint *arg2 = 0 ;
3700 wxPoint temp2 ;
3701 PyObject * obj0 = 0 ;
3702 PyObject * obj1 = 0 ;
3703 char *kwnames[] = {
3704 (char *) "self",(char *) "p", NULL
3705 };
3706
3707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetPosition",kwnames,&obj0,&obj1)) goto fail;
3708 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3709 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3710 {
3711 arg2 = &temp2;
3712 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3713 }
3714 {
3715 PyThreadState* __tstate = wxPyBeginAllowThreads();
3716 (arg1)->SetPosition((wxPoint const &)*arg2);
3717
3718 wxPyEndAllowThreads(__tstate);
3719 if (PyErr_Occurred()) SWIG_fail;
3720 }
3721 Py_INCREF(Py_None); resultobj = Py_None;
3722 return resultobj;
3723 fail:
3724 return NULL;
3725}
3726
3727
3728static PyObject *_wrap_Rect_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3729 PyObject *resultobj;
3730 wxRect *arg1 = (wxRect *) 0 ;
3731 wxSize result;
3732 PyObject * obj0 = 0 ;
3733 char *kwnames[] = {
3734 (char *) "self", NULL
3735 };
3736
3737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetSize",kwnames,&obj0)) goto fail;
3738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3740 {
3741 PyThreadState* __tstate = wxPyBeginAllowThreads();
3742 result = ((wxRect const *)arg1)->GetSize();
3743
3744 wxPyEndAllowThreads(__tstate);
3745 if (PyErr_Occurred()) SWIG_fail;
3746 }
3747 {
3748 wxSize * resultptr;
3749 resultptr = new wxSize((wxSize &) result);
3750 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3751 }
3752 return resultobj;
3753 fail:
3754 return NULL;
3755}
3756
3757
3758static PyObject *_wrap_Rect_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3759 PyObject *resultobj;
3760 wxRect *arg1 = (wxRect *) 0 ;
3761 wxSize *arg2 = 0 ;
3762 wxSize temp2 ;
3763 PyObject * obj0 = 0 ;
3764 PyObject * obj1 = 0 ;
3765 char *kwnames[] = {
3766 (char *) "self",(char *) "s", NULL
3767 };
3768
3769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetSize",kwnames,&obj0,&obj1)) goto fail;
3770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3772 {
3773 arg2 = &temp2;
3774 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3775 }
3776 {
3777 PyThreadState* __tstate = wxPyBeginAllowThreads();
3778 (arg1)->SetSize((wxSize const &)*arg2);
3779
3780 wxPyEndAllowThreads(__tstate);
3781 if (PyErr_Occurred()) SWIG_fail;
3782 }
3783 Py_INCREF(Py_None); resultobj = Py_None;
3784 return resultobj;
3785 fail:
3786 return NULL;
3787}
3788
3789
3790static PyObject *_wrap_Rect_GetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
3791 PyObject *resultobj;
3792 wxRect *arg1 = (wxRect *) 0 ;
3793 wxPoint result;
3794 PyObject * obj0 = 0 ;
3795 char *kwnames[] = {
3796 (char *) "self", NULL
3797 };
3798
3799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTopLeft",kwnames,&obj0)) goto fail;
3800 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3801 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3802 {
3803 PyThreadState* __tstate = wxPyBeginAllowThreads();
3804 result = ((wxRect const *)arg1)->GetTopLeft();
3805
3806 wxPyEndAllowThreads(__tstate);
3807 if (PyErr_Occurred()) SWIG_fail;
3808 }
3809 {
3810 wxPoint * resultptr;
3811 resultptr = new wxPoint((wxPoint &) result);
3812 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
3813 }
3814 return resultobj;
3815 fail:
3816 return NULL;
3817}
3818
3819
3820static PyObject *_wrap_Rect_SetTopLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
3821 PyObject *resultobj;
3822 wxRect *arg1 = (wxRect *) 0 ;
3823 wxPoint *arg2 = 0 ;
3824 wxPoint temp2 ;
3825 PyObject * obj0 = 0 ;
3826 PyObject * obj1 = 0 ;
3827 char *kwnames[] = {
3828 (char *) "self",(char *) "p", NULL
3829 };
3830
3831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopLeft",kwnames,&obj0,&obj1)) goto fail;
3832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3834 {
3835 arg2 = &temp2;
3836 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3837 }
3838 {
3839 PyThreadState* __tstate = wxPyBeginAllowThreads();
3840 (arg1)->SetTopLeft((wxPoint const &)*arg2);
3841
3842 wxPyEndAllowThreads(__tstate);
3843 if (PyErr_Occurred()) SWIG_fail;
3844 }
3845 Py_INCREF(Py_None); resultobj = Py_None;
3846 return resultobj;
3847 fail:
3848 return NULL;
3849}
3850
3851
3852static PyObject *_wrap_Rect_GetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) {
3853 PyObject *resultobj;
3854 wxRect *arg1 = (wxRect *) 0 ;
3855 wxPoint result;
3856 PyObject * obj0 = 0 ;
3857 char *kwnames[] = {
3858 (char *) "self", NULL
3859 };
3860
3861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottomRight",kwnames,&obj0)) goto fail;
3862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3864 {
3865 PyThreadState* __tstate = wxPyBeginAllowThreads();
3866 result = ((wxRect const *)arg1)->GetBottomRight();
3867
3868 wxPyEndAllowThreads(__tstate);
3869 if (PyErr_Occurred()) SWIG_fail;
3870 }
3871 {
3872 wxPoint * resultptr;
3873 resultptr = new wxPoint((wxPoint &) result);
3874 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
3875 }
3876 return resultobj;
3877 fail:
3878 return NULL;
3879}
3880
3881
3882static PyObject *_wrap_Rect_SetBottomRight(PyObject *self, PyObject *args, PyObject *kwargs) {
3883 PyObject *resultobj;
3884 wxRect *arg1 = (wxRect *) 0 ;
3885 wxPoint *arg2 = 0 ;
3886 wxPoint temp2 ;
3887 PyObject * obj0 = 0 ;
3888 PyObject * obj1 = 0 ;
3889 char *kwnames[] = {
3890 (char *) "self",(char *) "p", NULL
3891 };
3892
3893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomRight",kwnames,&obj0,&obj1)) goto fail;
3894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3896 {
3897 arg2 = &temp2;
3898 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
3899 }
3900 {
3901 PyThreadState* __tstate = wxPyBeginAllowThreads();
3902 (arg1)->SetBottomRight((wxPoint const &)*arg2);
3903
3904 wxPyEndAllowThreads(__tstate);
3905 if (PyErr_Occurred()) SWIG_fail;
3906 }
3907 Py_INCREF(Py_None); resultobj = Py_None;
3908 return resultobj;
3909 fail:
3910 return NULL;
3911}
3912
3913
3914static PyObject *_wrap_Rect_GetLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
3915 PyObject *resultobj;
3916 wxRect *arg1 = (wxRect *) 0 ;
3917 int result;
3918 PyObject * obj0 = 0 ;
3919 char *kwnames[] = {
3920 (char *) "self", NULL
3921 };
3922
3923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetLeft",kwnames,&obj0)) goto fail;
3924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3926 {
3927 PyThreadState* __tstate = wxPyBeginAllowThreads();
3928 result = (int)((wxRect const *)arg1)->GetLeft();
3929
3930 wxPyEndAllowThreads(__tstate);
3931 if (PyErr_Occurred()) SWIG_fail;
3932 }
3933 resultobj = SWIG_FromInt((int)result);
3934 return resultobj;
3935 fail:
3936 return NULL;
3937}
3938
3939
3940static PyObject *_wrap_Rect_GetTop(PyObject *self, PyObject *args, PyObject *kwargs) {
3941 PyObject *resultobj;
3942 wxRect *arg1 = (wxRect *) 0 ;
3943 int result;
3944 PyObject * obj0 = 0 ;
3945 char *kwnames[] = {
3946 (char *) "self", NULL
3947 };
3948
3949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetTop",kwnames,&obj0)) goto fail;
3950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3952 {
3953 PyThreadState* __tstate = wxPyBeginAllowThreads();
3954 result = (int)((wxRect const *)arg1)->GetTop();
3955
3956 wxPyEndAllowThreads(__tstate);
3957 if (PyErr_Occurred()) SWIG_fail;
3958 }
3959 resultobj = SWIG_FromInt((int)result);
3960 return resultobj;
3961 fail:
3962 return NULL;
3963}
3964
3965
3966static PyObject *_wrap_Rect_GetBottom(PyObject *self, PyObject *args, PyObject *kwargs) {
3967 PyObject *resultobj;
3968 wxRect *arg1 = (wxRect *) 0 ;
3969 int result;
3970 PyObject * obj0 = 0 ;
3971 char *kwnames[] = {
3972 (char *) "self", NULL
3973 };
3974
3975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetBottom",kwnames,&obj0)) goto fail;
3976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
3977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3978 {
3979 PyThreadState* __tstate = wxPyBeginAllowThreads();
3980 result = (int)((wxRect const *)arg1)->GetBottom();
3981
3982 wxPyEndAllowThreads(__tstate);
3983 if (PyErr_Occurred()) SWIG_fail;
3984 }
3985 resultobj = SWIG_FromInt((int)result);
3986 return resultobj;
3987 fail:
3988 return NULL;
3989}
3990
3991
3992static PyObject *_wrap_Rect_GetRight(PyObject *self, PyObject *args, PyObject *kwargs) {
3993 PyObject *resultobj;
3994 wxRect *arg1 = (wxRect *) 0 ;
3995 int result;
3996 PyObject * obj0 = 0 ;
3997 char *kwnames[] = {
3998 (char *) "self", NULL
3999 };
4000
4001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_GetRight",kwnames,&obj0)) goto fail;
4002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4004 {
4005 PyThreadState* __tstate = wxPyBeginAllowThreads();
4006 result = (int)((wxRect const *)arg1)->GetRight();
4007
4008 wxPyEndAllowThreads(__tstate);
4009 if (PyErr_Occurred()) SWIG_fail;
4010 }
4011 resultobj = SWIG_FromInt((int)result);
4012 return resultobj;
4013 fail:
4014 return NULL;
4015}
4016
4017
4018static PyObject *_wrap_Rect_SetLeft(PyObject *self, PyObject *args, PyObject *kwargs) {
4019 PyObject *resultobj;
4020 wxRect *arg1 = (wxRect *) 0 ;
4021 int arg2 ;
4022 PyObject * obj0 = 0 ;
4023 PyObject * obj1 = 0 ;
4024 char *kwnames[] = {
4025 (char *) "self",(char *) "left", NULL
4026 };
4027
4028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetLeft",kwnames,&obj0,&obj1)) goto fail;
4029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4031 arg2 = (int) SWIG_AsInt(obj1);
4032 if (PyErr_Occurred()) SWIG_fail;
4033 {
4034 PyThreadState* __tstate = wxPyBeginAllowThreads();
4035 (arg1)->SetLeft(arg2);
4036
4037 wxPyEndAllowThreads(__tstate);
4038 if (PyErr_Occurred()) SWIG_fail;
4039 }
4040 Py_INCREF(Py_None); resultobj = Py_None;
4041 return resultobj;
4042 fail:
4043 return NULL;
4044}
4045
4046
4047static PyObject *_wrap_Rect_SetRight(PyObject *self, PyObject *args, PyObject *kwargs) {
4048 PyObject *resultobj;
4049 wxRect *arg1 = (wxRect *) 0 ;
4050 int arg2 ;
4051 PyObject * obj0 = 0 ;
4052 PyObject * obj1 = 0 ;
4053 char *kwnames[] = {
4054 (char *) "self",(char *) "right", NULL
4055 };
4056
4057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetRight",kwnames,&obj0,&obj1)) goto fail;
4058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4060 arg2 = (int) SWIG_AsInt(obj1);
4061 if (PyErr_Occurred()) SWIG_fail;
4062 {
4063 PyThreadState* __tstate = wxPyBeginAllowThreads();
4064 (arg1)->SetRight(arg2);
4065
4066 wxPyEndAllowThreads(__tstate);
4067 if (PyErr_Occurred()) SWIG_fail;
4068 }
4069 Py_INCREF(Py_None); resultobj = Py_None;
4070 return resultobj;
4071 fail:
4072 return NULL;
4073}
4074
4075
4076static PyObject *_wrap_Rect_SetTop(PyObject *self, PyObject *args, PyObject *kwargs) {
4077 PyObject *resultobj;
4078 wxRect *arg1 = (wxRect *) 0 ;
4079 int arg2 ;
4080 PyObject * obj0 = 0 ;
4081 PyObject * obj1 = 0 ;
4082 char *kwnames[] = {
4083 (char *) "self",(char *) "top", NULL
4084 };
4085
4086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTop",kwnames,&obj0,&obj1)) goto fail;
4087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4089 arg2 = (int) SWIG_AsInt(obj1);
4090 if (PyErr_Occurred()) SWIG_fail;
4091 {
4092 PyThreadState* __tstate = wxPyBeginAllowThreads();
4093 (arg1)->SetTop(arg2);
4094
4095 wxPyEndAllowThreads(__tstate);
4096 if (PyErr_Occurred()) SWIG_fail;
4097 }
4098 Py_INCREF(Py_None); resultobj = Py_None;
4099 return resultobj;
4100 fail:
4101 return NULL;
4102}
4103
4104
4105static PyObject *_wrap_Rect_SetBottom(PyObject *self, PyObject *args, PyObject *kwargs) {
4106 PyObject *resultobj;
4107 wxRect *arg1 = (wxRect *) 0 ;
4108 int arg2 ;
4109 PyObject * obj0 = 0 ;
4110 PyObject * obj1 = 0 ;
4111 char *kwnames[] = {
4112 (char *) "self",(char *) "bottom", NULL
4113 };
4114
4115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottom",kwnames,&obj0,&obj1)) goto fail;
4116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4118 arg2 = (int) SWIG_AsInt(obj1);
4119 if (PyErr_Occurred()) SWIG_fail;
4120 {
4121 PyThreadState* __tstate = wxPyBeginAllowThreads();
4122 (arg1)->SetBottom(arg2);
4123
4124 wxPyEndAllowThreads(__tstate);
4125 if (PyErr_Occurred()) SWIG_fail;
4126 }
4127 Py_INCREF(Py_None); resultobj = Py_None;
4128 return resultobj;
4129 fail:
4130 return NULL;
4131}
4132
4133
4134static PyObject *_wrap_Rect_Inflate(PyObject *self, PyObject *args, PyObject *kwargs) {
4135 PyObject *resultobj;
4136 wxRect *arg1 = (wxRect *) 0 ;
4137 int arg2 ;
4138 int arg3 ;
4139 wxRect *result;
4140 PyObject * obj0 = 0 ;
4141 PyObject * obj1 = 0 ;
4142 PyObject * obj2 = 0 ;
4143 char *kwnames[] = {
4144 (char *) "self",(char *) "dx",(char *) "dy", NULL
4145 };
4146
4147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Inflate",kwnames,&obj0,&obj1,&obj2)) goto fail;
4148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4150 arg2 = (int) SWIG_AsInt(obj1);
4151 if (PyErr_Occurred()) SWIG_fail;
4152 arg3 = (int) SWIG_AsInt(obj2);
4153 if (PyErr_Occurred()) SWIG_fail;
4154 {
4155 PyThreadState* __tstate = wxPyBeginAllowThreads();
4156 {
4157 wxRect &_result_ref = (arg1)->Inflate(arg2,arg3);
4158 result = (wxRect *) &_result_ref;
4159 }
4160
4161 wxPyEndAllowThreads(__tstate);
4162 if (PyErr_Occurred()) SWIG_fail;
4163 }
4164 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0);
4165 return resultobj;
4166 fail:
4167 return NULL;
4168}
4169
4170
4171static PyObject *_wrap_Rect_Deflate(PyObject *self, PyObject *args, PyObject *kwargs) {
4172 PyObject *resultobj;
4173 wxRect *arg1 = (wxRect *) 0 ;
4174 int arg2 ;
4175 int arg3 ;
4176 wxRect *result;
4177 PyObject * obj0 = 0 ;
4178 PyObject * obj1 = 0 ;
4179 PyObject * obj2 = 0 ;
4180 char *kwnames[] = {
4181 (char *) "self",(char *) "dx",(char *) "dy", NULL
4182 };
4183
4184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Deflate",kwnames,&obj0,&obj1,&obj2)) goto fail;
4185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4187 arg2 = (int) SWIG_AsInt(obj1);
4188 if (PyErr_Occurred()) SWIG_fail;
4189 arg3 = (int) SWIG_AsInt(obj2);
4190 if (PyErr_Occurred()) SWIG_fail;
4191 {
4192 PyThreadState* __tstate = wxPyBeginAllowThreads();
4193 {
4194 wxRect &_result_ref = (arg1)->Deflate(arg2,arg3);
4195 result = (wxRect *) &_result_ref;
4196 }
4197
4198 wxPyEndAllowThreads(__tstate);
4199 if (PyErr_Occurred()) SWIG_fail;
4200 }
4201 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0);
4202 return resultobj;
4203 fail:
4204 return NULL;
4205}
4206
4207
4208static PyObject *_wrap_Rect_OffsetXY(PyObject *self, PyObject *args, PyObject *kwargs) {
4209 PyObject *resultobj;
4210 wxRect *arg1 = (wxRect *) 0 ;
4211 int arg2 ;
4212 int arg3 ;
4213 PyObject * obj0 = 0 ;
4214 PyObject * obj1 = 0 ;
4215 PyObject * obj2 = 0 ;
4216 char *kwnames[] = {
4217 (char *) "self",(char *) "dx",(char *) "dy", NULL
4218 };
4219
4220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_OffsetXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
4221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4223 arg2 = (int) SWIG_AsInt(obj1);
4224 if (PyErr_Occurred()) SWIG_fail;
4225 arg3 = (int) SWIG_AsInt(obj2);
4226 if (PyErr_Occurred()) SWIG_fail;
4227 {
4228 PyThreadState* __tstate = wxPyBeginAllowThreads();
4229 (arg1)->Offset(arg2,arg3);
4230
4231 wxPyEndAllowThreads(__tstate);
4232 if (PyErr_Occurred()) SWIG_fail;
4233 }
4234 Py_INCREF(Py_None); resultobj = Py_None;
4235 return resultobj;
4236 fail:
4237 return NULL;
4238}
4239
4240
4241static PyObject *_wrap_Rect_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
4242 PyObject *resultobj;
4243 wxRect *arg1 = (wxRect *) 0 ;
4244 wxPoint *arg2 = 0 ;
4245 wxPoint temp2 ;
4246 PyObject * obj0 = 0 ;
4247 PyObject * obj1 = 0 ;
4248 char *kwnames[] = {
4249 (char *) "self",(char *) "pt", NULL
4250 };
4251
4252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Offset",kwnames,&obj0,&obj1)) goto fail;
4253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4255 {
4256 arg2 = &temp2;
4257 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4258 }
4259 {
4260 PyThreadState* __tstate = wxPyBeginAllowThreads();
4261 (arg1)->Offset((wxPoint const &)*arg2);
4262
4263 wxPyEndAllowThreads(__tstate);
4264 if (PyErr_Occurred()) SWIG_fail;
4265 }
4266 Py_INCREF(Py_None); resultobj = Py_None;
4267 return resultobj;
4268 fail:
4269 return NULL;
4270}
4271
4272
4273static PyObject *_wrap_Rect_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
4274 PyObject *resultobj;
4275 wxRect *arg1 = (wxRect *) 0 ;
4276 wxRect *arg2 = 0 ;
4277 wxRect *result;
4278 wxRect temp2 ;
4279 PyObject * obj0 = 0 ;
4280 PyObject * obj1 = 0 ;
4281 char *kwnames[] = {
4282 (char *) "self",(char *) "rect", NULL
4283 };
4284
4285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersect",kwnames,&obj0,&obj1)) goto fail;
4286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4288 {
4289 arg2 = &temp2;
4290 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4291 }
4292 {
4293 PyThreadState* __tstate = wxPyBeginAllowThreads();
4294 {
4295 wxRect &_result_ref = (arg1)->Intersect((wxRect const &)*arg2);
4296 result = (wxRect *) &_result_ref;
4297 }
4298
4299 wxPyEndAllowThreads(__tstate);
4300 if (PyErr_Occurred()) SWIG_fail;
4301 }
4302 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0);
4303 return resultobj;
4304 fail:
4305 return NULL;
4306}
4307
4308
4309static PyObject *_wrap_Rect___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
4310 PyObject *resultobj;
4311 wxRect *arg1 = (wxRect *) 0 ;
4312 wxRect *arg2 = 0 ;
4313 wxRect result;
4314 wxRect temp2 ;
4315 PyObject * obj0 = 0 ;
4316 PyObject * obj1 = 0 ;
4317 char *kwnames[] = {
4318 (char *) "self",(char *) "rect", NULL
4319 };
4320
4321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___add__",kwnames,&obj0,&obj1)) goto fail;
4322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4324 {
4325 arg2 = &temp2;
4326 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4327 }
4328 {
4329 PyThreadState* __tstate = wxPyBeginAllowThreads();
4330 result = ((wxRect const *)arg1)->operator +((wxRect const &)*arg2);
4331
4332 wxPyEndAllowThreads(__tstate);
4333 if (PyErr_Occurred()) SWIG_fail;
4334 }
4335 {
4336 wxRect * resultptr;
4337 resultptr = new wxRect((wxRect &) result);
4338 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
4339 }
4340 return resultobj;
4341 fail:
4342 return NULL;
4343}
4344
4345
4346static PyObject *_wrap_Rect___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
4347 PyObject *resultobj;
4348 wxRect *arg1 = (wxRect *) 0 ;
4349 wxRect *arg2 = 0 ;
4350 wxRect *result;
4351 wxRect temp2 ;
4352 PyObject * obj0 = 0 ;
4353 PyObject * obj1 = 0 ;
4354 char *kwnames[] = {
4355 (char *) "self",(char *) "rect", NULL
4356 };
4357
4358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___iadd__",kwnames,&obj0,&obj1)) goto fail;
4359 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4361 {
4362 arg2 = &temp2;
4363 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4364 }
4365 {
4366 PyThreadState* __tstate = wxPyBeginAllowThreads();
4367 {
4368 wxRect &_result_ref = (arg1)->operator +=((wxRect const &)*arg2);
4369 result = (wxRect *) &_result_ref;
4370 }
4371
4372 wxPyEndAllowThreads(__tstate);
4373 if (PyErr_Occurred()) SWIG_fail;
4374 }
4375 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0);
4376 return resultobj;
4377 fail:
4378 return NULL;
4379}
4380
4381
4382static PyObject *_wrap_Rect___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
4383 PyObject *resultobj;
4384 wxRect *arg1 = (wxRect *) 0 ;
4385 wxRect *arg2 = 0 ;
4386 bool result;
4387 wxRect temp2 ;
4388 PyObject * obj0 = 0 ;
4389 PyObject * obj1 = 0 ;
4390 char *kwnames[] = {
4391 (char *) "self",(char *) "rect", NULL
4392 };
4393
4394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___eq__",kwnames,&obj0,&obj1)) goto fail;
4395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4397 {
4398 arg2 = &temp2;
4399 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4400 }
4401 {
4402 PyThreadState* __tstate = wxPyBeginAllowThreads();
4403 result = (bool)((wxRect const *)arg1)->operator ==((wxRect const &)*arg2);
4404
4405 wxPyEndAllowThreads(__tstate);
4406 if (PyErr_Occurred()) SWIG_fail;
4407 }
4408 {
4409 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4410 }
4411 return resultobj;
4412 fail:
4413 return NULL;
4414}
4415
4416
4417static PyObject *_wrap_Rect___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
4418 PyObject *resultobj;
4419 wxRect *arg1 = (wxRect *) 0 ;
4420 wxRect *arg2 = 0 ;
4421 bool result;
4422 wxRect temp2 ;
4423 PyObject * obj0 = 0 ;
4424 PyObject * obj1 = 0 ;
4425 char *kwnames[] = {
4426 (char *) "self",(char *) "rect", NULL
4427 };
4428
4429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___ne__",kwnames,&obj0,&obj1)) goto fail;
4430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4432 {
4433 arg2 = &temp2;
4434 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4435 }
4436 {
4437 PyThreadState* __tstate = wxPyBeginAllowThreads();
4438 result = (bool)((wxRect const *)arg1)->operator !=((wxRect const &)*arg2);
4439
4440 wxPyEndAllowThreads(__tstate);
4441 if (PyErr_Occurred()) SWIG_fail;
4442 }
4443 {
4444 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4445 }
4446 return resultobj;
4447 fail:
4448 return NULL;
4449}
4450
4451
4452static PyObject *_wrap_Rect_InsideXY(PyObject *self, PyObject *args, PyObject *kwargs) {
4453 PyObject *resultobj;
4454 wxRect *arg1 = (wxRect *) 0 ;
4455 int arg2 ;
4456 int arg3 ;
4457 bool result;
4458 PyObject * obj0 = 0 ;
4459 PyObject * obj1 = 0 ;
4460 PyObject * obj2 = 0 ;
4461 char *kwnames[] = {
4462 (char *) "self",(char *) "x",(char *) "y", NULL
4463 };
4464
4465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_InsideXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
4466 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4468 arg2 = (int) SWIG_AsInt(obj1);
4469 if (PyErr_Occurred()) SWIG_fail;
4470 arg3 = (int) SWIG_AsInt(obj2);
4471 if (PyErr_Occurred()) SWIG_fail;
4472 {
4473 PyThreadState* __tstate = wxPyBeginAllowThreads();
4474 result = (bool)((wxRect const *)arg1)->Inside(arg2,arg3);
4475
4476 wxPyEndAllowThreads(__tstate);
4477 if (PyErr_Occurred()) SWIG_fail;
4478 }
4479 {
4480 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4481 }
4482 return resultobj;
4483 fail:
4484 return NULL;
4485}
4486
4487
4488static PyObject *_wrap_Rect_Inside(PyObject *self, PyObject *args, PyObject *kwargs) {
4489 PyObject *resultobj;
4490 wxRect *arg1 = (wxRect *) 0 ;
4491 wxPoint *arg2 = 0 ;
4492 bool result;
4493 wxPoint temp2 ;
4494 PyObject * obj0 = 0 ;
4495 PyObject * obj1 = 0 ;
4496 char *kwnames[] = {
4497 (char *) "self",(char *) "pt", NULL
4498 };
4499
4500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Inside",kwnames,&obj0,&obj1)) goto fail;
4501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4503 {
4504 arg2 = &temp2;
4505 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4506 }
4507 {
4508 PyThreadState* __tstate = wxPyBeginAllowThreads();
4509 result = (bool)((wxRect const *)arg1)->Inside((wxPoint const &)*arg2);
4510
4511 wxPyEndAllowThreads(__tstate);
4512 if (PyErr_Occurred()) SWIG_fail;
4513 }
4514 {
4515 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4516 }
4517 return resultobj;
4518 fail:
4519 return NULL;
4520}
4521
4522
4523static PyObject *_wrap_Rect_Intersects(PyObject *self, PyObject *args, PyObject *kwargs) {
4524 PyObject *resultobj;
4525 wxRect *arg1 = (wxRect *) 0 ;
4526 wxRect *arg2 = 0 ;
4527 bool result;
4528 wxRect temp2 ;
4529 PyObject * obj0 = 0 ;
4530 PyObject * obj1 = 0 ;
4531 char *kwnames[] = {
4532 (char *) "self",(char *) "rect", NULL
4533 };
4534
4535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersects",kwnames,&obj0,&obj1)) goto fail;
4536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4538 {
4539 arg2 = &temp2;
4540 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4541 }
4542 {
4543 PyThreadState* __tstate = wxPyBeginAllowThreads();
4544 result = (bool)((wxRect const *)arg1)->Intersects((wxRect const &)*arg2);
4545
4546 wxPyEndAllowThreads(__tstate);
4547 if (PyErr_Occurred()) SWIG_fail;
4548 }
4549 {
4550 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4551 }
4552 return resultobj;
4553 fail:
4554 return NULL;
4555}
4556
4557
4558static PyObject *_wrap_Rect_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
4559 PyObject *resultobj;
4560 wxRect *arg1 = (wxRect *) 0 ;
4561 int arg2 ;
4562 PyObject * obj0 = 0 ;
4563 PyObject * obj1 = 0 ;
4564 char *kwnames[] = {
4565 (char *) "self",(char *) "x", NULL
4566 };
4567
4568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_x_set",kwnames,&obj0,&obj1)) goto fail;
4569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4571 arg2 = (int) SWIG_AsInt(obj1);
4572 if (PyErr_Occurred()) SWIG_fail;
4573 if (arg1) (arg1)->x = arg2;
4574
4575 Py_INCREF(Py_None); resultobj = Py_None;
4576 return resultobj;
4577 fail:
4578 return NULL;
4579}
4580
4581
4582static PyObject *_wrap_Rect_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
4583 PyObject *resultobj;
4584 wxRect *arg1 = (wxRect *) 0 ;
4585 int result;
4586 PyObject * obj0 = 0 ;
4587 char *kwnames[] = {
4588 (char *) "self", NULL
4589 };
4590
4591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_x_get",kwnames,&obj0)) goto fail;
4592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4594 result = (int) ((arg1)->x);
4595
4596 resultobj = SWIG_FromInt((int)result);
4597 return resultobj;
4598 fail:
4599 return NULL;
4600}
4601
4602
4603static PyObject *_wrap_Rect_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
4604 PyObject *resultobj;
4605 wxRect *arg1 = (wxRect *) 0 ;
4606 int arg2 ;
4607 PyObject * obj0 = 0 ;
4608 PyObject * obj1 = 0 ;
4609 char *kwnames[] = {
4610 (char *) "self",(char *) "y", NULL
4611 };
4612
4613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_y_set",kwnames,&obj0,&obj1)) goto fail;
4614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4616 arg2 = (int) SWIG_AsInt(obj1);
4617 if (PyErr_Occurred()) SWIG_fail;
4618 if (arg1) (arg1)->y = arg2;
4619
4620 Py_INCREF(Py_None); resultobj = Py_None;
4621 return resultobj;
4622 fail:
4623 return NULL;
4624}
4625
4626
4627static PyObject *_wrap_Rect_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
4628 PyObject *resultobj;
4629 wxRect *arg1 = (wxRect *) 0 ;
4630 int result;
4631 PyObject * obj0 = 0 ;
4632 char *kwnames[] = {
4633 (char *) "self", NULL
4634 };
4635
4636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_y_get",kwnames,&obj0)) goto fail;
4637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4639 result = (int) ((arg1)->y);
4640
4641 resultobj = SWIG_FromInt((int)result);
4642 return resultobj;
4643 fail:
4644 return NULL;
4645}
4646
4647
4648static PyObject *_wrap_Rect_width_set(PyObject *self, PyObject *args, PyObject *kwargs) {
4649 PyObject *resultobj;
4650 wxRect *arg1 = (wxRect *) 0 ;
4651 int arg2 ;
4652 PyObject * obj0 = 0 ;
4653 PyObject * obj1 = 0 ;
4654 char *kwnames[] = {
4655 (char *) "self",(char *) "width", NULL
4656 };
4657
4658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_width_set",kwnames,&obj0,&obj1)) goto fail;
4659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4661 arg2 = (int) SWIG_AsInt(obj1);
4662 if (PyErr_Occurred()) SWIG_fail;
4663 if (arg1) (arg1)->width = arg2;
4664
4665 Py_INCREF(Py_None); resultobj = Py_None;
4666 return resultobj;
4667 fail:
4668 return NULL;
4669}
4670
4671
4672static PyObject *_wrap_Rect_width_get(PyObject *self, PyObject *args, PyObject *kwargs) {
4673 PyObject *resultobj;
4674 wxRect *arg1 = (wxRect *) 0 ;
4675 int result;
4676 PyObject * obj0 = 0 ;
4677 char *kwnames[] = {
4678 (char *) "self", NULL
4679 };
4680
4681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_width_get",kwnames,&obj0)) goto fail;
4682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4684 result = (int) ((arg1)->width);
4685
4686 resultobj = SWIG_FromInt((int)result);
4687 return resultobj;
4688 fail:
4689 return NULL;
4690}
4691
4692
4693static PyObject *_wrap_Rect_height_set(PyObject *self, PyObject *args, PyObject *kwargs) {
4694 PyObject *resultobj;
4695 wxRect *arg1 = (wxRect *) 0 ;
4696 int arg2 ;
4697 PyObject * obj0 = 0 ;
4698 PyObject * obj1 = 0 ;
4699 char *kwnames[] = {
4700 (char *) "self",(char *) "height", NULL
4701 };
4702
4703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_height_set",kwnames,&obj0,&obj1)) goto fail;
4704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4706 arg2 = (int) SWIG_AsInt(obj1);
4707 if (PyErr_Occurred()) SWIG_fail;
4708 if (arg1) (arg1)->height = arg2;
4709
4710 Py_INCREF(Py_None); resultobj = Py_None;
4711 return resultobj;
4712 fail:
4713 return NULL;
4714}
4715
4716
4717static PyObject *_wrap_Rect_height_get(PyObject *self, PyObject *args, PyObject *kwargs) {
4718 PyObject *resultobj;
4719 wxRect *arg1 = (wxRect *) 0 ;
4720 int result;
4721 PyObject * obj0 = 0 ;
4722 char *kwnames[] = {
4723 (char *) "self", NULL
4724 };
4725
4726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_height_get",kwnames,&obj0)) goto fail;
4727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4729 result = (int) ((arg1)->height);
4730
4731 resultobj = SWIG_FromInt((int)result);
4732 return resultobj;
4733 fail:
4734 return NULL;
4735}
4736
4737
4738static PyObject *_wrap_Rect_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
4739 PyObject *resultobj;
4740 wxRect *arg1 = (wxRect *) 0 ;
4741 int arg2 = (int) 0 ;
4742 int arg3 = (int) 0 ;
4743 int arg4 = (int) 0 ;
4744 int arg5 = (int) 0 ;
4745 PyObject * obj0 = 0 ;
4746 PyObject * obj1 = 0 ;
4747 PyObject * obj2 = 0 ;
4748 PyObject * obj3 = 0 ;
4749 PyObject * obj4 = 0 ;
4750 char *kwnames[] = {
4751 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4752 };
4753
4754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Rect_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4757 if (obj1) {
4758 arg2 = (int) SWIG_AsInt(obj1);
4759 if (PyErr_Occurred()) SWIG_fail;
4760 }
4761 if (obj2) {
4762 arg3 = (int) SWIG_AsInt(obj2);
4763 if (PyErr_Occurred()) SWIG_fail;
4764 }
4765 if (obj3) {
4766 arg4 = (int) SWIG_AsInt(obj3);
4767 if (PyErr_Occurred()) SWIG_fail;
4768 }
4769 if (obj4) {
4770 arg5 = (int) SWIG_AsInt(obj4);
4771 if (PyErr_Occurred()) SWIG_fail;
4772 }
4773 {
4774 PyThreadState* __tstate = wxPyBeginAllowThreads();
4775 wxRect_Set(arg1,arg2,arg3,arg4,arg5);
4776
4777 wxPyEndAllowThreads(__tstate);
4778 if (PyErr_Occurred()) SWIG_fail;
4779 }
4780 Py_INCREF(Py_None); resultobj = Py_None;
4781 return resultobj;
4782 fail:
4783 return NULL;
4784}
4785
4786
4787static PyObject *_wrap_Rect_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
4788 PyObject *resultobj;
4789 wxRect *arg1 = (wxRect *) 0 ;
4790 PyObject *result;
4791 PyObject * obj0 = 0 ;
4792 char *kwnames[] = {
4793 (char *) "self", NULL
4794 };
4795
4796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Rect_Get",kwnames,&obj0)) goto fail;
4797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4799 {
4800 PyThreadState* __tstate = wxPyBeginAllowThreads();
4801 result = (PyObject *)wxRect_Get(arg1);
4802
4803 wxPyEndAllowThreads(__tstate);
4804 if (PyErr_Occurred()) SWIG_fail;
4805 }
4806 resultobj = result;
4807 return resultobj;
4808 fail:
4809 return NULL;
4810}
4811
4812
4813static PyObject * Rect_swigregister(PyObject *self, PyObject *args) {
4814 PyObject *obj;
4815 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4816 SWIG_TypeClientData(SWIGTYPE_p_wxRect, obj);
4817 Py_INCREF(obj);
4818 return Py_BuildValue((char *)"");
4819}
4820static PyObject *_wrap_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4821 PyObject *resultobj;
4822 wxRect *arg1 = (wxRect *) 0 ;
4823 wxRect *arg2 = (wxRect *) 0 ;
4824 PyObject *result;
4825 PyObject * obj0 = 0 ;
4826 PyObject * obj1 = 0 ;
4827 char *kwnames[] = {
4828 (char *) "r1",(char *) "r2", NULL
4829 };
4830
4831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IntersectRect",kwnames,&obj0,&obj1)) goto fail;
4832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRect,
4833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4834 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
4835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4836 {
0439c23b 4837 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4838 PyThreadState* __tstate = wxPyBeginAllowThreads();
4839 result = (PyObject *)wxIntersectRect(arg1,arg2);
4840
4841 wxPyEndAllowThreads(__tstate);
110da5b0 4842 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4843 }
4844 resultobj = result;
4845 return resultobj;
4846 fail:
4847 return NULL;
4848}
4849
4850
4851static PyObject *_wrap_new_Point2D(PyObject *self, PyObject *args, PyObject *kwargs) {
4852 PyObject *resultobj;
4853 double arg1 = (double) 0.0 ;
4854 double arg2 = (double) 0.0 ;
4855 wxPoint2D *result;
4856 PyObject * obj0 = 0 ;
4857 PyObject * obj1 = 0 ;
4858 char *kwnames[] = {
4859 (char *) "x",(char *) "y", NULL
4860 };
4861
4862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point2D",kwnames,&obj0,&obj1)) goto fail;
4863 if (obj0) {
4864 arg1 = (double) SWIG_AsDouble(obj0);
4865 if (PyErr_Occurred()) SWIG_fail;
4866 }
4867 if (obj1) {
4868 arg2 = (double) SWIG_AsDouble(obj1);
4869 if (PyErr_Occurred()) SWIG_fail;
4870 }
4871 {
4872 PyThreadState* __tstate = wxPyBeginAllowThreads();
4873 result = (wxPoint2D *)new wxPoint2D(arg1,arg2);
4874
4875 wxPyEndAllowThreads(__tstate);
4876 if (PyErr_Occurred()) SWIG_fail;
4877 }
4878 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1);
4879 return resultobj;
4880 fail:
4881 return NULL;
4882}
4883
4884
4885static PyObject *_wrap_new_Point2DCopy(PyObject *self, PyObject *args, PyObject *kwargs) {
4886 PyObject *resultobj;
4887 wxPoint2D *arg1 = 0 ;
4888 wxPoint2D *result;
4889 wxPoint2D temp1 ;
4890 PyObject * obj0 = 0 ;
4891 char *kwnames[] = {
4892 (char *) "pt", NULL
4893 };
4894
4895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DCopy",kwnames,&obj0)) goto fail;
4896 {
4897 arg1 = &temp1;
4898 if ( ! wxPoint2D_helper(obj0, &arg1)) SWIG_fail;
4899 }
4900 {
4901 PyThreadState* __tstate = wxPyBeginAllowThreads();
4902 result = (wxPoint2D *)new wxPoint2D((wxPoint2D const &)*arg1);
4903
4904 wxPyEndAllowThreads(__tstate);
4905 if (PyErr_Occurred()) SWIG_fail;
4906 }
4907 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1);
4908 return resultobj;
4909 fail:
4910 return NULL;
4911}
4912
4913
4914static PyObject *_wrap_new_Point2DFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4915 PyObject *resultobj;
4916 wxPoint *arg1 = 0 ;
4917 wxPoint2D *result;
4918 wxPoint temp1 ;
4919 PyObject * obj0 = 0 ;
4920 char *kwnames[] = {
4921 (char *) "pt", NULL
4922 };
4923
4924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DFromPoint",kwnames,&obj0)) goto fail;
4925 {
4926 arg1 = &temp1;
4927 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4928 }
4929 {
4930 PyThreadState* __tstate = wxPyBeginAllowThreads();
4931 result = (wxPoint2D *)new wxPoint2D((wxPoint const &)*arg1);
4932
4933 wxPyEndAllowThreads(__tstate);
4934 if (PyErr_Occurred()) SWIG_fail;
4935 }
4936 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 1);
4937 return resultobj;
4938 fail:
4939 return NULL;
4940}
4941
4942
4943static PyObject *_wrap_Point2D_GetFloor(PyObject *self, PyObject *args, PyObject *kwargs) {
4944 PyObject *resultobj;
4945 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
4946 int *arg2 = (int *) 0 ;
4947 int *arg3 = (int *) 0 ;
4948 int temp2 ;
4949 int temp3 ;
4950 PyObject * obj0 = 0 ;
4951 char *kwnames[] = {
4952 (char *) "self", NULL
4953 };
4954
4955 arg2 = &temp2;
4956 arg3 = &temp3;
4957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetFloor",kwnames,&obj0)) goto fail;
4958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
4959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4960 {
4961 PyThreadState* __tstate = wxPyBeginAllowThreads();
4962 ((wxPoint2D const *)arg1)->GetFloor(arg2,arg3);
4963
4964 wxPyEndAllowThreads(__tstate);
4965 if (PyErr_Occurred()) SWIG_fail;
4966 }
4967 Py_INCREF(Py_None); resultobj = Py_None;
4968 {
4969 PyObject *o = PyInt_FromLong((long) (*arg2));
4970 resultobj = t_output_helper(resultobj,o);
4971 }
4972 {
4973 PyObject *o = PyInt_FromLong((long) (*arg3));
4974 resultobj = t_output_helper(resultobj,o);
4975 }
4976 return resultobj;
4977 fail:
4978 return NULL;
4979}
4980
4981
4982static PyObject *_wrap_Point2D_GetRounded(PyObject *self, PyObject *args, PyObject *kwargs) {
4983 PyObject *resultobj;
4984 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
4985 int *arg2 = (int *) 0 ;
4986 int *arg3 = (int *) 0 ;
4987 int temp2 ;
4988 int temp3 ;
4989 PyObject * obj0 = 0 ;
4990 char *kwnames[] = {
4991 (char *) "self", NULL
4992 };
4993
4994 arg2 = &temp2;
4995 arg3 = &temp3;
4996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetRounded",kwnames,&obj0)) goto fail;
4997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
4998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4999 {
5000 PyThreadState* __tstate = wxPyBeginAllowThreads();
5001 ((wxPoint2D const *)arg1)->GetRounded(arg2,arg3);
5002
5003 wxPyEndAllowThreads(__tstate);
5004 if (PyErr_Occurred()) SWIG_fail;
5005 }
5006 Py_INCREF(Py_None); resultobj = Py_None;
5007 {
5008 PyObject *o = PyInt_FromLong((long) (*arg2));
5009 resultobj = t_output_helper(resultobj,o);
5010 }
5011 {
5012 PyObject *o = PyInt_FromLong((long) (*arg3));
5013 resultobj = t_output_helper(resultobj,o);
5014 }
5015 return resultobj;
5016 fail:
5017 return NULL;
5018}
5019
5020
5021static PyObject *_wrap_Point2D_GetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) {
5022 PyObject *resultobj;
5023 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5024 double result;
5025 PyObject * obj0 = 0 ;
5026 char *kwnames[] = {
5027 (char *) "self", NULL
5028 };
5029
5030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorLength",kwnames,&obj0)) goto fail;
5031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5033 {
5034 PyThreadState* __tstate = wxPyBeginAllowThreads();
5035 result = (double)((wxPoint2D const *)arg1)->GetVectorLength();
5036
5037 wxPyEndAllowThreads(__tstate);
5038 if (PyErr_Occurred()) SWIG_fail;
5039 }
5040 resultobj = SWIG_FromDouble((double)result);
5041 return resultobj;
5042 fail:
5043 return NULL;
5044}
5045
5046
5047static PyObject *_wrap_Point2D_GetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) {
5048 PyObject *resultobj;
5049 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5050 double result;
5051 PyObject * obj0 = 0 ;
5052 char *kwnames[] = {
5053 (char *) "self", NULL
5054 };
5055
5056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_GetVectorAngle",kwnames,&obj0)) goto fail;
5057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5059 {
5060 PyThreadState* __tstate = wxPyBeginAllowThreads();
5061 result = (double)((wxPoint2D const *)arg1)->GetVectorAngle();
5062
5063 wxPyEndAllowThreads(__tstate);
5064 if (PyErr_Occurred()) SWIG_fail;
5065 }
5066 resultobj = SWIG_FromDouble((double)result);
5067 return resultobj;
5068 fail:
5069 return NULL;
5070}
5071
5072
5073static PyObject *_wrap_Point2D_SetVectorLength(PyObject *self, PyObject *args, PyObject *kwargs) {
5074 PyObject *resultobj;
5075 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5076 double arg2 ;
5077 PyObject * obj0 = 0 ;
5078 PyObject * obj1 = 0 ;
5079 char *kwnames[] = {
5080 (char *) "self",(char *) "length", NULL
5081 };
5082
5083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorLength",kwnames,&obj0,&obj1)) goto fail;
5084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5086 arg2 = (double) SWIG_AsDouble(obj1);
5087 if (PyErr_Occurred()) SWIG_fail;
5088 {
5089 PyThreadState* __tstate = wxPyBeginAllowThreads();
5090 (arg1)->SetVectorLength(arg2);
5091
5092 wxPyEndAllowThreads(__tstate);
5093 if (PyErr_Occurred()) SWIG_fail;
5094 }
5095 Py_INCREF(Py_None); resultobj = Py_None;
5096 return resultobj;
5097 fail:
5098 return NULL;
5099}
5100
5101
5102static PyObject *_wrap_Point2D_SetVectorAngle(PyObject *self, PyObject *args, PyObject *kwargs) {
5103 PyObject *resultobj;
5104 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5105 double arg2 ;
5106 PyObject * obj0 = 0 ;
5107 PyObject * obj1 = 0 ;
5108 char *kwnames[] = {
5109 (char *) "self",(char *) "degrees", NULL
5110 };
5111
5112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorAngle",kwnames,&obj0,&obj1)) goto fail;
5113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5115 arg2 = (double) SWIG_AsDouble(obj1);
5116 if (PyErr_Occurred()) SWIG_fail;
5117 {
5118 PyThreadState* __tstate = wxPyBeginAllowThreads();
5119 (arg1)->SetVectorAngle(arg2);
5120
5121 wxPyEndAllowThreads(__tstate);
5122 if (PyErr_Occurred()) SWIG_fail;
5123 }
5124 Py_INCREF(Py_None); resultobj = Py_None;
5125 return resultobj;
5126 fail:
5127 return NULL;
5128}
5129
5130
5131static PyObject *_wrap_Point2D_GetDistance(PyObject *self, PyObject *args, PyObject *kwargs) {
5132 PyObject *resultobj;
5133 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5134 wxPoint2D *arg2 = 0 ;
5135 double result;
5136 wxPoint2D temp2 ;
5137 PyObject * obj0 = 0 ;
5138 PyObject * obj1 = 0 ;
5139 char *kwnames[] = {
5140 (char *) "self",(char *) "pt", NULL
5141 };
5142
5143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistance",kwnames,&obj0,&obj1)) goto fail;
5144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5146 {
5147 arg2 = &temp2;
5148 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5149 }
5150 {
5151 PyThreadState* __tstate = wxPyBeginAllowThreads();
5152 result = (double)((wxPoint2D const *)arg1)->GetDistance((wxPoint2D const &)*arg2);
5153
5154 wxPyEndAllowThreads(__tstate);
5155 if (PyErr_Occurred()) SWIG_fail;
5156 }
5157 resultobj = SWIG_FromDouble((double)result);
5158 return resultobj;
5159 fail:
5160 return NULL;
5161}
5162
5163
5164static PyObject *_wrap_Point2D_GetDistanceSquare(PyObject *self, PyObject *args, PyObject *kwargs) {
5165 PyObject *resultobj;
5166 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5167 wxPoint2D *arg2 = 0 ;
5168 double result;
5169 wxPoint2D temp2 ;
5170 PyObject * obj0 = 0 ;
5171 PyObject * obj1 = 0 ;
5172 char *kwnames[] = {
5173 (char *) "self",(char *) "pt", NULL
5174 };
5175
5176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistanceSquare",kwnames,&obj0,&obj1)) goto fail;
5177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5179 {
5180 arg2 = &temp2;
5181 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5182 }
5183 {
5184 PyThreadState* __tstate = wxPyBeginAllowThreads();
5185 result = (double)((wxPoint2D const *)arg1)->GetDistanceSquare((wxPoint2D const &)*arg2);
5186
5187 wxPyEndAllowThreads(__tstate);
5188 if (PyErr_Occurred()) SWIG_fail;
5189 }
5190 resultobj = SWIG_FromDouble((double)result);
5191 return resultobj;
5192 fail:
5193 return NULL;
5194}
5195
5196
5197static PyObject *_wrap_Point2D_GetDotProduct(PyObject *self, PyObject *args, PyObject *kwargs) {
5198 PyObject *resultobj;
5199 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5200 wxPoint2D *arg2 = 0 ;
5201 double result;
5202 wxPoint2D temp2 ;
5203 PyObject * obj0 = 0 ;
5204 PyObject * obj1 = 0 ;
5205 char *kwnames[] = {
5206 (char *) "self",(char *) "vec", NULL
5207 };
5208
5209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDotProduct",kwnames,&obj0,&obj1)) goto fail;
5210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5212 {
5213 arg2 = &temp2;
5214 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5215 }
5216 {
5217 PyThreadState* __tstate = wxPyBeginAllowThreads();
5218 result = (double)((wxPoint2D const *)arg1)->GetDotProduct((wxPoint2D const &)*arg2);
5219
5220 wxPyEndAllowThreads(__tstate);
5221 if (PyErr_Occurred()) SWIG_fail;
5222 }
5223 resultobj = SWIG_FromDouble((double)result);
5224 return resultobj;
5225 fail:
5226 return NULL;
5227}
5228
5229
5230static PyObject *_wrap_Point2D_GetCrossProduct(PyObject *self, PyObject *args, PyObject *kwargs) {
5231 PyObject *resultobj;
5232 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5233 wxPoint2D *arg2 = 0 ;
5234 double result;
5235 wxPoint2D temp2 ;
5236 PyObject * obj0 = 0 ;
5237 PyObject * obj1 = 0 ;
5238 char *kwnames[] = {
5239 (char *) "self",(char *) "vec", NULL
5240 };
5241
5242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetCrossProduct",kwnames,&obj0,&obj1)) goto fail;
5243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5245 {
5246 arg2 = &temp2;
5247 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5248 }
5249 {
5250 PyThreadState* __tstate = wxPyBeginAllowThreads();
5251 result = (double)((wxPoint2D const *)arg1)->GetCrossProduct((wxPoint2D const &)*arg2);
5252
5253 wxPyEndAllowThreads(__tstate);
5254 if (PyErr_Occurred()) SWIG_fail;
5255 }
5256 resultobj = SWIG_FromDouble((double)result);
5257 return resultobj;
5258 fail:
5259 return NULL;
5260}
5261
5262
5263static PyObject *_wrap_Point2D___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
5264 PyObject *resultobj;
5265 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5266 wxPoint2D result;
5267 PyObject * obj0 = 0 ;
5268 char *kwnames[] = {
5269 (char *) "self", NULL
5270 };
5271
5272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D___neg__",kwnames,&obj0)) goto fail;
5273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5275 {
5276 PyThreadState* __tstate = wxPyBeginAllowThreads();
5277 result = (arg1)->operator -();
5278
5279 wxPyEndAllowThreads(__tstate);
5280 if (PyErr_Occurred()) SWIG_fail;
5281 }
5282 {
5283 wxPoint2D * resultptr;
5284 resultptr = new wxPoint2D((wxPoint2D &) result);
5285 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint2D, 1);
5286 }
5287 return resultobj;
5288 fail:
5289 return NULL;
5290}
5291
5292
5293static PyObject *_wrap_Point2D___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
5294 PyObject *resultobj;
5295 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5296 wxPoint2D *arg2 = 0 ;
5297 wxPoint2D *result;
5298 wxPoint2D temp2 ;
5299 PyObject * obj0 = 0 ;
5300 PyObject * obj1 = 0 ;
5301 char *kwnames[] = {
5302 (char *) "self",(char *) "pt", NULL
5303 };
5304
5305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___iadd__",kwnames,&obj0,&obj1)) goto fail;
5306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5308 {
5309 arg2 = &temp2;
5310 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5311 }
5312 {
5313 PyThreadState* __tstate = wxPyBeginAllowThreads();
5314 {
5315 wxPoint2D &_result_ref = (arg1)->operator +=((wxPoint2D const &)*arg2);
5316 result = (wxPoint2D *) &_result_ref;
5317 }
5318
5319 wxPyEndAllowThreads(__tstate);
5320 if (PyErr_Occurred()) SWIG_fail;
5321 }
5322 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0);
5323 return resultobj;
5324 fail:
5325 return NULL;
5326}
5327
5328
5329static PyObject *_wrap_Point2D___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
5330 PyObject *resultobj;
5331 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5332 wxPoint2D *arg2 = 0 ;
5333 wxPoint2D *result;
5334 wxPoint2D temp2 ;
5335 PyObject * obj0 = 0 ;
5336 PyObject * obj1 = 0 ;
5337 char *kwnames[] = {
5338 (char *) "self",(char *) "pt", NULL
5339 };
5340
5341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___isub__",kwnames,&obj0,&obj1)) goto fail;
5342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5344 {
5345 arg2 = &temp2;
5346 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5347 }
5348 {
5349 PyThreadState* __tstate = wxPyBeginAllowThreads();
5350 {
5351 wxPoint2D &_result_ref = (arg1)->operator -=((wxPoint2D const &)*arg2);
5352 result = (wxPoint2D *) &_result_ref;
5353 }
5354
5355 wxPyEndAllowThreads(__tstate);
5356 if (PyErr_Occurred()) SWIG_fail;
5357 }
5358 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0);
5359 return resultobj;
5360 fail:
5361 return NULL;
5362}
5363
5364
5365static PyObject *_wrap_Point2D___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
5366 PyObject *resultobj;
5367 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5368 wxPoint2D *arg2 = 0 ;
5369 wxPoint2D *result;
5370 wxPoint2D temp2 ;
5371 PyObject * obj0 = 0 ;
5372 PyObject * obj1 = 0 ;
5373 char *kwnames[] = {
5374 (char *) "self",(char *) "pt", NULL
5375 };
5376
5377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___imul__",kwnames,&obj0,&obj1)) goto fail;
5378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5380 {
5381 arg2 = &temp2;
5382 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5383 }
5384 {
5385 PyThreadState* __tstate = wxPyBeginAllowThreads();
5386 {
5387 wxPoint2D &_result_ref = (arg1)->operator *=((wxPoint2D const &)*arg2);
5388 result = (wxPoint2D *) &_result_ref;
5389 }
5390
5391 wxPyEndAllowThreads(__tstate);
5392 if (PyErr_Occurred()) SWIG_fail;
5393 }
5394 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0);
5395 return resultobj;
5396 fail:
5397 return NULL;
5398}
5399
5400
5401static PyObject *_wrap_Point2D___idiv__(PyObject *self, PyObject *args, PyObject *kwargs) {
5402 PyObject *resultobj;
5403 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5404 wxPoint2D *arg2 = 0 ;
5405 wxPoint2D *result;
5406 wxPoint2D temp2 ;
5407 PyObject * obj0 = 0 ;
5408 PyObject * obj1 = 0 ;
5409 char *kwnames[] = {
5410 (char *) "self",(char *) "pt", NULL
5411 };
5412
5413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___idiv__",kwnames,&obj0,&obj1)) goto fail;
5414 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5416 {
5417 arg2 = &temp2;
5418 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5419 }
5420 {
5421 PyThreadState* __tstate = wxPyBeginAllowThreads();
5422 {
5423 wxPoint2D &_result_ref = (arg1)->operator /=((wxPoint2D const &)*arg2);
5424 result = (wxPoint2D *) &_result_ref;
5425 }
5426
5427 wxPyEndAllowThreads(__tstate);
5428 if (PyErr_Occurred()) SWIG_fail;
5429 }
5430 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint2D, 0);
5431 return resultobj;
5432 fail:
5433 return NULL;
5434}
5435
5436
5437static PyObject *_wrap_Point2D___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
5438 PyObject *resultobj;
5439 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5440 wxPoint2D *arg2 = 0 ;
5441 bool result;
5442 wxPoint2D temp2 ;
5443 PyObject * obj0 = 0 ;
5444 PyObject * obj1 = 0 ;
5445 char *kwnames[] = {
5446 (char *) "self",(char *) "pt", NULL
5447 };
5448
5449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___eq__",kwnames,&obj0,&obj1)) goto fail;
5450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5452 {
5453 arg2 = &temp2;
5454 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5455 }
5456 {
5457 PyThreadState* __tstate = wxPyBeginAllowThreads();
5458 result = (bool)((wxPoint2D const *)arg1)->operator ==((wxPoint2D const &)*arg2);
5459
5460 wxPyEndAllowThreads(__tstate);
5461 if (PyErr_Occurred()) SWIG_fail;
5462 }
5463 {
5464 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5465 }
5466 return resultobj;
5467 fail:
5468 return NULL;
5469}
5470
5471
5472static PyObject *_wrap_Point2D___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
5473 PyObject *resultobj;
5474 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5475 wxPoint2D *arg2 = 0 ;
5476 bool result;
5477 wxPoint2D temp2 ;
5478 PyObject * obj0 = 0 ;
5479 PyObject * obj1 = 0 ;
5480 char *kwnames[] = {
5481 (char *) "self",(char *) "pt", NULL
5482 };
5483
5484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___ne__",kwnames,&obj0,&obj1)) goto fail;
5485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5487 {
5488 arg2 = &temp2;
5489 if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
5490 }
5491 {
5492 PyThreadState* __tstate = wxPyBeginAllowThreads();
5493 result = (bool)((wxPoint2D const *)arg1)->operator !=((wxPoint2D const &)*arg2);
5494
5495 wxPyEndAllowThreads(__tstate);
5496 if (PyErr_Occurred()) SWIG_fail;
5497 }
5498 {
5499 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5500 }
5501 return resultobj;
5502 fail:
5503 return NULL;
5504}
5505
5506
5507static PyObject *_wrap_Point2D_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
5508 PyObject *resultobj;
5509 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5510 double arg2 ;
5511 PyObject * obj0 = 0 ;
5512 PyObject * obj1 = 0 ;
5513 char *kwnames[] = {
5514 (char *) "self",(char *) "m_x", NULL
5515 };
5516
5517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_x_set",kwnames,&obj0,&obj1)) goto fail;
5518 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5520 arg2 = (double) SWIG_AsDouble(obj1);
5521 if (PyErr_Occurred()) SWIG_fail;
5522 if (arg1) (arg1)->m_x = arg2;
5523
5524 Py_INCREF(Py_None); resultobj = Py_None;
5525 return resultobj;
5526 fail:
5527 return NULL;
5528}
5529
5530
5531static PyObject *_wrap_Point2D_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
5532 PyObject *resultobj;
5533 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5534 double result;
5535 PyObject * obj0 = 0 ;
5536 char *kwnames[] = {
5537 (char *) "self", NULL
5538 };
5539
5540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_x_get",kwnames,&obj0)) goto fail;
5541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5543 result = (double) ((arg1)->m_x);
5544
5545 resultobj = SWIG_FromDouble((double)result);
5546 return resultobj;
5547 fail:
5548 return NULL;
5549}
5550
5551
5552static PyObject *_wrap_Point2D_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
5553 PyObject *resultobj;
5554 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5555 double arg2 ;
5556 PyObject * obj0 = 0 ;
5557 PyObject * obj1 = 0 ;
5558 char *kwnames[] = {
5559 (char *) "self",(char *) "m_y", NULL
5560 };
5561
5562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_y_set",kwnames,&obj0,&obj1)) goto fail;
5563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5565 arg2 = (double) SWIG_AsDouble(obj1);
5566 if (PyErr_Occurred()) SWIG_fail;
5567 if (arg1) (arg1)->m_y = arg2;
5568
5569 Py_INCREF(Py_None); resultobj = Py_None;
5570 return resultobj;
5571 fail:
5572 return NULL;
5573}
5574
5575
5576static PyObject *_wrap_Point2D_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
5577 PyObject *resultobj;
5578 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5579 double result;
5580 PyObject * obj0 = 0 ;
5581 char *kwnames[] = {
5582 (char *) "self", NULL
5583 };
5584
5585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_y_get",kwnames,&obj0)) goto fail;
5586 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5587 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5588 result = (double) ((arg1)->m_y);
5589
5590 resultobj = SWIG_FromDouble((double)result);
5591 return resultobj;
5592 fail:
5593 return NULL;
5594}
5595
5596
5597static PyObject *_wrap_Point2D_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
5598 PyObject *resultobj;
5599 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5600 double arg2 = (double) 0 ;
5601 double arg3 = (double) 0 ;
5602 PyObject * obj0 = 0 ;
5603 PyObject * obj1 = 0 ;
5604 PyObject * obj2 = 0 ;
5605 char *kwnames[] = {
5606 (char *) "self",(char *) "x",(char *) "y", NULL
5607 };
5608
5609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Point2D_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
5610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5612 if (obj1) {
5613 arg2 = (double) SWIG_AsDouble(obj1);
5614 if (PyErr_Occurred()) SWIG_fail;
5615 }
5616 if (obj2) {
5617 arg3 = (double) SWIG_AsDouble(obj2);
5618 if (PyErr_Occurred()) SWIG_fail;
5619 }
5620 {
5621 PyThreadState* __tstate = wxPyBeginAllowThreads();
5622 wxPoint2D_Set(arg1,arg2,arg3);
5623
5624 wxPyEndAllowThreads(__tstate);
5625 if (PyErr_Occurred()) SWIG_fail;
5626 }
5627 Py_INCREF(Py_None); resultobj = Py_None;
5628 return resultobj;
5629 fail:
5630 return NULL;
5631}
5632
5633
5634static PyObject *_wrap_Point2D_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
5635 PyObject *resultobj;
5636 wxPoint2D *arg1 = (wxPoint2D *) 0 ;
5637 PyObject *result;
5638 PyObject * obj0 = 0 ;
5639 char *kwnames[] = {
5640 (char *) "self", NULL
5641 };
5642
5643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Point2D_Get",kwnames,&obj0)) goto fail;
5644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPoint2D,
5645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5646 {
5647 PyThreadState* __tstate = wxPyBeginAllowThreads();
5648 result = (PyObject *)wxPoint2D_Get(arg1);
5649
5650 wxPyEndAllowThreads(__tstate);
5651 if (PyErr_Occurred()) SWIG_fail;
5652 }
5653 resultobj = result;
5654 return resultobj;
5655 fail:
5656 return NULL;
5657}
5658
5659
5660static PyObject * Point2D_swigregister(PyObject *self, PyObject *args) {
5661 PyObject *obj;
5662 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5663 SWIG_TypeClientData(SWIGTYPE_p_wxPoint2D, obj);
5664 Py_INCREF(obj);
5665 return Py_BuildValue((char *)"");
5666}
5667static int _wrap_DefaultPosition_set(PyObject *_val) {
5668 PyErr_SetString(PyExc_TypeError,"Variable DefaultPosition is read-only.");
5669 return 1;
5670}
5671
5672
5673static PyObject *_wrap_DefaultPosition_get() {
5674 PyObject *pyobj;
5675
5676 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultPosition), SWIGTYPE_p_wxPoint, 0);
5677 return pyobj;
5678}
5679
5680
5681static int _wrap_DefaultSize_set(PyObject *_val) {
5682 PyErr_SetString(PyExc_TypeError,"Variable DefaultSize is read-only.");
5683 return 1;
5684}
5685
5686
5687static PyObject *_wrap_DefaultSize_get() {
5688 PyObject *pyobj;
5689
5690 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSize), SWIGTYPE_p_wxSize, 0);
5691 return pyobj;
5692}
5693
5694
5695static PyObject *_wrap_new_InputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
5696 PyObject *resultobj;
5697 PyObject *arg1 = (PyObject *) 0 ;
5698 wxPyInputStream *result;
5699 PyObject * obj0 = 0 ;
5700 char *kwnames[] = {
5701 (char *) "p", NULL
5702 };
5703
5704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_InputStream",kwnames,&obj0)) goto fail;
5705 arg1 = obj0;
5706 {
5707 PyThreadState* __tstate = wxPyBeginAllowThreads();
5708 result = (wxPyInputStream *)new_wxPyInputStream(arg1);
5709
5710 wxPyEndAllowThreads(__tstate);
5711 if (PyErr_Occurred()) SWIG_fail;
5712 }
5713 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyInputStream, 1);
5714 return resultobj;
5715 fail:
5716 return NULL;
5717}
5718
5719
5720static PyObject *_wrap_InputStream_close(PyObject *self, PyObject *args, PyObject *kwargs) {
5721 PyObject *resultobj;
5722 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5723 PyObject * obj0 = 0 ;
5724 char *kwnames[] = {
5725 (char *) "self", NULL
5726 };
5727
5728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_close",kwnames,&obj0)) goto fail;
5729 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5730 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5731 {
5732 PyThreadState* __tstate = wxPyBeginAllowThreads();
5733 (arg1)->close();
5734
5735 wxPyEndAllowThreads(__tstate);
5736 if (PyErr_Occurred()) SWIG_fail;
5737 }
5738 Py_INCREF(Py_None); resultobj = Py_None;
5739 return resultobj;
5740 fail:
5741 return NULL;
5742}
5743
5744
5745static PyObject *_wrap_InputStream_flush(PyObject *self, PyObject *args, PyObject *kwargs) {
5746 PyObject *resultobj;
5747 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5748 PyObject * obj0 = 0 ;
5749 char *kwnames[] = {
5750 (char *) "self", NULL
5751 };
5752
5753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_flush",kwnames,&obj0)) goto fail;
5754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5756 {
5757 PyThreadState* __tstate = wxPyBeginAllowThreads();
5758 (arg1)->flush();
5759
5760 wxPyEndAllowThreads(__tstate);
5761 if (PyErr_Occurred()) SWIG_fail;
5762 }
5763 Py_INCREF(Py_None); resultobj = Py_None;
5764 return resultobj;
5765 fail:
5766 return NULL;
5767}
5768
5769
5770static PyObject *_wrap_InputStream_eof(PyObject *self, PyObject *args, PyObject *kwargs) {
5771 PyObject *resultobj;
5772 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5773 bool result;
5774 PyObject * obj0 = 0 ;
5775 char *kwnames[] = {
5776 (char *) "self", NULL
5777 };
5778
5779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_eof",kwnames,&obj0)) goto fail;
5780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5782 {
5783 PyThreadState* __tstate = wxPyBeginAllowThreads();
5784 result = (bool)(arg1)->eof();
5785
5786 wxPyEndAllowThreads(__tstate);
5787 if (PyErr_Occurred()) SWIG_fail;
5788 }
5789 {
5790 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5791 }
5792 return resultobj;
5793 fail:
5794 return NULL;
5795}
5796
5797
5798static PyObject *_wrap_InputStream_read(PyObject *self, PyObject *args, PyObject *kwargs) {
5799 PyObject *resultobj;
5800 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5801 int arg2 = (int) -1 ;
5802 PyObject *result;
5803 PyObject * obj0 = 0 ;
5804 PyObject * obj1 = 0 ;
5805 char *kwnames[] = {
5806 (char *) "self",(char *) "size", NULL
5807 };
5808
5809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_read",kwnames,&obj0,&obj1)) goto fail;
5810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5812 if (obj1) {
5813 arg2 = (int) SWIG_AsInt(obj1);
5814 if (PyErr_Occurred()) SWIG_fail;
5815 }
5816 {
5817 PyThreadState* __tstate = wxPyBeginAllowThreads();
5818 result = (PyObject *)(arg1)->read(arg2);
5819
5820 wxPyEndAllowThreads(__tstate);
5821 if (PyErr_Occurred()) SWIG_fail;
5822 }
5823 resultobj = result;
5824 return resultobj;
5825 fail:
5826 return NULL;
5827}
5828
5829
5830static PyObject *_wrap_InputStream_readline(PyObject *self, PyObject *args, PyObject *kwargs) {
5831 PyObject *resultobj;
5832 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5833 int arg2 = (int) -1 ;
5834 PyObject *result;
5835 PyObject * obj0 = 0 ;
5836 PyObject * obj1 = 0 ;
5837 char *kwnames[] = {
5838 (char *) "self",(char *) "size", NULL
5839 };
5840
5841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readline",kwnames,&obj0,&obj1)) goto fail;
5842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5844 if (obj1) {
5845 arg2 = (int) SWIG_AsInt(obj1);
5846 if (PyErr_Occurred()) SWIG_fail;
5847 }
5848 {
5849 PyThreadState* __tstate = wxPyBeginAllowThreads();
5850 result = (PyObject *)(arg1)->readline(arg2);
5851
5852 wxPyEndAllowThreads(__tstate);
5853 if (PyErr_Occurred()) SWIG_fail;
5854 }
5855 resultobj = result;
5856 return resultobj;
5857 fail:
5858 return NULL;
5859}
5860
5861
5862static PyObject *_wrap_InputStream_readlines(PyObject *self, PyObject *args, PyObject *kwargs) {
5863 PyObject *resultobj;
5864 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5865 int arg2 = (int) -1 ;
5866 PyObject *result;
5867 PyObject * obj0 = 0 ;
5868 PyObject * obj1 = 0 ;
5869 char *kwnames[] = {
5870 (char *) "self",(char *) "sizehint", NULL
5871 };
5872
5873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readlines",kwnames,&obj0,&obj1)) goto fail;
5874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5876 if (obj1) {
5877 arg2 = (int) SWIG_AsInt(obj1);
5878 if (PyErr_Occurred()) SWIG_fail;
5879 }
5880 {
5881 PyThreadState* __tstate = wxPyBeginAllowThreads();
5882 result = (PyObject *)(arg1)->readlines(arg2);
5883
5884 wxPyEndAllowThreads(__tstate);
5885 if (PyErr_Occurred()) SWIG_fail;
5886 }
5887 resultobj = result;
5888 return resultobj;
5889 fail:
5890 return NULL;
5891}
5892
5893
5894static PyObject *_wrap_InputStream_seek(PyObject *self, PyObject *args, PyObject *kwargs) {
5895 PyObject *resultobj;
5896 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5897 int arg2 ;
5898 int arg3 = (int) 0 ;
5899 PyObject * obj0 = 0 ;
5900 PyObject * obj1 = 0 ;
5901 PyObject * obj2 = 0 ;
5902 char *kwnames[] = {
5903 (char *) "self",(char *) "offset",(char *) "whence", NULL
5904 };
5905
5906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_seek",kwnames,&obj0,&obj1,&obj2)) goto fail;
5907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5909 arg2 = (int) SWIG_AsInt(obj1);
5910 if (PyErr_Occurred()) SWIG_fail;
5911 if (obj2) {
5912 arg3 = (int) SWIG_AsInt(obj2);
5913 if (PyErr_Occurred()) SWIG_fail;
5914 }
5915 {
5916 PyThreadState* __tstate = wxPyBeginAllowThreads();
5917 (arg1)->seek(arg2,arg3);
5918
5919 wxPyEndAllowThreads(__tstate);
5920 if (PyErr_Occurred()) SWIG_fail;
5921 }
5922 Py_INCREF(Py_None); resultobj = Py_None;
5923 return resultobj;
5924 fail:
5925 return NULL;
5926}
5927
5928
5929static PyObject *_wrap_InputStream_tell(PyObject *self, PyObject *args, PyObject *kwargs) {
5930 PyObject *resultobj;
5931 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5932 int result;
5933 PyObject * obj0 = 0 ;
5934 char *kwnames[] = {
5935 (char *) "self", NULL
5936 };
5937
5938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_tell",kwnames,&obj0)) goto fail;
5939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5941 {
5942 PyThreadState* __tstate = wxPyBeginAllowThreads();
5943 result = (int)(arg1)->tell();
5944
5945 wxPyEndAllowThreads(__tstate);
5946 if (PyErr_Occurred()) SWIG_fail;
5947 }
5948 resultobj = SWIG_FromInt((int)result);
5949 return resultobj;
5950 fail:
5951 return NULL;
5952}
5953
5954
5955static PyObject *_wrap_InputStream_Peek(PyObject *self, PyObject *args, PyObject *kwargs) {
5956 PyObject *resultobj;
5957 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5958 char result;
5959 PyObject * obj0 = 0 ;
5960 char *kwnames[] = {
5961 (char *) "self", NULL
5962 };
5963
5964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Peek",kwnames,&obj0)) goto fail;
5965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5967 {
5968 PyThreadState* __tstate = wxPyBeginAllowThreads();
5969 result = (char)(arg1)->Peek();
5970
5971 wxPyEndAllowThreads(__tstate);
5972 if (PyErr_Occurred()) SWIG_fail;
5973 }
5974 resultobj = SWIG_FromChar((char)result);
5975 return resultobj;
5976 fail:
5977 return NULL;
5978}
5979
5980
5981static PyObject *_wrap_InputStream_GetC(PyObject *self, PyObject *args, PyObject *kwargs) {
5982 PyObject *resultobj;
5983 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
5984 char result;
5985 PyObject * obj0 = 0 ;
5986 char *kwnames[] = {
5987 (char *) "self", NULL
5988 };
5989
5990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_GetC",kwnames,&obj0)) goto fail;
5991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
5992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5993 {
5994 PyThreadState* __tstate = wxPyBeginAllowThreads();
5995 result = (char)(arg1)->GetC();
5996
5997 wxPyEndAllowThreads(__tstate);
5998 if (PyErr_Occurred()) SWIG_fail;
5999 }
6000 resultobj = SWIG_FromChar((char)result);
6001 return resultobj;
6002 fail:
6003 return NULL;
6004}
6005
6006
6007static PyObject *_wrap_InputStream_LastRead(PyObject *self, PyObject *args, PyObject *kwargs) {
6008 PyObject *resultobj;
6009 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6010 size_t result;
6011 PyObject * obj0 = 0 ;
6012 char *kwnames[] = {
6013 (char *) "self", NULL
6014 };
6015
6016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_LastRead",kwnames,&obj0)) goto fail;
6017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6019 {
6020 PyThreadState* __tstate = wxPyBeginAllowThreads();
6021 result = (size_t)(arg1)->LastRead();
6022
6023 wxPyEndAllowThreads(__tstate);
6024 if (PyErr_Occurred()) SWIG_fail;
6025 }
6026 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
6027 return resultobj;
6028 fail:
6029 return NULL;
6030}
6031
6032
6033static PyObject *_wrap_InputStream_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) {
6034 PyObject *resultobj;
6035 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6036 bool result;
6037 PyObject * obj0 = 0 ;
6038 char *kwnames[] = {
6039 (char *) "self", NULL
6040 };
6041
6042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_CanRead",kwnames,&obj0)) goto fail;
6043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6045 {
6046 PyThreadState* __tstate = wxPyBeginAllowThreads();
6047 result = (bool)(arg1)->CanRead();
6048
6049 wxPyEndAllowThreads(__tstate);
6050 if (PyErr_Occurred()) SWIG_fail;
6051 }
6052 {
6053 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6054 }
6055 return resultobj;
6056 fail:
6057 return NULL;
6058}
6059
6060
6061static PyObject *_wrap_InputStream_Eof(PyObject *self, PyObject *args, PyObject *kwargs) {
6062 PyObject *resultobj;
6063 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6064 bool result;
6065 PyObject * obj0 = 0 ;
6066 char *kwnames[] = {
6067 (char *) "self", NULL
6068 };
6069
6070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_Eof",kwnames,&obj0)) goto fail;
6071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6073 {
6074 PyThreadState* __tstate = wxPyBeginAllowThreads();
6075 result = (bool)(arg1)->Eof();
6076
6077 wxPyEndAllowThreads(__tstate);
6078 if (PyErr_Occurred()) SWIG_fail;
6079 }
6080 {
6081 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6082 }
6083 return resultobj;
6084 fail:
6085 return NULL;
6086}
6087
6088
6089static PyObject *_wrap_InputStream_Ungetch(PyObject *self, PyObject *args, PyObject *kwargs) {
6090 PyObject *resultobj;
6091 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6092 char arg2 ;
6093 bool result;
6094 PyObject * obj0 = 0 ;
6095 PyObject * obj1 = 0 ;
6096 char *kwnames[] = {
6097 (char *) "self",(char *) "c", NULL
6098 };
6099
6100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InputStream_Ungetch",kwnames,&obj0,&obj1)) goto fail;
6101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6103 arg2 = (char) SWIG_AsChar(obj1);
6104 if (PyErr_Occurred()) SWIG_fail;
6105 {
6106 PyThreadState* __tstate = wxPyBeginAllowThreads();
6107 result = (bool)(arg1)->Ungetch(arg2);
6108
6109 wxPyEndAllowThreads(__tstate);
6110 if (PyErr_Occurred()) SWIG_fail;
6111 }
6112 {
6113 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6114 }
6115 return resultobj;
6116 fail:
6117 return NULL;
6118}
6119
6120
6121static PyObject *_wrap_InputStream_SeekI(PyObject *self, PyObject *args, PyObject *kwargs) {
6122 PyObject *resultobj;
6123 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6124 long arg2 ;
6125 int arg3 = (int) wxFromStart ;
6126 long result;
6127 PyObject * obj0 = 0 ;
6128 PyObject * obj1 = 0 ;
6129 PyObject * obj2 = 0 ;
6130 char *kwnames[] = {
6131 (char *) "self",(char *) "pos",(char *) "mode", NULL
6132 };
6133
6134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_SeekI",kwnames,&obj0,&obj1,&obj2)) goto fail;
6135 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6137 arg2 = (long) SWIG_AsLong(obj1);
6138 if (PyErr_Occurred()) SWIG_fail;
6139 if (obj2) {
6140 arg3 = (wxSeekMode) SWIG_AsInt(obj2);
6141 if (PyErr_Occurred()) SWIG_fail;
6142 }
6143 {
6144 PyThreadState* __tstate = wxPyBeginAllowThreads();
6145 result = (long)(arg1)->SeekI(arg2,(wxSeekMode )arg3);
6146
6147 wxPyEndAllowThreads(__tstate);
6148 if (PyErr_Occurred()) SWIG_fail;
6149 }
6150 resultobj = SWIG_FromLong((long)result);
6151 return resultobj;
6152 fail:
6153 return NULL;
6154}
6155
6156
6157static PyObject *_wrap_InputStream_TellI(PyObject *self, PyObject *args, PyObject *kwargs) {
6158 PyObject *resultobj;
6159 wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
6160 long result;
6161 PyObject * obj0 = 0 ;
6162 char *kwnames[] = {
6163 (char *) "self", NULL
6164 };
6165
6166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:InputStream_TellI",kwnames,&obj0)) goto fail;
6167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyInputStream,
6168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6169 {
6170 PyThreadState* __tstate = wxPyBeginAllowThreads();
6171 result = (long)(arg1)->TellI();
6172
6173 wxPyEndAllowThreads(__tstate);
6174 if (PyErr_Occurred()) SWIG_fail;
6175 }
6176 resultobj = SWIG_FromLong((long)result);
6177 return resultobj;
6178 fail:
6179 return NULL;
6180}
6181
6182
6183static PyObject * InputStream_swigregister(PyObject *self, PyObject *args) {
6184 PyObject *obj;
6185 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6186 SWIG_TypeClientData(SWIGTYPE_p_wxPyInputStream, obj);
6187 Py_INCREF(obj);
6188 return Py_BuildValue((char *)"");
6189}
6190static PyObject *_wrap_OutputStream_write(PyObject *self, PyObject *args, PyObject *kwargs) {
6191 PyObject *resultobj;
6192 wxOutputStream *arg1 = (wxOutputStream *) 0 ;
6193 PyObject *arg2 = (PyObject *) 0 ;
6194 PyObject * obj0 = 0 ;
6195 PyObject * obj1 = 0 ;
6196 char *kwnames[] = {
6197 (char *) "self",(char *) "obj", NULL
6198 };
6199
6200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:OutputStream_write",kwnames,&obj0,&obj1)) goto fail;
6201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxOutputStream,
6202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6203 arg2 = obj1;
6204 {
6205 PyThreadState* __tstate = wxPyBeginAllowThreads();
6206 wxOutputStream_write(arg1,arg2);
6207
6208 wxPyEndAllowThreads(__tstate);
6209 if (PyErr_Occurred()) SWIG_fail;
6210 }
6211 Py_INCREF(Py_None); resultobj = Py_None;
6212 return resultobj;
6213 fail:
6214 return NULL;
6215}
6216
6217
6218static PyObject * OutputStream_swigregister(PyObject *self, PyObject *args) {
6219 PyObject *obj;
6220 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6221 SWIG_TypeClientData(SWIGTYPE_p_wxOutputStream, obj);
6222 Py_INCREF(obj);
6223 return Py_BuildValue((char *)"");
6224}
6225static PyObject *_wrap_new_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) {
6226 PyObject *resultobj;
6227 wxInputStream *arg1 = (wxInputStream *) 0 ;
6228 wxString *arg2 = 0 ;
6229 wxString *arg3 = 0 ;
6230 wxString *arg4 = 0 ;
6231 wxDateTime arg5 ;
6232 wxFSFile *result;
6233 wxPyInputStream *temp1 ;
6234 bool created1 ;
6235 bool temp2 = False ;
6236 bool temp3 = False ;
6237 bool temp4 = False ;
6238 wxDateTime *argp5 ;
6239 PyObject * obj0 = 0 ;
6240 PyObject * obj1 = 0 ;
6241 PyObject * obj2 = 0 ;
6242 PyObject * obj3 = 0 ;
6243 PyObject * obj4 = 0 ;
6244 char *kwnames[] = {
6245 (char *) "stream",(char *) "loc",(char *) "mimetype",(char *) "anchor",(char *) "modif", NULL
6246 };
6247
6248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
6249 {
6250 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
6251 arg1 = temp1->m_wxis;
6252 created1 = False;
6253 } else {
6254 PyErr_Clear(); // clear the failure of the wxPyConvert above
6255 arg1 = wxPyCBInputStream_create(obj0, False);
6256 if (arg1 == NULL) {
6257 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
6258 SWIG_fail;
6259 }
6260 created1 = True;
6261 }
6262 }
6263 {
6264 arg2 = wxString_in_helper(obj1);
6265 if (arg2 == NULL) SWIG_fail;
6266 temp2 = True;
6267 }
6268 {
6269 arg3 = wxString_in_helper(obj2);
6270 if (arg3 == NULL) SWIG_fail;
6271 temp3 = True;
6272 }
6273 {
6274 arg4 = wxString_in_helper(obj3);
6275 if (arg4 == NULL) SWIG_fail;
6276 temp4 = True;
6277 }
6278 if ((SWIG_ConvertPtr(obj4,(void **)(&argp5),SWIGTYPE_p_wxDateTime,
6279 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
6280 arg5 = *argp5;
6281 {
6282 PyThreadState* __tstate = wxPyBeginAllowThreads();
6283 result = (wxFSFile *)new wxFSFile(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
6284
6285 wxPyEndAllowThreads(__tstate);
6286 if (PyErr_Occurred()) SWIG_fail;
6287 }
6288 {
412d302d 6289 resultobj = wxPyMake_wxObject(result, 1);
d55e5bfc
RD
6290 }
6291 {
6292 if (created1)
6293 delete arg1;
6294 }
6295 {
6296 if (temp2)
6297 delete arg2;
6298 }
6299 {
6300 if (temp3)
6301 delete arg3;
6302 }
6303 {
6304 if (temp4)
6305 delete arg4;
6306 }
6307 return resultobj;
6308 fail:
6309 {
6310 if (created1)
6311 delete arg1;
6312 }
6313 {
6314 if (temp2)
6315 delete arg2;
6316 }
6317 {
6318 if (temp3)
6319 delete arg3;
6320 }
6321 {
6322 if (temp4)
6323 delete arg4;
6324 }
6325 return NULL;
6326}
6327
6328
6329static PyObject *_wrap_delete_FSFile(PyObject *self, PyObject *args, PyObject *kwargs) {
6330 PyObject *resultobj;
6331 wxFSFile *arg1 = (wxFSFile *) 0 ;
6332 PyObject * obj0 = 0 ;
6333 char *kwnames[] = {
6334 (char *) "self", NULL
6335 };
6336
6337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FSFile",kwnames,&obj0)) goto fail;
6338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile,
6339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6340 {
6341 PyThreadState* __tstate = wxPyBeginAllowThreads();
6342 delete arg1;
6343
6344 wxPyEndAllowThreads(__tstate);
6345 if (PyErr_Occurred()) SWIG_fail;
6346 }
6347 Py_INCREF(Py_None); resultobj = Py_None;
6348 return resultobj;
6349 fail:
6350 return NULL;
6351}
6352
6353
6354static PyObject *_wrap_FSFile_GetStream(PyObject *self, PyObject *args, PyObject *kwargs) {
6355 PyObject *resultobj;
6356 wxFSFile *arg1 = (wxFSFile *) 0 ;
6357 wxInputStream *result;
6358 PyObject * obj0 = 0 ;
6359 char *kwnames[] = {
6360 (char *) "self", NULL
6361 };
6362
6363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetStream",kwnames,&obj0)) goto fail;
6364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile,
6365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6366 {
6367 PyThreadState* __tstate = wxPyBeginAllowThreads();
6368 result = (wxInputStream *)(arg1)->GetStream();
6369
6370 wxPyEndAllowThreads(__tstate);
6371 if (PyErr_Occurred()) SWIG_fail;
6372 }
6373 {
6374 wxPyInputStream * _ptr = NULL;
6375
6376 if (result) {
6377 _ptr = new wxPyInputStream(result);
6378 }
6379 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
6380 }
6381 return resultobj;
6382 fail:
6383 return NULL;
6384}
6385
6386
6387static PyObject *_wrap_FSFile_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
6388 PyObject *resultobj;
6389 wxFSFile *arg1 = (wxFSFile *) 0 ;
6390 wxString *result;
6391 PyObject * obj0 = 0 ;
6392 char *kwnames[] = {
6393 (char *) "self", NULL
6394 };
6395
6396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetMimeType",kwnames,&obj0)) goto fail;
6397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile,
6398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6399 {
6400 PyThreadState* __tstate = wxPyBeginAllowThreads();
6401 {
6402 wxString const &_result_ref = (arg1)->GetMimeType();
6403 result = (wxString *) &_result_ref;
6404 }
6405
6406 wxPyEndAllowThreads(__tstate);
6407 if (PyErr_Occurred()) SWIG_fail;
6408 }
6409 {
6410#if wxUSE_UNICODE
6411 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6412#else
6413 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6414#endif
6415 }
6416 return resultobj;
6417 fail:
6418 return NULL;
6419}
6420
6421
6422static PyObject *_wrap_FSFile_GetLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
6423 PyObject *resultobj;
6424 wxFSFile *arg1 = (wxFSFile *) 0 ;
6425 wxString *result;
6426 PyObject * obj0 = 0 ;
6427 char *kwnames[] = {
6428 (char *) "self", NULL
6429 };
6430
6431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetLocation",kwnames,&obj0)) goto fail;
6432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile,
6433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6434 {
6435 PyThreadState* __tstate = wxPyBeginAllowThreads();
6436 {
6437 wxString const &_result_ref = (arg1)->GetLocation();
6438 result = (wxString *) &_result_ref;
6439 }
6440
6441 wxPyEndAllowThreads(__tstate);
6442 if (PyErr_Occurred()) SWIG_fail;
6443 }
6444 {
6445#if wxUSE_UNICODE
6446 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6447#else
6448 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6449#endif
6450 }
6451 return resultobj;
6452 fail:
6453 return NULL;
6454}
6455
6456
6457static PyObject *_wrap_FSFile_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) {
6458 PyObject *resultobj;
6459 wxFSFile *arg1 = (wxFSFile *) 0 ;
6460 wxString *result;
6461 PyObject * obj0 = 0 ;
6462 char *kwnames[] = {
6463 (char *) "self", NULL
6464 };
6465
6466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetAnchor",kwnames,&obj0)) goto fail;
6467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile,
6468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6469 {
6470 PyThreadState* __tstate = wxPyBeginAllowThreads();
6471 {
6472 wxString const &_result_ref = (arg1)->GetAnchor();
6473 result = (wxString *) &_result_ref;
6474 }
6475
6476 wxPyEndAllowThreads(__tstate);
6477 if (PyErr_Occurred()) SWIG_fail;
6478 }
6479 {
6480#if wxUSE_UNICODE
6481 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6482#else
6483 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6484#endif
6485 }
6486 return resultobj;
6487 fail:
6488 return NULL;
6489}
6490
6491
6492static PyObject *_wrap_FSFile_GetModificationTime(PyObject *self, PyObject *args, PyObject *kwargs) {
6493 PyObject *resultobj;
6494 wxFSFile *arg1 = (wxFSFile *) 0 ;
6495 wxDateTime result;
6496 PyObject * obj0 = 0 ;
6497 char *kwnames[] = {
6498 (char *) "self", NULL
6499 };
6500
6501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FSFile_GetModificationTime",kwnames,&obj0)) goto fail;
6502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFSFile,
6503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6504 {
6505 PyThreadState* __tstate = wxPyBeginAllowThreads();
6506 result = (arg1)->GetModificationTime();
6507
6508 wxPyEndAllowThreads(__tstate);
6509 if (PyErr_Occurred()) SWIG_fail;
6510 }
6511 {
6512 wxDateTime * resultptr;
6513 resultptr = new wxDateTime((wxDateTime &) result);
6514 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
6515 }
6516 return resultobj;
6517 fail:
6518 return NULL;
6519}
6520
6521
6522static PyObject * FSFile_swigregister(PyObject *self, PyObject *args) {
6523 PyObject *obj;
6524 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6525 SWIG_TypeClientData(SWIGTYPE_p_wxFSFile, obj);
6526 Py_INCREF(obj);
6527 return Py_BuildValue((char *)"");
6528}
6529static PyObject * CPPFileSystemHandler_swigregister(PyObject *self, PyObject *args) {
6530 PyObject *obj;
6531 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6532 SWIG_TypeClientData(SWIGTYPE_p_wxFileSystemHandler, obj);
6533 Py_INCREF(obj);
6534 return Py_BuildValue((char *)"");
6535}
6536static PyObject *_wrap_new_FileSystemHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
6537 PyObject *resultobj;
6538 wxPyFileSystemHandler *result;
6539 char *kwnames[] = {
6540 NULL
6541 };
6542
6543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystemHandler",kwnames)) goto fail;
6544 {
6545 PyThreadState* __tstate = wxPyBeginAllowThreads();
6546 result = (wxPyFileSystemHandler *)new wxPyFileSystemHandler();
6547
6548 wxPyEndAllowThreads(__tstate);
6549 if (PyErr_Occurred()) SWIG_fail;
6550 }
6551 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileSystemHandler, 1);
6552 return resultobj;
6553 fail:
6554 return NULL;
6555}
6556
6557
6558static PyObject *_wrap_FileSystemHandler__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6559 PyObject *resultobj;
6560 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6561 PyObject *arg2 = (PyObject *) 0 ;
6562 PyObject *arg3 = (PyObject *) 0 ;
6563 PyObject * obj0 = 0 ;
6564 PyObject * obj1 = 0 ;
6565 PyObject * obj2 = 0 ;
6566 char *kwnames[] = {
6567 (char *) "self",(char *) "self",(char *) "_class", NULL
6568 };
6569
6570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
6571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6573 arg2 = obj1;
6574 arg3 = obj2;
6575 {
6576 PyThreadState* __tstate = wxPyBeginAllowThreads();
6577 (arg1)->_setCallbackInfo(arg2,arg3);
6578
6579 wxPyEndAllowThreads(__tstate);
6580 if (PyErr_Occurred()) SWIG_fail;
6581 }
6582 Py_INCREF(Py_None); resultobj = Py_None;
6583 return resultobj;
6584 fail:
6585 return NULL;
6586}
6587
6588
6589static PyObject *_wrap_FileSystemHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) {
6590 PyObject *resultobj;
6591 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6592 wxString *arg2 = 0 ;
6593 bool result;
6594 bool temp2 = False ;
6595 PyObject * obj0 = 0 ;
6596 PyObject * obj1 = 0 ;
6597 char *kwnames[] = {
6598 (char *) "self",(char *) "location", NULL
6599 };
6600
6601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail;
6602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6604 {
6605 arg2 = wxString_in_helper(obj1);
6606 if (arg2 == NULL) SWIG_fail;
6607 temp2 = True;
6608 }
6609 {
6610 PyThreadState* __tstate = wxPyBeginAllowThreads();
6611 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
6612
6613 wxPyEndAllowThreads(__tstate);
6614 if (PyErr_Occurred()) SWIG_fail;
6615 }
6616 {
6617 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6618 }
6619 {
6620 if (temp2)
6621 delete arg2;
6622 }
6623 return resultobj;
6624 fail:
6625 {
6626 if (temp2)
6627 delete arg2;
6628 }
6629 return NULL;
6630}
6631
6632
6633static PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) {
6634 PyObject *resultobj;
6635 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6636 wxFileSystem *arg2 = 0 ;
6637 wxString *arg3 = 0 ;
6638 wxFSFile *result;
6639 bool temp3 = False ;
6640 PyObject * obj0 = 0 ;
6641 PyObject * obj1 = 0 ;
6642 PyObject * obj2 = 0 ;
6643 char *kwnames[] = {
6644 (char *) "self",(char *) "fs",(char *) "location", NULL
6645 };
6646
6647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
6648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6650 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem,
6651 SWIG_POINTER_EXCEPTION | 0)) == -1)
6652 SWIG_fail;
6653 if (arg2 == NULL) {
6654 PyErr_SetString(PyExc_TypeError,"null reference");
6655 SWIG_fail;
6656 }
6657 {
6658 arg3 = wxString_in_helper(obj2);
6659 if (arg3 == NULL) SWIG_fail;
6660 temp3 = True;
6661 }
6662 {
6663 PyThreadState* __tstate = wxPyBeginAllowThreads();
6664 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
6665
6666 wxPyEndAllowThreads(__tstate);
6667 if (PyErr_Occurred()) SWIG_fail;
6668 }
6669 {
412d302d 6670 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
6671 }
6672 {
6673 if (temp3)
6674 delete arg3;
6675 }
6676 return resultobj;
6677 fail:
6678 {
6679 if (temp3)
6680 delete arg3;
6681 }
6682 return NULL;
6683}
6684
6685
6686static PyObject *_wrap_FileSystemHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) {
6687 PyObject *resultobj;
6688 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6689 wxString *arg2 = 0 ;
6690 int arg3 = (int) 0 ;
6691 wxString result;
6692 bool temp2 = False ;
6693 PyObject * obj0 = 0 ;
6694 PyObject * obj1 = 0 ;
6695 PyObject * obj2 = 0 ;
6696 char *kwnames[] = {
6697 (char *) "self",(char *) "spec",(char *) "flags", NULL
6698 };
6699
6700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystemHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail;
6701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6703 {
6704 arg2 = wxString_in_helper(obj1);
6705 if (arg2 == NULL) SWIG_fail;
6706 temp2 = True;
6707 }
6708 if (obj2) {
6709 arg3 = (int) SWIG_AsInt(obj2);
6710 if (PyErr_Occurred()) SWIG_fail;
6711 }
6712 {
6713 PyThreadState* __tstate = wxPyBeginAllowThreads();
6714 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
6715
6716 wxPyEndAllowThreads(__tstate);
6717 if (PyErr_Occurred()) SWIG_fail;
6718 }
6719 {
6720#if wxUSE_UNICODE
6721 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6722#else
6723 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6724#endif
6725 }
6726 {
6727 if (temp2)
6728 delete arg2;
6729 }
6730 return resultobj;
6731 fail:
6732 {
6733 if (temp2)
6734 delete arg2;
6735 }
6736 return NULL;
6737}
6738
6739
6740static PyObject *_wrap_FileSystemHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) {
6741 PyObject *resultobj;
6742 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6743 wxString result;
6744 PyObject * obj0 = 0 ;
6745 char *kwnames[] = {
6746 (char *) "self", NULL
6747 };
6748
6749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystemHandler_FindNext",kwnames,&obj0)) goto fail;
6750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6752 {
6753 PyThreadState* __tstate = wxPyBeginAllowThreads();
6754 result = (arg1)->FindNext();
6755
6756 wxPyEndAllowThreads(__tstate);
6757 if (PyErr_Occurred()) SWIG_fail;
6758 }
6759 {
6760#if wxUSE_UNICODE
6761 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6762#else
6763 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6764#endif
6765 }
6766 return resultobj;
6767 fail:
6768 return NULL;
6769}
6770
6771
6772static PyObject *_wrap_FileSystemHandler_GetProtocol(PyObject *self, PyObject *args, PyObject *kwargs) {
6773 PyObject *resultobj;
6774 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6775 wxString *arg2 = 0 ;
6776 wxString result;
6777 bool temp2 = False ;
6778 PyObject * obj0 = 0 ;
6779 PyObject * obj1 = 0 ;
6780 char *kwnames[] = {
6781 (char *) "self",(char *) "location", NULL
6782 };
6783
6784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetProtocol",kwnames,&obj0,&obj1)) goto fail;
6785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6787 {
6788 arg2 = wxString_in_helper(obj1);
6789 if (arg2 == NULL) SWIG_fail;
6790 temp2 = True;
6791 }
6792 {
6793 PyThreadState* __tstate = wxPyBeginAllowThreads();
6794 result = (arg1)->GetProtocol((wxString const &)*arg2);
6795
6796 wxPyEndAllowThreads(__tstate);
6797 if (PyErr_Occurred()) SWIG_fail;
6798 }
6799 {
6800#if wxUSE_UNICODE
6801 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6802#else
6803 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6804#endif
6805 }
6806 {
6807 if (temp2)
6808 delete arg2;
6809 }
6810 return resultobj;
6811 fail:
6812 {
6813 if (temp2)
6814 delete arg2;
6815 }
6816 return NULL;
6817}
6818
6819
6820static PyObject *_wrap_FileSystemHandler_GetLeftLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
6821 PyObject *resultobj;
6822 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6823 wxString *arg2 = 0 ;
6824 wxString result;
6825 bool temp2 = False ;
6826 PyObject * obj0 = 0 ;
6827 PyObject * obj1 = 0 ;
6828 char *kwnames[] = {
6829 (char *) "self",(char *) "location", NULL
6830 };
6831
6832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetLeftLocation",kwnames,&obj0,&obj1)) goto fail;
6833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6835 {
6836 arg2 = wxString_in_helper(obj1);
6837 if (arg2 == NULL) SWIG_fail;
6838 temp2 = True;
6839 }
6840 {
6841 PyThreadState* __tstate = wxPyBeginAllowThreads();
6842 result = (arg1)->GetLeftLocation((wxString const &)*arg2);
6843
6844 wxPyEndAllowThreads(__tstate);
6845 if (PyErr_Occurred()) SWIG_fail;
6846 }
6847 {
6848#if wxUSE_UNICODE
6849 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6850#else
6851 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6852#endif
6853 }
6854 {
6855 if (temp2)
6856 delete arg2;
6857 }
6858 return resultobj;
6859 fail:
6860 {
6861 if (temp2)
6862 delete arg2;
6863 }
6864 return NULL;
6865}
6866
6867
6868static PyObject *_wrap_FileSystemHandler_GetAnchor(PyObject *self, PyObject *args, PyObject *kwargs) {
6869 PyObject *resultobj;
6870 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6871 wxString *arg2 = 0 ;
6872 wxString result;
6873 bool temp2 = False ;
6874 PyObject * obj0 = 0 ;
6875 PyObject * obj1 = 0 ;
6876 char *kwnames[] = {
6877 (char *) "self",(char *) "location", NULL
6878 };
6879
6880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetAnchor",kwnames,&obj0,&obj1)) goto fail;
6881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6883 {
6884 arg2 = wxString_in_helper(obj1);
6885 if (arg2 == NULL) SWIG_fail;
6886 temp2 = True;
6887 }
6888 {
6889 PyThreadState* __tstate = wxPyBeginAllowThreads();
6890 result = (arg1)->GetAnchor((wxString const &)*arg2);
6891
6892 wxPyEndAllowThreads(__tstate);
6893 if (PyErr_Occurred()) SWIG_fail;
6894 }
6895 {
6896#if wxUSE_UNICODE
6897 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6898#else
6899 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6900#endif
6901 }
6902 {
6903 if (temp2)
6904 delete arg2;
6905 }
6906 return resultobj;
6907 fail:
6908 {
6909 if (temp2)
6910 delete arg2;
6911 }
6912 return NULL;
6913}
6914
6915
6916static PyObject *_wrap_FileSystemHandler_GetRightLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
6917 PyObject *resultobj;
6918 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6919 wxString *arg2 = 0 ;
6920 wxString result;
6921 bool temp2 = False ;
6922 PyObject * obj0 = 0 ;
6923 PyObject * obj1 = 0 ;
6924 char *kwnames[] = {
6925 (char *) "self",(char *) "location", NULL
6926 };
6927
6928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetRightLocation",kwnames,&obj0,&obj1)) goto fail;
6929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6931 {
6932 arg2 = wxString_in_helper(obj1);
6933 if (arg2 == NULL) SWIG_fail;
6934 temp2 = True;
6935 }
6936 {
6937 PyThreadState* __tstate = wxPyBeginAllowThreads();
6938 result = (arg1)->GetRightLocation((wxString const &)*arg2);
6939
6940 wxPyEndAllowThreads(__tstate);
6941 if (PyErr_Occurred()) SWIG_fail;
6942 }
6943 {
6944#if wxUSE_UNICODE
6945 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6946#else
6947 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6948#endif
6949 }
6950 {
6951 if (temp2)
6952 delete arg2;
6953 }
6954 return resultobj;
6955 fail:
6956 {
6957 if (temp2)
6958 delete arg2;
6959 }
6960 return NULL;
6961}
6962
6963
6964static PyObject *_wrap_FileSystemHandler_GetMimeTypeFromExt(PyObject *self, PyObject *args, PyObject *kwargs) {
6965 PyObject *resultobj;
6966 wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
6967 wxString *arg2 = 0 ;
6968 wxString result;
6969 bool temp2 = False ;
6970 PyObject * obj0 = 0 ;
6971 PyObject * obj1 = 0 ;
6972 char *kwnames[] = {
6973 (char *) "self",(char *) "location", NULL
6974 };
6975
6976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetMimeTypeFromExt",kwnames,&obj0,&obj1)) goto fail;
6977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileSystemHandler,
6978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6979 {
6980 arg2 = wxString_in_helper(obj1);
6981 if (arg2 == NULL) SWIG_fail;
6982 temp2 = True;
6983 }
6984 {
6985 PyThreadState* __tstate = wxPyBeginAllowThreads();
6986 result = (arg1)->GetMimeTypeFromExt((wxString const &)*arg2);
6987
6988 wxPyEndAllowThreads(__tstate);
6989 if (PyErr_Occurred()) SWIG_fail;
6990 }
6991 {
6992#if wxUSE_UNICODE
6993 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6994#else
6995 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6996#endif
6997 }
6998 {
6999 if (temp2)
7000 delete arg2;
7001 }
7002 return resultobj;
7003 fail:
7004 {
7005 if (temp2)
7006 delete arg2;
7007 }
7008 return NULL;
7009}
7010
7011
7012static PyObject * FileSystemHandler_swigregister(PyObject *self, PyObject *args) {
7013 PyObject *obj;
7014 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7015 SWIG_TypeClientData(SWIGTYPE_p_wxPyFileSystemHandler, obj);
7016 Py_INCREF(obj);
7017 return Py_BuildValue((char *)"");
7018}
7019static PyObject *_wrap_new_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) {
7020 PyObject *resultobj;
7021 wxFileSystem *result;
7022 char *kwnames[] = {
7023 NULL
7024 };
7025
7026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileSystem",kwnames)) goto fail;
7027 {
7028 PyThreadState* __tstate = wxPyBeginAllowThreads();
7029 result = (wxFileSystem *)new wxFileSystem();
7030
7031 wxPyEndAllowThreads(__tstate);
7032 if (PyErr_Occurred()) SWIG_fail;
7033 }
7034 {
412d302d 7035 resultobj = wxPyMake_wxObject(result, 1);
d55e5bfc
RD
7036 }
7037 return resultobj;
7038 fail:
7039 return NULL;
7040}
7041
7042
7043static PyObject *_wrap_delete_FileSystem(PyObject *self, PyObject *args, PyObject *kwargs) {
7044 PyObject *resultobj;
7045 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
7046 PyObject * obj0 = 0 ;
7047 char *kwnames[] = {
7048 (char *) "self", NULL
7049 };
7050
7051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileSystem",kwnames,&obj0)) goto fail;
7052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem,
7053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7054 {
7055 PyThreadState* __tstate = wxPyBeginAllowThreads();
7056 delete arg1;
7057
7058 wxPyEndAllowThreads(__tstate);
7059 if (PyErr_Occurred()) SWIG_fail;
7060 }
7061 Py_INCREF(Py_None); resultobj = Py_None;
7062 return resultobj;
7063 fail:
7064 return NULL;
7065}
7066
7067
7068static PyObject *_wrap_FileSystem_ChangePathTo(PyObject *self, PyObject *args, PyObject *kwargs) {
7069 PyObject *resultobj;
7070 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
7071 wxString *arg2 = 0 ;
7072 bool arg3 = (bool) False ;
7073 bool temp2 = False ;
7074 PyObject * obj0 = 0 ;
7075 PyObject * obj1 = 0 ;
7076 PyObject * obj2 = 0 ;
7077 char *kwnames[] = {
7078 (char *) "self",(char *) "location",(char *) "is_dir", NULL
7079 };
7080
7081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_ChangePathTo",kwnames,&obj0,&obj1,&obj2)) goto fail;
7082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem,
7083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7084 {
7085 arg2 = wxString_in_helper(obj1);
7086 if (arg2 == NULL) SWIG_fail;
7087 temp2 = True;
7088 }
7089 if (obj2) {
7090 arg3 = (bool) SWIG_AsBool(obj2);
7091 if (PyErr_Occurred()) SWIG_fail;
7092 }
7093 {
7094 PyThreadState* __tstate = wxPyBeginAllowThreads();
7095 (arg1)->ChangePathTo((wxString const &)*arg2,arg3);
7096
7097 wxPyEndAllowThreads(__tstate);
7098 if (PyErr_Occurred()) SWIG_fail;
7099 }
7100 Py_INCREF(Py_None); resultobj = Py_None;
7101 {
7102 if (temp2)
7103 delete arg2;
7104 }
7105 return resultobj;
7106 fail:
7107 {
7108 if (temp2)
7109 delete arg2;
7110 }
7111 return NULL;
7112}
7113
7114
7115static PyObject *_wrap_FileSystem_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7116 PyObject *resultobj;
7117 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
7118 wxString result;
7119 PyObject * obj0 = 0 ;
7120 char *kwnames[] = {
7121 (char *) "self", NULL
7122 };
7123
7124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_GetPath",kwnames,&obj0)) goto fail;
7125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem,
7126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7127 {
7128 PyThreadState* __tstate = wxPyBeginAllowThreads();
7129 result = (arg1)->GetPath();
7130
7131 wxPyEndAllowThreads(__tstate);
7132 if (PyErr_Occurred()) SWIG_fail;
7133 }
7134 {
7135#if wxUSE_UNICODE
7136 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7137#else
7138 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7139#endif
7140 }
7141 return resultobj;
7142 fail:
7143 return NULL;
7144}
7145
7146
7147static PyObject *_wrap_FileSystem_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) {
7148 PyObject *resultobj;
7149 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
7150 wxString *arg2 = 0 ;
7151 wxFSFile *result;
7152 bool temp2 = False ;
7153 PyObject * obj0 = 0 ;
7154 PyObject * obj1 = 0 ;
7155 char *kwnames[] = {
7156 (char *) "self",(char *) "location", NULL
7157 };
7158
7159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystem_OpenFile",kwnames,&obj0,&obj1)) goto fail;
7160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem,
7161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7162 {
7163 arg2 = wxString_in_helper(obj1);
7164 if (arg2 == NULL) SWIG_fail;
7165 temp2 = True;
7166 }
7167 {
7168 PyThreadState* __tstate = wxPyBeginAllowThreads();
7169 result = (wxFSFile *)(arg1)->OpenFile((wxString const &)*arg2);
7170
7171 wxPyEndAllowThreads(__tstate);
7172 if (PyErr_Occurred()) SWIG_fail;
7173 }
7174 {
412d302d 7175 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
7176 }
7177 {
7178 if (temp2)
7179 delete arg2;
7180 }
7181 return resultobj;
7182 fail:
7183 {
7184 if (temp2)
7185 delete arg2;
7186 }
7187 return NULL;
7188}
7189
7190
7191static PyObject *_wrap_FileSystem_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) {
7192 PyObject *resultobj;
7193 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
7194 wxString *arg2 = 0 ;
7195 int arg3 = (int) 0 ;
7196 wxString result;
7197 bool temp2 = False ;
7198 PyObject * obj0 = 0 ;
7199 PyObject * obj1 = 0 ;
7200 PyObject * obj2 = 0 ;
7201 char *kwnames[] = {
7202 (char *) "self",(char *) "spec",(char *) "flags", NULL
7203 };
7204
7205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail;
7206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem,
7207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7208 {
7209 arg2 = wxString_in_helper(obj1);
7210 if (arg2 == NULL) SWIG_fail;
7211 temp2 = True;
7212 }
7213 if (obj2) {
7214 arg3 = (int) SWIG_AsInt(obj2);
7215 if (PyErr_Occurred()) SWIG_fail;
7216 }
7217 {
7218 PyThreadState* __tstate = wxPyBeginAllowThreads();
7219 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
7220
7221 wxPyEndAllowThreads(__tstate);
7222 if (PyErr_Occurred()) SWIG_fail;
7223 }
7224 {
7225#if wxUSE_UNICODE
7226 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7227#else
7228 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7229#endif
7230 }
7231 {
7232 if (temp2)
7233 delete arg2;
7234 }
7235 return resultobj;
7236 fail:
7237 {
7238 if (temp2)
7239 delete arg2;
7240 }
7241 return NULL;
7242}
7243
7244
7245static PyObject *_wrap_FileSystem_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) {
7246 PyObject *resultobj;
7247 wxFileSystem *arg1 = (wxFileSystem *) 0 ;
7248 wxString result;
7249 PyObject * obj0 = 0 ;
7250 char *kwnames[] = {
7251 (char *) "self", NULL
7252 };
7253
7254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FindNext",kwnames,&obj0)) goto fail;
7255 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystem,
7256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7257 {
7258 PyThreadState* __tstate = wxPyBeginAllowThreads();
7259 result = (arg1)->FindNext();
7260
7261 wxPyEndAllowThreads(__tstate);
7262 if (PyErr_Occurred()) SWIG_fail;
7263 }
7264 {
7265#if wxUSE_UNICODE
7266 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7267#else
7268 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7269#endif
7270 }
7271 return resultobj;
7272 fail:
7273 return NULL;
7274}
7275
7276
7277static PyObject *_wrap_FileSystem_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
7278 PyObject *resultobj;
7279 wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ;
7280 PyObject * obj0 = 0 ;
7281 char *kwnames[] = {
7282 (char *) "handler", NULL
7283 };
7284
7285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_AddHandler",kwnames,&obj0)) goto fail;
7286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileSystemHandler,
7287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7288 {
7289 PyThreadState* __tstate = wxPyBeginAllowThreads();
7290 wxFileSystem::AddHandler(arg1);
7291
7292 wxPyEndAllowThreads(__tstate);
7293 if (PyErr_Occurred()) SWIG_fail;
7294 }
7295 Py_INCREF(Py_None); resultobj = Py_None;
7296 return resultobj;
7297 fail:
7298 return NULL;
7299}
7300
7301
7302static PyObject *_wrap_FileSystem_CleanUpHandlers(PyObject *self, PyObject *args, PyObject *kwargs) {
7303 PyObject *resultobj;
7304 char *kwnames[] = {
7305 NULL
7306 };
7307
7308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FileSystem_CleanUpHandlers",kwnames)) goto fail;
7309 {
7310 PyThreadState* __tstate = wxPyBeginAllowThreads();
7311 wxFileSystem::CleanUpHandlers();
7312
7313 wxPyEndAllowThreads(__tstate);
7314 if (PyErr_Occurred()) SWIG_fail;
7315 }
7316 Py_INCREF(Py_None); resultobj = Py_None;
7317 return resultobj;
7318 fail:
7319 return NULL;
7320}
7321
7322
7323static PyObject *_wrap_FileSystem_FileNameToURL(PyObject *self, PyObject *args, PyObject *kwargs) {
7324 PyObject *resultobj;
7325 wxString *arg1 = 0 ;
7326 wxString result;
7327 bool temp1 = False ;
7328 PyObject * obj0 = 0 ;
7329 char *kwnames[] = {
7330 (char *) "filename", NULL
7331 };
7332
7333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FileNameToURL",kwnames,&obj0)) goto fail;
7334 {
7335 arg1 = wxString_in_helper(obj0);
7336 if (arg1 == NULL) SWIG_fail;
7337 temp1 = True;
7338 }
7339 {
7340 PyThreadState* __tstate = wxPyBeginAllowThreads();
7341 result = wxFileSystem::FileNameToURL((wxString const &)*arg1);
7342
7343 wxPyEndAllowThreads(__tstate);
7344 if (PyErr_Occurred()) SWIG_fail;
7345 }
7346 {
7347#if wxUSE_UNICODE
7348 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7349#else
7350 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7351#endif
7352 }
7353 {
7354 if (temp1)
7355 delete arg1;
7356 }
7357 return resultobj;
7358 fail:
7359 {
7360 if (temp1)
7361 delete arg1;
7362 }
7363 return NULL;
7364}
7365
7366
7367static PyObject * FileSystem_swigregister(PyObject *self, PyObject *args) {
7368 PyObject *obj;
7369 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7370 SWIG_TypeClientData(SWIGTYPE_p_wxFileSystem, obj);
7371 Py_INCREF(obj);
7372 return Py_BuildValue((char *)"");
7373}
7374static PyObject *_wrap_FileSystem_URLToFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
7375 PyObject *resultobj;
7376 wxString *arg1 = 0 ;
7377 wxString result;
7378 bool temp1 = False ;
7379 PyObject * obj0 = 0 ;
7380 char *kwnames[] = {
7381 (char *) "url", NULL
7382 };
7383
7384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_URLToFileName",kwnames,&obj0)) goto fail;
7385 {
7386 arg1 = wxString_in_helper(obj0);
7387 if (arg1 == NULL) SWIG_fail;
7388 temp1 = True;
7389 }
7390 {
7391 PyThreadState* __tstate = wxPyBeginAllowThreads();
7392 result = wxFileSystem_URLToFileName((wxString const &)*arg1);
7393
7394 wxPyEndAllowThreads(__tstate);
7395 if (PyErr_Occurred()) SWIG_fail;
7396 }
7397 {
7398#if wxUSE_UNICODE
7399 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7400#else
7401 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7402#endif
7403 }
7404 {
7405 if (temp1)
7406 delete arg1;
7407 }
7408 return resultobj;
7409 fail:
7410 {
7411 if (temp1)
7412 delete arg1;
7413 }
7414 return NULL;
7415}
7416
7417
7418static PyObject *_wrap_new_InternetFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
7419 PyObject *resultobj;
7420 wxInternetFSHandler *result;
7421 char *kwnames[] = {
7422 NULL
7423 };
7424
7425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_InternetFSHandler",kwnames)) goto fail;
7426 {
7427 PyThreadState* __tstate = wxPyBeginAllowThreads();
7428 result = (wxInternetFSHandler *)new wxInternetFSHandler();
7429
7430 wxPyEndAllowThreads(__tstate);
7431 if (PyErr_Occurred()) SWIG_fail;
7432 }
7433 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInternetFSHandler, 1);
7434 return resultobj;
7435 fail:
7436 return NULL;
7437}
7438
7439
7440static PyObject *_wrap_InternetFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) {
7441 PyObject *resultobj;
7442 wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ;
7443 wxString *arg2 = 0 ;
7444 bool result;
7445 bool temp2 = False ;
7446 PyObject * obj0 = 0 ;
7447 PyObject * obj1 = 0 ;
7448 char *kwnames[] = {
7449 (char *) "self",(char *) "location", NULL
7450 };
7451
7452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InternetFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail;
7453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler,
7454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7455 {
7456 arg2 = wxString_in_helper(obj1);
7457 if (arg2 == NULL) SWIG_fail;
7458 temp2 = True;
7459 }
7460 {
7461 PyThreadState* __tstate = wxPyBeginAllowThreads();
7462 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
7463
7464 wxPyEndAllowThreads(__tstate);
7465 if (PyErr_Occurred()) SWIG_fail;
7466 }
7467 {
7468 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7469 }
7470 {
7471 if (temp2)
7472 delete arg2;
7473 }
7474 return resultobj;
7475 fail:
7476 {
7477 if (temp2)
7478 delete arg2;
7479 }
7480 return NULL;
7481}
7482
7483
7484static PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) {
7485 PyObject *resultobj;
7486 wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ;
7487 wxFileSystem *arg2 = 0 ;
7488 wxString *arg3 = 0 ;
7489 wxFSFile *result;
7490 bool temp3 = False ;
7491 PyObject * obj0 = 0 ;
7492 PyObject * obj1 = 0 ;
7493 PyObject * obj2 = 0 ;
7494 char *kwnames[] = {
7495 (char *) "self",(char *) "fs",(char *) "location", NULL
7496 };
7497
7498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:InternetFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
7499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxInternetFSHandler,
7500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7501 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem,
7502 SWIG_POINTER_EXCEPTION | 0)) == -1)
7503 SWIG_fail;
7504 if (arg2 == NULL) {
7505 PyErr_SetString(PyExc_TypeError,"null reference");
7506 SWIG_fail;
7507 }
7508 {
7509 arg3 = wxString_in_helper(obj2);
7510 if (arg3 == NULL) SWIG_fail;
7511 temp3 = True;
7512 }
7513 {
7514 PyThreadState* __tstate = wxPyBeginAllowThreads();
7515 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
7516
7517 wxPyEndAllowThreads(__tstate);
7518 if (PyErr_Occurred()) SWIG_fail;
7519 }
7520 {
412d302d 7521 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
7522 }
7523 {
7524 if (temp3)
7525 delete arg3;
7526 }
7527 return resultobj;
7528 fail:
7529 {
7530 if (temp3)
7531 delete arg3;
7532 }
7533 return NULL;
7534}
7535
7536
7537static PyObject * InternetFSHandler_swigregister(PyObject *self, PyObject *args) {
7538 PyObject *obj;
7539 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7540 SWIG_TypeClientData(SWIGTYPE_p_wxInternetFSHandler, obj);
7541 Py_INCREF(obj);
7542 return Py_BuildValue((char *)"");
7543}
7544static PyObject *_wrap_new_ZipFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
7545 PyObject *resultobj;
7546 wxZipFSHandler *result;
7547 char *kwnames[] = {
7548 NULL
7549 };
7550
7551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ZipFSHandler",kwnames)) goto fail;
7552 {
7553 PyThreadState* __tstate = wxPyBeginAllowThreads();
7554 result = (wxZipFSHandler *)new wxZipFSHandler();
7555
7556 wxPyEndAllowThreads(__tstate);
7557 if (PyErr_Occurred()) SWIG_fail;
7558 }
7559 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxZipFSHandler, 1);
7560 return resultobj;
7561 fail:
7562 return NULL;
7563}
7564
7565
7566static PyObject *_wrap_ZipFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) {
7567 PyObject *resultobj;
7568 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
7569 wxString *arg2 = 0 ;
7570 bool result;
7571 bool temp2 = False ;
7572 PyObject * obj0 = 0 ;
7573 PyObject * obj1 = 0 ;
7574 char *kwnames[] = {
7575 (char *) "self",(char *) "location", NULL
7576 };
7577
7578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ZipFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail;
7579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler,
7580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7581 {
7582 arg2 = wxString_in_helper(obj1);
7583 if (arg2 == NULL) SWIG_fail;
7584 temp2 = True;
7585 }
7586 {
7587 PyThreadState* __tstate = wxPyBeginAllowThreads();
7588 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
7589
7590 wxPyEndAllowThreads(__tstate);
7591 if (PyErr_Occurred()) SWIG_fail;
7592 }
7593 {
7594 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7595 }
7596 {
7597 if (temp2)
7598 delete arg2;
7599 }
7600 return resultobj;
7601 fail:
7602 {
7603 if (temp2)
7604 delete arg2;
7605 }
7606 return NULL;
7607}
7608
7609
7610static PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) {
7611 PyObject *resultobj;
7612 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
7613 wxFileSystem *arg2 = 0 ;
7614 wxString *arg3 = 0 ;
7615 wxFSFile *result;
7616 bool temp3 = False ;
7617 PyObject * obj0 = 0 ;
7618 PyObject * obj1 = 0 ;
7619 PyObject * obj2 = 0 ;
7620 char *kwnames[] = {
7621 (char *) "self",(char *) "fs",(char *) "location", NULL
7622 };
7623
7624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ZipFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
7625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler,
7626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7627 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem,
7628 SWIG_POINTER_EXCEPTION | 0)) == -1)
7629 SWIG_fail;
7630 if (arg2 == NULL) {
7631 PyErr_SetString(PyExc_TypeError,"null reference");
7632 SWIG_fail;
7633 }
7634 {
7635 arg3 = wxString_in_helper(obj2);
7636 if (arg3 == NULL) SWIG_fail;
7637 temp3 = True;
7638 }
7639 {
7640 PyThreadState* __tstate = wxPyBeginAllowThreads();
7641 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
7642
7643 wxPyEndAllowThreads(__tstate);
7644 if (PyErr_Occurred()) SWIG_fail;
7645 }
7646 {
412d302d 7647 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
7648 }
7649 {
7650 if (temp3)
7651 delete arg3;
7652 }
7653 return resultobj;
7654 fail:
7655 {
7656 if (temp3)
7657 delete arg3;
7658 }
7659 return NULL;
7660}
7661
7662
7663static PyObject *_wrap_ZipFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) {
7664 PyObject *resultobj;
7665 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
7666 wxString *arg2 = 0 ;
7667 int arg3 = (int) 0 ;
7668 wxString result;
7669 bool temp2 = False ;
7670 PyObject * obj0 = 0 ;
7671 PyObject * obj1 = 0 ;
7672 PyObject * obj2 = 0 ;
7673 char *kwnames[] = {
7674 (char *) "self",(char *) "spec",(char *) "flags", NULL
7675 };
7676
7677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ZipFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail;
7678 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler,
7679 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7680 {
7681 arg2 = wxString_in_helper(obj1);
7682 if (arg2 == NULL) SWIG_fail;
7683 temp2 = True;
7684 }
7685 if (obj2) {
7686 arg3 = (int) SWIG_AsInt(obj2);
7687 if (PyErr_Occurred()) SWIG_fail;
7688 }
7689 {
7690 PyThreadState* __tstate = wxPyBeginAllowThreads();
7691 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
7692
7693 wxPyEndAllowThreads(__tstate);
7694 if (PyErr_Occurred()) SWIG_fail;
7695 }
7696 {
7697#if wxUSE_UNICODE
7698 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7699#else
7700 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7701#endif
7702 }
7703 {
7704 if (temp2)
7705 delete arg2;
7706 }
7707 return resultobj;
7708 fail:
7709 {
7710 if (temp2)
7711 delete arg2;
7712 }
7713 return NULL;
7714}
7715
7716
7717static PyObject *_wrap_ZipFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) {
7718 PyObject *resultobj;
7719 wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
7720 wxString result;
7721 PyObject * obj0 = 0 ;
7722 char *kwnames[] = {
7723 (char *) "self", NULL
7724 };
7725
7726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ZipFSHandler_FindNext",kwnames,&obj0)) goto fail;
7727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxZipFSHandler,
7728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7729 {
7730 PyThreadState* __tstate = wxPyBeginAllowThreads();
7731 result = (arg1)->FindNext();
7732
7733 wxPyEndAllowThreads(__tstate);
7734 if (PyErr_Occurred()) SWIG_fail;
7735 }
7736 {
7737#if wxUSE_UNICODE
7738 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7739#else
7740 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7741#endif
7742 }
7743 return resultobj;
7744 fail:
7745 return NULL;
7746}
7747
7748
7749static PyObject * ZipFSHandler_swigregister(PyObject *self, PyObject *args) {
7750 PyObject *obj;
7751 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7752 SWIG_TypeClientData(SWIGTYPE_p_wxZipFSHandler, obj);
7753 Py_INCREF(obj);
7754 return Py_BuildValue((char *)"");
7755}
7756static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *self, PyObject *args, PyObject *kwargs) {
7757 PyObject *resultobj;
7758 wxString *arg1 = 0 ;
7759 wxImage *arg2 = 0 ;
7760 long arg3 ;
7761 bool temp1 = False ;
7762 PyObject * obj0 = 0 ;
7763 PyObject * obj1 = 0 ;
7764 PyObject * obj2 = 0 ;
7765 char *kwnames[] = {
7766 (char *) "filename",(char *) "image",(char *) "type", NULL
7767 };
7768
7769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
7770 {
7771 arg1 = wxString_in_helper(obj0);
7772 if (arg1 == NULL) SWIG_fail;
7773 temp1 = True;
7774 }
7775 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage,
7776 SWIG_POINTER_EXCEPTION | 0)) == -1)
7777 SWIG_fail;
7778 if (arg2 == NULL) {
7779 PyErr_SetString(PyExc_TypeError,"null reference");
7780 SWIG_fail;
7781 }
7782 arg3 = (long) SWIG_AsLong(obj2);
7783 if (PyErr_Occurred()) SWIG_fail;
7784 {
7785 PyThreadState* __tstate = wxPyBeginAllowThreads();
7786 __wxMemoryFSHandler_AddFile_wxImage((wxString const &)*arg1,*arg2,arg3);
7787
7788 wxPyEndAllowThreads(__tstate);
7789 if (PyErr_Occurred()) SWIG_fail;
7790 }
7791 Py_INCREF(Py_None); resultobj = Py_None;
7792 {
7793 if (temp1)
7794 delete arg1;
7795 }
7796 return resultobj;
7797 fail:
7798 {
7799 if (temp1)
7800 delete arg1;
7801 }
7802 return NULL;
7803}
7804
7805
7806static PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
7807 PyObject *resultobj;
7808 wxString *arg1 = 0 ;
7809 wxBitmap *arg2 = 0 ;
7810 long arg3 ;
7811 bool temp1 = False ;
7812 PyObject * obj0 = 0 ;
7813 PyObject * obj1 = 0 ;
7814 PyObject * obj2 = 0 ;
7815 char *kwnames[] = {
7816 (char *) "filename",(char *) "bitmap",(char *) "type", NULL
7817 };
7818
7819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
7820 {
7821 arg1 = wxString_in_helper(obj0);
7822 if (arg1 == NULL) SWIG_fail;
7823 temp1 = True;
7824 }
7825 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
7826 SWIG_POINTER_EXCEPTION | 0)) == -1)
7827 SWIG_fail;
7828 if (arg2 == NULL) {
7829 PyErr_SetString(PyExc_TypeError,"null reference");
7830 SWIG_fail;
7831 }
7832 arg3 = (long) SWIG_AsLong(obj2);
7833 if (PyErr_Occurred()) SWIG_fail;
7834 {
7835 PyThreadState* __tstate = wxPyBeginAllowThreads();
7836 __wxMemoryFSHandler_AddFile_wxBitmap((wxString const &)*arg1,(wxBitmap const &)*arg2,arg3);
7837
7838 wxPyEndAllowThreads(__tstate);
7839 if (PyErr_Occurred()) SWIG_fail;
7840 }
7841 Py_INCREF(Py_None); resultobj = Py_None;
7842 {
7843 if (temp1)
7844 delete arg1;
7845 }
7846 return resultobj;
7847 fail:
7848 {
7849 if (temp1)
7850 delete arg1;
7851 }
7852 return NULL;
7853}
7854
7855
7856static PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *self, PyObject *args, PyObject *kwargs) {
7857 PyObject *resultobj;
7858 wxString *arg1 = 0 ;
7859 PyObject *arg2 = (PyObject *) 0 ;
7860 bool temp1 = False ;
7861 PyObject * obj0 = 0 ;
7862 PyObject * obj1 = 0 ;
7863 char *kwnames[] = {
7864 (char *) "filename",(char *) "data", NULL
7865 };
7866
7867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:__wxMemoryFSHandler_AddFile_Data",kwnames,&obj0,&obj1)) goto fail;
7868 {
7869 arg1 = wxString_in_helper(obj0);
7870 if (arg1 == NULL) SWIG_fail;
7871 temp1 = True;
7872 }
7873 arg2 = obj1;
7874 {
7875 PyThreadState* __tstate = wxPyBeginAllowThreads();
7876 __wxMemoryFSHandler_AddFile_Data((wxString const &)*arg1,arg2);
7877
7878 wxPyEndAllowThreads(__tstate);
7879 if (PyErr_Occurred()) SWIG_fail;
7880 }
7881 Py_INCREF(Py_None); resultobj = Py_None;
7882 {
7883 if (temp1)
7884 delete arg1;
7885 }
7886 return resultobj;
7887 fail:
7888 {
7889 if (temp1)
7890 delete arg1;
7891 }
7892 return NULL;
7893}
7894
7895
7896static PyObject *_wrap_new_MemoryFSHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
7897 PyObject *resultobj;
7898 wxMemoryFSHandler *result;
7899 char *kwnames[] = {
7900 NULL
7901 };
7902
7903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryFSHandler",kwnames)) goto fail;
7904 {
7905 PyThreadState* __tstate = wxPyBeginAllowThreads();
7906 result = (wxMemoryFSHandler *)new wxMemoryFSHandler();
7907
7908 wxPyEndAllowThreads(__tstate);
7909 if (PyErr_Occurred()) SWIG_fail;
7910 }
7911 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryFSHandler, 1);
7912 return resultobj;
7913 fail:
7914 return NULL;
7915}
7916
7917
7918static PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
7919 PyObject *resultobj;
7920 wxString *arg1 = 0 ;
7921 bool temp1 = False ;
7922 PyObject * obj0 = 0 ;
7923 char *kwnames[] = {
7924 (char *) "filename", NULL
7925 };
7926
7927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_RemoveFile",kwnames,&obj0)) goto fail;
7928 {
7929 arg1 = wxString_in_helper(obj0);
7930 if (arg1 == NULL) SWIG_fail;
7931 temp1 = True;
7932 }
7933 {
7934 PyThreadState* __tstate = wxPyBeginAllowThreads();
7935 wxMemoryFSHandler::RemoveFile((wxString const &)*arg1);
7936
7937 wxPyEndAllowThreads(__tstate);
7938 if (PyErr_Occurred()) SWIG_fail;
7939 }
7940 Py_INCREF(Py_None); resultobj = Py_None;
7941 {
7942 if (temp1)
7943 delete arg1;
7944 }
7945 return resultobj;
7946 fail:
7947 {
7948 if (temp1)
7949 delete arg1;
7950 }
7951 return NULL;
7952}
7953
7954
7955static PyObject *_wrap_MemoryFSHandler_CanOpen(PyObject *self, PyObject *args, PyObject *kwargs) {
7956 PyObject *resultobj;
7957 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
7958 wxString *arg2 = 0 ;
7959 bool result;
7960 bool temp2 = False ;
7961 PyObject * obj0 = 0 ;
7962 PyObject * obj1 = 0 ;
7963 char *kwnames[] = {
7964 (char *) "self",(char *) "location", NULL
7965 };
7966
7967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryFSHandler_CanOpen",kwnames,&obj0,&obj1)) goto fail;
7968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler,
7969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7970 {
7971 arg2 = wxString_in_helper(obj1);
7972 if (arg2 == NULL) SWIG_fail;
7973 temp2 = True;
7974 }
7975 {
7976 PyThreadState* __tstate = wxPyBeginAllowThreads();
7977 result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
7978
7979 wxPyEndAllowThreads(__tstate);
7980 if (PyErr_Occurred()) SWIG_fail;
7981 }
7982 {
7983 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7984 }
7985 {
7986 if (temp2)
7987 delete arg2;
7988 }
7989 return resultobj;
7990 fail:
7991 {
7992 if (temp2)
7993 delete arg2;
7994 }
7995 return NULL;
7996}
7997
7998
7999static PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *self, PyObject *args, PyObject *kwargs) {
8000 PyObject *resultobj;
8001 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
8002 wxFileSystem *arg2 = 0 ;
8003 wxString *arg3 = 0 ;
8004 wxFSFile *result;
8005 bool temp3 = False ;
8006 PyObject * obj0 = 0 ;
8007 PyObject * obj1 = 0 ;
8008 PyObject * obj2 = 0 ;
8009 char *kwnames[] = {
8010 (char *) "self",(char *) "fs",(char *) "location", NULL
8011 };
8012
8013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MemoryFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
8014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler,
8015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8016 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileSystem,
8017 SWIG_POINTER_EXCEPTION | 0)) == -1)
8018 SWIG_fail;
8019 if (arg2 == NULL) {
8020 PyErr_SetString(PyExc_TypeError,"null reference");
8021 SWIG_fail;
8022 }
8023 {
8024 arg3 = wxString_in_helper(obj2);
8025 if (arg3 == NULL) SWIG_fail;
8026 temp3 = True;
8027 }
8028 {
8029 PyThreadState* __tstate = wxPyBeginAllowThreads();
8030 result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
8031
8032 wxPyEndAllowThreads(__tstate);
8033 if (PyErr_Occurred()) SWIG_fail;
8034 }
8035 {
412d302d 8036 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
8037 }
8038 {
8039 if (temp3)
8040 delete arg3;
8041 }
8042 return resultobj;
8043 fail:
8044 {
8045 if (temp3)
8046 delete arg3;
8047 }
8048 return NULL;
8049}
8050
8051
8052static PyObject *_wrap_MemoryFSHandler_FindFirst(PyObject *self, PyObject *args, PyObject *kwargs) {
8053 PyObject *resultobj;
8054 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
8055 wxString *arg2 = 0 ;
8056 int arg3 = (int) 0 ;
8057 wxString result;
8058 bool temp2 = False ;
8059 PyObject * obj0 = 0 ;
8060 PyObject * obj1 = 0 ;
8061 PyObject * obj2 = 0 ;
8062 char *kwnames[] = {
8063 (char *) "self",(char *) "spec",(char *) "flags", NULL
8064 };
8065
8066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MemoryFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) goto fail;
8067 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler,
8068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8069 {
8070 arg2 = wxString_in_helper(obj1);
8071 if (arg2 == NULL) SWIG_fail;
8072 temp2 = True;
8073 }
8074 if (obj2) {
8075 arg3 = (int) SWIG_AsInt(obj2);
8076 if (PyErr_Occurred()) SWIG_fail;
8077 }
8078 {
8079 PyThreadState* __tstate = wxPyBeginAllowThreads();
8080 result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
8081
8082 wxPyEndAllowThreads(__tstate);
8083 if (PyErr_Occurred()) SWIG_fail;
8084 }
8085 {
8086#if wxUSE_UNICODE
8087 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8088#else
8089 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8090#endif
8091 }
8092 {
8093 if (temp2)
8094 delete arg2;
8095 }
8096 return resultobj;
8097 fail:
8098 {
8099 if (temp2)
8100 delete arg2;
8101 }
8102 return NULL;
8103}
8104
8105
8106static PyObject *_wrap_MemoryFSHandler_FindNext(PyObject *self, PyObject *args, PyObject *kwargs) {
8107 PyObject *resultobj;
8108 wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
8109 wxString result;
8110 PyObject * obj0 = 0 ;
8111 char *kwnames[] = {
8112 (char *) "self", NULL
8113 };
8114
8115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_FindNext",kwnames,&obj0)) goto fail;
8116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryFSHandler,
8117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8118 {
8119 PyThreadState* __tstate = wxPyBeginAllowThreads();
8120 result = (arg1)->FindNext();
8121
8122 wxPyEndAllowThreads(__tstate);
8123 if (PyErr_Occurred()) SWIG_fail;
8124 }
8125 {
8126#if wxUSE_UNICODE
8127 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8128#else
8129 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8130#endif
8131 }
8132 return resultobj;
8133 fail:
8134 return NULL;
8135}
8136
8137
8138static PyObject * MemoryFSHandler_swigregister(PyObject *self, PyObject *args) {
8139 PyObject *obj;
8140 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8141 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryFSHandler, obj);
8142 Py_INCREF(obj);
8143 return Py_BuildValue((char *)"");
8144}
8145static PyObject *_wrap_ImageHandler_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
8146 PyObject *resultobj;
8147 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8148 wxString result;
8149 PyObject * obj0 = 0 ;
8150 char *kwnames[] = {
8151 (char *) "self", NULL
8152 };
8153
8154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetName",kwnames,&obj0)) goto fail;
8155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8157 {
8158 PyThreadState* __tstate = wxPyBeginAllowThreads();
8159 result = (arg1)->GetName();
8160
8161 wxPyEndAllowThreads(__tstate);
8162 if (PyErr_Occurred()) SWIG_fail;
8163 }
8164 {
8165#if wxUSE_UNICODE
8166 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8167#else
8168 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8169#endif
8170 }
8171 return resultobj;
8172 fail:
8173 return NULL;
8174}
8175
8176
8177static PyObject *_wrap_ImageHandler_GetExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
8178 PyObject *resultobj;
8179 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8180 wxString result;
8181 PyObject * obj0 = 0 ;
8182 char *kwnames[] = {
8183 (char *) "self", NULL
8184 };
8185
8186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetExtension",kwnames,&obj0)) goto fail;
8187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8189 {
8190 PyThreadState* __tstate = wxPyBeginAllowThreads();
8191 result = (arg1)->GetExtension();
8192
8193 wxPyEndAllowThreads(__tstate);
8194 if (PyErr_Occurred()) SWIG_fail;
8195 }
8196 {
8197#if wxUSE_UNICODE
8198 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8199#else
8200 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8201#endif
8202 }
8203 return resultobj;
8204 fail:
8205 return NULL;
8206}
8207
8208
8209static PyObject *_wrap_ImageHandler_GetType(PyObject *self, PyObject *args, PyObject *kwargs) {
8210 PyObject *resultobj;
8211 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8212 long result;
8213 PyObject * obj0 = 0 ;
8214 char *kwnames[] = {
8215 (char *) "self", NULL
8216 };
8217
8218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetType",kwnames,&obj0)) goto fail;
8219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8221 {
8222 PyThreadState* __tstate = wxPyBeginAllowThreads();
8223 result = (long)(arg1)->GetType();
8224
8225 wxPyEndAllowThreads(__tstate);
8226 if (PyErr_Occurred()) SWIG_fail;
8227 }
8228 resultobj = SWIG_FromLong((long)result);
8229 return resultobj;
8230 fail:
8231 return NULL;
8232}
8233
8234
8235static PyObject *_wrap_ImageHandler_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
8236 PyObject *resultobj;
8237 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8238 wxString result;
8239 PyObject * obj0 = 0 ;
8240 char *kwnames[] = {
8241 (char *) "self", NULL
8242 };
8243
8244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageHandler_GetMimeType",kwnames,&obj0)) goto fail;
8245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8247 {
8248 PyThreadState* __tstate = wxPyBeginAllowThreads();
8249 result = (arg1)->GetMimeType();
8250
8251 wxPyEndAllowThreads(__tstate);
8252 if (PyErr_Occurred()) SWIG_fail;
8253 }
8254 {
8255#if wxUSE_UNICODE
8256 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8257#else
8258 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8259#endif
8260 }
8261 return resultobj;
8262 fail:
8263 return NULL;
8264}
8265
8266
8267static PyObject *_wrap_ImageHandler_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) {
8268 PyObject *resultobj;
8269 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8270 wxString *arg2 = 0 ;
8271 bool result;
8272 bool temp2 = False ;
8273 PyObject * obj0 = 0 ;
8274 PyObject * obj1 = 0 ;
8275 char *kwnames[] = {
8276 (char *) "self",(char *) "name", NULL
8277 };
8278
8279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanRead",kwnames,&obj0,&obj1)) goto fail;
8280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8282 {
8283 arg2 = wxString_in_helper(obj1);
8284 if (arg2 == NULL) SWIG_fail;
8285 temp2 = True;
8286 }
8287 {
8288 PyThreadState* __tstate = wxPyBeginAllowThreads();
8289 result = (bool)(arg1)->CanRead((wxString const &)*arg2);
8290
8291 wxPyEndAllowThreads(__tstate);
8292 if (PyErr_Occurred()) SWIG_fail;
8293 }
8294 {
8295 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8296 }
8297 {
8298 if (temp2)
8299 delete arg2;
8300 }
8301 return resultobj;
8302 fail:
8303 {
8304 if (temp2)
8305 delete arg2;
8306 }
8307 return NULL;
8308}
8309
8310
8311static PyObject *_wrap_ImageHandler_SetName(PyObject *self, PyObject *args, PyObject *kwargs) {
8312 PyObject *resultobj;
8313 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8314 wxString *arg2 = 0 ;
8315 bool temp2 = False ;
8316 PyObject * obj0 = 0 ;
8317 PyObject * obj1 = 0 ;
8318 char *kwnames[] = {
8319 (char *) "self",(char *) "name", NULL
8320 };
8321
8322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetName",kwnames,&obj0,&obj1)) goto fail;
8323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8325 {
8326 arg2 = wxString_in_helper(obj1);
8327 if (arg2 == NULL) SWIG_fail;
8328 temp2 = True;
8329 }
8330 {
8331 PyThreadState* __tstate = wxPyBeginAllowThreads();
8332 (arg1)->SetName((wxString const &)*arg2);
8333
8334 wxPyEndAllowThreads(__tstate);
8335 if (PyErr_Occurred()) SWIG_fail;
8336 }
8337 Py_INCREF(Py_None); resultobj = Py_None;
8338 {
8339 if (temp2)
8340 delete arg2;
8341 }
8342 return resultobj;
8343 fail:
8344 {
8345 if (temp2)
8346 delete arg2;
8347 }
8348 return NULL;
8349}
8350
8351
8352static PyObject *_wrap_ImageHandler_SetExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
8353 PyObject *resultobj;
8354 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8355 wxString *arg2 = 0 ;
8356 bool temp2 = False ;
8357 PyObject * obj0 = 0 ;
8358 PyObject * obj1 = 0 ;
8359 char *kwnames[] = {
8360 (char *) "self",(char *) "extension", NULL
8361 };
8362
8363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetExtension",kwnames,&obj0,&obj1)) goto fail;
8364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8366 {
8367 arg2 = wxString_in_helper(obj1);
8368 if (arg2 == NULL) SWIG_fail;
8369 temp2 = True;
8370 }
8371 {
8372 PyThreadState* __tstate = wxPyBeginAllowThreads();
8373 (arg1)->SetExtension((wxString const &)*arg2);
8374
8375 wxPyEndAllowThreads(__tstate);
8376 if (PyErr_Occurred()) SWIG_fail;
8377 }
8378 Py_INCREF(Py_None); resultobj = Py_None;
8379 {
8380 if (temp2)
8381 delete arg2;
8382 }
8383 return resultobj;
8384 fail:
8385 {
8386 if (temp2)
8387 delete arg2;
8388 }
8389 return NULL;
8390}
8391
8392
8393static PyObject *_wrap_ImageHandler_SetType(PyObject *self, PyObject *args, PyObject *kwargs) {
8394 PyObject *resultobj;
8395 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8396 long arg2 ;
8397 PyObject * obj0 = 0 ;
8398 PyObject * obj1 = 0 ;
8399 char *kwnames[] = {
8400 (char *) "self",(char *) "type", NULL
8401 };
8402
8403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetType",kwnames,&obj0,&obj1)) goto fail;
8404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8406 arg2 = (long) SWIG_AsLong(obj1);
8407 if (PyErr_Occurred()) SWIG_fail;
8408 {
8409 PyThreadState* __tstate = wxPyBeginAllowThreads();
8410 (arg1)->SetType(arg2);
8411
8412 wxPyEndAllowThreads(__tstate);
8413 if (PyErr_Occurred()) SWIG_fail;
8414 }
8415 Py_INCREF(Py_None); resultobj = Py_None;
8416 return resultobj;
8417 fail:
8418 return NULL;
8419}
8420
8421
8422static PyObject *_wrap_ImageHandler_SetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
8423 PyObject *resultobj;
8424 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
8425 wxString *arg2 = 0 ;
8426 bool temp2 = False ;
8427 PyObject * obj0 = 0 ;
8428 PyObject * obj1 = 0 ;
8429 char *kwnames[] = {
8430 (char *) "self",(char *) "mimetype", NULL
8431 };
8432
8433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetMimeType",kwnames,&obj0,&obj1)) goto fail;
8434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
8435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8436 {
8437 arg2 = wxString_in_helper(obj1);
8438 if (arg2 == NULL) SWIG_fail;
8439 temp2 = True;
8440 }
8441 {
8442 PyThreadState* __tstate = wxPyBeginAllowThreads();
8443 (arg1)->SetMimeType((wxString const &)*arg2);
8444
8445 wxPyEndAllowThreads(__tstate);
8446 if (PyErr_Occurred()) SWIG_fail;
8447 }
8448 Py_INCREF(Py_None); resultobj = Py_None;
8449 {
8450 if (temp2)
8451 delete arg2;
8452 }
8453 return resultobj;
8454 fail:
8455 {
8456 if (temp2)
8457 delete arg2;
8458 }
8459 return NULL;
8460}
8461
8462
8463static PyObject * ImageHandler_swigregister(PyObject *self, PyObject *args) {
8464 PyObject *obj;
8465 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8466 SWIG_TypeClientData(SWIGTYPE_p_wxImageHandler, obj);
8467 Py_INCREF(obj);
8468 return Py_BuildValue((char *)"");
8469}
8470static PyObject *_wrap_new_ImageHistogram(PyObject *self, PyObject *args, PyObject *kwargs) {
8471 PyObject *resultobj;
8472 wxImageHistogram *result;
8473 char *kwnames[] = {
8474 NULL
8475 };
8476
8477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ImageHistogram",kwnames)) goto fail;
8478 {
8479 PyThreadState* __tstate = wxPyBeginAllowThreads();
8480 result = (wxImageHistogram *)new wxImageHistogram();
8481
8482 wxPyEndAllowThreads(__tstate);
8483 if (PyErr_Occurred()) SWIG_fail;
8484 }
8485 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImageHistogram, 1);
8486 return resultobj;
8487 fail:
8488 return NULL;
8489}
8490
8491
8492static PyObject *_wrap_ImageHistogram_MakeKey(PyObject *self, PyObject *args, PyObject *kwargs) {
8493 PyObject *resultobj;
8494 unsigned char arg1 ;
8495 unsigned char arg2 ;
8496 unsigned char arg3 ;
8497 unsigned long result;
8498 PyObject * obj0 = 0 ;
8499 PyObject * obj1 = 0 ;
8500 PyObject * obj2 = 0 ;
8501 char *kwnames[] = {
8502 (char *) "r",(char *) "g",(char *) "b", NULL
8503 };
8504
8505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageHistogram_MakeKey",kwnames,&obj0,&obj1,&obj2)) goto fail;
8506 arg1 = (unsigned char) SWIG_AsUnsignedChar(obj0);
8507 if (PyErr_Occurred()) SWIG_fail;
8508 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
8509 if (PyErr_Occurred()) SWIG_fail;
8510 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
8511 if (PyErr_Occurred()) SWIG_fail;
8512 {
8513 PyThreadState* __tstate = wxPyBeginAllowThreads();
8514 result = (unsigned long)wxImageHistogram::MakeKey(arg1,arg2,arg3);
8515
8516 wxPyEndAllowThreads(__tstate);
8517 if (PyErr_Occurred()) SWIG_fail;
8518 }
8519 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
8520 return resultobj;
8521 fail:
8522 return NULL;
8523}
8524
8525
8526static PyObject *_wrap_ImageHistogram_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
8527 PyObject *resultobj;
8528 wxImageHistogram *arg1 = (wxImageHistogram *) 0 ;
8529 unsigned char *arg2 = (unsigned char *) 0 ;
8530 unsigned char *arg3 = (unsigned char *) 0 ;
8531 unsigned char *arg4 = (unsigned char *) 0 ;
8532 unsigned char arg5 = (unsigned char) 1 ;
8533 unsigned char arg6 = (unsigned char) 0 ;
8534 unsigned char arg7 = (unsigned char) 0 ;
8535 bool result;
8536 unsigned char temp2 ;
8537 unsigned char temp3 ;
8538 unsigned char temp4 ;
8539 PyObject * obj0 = 0 ;
8540 PyObject * obj1 = 0 ;
8541 PyObject * obj2 = 0 ;
8542 PyObject * obj3 = 0 ;
8543 char *kwnames[] = {
8544 (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL
8545 };
8546
8547 arg2 = &temp2;
8548 arg3 = &temp3;
8549 arg4 = &temp4;
8550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:ImageHistogram_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHistogram,
8552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8553 if (obj1) {
8554 arg5 = (unsigned char) SWIG_AsUnsignedChar(obj1);
8555 if (PyErr_Occurred()) SWIG_fail;
8556 }
8557 if (obj2) {
8558 arg6 = (unsigned char) SWIG_AsUnsignedChar(obj2);
8559 if (PyErr_Occurred()) SWIG_fail;
8560 }
8561 if (obj3) {
8562 arg7 = (unsigned char) SWIG_AsUnsignedChar(obj3);
8563 if (PyErr_Occurred()) SWIG_fail;
8564 }
8565 {
8566 PyThreadState* __tstate = wxPyBeginAllowThreads();
8567 result = (bool)((wxImageHistogram const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7);
8568
8569 wxPyEndAllowThreads(__tstate);
8570 if (PyErr_Occurred()) SWIG_fail;
8571 }
8572 {
8573 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8574 }
8575 {
8576 PyObject *o = PyInt_FromLong((long) (*arg2));
8577 resultobj = t_output_helper(resultobj,o);
8578 }
8579 {
8580 PyObject *o = PyInt_FromLong((long) (*arg3));
8581 resultobj = t_output_helper(resultobj,o);
8582 }
8583 {
8584 PyObject *o = PyInt_FromLong((long) (*arg4));
8585 resultobj = t_output_helper(resultobj,o);
8586 }
8587 return resultobj;
8588 fail:
8589 return NULL;
8590}
8591
8592
8593static PyObject * ImageHistogram_swigregister(PyObject *self, PyObject *args) {
8594 PyObject *obj;
8595 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8596 SWIG_TypeClientData(SWIGTYPE_p_wxImageHistogram, obj);
8597 Py_INCREF(obj);
8598 return Py_BuildValue((char *)"");
8599}
8600static PyObject *_wrap_new_Image(PyObject *self, PyObject *args, PyObject *kwargs) {
8601 PyObject *resultobj;
8602 wxString *arg1 = 0 ;
8603 long arg2 = (long) wxBITMAP_TYPE_ANY ;
8604 int arg3 = (int) -1 ;
8605 wxImage *result;
8606 bool temp1 = False ;
8607 PyObject * obj0 = 0 ;
8608 PyObject * obj1 = 0 ;
8609 PyObject * obj2 = 0 ;
8610 char *kwnames[] = {
8611 (char *) "name",(char *) "type",(char *) "index", NULL
8612 };
8613
8614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Image",kwnames,&obj0,&obj1,&obj2)) goto fail;
8615 {
8616 arg1 = wxString_in_helper(obj0);
8617 if (arg1 == NULL) SWIG_fail;
8618 temp1 = True;
8619 }
8620 if (obj1) {
8621 arg2 = (long) SWIG_AsLong(obj1);
8622 if (PyErr_Occurred()) SWIG_fail;
8623 }
8624 if (obj2) {
8625 arg3 = (int) SWIG_AsInt(obj2);
8626 if (PyErr_Occurred()) SWIG_fail;
8627 }
8628 {
8629 PyThreadState* __tstate = wxPyBeginAllowThreads();
8630 result = (wxImage *)new wxImage((wxString const &)*arg1,arg2,arg3);
8631
8632 wxPyEndAllowThreads(__tstate);
8633 if (PyErr_Occurred()) SWIG_fail;
8634 }
8635 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
8636 {
8637 if (temp1)
8638 delete arg1;
8639 }
8640 return resultobj;
8641 fail:
8642 {
8643 if (temp1)
8644 delete arg1;
8645 }
8646 return NULL;
8647}
8648
8649
8650static PyObject *_wrap_delete_Image(PyObject *self, PyObject *args, PyObject *kwargs) {
8651 PyObject *resultobj;
8652 wxImage *arg1 = (wxImage *) 0 ;
8653 PyObject * obj0 = 0 ;
8654 char *kwnames[] = {
8655 (char *) "self", NULL
8656 };
8657
8658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Image",kwnames,&obj0)) goto fail;
8659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
8660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8661 {
8662 PyThreadState* __tstate = wxPyBeginAllowThreads();
8663 delete arg1;
8664
8665 wxPyEndAllowThreads(__tstate);
8666 if (PyErr_Occurred()) SWIG_fail;
8667 }
8668 Py_INCREF(Py_None); resultobj = Py_None;
8669 return resultobj;
8670 fail:
8671 return NULL;
8672}
8673
8674
8675static PyObject *_wrap_new_ImageFromMime(PyObject *self, PyObject *args, PyObject *kwargs) {
8676 PyObject *resultobj;
8677 wxString *arg1 = 0 ;
8678 wxString *arg2 = 0 ;
8679 int arg3 = (int) -1 ;
8680 wxImage *result;
8681 bool temp1 = False ;
8682 bool temp2 = False ;
8683 PyObject * obj0 = 0 ;
8684 PyObject * obj1 = 0 ;
8685 PyObject * obj2 = 0 ;
8686 char *kwnames[] = {
8687 (char *) "name",(char *) "mimetype",(char *) "index", NULL
8688 };
8689
8690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromMime",kwnames,&obj0,&obj1,&obj2)) goto fail;
8691 {
8692 arg1 = wxString_in_helper(obj0);
8693 if (arg1 == NULL) SWIG_fail;
8694 temp1 = True;
8695 }
8696 {
8697 arg2 = wxString_in_helper(obj1);
8698 if (arg2 == NULL) SWIG_fail;
8699 temp2 = True;
8700 }
8701 if (obj2) {
8702 arg3 = (int) SWIG_AsInt(obj2);
8703 if (PyErr_Occurred()) SWIG_fail;
8704 }
8705 {
8706 PyThreadState* __tstate = wxPyBeginAllowThreads();
8707 result = (wxImage *)new wxImage((wxString const &)*arg1,(wxString const &)*arg2,arg3);
8708
8709 wxPyEndAllowThreads(__tstate);
8710 if (PyErr_Occurred()) SWIG_fail;
8711 }
8712 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
8713 {
8714 if (temp1)
8715 delete arg1;
8716 }
8717 {
8718 if (temp2)
8719 delete arg2;
8720 }
8721 return resultobj;
8722 fail:
8723 {
8724 if (temp1)
8725 delete arg1;
8726 }
8727 {
8728 if (temp2)
8729 delete arg2;
8730 }
8731 return NULL;
8732}
8733
8734
8735static PyObject *_wrap_new_ImageFromStream(PyObject *self, PyObject *args, PyObject *kwargs) {
8736 PyObject *resultobj;
8737 wxInputStream *arg1 = 0 ;
8738 long arg2 = (long) wxBITMAP_TYPE_ANY ;
8739 int arg3 = (int) -1 ;
8740 wxImage *result;
8741 wxPyInputStream *temp1 ;
8742 bool created1 ;
8743 PyObject * obj0 = 0 ;
8744 PyObject * obj1 = 0 ;
8745 PyObject * obj2 = 0 ;
8746 char *kwnames[] = {
8747 (char *) "stream",(char *) "type",(char *) "index", NULL
8748 };
8749
8750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_ImageFromStream",kwnames,&obj0,&obj1,&obj2)) goto fail;
8751 {
8752 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
8753 arg1 = temp1->m_wxis;
8754 created1 = False;
8755 } else {
8756 PyErr_Clear(); // clear the failure of the wxPyConvert above
8757 arg1 = wxPyCBInputStream_create(obj0, False);
8758 if (arg1 == NULL) {
8759 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
8760 SWIG_fail;
8761 }
8762 created1 = True;
8763 }
8764 }
8765 if (obj1) {
8766 arg2 = (long) SWIG_AsLong(obj1);
8767 if (PyErr_Occurred()) SWIG_fail;
8768 }
8769 if (obj2) {
8770 arg3 = (int) SWIG_AsInt(obj2);
8771 if (PyErr_Occurred()) SWIG_fail;
8772 }
8773 {
8774 PyThreadState* __tstate = wxPyBeginAllowThreads();
8775 result = (wxImage *)new wxImage(*arg1,arg2,arg3);
8776
8777 wxPyEndAllowThreads(__tstate);
8778 if (PyErr_Occurred()) SWIG_fail;
8779 }
8780 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
8781 {
8782 if (created1)
8783 delete arg1;
8784 }
8785 return resultobj;
8786 fail:
8787 {
8788 if (created1)
8789 delete arg1;
8790 }
8791 return NULL;
8792}
8793
8794
8795static PyObject *_wrap_new_ImageFromStreamMime(PyObject *self, PyObject *args, PyObject *kwargs) {
8796 PyObject *resultobj;
8797 wxInputStream *arg1 = 0 ;
8798 wxString *arg2 = 0 ;
8799 int arg3 = (int) -1 ;
8800 wxImage *result;
8801 wxPyInputStream *temp1 ;
8802 bool created1 ;
8803 bool temp2 = False ;
8804 PyObject * obj0 = 0 ;
8805 PyObject * obj1 = 0 ;
8806 PyObject * obj2 = 0 ;
8807 char *kwnames[] = {
8808 (char *) "stream",(char *) "mimetype",(char *) "index", NULL
8809 };
8810
8811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromStreamMime",kwnames,&obj0,&obj1,&obj2)) goto fail;
8812 {
8813 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
8814 arg1 = temp1->m_wxis;
8815 created1 = False;
8816 } else {
8817 PyErr_Clear(); // clear the failure of the wxPyConvert above
8818 arg1 = wxPyCBInputStream_create(obj0, False);
8819 if (arg1 == NULL) {
8820 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
8821 SWIG_fail;
8822 }
8823 created1 = True;
8824 }
8825 }
8826 {
8827 arg2 = wxString_in_helper(obj1);
8828 if (arg2 == NULL) SWIG_fail;
8829 temp2 = True;
8830 }
8831 if (obj2) {
8832 arg3 = (int) SWIG_AsInt(obj2);
8833 if (PyErr_Occurred()) SWIG_fail;
8834 }
8835 {
8836 PyThreadState* __tstate = wxPyBeginAllowThreads();
8837 result = (wxImage *)new wxImage(*arg1,(wxString const &)*arg2,arg3);
8838
8839 wxPyEndAllowThreads(__tstate);
8840 if (PyErr_Occurred()) SWIG_fail;
8841 }
8842 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
8843 {
8844 if (created1)
8845 delete arg1;
8846 }
8847 {
8848 if (temp2)
8849 delete arg2;
8850 }
8851 return resultobj;
8852 fail:
8853 {
8854 if (created1)
8855 delete arg1;
8856 }
8857 {
8858 if (temp2)
8859 delete arg2;
8860 }
8861 return NULL;
8862}
8863
8864
c24da6d6 8865static PyObject *_wrap_new_EmptyImage(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
8866 PyObject *resultobj;
8867 int arg1 = (int) 0 ;
8868 int arg2 = (int) 0 ;
8869 bool arg3 = (bool) True ;
8870 wxImage *result;
8871 PyObject * obj0 = 0 ;
8872 PyObject * obj1 = 0 ;
8873 PyObject * obj2 = 0 ;
c24da6d6
RD
8874 char *kwnames[] = {
8875 (char *) "width",(char *) "height",(char *) "clear", NULL
8876 };
d55e5bfc 8877
c24da6d6 8878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_EmptyImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
8879 if (obj0) {
8880 arg1 = (int) SWIG_AsInt(obj0);
8881 if (PyErr_Occurred()) SWIG_fail;
8882 }
8883 if (obj1) {
8884 arg2 = (int) SWIG_AsInt(obj1);
8885 if (PyErr_Occurred()) SWIG_fail;
8886 }
8887 if (obj2) {
8888 arg3 = (bool) SWIG_AsBool(obj2);
8889 if (PyErr_Occurred()) SWIG_fail;
8890 }
8891 {
8892 PyThreadState* __tstate = wxPyBeginAllowThreads();
c24da6d6 8893 result = (wxImage *)new_wxImage(arg1,arg2,arg3);
d55e5bfc
RD
8894
8895 wxPyEndAllowThreads(__tstate);
8896 if (PyErr_Occurred()) SWIG_fail;
8897 }
8898 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
8899 return resultobj;
8900 fail:
8901 return NULL;
8902}
8903
8904
d55e5bfc
RD
8905static PyObject *_wrap_new_ImageFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
8906 PyObject *resultobj;
8907 wxBitmap *arg1 = 0 ;
8908 wxImage *result;
8909 PyObject * obj0 = 0 ;
8910 char *kwnames[] = {
8911 (char *) "bitmap", NULL
8912 };
8913
8914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ImageFromBitmap",kwnames,&obj0)) goto fail;
8915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
8916 SWIG_POINTER_EXCEPTION | 0)) == -1)
8917 SWIG_fail;
8918 if (arg1 == NULL) {
8919 PyErr_SetString(PyExc_TypeError,"null reference");
8920 SWIG_fail;
8921 }
8922 {
0439c23b 8923 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
8924 PyThreadState* __tstate = wxPyBeginAllowThreads();
8925 result = (wxImage *)new_wxImage((wxBitmap const &)*arg1);
8926
8927 wxPyEndAllowThreads(__tstate);
110da5b0 8928 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
8929 }
8930 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
8931 return resultobj;
8932 fail:
8933 return NULL;
8934}
8935
8936
8937static PyObject *_wrap_new_ImageFromData(PyObject *self, PyObject *args, PyObject *kwargs) {
8938 PyObject *resultobj;
8939 int arg1 ;
8940 int arg2 ;
8941 unsigned char *arg3 = (unsigned char *) 0 ;
8942 wxImage *result;
8943 PyObject * obj0 = 0 ;
8944 PyObject * obj1 = 0 ;
8945 PyObject * obj2 = 0 ;
8946 char *kwnames[] = {
8947 (char *) "width",(char *) "height",(char *) "data", NULL
8948 };
8949
8950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ImageFromData",kwnames,&obj0,&obj1,&obj2)) goto fail;
8951 arg1 = (int) SWIG_AsInt(obj0);
8952 if (PyErr_Occurred()) SWIG_fail;
8953 arg2 = (int) SWIG_AsInt(obj1);
8954 if (PyErr_Occurred()) SWIG_fail;
8955 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
8956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8957 {
8958 PyThreadState* __tstate = wxPyBeginAllowThreads();
8959 result = (wxImage *)new_wxImage(arg1,arg2,arg3);
8960
8961 wxPyEndAllowThreads(__tstate);
8962 if (PyErr_Occurred()) SWIG_fail;
8963 }
8964 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 1);
8965 return resultobj;
8966 fail:
8967 return NULL;
8968}
8969
8970
8971static PyObject *_wrap_Image_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
8972 PyObject *resultobj;
8973 wxImage *arg1 = (wxImage *) 0 ;
8974 int arg2 ;
8975 int arg3 ;
8976 PyObject * obj0 = 0 ;
8977 PyObject * obj1 = 0 ;
8978 PyObject * obj2 = 0 ;
8979 char *kwnames[] = {
8980 (char *) "self",(char *) "width",(char *) "height", NULL
8981 };
8982
8983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Create",kwnames,&obj0,&obj1,&obj2)) goto fail;
8984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
8985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8986 arg2 = (int) SWIG_AsInt(obj1);
8987 if (PyErr_Occurred()) SWIG_fail;
8988 arg3 = (int) SWIG_AsInt(obj2);
8989 if (PyErr_Occurred()) SWIG_fail;
8990 {
8991 PyThreadState* __tstate = wxPyBeginAllowThreads();
8992 (arg1)->Create(arg2,arg3);
8993
8994 wxPyEndAllowThreads(__tstate);
8995 if (PyErr_Occurred()) SWIG_fail;
8996 }
8997 Py_INCREF(Py_None); resultobj = Py_None;
8998 return resultobj;
8999 fail:
9000 return NULL;
9001}
9002
9003
9004static PyObject *_wrap_Image_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
9005 PyObject *resultobj;
9006 wxImage *arg1 = (wxImage *) 0 ;
9007 PyObject * obj0 = 0 ;
9008 char *kwnames[] = {
9009 (char *) "self", NULL
9010 };
9011
9012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Destroy",kwnames,&obj0)) goto fail;
9013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9015 {
9016 PyThreadState* __tstate = wxPyBeginAllowThreads();
9017 (arg1)->Destroy();
9018
9019 wxPyEndAllowThreads(__tstate);
9020 if (PyErr_Occurred()) SWIG_fail;
9021 }
9022 Py_INCREF(Py_None); resultobj = Py_None;
9023 return resultobj;
9024 fail:
9025 return NULL;
9026}
9027
9028
9029static PyObject *_wrap_Image_Scale(PyObject *self, PyObject *args, PyObject *kwargs) {
9030 PyObject *resultobj;
9031 wxImage *arg1 = (wxImage *) 0 ;
9032 int arg2 ;
9033 int arg3 ;
9034 SwigValueWrapper< wxImage > result;
9035 PyObject * obj0 = 0 ;
9036 PyObject * obj1 = 0 ;
9037 PyObject * obj2 = 0 ;
9038 char *kwnames[] = {
9039 (char *) "self",(char *) "width",(char *) "height", NULL
9040 };
9041
9042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Scale",kwnames,&obj0,&obj1,&obj2)) goto fail;
9043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9045 arg2 = (int) SWIG_AsInt(obj1);
9046 if (PyErr_Occurred()) SWIG_fail;
9047 arg3 = (int) SWIG_AsInt(obj2);
9048 if (PyErr_Occurred()) SWIG_fail;
9049 {
9050 PyThreadState* __tstate = wxPyBeginAllowThreads();
9051 result = (arg1)->Scale(arg2,arg3);
9052
9053 wxPyEndAllowThreads(__tstate);
9054 if (PyErr_Occurred()) SWIG_fail;
9055 }
9056 {
9057 wxImage * resultptr;
9058 resultptr = new wxImage((wxImage &) result);
9059 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
9060 }
9061 return resultobj;
9062 fail:
9063 return NULL;
9064}
9065
9066
9067static PyObject *_wrap_Image_ShrinkBy(PyObject *self, PyObject *args, PyObject *kwargs) {
9068 PyObject *resultobj;
9069 wxImage *arg1 = (wxImage *) 0 ;
9070 int arg2 ;
9071 int arg3 ;
9072 SwigValueWrapper< wxImage > result;
9073 PyObject * obj0 = 0 ;
9074 PyObject * obj1 = 0 ;
9075 PyObject * obj2 = 0 ;
9076 char *kwnames[] = {
9077 (char *) "self",(char *) "xFactor",(char *) "yFactor", NULL
9078 };
9079
9080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ShrinkBy",kwnames,&obj0,&obj1,&obj2)) goto fail;
9081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9083 arg2 = (int) SWIG_AsInt(obj1);
9084 if (PyErr_Occurred()) SWIG_fail;
9085 arg3 = (int) SWIG_AsInt(obj2);
9086 if (PyErr_Occurred()) SWIG_fail;
9087 {
9088 PyThreadState* __tstate = wxPyBeginAllowThreads();
9089 result = ((wxImage const *)arg1)->ShrinkBy(arg2,arg3);
9090
9091 wxPyEndAllowThreads(__tstate);
9092 if (PyErr_Occurred()) SWIG_fail;
9093 }
9094 {
9095 wxImage * resultptr;
9096 resultptr = new wxImage((wxImage &) result);
9097 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
9098 }
9099 return resultobj;
9100 fail:
9101 return NULL;
9102}
9103
9104
9105static PyObject *_wrap_Image_Rescale(PyObject *self, PyObject *args, PyObject *kwargs) {
9106 PyObject *resultobj;
9107 wxImage *arg1 = (wxImage *) 0 ;
9108 int arg2 ;
9109 int arg3 ;
9110 wxImage *result;
9111 PyObject * obj0 = 0 ;
9112 PyObject * obj1 = 0 ;
9113 PyObject * obj2 = 0 ;
9114 char *kwnames[] = {
9115 (char *) "self",(char *) "width",(char *) "height", NULL
9116 };
9117
9118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_Rescale",kwnames,&obj0,&obj1,&obj2)) goto fail;
9119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9121 arg2 = (int) SWIG_AsInt(obj1);
9122 if (PyErr_Occurred()) SWIG_fail;
9123 arg3 = (int) SWIG_AsInt(obj2);
9124 if (PyErr_Occurred()) SWIG_fail;
9125 {
9126 PyThreadState* __tstate = wxPyBeginAllowThreads();
9127 {
9128 wxImage &_result_ref = (arg1)->Rescale(arg2,arg3);
9129 result = (wxImage *) &_result_ref;
9130 }
9131
9132 wxPyEndAllowThreads(__tstate);
9133 if (PyErr_Occurred()) SWIG_fail;
9134 }
9135 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxImage, 0);
9136 return resultobj;
9137 fail:
9138 return NULL;
9139}
9140
9141
9142static PyObject *_wrap_Image_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
9143 PyObject *resultobj;
9144 wxImage *arg1 = (wxImage *) 0 ;
9145 int arg2 ;
9146 int arg3 ;
9147 unsigned char arg4 ;
9148 unsigned char arg5 ;
9149 unsigned char arg6 ;
9150 PyObject * obj0 = 0 ;
9151 PyObject * obj1 = 0 ;
9152 PyObject * obj2 = 0 ;
9153 PyObject * obj3 = 0 ;
9154 PyObject * obj4 = 0 ;
9155 PyObject * obj5 = 0 ;
9156 char *kwnames[] = {
9157 (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "g",(char *) "b", NULL
9158 };
9159
9160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Image_SetRGB",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9163 arg2 = (int) SWIG_AsInt(obj1);
9164 if (PyErr_Occurred()) SWIG_fail;
9165 arg3 = (int) SWIG_AsInt(obj2);
9166 if (PyErr_Occurred()) SWIG_fail;
9167 arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3);
9168 if (PyErr_Occurred()) SWIG_fail;
9169 arg5 = (unsigned char) SWIG_AsUnsignedChar(obj4);
9170 if (PyErr_Occurred()) SWIG_fail;
9171 arg6 = (unsigned char) SWIG_AsUnsignedChar(obj5);
9172 if (PyErr_Occurred()) SWIG_fail;
9173 {
9174 PyThreadState* __tstate = wxPyBeginAllowThreads();
9175 (arg1)->SetRGB(arg2,arg3,arg4,arg5,arg6);
9176
9177 wxPyEndAllowThreads(__tstate);
9178 if (PyErr_Occurred()) SWIG_fail;
9179 }
9180 Py_INCREF(Py_None); resultobj = Py_None;
9181 return resultobj;
9182 fail:
9183 return NULL;
9184}
9185
9186
9187static PyObject *_wrap_Image_GetRed(PyObject *self, PyObject *args, PyObject *kwargs) {
9188 PyObject *resultobj;
9189 wxImage *arg1 = (wxImage *) 0 ;
9190 int arg2 ;
9191 int arg3 ;
9192 unsigned char result;
9193 PyObject * obj0 = 0 ;
9194 PyObject * obj1 = 0 ;
9195 PyObject * obj2 = 0 ;
9196 char *kwnames[] = {
9197 (char *) "self",(char *) "x",(char *) "y", NULL
9198 };
9199
9200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetRed",kwnames,&obj0,&obj1,&obj2)) goto fail;
9201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9203 arg2 = (int) SWIG_AsInt(obj1);
9204 if (PyErr_Occurred()) SWIG_fail;
9205 arg3 = (int) SWIG_AsInt(obj2);
9206 if (PyErr_Occurred()) SWIG_fail;
9207 {
9208 PyThreadState* __tstate = wxPyBeginAllowThreads();
9209 result = (unsigned char)(arg1)->GetRed(arg2,arg3);
9210
9211 wxPyEndAllowThreads(__tstate);
9212 if (PyErr_Occurred()) SWIG_fail;
9213 }
9214 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
9215 return resultobj;
9216 fail:
9217 return NULL;
9218}
9219
9220
9221static PyObject *_wrap_Image_GetGreen(PyObject *self, PyObject *args, PyObject *kwargs) {
9222 PyObject *resultobj;
9223 wxImage *arg1 = (wxImage *) 0 ;
9224 int arg2 ;
9225 int arg3 ;
9226 unsigned char result;
9227 PyObject * obj0 = 0 ;
9228 PyObject * obj1 = 0 ;
9229 PyObject * obj2 = 0 ;
9230 char *kwnames[] = {
9231 (char *) "self",(char *) "x",(char *) "y", NULL
9232 };
9233
9234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetGreen",kwnames,&obj0,&obj1,&obj2)) goto fail;
9235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9237 arg2 = (int) SWIG_AsInt(obj1);
9238 if (PyErr_Occurred()) SWIG_fail;
9239 arg3 = (int) SWIG_AsInt(obj2);
9240 if (PyErr_Occurred()) SWIG_fail;
9241 {
9242 PyThreadState* __tstate = wxPyBeginAllowThreads();
9243 result = (unsigned char)(arg1)->GetGreen(arg2,arg3);
9244
9245 wxPyEndAllowThreads(__tstate);
9246 if (PyErr_Occurred()) SWIG_fail;
9247 }
9248 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
9249 return resultobj;
9250 fail:
9251 return NULL;
9252}
9253
9254
9255static PyObject *_wrap_Image_GetBlue(PyObject *self, PyObject *args, PyObject *kwargs) {
9256 PyObject *resultobj;
9257 wxImage *arg1 = (wxImage *) 0 ;
9258 int arg2 ;
9259 int arg3 ;
9260 unsigned char result;
9261 PyObject * obj0 = 0 ;
9262 PyObject * obj1 = 0 ;
9263 PyObject * obj2 = 0 ;
9264 char *kwnames[] = {
9265 (char *) "self",(char *) "x",(char *) "y", NULL
9266 };
9267
9268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetBlue",kwnames,&obj0,&obj1,&obj2)) goto fail;
9269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9271 arg2 = (int) SWIG_AsInt(obj1);
9272 if (PyErr_Occurred()) SWIG_fail;
9273 arg3 = (int) SWIG_AsInt(obj2);
9274 if (PyErr_Occurred()) SWIG_fail;
9275 {
9276 PyThreadState* __tstate = wxPyBeginAllowThreads();
9277 result = (unsigned char)(arg1)->GetBlue(arg2,arg3);
9278
9279 wxPyEndAllowThreads(__tstate);
9280 if (PyErr_Occurred()) SWIG_fail;
9281 }
9282 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
9283 return resultobj;
9284 fail:
9285 return NULL;
9286}
9287
9288
9289static PyObject *_wrap_Image_SetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) {
9290 PyObject *resultobj;
9291 wxImage *arg1 = (wxImage *) 0 ;
9292 int arg2 ;
9293 int arg3 ;
9294 unsigned char arg4 ;
9295 PyObject * obj0 = 0 ;
9296 PyObject * obj1 = 0 ;
9297 PyObject * obj2 = 0 ;
9298 PyObject * obj3 = 0 ;
9299 char *kwnames[] = {
9300 (char *) "self",(char *) "x",(char *) "y",(char *) "alpha", NULL
9301 };
9302
9303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9306 arg2 = (int) SWIG_AsInt(obj1);
9307 if (PyErr_Occurred()) SWIG_fail;
9308 arg3 = (int) SWIG_AsInt(obj2);
9309 if (PyErr_Occurred()) SWIG_fail;
9310 arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3);
9311 if (PyErr_Occurred()) SWIG_fail;
9312 {
9313 PyThreadState* __tstate = wxPyBeginAllowThreads();
9314 (arg1)->SetAlpha(arg2,arg3,arg4);
9315
9316 wxPyEndAllowThreads(__tstate);
9317 if (PyErr_Occurred()) SWIG_fail;
9318 }
9319 Py_INCREF(Py_None); resultobj = Py_None;
9320 return resultobj;
9321 fail:
9322 return NULL;
9323}
9324
9325
9326static PyObject *_wrap_Image_GetAlpha(PyObject *self, PyObject *args, PyObject *kwargs) {
9327 PyObject *resultobj;
9328 wxImage *arg1 = (wxImage *) 0 ;
9329 int arg2 ;
9330 int arg3 ;
9331 unsigned char result;
9332 PyObject * obj0 = 0 ;
9333 PyObject * obj1 = 0 ;
9334 PyObject * obj2 = 0 ;
9335 char *kwnames[] = {
9336 (char *) "self",(char *) "x",(char *) "y", NULL
9337 };
9338
9339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetAlpha",kwnames,&obj0,&obj1,&obj2)) goto fail;
9340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9342 arg2 = (int) SWIG_AsInt(obj1);
9343 if (PyErr_Occurred()) SWIG_fail;
9344 arg3 = (int) SWIG_AsInt(obj2);
9345 if (PyErr_Occurred()) SWIG_fail;
9346 {
9347 PyThreadState* __tstate = wxPyBeginAllowThreads();
9348 result = (unsigned char)(arg1)->GetAlpha(arg2,arg3);
9349
9350 wxPyEndAllowThreads(__tstate);
9351 if (PyErr_Occurred()) SWIG_fail;
9352 }
9353 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
9354 return resultobj;
9355 fail:
9356 return NULL;
9357}
9358
9359
9360static PyObject *_wrap_Image_HasAlpha(PyObject *self, PyObject *args, PyObject *kwargs) {
9361 PyObject *resultobj;
9362 wxImage *arg1 = (wxImage *) 0 ;
9363 bool result;
9364 PyObject * obj0 = 0 ;
9365 char *kwnames[] = {
9366 (char *) "self", NULL
9367 };
9368
9369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasAlpha",kwnames,&obj0)) goto fail;
9370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9372 {
9373 PyThreadState* __tstate = wxPyBeginAllowThreads();
9374 result = (bool)(arg1)->HasAlpha();
9375
9376 wxPyEndAllowThreads(__tstate);
9377 if (PyErr_Occurred()) SWIG_fail;
9378 }
9379 {
9380 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9381 }
9382 return resultobj;
9383 fail:
9384 return NULL;
9385}
9386
9387
9388static PyObject *_wrap_Image_FindFirstUnusedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
9389 PyObject *resultobj;
9390 wxImage *arg1 = (wxImage *) 0 ;
9391 byte *arg2 = (byte *) 0 ;
9392 byte *arg3 = (byte *) 0 ;
9393 byte *arg4 = (byte *) 0 ;
9394 byte arg5 = (byte) 0 ;
9395 byte arg6 = (byte) 0 ;
9396 byte arg7 = (byte) 0 ;
9397 bool result;
9398 byte temp2 ;
9399 byte temp3 ;
9400 byte temp4 ;
9401 PyObject * obj0 = 0 ;
9402 PyObject * obj1 = 0 ;
9403 PyObject * obj2 = 0 ;
9404 PyObject * obj3 = 0 ;
9405 char *kwnames[] = {
9406 (char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL
9407 };
9408
9409 arg2 = &temp2;
9410 arg3 = &temp3;
9411 arg4 = &temp4;
9412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9413 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9415 if (obj1) {
9416 arg5 = (byte) SWIG_AsUnsignedChar(obj1);
9417 if (PyErr_Occurred()) SWIG_fail;
9418 }
9419 if (obj2) {
9420 arg6 = (byte) SWIG_AsUnsignedChar(obj2);
9421 if (PyErr_Occurred()) SWIG_fail;
9422 }
9423 if (obj3) {
9424 arg7 = (byte) SWIG_AsUnsignedChar(obj3);
9425 if (PyErr_Occurred()) SWIG_fail;
9426 }
9427 {
9428 PyThreadState* __tstate = wxPyBeginAllowThreads();
9429 result = (bool)((wxImage const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7);
9430
9431 wxPyEndAllowThreads(__tstate);
9432 if (PyErr_Occurred()) SWIG_fail;
9433 }
9434 {
9435 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9436 }
9437 {
9438 PyObject *o = PyInt_FromLong((long) (*arg2));
9439 resultobj = t_output_helper(resultobj,o);
9440 }
9441 {
9442 PyObject *o = PyInt_FromLong((long) (*arg3));
9443 resultobj = t_output_helper(resultobj,o);
9444 }
9445 {
9446 PyObject *o = PyInt_FromLong((long) (*arg4));
9447 resultobj = t_output_helper(resultobj,o);
9448 }
9449 return resultobj;
9450 fail:
9451 return NULL;
9452}
9453
9454
9455static PyObject *_wrap_Image_SetMaskFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
9456 PyObject *resultobj;
9457 wxImage *arg1 = (wxImage *) 0 ;
9458 wxImage *arg2 = 0 ;
9459 byte arg3 ;
9460 byte arg4 ;
9461 byte arg5 ;
9462 bool result;
9463 PyObject * obj0 = 0 ;
9464 PyObject * obj1 = 0 ;
9465 PyObject * obj2 = 0 ;
9466 PyObject * obj3 = 0 ;
9467 PyObject * obj4 = 0 ;
9468 char *kwnames[] = {
9469 (char *) "self",(char *) "mask",(char *) "mr",(char *) "mg",(char *) "mb", NULL
9470 };
9471
9472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetMaskFromImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
9473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9475 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage,
9476 SWIG_POINTER_EXCEPTION | 0)) == -1)
9477 SWIG_fail;
9478 if (arg2 == NULL) {
9479 PyErr_SetString(PyExc_TypeError,"null reference");
9480 SWIG_fail;
9481 }
9482 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
9483 if (PyErr_Occurred()) SWIG_fail;
9484 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
9485 if (PyErr_Occurred()) SWIG_fail;
9486 arg5 = (byte) SWIG_AsUnsignedChar(obj4);
9487 if (PyErr_Occurred()) SWIG_fail;
9488 {
9489 PyThreadState* __tstate = wxPyBeginAllowThreads();
9490 result = (bool)(arg1)->SetMaskFromImage((wxImage const &)*arg2,arg3,arg4,arg5);
9491
9492 wxPyEndAllowThreads(__tstate);
9493 if (PyErr_Occurred()) SWIG_fail;
9494 }
9495 {
9496 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9497 }
9498 return resultobj;
9499 fail:
9500 return NULL;
9501}
9502
9503
9504static PyObject *_wrap_Image_CanRead(PyObject *self, PyObject *args, PyObject *kwargs) {
9505 PyObject *resultobj;
9506 wxString *arg1 = 0 ;
9507 bool result;
9508 bool temp1 = False ;
9509 PyObject * obj0 = 0 ;
9510 char *kwnames[] = {
9511 (char *) "name", NULL
9512 };
9513
9514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanRead",kwnames,&obj0)) goto fail;
9515 {
9516 arg1 = wxString_in_helper(obj0);
9517 if (arg1 == NULL) SWIG_fail;
9518 temp1 = True;
9519 }
9520 {
9521 PyThreadState* __tstate = wxPyBeginAllowThreads();
9522 result = (bool)wxImage::CanRead((wxString const &)*arg1);
9523
9524 wxPyEndAllowThreads(__tstate);
9525 if (PyErr_Occurred()) SWIG_fail;
9526 }
9527 {
9528 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9529 }
9530 {
9531 if (temp1)
9532 delete arg1;
9533 }
9534 return resultobj;
9535 fail:
9536 {
9537 if (temp1)
9538 delete arg1;
9539 }
9540 return NULL;
9541}
9542
9543
9544static PyObject *_wrap_Image_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
9545 PyObject *resultobj;
9546 wxString *arg1 = 0 ;
9547 long arg2 = (long) wxBITMAP_TYPE_ANY ;
9548 int result;
9549 bool temp1 = False ;
9550 PyObject * obj0 = 0 ;
9551 PyObject * obj1 = 0 ;
9552 char *kwnames[] = {
9553 (char *) "name",(char *) "type", NULL
9554 };
9555
9556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_GetImageCount",kwnames,&obj0,&obj1)) goto fail;
9557 {
9558 arg1 = wxString_in_helper(obj0);
9559 if (arg1 == NULL) SWIG_fail;
9560 temp1 = True;
9561 }
9562 if (obj1) {
9563 arg2 = (long) SWIG_AsLong(obj1);
9564 if (PyErr_Occurred()) SWIG_fail;
9565 }
9566 {
9567 PyThreadState* __tstate = wxPyBeginAllowThreads();
9568 result = (int)wxImage::GetImageCount((wxString const &)*arg1,arg2);
9569
9570 wxPyEndAllowThreads(__tstate);
9571 if (PyErr_Occurred()) SWIG_fail;
9572 }
9573 resultobj = SWIG_FromInt((int)result);
9574 {
9575 if (temp1)
9576 delete arg1;
9577 }
9578 return resultobj;
9579 fail:
9580 {
9581 if (temp1)
9582 delete arg1;
9583 }
9584 return NULL;
9585}
9586
9587
9588static PyObject *_wrap_Image_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
9589 PyObject *resultobj;
9590 wxImage *arg1 = (wxImage *) 0 ;
9591 wxString *arg2 = 0 ;
9592 long arg3 = (long) wxBITMAP_TYPE_ANY ;
9593 int arg4 = (int) -1 ;
9594 bool result;
9595 bool temp2 = False ;
9596 PyObject * obj0 = 0 ;
9597 PyObject * obj1 = 0 ;
9598 PyObject * obj2 = 0 ;
9599 PyObject * obj3 = 0 ;
9600 char *kwnames[] = {
9601 (char *) "self",(char *) "name",(char *) "type",(char *) "index", NULL
9602 };
9603
9604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9607 {
9608 arg2 = wxString_in_helper(obj1);
9609 if (arg2 == NULL) SWIG_fail;
9610 temp2 = True;
9611 }
9612 if (obj2) {
9613 arg3 = (long) SWIG_AsLong(obj2);
9614 if (PyErr_Occurred()) SWIG_fail;
9615 }
9616 if (obj3) {
9617 arg4 = (int) SWIG_AsInt(obj3);
9618 if (PyErr_Occurred()) SWIG_fail;
9619 }
9620 {
9621 PyThreadState* __tstate = wxPyBeginAllowThreads();
9622 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3,arg4);
9623
9624 wxPyEndAllowThreads(__tstate);
9625 if (PyErr_Occurred()) SWIG_fail;
9626 }
9627 {
9628 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9629 }
9630 {
9631 if (temp2)
9632 delete arg2;
9633 }
9634 return resultobj;
9635 fail:
9636 {
9637 if (temp2)
9638 delete arg2;
9639 }
9640 return NULL;
9641}
9642
9643
9644static PyObject *_wrap_Image_LoadMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) {
9645 PyObject *resultobj;
9646 wxImage *arg1 = (wxImage *) 0 ;
9647 wxString *arg2 = 0 ;
9648 wxString *arg3 = 0 ;
9649 int arg4 = (int) -1 ;
9650 bool result;
9651 bool temp2 = False ;
9652 bool temp3 = False ;
9653 PyObject * obj0 = 0 ;
9654 PyObject * obj1 = 0 ;
9655 PyObject * obj2 = 0 ;
9656 PyObject * obj3 = 0 ;
9657 char *kwnames[] = {
9658 (char *) "self",(char *) "name",(char *) "mimetype",(char *) "index", NULL
9659 };
9660
9661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9664 {
9665 arg2 = wxString_in_helper(obj1);
9666 if (arg2 == NULL) SWIG_fail;
9667 temp2 = True;
9668 }
9669 {
9670 arg3 = wxString_in_helper(obj2);
9671 if (arg3 == NULL) SWIG_fail;
9672 temp3 = True;
9673 }
9674 if (obj3) {
9675 arg4 = (int) SWIG_AsInt(obj3);
9676 if (PyErr_Occurred()) SWIG_fail;
9677 }
9678 {
9679 PyThreadState* __tstate = wxPyBeginAllowThreads();
9680 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxString const &)*arg3,arg4);
9681
9682 wxPyEndAllowThreads(__tstate);
9683 if (PyErr_Occurred()) SWIG_fail;
9684 }
9685 {
9686 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9687 }
9688 {
9689 if (temp2)
9690 delete arg2;
9691 }
9692 {
9693 if (temp3)
9694 delete arg3;
9695 }
9696 return resultobj;
9697 fail:
9698 {
9699 if (temp2)
9700 delete arg2;
9701 }
9702 {
9703 if (temp3)
9704 delete arg3;
9705 }
9706 return NULL;
9707}
9708
9709
9710static PyObject *_wrap_Image_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
9711 PyObject *resultobj;
9712 wxImage *arg1 = (wxImage *) 0 ;
9713 wxString *arg2 = 0 ;
9714 int arg3 ;
9715 bool result;
9716 bool temp2 = False ;
9717 PyObject * obj0 = 0 ;
9718 PyObject * obj1 = 0 ;
9719 PyObject * obj2 = 0 ;
9720 char *kwnames[] = {
9721 (char *) "self",(char *) "name",(char *) "type", NULL
9722 };
9723
9724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
9725 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9727 {
9728 arg2 = wxString_in_helper(obj1);
9729 if (arg2 == NULL) SWIG_fail;
9730 temp2 = True;
9731 }
9732 arg3 = (int) SWIG_AsInt(obj2);
9733 if (PyErr_Occurred()) SWIG_fail;
9734 {
9735 PyThreadState* __tstate = wxPyBeginAllowThreads();
9736 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3);
9737
9738 wxPyEndAllowThreads(__tstate);
9739 if (PyErr_Occurred()) SWIG_fail;
9740 }
9741 {
9742 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9743 }
9744 {
9745 if (temp2)
9746 delete arg2;
9747 }
9748 return resultobj;
9749 fail:
9750 {
9751 if (temp2)
9752 delete arg2;
9753 }
9754 return NULL;
9755}
9756
9757
9758static PyObject *_wrap_Image_SaveMimeFile(PyObject *self, PyObject *args, PyObject *kwargs) {
9759 PyObject *resultobj;
9760 wxImage *arg1 = (wxImage *) 0 ;
9761 wxString *arg2 = 0 ;
9762 wxString *arg3 = 0 ;
9763 bool result;
9764 bool temp2 = False ;
9765 bool temp3 = False ;
9766 PyObject * obj0 = 0 ;
9767 PyObject * obj1 = 0 ;
9768 PyObject * obj2 = 0 ;
9769 char *kwnames[] = {
9770 (char *) "self",(char *) "name",(char *) "mimetype", NULL
9771 };
9772
9773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveMimeFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
9774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9776 {
9777 arg2 = wxString_in_helper(obj1);
9778 if (arg2 == NULL) SWIG_fail;
9779 temp2 = True;
9780 }
9781 {
9782 arg3 = wxString_in_helper(obj2);
9783 if (arg3 == NULL) SWIG_fail;
9784 temp3 = True;
9785 }
9786 {
9787 PyThreadState* __tstate = wxPyBeginAllowThreads();
9788 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxString const &)*arg3);
9789
9790 wxPyEndAllowThreads(__tstate);
9791 if (PyErr_Occurred()) SWIG_fail;
9792 }
9793 {
9794 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9795 }
9796 {
9797 if (temp2)
9798 delete arg2;
9799 }
9800 {
9801 if (temp3)
9802 delete arg3;
9803 }
9804 return resultobj;
9805 fail:
9806 {
9807 if (temp2)
9808 delete arg2;
9809 }
9810 {
9811 if (temp3)
9812 delete arg3;
9813 }
9814 return NULL;
9815}
9816
9817
9818static PyObject *_wrap_Image_CanReadStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9819 PyObject *resultobj;
9820 wxInputStream *arg1 = 0 ;
9821 bool result;
9822 wxPyInputStream *temp1 ;
9823 bool created1 ;
9824 PyObject * obj0 = 0 ;
9825 char *kwnames[] = {
9826 (char *) "stream", NULL
9827 };
9828
9829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanReadStream",kwnames,&obj0)) goto fail;
9830 {
9831 if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
9832 arg1 = temp1->m_wxis;
9833 created1 = False;
9834 } else {
9835 PyErr_Clear(); // clear the failure of the wxPyConvert above
9836 arg1 = wxPyCBInputStream_create(obj0, False);
9837 if (arg1 == NULL) {
9838 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
9839 SWIG_fail;
9840 }
9841 created1 = True;
9842 }
9843 }
9844 {
9845 PyThreadState* __tstate = wxPyBeginAllowThreads();
9846 result = (bool)wxImage::CanRead(*arg1);
9847
9848 wxPyEndAllowThreads(__tstate);
9849 if (PyErr_Occurred()) SWIG_fail;
9850 }
9851 {
9852 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9853 }
9854 {
9855 if (created1)
9856 delete arg1;
9857 }
9858 return resultobj;
9859 fail:
9860 {
9861 if (created1)
9862 delete arg1;
9863 }
9864 return NULL;
9865}
9866
9867
9868static PyObject *_wrap_Image_LoadStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9869 PyObject *resultobj;
9870 wxImage *arg1 = (wxImage *) 0 ;
9871 wxInputStream *arg2 = 0 ;
9872 long arg3 = (long) wxBITMAP_TYPE_ANY ;
9873 int arg4 = (int) -1 ;
9874 bool result;
9875 wxPyInputStream *temp2 ;
9876 bool created2 ;
9877 PyObject * obj0 = 0 ;
9878 PyObject * obj1 = 0 ;
9879 PyObject * obj2 = 0 ;
9880 PyObject * obj3 = 0 ;
9881 char *kwnames[] = {
9882 (char *) "self",(char *) "stream",(char *) "type",(char *) "index", NULL
9883 };
9884
9885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9888 {
9889 if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) {
9890 arg2 = temp2->m_wxis;
9891 created2 = False;
9892 } else {
9893 PyErr_Clear(); // clear the failure of the wxPyConvert above
9894 arg2 = wxPyCBInputStream_create(obj1, False);
9895 if (arg2 == NULL) {
9896 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
9897 SWIG_fail;
9898 }
9899 created2 = True;
9900 }
9901 }
9902 if (obj2) {
9903 arg3 = (long) SWIG_AsLong(obj2);
9904 if (PyErr_Occurred()) SWIG_fail;
9905 }
9906 if (obj3) {
9907 arg4 = (int) SWIG_AsInt(obj3);
9908 if (PyErr_Occurred()) SWIG_fail;
9909 }
9910 {
9911 PyThreadState* __tstate = wxPyBeginAllowThreads();
9912 result = (bool)(arg1)->LoadFile(*arg2,arg3,arg4);
9913
9914 wxPyEndAllowThreads(__tstate);
9915 if (PyErr_Occurred()) SWIG_fail;
9916 }
9917 {
9918 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9919 }
9920 {
9921 if (created2)
9922 delete arg2;
9923 }
9924 return resultobj;
9925 fail:
9926 {
9927 if (created2)
9928 delete arg2;
9929 }
9930 return NULL;
9931}
9932
9933
9934static PyObject *_wrap_Image_LoadMimeStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9935 PyObject *resultobj;
9936 wxImage *arg1 = (wxImage *) 0 ;
9937 wxInputStream *arg2 = 0 ;
9938 wxString *arg3 = 0 ;
9939 int arg4 = (int) -1 ;
9940 bool result;
9941 wxPyInputStream *temp2 ;
9942 bool created2 ;
9943 bool temp3 = False ;
9944 PyObject * obj0 = 0 ;
9945 PyObject * obj1 = 0 ;
9946 PyObject * obj2 = 0 ;
9947 PyObject * obj3 = 0 ;
9948 char *kwnames[] = {
9949 (char *) "self",(char *) "stream",(char *) "mimetype",(char *) "index", NULL
9950 };
9951
9952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeStream",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
9954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9955 {
9956 if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) {
9957 arg2 = temp2->m_wxis;
9958 created2 = False;
9959 } else {
9960 PyErr_Clear(); // clear the failure of the wxPyConvert above
9961 arg2 = wxPyCBInputStream_create(obj1, False);
9962 if (arg2 == NULL) {
9963 PyErr_SetString(PyExc_TypeError, "Expected wxInputStream or Python file-like object.");
9964 SWIG_fail;
9965 }
9966 created2 = True;
9967 }
9968 }
9969 {
9970 arg3 = wxString_in_helper(obj2);
9971 if (arg3 == NULL) SWIG_fail;
9972 temp3 = True;
9973 }
9974 if (obj3) {
9975 arg4 = (int) SWIG_AsInt(obj3);
9976 if (PyErr_Occurred()) SWIG_fail;
9977 }
9978 {
9979 PyThreadState* __tstate = wxPyBeginAllowThreads();
9980 result = (bool)(arg1)->LoadFile(*arg2,(wxString const &)*arg3,arg4);
9981
9982 wxPyEndAllowThreads(__tstate);
9983 if (PyErr_Occurred()) SWIG_fail;
9984 }
9985 {
9986 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9987 }
9988 {
9989 if (created2)
9990 delete arg2;
9991 }
9992 {
9993 if (temp3)
9994 delete arg3;
9995 }
9996 return resultobj;
9997 fail:
9998 {
9999 if (created2)
10000 delete arg2;
10001 }
10002 {
10003 if (temp3)
10004 delete arg3;
10005 }
10006 return NULL;
10007}
10008
10009
10010static PyObject *_wrap_Image_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
10011 PyObject *resultobj;
10012 wxImage *arg1 = (wxImage *) 0 ;
10013 bool result;
10014 PyObject * obj0 = 0 ;
10015 char *kwnames[] = {
10016 (char *) "self", NULL
10017 };
10018
10019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Ok",kwnames,&obj0)) goto fail;
10020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10022 {
10023 PyThreadState* __tstate = wxPyBeginAllowThreads();
10024 result = (bool)(arg1)->Ok();
10025
10026 wxPyEndAllowThreads(__tstate);
10027 if (PyErr_Occurred()) SWIG_fail;
10028 }
10029 {
10030 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10031 }
10032 return resultobj;
10033 fail:
10034 return NULL;
10035}
10036
10037
10038static PyObject *_wrap_Image_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
10039 PyObject *resultobj;
10040 wxImage *arg1 = (wxImage *) 0 ;
10041 int result;
10042 PyObject * obj0 = 0 ;
10043 char *kwnames[] = {
10044 (char *) "self", NULL
10045 };
10046
10047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetWidth",kwnames,&obj0)) goto fail;
10048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10050 {
10051 PyThreadState* __tstate = wxPyBeginAllowThreads();
10052 result = (int)(arg1)->GetWidth();
10053
10054 wxPyEndAllowThreads(__tstate);
10055 if (PyErr_Occurred()) SWIG_fail;
10056 }
10057 resultobj = SWIG_FromInt((int)result);
10058 return resultobj;
10059 fail:
10060 return NULL;
10061}
10062
10063
10064static PyObject *_wrap_Image_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
10065 PyObject *resultobj;
10066 wxImage *arg1 = (wxImage *) 0 ;
10067 int result;
10068 PyObject * obj0 = 0 ;
10069 char *kwnames[] = {
10070 (char *) "self", NULL
10071 };
10072
10073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetHeight",kwnames,&obj0)) goto fail;
10074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10076 {
10077 PyThreadState* __tstate = wxPyBeginAllowThreads();
10078 result = (int)(arg1)->GetHeight();
10079
10080 wxPyEndAllowThreads(__tstate);
10081 if (PyErr_Occurred()) SWIG_fail;
10082 }
10083 resultobj = SWIG_FromInt((int)result);
10084 return resultobj;
10085 fail:
10086 return NULL;
10087}
10088
10089
10090static PyObject *_wrap_Image_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10091 PyObject *resultobj;
10092 wxImage *arg1 = (wxImage *) 0 ;
10093 wxSize result;
10094 PyObject * obj0 = 0 ;
10095 char *kwnames[] = {
10096 (char *) "self", NULL
10097 };
10098
10099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetSize",kwnames,&obj0)) goto fail;
10100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10102 {
10103 PyThreadState* __tstate = wxPyBeginAllowThreads();
10104 result = wxImage_GetSize(arg1);
10105
10106 wxPyEndAllowThreads(__tstate);
10107 if (PyErr_Occurred()) SWIG_fail;
10108 }
10109 {
10110 wxSize * resultptr;
10111 resultptr = new wxSize((wxSize &) result);
10112 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
10113 }
10114 return resultobj;
10115 fail:
10116 return NULL;
10117}
10118
10119
10120static PyObject *_wrap_Image_GetSubImage(PyObject *self, PyObject *args, PyObject *kwargs) {
10121 PyObject *resultobj;
10122 wxImage *arg1 = (wxImage *) 0 ;
10123 wxRect *arg2 = 0 ;
10124 SwigValueWrapper< wxImage > result;
10125 wxRect temp2 ;
10126 PyObject * obj0 = 0 ;
10127 PyObject * obj1 = 0 ;
10128 char *kwnames[] = {
10129 (char *) "self",(char *) "rect", NULL
10130 };
10131
10132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetSubImage",kwnames,&obj0,&obj1)) goto fail;
10133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10135 {
10136 arg2 = &temp2;
10137 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10138 }
10139 {
10140 PyThreadState* __tstate = wxPyBeginAllowThreads();
10141 result = (arg1)->GetSubImage((wxRect const &)*arg2);
10142
10143 wxPyEndAllowThreads(__tstate);
10144 if (PyErr_Occurred()) SWIG_fail;
10145 }
10146 {
10147 wxImage * resultptr;
10148 resultptr = new wxImage((wxImage &) result);
10149 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
10150 }
10151 return resultobj;
10152 fail:
10153 return NULL;
10154}
10155
10156
10157static PyObject *_wrap_Image_Copy(PyObject *self, PyObject *args, PyObject *kwargs) {
10158 PyObject *resultobj;
10159 wxImage *arg1 = (wxImage *) 0 ;
10160 SwigValueWrapper< wxImage > result;
10161 PyObject * obj0 = 0 ;
10162 char *kwnames[] = {
10163 (char *) "self", NULL
10164 };
10165
10166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_Copy",kwnames,&obj0)) goto fail;
10167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10169 {
10170 PyThreadState* __tstate = wxPyBeginAllowThreads();
10171 result = (arg1)->Copy();
10172
10173 wxPyEndAllowThreads(__tstate);
10174 if (PyErr_Occurred()) SWIG_fail;
10175 }
10176 {
10177 wxImage * resultptr;
10178 resultptr = new wxImage((wxImage &) result);
10179 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
10180 }
10181 return resultobj;
10182 fail:
10183 return NULL;
10184}
10185
10186
10187static PyObject *_wrap_Image_Paste(PyObject *self, PyObject *args, PyObject *kwargs) {
10188 PyObject *resultobj;
10189 wxImage *arg1 = (wxImage *) 0 ;
10190 wxImage *arg2 = 0 ;
10191 int arg3 ;
10192 int arg4 ;
10193 PyObject * obj0 = 0 ;
10194 PyObject * obj1 = 0 ;
10195 PyObject * obj2 = 0 ;
10196 PyObject * obj3 = 0 ;
10197 char *kwnames[] = {
10198 (char *) "self",(char *) "image",(char *) "x",(char *) "y", NULL
10199 };
10200
10201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_Paste",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10204 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImage,
10205 SWIG_POINTER_EXCEPTION | 0)) == -1)
10206 SWIG_fail;
10207 if (arg2 == NULL) {
10208 PyErr_SetString(PyExc_TypeError,"null reference");
10209 SWIG_fail;
10210 }
10211 arg3 = (int) SWIG_AsInt(obj2);
10212 if (PyErr_Occurred()) SWIG_fail;
10213 arg4 = (int) SWIG_AsInt(obj3);
10214 if (PyErr_Occurred()) SWIG_fail;
10215 {
10216 PyThreadState* __tstate = wxPyBeginAllowThreads();
10217 (arg1)->Paste((wxImage const &)*arg2,arg3,arg4);
10218
10219 wxPyEndAllowThreads(__tstate);
10220 if (PyErr_Occurred()) SWIG_fail;
10221 }
10222 Py_INCREF(Py_None); resultobj = Py_None;
10223 return resultobj;
10224 fail:
10225 return NULL;
10226}
10227
10228
10229static PyObject *_wrap_Image_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
10230 PyObject *resultobj;
10231 wxImage *arg1 = (wxImage *) 0 ;
10232 PyObject *result;
10233 PyObject * obj0 = 0 ;
10234 char *kwnames[] = {
10235 (char *) "self", NULL
10236 };
10237
10238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetData",kwnames,&obj0)) goto fail;
10239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10241 {
10242 PyThreadState* __tstate = wxPyBeginAllowThreads();
10243 result = (PyObject *)wxImage_GetData(arg1);
10244
10245 wxPyEndAllowThreads(__tstate);
10246 if (PyErr_Occurred()) SWIG_fail;
10247 }
10248 resultobj = result;
10249 return resultobj;
10250 fail:
10251 return NULL;
10252}
10253
10254
10255static PyObject *_wrap_Image_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
10256 PyObject *resultobj;
10257 wxImage *arg1 = (wxImage *) 0 ;
10258 PyObject *arg2 = (PyObject *) 0 ;
10259 PyObject * obj0 = 0 ;
10260 PyObject * obj1 = 0 ;
10261 char *kwnames[] = {
10262 (char *) "self",(char *) "data", NULL
10263 };
10264
10265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetData",kwnames,&obj0,&obj1)) goto fail;
10266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10268 arg2 = obj1;
10269 {
10270 PyThreadState* __tstate = wxPyBeginAllowThreads();
10271 wxImage_SetData(arg1,arg2);
10272
10273 wxPyEndAllowThreads(__tstate);
10274 if (PyErr_Occurred()) SWIG_fail;
10275 }
10276 Py_INCREF(Py_None); resultobj = Py_None;
10277 return resultobj;
10278 fail:
10279 return NULL;
10280}
10281
10282
10283static PyObject *_wrap_Image_GetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
10284 PyObject *resultobj;
10285 wxImage *arg1 = (wxImage *) 0 ;
10286 PyObject *result;
10287 PyObject * obj0 = 0 ;
10288 char *kwnames[] = {
10289 (char *) "self", NULL
10290 };
10291
10292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetDataBuffer",kwnames,&obj0)) goto fail;
10293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10295 {
10296 PyThreadState* __tstate = wxPyBeginAllowThreads();
10297 result = (PyObject *)wxImage_GetDataBuffer(arg1);
10298
10299 wxPyEndAllowThreads(__tstate);
10300 if (PyErr_Occurred()) SWIG_fail;
10301 }
10302 resultobj = result;
10303 return resultobj;
10304 fail:
10305 return NULL;
10306}
10307
10308
10309static PyObject *_wrap_Image_SetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
10310 PyObject *resultobj;
10311 wxImage *arg1 = (wxImage *) 0 ;
10312 PyObject *arg2 = (PyObject *) 0 ;
10313 PyObject * obj0 = 0 ;
10314 PyObject * obj1 = 0 ;
10315 char *kwnames[] = {
10316 (char *) "self",(char *) "data", NULL
10317 };
10318
10319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetDataBuffer",kwnames,&obj0,&obj1)) goto fail;
10320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10322 arg2 = obj1;
10323 {
10324 PyThreadState* __tstate = wxPyBeginAllowThreads();
10325 wxImage_SetDataBuffer(arg1,arg2);
10326
10327 wxPyEndAllowThreads(__tstate);
10328 if (PyErr_Occurred()) SWIG_fail;
10329 }
10330 Py_INCREF(Py_None); resultobj = Py_None;
10331 return resultobj;
10332 fail:
10333 return NULL;
10334}
10335
10336
10337static PyObject *_wrap_Image_GetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) {
10338 PyObject *resultobj;
10339 wxImage *arg1 = (wxImage *) 0 ;
10340 PyObject *result;
10341 PyObject * obj0 = 0 ;
10342 char *kwnames[] = {
10343 (char *) "self", NULL
10344 };
10345
10346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaData",kwnames,&obj0)) goto fail;
10347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10349 {
10350 PyThreadState* __tstate = wxPyBeginAllowThreads();
10351 result = (PyObject *)wxImage_GetAlphaData(arg1);
10352
10353 wxPyEndAllowThreads(__tstate);
10354 if (PyErr_Occurred()) SWIG_fail;
10355 }
10356 resultobj = result;
10357 return resultobj;
10358 fail:
10359 return NULL;
10360}
10361
10362
10363static PyObject *_wrap_Image_SetAlphaData(PyObject *self, PyObject *args, PyObject *kwargs) {
10364 PyObject *resultobj;
10365 wxImage *arg1 = (wxImage *) 0 ;
10366 PyObject *arg2 = (PyObject *) 0 ;
10367 PyObject * obj0 = 0 ;
10368 PyObject * obj1 = 0 ;
10369 char *kwnames[] = {
10370 (char *) "self",(char *) "data", NULL
10371 };
10372
10373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaData",kwnames,&obj0,&obj1)) goto fail;
10374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10376 arg2 = obj1;
10377 {
10378 PyThreadState* __tstate = wxPyBeginAllowThreads();
10379 wxImage_SetAlphaData(arg1,arg2);
10380
10381 wxPyEndAllowThreads(__tstate);
10382 if (PyErr_Occurred()) SWIG_fail;
10383 }
10384 Py_INCREF(Py_None); resultobj = Py_None;
10385 return resultobj;
10386 fail:
10387 return NULL;
10388}
10389
10390
10391static PyObject *_wrap_Image_GetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
10392 PyObject *resultobj;
10393 wxImage *arg1 = (wxImage *) 0 ;
10394 PyObject *result;
10395 PyObject * obj0 = 0 ;
10396 char *kwnames[] = {
10397 (char *) "self", NULL
10398 };
10399
10400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetAlphaBuffer",kwnames,&obj0)) goto fail;
10401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10403 {
10404 PyThreadState* __tstate = wxPyBeginAllowThreads();
10405 result = (PyObject *)wxImage_GetAlphaBuffer(arg1);
10406
10407 wxPyEndAllowThreads(__tstate);
10408 if (PyErr_Occurred()) SWIG_fail;
10409 }
10410 resultobj = result;
10411 return resultobj;
10412 fail:
10413 return NULL;
10414}
10415
10416
10417static PyObject *_wrap_Image_SetAlphaBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
10418 PyObject *resultobj;
10419 wxImage *arg1 = (wxImage *) 0 ;
10420 PyObject *arg2 = (PyObject *) 0 ;
10421 PyObject * obj0 = 0 ;
10422 PyObject * obj1 = 0 ;
10423 char *kwnames[] = {
10424 (char *) "self",(char *) "data", NULL
10425 };
10426
10427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaBuffer",kwnames,&obj0,&obj1)) goto fail;
10428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10430 arg2 = obj1;
10431 {
10432 PyThreadState* __tstate = wxPyBeginAllowThreads();
10433 wxImage_SetAlphaBuffer(arg1,arg2);
10434
10435 wxPyEndAllowThreads(__tstate);
10436 if (PyErr_Occurred()) SWIG_fail;
10437 }
10438 Py_INCREF(Py_None); resultobj = Py_None;
10439 return resultobj;
10440 fail:
10441 return NULL;
10442}
10443
10444
10445static PyObject *_wrap_Image_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
10446 PyObject *resultobj;
10447 wxImage *arg1 = (wxImage *) 0 ;
10448 unsigned char arg2 ;
10449 unsigned char arg3 ;
10450 unsigned char arg4 ;
10451 PyObject * obj0 = 0 ;
10452 PyObject * obj1 = 0 ;
10453 PyObject * obj2 = 0 ;
10454 PyObject * obj3 = 0 ;
10455 char *kwnames[] = {
10456 (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL
10457 };
10458
10459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetMaskColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10462 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
10463 if (PyErr_Occurred()) SWIG_fail;
10464 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
10465 if (PyErr_Occurred()) SWIG_fail;
10466 arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3);
10467 if (PyErr_Occurred()) SWIG_fail;
10468 {
10469 PyThreadState* __tstate = wxPyBeginAllowThreads();
10470 (arg1)->SetMaskColour(arg2,arg3,arg4);
10471
10472 wxPyEndAllowThreads(__tstate);
10473 if (PyErr_Occurred()) SWIG_fail;
10474 }
10475 Py_INCREF(Py_None); resultobj = Py_None;
10476 return resultobj;
10477 fail:
10478 return NULL;
10479}
10480
10481
10482static PyObject *_wrap_Image_GetMaskRed(PyObject *self, PyObject *args, PyObject *kwargs) {
10483 PyObject *resultobj;
10484 wxImage *arg1 = (wxImage *) 0 ;
10485 unsigned char result;
10486 PyObject * obj0 = 0 ;
10487 char *kwnames[] = {
10488 (char *) "self", NULL
10489 };
10490
10491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskRed",kwnames,&obj0)) goto fail;
10492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10494 {
10495 PyThreadState* __tstate = wxPyBeginAllowThreads();
10496 result = (unsigned char)(arg1)->GetMaskRed();
10497
10498 wxPyEndAllowThreads(__tstate);
10499 if (PyErr_Occurred()) SWIG_fail;
10500 }
10501 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
10502 return resultobj;
10503 fail:
10504 return NULL;
10505}
10506
10507
10508static PyObject *_wrap_Image_GetMaskGreen(PyObject *self, PyObject *args, PyObject *kwargs) {
10509 PyObject *resultobj;
10510 wxImage *arg1 = (wxImage *) 0 ;
10511 unsigned char result;
10512 PyObject * obj0 = 0 ;
10513 char *kwnames[] = {
10514 (char *) "self", NULL
10515 };
10516
10517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskGreen",kwnames,&obj0)) goto fail;
10518 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10520 {
10521 PyThreadState* __tstate = wxPyBeginAllowThreads();
10522 result = (unsigned char)(arg1)->GetMaskGreen();
10523
10524 wxPyEndAllowThreads(__tstate);
10525 if (PyErr_Occurred()) SWIG_fail;
10526 }
10527 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
10528 return resultobj;
10529 fail:
10530 return NULL;
10531}
10532
10533
10534static PyObject *_wrap_Image_GetMaskBlue(PyObject *self, PyObject *args, PyObject *kwargs) {
10535 PyObject *resultobj;
10536 wxImage *arg1 = (wxImage *) 0 ;
10537 unsigned char result;
10538 PyObject * obj0 = 0 ;
10539 char *kwnames[] = {
10540 (char *) "self", NULL
10541 };
10542
10543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_GetMaskBlue",kwnames,&obj0)) goto fail;
10544 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10546 {
10547 PyThreadState* __tstate = wxPyBeginAllowThreads();
10548 result = (unsigned char)(arg1)->GetMaskBlue();
10549
10550 wxPyEndAllowThreads(__tstate);
10551 if (PyErr_Occurred()) SWIG_fail;
10552 }
10553 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
10554 return resultobj;
10555 fail:
10556 return NULL;
10557}
10558
10559
10560static PyObject *_wrap_Image_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
10561 PyObject *resultobj;
10562 wxImage *arg1 = (wxImage *) 0 ;
10563 bool arg2 = (bool) True ;
10564 PyObject * obj0 = 0 ;
10565 PyObject * obj1 = 0 ;
10566 char *kwnames[] = {
10567 (char *) "self",(char *) "mask", NULL
10568 };
10569
10570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_SetMask",kwnames,&obj0,&obj1)) goto fail;
10571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10573 if (obj1) {
10574 arg2 = (bool) SWIG_AsBool(obj1);
10575 if (PyErr_Occurred()) SWIG_fail;
10576 }
10577 {
10578 PyThreadState* __tstate = wxPyBeginAllowThreads();
10579 (arg1)->SetMask(arg2);
10580
10581 wxPyEndAllowThreads(__tstate);
10582 if (PyErr_Occurred()) SWIG_fail;
10583 }
10584 Py_INCREF(Py_None); resultobj = Py_None;
10585 return resultobj;
10586 fail:
10587 return NULL;
10588}
10589
10590
10591static PyObject *_wrap_Image_HasMask(PyObject *self, PyObject *args, PyObject *kwargs) {
10592 PyObject *resultobj;
10593 wxImage *arg1 = (wxImage *) 0 ;
10594 bool result;
10595 PyObject * obj0 = 0 ;
10596 char *kwnames[] = {
10597 (char *) "self", NULL
10598 };
10599
10600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HasMask",kwnames,&obj0)) goto fail;
10601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10603 {
10604 PyThreadState* __tstate = wxPyBeginAllowThreads();
10605 result = (bool)(arg1)->HasMask();
10606
10607 wxPyEndAllowThreads(__tstate);
10608 if (PyErr_Occurred()) SWIG_fail;
10609 }
10610 {
10611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10612 }
10613 return resultobj;
10614 fail:
10615 return NULL;
10616}
10617
10618
10619static PyObject *_wrap_Image_Rotate(PyObject *self, PyObject *args, PyObject *kwargs) {
10620 PyObject *resultobj;
10621 wxImage *arg1 = (wxImage *) 0 ;
10622 double arg2 ;
10623 wxPoint *arg3 = 0 ;
10624 bool arg4 = (bool) True ;
10625 wxPoint *arg5 = (wxPoint *) NULL ;
10626 SwigValueWrapper< wxImage > result;
10627 wxPoint temp3 ;
10628 PyObject * obj0 = 0 ;
10629 PyObject * obj1 = 0 ;
10630 PyObject * obj2 = 0 ;
10631 PyObject * obj3 = 0 ;
10632 PyObject * obj4 = 0 ;
10633 char *kwnames[] = {
10634 (char *) "self",(char *) "angle",(char *) "centre_of_rotation",(char *) "interpolating",(char *) "offset_after_rotation", NULL
10635 };
10636
10637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Image_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10640 arg2 = (double) SWIG_AsDouble(obj1);
10641 if (PyErr_Occurred()) SWIG_fail;
10642 {
10643 arg3 = &temp3;
10644 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10645 }
10646 if (obj3) {
10647 arg4 = (bool) SWIG_AsBool(obj3);
10648 if (PyErr_Occurred()) SWIG_fail;
10649 }
10650 if (obj4) {
10651 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPoint,
10652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10653 }
10654 {
10655 PyThreadState* __tstate = wxPyBeginAllowThreads();
10656 result = ((wxImage const *)arg1)->Rotate(arg2,(wxPoint const &)*arg3,arg4,arg5);
10657
10658 wxPyEndAllowThreads(__tstate);
10659 if (PyErr_Occurred()) SWIG_fail;
10660 }
10661 {
10662 wxImage * resultptr;
10663 resultptr = new wxImage((wxImage &) result);
10664 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
10665 }
10666 return resultobj;
10667 fail:
10668 return NULL;
10669}
10670
10671
10672static PyObject *_wrap_Image_Rotate90(PyObject *self, PyObject *args, PyObject *kwargs) {
10673 PyObject *resultobj;
10674 wxImage *arg1 = (wxImage *) 0 ;
10675 bool arg2 = (bool) True ;
10676 SwigValueWrapper< wxImage > result;
10677 PyObject * obj0 = 0 ;
10678 PyObject * obj1 = 0 ;
10679 char *kwnames[] = {
10680 (char *) "self",(char *) "clockwise", NULL
10681 };
10682
10683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Rotate90",kwnames,&obj0,&obj1)) goto fail;
10684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10686 if (obj1) {
10687 arg2 = (bool) SWIG_AsBool(obj1);
10688 if (PyErr_Occurred()) SWIG_fail;
10689 }
10690 {
10691 PyThreadState* __tstate = wxPyBeginAllowThreads();
10692 result = (arg1)->Rotate90(arg2);
10693
10694 wxPyEndAllowThreads(__tstate);
10695 if (PyErr_Occurred()) SWIG_fail;
10696 }
10697 {
10698 wxImage * resultptr;
10699 resultptr = new wxImage((wxImage &) result);
10700 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
10701 }
10702 return resultobj;
10703 fail:
10704 return NULL;
10705}
10706
10707
10708static PyObject *_wrap_Image_Mirror(PyObject *self, PyObject *args, PyObject *kwargs) {
10709 PyObject *resultobj;
10710 wxImage *arg1 = (wxImage *) 0 ;
10711 bool arg2 = (bool) True ;
10712 SwigValueWrapper< wxImage > result;
10713 PyObject * obj0 = 0 ;
10714 PyObject * obj1 = 0 ;
10715 char *kwnames[] = {
10716 (char *) "self",(char *) "horizontally", NULL
10717 };
10718
10719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Mirror",kwnames,&obj0,&obj1)) goto fail;
10720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10722 if (obj1) {
10723 arg2 = (bool) SWIG_AsBool(obj1);
10724 if (PyErr_Occurred()) SWIG_fail;
10725 }
10726 {
10727 PyThreadState* __tstate = wxPyBeginAllowThreads();
10728 result = (arg1)->Mirror(arg2);
10729
10730 wxPyEndAllowThreads(__tstate);
10731 if (PyErr_Occurred()) SWIG_fail;
10732 }
10733 {
10734 wxImage * resultptr;
10735 resultptr = new wxImage((wxImage &) result);
10736 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
10737 }
10738 return resultobj;
10739 fail:
10740 return NULL;
10741}
10742
10743
10744static PyObject *_wrap_Image_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
10745 PyObject *resultobj;
10746 wxImage *arg1 = (wxImage *) 0 ;
10747 unsigned char arg2 ;
10748 unsigned char arg3 ;
10749 unsigned char arg4 ;
10750 unsigned char arg5 ;
10751 unsigned char arg6 ;
10752 unsigned char arg7 ;
10753 PyObject * obj0 = 0 ;
10754 PyObject * obj1 = 0 ;
10755 PyObject * obj2 = 0 ;
10756 PyObject * obj3 = 0 ;
10757 PyObject * obj4 = 0 ;
10758 PyObject * obj5 = 0 ;
10759 PyObject * obj6 = 0 ;
10760 char *kwnames[] = {
10761 (char *) "self",(char *) "r1",(char *) "g1",(char *) "b1",(char *) "r2",(char *) "g2",(char *) "b2", NULL
10762 };
10763
10764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:Image_Replace",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10767 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
10768 if (PyErr_Occurred()) SWIG_fail;
10769 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
10770 if (PyErr_Occurred()) SWIG_fail;
10771 arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3);
10772 if (PyErr_Occurred()) SWIG_fail;
10773 arg5 = (unsigned char) SWIG_AsUnsignedChar(obj4);
10774 if (PyErr_Occurred()) SWIG_fail;
10775 arg6 = (unsigned char) SWIG_AsUnsignedChar(obj5);
10776 if (PyErr_Occurred()) SWIG_fail;
10777 arg7 = (unsigned char) SWIG_AsUnsignedChar(obj6);
10778 if (PyErr_Occurred()) SWIG_fail;
10779 {
10780 PyThreadState* __tstate = wxPyBeginAllowThreads();
10781 (arg1)->Replace(arg2,arg3,arg4,arg5,arg6,arg7);
10782
10783 wxPyEndAllowThreads(__tstate);
10784 if (PyErr_Occurred()) SWIG_fail;
10785 }
10786 Py_INCREF(Py_None); resultobj = Py_None;
10787 return resultobj;
10788 fail:
10789 return NULL;
10790}
10791
10792
10793static PyObject *_wrap_Image_ConvertToMono(PyObject *self, PyObject *args, PyObject *kwargs) {
10794 PyObject *resultobj;
10795 wxImage *arg1 = (wxImage *) 0 ;
10796 unsigned char arg2 ;
10797 unsigned char arg3 ;
10798 unsigned char arg4 ;
10799 SwigValueWrapper< wxImage > result;
10800 PyObject * obj0 = 0 ;
10801 PyObject * obj1 = 0 ;
10802 PyObject * obj2 = 0 ;
10803 PyObject * obj3 = 0 ;
10804 char *kwnames[] = {
10805 (char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL
10806 };
10807
10808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMono",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10811 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
10812 if (PyErr_Occurred()) SWIG_fail;
10813 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
10814 if (PyErr_Occurred()) SWIG_fail;
10815 arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3);
10816 if (PyErr_Occurred()) SWIG_fail;
10817 {
10818 PyThreadState* __tstate = wxPyBeginAllowThreads();
10819 result = ((wxImage const *)arg1)->ConvertToMono(arg2,arg3,arg4);
10820
10821 wxPyEndAllowThreads(__tstate);
10822 if (PyErr_Occurred()) SWIG_fail;
10823 }
10824 {
10825 wxImage * resultptr;
10826 resultptr = new wxImage((wxImage &) result);
10827 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
10828 }
10829 return resultobj;
10830 fail:
10831 return NULL;
10832}
10833
10834
10835static PyObject *_wrap_Image_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
10836 PyObject *resultobj;
10837 wxImage *arg1 = (wxImage *) 0 ;
10838 wxString *arg2 = 0 ;
10839 wxString *arg3 = 0 ;
10840 bool temp2 = False ;
10841 bool temp3 = False ;
10842 PyObject * obj0 = 0 ;
10843 PyObject * obj1 = 0 ;
10844 PyObject * obj2 = 0 ;
10845 char *kwnames[] = {
10846 (char *) "self",(char *) "name",(char *) "value", NULL
10847 };
10848
10849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOption",kwnames,&obj0,&obj1,&obj2)) goto fail;
10850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10852 {
10853 arg2 = wxString_in_helper(obj1);
10854 if (arg2 == NULL) SWIG_fail;
10855 temp2 = True;
10856 }
10857 {
10858 arg3 = wxString_in_helper(obj2);
10859 if (arg3 == NULL) SWIG_fail;
10860 temp3 = True;
10861 }
10862 {
10863 PyThreadState* __tstate = wxPyBeginAllowThreads();
10864 (arg1)->SetOption((wxString const &)*arg2,(wxString const &)*arg3);
10865
10866 wxPyEndAllowThreads(__tstate);
10867 if (PyErr_Occurred()) SWIG_fail;
10868 }
10869 Py_INCREF(Py_None); resultobj = Py_None;
10870 {
10871 if (temp2)
10872 delete arg2;
10873 }
10874 {
10875 if (temp3)
10876 delete arg3;
10877 }
10878 return resultobj;
10879 fail:
10880 {
10881 if (temp2)
10882 delete arg2;
10883 }
10884 {
10885 if (temp3)
10886 delete arg3;
10887 }
10888 return NULL;
10889}
10890
10891
10892static PyObject *_wrap_Image_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
10893 PyObject *resultobj;
10894 wxImage *arg1 = (wxImage *) 0 ;
10895 wxString *arg2 = 0 ;
10896 int arg3 ;
10897 bool temp2 = False ;
10898 PyObject * obj0 = 0 ;
10899 PyObject * obj1 = 0 ;
10900 PyObject * obj2 = 0 ;
10901 char *kwnames[] = {
10902 (char *) "self",(char *) "name",(char *) "value", NULL
10903 };
10904
10905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOptionInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
10906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10908 {
10909 arg2 = wxString_in_helper(obj1);
10910 if (arg2 == NULL) SWIG_fail;
10911 temp2 = True;
10912 }
10913 arg3 = (int) SWIG_AsInt(obj2);
10914 if (PyErr_Occurred()) SWIG_fail;
10915 {
10916 PyThreadState* __tstate = wxPyBeginAllowThreads();
10917 (arg1)->SetOption((wxString const &)*arg2,arg3);
10918
10919 wxPyEndAllowThreads(__tstate);
10920 if (PyErr_Occurred()) SWIG_fail;
10921 }
10922 Py_INCREF(Py_None); resultobj = Py_None;
10923 {
10924 if (temp2)
10925 delete arg2;
10926 }
10927 return resultobj;
10928 fail:
10929 {
10930 if (temp2)
10931 delete arg2;
10932 }
10933 return NULL;
10934}
10935
10936
10937static PyObject *_wrap_Image_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
10938 PyObject *resultobj;
10939 wxImage *arg1 = (wxImage *) 0 ;
10940 wxString *arg2 = 0 ;
10941 wxString result;
10942 bool temp2 = False ;
10943 PyObject * obj0 = 0 ;
10944 PyObject * obj1 = 0 ;
10945 char *kwnames[] = {
10946 (char *) "self",(char *) "name", NULL
10947 };
10948
10949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOption",kwnames,&obj0,&obj1)) goto fail;
10950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10952 {
10953 arg2 = wxString_in_helper(obj1);
10954 if (arg2 == NULL) SWIG_fail;
10955 temp2 = True;
10956 }
10957 {
10958 PyThreadState* __tstate = wxPyBeginAllowThreads();
10959 result = ((wxImage const *)arg1)->GetOption((wxString const &)*arg2);
10960
10961 wxPyEndAllowThreads(__tstate);
10962 if (PyErr_Occurred()) SWIG_fail;
10963 }
10964 {
10965#if wxUSE_UNICODE
10966 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10967#else
10968 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10969#endif
10970 }
10971 {
10972 if (temp2)
10973 delete arg2;
10974 }
10975 return resultobj;
10976 fail:
10977 {
10978 if (temp2)
10979 delete arg2;
10980 }
10981 return NULL;
10982}
10983
10984
10985static PyObject *_wrap_Image_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
10986 PyObject *resultobj;
10987 wxImage *arg1 = (wxImage *) 0 ;
10988 wxString *arg2 = 0 ;
10989 int result;
10990 bool temp2 = False ;
10991 PyObject * obj0 = 0 ;
10992 PyObject * obj1 = 0 ;
10993 char *kwnames[] = {
10994 (char *) "self",(char *) "name", NULL
10995 };
10996
10997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOptionInt",kwnames,&obj0,&obj1)) goto fail;
10998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
10999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11000 {
11001 arg2 = wxString_in_helper(obj1);
11002 if (arg2 == NULL) SWIG_fail;
11003 temp2 = True;
11004 }
11005 {
11006 PyThreadState* __tstate = wxPyBeginAllowThreads();
11007 result = (int)((wxImage const *)arg1)->GetOptionInt((wxString const &)*arg2);
11008
11009 wxPyEndAllowThreads(__tstate);
11010 if (PyErr_Occurred()) SWIG_fail;
11011 }
11012 resultobj = SWIG_FromInt((int)result);
11013 {
11014 if (temp2)
11015 delete arg2;
11016 }
11017 return resultobj;
11018 fail:
11019 {
11020 if (temp2)
11021 delete arg2;
11022 }
11023 return NULL;
11024}
11025
11026
11027static PyObject *_wrap_Image_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) {
11028 PyObject *resultobj;
11029 wxImage *arg1 = (wxImage *) 0 ;
11030 wxString *arg2 = 0 ;
11031 bool result;
11032 bool temp2 = False ;
11033 PyObject * obj0 = 0 ;
11034 PyObject * obj1 = 0 ;
11035 char *kwnames[] = {
11036 (char *) "self",(char *) "name", NULL
11037 };
11038
11039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_HasOption",kwnames,&obj0,&obj1)) goto fail;
11040 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11041 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11042 {
11043 arg2 = wxString_in_helper(obj1);
11044 if (arg2 == NULL) SWIG_fail;
11045 temp2 = True;
11046 }
11047 {
11048 PyThreadState* __tstate = wxPyBeginAllowThreads();
11049 result = (bool)((wxImage const *)arg1)->HasOption((wxString const &)*arg2);
11050
11051 wxPyEndAllowThreads(__tstate);
11052 if (PyErr_Occurred()) SWIG_fail;
11053 }
11054 {
11055 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11056 }
11057 {
11058 if (temp2)
11059 delete arg2;
11060 }
11061 return resultobj;
11062 fail:
11063 {
11064 if (temp2)
11065 delete arg2;
11066 }
11067 return NULL;
11068}
11069
11070
11071static PyObject *_wrap_Image_CountColours(PyObject *self, PyObject *args, PyObject *kwargs) {
11072 PyObject *resultobj;
11073 wxImage *arg1 = (wxImage *) 0 ;
11074 unsigned long arg2 = (unsigned long) (unsigned long) -1 ;
11075 unsigned long result;
11076 PyObject * obj0 = 0 ;
11077 PyObject * obj1 = 0 ;
11078 char *kwnames[] = {
11079 (char *) "self",(char *) "stopafter", NULL
11080 };
11081
11082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_CountColours",kwnames,&obj0,&obj1)) goto fail;
11083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11085 if (obj1) {
11086 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
11087 if (PyErr_Occurred()) SWIG_fail;
11088 }
11089 {
11090 PyThreadState* __tstate = wxPyBeginAllowThreads();
11091 result = (unsigned long)(arg1)->CountColours(arg2);
11092
11093 wxPyEndAllowThreads(__tstate);
11094 if (PyErr_Occurred()) SWIG_fail;
11095 }
11096 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
11097 return resultobj;
11098 fail:
11099 return NULL;
11100}
11101
11102
11103static PyObject *_wrap_Image_ComputeHistogram(PyObject *self, PyObject *args, PyObject *kwargs) {
11104 PyObject *resultobj;
11105 wxImage *arg1 = (wxImage *) 0 ;
11106 wxImageHistogram *arg2 = 0 ;
11107 unsigned long result;
11108 PyObject * obj0 = 0 ;
11109 PyObject * obj1 = 0 ;
11110 char *kwnames[] = {
11111 (char *) "self",(char *) "h", NULL
11112 };
11113
11114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_ComputeHistogram",kwnames,&obj0,&obj1)) goto fail;
11115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11117 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageHistogram,
11118 SWIG_POINTER_EXCEPTION | 0)) == -1)
11119 SWIG_fail;
11120 if (arg2 == NULL) {
11121 PyErr_SetString(PyExc_TypeError,"null reference");
11122 SWIG_fail;
11123 }
11124 {
11125 PyThreadState* __tstate = wxPyBeginAllowThreads();
11126 result = (unsigned long)(arg1)->ComputeHistogram(*arg2);
11127
11128 wxPyEndAllowThreads(__tstate);
11129 if (PyErr_Occurred()) SWIG_fail;
11130 }
11131 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
11132 return resultobj;
11133 fail:
11134 return NULL;
11135}
11136
11137
11138static PyObject *_wrap_Image_AddHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11139 PyObject *resultobj;
11140 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
11141 PyObject * obj0 = 0 ;
11142 char *kwnames[] = {
11143 (char *) "handler", NULL
11144 };
11145
11146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_AddHandler",kwnames,&obj0)) goto fail;
11147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
11148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11149 {
11150 PyThreadState* __tstate = wxPyBeginAllowThreads();
11151 wxImage::AddHandler(arg1);
11152
11153 wxPyEndAllowThreads(__tstate);
11154 if (PyErr_Occurred()) SWIG_fail;
11155 }
11156 Py_INCREF(Py_None); resultobj = Py_None;
11157 return resultobj;
11158 fail:
11159 return NULL;
11160}
11161
11162
11163static PyObject *_wrap_Image_InsertHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11164 PyObject *resultobj;
11165 wxImageHandler *arg1 = (wxImageHandler *) 0 ;
11166 PyObject * obj0 = 0 ;
11167 char *kwnames[] = {
11168 (char *) "handler", NULL
11169 };
11170
11171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InsertHandler",kwnames,&obj0)) goto fail;
11172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageHandler,
11173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11174 {
11175 PyThreadState* __tstate = wxPyBeginAllowThreads();
11176 wxImage::InsertHandler(arg1);
11177
11178 wxPyEndAllowThreads(__tstate);
11179 if (PyErr_Occurred()) SWIG_fail;
11180 }
11181 Py_INCREF(Py_None); resultobj = Py_None;
11182 return resultobj;
11183 fail:
11184 return NULL;
11185}
11186
11187
11188static PyObject *_wrap_Image_RemoveHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11189 PyObject *resultobj;
11190 wxString *arg1 = 0 ;
11191 bool result;
11192 bool temp1 = False ;
11193 PyObject * obj0 = 0 ;
11194 char *kwnames[] = {
11195 (char *) "name", NULL
11196 };
11197
11198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RemoveHandler",kwnames,&obj0)) goto fail;
11199 {
11200 arg1 = wxString_in_helper(obj0);
11201 if (arg1 == NULL) SWIG_fail;
11202 temp1 = True;
11203 }
11204 {
11205 PyThreadState* __tstate = wxPyBeginAllowThreads();
11206 result = (bool)wxImage::RemoveHandler((wxString const &)*arg1);
11207
11208 wxPyEndAllowThreads(__tstate);
11209 if (PyErr_Occurred()) SWIG_fail;
11210 }
11211 {
11212 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11213 }
11214 {
11215 if (temp1)
11216 delete arg1;
11217 }
11218 return resultobj;
11219 fail:
11220 {
11221 if (temp1)
11222 delete arg1;
11223 }
11224 return NULL;
11225}
11226
11227
11228static PyObject *_wrap_Image_GetImageExtWildcard(PyObject *self, PyObject *args, PyObject *kwargs) {
11229 PyObject *resultobj;
11230 wxString result;
11231 char *kwnames[] = {
11232 NULL
11233 };
11234
11235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Image_GetImageExtWildcard",kwnames)) goto fail;
11236 {
11237 PyThreadState* __tstate = wxPyBeginAllowThreads();
11238 result = wxImage::GetImageExtWildcard();
11239
11240 wxPyEndAllowThreads(__tstate);
11241 if (PyErr_Occurred()) SWIG_fail;
11242 }
11243 {
11244#if wxUSE_UNICODE
11245 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11246#else
11247 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11248#endif
11249 }
11250 return resultobj;
11251 fail:
11252 return NULL;
11253}
11254
11255
11256static PyObject *_wrap_Image_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11257 PyObject *resultobj;
11258 wxImage *arg1 = (wxImage *) 0 ;
11259 wxBitmap result;
11260 PyObject * obj0 = 0 ;
11261 char *kwnames[] = {
11262 (char *) "self", NULL
11263 };
11264
11265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_ConvertToBitmap",kwnames,&obj0)) goto fail;
11266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11268 {
0439c23b 11269 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
11270 PyThreadState* __tstate = wxPyBeginAllowThreads();
11271 result = wxImage_ConvertToBitmap(arg1);
11272
11273 wxPyEndAllowThreads(__tstate);
110da5b0 11274 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
11275 }
11276 {
11277 wxBitmap * resultptr;
11278 resultptr = new wxBitmap((wxBitmap &) result);
11279 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
11280 }
11281 return resultobj;
11282 fail:
11283 return NULL;
11284}
11285
11286
11287static PyObject *_wrap_Image_ConvertToMonoBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11288 PyObject *resultobj;
11289 wxImage *arg1 = (wxImage *) 0 ;
11290 unsigned char arg2 ;
11291 unsigned char arg3 ;
11292 unsigned char arg4 ;
11293 wxBitmap result;
11294 PyObject * obj0 = 0 ;
11295 PyObject * obj1 = 0 ;
11296 PyObject * obj2 = 0 ;
11297 PyObject * obj3 = 0 ;
11298 char *kwnames[] = {
11299 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
11300 };
11301
11302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMonoBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
11304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11305 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
11306 if (PyErr_Occurred()) SWIG_fail;
11307 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
11308 if (PyErr_Occurred()) SWIG_fail;
11309 arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3);
11310 if (PyErr_Occurred()) SWIG_fail;
11311 {
0439c23b 11312 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
11313 PyThreadState* __tstate = wxPyBeginAllowThreads();
11314 result = wxImage_ConvertToMonoBitmap(arg1,arg2,arg3,arg4);
11315
11316 wxPyEndAllowThreads(__tstate);
110da5b0 11317 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
11318 }
11319 {
11320 wxBitmap * resultptr;
11321 resultptr = new wxBitmap((wxBitmap &) result);
11322 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
11323 }
11324 return resultobj;
11325 fail:
11326 return NULL;
11327}
11328
11329
11330static PyObject * Image_swigregister(PyObject *self, PyObject *args) {
11331 PyObject *obj;
11332 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11333 SWIG_TypeClientData(SWIGTYPE_p_wxImage, obj);
11334 Py_INCREF(obj);
11335 return Py_BuildValue((char *)"");
11336}
d55e5bfc
RD
11337static int _wrap_NullImage_set(PyObject *_val) {
11338 PyErr_SetString(PyExc_TypeError,"Variable NullImage is read-only.");
11339 return 1;
11340}
11341
11342
11343static PyObject *_wrap_NullImage_get() {
11344 PyObject *pyobj;
11345
11346 pyobj = SWIG_NewPointerObj((void *)(&wxNullImage), SWIGTYPE_p_wxImage, 0);
11347 return pyobj;
11348}
11349
11350
11351static int _wrap_IMAGE_OPTION_BMP_FORMAT_set(PyObject *_val) {
11352 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_BMP_FORMAT is read-only.");
11353 return 1;
11354}
11355
11356
11357static PyObject *_wrap_IMAGE_OPTION_BMP_FORMAT_get() {
11358 PyObject *pyobj;
11359
11360 {
11361#if wxUSE_UNICODE
11362 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len());
11363#else
11364 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len());
11365#endif
11366 }
11367 return pyobj;
11368}
11369
11370
11371static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set(PyObject *_val) {
11372 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_X is read-only.");
11373 return 1;
11374}
11375
11376
11377static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get() {
11378 PyObject *pyobj;
11379
11380 {
11381#if wxUSE_UNICODE
11382 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len());
11383#else
11384 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len());
11385#endif
11386 }
11387 return pyobj;
11388}
11389
11390
11391static int _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set(PyObject *_val) {
11392 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_Y is read-only.");
11393 return 1;
11394}
11395
11396
11397static PyObject *_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get() {
11398 PyObject *pyobj;
11399
11400 {
11401#if wxUSE_UNICODE
11402 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len());
11403#else
11404 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len());
11405#endif
11406 }
11407 return pyobj;
11408}
11409
11410
11411static int _wrap_IMAGE_OPTION_RESOLUTION_set(PyObject *_val) {
11412 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTION is read-only.");
11413 return 1;
11414}
11415
11416
11417static PyObject *_wrap_IMAGE_OPTION_RESOLUTION_get() {
11418 PyObject *pyobj;
11419
11420 {
11421#if wxUSE_UNICODE
11422 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len());
11423#else
11424 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len());
11425#endif
11426 }
11427 return pyobj;
11428}
11429
11430
11431static int _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set(PyObject *_val) {
11432 PyErr_SetString(PyExc_TypeError,"Variable IMAGE_OPTION_RESOLUTIONUNIT is read-only.");
11433 return 1;
11434}
11435
11436
11437static PyObject *_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get() {
11438 PyObject *pyobj;
11439
11440 {
11441#if wxUSE_UNICODE
11442 pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len());
11443#else
11444 pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len());
11445#endif
11446 }
11447 return pyobj;
11448}
11449
11450
11451static PyObject *_wrap_new_BMPHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11452 PyObject *resultobj;
11453 wxBMPHandler *result;
11454 char *kwnames[] = {
11455 NULL
11456 };
11457
11458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_BMPHandler",kwnames)) goto fail;
11459 {
11460 PyThreadState* __tstate = wxPyBeginAllowThreads();
11461 result = (wxBMPHandler *)new wxBMPHandler();
11462
11463 wxPyEndAllowThreads(__tstate);
11464 if (PyErr_Occurred()) SWIG_fail;
11465 }
11466 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBMPHandler, 1);
11467 return resultobj;
11468 fail:
11469 return NULL;
11470}
11471
11472
11473static PyObject * BMPHandler_swigregister(PyObject *self, PyObject *args) {
11474 PyObject *obj;
11475 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11476 SWIG_TypeClientData(SWIGTYPE_p_wxBMPHandler, obj);
11477 Py_INCREF(obj);
11478 return Py_BuildValue((char *)"");
11479}
11480static PyObject *_wrap_new_ICOHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11481 PyObject *resultobj;
11482 wxICOHandler *result;
11483 char *kwnames[] = {
11484 NULL
11485 };
11486
11487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ICOHandler",kwnames)) goto fail;
11488 {
11489 PyThreadState* __tstate = wxPyBeginAllowThreads();
11490 result = (wxICOHandler *)new wxICOHandler();
11491
11492 wxPyEndAllowThreads(__tstate);
11493 if (PyErr_Occurred()) SWIG_fail;
11494 }
11495 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxICOHandler, 1);
11496 return resultobj;
11497 fail:
11498 return NULL;
11499}
11500
11501
11502static PyObject * ICOHandler_swigregister(PyObject *self, PyObject *args) {
11503 PyObject *obj;
11504 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11505 SWIG_TypeClientData(SWIGTYPE_p_wxICOHandler, obj);
11506 Py_INCREF(obj);
11507 return Py_BuildValue((char *)"");
11508}
11509static PyObject *_wrap_new_CURHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11510 PyObject *resultobj;
11511 wxCURHandler *result;
11512 char *kwnames[] = {
11513 NULL
11514 };
11515
11516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_CURHandler",kwnames)) goto fail;
11517 {
11518 PyThreadState* __tstate = wxPyBeginAllowThreads();
11519 result = (wxCURHandler *)new wxCURHandler();
11520
11521 wxPyEndAllowThreads(__tstate);
11522 if (PyErr_Occurred()) SWIG_fail;
11523 }
11524 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCURHandler, 1);
11525 return resultobj;
11526 fail:
11527 return NULL;
11528}
11529
11530
11531static PyObject * CURHandler_swigregister(PyObject *self, PyObject *args) {
11532 PyObject *obj;
11533 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11534 SWIG_TypeClientData(SWIGTYPE_p_wxCURHandler, obj);
11535 Py_INCREF(obj);
11536 return Py_BuildValue((char *)"");
11537}
11538static PyObject *_wrap_new_ANIHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11539 PyObject *resultobj;
11540 wxANIHandler *result;
11541 char *kwnames[] = {
11542 NULL
11543 };
11544
11545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ANIHandler",kwnames)) goto fail;
11546 {
11547 PyThreadState* __tstate = wxPyBeginAllowThreads();
11548 result = (wxANIHandler *)new wxANIHandler();
11549
11550 wxPyEndAllowThreads(__tstate);
11551 if (PyErr_Occurred()) SWIG_fail;
11552 }
11553 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxANIHandler, 1);
11554 return resultobj;
11555 fail:
11556 return NULL;
11557}
11558
11559
11560static PyObject * ANIHandler_swigregister(PyObject *self, PyObject *args) {
11561 PyObject *obj;
11562 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11563 SWIG_TypeClientData(SWIGTYPE_p_wxANIHandler, obj);
11564 Py_INCREF(obj);
11565 return Py_BuildValue((char *)"");
11566}
11567static PyObject *_wrap_new_PNGHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11568 PyObject *resultobj;
11569 wxPNGHandler *result;
11570 char *kwnames[] = {
11571 NULL
11572 };
11573
11574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNGHandler",kwnames)) goto fail;
11575 {
11576 PyThreadState* __tstate = wxPyBeginAllowThreads();
11577 result = (wxPNGHandler *)new wxPNGHandler();
11578
11579 wxPyEndAllowThreads(__tstate);
11580 if (PyErr_Occurred()) SWIG_fail;
11581 }
11582 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNGHandler, 1);
11583 return resultobj;
11584 fail:
11585 return NULL;
11586}
11587
11588
11589static PyObject * PNGHandler_swigregister(PyObject *self, PyObject *args) {
11590 PyObject *obj;
11591 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11592 SWIG_TypeClientData(SWIGTYPE_p_wxPNGHandler, obj);
11593 Py_INCREF(obj);
11594 return Py_BuildValue((char *)"");
11595}
11596static PyObject *_wrap_new_GIFHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11597 PyObject *resultobj;
11598 wxGIFHandler *result;
11599 char *kwnames[] = {
11600 NULL
11601 };
11602
11603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GIFHandler",kwnames)) goto fail;
11604 {
11605 PyThreadState* __tstate = wxPyBeginAllowThreads();
11606 result = (wxGIFHandler *)new wxGIFHandler();
11607
11608 wxPyEndAllowThreads(__tstate);
11609 if (PyErr_Occurred()) SWIG_fail;
11610 }
11611 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGIFHandler, 1);
11612 return resultobj;
11613 fail:
11614 return NULL;
11615}
11616
11617
11618static PyObject * GIFHandler_swigregister(PyObject *self, PyObject *args) {
11619 PyObject *obj;
11620 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11621 SWIG_TypeClientData(SWIGTYPE_p_wxGIFHandler, obj);
11622 Py_INCREF(obj);
11623 return Py_BuildValue((char *)"");
11624}
11625static PyObject *_wrap_new_PCXHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11626 PyObject *resultobj;
11627 wxPCXHandler *result;
11628 char *kwnames[] = {
11629 NULL
11630 };
11631
11632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PCXHandler",kwnames)) goto fail;
11633 {
11634 PyThreadState* __tstate = wxPyBeginAllowThreads();
11635 result = (wxPCXHandler *)new wxPCXHandler();
11636
11637 wxPyEndAllowThreads(__tstate);
11638 if (PyErr_Occurred()) SWIG_fail;
11639 }
11640 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPCXHandler, 1);
11641 return resultobj;
11642 fail:
11643 return NULL;
11644}
11645
11646
11647static PyObject * PCXHandler_swigregister(PyObject *self, PyObject *args) {
11648 PyObject *obj;
11649 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11650 SWIG_TypeClientData(SWIGTYPE_p_wxPCXHandler, obj);
11651 Py_INCREF(obj);
11652 return Py_BuildValue((char *)"");
11653}
11654static PyObject *_wrap_new_JPEGHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11655 PyObject *resultobj;
11656 wxJPEGHandler *result;
11657 char *kwnames[] = {
11658 NULL
11659 };
11660
11661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_JPEGHandler",kwnames)) goto fail;
11662 {
11663 PyThreadState* __tstate = wxPyBeginAllowThreads();
11664 result = (wxJPEGHandler *)new wxJPEGHandler();
11665
11666 wxPyEndAllowThreads(__tstate);
11667 if (PyErr_Occurred()) SWIG_fail;
11668 }
11669 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJPEGHandler, 1);
11670 return resultobj;
11671 fail:
11672 return NULL;
11673}
11674
11675
11676static PyObject * JPEGHandler_swigregister(PyObject *self, PyObject *args) {
11677 PyObject *obj;
11678 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11679 SWIG_TypeClientData(SWIGTYPE_p_wxJPEGHandler, obj);
11680 Py_INCREF(obj);
11681 return Py_BuildValue((char *)"");
11682}
11683static PyObject *_wrap_new_PNMHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11684 PyObject *resultobj;
11685 wxPNMHandler *result;
11686 char *kwnames[] = {
11687 NULL
11688 };
11689
11690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PNMHandler",kwnames)) goto fail;
11691 {
11692 PyThreadState* __tstate = wxPyBeginAllowThreads();
11693 result = (wxPNMHandler *)new wxPNMHandler();
11694
11695 wxPyEndAllowThreads(__tstate);
11696 if (PyErr_Occurred()) SWIG_fail;
11697 }
11698 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPNMHandler, 1);
11699 return resultobj;
11700 fail:
11701 return NULL;
11702}
11703
11704
11705static PyObject * PNMHandler_swigregister(PyObject *self, PyObject *args) {
11706 PyObject *obj;
11707 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11708 SWIG_TypeClientData(SWIGTYPE_p_wxPNMHandler, obj);
11709 Py_INCREF(obj);
11710 return Py_BuildValue((char *)"");
11711}
11712static PyObject *_wrap_new_XPMHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11713 PyObject *resultobj;
11714 wxXPMHandler *result;
11715 char *kwnames[] = {
11716 NULL
11717 };
11718
11719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_XPMHandler",kwnames)) goto fail;
11720 {
11721 PyThreadState* __tstate = wxPyBeginAllowThreads();
11722 result = (wxXPMHandler *)new wxXPMHandler();
11723
11724 wxPyEndAllowThreads(__tstate);
11725 if (PyErr_Occurred()) SWIG_fail;
11726 }
11727 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxXPMHandler, 1);
11728 return resultobj;
11729 fail:
11730 return NULL;
11731}
11732
11733
11734static PyObject * XPMHandler_swigregister(PyObject *self, PyObject *args) {
11735 PyObject *obj;
11736 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11737 SWIG_TypeClientData(SWIGTYPE_p_wxXPMHandler, obj);
11738 Py_INCREF(obj);
11739 return Py_BuildValue((char *)"");
11740}
11741static PyObject *_wrap_new_TIFFHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11742 PyObject *resultobj;
11743 wxTIFFHandler *result;
11744 char *kwnames[] = {
11745 NULL
11746 };
11747
11748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TIFFHandler",kwnames)) goto fail;
11749 {
11750 PyThreadState* __tstate = wxPyBeginAllowThreads();
11751 result = (wxTIFFHandler *)new wxTIFFHandler();
11752
11753 wxPyEndAllowThreads(__tstate);
11754 if (PyErr_Occurred()) SWIG_fail;
11755 }
11756 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTIFFHandler, 1);
11757 return resultobj;
11758 fail:
11759 return NULL;
11760}
11761
11762
11763static PyObject * TIFFHandler_swigregister(PyObject *self, PyObject *args) {
11764 PyObject *obj;
11765 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11766 SWIG_TypeClientData(SWIGTYPE_p_wxTIFFHandler, obj);
11767 Py_INCREF(obj);
11768 return Py_BuildValue((char *)"");
11769}
11770static PyObject *_wrap_new_EvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11771 PyObject *resultobj;
11772 wxEvtHandler *result;
11773 char *kwnames[] = {
11774 NULL
11775 };
11776
11777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EvtHandler",kwnames)) goto fail;
11778 {
11779 PyThreadState* __tstate = wxPyBeginAllowThreads();
11780 result = (wxEvtHandler *)new wxEvtHandler();
11781
11782 wxPyEndAllowThreads(__tstate);
11783 if (PyErr_Occurred()) SWIG_fail;
11784 }
b0f7404b 11785 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvtHandler, 1);
d55e5bfc
RD
11786 return resultobj;
11787 fail:
11788 return NULL;
11789}
11790
11791
11792static PyObject *_wrap_EvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11793 PyObject *resultobj;
11794 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11795 wxEvtHandler *result;
11796 PyObject * obj0 = 0 ;
11797 char *kwnames[] = {
11798 (char *) "self", NULL
11799 };
11800
11801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetNextHandler",kwnames,&obj0)) goto fail;
11802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
11803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11804 {
11805 PyThreadState* __tstate = wxPyBeginAllowThreads();
11806 result = (wxEvtHandler *)(arg1)->GetNextHandler();
11807
11808 wxPyEndAllowThreads(__tstate);
11809 if (PyErr_Occurred()) SWIG_fail;
11810 }
11811 {
412d302d 11812 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
11813 }
11814 return resultobj;
11815 fail:
11816 return NULL;
11817}
11818
11819
11820static PyObject *_wrap_EvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11821 PyObject *resultobj;
11822 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11823 wxEvtHandler *result;
11824 PyObject * obj0 = 0 ;
11825 char *kwnames[] = {
11826 (char *) "self", NULL
11827 };
11828
11829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetPreviousHandler",kwnames,&obj0)) goto fail;
11830 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
11831 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11832 {
11833 PyThreadState* __tstate = wxPyBeginAllowThreads();
11834 result = (wxEvtHandler *)(arg1)->GetPreviousHandler();
11835
11836 wxPyEndAllowThreads(__tstate);
11837 if (PyErr_Occurred()) SWIG_fail;
11838 }
11839 {
412d302d 11840 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
11841 }
11842 return resultobj;
11843 fail:
11844 return NULL;
11845}
11846
11847
11848static PyObject *_wrap_EvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11849 PyObject *resultobj;
11850 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11851 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
11852 PyObject * obj0 = 0 ;
11853 PyObject * obj1 = 0 ;
11854 char *kwnames[] = {
11855 (char *) "self",(char *) "handler", NULL
11856 };
11857
11858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetNextHandler",kwnames,&obj0,&obj1)) goto fail;
11859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
11860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11861 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
11862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11863 {
11864 PyThreadState* __tstate = wxPyBeginAllowThreads();
11865 (arg1)->SetNextHandler(arg2);
11866
11867 wxPyEndAllowThreads(__tstate);
11868 if (PyErr_Occurred()) SWIG_fail;
11869 }
11870 Py_INCREF(Py_None); resultobj = Py_None;
11871 return resultobj;
11872 fail:
11873 return NULL;
11874}
11875
11876
11877static PyObject *_wrap_EvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
11878 PyObject *resultobj;
11879 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11880 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
11881 PyObject * obj0 = 0 ;
11882 PyObject * obj1 = 0 ;
11883 char *kwnames[] = {
11884 (char *) "self",(char *) "handler", NULL
11885 };
11886
11887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) goto fail;
11888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
11889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11890 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
11891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11892 {
11893 PyThreadState* __tstate = wxPyBeginAllowThreads();
11894 (arg1)->SetPreviousHandler(arg2);
11895
11896 wxPyEndAllowThreads(__tstate);
11897 if (PyErr_Occurred()) SWIG_fail;
11898 }
11899 Py_INCREF(Py_None); resultobj = Py_None;
11900 return resultobj;
11901 fail:
11902 return NULL;
11903}
11904
11905
11906static PyObject *_wrap_EvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
11907 PyObject *resultobj;
11908 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11909 bool result;
11910 PyObject * obj0 = 0 ;
11911 char *kwnames[] = {
11912 (char *) "self", NULL
11913 };
11914
11915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_GetEvtHandlerEnabled",kwnames,&obj0)) goto fail;
11916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
11917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11918 {
11919 PyThreadState* __tstate = wxPyBeginAllowThreads();
11920 result = (bool)(arg1)->GetEvtHandlerEnabled();
11921
11922 wxPyEndAllowThreads(__tstate);
11923 if (PyErr_Occurred()) SWIG_fail;
11924 }
11925 {
11926 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11927 }
11928 return resultobj;
11929 fail:
11930 return NULL;
11931}
11932
11933
11934static PyObject *_wrap_EvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
11935 PyObject *resultobj;
11936 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11937 bool arg2 ;
11938 PyObject * obj0 = 0 ;
11939 PyObject * obj1 = 0 ;
11940 char *kwnames[] = {
11941 (char *) "self",(char *) "enabled", NULL
11942 };
11943
11944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetEvtHandlerEnabled",kwnames,&obj0,&obj1)) goto fail;
11945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
11946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11947 arg2 = (bool) SWIG_AsBool(obj1);
11948 if (PyErr_Occurred()) SWIG_fail;
11949 {
11950 PyThreadState* __tstate = wxPyBeginAllowThreads();
11951 (arg1)->SetEvtHandlerEnabled(arg2);
11952
11953 wxPyEndAllowThreads(__tstate);
11954 if (PyErr_Occurred()) SWIG_fail;
11955 }
11956 Py_INCREF(Py_None); resultobj = Py_None;
11957 return resultobj;
11958 fail:
11959 return NULL;
11960}
11961
11962
11963static PyObject *_wrap_EvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
11964 PyObject *resultobj;
11965 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
11966 wxEvent *arg2 = 0 ;
11967 bool result;
11968 PyObject * obj0 = 0 ;
11969 PyObject * obj1 = 0 ;
11970 char *kwnames[] = {
11971 (char *) "self",(char *) "event", NULL
11972 };
11973
11974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_ProcessEvent",kwnames,&obj0,&obj1)) goto fail;
11975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
11976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11977 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent,
11978 SWIG_POINTER_EXCEPTION | 0)) == -1)
11979 SWIG_fail;
11980 if (arg2 == NULL) {
11981 PyErr_SetString(PyExc_TypeError,"null reference");
11982 SWIG_fail;
11983 }
11984 {
11985 PyThreadState* __tstate = wxPyBeginAllowThreads();
11986 result = (bool)(arg1)->ProcessEvent(*arg2);
11987
11988 wxPyEndAllowThreads(__tstate);
11989 if (PyErr_Occurred()) SWIG_fail;
11990 }
11991 {
11992 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11993 }
11994 return resultobj;
11995 fail:
11996 return NULL;
11997}
11998
11999
12000static PyObject *_wrap_EvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
12001 PyObject *resultobj;
12002 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12003 wxEvent *arg2 = 0 ;
12004 PyObject * obj0 = 0 ;
12005 PyObject * obj1 = 0 ;
12006 char *kwnames[] = {
12007 (char *) "self",(char *) "event", NULL
12008 };
12009
12010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_AddPendingEvent",kwnames,&obj0,&obj1)) goto fail;
12011 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12013 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent,
12014 SWIG_POINTER_EXCEPTION | 0)) == -1)
12015 SWIG_fail;
12016 if (arg2 == NULL) {
12017 PyErr_SetString(PyExc_TypeError,"null reference");
12018 SWIG_fail;
12019 }
12020 {
12021 PyThreadState* __tstate = wxPyBeginAllowThreads();
12022 (arg1)->AddPendingEvent(*arg2);
12023
12024 wxPyEndAllowThreads(__tstate);
12025 if (PyErr_Occurred()) SWIG_fail;
12026 }
12027 Py_INCREF(Py_None); resultobj = Py_None;
12028 return resultobj;
12029 fail:
12030 return NULL;
12031}
12032
12033
12034static PyObject *_wrap_EvtHandler_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) {
12035 PyObject *resultobj;
12036 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12037 PyObject * obj0 = 0 ;
12038 char *kwnames[] = {
12039 (char *) "self", NULL
12040 };
12041
12042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EvtHandler_ProcessPendingEvents",kwnames,&obj0)) goto fail;
12043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12045 {
12046 PyThreadState* __tstate = wxPyBeginAllowThreads();
12047 (arg1)->ProcessPendingEvents();
12048
12049 wxPyEndAllowThreads(__tstate);
12050 if (PyErr_Occurred()) SWIG_fail;
12051 }
12052 Py_INCREF(Py_None); resultobj = Py_None;
12053 return resultobj;
12054 fail:
12055 return NULL;
12056}
12057
12058
12059static PyObject *_wrap_EvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) {
12060 PyObject *resultobj;
12061 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12062 int arg2 ;
12063 int arg3 ;
12064 int arg4 ;
12065 PyObject *arg5 = (PyObject *) 0 ;
12066 PyObject * obj0 = 0 ;
12067 PyObject * obj1 = 0 ;
12068 PyObject * obj2 = 0 ;
12069 PyObject * obj3 = 0 ;
12070 PyObject * obj4 = 0 ;
12071 char *kwnames[] = {
12072 (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType",(char *) "func", NULL
12073 };
12074
12075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:EvtHandler_Connect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12078 arg2 = (int) SWIG_AsInt(obj1);
12079 if (PyErr_Occurred()) SWIG_fail;
12080 arg3 = (int) SWIG_AsInt(obj2);
12081 if (PyErr_Occurred()) SWIG_fail;
12082 arg4 = (int) SWIG_AsInt(obj3);
12083 if (PyErr_Occurred()) SWIG_fail;
12084 arg5 = obj4;
12085 {
12086 PyThreadState* __tstate = wxPyBeginAllowThreads();
12087 wxEvtHandler_Connect(arg1,arg2,arg3,arg4,arg5);
12088
12089 wxPyEndAllowThreads(__tstate);
12090 if (PyErr_Occurred()) SWIG_fail;
12091 }
12092 Py_INCREF(Py_None); resultobj = Py_None;
12093 return resultobj;
12094 fail:
12095 return NULL;
12096}
12097
12098
12099static PyObject *_wrap_EvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) {
12100 PyObject *resultobj;
12101 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12102 int arg2 ;
12103 int arg3 = (int) -1 ;
12104 wxEventType arg4 = (wxEventType) wxEVT_NULL ;
12105 bool result;
12106 PyObject * obj0 = 0 ;
12107 PyObject * obj1 = 0 ;
12108 PyObject * obj2 = 0 ;
12109 PyObject * obj3 = 0 ;
12110 char *kwnames[] = {
12111 (char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType", NULL
12112 };
12113
12114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:EvtHandler_Disconnect",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12117 arg2 = (int) SWIG_AsInt(obj1);
12118 if (PyErr_Occurred()) SWIG_fail;
12119 if (obj2) {
12120 arg3 = (int) SWIG_AsInt(obj2);
12121 if (PyErr_Occurred()) SWIG_fail;
12122 }
12123 if (obj3) {
12124 arg4 = (wxEventType) SWIG_AsInt(obj3);
12125 if (PyErr_Occurred()) SWIG_fail;
12126 }
12127 {
12128 PyThreadState* __tstate = wxPyBeginAllowThreads();
12129 result = (bool)wxEvtHandler_Disconnect(arg1,arg2,arg3,arg4);
12130
12131 wxPyEndAllowThreads(__tstate);
12132 if (PyErr_Occurred()) SWIG_fail;
12133 }
12134 {
12135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12136 }
12137 return resultobj;
12138 fail:
12139 return NULL;
12140}
12141
12142
12143static PyObject *_wrap_EvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
12144 PyObject *resultobj;
12145 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
12146 PyObject *arg2 = (PyObject *) 0 ;
12147 PyObject * obj0 = 0 ;
12148 PyObject * obj1 = 0 ;
12149 char *kwnames[] = {
12150 (char *) "self",(char *) "_self", NULL
12151 };
12152
12153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
12154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
12155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12156 arg2 = obj1;
12157 {
12158 PyThreadState* __tstate = wxPyBeginAllowThreads();
12159 wxEvtHandler__setOORInfo(arg1,arg2);
12160
12161 wxPyEndAllowThreads(__tstate);
12162 if (PyErr_Occurred()) SWIG_fail;
12163 }
12164 Py_INCREF(Py_None); resultobj = Py_None;
12165 return resultobj;
12166 fail:
12167 return NULL;
12168}
12169
12170
12171static PyObject * EvtHandler_swigregister(PyObject *self, PyObject *args) {
12172 PyObject *obj;
12173 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12174 SWIG_TypeClientData(SWIGTYPE_p_wxEvtHandler, obj);
12175 Py_INCREF(obj);
12176 return Py_BuildValue((char *)"");
12177}
12178static PyObject *_wrap_NewEventType(PyObject *self, PyObject *args, PyObject *kwargs) {
12179 PyObject *resultobj;
12180 wxEventType result;
12181 char *kwnames[] = {
12182 NULL
12183 };
12184
12185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewEventType",kwnames)) goto fail;
12186 {
12187 PyThreadState* __tstate = wxPyBeginAllowThreads();
12188 result = (wxEventType)wxNewEventType();
12189
12190 wxPyEndAllowThreads(__tstate);
12191 if (PyErr_Occurred()) SWIG_fail;
12192 }
12193 resultobj = SWIG_FromInt((int)result);
12194 return resultobj;
12195 fail:
12196 return NULL;
12197}
12198
12199
12200static PyObject *_wrap_delete_Event(PyObject *self, PyObject *args, PyObject *kwargs) {
12201 PyObject *resultobj;
12202 wxEvent *arg1 = (wxEvent *) 0 ;
12203 PyObject * obj0 = 0 ;
12204 char *kwnames[] = {
12205 (char *) "self", NULL
12206 };
12207
12208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Event",kwnames,&obj0)) goto fail;
12209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12211 {
12212 PyThreadState* __tstate = wxPyBeginAllowThreads();
12213 delete arg1;
12214
12215 wxPyEndAllowThreads(__tstate);
12216 if (PyErr_Occurred()) SWIG_fail;
12217 }
12218 Py_INCREF(Py_None); resultobj = Py_None;
12219 return resultobj;
12220 fail:
12221 return NULL;
12222}
12223
12224
12225static PyObject *_wrap_Event_SetEventType(PyObject *self, PyObject *args, PyObject *kwargs) {
12226 PyObject *resultobj;
12227 wxEvent *arg1 = (wxEvent *) 0 ;
12228 wxEventType arg2 ;
12229 PyObject * obj0 = 0 ;
12230 PyObject * obj1 = 0 ;
12231 char *kwnames[] = {
12232 (char *) "self",(char *) "typ", NULL
12233 };
12234
12235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventType",kwnames,&obj0,&obj1)) goto fail;
12236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12238 arg2 = (wxEventType) SWIG_AsInt(obj1);
12239 if (PyErr_Occurred()) SWIG_fail;
12240 {
12241 PyThreadState* __tstate = wxPyBeginAllowThreads();
12242 (arg1)->SetEventType(arg2);
12243
12244 wxPyEndAllowThreads(__tstate);
12245 if (PyErr_Occurred()) SWIG_fail;
12246 }
12247 Py_INCREF(Py_None); resultobj = Py_None;
12248 return resultobj;
12249 fail:
12250 return NULL;
12251}
12252
12253
12254static PyObject *_wrap_Event_GetEventType(PyObject *self, PyObject *args, PyObject *kwargs) {
12255 PyObject *resultobj;
12256 wxEvent *arg1 = (wxEvent *) 0 ;
12257 wxEventType result;
12258 PyObject * obj0 = 0 ;
12259 char *kwnames[] = {
12260 (char *) "self", NULL
12261 };
12262
12263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventType",kwnames,&obj0)) goto fail;
12264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12266 {
12267 PyThreadState* __tstate = wxPyBeginAllowThreads();
12268 result = (wxEventType)((wxEvent const *)arg1)->GetEventType();
12269
12270 wxPyEndAllowThreads(__tstate);
12271 if (PyErr_Occurred()) SWIG_fail;
12272 }
12273 resultobj = SWIG_FromInt((int)result);
12274 return resultobj;
12275 fail:
12276 return NULL;
12277}
12278
12279
12280static PyObject *_wrap_Event_GetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) {
12281 PyObject *resultobj;
12282 wxEvent *arg1 = (wxEvent *) 0 ;
12283 wxObject *result;
12284 PyObject * obj0 = 0 ;
12285 char *kwnames[] = {
12286 (char *) "self", NULL
12287 };
12288
12289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetEventObject",kwnames,&obj0)) goto fail;
12290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12292 {
12293 PyThreadState* __tstate = wxPyBeginAllowThreads();
12294 result = (wxObject *)((wxEvent const *)arg1)->GetEventObject();
12295
12296 wxPyEndAllowThreads(__tstate);
12297 if (PyErr_Occurred()) SWIG_fail;
12298 }
12299 {
412d302d 12300 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
12301 }
12302 return resultobj;
12303 fail:
12304 return NULL;
12305}
12306
12307
12308static PyObject *_wrap_Event_SetEventObject(PyObject *self, PyObject *args, PyObject *kwargs) {
12309 PyObject *resultobj;
12310 wxEvent *arg1 = (wxEvent *) 0 ;
12311 wxObject *arg2 = (wxObject *) 0 ;
12312 PyObject * obj0 = 0 ;
12313 PyObject * obj1 = 0 ;
12314 char *kwnames[] = {
12315 (char *) "self",(char *) "obj", NULL
12316 };
12317
12318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventObject",kwnames,&obj0,&obj1)) goto fail;
12319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12321 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxObject,
12322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12323 {
12324 PyThreadState* __tstate = wxPyBeginAllowThreads();
12325 (arg1)->SetEventObject(arg2);
12326
12327 wxPyEndAllowThreads(__tstate);
12328 if (PyErr_Occurred()) SWIG_fail;
12329 }
12330 Py_INCREF(Py_None); resultobj = Py_None;
12331 return resultobj;
12332 fail:
12333 return NULL;
12334}
12335
12336
12337static PyObject *_wrap_Event_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
12338 PyObject *resultobj;
12339 wxEvent *arg1 = (wxEvent *) 0 ;
12340 long result;
12341 PyObject * obj0 = 0 ;
12342 char *kwnames[] = {
12343 (char *) "self", NULL
12344 };
12345
12346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetTimestamp",kwnames,&obj0)) goto fail;
12347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12349 {
12350 PyThreadState* __tstate = wxPyBeginAllowThreads();
12351 result = (long)((wxEvent const *)arg1)->GetTimestamp();
12352
12353 wxPyEndAllowThreads(__tstate);
12354 if (PyErr_Occurred()) SWIG_fail;
12355 }
12356 resultobj = SWIG_FromLong((long)result);
12357 return resultobj;
12358 fail:
12359 return NULL;
12360}
12361
12362
12363static PyObject *_wrap_Event_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
12364 PyObject *resultobj;
12365 wxEvent *arg1 = (wxEvent *) 0 ;
12366 long arg2 = (long) 0 ;
12367 PyObject * obj0 = 0 ;
12368 PyObject * obj1 = 0 ;
12369 char *kwnames[] = {
12370 (char *) "self",(char *) "ts", NULL
12371 };
12372
12373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_SetTimestamp",kwnames,&obj0,&obj1)) goto fail;
12374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12376 if (obj1) {
12377 arg2 = (long) SWIG_AsLong(obj1);
12378 if (PyErr_Occurred()) SWIG_fail;
12379 }
12380 {
12381 PyThreadState* __tstate = wxPyBeginAllowThreads();
12382 (arg1)->SetTimestamp(arg2);
12383
12384 wxPyEndAllowThreads(__tstate);
12385 if (PyErr_Occurred()) SWIG_fail;
12386 }
12387 Py_INCREF(Py_None); resultobj = Py_None;
12388 return resultobj;
12389 fail:
12390 return NULL;
12391}
12392
12393
12394static PyObject *_wrap_Event_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
12395 PyObject *resultobj;
12396 wxEvent *arg1 = (wxEvent *) 0 ;
12397 int result;
12398 PyObject * obj0 = 0 ;
12399 char *kwnames[] = {
12400 (char *) "self", NULL
12401 };
12402
12403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetId",kwnames,&obj0)) goto fail;
12404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12406 {
12407 PyThreadState* __tstate = wxPyBeginAllowThreads();
12408 result = (int)((wxEvent const *)arg1)->GetId();
12409
12410 wxPyEndAllowThreads(__tstate);
12411 if (PyErr_Occurred()) SWIG_fail;
12412 }
12413 resultobj = SWIG_FromInt((int)result);
12414 return resultobj;
12415 fail:
12416 return NULL;
12417}
12418
12419
12420static PyObject *_wrap_Event_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
12421 PyObject *resultobj;
12422 wxEvent *arg1 = (wxEvent *) 0 ;
12423 int arg2 ;
12424 PyObject * obj0 = 0 ;
12425 PyObject * obj1 = 0 ;
12426 char *kwnames[] = {
12427 (char *) "self",(char *) "Id", NULL
12428 };
12429
12430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetId",kwnames,&obj0,&obj1)) goto fail;
12431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12433 arg2 = (int) SWIG_AsInt(obj1);
12434 if (PyErr_Occurred()) SWIG_fail;
12435 {
12436 PyThreadState* __tstate = wxPyBeginAllowThreads();
12437 (arg1)->SetId(arg2);
12438
12439 wxPyEndAllowThreads(__tstate);
12440 if (PyErr_Occurred()) SWIG_fail;
12441 }
12442 Py_INCREF(Py_None); resultobj = Py_None;
12443 return resultobj;
12444 fail:
12445 return NULL;
12446}
12447
12448
12449static PyObject *_wrap_Event_IsCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
12450 PyObject *resultobj;
12451 wxEvent *arg1 = (wxEvent *) 0 ;
12452 bool result;
12453 PyObject * obj0 = 0 ;
12454 char *kwnames[] = {
12455 (char *) "self", NULL
12456 };
12457
12458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_IsCommandEvent",kwnames,&obj0)) goto fail;
12459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12461 {
12462 PyThreadState* __tstate = wxPyBeginAllowThreads();
12463 result = (bool)((wxEvent const *)arg1)->IsCommandEvent();
12464
12465 wxPyEndAllowThreads(__tstate);
12466 if (PyErr_Occurred()) SWIG_fail;
12467 }
12468 {
12469 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12470 }
12471 return resultobj;
12472 fail:
12473 return NULL;
12474}
12475
12476
12477static PyObject *_wrap_Event_Skip(PyObject *self, PyObject *args, PyObject *kwargs) {
12478 PyObject *resultobj;
12479 wxEvent *arg1 = (wxEvent *) 0 ;
12480 bool arg2 = (bool) True ;
12481 PyObject * obj0 = 0 ;
12482 PyObject * obj1 = 0 ;
12483 char *kwnames[] = {
12484 (char *) "self",(char *) "skip", NULL
12485 };
12486
12487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_Skip",kwnames,&obj0,&obj1)) goto fail;
12488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12490 if (obj1) {
12491 arg2 = (bool) SWIG_AsBool(obj1);
12492 if (PyErr_Occurred()) SWIG_fail;
12493 }
12494 {
12495 PyThreadState* __tstate = wxPyBeginAllowThreads();
12496 (arg1)->Skip(arg2);
12497
12498 wxPyEndAllowThreads(__tstate);
12499 if (PyErr_Occurred()) SWIG_fail;
12500 }
12501 Py_INCREF(Py_None); resultobj = Py_None;
12502 return resultobj;
12503 fail:
12504 return NULL;
12505}
12506
12507
12508static PyObject *_wrap_Event_GetSkipped(PyObject *self, PyObject *args, PyObject *kwargs) {
12509 PyObject *resultobj;
12510 wxEvent *arg1 = (wxEvent *) 0 ;
12511 bool result;
12512 PyObject * obj0 = 0 ;
12513 char *kwnames[] = {
12514 (char *) "self", NULL
12515 };
12516
12517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_GetSkipped",kwnames,&obj0)) goto fail;
12518 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12520 {
12521 PyThreadState* __tstate = wxPyBeginAllowThreads();
12522 result = (bool)((wxEvent const *)arg1)->GetSkipped();
12523
12524 wxPyEndAllowThreads(__tstate);
12525 if (PyErr_Occurred()) SWIG_fail;
12526 }
12527 {
12528 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12529 }
12530 return resultobj;
12531 fail:
12532 return NULL;
12533}
12534
12535
12536static PyObject *_wrap_Event_ShouldPropagate(PyObject *self, PyObject *args, PyObject *kwargs) {
12537 PyObject *resultobj;
12538 wxEvent *arg1 = (wxEvent *) 0 ;
12539 bool result;
12540 PyObject * obj0 = 0 ;
12541 char *kwnames[] = {
12542 (char *) "self", NULL
12543 };
12544
12545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_ShouldPropagate",kwnames,&obj0)) goto fail;
12546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12548 {
12549 PyThreadState* __tstate = wxPyBeginAllowThreads();
12550 result = (bool)((wxEvent const *)arg1)->ShouldPropagate();
12551
12552 wxPyEndAllowThreads(__tstate);
12553 if (PyErr_Occurred()) SWIG_fail;
12554 }
12555 {
12556 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12557 }
12558 return resultobj;
12559 fail:
12560 return NULL;
12561}
12562
12563
12564static PyObject *_wrap_Event_StopPropagation(PyObject *self, PyObject *args, PyObject *kwargs) {
12565 PyObject *resultobj;
12566 wxEvent *arg1 = (wxEvent *) 0 ;
12567 int result;
12568 PyObject * obj0 = 0 ;
12569 char *kwnames[] = {
12570 (char *) "self", NULL
12571 };
12572
12573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_StopPropagation",kwnames,&obj0)) goto fail;
12574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12576 {
12577 PyThreadState* __tstate = wxPyBeginAllowThreads();
12578 result = (int)(arg1)->StopPropagation();
12579
12580 wxPyEndAllowThreads(__tstate);
12581 if (PyErr_Occurred()) SWIG_fail;
12582 }
12583 resultobj = SWIG_FromInt((int)result);
12584 return resultobj;
12585 fail:
12586 return NULL;
12587}
12588
12589
12590static PyObject *_wrap_Event_ResumePropagation(PyObject *self, PyObject *args, PyObject *kwargs) {
12591 PyObject *resultobj;
12592 wxEvent *arg1 = (wxEvent *) 0 ;
12593 int arg2 ;
12594 PyObject * obj0 = 0 ;
12595 PyObject * obj1 = 0 ;
12596 char *kwnames[] = {
12597 (char *) "self",(char *) "propagationLevel", NULL
12598 };
12599
12600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_ResumePropagation",kwnames,&obj0,&obj1)) goto fail;
12601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12603 arg2 = (int) SWIG_AsInt(obj1);
12604 if (PyErr_Occurred()) SWIG_fail;
12605 {
12606 PyThreadState* __tstate = wxPyBeginAllowThreads();
12607 (arg1)->ResumePropagation(arg2);
12608
12609 wxPyEndAllowThreads(__tstate);
12610 if (PyErr_Occurred()) SWIG_fail;
12611 }
12612 Py_INCREF(Py_None); resultobj = Py_None;
12613 return resultobj;
12614 fail:
12615 return NULL;
12616}
12617
12618
12619static PyObject *_wrap_Event_Clone(PyObject *self, PyObject *args, PyObject *kwargs) {
12620 PyObject *resultobj;
12621 wxEvent *arg1 = (wxEvent *) 0 ;
12622 wxEvent *result;
12623 PyObject * obj0 = 0 ;
12624 char *kwnames[] = {
12625 (char *) "self", NULL
12626 };
12627
12628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Event_Clone",kwnames,&obj0)) goto fail;
12629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12631 {
12632 PyThreadState* __tstate = wxPyBeginAllowThreads();
12633 result = (wxEvent *)(arg1)->Clone();
12634
12635 wxPyEndAllowThreads(__tstate);
12636 if (PyErr_Occurred()) SWIG_fail;
12637 }
12638 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0);
12639 return resultobj;
12640 fail:
12641 return NULL;
12642}
12643
12644
12645static PyObject * Event_swigregister(PyObject *self, PyObject *args) {
12646 PyObject *obj;
12647 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12648 SWIG_TypeClientData(SWIGTYPE_p_wxEvent, obj);
12649 Py_INCREF(obj);
12650 return Py_BuildValue((char *)"");
12651}
12652static PyObject *_wrap_new_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
12653 PyObject *resultobj;
12654 wxEvent *arg1 = 0 ;
12655 wxPropagationDisabler *result;
12656 PyObject * obj0 = 0 ;
12657 char *kwnames[] = {
12658 (char *) "event", NULL
12659 };
12660
12661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagationDisabler",kwnames,&obj0)) goto fail;
12662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12663 SWIG_POINTER_EXCEPTION | 0)) == -1)
12664 SWIG_fail;
12665 if (arg1 == NULL) {
12666 PyErr_SetString(PyExc_TypeError,"null reference");
12667 SWIG_fail;
12668 }
12669 {
12670 PyThreadState* __tstate = wxPyBeginAllowThreads();
12671 result = (wxPropagationDisabler *)new wxPropagationDisabler(*arg1);
12672
12673 wxPyEndAllowThreads(__tstate);
12674 if (PyErr_Occurred()) SWIG_fail;
12675 }
12676 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagationDisabler, 1);
12677 return resultobj;
12678 fail:
12679 return NULL;
12680}
12681
12682
12683static PyObject *_wrap_delete_PropagationDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
12684 PyObject *resultobj;
12685 wxPropagationDisabler *arg1 = (wxPropagationDisabler *) 0 ;
12686 PyObject * obj0 = 0 ;
12687 char *kwnames[] = {
12688 (char *) "self", NULL
12689 };
12690
12691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagationDisabler",kwnames,&obj0)) goto fail;
12692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagationDisabler,
12693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12694 {
12695 PyThreadState* __tstate = wxPyBeginAllowThreads();
12696 delete arg1;
12697
12698 wxPyEndAllowThreads(__tstate);
12699 if (PyErr_Occurred()) SWIG_fail;
12700 }
12701 Py_INCREF(Py_None); resultobj = Py_None;
12702 return resultobj;
12703 fail:
12704 return NULL;
12705}
12706
12707
12708static PyObject * PropagationDisabler_swigregister(PyObject *self, PyObject *args) {
12709 PyObject *obj;
12710 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12711 SWIG_TypeClientData(SWIGTYPE_p_wxPropagationDisabler, obj);
12712 Py_INCREF(obj);
12713 return Py_BuildValue((char *)"");
12714}
12715static PyObject *_wrap_new_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) {
12716 PyObject *resultobj;
12717 wxEvent *arg1 = 0 ;
12718 wxPropagateOnce *result;
12719 PyObject * obj0 = 0 ;
12720 char *kwnames[] = {
12721 (char *) "event", NULL
12722 };
12723
12724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagateOnce",kwnames,&obj0)) goto fail;
12725 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvent,
12726 SWIG_POINTER_EXCEPTION | 0)) == -1)
12727 SWIG_fail;
12728 if (arg1 == NULL) {
12729 PyErr_SetString(PyExc_TypeError,"null reference");
12730 SWIG_fail;
12731 }
12732 {
12733 PyThreadState* __tstate = wxPyBeginAllowThreads();
12734 result = (wxPropagateOnce *)new wxPropagateOnce(*arg1);
12735
12736 wxPyEndAllowThreads(__tstate);
12737 if (PyErr_Occurred()) SWIG_fail;
12738 }
12739 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPropagateOnce, 1);
12740 return resultobj;
12741 fail:
12742 return NULL;
12743}
12744
12745
12746static PyObject *_wrap_delete_PropagateOnce(PyObject *self, PyObject *args, PyObject *kwargs) {
12747 PyObject *resultobj;
12748 wxPropagateOnce *arg1 = (wxPropagateOnce *) 0 ;
12749 PyObject * obj0 = 0 ;
12750 char *kwnames[] = {
12751 (char *) "self", NULL
12752 };
12753
12754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PropagateOnce",kwnames,&obj0)) goto fail;
12755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPropagateOnce,
12756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12757 {
12758 PyThreadState* __tstate = wxPyBeginAllowThreads();
12759 delete arg1;
12760
12761 wxPyEndAllowThreads(__tstate);
12762 if (PyErr_Occurred()) SWIG_fail;
12763 }
12764 Py_INCREF(Py_None); resultobj = Py_None;
12765 return resultobj;
12766 fail:
12767 return NULL;
12768}
12769
12770
12771static PyObject * PropagateOnce_swigregister(PyObject *self, PyObject *args) {
12772 PyObject *obj;
12773 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12774 SWIG_TypeClientData(SWIGTYPE_p_wxPropagateOnce, obj);
12775 Py_INCREF(obj);
12776 return Py_BuildValue((char *)"");
12777}
12778static PyObject *_wrap_new_CommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
12779 PyObject *resultobj;
12780 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
12781 int arg2 = (int) 0 ;
12782 wxCommandEvent *result;
12783 PyObject * obj0 = 0 ;
12784 PyObject * obj1 = 0 ;
12785 char *kwnames[] = {
12786 (char *) "commandType",(char *) "winid", NULL
12787 };
12788
12789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CommandEvent",kwnames,&obj0,&obj1)) goto fail;
12790 if (obj0) {
12791 arg1 = (wxEventType) SWIG_AsInt(obj0);
12792 if (PyErr_Occurred()) SWIG_fail;
12793 }
12794 if (obj1) {
12795 arg2 = (int) SWIG_AsInt(obj1);
12796 if (PyErr_Occurred()) SWIG_fail;
12797 }
12798 {
12799 PyThreadState* __tstate = wxPyBeginAllowThreads();
12800 result = (wxCommandEvent *)new wxCommandEvent(arg1,arg2);
12801
12802 wxPyEndAllowThreads(__tstate);
12803 if (PyErr_Occurred()) SWIG_fail;
12804 }
12805 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCommandEvent, 1);
12806 return resultobj;
12807 fail:
12808 return NULL;
12809}
12810
12811
12812static PyObject *_wrap_CommandEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
12813 PyObject *resultobj;
12814 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12815 int result;
12816 PyObject * obj0 = 0 ;
12817 char *kwnames[] = {
12818 (char *) "self", NULL
12819 };
12820
12821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetSelection",kwnames,&obj0)) goto fail;
12822 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
12823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12824 {
12825 PyThreadState* __tstate = wxPyBeginAllowThreads();
12826 result = (int)((wxCommandEvent const *)arg1)->GetSelection();
12827
12828 wxPyEndAllowThreads(__tstate);
12829 if (PyErr_Occurred()) SWIG_fail;
12830 }
12831 resultobj = SWIG_FromInt((int)result);
12832 return resultobj;
12833 fail:
12834 return NULL;
12835}
12836
12837
12838static PyObject *_wrap_CommandEvent_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
12839 PyObject *resultobj;
12840 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12841 wxString *arg2 = 0 ;
12842 bool temp2 = False ;
12843 PyObject * obj0 = 0 ;
12844 PyObject * obj1 = 0 ;
12845 char *kwnames[] = {
12846 (char *) "self",(char *) "s", NULL
12847 };
12848
12849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetString",kwnames,&obj0,&obj1)) goto fail;
12850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
12851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12852 {
12853 arg2 = wxString_in_helper(obj1);
12854 if (arg2 == NULL) SWIG_fail;
12855 temp2 = True;
12856 }
12857 {
12858 PyThreadState* __tstate = wxPyBeginAllowThreads();
12859 (arg1)->SetString((wxString const &)*arg2);
12860
12861 wxPyEndAllowThreads(__tstate);
12862 if (PyErr_Occurred()) SWIG_fail;
12863 }
12864 Py_INCREF(Py_None); resultobj = Py_None;
12865 {
12866 if (temp2)
12867 delete arg2;
12868 }
12869 return resultobj;
12870 fail:
12871 {
12872 if (temp2)
12873 delete arg2;
12874 }
12875 return NULL;
12876}
12877
12878
12879static PyObject *_wrap_CommandEvent_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
12880 PyObject *resultobj;
12881 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12882 wxString result;
12883 PyObject * obj0 = 0 ;
12884 char *kwnames[] = {
12885 (char *) "self", NULL
12886 };
12887
12888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetString",kwnames,&obj0)) goto fail;
12889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
12890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12891 {
12892 PyThreadState* __tstate = wxPyBeginAllowThreads();
12893 result = ((wxCommandEvent const *)arg1)->GetString();
12894
12895 wxPyEndAllowThreads(__tstate);
12896 if (PyErr_Occurred()) SWIG_fail;
12897 }
12898 {
12899#if wxUSE_UNICODE
12900 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12901#else
12902 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12903#endif
12904 }
12905 return resultobj;
12906 fail:
12907 return NULL;
12908}
12909
12910
12911static PyObject *_wrap_CommandEvent_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
12912 PyObject *resultobj;
12913 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12914 bool result;
12915 PyObject * obj0 = 0 ;
12916 char *kwnames[] = {
12917 (char *) "self", NULL
12918 };
12919
12920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsChecked",kwnames,&obj0)) goto fail;
12921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
12922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12923 {
12924 PyThreadState* __tstate = wxPyBeginAllowThreads();
12925 result = (bool)((wxCommandEvent const *)arg1)->IsChecked();
12926
12927 wxPyEndAllowThreads(__tstate);
12928 if (PyErr_Occurred()) SWIG_fail;
12929 }
12930 {
12931 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12932 }
12933 return resultobj;
12934 fail:
12935 return NULL;
12936}
12937
12938
12939static PyObject *_wrap_CommandEvent_IsSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
12940 PyObject *resultobj;
12941 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12942 bool result;
12943 PyObject * obj0 = 0 ;
12944 char *kwnames[] = {
12945 (char *) "self", NULL
12946 };
12947
12948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_IsSelection",kwnames,&obj0)) goto fail;
12949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
12950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12951 {
12952 PyThreadState* __tstate = wxPyBeginAllowThreads();
12953 result = (bool)((wxCommandEvent const *)arg1)->IsSelection();
12954
12955 wxPyEndAllowThreads(__tstate);
12956 if (PyErr_Occurred()) SWIG_fail;
12957 }
12958 {
12959 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12960 }
12961 return resultobj;
12962 fail:
12963 return NULL;
12964}
12965
12966
12967static PyObject *_wrap_CommandEvent_SetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) {
12968 PyObject *resultobj;
12969 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12970 long arg2 ;
12971 PyObject * obj0 = 0 ;
12972 PyObject * obj1 = 0 ;
12973 char *kwnames[] = {
12974 (char *) "self",(char *) "extraLong", NULL
12975 };
12976
12977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetExtraLong",kwnames,&obj0,&obj1)) goto fail;
12978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
12979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12980 arg2 = (long) SWIG_AsLong(obj1);
12981 if (PyErr_Occurred()) SWIG_fail;
12982 {
12983 PyThreadState* __tstate = wxPyBeginAllowThreads();
12984 (arg1)->SetExtraLong(arg2);
12985
12986 wxPyEndAllowThreads(__tstate);
12987 if (PyErr_Occurred()) SWIG_fail;
12988 }
12989 Py_INCREF(Py_None); resultobj = Py_None;
12990 return resultobj;
12991 fail:
12992 return NULL;
12993}
12994
12995
12996static PyObject *_wrap_CommandEvent_GetExtraLong(PyObject *self, PyObject *args, PyObject *kwargs) {
12997 PyObject *resultobj;
12998 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
12999 long result;
13000 PyObject * obj0 = 0 ;
13001 char *kwnames[] = {
13002 (char *) "self", NULL
13003 };
13004
13005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetExtraLong",kwnames,&obj0)) goto fail;
13006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
13007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13008 {
13009 PyThreadState* __tstate = wxPyBeginAllowThreads();
13010 result = (long)((wxCommandEvent const *)arg1)->GetExtraLong();
13011
13012 wxPyEndAllowThreads(__tstate);
13013 if (PyErr_Occurred()) SWIG_fail;
13014 }
13015 resultobj = SWIG_FromLong((long)result);
13016 return resultobj;
13017 fail:
13018 return NULL;
13019}
13020
13021
13022static PyObject *_wrap_CommandEvent_SetInt(PyObject *self, PyObject *args, PyObject *kwargs) {
13023 PyObject *resultobj;
13024 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
13025 int arg2 ;
13026 PyObject * obj0 = 0 ;
13027 PyObject * obj1 = 0 ;
13028 char *kwnames[] = {
13029 (char *) "self",(char *) "i", NULL
13030 };
13031
13032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetInt",kwnames,&obj0,&obj1)) goto fail;
13033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
13034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13035 arg2 = (int) SWIG_AsInt(obj1);
13036 if (PyErr_Occurred()) SWIG_fail;
13037 {
13038 PyThreadState* __tstate = wxPyBeginAllowThreads();
13039 (arg1)->SetInt(arg2);
13040
13041 wxPyEndAllowThreads(__tstate);
13042 if (PyErr_Occurred()) SWIG_fail;
13043 }
13044 Py_INCREF(Py_None); resultobj = Py_None;
13045 return resultobj;
13046 fail:
13047 return NULL;
13048}
13049
13050
13051static PyObject *_wrap_CommandEvent_GetInt(PyObject *self, PyObject *args, PyObject *kwargs) {
13052 PyObject *resultobj;
13053 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
13054 long result;
13055 PyObject * obj0 = 0 ;
13056 char *kwnames[] = {
13057 (char *) "self", NULL
13058 };
13059
13060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_GetInt",kwnames,&obj0)) goto fail;
13061 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
13062 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13063 {
13064 PyThreadState* __tstate = wxPyBeginAllowThreads();
13065 result = (long)((wxCommandEvent const *)arg1)->GetInt();
13066
13067 wxPyEndAllowThreads(__tstate);
13068 if (PyErr_Occurred()) SWIG_fail;
13069 }
13070 resultobj = SWIG_FromLong((long)result);
13071 return resultobj;
13072 fail:
13073 return NULL;
13074}
13075
13076
13077static PyObject *_wrap_CommandEvent_Clone(PyObject *self, PyObject *args, PyObject *kwargs) {
13078 PyObject *resultobj;
13079 wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
13080 wxEvent *result;
13081 PyObject * obj0 = 0 ;
13082 char *kwnames[] = {
13083 (char *) "self", NULL
13084 };
13085
13086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CommandEvent_Clone",kwnames,&obj0)) goto fail;
13087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCommandEvent,
13088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13089 {
13090 PyThreadState* __tstate = wxPyBeginAllowThreads();
13091 result = (wxEvent *)((wxCommandEvent const *)arg1)->Clone();
13092
13093 wxPyEndAllowThreads(__tstate);
13094 if (PyErr_Occurred()) SWIG_fail;
13095 }
13096 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEvent, 0);
13097 return resultobj;
13098 fail:
13099 return NULL;
13100}
13101
13102
13103static PyObject * CommandEvent_swigregister(PyObject *self, PyObject *args) {
13104 PyObject *obj;
13105 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13106 SWIG_TypeClientData(SWIGTYPE_p_wxCommandEvent, obj);
13107 Py_INCREF(obj);
13108 return Py_BuildValue((char *)"");
13109}
13110static PyObject *_wrap_new_NotifyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
13111 PyObject *resultobj;
13112 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
13113 int arg2 = (int) 0 ;
13114 wxNotifyEvent *result;
13115 PyObject * obj0 = 0 ;
13116 PyObject * obj1 = 0 ;
13117 char *kwnames[] = {
13118 (char *) "commandType",(char *) "winid", NULL
13119 };
13120
13121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_NotifyEvent",kwnames,&obj0,&obj1)) goto fail;
13122 if (obj0) {
13123 arg1 = (wxEventType) SWIG_AsInt(obj0);
13124 if (PyErr_Occurred()) SWIG_fail;
13125 }
13126 if (obj1) {
13127 arg2 = (int) SWIG_AsInt(obj1);
13128 if (PyErr_Occurred()) SWIG_fail;
13129 }
13130 {
13131 PyThreadState* __tstate = wxPyBeginAllowThreads();
13132 result = (wxNotifyEvent *)new wxNotifyEvent(arg1,arg2);
13133
13134 wxPyEndAllowThreads(__tstate);
13135 if (PyErr_Occurred()) SWIG_fail;
13136 }
13137 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotifyEvent, 1);
13138 return resultobj;
13139 fail:
13140 return NULL;
13141}
13142
13143
13144static PyObject *_wrap_NotifyEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) {
13145 PyObject *resultobj;
13146 wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ;
13147 PyObject * obj0 = 0 ;
13148 char *kwnames[] = {
13149 (char *) "self", NULL
13150 };
13151
13152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Veto",kwnames,&obj0)) goto fail;
13153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent,
13154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13155 {
13156 PyThreadState* __tstate = wxPyBeginAllowThreads();
13157 (arg1)->Veto();
13158
13159 wxPyEndAllowThreads(__tstate);
13160 if (PyErr_Occurred()) SWIG_fail;
13161 }
13162 Py_INCREF(Py_None); resultobj = Py_None;
13163 return resultobj;
13164 fail:
13165 return NULL;
13166}
13167
13168
13169static PyObject *_wrap_NotifyEvent_Allow(PyObject *self, PyObject *args, PyObject *kwargs) {
13170 PyObject *resultobj;
13171 wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ;
13172 PyObject * obj0 = 0 ;
13173 char *kwnames[] = {
13174 (char *) "self", NULL
13175 };
13176
13177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_Allow",kwnames,&obj0)) goto fail;
13178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent,
13179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13180 {
13181 PyThreadState* __tstate = wxPyBeginAllowThreads();
13182 (arg1)->Allow();
13183
13184 wxPyEndAllowThreads(__tstate);
13185 if (PyErr_Occurred()) SWIG_fail;
13186 }
13187 Py_INCREF(Py_None); resultobj = Py_None;
13188 return resultobj;
13189 fail:
13190 return NULL;
13191}
13192
13193
13194static PyObject *_wrap_NotifyEvent_IsAllowed(PyObject *self, PyObject *args, PyObject *kwargs) {
13195 PyObject *resultobj;
13196 wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ;
13197 bool result;
13198 PyObject * obj0 = 0 ;
13199 char *kwnames[] = {
13200 (char *) "self", NULL
13201 };
13202
13203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotifyEvent_IsAllowed",kwnames,&obj0)) goto fail;
13204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotifyEvent,
13205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13206 {
13207 PyThreadState* __tstate = wxPyBeginAllowThreads();
13208 result = (bool)(arg1)->IsAllowed();
13209
13210 wxPyEndAllowThreads(__tstate);
13211 if (PyErr_Occurred()) SWIG_fail;
13212 }
13213 {
13214 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13215 }
13216 return resultobj;
13217 fail:
13218 return NULL;
13219}
13220
13221
13222static PyObject * NotifyEvent_swigregister(PyObject *self, PyObject *args) {
13223 PyObject *obj;
13224 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13225 SWIG_TypeClientData(SWIGTYPE_p_wxNotifyEvent, obj);
13226 Py_INCREF(obj);
13227 return Py_BuildValue((char *)"");
13228}
13229static PyObject *_wrap_new_ScrollEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
13230 PyObject *resultobj;
13231 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
13232 int arg2 = (int) 0 ;
13233 int arg3 = (int) 0 ;
13234 int arg4 = (int) 0 ;
13235 wxScrollEvent *result;
13236 PyObject * obj0 = 0 ;
13237 PyObject * obj1 = 0 ;
13238 PyObject * obj2 = 0 ;
13239 PyObject * obj3 = 0 ;
13240 char *kwnames[] = {
13241 (char *) "commandType",(char *) "winid",(char *) "pos",(char *) "orient", NULL
13242 };
13243
13244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ScrollEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
13245 if (obj0) {
13246 arg1 = (wxEventType) SWIG_AsInt(obj0);
13247 if (PyErr_Occurred()) SWIG_fail;
13248 }
13249 if (obj1) {
13250 arg2 = (int) SWIG_AsInt(obj1);
13251 if (PyErr_Occurred()) SWIG_fail;
13252 }
13253 if (obj2) {
13254 arg3 = (int) SWIG_AsInt(obj2);
13255 if (PyErr_Occurred()) SWIG_fail;
13256 }
13257 if (obj3) {
13258 arg4 = (int) SWIG_AsInt(obj3);
13259 if (PyErr_Occurred()) SWIG_fail;
13260 }
13261 {
13262 PyThreadState* __tstate = wxPyBeginAllowThreads();
13263 result = (wxScrollEvent *)new wxScrollEvent(arg1,arg2,arg3,arg4);
13264
13265 wxPyEndAllowThreads(__tstate);
13266 if (PyErr_Occurred()) SWIG_fail;
13267 }
13268 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollEvent, 1);
13269 return resultobj;
13270 fail:
13271 return NULL;
13272}
13273
13274
13275static PyObject *_wrap_ScrollEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
13276 PyObject *resultobj;
13277 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
13278 int result;
13279 PyObject * obj0 = 0 ;
13280 char *kwnames[] = {
13281 (char *) "self", NULL
13282 };
13283
13284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetOrientation",kwnames,&obj0)) goto fail;
13285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent,
13286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13287 {
13288 PyThreadState* __tstate = wxPyBeginAllowThreads();
13289 result = (int)((wxScrollEvent const *)arg1)->GetOrientation();
13290
13291 wxPyEndAllowThreads(__tstate);
13292 if (PyErr_Occurred()) SWIG_fail;
13293 }
13294 resultobj = SWIG_FromInt((int)result);
13295 return resultobj;
13296 fail:
13297 return NULL;
13298}
13299
13300
13301static PyObject *_wrap_ScrollEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
13302 PyObject *resultobj;
13303 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
13304 int result;
13305 PyObject * obj0 = 0 ;
13306 char *kwnames[] = {
13307 (char *) "self", NULL
13308 };
13309
13310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollEvent_GetPosition",kwnames,&obj0)) goto fail;
13311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent,
13312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13313 {
13314 PyThreadState* __tstate = wxPyBeginAllowThreads();
13315 result = (int)((wxScrollEvent const *)arg1)->GetPosition();
13316
13317 wxPyEndAllowThreads(__tstate);
13318 if (PyErr_Occurred()) SWIG_fail;
13319 }
13320 resultobj = SWIG_FromInt((int)result);
13321 return resultobj;
13322 fail:
13323 return NULL;
13324}
13325
13326
13327static PyObject *_wrap_ScrollEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
13328 PyObject *resultobj;
13329 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
13330 int arg2 ;
13331 PyObject * obj0 = 0 ;
13332 PyObject * obj1 = 0 ;
13333 char *kwnames[] = {
13334 (char *) "self",(char *) "orient", NULL
13335 };
13336
13337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail;
13338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent,
13339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13340 arg2 = (int) SWIG_AsInt(obj1);
13341 if (PyErr_Occurred()) SWIG_fail;
13342 {
13343 PyThreadState* __tstate = wxPyBeginAllowThreads();
13344 (arg1)->SetOrientation(arg2);
13345
13346 wxPyEndAllowThreads(__tstate);
13347 if (PyErr_Occurred()) SWIG_fail;
13348 }
13349 Py_INCREF(Py_None); resultobj = Py_None;
13350 return resultobj;
13351 fail:
13352 return NULL;
13353}
13354
13355
13356static PyObject *_wrap_ScrollEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
13357 PyObject *resultobj;
13358 wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
13359 int arg2 ;
13360 PyObject * obj0 = 0 ;
13361 PyObject * obj1 = 0 ;
13362 char *kwnames[] = {
13363 (char *) "self",(char *) "pos", NULL
13364 };
13365
13366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
13367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollEvent,
13368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13369 arg2 = (int) SWIG_AsInt(obj1);
13370 if (PyErr_Occurred()) SWIG_fail;
13371 {
13372 PyThreadState* __tstate = wxPyBeginAllowThreads();
13373 (arg1)->SetPosition(arg2);
13374
13375 wxPyEndAllowThreads(__tstate);
13376 if (PyErr_Occurred()) SWIG_fail;
13377 }
13378 Py_INCREF(Py_None); resultobj = Py_None;
13379 return resultobj;
13380 fail:
13381 return NULL;
13382}
13383
13384
13385static PyObject * ScrollEvent_swigregister(PyObject *self, PyObject *args) {
13386 PyObject *obj;
13387 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13388 SWIG_TypeClientData(SWIGTYPE_p_wxScrollEvent, obj);
13389 Py_INCREF(obj);
13390 return Py_BuildValue((char *)"");
13391}
13392static PyObject *_wrap_new_ScrollWinEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
13393 PyObject *resultobj;
13394 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
13395 int arg2 = (int) 0 ;
13396 int arg3 = (int) 0 ;
13397 wxScrollWinEvent *result;
13398 PyObject * obj0 = 0 ;
13399 PyObject * obj1 = 0 ;
13400 PyObject * obj2 = 0 ;
13401 char *kwnames[] = {
13402 (char *) "commandType",(char *) "pos",(char *) "orient", NULL
13403 };
13404
13405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ScrollWinEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13406 if (obj0) {
13407 arg1 = (wxEventType) SWIG_AsInt(obj0);
13408 if (PyErr_Occurred()) SWIG_fail;
13409 }
13410 if (obj1) {
13411 arg2 = (int) SWIG_AsInt(obj1);
13412 if (PyErr_Occurred()) SWIG_fail;
13413 }
13414 if (obj2) {
13415 arg3 = (int) SWIG_AsInt(obj2);
13416 if (PyErr_Occurred()) SWIG_fail;
13417 }
13418 {
13419 PyThreadState* __tstate = wxPyBeginAllowThreads();
13420 result = (wxScrollWinEvent *)new wxScrollWinEvent(arg1,arg2,arg3);
13421
13422 wxPyEndAllowThreads(__tstate);
13423 if (PyErr_Occurred()) SWIG_fail;
13424 }
13425 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollWinEvent, 1);
13426 return resultobj;
13427 fail:
13428 return NULL;
13429}
13430
13431
13432static PyObject *_wrap_ScrollWinEvent_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
13433 PyObject *resultobj;
13434 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
13435 int result;
13436 PyObject * obj0 = 0 ;
13437 char *kwnames[] = {
13438 (char *) "self", NULL
13439 };
13440
13441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetOrientation",kwnames,&obj0)) goto fail;
13442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent,
13443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13444 {
13445 PyThreadState* __tstate = wxPyBeginAllowThreads();
13446 result = (int)((wxScrollWinEvent const *)arg1)->GetOrientation();
13447
13448 wxPyEndAllowThreads(__tstate);
13449 if (PyErr_Occurred()) SWIG_fail;
13450 }
13451 resultobj = SWIG_FromInt((int)result);
13452 return resultobj;
13453 fail:
13454 return NULL;
13455}
13456
13457
13458static PyObject *_wrap_ScrollWinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
13459 PyObject *resultobj;
13460 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
13461 int result;
13462 PyObject * obj0 = 0 ;
13463 char *kwnames[] = {
13464 (char *) "self", NULL
13465 };
13466
13467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollWinEvent_GetPosition",kwnames,&obj0)) goto fail;
13468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent,
13469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13470 {
13471 PyThreadState* __tstate = wxPyBeginAllowThreads();
13472 result = (int)((wxScrollWinEvent const *)arg1)->GetPosition();
13473
13474 wxPyEndAllowThreads(__tstate);
13475 if (PyErr_Occurred()) SWIG_fail;
13476 }
13477 resultobj = SWIG_FromInt((int)result);
13478 return resultobj;
13479 fail:
13480 return NULL;
13481}
13482
13483
13484static PyObject *_wrap_ScrollWinEvent_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
13485 PyObject *resultobj;
13486 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
13487 int arg2 ;
13488 PyObject * obj0 = 0 ;
13489 PyObject * obj1 = 0 ;
13490 char *kwnames[] = {
13491 (char *) "self",(char *) "orient", NULL
13492 };
13493
13494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetOrientation",kwnames,&obj0,&obj1)) goto fail;
13495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent,
13496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13497 arg2 = (int) SWIG_AsInt(obj1);
13498 if (PyErr_Occurred()) SWIG_fail;
13499 {
13500 PyThreadState* __tstate = wxPyBeginAllowThreads();
13501 (arg1)->SetOrientation(arg2);
13502
13503 wxPyEndAllowThreads(__tstate);
13504 if (PyErr_Occurred()) SWIG_fail;
13505 }
13506 Py_INCREF(Py_None); resultobj = Py_None;
13507 return resultobj;
13508 fail:
13509 return NULL;
13510}
13511
13512
13513static PyObject *_wrap_ScrollWinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
13514 PyObject *resultobj;
13515 wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
13516 int arg2 ;
13517 PyObject * obj0 = 0 ;
13518 PyObject * obj1 = 0 ;
13519 char *kwnames[] = {
13520 (char *) "self",(char *) "pos", NULL
13521 };
13522
13523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
13524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollWinEvent,
13525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13526 arg2 = (int) SWIG_AsInt(obj1);
13527 if (PyErr_Occurred()) SWIG_fail;
13528 {
13529 PyThreadState* __tstate = wxPyBeginAllowThreads();
13530 (arg1)->SetPosition(arg2);
13531
13532 wxPyEndAllowThreads(__tstate);
13533 if (PyErr_Occurred()) SWIG_fail;
13534 }
13535 Py_INCREF(Py_None); resultobj = Py_None;
13536 return resultobj;
13537 fail:
13538 return NULL;
13539}
13540
13541
13542static PyObject * ScrollWinEvent_swigregister(PyObject *self, PyObject *args) {
13543 PyObject *obj;
13544 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13545 SWIG_TypeClientData(SWIGTYPE_p_wxScrollWinEvent, obj);
13546 Py_INCREF(obj);
13547 return Py_BuildValue((char *)"");
13548}
13549static PyObject *_wrap_new_MouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
13550 PyObject *resultobj;
13551 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
13552 wxMouseEvent *result;
13553 PyObject * obj0 = 0 ;
13554 char *kwnames[] = {
13555 (char *) "mouseType", NULL
13556 };
13557
13558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MouseEvent",kwnames,&obj0)) goto fail;
13559 if (obj0) {
13560 arg1 = (wxEventType) SWIG_AsInt(obj0);
13561 if (PyErr_Occurred()) SWIG_fail;
13562 }
13563 {
13564 PyThreadState* __tstate = wxPyBeginAllowThreads();
13565 result = (wxMouseEvent *)new wxMouseEvent(arg1);
13566
13567 wxPyEndAllowThreads(__tstate);
13568 if (PyErr_Occurred()) SWIG_fail;
13569 }
13570 {
412d302d 13571 resultobj = wxPyMake_wxObject(result, 1);
d55e5bfc
RD
13572 }
13573 return resultobj;
13574 fail:
13575 return NULL;
13576}
13577
13578
13579static PyObject *_wrap_MouseEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) {
13580 PyObject *resultobj;
13581 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13582 bool result;
13583 PyObject * obj0 = 0 ;
13584 char *kwnames[] = {
13585 (char *) "self", NULL
13586 };
13587
13588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsButton",kwnames,&obj0)) goto fail;
13589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13591 {
13592 PyThreadState* __tstate = wxPyBeginAllowThreads();
13593 result = (bool)((wxMouseEvent const *)arg1)->IsButton();
13594
13595 wxPyEndAllowThreads(__tstate);
13596 if (PyErr_Occurred()) SWIG_fail;
13597 }
13598 {
13599 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13600 }
13601 return resultobj;
13602 fail:
13603 return NULL;
13604}
13605
13606
13607static PyObject *_wrap_MouseEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13608 PyObject *resultobj;
13609 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13610 int arg2 = (int) wxMOUSE_BTN_ANY ;
13611 bool result;
13612 PyObject * obj0 = 0 ;
13613 PyObject * obj1 = 0 ;
13614 char *kwnames[] = {
13615 (char *) "self",(char *) "but", NULL
13616 };
13617
13618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail;
13619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13621 if (obj1) {
13622 arg2 = (int) SWIG_AsInt(obj1);
13623 if (PyErr_Occurred()) SWIG_fail;
13624 }
13625 {
13626 PyThreadState* __tstate = wxPyBeginAllowThreads();
13627 result = (bool)((wxMouseEvent const *)arg1)->ButtonDown(arg2);
13628
13629 wxPyEndAllowThreads(__tstate);
13630 if (PyErr_Occurred()) SWIG_fail;
13631 }
13632 {
13633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13634 }
13635 return resultobj;
13636 fail:
13637 return NULL;
13638}
13639
13640
13641static PyObject *_wrap_MouseEvent_ButtonDClick(PyObject *self, PyObject *args, PyObject *kwargs) {
13642 PyObject *resultobj;
13643 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13644 int arg2 = (int) wxMOUSE_BTN_ANY ;
13645 bool result;
13646 PyObject * obj0 = 0 ;
13647 PyObject * obj1 = 0 ;
13648 char *kwnames[] = {
13649 (char *) "self",(char *) "but", NULL
13650 };
13651
13652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDClick",kwnames,&obj0,&obj1)) goto fail;
13653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13655 if (obj1) {
13656 arg2 = (int) SWIG_AsInt(obj1);
13657 if (PyErr_Occurred()) SWIG_fail;
13658 }
13659 {
13660 PyThreadState* __tstate = wxPyBeginAllowThreads();
13661 result = (bool)((wxMouseEvent const *)arg1)->ButtonDClick(arg2);
13662
13663 wxPyEndAllowThreads(__tstate);
13664 if (PyErr_Occurred()) SWIG_fail;
13665 }
13666 {
13667 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13668 }
13669 return resultobj;
13670 fail:
13671 return NULL;
13672}
13673
13674
13675static PyObject *_wrap_MouseEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) {
13676 PyObject *resultobj;
13677 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13678 int arg2 = (int) wxMOUSE_BTN_ANY ;
13679 bool result;
13680 PyObject * obj0 = 0 ;
13681 PyObject * obj1 = 0 ;
13682 char *kwnames[] = {
13683 (char *) "self",(char *) "but", NULL
13684 };
13685
13686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail;
13687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13689 if (obj1) {
13690 arg2 = (int) SWIG_AsInt(obj1);
13691 if (PyErr_Occurred()) SWIG_fail;
13692 }
13693 {
13694 PyThreadState* __tstate = wxPyBeginAllowThreads();
13695 result = (bool)((wxMouseEvent const *)arg1)->ButtonUp(arg2);
13696
13697 wxPyEndAllowThreads(__tstate);
13698 if (PyErr_Occurred()) SWIG_fail;
13699 }
13700 {
13701 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13702 }
13703 return resultobj;
13704 fail:
13705 return NULL;
13706}
13707
13708
13709static PyObject *_wrap_MouseEvent_Button(PyObject *self, PyObject *args, PyObject *kwargs) {
13710 PyObject *resultobj;
13711 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13712 int arg2 ;
13713 bool result;
13714 PyObject * obj0 = 0 ;
13715 PyObject * obj1 = 0 ;
13716 char *kwnames[] = {
13717 (char *) "self",(char *) "but", NULL
13718 };
13719
13720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_Button",kwnames,&obj0,&obj1)) goto fail;
13721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13723 arg2 = (int) SWIG_AsInt(obj1);
13724 if (PyErr_Occurred()) SWIG_fail;
13725 {
13726 PyThreadState* __tstate = wxPyBeginAllowThreads();
13727 result = (bool)((wxMouseEvent const *)arg1)->Button(arg2);
13728
13729 wxPyEndAllowThreads(__tstate);
13730 if (PyErr_Occurred()) SWIG_fail;
13731 }
13732 {
13733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13734 }
13735 return resultobj;
13736 fail:
13737 return NULL;
13738}
13739
13740
13741static PyObject *_wrap_MouseEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13742 PyObject *resultobj;
13743 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13744 int arg2 ;
13745 bool result;
13746 PyObject * obj0 = 0 ;
13747 PyObject * obj1 = 0 ;
13748 char *kwnames[] = {
13749 (char *) "self",(char *) "but", NULL
13750 };
13751
13752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail;
13753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13755 arg2 = (int) SWIG_AsInt(obj1);
13756 if (PyErr_Occurred()) SWIG_fail;
13757 {
13758 PyThreadState* __tstate = wxPyBeginAllowThreads();
13759 result = (bool)((wxMouseEvent const *)arg1)->ButtonIsDown(arg2);
13760
13761 wxPyEndAllowThreads(__tstate);
13762 if (PyErr_Occurred()) SWIG_fail;
13763 }
13764 {
13765 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13766 }
13767 return resultobj;
13768 fail:
13769 return NULL;
13770}
13771
13772
13773static PyObject *_wrap_MouseEvent_GetButton(PyObject *self, PyObject *args, PyObject *kwargs) {
13774 PyObject *resultobj;
13775 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13776 int result;
13777 PyObject * obj0 = 0 ;
13778 char *kwnames[] = {
13779 (char *) "self", NULL
13780 };
13781
13782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetButton",kwnames,&obj0)) goto fail;
13783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13785 {
13786 PyThreadState* __tstate = wxPyBeginAllowThreads();
13787 result = (int)((wxMouseEvent const *)arg1)->GetButton();
13788
13789 wxPyEndAllowThreads(__tstate);
13790 if (PyErr_Occurred()) SWIG_fail;
13791 }
13792 resultobj = SWIG_FromInt((int)result);
13793 return resultobj;
13794 fail:
13795 return NULL;
13796}
13797
13798
13799static PyObject *_wrap_MouseEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13800 PyObject *resultobj;
13801 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13802 bool result;
13803 PyObject * obj0 = 0 ;
13804 char *kwnames[] = {
13805 (char *) "self", NULL
13806 };
13807
13808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ControlDown",kwnames,&obj0)) goto fail;
13809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13811 {
13812 PyThreadState* __tstate = wxPyBeginAllowThreads();
13813 result = (bool)((wxMouseEvent const *)arg1)->ControlDown();
13814
13815 wxPyEndAllowThreads(__tstate);
13816 if (PyErr_Occurred()) SWIG_fail;
13817 }
13818 {
13819 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13820 }
13821 return resultobj;
13822 fail:
13823 return NULL;
13824}
13825
13826
13827static PyObject *_wrap_MouseEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13828 PyObject *resultobj;
13829 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13830 bool result;
13831 PyObject * obj0 = 0 ;
13832 char *kwnames[] = {
13833 (char *) "self", NULL
13834 };
13835
13836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MetaDown",kwnames,&obj0)) goto fail;
13837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13839 {
13840 PyThreadState* __tstate = wxPyBeginAllowThreads();
13841 result = (bool)((wxMouseEvent const *)arg1)->MetaDown();
13842
13843 wxPyEndAllowThreads(__tstate);
13844 if (PyErr_Occurred()) SWIG_fail;
13845 }
13846 {
13847 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13848 }
13849 return resultobj;
13850 fail:
13851 return NULL;
13852}
13853
13854
13855static PyObject *_wrap_MouseEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13856 PyObject *resultobj;
13857 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13858 bool result;
13859 PyObject * obj0 = 0 ;
13860 char *kwnames[] = {
13861 (char *) "self", NULL
13862 };
13863
13864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_AltDown",kwnames,&obj0)) goto fail;
13865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13867 {
13868 PyThreadState* __tstate = wxPyBeginAllowThreads();
13869 result = (bool)((wxMouseEvent const *)arg1)->AltDown();
13870
13871 wxPyEndAllowThreads(__tstate);
13872 if (PyErr_Occurred()) SWIG_fail;
13873 }
13874 {
13875 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13876 }
13877 return resultobj;
13878 fail:
13879 return NULL;
13880}
13881
13882
13883static PyObject *_wrap_MouseEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13884 PyObject *resultobj;
13885 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13886 bool result;
13887 PyObject * obj0 = 0 ;
13888 char *kwnames[] = {
13889 (char *) "self", NULL
13890 };
13891
13892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_ShiftDown",kwnames,&obj0)) goto fail;
13893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13895 {
13896 PyThreadState* __tstate = wxPyBeginAllowThreads();
13897 result = (bool)((wxMouseEvent const *)arg1)->ShiftDown();
13898
13899 wxPyEndAllowThreads(__tstate);
13900 if (PyErr_Occurred()) SWIG_fail;
13901 }
13902 {
13903 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13904 }
13905 return resultobj;
13906 fail:
13907 return NULL;
13908}
13909
13910
412d302d
RD
13911static PyObject *_wrap_MouseEvent_CmdDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13912 PyObject *resultobj;
13913 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13914 bool result;
13915 PyObject * obj0 = 0 ;
13916 char *kwnames[] = {
13917 (char *) "self", NULL
13918 };
13919
13920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_CmdDown",kwnames,&obj0)) goto fail;
13921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13923 {
13924 PyThreadState* __tstate = wxPyBeginAllowThreads();
13925 result = (bool)((wxMouseEvent const *)arg1)->CmdDown();
13926
13927 wxPyEndAllowThreads(__tstate);
13928 if (PyErr_Occurred()) SWIG_fail;
13929 }
13930 {
13931 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13932 }
13933 return resultobj;
13934 fail:
13935 return NULL;
13936}
13937
13938
d55e5bfc
RD
13939static PyObject *_wrap_MouseEvent_LeftDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13940 PyObject *resultobj;
13941 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13942 bool result;
13943 PyObject * obj0 = 0 ;
13944 char *kwnames[] = {
13945 (char *) "self", NULL
13946 };
13947
13948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDown",kwnames,&obj0)) goto fail;
13949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13951 {
13952 PyThreadState* __tstate = wxPyBeginAllowThreads();
13953 result = (bool)((wxMouseEvent const *)arg1)->LeftDown();
13954
13955 wxPyEndAllowThreads(__tstate);
13956 if (PyErr_Occurred()) SWIG_fail;
13957 }
13958 {
13959 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13960 }
13961 return resultobj;
13962 fail:
13963 return NULL;
13964}
13965
13966
13967static PyObject *_wrap_MouseEvent_MiddleDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13968 PyObject *resultobj;
13969 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13970 bool result;
13971 PyObject * obj0 = 0 ;
13972 char *kwnames[] = {
13973 (char *) "self", NULL
13974 };
13975
13976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDown",kwnames,&obj0)) goto fail;
13977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
13978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13979 {
13980 PyThreadState* __tstate = wxPyBeginAllowThreads();
13981 result = (bool)((wxMouseEvent const *)arg1)->MiddleDown();
13982
13983 wxPyEndAllowThreads(__tstate);
13984 if (PyErr_Occurred()) SWIG_fail;
13985 }
13986 {
13987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13988 }
13989 return resultobj;
13990 fail:
13991 return NULL;
13992}
13993
13994
13995static PyObject *_wrap_MouseEvent_RightDown(PyObject *self, PyObject *args, PyObject *kwargs) {
13996 PyObject *resultobj;
13997 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
13998 bool result;
13999 PyObject * obj0 = 0 ;
14000 char *kwnames[] = {
14001 (char *) "self", NULL
14002 };
14003
14004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDown",kwnames,&obj0)) goto fail;
14005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14007 {
14008 PyThreadState* __tstate = wxPyBeginAllowThreads();
14009 result = (bool)((wxMouseEvent const *)arg1)->RightDown();
14010
14011 wxPyEndAllowThreads(__tstate);
14012 if (PyErr_Occurred()) SWIG_fail;
14013 }
14014 {
14015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14016 }
14017 return resultobj;
14018 fail:
14019 return NULL;
14020}
14021
14022
14023static PyObject *_wrap_MouseEvent_LeftUp(PyObject *self, PyObject *args, PyObject *kwargs) {
14024 PyObject *resultobj;
14025 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14026 bool result;
14027 PyObject * obj0 = 0 ;
14028 char *kwnames[] = {
14029 (char *) "self", NULL
14030 };
14031
14032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftUp",kwnames,&obj0)) goto fail;
14033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14035 {
14036 PyThreadState* __tstate = wxPyBeginAllowThreads();
14037 result = (bool)((wxMouseEvent const *)arg1)->LeftUp();
14038
14039 wxPyEndAllowThreads(__tstate);
14040 if (PyErr_Occurred()) SWIG_fail;
14041 }
14042 {
14043 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14044 }
14045 return resultobj;
14046 fail:
14047 return NULL;
14048}
14049
14050
14051static PyObject *_wrap_MouseEvent_MiddleUp(PyObject *self, PyObject *args, PyObject *kwargs) {
14052 PyObject *resultobj;
14053 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14054 bool result;
14055 PyObject * obj0 = 0 ;
14056 char *kwnames[] = {
14057 (char *) "self", NULL
14058 };
14059
14060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleUp",kwnames,&obj0)) goto fail;
14061 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14062 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14063 {
14064 PyThreadState* __tstate = wxPyBeginAllowThreads();
14065 result = (bool)((wxMouseEvent const *)arg1)->MiddleUp();
14066
14067 wxPyEndAllowThreads(__tstate);
14068 if (PyErr_Occurred()) SWIG_fail;
14069 }
14070 {
14071 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14072 }
14073 return resultobj;
14074 fail:
14075 return NULL;
14076}
14077
14078
14079static PyObject *_wrap_MouseEvent_RightUp(PyObject *self, PyObject *args, PyObject *kwargs) {
14080 PyObject *resultobj;
14081 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14082 bool result;
14083 PyObject * obj0 = 0 ;
14084 char *kwnames[] = {
14085 (char *) "self", NULL
14086 };
14087
14088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightUp",kwnames,&obj0)) goto fail;
14089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14091 {
14092 PyThreadState* __tstate = wxPyBeginAllowThreads();
14093 result = (bool)((wxMouseEvent const *)arg1)->RightUp();
14094
14095 wxPyEndAllowThreads(__tstate);
14096 if (PyErr_Occurred()) SWIG_fail;
14097 }
14098 {
14099 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14100 }
14101 return resultobj;
14102 fail:
14103 return NULL;
14104}
14105
14106
14107static PyObject *_wrap_MouseEvent_LeftDClick(PyObject *self, PyObject *args, PyObject *kwargs) {
14108 PyObject *resultobj;
14109 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14110 bool result;
14111 PyObject * obj0 = 0 ;
14112 char *kwnames[] = {
14113 (char *) "self", NULL
14114 };
14115
14116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftDClick",kwnames,&obj0)) goto fail;
14117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14119 {
14120 PyThreadState* __tstate = wxPyBeginAllowThreads();
14121 result = (bool)((wxMouseEvent const *)arg1)->LeftDClick();
14122
14123 wxPyEndAllowThreads(__tstate);
14124 if (PyErr_Occurred()) SWIG_fail;
14125 }
14126 {
14127 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14128 }
14129 return resultobj;
14130 fail:
14131 return NULL;
14132}
14133
14134
14135static PyObject *_wrap_MouseEvent_MiddleDClick(PyObject *self, PyObject *args, PyObject *kwargs) {
14136 PyObject *resultobj;
14137 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14138 bool result;
14139 PyObject * obj0 = 0 ;
14140 char *kwnames[] = {
14141 (char *) "self", NULL
14142 };
14143
14144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleDClick",kwnames,&obj0)) goto fail;
14145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14147 {
14148 PyThreadState* __tstate = wxPyBeginAllowThreads();
14149 result = (bool)((wxMouseEvent const *)arg1)->MiddleDClick();
14150
14151 wxPyEndAllowThreads(__tstate);
14152 if (PyErr_Occurred()) SWIG_fail;
14153 }
14154 {
14155 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14156 }
14157 return resultobj;
14158 fail:
14159 return NULL;
14160}
14161
14162
14163static PyObject *_wrap_MouseEvent_RightDClick(PyObject *self, PyObject *args, PyObject *kwargs) {
14164 PyObject *resultobj;
14165 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14166 bool result;
14167 PyObject * obj0 = 0 ;
14168 char *kwnames[] = {
14169 (char *) "self", NULL
14170 };
14171
14172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightDClick",kwnames,&obj0)) goto fail;
14173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14175 {
14176 PyThreadState* __tstate = wxPyBeginAllowThreads();
14177 result = (bool)((wxMouseEvent const *)arg1)->RightDClick();
14178
14179 wxPyEndAllowThreads(__tstate);
14180 if (PyErr_Occurred()) SWIG_fail;
14181 }
14182 {
14183 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14184 }
14185 return resultobj;
14186 fail:
14187 return NULL;
14188}
14189
14190
14191static PyObject *_wrap_MouseEvent_LeftIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14192 PyObject *resultobj;
14193 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14194 bool result;
14195 PyObject * obj0 = 0 ;
14196 char *kwnames[] = {
14197 (char *) "self", NULL
14198 };
14199
14200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_LeftIsDown",kwnames,&obj0)) goto fail;
14201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14203 {
14204 PyThreadState* __tstate = wxPyBeginAllowThreads();
14205 result = (bool)(arg1)->LeftIsDown();
14206
14207 wxPyEndAllowThreads(__tstate);
14208 if (PyErr_Occurred()) SWIG_fail;
14209 }
14210 {
14211 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14212 }
14213 return resultobj;
14214 fail:
14215 return NULL;
14216}
14217
14218
14219static PyObject *_wrap_MouseEvent_MiddleIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14220 PyObject *resultobj;
14221 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14222 bool result;
14223 PyObject * obj0 = 0 ;
14224 char *kwnames[] = {
14225 (char *) "self", NULL
14226 };
14227
14228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_MiddleIsDown",kwnames,&obj0)) goto fail;
14229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14231 {
14232 PyThreadState* __tstate = wxPyBeginAllowThreads();
14233 result = (bool)(arg1)->MiddleIsDown();
14234
14235 wxPyEndAllowThreads(__tstate);
14236 if (PyErr_Occurred()) SWIG_fail;
14237 }
14238 {
14239 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14240 }
14241 return resultobj;
14242 fail:
14243 return NULL;
14244}
14245
14246
14247static PyObject *_wrap_MouseEvent_RightIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
14248 PyObject *resultobj;
14249 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14250 bool result;
14251 PyObject * obj0 = 0 ;
14252 char *kwnames[] = {
14253 (char *) "self", NULL
14254 };
14255
14256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_RightIsDown",kwnames,&obj0)) goto fail;
14257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14259 {
14260 PyThreadState* __tstate = wxPyBeginAllowThreads();
14261 result = (bool)(arg1)->RightIsDown();
14262
14263 wxPyEndAllowThreads(__tstate);
14264 if (PyErr_Occurred()) SWIG_fail;
14265 }
14266 {
14267 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14268 }
14269 return resultobj;
14270 fail:
14271 return NULL;
14272}
14273
14274
14275static PyObject *_wrap_MouseEvent_Dragging(PyObject *self, PyObject *args, PyObject *kwargs) {
14276 PyObject *resultobj;
14277 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14278 bool result;
14279 PyObject * obj0 = 0 ;
14280 char *kwnames[] = {
14281 (char *) "self", NULL
14282 };
14283
14284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Dragging",kwnames,&obj0)) goto fail;
14285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14287 {
14288 PyThreadState* __tstate = wxPyBeginAllowThreads();
14289 result = (bool)((wxMouseEvent const *)arg1)->Dragging();
14290
14291 wxPyEndAllowThreads(__tstate);
14292 if (PyErr_Occurred()) SWIG_fail;
14293 }
14294 {
14295 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14296 }
14297 return resultobj;
14298 fail:
14299 return NULL;
14300}
14301
14302
14303static PyObject *_wrap_MouseEvent_Moving(PyObject *self, PyObject *args, PyObject *kwargs) {
14304 PyObject *resultobj;
14305 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14306 bool result;
14307 PyObject * obj0 = 0 ;
14308 char *kwnames[] = {
14309 (char *) "self", NULL
14310 };
14311
14312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Moving",kwnames,&obj0)) goto fail;
14313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14315 {
14316 PyThreadState* __tstate = wxPyBeginAllowThreads();
14317 result = (bool)((wxMouseEvent const *)arg1)->Moving();
14318
14319 wxPyEndAllowThreads(__tstate);
14320 if (PyErr_Occurred()) SWIG_fail;
14321 }
14322 {
14323 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14324 }
14325 return resultobj;
14326 fail:
14327 return NULL;
14328}
14329
14330
14331static PyObject *_wrap_MouseEvent_Entering(PyObject *self, PyObject *args, PyObject *kwargs) {
14332 PyObject *resultobj;
14333 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14334 bool result;
14335 PyObject * obj0 = 0 ;
14336 char *kwnames[] = {
14337 (char *) "self", NULL
14338 };
14339
14340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Entering",kwnames,&obj0)) goto fail;
14341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14343 {
14344 PyThreadState* __tstate = wxPyBeginAllowThreads();
14345 result = (bool)((wxMouseEvent const *)arg1)->Entering();
14346
14347 wxPyEndAllowThreads(__tstate);
14348 if (PyErr_Occurred()) SWIG_fail;
14349 }
14350 {
14351 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14352 }
14353 return resultobj;
14354 fail:
14355 return NULL;
14356}
14357
14358
14359static PyObject *_wrap_MouseEvent_Leaving(PyObject *self, PyObject *args, PyObject *kwargs) {
14360 PyObject *resultobj;
14361 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14362 bool result;
14363 PyObject * obj0 = 0 ;
14364 char *kwnames[] = {
14365 (char *) "self", NULL
14366 };
14367
14368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_Leaving",kwnames,&obj0)) goto fail;
14369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14371 {
14372 PyThreadState* __tstate = wxPyBeginAllowThreads();
14373 result = (bool)((wxMouseEvent const *)arg1)->Leaving();
14374
14375 wxPyEndAllowThreads(__tstate);
14376 if (PyErr_Occurred()) SWIG_fail;
14377 }
14378 {
14379 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14380 }
14381 return resultobj;
14382 fail:
14383 return NULL;
14384}
14385
14386
14387static PyObject *_wrap_MouseEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
14388 PyObject *resultobj;
14389 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14390 wxPoint result;
14391 PyObject * obj0 = 0 ;
14392 char *kwnames[] = {
14393 (char *) "self", NULL
14394 };
14395
14396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPosition",kwnames,&obj0)) goto fail;
14397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14399 {
14400 PyThreadState* __tstate = wxPyBeginAllowThreads();
14401 result = (arg1)->GetPosition();
14402
14403 wxPyEndAllowThreads(__tstate);
14404 if (PyErr_Occurred()) SWIG_fail;
14405 }
14406 {
14407 wxPoint * resultptr;
14408 resultptr = new wxPoint((wxPoint &) result);
14409 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14410 }
14411 return resultobj;
14412 fail:
14413 return NULL;
14414}
14415
14416
14417static PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14418 PyObject *resultobj;
14419 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14420 long *arg2 = (long *) 0 ;
14421 long *arg3 = (long *) 0 ;
14422 long temp2 ;
14423 long temp3 ;
14424 PyObject * obj0 = 0 ;
14425 char *kwnames[] = {
14426 (char *) "self", NULL
14427 };
14428
14429 arg2 = &temp2;
14430 arg3 = &temp3;
14431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetPositionTuple",kwnames,&obj0)) goto fail;
14432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14434 {
14435 PyThreadState* __tstate = wxPyBeginAllowThreads();
14436 (arg1)->GetPosition(arg2,arg3);
14437
14438 wxPyEndAllowThreads(__tstate);
14439 if (PyErr_Occurred()) SWIG_fail;
14440 }
14441 Py_INCREF(Py_None); resultobj = Py_None;
14442 {
14443 PyObject *o = PyInt_FromLong((long) (*arg2));
14444 resultobj = t_output_helper(resultobj,o);
14445 }
14446 {
14447 PyObject *o = PyInt_FromLong((long) (*arg3));
14448 resultobj = t_output_helper(resultobj,o);
14449 }
14450 return resultobj;
14451 fail:
14452 return NULL;
14453}
14454
14455
14456static PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
14457 PyObject *resultobj;
14458 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14459 wxDC *arg2 = 0 ;
14460 wxPoint result;
14461 PyObject * obj0 = 0 ;
14462 PyObject * obj1 = 0 ;
14463 char *kwnames[] = {
14464 (char *) "self",(char *) "dc", NULL
14465 };
14466
14467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) goto fail;
14468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14470 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
14471 SWIG_POINTER_EXCEPTION | 0)) == -1)
14472 SWIG_fail;
14473 if (arg2 == NULL) {
14474 PyErr_SetString(PyExc_TypeError,"null reference");
14475 SWIG_fail;
14476 }
14477 {
14478 PyThreadState* __tstate = wxPyBeginAllowThreads();
14479 result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2);
14480
14481 wxPyEndAllowThreads(__tstate);
14482 if (PyErr_Occurred()) SWIG_fail;
14483 }
14484 {
14485 wxPoint * resultptr;
14486 resultptr = new wxPoint((wxPoint &) result);
14487 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14488 }
14489 return resultobj;
14490 fail:
14491 return NULL;
14492}
14493
14494
14495static PyObject *_wrap_MouseEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
14496 PyObject *resultobj;
14497 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14498 int result;
14499 PyObject * obj0 = 0 ;
14500 char *kwnames[] = {
14501 (char *) "self", NULL
14502 };
14503
14504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetX",kwnames,&obj0)) goto fail;
14505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14507 {
14508 PyThreadState* __tstate = wxPyBeginAllowThreads();
14509 result = (int)((wxMouseEvent const *)arg1)->GetX();
14510
14511 wxPyEndAllowThreads(__tstate);
14512 if (PyErr_Occurred()) SWIG_fail;
14513 }
14514 resultobj = SWIG_FromInt((int)result);
14515 return resultobj;
14516 fail:
14517 return NULL;
14518}
14519
14520
14521static PyObject *_wrap_MouseEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
14522 PyObject *resultobj;
14523 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14524 int result;
14525 PyObject * obj0 = 0 ;
14526 char *kwnames[] = {
14527 (char *) "self", NULL
14528 };
14529
14530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetY",kwnames,&obj0)) goto fail;
14531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14533 {
14534 PyThreadState* __tstate = wxPyBeginAllowThreads();
14535 result = (int)((wxMouseEvent const *)arg1)->GetY();
14536
14537 wxPyEndAllowThreads(__tstate);
14538 if (PyErr_Occurred()) SWIG_fail;
14539 }
14540 resultobj = SWIG_FromInt((int)result);
14541 return resultobj;
14542 fail:
14543 return NULL;
14544}
14545
14546
14547static PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *self, PyObject *args, PyObject *kwargs) {
14548 PyObject *resultobj;
14549 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14550 int result;
14551 PyObject * obj0 = 0 ;
14552 char *kwnames[] = {
14553 (char *) "self", NULL
14554 };
14555
14556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelRotation",kwnames,&obj0)) goto fail;
14557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14559 {
14560 PyThreadState* __tstate = wxPyBeginAllowThreads();
14561 result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation();
14562
14563 wxPyEndAllowThreads(__tstate);
14564 if (PyErr_Occurred()) SWIG_fail;
14565 }
14566 resultobj = SWIG_FromInt((int)result);
14567 return resultobj;
14568 fail:
14569 return NULL;
14570}
14571
14572
14573static PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *self, PyObject *args, PyObject *kwargs) {
14574 PyObject *resultobj;
14575 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14576 int result;
14577 PyObject * obj0 = 0 ;
14578 char *kwnames[] = {
14579 (char *) "self", NULL
14580 };
14581
14582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetWheelDelta",kwnames,&obj0)) goto fail;
14583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14585 {
14586 PyThreadState* __tstate = wxPyBeginAllowThreads();
14587 result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta();
14588
14589 wxPyEndAllowThreads(__tstate);
14590 if (PyErr_Occurred()) SWIG_fail;
14591 }
14592 resultobj = SWIG_FromInt((int)result);
14593 return resultobj;
14594 fail:
14595 return NULL;
14596}
14597
14598
14599static PyObject *_wrap_MouseEvent_GetLinesPerAction(PyObject *self, PyObject *args, PyObject *kwargs) {
14600 PyObject *resultobj;
14601 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14602 int result;
14603 PyObject * obj0 = 0 ;
14604 char *kwnames[] = {
14605 (char *) "self", NULL
14606 };
14607
14608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_GetLinesPerAction",kwnames,&obj0)) goto fail;
14609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14611 {
14612 PyThreadState* __tstate = wxPyBeginAllowThreads();
14613 result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction();
14614
14615 wxPyEndAllowThreads(__tstate);
14616 if (PyErr_Occurred()) SWIG_fail;
14617 }
14618 resultobj = SWIG_FromInt((int)result);
14619 return resultobj;
14620 fail:
14621 return NULL;
14622}
14623
14624
14625static PyObject *_wrap_MouseEvent_IsPageScroll(PyObject *self, PyObject *args, PyObject *kwargs) {
14626 PyObject *resultobj;
14627 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14628 bool result;
14629 PyObject * obj0 = 0 ;
14630 char *kwnames[] = {
14631 (char *) "self", NULL
14632 };
14633
14634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_IsPageScroll",kwnames,&obj0)) goto fail;
14635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14637 {
14638 PyThreadState* __tstate = wxPyBeginAllowThreads();
14639 result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll();
14640
14641 wxPyEndAllowThreads(__tstate);
14642 if (PyErr_Occurred()) SWIG_fail;
14643 }
14644 {
14645 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14646 }
14647 return resultobj;
14648 fail:
14649 return NULL;
14650}
14651
14652
14653static PyObject *_wrap_MouseEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14654 PyObject *resultobj;
14655 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14656 int arg2 ;
14657 PyObject * obj0 = 0 ;
14658 PyObject * obj1 = 0 ;
14659 char *kwnames[] = {
14660 (char *) "self",(char *) "m_x", NULL
14661 };
14662
14663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail;
14664 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14665 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14666 arg2 = (int) SWIG_AsInt(obj1);
14667 if (PyErr_Occurred()) SWIG_fail;
14668 if (arg1) (arg1)->m_x = arg2;
14669
14670 Py_INCREF(Py_None); resultobj = Py_None;
14671 return resultobj;
14672 fail:
14673 return NULL;
14674}
14675
14676
14677static PyObject *_wrap_MouseEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14678 PyObject *resultobj;
14679 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14680 int result;
14681 PyObject * obj0 = 0 ;
14682 char *kwnames[] = {
14683 (char *) "self", NULL
14684 };
14685
14686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_x_get",kwnames,&obj0)) goto fail;
14687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14689 result = (int) ((arg1)->m_x);
14690
14691 resultobj = SWIG_FromInt((int)result);
14692 return resultobj;
14693 fail:
14694 return NULL;
14695}
14696
14697
14698static PyObject *_wrap_MouseEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14699 PyObject *resultobj;
14700 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14701 int arg2 ;
14702 PyObject * obj0 = 0 ;
14703 PyObject * obj1 = 0 ;
14704 char *kwnames[] = {
14705 (char *) "self",(char *) "m_y", NULL
14706 };
14707
14708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail;
14709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14711 arg2 = (int) SWIG_AsInt(obj1);
14712 if (PyErr_Occurred()) SWIG_fail;
14713 if (arg1) (arg1)->m_y = arg2;
14714
14715 Py_INCREF(Py_None); resultobj = Py_None;
14716 return resultobj;
14717 fail:
14718 return NULL;
14719}
14720
14721
14722static PyObject *_wrap_MouseEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14723 PyObject *resultobj;
14724 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14725 int result;
14726 PyObject * obj0 = 0 ;
14727 char *kwnames[] = {
14728 (char *) "self", NULL
14729 };
14730
14731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_y_get",kwnames,&obj0)) goto fail;
14732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14734 result = (int) ((arg1)->m_y);
14735
14736 resultobj = SWIG_FromInt((int)result);
14737 return resultobj;
14738 fail:
14739 return NULL;
14740}
14741
14742
14743static PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14744 PyObject *resultobj;
14745 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14746 bool arg2 ;
14747 PyObject * obj0 = 0 ;
14748 PyObject * obj1 = 0 ;
14749 char *kwnames[] = {
14750 (char *) "self",(char *) "m_leftDown", NULL
14751 };
14752
14753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_leftDown_set",kwnames,&obj0,&obj1)) goto fail;
14754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14756 arg2 = (bool) SWIG_AsBool(obj1);
14757 if (PyErr_Occurred()) SWIG_fail;
14758 if (arg1) (arg1)->m_leftDown = arg2;
14759
14760 Py_INCREF(Py_None); resultobj = Py_None;
14761 return resultobj;
14762 fail:
14763 return NULL;
14764}
14765
14766
14767static PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14768 PyObject *resultobj;
14769 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14770 bool result;
14771 PyObject * obj0 = 0 ;
14772 char *kwnames[] = {
14773 (char *) "self", NULL
14774 };
14775
14776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_leftDown_get",kwnames,&obj0)) goto fail;
14777 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14778 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14779 result = (bool) ((arg1)->m_leftDown);
14780
14781 {
14782 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14783 }
14784 return resultobj;
14785 fail:
14786 return NULL;
14787}
14788
14789
14790static PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14791 PyObject *resultobj;
14792 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14793 bool arg2 ;
14794 PyObject * obj0 = 0 ;
14795 PyObject * obj1 = 0 ;
14796 char *kwnames[] = {
14797 (char *) "self",(char *) "m_middleDown", NULL
14798 };
14799
14800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_middleDown_set",kwnames,&obj0,&obj1)) goto fail;
14801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14803 arg2 = (bool) SWIG_AsBool(obj1);
14804 if (PyErr_Occurred()) SWIG_fail;
14805 if (arg1) (arg1)->m_middleDown = arg2;
14806
14807 Py_INCREF(Py_None); resultobj = Py_None;
14808 return resultobj;
14809 fail:
14810 return NULL;
14811}
14812
14813
14814static PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14815 PyObject *resultobj;
14816 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14817 bool result;
14818 PyObject * obj0 = 0 ;
14819 char *kwnames[] = {
14820 (char *) "self", NULL
14821 };
14822
14823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_middleDown_get",kwnames,&obj0)) goto fail;
14824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14826 result = (bool) ((arg1)->m_middleDown);
14827
14828 {
14829 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14830 }
14831 return resultobj;
14832 fail:
14833 return NULL;
14834}
14835
14836
14837static PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14838 PyObject *resultobj;
14839 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14840 bool arg2 ;
14841 PyObject * obj0 = 0 ;
14842 PyObject * obj1 = 0 ;
14843 char *kwnames[] = {
14844 (char *) "self",(char *) "m_rightDown", NULL
14845 };
14846
14847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_rightDown_set",kwnames,&obj0,&obj1)) goto fail;
14848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14850 arg2 = (bool) SWIG_AsBool(obj1);
14851 if (PyErr_Occurred()) SWIG_fail;
14852 if (arg1) (arg1)->m_rightDown = arg2;
14853
14854 Py_INCREF(Py_None); resultobj = Py_None;
14855 return resultobj;
14856 fail:
14857 return NULL;
14858}
14859
14860
14861static PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14862 PyObject *resultobj;
14863 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14864 bool result;
14865 PyObject * obj0 = 0 ;
14866 char *kwnames[] = {
14867 (char *) "self", NULL
14868 };
14869
14870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_rightDown_get",kwnames,&obj0)) goto fail;
14871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14873 result = (bool) ((arg1)->m_rightDown);
14874
14875 {
14876 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14877 }
14878 return resultobj;
14879 fail:
14880 return NULL;
14881}
14882
14883
14884static PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14885 PyObject *resultobj;
14886 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14887 bool arg2 ;
14888 PyObject * obj0 = 0 ;
14889 PyObject * obj1 = 0 ;
14890 char *kwnames[] = {
14891 (char *) "self",(char *) "m_controlDown", NULL
14892 };
14893
14894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail;
14895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14897 arg2 = (bool) SWIG_AsBool(obj1);
14898 if (PyErr_Occurred()) SWIG_fail;
14899 if (arg1) (arg1)->m_controlDown = arg2;
14900
14901 Py_INCREF(Py_None); resultobj = Py_None;
14902 return resultobj;
14903 fail:
14904 return NULL;
14905}
14906
14907
14908static PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14909 PyObject *resultobj;
14910 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14911 bool result;
14912 PyObject * obj0 = 0 ;
14913 char *kwnames[] = {
14914 (char *) "self", NULL
14915 };
14916
14917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_controlDown_get",kwnames,&obj0)) goto fail;
14918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14920 result = (bool) ((arg1)->m_controlDown);
14921
14922 {
14923 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14924 }
14925 return resultobj;
14926 fail:
14927 return NULL;
14928}
14929
14930
14931static PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14932 PyObject *resultobj;
14933 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14934 bool arg2 ;
14935 PyObject * obj0 = 0 ;
14936 PyObject * obj1 = 0 ;
14937 char *kwnames[] = {
14938 (char *) "self",(char *) "m_shiftDown", NULL
14939 };
14940
14941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail;
14942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14944 arg2 = (bool) SWIG_AsBool(obj1);
14945 if (PyErr_Occurred()) SWIG_fail;
14946 if (arg1) (arg1)->m_shiftDown = arg2;
14947
14948 Py_INCREF(Py_None); resultobj = Py_None;
14949 return resultobj;
14950 fail:
14951 return NULL;
14952}
14953
14954
14955static PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
14956 PyObject *resultobj;
14957 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14958 bool result;
14959 PyObject * obj0 = 0 ;
14960 char *kwnames[] = {
14961 (char *) "self", NULL
14962 };
14963
14964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_shiftDown_get",kwnames,&obj0)) goto fail;
14965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14967 result = (bool) ((arg1)->m_shiftDown);
14968
14969 {
14970 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14971 }
14972 return resultobj;
14973 fail:
14974 return NULL;
14975}
14976
14977
14978static PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
14979 PyObject *resultobj;
14980 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
14981 bool arg2 ;
14982 PyObject * obj0 = 0 ;
14983 PyObject * obj1 = 0 ;
14984 char *kwnames[] = {
14985 (char *) "self",(char *) "m_altDown", NULL
14986 };
14987
14988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail;
14989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
14990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14991 arg2 = (bool) SWIG_AsBool(obj1);
14992 if (PyErr_Occurred()) SWIG_fail;
14993 if (arg1) (arg1)->m_altDown = arg2;
14994
14995 Py_INCREF(Py_None); resultobj = Py_None;
14996 return resultobj;
14997 fail:
14998 return NULL;
14999}
15000
15001
15002static PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15003 PyObject *resultobj;
15004 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15005 bool result;
15006 PyObject * obj0 = 0 ;
15007 char *kwnames[] = {
15008 (char *) "self", NULL
15009 };
15010
15011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_altDown_get",kwnames,&obj0)) goto fail;
15012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15014 result = (bool) ((arg1)->m_altDown);
15015
15016 {
15017 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15018 }
15019 return resultobj;
15020 fail:
15021 return NULL;
15022}
15023
15024
15025static PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15026 PyObject *resultobj;
15027 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15028 bool arg2 ;
15029 PyObject * obj0 = 0 ;
15030 PyObject * obj1 = 0 ;
15031 char *kwnames[] = {
15032 (char *) "self",(char *) "m_metaDown", NULL
15033 };
15034
15035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail;
15036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15038 arg2 = (bool) SWIG_AsBool(obj1);
15039 if (PyErr_Occurred()) SWIG_fail;
15040 if (arg1) (arg1)->m_metaDown = arg2;
15041
15042 Py_INCREF(Py_None); resultobj = Py_None;
15043 return resultobj;
15044 fail:
15045 return NULL;
15046}
15047
15048
15049static PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15050 PyObject *resultobj;
15051 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15052 bool result;
15053 PyObject * obj0 = 0 ;
15054 char *kwnames[] = {
15055 (char *) "self", NULL
15056 };
15057
15058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_metaDown_get",kwnames,&obj0)) goto fail;
15059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15061 result = (bool) ((arg1)->m_metaDown);
15062
15063 {
15064 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15065 }
15066 return resultobj;
15067 fail:
15068 return NULL;
15069}
15070
15071
15072static PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15073 PyObject *resultobj;
15074 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15075 int arg2 ;
15076 PyObject * obj0 = 0 ;
15077 PyObject * obj1 = 0 ;
15078 char *kwnames[] = {
15079 (char *) "self",(char *) "m_wheelRotation", NULL
15080 };
15081
15082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelRotation_set",kwnames,&obj0,&obj1)) goto fail;
15083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15085 arg2 = (int) SWIG_AsInt(obj1);
15086 if (PyErr_Occurred()) SWIG_fail;
15087 if (arg1) (arg1)->m_wheelRotation = arg2;
15088
15089 Py_INCREF(Py_None); resultobj = Py_None;
15090 return resultobj;
15091 fail:
15092 return NULL;
15093}
15094
15095
15096static PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15097 PyObject *resultobj;
15098 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15099 int result;
15100 PyObject * obj0 = 0 ;
15101 char *kwnames[] = {
15102 (char *) "self", NULL
15103 };
15104
15105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelRotation_get",kwnames,&obj0)) goto fail;
15106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15108 result = (int) ((arg1)->m_wheelRotation);
15109
15110 resultobj = SWIG_FromInt((int)result);
15111 return resultobj;
15112 fail:
15113 return NULL;
15114}
15115
15116
15117static PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15118 PyObject *resultobj;
15119 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15120 int arg2 ;
15121 PyObject * obj0 = 0 ;
15122 PyObject * obj1 = 0 ;
15123 char *kwnames[] = {
15124 (char *) "self",(char *) "m_wheelDelta", NULL
15125 };
15126
15127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_wheelDelta_set",kwnames,&obj0,&obj1)) goto fail;
15128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15130 arg2 = (int) SWIG_AsInt(obj1);
15131 if (PyErr_Occurred()) SWIG_fail;
15132 if (arg1) (arg1)->m_wheelDelta = arg2;
15133
15134 Py_INCREF(Py_None); resultobj = Py_None;
15135 return resultobj;
15136 fail:
15137 return NULL;
15138}
15139
15140
15141static PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15142 PyObject *resultobj;
15143 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15144 int result;
15145 PyObject * obj0 = 0 ;
15146 char *kwnames[] = {
15147 (char *) "self", NULL
15148 };
15149
15150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_wheelDelta_get",kwnames,&obj0)) goto fail;
15151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15153 result = (int) ((arg1)->m_wheelDelta);
15154
15155 resultobj = SWIG_FromInt((int)result);
15156 return resultobj;
15157 fail:
15158 return NULL;
15159}
15160
15161
15162static PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15163 PyObject *resultobj;
15164 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15165 int arg2 ;
15166 PyObject * obj0 = 0 ;
15167 PyObject * obj1 = 0 ;
15168 char *kwnames[] = {
15169 (char *) "self",(char *) "m_linesPerAction", NULL
15170 };
15171
15172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_m_linesPerAction_set",kwnames,&obj0,&obj1)) goto fail;
15173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15175 arg2 = (int) SWIG_AsInt(obj1);
15176 if (PyErr_Occurred()) SWIG_fail;
15177 if (arg1) (arg1)->m_linesPerAction = arg2;
15178
15179 Py_INCREF(Py_None); resultobj = Py_None;
15180 return resultobj;
15181 fail:
15182 return NULL;
15183}
15184
15185
15186static PyObject *_wrap_MouseEvent_m_linesPerAction_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15187 PyObject *resultobj;
15188 wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
15189 int result;
15190 PyObject * obj0 = 0 ;
15191 char *kwnames[] = {
15192 (char *) "self", NULL
15193 };
15194
15195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseEvent_m_linesPerAction_get",kwnames,&obj0)) goto fail;
15196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseEvent,
15197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15198 result = (int) ((arg1)->m_linesPerAction);
15199
15200 resultobj = SWIG_FromInt((int)result);
15201 return resultobj;
15202 fail:
15203 return NULL;
15204}
15205
15206
15207static PyObject * MouseEvent_swigregister(PyObject *self, PyObject *args) {
15208 PyObject *obj;
15209 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15210 SWIG_TypeClientData(SWIGTYPE_p_wxMouseEvent, obj);
15211 Py_INCREF(obj);
15212 return Py_BuildValue((char *)"");
15213}
15214static PyObject *_wrap_new_SetCursorEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
15215 PyObject *resultobj;
15216 int arg1 = (int) 0 ;
15217 int arg2 = (int) 0 ;
15218 wxSetCursorEvent *result;
15219 PyObject * obj0 = 0 ;
15220 PyObject * obj1 = 0 ;
15221 char *kwnames[] = {
15222 (char *) "x",(char *) "y", NULL
15223 };
15224
15225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SetCursorEvent",kwnames,&obj0,&obj1)) goto fail;
15226 if (obj0) {
15227 arg1 = (int) SWIG_AsInt(obj0);
15228 if (PyErr_Occurred()) SWIG_fail;
15229 }
15230 if (obj1) {
15231 arg2 = (int) SWIG_AsInt(obj1);
15232 if (PyErr_Occurred()) SWIG_fail;
15233 }
15234 {
15235 PyThreadState* __tstate = wxPyBeginAllowThreads();
15236 result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2);
15237
15238 wxPyEndAllowThreads(__tstate);
15239 if (PyErr_Occurred()) SWIG_fail;
15240 }
15241 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSetCursorEvent, 1);
15242 return resultobj;
15243 fail:
15244 return NULL;
15245}
15246
15247
15248static PyObject *_wrap_SetCursorEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
15249 PyObject *resultobj;
15250 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
15251 int result;
15252 PyObject * obj0 = 0 ;
15253 char *kwnames[] = {
15254 (char *) "self", NULL
15255 };
15256
15257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetX",kwnames,&obj0)) goto fail;
15258 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent,
15259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15260 {
15261 PyThreadState* __tstate = wxPyBeginAllowThreads();
15262 result = (int)((wxSetCursorEvent const *)arg1)->GetX();
15263
15264 wxPyEndAllowThreads(__tstate);
15265 if (PyErr_Occurred()) SWIG_fail;
15266 }
15267 resultobj = SWIG_FromInt((int)result);
15268 return resultobj;
15269 fail:
15270 return NULL;
15271}
15272
15273
15274static PyObject *_wrap_SetCursorEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
15275 PyObject *resultobj;
15276 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
15277 int result;
15278 PyObject * obj0 = 0 ;
15279 char *kwnames[] = {
15280 (char *) "self", NULL
15281 };
15282
15283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetY",kwnames,&obj0)) goto fail;
15284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent,
15285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15286 {
15287 PyThreadState* __tstate = wxPyBeginAllowThreads();
15288 result = (int)((wxSetCursorEvent const *)arg1)->GetY();
15289
15290 wxPyEndAllowThreads(__tstate);
15291 if (PyErr_Occurred()) SWIG_fail;
15292 }
15293 resultobj = SWIG_FromInt((int)result);
15294 return resultobj;
15295 fail:
15296 return NULL;
15297}
15298
15299
15300static PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
15301 PyObject *resultobj;
15302 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
15303 wxCursor *arg2 = 0 ;
15304 PyObject * obj0 = 0 ;
15305 PyObject * obj1 = 0 ;
15306 char *kwnames[] = {
15307 (char *) "self",(char *) "cursor", NULL
15308 };
15309
15310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) goto fail;
15311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent,
15312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15313 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
15314 SWIG_POINTER_EXCEPTION | 0)) == -1)
15315 SWIG_fail;
15316 if (arg2 == NULL) {
15317 PyErr_SetString(PyExc_TypeError,"null reference");
15318 SWIG_fail;
15319 }
15320 {
15321 PyThreadState* __tstate = wxPyBeginAllowThreads();
15322 (arg1)->SetCursor((wxCursor const &)*arg2);
15323
15324 wxPyEndAllowThreads(__tstate);
15325 if (PyErr_Occurred()) SWIG_fail;
15326 }
15327 Py_INCREF(Py_None); resultobj = Py_None;
15328 return resultobj;
15329 fail:
15330 return NULL;
15331}
15332
15333
15334static PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
15335 PyObject *resultobj;
15336 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
15337 wxCursor *result;
15338 PyObject * obj0 = 0 ;
15339 char *kwnames[] = {
15340 (char *) "self", NULL
15341 };
15342
15343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_GetCursor",kwnames,&obj0)) goto fail;
15344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent,
15345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15346 {
15347 PyThreadState* __tstate = wxPyBeginAllowThreads();
15348 {
15349 wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor();
15350 result = (wxCursor *) &_result_ref;
15351 }
15352
15353 wxPyEndAllowThreads(__tstate);
15354 if (PyErr_Occurred()) SWIG_fail;
15355 }
15356 {
15357 wxCursor* resultptr = new wxCursor(*result);
15358 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1);
15359 }
15360 return resultobj;
15361 fail:
15362 return NULL;
15363}
15364
15365
15366static PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
15367 PyObject *resultobj;
15368 wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
15369 bool result;
15370 PyObject * obj0 = 0 ;
15371 char *kwnames[] = {
15372 (char *) "self", NULL
15373 };
15374
15375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursorEvent_HasCursor",kwnames,&obj0)) goto fail;
15376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSetCursorEvent,
15377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15378 {
15379 PyThreadState* __tstate = wxPyBeginAllowThreads();
15380 result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor();
15381
15382 wxPyEndAllowThreads(__tstate);
15383 if (PyErr_Occurred()) SWIG_fail;
15384 }
15385 {
15386 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15387 }
15388 return resultobj;
15389 fail:
15390 return NULL;
15391}
15392
15393
15394static PyObject * SetCursorEvent_swigregister(PyObject *self, PyObject *args) {
15395 PyObject *obj;
15396 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15397 SWIG_TypeClientData(SWIGTYPE_p_wxSetCursorEvent, obj);
15398 Py_INCREF(obj);
15399 return Py_BuildValue((char *)"");
15400}
15401static PyObject *_wrap_new_KeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
15402 PyObject *resultobj;
15403 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15404 wxKeyEvent *result;
15405 PyObject * obj0 = 0 ;
15406 char *kwnames[] = {
15407 (char *) "keyType", NULL
15408 };
15409
15410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_KeyEvent",kwnames,&obj0)) goto fail;
15411 if (obj0) {
15412 arg1 = (wxEventType) SWIG_AsInt(obj0);
15413 if (PyErr_Occurred()) SWIG_fail;
15414 }
15415 {
15416 PyThreadState* __tstate = wxPyBeginAllowThreads();
15417 result = (wxKeyEvent *)new wxKeyEvent(arg1);
15418
15419 wxPyEndAllowThreads(__tstate);
15420 if (PyErr_Occurred()) SWIG_fail;
15421 }
15422 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 1);
15423 return resultobj;
15424 fail:
15425 return NULL;
15426}
15427
15428
15429static PyObject *_wrap_KeyEvent_ControlDown(PyObject *self, PyObject *args, PyObject *kwargs) {
15430 PyObject *resultobj;
15431 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15432 bool result;
15433 PyObject * obj0 = 0 ;
15434 char *kwnames[] = {
15435 (char *) "self", NULL
15436 };
15437
15438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ControlDown",kwnames,&obj0)) goto fail;
15439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15441 {
15442 PyThreadState* __tstate = wxPyBeginAllowThreads();
15443 result = (bool)((wxKeyEvent const *)arg1)->ControlDown();
15444
15445 wxPyEndAllowThreads(__tstate);
15446 if (PyErr_Occurred()) SWIG_fail;
15447 }
15448 {
15449 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15450 }
15451 return resultobj;
15452 fail:
15453 return NULL;
15454}
15455
15456
15457static PyObject *_wrap_KeyEvent_MetaDown(PyObject *self, PyObject *args, PyObject *kwargs) {
15458 PyObject *resultobj;
15459 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15460 bool result;
15461 PyObject * obj0 = 0 ;
15462 char *kwnames[] = {
15463 (char *) "self", NULL
15464 };
15465
15466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_MetaDown",kwnames,&obj0)) goto fail;
15467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15469 {
15470 PyThreadState* __tstate = wxPyBeginAllowThreads();
15471 result = (bool)((wxKeyEvent const *)arg1)->MetaDown();
15472
15473 wxPyEndAllowThreads(__tstate);
15474 if (PyErr_Occurred()) SWIG_fail;
15475 }
15476 {
15477 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15478 }
15479 return resultobj;
15480 fail:
15481 return NULL;
15482}
15483
15484
15485static PyObject *_wrap_KeyEvent_AltDown(PyObject *self, PyObject *args, PyObject *kwargs) {
15486 PyObject *resultobj;
15487 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15488 bool result;
15489 PyObject * obj0 = 0 ;
15490 char *kwnames[] = {
15491 (char *) "self", NULL
15492 };
15493
15494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_AltDown",kwnames,&obj0)) goto fail;
15495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15497 {
15498 PyThreadState* __tstate = wxPyBeginAllowThreads();
15499 result = (bool)((wxKeyEvent const *)arg1)->AltDown();
15500
15501 wxPyEndAllowThreads(__tstate);
15502 if (PyErr_Occurred()) SWIG_fail;
15503 }
15504 {
15505 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15506 }
15507 return resultobj;
15508 fail:
15509 return NULL;
15510}
15511
15512
15513static PyObject *_wrap_KeyEvent_ShiftDown(PyObject *self, PyObject *args, PyObject *kwargs) {
15514 PyObject *resultobj;
15515 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15516 bool result;
15517 PyObject * obj0 = 0 ;
15518 char *kwnames[] = {
15519 (char *) "self", NULL
15520 };
15521
15522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_ShiftDown",kwnames,&obj0)) goto fail;
15523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15525 {
15526 PyThreadState* __tstate = wxPyBeginAllowThreads();
15527 result = (bool)((wxKeyEvent const *)arg1)->ShiftDown();
15528
15529 wxPyEndAllowThreads(__tstate);
15530 if (PyErr_Occurred()) SWIG_fail;
15531 }
15532 {
15533 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15534 }
15535 return resultobj;
15536 fail:
15537 return NULL;
15538}
15539
15540
412d302d
RD
15541static PyObject *_wrap_KeyEvent_CmdDown(PyObject *self, PyObject *args, PyObject *kwargs) {
15542 PyObject *resultobj;
15543 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15544 bool result;
15545 PyObject * obj0 = 0 ;
15546 char *kwnames[] = {
15547 (char *) "self", NULL
15548 };
15549
15550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_CmdDown",kwnames,&obj0)) goto fail;
15551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15553 {
15554 PyThreadState* __tstate = wxPyBeginAllowThreads();
15555 result = (bool)((wxKeyEvent const *)arg1)->CmdDown();
15556
15557 wxPyEndAllowThreads(__tstate);
15558 if (PyErr_Occurred()) SWIG_fail;
15559 }
15560 {
15561 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15562 }
15563 return resultobj;
15564 fail:
15565 return NULL;
15566}
15567
15568
d55e5bfc
RD
15569static PyObject *_wrap_KeyEvent_HasModifiers(PyObject *self, PyObject *args, PyObject *kwargs) {
15570 PyObject *resultobj;
15571 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15572 bool result;
15573 PyObject * obj0 = 0 ;
15574 char *kwnames[] = {
15575 (char *) "self", NULL
15576 };
15577
15578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_HasModifiers",kwnames,&obj0)) goto fail;
15579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15581 {
15582 PyThreadState* __tstate = wxPyBeginAllowThreads();
15583 result = (bool)((wxKeyEvent const *)arg1)->HasModifiers();
15584
15585 wxPyEndAllowThreads(__tstate);
15586 if (PyErr_Occurred()) SWIG_fail;
15587 }
15588 {
15589 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15590 }
15591 return resultobj;
15592 fail:
15593 return NULL;
15594}
15595
15596
15597static PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
15598 PyObject *resultobj;
15599 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15600 int result;
15601 PyObject * obj0 = 0 ;
15602 char *kwnames[] = {
15603 (char *) "self", NULL
15604 };
15605
15606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetKeyCode",kwnames,&obj0)) goto fail;
15607 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15608 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15609 {
15610 PyThreadState* __tstate = wxPyBeginAllowThreads();
15611 result = (int)((wxKeyEvent const *)arg1)->GetKeyCode();
15612
15613 wxPyEndAllowThreads(__tstate);
15614 if (PyErr_Occurred()) SWIG_fail;
15615 }
15616 resultobj = SWIG_FromInt((int)result);
15617 return resultobj;
15618 fail:
15619 return NULL;
15620}
15621
15622
19272049 15623static PyObject *_wrap_KeyEvent_GetUnicodeKey(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
15624 PyObject *resultobj;
15625 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15626 int result;
15627 PyObject * obj0 = 0 ;
15628 char *kwnames[] = {
15629 (char *) "self", NULL
15630 };
15631
19272049 15632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetUnicodeKey",kwnames,&obj0)) goto fail;
d55e5bfc
RD
15633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15635 {
15636 PyThreadState* __tstate = wxPyBeginAllowThreads();
19272049 15637 result = (int)wxKeyEvent_GetUnicodeKey(arg1);
d55e5bfc
RD
15638
15639 wxPyEndAllowThreads(__tstate);
15640 if (PyErr_Occurred()) SWIG_fail;
15641 }
15642 resultobj = SWIG_FromInt((int)result);
15643 return resultobj;
15644 fail:
15645 return NULL;
15646}
15647
15648
15649static PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
15650 PyObject *resultobj;
15651 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15652 unsigned int result;
15653 PyObject * obj0 = 0 ;
15654 char *kwnames[] = {
15655 (char *) "self", NULL
15656 };
15657
15658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyCode",kwnames,&obj0)) goto fail;
15659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15661 {
15662 PyThreadState* __tstate = wxPyBeginAllowThreads();
15663 result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyCode();
15664
15665 wxPyEndAllowThreads(__tstate);
15666 if (PyErr_Occurred()) SWIG_fail;
15667 }
15668 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
15669 return resultobj;
15670 fail:
15671 return NULL;
15672}
15673
15674
15675static PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
15676 PyObject *resultobj;
15677 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15678 unsigned int result;
15679 PyObject * obj0 = 0 ;
15680 char *kwnames[] = {
15681 (char *) "self", NULL
15682 };
15683
15684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetRawKeyFlags",kwnames,&obj0)) goto fail;
15685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15687 {
15688 PyThreadState* __tstate = wxPyBeginAllowThreads();
15689 result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyFlags();
15690
15691 wxPyEndAllowThreads(__tstate);
15692 if (PyErr_Occurred()) SWIG_fail;
15693 }
15694 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
15695 return resultobj;
15696 fail:
15697 return NULL;
15698}
15699
15700
15701static PyObject *_wrap_KeyEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
15702 PyObject *resultobj;
15703 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15704 wxPoint result;
15705 PyObject * obj0 = 0 ;
15706 char *kwnames[] = {
15707 (char *) "self", NULL
15708 };
15709
15710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPosition",kwnames,&obj0)) goto fail;
15711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15713 {
15714 PyThreadState* __tstate = wxPyBeginAllowThreads();
15715 result = (arg1)->GetPosition();
15716
15717 wxPyEndAllowThreads(__tstate);
15718 if (PyErr_Occurred()) SWIG_fail;
15719 }
15720 {
15721 wxPoint * resultptr;
15722 resultptr = new wxPoint((wxPoint &) result);
15723 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
15724 }
15725 return resultobj;
15726 fail:
15727 return NULL;
15728}
15729
15730
15731static PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
15732 PyObject *resultobj;
15733 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15734 long *arg2 = (long *) 0 ;
15735 long *arg3 = (long *) 0 ;
15736 long temp2 ;
15737 long temp3 ;
15738 PyObject * obj0 = 0 ;
15739 char *kwnames[] = {
15740 (char *) "self", NULL
15741 };
15742
15743 arg2 = &temp2;
15744 arg3 = &temp3;
15745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetPositionTuple",kwnames,&obj0)) goto fail;
15746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15748 {
15749 PyThreadState* __tstate = wxPyBeginAllowThreads();
15750 (arg1)->GetPosition(arg2,arg3);
15751
15752 wxPyEndAllowThreads(__tstate);
15753 if (PyErr_Occurred()) SWIG_fail;
15754 }
15755 Py_INCREF(Py_None); resultobj = Py_None;
15756 {
15757 PyObject *o = PyInt_FromLong((long) (*arg2));
15758 resultobj = t_output_helper(resultobj,o);
15759 }
15760 {
15761 PyObject *o = PyInt_FromLong((long) (*arg3));
15762 resultobj = t_output_helper(resultobj,o);
15763 }
15764 return resultobj;
15765 fail:
15766 return NULL;
15767}
15768
15769
15770static PyObject *_wrap_KeyEvent_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
15771 PyObject *resultobj;
15772 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15773 int result;
15774 PyObject * obj0 = 0 ;
15775 char *kwnames[] = {
15776 (char *) "self", NULL
15777 };
15778
15779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetX",kwnames,&obj0)) goto fail;
15780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15782 {
15783 PyThreadState* __tstate = wxPyBeginAllowThreads();
15784 result = (int)((wxKeyEvent const *)arg1)->GetX();
15785
15786 wxPyEndAllowThreads(__tstate);
15787 if (PyErr_Occurred()) SWIG_fail;
15788 }
15789 resultobj = SWIG_FromInt((int)result);
15790 return resultobj;
15791 fail:
15792 return NULL;
15793}
15794
15795
15796static PyObject *_wrap_KeyEvent_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
15797 PyObject *resultobj;
15798 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15799 int result;
15800 PyObject * obj0 = 0 ;
15801 char *kwnames[] = {
15802 (char *) "self", NULL
15803 };
15804
15805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_GetY",kwnames,&obj0)) goto fail;
15806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15808 {
15809 PyThreadState* __tstate = wxPyBeginAllowThreads();
15810 result = (int)((wxKeyEvent const *)arg1)->GetY();
15811
15812 wxPyEndAllowThreads(__tstate);
15813 if (PyErr_Occurred()) SWIG_fail;
15814 }
15815 resultobj = SWIG_FromInt((int)result);
15816 return resultobj;
15817 fail:
15818 return NULL;
15819}
15820
15821
15822static PyObject *_wrap_KeyEvent_m_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15823 PyObject *resultobj;
15824 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15825 int arg2 ;
15826 PyObject * obj0 = 0 ;
15827 PyObject * obj1 = 0 ;
15828 char *kwnames[] = {
15829 (char *) "self",(char *) "m_x", NULL
15830 };
15831
15832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_x_set",kwnames,&obj0,&obj1)) goto fail;
15833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15835 arg2 = (int) SWIG_AsInt(obj1);
15836 if (PyErr_Occurred()) SWIG_fail;
15837 if (arg1) (arg1)->m_x = arg2;
15838
15839 Py_INCREF(Py_None); resultobj = Py_None;
15840 return resultobj;
15841 fail:
15842 return NULL;
15843}
15844
15845
15846static PyObject *_wrap_KeyEvent_m_x_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15847 PyObject *resultobj;
15848 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15849 int result;
15850 PyObject * obj0 = 0 ;
15851 char *kwnames[] = {
15852 (char *) "self", NULL
15853 };
15854
15855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_x_get",kwnames,&obj0)) goto fail;
15856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15858 result = (int) ((arg1)->m_x);
15859
15860 resultobj = SWIG_FromInt((int)result);
15861 return resultobj;
15862 fail:
15863 return NULL;
15864}
15865
15866
15867static PyObject *_wrap_KeyEvent_m_y_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15868 PyObject *resultobj;
15869 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15870 int arg2 ;
15871 PyObject * obj0 = 0 ;
15872 PyObject * obj1 = 0 ;
15873 char *kwnames[] = {
15874 (char *) "self",(char *) "m_y", NULL
15875 };
15876
15877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_y_set",kwnames,&obj0,&obj1)) goto fail;
15878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15880 arg2 = (int) SWIG_AsInt(obj1);
15881 if (PyErr_Occurred()) SWIG_fail;
15882 if (arg1) (arg1)->m_y = arg2;
15883
15884 Py_INCREF(Py_None); resultobj = Py_None;
15885 return resultobj;
15886 fail:
15887 return NULL;
15888}
15889
15890
15891static PyObject *_wrap_KeyEvent_m_y_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15892 PyObject *resultobj;
15893 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15894 int result;
15895 PyObject * obj0 = 0 ;
15896 char *kwnames[] = {
15897 (char *) "self", NULL
15898 };
15899
15900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_y_get",kwnames,&obj0)) goto fail;
15901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15903 result = (int) ((arg1)->m_y);
15904
15905 resultobj = SWIG_FromInt((int)result);
15906 return resultobj;
15907 fail:
15908 return NULL;
15909}
15910
15911
15912static PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15913 PyObject *resultobj;
15914 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15915 long arg2 ;
15916 PyObject * obj0 = 0 ;
15917 PyObject * obj1 = 0 ;
15918 char *kwnames[] = {
15919 (char *) "self",(char *) "m_keyCode", NULL
15920 };
15921
15922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_keyCode_set",kwnames,&obj0,&obj1)) goto fail;
15923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15925 arg2 = (long) SWIG_AsLong(obj1);
15926 if (PyErr_Occurred()) SWIG_fail;
15927 if (arg1) (arg1)->m_keyCode = arg2;
15928
15929 Py_INCREF(Py_None); resultobj = Py_None;
15930 return resultobj;
15931 fail:
15932 return NULL;
15933}
15934
15935
15936static PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15937 PyObject *resultobj;
15938 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15939 long result;
15940 PyObject * obj0 = 0 ;
15941 char *kwnames[] = {
15942 (char *) "self", NULL
15943 };
15944
15945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_keyCode_get",kwnames,&obj0)) goto fail;
15946 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15948 result = (long) ((arg1)->m_keyCode);
15949
15950 resultobj = SWIG_FromLong((long)result);
15951 return resultobj;
15952 fail:
15953 return NULL;
15954}
15955
15956
15957static PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
15958 PyObject *resultobj;
15959 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15960 bool arg2 ;
15961 PyObject * obj0 = 0 ;
15962 PyObject * obj1 = 0 ;
15963 char *kwnames[] = {
15964 (char *) "self",(char *) "m_controlDown", NULL
15965 };
15966
15967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_controlDown_set",kwnames,&obj0,&obj1)) goto fail;
15968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15970 arg2 = (bool) SWIG_AsBool(obj1);
15971 if (PyErr_Occurred()) SWIG_fail;
15972 if (arg1) (arg1)->m_controlDown = arg2;
15973
15974 Py_INCREF(Py_None); resultobj = Py_None;
15975 return resultobj;
15976 fail:
15977 return NULL;
15978}
15979
15980
15981static PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
15982 PyObject *resultobj;
15983 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
15984 bool result;
15985 PyObject * obj0 = 0 ;
15986 char *kwnames[] = {
15987 (char *) "self", NULL
15988 };
15989
15990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_controlDown_get",kwnames,&obj0)) goto fail;
15991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
15992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15993 result = (bool) ((arg1)->m_controlDown);
15994
15995 {
15996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15997 }
15998 return resultobj;
15999 fail:
16000 return NULL;
16001}
16002
16003
16004static PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16005 PyObject *resultobj;
16006 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16007 bool arg2 ;
16008 PyObject * obj0 = 0 ;
16009 PyObject * obj1 = 0 ;
16010 char *kwnames[] = {
16011 (char *) "self",(char *) "m_shiftDown", NULL
16012 };
16013
16014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_shiftDown_set",kwnames,&obj0,&obj1)) goto fail;
16015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16017 arg2 = (bool) SWIG_AsBool(obj1);
16018 if (PyErr_Occurred()) SWIG_fail;
16019 if (arg1) (arg1)->m_shiftDown = arg2;
16020
16021 Py_INCREF(Py_None); resultobj = Py_None;
16022 return resultobj;
16023 fail:
16024 return NULL;
16025}
16026
16027
16028static PyObject *_wrap_KeyEvent_m_shiftDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16029 PyObject *resultobj;
16030 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16031 bool result;
16032 PyObject * obj0 = 0 ;
16033 char *kwnames[] = {
16034 (char *) "self", NULL
16035 };
16036
16037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_shiftDown_get",kwnames,&obj0)) goto fail;
16038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16040 result = (bool) ((arg1)->m_shiftDown);
16041
16042 {
16043 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16044 }
16045 return resultobj;
16046 fail:
16047 return NULL;
16048}
16049
16050
16051static PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16052 PyObject *resultobj;
16053 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16054 bool arg2 ;
16055 PyObject * obj0 = 0 ;
16056 PyObject * obj1 = 0 ;
16057 char *kwnames[] = {
16058 (char *) "self",(char *) "m_altDown", NULL
16059 };
16060
16061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_altDown_set",kwnames,&obj0,&obj1)) goto fail;
16062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16064 arg2 = (bool) SWIG_AsBool(obj1);
16065 if (PyErr_Occurred()) SWIG_fail;
16066 if (arg1) (arg1)->m_altDown = arg2;
16067
16068 Py_INCREF(Py_None); resultobj = Py_None;
16069 return resultobj;
16070 fail:
16071 return NULL;
16072}
16073
16074
16075static PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16076 PyObject *resultobj;
16077 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16078 bool result;
16079 PyObject * obj0 = 0 ;
16080 char *kwnames[] = {
16081 (char *) "self", NULL
16082 };
16083
16084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_altDown_get",kwnames,&obj0)) goto fail;
16085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16087 result = (bool) ((arg1)->m_altDown);
16088
16089 {
16090 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16091 }
16092 return resultobj;
16093 fail:
16094 return NULL;
16095}
16096
16097
16098static PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16099 PyObject *resultobj;
16100 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16101 bool arg2 ;
16102 PyObject * obj0 = 0 ;
16103 PyObject * obj1 = 0 ;
16104 char *kwnames[] = {
16105 (char *) "self",(char *) "m_metaDown", NULL
16106 };
16107
16108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_metaDown_set",kwnames,&obj0,&obj1)) goto fail;
16109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16111 arg2 = (bool) SWIG_AsBool(obj1);
16112 if (PyErr_Occurred()) SWIG_fail;
16113 if (arg1) (arg1)->m_metaDown = arg2;
16114
16115 Py_INCREF(Py_None); resultobj = Py_None;
16116 return resultobj;
16117 fail:
16118 return NULL;
16119}
16120
16121
16122static PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16123 PyObject *resultobj;
16124 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16125 bool result;
16126 PyObject * obj0 = 0 ;
16127 char *kwnames[] = {
16128 (char *) "self", NULL
16129 };
16130
16131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_metaDown_get",kwnames,&obj0)) goto fail;
16132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16134 result = (bool) ((arg1)->m_metaDown);
16135
16136 {
16137 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16138 }
16139 return resultobj;
16140 fail:
16141 return NULL;
16142}
16143
16144
16145static PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16146 PyObject *resultobj;
16147 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16148 bool arg2 ;
16149 PyObject * obj0 = 0 ;
16150 PyObject * obj1 = 0 ;
16151 char *kwnames[] = {
16152 (char *) "self",(char *) "m_scanCode", NULL
16153 };
16154
16155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_scanCode_set",kwnames,&obj0,&obj1)) goto fail;
16156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16158 arg2 = (bool) SWIG_AsBool(obj1);
16159 if (PyErr_Occurred()) SWIG_fail;
16160 if (arg1) (arg1)->m_scanCode = arg2;
16161
16162 Py_INCREF(Py_None); resultobj = Py_None;
16163 return resultobj;
16164 fail:
16165 return NULL;
16166}
16167
16168
16169static PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16170 PyObject *resultobj;
16171 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16172 bool result;
16173 PyObject * obj0 = 0 ;
16174 char *kwnames[] = {
16175 (char *) "self", NULL
16176 };
16177
16178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_scanCode_get",kwnames,&obj0)) goto fail;
16179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16181 result = (bool) ((arg1)->m_scanCode);
16182
16183 {
16184 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16185 }
16186 return resultobj;
16187 fail:
16188 return NULL;
16189}
16190
16191
16192static PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16193 PyObject *resultobj;
16194 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16195 unsigned int arg2 ;
16196 PyObject * obj0 = 0 ;
16197 PyObject * obj1 = 0 ;
16198 char *kwnames[] = {
16199 (char *) "self",(char *) "m_rawCode", NULL
16200 };
16201
16202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawCode_set",kwnames,&obj0,&obj1)) goto fail;
16203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16205 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
16206 if (PyErr_Occurred()) SWIG_fail;
16207 if (arg1) (arg1)->m_rawCode = arg2;
16208
16209 Py_INCREF(Py_None); resultobj = Py_None;
16210 return resultobj;
16211 fail:
16212 return NULL;
16213}
16214
16215
16216static PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16217 PyObject *resultobj;
16218 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16219 unsigned int result;
16220 PyObject * obj0 = 0 ;
16221 char *kwnames[] = {
16222 (char *) "self", NULL
16223 };
16224
16225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawCode_get",kwnames,&obj0)) goto fail;
16226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16228 result = (unsigned int) ((arg1)->m_rawCode);
16229
16230 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
16231 return resultobj;
16232 fail:
16233 return NULL;
16234}
16235
16236
16237static PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16238 PyObject *resultobj;
16239 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16240 unsigned int arg2 ;
16241 PyObject * obj0 = 0 ;
16242 PyObject * obj1 = 0 ;
16243 char *kwnames[] = {
16244 (char *) "self",(char *) "m_rawFlags", NULL
16245 };
16246
16247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_m_rawFlags_set",kwnames,&obj0,&obj1)) goto fail;
16248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16250 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
16251 if (PyErr_Occurred()) SWIG_fail;
16252 if (arg1) (arg1)->m_rawFlags = arg2;
16253
16254 Py_INCREF(Py_None); resultobj = Py_None;
16255 return resultobj;
16256 fail:
16257 return NULL;
16258}
16259
16260
16261static PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16262 PyObject *resultobj;
16263 wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
16264 unsigned int result;
16265 PyObject * obj0 = 0 ;
16266 char *kwnames[] = {
16267 (char *) "self", NULL
16268 };
16269
16270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:KeyEvent_m_rawFlags_get",kwnames,&obj0)) goto fail;
16271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxKeyEvent,
16272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16273 result = (unsigned int) ((arg1)->m_rawFlags);
16274
16275 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
16276 return resultobj;
16277 fail:
16278 return NULL;
16279}
16280
16281
16282static PyObject * KeyEvent_swigregister(PyObject *self, PyObject *args) {
16283 PyObject *obj;
16284 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16285 SWIG_TypeClientData(SWIGTYPE_p_wxKeyEvent, obj);
16286 Py_INCREF(obj);
16287 return Py_BuildValue((char *)"");
16288}
16289static PyObject *_wrap_new_SizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16290 PyObject *resultobj;
16291 wxSize const &arg1_defvalue = wxDefaultSize ;
16292 wxSize *arg1 = (wxSize *) &arg1_defvalue ;
16293 int arg2 = (int) 0 ;
16294 wxSizeEvent *result;
16295 wxSize temp1 ;
16296 PyObject * obj0 = 0 ;
16297 PyObject * obj1 = 0 ;
16298 char *kwnames[] = {
16299 (char *) "sz",(char *) "winid", NULL
16300 };
16301
16302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SizeEvent",kwnames,&obj0,&obj1)) goto fail;
16303 if (obj0) {
16304 {
16305 arg1 = &temp1;
16306 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
16307 }
16308 }
16309 if (obj1) {
16310 arg2 = (int) SWIG_AsInt(obj1);
16311 if (PyErr_Occurred()) SWIG_fail;
16312 }
16313 {
16314 PyThreadState* __tstate = wxPyBeginAllowThreads();
16315 result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2);
16316
16317 wxPyEndAllowThreads(__tstate);
16318 if (PyErr_Occurred()) SWIG_fail;
16319 }
16320 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizeEvent, 1);
16321 return resultobj;
16322 fail:
16323 return NULL;
16324}
16325
16326
16327static PyObject *_wrap_SizeEvent_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16328 PyObject *resultobj;
16329 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16330 wxSize result;
16331 PyObject * obj0 = 0 ;
16332 char *kwnames[] = {
16333 (char *) "self", NULL
16334 };
16335
16336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetSize",kwnames,&obj0)) goto fail;
16337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16339 {
16340 PyThreadState* __tstate = wxPyBeginAllowThreads();
16341 result = ((wxSizeEvent const *)arg1)->GetSize();
16342
16343 wxPyEndAllowThreads(__tstate);
16344 if (PyErr_Occurred()) SWIG_fail;
16345 }
16346 {
16347 wxSize * resultptr;
16348 resultptr = new wxSize((wxSize &) result);
16349 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16350 }
16351 return resultobj;
16352 fail:
16353 return NULL;
16354}
16355
16356
16357static PyObject *_wrap_SizeEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
16358 PyObject *resultobj;
16359 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16360 wxRect result;
16361 PyObject * obj0 = 0 ;
16362 char *kwnames[] = {
16363 (char *) "self", NULL
16364 };
16365
16366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_GetRect",kwnames,&obj0)) goto fail;
16367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16369 {
16370 PyThreadState* __tstate = wxPyBeginAllowThreads();
16371 result = ((wxSizeEvent const *)arg1)->GetRect();
16372
16373 wxPyEndAllowThreads(__tstate);
16374 if (PyErr_Occurred()) SWIG_fail;
16375 }
16376 {
16377 wxRect * resultptr;
16378 resultptr = new wxRect((wxRect &) result);
16379 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
16380 }
16381 return resultobj;
16382 fail:
16383 return NULL;
16384}
16385
16386
16387static PyObject *_wrap_SizeEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
16388 PyObject *resultobj;
16389 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16390 wxRect arg2 ;
16391 wxRect *argp2 ;
16392 PyObject * obj0 = 0 ;
16393 PyObject * obj1 = 0 ;
16394 char *kwnames[] = {
16395 (char *) "self",(char *) "rect", NULL
16396 };
16397
16398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) goto fail;
16399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16401 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect,
16402 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
16403 arg2 = *argp2;
16404 {
16405 PyThreadState* __tstate = wxPyBeginAllowThreads();
16406 (arg1)->SetRect(arg2);
16407
16408 wxPyEndAllowThreads(__tstate);
16409 if (PyErr_Occurred()) SWIG_fail;
16410 }
16411 Py_INCREF(Py_None); resultobj = Py_None;
16412 return resultobj;
16413 fail:
16414 return NULL;
16415}
16416
16417
16418static PyObject *_wrap_SizeEvent_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16419 PyObject *resultobj;
16420 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16421 wxSize arg2 ;
16422 wxSize *argp2 ;
16423 PyObject * obj0 = 0 ;
16424 PyObject * obj1 = 0 ;
16425 char *kwnames[] = {
16426 (char *) "self",(char *) "size", NULL
16427 };
16428
16429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) goto fail;
16430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16432 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize,
16433 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
16434 arg2 = *argp2;
16435 {
16436 PyThreadState* __tstate = wxPyBeginAllowThreads();
16437 wxSizeEvent_SetSize(arg1,arg2);
16438
16439 wxPyEndAllowThreads(__tstate);
16440 if (PyErr_Occurred()) SWIG_fail;
16441 }
16442 Py_INCREF(Py_None); resultobj = Py_None;
16443 return resultobj;
16444 fail:
16445 return NULL;
16446}
16447
16448
16449static PyObject *_wrap_SizeEvent_m_size_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16450 PyObject *resultobj;
16451 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16452 wxSize *arg2 = (wxSize *) 0 ;
16453 PyObject * obj0 = 0 ;
16454 PyObject * obj1 = 0 ;
16455 char *kwnames[] = {
16456 (char *) "self",(char *) "m_size", NULL
16457 };
16458
16459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_size_set",kwnames,&obj0,&obj1)) goto fail;
16460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16462 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSize,
16463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16464 if (arg1) (arg1)->m_size = *arg2;
16465
16466 Py_INCREF(Py_None); resultobj = Py_None;
16467 return resultobj;
16468 fail:
16469 return NULL;
16470}
16471
16472
16473static PyObject *_wrap_SizeEvent_m_size_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16474 PyObject *resultobj;
16475 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16476 wxSize *result;
16477 PyObject * obj0 = 0 ;
16478 char *kwnames[] = {
16479 (char *) "self", NULL
16480 };
16481
16482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_size_get",kwnames,&obj0)) goto fail;
16483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16485 result = (wxSize *)& ((arg1)->m_size);
16486
16487 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0);
16488 return resultobj;
16489 fail:
16490 return NULL;
16491}
16492
16493
16494static PyObject *_wrap_SizeEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16495 PyObject *resultobj;
16496 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16497 wxRect *arg2 = (wxRect *) 0 ;
16498 PyObject * obj0 = 0 ;
16499 PyObject * obj1 = 0 ;
16500 char *kwnames[] = {
16501 (char *) "self",(char *) "m_rect", NULL
16502 };
16503
16504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail;
16505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16507 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
16508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16509 if (arg1) (arg1)->m_rect = *arg2;
16510
16511 Py_INCREF(Py_None); resultobj = Py_None;
16512 return resultobj;
16513 fail:
16514 return NULL;
16515}
16516
16517
16518static PyObject *_wrap_SizeEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16519 PyObject *resultobj;
16520 wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
16521 wxRect *result;
16522 PyObject * obj0 = 0 ;
16523 char *kwnames[] = {
16524 (char *) "self", NULL
16525 };
16526
16527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizeEvent_m_rect_get",kwnames,&obj0)) goto fail;
16528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizeEvent,
16529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16530 result = (wxRect *)& ((arg1)->m_rect);
16531
16532 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0);
16533 return resultobj;
16534 fail:
16535 return NULL;
16536}
16537
16538
16539static PyObject * SizeEvent_swigregister(PyObject *self, PyObject *args) {
16540 PyObject *obj;
16541 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16542 SWIG_TypeClientData(SWIGTYPE_p_wxSizeEvent, obj);
16543 Py_INCREF(obj);
16544 return Py_BuildValue((char *)"");
16545}
16546static PyObject *_wrap_new_MoveEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16547 PyObject *resultobj;
16548 wxPoint const &arg1_defvalue = wxDefaultPosition ;
16549 wxPoint *arg1 = (wxPoint *) &arg1_defvalue ;
16550 int arg2 = (int) 0 ;
16551 wxMoveEvent *result;
16552 wxPoint temp1 ;
16553 PyObject * obj0 = 0 ;
16554 PyObject * obj1 = 0 ;
16555 char *kwnames[] = {
16556 (char *) "pos",(char *) "winid", NULL
16557 };
16558
16559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MoveEvent",kwnames,&obj0,&obj1)) goto fail;
16560 if (obj0) {
16561 {
16562 arg1 = &temp1;
16563 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
16564 }
16565 }
16566 if (obj1) {
16567 arg2 = (int) SWIG_AsInt(obj1);
16568 if (PyErr_Occurred()) SWIG_fail;
16569 }
16570 {
16571 PyThreadState* __tstate = wxPyBeginAllowThreads();
16572 result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2);
16573
16574 wxPyEndAllowThreads(__tstate);
16575 if (PyErr_Occurred()) SWIG_fail;
16576 }
16577 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMoveEvent, 1);
16578 return resultobj;
16579 fail:
16580 return NULL;
16581}
16582
16583
16584static PyObject *_wrap_MoveEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
16585 PyObject *resultobj;
16586 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16587 wxPoint result;
16588 PyObject * obj0 = 0 ;
16589 char *kwnames[] = {
16590 (char *) "self", NULL
16591 };
16592
16593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetPosition",kwnames,&obj0)) goto fail;
16594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16596 {
16597 PyThreadState* __tstate = wxPyBeginAllowThreads();
16598 result = ((wxMoveEvent const *)arg1)->GetPosition();
16599
16600 wxPyEndAllowThreads(__tstate);
16601 if (PyErr_Occurred()) SWIG_fail;
16602 }
16603 {
16604 wxPoint * resultptr;
16605 resultptr = new wxPoint((wxPoint &) result);
16606 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
16607 }
16608 return resultobj;
16609 fail:
16610 return NULL;
16611}
16612
16613
16614static PyObject *_wrap_MoveEvent_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
16615 PyObject *resultobj;
16616 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16617 wxRect result;
16618 PyObject * obj0 = 0 ;
16619 char *kwnames[] = {
16620 (char *) "self", NULL
16621 };
16622
16623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_GetRect",kwnames,&obj0)) goto fail;
16624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16626 {
16627 PyThreadState* __tstate = wxPyBeginAllowThreads();
16628 result = ((wxMoveEvent const *)arg1)->GetRect();
16629
16630 wxPyEndAllowThreads(__tstate);
16631 if (PyErr_Occurred()) SWIG_fail;
16632 }
16633 {
16634 wxRect * resultptr;
16635 resultptr = new wxRect((wxRect &) result);
16636 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
16637 }
16638 return resultobj;
16639 fail:
16640 return NULL;
16641}
16642
16643
16644static PyObject *_wrap_MoveEvent_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
16645 PyObject *resultobj;
16646 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16647 wxRect arg2 ;
16648 wxRect *argp2 ;
16649 PyObject * obj0 = 0 ;
16650 PyObject * obj1 = 0 ;
16651 char *kwnames[] = {
16652 (char *) "self",(char *) "rect", NULL
16653 };
16654
16655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) goto fail;
16656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16658 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxRect,
16659 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
16660 arg2 = *argp2;
16661 {
16662 PyThreadState* __tstate = wxPyBeginAllowThreads();
16663 (arg1)->SetRect(arg2);
16664
16665 wxPyEndAllowThreads(__tstate);
16666 if (PyErr_Occurred()) SWIG_fail;
16667 }
16668 Py_INCREF(Py_None); resultobj = Py_None;
16669 return resultobj;
16670 fail:
16671 return NULL;
16672}
16673
16674
16675static PyObject *_wrap_MoveEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
16676 PyObject *resultobj;
16677 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16678 wxPoint arg2 ;
16679 wxPoint *argp2 ;
16680 PyObject * obj0 = 0 ;
16681 PyObject * obj1 = 0 ;
16682 char *kwnames[] = {
16683 (char *) "self",(char *) "pos", NULL
16684 };
16685
16686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
16687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16689 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint,
16690 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
16691 arg2 = *argp2;
16692 {
16693 PyThreadState* __tstate = wxPyBeginAllowThreads();
16694 wxMoveEvent_SetPosition(arg1,arg2);
16695
16696 wxPyEndAllowThreads(__tstate);
16697 if (PyErr_Occurred()) SWIG_fail;
16698 }
16699 Py_INCREF(Py_None); resultobj = Py_None;
16700 return resultobj;
16701 fail:
16702 return NULL;
16703}
16704
16705
16706static PyObject *_wrap_MoveEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16707 PyObject *resultobj;
16708 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16709 wxPoint *arg2 = (wxPoint *) 0 ;
16710 PyObject * obj0 = 0 ;
16711 PyObject * obj1 = 0 ;
16712 char *kwnames[] = {
16713 (char *) "self",(char *) "m_pos", NULL
16714 };
16715
16716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail;
16717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16719 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
16720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16721 if (arg1) (arg1)->m_pos = *arg2;
16722
16723 Py_INCREF(Py_None); resultobj = Py_None;
16724 return resultobj;
16725 fail:
16726 return NULL;
16727}
16728
16729
16730static PyObject *_wrap_MoveEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16731 PyObject *resultobj;
16732 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16733 wxPoint *result;
16734 PyObject * obj0 = 0 ;
16735 char *kwnames[] = {
16736 (char *) "self", NULL
16737 };
16738
16739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_pos_get",kwnames,&obj0)) goto fail;
16740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16742 result = (wxPoint *)& ((arg1)->m_pos);
16743
16744 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
16745 return resultobj;
16746 fail:
16747 return NULL;
16748}
16749
16750
16751static PyObject *_wrap_MoveEvent_m_rect_set(PyObject *self, PyObject *args, PyObject *kwargs) {
16752 PyObject *resultobj;
16753 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16754 wxRect *arg2 = (wxRect *) 0 ;
16755 PyObject * obj0 = 0 ;
16756 PyObject * obj1 = 0 ;
16757 char *kwnames[] = {
16758 (char *) "self",(char *) "m_rect", NULL
16759 };
16760
16761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_m_rect_set",kwnames,&obj0,&obj1)) goto fail;
16762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16764 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
16765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16766 if (arg1) (arg1)->m_rect = *arg2;
16767
16768 Py_INCREF(Py_None); resultobj = Py_None;
16769 return resultobj;
16770 fail:
16771 return NULL;
16772}
16773
16774
16775static PyObject *_wrap_MoveEvent_m_rect_get(PyObject *self, PyObject *args, PyObject *kwargs) {
16776 PyObject *resultobj;
16777 wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
16778 wxRect *result;
16779 PyObject * obj0 = 0 ;
16780 char *kwnames[] = {
16781 (char *) "self", NULL
16782 };
16783
16784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MoveEvent_m_rect_get",kwnames,&obj0)) goto fail;
16785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMoveEvent,
16786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16787 result = (wxRect *)& ((arg1)->m_rect);
16788
16789 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRect, 0);
16790 return resultobj;
16791 fail:
16792 return NULL;
16793}
16794
16795
16796static PyObject * MoveEvent_swigregister(PyObject *self, PyObject *args) {
16797 PyObject *obj;
16798 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16799 SWIG_TypeClientData(SWIGTYPE_p_wxMoveEvent, obj);
16800 Py_INCREF(obj);
16801 return Py_BuildValue((char *)"");
16802}
16803static PyObject *_wrap_new_PaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16804 PyObject *resultobj;
16805 int arg1 = (int) 0 ;
16806 wxPaintEvent *result;
16807 PyObject * obj0 = 0 ;
16808 char *kwnames[] = {
16809 (char *) "Id", NULL
16810 };
16811
16812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaintEvent",kwnames,&obj0)) goto fail;
16813 if (obj0) {
16814 arg1 = (int) SWIG_AsInt(obj0);
16815 if (PyErr_Occurred()) SWIG_fail;
16816 }
16817 {
16818 PyThreadState* __tstate = wxPyBeginAllowThreads();
16819 result = (wxPaintEvent *)new wxPaintEvent(arg1);
16820
16821 wxPyEndAllowThreads(__tstate);
16822 if (PyErr_Occurred()) SWIG_fail;
16823 }
16824 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintEvent, 1);
16825 return resultobj;
16826 fail:
16827 return NULL;
16828}
16829
16830
16831static PyObject * PaintEvent_swigregister(PyObject *self, PyObject *args) {
16832 PyObject *obj;
16833 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16834 SWIG_TypeClientData(SWIGTYPE_p_wxPaintEvent, obj);
16835 Py_INCREF(obj);
16836 return Py_BuildValue((char *)"");
16837}
16838static PyObject *_wrap_new_NcPaintEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16839 PyObject *resultobj;
16840 int arg1 = (int) 0 ;
16841 wxNcPaintEvent *result;
16842 PyObject * obj0 = 0 ;
16843 char *kwnames[] = {
16844 (char *) "winid", NULL
16845 };
16846
16847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_NcPaintEvent",kwnames,&obj0)) goto fail;
16848 if (obj0) {
16849 arg1 = (int) SWIG_AsInt(obj0);
16850 if (PyErr_Occurred()) SWIG_fail;
16851 }
16852 {
16853 PyThreadState* __tstate = wxPyBeginAllowThreads();
16854 result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1);
16855
16856 wxPyEndAllowThreads(__tstate);
16857 if (PyErr_Occurred()) SWIG_fail;
16858 }
16859 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNcPaintEvent, 1);
16860 return resultobj;
16861 fail:
16862 return NULL;
16863}
16864
16865
16866static PyObject * NcPaintEvent_swigregister(PyObject *self, PyObject *args) {
16867 PyObject *obj;
16868 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16869 SWIG_TypeClientData(SWIGTYPE_p_wxNcPaintEvent, obj);
16870 Py_INCREF(obj);
16871 return Py_BuildValue((char *)"");
16872}
16873static PyObject *_wrap_new_EraseEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16874 PyObject *resultobj;
16875 int arg1 = (int) 0 ;
16876 wxDC *arg2 = (wxDC *) (wxDC *) NULL ;
16877 wxEraseEvent *result;
16878 PyObject * obj0 = 0 ;
16879 PyObject * obj1 = 0 ;
16880 char *kwnames[] = {
16881 (char *) "Id",(char *) "dc", NULL
16882 };
16883
16884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EraseEvent",kwnames,&obj0,&obj1)) goto fail;
16885 if (obj0) {
16886 arg1 = (int) SWIG_AsInt(obj0);
16887 if (PyErr_Occurred()) SWIG_fail;
16888 }
16889 if (obj1) {
16890 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
16891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16892 }
16893 {
16894 PyThreadState* __tstate = wxPyBeginAllowThreads();
16895 result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2);
16896
16897 wxPyEndAllowThreads(__tstate);
16898 if (PyErr_Occurred()) SWIG_fail;
16899 }
16900 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEraseEvent, 1);
16901 return resultobj;
16902 fail:
16903 return NULL;
16904}
16905
16906
16907static PyObject *_wrap_EraseEvent_GetDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16908 PyObject *resultobj;
16909 wxEraseEvent *arg1 = (wxEraseEvent *) 0 ;
16910 wxDC *result;
16911 PyObject * obj0 = 0 ;
16912 char *kwnames[] = {
16913 (char *) "self", NULL
16914 };
16915
16916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EraseEvent_GetDC",kwnames,&obj0)) goto fail;
16917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEraseEvent,
16918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16919 {
16920 PyThreadState* __tstate = wxPyBeginAllowThreads();
16921 result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC();
16922
16923 wxPyEndAllowThreads(__tstate);
16924 if (PyErr_Occurred()) SWIG_fail;
16925 }
16926 {
412d302d 16927 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
16928 }
16929 return resultobj;
16930 fail:
16931 return NULL;
16932}
16933
16934
16935static PyObject * EraseEvent_swigregister(PyObject *self, PyObject *args) {
16936 PyObject *obj;
16937 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16938 SWIG_TypeClientData(SWIGTYPE_p_wxEraseEvent, obj);
16939 Py_INCREF(obj);
16940 return Py_BuildValue((char *)"");
16941}
16942static PyObject *_wrap_new_FocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
16943 PyObject *resultobj;
16944 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
16945 int arg2 = (int) 0 ;
16946 wxFocusEvent *result;
16947 PyObject * obj0 = 0 ;
16948 PyObject * obj1 = 0 ;
16949 char *kwnames[] = {
16950 (char *) "type",(char *) "winid", NULL
16951 };
16952
16953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FocusEvent",kwnames,&obj0,&obj1)) goto fail;
16954 if (obj0) {
16955 arg1 = (wxEventType) SWIG_AsInt(obj0);
16956 if (PyErr_Occurred()) SWIG_fail;
16957 }
16958 if (obj1) {
16959 arg2 = (int) SWIG_AsInt(obj1);
16960 if (PyErr_Occurred()) SWIG_fail;
16961 }
16962 {
16963 PyThreadState* __tstate = wxPyBeginAllowThreads();
16964 result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2);
16965
16966 wxPyEndAllowThreads(__tstate);
16967 if (PyErr_Occurred()) SWIG_fail;
16968 }
16969 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFocusEvent, 1);
16970 return resultobj;
16971 fail:
16972 return NULL;
16973}
16974
16975
16976static PyObject *_wrap_FocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
16977 PyObject *resultobj;
16978 wxFocusEvent *arg1 = (wxFocusEvent *) 0 ;
16979 wxWindow *result;
16980 PyObject * obj0 = 0 ;
16981 char *kwnames[] = {
16982 (char *) "self", NULL
16983 };
16984
16985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FocusEvent_GetWindow",kwnames,&obj0)) goto fail;
16986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent,
16987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16988 {
16989 PyThreadState* __tstate = wxPyBeginAllowThreads();
16990 result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow();
16991
16992 wxPyEndAllowThreads(__tstate);
16993 if (PyErr_Occurred()) SWIG_fail;
16994 }
16995 {
412d302d 16996 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
16997 }
16998 return resultobj;
16999 fail:
17000 return NULL;
17001}
17002
17003
17004static PyObject *_wrap_FocusEvent_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
17005 PyObject *resultobj;
17006 wxFocusEvent *arg1 = (wxFocusEvent *) 0 ;
17007 wxWindow *arg2 = (wxWindow *) 0 ;
17008 PyObject * obj0 = 0 ;
17009 PyObject * obj1 = 0 ;
17010 char *kwnames[] = {
17011 (char *) "self",(char *) "win", NULL
17012 };
17013
17014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) goto fail;
17015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFocusEvent,
17016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17017 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
17018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17019 {
17020 PyThreadState* __tstate = wxPyBeginAllowThreads();
17021 (arg1)->SetWindow(arg2);
17022
17023 wxPyEndAllowThreads(__tstate);
17024 if (PyErr_Occurred()) SWIG_fail;
17025 }
17026 Py_INCREF(Py_None); resultobj = Py_None;
17027 return resultobj;
17028 fail:
17029 return NULL;
17030}
17031
17032
17033static PyObject * FocusEvent_swigregister(PyObject *self, PyObject *args) {
17034 PyObject *obj;
17035 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17036 SWIG_TypeClientData(SWIGTYPE_p_wxFocusEvent, obj);
17037 Py_INCREF(obj);
17038 return Py_BuildValue((char *)"");
17039}
17040static PyObject *_wrap_new_ChildFocusEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17041 PyObject *resultobj;
17042 wxWindow *arg1 = (wxWindow *) NULL ;
17043 wxChildFocusEvent *result;
17044 PyObject * obj0 = 0 ;
17045 char *kwnames[] = {
17046 (char *) "win", NULL
17047 };
17048
17049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) goto fail;
17050 if (obj0) {
17051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
17052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17053 }
17054 {
17055 PyThreadState* __tstate = wxPyBeginAllowThreads();
17056 result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1);
17057
17058 wxPyEndAllowThreads(__tstate);
17059 if (PyErr_Occurred()) SWIG_fail;
17060 }
17061 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChildFocusEvent, 1);
17062 return resultobj;
17063 fail:
17064 return NULL;
17065}
17066
17067
17068static PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
17069 PyObject *resultobj;
17070 wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ;
17071 wxWindow *result;
17072 PyObject * obj0 = 0 ;
17073 char *kwnames[] = {
17074 (char *) "self", NULL
17075 };
17076
17077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ChildFocusEvent_GetWindow",kwnames,&obj0)) goto fail;
17078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChildFocusEvent,
17079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17080 {
17081 PyThreadState* __tstate = wxPyBeginAllowThreads();
17082 result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow();
17083
17084 wxPyEndAllowThreads(__tstate);
17085 if (PyErr_Occurred()) SWIG_fail;
17086 }
17087 {
412d302d 17088 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
17089 }
17090 return resultobj;
17091 fail:
17092 return NULL;
17093}
17094
17095
17096static PyObject * ChildFocusEvent_swigregister(PyObject *self, PyObject *args) {
17097 PyObject *obj;
17098 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17099 SWIG_TypeClientData(SWIGTYPE_p_wxChildFocusEvent, obj);
17100 Py_INCREF(obj);
17101 return Py_BuildValue((char *)"");
17102}
17103static PyObject *_wrap_new_ActivateEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17104 PyObject *resultobj;
17105 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
17106 bool arg2 = (bool) True ;
17107 int arg3 = (int) 0 ;
17108 wxActivateEvent *result;
17109 PyObject * obj0 = 0 ;
17110 PyObject * obj1 = 0 ;
17111 PyObject * obj2 = 0 ;
17112 char *kwnames[] = {
17113 (char *) "type",(char *) "active",(char *) "Id", NULL
17114 };
17115
17116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ActivateEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
17117 if (obj0) {
17118 arg1 = (wxEventType) SWIG_AsInt(obj0);
17119 if (PyErr_Occurred()) SWIG_fail;
17120 }
17121 if (obj1) {
17122 arg2 = (bool) SWIG_AsBool(obj1);
17123 if (PyErr_Occurred()) SWIG_fail;
17124 }
17125 if (obj2) {
17126 arg3 = (int) SWIG_AsInt(obj2);
17127 if (PyErr_Occurred()) SWIG_fail;
17128 }
17129 {
17130 PyThreadState* __tstate = wxPyBeginAllowThreads();
17131 result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3);
17132
17133 wxPyEndAllowThreads(__tstate);
17134 if (PyErr_Occurred()) SWIG_fail;
17135 }
17136 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxActivateEvent, 1);
17137 return resultobj;
17138 fail:
17139 return NULL;
17140}
17141
17142
17143static PyObject *_wrap_ActivateEvent_GetActive(PyObject *self, PyObject *args, PyObject *kwargs) {
17144 PyObject *resultobj;
17145 wxActivateEvent *arg1 = (wxActivateEvent *) 0 ;
17146 bool result;
17147 PyObject * obj0 = 0 ;
17148 char *kwnames[] = {
17149 (char *) "self", NULL
17150 };
17151
17152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ActivateEvent_GetActive",kwnames,&obj0)) goto fail;
17153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxActivateEvent,
17154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17155 {
17156 PyThreadState* __tstate = wxPyBeginAllowThreads();
17157 result = (bool)((wxActivateEvent const *)arg1)->GetActive();
17158
17159 wxPyEndAllowThreads(__tstate);
17160 if (PyErr_Occurred()) SWIG_fail;
17161 }
17162 {
17163 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17164 }
17165 return resultobj;
17166 fail:
17167 return NULL;
17168}
17169
17170
17171static PyObject * ActivateEvent_swigregister(PyObject *self, PyObject *args) {
17172 PyObject *obj;
17173 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17174 SWIG_TypeClientData(SWIGTYPE_p_wxActivateEvent, obj);
17175 Py_INCREF(obj);
17176 return Py_BuildValue((char *)"");
17177}
17178static PyObject *_wrap_new_InitDialogEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17179 PyObject *resultobj;
17180 int arg1 = (int) 0 ;
17181 wxInitDialogEvent *result;
17182 PyObject * obj0 = 0 ;
17183 char *kwnames[] = {
17184 (char *) "Id", NULL
17185 };
17186
17187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_InitDialogEvent",kwnames,&obj0)) goto fail;
17188 if (obj0) {
17189 arg1 = (int) SWIG_AsInt(obj0);
17190 if (PyErr_Occurred()) SWIG_fail;
17191 }
17192 {
17193 PyThreadState* __tstate = wxPyBeginAllowThreads();
17194 result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1);
17195
17196 wxPyEndAllowThreads(__tstate);
17197 if (PyErr_Occurred()) SWIG_fail;
17198 }
17199 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxInitDialogEvent, 1);
17200 return resultobj;
17201 fail:
17202 return NULL;
17203}
17204
17205
17206static PyObject * InitDialogEvent_swigregister(PyObject *self, PyObject *args) {
17207 PyObject *obj;
17208 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17209 SWIG_TypeClientData(SWIGTYPE_p_wxInitDialogEvent, obj);
17210 Py_INCREF(obj);
17211 return Py_BuildValue((char *)"");
17212}
17213static PyObject *_wrap_new_MenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17214 PyObject *resultobj;
17215 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
17216 int arg2 = (int) 0 ;
17217 wxMenu *arg3 = (wxMenu *) NULL ;
17218 wxMenuEvent *result;
17219 PyObject * obj0 = 0 ;
17220 PyObject * obj1 = 0 ;
17221 PyObject * obj2 = 0 ;
17222 char *kwnames[] = {
17223 (char *) "type",(char *) "winid",(char *) "menu", NULL
17224 };
17225
17226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_MenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
17227 if (obj0) {
17228 arg1 = (wxEventType) SWIG_AsInt(obj0);
17229 if (PyErr_Occurred()) SWIG_fail;
17230 }
17231 if (obj1) {
17232 arg2 = (int) SWIG_AsInt(obj1);
17233 if (PyErr_Occurred()) SWIG_fail;
17234 }
17235 if (obj2) {
17236 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu,
17237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17238 }
17239 {
17240 PyThreadState* __tstate = wxPyBeginAllowThreads();
17241 result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3);
17242
17243 wxPyEndAllowThreads(__tstate);
17244 if (PyErr_Occurred()) SWIG_fail;
17245 }
17246 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuEvent, 1);
17247 return resultobj;
17248 fail:
17249 return NULL;
17250}
17251
17252
17253static PyObject *_wrap_MenuEvent_GetMenuId(PyObject *self, PyObject *args, PyObject *kwargs) {
17254 PyObject *resultobj;
17255 wxMenuEvent *arg1 = (wxMenuEvent *) 0 ;
17256 int result;
17257 PyObject * obj0 = 0 ;
17258 char *kwnames[] = {
17259 (char *) "self", NULL
17260 };
17261
17262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenuId",kwnames,&obj0)) goto fail;
17263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent,
17264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17265 {
17266 PyThreadState* __tstate = wxPyBeginAllowThreads();
17267 result = (int)((wxMenuEvent const *)arg1)->GetMenuId();
17268
17269 wxPyEndAllowThreads(__tstate);
17270 if (PyErr_Occurred()) SWIG_fail;
17271 }
17272 resultobj = SWIG_FromInt((int)result);
17273 return resultobj;
17274 fail:
17275 return NULL;
17276}
17277
17278
17279static PyObject *_wrap_MenuEvent_IsPopup(PyObject *self, PyObject *args, PyObject *kwargs) {
17280 PyObject *resultobj;
17281 wxMenuEvent *arg1 = (wxMenuEvent *) 0 ;
17282 bool result;
17283 PyObject * obj0 = 0 ;
17284 char *kwnames[] = {
17285 (char *) "self", NULL
17286 };
17287
17288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_IsPopup",kwnames,&obj0)) goto fail;
17289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent,
17290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17291 {
17292 PyThreadState* __tstate = wxPyBeginAllowThreads();
17293 result = (bool)((wxMenuEvent const *)arg1)->IsPopup();
17294
17295 wxPyEndAllowThreads(__tstate);
17296 if (PyErr_Occurred()) SWIG_fail;
17297 }
17298 {
17299 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17300 }
17301 return resultobj;
17302 fail:
17303 return NULL;
17304}
17305
17306
17307static PyObject *_wrap_MenuEvent_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
17308 PyObject *resultobj;
17309 wxMenuEvent *arg1 = (wxMenuEvent *) 0 ;
17310 wxMenu *result;
17311 PyObject * obj0 = 0 ;
17312 char *kwnames[] = {
17313 (char *) "self", NULL
17314 };
17315
17316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuEvent_GetMenu",kwnames,&obj0)) goto fail;
17317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuEvent,
17318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17319 {
17320 PyThreadState* __tstate = wxPyBeginAllowThreads();
17321 result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu();
17322
17323 wxPyEndAllowThreads(__tstate);
17324 if (PyErr_Occurred()) SWIG_fail;
17325 }
17326 {
412d302d 17327 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
17328 }
17329 return resultobj;
17330 fail:
17331 return NULL;
17332}
17333
17334
17335static PyObject * MenuEvent_swigregister(PyObject *self, PyObject *args) {
17336 PyObject *obj;
17337 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17338 SWIG_TypeClientData(SWIGTYPE_p_wxMenuEvent, obj);
17339 Py_INCREF(obj);
17340 return Py_BuildValue((char *)"");
17341}
17342static PyObject *_wrap_new_CloseEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17343 PyObject *resultobj;
17344 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
17345 int arg2 = (int) 0 ;
17346 wxCloseEvent *result;
17347 PyObject * obj0 = 0 ;
17348 PyObject * obj1 = 0 ;
17349 char *kwnames[] = {
17350 (char *) "type",(char *) "winid", NULL
17351 };
17352
17353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CloseEvent",kwnames,&obj0,&obj1)) goto fail;
17354 if (obj0) {
17355 arg1 = (wxEventType) SWIG_AsInt(obj0);
17356 if (PyErr_Occurred()) SWIG_fail;
17357 }
17358 if (obj1) {
17359 arg2 = (int) SWIG_AsInt(obj1);
17360 if (PyErr_Occurred()) SWIG_fail;
17361 }
17362 {
17363 PyThreadState* __tstate = wxPyBeginAllowThreads();
17364 result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2);
17365
17366 wxPyEndAllowThreads(__tstate);
17367 if (PyErr_Occurred()) SWIG_fail;
17368 }
17369 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCloseEvent, 1);
17370 return resultobj;
17371 fail:
17372 return NULL;
17373}
17374
17375
17376static PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) {
17377 PyObject *resultobj;
17378 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
17379 bool arg2 ;
17380 PyObject * obj0 = 0 ;
17381 PyObject * obj1 = 0 ;
17382 char *kwnames[] = {
17383 (char *) "self",(char *) "logOff", NULL
17384 };
17385
17386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) goto fail;
17387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent,
17388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17389 arg2 = (bool) SWIG_AsBool(obj1);
17390 if (PyErr_Occurred()) SWIG_fail;
17391 {
17392 PyThreadState* __tstate = wxPyBeginAllowThreads();
17393 (arg1)->SetLoggingOff(arg2);
17394
17395 wxPyEndAllowThreads(__tstate);
17396 if (PyErr_Occurred()) SWIG_fail;
17397 }
17398 Py_INCREF(Py_None); resultobj = Py_None;
17399 return resultobj;
17400 fail:
17401 return NULL;
17402}
17403
17404
17405static PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *self, PyObject *args, PyObject *kwargs) {
17406 PyObject *resultobj;
17407 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
17408 bool result;
17409 PyObject * obj0 = 0 ;
17410 char *kwnames[] = {
17411 (char *) "self", NULL
17412 };
17413
17414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetLoggingOff",kwnames,&obj0)) goto fail;
17415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent,
17416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17417 {
17418 PyThreadState* __tstate = wxPyBeginAllowThreads();
17419 result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff();
17420
17421 wxPyEndAllowThreads(__tstate);
17422 if (PyErr_Occurred()) SWIG_fail;
17423 }
17424 {
17425 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17426 }
17427 return resultobj;
17428 fail:
17429 return NULL;
17430}
17431
17432
17433static PyObject *_wrap_CloseEvent_Veto(PyObject *self, PyObject *args, PyObject *kwargs) {
17434 PyObject *resultobj;
17435 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
17436 bool arg2 = (bool) True ;
17437 PyObject * obj0 = 0 ;
17438 PyObject * obj1 = 0 ;
17439 char *kwnames[] = {
17440 (char *) "self",(char *) "veto", NULL
17441 };
17442
17443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) goto fail;
17444 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent,
17445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17446 if (obj1) {
17447 arg2 = (bool) SWIG_AsBool(obj1);
17448 if (PyErr_Occurred()) SWIG_fail;
17449 }
17450 {
17451 PyThreadState* __tstate = wxPyBeginAllowThreads();
17452 (arg1)->Veto(arg2);
17453
17454 wxPyEndAllowThreads(__tstate);
17455 if (PyErr_Occurred()) SWIG_fail;
17456 }
17457 Py_INCREF(Py_None); resultobj = Py_None;
17458 return resultobj;
17459 fail:
17460 return NULL;
17461}
17462
17463
17464static PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *self, PyObject *args, PyObject *kwargs) {
17465 PyObject *resultobj;
17466 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
17467 bool arg2 ;
17468 PyObject * obj0 = 0 ;
17469 PyObject * obj1 = 0 ;
17470 char *kwnames[] = {
17471 (char *) "self",(char *) "canVeto", NULL
17472 };
17473
17474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) goto fail;
17475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent,
17476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17477 arg2 = (bool) SWIG_AsBool(obj1);
17478 if (PyErr_Occurred()) SWIG_fail;
17479 {
17480 PyThreadState* __tstate = wxPyBeginAllowThreads();
17481 (arg1)->SetCanVeto(arg2);
17482
17483 wxPyEndAllowThreads(__tstate);
17484 if (PyErr_Occurred()) SWIG_fail;
17485 }
17486 Py_INCREF(Py_None); resultobj = Py_None;
17487 return resultobj;
17488 fail:
17489 return NULL;
17490}
17491
17492
17493static PyObject *_wrap_CloseEvent_CanVeto(PyObject *self, PyObject *args, PyObject *kwargs) {
17494 PyObject *resultobj;
17495 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
17496 bool result;
17497 PyObject * obj0 = 0 ;
17498 char *kwnames[] = {
17499 (char *) "self", NULL
17500 };
17501
17502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_CanVeto",kwnames,&obj0)) goto fail;
17503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent,
17504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17505 {
17506 PyThreadState* __tstate = wxPyBeginAllowThreads();
17507 result = (bool)((wxCloseEvent const *)arg1)->CanVeto();
17508
17509 wxPyEndAllowThreads(__tstate);
17510 if (PyErr_Occurred()) SWIG_fail;
17511 }
17512 {
17513 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17514 }
17515 return resultobj;
17516 fail:
17517 return NULL;
17518}
17519
17520
17521static PyObject *_wrap_CloseEvent_GetVeto(PyObject *self, PyObject *args, PyObject *kwargs) {
17522 PyObject *resultobj;
17523 wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
17524 bool result;
17525 PyObject * obj0 = 0 ;
17526 char *kwnames[] = {
17527 (char *) "self", NULL
17528 };
17529
17530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CloseEvent_GetVeto",kwnames,&obj0)) goto fail;
17531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCloseEvent,
17532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17533 {
17534 PyThreadState* __tstate = wxPyBeginAllowThreads();
17535 result = (bool)((wxCloseEvent const *)arg1)->GetVeto();
17536
17537 wxPyEndAllowThreads(__tstate);
17538 if (PyErr_Occurred()) SWIG_fail;
17539 }
17540 {
17541 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17542 }
17543 return resultobj;
17544 fail:
17545 return NULL;
17546}
17547
17548
17549static PyObject * CloseEvent_swigregister(PyObject *self, PyObject *args) {
17550 PyObject *obj;
17551 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17552 SWIG_TypeClientData(SWIGTYPE_p_wxCloseEvent, obj);
17553 Py_INCREF(obj);
17554 return Py_BuildValue((char *)"");
17555}
17556static PyObject *_wrap_new_ShowEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17557 PyObject *resultobj;
17558 int arg1 = (int) 0 ;
17559 bool arg2 = (bool) False ;
17560 wxShowEvent *result;
17561 PyObject * obj0 = 0 ;
17562 PyObject * obj1 = 0 ;
17563 char *kwnames[] = {
17564 (char *) "winid",(char *) "show", NULL
17565 };
17566
17567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ShowEvent",kwnames,&obj0,&obj1)) goto fail;
17568 if (obj0) {
17569 arg1 = (int) SWIG_AsInt(obj0);
17570 if (PyErr_Occurred()) SWIG_fail;
17571 }
17572 if (obj1) {
17573 arg2 = (bool) SWIG_AsBool(obj1);
17574 if (PyErr_Occurred()) SWIG_fail;
17575 }
17576 {
17577 PyThreadState* __tstate = wxPyBeginAllowThreads();
17578 result = (wxShowEvent *)new wxShowEvent(arg1,arg2);
17579
17580 wxPyEndAllowThreads(__tstate);
17581 if (PyErr_Occurred()) SWIG_fail;
17582 }
17583 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxShowEvent, 1);
17584 return resultobj;
17585 fail:
17586 return NULL;
17587}
17588
17589
17590static PyObject *_wrap_ShowEvent_SetShow(PyObject *self, PyObject *args, PyObject *kwargs) {
17591 PyObject *resultobj;
17592 wxShowEvent *arg1 = (wxShowEvent *) 0 ;
17593 bool arg2 ;
17594 PyObject * obj0 = 0 ;
17595 PyObject * obj1 = 0 ;
17596 char *kwnames[] = {
17597 (char *) "self",(char *) "show", NULL
17598 };
17599
17600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) goto fail;
17601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent,
17602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17603 arg2 = (bool) SWIG_AsBool(obj1);
17604 if (PyErr_Occurred()) SWIG_fail;
17605 {
17606 PyThreadState* __tstate = wxPyBeginAllowThreads();
17607 (arg1)->SetShow(arg2);
17608
17609 wxPyEndAllowThreads(__tstate);
17610 if (PyErr_Occurred()) SWIG_fail;
17611 }
17612 Py_INCREF(Py_None); resultobj = Py_None;
17613 return resultobj;
17614 fail:
17615 return NULL;
17616}
17617
17618
17619static PyObject *_wrap_ShowEvent_GetShow(PyObject *self, PyObject *args, PyObject *kwargs) {
17620 PyObject *resultobj;
17621 wxShowEvent *arg1 = (wxShowEvent *) 0 ;
17622 bool result;
17623 PyObject * obj0 = 0 ;
17624 char *kwnames[] = {
17625 (char *) "self", NULL
17626 };
17627
17628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ShowEvent_GetShow",kwnames,&obj0)) goto fail;
17629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxShowEvent,
17630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17631 {
17632 PyThreadState* __tstate = wxPyBeginAllowThreads();
17633 result = (bool)((wxShowEvent const *)arg1)->GetShow();
17634
17635 wxPyEndAllowThreads(__tstate);
17636 if (PyErr_Occurred()) SWIG_fail;
17637 }
17638 {
17639 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17640 }
17641 return resultobj;
17642 fail:
17643 return NULL;
17644}
17645
17646
17647static PyObject * ShowEvent_swigregister(PyObject *self, PyObject *args) {
17648 PyObject *obj;
17649 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17650 SWIG_TypeClientData(SWIGTYPE_p_wxShowEvent, obj);
17651 Py_INCREF(obj);
17652 return Py_BuildValue((char *)"");
17653}
17654static PyObject *_wrap_new_IconizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17655 PyObject *resultobj;
17656 int arg1 = (int) 0 ;
17657 bool arg2 = (bool) True ;
17658 wxIconizeEvent *result;
17659 PyObject * obj0 = 0 ;
17660 PyObject * obj1 = 0 ;
17661 char *kwnames[] = {
17662 (char *) "id",(char *) "iconized", NULL
17663 };
17664
17665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconizeEvent",kwnames,&obj0,&obj1)) goto fail;
17666 if (obj0) {
17667 arg1 = (int) SWIG_AsInt(obj0);
17668 if (PyErr_Occurred()) SWIG_fail;
17669 }
17670 if (obj1) {
17671 arg2 = (bool) SWIG_AsBool(obj1);
17672 if (PyErr_Occurred()) SWIG_fail;
17673 }
17674 {
17675 PyThreadState* __tstate = wxPyBeginAllowThreads();
17676 result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2);
17677
17678 wxPyEndAllowThreads(__tstate);
17679 if (PyErr_Occurred()) SWIG_fail;
17680 }
17681 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconizeEvent, 1);
17682 return resultobj;
17683 fail:
17684 return NULL;
17685}
17686
17687
17688static PyObject *_wrap_IconizeEvent_Iconized(PyObject *self, PyObject *args, PyObject *kwargs) {
17689 PyObject *resultobj;
17690 wxIconizeEvent *arg1 = (wxIconizeEvent *) 0 ;
17691 bool result;
17692 PyObject * obj0 = 0 ;
17693 char *kwnames[] = {
17694 (char *) "self", NULL
17695 };
17696
17697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconizeEvent_Iconized",kwnames,&obj0)) goto fail;
17698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconizeEvent,
17699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17700 {
17701 PyThreadState* __tstate = wxPyBeginAllowThreads();
17702 result = (bool)(arg1)->Iconized();
17703
17704 wxPyEndAllowThreads(__tstate);
17705 if (PyErr_Occurred()) SWIG_fail;
17706 }
17707 {
17708 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17709 }
17710 return resultobj;
17711 fail:
17712 return NULL;
17713}
17714
17715
17716static PyObject * IconizeEvent_swigregister(PyObject *self, PyObject *args) {
17717 PyObject *obj;
17718 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17719 SWIG_TypeClientData(SWIGTYPE_p_wxIconizeEvent, obj);
17720 Py_INCREF(obj);
17721 return Py_BuildValue((char *)"");
17722}
17723static PyObject *_wrap_new_MaximizeEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17724 PyObject *resultobj;
17725 int arg1 = (int) 0 ;
17726 wxMaximizeEvent *result;
17727 PyObject * obj0 = 0 ;
17728 char *kwnames[] = {
17729 (char *) "id", NULL
17730 };
17731
17732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MaximizeEvent",kwnames,&obj0)) goto fail;
17733 if (obj0) {
17734 arg1 = (int) SWIG_AsInt(obj0);
17735 if (PyErr_Occurred()) SWIG_fail;
17736 }
17737 {
17738 PyThreadState* __tstate = wxPyBeginAllowThreads();
17739 result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1);
17740
17741 wxPyEndAllowThreads(__tstate);
17742 if (PyErr_Occurred()) SWIG_fail;
17743 }
17744 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMaximizeEvent, 1);
17745 return resultobj;
17746 fail:
17747 return NULL;
17748}
17749
17750
17751static PyObject * MaximizeEvent_swigregister(PyObject *self, PyObject *args) {
17752 PyObject *obj;
17753 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17754 SWIG_TypeClientData(SWIGTYPE_p_wxMaximizeEvent, obj);
17755 Py_INCREF(obj);
17756 return Py_BuildValue((char *)"");
17757}
17758static PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
17759 PyObject *resultobj;
17760 wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ;
17761 wxPoint result;
17762 PyObject * obj0 = 0 ;
17763 char *kwnames[] = {
17764 (char *) "self", NULL
17765 };
17766
17767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetPosition",kwnames,&obj0)) goto fail;
17768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent,
17769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17770 {
17771 PyThreadState* __tstate = wxPyBeginAllowThreads();
17772 result = (arg1)->GetPosition();
17773
17774 wxPyEndAllowThreads(__tstate);
17775 if (PyErr_Occurred()) SWIG_fail;
17776 }
17777 {
17778 wxPoint * resultptr;
17779 resultptr = new wxPoint((wxPoint &) result);
17780 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
17781 }
17782 return resultobj;
17783 fail:
17784 return NULL;
17785}
17786
17787
17788static PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
17789 PyObject *resultobj;
17790 wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ;
17791 int result;
17792 PyObject * obj0 = 0 ;
17793 char *kwnames[] = {
17794 (char *) "self", NULL
17795 };
17796
17797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetNumberOfFiles",kwnames,&obj0)) goto fail;
17798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent,
17799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17800 {
17801 PyThreadState* __tstate = wxPyBeginAllowThreads();
17802 result = (int)(arg1)->GetNumberOfFiles();
17803
17804 wxPyEndAllowThreads(__tstate);
17805 if (PyErr_Occurred()) SWIG_fail;
17806 }
17807 resultobj = SWIG_FromInt((int)result);
17808 return resultobj;
17809 fail:
17810 return NULL;
17811}
17812
17813
17814static PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
17815 PyObject *resultobj;
17816 wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ;
17817 PyObject *result;
17818 PyObject * obj0 = 0 ;
17819 char *kwnames[] = {
17820 (char *) "self", NULL
17821 };
17822
17823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropFilesEvent_GetFiles",kwnames,&obj0)) goto fail;
17824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDropFilesEvent,
17825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17826 {
17827 PyThreadState* __tstate = wxPyBeginAllowThreads();
17828 result = (PyObject *)wxDropFilesEvent_GetFiles(arg1);
17829
17830 wxPyEndAllowThreads(__tstate);
17831 if (PyErr_Occurred()) SWIG_fail;
17832 }
17833 resultobj = result;
17834 return resultobj;
17835 fail:
17836 return NULL;
17837}
17838
17839
17840static PyObject * DropFilesEvent_swigregister(PyObject *self, PyObject *args) {
17841 PyObject *obj;
17842 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17843 SWIG_TypeClientData(SWIGTYPE_p_wxDropFilesEvent, obj);
17844 Py_INCREF(obj);
17845 return Py_BuildValue((char *)"");
17846}
17847static PyObject *_wrap_new_UpdateUIEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
17848 PyObject *resultobj;
17849 int arg1 = (int) 0 ;
17850 wxUpdateUIEvent *result;
17851 PyObject * obj0 = 0 ;
17852 char *kwnames[] = {
17853 (char *) "commandId", NULL
17854 };
17855
17856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_UpdateUIEvent",kwnames,&obj0)) goto fail;
17857 if (obj0) {
17858 arg1 = (int) SWIG_AsInt(obj0);
17859 if (PyErr_Occurred()) SWIG_fail;
17860 }
17861 {
17862 PyThreadState* __tstate = wxPyBeginAllowThreads();
17863 result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1);
17864
17865 wxPyEndAllowThreads(__tstate);
17866 if (PyErr_Occurred()) SWIG_fail;
17867 }
17868 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxUpdateUIEvent, 1);
17869 return resultobj;
17870 fail:
17871 return NULL;
17872}
17873
17874
17875static PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
17876 PyObject *resultobj;
17877 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
17878 bool result;
17879 PyObject * obj0 = 0 ;
17880 char *kwnames[] = {
17881 (char *) "self", NULL
17882 };
17883
17884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetChecked",kwnames,&obj0)) goto fail;
17885 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
17886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17887 {
17888 PyThreadState* __tstate = wxPyBeginAllowThreads();
17889 result = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked();
17890
17891 wxPyEndAllowThreads(__tstate);
17892 if (PyErr_Occurred()) SWIG_fail;
17893 }
17894 {
17895 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17896 }
17897 return resultobj;
17898 fail:
17899 return NULL;
17900}
17901
17902
17903static PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
17904 PyObject *resultobj;
17905 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
17906 bool result;
17907 PyObject * obj0 = 0 ;
17908 char *kwnames[] = {
17909 (char *) "self", NULL
17910 };
17911
17912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetEnabled",kwnames,&obj0)) goto fail;
17913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
17914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17915 {
17916 PyThreadState* __tstate = wxPyBeginAllowThreads();
17917 result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled();
17918
17919 wxPyEndAllowThreads(__tstate);
17920 if (PyErr_Occurred()) SWIG_fail;
17921 }
17922 {
17923 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17924 }
17925 return resultobj;
17926 fail:
17927 return NULL;
17928}
17929
17930
17931static PyObject *_wrap_UpdateUIEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
17932 PyObject *resultobj;
17933 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
17934 wxString result;
17935 PyObject * obj0 = 0 ;
17936 char *kwnames[] = {
17937 (char *) "self", NULL
17938 };
17939
17940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetText",kwnames,&obj0)) goto fail;
17941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
17942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17943 {
17944 PyThreadState* __tstate = wxPyBeginAllowThreads();
17945 result = ((wxUpdateUIEvent const *)arg1)->GetText();
17946
17947 wxPyEndAllowThreads(__tstate);
17948 if (PyErr_Occurred()) SWIG_fail;
17949 }
17950 {
17951#if wxUSE_UNICODE
17952 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17953#else
17954 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17955#endif
17956 }
17957 return resultobj;
17958 fail:
17959 return NULL;
17960}
17961
17962
17963static PyObject *_wrap_UpdateUIEvent_GetSetText(PyObject *self, PyObject *args, PyObject *kwargs) {
17964 PyObject *resultobj;
17965 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
17966 bool result;
17967 PyObject * obj0 = 0 ;
17968 char *kwnames[] = {
17969 (char *) "self", NULL
17970 };
17971
17972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetText",kwnames,&obj0)) goto fail;
17973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
17974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17975 {
17976 PyThreadState* __tstate = wxPyBeginAllowThreads();
17977 result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetText();
17978
17979 wxPyEndAllowThreads(__tstate);
17980 if (PyErr_Occurred()) SWIG_fail;
17981 }
17982 {
17983 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17984 }
17985 return resultobj;
17986 fail:
17987 return NULL;
17988}
17989
17990
17991static PyObject *_wrap_UpdateUIEvent_GetSetChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
17992 PyObject *resultobj;
17993 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
17994 bool result;
17995 PyObject * obj0 = 0 ;
17996 char *kwnames[] = {
17997 (char *) "self", NULL
17998 };
17999
18000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetChecked",kwnames,&obj0)) goto fail;
18001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
18002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18003 {
18004 PyThreadState* __tstate = wxPyBeginAllowThreads();
18005 result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked();
18006
18007 wxPyEndAllowThreads(__tstate);
18008 if (PyErr_Occurred()) SWIG_fail;
18009 }
18010 {
18011 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18012 }
18013 return resultobj;
18014 fail:
18015 return NULL;
18016}
18017
18018
18019static PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
18020 PyObject *resultobj;
18021 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
18022 bool result;
18023 PyObject * obj0 = 0 ;
18024 char *kwnames[] = {
18025 (char *) "self", NULL
18026 };
18027
18028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_GetSetEnabled",kwnames,&obj0)) goto fail;
18029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
18030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18031 {
18032 PyThreadState* __tstate = wxPyBeginAllowThreads();
18033 result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled();
18034
18035 wxPyEndAllowThreads(__tstate);
18036 if (PyErr_Occurred()) SWIG_fail;
18037 }
18038 {
18039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18040 }
18041 return resultobj;
18042 fail:
18043 return NULL;
18044}
18045
18046
18047static PyObject *_wrap_UpdateUIEvent_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
18048 PyObject *resultobj;
18049 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
18050 bool arg2 ;
18051 PyObject * obj0 = 0 ;
18052 PyObject * obj1 = 0 ;
18053 char *kwnames[] = {
18054 (char *) "self",(char *) "check", NULL
18055 };
18056
18057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) goto fail;
18058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
18059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18060 arg2 = (bool) SWIG_AsBool(obj1);
18061 if (PyErr_Occurred()) SWIG_fail;
18062 {
18063 PyThreadState* __tstate = wxPyBeginAllowThreads();
18064 (arg1)->Check(arg2);
18065
18066 wxPyEndAllowThreads(__tstate);
18067 if (PyErr_Occurred()) SWIG_fail;
18068 }
18069 Py_INCREF(Py_None); resultobj = Py_None;
18070 return resultobj;
18071 fail:
18072 return NULL;
18073}
18074
18075
18076static PyObject *_wrap_UpdateUIEvent_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
18077 PyObject *resultobj;
18078 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
18079 bool arg2 ;
18080 PyObject * obj0 = 0 ;
18081 PyObject * obj1 = 0 ;
18082 char *kwnames[] = {
18083 (char *) "self",(char *) "enable", NULL
18084 };
18085
18086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) goto fail;
18087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
18088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18089 arg2 = (bool) SWIG_AsBool(obj1);
18090 if (PyErr_Occurred()) SWIG_fail;
18091 {
18092 PyThreadState* __tstate = wxPyBeginAllowThreads();
18093 (arg1)->Enable(arg2);
18094
18095 wxPyEndAllowThreads(__tstate);
18096 if (PyErr_Occurred()) SWIG_fail;
18097 }
18098 Py_INCREF(Py_None); resultobj = Py_None;
18099 return resultobj;
18100 fail:
18101 return NULL;
18102}
18103
18104
18105static PyObject *_wrap_UpdateUIEvent_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
18106 PyObject *resultobj;
18107 wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
18108 wxString *arg2 = 0 ;
18109 bool temp2 = False ;
18110 PyObject * obj0 = 0 ;
18111 PyObject * obj1 = 0 ;
18112 char *kwnames[] = {
18113 (char *) "self",(char *) "text", NULL
18114 };
18115
18116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) goto fail;
18117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxUpdateUIEvent,
18118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18119 {
18120 arg2 = wxString_in_helper(obj1);
18121 if (arg2 == NULL) SWIG_fail;
18122 temp2 = True;
18123 }
18124 {
18125 PyThreadState* __tstate = wxPyBeginAllowThreads();
18126 (arg1)->SetText((wxString const &)*arg2);
18127
18128 wxPyEndAllowThreads(__tstate);
18129 if (PyErr_Occurred()) SWIG_fail;
18130 }
18131 Py_INCREF(Py_None); resultobj = Py_None;
18132 {
18133 if (temp2)
18134 delete arg2;
18135 }
18136 return resultobj;
18137 fail:
18138 {
18139 if (temp2)
18140 delete arg2;
18141 }
18142 return NULL;
18143}
18144
18145
18146static PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
18147 PyObject *resultobj;
18148 long arg1 ;
18149 PyObject * obj0 = 0 ;
18150 char *kwnames[] = {
18151 (char *) "updateInterval", NULL
18152 };
18153
18154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetUpdateInterval",kwnames,&obj0)) goto fail;
18155 arg1 = (long) SWIG_AsLong(obj0);
18156 if (PyErr_Occurred()) SWIG_fail;
18157 {
18158 PyThreadState* __tstate = wxPyBeginAllowThreads();
18159 wxUpdateUIEvent::SetUpdateInterval(arg1);
18160
18161 wxPyEndAllowThreads(__tstate);
18162 if (PyErr_Occurred()) SWIG_fail;
18163 }
18164 Py_INCREF(Py_None); resultobj = Py_None;
18165 return resultobj;
18166 fail:
18167 return NULL;
18168}
18169
18170
18171static PyObject *_wrap_UpdateUIEvent_GetUpdateInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
18172 PyObject *resultobj;
18173 long result;
18174 char *kwnames[] = {
18175 NULL
18176 };
18177
18178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetUpdateInterval",kwnames)) goto fail;
18179 {
18180 PyThreadState* __tstate = wxPyBeginAllowThreads();
18181 result = (long)wxUpdateUIEvent::GetUpdateInterval();
18182
18183 wxPyEndAllowThreads(__tstate);
18184 if (PyErr_Occurred()) SWIG_fail;
18185 }
18186 resultobj = SWIG_FromLong((long)result);
18187 return resultobj;
18188 fail:
18189 return NULL;
18190}
18191
18192
18193static PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *self, PyObject *args, PyObject *kwargs) {
18194 PyObject *resultobj;
18195 wxWindow *arg1 = (wxWindow *) 0 ;
18196 bool result;
18197 PyObject * obj0 = 0 ;
18198 char *kwnames[] = {
18199 (char *) "win", NULL
18200 };
18201
18202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) goto fail;
18203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
18204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18205 {
18206 PyThreadState* __tstate = wxPyBeginAllowThreads();
18207 result = (bool)wxUpdateUIEvent::CanUpdate(arg1);
18208
18209 wxPyEndAllowThreads(__tstate);
18210 if (PyErr_Occurred()) SWIG_fail;
18211 }
18212 {
18213 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18214 }
18215 return resultobj;
18216 fail:
18217 return NULL;
18218}
18219
18220
18221static PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
18222 PyObject *resultobj;
18223 char *kwnames[] = {
18224 NULL
18225 };
18226
18227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_ResetUpdateTime",kwnames)) goto fail;
18228 {
18229 PyThreadState* __tstate = wxPyBeginAllowThreads();
18230 wxUpdateUIEvent::ResetUpdateTime();
18231
18232 wxPyEndAllowThreads(__tstate);
18233 if (PyErr_Occurred()) SWIG_fail;
18234 }
18235 Py_INCREF(Py_None); resultobj = Py_None;
18236 return resultobj;
18237 fail:
18238 return NULL;
18239}
18240
18241
18242static PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) {
18243 PyObject *resultobj;
18244 int arg1 ;
18245 PyObject * obj0 = 0 ;
18246 char *kwnames[] = {
18247 (char *) "mode", NULL
18248 };
18249
18250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetMode",kwnames,&obj0)) goto fail;
18251 arg1 = (wxUpdateUIMode) SWIG_AsInt(obj0);
18252 if (PyErr_Occurred()) SWIG_fail;
18253 {
18254 PyThreadState* __tstate = wxPyBeginAllowThreads();
18255 wxUpdateUIEvent::SetMode((wxUpdateUIMode )arg1);
18256
18257 wxPyEndAllowThreads(__tstate);
18258 if (PyErr_Occurred()) SWIG_fail;
18259 }
18260 Py_INCREF(Py_None); resultobj = Py_None;
18261 return resultobj;
18262 fail:
18263 return NULL;
18264}
18265
18266
18267static PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) {
18268 PyObject *resultobj;
18269 int result;
18270 char *kwnames[] = {
18271 NULL
18272 };
18273
18274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":UpdateUIEvent_GetMode",kwnames)) goto fail;
18275 {
18276 PyThreadState* __tstate = wxPyBeginAllowThreads();
18277 result = (int)wxUpdateUIEvent::GetMode();
18278
18279 wxPyEndAllowThreads(__tstate);
18280 if (PyErr_Occurred()) SWIG_fail;
18281 }
18282 resultobj = SWIG_FromInt((int)result);
18283 return resultobj;
18284 fail:
18285 return NULL;
18286}
18287
18288
18289static PyObject * UpdateUIEvent_swigregister(PyObject *self, PyObject *args) {
18290 PyObject *obj;
18291 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18292 SWIG_TypeClientData(SWIGTYPE_p_wxUpdateUIEvent, obj);
18293 Py_INCREF(obj);
18294 return Py_BuildValue((char *)"");
18295}
18296static PyObject *_wrap_new_SysColourChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18297 PyObject *resultobj;
18298 wxSysColourChangedEvent *result;
18299 char *kwnames[] = {
18300 NULL
18301 };
18302
18303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SysColourChangedEvent",kwnames)) goto fail;
18304 {
18305 PyThreadState* __tstate = wxPyBeginAllowThreads();
18306 result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent();
18307
18308 wxPyEndAllowThreads(__tstate);
18309 if (PyErr_Occurred()) SWIG_fail;
18310 }
18311 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSysColourChangedEvent, 1);
18312 return resultobj;
18313 fail:
18314 return NULL;
18315}
18316
18317
18318static PyObject * SysColourChangedEvent_swigregister(PyObject *self, PyObject *args) {
18319 PyObject *obj;
18320 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18321 SWIG_TypeClientData(SWIGTYPE_p_wxSysColourChangedEvent, obj);
18322 Py_INCREF(obj);
18323 return Py_BuildValue((char *)"");
18324}
18325static PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18326 PyObject *resultobj;
18327 int arg1 = (int) 0 ;
18328 wxWindow *arg2 = (wxWindow *) NULL ;
18329 wxMouseCaptureChangedEvent *result;
18330 PyObject * obj0 = 0 ;
18331 PyObject * obj1 = 0 ;
18332 char *kwnames[] = {
18333 (char *) "winid",(char *) "gainedCapture", NULL
18334 };
18335
18336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MouseCaptureChangedEvent",kwnames,&obj0,&obj1)) goto fail;
18337 if (obj0) {
18338 arg1 = (int) SWIG_AsInt(obj0);
18339 if (PyErr_Occurred()) SWIG_fail;
18340 }
18341 if (obj1) {
18342 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
18343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18344 }
18345 {
18346 PyThreadState* __tstate = wxPyBeginAllowThreads();
18347 result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2);
18348
18349 wxPyEndAllowThreads(__tstate);
18350 if (PyErr_Occurred()) SWIG_fail;
18351 }
18352 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseCaptureChangedEvent, 1);
18353 return resultobj;
18354 fail:
18355 return NULL;
18356}
18357
18358
18359static PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
18360 PyObject *resultobj;
18361 wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ;
18362 wxWindow *result;
18363 PyObject * obj0 = 0 ;
18364 char *kwnames[] = {
18365 (char *) "self", NULL
18366 };
18367
18368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MouseCaptureChangedEvent_GetCapturedWindow",kwnames,&obj0)) goto fail;
18369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMouseCaptureChangedEvent,
18370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18371 {
18372 PyThreadState* __tstate = wxPyBeginAllowThreads();
18373 result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow();
18374
18375 wxPyEndAllowThreads(__tstate);
18376 if (PyErr_Occurred()) SWIG_fail;
18377 }
18378 {
412d302d 18379 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
18380 }
18381 return resultobj;
18382 fail:
18383 return NULL;
18384}
18385
18386
18387static PyObject * MouseCaptureChangedEvent_swigregister(PyObject *self, PyObject *args) {
18388 PyObject *obj;
18389 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18390 SWIG_TypeClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, obj);
18391 Py_INCREF(obj);
18392 return Py_BuildValue((char *)"");
18393}
18394static PyObject *_wrap_new_DisplayChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18395 PyObject *resultobj;
18396 wxDisplayChangedEvent *result;
18397 char *kwnames[] = {
18398 NULL
18399 };
18400
18401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DisplayChangedEvent",kwnames)) goto fail;
18402 {
18403 PyThreadState* __tstate = wxPyBeginAllowThreads();
18404 result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent();
18405
18406 wxPyEndAllowThreads(__tstate);
18407 if (PyErr_Occurred()) SWIG_fail;
18408 }
18409 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplayChangedEvent, 1);
18410 return resultobj;
18411 fail:
18412 return NULL;
18413}
18414
18415
18416static PyObject * DisplayChangedEvent_swigregister(PyObject *self, PyObject *args) {
18417 PyObject *obj;
18418 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18419 SWIG_TypeClientData(SWIGTYPE_p_wxDisplayChangedEvent, obj);
18420 Py_INCREF(obj);
18421 return Py_BuildValue((char *)"");
18422}
18423static PyObject *_wrap_new_PaletteChangedEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18424 PyObject *resultobj;
18425 int arg1 = (int) 0 ;
18426 wxPaletteChangedEvent *result;
18427 PyObject * obj0 = 0 ;
18428 char *kwnames[] = {
18429 (char *) "id", NULL
18430 };
18431
18432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaletteChangedEvent",kwnames,&obj0)) goto fail;
18433 if (obj0) {
18434 arg1 = (int) SWIG_AsInt(obj0);
18435 if (PyErr_Occurred()) SWIG_fail;
18436 }
18437 {
18438 PyThreadState* __tstate = wxPyBeginAllowThreads();
18439 result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1);
18440
18441 wxPyEndAllowThreads(__tstate);
18442 if (PyErr_Occurred()) SWIG_fail;
18443 }
18444 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaletteChangedEvent, 1);
18445 return resultobj;
18446 fail:
18447 return NULL;
18448}
18449
18450
18451static PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
18452 PyObject *resultobj;
18453 wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ;
18454 wxWindow *arg2 = (wxWindow *) 0 ;
18455 PyObject * obj0 = 0 ;
18456 PyObject * obj1 = 0 ;
18457 char *kwnames[] = {
18458 (char *) "self",(char *) "win", NULL
18459 };
18460
18461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) goto fail;
18462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent,
18463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18464 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
18465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18466 {
18467 PyThreadState* __tstate = wxPyBeginAllowThreads();
18468 (arg1)->SetChangedWindow(arg2);
18469
18470 wxPyEndAllowThreads(__tstate);
18471 if (PyErr_Occurred()) SWIG_fail;
18472 }
18473 Py_INCREF(Py_None); resultobj = Py_None;
18474 return resultobj;
18475 fail:
18476 return NULL;
18477}
18478
18479
18480static PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
18481 PyObject *resultobj;
18482 wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ;
18483 wxWindow *result;
18484 PyObject * obj0 = 0 ;
18485 char *kwnames[] = {
18486 (char *) "self", NULL
18487 };
18488
18489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PaletteChangedEvent_GetChangedWindow",kwnames,&obj0)) goto fail;
18490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPaletteChangedEvent,
18491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18492 {
18493 PyThreadState* __tstate = wxPyBeginAllowThreads();
18494 result = (wxWindow *)(arg1)->GetChangedWindow();
18495
18496 wxPyEndAllowThreads(__tstate);
18497 if (PyErr_Occurred()) SWIG_fail;
18498 }
18499 {
412d302d 18500 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
18501 }
18502 return resultobj;
18503 fail:
18504 return NULL;
18505}
18506
18507
18508static PyObject * PaletteChangedEvent_swigregister(PyObject *self, PyObject *args) {
18509 PyObject *obj;
18510 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18511 SWIG_TypeClientData(SWIGTYPE_p_wxPaletteChangedEvent, obj);
18512 Py_INCREF(obj);
18513 return Py_BuildValue((char *)"");
18514}
18515static PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18516 PyObject *resultobj;
18517 int arg1 = (int) 0 ;
18518 wxQueryNewPaletteEvent *result;
18519 PyObject * obj0 = 0 ;
18520 char *kwnames[] = {
18521 (char *) "winid", NULL
18522 };
18523
18524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryNewPaletteEvent",kwnames,&obj0)) goto fail;
18525 if (obj0) {
18526 arg1 = (int) SWIG_AsInt(obj0);
18527 if (PyErr_Occurred()) SWIG_fail;
18528 }
18529 {
18530 PyThreadState* __tstate = wxPyBeginAllowThreads();
18531 result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1);
18532
18533 wxPyEndAllowThreads(__tstate);
18534 if (PyErr_Occurred()) SWIG_fail;
18535 }
18536 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxQueryNewPaletteEvent, 1);
18537 return resultobj;
18538 fail:
18539 return NULL;
18540}
18541
18542
18543static PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) {
18544 PyObject *resultobj;
18545 wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ;
18546 bool arg2 ;
18547 PyObject * obj0 = 0 ;
18548 PyObject * obj1 = 0 ;
18549 char *kwnames[] = {
18550 (char *) "self",(char *) "realized", NULL
18551 };
18552
18553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) goto fail;
18554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent,
18555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18556 arg2 = (bool) SWIG_AsBool(obj1);
18557 if (PyErr_Occurred()) SWIG_fail;
18558 {
18559 PyThreadState* __tstate = wxPyBeginAllowThreads();
18560 (arg1)->SetPaletteRealized(arg2);
18561
18562 wxPyEndAllowThreads(__tstate);
18563 if (PyErr_Occurred()) SWIG_fail;
18564 }
18565 Py_INCREF(Py_None); resultobj = Py_None;
18566 return resultobj;
18567 fail:
18568 return NULL;
18569}
18570
18571
18572static PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *self, PyObject *args, PyObject *kwargs) {
18573 PyObject *resultobj;
18574 wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ;
18575 bool result;
18576 PyObject * obj0 = 0 ;
18577 char *kwnames[] = {
18578 (char *) "self", NULL
18579 };
18580
18581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:QueryNewPaletteEvent_GetPaletteRealized",kwnames,&obj0)) goto fail;
18582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxQueryNewPaletteEvent,
18583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18584 {
18585 PyThreadState* __tstate = wxPyBeginAllowThreads();
18586 result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized();
18587
18588 wxPyEndAllowThreads(__tstate);
18589 if (PyErr_Occurred()) SWIG_fail;
18590 }
18591 {
18592 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18593 }
18594 return resultobj;
18595 fail:
18596 return NULL;
18597}
18598
18599
18600static PyObject * QueryNewPaletteEvent_swigregister(PyObject *self, PyObject *args) {
18601 PyObject *obj;
18602 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18603 SWIG_TypeClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, obj);
18604 Py_INCREF(obj);
18605 return Py_BuildValue((char *)"");
18606}
18607static PyObject *_wrap_new_NavigationKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18608 PyObject *resultobj;
18609 wxNavigationKeyEvent *result;
18610 char *kwnames[] = {
18611 NULL
18612 };
18613
18614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NavigationKeyEvent",kwnames)) goto fail;
18615 {
18616 PyThreadState* __tstate = wxPyBeginAllowThreads();
18617 result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent();
18618
18619 wxPyEndAllowThreads(__tstate);
18620 if (PyErr_Occurred()) SWIG_fail;
18621 }
18622 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNavigationKeyEvent, 1);
18623 return resultobj;
18624 fail:
18625 return NULL;
18626}
18627
18628
18629static PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *self, PyObject *args, PyObject *kwargs) {
18630 PyObject *resultobj;
18631 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
18632 bool result;
18633 PyObject * obj0 = 0 ;
18634 char *kwnames[] = {
18635 (char *) "self", NULL
18636 };
18637
18638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetDirection",kwnames,&obj0)) goto fail;
18639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
18640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18641 {
18642 PyThreadState* __tstate = wxPyBeginAllowThreads();
18643 result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection();
18644
18645 wxPyEndAllowThreads(__tstate);
18646 if (PyErr_Occurred()) SWIG_fail;
18647 }
18648 {
18649 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18650 }
18651 return resultobj;
18652 fail:
18653 return NULL;
18654}
18655
18656
18657static PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *self, PyObject *args, PyObject *kwargs) {
18658 PyObject *resultobj;
18659 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
18660 bool arg2 ;
18661 PyObject * obj0 = 0 ;
18662 PyObject * obj1 = 0 ;
18663 char *kwnames[] = {
908b74cd 18664 (char *) "self",(char *) "forward", NULL
d55e5bfc
RD
18665 };
18666
18667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) goto fail;
18668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
18669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18670 arg2 = (bool) SWIG_AsBool(obj1);
18671 if (PyErr_Occurred()) SWIG_fail;
18672 {
18673 PyThreadState* __tstate = wxPyBeginAllowThreads();
18674 (arg1)->SetDirection(arg2);
18675
18676 wxPyEndAllowThreads(__tstate);
18677 if (PyErr_Occurred()) SWIG_fail;
18678 }
18679 Py_INCREF(Py_None); resultobj = Py_None;
18680 return resultobj;
18681 fail:
18682 return NULL;
18683}
18684
18685
18686static PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) {
18687 PyObject *resultobj;
18688 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
18689 bool result;
18690 PyObject * obj0 = 0 ;
18691 char *kwnames[] = {
18692 (char *) "self", NULL
18693 };
18694
18695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_IsWindowChange",kwnames,&obj0)) goto fail;
18696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
18697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18698 {
18699 PyThreadState* __tstate = wxPyBeginAllowThreads();
18700 result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange();
18701
18702 wxPyEndAllowThreads(__tstate);
18703 if (PyErr_Occurred()) SWIG_fail;
18704 }
18705 {
18706 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18707 }
18708 return resultobj;
18709 fail:
18710 return NULL;
18711}
18712
18713
18714static PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *self, PyObject *args, PyObject *kwargs) {
18715 PyObject *resultobj;
18716 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
18717 bool arg2 ;
18718 PyObject * obj0 = 0 ;
18719 PyObject * obj1 = 0 ;
18720 char *kwnames[] = {
908b74cd 18721 (char *) "self",(char *) "ischange", NULL
d55e5bfc
RD
18722 };
18723
18724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) goto fail;
18725 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
18726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18727 arg2 = (bool) SWIG_AsBool(obj1);
18728 if (PyErr_Occurred()) SWIG_fail;
18729 {
18730 PyThreadState* __tstate = wxPyBeginAllowThreads();
18731 (arg1)->SetWindowChange(arg2);
18732
18733 wxPyEndAllowThreads(__tstate);
18734 if (PyErr_Occurred()) SWIG_fail;
18735 }
18736 Py_INCREF(Py_None); resultobj = Py_None;
18737 return resultobj;
18738 fail:
18739 return NULL;
18740}
18741
18742
908b74cd
RD
18743static PyObject *_wrap_NavigationKeyEvent_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
18744 PyObject *resultobj;
18745 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
18746 long arg2 ;
18747 PyObject * obj0 = 0 ;
18748 PyObject * obj1 = 0 ;
18749 char *kwnames[] = {
18750 (char *) "self",(char *) "flags", NULL
18751 };
18752
18753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetFlags",kwnames,&obj0,&obj1)) goto fail;
18754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
18755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18756 arg2 = (long) SWIG_AsLong(obj1);
18757 if (PyErr_Occurred()) SWIG_fail;
18758 {
18759 PyThreadState* __tstate = wxPyBeginAllowThreads();
18760 (arg1)->SetFlags(arg2);
18761
18762 wxPyEndAllowThreads(__tstate);
18763 if (PyErr_Occurred()) SWIG_fail;
18764 }
18765 Py_INCREF(Py_None); resultobj = Py_None;
18766 return resultobj;
18767 fail:
18768 return NULL;
18769}
18770
18771
d55e5bfc
RD
18772static PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
18773 PyObject *resultobj;
18774 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
18775 wxWindow *result;
18776 PyObject * obj0 = 0 ;
18777 char *kwnames[] = {
18778 (char *) "self", NULL
18779 };
18780
18781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NavigationKeyEvent_GetCurrentFocus",kwnames,&obj0)) goto fail;
18782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
18783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18784 {
18785 PyThreadState* __tstate = wxPyBeginAllowThreads();
18786 result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus();
18787
18788 wxPyEndAllowThreads(__tstate);
18789 if (PyErr_Occurred()) SWIG_fail;
18790 }
18791 {
412d302d 18792 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
18793 }
18794 return resultobj;
18795 fail:
18796 return NULL;
18797}
18798
18799
18800static PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
18801 PyObject *resultobj;
18802 wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
18803 wxWindow *arg2 = (wxWindow *) 0 ;
18804 PyObject * obj0 = 0 ;
18805 PyObject * obj1 = 0 ;
18806 char *kwnames[] = {
18807 (char *) "self",(char *) "win", NULL
18808 };
18809
18810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) goto fail;
18811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNavigationKeyEvent,
18812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18813 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
18814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18815 {
18816 PyThreadState* __tstate = wxPyBeginAllowThreads();
18817 (arg1)->SetCurrentFocus(arg2);
18818
18819 wxPyEndAllowThreads(__tstate);
18820 if (PyErr_Occurred()) SWIG_fail;
18821 }
18822 Py_INCREF(Py_None); resultobj = Py_None;
18823 return resultobj;
18824 fail:
18825 return NULL;
18826}
18827
18828
18829static PyObject * NavigationKeyEvent_swigregister(PyObject *self, PyObject *args) {
18830 PyObject *obj;
18831 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18832 SWIG_TypeClientData(SWIGTYPE_p_wxNavigationKeyEvent, obj);
18833 Py_INCREF(obj);
18834 return Py_BuildValue((char *)"");
18835}
18836static PyObject *_wrap_new_WindowCreateEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18837 PyObject *resultobj;
18838 wxWindow *arg1 = (wxWindow *) NULL ;
18839 wxWindowCreateEvent *result;
18840 PyObject * obj0 = 0 ;
18841 char *kwnames[] = {
18842 (char *) "win", NULL
18843 };
18844
18845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) goto fail;
18846 if (obj0) {
18847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
18848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18849 }
18850 {
18851 PyThreadState* __tstate = wxPyBeginAllowThreads();
18852 result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1);
18853
18854 wxPyEndAllowThreads(__tstate);
18855 if (PyErr_Occurred()) SWIG_fail;
18856 }
18857 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowCreateEvent, 1);
18858 return resultobj;
18859 fail:
18860 return NULL;
18861}
18862
18863
18864static PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
18865 PyObject *resultobj;
18866 wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ;
18867 wxWindow *result;
18868 PyObject * obj0 = 0 ;
18869 char *kwnames[] = {
18870 (char *) "self", NULL
18871 };
18872
18873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowCreateEvent_GetWindow",kwnames,&obj0)) goto fail;
18874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowCreateEvent,
18875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18876 {
18877 PyThreadState* __tstate = wxPyBeginAllowThreads();
18878 result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow();
18879
18880 wxPyEndAllowThreads(__tstate);
18881 if (PyErr_Occurred()) SWIG_fail;
18882 }
18883 {
412d302d 18884 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
18885 }
18886 return resultobj;
18887 fail:
18888 return NULL;
18889}
18890
18891
18892static PyObject * WindowCreateEvent_swigregister(PyObject *self, PyObject *args) {
18893 PyObject *obj;
18894 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18895 SWIG_TypeClientData(SWIGTYPE_p_wxWindowCreateEvent, obj);
18896 Py_INCREF(obj);
18897 return Py_BuildValue((char *)"");
18898}
18899static PyObject *_wrap_new_WindowDestroyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18900 PyObject *resultobj;
18901 wxWindow *arg1 = (wxWindow *) NULL ;
18902 wxWindowDestroyEvent *result;
18903 PyObject * obj0 = 0 ;
18904 char *kwnames[] = {
18905 (char *) "win", NULL
18906 };
18907
18908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) goto fail;
18909 if (obj0) {
18910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
18911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18912 }
18913 {
18914 PyThreadState* __tstate = wxPyBeginAllowThreads();
18915 result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1);
18916
18917 wxPyEndAllowThreads(__tstate);
18918 if (PyErr_Occurred()) SWIG_fail;
18919 }
18920 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDestroyEvent, 1);
18921 return resultobj;
18922 fail:
18923 return NULL;
18924}
18925
18926
18927static PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
18928 PyObject *resultobj;
18929 wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ;
18930 wxWindow *result;
18931 PyObject * obj0 = 0 ;
18932 char *kwnames[] = {
18933 (char *) "self", NULL
18934 };
18935
18936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:WindowDestroyEvent_GetWindow",kwnames,&obj0)) goto fail;
18937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDestroyEvent,
18938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18939 {
18940 PyThreadState* __tstate = wxPyBeginAllowThreads();
18941 result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow();
18942
18943 wxPyEndAllowThreads(__tstate);
18944 if (PyErr_Occurred()) SWIG_fail;
18945 }
18946 {
412d302d 18947 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
18948 }
18949 return resultobj;
18950 fail:
18951 return NULL;
18952}
18953
18954
18955static PyObject * WindowDestroyEvent_swigregister(PyObject *self, PyObject *args) {
18956 PyObject *obj;
18957 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18958 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDestroyEvent, obj);
18959 Py_INCREF(obj);
18960 return Py_BuildValue((char *)"");
18961}
18962static PyObject *_wrap_new_ContextMenuEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
18963 PyObject *resultobj;
18964 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
18965 int arg2 = (int) 0 ;
18966 wxPoint const &arg3_defvalue = wxDefaultPosition ;
18967 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
18968 wxContextMenuEvent *result;
18969 wxPoint temp3 ;
18970 PyObject * obj0 = 0 ;
18971 PyObject * obj1 = 0 ;
18972 PyObject * obj2 = 0 ;
18973 char *kwnames[] = {
18974 (char *) "type",(char *) "winid",(char *) "pt", NULL
18975 };
18976
18977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ContextMenuEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
18978 if (obj0) {
18979 arg1 = (wxEventType) SWIG_AsInt(obj0);
18980 if (PyErr_Occurred()) SWIG_fail;
18981 }
18982 if (obj1) {
18983 arg2 = (int) SWIG_AsInt(obj1);
18984 if (PyErr_Occurred()) SWIG_fail;
18985 }
18986 if (obj2) {
18987 {
18988 arg3 = &temp3;
18989 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18990 }
18991 }
18992 {
18993 PyThreadState* __tstate = wxPyBeginAllowThreads();
18994 result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3);
18995
18996 wxPyEndAllowThreads(__tstate);
18997 if (PyErr_Occurred()) SWIG_fail;
18998 }
18999 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextMenuEvent, 1);
19000 return resultobj;
19001 fail:
19002 return NULL;
19003}
19004
19005
19006static PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
19007 PyObject *resultobj;
19008 wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ;
19009 wxPoint *result;
19010 PyObject * obj0 = 0 ;
19011 char *kwnames[] = {
19012 (char *) "self", NULL
19013 };
19014
19015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextMenuEvent_GetPosition",kwnames,&obj0)) goto fail;
19016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent,
19017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19018 {
19019 PyThreadState* __tstate = wxPyBeginAllowThreads();
19020 {
19021 wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition();
19022 result = (wxPoint *) &_result_ref;
19023 }
19024
19025 wxPyEndAllowThreads(__tstate);
19026 if (PyErr_Occurred()) SWIG_fail;
19027 }
19028 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
19029 return resultobj;
19030 fail:
19031 return NULL;
19032}
19033
19034
19035static PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
19036 PyObject *resultobj;
19037 wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ;
19038 wxPoint *arg2 = 0 ;
19039 wxPoint temp2 ;
19040 PyObject * obj0 = 0 ;
19041 PyObject * obj1 = 0 ;
19042 char *kwnames[] = {
19043 (char *) "self",(char *) "pos", NULL
19044 };
19045
19046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
19047 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextMenuEvent,
19048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19049 {
19050 arg2 = &temp2;
19051 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19052 }
19053 {
19054 PyThreadState* __tstate = wxPyBeginAllowThreads();
19055 (arg1)->SetPosition((wxPoint const &)*arg2);
19056
19057 wxPyEndAllowThreads(__tstate);
19058 if (PyErr_Occurred()) SWIG_fail;
19059 }
19060 Py_INCREF(Py_None); resultobj = Py_None;
19061 return resultobj;
19062 fail:
19063 return NULL;
19064}
19065
19066
19067static PyObject * ContextMenuEvent_swigregister(PyObject *self, PyObject *args) {
19068 PyObject *obj;
19069 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19070 SWIG_TypeClientData(SWIGTYPE_p_wxContextMenuEvent, obj);
19071 Py_INCREF(obj);
19072 return Py_BuildValue((char *)"");
19073}
19074static PyObject *_wrap_new_IdleEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
19075 PyObject *resultobj;
19076 wxIdleEvent *result;
19077 char *kwnames[] = {
19078 NULL
19079 };
19080
19081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IdleEvent",kwnames)) goto fail;
19082 {
19083 PyThreadState* __tstate = wxPyBeginAllowThreads();
19084 result = (wxIdleEvent *)new wxIdleEvent();
19085
19086 wxPyEndAllowThreads(__tstate);
19087 if (PyErr_Occurred()) SWIG_fail;
19088 }
19089 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIdleEvent, 1);
19090 return resultobj;
19091 fail:
19092 return NULL;
19093}
19094
19095
19096static PyObject *_wrap_IdleEvent_RequestMore(PyObject *self, PyObject *args, PyObject *kwargs) {
19097 PyObject *resultobj;
19098 wxIdleEvent *arg1 = (wxIdleEvent *) 0 ;
19099 bool arg2 = (bool) True ;
19100 PyObject * obj0 = 0 ;
19101 PyObject * obj1 = 0 ;
19102 char *kwnames[] = {
19103 (char *) "self",(char *) "needMore", NULL
19104 };
19105
19106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) goto fail;
19107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent,
19108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19109 if (obj1) {
19110 arg2 = (bool) SWIG_AsBool(obj1);
19111 if (PyErr_Occurred()) SWIG_fail;
19112 }
19113 {
19114 PyThreadState* __tstate = wxPyBeginAllowThreads();
19115 (arg1)->RequestMore(arg2);
19116
19117 wxPyEndAllowThreads(__tstate);
19118 if (PyErr_Occurred()) SWIG_fail;
19119 }
19120 Py_INCREF(Py_None); resultobj = Py_None;
19121 return resultobj;
19122 fail:
19123 return NULL;
19124}
19125
19126
19127static PyObject *_wrap_IdleEvent_MoreRequested(PyObject *self, PyObject *args, PyObject *kwargs) {
19128 PyObject *resultobj;
19129 wxIdleEvent *arg1 = (wxIdleEvent *) 0 ;
19130 bool result;
19131 PyObject * obj0 = 0 ;
19132 char *kwnames[] = {
19133 (char *) "self", NULL
19134 };
19135
19136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_MoreRequested",kwnames,&obj0)) goto fail;
19137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIdleEvent,
19138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19139 {
19140 PyThreadState* __tstate = wxPyBeginAllowThreads();
19141 result = (bool)((wxIdleEvent const *)arg1)->MoreRequested();
19142
19143 wxPyEndAllowThreads(__tstate);
19144 if (PyErr_Occurred()) SWIG_fail;
19145 }
19146 {
19147 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19148 }
19149 return resultobj;
19150 fail:
19151 return NULL;
19152}
19153
19154
19155static PyObject *_wrap_IdleEvent_SetMode(PyObject *self, PyObject *args, PyObject *kwargs) {
19156 PyObject *resultobj;
19157 int arg1 ;
19158 PyObject * obj0 = 0 ;
19159 char *kwnames[] = {
19160 (char *) "mode", NULL
19161 };
19162
19163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_SetMode",kwnames,&obj0)) goto fail;
19164 arg1 = (wxIdleMode) SWIG_AsInt(obj0);
19165 if (PyErr_Occurred()) SWIG_fail;
19166 {
19167 PyThreadState* __tstate = wxPyBeginAllowThreads();
19168 wxIdleEvent::SetMode((wxIdleMode )arg1);
19169
19170 wxPyEndAllowThreads(__tstate);
19171 if (PyErr_Occurred()) SWIG_fail;
19172 }
19173 Py_INCREF(Py_None); resultobj = Py_None;
19174 return resultobj;
19175 fail:
19176 return NULL;
19177}
19178
19179
19180static PyObject *_wrap_IdleEvent_GetMode(PyObject *self, PyObject *args, PyObject *kwargs) {
19181 PyObject *resultobj;
19182 int result;
19183 char *kwnames[] = {
19184 NULL
19185 };
19186
19187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IdleEvent_GetMode",kwnames)) goto fail;
19188 {
19189 PyThreadState* __tstate = wxPyBeginAllowThreads();
19190 result = (int)wxIdleEvent::GetMode();
19191
19192 wxPyEndAllowThreads(__tstate);
19193 if (PyErr_Occurred()) SWIG_fail;
19194 }
19195 resultobj = SWIG_FromInt((int)result);
19196 return resultobj;
19197 fail:
19198 return NULL;
19199}
19200
19201
19202static PyObject *_wrap_IdleEvent_CanSend(PyObject *self, PyObject *args, PyObject *kwargs) {
19203 PyObject *resultobj;
19204 wxWindow *arg1 = (wxWindow *) 0 ;
19205 bool result;
19206 PyObject * obj0 = 0 ;
19207 char *kwnames[] = {
19208 (char *) "win", NULL
19209 };
19210
19211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) goto fail;
19212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
19213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19214 {
19215 PyThreadState* __tstate = wxPyBeginAllowThreads();
19216 result = (bool)wxIdleEvent::CanSend(arg1);
19217
19218 wxPyEndAllowThreads(__tstate);
19219 if (PyErr_Occurred()) SWIG_fail;
19220 }
19221 {
19222 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19223 }
19224 return resultobj;
19225 fail:
19226 return NULL;
19227}
19228
19229
19230static PyObject * IdleEvent_swigregister(PyObject *self, PyObject *args) {
19231 PyObject *obj;
19232 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19233 SWIG_TypeClientData(SWIGTYPE_p_wxIdleEvent, obj);
19234 Py_INCREF(obj);
19235 return Py_BuildValue((char *)"");
19236}
19237static PyObject *_wrap_new_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
19238 PyObject *resultobj;
19239 int arg1 = (int) 0 ;
19240 wxEventType arg2 = (wxEventType) wxEVT_NULL ;
19241 wxPyEvent *result;
19242 PyObject * obj0 = 0 ;
19243 PyObject * obj1 = 0 ;
19244 char *kwnames[] = {
19245 (char *) "winid",(char *) "commandType", NULL
19246 };
19247
19248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyEvent",kwnames,&obj0,&obj1)) goto fail;
19249 if (obj0) {
19250 arg1 = (int) SWIG_AsInt(obj0);
19251 if (PyErr_Occurred()) SWIG_fail;
19252 }
19253 if (obj1) {
19254 arg2 = (wxEventType) SWIG_AsInt(obj1);
19255 if (PyErr_Occurred()) SWIG_fail;
19256 }
19257 {
19258 PyThreadState* __tstate = wxPyBeginAllowThreads();
19259 result = (wxPyEvent *)new wxPyEvent(arg1,arg2);
19260
19261 wxPyEndAllowThreads(__tstate);
19262 if (PyErr_Occurred()) SWIG_fail;
19263 }
19264 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyEvent, 1);
19265 return resultobj;
19266 fail:
19267 return NULL;
19268}
19269
19270
19271static PyObject *_wrap_delete_PyEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
19272 PyObject *resultobj;
19273 wxPyEvent *arg1 = (wxPyEvent *) 0 ;
19274 PyObject * obj0 = 0 ;
19275 char *kwnames[] = {
19276 (char *) "self", NULL
19277 };
19278
19279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyEvent",kwnames,&obj0)) goto fail;
19280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent,
19281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19282 {
19283 PyThreadState* __tstate = wxPyBeginAllowThreads();
19284 delete arg1;
19285
19286 wxPyEndAllowThreads(__tstate);
19287 if (PyErr_Occurred()) SWIG_fail;
19288 }
19289 Py_INCREF(Py_None); resultobj = Py_None;
19290 return resultobj;
19291 fail:
19292 return NULL;
19293}
19294
19295
19296static PyObject *_wrap_PyEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) {
19297 PyObject *resultobj;
19298 wxPyEvent *arg1 = (wxPyEvent *) 0 ;
19299 PyObject *arg2 = (PyObject *) 0 ;
19300 PyObject * obj0 = 0 ;
19301 PyObject * obj1 = 0 ;
19302 char *kwnames[] = {
19303 (char *) "self",(char *) "self", NULL
19304 };
19305
19306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail;
19307 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent,
19308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19309 arg2 = obj1;
19310 {
19311 PyThreadState* __tstate = wxPyBeginAllowThreads();
19312 (arg1)->SetSelf(arg2);
19313
19314 wxPyEndAllowThreads(__tstate);
19315 if (PyErr_Occurred()) SWIG_fail;
19316 }
19317 Py_INCREF(Py_None); resultobj = Py_None;
19318 return resultobj;
19319 fail:
19320 return NULL;
19321}
19322
19323
19324static PyObject *_wrap_PyEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) {
19325 PyObject *resultobj;
19326 wxPyEvent *arg1 = (wxPyEvent *) 0 ;
19327 PyObject *result;
19328 PyObject * obj0 = 0 ;
19329 char *kwnames[] = {
19330 (char *) "self", NULL
19331 };
19332
19333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyEvent_GetSelf",kwnames,&obj0)) goto fail;
19334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyEvent,
19335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19336 {
19337 PyThreadState* __tstate = wxPyBeginAllowThreads();
19338 result = (PyObject *)(arg1)->GetSelf();
19339
19340 wxPyEndAllowThreads(__tstate);
19341 if (PyErr_Occurred()) SWIG_fail;
19342 }
19343 resultobj = result;
19344 return resultobj;
19345 fail:
19346 return NULL;
19347}
19348
19349
19350static PyObject * PyEvent_swigregister(PyObject *self, PyObject *args) {
19351 PyObject *obj;
19352 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19353 SWIG_TypeClientData(SWIGTYPE_p_wxPyEvent, obj);
19354 Py_INCREF(obj);
19355 return Py_BuildValue((char *)"");
19356}
19357static PyObject *_wrap_new_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
19358 PyObject *resultobj;
19359 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
19360 int arg2 = (int) 0 ;
19361 wxPyCommandEvent *result;
19362 PyObject * obj0 = 0 ;
19363 PyObject * obj1 = 0 ;
19364 char *kwnames[] = {
19365 (char *) "commandType",(char *) "id", NULL
19366 };
19367
19368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyCommandEvent",kwnames,&obj0,&obj1)) goto fail;
19369 if (obj0) {
19370 arg1 = (wxEventType) SWIG_AsInt(obj0);
19371 if (PyErr_Occurred()) SWIG_fail;
19372 }
19373 if (obj1) {
19374 arg2 = (int) SWIG_AsInt(obj1);
19375 if (PyErr_Occurred()) SWIG_fail;
19376 }
19377 {
19378 PyThreadState* __tstate = wxPyBeginAllowThreads();
19379 result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2);
19380
19381 wxPyEndAllowThreads(__tstate);
19382 if (PyErr_Occurred()) SWIG_fail;
19383 }
19384 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyCommandEvent, 1);
19385 return resultobj;
19386 fail:
19387 return NULL;
19388}
19389
19390
19391static PyObject *_wrap_delete_PyCommandEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
19392 PyObject *resultobj;
19393 wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ;
19394 PyObject * obj0 = 0 ;
19395 char *kwnames[] = {
19396 (char *) "self", NULL
19397 };
19398
19399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyCommandEvent",kwnames,&obj0)) goto fail;
19400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent,
19401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19402 {
19403 PyThreadState* __tstate = wxPyBeginAllowThreads();
19404 delete arg1;
19405
19406 wxPyEndAllowThreads(__tstate);
19407 if (PyErr_Occurred()) SWIG_fail;
19408 }
19409 Py_INCREF(Py_None); resultobj = Py_None;
19410 return resultobj;
19411 fail:
19412 return NULL;
19413}
19414
19415
19416static PyObject *_wrap_PyCommandEvent_SetSelf(PyObject *self, PyObject *args, PyObject *kwargs) {
19417 PyObject *resultobj;
19418 wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ;
19419 PyObject *arg2 = (PyObject *) 0 ;
19420 PyObject * obj0 = 0 ;
19421 PyObject * obj1 = 0 ;
19422 char *kwnames[] = {
19423 (char *) "self",(char *) "self", NULL
19424 };
19425
19426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent_SetSelf",kwnames,&obj0,&obj1)) goto fail;
19427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent,
19428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19429 arg2 = obj1;
19430 {
19431 PyThreadState* __tstate = wxPyBeginAllowThreads();
19432 (arg1)->SetSelf(arg2);
19433
19434 wxPyEndAllowThreads(__tstate);
19435 if (PyErr_Occurred()) SWIG_fail;
19436 }
19437 Py_INCREF(Py_None); resultobj = Py_None;
19438 return resultobj;
19439 fail:
19440 return NULL;
19441}
19442
19443
19444static PyObject *_wrap_PyCommandEvent_GetSelf(PyObject *self, PyObject *args, PyObject *kwargs) {
19445 PyObject *resultobj;
19446 wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ;
19447 PyObject *result;
19448 PyObject * obj0 = 0 ;
19449 char *kwnames[] = {
19450 (char *) "self", NULL
19451 };
19452
19453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyCommandEvent_GetSelf",kwnames,&obj0)) goto fail;
19454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyCommandEvent,
19455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19456 {
19457 PyThreadState* __tstate = wxPyBeginAllowThreads();
19458 result = (PyObject *)(arg1)->GetSelf();
19459
19460 wxPyEndAllowThreads(__tstate);
19461 if (PyErr_Occurred()) SWIG_fail;
19462 }
19463 resultobj = result;
19464 return resultobj;
19465 fail:
19466 return NULL;
19467}
19468
19469
19470static PyObject * PyCommandEvent_swigregister(PyObject *self, PyObject *args) {
19471 PyObject *obj;
19472 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19473 SWIG_TypeClientData(SWIGTYPE_p_wxPyCommandEvent, obj);
19474 Py_INCREF(obj);
19475 return Py_BuildValue((char *)"");
19476}
19477static PyObject *_wrap_new_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) {
19478 PyObject *resultobj;
19479 wxPyApp *result;
19480 char *kwnames[] = {
19481 NULL
19482 };
19483
19484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyApp",kwnames)) goto fail;
19485 {
19486 PyThreadState* __tstate = wxPyBeginAllowThreads();
19487 result = (wxPyApp *)new_wxPyApp();
19488
19489 wxPyEndAllowThreads(__tstate);
19490 if (PyErr_Occurred()) SWIG_fail;
19491 }
b0f7404b 19492 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyApp, 1);
d55e5bfc
RD
19493 return resultobj;
19494 fail:
19495 return NULL;
19496}
19497
19498
19499static PyObject *_wrap_delete_PyApp(PyObject *self, PyObject *args, PyObject *kwargs) {
19500 PyObject *resultobj;
19501 wxPyApp *arg1 = (wxPyApp *) 0 ;
19502 PyObject * obj0 = 0 ;
19503 char *kwnames[] = {
19504 (char *) "self", NULL
19505 };
19506
19507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyApp",kwnames,&obj0)) goto fail;
19508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19510 {
19511 PyThreadState* __tstate = wxPyBeginAllowThreads();
19512 delete arg1;
19513
19514 wxPyEndAllowThreads(__tstate);
19515 if (PyErr_Occurred()) SWIG_fail;
19516 }
19517 Py_INCREF(Py_None); resultobj = Py_None;
19518 return resultobj;
19519 fail:
19520 return NULL;
19521}
19522
19523
19524static PyObject *_wrap_PyApp__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
19525 PyObject *resultobj;
19526 wxPyApp *arg1 = (wxPyApp *) 0 ;
19527 PyObject *arg2 = (PyObject *) 0 ;
19528 PyObject *arg3 = (PyObject *) 0 ;
19529 PyObject * obj0 = 0 ;
19530 PyObject * obj1 = 0 ;
19531 PyObject * obj2 = 0 ;
19532 char *kwnames[] = {
19533 (char *) "self",(char *) "self",(char *) "_class", NULL
19534 };
19535
19536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
19537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19539 arg2 = obj1;
19540 arg3 = obj2;
19541 {
19542 PyThreadState* __tstate = wxPyBeginAllowThreads();
19543 (arg1)->_setCallbackInfo(arg2,arg3);
19544
19545 wxPyEndAllowThreads(__tstate);
19546 if (PyErr_Occurred()) SWIG_fail;
19547 }
19548 Py_INCREF(Py_None); resultobj = Py_None;
19549 return resultobj;
19550 fail:
19551 return NULL;
19552}
19553
19554
19555static PyObject *_wrap_PyApp_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
19556 PyObject *resultobj;
19557 wxPyApp *arg1 = (wxPyApp *) 0 ;
19558 wxString result;
19559 PyObject * obj0 = 0 ;
19560 char *kwnames[] = {
19561 (char *) "self", NULL
19562 };
19563
19564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAppName",kwnames,&obj0)) goto fail;
19565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19567 {
19568 PyThreadState* __tstate = wxPyBeginAllowThreads();
19569 result = ((wxPyApp const *)arg1)->GetAppName();
19570
19571 wxPyEndAllowThreads(__tstate);
19572 if (PyErr_Occurred()) SWIG_fail;
19573 }
19574 {
19575#if wxUSE_UNICODE
19576 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19577#else
19578 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19579#endif
19580 }
19581 return resultobj;
19582 fail:
19583 return NULL;
19584}
19585
19586
19587static PyObject *_wrap_PyApp_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
19588 PyObject *resultobj;
19589 wxPyApp *arg1 = (wxPyApp *) 0 ;
19590 wxString *arg2 = 0 ;
19591 bool temp2 = False ;
19592 PyObject * obj0 = 0 ;
19593 PyObject * obj1 = 0 ;
19594 char *kwnames[] = {
19595 (char *) "self",(char *) "name", NULL
19596 };
19597
19598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",kwnames,&obj0,&obj1)) goto fail;
19599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19601 {
19602 arg2 = wxString_in_helper(obj1);
19603 if (arg2 == NULL) SWIG_fail;
19604 temp2 = True;
19605 }
19606 {
19607 PyThreadState* __tstate = wxPyBeginAllowThreads();
19608 (arg1)->SetAppName((wxString const &)*arg2);
19609
19610 wxPyEndAllowThreads(__tstate);
19611 if (PyErr_Occurred()) SWIG_fail;
19612 }
19613 Py_INCREF(Py_None); resultobj = Py_None;
19614 {
19615 if (temp2)
19616 delete arg2;
19617 }
19618 return resultobj;
19619 fail:
19620 {
19621 if (temp2)
19622 delete arg2;
19623 }
19624 return NULL;
19625}
19626
19627
19628static PyObject *_wrap_PyApp_GetClassName(PyObject *self, PyObject *args, PyObject *kwargs) {
19629 PyObject *resultobj;
19630 wxPyApp *arg1 = (wxPyApp *) 0 ;
19631 wxString result;
19632 PyObject * obj0 = 0 ;
19633 char *kwnames[] = {
19634 (char *) "self", NULL
19635 };
19636
19637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetClassName",kwnames,&obj0)) goto fail;
19638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19640 {
19641 PyThreadState* __tstate = wxPyBeginAllowThreads();
19642 result = ((wxPyApp const *)arg1)->GetClassName();
19643
19644 wxPyEndAllowThreads(__tstate);
19645 if (PyErr_Occurred()) SWIG_fail;
19646 }
19647 {
19648#if wxUSE_UNICODE
19649 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19650#else
19651 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19652#endif
19653 }
19654 return resultobj;
19655 fail:
19656 return NULL;
19657}
19658
19659
19660static PyObject *_wrap_PyApp_SetClassName(PyObject *self, PyObject *args, PyObject *kwargs) {
19661 PyObject *resultobj;
19662 wxPyApp *arg1 = (wxPyApp *) 0 ;
19663 wxString *arg2 = 0 ;
19664 bool temp2 = False ;
19665 PyObject * obj0 = 0 ;
19666 PyObject * obj1 = 0 ;
19667 char *kwnames[] = {
19668 (char *) "self",(char *) "name", NULL
19669 };
19670
19671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) goto fail;
19672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19674 {
19675 arg2 = wxString_in_helper(obj1);
19676 if (arg2 == NULL) SWIG_fail;
19677 temp2 = True;
19678 }
19679 {
19680 PyThreadState* __tstate = wxPyBeginAllowThreads();
19681 (arg1)->SetClassName((wxString const &)*arg2);
19682
19683 wxPyEndAllowThreads(__tstate);
19684 if (PyErr_Occurred()) SWIG_fail;
19685 }
19686 Py_INCREF(Py_None); resultobj = Py_None;
19687 {
19688 if (temp2)
19689 delete arg2;
19690 }
19691 return resultobj;
19692 fail:
19693 {
19694 if (temp2)
19695 delete arg2;
19696 }
19697 return NULL;
19698}
19699
19700
19701static PyObject *_wrap_PyApp_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
19702 PyObject *resultobj;
19703 wxPyApp *arg1 = (wxPyApp *) 0 ;
19704 wxString *result;
19705 PyObject * obj0 = 0 ;
19706 char *kwnames[] = {
19707 (char *) "self", NULL
19708 };
19709
19710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetVendorName",kwnames,&obj0)) goto fail;
19711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19713 {
19714 PyThreadState* __tstate = wxPyBeginAllowThreads();
19715 {
19716 wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName();
19717 result = (wxString *) &_result_ref;
19718 }
19719
19720 wxPyEndAllowThreads(__tstate);
19721 if (PyErr_Occurred()) SWIG_fail;
19722 }
19723 {
19724#if wxUSE_UNICODE
19725 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
19726#else
19727 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
19728#endif
19729 }
19730 return resultobj;
19731 fail:
19732 return NULL;
19733}
19734
19735
19736static PyObject *_wrap_PyApp_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
19737 PyObject *resultobj;
19738 wxPyApp *arg1 = (wxPyApp *) 0 ;
19739 wxString *arg2 = 0 ;
19740 bool temp2 = False ;
19741 PyObject * obj0 = 0 ;
19742 PyObject * obj1 = 0 ;
19743 char *kwnames[] = {
19744 (char *) "self",(char *) "name", NULL
19745 };
19746
19747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) goto fail;
19748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19750 {
19751 arg2 = wxString_in_helper(obj1);
19752 if (arg2 == NULL) SWIG_fail;
19753 temp2 = True;
19754 }
19755 {
19756 PyThreadState* __tstate = wxPyBeginAllowThreads();
19757 (arg1)->SetVendorName((wxString const &)*arg2);
19758
19759 wxPyEndAllowThreads(__tstate);
19760 if (PyErr_Occurred()) SWIG_fail;
19761 }
19762 Py_INCREF(Py_None); resultobj = Py_None;
19763 {
19764 if (temp2)
19765 delete arg2;
19766 }
19767 return resultobj;
19768 fail:
19769 {
19770 if (temp2)
19771 delete arg2;
19772 }
19773 return NULL;
19774}
19775
19776
19777static PyObject *_wrap_PyApp_GetTraits(PyObject *self, PyObject *args, PyObject *kwargs) {
19778 PyObject *resultobj;
19779 wxPyApp *arg1 = (wxPyApp *) 0 ;
19780 wxAppTraits *result;
19781 PyObject * obj0 = 0 ;
19782 char *kwnames[] = {
19783 (char *) "self", NULL
19784 };
19785
19786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTraits",kwnames,&obj0)) goto fail;
19787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19789 {
19790 PyThreadState* __tstate = wxPyBeginAllowThreads();
19791 result = (wxAppTraits *)(arg1)->GetTraits();
19792
19793 wxPyEndAllowThreads(__tstate);
19794 if (PyErr_Occurred()) SWIG_fail;
19795 }
19796 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAppTraits, 0);
19797 return resultobj;
19798 fail:
19799 return NULL;
19800}
19801
19802
19803static PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *self, PyObject *args, PyObject *kwargs) {
19804 PyObject *resultobj;
19805 wxPyApp *arg1 = (wxPyApp *) 0 ;
19806 PyObject * obj0 = 0 ;
19807 char *kwnames[] = {
19808 (char *) "self", NULL
19809 };
19810
19811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessPendingEvents",kwnames,&obj0)) goto fail;
19812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19814 {
19815 PyThreadState* __tstate = wxPyBeginAllowThreads();
19816 (arg1)->ProcessPendingEvents();
19817
19818 wxPyEndAllowThreads(__tstate);
19819 if (PyErr_Occurred()) SWIG_fail;
19820 }
19821 Py_INCREF(Py_None); resultobj = Py_None;
19822 return resultobj;
19823 fail:
19824 return NULL;
19825}
19826
19827
19828static PyObject *_wrap_PyApp_Yield(PyObject *self, PyObject *args, PyObject *kwargs) {
19829 PyObject *resultobj;
19830 wxPyApp *arg1 = (wxPyApp *) 0 ;
19831 bool arg2 = (bool) False ;
19832 bool result;
19833 PyObject * obj0 = 0 ;
19834 PyObject * obj1 = 0 ;
19835 char *kwnames[] = {
19836 (char *) "self",(char *) "onlyIfNeeded", NULL
19837 };
19838
19839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) goto fail;
19840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19842 if (obj1) {
19843 arg2 = (bool) SWIG_AsBool(obj1);
19844 if (PyErr_Occurred()) SWIG_fail;
19845 }
19846 {
19847 PyThreadState* __tstate = wxPyBeginAllowThreads();
19848 result = (bool)(arg1)->Yield(arg2);
19849
19850 wxPyEndAllowThreads(__tstate);
19851 if (PyErr_Occurred()) SWIG_fail;
19852 }
19853 {
19854 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19855 }
19856 return resultobj;
19857 fail:
19858 return NULL;
19859}
19860
19861
19862static PyObject *_wrap_PyApp_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) {
19863 PyObject *resultobj;
19864 wxPyApp *arg1 = (wxPyApp *) 0 ;
19865 PyObject * obj0 = 0 ;
19866 char *kwnames[] = {
19867 (char *) "self", NULL
19868 };
19869
19870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_WakeUpIdle",kwnames,&obj0)) goto fail;
19871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19873 {
19874 PyThreadState* __tstate = wxPyBeginAllowThreads();
19875 (arg1)->WakeUpIdle();
19876
19877 wxPyEndAllowThreads(__tstate);
19878 if (PyErr_Occurred()) SWIG_fail;
19879 }
19880 Py_INCREF(Py_None); resultobj = Py_None;
19881 return resultobj;
19882 fail:
19883 return NULL;
19884}
19885
19886
19887static PyObject *_wrap_PyApp_MainLoop(PyObject *self, PyObject *args, PyObject *kwargs) {
19888 PyObject *resultobj;
19889 wxPyApp *arg1 = (wxPyApp *) 0 ;
19890 int result;
19891 PyObject * obj0 = 0 ;
19892 char *kwnames[] = {
19893 (char *) "self", NULL
19894 };
19895
19896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_MainLoop",kwnames,&obj0)) goto fail;
19897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19899 {
19900 PyThreadState* __tstate = wxPyBeginAllowThreads();
19901 result = (int)(arg1)->MainLoop();
19902
19903 wxPyEndAllowThreads(__tstate);
19904 if (PyErr_Occurred()) SWIG_fail;
19905 }
19906 resultobj = SWIG_FromInt((int)result);
19907 return resultobj;
19908 fail:
19909 return NULL;
19910}
19911
19912
19913static PyObject *_wrap_PyApp_Exit(PyObject *self, PyObject *args, PyObject *kwargs) {
19914 PyObject *resultobj;
19915 wxPyApp *arg1 = (wxPyApp *) 0 ;
19916 PyObject * obj0 = 0 ;
19917 char *kwnames[] = {
19918 (char *) "self", NULL
19919 };
19920
19921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Exit",kwnames,&obj0)) goto fail;
19922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19924 {
19925 PyThreadState* __tstate = wxPyBeginAllowThreads();
19926 (arg1)->Exit();
19927
19928 wxPyEndAllowThreads(__tstate);
19929 if (PyErr_Occurred()) SWIG_fail;
19930 }
19931 Py_INCREF(Py_None); resultobj = Py_None;
19932 return resultobj;
19933 fail:
19934 return NULL;
19935}
19936
19937
19938static PyObject *_wrap_PyApp_ExitMainLoop(PyObject *self, PyObject *args, PyObject *kwargs) {
19939 PyObject *resultobj;
19940 wxPyApp *arg1 = (wxPyApp *) 0 ;
19941 PyObject * obj0 = 0 ;
19942 char *kwnames[] = {
19943 (char *) "self", NULL
19944 };
19945
19946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ExitMainLoop",kwnames,&obj0)) goto fail;
19947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19949 {
19950 PyThreadState* __tstate = wxPyBeginAllowThreads();
19951 (arg1)->ExitMainLoop();
19952
19953 wxPyEndAllowThreads(__tstate);
19954 if (PyErr_Occurred()) SWIG_fail;
19955 }
19956 Py_INCREF(Py_None); resultobj = Py_None;
19957 return resultobj;
19958 fail:
19959 return NULL;
19960}
19961
19962
19963static PyObject *_wrap_PyApp_Pending(PyObject *self, PyObject *args, PyObject *kwargs) {
19964 PyObject *resultobj;
19965 wxPyApp *arg1 = (wxPyApp *) 0 ;
19966 bool result;
19967 PyObject * obj0 = 0 ;
19968 char *kwnames[] = {
19969 (char *) "self", NULL
19970 };
19971
19972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Pending",kwnames,&obj0)) goto fail;
19973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
19974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19975 {
19976 PyThreadState* __tstate = wxPyBeginAllowThreads();
19977 result = (bool)(arg1)->Pending();
19978
19979 wxPyEndAllowThreads(__tstate);
19980 if (PyErr_Occurred()) SWIG_fail;
19981 }
19982 {
19983 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19984 }
19985 return resultobj;
19986 fail:
19987 return NULL;
19988}
19989
19990
19991static PyObject *_wrap_PyApp_Dispatch(PyObject *self, PyObject *args, PyObject *kwargs) {
19992 PyObject *resultobj;
19993 wxPyApp *arg1 = (wxPyApp *) 0 ;
19994 bool result;
19995 PyObject * obj0 = 0 ;
19996 char *kwnames[] = {
19997 (char *) "self", NULL
19998 };
19999
20000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_Dispatch",kwnames,&obj0)) goto fail;
20001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20003 {
20004 PyThreadState* __tstate = wxPyBeginAllowThreads();
20005 result = (bool)(arg1)->Dispatch();
20006
20007 wxPyEndAllowThreads(__tstate);
20008 if (PyErr_Occurred()) SWIG_fail;
20009 }
20010 {
20011 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20012 }
20013 return resultobj;
20014 fail:
20015 return NULL;
20016}
20017
20018
20019static PyObject *_wrap_PyApp_ProcessIdle(PyObject *self, PyObject *args, PyObject *kwargs) {
20020 PyObject *resultobj;
20021 wxPyApp *arg1 = (wxPyApp *) 0 ;
20022 bool result;
20023 PyObject * obj0 = 0 ;
20024 char *kwnames[] = {
20025 (char *) "self", NULL
20026 };
20027
20028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_ProcessIdle",kwnames,&obj0)) goto fail;
20029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20031 {
20032 PyThreadState* __tstate = wxPyBeginAllowThreads();
20033 result = (bool)(arg1)->ProcessIdle();
20034
20035 wxPyEndAllowThreads(__tstate);
20036 if (PyErr_Occurred()) SWIG_fail;
20037 }
20038 {
20039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20040 }
20041 return resultobj;
20042 fail:
20043 return NULL;
20044}
20045
20046
20047static PyObject *_wrap_PyApp_SendIdleEvents(PyObject *self, PyObject *args, PyObject *kwargs) {
20048 PyObject *resultobj;
20049 wxPyApp *arg1 = (wxPyApp *) 0 ;
20050 wxWindow *arg2 = (wxWindow *) 0 ;
20051 wxIdleEvent *arg3 = 0 ;
20052 bool result;
20053 PyObject * obj0 = 0 ;
20054 PyObject * obj1 = 0 ;
20055 PyObject * obj2 = 0 ;
20056 char *kwnames[] = {
20057 (char *) "self",(char *) "win",(char *) "event", NULL
20058 };
20059
20060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) goto fail;
20061 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20062 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20063 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
20064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20065 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIdleEvent,
20066 SWIG_POINTER_EXCEPTION | 0)) == -1)
20067 SWIG_fail;
20068 if (arg3 == NULL) {
20069 PyErr_SetString(PyExc_TypeError,"null reference");
20070 SWIG_fail;
20071 }
20072 {
20073 PyThreadState* __tstate = wxPyBeginAllowThreads();
20074 result = (bool)(arg1)->SendIdleEvents(arg2,*arg3);
20075
20076 wxPyEndAllowThreads(__tstate);
20077 if (PyErr_Occurred()) SWIG_fail;
20078 }
20079 {
20080 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20081 }
20082 return resultobj;
20083 fail:
20084 return NULL;
20085}
20086
20087
20088static PyObject *_wrap_PyApp_IsActive(PyObject *self, PyObject *args, PyObject *kwargs) {
20089 PyObject *resultobj;
20090 wxPyApp *arg1 = (wxPyApp *) 0 ;
20091 bool result;
20092 PyObject * obj0 = 0 ;
20093 char *kwnames[] = {
20094 (char *) "self", NULL
20095 };
20096
20097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_IsActive",kwnames,&obj0)) goto fail;
20098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20100 {
20101 PyThreadState* __tstate = wxPyBeginAllowThreads();
20102 result = (bool)((wxPyApp const *)arg1)->IsActive();
20103
20104 wxPyEndAllowThreads(__tstate);
20105 if (PyErr_Occurred()) SWIG_fail;
20106 }
20107 {
20108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20109 }
20110 return resultobj;
20111 fail:
20112 return NULL;
20113}
20114
20115
20116static PyObject *_wrap_PyApp_SetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
20117 PyObject *resultobj;
20118 wxPyApp *arg1 = (wxPyApp *) 0 ;
20119 wxWindow *arg2 = (wxWindow *) 0 ;
20120 PyObject * obj0 = 0 ;
20121 PyObject * obj1 = 0 ;
20122 char *kwnames[] = {
20123 (char *) "self",(char *) "win", NULL
20124 };
20125
20126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) goto fail;
20127 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20129 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
20130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20131 {
20132 PyThreadState* __tstate = wxPyBeginAllowThreads();
20133 (arg1)->SetTopWindow(arg2);
20134
20135 wxPyEndAllowThreads(__tstate);
20136 if (PyErr_Occurred()) SWIG_fail;
20137 }
20138 Py_INCREF(Py_None); resultobj = Py_None;
20139 return resultobj;
20140 fail:
20141 return NULL;
20142}
20143
20144
20145static PyObject *_wrap_PyApp_GetTopWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
20146 PyObject *resultobj;
20147 wxPyApp *arg1 = (wxPyApp *) 0 ;
20148 wxWindow *result;
20149 PyObject * obj0 = 0 ;
20150 char *kwnames[] = {
20151 (char *) "self", NULL
20152 };
20153
20154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetTopWindow",kwnames,&obj0)) goto fail;
20155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20157 {
20158 PyThreadState* __tstate = wxPyBeginAllowThreads();
20159 result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow();
20160
20161 wxPyEndAllowThreads(__tstate);
20162 if (PyErr_Occurred()) SWIG_fail;
20163 }
20164 {
412d302d 20165 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
20166 }
20167 return resultobj;
20168 fail:
20169 return NULL;
20170}
20171
20172
20173static PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) {
20174 PyObject *resultobj;
20175 wxPyApp *arg1 = (wxPyApp *) 0 ;
20176 bool arg2 ;
20177 PyObject * obj0 = 0 ;
20178 PyObject * obj1 = 0 ;
20179 char *kwnames[] = {
20180 (char *) "self",(char *) "flag", NULL
20181 };
20182
20183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) goto fail;
20184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20186 arg2 = (bool) SWIG_AsBool(obj1);
20187 if (PyErr_Occurred()) SWIG_fail;
20188 {
20189 PyThreadState* __tstate = wxPyBeginAllowThreads();
20190 (arg1)->SetExitOnFrameDelete(arg2);
20191
20192 wxPyEndAllowThreads(__tstate);
20193 if (PyErr_Occurred()) SWIG_fail;
20194 }
20195 Py_INCREF(Py_None); resultobj = Py_None;
20196 return resultobj;
20197 fail:
20198 return NULL;
20199}
20200
20201
20202static PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *self, PyObject *args, PyObject *kwargs) {
20203 PyObject *resultobj;
20204 wxPyApp *arg1 = (wxPyApp *) 0 ;
20205 bool result;
20206 PyObject * obj0 = 0 ;
20207 char *kwnames[] = {
20208 (char *) "self", NULL
20209 };
20210
20211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetExitOnFrameDelete",kwnames,&obj0)) goto fail;
20212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20214 {
20215 PyThreadState* __tstate = wxPyBeginAllowThreads();
20216 result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete();
20217
20218 wxPyEndAllowThreads(__tstate);
20219 if (PyErr_Occurred()) SWIG_fail;
20220 }
20221 {
20222 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20223 }
20224 return resultobj;
20225 fail:
20226 return NULL;
20227}
20228
20229
20230static PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) {
20231 PyObject *resultobj;
20232 wxPyApp *arg1 = (wxPyApp *) 0 ;
20233 bool arg2 ;
20234 PyObject * obj0 = 0 ;
20235 PyObject * obj1 = 0 ;
20236 char *kwnames[] = {
20237 (char *) "self",(char *) "flag", NULL
20238 };
20239
20240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1)) goto fail;
20241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20243 arg2 = (bool) SWIG_AsBool(obj1);
20244 if (PyErr_Occurred()) SWIG_fail;
20245 {
20246 PyThreadState* __tstate = wxPyBeginAllowThreads();
20247 (arg1)->SetUseBestVisual(arg2);
20248
20249 wxPyEndAllowThreads(__tstate);
20250 if (PyErr_Occurred()) SWIG_fail;
20251 }
20252 Py_INCREF(Py_None); resultobj = Py_None;
20253 return resultobj;
20254 fail:
20255 return NULL;
20256}
20257
20258
20259static PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *self, PyObject *args, PyObject *kwargs) {
20260 PyObject *resultobj;
20261 wxPyApp *arg1 = (wxPyApp *) 0 ;
20262 bool result;
20263 PyObject * obj0 = 0 ;
20264 char *kwnames[] = {
20265 (char *) "self", NULL
20266 };
20267
20268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetUseBestVisual",kwnames,&obj0)) goto fail;
20269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20271 {
20272 PyThreadState* __tstate = wxPyBeginAllowThreads();
20273 result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual();
20274
20275 wxPyEndAllowThreads(__tstate);
20276 if (PyErr_Occurred()) SWIG_fail;
20277 }
20278 {
20279 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20280 }
20281 return resultobj;
20282 fail:
20283 return NULL;
20284}
20285
20286
20287static PyObject *_wrap_PyApp_SetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) {
20288 PyObject *resultobj;
20289 wxPyApp *arg1 = (wxPyApp *) 0 ;
20290 int arg2 ;
20291 PyObject * obj0 = 0 ;
20292 PyObject * obj1 = 0 ;
20293 char *kwnames[] = {
20294 (char *) "self",(char *) "mode", NULL
20295 };
20296
20297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetPrintMode",kwnames,&obj0,&obj1)) goto fail;
20298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20300 arg2 = (int) SWIG_AsInt(obj1);
20301 if (PyErr_Occurred()) SWIG_fail;
20302 {
20303 PyThreadState* __tstate = wxPyBeginAllowThreads();
20304 (arg1)->SetPrintMode(arg2);
20305
20306 wxPyEndAllowThreads(__tstate);
20307 if (PyErr_Occurred()) SWIG_fail;
20308 }
20309 Py_INCREF(Py_None); resultobj = Py_None;
20310 return resultobj;
20311 fail:
20312 return NULL;
20313}
20314
20315
20316static PyObject *_wrap_PyApp_GetPrintMode(PyObject *self, PyObject *args, PyObject *kwargs) {
20317 PyObject *resultobj;
20318 wxPyApp *arg1 = (wxPyApp *) 0 ;
20319 int result;
20320 PyObject * obj0 = 0 ;
20321 char *kwnames[] = {
20322 (char *) "self", NULL
20323 };
20324
20325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetPrintMode",kwnames,&obj0)) goto fail;
20326 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20328 {
20329 PyThreadState* __tstate = wxPyBeginAllowThreads();
20330 result = (int)((wxPyApp const *)arg1)->GetPrintMode();
20331
20332 wxPyEndAllowThreads(__tstate);
20333 if (PyErr_Occurred()) SWIG_fail;
20334 }
20335 resultobj = SWIG_FromInt((int)result);
20336 return resultobj;
20337 fail:
20338 return NULL;
20339}
20340
20341
20342static PyObject *_wrap_PyApp_SetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) {
20343 PyObject *resultobj;
20344 wxPyApp *arg1 = (wxPyApp *) 0 ;
20345 int arg2 ;
20346 PyObject * obj0 = 0 ;
20347 PyObject * obj1 = 0 ;
20348 char *kwnames[] = {
20349 (char *) "self",(char *) "mode", NULL
20350 };
20351
20352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAssertMode",kwnames,&obj0,&obj1)) goto fail;
20353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20355 arg2 = (int) SWIG_AsInt(obj1);
20356 if (PyErr_Occurred()) SWIG_fail;
20357 {
20358 PyThreadState* __tstate = wxPyBeginAllowThreads();
20359 (arg1)->SetAssertMode(arg2);
20360
20361 wxPyEndAllowThreads(__tstate);
20362 if (PyErr_Occurred()) SWIG_fail;
20363 }
20364 Py_INCREF(Py_None); resultobj = Py_None;
20365 return resultobj;
20366 fail:
20367 return NULL;
20368}
20369
20370
20371static PyObject *_wrap_PyApp_GetAssertMode(PyObject *self, PyObject *args, PyObject *kwargs) {
20372 PyObject *resultobj;
20373 wxPyApp *arg1 = (wxPyApp *) 0 ;
20374 int result;
20375 PyObject * obj0 = 0 ;
20376 char *kwnames[] = {
20377 (char *) "self", NULL
20378 };
20379
20380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_GetAssertMode",kwnames,&obj0)) goto fail;
20381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20383 {
20384 PyThreadState* __tstate = wxPyBeginAllowThreads();
20385 result = (int)(arg1)->GetAssertMode();
20386
20387 wxPyEndAllowThreads(__tstate);
20388 if (PyErr_Occurred()) SWIG_fail;
20389 }
20390 resultobj = SWIG_FromInt((int)result);
20391 return resultobj;
20392 fail:
20393 return NULL;
20394}
20395
20396
20397static PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) {
20398 PyObject *resultobj;
20399 bool result;
20400 char *kwnames[] = {
20401 NULL
20402 };
20403
20404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacSupportPCMenuShortcuts",kwnames)) goto fail;
20405 {
20406 PyThreadState* __tstate = wxPyBeginAllowThreads();
20407 result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts();
20408
20409 wxPyEndAllowThreads(__tstate);
20410 if (PyErr_Occurred()) SWIG_fail;
20411 }
20412 {
20413 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20414 }
20415 return resultobj;
20416 fail:
20417 return NULL;
20418}
20419
20420
20421static PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
20422 PyObject *resultobj;
20423 long result;
20424 char *kwnames[] = {
20425 NULL
20426 };
20427
20428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacAboutMenuItemId",kwnames)) goto fail;
20429 {
20430 PyThreadState* __tstate = wxPyBeginAllowThreads();
20431 result = (long)wxPyApp::GetMacAboutMenuItemId();
20432
20433 wxPyEndAllowThreads(__tstate);
20434 if (PyErr_Occurred()) SWIG_fail;
20435 }
20436 resultobj = SWIG_FromLong((long)result);
20437 return resultobj;
20438 fail:
20439 return NULL;
20440}
20441
20442
20443static PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
20444 PyObject *resultobj;
20445 long result;
20446 char *kwnames[] = {
20447 NULL
20448 };
20449
20450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacPreferencesMenuItemId",kwnames)) goto fail;
20451 {
20452 PyThreadState* __tstate = wxPyBeginAllowThreads();
20453 result = (long)wxPyApp::GetMacPreferencesMenuItemId();
20454
20455 wxPyEndAllowThreads(__tstate);
20456 if (PyErr_Occurred()) SWIG_fail;
20457 }
20458 resultobj = SWIG_FromLong((long)result);
20459 return resultobj;
20460 fail:
20461 return NULL;
20462}
20463
20464
20465static PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
20466 PyObject *resultobj;
20467 long result;
20468 char *kwnames[] = {
20469 NULL
20470 };
20471
20472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacExitMenuItemId",kwnames)) goto fail;
20473 {
20474 PyThreadState* __tstate = wxPyBeginAllowThreads();
20475 result = (long)wxPyApp::GetMacExitMenuItemId();
20476
20477 wxPyEndAllowThreads(__tstate);
20478 if (PyErr_Occurred()) SWIG_fail;
20479 }
20480 resultobj = SWIG_FromLong((long)result);
20481 return resultobj;
20482 fail:
20483 return NULL;
20484}
20485
20486
20487static PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) {
20488 PyObject *resultobj;
20489 wxString result;
20490 char *kwnames[] = {
20491 NULL
20492 };
20493
20494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetMacHelpMenuTitleName",kwnames)) goto fail;
20495 {
20496 PyThreadState* __tstate = wxPyBeginAllowThreads();
20497 result = wxPyApp::GetMacHelpMenuTitleName();
20498
20499 wxPyEndAllowThreads(__tstate);
20500 if (PyErr_Occurred()) SWIG_fail;
20501 }
20502 {
20503#if wxUSE_UNICODE
20504 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
20505#else
20506 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
20507#endif
20508 }
20509 return resultobj;
20510 fail:
20511 return NULL;
20512}
20513
20514
20515static PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *self, PyObject *args, PyObject *kwargs) {
20516 PyObject *resultobj;
20517 bool arg1 ;
20518 PyObject * obj0 = 0 ;
20519 char *kwnames[] = {
20520 (char *) "val", NULL
20521 };
20522
20523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) goto fail;
20524 arg1 = (bool) SWIG_AsBool(obj0);
20525 if (PyErr_Occurred()) SWIG_fail;
20526 {
20527 PyThreadState* __tstate = wxPyBeginAllowThreads();
20528 wxPyApp::SetMacSupportPCMenuShortcuts(arg1);
20529
20530 wxPyEndAllowThreads(__tstate);
20531 if (PyErr_Occurred()) SWIG_fail;
20532 }
20533 Py_INCREF(Py_None); resultobj = Py_None;
20534 return resultobj;
20535 fail:
20536 return NULL;
20537}
20538
20539
20540static PyObject *_wrap_PyApp_SetMacAboutMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
20541 PyObject *resultobj;
20542 long arg1 ;
20543 PyObject * obj0 = 0 ;
20544 char *kwnames[] = {
20545 (char *) "val", NULL
20546 };
20547
20548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacAboutMenuItemId",kwnames,&obj0)) goto fail;
20549 arg1 = (long) SWIG_AsLong(obj0);
20550 if (PyErr_Occurred()) SWIG_fail;
20551 {
20552 PyThreadState* __tstate = wxPyBeginAllowThreads();
20553 wxPyApp::SetMacAboutMenuItemId(arg1);
20554
20555 wxPyEndAllowThreads(__tstate);
20556 if (PyErr_Occurred()) SWIG_fail;
20557 }
20558 Py_INCREF(Py_None); resultobj = Py_None;
20559 return resultobj;
20560 fail:
20561 return NULL;
20562}
20563
20564
20565static PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
20566 PyObject *resultobj;
20567 long arg1 ;
20568 PyObject * obj0 = 0 ;
20569 char *kwnames[] = {
20570 (char *) "val", NULL
20571 };
20572
20573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacPreferencesMenuItemId",kwnames,&obj0)) goto fail;
20574 arg1 = (long) SWIG_AsLong(obj0);
20575 if (PyErr_Occurred()) SWIG_fail;
20576 {
20577 PyThreadState* __tstate = wxPyBeginAllowThreads();
20578 wxPyApp::SetMacPreferencesMenuItemId(arg1);
20579
20580 wxPyEndAllowThreads(__tstate);
20581 if (PyErr_Occurred()) SWIG_fail;
20582 }
20583 Py_INCREF(Py_None); resultobj = Py_None;
20584 return resultobj;
20585 fail:
20586 return NULL;
20587}
20588
20589
20590static PyObject *_wrap_PyApp_SetMacExitMenuItemId(PyObject *self, PyObject *args, PyObject *kwargs) {
20591 PyObject *resultobj;
20592 long arg1 ;
20593 PyObject * obj0 = 0 ;
20594 char *kwnames[] = {
20595 (char *) "val", NULL
20596 };
20597
20598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacExitMenuItemId",kwnames,&obj0)) goto fail;
20599 arg1 = (long) SWIG_AsLong(obj0);
20600 if (PyErr_Occurred()) SWIG_fail;
20601 {
20602 PyThreadState* __tstate = wxPyBeginAllowThreads();
20603 wxPyApp::SetMacExitMenuItemId(arg1);
20604
20605 wxPyEndAllowThreads(__tstate);
20606 if (PyErr_Occurred()) SWIG_fail;
20607 }
20608 Py_INCREF(Py_None); resultobj = Py_None;
20609 return resultobj;
20610 fail:
20611 return NULL;
20612}
20613
20614
20615static PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *self, PyObject *args, PyObject *kwargs) {
20616 PyObject *resultobj;
20617 wxString *arg1 = 0 ;
20618 bool temp1 = False ;
20619 PyObject * obj0 = 0 ;
20620 char *kwnames[] = {
20621 (char *) "val", NULL
20622 };
20623
20624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) goto fail;
20625 {
20626 arg1 = wxString_in_helper(obj0);
20627 if (arg1 == NULL) SWIG_fail;
20628 temp1 = True;
20629 }
20630 {
20631 PyThreadState* __tstate = wxPyBeginAllowThreads();
20632 wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1);
20633
20634 wxPyEndAllowThreads(__tstate);
20635 if (PyErr_Occurred()) SWIG_fail;
20636 }
20637 Py_INCREF(Py_None); resultobj = Py_None;
20638 {
20639 if (temp1)
20640 delete arg1;
20641 }
20642 return resultobj;
20643 fail:
20644 {
20645 if (temp1)
20646 delete arg1;
20647 }
20648 return NULL;
20649}
20650
20651
20652static PyObject *_wrap_PyApp__BootstrapApp(PyObject *self, PyObject *args, PyObject *kwargs) {
20653 PyObject *resultobj;
20654 wxPyApp *arg1 = (wxPyApp *) 0 ;
20655 PyObject * obj0 = 0 ;
20656 char *kwnames[] = {
20657 (char *) "self", NULL
20658 };
20659
20660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp__BootstrapApp",kwnames,&obj0)) goto fail;
20661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyApp,
20662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20663 {
20664 PyThreadState* __tstate = wxPyBeginAllowThreads();
20665 (arg1)->_BootstrapApp();
20666
20667 wxPyEndAllowThreads(__tstate);
20668 if (PyErr_Occurred()) SWIG_fail;
20669 }
20670 Py_INCREF(Py_None); resultobj = Py_None;
20671 return resultobj;
20672 fail:
20673 return NULL;
20674}
20675
20676
20677static PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *self, PyObject *args, PyObject *kwargs) {
20678 PyObject *resultobj;
20679 int result;
20680 char *kwnames[] = {
20681 NULL
20682 };
20683
20684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PyApp_GetComCtl32Version",kwnames)) goto fail;
20685 {
20686 PyThreadState* __tstate = wxPyBeginAllowThreads();
20687 result = (int)wxPyApp::GetComCtl32Version();
20688
20689 wxPyEndAllowThreads(__tstate);
20690 if (PyErr_Occurred()) SWIG_fail;
20691 }
20692 resultobj = SWIG_FromInt((int)result);
20693 return resultobj;
20694 fail:
20695 return NULL;
20696}
20697
20698
20699static PyObject * PyApp_swigregister(PyObject *self, PyObject *args) {
20700 PyObject *obj;
20701 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20702 SWIG_TypeClientData(SWIGTYPE_p_wxPyApp, obj);
20703 Py_INCREF(obj);
20704 return Py_BuildValue((char *)"");
20705}
20706static PyObject *_wrap_Exit(PyObject *self, PyObject *args, PyObject *kwargs) {
20707 PyObject *resultobj;
20708 char *kwnames[] = {
20709 NULL
20710 };
20711
20712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Exit",kwnames)) goto fail;
20713 {
20714 PyThreadState* __tstate = wxPyBeginAllowThreads();
20715 wxExit();
20716
20717 wxPyEndAllowThreads(__tstate);
20718 if (PyErr_Occurred()) SWIG_fail;
20719 }
20720 Py_INCREF(Py_None); resultobj = Py_None;
20721 return resultobj;
20722 fail:
20723 return NULL;
20724}
20725
20726
20727static PyObject *_wrap_Yield(PyObject *self, PyObject *args, PyObject *kwargs) {
20728 PyObject *resultobj;
20729 bool result;
20730 char *kwnames[] = {
20731 NULL
20732 };
20733
20734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Yield",kwnames)) goto fail;
20735 {
20736 PyThreadState* __tstate = wxPyBeginAllowThreads();
20737 result = (bool)wxYield();
20738
20739 wxPyEndAllowThreads(__tstate);
20740 if (PyErr_Occurred()) SWIG_fail;
20741 }
20742 {
20743 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20744 }
20745 return resultobj;
20746 fail:
20747 return NULL;
20748}
20749
20750
20751static PyObject *_wrap_YieldIfNeeded(PyObject *self, PyObject *args, PyObject *kwargs) {
20752 PyObject *resultobj;
20753 bool result;
20754 char *kwnames[] = {
20755 NULL
20756 };
20757
20758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":YieldIfNeeded",kwnames)) goto fail;
20759 {
20760 PyThreadState* __tstate = wxPyBeginAllowThreads();
20761 result = (bool)wxYieldIfNeeded();
20762
20763 wxPyEndAllowThreads(__tstate);
20764 if (PyErr_Occurred()) SWIG_fail;
20765 }
20766 {
20767 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20768 }
20769 return resultobj;
20770 fail:
20771 return NULL;
20772}
20773
20774
20775static PyObject *_wrap_SafeYield(PyObject *self, PyObject *args, PyObject *kwargs) {
20776 PyObject *resultobj;
20777 wxWindow *arg1 = (wxWindow *) NULL ;
20778 bool arg2 = (bool) False ;
20779 bool result;
20780 PyObject * obj0 = 0 ;
20781 PyObject * obj1 = 0 ;
20782 char *kwnames[] = {
20783 (char *) "win",(char *) "onlyIfNeeded", NULL
20784 };
20785
20786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) goto fail;
20787 if (obj0) {
20788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
20789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20790 }
20791 if (obj1) {
20792 arg2 = (bool) SWIG_AsBool(obj1);
20793 if (PyErr_Occurred()) SWIG_fail;
20794 }
20795 {
20796 PyThreadState* __tstate = wxPyBeginAllowThreads();
20797 result = (bool)wxSafeYield(arg1,arg2);
20798
20799 wxPyEndAllowThreads(__tstate);
20800 if (PyErr_Occurred()) SWIG_fail;
20801 }
20802 {
20803 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20804 }
20805 return resultobj;
20806 fail:
20807 return NULL;
20808}
20809
20810
20811static PyObject *_wrap_WakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) {
20812 PyObject *resultobj;
20813 char *kwnames[] = {
20814 NULL
20815 };
20816
20817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpIdle",kwnames)) goto fail;
20818 {
20819 PyThreadState* __tstate = wxPyBeginAllowThreads();
20820 wxWakeUpIdle();
20821
20822 wxPyEndAllowThreads(__tstate);
20823 if (PyErr_Occurred()) SWIG_fail;
20824 }
20825 Py_INCREF(Py_None); resultobj = Py_None;
20826 return resultobj;
20827 fail:
20828 return NULL;
20829}
20830
20831
20832static PyObject *_wrap_PostEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
20833 PyObject *resultobj;
20834 wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
20835 wxEvent *arg2 = 0 ;
20836 PyObject * obj0 = 0 ;
20837 PyObject * obj1 = 0 ;
20838 char *kwnames[] = {
20839 (char *) "dest",(char *) "event", NULL
20840 };
20841
20842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) goto fail;
20843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
20844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20845 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvent,
20846 SWIG_POINTER_EXCEPTION | 0)) == -1)
20847 SWIG_fail;
20848 if (arg2 == NULL) {
20849 PyErr_SetString(PyExc_TypeError,"null reference");
20850 SWIG_fail;
20851 }
20852 {
20853 PyThreadState* __tstate = wxPyBeginAllowThreads();
20854 wxPostEvent(arg1,*arg2);
20855
20856 wxPyEndAllowThreads(__tstate);
20857 if (PyErr_Occurred()) SWIG_fail;
20858 }
20859 Py_INCREF(Py_None); resultobj = Py_None;
20860 return resultobj;
20861 fail:
20862 return NULL;
20863}
20864
20865
20866static PyObject *_wrap_App_CleanUp(PyObject *self, PyObject *args, PyObject *kwargs) {
20867 PyObject *resultobj;
20868 char *kwnames[] = {
20869 NULL
20870 };
20871
20872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":App_CleanUp",kwnames)) goto fail;
20873 {
20874 PyThreadState* __tstate = wxPyBeginAllowThreads();
20875 wxApp_CleanUp();
20876
20877 wxPyEndAllowThreads(__tstate);
20878 if (PyErr_Occurred()) SWIG_fail;
20879 }
20880 Py_INCREF(Py_None); resultobj = Py_None;
20881 return resultobj;
20882 fail:
20883 return NULL;
20884}
20885
20886
20887static PyObject *_wrap_GetApp(PyObject *self, PyObject *args, PyObject *kwargs) {
20888 PyObject *resultobj;
20889 wxPyApp *result;
20890 char *kwnames[] = {
20891 NULL
20892 };
20893
20894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetApp",kwnames)) goto fail;
20895 {
20896 PyThreadState* __tstate = wxPyBeginAllowThreads();
caef1a4d 20897 result = (wxPyApp *)wxPyGetApp();
d55e5bfc
RD
20898
20899 wxPyEndAllowThreads(__tstate);
20900 if (PyErr_Occurred()) SWIG_fail;
20901 }
20902 {
412d302d 20903 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
20904 }
20905 return resultobj;
20906 fail:
20907 return NULL;
20908}
20909
20910
20911static PyObject *_wrap_new_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
20912 PyObject *resultobj;
20913 int arg1 = (int) 0 ;
20914 int arg2 = (int) 0 ;
20915 int arg3 = (int) 0 ;
d55e5bfc
RD
20916 wxAcceleratorEntry *result;
20917 PyObject * obj0 = 0 ;
20918 PyObject * obj1 = 0 ;
20919 PyObject * obj2 = 0 ;
d55e5bfc 20920 char *kwnames[] = {
c24da6d6 20921 (char *) "flags",(char *) "keyCode",(char *) "cmdID", NULL
d55e5bfc
RD
20922 };
20923
c24da6d6 20924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_AcceleratorEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
20925 if (obj0) {
20926 arg1 = (int) SWIG_AsInt(obj0);
20927 if (PyErr_Occurred()) SWIG_fail;
20928 }
20929 if (obj1) {
20930 arg2 = (int) SWIG_AsInt(obj1);
20931 if (PyErr_Occurred()) SWIG_fail;
20932 }
20933 if (obj2) {
20934 arg3 = (int) SWIG_AsInt(obj2);
20935 if (PyErr_Occurred()) SWIG_fail;
20936 }
d55e5bfc
RD
20937 {
20938 PyThreadState* __tstate = wxPyBeginAllowThreads();
c24da6d6 20939 result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3);
d55e5bfc
RD
20940
20941 wxPyEndAllowThreads(__tstate);
20942 if (PyErr_Occurred()) SWIG_fail;
20943 }
20944 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 1);
20945 return resultobj;
20946 fail:
20947 return NULL;
20948}
20949
20950
20951static PyObject *_wrap_delete_AcceleratorEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
20952 PyObject *resultobj;
20953 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
20954 PyObject * obj0 = 0 ;
20955 char *kwnames[] = {
20956 (char *) "self", NULL
20957 };
20958
20959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorEntry",kwnames,&obj0)) goto fail;
20960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry,
20961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20962 {
20963 PyThreadState* __tstate = wxPyBeginAllowThreads();
20964 delete arg1;
20965
20966 wxPyEndAllowThreads(__tstate);
20967 if (PyErr_Occurred()) SWIG_fail;
20968 }
20969 Py_INCREF(Py_None); resultobj = Py_None;
20970 return resultobj;
20971 fail:
20972 return NULL;
20973}
20974
20975
20976static PyObject *_wrap_AcceleratorEntry_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
20977 PyObject *resultobj;
20978 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
20979 int arg2 ;
20980 int arg3 ;
20981 int arg4 ;
d55e5bfc
RD
20982 PyObject * obj0 = 0 ;
20983 PyObject * obj1 = 0 ;
20984 PyObject * obj2 = 0 ;
20985 PyObject * obj3 = 0 ;
d55e5bfc 20986 char *kwnames[] = {
c24da6d6 20987 (char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd", NULL
d55e5bfc
RD
20988 };
20989
c24da6d6 20990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AcceleratorEntry_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
20991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry,
20992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20993 arg2 = (int) SWIG_AsInt(obj1);
20994 if (PyErr_Occurred()) SWIG_fail;
20995 arg3 = (int) SWIG_AsInt(obj2);
20996 if (PyErr_Occurred()) SWIG_fail;
20997 arg4 = (int) SWIG_AsInt(obj3);
20998 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
20999 {
21000 PyThreadState* __tstate = wxPyBeginAllowThreads();
c24da6d6 21001 (arg1)->Set(arg2,arg3,arg4);
d55e5bfc
RD
21002
21003 wxPyEndAllowThreads(__tstate);
21004 if (PyErr_Occurred()) SWIG_fail;
21005 }
21006 Py_INCREF(Py_None); resultobj = Py_None;
21007 return resultobj;
21008 fail:
21009 return NULL;
21010}
21011
21012
d55e5bfc
RD
21013static PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) {
21014 PyObject *resultobj;
21015 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
21016 int result;
21017 PyObject * obj0 = 0 ;
21018 char *kwnames[] = {
21019 (char *) "self", NULL
21020 };
21021
21022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetFlags",kwnames,&obj0)) goto fail;
21023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry,
21024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21025 {
21026 PyThreadState* __tstate = wxPyBeginAllowThreads();
21027 result = (int)(arg1)->GetFlags();
21028
21029 wxPyEndAllowThreads(__tstate);
21030 if (PyErr_Occurred()) SWIG_fail;
21031 }
21032 resultobj = SWIG_FromInt((int)result);
21033 return resultobj;
21034 fail:
21035 return NULL;
21036}
21037
21038
21039static PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) {
21040 PyObject *resultobj;
21041 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
21042 int result;
21043 PyObject * obj0 = 0 ;
21044 char *kwnames[] = {
21045 (char *) "self", NULL
21046 };
21047
21048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetKeyCode",kwnames,&obj0)) goto fail;
21049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry,
21050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21051 {
21052 PyThreadState* __tstate = wxPyBeginAllowThreads();
21053 result = (int)(arg1)->GetKeyCode();
21054
21055 wxPyEndAllowThreads(__tstate);
21056 if (PyErr_Occurred()) SWIG_fail;
21057 }
21058 resultobj = SWIG_FromInt((int)result);
21059 return resultobj;
21060 fail:
21061 return NULL;
21062}
21063
21064
21065static PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
21066 PyObject *resultobj;
21067 wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
21068 int result;
21069 PyObject * obj0 = 0 ;
21070 char *kwnames[] = {
21071 (char *) "self", NULL
21072 };
21073
21074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_GetCommand",kwnames,&obj0)) goto fail;
21075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorEntry,
21076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21077 {
21078 PyThreadState* __tstate = wxPyBeginAllowThreads();
21079 result = (int)(arg1)->GetCommand();
21080
21081 wxPyEndAllowThreads(__tstate);
21082 if (PyErr_Occurred()) SWIG_fail;
21083 }
21084 resultobj = SWIG_FromInt((int)result);
21085 return resultobj;
21086 fail:
21087 return NULL;
21088}
21089
21090
21091static PyObject * AcceleratorEntry_swigregister(PyObject *self, PyObject *args) {
21092 PyObject *obj;
21093 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21094 SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorEntry, obj);
21095 Py_INCREF(obj);
21096 return Py_BuildValue((char *)"");
21097}
21098static PyObject *_wrap_new_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
21099 PyObject *resultobj;
21100 int arg1 ;
21101 wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ;
21102 wxAcceleratorTable *result;
21103 PyObject * obj0 = 0 ;
21104 char *kwnames[] = {
21105 (char *) "n", NULL
21106 };
21107
21108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) goto fail;
21109 {
21110 arg2 = wxAcceleratorEntry_LIST_helper(obj0);
21111 if (arg2) arg1 = PyList_Size(obj0);
21112 else arg1 = 0;
21113 }
21114 {
21115 PyThreadState* __tstate = wxPyBeginAllowThreads();
21116 result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2);
21117
21118 wxPyEndAllowThreads(__tstate);
21119 if (PyErr_Occurred()) SWIG_fail;
21120 }
21121 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 1);
21122 {
21123 delete [] arg2;
21124 }
21125 return resultobj;
21126 fail:
21127 {
21128 delete [] arg2;
21129 }
21130 return NULL;
21131}
21132
21133
21134static PyObject *_wrap_delete_AcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
21135 PyObject *resultobj;
21136 wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ;
21137 PyObject * obj0 = 0 ;
21138 char *kwnames[] = {
21139 (char *) "self", NULL
21140 };
21141
21142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_AcceleratorTable",kwnames,&obj0)) goto fail;
21143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable,
21144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21145 {
21146 PyThreadState* __tstate = wxPyBeginAllowThreads();
21147 delete arg1;
21148
21149 wxPyEndAllowThreads(__tstate);
21150 if (PyErr_Occurred()) SWIG_fail;
21151 }
21152 Py_INCREF(Py_None); resultobj = Py_None;
21153 return resultobj;
21154 fail:
21155 return NULL;
21156}
21157
21158
21159static PyObject *_wrap_AcceleratorTable_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
21160 PyObject *resultobj;
21161 wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ;
21162 bool result;
21163 PyObject * obj0 = 0 ;
21164 char *kwnames[] = {
21165 (char *) "self", NULL
21166 };
21167
21168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorTable_Ok",kwnames,&obj0)) goto fail;
21169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxAcceleratorTable,
21170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21171 {
21172 PyThreadState* __tstate = wxPyBeginAllowThreads();
21173 result = (bool)((wxAcceleratorTable const *)arg1)->Ok();
21174
21175 wxPyEndAllowThreads(__tstate);
21176 if (PyErr_Occurred()) SWIG_fail;
21177 }
21178 {
21179 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21180 }
21181 return resultobj;
21182 fail:
21183 return NULL;
21184}
21185
21186
21187static PyObject * AcceleratorTable_swigregister(PyObject *self, PyObject *args) {
21188 PyObject *obj;
21189 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21190 SWIG_TypeClientData(SWIGTYPE_p_wxAcceleratorTable, obj);
21191 Py_INCREF(obj);
21192 return Py_BuildValue((char *)"");
21193}
21194static int _wrap_NullAcceleratorTable_set(PyObject *_val) {
21195 PyErr_SetString(PyExc_TypeError,"Variable NullAcceleratorTable is read-only.");
21196 return 1;
21197}
21198
21199
21200static PyObject *_wrap_NullAcceleratorTable_get() {
21201 PyObject *pyobj;
21202
21203 pyobj = SWIG_NewPointerObj((void *)(&wxNullAcceleratorTable), SWIGTYPE_p_wxAcceleratorTable, 0);
21204 return pyobj;
21205}
21206
21207
21208static PyObject *_wrap_GetAccelFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
21209 PyObject *resultobj;
21210 wxString *arg1 = 0 ;
21211 wxAcceleratorEntry *result;
21212 bool temp1 = False ;
21213 PyObject * obj0 = 0 ;
21214 char *kwnames[] = {
21215 (char *) "label", NULL
21216 };
21217
21218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) goto fail;
21219 {
21220 arg1 = wxString_in_helper(obj0);
21221 if (arg1 == NULL) SWIG_fail;
21222 temp1 = True;
21223 }
21224 {
21225 PyThreadState* __tstate = wxPyBeginAllowThreads();
21226 result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1);
21227
21228 wxPyEndAllowThreads(__tstate);
21229 if (PyErr_Occurred()) SWIG_fail;
21230 }
21231 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0);
21232 {
21233 if (temp1)
21234 delete arg1;
21235 }
21236 return resultobj;
21237 fail:
21238 {
21239 if (temp1)
21240 delete arg1;
21241 }
21242 return NULL;
21243}
21244
21245
21246static int _wrap_PanelNameStr_set(PyObject *_val) {
21247 PyErr_SetString(PyExc_TypeError,"Variable PanelNameStr is read-only.");
21248 return 1;
21249}
21250
21251
21252static PyObject *_wrap_PanelNameStr_get() {
21253 PyObject *pyobj;
21254
21255 {
21256#if wxUSE_UNICODE
21257 pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len());
21258#else
21259 pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len());
21260#endif
21261 }
21262 return pyobj;
21263}
21264
21265
21266static PyObject *_wrap_new_VisualAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
21267 PyObject *resultobj;
21268 wxVisualAttributes *result;
21269 char *kwnames[] = {
21270 NULL
21271 };
21272
21273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_VisualAttributes",kwnames)) goto fail;
21274 {
21275 PyThreadState* __tstate = wxPyBeginAllowThreads();
21276 result = (wxVisualAttributes *)new_wxVisualAttributes();
21277
21278 wxPyEndAllowThreads(__tstate);
21279 if (PyErr_Occurred()) SWIG_fail;
21280 }
21281 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVisualAttributes, 1);
21282 return resultobj;
21283 fail:
21284 return NULL;
21285}
21286
21287
21288static PyObject *_wrap_delete_VisualAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
21289 PyObject *resultobj;
21290 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
21291 PyObject * obj0 = 0 ;
21292 char *kwnames[] = {
21293 (char *) "self", NULL
21294 };
21295
21296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VisualAttributes",kwnames,&obj0)) goto fail;
21297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
21298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21299 {
21300 PyThreadState* __tstate = wxPyBeginAllowThreads();
21301 delete_wxVisualAttributes(arg1);
21302
21303 wxPyEndAllowThreads(__tstate);
21304 if (PyErr_Occurred()) SWIG_fail;
21305 }
21306 Py_INCREF(Py_None); resultobj = Py_None;
21307 return resultobj;
21308 fail:
21309 return NULL;
21310}
21311
21312
21313static PyObject *_wrap_VisualAttributes_font_set(PyObject *self, PyObject *args, PyObject *kwargs) {
21314 PyObject *resultobj;
21315 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
21316 wxFont *arg2 = (wxFont *) 0 ;
21317 PyObject * obj0 = 0 ;
21318 PyObject * obj1 = 0 ;
21319 char *kwnames[] = {
21320 (char *) "self",(char *) "font", NULL
21321 };
21322
21323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_font_set",kwnames,&obj0,&obj1)) goto fail;
21324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
21325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21326 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
21327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21328 if (arg1) (arg1)->font = *arg2;
21329
21330 Py_INCREF(Py_None); resultobj = Py_None;
21331 return resultobj;
21332 fail:
21333 return NULL;
21334}
21335
21336
21337static PyObject *_wrap_VisualAttributes_font_get(PyObject *self, PyObject *args, PyObject *kwargs) {
21338 PyObject *resultobj;
21339 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
21340 wxFont *result;
21341 PyObject * obj0 = 0 ;
21342 char *kwnames[] = {
21343 (char *) "self", NULL
21344 };
21345
21346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_font_get",kwnames,&obj0)) goto fail;
21347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
21348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21349 result = (wxFont *)& ((arg1)->font);
21350
21351 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
21352 return resultobj;
21353 fail:
21354 return NULL;
21355}
21356
21357
21358static PyObject *_wrap_VisualAttributes_colFg_set(PyObject *self, PyObject *args, PyObject *kwargs) {
21359 PyObject *resultobj;
21360 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
21361 wxColour *arg2 = (wxColour *) 0 ;
21362 PyObject * obj0 = 0 ;
21363 PyObject * obj1 = 0 ;
21364 char *kwnames[] = {
21365 (char *) "self",(char *) "colFg", NULL
21366 };
21367
21368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colFg_set",kwnames,&obj0,&obj1)) goto fail;
21369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
21370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21371 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour,
21372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21373 if (arg1) (arg1)->colFg = *arg2;
21374
21375 Py_INCREF(Py_None); resultobj = Py_None;
21376 return resultobj;
21377 fail:
21378 return NULL;
21379}
21380
21381
21382static PyObject *_wrap_VisualAttributes_colFg_get(PyObject *self, PyObject *args, PyObject *kwargs) {
21383 PyObject *resultobj;
21384 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
21385 wxColour *result;
21386 PyObject * obj0 = 0 ;
21387 char *kwnames[] = {
21388 (char *) "self", NULL
21389 };
21390
21391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colFg_get",kwnames,&obj0)) goto fail;
21392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
21393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21394 result = (wxColour *)& ((arg1)->colFg);
21395
21396 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
21397 return resultobj;
21398 fail:
21399 return NULL;
21400}
21401
21402
21403static PyObject *_wrap_VisualAttributes_colBg_set(PyObject *self, PyObject *args, PyObject *kwargs) {
21404 PyObject *resultobj;
21405 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
21406 wxColour *arg2 = (wxColour *) 0 ;
21407 PyObject * obj0 = 0 ;
21408 PyObject * obj1 = 0 ;
21409 char *kwnames[] = {
21410 (char *) "self",(char *) "colBg", NULL
21411 };
21412
21413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VisualAttributes_colBg_set",kwnames,&obj0,&obj1)) goto fail;
21414 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
21415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21416 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxColour,
21417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21418 if (arg1) (arg1)->colBg = *arg2;
21419
21420 Py_INCREF(Py_None); resultobj = Py_None;
21421 return resultobj;
21422 fail:
21423 return NULL;
21424}
21425
21426
21427static PyObject *_wrap_VisualAttributes_colBg_get(PyObject *self, PyObject *args, PyObject *kwargs) {
21428 PyObject *resultobj;
21429 wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
21430 wxColour *result;
21431 PyObject * obj0 = 0 ;
21432 char *kwnames[] = {
21433 (char *) "self", NULL
21434 };
21435
21436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VisualAttributes_colBg_get",kwnames,&obj0)) goto fail;
21437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVisualAttributes,
21438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21439 result = (wxColour *)& ((arg1)->colBg);
21440
21441 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
21442 return resultobj;
21443 fail:
21444 return NULL;
21445}
21446
21447
21448static PyObject * VisualAttributes_swigregister(PyObject *self, PyObject *args) {
21449 PyObject *obj;
21450 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21451 SWIG_TypeClientData(SWIGTYPE_p_wxVisualAttributes, obj);
21452 Py_INCREF(obj);
21453 return Py_BuildValue((char *)"");
21454}
21455static PyObject *_wrap_new_Window(PyObject *self, PyObject *args, PyObject *kwargs) {
21456 PyObject *resultobj;
21457 wxWindow *arg1 = (wxWindow *) 0 ;
21458 int arg2 = (int) (int)-1 ;
21459 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21460 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21461 wxSize const &arg4_defvalue = wxDefaultSize ;
21462 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21463 long arg5 = (long) 0 ;
21464 wxString const &arg6_defvalue = wxPyPanelNameStr ;
21465 wxString *arg6 = (wxString *) &arg6_defvalue ;
21466 wxWindow *result;
21467 wxPoint temp3 ;
21468 wxSize temp4 ;
21469 bool temp6 = False ;
21470 PyObject * obj0 = 0 ;
21471 PyObject * obj1 = 0 ;
21472 PyObject * obj2 = 0 ;
21473 PyObject * obj3 = 0 ;
21474 PyObject * obj4 = 0 ;
21475 PyObject * obj5 = 0 ;
21476 char *kwnames[] = {
21477 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21478 };
21479
21480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Window",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
21481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21483 if (obj1) {
21484 arg2 = (int const) SWIG_AsInt(obj1);
21485 if (PyErr_Occurred()) SWIG_fail;
21486 }
21487 if (obj2) {
21488 {
21489 arg3 = &temp3;
21490 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21491 }
21492 }
21493 if (obj3) {
21494 {
21495 arg4 = &temp4;
21496 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21497 }
21498 }
21499 if (obj4) {
21500 arg5 = (long) SWIG_AsLong(obj4);
21501 if (PyErr_Occurred()) SWIG_fail;
21502 }
21503 if (obj5) {
21504 {
21505 arg6 = wxString_in_helper(obj5);
21506 if (arg6 == NULL) SWIG_fail;
21507 temp6 = True;
21508 }
21509 }
21510 {
0439c23b 21511 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
21512 PyThreadState* __tstate = wxPyBeginAllowThreads();
21513 result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21514
21515 wxPyEndAllowThreads(__tstate);
110da5b0 21516 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 21517 }
b0f7404b 21518 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindow, 1);
d55e5bfc
RD
21519 {
21520 if (temp6)
21521 delete arg6;
21522 }
21523 return resultobj;
21524 fail:
21525 {
21526 if (temp6)
21527 delete arg6;
21528 }
21529 return NULL;
21530}
21531
21532
21533static PyObject *_wrap_new_PreWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
21534 PyObject *resultobj;
21535 wxWindow *result;
21536 char *kwnames[] = {
21537 NULL
21538 };
21539
21540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreWindow",kwnames)) goto fail;
21541 {
0439c23b 21542 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
21543 PyThreadState* __tstate = wxPyBeginAllowThreads();
21544 result = (wxWindow *)new wxWindow();
21545
21546 wxPyEndAllowThreads(__tstate);
110da5b0 21547 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 21548 }
b0f7404b 21549 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindow, 1);
d55e5bfc
RD
21550 return resultobj;
21551 fail:
21552 return NULL;
21553}
21554
21555
21556static PyObject *_wrap_Window_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
21557 PyObject *resultobj;
21558 wxWindow *arg1 = (wxWindow *) 0 ;
21559 wxWindow *arg2 = (wxWindow *) 0 ;
21560 int arg3 = (int) (int)-1 ;
21561 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21562 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21563 wxSize const &arg5_defvalue = wxDefaultSize ;
21564 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21565 long arg6 = (long) 0 ;
21566 wxString const &arg7_defvalue = wxPyPanelNameStr ;
21567 wxString *arg7 = (wxString *) &arg7_defvalue ;
21568 bool result;
21569 wxPoint temp4 ;
21570 wxSize temp5 ;
21571 bool temp7 = False ;
21572 PyObject * obj0 = 0 ;
21573 PyObject * obj1 = 0 ;
21574 PyObject * obj2 = 0 ;
21575 PyObject * obj3 = 0 ;
21576 PyObject * obj4 = 0 ;
21577 PyObject * obj5 = 0 ;
21578 PyObject * obj6 = 0 ;
21579 char *kwnames[] = {
21580 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21581 };
21582
21583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Window_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
21584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21586 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
21587 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21588 if (obj2) {
21589 arg3 = (int const) SWIG_AsInt(obj2);
21590 if (PyErr_Occurred()) SWIG_fail;
21591 }
21592 if (obj3) {
21593 {
21594 arg4 = &temp4;
21595 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21596 }
21597 }
21598 if (obj4) {
21599 {
21600 arg5 = &temp5;
21601 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21602 }
21603 }
21604 if (obj5) {
21605 arg6 = (long) SWIG_AsLong(obj5);
21606 if (PyErr_Occurred()) SWIG_fail;
21607 }
21608 if (obj6) {
21609 {
21610 arg7 = wxString_in_helper(obj6);
21611 if (arg7 == NULL) SWIG_fail;
21612 temp7 = True;
21613 }
21614 }
21615 {
21616 PyThreadState* __tstate = wxPyBeginAllowThreads();
21617 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21618
21619 wxPyEndAllowThreads(__tstate);
21620 if (PyErr_Occurred()) SWIG_fail;
21621 }
21622 {
21623 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21624 }
21625 {
21626 if (temp7)
21627 delete arg7;
21628 }
21629 return resultobj;
21630 fail:
21631 {
21632 if (temp7)
21633 delete arg7;
21634 }
21635 return NULL;
21636}
21637
21638
21639static PyObject *_wrap_Window_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
21640 PyObject *resultobj;
21641 wxWindow *arg1 = (wxWindow *) 0 ;
21642 bool arg2 = (bool) False ;
21643 bool result;
21644 PyObject * obj0 = 0 ;
21645 PyObject * obj1 = 0 ;
21646 char *kwnames[] = {
21647 (char *) "self",(char *) "force", NULL
21648 };
21649
21650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",kwnames,&obj0,&obj1)) goto fail;
21651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21653 if (obj1) {
21654 arg2 = (bool) SWIG_AsBool(obj1);
21655 if (PyErr_Occurred()) SWIG_fail;
21656 }
21657 {
21658 PyThreadState* __tstate = wxPyBeginAllowThreads();
21659 result = (bool)(arg1)->Close(arg2);
21660
21661 wxPyEndAllowThreads(__tstate);
21662 if (PyErr_Occurred()) SWIG_fail;
21663 }
21664 {
21665 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21666 }
21667 return resultobj;
21668 fail:
21669 return NULL;
21670}
21671
21672
21673static PyObject *_wrap_Window_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
21674 PyObject *resultobj;
21675 wxWindow *arg1 = (wxWindow *) 0 ;
21676 bool result;
21677 PyObject * obj0 = 0 ;
21678 char *kwnames[] = {
21679 (char *) "self", NULL
21680 };
21681
21682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Destroy",kwnames,&obj0)) goto fail;
21683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21685 {
21686 PyThreadState* __tstate = wxPyBeginAllowThreads();
21687 result = (bool)(arg1)->Destroy();
21688
21689 wxPyEndAllowThreads(__tstate);
21690 if (PyErr_Occurred()) SWIG_fail;
21691 }
21692 {
21693 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21694 }
21695 return resultobj;
21696 fail:
21697 return NULL;
21698}
21699
21700
21701static PyObject *_wrap_Window_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
21702 PyObject *resultobj;
21703 wxWindow *arg1 = (wxWindow *) 0 ;
21704 bool result;
21705 PyObject * obj0 = 0 ;
21706 char *kwnames[] = {
21707 (char *) "self", NULL
21708 };
21709
21710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_DestroyChildren",kwnames,&obj0)) goto fail;
21711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21713 {
21714 PyThreadState* __tstate = wxPyBeginAllowThreads();
21715 result = (bool)(arg1)->DestroyChildren();
21716
21717 wxPyEndAllowThreads(__tstate);
21718 if (PyErr_Occurred()) SWIG_fail;
21719 }
21720 {
21721 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21722 }
21723 return resultobj;
21724 fail:
21725 return NULL;
21726}
21727
21728
21729static PyObject *_wrap_Window_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) {
21730 PyObject *resultobj;
21731 wxWindow *arg1 = (wxWindow *) 0 ;
21732 bool result;
21733 PyObject * obj0 = 0 ;
21734 char *kwnames[] = {
21735 (char *) "self", NULL
21736 };
21737
21738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsBeingDeleted",kwnames,&obj0)) goto fail;
21739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21741 {
21742 PyThreadState* __tstate = wxPyBeginAllowThreads();
21743 result = (bool)((wxWindow const *)arg1)->IsBeingDeleted();
21744
21745 wxPyEndAllowThreads(__tstate);
21746 if (PyErr_Occurred()) SWIG_fail;
21747 }
21748 {
21749 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21750 }
21751 return resultobj;
21752 fail:
21753 return NULL;
21754}
21755
21756
21757static PyObject *_wrap_Window_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
21758 PyObject *resultobj;
21759 wxWindow *arg1 = (wxWindow *) 0 ;
21760 wxString *arg2 = 0 ;
21761 bool temp2 = False ;
21762 PyObject * obj0 = 0 ;
21763 PyObject * obj1 = 0 ;
21764 char *kwnames[] = {
21765 (char *) "self",(char *) "title", NULL
21766 };
21767
21768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTitle",kwnames,&obj0,&obj1)) goto fail;
21769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21771 {
21772 arg2 = wxString_in_helper(obj1);
21773 if (arg2 == NULL) SWIG_fail;
21774 temp2 = True;
21775 }
21776 {
21777 PyThreadState* __tstate = wxPyBeginAllowThreads();
21778 (arg1)->SetTitle((wxString const &)*arg2);
21779
21780 wxPyEndAllowThreads(__tstate);
21781 if (PyErr_Occurred()) SWIG_fail;
21782 }
21783 Py_INCREF(Py_None); resultobj = Py_None;
21784 {
21785 if (temp2)
21786 delete arg2;
21787 }
21788 return resultobj;
21789 fail:
21790 {
21791 if (temp2)
21792 delete arg2;
21793 }
21794 return NULL;
21795}
21796
21797
21798static PyObject *_wrap_Window_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
21799 PyObject *resultobj;
21800 wxWindow *arg1 = (wxWindow *) 0 ;
21801 wxString result;
21802 PyObject * obj0 = 0 ;
21803 char *kwnames[] = {
21804 (char *) "self", NULL
21805 };
21806
21807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetTitle",kwnames,&obj0)) goto fail;
21808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21810 {
21811 PyThreadState* __tstate = wxPyBeginAllowThreads();
21812 result = ((wxWindow const *)arg1)->GetTitle();
21813
21814 wxPyEndAllowThreads(__tstate);
21815 if (PyErr_Occurred()) SWIG_fail;
21816 }
21817 {
21818#if wxUSE_UNICODE
21819 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21820#else
21821 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21822#endif
21823 }
21824 return resultobj;
21825 fail:
21826 return NULL;
21827}
21828
21829
21830static PyObject *_wrap_Window_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
21831 PyObject *resultobj;
21832 wxWindow *arg1 = (wxWindow *) 0 ;
21833 wxString *arg2 = 0 ;
21834 bool temp2 = False ;
21835 PyObject * obj0 = 0 ;
21836 PyObject * obj1 = 0 ;
21837 char *kwnames[] = {
21838 (char *) "self",(char *) "label", NULL
21839 };
21840
21841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",kwnames,&obj0,&obj1)) goto fail;
21842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21844 {
21845 arg2 = wxString_in_helper(obj1);
21846 if (arg2 == NULL) SWIG_fail;
21847 temp2 = True;
21848 }
21849 {
21850 PyThreadState* __tstate = wxPyBeginAllowThreads();
21851 (arg1)->SetLabel((wxString const &)*arg2);
21852
21853 wxPyEndAllowThreads(__tstate);
21854 if (PyErr_Occurred()) SWIG_fail;
21855 }
21856 Py_INCREF(Py_None); resultobj = Py_None;
21857 {
21858 if (temp2)
21859 delete arg2;
21860 }
21861 return resultobj;
21862 fail:
21863 {
21864 if (temp2)
21865 delete arg2;
21866 }
21867 return NULL;
21868}
21869
21870
21871static PyObject *_wrap_Window_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
21872 PyObject *resultobj;
21873 wxWindow *arg1 = (wxWindow *) 0 ;
21874 wxString result;
21875 PyObject * obj0 = 0 ;
21876 char *kwnames[] = {
21877 (char *) "self", NULL
21878 };
21879
21880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetLabel",kwnames,&obj0)) goto fail;
21881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21883 {
21884 PyThreadState* __tstate = wxPyBeginAllowThreads();
21885 result = ((wxWindow const *)arg1)->GetLabel();
21886
21887 wxPyEndAllowThreads(__tstate);
21888 if (PyErr_Occurred()) SWIG_fail;
21889 }
21890 {
21891#if wxUSE_UNICODE
21892 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21893#else
21894 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21895#endif
21896 }
21897 return resultobj;
21898 fail:
21899 return NULL;
21900}
21901
21902
21903static PyObject *_wrap_Window_SetName(PyObject *self, PyObject *args, PyObject *kwargs) {
21904 PyObject *resultobj;
21905 wxWindow *arg1 = (wxWindow *) 0 ;
21906 wxString *arg2 = 0 ;
21907 bool temp2 = False ;
21908 PyObject * obj0 = 0 ;
21909 PyObject * obj1 = 0 ;
21910 char *kwnames[] = {
21911 (char *) "self",(char *) "name", NULL
21912 };
21913
21914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) goto fail;
21915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21917 {
21918 arg2 = wxString_in_helper(obj1);
21919 if (arg2 == NULL) SWIG_fail;
21920 temp2 = True;
21921 }
21922 {
21923 PyThreadState* __tstate = wxPyBeginAllowThreads();
21924 (arg1)->SetName((wxString const &)*arg2);
21925
21926 wxPyEndAllowThreads(__tstate);
21927 if (PyErr_Occurred()) SWIG_fail;
21928 }
21929 Py_INCREF(Py_None); resultobj = Py_None;
21930 {
21931 if (temp2)
21932 delete arg2;
21933 }
21934 return resultobj;
21935 fail:
21936 {
21937 if (temp2)
21938 delete arg2;
21939 }
21940 return NULL;
21941}
21942
21943
21944static PyObject *_wrap_Window_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
21945 PyObject *resultobj;
21946 wxWindow *arg1 = (wxWindow *) 0 ;
21947 wxString result;
21948 PyObject * obj0 = 0 ;
21949 char *kwnames[] = {
21950 (char *) "self", NULL
21951 };
21952
21953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetName",kwnames,&obj0)) goto fail;
21954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21956 {
21957 PyThreadState* __tstate = wxPyBeginAllowThreads();
21958 result = ((wxWindow const *)arg1)->GetName();
21959
21960 wxPyEndAllowThreads(__tstate);
21961 if (PyErr_Occurred()) SWIG_fail;
21962 }
21963 {
21964#if wxUSE_UNICODE
21965 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21966#else
21967 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21968#endif
21969 }
21970 return resultobj;
21971 fail:
21972 return NULL;
21973}
21974
21975
21976static PyObject *_wrap_Window_SetWindowVariant(PyObject *self, PyObject *args, PyObject *kwargs) {
21977 PyObject *resultobj;
21978 wxWindow *arg1 = (wxWindow *) 0 ;
21979 int arg2 ;
21980 PyObject * obj0 = 0 ;
21981 PyObject * obj1 = 0 ;
21982 char *kwnames[] = {
21983 (char *) "self",(char *) "variant", NULL
21984 };
21985
21986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowVariant",kwnames,&obj0,&obj1)) goto fail;
21987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21989 arg2 = (wxWindowVariant) SWIG_AsInt(obj1);
21990 if (PyErr_Occurred()) SWIG_fail;
21991 {
21992 PyThreadState* __tstate = wxPyBeginAllowThreads();
21993 (arg1)->SetWindowVariant((wxWindowVariant )arg2);
21994
21995 wxPyEndAllowThreads(__tstate);
21996 if (PyErr_Occurred()) SWIG_fail;
21997 }
21998 Py_INCREF(Py_None); resultobj = Py_None;
21999 return resultobj;
22000 fail:
22001 return NULL;
22002}
22003
22004
22005static PyObject *_wrap_Window_GetWindowVariant(PyObject *self, PyObject *args, PyObject *kwargs) {
22006 PyObject *resultobj;
22007 wxWindow *arg1 = (wxWindow *) 0 ;
22008 int result;
22009 PyObject * obj0 = 0 ;
22010 char *kwnames[] = {
22011 (char *) "self", NULL
22012 };
22013
22014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowVariant",kwnames,&obj0)) goto fail;
22015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22017 {
22018 PyThreadState* __tstate = wxPyBeginAllowThreads();
22019 result = (int)((wxWindow const *)arg1)->GetWindowVariant();
22020
22021 wxPyEndAllowThreads(__tstate);
22022 if (PyErr_Occurred()) SWIG_fail;
22023 }
22024 resultobj = SWIG_FromInt((int)result);
22025 return resultobj;
22026 fail:
22027 return NULL;
22028}
22029
22030
22031static PyObject *_wrap_Window_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
22032 PyObject *resultobj;
22033 wxWindow *arg1 = (wxWindow *) 0 ;
22034 int arg2 ;
22035 PyObject * obj0 = 0 ;
22036 PyObject * obj1 = 0 ;
22037 char *kwnames[] = {
22038 (char *) "self",(char *) "winid", NULL
22039 };
22040
22041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetId",kwnames,&obj0,&obj1)) goto fail;
22042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22044 arg2 = (int) SWIG_AsInt(obj1);
22045 if (PyErr_Occurred()) SWIG_fail;
22046 {
22047 PyThreadState* __tstate = wxPyBeginAllowThreads();
22048 (arg1)->SetId(arg2);
22049
22050 wxPyEndAllowThreads(__tstate);
22051 if (PyErr_Occurred()) SWIG_fail;
22052 }
22053 Py_INCREF(Py_None); resultobj = Py_None;
22054 return resultobj;
22055 fail:
22056 return NULL;
22057}
22058
22059
22060static PyObject *_wrap_Window_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
22061 PyObject *resultobj;
22062 wxWindow *arg1 = (wxWindow *) 0 ;
22063 int result;
22064 PyObject * obj0 = 0 ;
22065 char *kwnames[] = {
22066 (char *) "self", NULL
22067 };
22068
22069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetId",kwnames,&obj0)) goto fail;
22070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22072 {
22073 PyThreadState* __tstate = wxPyBeginAllowThreads();
22074 result = (int)((wxWindow const *)arg1)->GetId();
22075
22076 wxPyEndAllowThreads(__tstate);
22077 if (PyErr_Occurred()) SWIG_fail;
22078 }
22079 resultobj = SWIG_FromInt((int)result);
22080 return resultobj;
22081 fail:
22082 return NULL;
22083}
22084
22085
22086static PyObject *_wrap_Window_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) {
22087 PyObject *resultobj;
22088 int result;
22089 char *kwnames[] = {
22090 NULL
22091 };
22092
22093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_NewControlId",kwnames)) goto fail;
22094 {
22095 PyThreadState* __tstate = wxPyBeginAllowThreads();
22096 result = (int)wxWindow::NewControlId();
22097
22098 wxPyEndAllowThreads(__tstate);
22099 if (PyErr_Occurred()) SWIG_fail;
22100 }
22101 resultobj = SWIG_FromInt((int)result);
22102 return resultobj;
22103 fail:
22104 return NULL;
22105}
22106
22107
22108static PyObject *_wrap_Window_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) {
22109 PyObject *resultobj;
22110 int arg1 ;
22111 int result;
22112 PyObject * obj0 = 0 ;
22113 char *kwnames[] = {
22114 (char *) "winid", NULL
22115 };
22116
22117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_NextControlId",kwnames,&obj0)) goto fail;
22118 arg1 = (int) SWIG_AsInt(obj0);
22119 if (PyErr_Occurred()) SWIG_fail;
22120 {
22121 PyThreadState* __tstate = wxPyBeginAllowThreads();
22122 result = (int)wxWindow::NextControlId(arg1);
22123
22124 wxPyEndAllowThreads(__tstate);
22125 if (PyErr_Occurred()) SWIG_fail;
22126 }
22127 resultobj = SWIG_FromInt((int)result);
22128 return resultobj;
22129 fail:
22130 return NULL;
22131}
22132
22133
22134static PyObject *_wrap_Window_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) {
22135 PyObject *resultobj;
22136 int arg1 ;
22137 int result;
22138 PyObject * obj0 = 0 ;
22139 char *kwnames[] = {
22140 (char *) "winid", NULL
22141 };
22142
22143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PrevControlId",kwnames,&obj0)) goto fail;
22144 arg1 = (int) SWIG_AsInt(obj0);
22145 if (PyErr_Occurred()) SWIG_fail;
22146 {
22147 PyThreadState* __tstate = wxPyBeginAllowThreads();
22148 result = (int)wxWindow::PrevControlId(arg1);
22149
22150 wxPyEndAllowThreads(__tstate);
22151 if (PyErr_Occurred()) SWIG_fail;
22152 }
22153 resultobj = SWIG_FromInt((int)result);
22154 return resultobj;
22155 fail:
22156 return NULL;
22157}
22158
22159
22160static PyObject *_wrap_Window_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22161 PyObject *resultobj;
22162 wxWindow *arg1 = (wxWindow *) 0 ;
22163 wxSize *arg2 = 0 ;
22164 wxSize temp2 ;
22165 PyObject * obj0 = 0 ;
22166 PyObject * obj1 = 0 ;
22167 char *kwnames[] = {
22168 (char *) "self",(char *) "size", NULL
22169 };
22170
22171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) goto fail;
22172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22174 {
22175 arg2 = &temp2;
22176 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
22177 }
22178 {
22179 PyThreadState* __tstate = wxPyBeginAllowThreads();
22180 (arg1)->SetSize((wxSize const &)*arg2);
22181
22182 wxPyEndAllowThreads(__tstate);
22183 if (PyErr_Occurred()) SWIG_fail;
22184 }
22185 Py_INCREF(Py_None); resultobj = Py_None;
22186 return resultobj;
22187 fail:
22188 return NULL;
22189}
22190
22191
22192static PyObject *_wrap_Window_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) {
22193 PyObject *resultobj;
22194 wxWindow *arg1 = (wxWindow *) 0 ;
22195 int arg2 ;
22196 int arg3 ;
22197 int arg4 ;
22198 int arg5 ;
22199 int arg6 = (int) wxSIZE_AUTO ;
22200 PyObject * obj0 = 0 ;
22201 PyObject * obj1 = 0 ;
22202 PyObject * obj2 = 0 ;
22203 PyObject * obj3 = 0 ;
22204 PyObject * obj4 = 0 ;
22205 PyObject * obj5 = 0 ;
22206 char *kwnames[] = {
22207 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
22208 };
22209
22210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetDimensions",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
22211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22213 arg2 = (int) SWIG_AsInt(obj1);
22214 if (PyErr_Occurred()) SWIG_fail;
22215 arg3 = (int) SWIG_AsInt(obj2);
22216 if (PyErr_Occurred()) SWIG_fail;
22217 arg4 = (int) SWIG_AsInt(obj3);
22218 if (PyErr_Occurred()) SWIG_fail;
22219 arg5 = (int) SWIG_AsInt(obj4);
22220 if (PyErr_Occurred()) SWIG_fail;
22221 if (obj5) {
22222 arg6 = (int) SWIG_AsInt(obj5);
22223 if (PyErr_Occurred()) SWIG_fail;
22224 }
22225 {
22226 PyThreadState* __tstate = wxPyBeginAllowThreads();
22227 (arg1)->SetSize(arg2,arg3,arg4,arg5,arg6);
22228
22229 wxPyEndAllowThreads(__tstate);
22230 if (PyErr_Occurred()) SWIG_fail;
22231 }
22232 Py_INCREF(Py_None); resultobj = Py_None;
22233 return resultobj;
22234 fail:
22235 return NULL;
22236}
22237
22238
22239static PyObject *_wrap_Window_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
22240 PyObject *resultobj;
22241 wxWindow *arg1 = (wxWindow *) 0 ;
22242 wxRect *arg2 = 0 ;
22243 int arg3 = (int) wxSIZE_AUTO ;
22244 wxRect temp2 ;
22245 PyObject * obj0 = 0 ;
22246 PyObject * obj1 = 0 ;
22247 PyObject * obj2 = 0 ;
22248 char *kwnames[] = {
22249 (char *) "self",(char *) "rect",(char *) "sizeFlags", NULL
22250 };
22251
22252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
22253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22255 {
22256 arg2 = &temp2;
22257 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
22258 }
22259 if (obj2) {
22260 arg3 = (int) SWIG_AsInt(obj2);
22261 if (PyErr_Occurred()) SWIG_fail;
22262 }
22263 {
22264 PyThreadState* __tstate = wxPyBeginAllowThreads();
22265 (arg1)->SetSize((wxRect const &)*arg2,arg3);
22266
22267 wxPyEndAllowThreads(__tstate);
22268 if (PyErr_Occurred()) SWIG_fail;
22269 }
22270 Py_INCREF(Py_None); resultobj = Py_None;
22271 return resultobj;
22272 fail:
22273 return NULL;
22274}
22275
22276
22277static PyObject *_wrap_Window_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
22278 PyObject *resultobj;
22279 wxWindow *arg1 = (wxWindow *) 0 ;
22280 int arg2 ;
22281 int arg3 ;
22282 PyObject * obj0 = 0 ;
22283 PyObject * obj1 = 0 ;
22284 PyObject * obj2 = 0 ;
22285 char *kwnames[] = {
22286 (char *) "self",(char *) "width",(char *) "height", NULL
22287 };
22288
22289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
22290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22292 arg2 = (int) SWIG_AsInt(obj1);
22293 if (PyErr_Occurred()) SWIG_fail;
22294 arg3 = (int) SWIG_AsInt(obj2);
22295 if (PyErr_Occurred()) SWIG_fail;
22296 {
22297 PyThreadState* __tstate = wxPyBeginAllowThreads();
22298 (arg1)->SetSize(arg2,arg3);
22299
22300 wxPyEndAllowThreads(__tstate);
22301 if (PyErr_Occurred()) SWIG_fail;
22302 }
22303 Py_INCREF(Py_None); resultobj = Py_None;
22304 return resultobj;
22305 fail:
22306 return NULL;
22307}
22308
22309
22310static PyObject *_wrap_Window_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
22311 PyObject *resultobj;
22312 wxWindow *arg1 = (wxWindow *) 0 ;
22313 wxPoint *arg2 = 0 ;
22314 int arg3 = (int) wxSIZE_USE_EXISTING ;
22315 wxPoint temp2 ;
22316 PyObject * obj0 = 0 ;
22317 PyObject * obj1 = 0 ;
22318 PyObject * obj2 = 0 ;
22319 char *kwnames[] = {
22320 (char *) "self",(char *) "pt",(char *) "flags", NULL
22321 };
22322
22323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_Move",kwnames,&obj0,&obj1,&obj2)) goto fail;
22324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22326 {
22327 arg2 = &temp2;
22328 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22329 }
22330 if (obj2) {
22331 arg3 = (int) SWIG_AsInt(obj2);
22332 if (PyErr_Occurred()) SWIG_fail;
22333 }
22334 {
22335 PyThreadState* __tstate = wxPyBeginAllowThreads();
22336 (arg1)->Move((wxPoint const &)*arg2,arg3);
22337
22338 wxPyEndAllowThreads(__tstate);
22339 if (PyErr_Occurred()) SWIG_fail;
22340 }
22341 Py_INCREF(Py_None); resultobj = Py_None;
22342 return resultobj;
22343 fail:
22344 return NULL;
22345}
22346
22347
22348static PyObject *_wrap_Window_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) {
22349 PyObject *resultobj;
22350 wxWindow *arg1 = (wxWindow *) 0 ;
22351 int arg2 ;
22352 int arg3 ;
22353 int arg4 = (int) wxSIZE_USE_EXISTING ;
22354 PyObject * obj0 = 0 ;
22355 PyObject * obj1 = 0 ;
22356 PyObject * obj2 = 0 ;
22357 PyObject * obj3 = 0 ;
22358 char *kwnames[] = {
22359 (char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL
22360 };
22361
22362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_MoveXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22365 arg2 = (int) SWIG_AsInt(obj1);
22366 if (PyErr_Occurred()) SWIG_fail;
22367 arg3 = (int) SWIG_AsInt(obj2);
22368 if (PyErr_Occurred()) SWIG_fail;
22369 if (obj3) {
22370 arg4 = (int) SWIG_AsInt(obj3);
22371 if (PyErr_Occurred()) SWIG_fail;
22372 }
22373 {
22374 PyThreadState* __tstate = wxPyBeginAllowThreads();
22375 (arg1)->Move(arg2,arg3,arg4);
22376
22377 wxPyEndAllowThreads(__tstate);
22378 if (PyErr_Occurred()) SWIG_fail;
22379 }
22380 Py_INCREF(Py_None); resultobj = Py_None;
22381 return resultobj;
22382 fail:
22383 return NULL;
22384}
22385
22386
f8167d6e
RD
22387static PyObject *_wrap_Window_SetBestFittingSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22388 PyObject *resultobj;
22389 wxWindow *arg1 = (wxWindow *) 0 ;
22390 wxSize const &arg2_defvalue = wxDefaultSize ;
22391 wxSize *arg2 = (wxSize *) &arg2_defvalue ;
22392 wxSize temp2 ;
22393 PyObject * obj0 = 0 ;
22394 PyObject * obj1 = 0 ;
22395 char *kwnames[] = {
22396 (char *) "self",(char *) "size", NULL
22397 };
22398
22399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_SetBestFittingSize",kwnames,&obj0,&obj1)) goto fail;
22400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22402 if (obj1) {
22403 {
22404 arg2 = &temp2;
22405 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
22406 }
22407 }
22408 {
22409 PyThreadState* __tstate = wxPyBeginAllowThreads();
22410 (arg1)->SetBestFittingSize((wxSize const &)*arg2);
22411
22412 wxPyEndAllowThreads(__tstate);
22413 if (PyErr_Occurred()) SWIG_fail;
22414 }
22415 Py_INCREF(Py_None); resultobj = Py_None;
22416 return resultobj;
22417 fail:
22418 return NULL;
22419}
22420
22421
d55e5bfc
RD
22422static PyObject *_wrap_Window_Raise(PyObject *self, PyObject *args, PyObject *kwargs) {
22423 PyObject *resultobj;
22424 wxWindow *arg1 = (wxWindow *) 0 ;
22425 PyObject * obj0 = 0 ;
22426 char *kwnames[] = {
22427 (char *) "self", NULL
22428 };
22429
22430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Raise",kwnames,&obj0)) goto fail;
22431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22433 {
22434 PyThreadState* __tstate = wxPyBeginAllowThreads();
22435 (arg1)->Raise();
22436
22437 wxPyEndAllowThreads(__tstate);
22438 if (PyErr_Occurred()) SWIG_fail;
22439 }
22440 Py_INCREF(Py_None); resultobj = Py_None;
22441 return resultobj;
22442 fail:
22443 return NULL;
22444}
22445
22446
22447static PyObject *_wrap_Window_Lower(PyObject *self, PyObject *args, PyObject *kwargs) {
22448 PyObject *resultobj;
22449 wxWindow *arg1 = (wxWindow *) 0 ;
22450 PyObject * obj0 = 0 ;
22451 char *kwnames[] = {
22452 (char *) "self", NULL
22453 };
22454
22455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Lower",kwnames,&obj0)) goto fail;
22456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22458 {
22459 PyThreadState* __tstate = wxPyBeginAllowThreads();
22460 (arg1)->Lower();
22461
22462 wxPyEndAllowThreads(__tstate);
22463 if (PyErr_Occurred()) SWIG_fail;
22464 }
22465 Py_INCREF(Py_None); resultobj = Py_None;
22466 return resultobj;
22467 fail:
22468 return NULL;
22469}
22470
22471
22472static PyObject *_wrap_Window_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22473 PyObject *resultobj;
22474 wxWindow *arg1 = (wxWindow *) 0 ;
22475 wxSize *arg2 = 0 ;
22476 wxSize temp2 ;
22477 PyObject * obj0 = 0 ;
22478 PyObject * obj1 = 0 ;
22479 char *kwnames[] = {
22480 (char *) "self",(char *) "size", NULL
22481 };
22482
22483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) goto fail;
22484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22486 {
22487 arg2 = &temp2;
22488 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
22489 }
22490 {
22491 PyThreadState* __tstate = wxPyBeginAllowThreads();
22492 (arg1)->SetClientSize((wxSize const &)*arg2);
22493
22494 wxPyEndAllowThreads(__tstate);
22495 if (PyErr_Occurred()) SWIG_fail;
22496 }
22497 Py_INCREF(Py_None); resultobj = Py_None;
22498 return resultobj;
22499 fail:
22500 return NULL;
22501}
22502
22503
22504static PyObject *_wrap_Window_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
22505 PyObject *resultobj;
22506 wxWindow *arg1 = (wxWindow *) 0 ;
22507 int arg2 ;
22508 int arg3 ;
22509 PyObject * obj0 = 0 ;
22510 PyObject * obj1 = 0 ;
22511 PyObject * obj2 = 0 ;
22512 char *kwnames[] = {
22513 (char *) "self",(char *) "width",(char *) "height", NULL
22514 };
22515
22516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetClientSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
22517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22519 arg2 = (int) SWIG_AsInt(obj1);
22520 if (PyErr_Occurred()) SWIG_fail;
22521 arg3 = (int) SWIG_AsInt(obj2);
22522 if (PyErr_Occurred()) SWIG_fail;
22523 {
22524 PyThreadState* __tstate = wxPyBeginAllowThreads();
22525 (arg1)->SetClientSize(arg2,arg3);
22526
22527 wxPyEndAllowThreads(__tstate);
22528 if (PyErr_Occurred()) SWIG_fail;
22529 }
22530 Py_INCREF(Py_None); resultobj = Py_None;
22531 return resultobj;
22532 fail:
22533 return NULL;
22534}
22535
22536
22537static PyObject *_wrap_Window_SetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) {
22538 PyObject *resultobj;
22539 wxWindow *arg1 = (wxWindow *) 0 ;
22540 wxRect *arg2 = 0 ;
22541 wxRect temp2 ;
22542 PyObject * obj0 = 0 ;
22543 PyObject * obj1 = 0 ;
22544 char *kwnames[] = {
22545 (char *) "self",(char *) "rect", NULL
22546 };
22547
22548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) goto fail;
22549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22551 {
22552 arg2 = &temp2;
22553 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
22554 }
22555 {
22556 PyThreadState* __tstate = wxPyBeginAllowThreads();
22557 (arg1)->SetClientSize((wxRect const &)*arg2);
22558
22559 wxPyEndAllowThreads(__tstate);
22560 if (PyErr_Occurred()) SWIG_fail;
22561 }
22562 Py_INCREF(Py_None); resultobj = Py_None;
22563 return resultobj;
22564 fail:
22565 return NULL;
22566}
22567
22568
22569static PyObject *_wrap_Window_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
22570 PyObject *resultobj;
22571 wxWindow *arg1 = (wxWindow *) 0 ;
22572 wxPoint result;
22573 PyObject * obj0 = 0 ;
22574 char *kwnames[] = {
22575 (char *) "self", NULL
22576 };
22577
22578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPosition",kwnames,&obj0)) goto fail;
22579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22581 {
22582 PyThreadState* __tstate = wxPyBeginAllowThreads();
22583 result = (arg1)->GetPosition();
22584
22585 wxPyEndAllowThreads(__tstate);
22586 if (PyErr_Occurred()) SWIG_fail;
22587 }
22588 {
22589 wxPoint * resultptr;
22590 resultptr = new wxPoint((wxPoint &) result);
22591 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
22592 }
22593 return resultobj;
22594 fail:
22595 return NULL;
22596}
22597
22598
22599static PyObject *_wrap_Window_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
22600 PyObject *resultobj;
22601 wxWindow *arg1 = (wxWindow *) 0 ;
22602 int *arg2 = (int *) 0 ;
22603 int *arg3 = (int *) 0 ;
22604 int temp2 ;
22605 int temp3 ;
22606 PyObject * obj0 = 0 ;
22607 char *kwnames[] = {
22608 (char *) "self", NULL
22609 };
22610
22611 arg2 = &temp2;
22612 arg3 = &temp3;
22613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetPositionTuple",kwnames,&obj0)) goto fail;
22614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22616 {
22617 PyThreadState* __tstate = wxPyBeginAllowThreads();
22618 (arg1)->GetPosition(arg2,arg3);
22619
22620 wxPyEndAllowThreads(__tstate);
22621 if (PyErr_Occurred()) SWIG_fail;
22622 }
22623 Py_INCREF(Py_None); resultobj = Py_None;
22624 {
22625 PyObject *o = PyInt_FromLong((long) (*arg2));
22626 resultobj = t_output_helper(resultobj,o);
22627 }
22628 {
22629 PyObject *o = PyInt_FromLong((long) (*arg3));
22630 resultobj = t_output_helper(resultobj,o);
22631 }
22632 return resultobj;
22633 fail:
22634 return NULL;
22635}
22636
22637
22638static PyObject *_wrap_Window_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22639 PyObject *resultobj;
22640 wxWindow *arg1 = (wxWindow *) 0 ;
22641 wxSize result;
22642 PyObject * obj0 = 0 ;
22643 char *kwnames[] = {
22644 (char *) "self", NULL
22645 };
22646
22647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSize",kwnames,&obj0)) goto fail;
22648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22650 {
22651 PyThreadState* __tstate = wxPyBeginAllowThreads();
22652 result = ((wxWindow const *)arg1)->GetSize();
22653
22654 wxPyEndAllowThreads(__tstate);
22655 if (PyErr_Occurred()) SWIG_fail;
22656 }
22657 {
22658 wxSize * resultptr;
22659 resultptr = new wxSize((wxSize &) result);
22660 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
22661 }
22662 return resultobj;
22663 fail:
22664 return NULL;
22665}
22666
22667
22668static PyObject *_wrap_Window_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
22669 PyObject *resultobj;
22670 wxWindow *arg1 = (wxWindow *) 0 ;
22671 int *arg2 = (int *) 0 ;
22672 int *arg3 = (int *) 0 ;
22673 int temp2 ;
22674 int temp3 ;
22675 PyObject * obj0 = 0 ;
22676 char *kwnames[] = {
22677 (char *) "self", NULL
22678 };
22679
22680 arg2 = &temp2;
22681 arg3 = &temp3;
22682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizeTuple",kwnames,&obj0)) goto fail;
22683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22685 {
22686 PyThreadState* __tstate = wxPyBeginAllowThreads();
22687 ((wxWindow const *)arg1)->GetSize(arg2,arg3);
22688
22689 wxPyEndAllowThreads(__tstate);
22690 if (PyErr_Occurred()) SWIG_fail;
22691 }
22692 Py_INCREF(Py_None); resultobj = Py_None;
22693 {
22694 PyObject *o = PyInt_FromLong((long) (*arg2));
22695 resultobj = t_output_helper(resultobj,o);
22696 }
22697 {
22698 PyObject *o = PyInt_FromLong((long) (*arg3));
22699 resultobj = t_output_helper(resultobj,o);
22700 }
22701 return resultobj;
22702 fail:
22703 return NULL;
22704}
22705
22706
22707static PyObject *_wrap_Window_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
22708 PyObject *resultobj;
22709 wxWindow *arg1 = (wxWindow *) 0 ;
22710 wxRect result;
22711 PyObject * obj0 = 0 ;
22712 char *kwnames[] = {
22713 (char *) "self", NULL
22714 };
22715
22716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetRect",kwnames,&obj0)) goto fail;
22717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22719 {
22720 PyThreadState* __tstate = wxPyBeginAllowThreads();
22721 result = ((wxWindow const *)arg1)->GetRect();
22722
22723 wxPyEndAllowThreads(__tstate);
22724 if (PyErr_Occurred()) SWIG_fail;
22725 }
22726 {
22727 wxRect * resultptr;
22728 resultptr = new wxRect((wxRect &) result);
22729 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
22730 }
22731 return resultobj;
22732 fail:
22733 return NULL;
22734}
22735
22736
22737static PyObject *_wrap_Window_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22738 PyObject *resultobj;
22739 wxWindow *arg1 = (wxWindow *) 0 ;
22740 wxSize result;
22741 PyObject * obj0 = 0 ;
22742 char *kwnames[] = {
22743 (char *) "self", NULL
22744 };
22745
22746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSize",kwnames,&obj0)) goto fail;
22747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22749 {
22750 PyThreadState* __tstate = wxPyBeginAllowThreads();
22751 result = ((wxWindow const *)arg1)->GetClientSize();
22752
22753 wxPyEndAllowThreads(__tstate);
22754 if (PyErr_Occurred()) SWIG_fail;
22755 }
22756 {
22757 wxSize * resultptr;
22758 resultptr = new wxSize((wxSize &) result);
22759 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
22760 }
22761 return resultobj;
22762 fail:
22763 return NULL;
22764}
22765
22766
22767static PyObject *_wrap_Window_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
22768 PyObject *resultobj;
22769 wxWindow *arg1 = (wxWindow *) 0 ;
22770 int *arg2 = (int *) 0 ;
22771 int *arg3 = (int *) 0 ;
22772 int temp2 ;
22773 int temp3 ;
22774 PyObject * obj0 = 0 ;
22775 char *kwnames[] = {
22776 (char *) "self", NULL
22777 };
22778
22779 arg2 = &temp2;
22780 arg3 = &temp3;
22781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientSizeTuple",kwnames,&obj0)) goto fail;
22782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22784 {
22785 PyThreadState* __tstate = wxPyBeginAllowThreads();
22786 ((wxWindow const *)arg1)->GetClientSize(arg2,arg3);
22787
22788 wxPyEndAllowThreads(__tstate);
22789 if (PyErr_Occurred()) SWIG_fail;
22790 }
22791 Py_INCREF(Py_None); resultobj = Py_None;
22792 {
22793 PyObject *o = PyInt_FromLong((long) (*arg2));
22794 resultobj = t_output_helper(resultobj,o);
22795 }
22796 {
22797 PyObject *o = PyInt_FromLong((long) (*arg3));
22798 resultobj = t_output_helper(resultobj,o);
22799 }
22800 return resultobj;
22801 fail:
22802 return NULL;
22803}
22804
22805
22806static PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
22807 PyObject *resultobj;
22808 wxWindow *arg1 = (wxWindow *) 0 ;
22809 wxPoint result;
22810 PyObject * obj0 = 0 ;
22811 char *kwnames[] = {
22812 (char *) "self", NULL
22813 };
22814
22815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientAreaOrigin",kwnames,&obj0)) goto fail;
22816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22818 {
22819 PyThreadState* __tstate = wxPyBeginAllowThreads();
22820 result = ((wxWindow const *)arg1)->GetClientAreaOrigin();
22821
22822 wxPyEndAllowThreads(__tstate);
22823 if (PyErr_Occurred()) SWIG_fail;
22824 }
22825 {
22826 wxPoint * resultptr;
22827 resultptr = new wxPoint((wxPoint &) result);
22828 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
22829 }
22830 return resultobj;
22831 fail:
22832 return NULL;
22833}
22834
22835
22836static PyObject *_wrap_Window_GetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) {
22837 PyObject *resultobj;
22838 wxWindow *arg1 = (wxWindow *) 0 ;
22839 wxRect result;
22840 PyObject * obj0 = 0 ;
22841 char *kwnames[] = {
22842 (char *) "self", NULL
22843 };
22844
22845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetClientRect",kwnames,&obj0)) goto fail;
22846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22848 {
22849 PyThreadState* __tstate = wxPyBeginAllowThreads();
22850 result = ((wxWindow const *)arg1)->GetClientRect();
22851
22852 wxPyEndAllowThreads(__tstate);
22853 if (PyErr_Occurred()) SWIG_fail;
22854 }
22855 {
22856 wxRect * resultptr;
22857 resultptr = new wxRect((wxRect &) result);
22858 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
22859 }
22860 return resultobj;
22861 fail:
22862 return NULL;
22863}
22864
22865
22866static PyObject *_wrap_Window_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22867 PyObject *resultobj;
22868 wxWindow *arg1 = (wxWindow *) 0 ;
22869 wxSize result;
22870 PyObject * obj0 = 0 ;
22871 char *kwnames[] = {
22872 (char *) "self", NULL
22873 };
22874
22875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSize",kwnames,&obj0)) goto fail;
22876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22878 {
22879 PyThreadState* __tstate = wxPyBeginAllowThreads();
22880 result = ((wxWindow const *)arg1)->GetBestSize();
22881
22882 wxPyEndAllowThreads(__tstate);
22883 if (PyErr_Occurred()) SWIG_fail;
22884 }
22885 {
22886 wxSize * resultptr;
22887 resultptr = new wxSize((wxSize &) result);
22888 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
22889 }
22890 return resultobj;
22891 fail:
22892 return NULL;
22893}
22894
22895
22896static PyObject *_wrap_Window_GetBestSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
22897 PyObject *resultobj;
22898 wxWindow *arg1 = (wxWindow *) 0 ;
22899 int *arg2 = (int *) 0 ;
22900 int *arg3 = (int *) 0 ;
22901 int temp2 ;
22902 int temp3 ;
22903 PyObject * obj0 = 0 ;
22904 char *kwnames[] = {
22905 (char *) "self", NULL
22906 };
22907
22908 arg2 = &temp2;
22909 arg3 = &temp3;
22910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestSizeTuple",kwnames,&obj0)) goto fail;
22911 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22913 {
22914 PyThreadState* __tstate = wxPyBeginAllowThreads();
22915 ((wxWindow const *)arg1)->GetBestSize(arg2,arg3);
22916
22917 wxPyEndAllowThreads(__tstate);
22918 if (PyErr_Occurred()) SWIG_fail;
22919 }
22920 Py_INCREF(Py_None); resultobj = Py_None;
22921 {
22922 PyObject *o = PyInt_FromLong((long) (*arg2));
22923 resultobj = t_output_helper(resultobj,o);
22924 }
22925 {
22926 PyObject *o = PyInt_FromLong((long) (*arg3));
22927 resultobj = t_output_helper(resultobj,o);
22928 }
22929 return resultobj;
22930 fail:
22931 return NULL;
22932}
22933
22934
a001823c
RD
22935static PyObject *_wrap_Window_InvalidateBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22936 PyObject *resultobj;
22937 wxWindow *arg1 = (wxWindow *) 0 ;
22938 PyObject * obj0 = 0 ;
22939 char *kwnames[] = {
22940 (char *) "self", NULL
22941 };
22942
22943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InvalidateBestSize",kwnames,&obj0)) goto fail;
22944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22946 {
22947 PyThreadState* __tstate = wxPyBeginAllowThreads();
22948 (arg1)->InvalidateBestSize();
22949
22950 wxPyEndAllowThreads(__tstate);
22951 if (PyErr_Occurred()) SWIG_fail;
22952 }
22953 Py_INCREF(Py_None); resultobj = Py_None;
22954 return resultobj;
22955 fail:
22956 return NULL;
22957}
22958
22959
22960static PyObject *_wrap_Window_GetBestFittingSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22961 PyObject *resultobj;
22962 wxWindow *arg1 = (wxWindow *) 0 ;
22963 wxSize result;
22964 PyObject * obj0 = 0 ;
22965 char *kwnames[] = {
22966 (char *) "self", NULL
22967 };
22968
22969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestFittingSize",kwnames,&obj0)) goto fail;
22970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
22971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22972 {
22973 PyThreadState* __tstate = wxPyBeginAllowThreads();
22974 result = ((wxWindow const *)arg1)->GetBestFittingSize();
22975
22976 wxPyEndAllowThreads(__tstate);
22977 if (PyErr_Occurred()) SWIG_fail;
22978 }
22979 {
22980 wxSize * resultptr;
22981 resultptr = new wxSize((wxSize &) result);
22982 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
22983 }
22984 return resultobj;
22985 fail:
22986 return NULL;
22987}
22988
22989
d55e5bfc
RD
22990static PyObject *_wrap_Window_GetAdjustedBestSize(PyObject *self, PyObject *args, PyObject *kwargs) {
22991 PyObject *resultobj;
22992 wxWindow *arg1 = (wxWindow *) 0 ;
22993 wxSize result;
22994 PyObject * obj0 = 0 ;
22995 char *kwnames[] = {
22996 (char *) "self", NULL
22997 };
22998
22999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAdjustedBestSize",kwnames,&obj0)) goto fail;
23000 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23002 {
23003 PyThreadState* __tstate = wxPyBeginAllowThreads();
23004 result = ((wxWindow const *)arg1)->GetAdjustedBestSize();
23005
23006 wxPyEndAllowThreads(__tstate);
23007 if (PyErr_Occurred()) SWIG_fail;
23008 }
23009 {
23010 wxSize * resultptr;
23011 resultptr = new wxSize((wxSize &) result);
23012 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
23013 }
23014 return resultobj;
23015 fail:
23016 return NULL;
23017}
23018
23019
23020static PyObject *_wrap_Window_Center(PyObject *self, PyObject *args, PyObject *kwargs) {
23021 PyObject *resultobj;
23022 wxWindow *arg1 = (wxWindow *) 0 ;
23023 int arg2 = (int) wxBOTH ;
23024 PyObject * obj0 = 0 ;
23025 PyObject * obj1 = 0 ;
23026 char *kwnames[] = {
23027 (char *) "self",(char *) "direction", NULL
23028 };
23029
23030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Center",kwnames,&obj0,&obj1)) goto fail;
23031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23033 if (obj1) {
23034 arg2 = (int) SWIG_AsInt(obj1);
23035 if (PyErr_Occurred()) SWIG_fail;
23036 }
23037 {
23038 PyThreadState* __tstate = wxPyBeginAllowThreads();
23039 (arg1)->Center(arg2);
23040
23041 wxPyEndAllowThreads(__tstate);
23042 if (PyErr_Occurred()) SWIG_fail;
23043 }
23044 Py_INCREF(Py_None); resultobj = Py_None;
23045 return resultobj;
23046 fail:
23047 return NULL;
23048}
23049
23050
23051static PyObject *_wrap_Window_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) {
23052 PyObject *resultobj;
23053 wxWindow *arg1 = (wxWindow *) 0 ;
23054 int arg2 = (int) wxBOTH ;
23055 PyObject * obj0 = 0 ;
23056 PyObject * obj1 = 0 ;
23057 char *kwnames[] = {
23058 (char *) "self",(char *) "dir", NULL
23059 };
23060
23061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnScreen",kwnames,&obj0,&obj1)) goto fail;
23062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23064 if (obj1) {
23065 arg2 = (int) SWIG_AsInt(obj1);
23066 if (PyErr_Occurred()) SWIG_fail;
23067 }
23068 {
23069 PyThreadState* __tstate = wxPyBeginAllowThreads();
23070 (arg1)->CenterOnScreen(arg2);
23071
23072 wxPyEndAllowThreads(__tstate);
23073 if (PyErr_Occurred()) SWIG_fail;
23074 }
23075 Py_INCREF(Py_None); resultobj = Py_None;
23076 return resultobj;
23077 fail:
23078 return NULL;
23079}
23080
23081
23082static PyObject *_wrap_Window_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) {
23083 PyObject *resultobj;
23084 wxWindow *arg1 = (wxWindow *) 0 ;
23085 int arg2 = (int) wxBOTH ;
23086 PyObject * obj0 = 0 ;
23087 PyObject * obj1 = 0 ;
23088 char *kwnames[] = {
23089 (char *) "self",(char *) "dir", NULL
23090 };
23091
23092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnParent",kwnames,&obj0,&obj1)) goto fail;
23093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23095 if (obj1) {
23096 arg2 = (int) SWIG_AsInt(obj1);
23097 if (PyErr_Occurred()) SWIG_fail;
23098 }
23099 {
23100 PyThreadState* __tstate = wxPyBeginAllowThreads();
23101 (arg1)->CenterOnParent(arg2);
23102
23103 wxPyEndAllowThreads(__tstate);
23104 if (PyErr_Occurred()) SWIG_fail;
23105 }
23106 Py_INCREF(Py_None); resultobj = Py_None;
23107 return resultobj;
23108 fail:
23109 return NULL;
23110}
23111
23112
23113static PyObject *_wrap_Window_Fit(PyObject *self, PyObject *args, PyObject *kwargs) {
23114 PyObject *resultobj;
23115 wxWindow *arg1 = (wxWindow *) 0 ;
23116 PyObject * obj0 = 0 ;
23117 char *kwnames[] = {
23118 (char *) "self", NULL
23119 };
23120
23121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Fit",kwnames,&obj0)) goto fail;
23122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23124 {
23125 PyThreadState* __tstate = wxPyBeginAllowThreads();
23126 (arg1)->Fit();
23127
23128 wxPyEndAllowThreads(__tstate);
23129 if (PyErr_Occurred()) SWIG_fail;
23130 }
23131 Py_INCREF(Py_None); resultobj = Py_None;
23132 return resultobj;
23133 fail:
23134 return NULL;
23135}
23136
23137
23138static PyObject *_wrap_Window_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) {
23139 PyObject *resultobj;
23140 wxWindow *arg1 = (wxWindow *) 0 ;
23141 PyObject * obj0 = 0 ;
23142 char *kwnames[] = {
23143 (char *) "self", NULL
23144 };
23145
23146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_FitInside",kwnames,&obj0)) goto fail;
23147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23149 {
23150 PyThreadState* __tstate = wxPyBeginAllowThreads();
23151 (arg1)->FitInside();
23152
23153 wxPyEndAllowThreads(__tstate);
23154 if (PyErr_Occurred()) SWIG_fail;
23155 }
23156 Py_INCREF(Py_None); resultobj = Py_None;
23157 return resultobj;
23158 fail:
23159 return NULL;
23160}
23161
23162
03837c5c 23163static PyObject *_wrap_Window_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23164 PyObject *resultobj;
23165 wxWindow *arg1 = (wxWindow *) 0 ;
23166 int arg2 ;
23167 int arg3 ;
23168 int arg4 = (int) -1 ;
23169 int arg5 = (int) -1 ;
23170 int arg6 = (int) -1 ;
23171 int arg7 = (int) -1 ;
23172 PyObject * obj0 = 0 ;
23173 PyObject * obj1 = 0 ;
23174 PyObject * obj2 = 0 ;
23175 PyObject * obj3 = 0 ;
23176 PyObject * obj4 = 0 ;
23177 PyObject * obj5 = 0 ;
23178 PyObject * obj6 = 0 ;
03837c5c
RD
23179 char *kwnames[] = {
23180 (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH",(char *) "incW",(char *) "incH", NULL
23181 };
d55e5bfc 23182
03837c5c 23183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Window_SetSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
d55e5bfc
RD
23184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23186 arg2 = (int) SWIG_AsInt(obj1);
23187 if (PyErr_Occurred()) SWIG_fail;
23188 arg3 = (int) SWIG_AsInt(obj2);
23189 if (PyErr_Occurred()) SWIG_fail;
23190 if (obj3) {
23191 arg4 = (int) SWIG_AsInt(obj3);
23192 if (PyErr_Occurred()) SWIG_fail;
23193 }
23194 if (obj4) {
23195 arg5 = (int) SWIG_AsInt(obj4);
23196 if (PyErr_Occurred()) SWIG_fail;
23197 }
23198 if (obj5) {
23199 arg6 = (int) SWIG_AsInt(obj5);
23200 if (PyErr_Occurred()) SWIG_fail;
23201 }
23202 if (obj6) {
23203 arg7 = (int) SWIG_AsInt(obj6);
23204 if (PyErr_Occurred()) SWIG_fail;
23205 }
23206 {
23207 PyThreadState* __tstate = wxPyBeginAllowThreads();
23208 (arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7);
23209
23210 wxPyEndAllowThreads(__tstate);
23211 if (PyErr_Occurred()) SWIG_fail;
23212 }
23213 Py_INCREF(Py_None); resultobj = Py_None;
23214 return resultobj;
23215 fail:
23216 return NULL;
23217}
23218
23219
03837c5c 23220static PyObject *_wrap_Window_SetSizeHintsSz(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23221 PyObject *resultobj;
23222 wxWindow *arg1 = (wxWindow *) 0 ;
908b74cd
RD
23223 wxSize *arg2 = 0 ;
23224 wxSize const &arg3_defvalue = wxDefaultSize ;
23225 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
03837c5c
RD
23226 wxSize const &arg4_defvalue = wxDefaultSize ;
23227 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
908b74cd
RD
23228 wxSize temp2 ;
23229 wxSize temp3 ;
03837c5c 23230 wxSize temp4 ;
d55e5bfc
RD
23231 PyObject * obj0 = 0 ;
23232 PyObject * obj1 = 0 ;
23233 PyObject * obj2 = 0 ;
03837c5c
RD
23234 PyObject * obj3 = 0 ;
23235 char *kwnames[] = {
23236 (char *) "self",(char *) "minSize",(char *) "maxSize",(char *) "incSize", NULL
23237 };
d55e5bfc 23238
03837c5c 23239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Window_SetSizeHintsSz",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
23240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
908b74cd
RD
23242 {
23243 arg2 = &temp2;
23244 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 23245 }
908b74cd
RD
23246 if (obj2) {
23247 {
23248 arg3 = &temp3;
23249 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
23250 }
d55e5bfc 23251 }
03837c5c
RD
23252 if (obj3) {
23253 {
23254 arg4 = &temp4;
23255 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
23256 }
23257 }
d55e5bfc
RD
23258 {
23259 PyThreadState* __tstate = wxPyBeginAllowThreads();
03837c5c 23260 (arg1)->SetSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3,(wxSize const &)*arg4);
d55e5bfc
RD
23261
23262 wxPyEndAllowThreads(__tstate);
23263 if (PyErr_Occurred()) SWIG_fail;
23264 }
23265 Py_INCREF(Py_None); resultobj = Py_None;
23266 return resultobj;
23267 fail:
23268 return NULL;
23269}
23270
23271
03837c5c 23272static PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23273 PyObject *resultobj;
23274 wxWindow *arg1 = (wxWindow *) 0 ;
908b74cd
RD
23275 int arg2 ;
23276 int arg3 ;
23277 int arg4 = (int) -1 ;
23278 int arg5 = (int) -1 ;
d55e5bfc
RD
23279 PyObject * obj0 = 0 ;
23280 PyObject * obj1 = 0 ;
23281 PyObject * obj2 = 0 ;
908b74cd
RD
23282 PyObject * obj3 = 0 ;
23283 PyObject * obj4 = 0 ;
03837c5c
RD
23284 char *kwnames[] = {
23285 (char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH", NULL
23286 };
d55e5bfc 23287
03837c5c 23288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_SetVirtualSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
23289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
908b74cd
RD
23291 arg2 = (int) SWIG_AsInt(obj1);
23292 if (PyErr_Occurred()) SWIG_fail;
23293 arg3 = (int) SWIG_AsInt(obj2);
23294 if (PyErr_Occurred()) SWIG_fail;
23295 if (obj3) {
23296 arg4 = (int) SWIG_AsInt(obj3);
23297 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 23298 }
908b74cd
RD
23299 if (obj4) {
23300 arg5 = (int) SWIG_AsInt(obj4);
23301 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
23302 }
23303 {
23304 PyThreadState* __tstate = wxPyBeginAllowThreads();
908b74cd 23305 (arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5);
d55e5bfc
RD
23306
23307 wxPyEndAllowThreads(__tstate);
23308 if (PyErr_Occurred()) SWIG_fail;
23309 }
23310 Py_INCREF(Py_None); resultobj = Py_None;
23311 return resultobj;
23312 fail:
23313 return NULL;
23314}
23315
23316
03837c5c
RD
23317static PyObject *_wrap_Window_SetVirtualSizeHintsSz(PyObject *self, PyObject *args, PyObject *kwargs) {
23318 PyObject *resultobj;
23319 wxWindow *arg1 = (wxWindow *) 0 ;
23320 wxSize *arg2 = 0 ;
23321 wxSize const &arg3_defvalue = wxDefaultSize ;
23322 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
23323 wxSize temp2 ;
23324 wxSize temp3 ;
23325 PyObject * obj0 = 0 ;
23326 PyObject * obj1 = 0 ;
23327 PyObject * obj2 = 0 ;
23328 char *kwnames[] = {
23329 (char *) "self",(char *) "minSize",(char *) "maxSize", NULL
23330 };
d55e5bfc 23331
03837c5c
RD
23332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetVirtualSizeHintsSz",kwnames,&obj0,&obj1,&obj2)) goto fail;
23333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23335 {
23336 arg2 = &temp2;
23337 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 23338 }
03837c5c 23339 if (obj2) {
d55e5bfc 23340 {
03837c5c
RD
23341 arg3 = &temp3;
23342 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc
RD
23343 }
23344 }
03837c5c
RD
23345 {
23346 PyThreadState* __tstate = wxPyBeginAllowThreads();
23347 (arg1)->SetVirtualSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3);
23348
23349 wxPyEndAllowThreads(__tstate);
23350 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 23351 }
03837c5c
RD
23352 Py_INCREF(Py_None); resultobj = Py_None;
23353 return resultobj;
23354 fail:
d55e5bfc
RD
23355 return NULL;
23356}
23357
23358
908b74cd 23359static PyObject *_wrap_Window_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23360 PyObject *resultobj;
23361 wxWindow *arg1 = (wxWindow *) 0 ;
908b74cd 23362 wxSize result;
d55e5bfc
RD
23363 PyObject * obj0 = 0 ;
23364 char *kwnames[] = {
23365 (char *) "self", NULL
23366 };
23367
908b74cd 23368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxSize",kwnames,&obj0)) goto fail;
d55e5bfc
RD
23369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23371 {
23372 PyThreadState* __tstate = wxPyBeginAllowThreads();
908b74cd 23373 result = ((wxWindow const *)arg1)->GetMaxSize();
d55e5bfc
RD
23374
23375 wxPyEndAllowThreads(__tstate);
23376 if (PyErr_Occurred()) SWIG_fail;
23377 }
908b74cd
RD
23378 {
23379 wxSize * resultptr;
23380 resultptr = new wxSize((wxSize &) result);
23381 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
23382 }
d55e5bfc
RD
23383 return resultobj;
23384 fail:
23385 return NULL;
23386}
23387
23388
908b74cd 23389static PyObject *_wrap_Window_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23390 PyObject *resultobj;
23391 wxWindow *arg1 = (wxWindow *) 0 ;
908b74cd 23392 wxSize result;
d55e5bfc
RD
23393 PyObject * obj0 = 0 ;
23394 char *kwnames[] = {
23395 (char *) "self", NULL
23396 };
23397
908b74cd 23398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinSize",kwnames,&obj0)) goto fail;
d55e5bfc
RD
23399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23401 {
23402 PyThreadState* __tstate = wxPyBeginAllowThreads();
908b74cd 23403 result = ((wxWindow const *)arg1)->GetMinSize();
d55e5bfc
RD
23404
23405 wxPyEndAllowThreads(__tstate);
23406 if (PyErr_Occurred()) SWIG_fail;
23407 }
908b74cd
RD
23408 {
23409 wxSize * resultptr;
23410 resultptr = new wxSize((wxSize &) result);
23411 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
23412 }
d55e5bfc
RD
23413 return resultobj;
23414 fail:
23415 return NULL;
23416}
23417
23418
908b74cd
RD
23419static PyObject *_wrap_Window_SetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) {
23420 PyObject *resultobj;
23421 wxWindow *arg1 = (wxWindow *) 0 ;
23422 wxSize *arg2 = 0 ;
23423 wxSize temp2 ;
23424 PyObject * obj0 = 0 ;
23425 PyObject * obj1 = 0 ;
23426 char *kwnames[] = {
23427 (char *) "self",(char *) "minSize", NULL
23428 };
23429
23430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMinSize",kwnames,&obj0,&obj1)) goto fail;
23431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23433 {
23434 arg2 = &temp2;
23435 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
23436 }
23437 {
23438 PyThreadState* __tstate = wxPyBeginAllowThreads();
23439 (arg1)->SetMinSize((wxSize const &)*arg2);
23440
23441 wxPyEndAllowThreads(__tstate);
23442 if (PyErr_Occurred()) SWIG_fail;
23443 }
23444 Py_INCREF(Py_None); resultobj = Py_None;
23445 return resultobj;
23446 fail:
23447 return NULL;
23448}
23449
23450
23451static PyObject *_wrap_Window_SetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) {
23452 PyObject *resultobj;
23453 wxWindow *arg1 = (wxWindow *) 0 ;
23454 wxSize *arg2 = 0 ;
23455 wxSize temp2 ;
23456 PyObject * obj0 = 0 ;
23457 PyObject * obj1 = 0 ;
23458 char *kwnames[] = {
23459 (char *) "self",(char *) "maxSize", NULL
23460 };
23461
23462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMaxSize",kwnames,&obj0,&obj1)) goto fail;
23463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23465 {
23466 arg2 = &temp2;
23467 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
23468 }
23469 {
23470 PyThreadState* __tstate = wxPyBeginAllowThreads();
23471 (arg1)->SetMaxSize((wxSize const &)*arg2);
23472
23473 wxPyEndAllowThreads(__tstate);
23474 if (PyErr_Occurred()) SWIG_fail;
23475 }
23476 Py_INCREF(Py_None); resultobj = Py_None;
23477 return resultobj;
23478 fail:
23479 return NULL;
23480}
23481
23482
23483static PyObject *_wrap_Window_GetMinWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23484 PyObject *resultobj;
23485 wxWindow *arg1 = (wxWindow *) 0 ;
23486 int result;
23487 PyObject * obj0 = 0 ;
23488 char *kwnames[] = {
23489 (char *) "self", NULL
23490 };
23491
908b74cd 23492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinWidth",kwnames,&obj0)) goto fail;
d55e5bfc
RD
23493 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23495 {
23496 PyThreadState* __tstate = wxPyBeginAllowThreads();
908b74cd 23497 result = (int)((wxWindow const *)arg1)->GetMinWidth();
d55e5bfc
RD
23498
23499 wxPyEndAllowThreads(__tstate);
23500 if (PyErr_Occurred()) SWIG_fail;
23501 }
23502 resultobj = SWIG_FromInt((int)result);
23503 return resultobj;
23504 fail:
23505 return NULL;
23506}
23507
23508
908b74cd 23509static PyObject *_wrap_Window_GetMinHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23510 PyObject *resultobj;
23511 wxWindow *arg1 = (wxWindow *) 0 ;
23512 int result;
23513 PyObject * obj0 = 0 ;
23514 char *kwnames[] = {
23515 (char *) "self", NULL
23516 };
23517
908b74cd 23518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMinHeight",kwnames,&obj0)) goto fail;
d55e5bfc
RD
23519 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23521 {
23522 PyThreadState* __tstate = wxPyBeginAllowThreads();
908b74cd 23523 result = (int)((wxWindow const *)arg1)->GetMinHeight();
d55e5bfc
RD
23524
23525 wxPyEndAllowThreads(__tstate);
23526 if (PyErr_Occurred()) SWIG_fail;
23527 }
23528 resultobj = SWIG_FromInt((int)result);
23529 return resultobj;
23530 fail:
23531 return NULL;
23532}
23533
23534
908b74cd 23535static PyObject *_wrap_Window_GetMaxWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23536 PyObject *resultobj;
23537 wxWindow *arg1 = (wxWindow *) 0 ;
908b74cd 23538 int result;
d55e5bfc
RD
23539 PyObject * obj0 = 0 ;
23540 char *kwnames[] = {
23541 (char *) "self", NULL
23542 };
23543
908b74cd 23544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxWidth",kwnames,&obj0)) goto fail;
d55e5bfc
RD
23545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23547 {
23548 PyThreadState* __tstate = wxPyBeginAllowThreads();
908b74cd 23549 result = (int)((wxWindow const *)arg1)->GetMaxWidth();
d55e5bfc
RD
23550
23551 wxPyEndAllowThreads(__tstate);
23552 if (PyErr_Occurred()) SWIG_fail;
23553 }
908b74cd 23554 resultobj = SWIG_FromInt((int)result);
d55e5bfc
RD
23555 return resultobj;
23556 fail:
23557 return NULL;
23558}
23559
23560
908b74cd 23561static PyObject *_wrap_Window_GetMaxHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
23562 PyObject *resultobj;
23563 wxWindow *arg1 = (wxWindow *) 0 ;
908b74cd 23564 int result;
d55e5bfc
RD
23565 PyObject * obj0 = 0 ;
23566 char *kwnames[] = {
23567 (char *) "self", NULL
23568 };
23569
908b74cd 23570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetMaxHeight",kwnames,&obj0)) goto fail;
d55e5bfc
RD
23571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23573 {
23574 PyThreadState* __tstate = wxPyBeginAllowThreads();
908b74cd 23575 result = (int)((wxWindow const *)arg1)->GetMaxHeight();
d55e5bfc
RD
23576
23577 wxPyEndAllowThreads(__tstate);
23578 if (PyErr_Occurred()) SWIG_fail;
23579 }
908b74cd 23580 resultobj = SWIG_FromInt((int)result);
d55e5bfc
RD
23581 return resultobj;
23582 fail:
23583 return NULL;
23584}
23585
23586
23587static PyObject *_wrap_Window_SetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
23588 PyObject *resultobj;
23589 wxWindow *arg1 = (wxWindow *) 0 ;
23590 wxSize *arg2 = 0 ;
23591 wxSize temp2 ;
23592 PyObject * obj0 = 0 ;
23593 PyObject * obj1 = 0 ;
23594 char *kwnames[] = {
23595 (char *) "self",(char *) "size", NULL
23596 };
23597
23598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) goto fail;
23599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23601 {
23602 arg2 = &temp2;
23603 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
23604 }
23605 {
23606 PyThreadState* __tstate = wxPyBeginAllowThreads();
23607 (arg1)->SetVirtualSize((wxSize const &)*arg2);
23608
23609 wxPyEndAllowThreads(__tstate);
23610 if (PyErr_Occurred()) SWIG_fail;
23611 }
23612 Py_INCREF(Py_None); resultobj = Py_None;
23613 return resultobj;
23614 fail:
23615 return NULL;
23616}
23617
23618
23619static PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
23620 PyObject *resultobj;
23621 wxWindow *arg1 = (wxWindow *) 0 ;
23622 int arg2 ;
23623 int arg3 ;
23624 PyObject * obj0 = 0 ;
23625 PyObject * obj1 = 0 ;
23626 PyObject * obj2 = 0 ;
23627 char *kwnames[] = {
23628 (char *) "self",(char *) "w",(char *) "h", NULL
23629 };
23630
23631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetVirtualSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
23632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23634 arg2 = (int) SWIG_AsInt(obj1);
23635 if (PyErr_Occurred()) SWIG_fail;
23636 arg3 = (int) SWIG_AsInt(obj2);
23637 if (PyErr_Occurred()) SWIG_fail;
23638 {
23639 PyThreadState* __tstate = wxPyBeginAllowThreads();
23640 (arg1)->SetVirtualSize(arg2,arg3);
23641
23642 wxPyEndAllowThreads(__tstate);
23643 if (PyErr_Occurred()) SWIG_fail;
23644 }
23645 Py_INCREF(Py_None); resultobj = Py_None;
23646 return resultobj;
23647 fail:
23648 return NULL;
23649}
23650
23651
23652static PyObject *_wrap_Window_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
23653 PyObject *resultobj;
23654 wxWindow *arg1 = (wxWindow *) 0 ;
23655 wxSize result;
23656 PyObject * obj0 = 0 ;
23657 char *kwnames[] = {
23658 (char *) "self", NULL
23659 };
23660
23661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSize",kwnames,&obj0)) goto fail;
23662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23664 {
23665 PyThreadState* __tstate = wxPyBeginAllowThreads();
23666 result = ((wxWindow const *)arg1)->GetVirtualSize();
23667
23668 wxPyEndAllowThreads(__tstate);
23669 if (PyErr_Occurred()) SWIG_fail;
23670 }
23671 {
23672 wxSize * resultptr;
23673 resultptr = new wxSize((wxSize &) result);
23674 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
23675 }
23676 return resultobj;
23677 fail:
23678 return NULL;
23679}
23680
23681
23682static PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
23683 PyObject *resultobj;
23684 wxWindow *arg1 = (wxWindow *) 0 ;
23685 int *arg2 = (int *) 0 ;
23686 int *arg3 = (int *) 0 ;
23687 int temp2 ;
23688 int temp3 ;
23689 PyObject * obj0 = 0 ;
23690 char *kwnames[] = {
23691 (char *) "self", NULL
23692 };
23693
23694 arg2 = &temp2;
23695 arg3 = &temp3;
23696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetVirtualSizeTuple",kwnames,&obj0)) goto fail;
23697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23699 {
23700 PyThreadState* __tstate = wxPyBeginAllowThreads();
23701 ((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3);
23702
23703 wxPyEndAllowThreads(__tstate);
23704 if (PyErr_Occurred()) SWIG_fail;
23705 }
23706 Py_INCREF(Py_None); resultobj = Py_None;
23707 {
23708 PyObject *o = PyInt_FromLong((long) (*arg2));
23709 resultobj = t_output_helper(resultobj,o);
23710 }
23711 {
23712 PyObject *o = PyInt_FromLong((long) (*arg3));
23713 resultobj = t_output_helper(resultobj,o);
23714 }
23715 return resultobj;
23716 fail:
23717 return NULL;
23718}
23719
23720
23721static PyObject *_wrap_Window_GetBestVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) {
23722 PyObject *resultobj;
23723 wxWindow *arg1 = (wxWindow *) 0 ;
23724 wxSize result;
23725 PyObject * obj0 = 0 ;
23726 char *kwnames[] = {
23727 (char *) "self", NULL
23728 };
23729
23730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBestVirtualSize",kwnames,&obj0)) goto fail;
23731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23733 {
23734 PyThreadState* __tstate = wxPyBeginAllowThreads();
23735 result = ((wxWindow const *)arg1)->GetBestVirtualSize();
23736
23737 wxPyEndAllowThreads(__tstate);
23738 if (PyErr_Occurred()) SWIG_fail;
23739 }
23740 {
23741 wxSize * resultptr;
23742 resultptr = new wxSize((wxSize &) result);
23743 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
23744 }
23745 return resultobj;
23746 fail:
23747 return NULL;
23748}
23749
23750
23751static PyObject *_wrap_Window_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
23752 PyObject *resultobj;
23753 wxWindow *arg1 = (wxWindow *) 0 ;
23754 bool arg2 = (bool) True ;
23755 bool result;
23756 PyObject * obj0 = 0 ;
23757 PyObject * obj1 = 0 ;
23758 char *kwnames[] = {
23759 (char *) "self",(char *) "show", NULL
23760 };
23761
23762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) goto fail;
23763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23765 if (obj1) {
23766 arg2 = (bool) SWIG_AsBool(obj1);
23767 if (PyErr_Occurred()) SWIG_fail;
23768 }
23769 {
23770 PyThreadState* __tstate = wxPyBeginAllowThreads();
23771 result = (bool)(arg1)->Show(arg2);
23772
23773 wxPyEndAllowThreads(__tstate);
23774 if (PyErr_Occurred()) SWIG_fail;
23775 }
23776 {
23777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23778 }
23779 return resultobj;
23780 fail:
23781 return NULL;
23782}
23783
23784
23785static PyObject *_wrap_Window_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
23786 PyObject *resultobj;
23787 wxWindow *arg1 = (wxWindow *) 0 ;
23788 bool result;
23789 PyObject * obj0 = 0 ;
23790 char *kwnames[] = {
23791 (char *) "self", NULL
23792 };
23793
23794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Hide",kwnames,&obj0)) goto fail;
23795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23797 {
23798 PyThreadState* __tstate = wxPyBeginAllowThreads();
23799 result = (bool)(arg1)->Hide();
23800
23801 wxPyEndAllowThreads(__tstate);
23802 if (PyErr_Occurred()) SWIG_fail;
23803 }
23804 {
23805 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23806 }
23807 return resultobj;
23808 fail:
23809 return NULL;
23810}
23811
23812
23813static PyObject *_wrap_Window_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
23814 PyObject *resultobj;
23815 wxWindow *arg1 = (wxWindow *) 0 ;
23816 bool arg2 = (bool) True ;
23817 bool result;
23818 PyObject * obj0 = 0 ;
23819 PyObject * obj1 = 0 ;
23820 char *kwnames[] = {
23821 (char *) "self",(char *) "enable", NULL
23822 };
23823
23824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) goto fail;
23825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23827 if (obj1) {
23828 arg2 = (bool) SWIG_AsBool(obj1);
23829 if (PyErr_Occurred()) SWIG_fail;
23830 }
23831 {
23832 PyThreadState* __tstate = wxPyBeginAllowThreads();
23833 result = (bool)(arg1)->Enable(arg2);
23834
23835 wxPyEndAllowThreads(__tstate);
23836 if (PyErr_Occurred()) SWIG_fail;
23837 }
23838 {
23839 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23840 }
23841 return resultobj;
23842 fail:
23843 return NULL;
23844}
23845
23846
23847static PyObject *_wrap_Window_Disable(PyObject *self, PyObject *args, PyObject *kwargs) {
23848 PyObject *resultobj;
23849 wxWindow *arg1 = (wxWindow *) 0 ;
23850 bool result;
23851 PyObject * obj0 = 0 ;
23852 char *kwnames[] = {
23853 (char *) "self", NULL
23854 };
23855
23856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Disable",kwnames,&obj0)) goto fail;
23857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23859 {
23860 PyThreadState* __tstate = wxPyBeginAllowThreads();
23861 result = (bool)(arg1)->Disable();
23862
23863 wxPyEndAllowThreads(__tstate);
23864 if (PyErr_Occurred()) SWIG_fail;
23865 }
23866 {
23867 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23868 }
23869 return resultobj;
23870 fail:
23871 return NULL;
23872}
23873
23874
23875static PyObject *_wrap_Window_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) {
23876 PyObject *resultobj;
23877 wxWindow *arg1 = (wxWindow *) 0 ;
23878 bool result;
23879 PyObject * obj0 = 0 ;
23880 char *kwnames[] = {
23881 (char *) "self", NULL
23882 };
23883
23884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsShown",kwnames,&obj0)) goto fail;
23885 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23887 {
23888 PyThreadState* __tstate = wxPyBeginAllowThreads();
23889 result = (bool)((wxWindow const *)arg1)->IsShown();
23890
23891 wxPyEndAllowThreads(__tstate);
23892 if (PyErr_Occurred()) SWIG_fail;
23893 }
23894 {
23895 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23896 }
23897 return resultobj;
23898 fail:
23899 return NULL;
23900}
23901
23902
23903static PyObject *_wrap_Window_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
23904 PyObject *resultobj;
23905 wxWindow *arg1 = (wxWindow *) 0 ;
23906 bool result;
23907 PyObject * obj0 = 0 ;
23908 char *kwnames[] = {
23909 (char *) "self", NULL
23910 };
23911
23912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsEnabled",kwnames,&obj0)) goto fail;
23913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23915 {
23916 PyThreadState* __tstate = wxPyBeginAllowThreads();
23917 result = (bool)((wxWindow const *)arg1)->IsEnabled();
23918
23919 wxPyEndAllowThreads(__tstate);
23920 if (PyErr_Occurred()) SWIG_fail;
23921 }
23922 {
23923 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23924 }
23925 return resultobj;
23926 fail:
23927 return NULL;
23928}
23929
23930
23931static PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
23932 PyObject *resultobj;
23933 wxWindow *arg1 = (wxWindow *) 0 ;
23934 long arg2 ;
23935 PyObject * obj0 = 0 ;
23936 PyObject * obj1 = 0 ;
23937 char *kwnames[] = {
23938 (char *) "self",(char *) "style", NULL
23939 };
23940
23941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail;
23942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23944 arg2 = (long) SWIG_AsLong(obj1);
23945 if (PyErr_Occurred()) SWIG_fail;
23946 {
23947 PyThreadState* __tstate = wxPyBeginAllowThreads();
23948 (arg1)->SetWindowStyleFlag(arg2);
23949
23950 wxPyEndAllowThreads(__tstate);
23951 if (PyErr_Occurred()) SWIG_fail;
23952 }
23953 Py_INCREF(Py_None); resultobj = Py_None;
23954 return resultobj;
23955 fail:
23956 return NULL;
23957}
23958
23959
23960static PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
23961 PyObject *resultobj;
23962 wxWindow *arg1 = (wxWindow *) 0 ;
23963 long result;
23964 PyObject * obj0 = 0 ;
23965 char *kwnames[] = {
23966 (char *) "self", NULL
23967 };
23968
23969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetWindowStyleFlag",kwnames,&obj0)) goto fail;
23970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23972 {
23973 PyThreadState* __tstate = wxPyBeginAllowThreads();
23974 result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag();
23975
23976 wxPyEndAllowThreads(__tstate);
23977 if (PyErr_Occurred()) SWIG_fail;
23978 }
23979 resultobj = SWIG_FromLong((long)result);
23980 return resultobj;
23981 fail:
23982 return NULL;
23983}
23984
23985
23986static PyObject *_wrap_Window_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
23987 PyObject *resultobj;
23988 wxWindow *arg1 = (wxWindow *) 0 ;
23989 int arg2 ;
23990 bool result;
23991 PyObject * obj0 = 0 ;
23992 PyObject * obj1 = 0 ;
23993 char *kwnames[] = {
23994 (char *) "self",(char *) "flag", NULL
23995 };
23996
23997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasFlag",kwnames,&obj0,&obj1)) goto fail;
23998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24000 arg2 = (int) SWIG_AsInt(obj1);
24001 if (PyErr_Occurred()) SWIG_fail;
24002 {
24003 PyThreadState* __tstate = wxPyBeginAllowThreads();
24004 result = (bool)((wxWindow const *)arg1)->HasFlag(arg2);
24005
24006 wxPyEndAllowThreads(__tstate);
24007 if (PyErr_Occurred()) SWIG_fail;
24008 }
24009 {
24010 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24011 }
24012 return resultobj;
24013 fail:
24014 return NULL;
24015}
24016
24017
24018static PyObject *_wrap_Window_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) {
24019 PyObject *resultobj;
24020 wxWindow *arg1 = (wxWindow *) 0 ;
24021 bool result;
24022 PyObject * obj0 = 0 ;
24023 char *kwnames[] = {
24024 (char *) "self", NULL
24025 };
24026
24027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsRetained",kwnames,&obj0)) goto fail;
24028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24030 {
24031 PyThreadState* __tstate = wxPyBeginAllowThreads();
24032 result = (bool)((wxWindow const *)arg1)->IsRetained();
24033
24034 wxPyEndAllowThreads(__tstate);
24035 if (PyErr_Occurred()) SWIG_fail;
24036 }
24037 {
24038 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24039 }
24040 return resultobj;
24041 fail:
24042 return NULL;
24043}
24044
24045
24046static PyObject *_wrap_Window_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
24047 PyObject *resultobj;
24048 wxWindow *arg1 = (wxWindow *) 0 ;
24049 long arg2 ;
24050 PyObject * obj0 = 0 ;
24051 PyObject * obj1 = 0 ;
24052 char *kwnames[] = {
24053 (char *) "self",(char *) "exStyle", NULL
24054 };
24055
24056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetExtraStyle",kwnames,&obj0,&obj1)) goto fail;
24057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24059 arg2 = (long) SWIG_AsLong(obj1);
24060 if (PyErr_Occurred()) SWIG_fail;
24061 {
24062 PyThreadState* __tstate = wxPyBeginAllowThreads();
24063 (arg1)->SetExtraStyle(arg2);
24064
24065 wxPyEndAllowThreads(__tstate);
24066 if (PyErr_Occurred()) SWIG_fail;
24067 }
24068 Py_INCREF(Py_None); resultobj = Py_None;
24069 return resultobj;
24070 fail:
24071 return NULL;
24072}
24073
24074
24075static PyObject *_wrap_Window_GetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
24076 PyObject *resultobj;
24077 wxWindow *arg1 = (wxWindow *) 0 ;
24078 long result;
24079 PyObject * obj0 = 0 ;
24080 char *kwnames[] = {
24081 (char *) "self", NULL
24082 };
24083
24084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetExtraStyle",kwnames,&obj0)) goto fail;
24085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24087 {
24088 PyThreadState* __tstate = wxPyBeginAllowThreads();
24089 result = (long)((wxWindow const *)arg1)->GetExtraStyle();
24090
24091 wxPyEndAllowThreads(__tstate);
24092 if (PyErr_Occurred()) SWIG_fail;
24093 }
24094 resultobj = SWIG_FromLong((long)result);
24095 return resultobj;
24096 fail:
24097 return NULL;
24098}
24099
24100
24101static PyObject *_wrap_Window_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) {
24102 PyObject *resultobj;
24103 wxWindow *arg1 = (wxWindow *) 0 ;
24104 bool arg2 = (bool) True ;
24105 PyObject * obj0 = 0 ;
24106 PyObject * obj1 = 0 ;
24107 char *kwnames[] = {
24108 (char *) "self",(char *) "modal", NULL
24109 };
24110
24111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) goto fail;
24112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24114 if (obj1) {
24115 arg2 = (bool) SWIG_AsBool(obj1);
24116 if (PyErr_Occurred()) SWIG_fail;
24117 }
24118 {
24119 PyThreadState* __tstate = wxPyBeginAllowThreads();
24120 (arg1)->MakeModal(arg2);
24121
24122 wxPyEndAllowThreads(__tstate);
24123 if (PyErr_Occurred()) SWIG_fail;
24124 }
24125 Py_INCREF(Py_None); resultobj = Py_None;
24126 return resultobj;
24127 fail:
24128 return NULL;
24129}
24130
24131
24132static PyObject *_wrap_Window_SetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
24133 PyObject *resultobj;
24134 wxWindow *arg1 = (wxWindow *) 0 ;
24135 bool arg2 ;
24136 PyObject * obj0 = 0 ;
24137 PyObject * obj1 = 0 ;
24138 char *kwnames[] = {
24139 (char *) "self",(char *) "enableTheme", NULL
24140 };
24141
24142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) goto fail;
24143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24145 arg2 = (bool) SWIG_AsBool(obj1);
24146 if (PyErr_Occurred()) SWIG_fail;
24147 {
24148 PyThreadState* __tstate = wxPyBeginAllowThreads();
24149 (arg1)->SetThemeEnabled(arg2);
24150
24151 wxPyEndAllowThreads(__tstate);
24152 if (PyErr_Occurred()) SWIG_fail;
24153 }
24154 Py_INCREF(Py_None); resultobj = Py_None;
24155 return resultobj;
24156 fail:
24157 return NULL;
24158}
24159
24160
24161static PyObject *_wrap_Window_GetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
24162 PyObject *resultobj;
24163 wxWindow *arg1 = (wxWindow *) 0 ;
24164 bool result;
24165 PyObject * obj0 = 0 ;
24166 char *kwnames[] = {
24167 (char *) "self", NULL
24168 };
24169
24170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetThemeEnabled",kwnames,&obj0)) goto fail;
24171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24173 {
24174 PyThreadState* __tstate = wxPyBeginAllowThreads();
24175 result = (bool)((wxWindow const *)arg1)->GetThemeEnabled();
24176
24177 wxPyEndAllowThreads(__tstate);
24178 if (PyErr_Occurred()) SWIG_fail;
24179 }
24180 {
24181 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24182 }
24183 return resultobj;
24184 fail:
24185 return NULL;
24186}
24187
24188
24189static PyObject *_wrap_Window_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
24190 PyObject *resultobj;
24191 wxWindow *arg1 = (wxWindow *) 0 ;
24192 PyObject * obj0 = 0 ;
24193 char *kwnames[] = {
24194 (char *) "self", NULL
24195 };
24196
24197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocus",kwnames,&obj0)) goto fail;
24198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24200 {
24201 PyThreadState* __tstate = wxPyBeginAllowThreads();
24202 (arg1)->SetFocus();
24203
24204 wxPyEndAllowThreads(__tstate);
24205 if (PyErr_Occurred()) SWIG_fail;
24206 }
24207 Py_INCREF(Py_None); resultobj = Py_None;
24208 return resultobj;
24209 fail:
24210 return NULL;
24211}
24212
24213
24214static PyObject *_wrap_Window_SetFocusFromKbd(PyObject *self, PyObject *args, PyObject *kwargs) {
24215 PyObject *resultobj;
24216 wxWindow *arg1 = (wxWindow *) 0 ;
24217 PyObject * obj0 = 0 ;
24218 char *kwnames[] = {
24219 (char *) "self", NULL
24220 };
24221
24222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_SetFocusFromKbd",kwnames,&obj0)) goto fail;
24223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24225 {
24226 PyThreadState* __tstate = wxPyBeginAllowThreads();
24227 (arg1)->SetFocusFromKbd();
24228
24229 wxPyEndAllowThreads(__tstate);
24230 if (PyErr_Occurred()) SWIG_fail;
24231 }
24232 Py_INCREF(Py_None); resultobj = Py_None;
24233 return resultobj;
24234 fail:
24235 return NULL;
24236}
24237
24238
24239static PyObject *_wrap_Window_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
24240 PyObject *resultobj;
24241 wxWindow *result;
24242 char *kwnames[] = {
24243 NULL
24244 };
24245
24246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_FindFocus",kwnames)) goto fail;
24247 {
0439c23b 24248 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
24249 PyThreadState* __tstate = wxPyBeginAllowThreads();
24250 result = (wxWindow *)wxWindow::FindFocus();
24251
24252 wxPyEndAllowThreads(__tstate);
110da5b0 24253 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
24254 }
24255 {
412d302d 24256 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
24257 }
24258 return resultobj;
24259 fail:
24260 return NULL;
24261}
24262
24263
24264static PyObject *_wrap_Window_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) {
24265 PyObject *resultobj;
24266 wxWindow *arg1 = (wxWindow *) 0 ;
24267 bool result;
24268 PyObject * obj0 = 0 ;
24269 char *kwnames[] = {
24270 (char *) "self", NULL
24271 };
24272
24273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocus",kwnames,&obj0)) goto fail;
24274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24276 {
24277 PyThreadState* __tstate = wxPyBeginAllowThreads();
24278 result = (bool)((wxWindow const *)arg1)->AcceptsFocus();
24279
24280 wxPyEndAllowThreads(__tstate);
24281 if (PyErr_Occurred()) SWIG_fail;
24282 }
24283 {
24284 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24285 }
24286 return resultobj;
24287 fail:
24288 return NULL;
24289}
24290
24291
24292static PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) {
24293 PyObject *resultobj;
24294 wxWindow *arg1 = (wxWindow *) 0 ;
24295 bool result;
24296 PyObject * obj0 = 0 ;
24297 char *kwnames[] = {
24298 (char *) "self", NULL
24299 };
24300
24301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail;
24302 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24303 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24304 {
24305 PyThreadState* __tstate = wxPyBeginAllowThreads();
24306 result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard();
24307
24308 wxPyEndAllowThreads(__tstate);
24309 if (PyErr_Occurred()) SWIG_fail;
24310 }
24311 {
24312 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24313 }
24314 return resultobj;
24315 fail:
24316 return NULL;
24317}
24318
24319
24320static PyObject *_wrap_Window_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24321 PyObject *resultobj;
24322 wxWindow *arg1 = (wxWindow *) 0 ;
24323 wxWindow *result;
24324 PyObject * obj0 = 0 ;
24325 char *kwnames[] = {
24326 (char *) "self", NULL
24327 };
24328
24329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultItem",kwnames,&obj0)) goto fail;
24330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24332 {
24333 PyThreadState* __tstate = wxPyBeginAllowThreads();
24334 result = (wxWindow *)((wxWindow const *)arg1)->GetDefaultItem();
24335
24336 wxPyEndAllowThreads(__tstate);
24337 if (PyErr_Occurred()) SWIG_fail;
24338 }
24339 {
412d302d 24340 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
24341 }
24342 return resultobj;
24343 fail:
24344 return NULL;
24345}
24346
24347
24348static PyObject *_wrap_Window_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24349 PyObject *resultobj;
24350 wxWindow *arg1 = (wxWindow *) 0 ;
24351 wxWindow *arg2 = (wxWindow *) 0 ;
24352 wxWindow *result;
24353 PyObject * obj0 = 0 ;
24354 PyObject * obj1 = 0 ;
24355 char *kwnames[] = {
24356 (char *) "self",(char *) "child", NULL
24357 };
24358
24359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDefaultItem",kwnames,&obj0,&obj1)) goto fail;
24360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24362 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24364 {
24365 PyThreadState* __tstate = wxPyBeginAllowThreads();
24366 result = (wxWindow *)(arg1)->SetDefaultItem(arg2);
24367
24368 wxPyEndAllowThreads(__tstate);
24369 if (PyErr_Occurred()) SWIG_fail;
24370 }
24371 {
412d302d 24372 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
24373 }
24374 return resultobj;
24375 fail:
24376 return NULL;
24377}
24378
24379
24380static PyObject *_wrap_Window_SetTmpDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) {
24381 PyObject *resultobj;
24382 wxWindow *arg1 = (wxWindow *) 0 ;
24383 wxWindow *arg2 = (wxWindow *) 0 ;
24384 PyObject * obj0 = 0 ;
24385 PyObject * obj1 = 0 ;
24386 char *kwnames[] = {
24387 (char *) "self",(char *) "win", NULL
24388 };
24389
24390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTmpDefaultItem",kwnames,&obj0,&obj1)) goto fail;
24391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24393 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24395 {
24396 PyThreadState* __tstate = wxPyBeginAllowThreads();
24397 (arg1)->SetTmpDefaultItem(arg2);
24398
24399 wxPyEndAllowThreads(__tstate);
24400 if (PyErr_Occurred()) SWIG_fail;
24401 }
24402 Py_INCREF(Py_None); resultobj = Py_None;
24403 return resultobj;
24404 fail:
24405 return NULL;
24406}
24407
24408
908b74cd
RD
24409static PyObject *_wrap_Window_Navigate(PyObject *self, PyObject *args, PyObject *kwargs) {
24410 PyObject *resultobj;
24411 wxWindow *arg1 = (wxWindow *) 0 ;
24412 int arg2 = (int) wxNavigationKeyEvent::IsForward ;
24413 bool result;
24414 PyObject * obj0 = 0 ;
24415 PyObject * obj1 = 0 ;
24416 char *kwnames[] = {
24417 (char *) "self",(char *) "flags", NULL
24418 };
24419
24420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Navigate",kwnames,&obj0,&obj1)) goto fail;
24421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24423 if (obj1) {
24424 arg2 = (int) SWIG_AsInt(obj1);
24425 if (PyErr_Occurred()) SWIG_fail;
24426 }
24427 {
24428 PyThreadState* __tstate = wxPyBeginAllowThreads();
24429 result = (bool)(arg1)->Navigate(arg2);
24430
24431 wxPyEndAllowThreads(__tstate);
24432 if (PyErr_Occurred()) SWIG_fail;
24433 }
24434 {
24435 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24436 }
24437 return resultobj;
24438 fail:
24439 return NULL;
24440}
24441
24442
bf26d883
RD
24443static PyObject *_wrap_Window_MoveAfterInTabOrder(PyObject *self, PyObject *args, PyObject *kwargs) {
24444 PyObject *resultobj;
24445 wxWindow *arg1 = (wxWindow *) 0 ;
24446 wxWindow *arg2 = (wxWindow *) 0 ;
24447 PyObject * obj0 = 0 ;
24448 PyObject * obj1 = 0 ;
24449 char *kwnames[] = {
24450 (char *) "self",(char *) "win", NULL
24451 };
24452
24453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveAfterInTabOrder",kwnames,&obj0,&obj1)) goto fail;
24454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24456 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24458 {
24459 PyThreadState* __tstate = wxPyBeginAllowThreads();
24460 (arg1)->MoveAfterInTabOrder(arg2);
24461
24462 wxPyEndAllowThreads(__tstate);
24463 if (PyErr_Occurred()) SWIG_fail;
24464 }
24465 Py_INCREF(Py_None); resultobj = Py_None;
24466 return resultobj;
24467 fail:
24468 return NULL;
24469}
24470
24471
24472static PyObject *_wrap_Window_MoveBeforeInTabOrder(PyObject *self, PyObject *args, PyObject *kwargs) {
24473 PyObject *resultobj;
24474 wxWindow *arg1 = (wxWindow *) 0 ;
24475 wxWindow *arg2 = (wxWindow *) 0 ;
24476 PyObject * obj0 = 0 ;
24477 PyObject * obj1 = 0 ;
24478 char *kwnames[] = {
24479 (char *) "self",(char *) "win", NULL
24480 };
24481
24482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveBeforeInTabOrder",kwnames,&obj0,&obj1)) goto fail;
24483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24485 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24487 {
24488 PyThreadState* __tstate = wxPyBeginAllowThreads();
24489 (arg1)->MoveBeforeInTabOrder(arg2);
24490
24491 wxPyEndAllowThreads(__tstate);
24492 if (PyErr_Occurred()) SWIG_fail;
24493 }
24494 Py_INCREF(Py_None); resultobj = Py_None;
24495 return resultobj;
24496 fail:
24497 return NULL;
24498}
24499
24500
d55e5bfc
RD
24501static PyObject *_wrap_Window_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
24502 PyObject *resultobj;
24503 wxWindow *arg1 = (wxWindow *) 0 ;
24504 PyObject *result;
24505 PyObject * obj0 = 0 ;
24506 char *kwnames[] = {
24507 (char *) "self", NULL
24508 };
24509
24510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetChildren",kwnames,&obj0)) goto fail;
24511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24513 {
24514 PyThreadState* __tstate = wxPyBeginAllowThreads();
24515 result = (PyObject *)wxWindow_GetChildren(arg1);
24516
24517 wxPyEndAllowThreads(__tstate);
24518 if (PyErr_Occurred()) SWIG_fail;
24519 }
24520 resultobj = result;
24521 return resultobj;
24522 fail:
24523 return NULL;
24524}
24525
24526
24527static PyObject *_wrap_Window_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
24528 PyObject *resultobj;
24529 wxWindow *arg1 = (wxWindow *) 0 ;
24530 wxWindow *result;
24531 PyObject * obj0 = 0 ;
24532 char *kwnames[] = {
24533 (char *) "self", NULL
24534 };
24535
24536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetParent",kwnames,&obj0)) goto fail;
24537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24539 {
24540 PyThreadState* __tstate = wxPyBeginAllowThreads();
24541 result = (wxWindow *)((wxWindow const *)arg1)->GetParent();
24542
24543 wxPyEndAllowThreads(__tstate);
24544 if (PyErr_Occurred()) SWIG_fail;
24545 }
24546 {
412d302d 24547 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
24548 }
24549 return resultobj;
24550 fail:
24551 return NULL;
24552}
24553
24554
24555static PyObject *_wrap_Window_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) {
24556 PyObject *resultobj;
24557 wxWindow *arg1 = (wxWindow *) 0 ;
24558 wxWindow *result;
24559 PyObject * obj0 = 0 ;
24560 char *kwnames[] = {
24561 (char *) "self", NULL
24562 };
24563
24564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetGrandParent",kwnames,&obj0)) goto fail;
24565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24567 {
24568 PyThreadState* __tstate = wxPyBeginAllowThreads();
24569 result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent();
24570
24571 wxPyEndAllowThreads(__tstate);
24572 if (PyErr_Occurred()) SWIG_fail;
24573 }
24574 {
412d302d 24575 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
24576 }
24577 return resultobj;
24578 fail:
24579 return NULL;
24580}
24581
24582
24583static PyObject *_wrap_Window_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
24584 PyObject *resultobj;
24585 wxWindow *arg1 = (wxWindow *) 0 ;
24586 bool result;
24587 PyObject * obj0 = 0 ;
24588 char *kwnames[] = {
24589 (char *) "self", NULL
24590 };
24591
24592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_IsTopLevel",kwnames,&obj0)) goto fail;
24593 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24595 {
24596 PyThreadState* __tstate = wxPyBeginAllowThreads();
24597 result = (bool)((wxWindow const *)arg1)->IsTopLevel();
24598
24599 wxPyEndAllowThreads(__tstate);
24600 if (PyErr_Occurred()) SWIG_fail;
24601 }
24602 {
24603 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24604 }
24605 return resultobj;
24606 fail:
24607 return NULL;
24608}
24609
24610
24611static PyObject *_wrap_Window_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) {
24612 PyObject *resultobj;
24613 wxWindow *arg1 = (wxWindow *) 0 ;
24614 wxWindow *arg2 = (wxWindow *) 0 ;
24615 bool result;
24616 PyObject * obj0 = 0 ;
24617 PyObject * obj1 = 0 ;
24618 char *kwnames[] = {
24619 (char *) "self",(char *) "newParent", NULL
24620 };
24621
24622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) goto fail;
24623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24625 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24627 {
24628 PyThreadState* __tstate = wxPyBeginAllowThreads();
24629 result = (bool)(arg1)->Reparent(arg2);
24630
24631 wxPyEndAllowThreads(__tstate);
24632 if (PyErr_Occurred()) SWIG_fail;
24633 }
24634 {
24635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24636 }
24637 return resultobj;
24638 fail:
24639 return NULL;
24640}
24641
24642
24643static PyObject *_wrap_Window_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) {
24644 PyObject *resultobj;
24645 wxWindow *arg1 = (wxWindow *) 0 ;
24646 wxWindow *arg2 = (wxWindow *) 0 ;
24647 PyObject * obj0 = 0 ;
24648 PyObject * obj1 = 0 ;
24649 char *kwnames[] = {
24650 (char *) "self",(char *) "child", NULL
24651 };
24652
24653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) goto fail;
24654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24656 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24658 {
24659 PyThreadState* __tstate = wxPyBeginAllowThreads();
24660 (arg1)->AddChild(arg2);
24661
24662 wxPyEndAllowThreads(__tstate);
24663 if (PyErr_Occurred()) SWIG_fail;
24664 }
24665 Py_INCREF(Py_None); resultobj = Py_None;
24666 return resultobj;
24667 fail:
24668 return NULL;
24669}
24670
24671
24672static PyObject *_wrap_Window_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) {
24673 PyObject *resultobj;
24674 wxWindow *arg1 = (wxWindow *) 0 ;
24675 wxWindow *arg2 = (wxWindow *) 0 ;
24676 PyObject * obj0 = 0 ;
24677 PyObject * obj1 = 0 ;
24678 char *kwnames[] = {
24679 (char *) "self",(char *) "child", NULL
24680 };
24681
24682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) goto fail;
24683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24685 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24687 {
24688 PyThreadState* __tstate = wxPyBeginAllowThreads();
24689 (arg1)->RemoveChild(arg2);
24690
24691 wxPyEndAllowThreads(__tstate);
24692 if (PyErr_Occurred()) SWIG_fail;
24693 }
24694 Py_INCREF(Py_None); resultobj = Py_None;
24695 return resultobj;
24696 fail:
24697 return NULL;
24698}
24699
24700
24701static PyObject *_wrap_Window_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) {
24702 PyObject *resultobj;
24703 wxWindow *arg1 = (wxWindow *) 0 ;
24704 long arg2 ;
24705 wxWindow *result;
24706 PyObject * obj0 = 0 ;
24707 PyObject * obj1 = 0 ;
24708 char *kwnames[] = {
24709 (char *) "self",(char *) "winid", NULL
24710 };
24711
24712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowById",kwnames,&obj0,&obj1)) goto fail;
24713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24715 arg2 = (long) SWIG_AsLong(obj1);
24716 if (PyErr_Occurred()) SWIG_fail;
24717 {
24718 PyThreadState* __tstate = wxPyBeginAllowThreads();
24719 result = (wxWindow *)(arg1)->FindWindow(arg2);
24720
24721 wxPyEndAllowThreads(__tstate);
24722 if (PyErr_Occurred()) SWIG_fail;
24723 }
24724 {
412d302d 24725 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
24726 }
24727 return resultobj;
24728 fail:
24729 return NULL;
24730}
24731
24732
24733static PyObject *_wrap_Window_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) {
24734 PyObject *resultobj;
24735 wxWindow *arg1 = (wxWindow *) 0 ;
24736 wxString *arg2 = 0 ;
24737 wxWindow *result;
24738 bool temp2 = False ;
24739 PyObject * obj0 = 0 ;
24740 PyObject * obj1 = 0 ;
24741 char *kwnames[] = {
24742 (char *) "self",(char *) "name", NULL
24743 };
24744
24745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) goto fail;
24746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24748 {
24749 arg2 = wxString_in_helper(obj1);
24750 if (arg2 == NULL) SWIG_fail;
24751 temp2 = True;
24752 }
24753 {
24754 PyThreadState* __tstate = wxPyBeginAllowThreads();
24755 result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2);
24756
24757 wxPyEndAllowThreads(__tstate);
24758 if (PyErr_Occurred()) SWIG_fail;
24759 }
24760 {
412d302d 24761 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
24762 }
24763 {
24764 if (temp2)
24765 delete arg2;
24766 }
24767 return resultobj;
24768 fail:
24769 {
24770 if (temp2)
24771 delete arg2;
24772 }
24773 return NULL;
24774}
24775
24776
24777static PyObject *_wrap_Window_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
24778 PyObject *resultobj;
24779 wxWindow *arg1 = (wxWindow *) 0 ;
24780 wxEvtHandler *result;
24781 PyObject * obj0 = 0 ;
24782 char *kwnames[] = {
24783 (char *) "self", NULL
24784 };
24785
24786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetEventHandler",kwnames,&obj0)) goto fail;
24787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24789 {
24790 PyThreadState* __tstate = wxPyBeginAllowThreads();
24791 result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler();
24792
24793 wxPyEndAllowThreads(__tstate);
24794 if (PyErr_Occurred()) SWIG_fail;
24795 }
24796 {
412d302d 24797 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
24798 }
24799 return resultobj;
24800 fail:
24801 return NULL;
24802}
24803
24804
24805static PyObject *_wrap_Window_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
24806 PyObject *resultobj;
24807 wxWindow *arg1 = (wxWindow *) 0 ;
24808 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
24809 PyObject * obj0 = 0 ;
24810 PyObject * obj1 = 0 ;
24811 char *kwnames[] = {
24812 (char *) "self",(char *) "handler", NULL
24813 };
24814
24815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) goto fail;
24816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24818 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
24819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24820 {
24821 PyThreadState* __tstate = wxPyBeginAllowThreads();
24822 (arg1)->SetEventHandler(arg2);
24823
24824 wxPyEndAllowThreads(__tstate);
24825 if (PyErr_Occurred()) SWIG_fail;
24826 }
24827 Py_INCREF(Py_None); resultobj = Py_None;
24828 return resultobj;
24829 fail:
24830 return NULL;
24831}
24832
24833
24834static PyObject *_wrap_Window_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
24835 PyObject *resultobj;
24836 wxWindow *arg1 = (wxWindow *) 0 ;
24837 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
24838 PyObject * obj0 = 0 ;
24839 PyObject * obj1 = 0 ;
24840 char *kwnames[] = {
24841 (char *) "self",(char *) "handler", NULL
24842 };
24843
24844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) goto fail;
24845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24847 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
24848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24849 {
24850 PyThreadState* __tstate = wxPyBeginAllowThreads();
24851 (arg1)->PushEventHandler(arg2);
24852
24853 wxPyEndAllowThreads(__tstate);
24854 if (PyErr_Occurred()) SWIG_fail;
24855 }
24856 Py_INCREF(Py_None); resultobj = Py_None;
24857 return resultobj;
24858 fail:
24859 return NULL;
24860}
24861
24862
24863static PyObject *_wrap_Window_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
24864 PyObject *resultobj;
24865 wxWindow *arg1 = (wxWindow *) 0 ;
24866 bool arg2 = (bool) False ;
24867 wxEvtHandler *result;
24868 PyObject * obj0 = 0 ;
24869 PyObject * obj1 = 0 ;
24870 char *kwnames[] = {
24871 (char *) "self",(char *) "deleteHandler", NULL
24872 };
24873
24874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) goto fail;
24875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24877 if (obj1) {
24878 arg2 = (bool) SWIG_AsBool(obj1);
24879 if (PyErr_Occurred()) SWIG_fail;
24880 }
24881 {
24882 PyThreadState* __tstate = wxPyBeginAllowThreads();
24883 result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2);
24884
24885 wxPyEndAllowThreads(__tstate);
24886 if (PyErr_Occurred()) SWIG_fail;
24887 }
24888 {
412d302d 24889 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
24890 }
24891 return resultobj;
24892 fail:
24893 return NULL;
24894}
24895
24896
24897static PyObject *_wrap_Window_RemoveEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
24898 PyObject *resultobj;
24899 wxWindow *arg1 = (wxWindow *) 0 ;
24900 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
24901 bool result;
24902 PyObject * obj0 = 0 ;
24903 PyObject * obj1 = 0 ;
24904 char *kwnames[] = {
24905 (char *) "self",(char *) "handler", NULL
24906 };
24907
24908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) goto fail;
24909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24911 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
24912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24913 {
24914 PyThreadState* __tstate = wxPyBeginAllowThreads();
24915 result = (bool)(arg1)->RemoveEventHandler(arg2);
24916
24917 wxPyEndAllowThreads(__tstate);
24918 if (PyErr_Occurred()) SWIG_fail;
24919 }
24920 {
24921 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24922 }
24923 return resultobj;
24924 fail:
24925 return NULL;
24926}
24927
24928
24929static PyObject *_wrap_Window_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
24930 PyObject *resultobj;
24931 wxWindow *arg1 = (wxWindow *) 0 ;
24932 wxValidator *arg2 = 0 ;
24933 PyObject * obj0 = 0 ;
24934 PyObject * obj1 = 0 ;
24935 char *kwnames[] = {
24936 (char *) "self",(char *) "validator", NULL
24937 };
24938
24939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) goto fail;
24940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24942 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxValidator,
24943 SWIG_POINTER_EXCEPTION | 0)) == -1)
24944 SWIG_fail;
24945 if (arg2 == NULL) {
24946 PyErr_SetString(PyExc_TypeError,"null reference");
24947 SWIG_fail;
24948 }
24949 {
24950 PyThreadState* __tstate = wxPyBeginAllowThreads();
24951 (arg1)->SetValidator((wxValidator const &)*arg2);
24952
24953 wxPyEndAllowThreads(__tstate);
24954 if (PyErr_Occurred()) SWIG_fail;
24955 }
24956 Py_INCREF(Py_None); resultobj = Py_None;
24957 return resultobj;
24958 fail:
24959 return NULL;
24960}
24961
24962
24963static PyObject *_wrap_Window_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
24964 PyObject *resultobj;
24965 wxWindow *arg1 = (wxWindow *) 0 ;
24966 wxValidator *result;
24967 PyObject * obj0 = 0 ;
24968 char *kwnames[] = {
24969 (char *) "self", NULL
24970 };
24971
24972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetValidator",kwnames,&obj0)) goto fail;
24973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24975 {
24976 PyThreadState* __tstate = wxPyBeginAllowThreads();
24977 result = (wxValidator *)(arg1)->GetValidator();
24978
24979 wxPyEndAllowThreads(__tstate);
24980 if (PyErr_Occurred()) SWIG_fail;
24981 }
24982 {
412d302d 24983 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
24984 }
24985 return resultobj;
24986 fail:
24987 return NULL;
24988}
24989
24990
24991static PyObject *_wrap_Window_Validate(PyObject *self, PyObject *args, PyObject *kwargs) {
24992 PyObject *resultobj;
24993 wxWindow *arg1 = (wxWindow *) 0 ;
24994 bool result;
24995 PyObject * obj0 = 0 ;
24996 char *kwnames[] = {
24997 (char *) "self", NULL
24998 };
24999
25000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Validate",kwnames,&obj0)) goto fail;
25001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25003 {
25004 PyThreadState* __tstate = wxPyBeginAllowThreads();
25005 result = (bool)(arg1)->Validate();
25006
25007 wxPyEndAllowThreads(__tstate);
25008 if (PyErr_Occurred()) SWIG_fail;
25009 }
25010 {
25011 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25012 }
25013 return resultobj;
25014 fail:
25015 return NULL;
25016}
25017
25018
25019static PyObject *_wrap_Window_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
25020 PyObject *resultobj;
25021 wxWindow *arg1 = (wxWindow *) 0 ;
25022 bool result;
25023 PyObject * obj0 = 0 ;
25024 char *kwnames[] = {
25025 (char *) "self", NULL
25026 };
25027
25028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataToWindow",kwnames,&obj0)) goto fail;
25029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25031 {
25032 PyThreadState* __tstate = wxPyBeginAllowThreads();
25033 result = (bool)(arg1)->TransferDataToWindow();
25034
25035 wxPyEndAllowThreads(__tstate);
25036 if (PyErr_Occurred()) SWIG_fail;
25037 }
25038 {
25039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25040 }
25041 return resultobj;
25042 fail:
25043 return NULL;
25044}
25045
25046
25047static PyObject *_wrap_Window_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
25048 PyObject *resultobj;
25049 wxWindow *arg1 = (wxWindow *) 0 ;
25050 bool result;
25051 PyObject * obj0 = 0 ;
25052 char *kwnames[] = {
25053 (char *) "self", NULL
25054 };
25055
25056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_TransferDataFromWindow",kwnames,&obj0)) goto fail;
25057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25059 {
25060 PyThreadState* __tstate = wxPyBeginAllowThreads();
25061 result = (bool)(arg1)->TransferDataFromWindow();
25062
25063 wxPyEndAllowThreads(__tstate);
25064 if (PyErr_Occurred()) SWIG_fail;
25065 }
25066 {
25067 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25068 }
25069 return resultobj;
25070 fail:
25071 return NULL;
25072}
25073
25074
25075static PyObject *_wrap_Window_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
25076 PyObject *resultobj;
25077 wxWindow *arg1 = (wxWindow *) 0 ;
25078 PyObject * obj0 = 0 ;
25079 char *kwnames[] = {
25080 (char *) "self", NULL
25081 };
25082
25083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InitDialog",kwnames,&obj0)) goto fail;
25084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25086 {
25087 PyThreadState* __tstate = wxPyBeginAllowThreads();
25088 (arg1)->InitDialog();
25089
25090 wxPyEndAllowThreads(__tstate);
25091 if (PyErr_Occurred()) SWIG_fail;
25092 }
25093 Py_INCREF(Py_None); resultobj = Py_None;
25094 return resultobj;
25095 fail:
25096 return NULL;
25097}
25098
25099
25100static PyObject *_wrap_Window_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
25101 PyObject *resultobj;
25102 wxWindow *arg1 = (wxWindow *) 0 ;
25103 wxAcceleratorTable *arg2 = 0 ;
25104 PyObject * obj0 = 0 ;
25105 PyObject * obj1 = 0 ;
25106 char *kwnames[] = {
25107 (char *) "self",(char *) "accel", NULL
25108 };
25109
25110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) goto fail;
25111 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25113 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorTable,
25114 SWIG_POINTER_EXCEPTION | 0)) == -1)
25115 SWIG_fail;
25116 if (arg2 == NULL) {
25117 PyErr_SetString(PyExc_TypeError,"null reference");
25118 SWIG_fail;
25119 }
25120 {
25121 PyThreadState* __tstate = wxPyBeginAllowThreads();
25122 (arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2);
25123
25124 wxPyEndAllowThreads(__tstate);
25125 if (PyErr_Occurred()) SWIG_fail;
25126 }
25127 Py_INCREF(Py_None); resultobj = Py_None;
25128 return resultobj;
25129 fail:
25130 return NULL;
25131}
25132
25133
25134static PyObject *_wrap_Window_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) {
25135 PyObject *resultobj;
25136 wxWindow *arg1 = (wxWindow *) 0 ;
25137 wxAcceleratorTable *result;
25138 PyObject * obj0 = 0 ;
25139 char *kwnames[] = {
25140 (char *) "self", NULL
25141 };
25142
25143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAcceleratorTable",kwnames,&obj0)) goto fail;
25144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25146 {
25147 PyThreadState* __tstate = wxPyBeginAllowThreads();
25148 result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable();
25149
25150 wxPyEndAllowThreads(__tstate);
25151 if (PyErr_Occurred()) SWIG_fail;
25152 }
25153 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorTable, 0);
25154 return resultobj;
25155 fail:
25156 return NULL;
25157}
25158
25159
25160static PyObject *_wrap_Window_RegisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) {
25161 PyObject *resultobj;
25162 wxWindow *arg1 = (wxWindow *) 0 ;
25163 int arg2 ;
25164 int arg3 ;
25165 int arg4 ;
25166 bool result;
25167 PyObject * obj0 = 0 ;
25168 PyObject * obj1 = 0 ;
25169 PyObject * obj2 = 0 ;
25170 PyObject * obj3 = 0 ;
25171 char *kwnames[] = {
25172 (char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL
25173 };
25174
25175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_RegisterHotKey",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25178 arg2 = (int) SWIG_AsInt(obj1);
25179 if (PyErr_Occurred()) SWIG_fail;
25180 arg3 = (int) SWIG_AsInt(obj2);
25181 if (PyErr_Occurred()) SWIG_fail;
25182 arg4 = (int) SWIG_AsInt(obj3);
25183 if (PyErr_Occurred()) SWIG_fail;
25184 {
25185 PyThreadState* __tstate = wxPyBeginAllowThreads();
25186 result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4);
25187
25188 wxPyEndAllowThreads(__tstate);
25189 if (PyErr_Occurred()) SWIG_fail;
25190 }
25191 {
25192 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25193 }
25194 return resultobj;
25195 fail:
25196 return NULL;
25197}
25198
25199
25200static PyObject *_wrap_Window_UnregisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) {
25201 PyObject *resultobj;
25202 wxWindow *arg1 = (wxWindow *) 0 ;
25203 int arg2 ;
25204 bool result;
25205 PyObject * obj0 = 0 ;
25206 PyObject * obj1 = 0 ;
25207 char *kwnames[] = {
25208 (char *) "self",(char *) "hotkeyId", NULL
25209 };
25210
25211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_UnregisterHotKey",kwnames,&obj0,&obj1)) goto fail;
25212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25214 arg2 = (int) SWIG_AsInt(obj1);
25215 if (PyErr_Occurred()) SWIG_fail;
25216 {
25217 PyThreadState* __tstate = wxPyBeginAllowThreads();
25218 result = (bool)wxWindow_UnregisterHotKey(arg1,arg2);
25219
25220 wxPyEndAllowThreads(__tstate);
25221 if (PyErr_Occurred()) SWIG_fail;
25222 }
25223 {
25224 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25225 }
25226 return resultobj;
25227 fail:
25228 return NULL;
25229}
25230
25231
25232static PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) {
25233 PyObject *resultobj;
25234 wxWindow *arg1 = (wxWindow *) 0 ;
25235 wxPoint *arg2 = 0 ;
25236 wxPoint result;
25237 wxPoint temp2 ;
25238 PyObject * obj0 = 0 ;
25239 PyObject * obj1 = 0 ;
25240 char *kwnames[] = {
25241 (char *) "self",(char *) "pt", NULL
25242 };
25243
25244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) goto fail;
25245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25247 {
25248 arg2 = &temp2;
25249 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
25250 }
25251 {
25252 PyThreadState* __tstate = wxPyBeginAllowThreads();
25253 result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2);
25254
25255 wxPyEndAllowThreads(__tstate);
25256 if (PyErr_Occurred()) SWIG_fail;
25257 }
25258 {
25259 wxPoint * resultptr;
25260 resultptr = new wxPoint((wxPoint &) result);
25261 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
25262 }
25263 return resultobj;
25264 fail:
25265 return NULL;
25266}
25267
25268
25269static PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) {
25270 PyObject *resultobj;
25271 wxWindow *arg1 = (wxWindow *) 0 ;
25272 wxSize *arg2 = 0 ;
25273 wxSize result;
25274 wxSize temp2 ;
25275 PyObject * obj0 = 0 ;
25276 PyObject * obj1 = 0 ;
25277 char *kwnames[] = {
25278 (char *) "self",(char *) "sz", NULL
25279 };
25280
25281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) goto fail;
25282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25284 {
25285 arg2 = &temp2;
25286 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25287 }
25288 {
25289 PyThreadState* __tstate = wxPyBeginAllowThreads();
25290 result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2);
25291
25292 wxPyEndAllowThreads(__tstate);
25293 if (PyErr_Occurred()) SWIG_fail;
25294 }
25295 {
25296 wxSize * resultptr;
25297 resultptr = new wxSize((wxSize &) result);
25298 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
25299 }
25300 return resultobj;
25301 fail:
25302 return NULL;
25303}
25304
25305
25306static PyObject *_wrap_Window_DLG_PNT(PyObject *self, PyObject *args, PyObject *kwargs) {
25307 PyObject *resultobj;
25308 wxWindow *arg1 = (wxWindow *) 0 ;
25309 wxPoint *arg2 = 0 ;
25310 wxPoint result;
25311 wxPoint temp2 ;
25312 PyObject * obj0 = 0 ;
25313 PyObject * obj1 = 0 ;
25314 char *kwnames[] = {
25315 (char *) "self",(char *) "pt", NULL
25316 };
25317
25318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) goto fail;
25319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25321 {
25322 arg2 = &temp2;
25323 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
25324 }
25325 {
25326 PyThreadState* __tstate = wxPyBeginAllowThreads();
25327 result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2);
25328
25329 wxPyEndAllowThreads(__tstate);
25330 if (PyErr_Occurred()) SWIG_fail;
25331 }
25332 {
25333 wxPoint * resultptr;
25334 resultptr = new wxPoint((wxPoint &) result);
25335 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
25336 }
25337 return resultobj;
25338 fail:
25339 return NULL;
25340}
25341
25342
25343static PyObject *_wrap_Window_DLG_SZE(PyObject *self, PyObject *args, PyObject *kwargs) {
25344 PyObject *resultobj;
25345 wxWindow *arg1 = (wxWindow *) 0 ;
25346 wxSize *arg2 = 0 ;
25347 wxSize result;
25348 wxSize temp2 ;
25349 PyObject * obj0 = 0 ;
25350 PyObject * obj1 = 0 ;
25351 char *kwnames[] = {
25352 (char *) "self",(char *) "sz", NULL
25353 };
25354
25355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) goto fail;
25356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25358 {
25359 arg2 = &temp2;
25360 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25361 }
25362 {
25363 PyThreadState* __tstate = wxPyBeginAllowThreads();
25364 result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2);
25365
25366 wxPyEndAllowThreads(__tstate);
25367 if (PyErr_Occurred()) SWIG_fail;
25368 }
25369 {
25370 wxSize * resultptr;
25371 resultptr = new wxSize((wxSize &) result);
25372 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
25373 }
25374 return resultobj;
25375 fail:
25376 return NULL;
25377}
25378
25379
25380static PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
25381 PyObject *resultobj;
25382 wxWindow *arg1 = (wxWindow *) 0 ;
25383 wxPoint *arg2 = 0 ;
25384 wxPoint result;
25385 wxPoint temp2 ;
25386 PyObject * obj0 = 0 ;
25387 PyObject * obj1 = 0 ;
25388 char *kwnames[] = {
25389 (char *) "self",(char *) "pt", NULL
25390 };
25391
25392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) goto fail;
25393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25395 {
25396 arg2 = &temp2;
25397 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
25398 }
25399 {
25400 PyThreadState* __tstate = wxPyBeginAllowThreads();
25401 result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2);
25402
25403 wxPyEndAllowThreads(__tstate);
25404 if (PyErr_Occurred()) SWIG_fail;
25405 }
25406 {
25407 wxPoint * resultptr;
25408 resultptr = new wxPoint((wxPoint &) result);
25409 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
25410 }
25411 return resultobj;
25412 fail:
25413 return NULL;
25414}
25415
25416
25417static PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) {
25418 PyObject *resultobj;
25419 wxWindow *arg1 = (wxWindow *) 0 ;
25420 wxSize *arg2 = 0 ;
25421 wxSize result;
25422 wxSize temp2 ;
25423 PyObject * obj0 = 0 ;
25424 PyObject * obj1 = 0 ;
25425 char *kwnames[] = {
25426 (char *) "self",(char *) "sz", NULL
25427 };
25428
25429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) goto fail;
25430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25432 {
25433 arg2 = &temp2;
25434 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25435 }
25436 {
25437 PyThreadState* __tstate = wxPyBeginAllowThreads();
25438 result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2);
25439
25440 wxPyEndAllowThreads(__tstate);
25441 if (PyErr_Occurred()) SWIG_fail;
25442 }
25443 {
25444 wxSize * resultptr;
25445 resultptr = new wxSize((wxSize &) result);
25446 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
25447 }
25448 return resultobj;
25449 fail:
25450 return NULL;
25451}
25452
25453
25454static PyObject *_wrap_Window_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) {
25455 PyObject *resultobj;
25456 wxWindow *arg1 = (wxWindow *) 0 ;
25457 int arg2 ;
25458 int arg3 ;
25459 PyObject * obj0 = 0 ;
25460 PyObject * obj1 = 0 ;
25461 PyObject * obj2 = 0 ;
25462 char *kwnames[] = {
25463 (char *) "self",(char *) "x",(char *) "y", NULL
25464 };
25465
25466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_WarpPointer",kwnames,&obj0,&obj1,&obj2)) goto fail;
25467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25469 arg2 = (int) SWIG_AsInt(obj1);
25470 if (PyErr_Occurred()) SWIG_fail;
25471 arg3 = (int) SWIG_AsInt(obj2);
25472 if (PyErr_Occurred()) SWIG_fail;
25473 {
25474 PyThreadState* __tstate = wxPyBeginAllowThreads();
25475 (arg1)->WarpPointer(arg2,arg3);
25476
25477 wxPyEndAllowThreads(__tstate);
25478 if (PyErr_Occurred()) SWIG_fail;
25479 }
25480 Py_INCREF(Py_None); resultobj = Py_None;
25481 return resultobj;
25482 fail:
25483 return NULL;
25484}
25485
25486
25487static PyObject *_wrap_Window_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) {
25488 PyObject *resultobj;
25489 wxWindow *arg1 = (wxWindow *) 0 ;
25490 PyObject * obj0 = 0 ;
25491 char *kwnames[] = {
25492 (char *) "self", NULL
25493 };
25494
25495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_CaptureMouse",kwnames,&obj0)) goto fail;
25496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25498 {
25499 PyThreadState* __tstate = wxPyBeginAllowThreads();
25500 (arg1)->CaptureMouse();
25501
25502 wxPyEndAllowThreads(__tstate);
25503 if (PyErr_Occurred()) SWIG_fail;
25504 }
25505 Py_INCREF(Py_None); resultobj = Py_None;
25506 return resultobj;
25507 fail:
25508 return NULL;
25509}
25510
25511
25512static PyObject *_wrap_Window_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) {
25513 PyObject *resultobj;
25514 wxWindow *arg1 = (wxWindow *) 0 ;
25515 PyObject * obj0 = 0 ;
25516 char *kwnames[] = {
25517 (char *) "self", NULL
25518 };
25519
25520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ReleaseMouse",kwnames,&obj0)) goto fail;
25521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25523 {
25524 PyThreadState* __tstate = wxPyBeginAllowThreads();
25525 (arg1)->ReleaseMouse();
25526
25527 wxPyEndAllowThreads(__tstate);
25528 if (PyErr_Occurred()) SWIG_fail;
25529 }
25530 Py_INCREF(Py_None); resultobj = Py_None;
25531 return resultobj;
25532 fail:
25533 return NULL;
25534}
25535
25536
25537static PyObject *_wrap_Window_GetCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
25538 PyObject *resultobj;
25539 wxWindow *result;
25540 char *kwnames[] = {
25541 NULL
25542 };
25543
25544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Window_GetCapture",kwnames)) goto fail;
25545 {
0439c23b 25546 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
25547 PyThreadState* __tstate = wxPyBeginAllowThreads();
25548 result = (wxWindow *)wxWindow::GetCapture();
25549
25550 wxPyEndAllowThreads(__tstate);
110da5b0 25551 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
25552 }
25553 {
412d302d 25554 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
25555 }
25556 return resultobj;
25557 fail:
25558 return NULL;
25559}
25560
25561
25562static PyObject *_wrap_Window_HasCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
25563 PyObject *resultobj;
25564 wxWindow *arg1 = (wxWindow *) 0 ;
25565 bool result;
25566 PyObject * obj0 = 0 ;
25567 char *kwnames[] = {
25568 (char *) "self", NULL
25569 };
25570
25571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_HasCapture",kwnames,&obj0)) goto fail;
25572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25574 {
25575 PyThreadState* __tstate = wxPyBeginAllowThreads();
25576 result = (bool)((wxWindow const *)arg1)->HasCapture();
25577
25578 wxPyEndAllowThreads(__tstate);
25579 if (PyErr_Occurred()) SWIG_fail;
25580 }
25581 {
25582 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25583 }
25584 return resultobj;
25585 fail:
25586 return NULL;
25587}
25588
25589
25590static PyObject *_wrap_Window_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) {
25591 PyObject *resultobj;
25592 wxWindow *arg1 = (wxWindow *) 0 ;
25593 bool arg2 = (bool) True ;
25594 wxRect *arg3 = (wxRect *) NULL ;
25595 PyObject * obj0 = 0 ;
25596 PyObject * obj1 = 0 ;
25597 PyObject * obj2 = 0 ;
25598 char *kwnames[] = {
25599 (char *) "self",(char *) "eraseBackground",(char *) "rect", NULL
25600 };
25601
25602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) goto fail;
25603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25605 if (obj1) {
25606 arg2 = (bool) SWIG_AsBool(obj1);
25607 if (PyErr_Occurred()) SWIG_fail;
25608 }
25609 if (obj2) {
25610 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxRect,
25611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25612 }
25613 {
25614 PyThreadState* __tstate = wxPyBeginAllowThreads();
25615 (arg1)->Refresh(arg2,(wxRect const *)arg3);
25616
25617 wxPyEndAllowThreads(__tstate);
25618 if (PyErr_Occurred()) SWIG_fail;
25619 }
25620 Py_INCREF(Py_None); resultobj = Py_None;
25621 return resultobj;
25622 fail:
25623 return NULL;
25624}
25625
25626
25627static PyObject *_wrap_Window_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) {
25628 PyObject *resultobj;
25629 wxWindow *arg1 = (wxWindow *) 0 ;
25630 wxRect *arg2 = 0 ;
25631 wxRect temp2 ;
25632 PyObject * obj0 = 0 ;
25633 PyObject * obj1 = 0 ;
25634 char *kwnames[] = {
25635 (char *) "self",(char *) "rect", NULL
25636 };
25637
25638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RefreshRect",kwnames,&obj0,&obj1)) goto fail;
25639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25641 {
25642 arg2 = &temp2;
25643 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
25644 }
25645 {
25646 PyThreadState* __tstate = wxPyBeginAllowThreads();
25647 (arg1)->RefreshRect((wxRect const &)*arg2);
25648
25649 wxPyEndAllowThreads(__tstate);
25650 if (PyErr_Occurred()) SWIG_fail;
25651 }
25652 Py_INCREF(Py_None); resultobj = Py_None;
25653 return resultobj;
25654 fail:
25655 return NULL;
25656}
25657
25658
25659static PyObject *_wrap_Window_Update(PyObject *self, PyObject *args, PyObject *kwargs) {
25660 PyObject *resultobj;
25661 wxWindow *arg1 = (wxWindow *) 0 ;
25662 PyObject * obj0 = 0 ;
25663 char *kwnames[] = {
25664 (char *) "self", NULL
25665 };
25666
25667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Update",kwnames,&obj0)) goto fail;
25668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25670 {
25671 PyThreadState* __tstate = wxPyBeginAllowThreads();
25672 (arg1)->Update();
25673
25674 wxPyEndAllowThreads(__tstate);
25675 if (PyErr_Occurred()) SWIG_fail;
25676 }
25677 Py_INCREF(Py_None); resultobj = Py_None;
25678 return resultobj;
25679 fail:
25680 return NULL;
25681}
25682
25683
25684static PyObject *_wrap_Window_ClearBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
25685 PyObject *resultobj;
25686 wxWindow *arg1 = (wxWindow *) 0 ;
25687 PyObject * obj0 = 0 ;
25688 char *kwnames[] = {
25689 (char *) "self", NULL
25690 };
25691
25692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ClearBackground",kwnames,&obj0)) goto fail;
25693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25695 {
25696 PyThreadState* __tstate = wxPyBeginAllowThreads();
25697 (arg1)->ClearBackground();
25698
25699 wxPyEndAllowThreads(__tstate);
25700 if (PyErr_Occurred()) SWIG_fail;
25701 }
25702 Py_INCREF(Py_None); resultobj = Py_None;
25703 return resultobj;
25704 fail:
25705 return NULL;
25706}
25707
25708
25709static PyObject *_wrap_Window_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) {
25710 PyObject *resultobj;
25711 wxWindow *arg1 = (wxWindow *) 0 ;
25712 PyObject * obj0 = 0 ;
25713 char *kwnames[] = {
25714 (char *) "self", NULL
25715 };
25716
25717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Freeze",kwnames,&obj0)) goto fail;
25718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25720 {
25721 PyThreadState* __tstate = wxPyBeginAllowThreads();
25722 (arg1)->Freeze();
25723
25724 wxPyEndAllowThreads(__tstate);
25725 if (PyErr_Occurred()) SWIG_fail;
25726 }
25727 Py_INCREF(Py_None); resultobj = Py_None;
25728 return resultobj;
25729 fail:
25730 return NULL;
25731}
25732
25733
25734static PyObject *_wrap_Window_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) {
25735 PyObject *resultobj;
25736 wxWindow *arg1 = (wxWindow *) 0 ;
25737 PyObject * obj0 = 0 ;
25738 char *kwnames[] = {
25739 (char *) "self", NULL
25740 };
25741
25742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Thaw",kwnames,&obj0)) goto fail;
25743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25745 {
25746 PyThreadState* __tstate = wxPyBeginAllowThreads();
25747 (arg1)->Thaw();
25748
25749 wxPyEndAllowThreads(__tstate);
25750 if (PyErr_Occurred()) SWIG_fail;
25751 }
25752 Py_INCREF(Py_None); resultobj = Py_None;
25753 return resultobj;
25754 fail:
25755 return NULL;
25756}
25757
25758
25759static PyObject *_wrap_Window_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) {
25760 PyObject *resultobj;
25761 wxWindow *arg1 = (wxWindow *) 0 ;
25762 wxDC *arg2 = 0 ;
25763 PyObject * obj0 = 0 ;
25764 PyObject * obj1 = 0 ;
25765 char *kwnames[] = {
25766 (char *) "self",(char *) "dc", NULL
25767 };
25768
25769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) goto fail;
25770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25772 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
25773 SWIG_POINTER_EXCEPTION | 0)) == -1)
25774 SWIG_fail;
25775 if (arg2 == NULL) {
25776 PyErr_SetString(PyExc_TypeError,"null reference");
25777 SWIG_fail;
25778 }
25779 {
25780 PyThreadState* __tstate = wxPyBeginAllowThreads();
25781 (arg1)->PrepareDC(*arg2);
25782
25783 wxPyEndAllowThreads(__tstate);
25784 if (PyErr_Occurred()) SWIG_fail;
25785 }
25786 Py_INCREF(Py_None); resultobj = Py_None;
25787 return resultobj;
25788 fail:
25789 return NULL;
25790}
25791
25792
25793static PyObject *_wrap_Window_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
25794 PyObject *resultobj;
25795 wxWindow *arg1 = (wxWindow *) 0 ;
25796 wxRegion *result;
25797 PyObject * obj0 = 0 ;
25798 char *kwnames[] = {
25799 (char *) "self", NULL
25800 };
25801
25802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateRegion",kwnames,&obj0)) goto fail;
25803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25805 {
25806 PyThreadState* __tstate = wxPyBeginAllowThreads();
25807 {
25808 wxRegion &_result_ref = (arg1)->GetUpdateRegion();
25809 result = (wxRegion *) &_result_ref;
25810 }
25811
25812 wxPyEndAllowThreads(__tstate);
25813 if (PyErr_Occurred()) SWIG_fail;
25814 }
25815 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 0);
25816 return resultobj;
25817 fail:
25818 return NULL;
25819}
25820
25821
25822static PyObject *_wrap_Window_GetUpdateClientRect(PyObject *self, PyObject *args, PyObject *kwargs) {
25823 PyObject *resultobj;
25824 wxWindow *arg1 = (wxWindow *) 0 ;
25825 wxRect result;
25826 PyObject * obj0 = 0 ;
25827 char *kwnames[] = {
25828 (char *) "self", NULL
25829 };
25830
25831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetUpdateClientRect",kwnames,&obj0)) goto fail;
25832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25834 {
25835 PyThreadState* __tstate = wxPyBeginAllowThreads();
25836 result = ((wxWindow const *)arg1)->GetUpdateClientRect();
25837
25838 wxPyEndAllowThreads(__tstate);
25839 if (PyErr_Occurred()) SWIG_fail;
25840 }
25841 {
25842 wxRect * resultptr;
25843 resultptr = new wxRect((wxRect &) result);
25844 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
25845 }
25846 return resultobj;
25847 fail:
25848 return NULL;
25849}
25850
25851
25852static PyObject *_wrap_Window_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) {
25853 PyObject *resultobj;
25854 wxWindow *arg1 = (wxWindow *) 0 ;
25855 int arg2 ;
25856 int arg3 ;
25857 int arg4 = (int) 1 ;
25858 int arg5 = (int) 1 ;
25859 bool result;
25860 PyObject * obj0 = 0 ;
25861 PyObject * obj1 = 0 ;
25862 PyObject * obj2 = 0 ;
25863 PyObject * obj3 = 0 ;
25864 PyObject * obj4 = 0 ;
25865 char *kwnames[] = {
25866 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
25867 };
25868
25869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_IsExposed",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
25870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25872 arg2 = (int) SWIG_AsInt(obj1);
25873 if (PyErr_Occurred()) SWIG_fail;
25874 arg3 = (int) SWIG_AsInt(obj2);
25875 if (PyErr_Occurred()) SWIG_fail;
25876 if (obj3) {
25877 arg4 = (int) SWIG_AsInt(obj3);
25878 if (PyErr_Occurred()) SWIG_fail;
25879 }
25880 if (obj4) {
25881 arg5 = (int) SWIG_AsInt(obj4);
25882 if (PyErr_Occurred()) SWIG_fail;
25883 }
25884 {
25885 PyThreadState* __tstate = wxPyBeginAllowThreads();
25886 result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5);
25887
25888 wxPyEndAllowThreads(__tstate);
25889 if (PyErr_Occurred()) SWIG_fail;
25890 }
25891 {
25892 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25893 }
25894 return resultobj;
25895 fail:
25896 return NULL;
25897}
25898
25899
25900static PyObject *_wrap_Window_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
25901 PyObject *resultobj;
25902 wxWindow *arg1 = (wxWindow *) 0 ;
25903 wxPoint *arg2 = 0 ;
25904 bool result;
25905 wxPoint temp2 ;
25906 PyObject * obj0 = 0 ;
25907 PyObject * obj1 = 0 ;
25908 char *kwnames[] = {
25909 (char *) "self",(char *) "pt", NULL
25910 };
25911
25912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) goto fail;
25913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25915 {
25916 arg2 = &temp2;
25917 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
25918 }
25919 {
25920 PyThreadState* __tstate = wxPyBeginAllowThreads();
25921 result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2);
25922
25923 wxPyEndAllowThreads(__tstate);
25924 if (PyErr_Occurred()) SWIG_fail;
25925 }
25926 {
25927 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25928 }
25929 return resultobj;
25930 fail:
25931 return NULL;
25932}
25933
25934
25935static PyObject *_wrap_Window_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) {
25936 PyObject *resultobj;
25937 wxWindow *arg1 = (wxWindow *) 0 ;
25938 wxRect *arg2 = 0 ;
25939 bool result;
25940 wxRect temp2 ;
25941 PyObject * obj0 = 0 ;
25942 PyObject * obj1 = 0 ;
25943 char *kwnames[] = {
25944 (char *) "self",(char *) "rect", NULL
25945 };
25946
25947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedRect",kwnames,&obj0,&obj1)) goto fail;
25948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25950 {
25951 arg2 = &temp2;
25952 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
25953 }
25954 {
25955 PyThreadState* __tstate = wxPyBeginAllowThreads();
25956 result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2);
25957
25958 wxPyEndAllowThreads(__tstate);
25959 if (PyErr_Occurred()) SWIG_fail;
25960 }
25961 {
25962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25963 }
25964 return resultobj;
25965 fail:
25966 return NULL;
25967}
25968
25969
25970static PyObject *_wrap_Window_GetDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
25971 PyObject *resultobj;
25972 wxWindow *arg1 = (wxWindow *) 0 ;
25973 wxVisualAttributes result;
25974 PyObject * obj0 = 0 ;
25975 char *kwnames[] = {
25976 (char *) "self", NULL
25977 };
25978
25979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDefaultAttributes",kwnames,&obj0)) goto fail;
25980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25982 {
25983 PyThreadState* __tstate = wxPyBeginAllowThreads();
25984 result = ((wxWindow const *)arg1)->GetDefaultAttributes();
25985
25986 wxPyEndAllowThreads(__tstate);
25987 if (PyErr_Occurred()) SWIG_fail;
25988 }
25989 {
25990 wxVisualAttributes * resultptr;
25991 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
25992 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
25993 }
25994 return resultobj;
25995 fail:
25996 return NULL;
25997}
25998
25999
26000static PyObject *_wrap_Window_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
26001 PyObject *resultobj;
26002 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
26003 wxVisualAttributes result;
26004 PyObject * obj0 = 0 ;
26005 char *kwnames[] = {
26006 (char *) "variant", NULL
26007 };
26008
26009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Window_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
26010 if (obj0) {
26011 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
26012 if (PyErr_Occurred()) SWIG_fail;
26013 }
26014 {
0439c23b 26015 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
26016 PyThreadState* __tstate = wxPyBeginAllowThreads();
26017 result = wxWindow::GetClassDefaultAttributes((wxWindowVariant )arg1);
26018
26019 wxPyEndAllowThreads(__tstate);
110da5b0 26020 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
26021 }
26022 {
26023 wxVisualAttributes * resultptr;
26024 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
26025 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
26026 }
26027 return resultobj;
26028 fail:
26029 return NULL;
26030}
26031
26032
26033static PyObject *_wrap_Window_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
26034 PyObject *resultobj;
26035 wxWindow *arg1 = (wxWindow *) 0 ;
26036 wxColour *arg2 = 0 ;
26037 bool result;
26038 wxColour temp2 ;
26039 PyObject * obj0 = 0 ;
26040 PyObject * obj1 = 0 ;
26041 char *kwnames[] = {
26042 (char *) "self",(char *) "colour", NULL
26043 };
26044
26045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
26046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26048 {
26049 arg2 = &temp2;
26050 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26051 }
26052 {
26053 PyThreadState* __tstate = wxPyBeginAllowThreads();
26054 result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2);
26055
26056 wxPyEndAllowThreads(__tstate);
26057 if (PyErr_Occurred()) SWIG_fail;
26058 }
26059 {
26060 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26061 }
26062 return resultobj;
26063 fail:
26064 return NULL;
26065}
26066
26067
412d302d 26068static PyObject *_wrap_Window_SetOwnBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26069 PyObject *resultobj;
26070 wxWindow *arg1 = (wxWindow *) 0 ;
26071 wxColour *arg2 = 0 ;
26072 wxColour temp2 ;
26073 PyObject * obj0 = 0 ;
26074 PyObject * obj1 = 0 ;
26075 char *kwnames[] = {
26076 (char *) "self",(char *) "colour", NULL
26077 };
26078
412d302d 26079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
26080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26082 {
26083 arg2 = &temp2;
26084 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26085 }
26086 {
26087 PyThreadState* __tstate = wxPyBeginAllowThreads();
412d302d 26088 (arg1)->SetOwnBackgroundColour((wxColour const &)*arg2);
d55e5bfc
RD
26089
26090 wxPyEndAllowThreads(__tstate);
26091 if (PyErr_Occurred()) SWIG_fail;
26092 }
26093 Py_INCREF(Py_None); resultobj = Py_None;
26094 return resultobj;
26095 fail:
26096 return NULL;
26097}
26098
26099
26100static PyObject *_wrap_Window_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
26101 PyObject *resultobj;
26102 wxWindow *arg1 = (wxWindow *) 0 ;
26103 wxColour *arg2 = 0 ;
26104 bool result;
26105 wxColour temp2 ;
26106 PyObject * obj0 = 0 ;
26107 PyObject * obj1 = 0 ;
26108 char *kwnames[] = {
26109 (char *) "self",(char *) "colour", NULL
26110 };
26111
26112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail;
26113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26115 {
26116 arg2 = &temp2;
26117 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26118 }
26119 {
26120 PyThreadState* __tstate = wxPyBeginAllowThreads();
26121 result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2);
26122
26123 wxPyEndAllowThreads(__tstate);
26124 if (PyErr_Occurred()) SWIG_fail;
26125 }
26126 {
26127 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26128 }
26129 return resultobj;
26130 fail:
26131 return NULL;
26132}
26133
26134
fa47d7a7 26135static PyObject *_wrap_Window_SetOwnForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26136 PyObject *resultobj;
26137 wxWindow *arg1 = (wxWindow *) 0 ;
26138 wxColour *arg2 = 0 ;
26139 wxColour temp2 ;
26140 PyObject * obj0 = 0 ;
26141 PyObject * obj1 = 0 ;
26142 char *kwnames[] = {
26143 (char *) "self",(char *) "colour", NULL
26144 };
26145
fa47d7a7 26146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnForegroundColour",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
26147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26149 {
26150 arg2 = &temp2;
26151 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26152 }
26153 {
26154 PyThreadState* __tstate = wxPyBeginAllowThreads();
fa47d7a7 26155 (arg1)->SetOwnForegroundColour((wxColour const &)*arg2);
d55e5bfc
RD
26156
26157 wxPyEndAllowThreads(__tstate);
26158 if (PyErr_Occurred()) SWIG_fail;
26159 }
26160 Py_INCREF(Py_None); resultobj = Py_None;
26161 return resultobj;
26162 fail:
26163 return NULL;
26164}
26165
26166
26167static PyObject *_wrap_Window_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
26168 PyObject *resultobj;
26169 wxWindow *arg1 = (wxWindow *) 0 ;
26170 wxColour result;
26171 PyObject * obj0 = 0 ;
26172 char *kwnames[] = {
26173 (char *) "self", NULL
26174 };
26175
26176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetBackgroundColour",kwnames,&obj0)) goto fail;
26177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26179 {
26180 PyThreadState* __tstate = wxPyBeginAllowThreads();
26181 result = ((wxWindow const *)arg1)->GetBackgroundColour();
26182
26183 wxPyEndAllowThreads(__tstate);
26184 if (PyErr_Occurred()) SWIG_fail;
26185 }
26186 {
26187 wxColour * resultptr;
26188 resultptr = new wxColour((wxColour &) result);
26189 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
26190 }
26191 return resultobj;
26192 fail:
26193 return NULL;
26194}
26195
26196
26197static PyObject *_wrap_Window_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
26198 PyObject *resultobj;
26199 wxWindow *arg1 = (wxWindow *) 0 ;
26200 wxColour result;
26201 PyObject * obj0 = 0 ;
26202 char *kwnames[] = {
26203 (char *) "self", NULL
26204 };
26205
26206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetForegroundColour",kwnames,&obj0)) goto fail;
26207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26209 {
26210 PyThreadState* __tstate = wxPyBeginAllowThreads();
26211 result = ((wxWindow const *)arg1)->GetForegroundColour();
26212
26213 wxPyEndAllowThreads(__tstate);
26214 if (PyErr_Occurred()) SWIG_fail;
26215 }
26216 {
26217 wxColour * resultptr;
26218 resultptr = new wxColour((wxColour &) result);
26219 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
26220 }
26221 return resultobj;
26222 fail:
26223 return NULL;
26224}
26225
26226
26227static PyObject *_wrap_Window_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
26228 PyObject *resultobj;
26229 wxWindow *arg1 = (wxWindow *) 0 ;
26230 wxCursor *arg2 = 0 ;
26231 bool result;
26232 PyObject * obj0 = 0 ;
26233 PyObject * obj1 = 0 ;
26234 char *kwnames[] = {
26235 (char *) "self",(char *) "cursor", NULL
26236 };
26237
26238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) goto fail;
26239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26241 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
26242 SWIG_POINTER_EXCEPTION | 0)) == -1)
26243 SWIG_fail;
26244 if (arg2 == NULL) {
26245 PyErr_SetString(PyExc_TypeError,"null reference");
26246 SWIG_fail;
26247 }
26248 {
26249 PyThreadState* __tstate = wxPyBeginAllowThreads();
26250 result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2);
26251
26252 wxPyEndAllowThreads(__tstate);
26253 if (PyErr_Occurred()) SWIG_fail;
26254 }
26255 {
26256 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26257 }
26258 return resultobj;
26259 fail:
26260 return NULL;
26261}
26262
26263
26264static PyObject *_wrap_Window_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
26265 PyObject *resultobj;
26266 wxWindow *arg1 = (wxWindow *) 0 ;
a001823c 26267 wxCursor result;
d55e5bfc
RD
26268 PyObject * obj0 = 0 ;
26269 char *kwnames[] = {
26270 (char *) "self", NULL
26271 };
26272
26273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCursor",kwnames,&obj0)) goto fail;
26274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26276 {
26277 PyThreadState* __tstate = wxPyBeginAllowThreads();
a001823c 26278 result = (arg1)->GetCursor();
d55e5bfc
RD
26279
26280 wxPyEndAllowThreads(__tstate);
26281 if (PyErr_Occurred()) SWIG_fail;
26282 }
26283 {
a001823c
RD
26284 wxCursor * resultptr;
26285 resultptr = new wxCursor((wxCursor &) result);
26286 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxCursor, 1);
d55e5bfc
RD
26287 }
26288 return resultobj;
26289 fail:
26290 return NULL;
26291}
26292
26293
26294static PyObject *_wrap_Window_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
26295 PyObject *resultobj;
26296 wxWindow *arg1 = (wxWindow *) 0 ;
26297 wxFont *arg2 = 0 ;
26298 bool result;
26299 PyObject * obj0 = 0 ;
26300 PyObject * obj1 = 0 ;
26301 char *kwnames[] = {
26302 (char *) "self",(char *) "font", NULL
26303 };
26304
26305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) goto fail;
26306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26308 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
26309 SWIG_POINTER_EXCEPTION | 0)) == -1)
26310 SWIG_fail;
26311 if (arg2 == NULL) {
26312 PyErr_SetString(PyExc_TypeError,"null reference");
26313 SWIG_fail;
26314 }
26315 {
26316 PyThreadState* __tstate = wxPyBeginAllowThreads();
26317 result = (bool)(arg1)->SetFont((wxFont const &)*arg2);
26318
26319 wxPyEndAllowThreads(__tstate);
26320 if (PyErr_Occurred()) SWIG_fail;
26321 }
26322 {
26323 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26324 }
26325 return resultobj;
26326 fail:
26327 return NULL;
26328}
26329
26330
fa47d7a7 26331static PyObject *_wrap_Window_SetOwnFont(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
26332 PyObject *resultobj;
26333 wxWindow *arg1 = (wxWindow *) 0 ;
26334 wxFont *arg2 = 0 ;
26335 PyObject * obj0 = 0 ;
26336 PyObject * obj1 = 0 ;
26337 char *kwnames[] = {
26338 (char *) "self",(char *) "font", NULL
26339 };
26340
fa47d7a7 26341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnFont",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
26342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26344 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
26345 SWIG_POINTER_EXCEPTION | 0)) == -1)
26346 SWIG_fail;
26347 if (arg2 == NULL) {
26348 PyErr_SetString(PyExc_TypeError,"null reference");
26349 SWIG_fail;
26350 }
26351 {
26352 PyThreadState* __tstate = wxPyBeginAllowThreads();
fa47d7a7 26353 (arg1)->SetOwnFont((wxFont const &)*arg2);
d55e5bfc
RD
26354
26355 wxPyEndAllowThreads(__tstate);
26356 if (PyErr_Occurred()) SWIG_fail;
26357 }
26358 Py_INCREF(Py_None); resultobj = Py_None;
26359 return resultobj;
26360 fail:
26361 return NULL;
26362}
26363
26364
26365static PyObject *_wrap_Window_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
26366 PyObject *resultobj;
26367 wxWindow *arg1 = (wxWindow *) 0 ;
a001823c 26368 wxFont result;
d55e5bfc
RD
26369 PyObject * obj0 = 0 ;
26370 char *kwnames[] = {
26371 (char *) "self", NULL
26372 };
26373
26374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetFont",kwnames,&obj0)) goto fail;
26375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26377 {
26378 PyThreadState* __tstate = wxPyBeginAllowThreads();
a001823c 26379 result = (arg1)->GetFont();
d55e5bfc
RD
26380
26381 wxPyEndAllowThreads(__tstate);
26382 if (PyErr_Occurred()) SWIG_fail;
26383 }
26384 {
a001823c
RD
26385 wxFont * resultptr;
26386 resultptr = new wxFont((wxFont &) result);
26387 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
d55e5bfc
RD
26388 }
26389 return resultobj;
26390 fail:
26391 return NULL;
26392}
26393
26394
26395static PyObject *_wrap_Window_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) {
26396 PyObject *resultobj;
26397 wxWindow *arg1 = (wxWindow *) 0 ;
26398 wxCaret *arg2 = (wxCaret *) 0 ;
26399 PyObject * obj0 = 0 ;
26400 PyObject * obj1 = 0 ;
26401 char *kwnames[] = {
26402 (char *) "self",(char *) "caret", NULL
26403 };
26404
26405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",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_wxCaret,
26409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26410 {
26411 PyThreadState* __tstate = wxPyBeginAllowThreads();
26412 (arg1)->SetCaret(arg2);
26413
26414 wxPyEndAllowThreads(__tstate);
26415 if (PyErr_Occurred()) SWIG_fail;
26416 }
26417 Py_INCREF(Py_None); resultobj = Py_None;
26418 return resultobj;
26419 fail:
26420 return NULL;
26421}
26422
26423
26424static PyObject *_wrap_Window_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) {
26425 PyObject *resultobj;
26426 wxWindow *arg1 = (wxWindow *) 0 ;
26427 wxCaret *result;
26428 PyObject * obj0 = 0 ;
26429 char *kwnames[] = {
26430 (char *) "self", NULL
26431 };
26432
26433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCaret",kwnames,&obj0)) goto fail;
26434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26436 {
26437 PyThreadState* __tstate = wxPyBeginAllowThreads();
26438 result = (wxCaret *)((wxWindow const *)arg1)->GetCaret();
26439
26440 wxPyEndAllowThreads(__tstate);
26441 if (PyErr_Occurred()) SWIG_fail;
26442 }
26443 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 0);
26444 return resultobj;
26445 fail:
26446 return NULL;
26447}
26448
26449
26450static PyObject *_wrap_Window_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
26451 PyObject *resultobj;
26452 wxWindow *arg1 = (wxWindow *) 0 ;
26453 int result;
26454 PyObject * obj0 = 0 ;
26455 char *kwnames[] = {
26456 (char *) "self", NULL
26457 };
26458
26459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharHeight",kwnames,&obj0)) goto fail;
26460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26462 {
26463 PyThreadState* __tstate = wxPyBeginAllowThreads();
26464 result = (int)((wxWindow const *)arg1)->GetCharHeight();
26465
26466 wxPyEndAllowThreads(__tstate);
26467 if (PyErr_Occurred()) SWIG_fail;
26468 }
26469 resultobj = SWIG_FromInt((int)result);
26470 return resultobj;
26471 fail:
26472 return NULL;
26473}
26474
26475
26476static PyObject *_wrap_Window_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
26477 PyObject *resultobj;
26478 wxWindow *arg1 = (wxWindow *) 0 ;
26479 int result;
26480 PyObject * obj0 = 0 ;
26481 char *kwnames[] = {
26482 (char *) "self", NULL
26483 };
26484
26485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetCharWidth",kwnames,&obj0)) goto fail;
26486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26488 {
26489 PyThreadState* __tstate = wxPyBeginAllowThreads();
26490 result = (int)((wxWindow const *)arg1)->GetCharWidth();
26491
26492 wxPyEndAllowThreads(__tstate);
26493 if (PyErr_Occurred()) SWIG_fail;
26494 }
26495 resultobj = SWIG_FromInt((int)result);
26496 return resultobj;
26497 fail:
26498 return NULL;
26499}
26500
26501
26502static PyObject *_wrap_Window_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
26503 PyObject *resultobj;
26504 wxWindow *arg1 = (wxWindow *) 0 ;
26505 wxString *arg2 = 0 ;
26506 int *arg3 = (int *) 0 ;
26507 int *arg4 = (int *) 0 ;
26508 bool temp2 = False ;
26509 int temp3 ;
26510 int temp4 ;
26511 PyObject * obj0 = 0 ;
26512 PyObject * obj1 = 0 ;
26513 char *kwnames[] = {
26514 (char *) "self",(char *) "string", NULL
26515 };
26516
26517 arg3 = &temp3;
26518 arg4 = &temp4;
26519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
26520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26522 {
26523 arg2 = wxString_in_helper(obj1);
26524 if (arg2 == NULL) SWIG_fail;
26525 temp2 = True;
26526 }
26527 {
26528 PyThreadState* __tstate = wxPyBeginAllowThreads();
26529 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
26530
26531 wxPyEndAllowThreads(__tstate);
26532 if (PyErr_Occurred()) SWIG_fail;
26533 }
26534 Py_INCREF(Py_None); resultobj = Py_None;
26535 {
26536 PyObject *o = PyInt_FromLong((long) (*arg3));
26537 resultobj = t_output_helper(resultobj,o);
26538 }
26539 {
26540 PyObject *o = PyInt_FromLong((long) (*arg4));
26541 resultobj = t_output_helper(resultobj,o);
26542 }
26543 {
26544 if (temp2)
26545 delete arg2;
26546 }
26547 return resultobj;
26548 fail:
26549 {
26550 if (temp2)
26551 delete arg2;
26552 }
26553 return NULL;
26554}
26555
26556
26557static PyObject *_wrap_Window_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
26558 PyObject *resultobj;
26559 wxWindow *arg1 = (wxWindow *) 0 ;
26560 wxString *arg2 = 0 ;
26561 int *arg3 = (int *) 0 ;
26562 int *arg4 = (int *) 0 ;
26563 int *arg5 = (int *) 0 ;
26564 int *arg6 = (int *) 0 ;
26565 wxFont *arg7 = (wxFont *) NULL ;
26566 bool temp2 = False ;
26567 int temp3 ;
26568 int temp4 ;
26569 int temp5 ;
26570 int temp6 ;
26571 PyObject * obj0 = 0 ;
26572 PyObject * obj1 = 0 ;
26573 PyObject * obj2 = 0 ;
26574 char *kwnames[] = {
26575 (char *) "self",(char *) "string",(char *) "font", NULL
26576 };
26577
26578 arg3 = &temp3;
26579 arg4 = &temp4;
26580 arg5 = &temp5;
26581 arg6 = &temp6;
26582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
26583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26585 {
26586 arg2 = wxString_in_helper(obj1);
26587 if (arg2 == NULL) SWIG_fail;
26588 temp2 = True;
26589 }
26590 if (obj2) {
26591 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
26592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26593 }
26594 {
26595 PyThreadState* __tstate = wxPyBeginAllowThreads();
26596 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7);
26597
26598 wxPyEndAllowThreads(__tstate);
26599 if (PyErr_Occurred()) SWIG_fail;
26600 }
26601 Py_INCREF(Py_None); resultobj = Py_None;
26602 {
26603 PyObject *o = PyInt_FromLong((long) (*arg3));
26604 resultobj = t_output_helper(resultobj,o);
26605 }
26606 {
26607 PyObject *o = PyInt_FromLong((long) (*arg4));
26608 resultobj = t_output_helper(resultobj,o);
26609 }
26610 {
26611 PyObject *o = PyInt_FromLong((long) (*arg5));
26612 resultobj = t_output_helper(resultobj,o);
26613 }
26614 {
26615 PyObject *o = PyInt_FromLong((long) (*arg6));
26616 resultobj = t_output_helper(resultobj,o);
26617 }
26618 {
26619 if (temp2)
26620 delete arg2;
26621 }
26622 return resultobj;
26623 fail:
26624 {
26625 if (temp2)
26626 delete arg2;
26627 }
26628 return NULL;
26629}
26630
26631
26632static PyObject *_wrap_Window_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) {
26633 PyObject *resultobj;
26634 wxWindow *arg1 = (wxWindow *) 0 ;
26635 int *arg2 = (int *) 0 ;
26636 int *arg3 = (int *) 0 ;
26637 int temp2 ;
26638 int temp3 ;
26639 PyObject * obj0 = 0 ;
26640 PyObject * obj1 = 0 ;
26641 PyObject * obj2 = 0 ;
26642 char *kwnames[] = {
26643 (char *) "self",(char *) "x",(char *) "y", NULL
26644 };
26645
26646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
26647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26649 {
26650 temp2 = PyInt_AsLong(obj1);
26651 if (PyErr_Occurred()) SWIG_fail;
26652 arg2 = &temp2;
26653 }
26654 {
26655 temp3 = PyInt_AsLong(obj2);
26656 if (PyErr_Occurred()) SWIG_fail;
26657 arg3 = &temp3;
26658 }
26659 {
26660 PyThreadState* __tstate = wxPyBeginAllowThreads();
26661 ((wxWindow const *)arg1)->ClientToScreen(arg2,arg3);
26662
26663 wxPyEndAllowThreads(__tstate);
26664 if (PyErr_Occurred()) SWIG_fail;
26665 }
26666 Py_INCREF(Py_None); resultobj = Py_None;
26667 {
26668 PyObject *o = PyInt_FromLong((long) (*arg2));
26669 resultobj = t_output_helper(resultobj,o);
26670 }
26671 {
26672 PyObject *o = PyInt_FromLong((long) (*arg3));
26673 resultobj = t_output_helper(resultobj,o);
26674 }
26675 return resultobj;
26676 fail:
26677 return NULL;
26678}
26679
26680
26681static PyObject *_wrap_Window_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) {
26682 PyObject *resultobj;
26683 wxWindow *arg1 = (wxWindow *) 0 ;
26684 int *arg2 = (int *) 0 ;
26685 int *arg3 = (int *) 0 ;
26686 int temp2 ;
26687 int temp3 ;
26688 PyObject * obj0 = 0 ;
26689 PyObject * obj1 = 0 ;
26690 PyObject * obj2 = 0 ;
26691 char *kwnames[] = {
26692 (char *) "self",(char *) "x",(char *) "y", NULL
26693 };
26694
26695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
26696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26698 {
26699 temp2 = PyInt_AsLong(obj1);
26700 if (PyErr_Occurred()) SWIG_fail;
26701 arg2 = &temp2;
26702 }
26703 {
26704 temp3 = PyInt_AsLong(obj2);
26705 if (PyErr_Occurred()) SWIG_fail;
26706 arg3 = &temp3;
26707 }
26708 {
26709 PyThreadState* __tstate = wxPyBeginAllowThreads();
26710 ((wxWindow const *)arg1)->ScreenToClient(arg2,arg3);
26711
26712 wxPyEndAllowThreads(__tstate);
26713 if (PyErr_Occurred()) SWIG_fail;
26714 }
26715 Py_INCREF(Py_None); resultobj = Py_None;
26716 {
26717 PyObject *o = PyInt_FromLong((long) (*arg2));
26718 resultobj = t_output_helper(resultobj,o);
26719 }
26720 {
26721 PyObject *o = PyInt_FromLong((long) (*arg3));
26722 resultobj = t_output_helper(resultobj,o);
26723 }
26724 return resultobj;
26725 fail:
26726 return NULL;
26727}
26728
26729
26730static PyObject *_wrap_Window_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) {
26731 PyObject *resultobj;
26732 wxWindow *arg1 = (wxWindow *) 0 ;
26733 wxPoint *arg2 = 0 ;
26734 wxPoint result;
26735 wxPoint temp2 ;
26736 PyObject * obj0 = 0 ;
26737 PyObject * obj1 = 0 ;
26738 char *kwnames[] = {
26739 (char *) "self",(char *) "pt", NULL
26740 };
26741
26742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) goto fail;
26743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26745 {
26746 arg2 = &temp2;
26747 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26748 }
26749 {
26750 PyThreadState* __tstate = wxPyBeginAllowThreads();
26751 result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2);
26752
26753 wxPyEndAllowThreads(__tstate);
26754 if (PyErr_Occurred()) SWIG_fail;
26755 }
26756 {
26757 wxPoint * resultptr;
26758 resultptr = new wxPoint((wxPoint &) result);
26759 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
26760 }
26761 return resultobj;
26762 fail:
26763 return NULL;
26764}
26765
26766
26767static PyObject *_wrap_Window_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) {
26768 PyObject *resultobj;
26769 wxWindow *arg1 = (wxWindow *) 0 ;
26770 wxPoint *arg2 = 0 ;
26771 wxPoint result;
26772 wxPoint temp2 ;
26773 PyObject * obj0 = 0 ;
26774 PyObject * obj1 = 0 ;
26775 char *kwnames[] = {
26776 (char *) "self",(char *) "pt", NULL
26777 };
26778
26779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) goto fail;
26780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26782 {
26783 arg2 = &temp2;
26784 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26785 }
26786 {
26787 PyThreadState* __tstate = wxPyBeginAllowThreads();
26788 result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2);
26789
26790 wxPyEndAllowThreads(__tstate);
26791 if (PyErr_Occurred()) SWIG_fail;
26792 }
26793 {
26794 wxPoint * resultptr;
26795 resultptr = new wxPoint((wxPoint &) result);
26796 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
26797 }
26798 return resultobj;
26799 fail:
26800 return NULL;
26801}
26802
26803
26804static PyObject *_wrap_Window_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) {
26805 PyObject *resultobj;
26806 wxWindow *arg1 = (wxWindow *) 0 ;
26807 int arg2 ;
26808 int arg3 ;
26809 int result;
26810 PyObject * obj0 = 0 ;
26811 PyObject * obj1 = 0 ;
26812 PyObject * obj2 = 0 ;
26813 char *kwnames[] = {
26814 (char *) "self",(char *) "x",(char *) "y", NULL
26815 };
26816
26817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
26818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26820 arg2 = (int) SWIG_AsInt(obj1);
26821 if (PyErr_Occurred()) SWIG_fail;
26822 arg3 = (int) SWIG_AsInt(obj2);
26823 if (PyErr_Occurred()) SWIG_fail;
26824 {
26825 PyThreadState* __tstate = wxPyBeginAllowThreads();
26826 result = (int)((wxWindow const *)arg1)->HitTest(arg2,arg3);
26827
26828 wxPyEndAllowThreads(__tstate);
26829 if (PyErr_Occurred()) SWIG_fail;
26830 }
26831 resultobj = SWIG_FromInt((int)result);
26832 return resultobj;
26833 fail:
26834 return NULL;
26835}
26836
26837
26838static PyObject *_wrap_Window_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) {
26839 PyObject *resultobj;
26840 wxWindow *arg1 = (wxWindow *) 0 ;
26841 wxPoint *arg2 = 0 ;
26842 int result;
26843 wxPoint temp2 ;
26844 PyObject * obj0 = 0 ;
26845 PyObject * obj1 = 0 ;
26846 char *kwnames[] = {
26847 (char *) "self",(char *) "pt", NULL
26848 };
26849
26850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) goto fail;
26851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26853 {
26854 arg2 = &temp2;
26855 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26856 }
26857 {
26858 PyThreadState* __tstate = wxPyBeginAllowThreads();
26859 result = (int)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2);
26860
26861 wxPyEndAllowThreads(__tstate);
26862 if (PyErr_Occurred()) SWIG_fail;
26863 }
26864 resultobj = SWIG_FromInt((int)result);
26865 return resultobj;
26866 fail:
26867 return NULL;
26868}
26869
26870
26871static PyObject *_wrap_Window_GetBorder__SWIG_0(PyObject *self, PyObject *args) {
26872 PyObject *resultobj;
26873 wxWindow *arg1 = (wxWindow *) 0 ;
26874 long arg2 ;
26875 int result;
26876 PyObject * obj0 = 0 ;
26877 PyObject * obj1 = 0 ;
26878
26879 if(!PyArg_ParseTuple(args,(char *)"OO:Window_GetBorder",&obj0,&obj1)) goto fail;
26880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26882 arg2 = (long) SWIG_AsLong(obj1);
26883 if (PyErr_Occurred()) SWIG_fail;
26884 {
26885 PyThreadState* __tstate = wxPyBeginAllowThreads();
26886 result = (int)((wxWindow const *)arg1)->GetBorder(arg2);
26887
26888 wxPyEndAllowThreads(__tstate);
26889 if (PyErr_Occurred()) SWIG_fail;
26890 }
26891 resultobj = SWIG_FromInt((int)result);
26892 return resultobj;
26893 fail:
26894 return NULL;
26895}
26896
26897
26898static PyObject *_wrap_Window_GetBorder__SWIG_1(PyObject *self, PyObject *args) {
26899 PyObject *resultobj;
26900 wxWindow *arg1 = (wxWindow *) 0 ;
26901 int result;
26902 PyObject * obj0 = 0 ;
26903
26904 if(!PyArg_ParseTuple(args,(char *)"O:Window_GetBorder",&obj0)) goto fail;
26905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26907 {
26908 PyThreadState* __tstate = wxPyBeginAllowThreads();
26909 result = (int)((wxWindow const *)arg1)->GetBorder();
26910
26911 wxPyEndAllowThreads(__tstate);
26912 if (PyErr_Occurred()) SWIG_fail;
26913 }
26914 resultobj = SWIG_FromInt((int)result);
26915 return resultobj;
26916 fail:
26917 return NULL;
26918}
26919
26920
26921static PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args) {
26922 int argc;
26923 PyObject *argv[3];
26924 int ii;
26925
26926 argc = PyObject_Length(args);
26927 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
26928 argv[ii] = PyTuple_GetItem(args,ii);
26929 }
26930 if (argc == 1) {
26931 int _v;
26932 {
26933 void *ptr;
26934 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
26935 _v = 0;
26936 PyErr_Clear();
26937 } else {
26938 _v = 1;
26939 }
26940 }
26941 if (_v) {
26942 return _wrap_Window_GetBorder__SWIG_1(self,args);
26943 }
26944 }
26945 if (argc == 2) {
26946 int _v;
26947 {
26948 void *ptr;
26949 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
26950 _v = 0;
26951 PyErr_Clear();
26952 } else {
26953 _v = 1;
26954 }
26955 }
26956 if (_v) {
26957 _v = SWIG_CheckLong(argv[1]);
26958 if (_v) {
26959 return _wrap_Window_GetBorder__SWIG_0(self,args);
26960 }
26961 }
26962 }
26963
26964 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Window_GetBorder'");
26965 return NULL;
26966}
26967
26968
26969static PyObject *_wrap_Window_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) {
26970 PyObject *resultobj;
26971 wxWindow *arg1 = (wxWindow *) 0 ;
26972 long arg2 = (long) wxUPDATE_UI_NONE ;
26973 PyObject * obj0 = 0 ;
26974 PyObject * obj1 = 0 ;
26975 char *kwnames[] = {
26976 (char *) "self",(char *) "flags", NULL
26977 };
26978
26979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_UpdateWindowUI",kwnames,&obj0,&obj1)) goto fail;
26980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
26981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26982 if (obj1) {
26983 arg2 = (long) SWIG_AsLong(obj1);
26984 if (PyErr_Occurred()) SWIG_fail;
26985 }
26986 {
26987 PyThreadState* __tstate = wxPyBeginAllowThreads();
26988 (arg1)->UpdateWindowUI(arg2);
26989
26990 wxPyEndAllowThreads(__tstate);
26991 if (PyErr_Occurred()) SWIG_fail;
26992 }
26993 Py_INCREF(Py_None); resultobj = Py_None;
26994 return resultobj;
26995 fail:
26996 return NULL;
26997}
26998
26999
27000static PyObject *_wrap_Window_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) {
27001 PyObject *resultobj;
27002 wxWindow *arg1 = (wxWindow *) 0 ;
27003 wxMenu *arg2 = (wxMenu *) 0 ;
7a0b95b0
RD
27004 int arg3 = (int) -1 ;
27005 int arg4 = (int) -1 ;
d55e5bfc
RD
27006 bool result;
27007 PyObject * obj0 = 0 ;
27008 PyObject * obj1 = 0 ;
27009 PyObject * obj2 = 0 ;
27010 PyObject * obj3 = 0 ;
27011 char *kwnames[] = {
27012 (char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL
27013 };
27014
7a0b95b0 27015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Window_PopupMenuXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
27016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27018 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
27019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7a0b95b0
RD
27020 if (obj2) {
27021 arg3 = (int) SWIG_AsInt(obj2);
27022 if (PyErr_Occurred()) SWIG_fail;
27023 }
27024 if (obj3) {
27025 arg4 = (int) SWIG_AsInt(obj3);
27026 if (PyErr_Occurred()) SWIG_fail;
27027 }
d55e5bfc
RD
27028 {
27029 PyThreadState* __tstate = wxPyBeginAllowThreads();
27030 result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4);
27031
27032 wxPyEndAllowThreads(__tstate);
27033 if (PyErr_Occurred()) SWIG_fail;
27034 }
27035 {
27036 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27037 }
27038 return resultobj;
27039 fail:
27040 return NULL;
27041}
27042
27043
27044static PyObject *_wrap_Window_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
27045 PyObject *resultobj;
27046 wxWindow *arg1 = (wxWindow *) 0 ;
27047 wxMenu *arg2 = (wxMenu *) 0 ;
7a0b95b0
RD
27048 wxPoint const &arg3_defvalue = wxDefaultPosition ;
27049 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
d55e5bfc
RD
27050 bool result;
27051 wxPoint temp3 ;
27052 PyObject * obj0 = 0 ;
27053 PyObject * obj1 = 0 ;
27054 PyObject * obj2 = 0 ;
27055 char *kwnames[] = {
27056 (char *) "self",(char *) "menu",(char *) "pos", NULL
27057 };
27058
7a0b95b0 27059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
27060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27062 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
27063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7a0b95b0
RD
27064 if (obj2) {
27065 {
27066 arg3 = &temp3;
27067 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
27068 }
d55e5bfc
RD
27069 }
27070 {
27071 PyThreadState* __tstate = wxPyBeginAllowThreads();
27072 result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3);
27073
27074 wxPyEndAllowThreads(__tstate);
27075 if (PyErr_Occurred()) SWIG_fail;
27076 }
27077 {
27078 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27079 }
27080 return resultobj;
27081 fail:
27082 return NULL;
27083}
27084
27085
27086static PyObject *_wrap_Window_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
27087 PyObject *resultobj;
27088 wxWindow *arg1 = (wxWindow *) 0 ;
27089 long result;
27090 PyObject * obj0 = 0 ;
27091 char *kwnames[] = {
27092 (char *) "self", NULL
27093 };
27094
27095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHandle",kwnames,&obj0)) goto fail;
27096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27098 {
27099 PyThreadState* __tstate = wxPyBeginAllowThreads();
27100 result = (long)wxWindow_GetHandle(arg1);
27101
27102 wxPyEndAllowThreads(__tstate);
27103 if (PyErr_Occurred()) SWIG_fail;
27104 }
27105 resultobj = SWIG_FromLong((long)result);
27106 return resultobj;
27107 fail:
27108 return NULL;
27109}
27110
27111
27112static PyObject *_wrap_Window_OnPaint(PyObject *self, PyObject *args, PyObject *kwargs) {
27113 PyObject *resultobj;
27114 wxWindow *arg1 = (wxWindow *) 0 ;
27115 wxPaintEvent *arg2 = 0 ;
27116 PyObject * obj0 = 0 ;
27117 PyObject * obj1 = 0 ;
27118 char *kwnames[] = {
27119 (char *) "self",(char *) "event", NULL
27120 };
27121
27122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_OnPaint",kwnames,&obj0,&obj1)) goto fail;
27123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27125 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPaintEvent,
27126 SWIG_POINTER_EXCEPTION | 0)) == -1)
27127 SWIG_fail;
27128 if (arg2 == NULL) {
27129 PyErr_SetString(PyExc_TypeError,"null reference");
27130 SWIG_fail;
27131 }
27132 {
27133 PyThreadState* __tstate = wxPyBeginAllowThreads();
27134 (arg1)->OnPaint(*arg2);
27135
27136 wxPyEndAllowThreads(__tstate);
27137 if (PyErr_Occurred()) SWIG_fail;
27138 }
27139 Py_INCREF(Py_None); resultobj = Py_None;
27140 return resultobj;
27141 fail:
27142 return NULL;
27143}
27144
27145
27146static PyObject *_wrap_Window_HasScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) {
27147 PyObject *resultobj;
27148 wxWindow *arg1 = (wxWindow *) 0 ;
27149 int arg2 ;
27150 bool result;
27151 PyObject * obj0 = 0 ;
27152 PyObject * obj1 = 0 ;
27153 char *kwnames[] = {
27154 (char *) "self",(char *) "orient", NULL
27155 };
27156
27157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasScrollbar",kwnames,&obj0,&obj1)) goto fail;
27158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27160 arg2 = (int) SWIG_AsInt(obj1);
27161 if (PyErr_Occurred()) SWIG_fail;
27162 {
27163 PyThreadState* __tstate = wxPyBeginAllowThreads();
27164 result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2);
27165
27166 wxPyEndAllowThreads(__tstate);
27167 if (PyErr_Occurred()) SWIG_fail;
27168 }
27169 {
27170 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27171 }
27172 return resultobj;
27173 fail:
27174 return NULL;
27175}
27176
27177
27178static PyObject *_wrap_Window_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) {
27179 PyObject *resultobj;
27180 wxWindow *arg1 = (wxWindow *) 0 ;
27181 int arg2 ;
27182 int arg3 ;
27183 int arg4 ;
27184 int arg5 ;
27185 bool arg6 = (bool) True ;
27186 PyObject * obj0 = 0 ;
27187 PyObject * obj1 = 0 ;
27188 PyObject * obj2 = 0 ;
27189 PyObject * obj3 = 0 ;
27190 PyObject * obj4 = 0 ;
27191 PyObject * obj5 = 0 ;
27192 char *kwnames[] = {
79fccf9d 27193 (char *) "self",(char *) "orientation",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "refresh", NULL
d55e5bfc
RD
27194 };
27195
27196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
27197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27199 arg2 = (int) SWIG_AsInt(obj1);
27200 if (PyErr_Occurred()) SWIG_fail;
27201 arg3 = (int) SWIG_AsInt(obj2);
27202 if (PyErr_Occurred()) SWIG_fail;
27203 arg4 = (int) SWIG_AsInt(obj3);
27204 if (PyErr_Occurred()) SWIG_fail;
27205 arg5 = (int) SWIG_AsInt(obj4);
27206 if (PyErr_Occurred()) SWIG_fail;
27207 if (obj5) {
27208 arg6 = (bool) SWIG_AsBool(obj5);
27209 if (PyErr_Occurred()) SWIG_fail;
27210 }
27211 {
27212 PyThreadState* __tstate = wxPyBeginAllowThreads();
27213 (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6);
27214
27215 wxPyEndAllowThreads(__tstate);
27216 if (PyErr_Occurred()) SWIG_fail;
27217 }
27218 Py_INCREF(Py_None); resultobj = Py_None;
27219 return resultobj;
27220 fail:
27221 return NULL;
27222}
27223
27224
27225static PyObject *_wrap_Window_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) {
27226 PyObject *resultobj;
27227 wxWindow *arg1 = (wxWindow *) 0 ;
27228 int arg2 ;
27229 int arg3 ;
27230 bool arg4 = (bool) True ;
27231 PyObject * obj0 = 0 ;
27232 PyObject * obj1 = 0 ;
27233 PyObject * obj2 = 0 ;
27234 PyObject * obj3 = 0 ;
27235 char *kwnames[] = {
27236 (char *) "self",(char *) "orientation",(char *) "pos",(char *) "refresh", NULL
27237 };
27238
27239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_SetScrollPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27242 arg2 = (int) SWIG_AsInt(obj1);
27243 if (PyErr_Occurred()) SWIG_fail;
27244 arg3 = (int) SWIG_AsInt(obj2);
27245 if (PyErr_Occurred()) SWIG_fail;
27246 if (obj3) {
27247 arg4 = (bool) SWIG_AsBool(obj3);
27248 if (PyErr_Occurred()) SWIG_fail;
27249 }
27250 {
27251 PyThreadState* __tstate = wxPyBeginAllowThreads();
27252 (arg1)->SetScrollPos(arg2,arg3,arg4);
27253
27254 wxPyEndAllowThreads(__tstate);
27255 if (PyErr_Occurred()) SWIG_fail;
27256 }
27257 Py_INCREF(Py_None); resultobj = Py_None;
27258 return resultobj;
27259 fail:
27260 return NULL;
27261}
27262
27263
27264static PyObject *_wrap_Window_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) {
27265 PyObject *resultobj;
27266 wxWindow *arg1 = (wxWindow *) 0 ;
27267 int arg2 ;
27268 int result;
27269 PyObject * obj0 = 0 ;
27270 PyObject * obj1 = 0 ;
27271 char *kwnames[] = {
27272 (char *) "self",(char *) "orientation", NULL
27273 };
27274
27275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollPos",kwnames,&obj0,&obj1)) goto fail;
27276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27278 arg2 = (int) SWIG_AsInt(obj1);
27279 if (PyErr_Occurred()) SWIG_fail;
27280 {
27281 PyThreadState* __tstate = wxPyBeginAllowThreads();
27282 result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2);
27283
27284 wxPyEndAllowThreads(__tstate);
27285 if (PyErr_Occurred()) SWIG_fail;
27286 }
27287 resultobj = SWIG_FromInt((int)result);
27288 return resultobj;
27289 fail:
27290 return NULL;
27291}
27292
27293
27294static PyObject *_wrap_Window_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) {
27295 PyObject *resultobj;
27296 wxWindow *arg1 = (wxWindow *) 0 ;
27297 int arg2 ;
27298 int result;
27299 PyObject * obj0 = 0 ;
27300 PyObject * obj1 = 0 ;
27301 char *kwnames[] = {
27302 (char *) "self",(char *) "orientation", NULL
27303 };
27304
27305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollThumb",kwnames,&obj0,&obj1)) goto fail;
27306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27308 arg2 = (int) SWIG_AsInt(obj1);
27309 if (PyErr_Occurred()) SWIG_fail;
27310 {
27311 PyThreadState* __tstate = wxPyBeginAllowThreads();
27312 result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2);
27313
27314 wxPyEndAllowThreads(__tstate);
27315 if (PyErr_Occurred()) SWIG_fail;
27316 }
27317 resultobj = SWIG_FromInt((int)result);
27318 return resultobj;
27319 fail:
27320 return NULL;
27321}
27322
27323
27324static PyObject *_wrap_Window_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) {
27325 PyObject *resultobj;
27326 wxWindow *arg1 = (wxWindow *) 0 ;
27327 int arg2 ;
27328 int result;
27329 PyObject * obj0 = 0 ;
27330 PyObject * obj1 = 0 ;
27331 char *kwnames[] = {
27332 (char *) "self",(char *) "orientation", NULL
27333 };
27334
27335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollRange",kwnames,&obj0,&obj1)) goto fail;
27336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27338 arg2 = (int) SWIG_AsInt(obj1);
27339 if (PyErr_Occurred()) SWIG_fail;
27340 {
27341 PyThreadState* __tstate = wxPyBeginAllowThreads();
27342 result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2);
27343
27344 wxPyEndAllowThreads(__tstate);
27345 if (PyErr_Occurred()) SWIG_fail;
27346 }
27347 resultobj = SWIG_FromInt((int)result);
27348 return resultobj;
27349 fail:
27350 return NULL;
27351}
27352
27353
27354static PyObject *_wrap_Window_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
27355 PyObject *resultobj;
27356 wxWindow *arg1 = (wxWindow *) 0 ;
27357 int arg2 ;
27358 int arg3 ;
27359 wxRect *arg4 = (wxRect *) NULL ;
27360 PyObject * obj0 = 0 ;
27361 PyObject * obj1 = 0 ;
27362 PyObject * obj2 = 0 ;
27363 PyObject * obj3 = 0 ;
27364 char *kwnames[] = {
27365 (char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL
27366 };
27367
27368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_ScrollWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27371 arg2 = (int) SWIG_AsInt(obj1);
27372 if (PyErr_Occurred()) SWIG_fail;
27373 arg3 = (int) SWIG_AsInt(obj2);
27374 if (PyErr_Occurred()) SWIG_fail;
27375 if (obj3) {
27376 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxRect,
27377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27378 }
27379 {
27380 PyThreadState* __tstate = wxPyBeginAllowThreads();
27381 (arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4);
27382
27383 wxPyEndAllowThreads(__tstate);
27384 if (PyErr_Occurred()) SWIG_fail;
27385 }
27386 Py_INCREF(Py_None); resultobj = Py_None;
27387 return resultobj;
27388 fail:
27389 return NULL;
27390}
27391
27392
27393static PyObject *_wrap_Window_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) {
27394 PyObject *resultobj;
27395 wxWindow *arg1 = (wxWindow *) 0 ;
27396 int arg2 ;
27397 bool result;
27398 PyObject * obj0 = 0 ;
27399 PyObject * obj1 = 0 ;
27400 char *kwnames[] = {
27401 (char *) "self",(char *) "lines", NULL
27402 };
27403
27404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollLines",kwnames,&obj0,&obj1)) goto fail;
27405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27407 arg2 = (int) SWIG_AsInt(obj1);
27408 if (PyErr_Occurred()) SWIG_fail;
27409 {
27410 PyThreadState* __tstate = wxPyBeginAllowThreads();
27411 result = (bool)(arg1)->ScrollLines(arg2);
27412
27413 wxPyEndAllowThreads(__tstate);
27414 if (PyErr_Occurred()) SWIG_fail;
27415 }
27416 {
27417 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27418 }
27419 return resultobj;
27420 fail:
27421 return NULL;
27422}
27423
27424
27425static PyObject *_wrap_Window_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) {
27426 PyObject *resultobj;
27427 wxWindow *arg1 = (wxWindow *) 0 ;
27428 int arg2 ;
27429 bool result;
27430 PyObject * obj0 = 0 ;
27431 PyObject * obj1 = 0 ;
27432 char *kwnames[] = {
27433 (char *) "self",(char *) "pages", NULL
27434 };
27435
27436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollPages",kwnames,&obj0,&obj1)) goto fail;
27437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27439 arg2 = (int) SWIG_AsInt(obj1);
27440 if (PyErr_Occurred()) SWIG_fail;
27441 {
27442 PyThreadState* __tstate = wxPyBeginAllowThreads();
27443 result = (bool)(arg1)->ScrollPages(arg2);
27444
27445 wxPyEndAllowThreads(__tstate);
27446 if (PyErr_Occurred()) SWIG_fail;
27447 }
27448 {
27449 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27450 }
27451 return resultobj;
27452 fail:
27453 return NULL;
27454}
27455
27456
27457static PyObject *_wrap_Window_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) {
27458 PyObject *resultobj;
27459 wxWindow *arg1 = (wxWindow *) 0 ;
27460 bool result;
27461 PyObject * obj0 = 0 ;
27462 char *kwnames[] = {
27463 (char *) "self", NULL
27464 };
27465
27466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineUp",kwnames,&obj0)) goto fail;
27467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27469 {
27470 PyThreadState* __tstate = wxPyBeginAllowThreads();
27471 result = (bool)(arg1)->LineUp();
27472
27473 wxPyEndAllowThreads(__tstate);
27474 if (PyErr_Occurred()) SWIG_fail;
27475 }
27476 {
27477 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27478 }
27479 return resultobj;
27480 fail:
27481 return NULL;
27482}
27483
27484
27485static PyObject *_wrap_Window_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) {
27486 PyObject *resultobj;
27487 wxWindow *arg1 = (wxWindow *) 0 ;
27488 bool result;
27489 PyObject * obj0 = 0 ;
27490 char *kwnames[] = {
27491 (char *) "self", NULL
27492 };
27493
27494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_LineDown",kwnames,&obj0)) goto fail;
27495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27497 {
27498 PyThreadState* __tstate = wxPyBeginAllowThreads();
27499 result = (bool)(arg1)->LineDown();
27500
27501 wxPyEndAllowThreads(__tstate);
27502 if (PyErr_Occurred()) SWIG_fail;
27503 }
27504 {
27505 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27506 }
27507 return resultobj;
27508 fail:
27509 return NULL;
27510}
27511
27512
27513static PyObject *_wrap_Window_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) {
27514 PyObject *resultobj;
27515 wxWindow *arg1 = (wxWindow *) 0 ;
27516 bool result;
27517 PyObject * obj0 = 0 ;
27518 char *kwnames[] = {
27519 (char *) "self", NULL
27520 };
27521
27522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageUp",kwnames,&obj0)) goto fail;
27523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27525 {
27526 PyThreadState* __tstate = wxPyBeginAllowThreads();
27527 result = (bool)(arg1)->PageUp();
27528
27529 wxPyEndAllowThreads(__tstate);
27530 if (PyErr_Occurred()) SWIG_fail;
27531 }
27532 {
27533 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27534 }
27535 return resultobj;
27536 fail:
27537 return NULL;
27538}
27539
27540
27541static PyObject *_wrap_Window_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) {
27542 PyObject *resultobj;
27543 wxWindow *arg1 = (wxWindow *) 0 ;
27544 bool result;
27545 PyObject * obj0 = 0 ;
27546 char *kwnames[] = {
27547 (char *) "self", NULL
27548 };
27549
27550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PageDown",kwnames,&obj0)) goto fail;
27551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27553 {
27554 PyThreadState* __tstate = wxPyBeginAllowThreads();
27555 result = (bool)(arg1)->PageDown();
27556
27557 wxPyEndAllowThreads(__tstate);
27558 if (PyErr_Occurred()) SWIG_fail;
27559 }
27560 {
27561 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27562 }
27563 return resultobj;
27564 fail:
27565 return NULL;
27566}
27567
27568
27569static PyObject *_wrap_Window_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) {
27570 PyObject *resultobj;
27571 wxWindow *arg1 = (wxWindow *) 0 ;
27572 wxString *arg2 = 0 ;
27573 bool temp2 = False ;
27574 PyObject * obj0 = 0 ;
27575 PyObject * obj1 = 0 ;
27576 char *kwnames[] = {
27577 (char *) "self",(char *) "text", NULL
27578 };
27579
27580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) goto fail;
27581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27583 {
27584 arg2 = wxString_in_helper(obj1);
27585 if (arg2 == NULL) SWIG_fail;
27586 temp2 = True;
27587 }
27588 {
27589 PyThreadState* __tstate = wxPyBeginAllowThreads();
27590 (arg1)->SetHelpText((wxString const &)*arg2);
27591
27592 wxPyEndAllowThreads(__tstate);
27593 if (PyErr_Occurred()) SWIG_fail;
27594 }
27595 Py_INCREF(Py_None); resultobj = Py_None;
27596 {
27597 if (temp2)
27598 delete arg2;
27599 }
27600 return resultobj;
27601 fail:
27602 {
27603 if (temp2)
27604 delete arg2;
27605 }
27606 return NULL;
27607}
27608
27609
27610static PyObject *_wrap_Window_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) {
27611 PyObject *resultobj;
27612 wxWindow *arg1 = (wxWindow *) 0 ;
27613 wxString *arg2 = 0 ;
27614 bool temp2 = False ;
27615 PyObject * obj0 = 0 ;
27616 PyObject * obj1 = 0 ;
27617 char *kwnames[] = {
27618 (char *) "self",(char *) "text", NULL
27619 };
27620
27621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) goto fail;
27622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27624 {
27625 arg2 = wxString_in_helper(obj1);
27626 if (arg2 == NULL) SWIG_fail;
27627 temp2 = True;
27628 }
27629 {
27630 PyThreadState* __tstate = wxPyBeginAllowThreads();
27631 (arg1)->SetHelpTextForId((wxString const &)*arg2);
27632
27633 wxPyEndAllowThreads(__tstate);
27634 if (PyErr_Occurred()) SWIG_fail;
27635 }
27636 Py_INCREF(Py_None); resultobj = Py_None;
27637 {
27638 if (temp2)
27639 delete arg2;
27640 }
27641 return resultobj;
27642 fail:
27643 {
27644 if (temp2)
27645 delete arg2;
27646 }
27647 return NULL;
27648}
27649
27650
27651static PyObject *_wrap_Window_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) {
27652 PyObject *resultobj;
27653 wxWindow *arg1 = (wxWindow *) 0 ;
27654 wxString result;
27655 PyObject * obj0 = 0 ;
27656 char *kwnames[] = {
27657 (char *) "self", NULL
27658 };
27659
27660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetHelpText",kwnames,&obj0)) goto fail;
27661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27663 {
27664 PyThreadState* __tstate = wxPyBeginAllowThreads();
27665 result = ((wxWindow const *)arg1)->GetHelpText();
27666
27667 wxPyEndAllowThreads(__tstate);
27668 if (PyErr_Occurred()) SWIG_fail;
27669 }
27670 {
27671#if wxUSE_UNICODE
27672 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
27673#else
27674 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
27675#endif
27676 }
27677 return resultobj;
27678 fail:
27679 return NULL;
27680}
27681
27682
27683static PyObject *_wrap_Window_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) {
27684 PyObject *resultobj;
27685 wxWindow *arg1 = (wxWindow *) 0 ;
27686 wxString *arg2 = 0 ;
27687 bool temp2 = False ;
27688 PyObject * obj0 = 0 ;
27689 PyObject * obj1 = 0 ;
27690 char *kwnames[] = {
27691 (char *) "self",(char *) "tip", NULL
27692 };
27693
27694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) goto fail;
27695 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27697 {
27698 arg2 = wxString_in_helper(obj1);
27699 if (arg2 == NULL) SWIG_fail;
27700 temp2 = True;
27701 }
27702 {
27703 PyThreadState* __tstate = wxPyBeginAllowThreads();
27704 (arg1)->SetToolTip((wxString const &)*arg2);
27705
27706 wxPyEndAllowThreads(__tstate);
27707 if (PyErr_Occurred()) SWIG_fail;
27708 }
27709 Py_INCREF(Py_None); resultobj = Py_None;
27710 {
27711 if (temp2)
27712 delete arg2;
27713 }
27714 return resultobj;
27715 fail:
27716 {
27717 if (temp2)
27718 delete arg2;
27719 }
27720 return NULL;
27721}
27722
27723
27724static PyObject *_wrap_Window_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
27725 PyObject *resultobj;
27726 wxWindow *arg1 = (wxWindow *) 0 ;
27727 wxToolTip *arg2 = (wxToolTip *) 0 ;
27728 PyObject * obj0 = 0 ;
27729 PyObject * obj1 = 0 ;
27730 char *kwnames[] = {
27731 (char *) "self",(char *) "tip", NULL
27732 };
27733
27734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) goto fail;
27735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27737 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolTip,
27738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27739 {
27740 PyThreadState* __tstate = wxPyBeginAllowThreads();
27741 (arg1)->SetToolTip(arg2);
27742
27743 wxPyEndAllowThreads(__tstate);
27744 if (PyErr_Occurred()) SWIG_fail;
27745 }
27746 Py_INCREF(Py_None); resultobj = Py_None;
27747 return resultobj;
27748 fail:
27749 return NULL;
27750}
27751
27752
27753static PyObject *_wrap_Window_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
27754 PyObject *resultobj;
27755 wxWindow *arg1 = (wxWindow *) 0 ;
27756 wxToolTip *result;
27757 PyObject * obj0 = 0 ;
27758 char *kwnames[] = {
27759 (char *) "self", NULL
27760 };
27761
27762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetToolTip",kwnames,&obj0)) goto fail;
27763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27765 {
27766 PyThreadState* __tstate = wxPyBeginAllowThreads();
27767 result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip();
27768
27769 wxPyEndAllowThreads(__tstate);
27770 if (PyErr_Occurred()) SWIG_fail;
27771 }
27772 {
412d302d 27773 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
27774 }
27775 return resultobj;
27776 fail:
27777 return NULL;
27778}
27779
27780
27781static PyObject *_wrap_Window_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
27782 PyObject *resultobj;
27783 wxWindow *arg1 = (wxWindow *) 0 ;
27784 wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ;
27785 PyObject * obj0 = 0 ;
27786 PyObject * obj1 = 0 ;
27787 char *kwnames[] = {
27788 (char *) "self",(char *) "dropTarget", NULL
27789 };
27790
27791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) goto fail;
27792 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27793 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27794 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPyDropTarget,
27795 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
27796 {
27797 PyThreadState* __tstate = wxPyBeginAllowThreads();
27798 (arg1)->SetDropTarget(arg2);
27799
27800 wxPyEndAllowThreads(__tstate);
27801 if (PyErr_Occurred()) SWIG_fail;
27802 }
27803 Py_INCREF(Py_None); resultobj = Py_None;
27804 return resultobj;
27805 fail:
27806 return NULL;
27807}
27808
27809
27810static PyObject *_wrap_Window_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
27811 PyObject *resultobj;
27812 wxWindow *arg1 = (wxWindow *) 0 ;
27813 wxPyDropTarget *result;
27814 PyObject * obj0 = 0 ;
27815 char *kwnames[] = {
27816 (char *) "self", NULL
27817 };
27818
27819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetDropTarget",kwnames,&obj0)) goto fail;
27820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27822 {
27823 PyThreadState* __tstate = wxPyBeginAllowThreads();
27824 result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget();
27825
27826 wxPyEndAllowThreads(__tstate);
27827 if (PyErr_Occurred()) SWIG_fail;
27828 }
27829 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 0);
27830 return resultobj;
27831 fail:
27832 return NULL;
27833}
27834
27835
27836static PyObject *_wrap_Window_DragAcceptFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
27837 PyObject *resultobj;
27838 wxWindow *arg1 = (wxWindow *) 0 ;
27839 bool arg2 ;
27840 PyObject * obj0 = 0 ;
27841 PyObject * obj1 = 0 ;
27842 char *kwnames[] = {
27843 (char *) "self",(char *) "accept", NULL
27844 };
27845
27846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DragAcceptFiles",kwnames,&obj0,&obj1)) goto fail;
27847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27849 arg2 = (bool) SWIG_AsBool(obj1);
27850 if (PyErr_Occurred()) SWIG_fail;
27851 {
27852 PyThreadState* __tstate = wxPyBeginAllowThreads();
27853 (arg1)->DragAcceptFiles(arg2);
27854
27855 wxPyEndAllowThreads(__tstate);
27856 if (PyErr_Occurred()) SWIG_fail;
27857 }
27858 Py_INCREF(Py_None); resultobj = Py_None;
27859 return resultobj;
27860 fail:
27861 return NULL;
27862}
27863
27864
27865static PyObject *_wrap_Window_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
27866 PyObject *resultobj;
27867 wxWindow *arg1 = (wxWindow *) 0 ;
27868 wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ;
27869 PyObject * obj0 = 0 ;
27870 PyObject * obj1 = 0 ;
27871 char *kwnames[] = {
27872 (char *) "self",(char *) "constraints", NULL
27873 };
27874
27875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) goto fail;
27876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27878 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints,
27879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27880 {
27881 PyThreadState* __tstate = wxPyBeginAllowThreads();
27882 (arg1)->SetConstraints(arg2);
27883
27884 wxPyEndAllowThreads(__tstate);
27885 if (PyErr_Occurred()) SWIG_fail;
27886 }
27887 Py_INCREF(Py_None); resultobj = Py_None;
27888 return resultobj;
27889 fail:
27890 return NULL;
27891}
27892
27893
27894static PyObject *_wrap_Window_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
27895 PyObject *resultobj;
27896 wxWindow *arg1 = (wxWindow *) 0 ;
27897 wxLayoutConstraints *result;
27898 PyObject * obj0 = 0 ;
27899 char *kwnames[] = {
27900 (char *) "self", NULL
27901 };
27902
27903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetConstraints",kwnames,&obj0)) goto fail;
27904 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27905 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27906 {
27907 PyThreadState* __tstate = wxPyBeginAllowThreads();
27908 result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints();
27909
27910 wxPyEndAllowThreads(__tstate);
27911 if (PyErr_Occurred()) SWIG_fail;
27912 }
27913 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 0);
27914 return resultobj;
27915 fail:
27916 return NULL;
27917}
27918
27919
27920static PyObject *_wrap_Window_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) {
27921 PyObject *resultobj;
27922 wxWindow *arg1 = (wxWindow *) 0 ;
27923 bool arg2 ;
27924 PyObject * obj0 = 0 ;
27925 PyObject * obj1 = 0 ;
27926 char *kwnames[] = {
27927 (char *) "self",(char *) "autoLayout", NULL
27928 };
27929
27930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) goto fail;
27931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27933 arg2 = (bool) SWIG_AsBool(obj1);
27934 if (PyErr_Occurred()) SWIG_fail;
27935 {
27936 PyThreadState* __tstate = wxPyBeginAllowThreads();
27937 (arg1)->SetAutoLayout(arg2);
27938
27939 wxPyEndAllowThreads(__tstate);
27940 if (PyErr_Occurred()) SWIG_fail;
27941 }
27942 Py_INCREF(Py_None); resultobj = Py_None;
27943 return resultobj;
27944 fail:
27945 return NULL;
27946}
27947
27948
27949static PyObject *_wrap_Window_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) {
27950 PyObject *resultobj;
27951 wxWindow *arg1 = (wxWindow *) 0 ;
27952 bool result;
27953 PyObject * obj0 = 0 ;
27954 char *kwnames[] = {
27955 (char *) "self", NULL
27956 };
27957
27958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetAutoLayout",kwnames,&obj0)) goto fail;
27959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27961 {
27962 PyThreadState* __tstate = wxPyBeginAllowThreads();
27963 result = (bool)((wxWindow const *)arg1)->GetAutoLayout();
27964
27965 wxPyEndAllowThreads(__tstate);
27966 if (PyErr_Occurred()) SWIG_fail;
27967 }
27968 {
27969 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27970 }
27971 return resultobj;
27972 fail:
27973 return NULL;
27974}
27975
27976
27977static PyObject *_wrap_Window_Layout(PyObject *self, PyObject *args, PyObject *kwargs) {
27978 PyObject *resultobj;
27979 wxWindow *arg1 = (wxWindow *) 0 ;
27980 bool result;
27981 PyObject * obj0 = 0 ;
27982 char *kwnames[] = {
27983 (char *) "self", NULL
27984 };
27985
27986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_Layout",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 = (bool)(arg1)->Layout();
27992
27993 wxPyEndAllowThreads(__tstate);
27994 if (PyErr_Occurred()) SWIG_fail;
27995 }
27996 {
27997 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27998 }
27999 return resultobj;
28000 fail:
28001 return NULL;
28002}
28003
28004
28005static PyObject *_wrap_Window_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
28006 PyObject *resultobj;
28007 wxWindow *arg1 = (wxWindow *) 0 ;
28008 wxSizer *arg2 = (wxSizer *) 0 ;
28009 bool arg3 = (bool) True ;
28010 PyObject * obj0 = 0 ;
28011 PyObject * obj1 = 0 ;
28012 PyObject * obj2 = 0 ;
28013 char *kwnames[] = {
28014 (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL
28015 };
28016
28017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) goto fail;
28018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28020 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
28021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28022 if (obj2) {
28023 arg3 = (bool) SWIG_AsBool(obj2);
28024 if (PyErr_Occurred()) SWIG_fail;
28025 }
28026 {
28027 PyThreadState* __tstate = wxPyBeginAllowThreads();
28028 (arg1)->SetSizer(arg2,arg3);
28029
28030 wxPyEndAllowThreads(__tstate);
28031 if (PyErr_Occurred()) SWIG_fail;
28032 }
28033 Py_INCREF(Py_None); resultobj = Py_None;
28034 return resultobj;
28035 fail:
28036 return NULL;
28037}
28038
28039
28040static PyObject *_wrap_Window_SetSizerAndFit(PyObject *self, PyObject *args, PyObject *kwargs) {
28041 PyObject *resultobj;
28042 wxWindow *arg1 = (wxWindow *) 0 ;
28043 wxSizer *arg2 = (wxSizer *) 0 ;
28044 bool arg3 = (bool) True ;
28045 PyObject * obj0 = 0 ;
28046 PyObject * obj1 = 0 ;
28047 PyObject * obj2 = 0 ;
28048 char *kwnames[] = {
28049 (char *) "self",(char *) "sizer",(char *) "deleteOld", NULL
28050 };
28051
28052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) goto fail;
28053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28055 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
28056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28057 if (obj2) {
28058 arg3 = (bool) SWIG_AsBool(obj2);
28059 if (PyErr_Occurred()) SWIG_fail;
28060 }
28061 {
28062 PyThreadState* __tstate = wxPyBeginAllowThreads();
28063 (arg1)->SetSizerAndFit(arg2,arg3);
28064
28065 wxPyEndAllowThreads(__tstate);
28066 if (PyErr_Occurred()) SWIG_fail;
28067 }
28068 Py_INCREF(Py_None); resultobj = Py_None;
28069 return resultobj;
28070 fail:
28071 return NULL;
28072}
28073
28074
28075static PyObject *_wrap_Window_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
28076 PyObject *resultobj;
28077 wxWindow *arg1 = (wxWindow *) 0 ;
28078 wxSizer *result;
28079 PyObject * obj0 = 0 ;
28080 char *kwnames[] = {
28081 (char *) "self", NULL
28082 };
28083
28084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetSizer",kwnames,&obj0)) goto fail;
28085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28087 {
28088 PyThreadState* __tstate = wxPyBeginAllowThreads();
28089 result = (wxSizer *)((wxWindow const *)arg1)->GetSizer();
28090
28091 wxPyEndAllowThreads(__tstate);
28092 if (PyErr_Occurred()) SWIG_fail;
28093 }
28094 {
412d302d 28095 resultobj = wxPyMake_wxSizer(result, 0);
d55e5bfc
RD
28096 }
28097 return resultobj;
28098 fail:
28099 return NULL;
28100}
28101
28102
28103static PyObject *_wrap_Window_SetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
28104 PyObject *resultobj;
28105 wxWindow *arg1 = (wxWindow *) 0 ;
28106 wxSizer *arg2 = (wxSizer *) 0 ;
28107 PyObject * obj0 = 0 ;
28108 PyObject * obj1 = 0 ;
28109 char *kwnames[] = {
28110 (char *) "self",(char *) "sizer", NULL
28111 };
28112
28113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) goto fail;
28114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28116 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
28117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28118 {
28119 PyThreadState* __tstate = wxPyBeginAllowThreads();
28120 (arg1)->SetContainingSizer(arg2);
28121
28122 wxPyEndAllowThreads(__tstate);
28123 if (PyErr_Occurred()) SWIG_fail;
28124 }
28125 Py_INCREF(Py_None); resultobj = Py_None;
28126 return resultobj;
28127 fail:
28128 return NULL;
28129}
28130
28131
28132static PyObject *_wrap_Window_GetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
28133 PyObject *resultobj;
28134 wxWindow *arg1 = (wxWindow *) 0 ;
28135 wxSizer *result;
28136 PyObject * obj0 = 0 ;
28137 char *kwnames[] = {
28138 (char *) "self", NULL
28139 };
28140
28141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_GetContainingSizer",kwnames,&obj0)) goto fail;
28142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28144 {
28145 PyThreadState* __tstate = wxPyBeginAllowThreads();
28146 result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer();
28147
28148 wxPyEndAllowThreads(__tstate);
28149 if (PyErr_Occurred()) SWIG_fail;
28150 }
28151 {
412d302d 28152 resultobj = wxPyMake_wxSizer(result, 0);
d55e5bfc
RD
28153 }
28154 return resultobj;
28155 fail:
28156 return NULL;
28157}
28158
28159
28160static PyObject *_wrap_Window_InheritAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
28161 PyObject *resultobj;
28162 wxWindow *arg1 = (wxWindow *) 0 ;
28163 PyObject * obj0 = 0 ;
28164 char *kwnames[] = {
28165 (char *) "self", NULL
28166 };
28167
28168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_InheritAttributes",kwnames,&obj0)) goto fail;
28169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28171 {
28172 PyThreadState* __tstate = wxPyBeginAllowThreads();
28173 (arg1)->InheritAttributes();
28174
28175 wxPyEndAllowThreads(__tstate);
28176 if (PyErr_Occurred()) SWIG_fail;
28177 }
28178 Py_INCREF(Py_None); resultobj = Py_None;
28179 return resultobj;
28180 fail:
28181 return NULL;
28182}
28183
28184
28185static PyObject *_wrap_Window_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) {
28186 PyObject *resultobj;
28187 wxWindow *arg1 = (wxWindow *) 0 ;
28188 bool result;
28189 PyObject * obj0 = 0 ;
28190 char *kwnames[] = {
28191 (char *) "self", NULL
28192 };
28193
28194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_ShouldInheritColours",kwnames,&obj0)) goto fail;
28195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28197 {
28198 PyThreadState* __tstate = wxPyBeginAllowThreads();
28199 result = (bool)((wxWindow const *)arg1)->ShouldInheritColours();
28200
28201 wxPyEndAllowThreads(__tstate);
28202 if (PyErr_Occurred()) SWIG_fail;
28203 }
28204 {
28205 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28206 }
28207 return resultobj;
28208 fail:
28209 return NULL;
28210}
28211
28212
28213static PyObject * Window_swigregister(PyObject *self, PyObject *args) {
28214 PyObject *obj;
28215 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28216 SWIG_TypeClientData(SWIGTYPE_p_wxWindow, obj);
28217 Py_INCREF(obj);
28218 return Py_BuildValue((char *)"");
28219}
28220static PyObject *_wrap_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) {
28221 PyObject *resultobj;
28222 long arg1 ;
28223 wxWindow *arg2 = (wxWindow *) NULL ;
28224 wxWindow *result;
28225 PyObject * obj0 = 0 ;
28226 PyObject * obj1 = 0 ;
28227 char *kwnames[] = {
28228 (char *) "id",(char *) "parent", NULL
28229 };
28230
28231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowById",kwnames,&obj0,&obj1)) goto fail;
28232 arg1 = (long) SWIG_AsLong(obj0);
28233 if (PyErr_Occurred()) SWIG_fail;
28234 if (obj1) {
28235 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28237 }
28238 {
0439c23b 28239 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
28240 PyThreadState* __tstate = wxPyBeginAllowThreads();
28241 result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2);
28242
28243 wxPyEndAllowThreads(__tstate);
110da5b0 28244 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
28245 }
28246 {
412d302d 28247 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
28248 }
28249 return resultobj;
28250 fail:
28251 return NULL;
28252}
28253
28254
28255static PyObject *_wrap_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) {
28256 PyObject *resultobj;
28257 wxString *arg1 = 0 ;
28258 wxWindow *arg2 = (wxWindow *) NULL ;
28259 wxWindow *result;
28260 bool temp1 = False ;
28261 PyObject * obj0 = 0 ;
28262 PyObject * obj1 = 0 ;
28263 char *kwnames[] = {
28264 (char *) "name",(char *) "parent", NULL
28265 };
28266
28267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) goto fail;
28268 {
28269 arg1 = wxString_in_helper(obj0);
28270 if (arg1 == NULL) SWIG_fail;
28271 temp1 = True;
28272 }
28273 if (obj1) {
28274 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28276 }
28277 {
0439c23b 28278 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
28279 PyThreadState* __tstate = wxPyBeginAllowThreads();
28280 result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2);
28281
28282 wxPyEndAllowThreads(__tstate);
110da5b0 28283 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
28284 }
28285 {
412d302d 28286 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
28287 }
28288 {
28289 if (temp1)
28290 delete arg1;
28291 }
28292 return resultobj;
28293 fail:
28294 {
28295 if (temp1)
28296 delete arg1;
28297 }
28298 return NULL;
28299}
28300
28301
28302static PyObject *_wrap_FindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
28303 PyObject *resultobj;
28304 wxString *arg1 = 0 ;
28305 wxWindow *arg2 = (wxWindow *) NULL ;
28306 wxWindow *result;
28307 bool temp1 = False ;
28308 PyObject * obj0 = 0 ;
28309 PyObject * obj1 = 0 ;
28310 char *kwnames[] = {
28311 (char *) "label",(char *) "parent", NULL
28312 };
28313
28314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) goto fail;
28315 {
28316 arg1 = wxString_in_helper(obj0);
28317 if (arg1 == NULL) SWIG_fail;
28318 temp1 = True;
28319 }
28320 if (obj1) {
28321 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28323 }
28324 {
0439c23b 28325 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
28326 PyThreadState* __tstate = wxPyBeginAllowThreads();
28327 result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2);
28328
28329 wxPyEndAllowThreads(__tstate);
110da5b0 28330 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
28331 }
28332 {
412d302d 28333 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
28334 }
28335 {
28336 if (temp1)
28337 delete arg1;
28338 }
28339 return resultobj;
28340 fail:
28341 {
28342 if (temp1)
28343 delete arg1;
28344 }
28345 return NULL;
28346}
28347
28348
28349static PyObject *_wrap_Window_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) {
28350 PyObject *resultobj;
28351 wxWindow *arg1 = (wxWindow *) 0 ;
28352 unsigned long arg2 ;
28353 wxWindow *result;
28354 PyObject * obj0 = 0 ;
28355 PyObject * obj1 = 0 ;
28356 char *kwnames[] = {
28357 (char *) "parent",(char *) "_hWnd", NULL
28358 };
28359
28360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FromHWND",kwnames,&obj0,&obj1)) goto fail;
28361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28363 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
28364 if (PyErr_Occurred()) SWIG_fail;
28365 {
28366 PyThreadState* __tstate = wxPyBeginAllowThreads();
28367 result = (wxWindow *)wxWindow_FromHWND(arg1,arg2);
28368
28369 wxPyEndAllowThreads(__tstate);
28370 if (PyErr_Occurred()) SWIG_fail;
28371 }
28372 {
412d302d 28373 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
28374 }
28375 return resultobj;
28376 fail:
28377 return NULL;
28378}
28379
28380
28381static PyObject *_wrap_new_Validator(PyObject *self, PyObject *args, PyObject *kwargs) {
28382 PyObject *resultobj;
28383 wxValidator *result;
28384 char *kwnames[] = {
28385 NULL
28386 };
28387
28388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Validator",kwnames)) goto fail;
28389 {
28390 PyThreadState* __tstate = wxPyBeginAllowThreads();
28391 result = (wxValidator *)new wxValidator();
28392
28393 wxPyEndAllowThreads(__tstate);
28394 if (PyErr_Occurred()) SWIG_fail;
28395 }
b0f7404b 28396 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxValidator, 1);
d55e5bfc
RD
28397 return resultobj;
28398 fail:
28399 return NULL;
28400}
28401
28402
28403static PyObject *_wrap_Validator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) {
28404 PyObject *resultobj;
28405 wxValidator *arg1 = (wxValidator *) 0 ;
28406 wxValidator *result;
28407 PyObject * obj0 = 0 ;
28408 char *kwnames[] = {
28409 (char *) "self", NULL
28410 };
28411
28412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_Clone",kwnames,&obj0)) goto fail;
28413 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator,
28414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28415 {
28416 PyThreadState* __tstate = wxPyBeginAllowThreads();
28417 result = (wxValidator *)(arg1)->Clone();
28418
28419 wxPyEndAllowThreads(__tstate);
28420 if (PyErr_Occurred()) SWIG_fail;
28421 }
28422 {
412d302d 28423 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
28424 }
28425 return resultobj;
28426 fail:
28427 return NULL;
28428}
28429
28430
28431static PyObject *_wrap_Validator_Validate(PyObject *self, PyObject *args, PyObject *kwargs) {
28432 PyObject *resultobj;
28433 wxValidator *arg1 = (wxValidator *) 0 ;
28434 wxWindow *arg2 = (wxWindow *) 0 ;
28435 bool result;
28436 PyObject * obj0 = 0 ;
28437 PyObject * obj1 = 0 ;
28438 char *kwnames[] = {
28439 (char *) "self",(char *) "parent", NULL
28440 };
28441
28442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) goto fail;
28443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator,
28444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28445 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28447 {
28448 PyThreadState* __tstate = wxPyBeginAllowThreads();
28449 result = (bool)(arg1)->Validate(arg2);
28450
28451 wxPyEndAllowThreads(__tstate);
28452 if (PyErr_Occurred()) SWIG_fail;
28453 }
28454 {
28455 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28456 }
28457 return resultobj;
28458 fail:
28459 return NULL;
28460}
28461
28462
28463static PyObject *_wrap_Validator_TransferToWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
28464 PyObject *resultobj;
28465 wxValidator *arg1 = (wxValidator *) 0 ;
28466 bool result;
28467 PyObject * obj0 = 0 ;
28468 char *kwnames[] = {
28469 (char *) "self", NULL
28470 };
28471
28472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferToWindow",kwnames,&obj0)) goto fail;
28473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator,
28474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28475 {
28476 PyThreadState* __tstate = wxPyBeginAllowThreads();
28477 result = (bool)(arg1)->TransferToWindow();
28478
28479 wxPyEndAllowThreads(__tstate);
28480 if (PyErr_Occurred()) SWIG_fail;
28481 }
28482 {
28483 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28484 }
28485 return resultobj;
28486 fail:
28487 return NULL;
28488}
28489
28490
28491static PyObject *_wrap_Validator_TransferFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
28492 PyObject *resultobj;
28493 wxValidator *arg1 = (wxValidator *) 0 ;
28494 bool result;
28495 PyObject * obj0 = 0 ;
28496 char *kwnames[] = {
28497 (char *) "self", NULL
28498 };
28499
28500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_TransferFromWindow",kwnames,&obj0)) goto fail;
28501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator,
28502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28503 {
28504 PyThreadState* __tstate = wxPyBeginAllowThreads();
28505 result = (bool)(arg1)->TransferFromWindow();
28506
28507 wxPyEndAllowThreads(__tstate);
28508 if (PyErr_Occurred()) SWIG_fail;
28509 }
28510 {
28511 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28512 }
28513 return resultobj;
28514 fail:
28515 return NULL;
28516}
28517
28518
28519static PyObject *_wrap_Validator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
28520 PyObject *resultobj;
28521 wxValidator *arg1 = (wxValidator *) 0 ;
28522 wxWindow *result;
28523 PyObject * obj0 = 0 ;
28524 char *kwnames[] = {
28525 (char *) "self", NULL
28526 };
28527
28528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Validator_GetWindow",kwnames,&obj0)) goto fail;
28529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator,
28530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28531 {
28532 PyThreadState* __tstate = wxPyBeginAllowThreads();
28533 result = (wxWindow *)(arg1)->GetWindow();
28534
28535 wxPyEndAllowThreads(__tstate);
28536 if (PyErr_Occurred()) SWIG_fail;
28537 }
28538 {
412d302d 28539 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
28540 }
28541 return resultobj;
28542 fail:
28543 return NULL;
28544}
28545
28546
28547static PyObject *_wrap_Validator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
28548 PyObject *resultobj;
28549 wxValidator *arg1 = (wxValidator *) 0 ;
28550 wxWindow *arg2 = (wxWindow *) 0 ;
28551 PyObject * obj0 = 0 ;
28552 PyObject * obj1 = 0 ;
28553 char *kwnames[] = {
28554 (char *) "self",(char *) "window", NULL
28555 };
28556
28557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) goto fail;
28558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxValidator,
28559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28560 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28562 {
28563 PyThreadState* __tstate = wxPyBeginAllowThreads();
28564 (arg1)->SetWindow(arg2);
28565
28566 wxPyEndAllowThreads(__tstate);
28567 if (PyErr_Occurred()) SWIG_fail;
28568 }
28569 Py_INCREF(Py_None); resultobj = Py_None;
28570 return resultobj;
28571 fail:
28572 return NULL;
28573}
28574
28575
28576static PyObject *_wrap_Validator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) {
28577 PyObject *resultobj;
28578 bool result;
28579 char *kwnames[] = {
28580 NULL
28581 };
28582
28583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Validator_IsSilent",kwnames)) goto fail;
28584 {
28585 PyThreadState* __tstate = wxPyBeginAllowThreads();
28586 result = (bool)wxValidator::IsSilent();
28587
28588 wxPyEndAllowThreads(__tstate);
28589 if (PyErr_Occurred()) SWIG_fail;
28590 }
28591 {
28592 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28593 }
28594 return resultobj;
28595 fail:
28596 return NULL;
28597}
28598
28599
28600static PyObject *_wrap_Validator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) {
28601 PyObject *resultobj;
28602 int arg1 = (int) True ;
28603 PyObject * obj0 = 0 ;
28604 char *kwnames[] = {
28605 (char *) "doIt", NULL
28606 };
28607
28608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Validator_SetBellOnError",kwnames,&obj0)) goto fail;
28609 if (obj0) {
28610 arg1 = (int) SWIG_AsInt(obj0);
28611 if (PyErr_Occurred()) SWIG_fail;
28612 }
28613 {
28614 PyThreadState* __tstate = wxPyBeginAllowThreads();
28615 wxValidator::SetBellOnError(arg1);
28616
28617 wxPyEndAllowThreads(__tstate);
28618 if (PyErr_Occurred()) SWIG_fail;
28619 }
28620 Py_INCREF(Py_None); resultobj = Py_None;
28621 return resultobj;
28622 fail:
28623 return NULL;
28624}
28625
28626
28627static PyObject * Validator_swigregister(PyObject *self, PyObject *args) {
28628 PyObject *obj;
28629 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28630 SWIG_TypeClientData(SWIGTYPE_p_wxValidator, obj);
28631 Py_INCREF(obj);
28632 return Py_BuildValue((char *)"");
28633}
28634static PyObject *_wrap_new_PyValidator(PyObject *self, PyObject *args, PyObject *kwargs) {
28635 PyObject *resultobj;
28636 wxPyValidator *result;
28637 char *kwnames[] = {
28638 NULL
28639 };
28640
28641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyValidator",kwnames)) goto fail;
28642 {
28643 PyThreadState* __tstate = wxPyBeginAllowThreads();
28644 result = (wxPyValidator *)new wxPyValidator();
28645
28646 wxPyEndAllowThreads(__tstate);
28647 if (PyErr_Occurred()) SWIG_fail;
28648 }
28649 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyValidator, 1);
28650 return resultobj;
28651 fail:
28652 return NULL;
28653}
28654
28655
28656static PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
28657 PyObject *resultobj;
28658 wxPyValidator *arg1 = (wxPyValidator *) 0 ;
28659 PyObject *arg2 = (PyObject *) 0 ;
28660 PyObject *arg3 = (PyObject *) 0 ;
28661 int arg4 = (int) True ;
28662 PyObject * obj0 = 0 ;
28663 PyObject * obj1 = 0 ;
28664 PyObject * obj2 = 0 ;
28665 PyObject * obj3 = 0 ;
28666 char *kwnames[] = {
28667 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
28668 };
28669
28670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
28671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyValidator,
28672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28673 arg2 = obj1;
28674 arg3 = obj2;
28675 if (obj3) {
28676 arg4 = (int) SWIG_AsInt(obj3);
28677 if (PyErr_Occurred()) SWIG_fail;
28678 }
28679 {
28680 PyThreadState* __tstate = wxPyBeginAllowThreads();
28681 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
28682
28683 wxPyEndAllowThreads(__tstate);
28684 if (PyErr_Occurred()) SWIG_fail;
28685 }
28686 Py_INCREF(Py_None); resultobj = Py_None;
28687 return resultobj;
28688 fail:
28689 return NULL;
28690}
28691
28692
28693static PyObject * PyValidator_swigregister(PyObject *self, PyObject *args) {
28694 PyObject *obj;
28695 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28696 SWIG_TypeClientData(SWIGTYPE_p_wxPyValidator, obj);
28697 Py_INCREF(obj);
28698 return Py_BuildValue((char *)"");
28699}
28700static int _wrap_DefaultValidator_set(PyObject *_val) {
28701 PyErr_SetString(PyExc_TypeError,"Variable DefaultValidator is read-only.");
28702 return 1;
28703}
28704
28705
28706static PyObject *_wrap_DefaultValidator_get() {
28707 PyObject *pyobj;
28708
28709 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultValidator), SWIGTYPE_p_wxValidator, 0);
28710 return pyobj;
28711}
28712
28713
28714static PyObject *_wrap_new_Menu(PyObject *self, PyObject *args, PyObject *kwargs) {
28715 PyObject *resultobj;
28716 wxString const &arg1_defvalue = wxPyEmptyString ;
28717 wxString *arg1 = (wxString *) &arg1_defvalue ;
28718 long arg2 = (long) 0 ;
28719 wxMenu *result;
28720 bool temp1 = False ;
28721 PyObject * obj0 = 0 ;
28722 PyObject * obj1 = 0 ;
28723 char *kwnames[] = {
28724 (char *) "title",(char *) "style", NULL
28725 };
28726
28727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Menu",kwnames,&obj0,&obj1)) goto fail;
28728 if (obj0) {
28729 {
28730 arg1 = wxString_in_helper(obj0);
28731 if (arg1 == NULL) SWIG_fail;
28732 temp1 = True;
28733 }
28734 }
28735 if (obj1) {
28736 arg2 = (long) SWIG_AsLong(obj1);
28737 if (PyErr_Occurred()) SWIG_fail;
28738 }
28739 {
0439c23b 28740 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
28741 PyThreadState* __tstate = wxPyBeginAllowThreads();
28742 result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2);
28743
28744 wxPyEndAllowThreads(__tstate);
110da5b0 28745 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 28746 }
b0f7404b 28747 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenu, 1);
d55e5bfc
RD
28748 {
28749 if (temp1)
28750 delete arg1;
28751 }
28752 return resultobj;
28753 fail:
28754 {
28755 if (temp1)
28756 delete arg1;
28757 }
28758 return NULL;
28759}
28760
28761
28762static PyObject *_wrap_Menu_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
28763 PyObject *resultobj;
28764 wxMenu *arg1 = (wxMenu *) 0 ;
28765 int arg2 ;
28766 wxString *arg3 = 0 ;
28767 wxString const &arg4_defvalue = wxPyEmptyString ;
28768 wxString *arg4 = (wxString *) &arg4_defvalue ;
28769 int arg5 = (int) wxITEM_NORMAL ;
28770 wxMenuItem *result;
28771 bool temp3 = False ;
28772 bool temp4 = False ;
28773 PyObject * obj0 = 0 ;
28774 PyObject * obj1 = 0 ;
28775 PyObject * obj2 = 0 ;
28776 PyObject * obj3 = 0 ;
28777 PyObject * obj4 = 0 ;
28778 char *kwnames[] = {
28779 (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL
28780 };
28781
28782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
28783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
28784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28785 arg2 = (int) SWIG_AsInt(obj1);
28786 if (PyErr_Occurred()) SWIG_fail;
28787 {
28788 arg3 = wxString_in_helper(obj2);
28789 if (arg3 == NULL) SWIG_fail;
28790 temp3 = True;
28791 }
28792 if (obj3) {
28793 {
28794 arg4 = wxString_in_helper(obj3);
28795 if (arg4 == NULL) SWIG_fail;
28796 temp4 = True;
28797 }
28798 }
28799 if (obj4) {
28800 arg5 = (wxItemKind) SWIG_AsInt(obj4);
28801 if (PyErr_Occurred()) SWIG_fail;
28802 }
28803 {
28804 PyThreadState* __tstate = wxPyBeginAllowThreads();
28805 result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5);
28806
28807 wxPyEndAllowThreads(__tstate);
28808 if (PyErr_Occurred()) SWIG_fail;
28809 }
28810 {
412d302d 28811 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
28812 }
28813 {
28814 if (temp3)
28815 delete arg3;
28816 }
28817 {
28818 if (temp4)
28819 delete arg4;
28820 }
28821 return resultobj;
28822 fail:
28823 {
28824 if (temp3)
28825 delete arg3;
28826 }
28827 {
28828 if (temp4)
28829 delete arg4;
28830 }
28831 return NULL;
28832}
28833
28834
28835static PyObject *_wrap_Menu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
28836 PyObject *resultobj;
28837 wxMenu *arg1 = (wxMenu *) 0 ;
28838 wxMenuItem *result;
28839 PyObject * obj0 = 0 ;
28840 char *kwnames[] = {
28841 (char *) "self", NULL
28842 };
28843
28844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_AppendSeparator",kwnames,&obj0)) goto fail;
28845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
28846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28847 {
28848 PyThreadState* __tstate = wxPyBeginAllowThreads();
28849 result = (wxMenuItem *)(arg1)->AppendSeparator();
28850
28851 wxPyEndAllowThreads(__tstate);
28852 if (PyErr_Occurred()) SWIG_fail;
28853 }
28854 {
412d302d 28855 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
28856 }
28857 return resultobj;
28858 fail:
28859 return NULL;
28860}
28861
28862
28863static PyObject *_wrap_Menu_AppendCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) {
28864 PyObject *resultobj;
28865 wxMenu *arg1 = (wxMenu *) 0 ;
28866 int arg2 ;
28867 wxString *arg3 = 0 ;
28868 wxString const &arg4_defvalue = wxPyEmptyString ;
28869 wxString *arg4 = (wxString *) &arg4_defvalue ;
28870 wxMenuItem *result;
28871 bool temp3 = False ;
28872 bool temp4 = False ;
28873 PyObject * obj0 = 0 ;
28874 PyObject * obj1 = 0 ;
28875 PyObject * obj2 = 0 ;
28876 PyObject * obj3 = 0 ;
28877 char *kwnames[] = {
28878 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
28879 };
28880
28881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
28882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
28883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28884 arg2 = (int) SWIG_AsInt(obj1);
28885 if (PyErr_Occurred()) SWIG_fail;
28886 {
28887 arg3 = wxString_in_helper(obj2);
28888 if (arg3 == NULL) SWIG_fail;
28889 temp3 = True;
28890 }
28891 if (obj3) {
28892 {
28893 arg4 = wxString_in_helper(obj3);
28894 if (arg4 == NULL) SWIG_fail;
28895 temp4 = True;
28896 }
28897 }
28898 {
28899 PyThreadState* __tstate = wxPyBeginAllowThreads();
28900 result = (wxMenuItem *)(arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
28901
28902 wxPyEndAllowThreads(__tstate);
28903 if (PyErr_Occurred()) SWIG_fail;
28904 }
28905 {
412d302d 28906 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
28907 }
28908 {
28909 if (temp3)
28910 delete arg3;
28911 }
28912 {
28913 if (temp4)
28914 delete arg4;
28915 }
28916 return resultobj;
28917 fail:
28918 {
28919 if (temp3)
28920 delete arg3;
28921 }
28922 {
28923 if (temp4)
28924 delete arg4;
28925 }
28926 return NULL;
28927}
28928
28929
28930static PyObject *_wrap_Menu_AppendRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) {
28931 PyObject *resultobj;
28932 wxMenu *arg1 = (wxMenu *) 0 ;
28933 int arg2 ;
28934 wxString *arg3 = 0 ;
28935 wxString const &arg4_defvalue = wxPyEmptyString ;
28936 wxString *arg4 = (wxString *) &arg4_defvalue ;
28937 wxMenuItem *result;
28938 bool temp3 = False ;
28939 bool temp4 = False ;
28940 PyObject * obj0 = 0 ;
28941 PyObject * obj1 = 0 ;
28942 PyObject * obj2 = 0 ;
28943 PyObject * obj3 = 0 ;
28944 char *kwnames[] = {
28945 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
28946 };
28947
28948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
28949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
28950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28951 arg2 = (int) SWIG_AsInt(obj1);
28952 if (PyErr_Occurred()) SWIG_fail;
28953 {
28954 arg3 = wxString_in_helper(obj2);
28955 if (arg3 == NULL) SWIG_fail;
28956 temp3 = True;
28957 }
28958 if (obj3) {
28959 {
28960 arg4 = wxString_in_helper(obj3);
28961 if (arg4 == NULL) SWIG_fail;
28962 temp4 = True;
28963 }
28964 }
28965 {
28966 PyThreadState* __tstate = wxPyBeginAllowThreads();
28967 result = (wxMenuItem *)(arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
28968
28969 wxPyEndAllowThreads(__tstate);
28970 if (PyErr_Occurred()) SWIG_fail;
28971 }
28972 {
412d302d 28973 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
28974 }
28975 {
28976 if (temp3)
28977 delete arg3;
28978 }
28979 {
28980 if (temp4)
28981 delete arg4;
28982 }
28983 return resultobj;
28984 fail:
28985 {
28986 if (temp3)
28987 delete arg3;
28988 }
28989 {
28990 if (temp4)
28991 delete arg4;
28992 }
28993 return NULL;
28994}
28995
28996
28997static PyObject *_wrap_Menu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
28998 PyObject *resultobj;
28999 wxMenu *arg1 = (wxMenu *) 0 ;
29000 int arg2 ;
29001 wxString *arg3 = 0 ;
29002 wxMenu *arg4 = (wxMenu *) 0 ;
29003 wxString const &arg5_defvalue = wxPyEmptyString ;
29004 wxString *arg5 = (wxString *) &arg5_defvalue ;
29005 wxMenuItem *result;
29006 bool temp3 = False ;
29007 bool temp5 = False ;
29008 PyObject * obj0 = 0 ;
29009 PyObject * obj1 = 0 ;
29010 PyObject * obj2 = 0 ;
29011 PyObject * obj3 = 0 ;
29012 PyObject * obj4 = 0 ;
29013 char *kwnames[] = {
29014 (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL
29015 };
29016
29017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_AppendMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29020 arg2 = (int) SWIG_AsInt(obj1);
29021 if (PyErr_Occurred()) SWIG_fail;
29022 {
29023 arg3 = wxString_in_helper(obj2);
29024 if (arg3 == NULL) SWIG_fail;
29025 temp3 = True;
29026 }
29027 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu,
29028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29029 if (obj4) {
29030 {
29031 arg5 = wxString_in_helper(obj4);
29032 if (arg5 == NULL) SWIG_fail;
29033 temp5 = True;
29034 }
29035 }
29036 {
29037 PyThreadState* __tstate = wxPyBeginAllowThreads();
29038 result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5);
29039
29040 wxPyEndAllowThreads(__tstate);
29041 if (PyErr_Occurred()) SWIG_fail;
29042 }
29043 {
412d302d 29044 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29045 }
29046 {
29047 if (temp3)
29048 delete arg3;
29049 }
29050 {
29051 if (temp5)
29052 delete arg5;
29053 }
29054 return resultobj;
29055 fail:
29056 {
29057 if (temp3)
29058 delete arg3;
29059 }
29060 {
29061 if (temp5)
29062 delete arg5;
29063 }
29064 return NULL;
29065}
29066
29067
29068static PyObject *_wrap_Menu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29069 PyObject *resultobj;
29070 wxMenu *arg1 = (wxMenu *) 0 ;
29071 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
29072 wxMenuItem *result;
29073 PyObject * obj0 = 0 ;
29074 PyObject * obj1 = 0 ;
29075 char *kwnames[] = {
29076 (char *) "self",(char *) "item", NULL
29077 };
29078
29079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) goto fail;
29080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29082 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem,
29083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29084 {
29085 PyThreadState* __tstate = wxPyBeginAllowThreads();
29086 result = (wxMenuItem *)(arg1)->Append(arg2);
29087
29088 wxPyEndAllowThreads(__tstate);
29089 if (PyErr_Occurred()) SWIG_fail;
29090 }
29091 {
412d302d 29092 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29093 }
29094 return resultobj;
29095 fail:
29096 return NULL;
29097}
29098
29099
29100static PyObject *_wrap_Menu_Break(PyObject *self, PyObject *args, PyObject *kwargs) {
29101 PyObject *resultobj;
29102 wxMenu *arg1 = (wxMenu *) 0 ;
29103 PyObject * obj0 = 0 ;
29104 char *kwnames[] = {
29105 (char *) "self", NULL
29106 };
29107
29108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Break",kwnames,&obj0)) goto fail;
29109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29111 {
29112 PyThreadState* __tstate = wxPyBeginAllowThreads();
29113 (arg1)->Break();
29114
29115 wxPyEndAllowThreads(__tstate);
29116 if (PyErr_Occurred()) SWIG_fail;
29117 }
29118 Py_INCREF(Py_None); resultobj = Py_None;
29119 return resultobj;
29120 fail:
29121 return NULL;
29122}
29123
29124
29125static PyObject *_wrap_Menu_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29126 PyObject *resultobj;
29127 wxMenu *arg1 = (wxMenu *) 0 ;
29128 size_t arg2 ;
29129 wxMenuItem *arg3 = (wxMenuItem *) 0 ;
29130 wxMenuItem *result;
29131 PyObject * obj0 = 0 ;
29132 PyObject * obj1 = 0 ;
29133 PyObject * obj2 = 0 ;
29134 char *kwnames[] = {
29135 (char *) "self",(char *) "pos",(char *) "item", NULL
29136 };
29137
29138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
29139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29141 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
29142 if (PyErr_Occurred()) SWIG_fail;
29143 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenuItem,
29144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29145 {
29146 PyThreadState* __tstate = wxPyBeginAllowThreads();
29147 result = (wxMenuItem *)(arg1)->Insert(arg2,arg3);
29148
29149 wxPyEndAllowThreads(__tstate);
29150 if (PyErr_Occurred()) SWIG_fail;
29151 }
29152 {
412d302d 29153 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29154 }
29155 return resultobj;
29156 fail:
29157 return NULL;
29158}
29159
29160
29161static PyObject *_wrap_Menu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
29162 PyObject *resultobj;
29163 wxMenu *arg1 = (wxMenu *) 0 ;
29164 size_t arg2 ;
29165 int arg3 ;
29166 wxString *arg4 = 0 ;
29167 wxString const &arg5_defvalue = wxPyEmptyString ;
29168 wxString *arg5 = (wxString *) &arg5_defvalue ;
29169 int arg6 = (int) wxITEM_NORMAL ;
29170 wxMenuItem *result;
29171 bool temp4 = False ;
29172 bool temp5 = False ;
29173 PyObject * obj0 = 0 ;
29174 PyObject * obj1 = 0 ;
29175 PyObject * obj2 = 0 ;
29176 PyObject * obj3 = 0 ;
29177 PyObject * obj4 = 0 ;
29178 PyObject * obj5 = 0 ;
29179 char *kwnames[] = {
29180 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL
29181 };
29182
29183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Menu_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
29184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29186 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
29187 if (PyErr_Occurred()) SWIG_fail;
29188 arg3 = (int) SWIG_AsInt(obj2);
29189 if (PyErr_Occurred()) SWIG_fail;
29190 {
29191 arg4 = wxString_in_helper(obj3);
29192 if (arg4 == NULL) SWIG_fail;
29193 temp4 = True;
29194 }
29195 if (obj4) {
29196 {
29197 arg5 = wxString_in_helper(obj4);
29198 if (arg5 == NULL) SWIG_fail;
29199 temp5 = True;
29200 }
29201 }
29202 if (obj5) {
29203 arg6 = (wxItemKind) SWIG_AsInt(obj5);
29204 if (PyErr_Occurred()) SWIG_fail;
29205 }
29206 {
29207 PyThreadState* __tstate = wxPyBeginAllowThreads();
29208 result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxItemKind )arg6);
29209
29210 wxPyEndAllowThreads(__tstate);
29211 if (PyErr_Occurred()) SWIG_fail;
29212 }
29213 {
412d302d 29214 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29215 }
29216 {
29217 if (temp4)
29218 delete arg4;
29219 }
29220 {
29221 if (temp5)
29222 delete arg5;
29223 }
29224 return resultobj;
29225 fail:
29226 {
29227 if (temp4)
29228 delete arg4;
29229 }
29230 {
29231 if (temp5)
29232 delete arg5;
29233 }
29234 return NULL;
29235}
29236
29237
29238static PyObject *_wrap_Menu_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
29239 PyObject *resultobj;
29240 wxMenu *arg1 = (wxMenu *) 0 ;
29241 size_t arg2 ;
29242 wxMenuItem *result;
29243 PyObject * obj0 = 0 ;
29244 PyObject * obj1 = 0 ;
29245 char *kwnames[] = {
29246 (char *) "self",(char *) "pos", NULL
29247 };
29248
29249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) goto fail;
29250 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29252 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
29253 if (PyErr_Occurred()) SWIG_fail;
29254 {
29255 PyThreadState* __tstate = wxPyBeginAllowThreads();
29256 result = (wxMenuItem *)(arg1)->InsertSeparator(arg2);
29257
29258 wxPyEndAllowThreads(__tstate);
29259 if (PyErr_Occurred()) SWIG_fail;
29260 }
29261 {
412d302d 29262 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29263 }
29264 return resultobj;
29265 fail:
29266 return NULL;
29267}
29268
29269
29270static PyObject *_wrap_Menu_InsertCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29271 PyObject *resultobj;
29272 wxMenu *arg1 = (wxMenu *) 0 ;
29273 size_t arg2 ;
29274 int arg3 ;
29275 wxString *arg4 = 0 ;
29276 wxString const &arg5_defvalue = wxPyEmptyString ;
29277 wxString *arg5 = (wxString *) &arg5_defvalue ;
29278 wxMenuItem *result;
29279 bool temp4 = False ;
29280 bool temp5 = False ;
29281 PyObject * obj0 = 0 ;
29282 PyObject * obj1 = 0 ;
29283 PyObject * obj2 = 0 ;
29284 PyObject * obj3 = 0 ;
29285 PyObject * obj4 = 0 ;
29286 char *kwnames[] = {
29287 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL
29288 };
29289
29290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29293 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
29294 if (PyErr_Occurred()) SWIG_fail;
29295 arg3 = (int) SWIG_AsInt(obj2);
29296 if (PyErr_Occurred()) SWIG_fail;
29297 {
29298 arg4 = wxString_in_helper(obj3);
29299 if (arg4 == NULL) SWIG_fail;
29300 temp4 = True;
29301 }
29302 if (obj4) {
29303 {
29304 arg5 = wxString_in_helper(obj4);
29305 if (arg5 == NULL) SWIG_fail;
29306 temp5 = True;
29307 }
29308 }
29309 {
29310 PyThreadState* __tstate = wxPyBeginAllowThreads();
29311 result = (wxMenuItem *)(arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5);
29312
29313 wxPyEndAllowThreads(__tstate);
29314 if (PyErr_Occurred()) SWIG_fail;
29315 }
29316 {
412d302d 29317 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29318 }
29319 {
29320 if (temp4)
29321 delete arg4;
29322 }
29323 {
29324 if (temp5)
29325 delete arg5;
29326 }
29327 return resultobj;
29328 fail:
29329 {
29330 if (temp4)
29331 delete arg4;
29332 }
29333 {
29334 if (temp5)
29335 delete arg5;
29336 }
29337 return NULL;
29338}
29339
29340
29341static PyObject *_wrap_Menu_InsertRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29342 PyObject *resultobj;
29343 wxMenu *arg1 = (wxMenu *) 0 ;
29344 size_t arg2 ;
29345 int arg3 ;
29346 wxString *arg4 = 0 ;
29347 wxString const &arg5_defvalue = wxPyEmptyString ;
29348 wxString *arg5 = (wxString *) &arg5_defvalue ;
29349 wxMenuItem *result;
29350 bool temp4 = False ;
29351 bool temp5 = False ;
29352 PyObject * obj0 = 0 ;
29353 PyObject * obj1 = 0 ;
29354 PyObject * obj2 = 0 ;
29355 PyObject * obj3 = 0 ;
29356 PyObject * obj4 = 0 ;
29357 char *kwnames[] = {
29358 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL
29359 };
29360
29361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29364 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
29365 if (PyErr_Occurred()) SWIG_fail;
29366 arg3 = (int) SWIG_AsInt(obj2);
29367 if (PyErr_Occurred()) SWIG_fail;
29368 {
29369 arg4 = wxString_in_helper(obj3);
29370 if (arg4 == NULL) SWIG_fail;
29371 temp4 = True;
29372 }
29373 if (obj4) {
29374 {
29375 arg5 = wxString_in_helper(obj4);
29376 if (arg5 == NULL) SWIG_fail;
29377 temp5 = True;
29378 }
29379 }
29380 {
29381 PyThreadState* __tstate = wxPyBeginAllowThreads();
29382 result = (wxMenuItem *)(arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5);
29383
29384 wxPyEndAllowThreads(__tstate);
29385 if (PyErr_Occurred()) SWIG_fail;
29386 }
29387 {
412d302d 29388 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29389 }
29390 {
29391 if (temp4)
29392 delete arg4;
29393 }
29394 {
29395 if (temp5)
29396 delete arg5;
29397 }
29398 return resultobj;
29399 fail:
29400 {
29401 if (temp4)
29402 delete arg4;
29403 }
29404 {
29405 if (temp5)
29406 delete arg5;
29407 }
29408 return NULL;
29409}
29410
29411
29412static PyObject *_wrap_Menu_InsertMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
29413 PyObject *resultobj;
29414 wxMenu *arg1 = (wxMenu *) 0 ;
29415 size_t arg2 ;
29416 int arg3 ;
29417 wxString *arg4 = 0 ;
29418 wxMenu *arg5 = (wxMenu *) 0 ;
29419 wxString const &arg6_defvalue = wxPyEmptyString ;
29420 wxString *arg6 = (wxString *) &arg6_defvalue ;
29421 wxMenuItem *result;
29422 bool temp4 = False ;
29423 bool temp6 = False ;
29424 PyObject * obj0 = 0 ;
29425 PyObject * obj1 = 0 ;
29426 PyObject * obj2 = 0 ;
29427 PyObject * obj3 = 0 ;
29428 PyObject * obj4 = 0 ;
29429 PyObject * obj5 = 0 ;
29430 char *kwnames[] = {
29431 (char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL
29432 };
29433
29434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
29435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29437 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
29438 if (PyErr_Occurred()) SWIG_fail;
29439 arg3 = (int) SWIG_AsInt(obj2);
29440 if (PyErr_Occurred()) SWIG_fail;
29441 {
29442 arg4 = wxString_in_helper(obj3);
29443 if (arg4 == NULL) SWIG_fail;
29444 temp4 = True;
29445 }
29446 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxMenu,
29447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29448 if (obj5) {
29449 {
29450 arg6 = wxString_in_helper(obj5);
29451 if (arg6 == NULL) SWIG_fail;
29452 temp6 = True;
29453 }
29454 }
29455 {
29456 PyThreadState* __tstate = wxPyBeginAllowThreads();
29457 result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6);
29458
29459 wxPyEndAllowThreads(__tstate);
29460 if (PyErr_Occurred()) SWIG_fail;
29461 }
29462 {
412d302d 29463 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29464 }
29465 {
29466 if (temp4)
29467 delete arg4;
29468 }
29469 {
29470 if (temp6)
29471 delete arg6;
29472 }
29473 return resultobj;
29474 fail:
29475 {
29476 if (temp4)
29477 delete arg4;
29478 }
29479 {
29480 if (temp6)
29481 delete arg6;
29482 }
29483 return NULL;
29484}
29485
29486
29487static PyObject *_wrap_Menu_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29488 PyObject *resultobj;
29489 wxMenu *arg1 = (wxMenu *) 0 ;
29490 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
29491 wxMenuItem *result;
29492 PyObject * obj0 = 0 ;
29493 PyObject * obj1 = 0 ;
29494 char *kwnames[] = {
29495 (char *) "self",(char *) "item", NULL
29496 };
29497
29498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) goto fail;
29499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29501 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem,
29502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29503 {
29504 PyThreadState* __tstate = wxPyBeginAllowThreads();
29505 result = (wxMenuItem *)(arg1)->Prepend(arg2);
29506
29507 wxPyEndAllowThreads(__tstate);
29508 if (PyErr_Occurred()) SWIG_fail;
29509 }
29510 {
412d302d 29511 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29512 }
29513 return resultobj;
29514 fail:
29515 return NULL;
29516}
29517
29518
29519static PyObject *_wrap_Menu_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) {
29520 PyObject *resultobj;
29521 wxMenu *arg1 = (wxMenu *) 0 ;
29522 int arg2 ;
29523 wxString *arg3 = 0 ;
29524 wxString const &arg4_defvalue = wxPyEmptyString ;
29525 wxString *arg4 = (wxString *) &arg4_defvalue ;
29526 int arg5 = (int) wxITEM_NORMAL ;
29527 wxMenuItem *result;
29528 bool temp3 = False ;
29529 bool temp4 = False ;
29530 PyObject * obj0 = 0 ;
29531 PyObject * obj1 = 0 ;
29532 PyObject * obj2 = 0 ;
29533 PyObject * obj3 = 0 ;
29534 PyObject * obj4 = 0 ;
29535 char *kwnames[] = {
29536 (char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL
29537 };
29538
29539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Menu_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29542 arg2 = (int) SWIG_AsInt(obj1);
29543 if (PyErr_Occurred()) SWIG_fail;
29544 {
29545 arg3 = wxString_in_helper(obj2);
29546 if (arg3 == NULL) SWIG_fail;
29547 temp3 = True;
29548 }
29549 if (obj3) {
29550 {
29551 arg4 = wxString_in_helper(obj3);
29552 if (arg4 == NULL) SWIG_fail;
29553 temp4 = True;
29554 }
29555 }
29556 if (obj4) {
29557 arg5 = (wxItemKind) SWIG_AsInt(obj4);
29558 if (PyErr_Occurred()) SWIG_fail;
29559 }
29560 {
29561 PyThreadState* __tstate = wxPyBeginAllowThreads();
29562 result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5);
29563
29564 wxPyEndAllowThreads(__tstate);
29565 if (PyErr_Occurred()) SWIG_fail;
29566 }
29567 {
412d302d 29568 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29569 }
29570 {
29571 if (temp3)
29572 delete arg3;
29573 }
29574 {
29575 if (temp4)
29576 delete arg4;
29577 }
29578 return resultobj;
29579 fail:
29580 {
29581 if (temp3)
29582 delete arg3;
29583 }
29584 {
29585 if (temp4)
29586 delete arg4;
29587 }
29588 return NULL;
29589}
29590
29591
29592static PyObject *_wrap_Menu_PrependSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
29593 PyObject *resultobj;
29594 wxMenu *arg1 = (wxMenu *) 0 ;
29595 wxMenuItem *result;
29596 PyObject * obj0 = 0 ;
29597 char *kwnames[] = {
29598 (char *) "self", NULL
29599 };
29600
29601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_PrependSeparator",kwnames,&obj0)) goto fail;
29602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29604 {
29605 PyThreadState* __tstate = wxPyBeginAllowThreads();
29606 result = (wxMenuItem *)(arg1)->PrependSeparator();
29607
29608 wxPyEndAllowThreads(__tstate);
29609 if (PyErr_Occurred()) SWIG_fail;
29610 }
29611 {
412d302d 29612 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29613 }
29614 return resultobj;
29615 fail:
29616 return NULL;
29617}
29618
29619
29620static PyObject *_wrap_Menu_PrependCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29621 PyObject *resultobj;
29622 wxMenu *arg1 = (wxMenu *) 0 ;
29623 int arg2 ;
29624 wxString *arg3 = 0 ;
29625 wxString const &arg4_defvalue = wxPyEmptyString ;
29626 wxString *arg4 = (wxString *) &arg4_defvalue ;
29627 wxMenuItem *result;
29628 bool temp3 = False ;
29629 bool temp4 = False ;
29630 PyObject * obj0 = 0 ;
29631 PyObject * obj1 = 0 ;
29632 PyObject * obj2 = 0 ;
29633 PyObject * obj3 = 0 ;
29634 char *kwnames[] = {
29635 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
29636 };
29637
29638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
29639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29641 arg2 = (int) SWIG_AsInt(obj1);
29642 if (PyErr_Occurred()) SWIG_fail;
29643 {
29644 arg3 = wxString_in_helper(obj2);
29645 if (arg3 == NULL) SWIG_fail;
29646 temp3 = True;
29647 }
29648 if (obj3) {
29649 {
29650 arg4 = wxString_in_helper(obj3);
29651 if (arg4 == NULL) SWIG_fail;
29652 temp4 = True;
29653 }
29654 }
29655 {
29656 PyThreadState* __tstate = wxPyBeginAllowThreads();
29657 result = (wxMenuItem *)(arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
29658
29659 wxPyEndAllowThreads(__tstate);
29660 if (PyErr_Occurred()) SWIG_fail;
29661 }
29662 {
412d302d 29663 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29664 }
29665 {
29666 if (temp3)
29667 delete arg3;
29668 }
29669 {
29670 if (temp4)
29671 delete arg4;
29672 }
29673 return resultobj;
29674 fail:
29675 {
29676 if (temp3)
29677 delete arg3;
29678 }
29679 {
29680 if (temp4)
29681 delete arg4;
29682 }
29683 return NULL;
29684}
29685
29686
29687static PyObject *_wrap_Menu_PrependRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29688 PyObject *resultobj;
29689 wxMenu *arg1 = (wxMenu *) 0 ;
29690 int arg2 ;
29691 wxString *arg3 = 0 ;
29692 wxString const &arg4_defvalue = wxPyEmptyString ;
29693 wxString *arg4 = (wxString *) &arg4_defvalue ;
29694 wxMenuItem *result;
29695 bool temp3 = False ;
29696 bool temp4 = False ;
29697 PyObject * obj0 = 0 ;
29698 PyObject * obj1 = 0 ;
29699 PyObject * obj2 = 0 ;
29700 PyObject * obj3 = 0 ;
29701 char *kwnames[] = {
29702 (char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
29703 };
29704
29705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
29706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29708 arg2 = (int) SWIG_AsInt(obj1);
29709 if (PyErr_Occurred()) SWIG_fail;
29710 {
29711 arg3 = wxString_in_helper(obj2);
29712 if (arg3 == NULL) SWIG_fail;
29713 temp3 = True;
29714 }
29715 if (obj3) {
29716 {
29717 arg4 = wxString_in_helper(obj3);
29718 if (arg4 == NULL) SWIG_fail;
29719 temp4 = True;
29720 }
29721 }
29722 {
29723 PyThreadState* __tstate = wxPyBeginAllowThreads();
29724 result = (wxMenuItem *)(arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
29725
29726 wxPyEndAllowThreads(__tstate);
29727 if (PyErr_Occurred()) SWIG_fail;
29728 }
29729 {
412d302d 29730 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29731 }
29732 {
29733 if (temp3)
29734 delete arg3;
29735 }
29736 {
29737 if (temp4)
29738 delete arg4;
29739 }
29740 return resultobj;
29741 fail:
29742 {
29743 if (temp3)
29744 delete arg3;
29745 }
29746 {
29747 if (temp4)
29748 delete arg4;
29749 }
29750 return NULL;
29751}
29752
29753
29754static PyObject *_wrap_Menu_PrependMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
29755 PyObject *resultobj;
29756 wxMenu *arg1 = (wxMenu *) 0 ;
29757 int arg2 ;
29758 wxString *arg3 = 0 ;
29759 wxMenu *arg4 = (wxMenu *) 0 ;
29760 wxString const &arg5_defvalue = wxPyEmptyString ;
29761 wxString *arg5 = (wxString *) &arg5_defvalue ;
29762 wxMenuItem *result;
29763 bool temp3 = False ;
29764 bool temp5 = False ;
29765 PyObject * obj0 = 0 ;
29766 PyObject * obj1 = 0 ;
29767 PyObject * obj2 = 0 ;
29768 PyObject * obj3 = 0 ;
29769 PyObject * obj4 = 0 ;
29770 char *kwnames[] = {
29771 (char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL
29772 };
29773
29774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_PrependMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29777 arg2 = (int) SWIG_AsInt(obj1);
29778 if (PyErr_Occurred()) SWIG_fail;
29779 {
29780 arg3 = wxString_in_helper(obj2);
29781 if (arg3 == NULL) SWIG_fail;
29782 temp3 = True;
29783 }
29784 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxMenu,
29785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29786 if (obj4) {
29787 {
29788 arg5 = wxString_in_helper(obj4);
29789 if (arg5 == NULL) SWIG_fail;
29790 temp5 = True;
29791 }
29792 }
29793 {
29794 PyThreadState* __tstate = wxPyBeginAllowThreads();
29795 result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5);
29796
29797 wxPyEndAllowThreads(__tstate);
29798 if (PyErr_Occurred()) SWIG_fail;
29799 }
29800 {
412d302d 29801 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29802 }
29803 {
29804 if (temp3)
29805 delete arg3;
29806 }
29807 {
29808 if (temp5)
29809 delete arg5;
29810 }
29811 return resultobj;
29812 fail:
29813 {
29814 if (temp3)
29815 delete arg3;
29816 }
29817 {
29818 if (temp5)
29819 delete arg5;
29820 }
29821 return NULL;
29822}
29823
29824
29825static PyObject *_wrap_Menu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
29826 PyObject *resultobj;
29827 wxMenu *arg1 = (wxMenu *) 0 ;
29828 int arg2 ;
29829 wxMenuItem *result;
29830 PyObject * obj0 = 0 ;
29831 PyObject * obj1 = 0 ;
29832 char *kwnames[] = {
29833 (char *) "self",(char *) "id", NULL
29834 };
29835
29836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Remove",kwnames,&obj0,&obj1)) goto fail;
29837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29839 arg2 = (int) SWIG_AsInt(obj1);
29840 if (PyErr_Occurred()) SWIG_fail;
29841 {
29842 PyThreadState* __tstate = wxPyBeginAllowThreads();
29843 result = (wxMenuItem *)(arg1)->Remove(arg2);
29844
29845 wxPyEndAllowThreads(__tstate);
29846 if (PyErr_Occurred()) SWIG_fail;
29847 }
29848 {
412d302d 29849 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29850 }
29851 return resultobj;
29852 fail:
29853 return NULL;
29854}
29855
29856
29857static PyObject *_wrap_Menu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29858 PyObject *resultobj;
29859 wxMenu *arg1 = (wxMenu *) 0 ;
29860 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
29861 wxMenuItem *result;
29862 PyObject * obj0 = 0 ;
29863 PyObject * obj1 = 0 ;
29864 char *kwnames[] = {
29865 (char *) "self",(char *) "item", NULL
29866 };
29867
29868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) goto fail;
29869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29871 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem,
29872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29873 {
29874 PyThreadState* __tstate = wxPyBeginAllowThreads();
29875 result = (wxMenuItem *)(arg1)->Remove(arg2);
29876
29877 wxPyEndAllowThreads(__tstate);
29878 if (PyErr_Occurred()) SWIG_fail;
29879 }
29880 {
412d302d 29881 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
29882 }
29883 return resultobj;
29884 fail:
29885 return NULL;
29886}
29887
29888
29889static PyObject *_wrap_Menu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
29890 PyObject *resultobj;
29891 wxMenu *arg1 = (wxMenu *) 0 ;
29892 int arg2 ;
29893 bool result;
29894 PyObject * obj0 = 0 ;
29895 PyObject * obj1 = 0 ;
29896 char *kwnames[] = {
29897 (char *) "self",(char *) "id", NULL
29898 };
29899
29900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Delete",kwnames,&obj0,&obj1)) goto fail;
29901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29903 arg2 = (int) SWIG_AsInt(obj1);
29904 if (PyErr_Occurred()) SWIG_fail;
29905 {
29906 PyThreadState* __tstate = wxPyBeginAllowThreads();
29907 result = (bool)(arg1)->Delete(arg2);
29908
29909 wxPyEndAllowThreads(__tstate);
29910 if (PyErr_Occurred()) SWIG_fail;
29911 }
29912 {
29913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29914 }
29915 return resultobj;
29916 fail:
29917 return NULL;
29918}
29919
29920
29921static PyObject *_wrap_Menu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) {
29922 PyObject *resultobj;
29923 wxMenu *arg1 = (wxMenu *) 0 ;
29924 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
29925 bool result;
29926 PyObject * obj0 = 0 ;
29927 PyObject * obj1 = 0 ;
29928 char *kwnames[] = {
29929 (char *) "self",(char *) "item", NULL
29930 };
29931
29932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) goto fail;
29933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29935 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem,
29936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29937 {
29938 PyThreadState* __tstate = wxPyBeginAllowThreads();
29939 result = (bool)(arg1)->Delete(arg2);
29940
29941 wxPyEndAllowThreads(__tstate);
29942 if (PyErr_Occurred()) SWIG_fail;
29943 }
29944 {
29945 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29946 }
29947 return resultobj;
29948 fail:
29949 return NULL;
29950}
29951
29952
29953static PyObject *_wrap_Menu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
29954 PyObject *resultobj;
29955 wxMenu *arg1 = (wxMenu *) 0 ;
29956 PyObject * obj0 = 0 ;
29957 char *kwnames[] = {
29958 (char *) "self", NULL
29959 };
29960
29961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Destroy",kwnames,&obj0)) goto fail;
29962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29964 {
29965 PyThreadState* __tstate = wxPyBeginAllowThreads();
29966 wxMenu_Destroy(arg1);
29967
29968 wxPyEndAllowThreads(__tstate);
29969 if (PyErr_Occurred()) SWIG_fail;
29970 }
29971 Py_INCREF(Py_None); resultobj = Py_None;
29972 return resultobj;
29973 fail:
29974 return NULL;
29975}
29976
29977
29978static PyObject *_wrap_Menu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) {
29979 PyObject *resultobj;
29980 wxMenu *arg1 = (wxMenu *) 0 ;
29981 int arg2 ;
29982 bool result;
29983 PyObject * obj0 = 0 ;
29984 PyObject * obj1 = 0 ;
29985 char *kwnames[] = {
29986 (char *) "self",(char *) "id", NULL
29987 };
29988
29989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyId",kwnames,&obj0,&obj1)) goto fail;
29990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
29991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29992 arg2 = (int) SWIG_AsInt(obj1);
29993 if (PyErr_Occurred()) SWIG_fail;
29994 {
29995 PyThreadState* __tstate = wxPyBeginAllowThreads();
29996 result = (bool)(arg1)->Destroy(arg2);
29997
29998 wxPyEndAllowThreads(__tstate);
29999 if (PyErr_Occurred()) SWIG_fail;
30000 }
30001 {
30002 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30003 }
30004 return resultobj;
30005 fail:
30006 return NULL;
30007}
30008
30009
30010static PyObject *_wrap_Menu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) {
30011 PyObject *resultobj;
30012 wxMenu *arg1 = (wxMenu *) 0 ;
30013 wxMenuItem *arg2 = (wxMenuItem *) 0 ;
30014 bool result;
30015 PyObject * obj0 = 0 ;
30016 PyObject * obj1 = 0 ;
30017 char *kwnames[] = {
30018 (char *) "self",(char *) "item", NULL
30019 };
30020
30021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) goto fail;
30022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30024 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuItem,
30025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30026 {
30027 PyThreadState* __tstate = wxPyBeginAllowThreads();
30028 result = (bool)(arg1)->Destroy(arg2);
30029
30030 wxPyEndAllowThreads(__tstate);
30031 if (PyErr_Occurred()) SWIG_fail;
30032 }
30033 {
30034 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30035 }
30036 return resultobj;
30037 fail:
30038 return NULL;
30039}
30040
30041
30042static PyObject *_wrap_Menu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) {
30043 PyObject *resultobj;
30044 wxMenu *arg1 = (wxMenu *) 0 ;
30045 size_t result;
30046 PyObject * obj0 = 0 ;
30047 char *kwnames[] = {
30048 (char *) "self", NULL
30049 };
30050
30051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItemCount",kwnames,&obj0)) goto fail;
30052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30054 {
30055 PyThreadState* __tstate = wxPyBeginAllowThreads();
30056 result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount();
30057
30058 wxPyEndAllowThreads(__tstate);
30059 if (PyErr_Occurred()) SWIG_fail;
30060 }
30061 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
30062 return resultobj;
30063 fail:
30064 return NULL;
30065}
30066
30067
30068static PyObject *_wrap_Menu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) {
30069 PyObject *resultobj;
30070 wxMenu *arg1 = (wxMenu *) 0 ;
30071 PyObject *result;
30072 PyObject * obj0 = 0 ;
30073 char *kwnames[] = {
30074 (char *) "self", NULL
30075 };
30076
30077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuItems",kwnames,&obj0)) goto fail;
30078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30080 {
30081 PyThreadState* __tstate = wxPyBeginAllowThreads();
30082 result = (PyObject *)wxMenu_GetMenuItems(arg1);
30083
30084 wxPyEndAllowThreads(__tstate);
30085 if (PyErr_Occurred()) SWIG_fail;
30086 }
30087 resultobj = result;
30088 return resultobj;
30089 fail:
30090 return NULL;
30091}
30092
30093
30094static PyObject *_wrap_Menu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) {
30095 PyObject *resultobj;
30096 wxMenu *arg1 = (wxMenu *) 0 ;
30097 wxString *arg2 = 0 ;
30098 int result;
30099 bool temp2 = False ;
30100 PyObject * obj0 = 0 ;
30101 PyObject * obj1 = 0 ;
30102 char *kwnames[] = {
30103 (char *) "self",(char *) "item", NULL
30104 };
30105
30106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) goto fail;
30107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30109 {
30110 arg2 = wxString_in_helper(obj1);
30111 if (arg2 == NULL) SWIG_fail;
30112 temp2 = True;
30113 }
30114 {
30115 PyThreadState* __tstate = wxPyBeginAllowThreads();
30116 result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2);
30117
30118 wxPyEndAllowThreads(__tstate);
30119 if (PyErr_Occurred()) SWIG_fail;
30120 }
30121 resultobj = SWIG_FromInt((int)result);
30122 {
30123 if (temp2)
30124 delete arg2;
30125 }
30126 return resultobj;
30127 fail:
30128 {
30129 if (temp2)
30130 delete arg2;
30131 }
30132 return NULL;
30133}
30134
30135
30136static PyObject *_wrap_Menu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) {
30137 PyObject *resultobj;
30138 wxMenu *arg1 = (wxMenu *) 0 ;
30139 int arg2 ;
30140 wxMenuItem *result;
30141 PyObject * obj0 = 0 ;
30142 PyObject * obj1 = 0 ;
30143 char *kwnames[] = {
30144 (char *) "self",(char *) "id", NULL
30145 };
30146
30147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemById",kwnames,&obj0,&obj1)) goto fail;
30148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30150 arg2 = (int) SWIG_AsInt(obj1);
30151 if (PyErr_Occurred()) SWIG_fail;
30152 {
30153 PyThreadState* __tstate = wxPyBeginAllowThreads();
30154 result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2);
30155
30156 wxPyEndAllowThreads(__tstate);
30157 if (PyErr_Occurred()) SWIG_fail;
30158 }
30159 {
412d302d 30160 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
30161 }
30162 return resultobj;
30163 fail:
30164 return NULL;
30165}
30166
30167
30168static PyObject *_wrap_Menu_FindItemByPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
30169 PyObject *resultobj;
30170 wxMenu *arg1 = (wxMenu *) 0 ;
30171 size_t arg2 ;
30172 wxMenuItem *result;
30173 PyObject * obj0 = 0 ;
30174 PyObject * obj1 = 0 ;
30175 char *kwnames[] = {
30176 (char *) "self",(char *) "position", NULL
30177 };
30178
30179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) goto fail;
30180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30182 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
30183 if (PyErr_Occurred()) SWIG_fail;
30184 {
30185 PyThreadState* __tstate = wxPyBeginAllowThreads();
30186 result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2);
30187
30188 wxPyEndAllowThreads(__tstate);
30189 if (PyErr_Occurred()) SWIG_fail;
30190 }
30191 {
412d302d 30192 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
30193 }
30194 return resultobj;
30195 fail:
30196 return NULL;
30197}
30198
30199
30200static PyObject *_wrap_Menu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
30201 PyObject *resultobj;
30202 wxMenu *arg1 = (wxMenu *) 0 ;
30203 int arg2 ;
30204 bool arg3 ;
30205 PyObject * obj0 = 0 ;
30206 PyObject * obj1 = 0 ;
30207 PyObject * obj2 = 0 ;
30208 char *kwnames[] = {
30209 (char *) "self",(char *) "id",(char *) "enable", NULL
30210 };
30211
30212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail;
30213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30215 arg2 = (int) SWIG_AsInt(obj1);
30216 if (PyErr_Occurred()) SWIG_fail;
30217 arg3 = (bool) SWIG_AsBool(obj2);
30218 if (PyErr_Occurred()) SWIG_fail;
30219 {
30220 PyThreadState* __tstate = wxPyBeginAllowThreads();
30221 (arg1)->Enable(arg2,arg3);
30222
30223 wxPyEndAllowThreads(__tstate);
30224 if (PyErr_Occurred()) SWIG_fail;
30225 }
30226 Py_INCREF(Py_None); resultobj = Py_None;
30227 return resultobj;
30228 fail:
30229 return NULL;
30230}
30231
30232
30233static PyObject *_wrap_Menu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
30234 PyObject *resultobj;
30235 wxMenu *arg1 = (wxMenu *) 0 ;
30236 int arg2 ;
30237 bool result;
30238 PyObject * obj0 = 0 ;
30239 PyObject * obj1 = 0 ;
30240 char *kwnames[] = {
30241 (char *) "self",(char *) "id", NULL
30242 };
30243
30244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsEnabled",kwnames,&obj0,&obj1)) goto fail;
30245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30247 arg2 = (int) SWIG_AsInt(obj1);
30248 if (PyErr_Occurred()) SWIG_fail;
30249 {
30250 PyThreadState* __tstate = wxPyBeginAllowThreads();
30251 result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2);
30252
30253 wxPyEndAllowThreads(__tstate);
30254 if (PyErr_Occurred()) SWIG_fail;
30255 }
30256 {
30257 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30258 }
30259 return resultobj;
30260 fail:
30261 return NULL;
30262}
30263
30264
30265static PyObject *_wrap_Menu_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
30266 PyObject *resultobj;
30267 wxMenu *arg1 = (wxMenu *) 0 ;
30268 int arg2 ;
30269 bool arg3 ;
30270 PyObject * obj0 = 0 ;
30271 PyObject * obj1 = 0 ;
30272 PyObject * obj2 = 0 ;
30273 char *kwnames[] = {
30274 (char *) "self",(char *) "id",(char *) "check", NULL
30275 };
30276
30277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Check",kwnames,&obj0,&obj1,&obj2)) goto fail;
30278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30280 arg2 = (int) SWIG_AsInt(obj1);
30281 if (PyErr_Occurred()) SWIG_fail;
30282 arg3 = (bool) SWIG_AsBool(obj2);
30283 if (PyErr_Occurred()) SWIG_fail;
30284 {
30285 PyThreadState* __tstate = wxPyBeginAllowThreads();
30286 (arg1)->Check(arg2,arg3);
30287
30288 wxPyEndAllowThreads(__tstate);
30289 if (PyErr_Occurred()) SWIG_fail;
30290 }
30291 Py_INCREF(Py_None); resultobj = Py_None;
30292 return resultobj;
30293 fail:
30294 return NULL;
30295}
30296
30297
30298static PyObject *_wrap_Menu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
30299 PyObject *resultobj;
30300 wxMenu *arg1 = (wxMenu *) 0 ;
30301 int arg2 ;
30302 bool result;
30303 PyObject * obj0 = 0 ;
30304 PyObject * obj1 = 0 ;
30305 char *kwnames[] = {
30306 (char *) "self",(char *) "id", NULL
30307 };
30308
30309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsChecked",kwnames,&obj0,&obj1)) goto fail;
30310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30312 arg2 = (int) SWIG_AsInt(obj1);
30313 if (PyErr_Occurred()) SWIG_fail;
30314 {
30315 PyThreadState* __tstate = wxPyBeginAllowThreads();
30316 result = (bool)((wxMenu const *)arg1)->IsChecked(arg2);
30317
30318 wxPyEndAllowThreads(__tstate);
30319 if (PyErr_Occurred()) SWIG_fail;
30320 }
30321 {
30322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30323 }
30324 return resultobj;
30325 fail:
30326 return NULL;
30327}
30328
30329
30330static PyObject *_wrap_Menu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
30331 PyObject *resultobj;
30332 wxMenu *arg1 = (wxMenu *) 0 ;
30333 int arg2 ;
30334 wxString *arg3 = 0 ;
30335 bool temp3 = False ;
30336 PyObject * obj0 = 0 ;
30337 PyObject * obj1 = 0 ;
30338 PyObject * obj2 = 0 ;
30339 char *kwnames[] = {
30340 (char *) "self",(char *) "id",(char *) "label", NULL
30341 };
30342
30343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail;
30344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30346 arg2 = (int) SWIG_AsInt(obj1);
30347 if (PyErr_Occurred()) SWIG_fail;
30348 {
30349 arg3 = wxString_in_helper(obj2);
30350 if (arg3 == NULL) SWIG_fail;
30351 temp3 = True;
30352 }
30353 {
30354 PyThreadState* __tstate = wxPyBeginAllowThreads();
30355 (arg1)->SetLabel(arg2,(wxString const &)*arg3);
30356
30357 wxPyEndAllowThreads(__tstate);
30358 if (PyErr_Occurred()) SWIG_fail;
30359 }
30360 Py_INCREF(Py_None); resultobj = Py_None;
30361 {
30362 if (temp3)
30363 delete arg3;
30364 }
30365 return resultobj;
30366 fail:
30367 {
30368 if (temp3)
30369 delete arg3;
30370 }
30371 return NULL;
30372}
30373
30374
30375static PyObject *_wrap_Menu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
30376 PyObject *resultobj;
30377 wxMenu *arg1 = (wxMenu *) 0 ;
30378 int arg2 ;
30379 wxString result;
30380 PyObject * obj0 = 0 ;
30381 PyObject * obj1 = 0 ;
30382 char *kwnames[] = {
30383 (char *) "self",(char *) "id", NULL
30384 };
30385
30386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetLabel",kwnames,&obj0,&obj1)) goto fail;
30387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30389 arg2 = (int) SWIG_AsInt(obj1);
30390 if (PyErr_Occurred()) SWIG_fail;
30391 {
30392 PyThreadState* __tstate = wxPyBeginAllowThreads();
30393 result = ((wxMenu const *)arg1)->GetLabel(arg2);
30394
30395 wxPyEndAllowThreads(__tstate);
30396 if (PyErr_Occurred()) SWIG_fail;
30397 }
30398 {
30399#if wxUSE_UNICODE
30400 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30401#else
30402 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30403#endif
30404 }
30405 return resultobj;
30406 fail:
30407 return NULL;
30408}
30409
30410
30411static PyObject *_wrap_Menu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
30412 PyObject *resultobj;
30413 wxMenu *arg1 = (wxMenu *) 0 ;
30414 int arg2 ;
30415 wxString *arg3 = 0 ;
30416 bool temp3 = False ;
30417 PyObject * obj0 = 0 ;
30418 PyObject * obj1 = 0 ;
30419 PyObject * obj2 = 0 ;
30420 char *kwnames[] = {
30421 (char *) "self",(char *) "id",(char *) "helpString", NULL
30422 };
30423
30424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail;
30425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30427 arg2 = (int) SWIG_AsInt(obj1);
30428 if (PyErr_Occurred()) SWIG_fail;
30429 {
30430 arg3 = wxString_in_helper(obj2);
30431 if (arg3 == NULL) SWIG_fail;
30432 temp3 = True;
30433 }
30434 {
30435 PyThreadState* __tstate = wxPyBeginAllowThreads();
30436 (arg1)->SetHelpString(arg2,(wxString const &)*arg3);
30437
30438 wxPyEndAllowThreads(__tstate);
30439 if (PyErr_Occurred()) SWIG_fail;
30440 }
30441 Py_INCREF(Py_None); resultobj = Py_None;
30442 {
30443 if (temp3)
30444 delete arg3;
30445 }
30446 return resultobj;
30447 fail:
30448 {
30449 if (temp3)
30450 delete arg3;
30451 }
30452 return NULL;
30453}
30454
30455
30456static PyObject *_wrap_Menu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
30457 PyObject *resultobj;
30458 wxMenu *arg1 = (wxMenu *) 0 ;
30459 int arg2 ;
30460 wxString result;
30461 PyObject * obj0 = 0 ;
30462 PyObject * obj1 = 0 ;
30463 char *kwnames[] = {
30464 (char *) "self",(char *) "id", NULL
30465 };
30466
30467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetHelpString",kwnames,&obj0,&obj1)) goto fail;
30468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30470 arg2 = (int) SWIG_AsInt(obj1);
30471 if (PyErr_Occurred()) SWIG_fail;
30472 {
30473 PyThreadState* __tstate = wxPyBeginAllowThreads();
30474 result = ((wxMenu const *)arg1)->GetHelpString(arg2);
30475
30476 wxPyEndAllowThreads(__tstate);
30477 if (PyErr_Occurred()) SWIG_fail;
30478 }
30479 {
30480#if wxUSE_UNICODE
30481 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30482#else
30483 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30484#endif
30485 }
30486 return resultobj;
30487 fail:
30488 return NULL;
30489}
30490
30491
30492static PyObject *_wrap_Menu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
30493 PyObject *resultobj;
30494 wxMenu *arg1 = (wxMenu *) 0 ;
30495 wxString *arg2 = 0 ;
30496 bool temp2 = False ;
30497 PyObject * obj0 = 0 ;
30498 PyObject * obj1 = 0 ;
30499 char *kwnames[] = {
30500 (char *) "self",(char *) "title", NULL
30501 };
30502
30503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) goto fail;
30504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30506 {
30507 arg2 = wxString_in_helper(obj1);
30508 if (arg2 == NULL) SWIG_fail;
30509 temp2 = True;
30510 }
30511 {
30512 PyThreadState* __tstate = wxPyBeginAllowThreads();
30513 (arg1)->SetTitle((wxString const &)*arg2);
30514
30515 wxPyEndAllowThreads(__tstate);
30516 if (PyErr_Occurred()) SWIG_fail;
30517 }
30518 Py_INCREF(Py_None); resultobj = Py_None;
30519 {
30520 if (temp2)
30521 delete arg2;
30522 }
30523 return resultobj;
30524 fail:
30525 {
30526 if (temp2)
30527 delete arg2;
30528 }
30529 return NULL;
30530}
30531
30532
30533static PyObject *_wrap_Menu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
30534 PyObject *resultobj;
30535 wxMenu *arg1 = (wxMenu *) 0 ;
30536 wxString result;
30537 PyObject * obj0 = 0 ;
30538 char *kwnames[] = {
30539 (char *) "self", NULL
30540 };
30541
30542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetTitle",kwnames,&obj0)) goto fail;
30543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30545 {
30546 PyThreadState* __tstate = wxPyBeginAllowThreads();
30547 result = ((wxMenu const *)arg1)->GetTitle();
30548
30549 wxPyEndAllowThreads(__tstate);
30550 if (PyErr_Occurred()) SWIG_fail;
30551 }
30552 {
30553#if wxUSE_UNICODE
30554 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30555#else
30556 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30557#endif
30558 }
30559 return resultobj;
30560 fail:
30561 return NULL;
30562}
30563
30564
30565static PyObject *_wrap_Menu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
30566 PyObject *resultobj;
30567 wxMenu *arg1 = (wxMenu *) 0 ;
30568 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
30569 PyObject * obj0 = 0 ;
30570 PyObject * obj1 = 0 ;
30571 char *kwnames[] = {
30572 (char *) "self",(char *) "handler", NULL
30573 };
30574
30575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) goto fail;
30576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30578 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
30579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30580 {
30581 PyThreadState* __tstate = wxPyBeginAllowThreads();
30582 (arg1)->SetEventHandler(arg2);
30583
30584 wxPyEndAllowThreads(__tstate);
30585 if (PyErr_Occurred()) SWIG_fail;
30586 }
30587 Py_INCREF(Py_None); resultobj = Py_None;
30588 return resultobj;
30589 fail:
30590 return NULL;
30591}
30592
30593
30594static PyObject *_wrap_Menu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) {
30595 PyObject *resultobj;
30596 wxMenu *arg1 = (wxMenu *) 0 ;
30597 wxEvtHandler *result;
30598 PyObject * obj0 = 0 ;
30599 char *kwnames[] = {
30600 (char *) "self", NULL
30601 };
30602
30603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetEventHandler",kwnames,&obj0)) goto fail;
30604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30606 {
30607 PyThreadState* __tstate = wxPyBeginAllowThreads();
30608 result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler();
30609
30610 wxPyEndAllowThreads(__tstate);
30611 if (PyErr_Occurred()) SWIG_fail;
30612 }
30613 {
412d302d 30614 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
30615 }
30616 return resultobj;
30617 fail:
30618 return NULL;
30619}
30620
30621
30622static PyObject *_wrap_Menu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
30623 PyObject *resultobj;
30624 wxMenu *arg1 = (wxMenu *) 0 ;
30625 wxWindow *arg2 = (wxWindow *) 0 ;
30626 PyObject * obj0 = 0 ;
30627 PyObject * obj1 = 0 ;
30628 char *kwnames[] = {
30629 (char *) "self",(char *) "win", NULL
30630 };
30631
30632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) goto fail;
30633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30635 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30637 {
30638 PyThreadState* __tstate = wxPyBeginAllowThreads();
30639 (arg1)->SetInvokingWindow(arg2);
30640
30641 wxPyEndAllowThreads(__tstate);
30642 if (PyErr_Occurred()) SWIG_fail;
30643 }
30644 Py_INCREF(Py_None); resultobj = Py_None;
30645 return resultobj;
30646 fail:
30647 return NULL;
30648}
30649
30650
30651static PyObject *_wrap_Menu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
30652 PyObject *resultobj;
30653 wxMenu *arg1 = (wxMenu *) 0 ;
30654 wxWindow *result;
30655 PyObject * obj0 = 0 ;
30656 char *kwnames[] = {
30657 (char *) "self", NULL
30658 };
30659
30660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetInvokingWindow",kwnames,&obj0)) goto fail;
30661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30663 {
30664 PyThreadState* __tstate = wxPyBeginAllowThreads();
30665 result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow();
30666
30667 wxPyEndAllowThreads(__tstate);
30668 if (PyErr_Occurred()) SWIG_fail;
30669 }
30670 {
412d302d 30671 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
30672 }
30673 return resultobj;
30674 fail:
30675 return NULL;
30676}
30677
30678
30679static PyObject *_wrap_Menu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
30680 PyObject *resultobj;
30681 wxMenu *arg1 = (wxMenu *) 0 ;
30682 long result;
30683 PyObject * obj0 = 0 ;
30684 char *kwnames[] = {
30685 (char *) "self", NULL
30686 };
30687
30688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetStyle",kwnames,&obj0)) goto fail;
30689 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30690 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30691 {
30692 PyThreadState* __tstate = wxPyBeginAllowThreads();
30693 result = (long)((wxMenu const *)arg1)->GetStyle();
30694
30695 wxPyEndAllowThreads(__tstate);
30696 if (PyErr_Occurred()) SWIG_fail;
30697 }
30698 resultobj = SWIG_FromLong((long)result);
30699 return resultobj;
30700 fail:
30701 return NULL;
30702}
30703
30704
30705static PyObject *_wrap_Menu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) {
30706 PyObject *resultobj;
30707 wxMenu *arg1 = (wxMenu *) 0 ;
30708 wxEvtHandler *arg2 = (wxEvtHandler *) NULL ;
30709 PyObject * obj0 = 0 ;
30710 PyObject * obj1 = 0 ;
30711 char *kwnames[] = {
30712 (char *) "self",(char *) "source", NULL
30713 };
30714
30715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) goto fail;
30716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30717 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30718 if (obj1) {
30719 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
30720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30721 }
30722 {
30723 PyThreadState* __tstate = wxPyBeginAllowThreads();
30724 (arg1)->UpdateUI(arg2);
30725
30726 wxPyEndAllowThreads(__tstate);
30727 if (PyErr_Occurred()) SWIG_fail;
30728 }
30729 Py_INCREF(Py_None); resultobj = Py_None;
30730 return resultobj;
30731 fail:
30732 return NULL;
30733}
30734
30735
30736static PyObject *_wrap_Menu_GetMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) {
30737 PyObject *resultobj;
30738 wxMenu *arg1 = (wxMenu *) 0 ;
30739 wxMenuBar *result;
30740 PyObject * obj0 = 0 ;
30741 char *kwnames[] = {
30742 (char *) "self", NULL
30743 };
30744
30745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetMenuBar",kwnames,&obj0)) goto fail;
30746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30748 {
30749 PyThreadState* __tstate = wxPyBeginAllowThreads();
30750 result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar();
30751
30752 wxPyEndAllowThreads(__tstate);
30753 if (PyErr_Occurred()) SWIG_fail;
30754 }
30755 {
412d302d 30756 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
30757 }
30758 return resultobj;
30759 fail:
30760 return NULL;
30761}
30762
30763
30764static PyObject *_wrap_Menu_Attach(PyObject *self, PyObject *args, PyObject *kwargs) {
30765 PyObject *resultobj;
30766 wxMenu *arg1 = (wxMenu *) 0 ;
30767 wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ;
30768 PyObject * obj0 = 0 ;
30769 PyObject * obj1 = 0 ;
30770 char *kwnames[] = {
30771 (char *) "self",(char *) "menubar", NULL
30772 };
30773
30774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) goto fail;
30775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30777 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenuBarBase,
30778 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30779 {
30780 PyThreadState* __tstate = wxPyBeginAllowThreads();
30781 (arg1)->Attach(arg2);
30782
30783 wxPyEndAllowThreads(__tstate);
30784 if (PyErr_Occurred()) SWIG_fail;
30785 }
30786 Py_INCREF(Py_None); resultobj = Py_None;
30787 return resultobj;
30788 fail:
30789 return NULL;
30790}
30791
30792
30793static PyObject *_wrap_Menu_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
30794 PyObject *resultobj;
30795 wxMenu *arg1 = (wxMenu *) 0 ;
30796 PyObject * obj0 = 0 ;
30797 char *kwnames[] = {
30798 (char *) "self", NULL
30799 };
30800
30801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_Detach",kwnames,&obj0)) goto fail;
30802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30804 {
30805 PyThreadState* __tstate = wxPyBeginAllowThreads();
30806 (arg1)->Detach();
30807
30808 wxPyEndAllowThreads(__tstate);
30809 if (PyErr_Occurred()) SWIG_fail;
30810 }
30811 Py_INCREF(Py_None); resultobj = Py_None;
30812 return resultobj;
30813 fail:
30814 return NULL;
30815}
30816
30817
30818static PyObject *_wrap_Menu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) {
30819 PyObject *resultobj;
30820 wxMenu *arg1 = (wxMenu *) 0 ;
30821 bool result;
30822 PyObject * obj0 = 0 ;
30823 char *kwnames[] = {
30824 (char *) "self", NULL
30825 };
30826
30827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_IsAttached",kwnames,&obj0)) goto fail;
30828 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30829 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30830 {
30831 PyThreadState* __tstate = wxPyBeginAllowThreads();
30832 result = (bool)((wxMenu const *)arg1)->IsAttached();
30833
30834 wxPyEndAllowThreads(__tstate);
30835 if (PyErr_Occurred()) SWIG_fail;
30836 }
30837 {
30838 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30839 }
30840 return resultobj;
30841 fail:
30842 return NULL;
30843}
30844
30845
30846static PyObject *_wrap_Menu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
30847 PyObject *resultobj;
30848 wxMenu *arg1 = (wxMenu *) 0 ;
30849 wxMenu *arg2 = (wxMenu *) 0 ;
30850 PyObject * obj0 = 0 ;
30851 PyObject * obj1 = 0 ;
30852 char *kwnames[] = {
30853 (char *) "self",(char *) "parent", NULL
30854 };
30855
30856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) goto fail;
30857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30859 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
30860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30861 {
30862 PyThreadState* __tstate = wxPyBeginAllowThreads();
30863 (arg1)->SetParent(arg2);
30864
30865 wxPyEndAllowThreads(__tstate);
30866 if (PyErr_Occurred()) SWIG_fail;
30867 }
30868 Py_INCREF(Py_None); resultobj = Py_None;
30869 return resultobj;
30870 fail:
30871 return NULL;
30872}
30873
30874
30875static PyObject *_wrap_Menu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) {
30876 PyObject *resultobj;
30877 wxMenu *arg1 = (wxMenu *) 0 ;
30878 wxMenu *result;
30879 PyObject * obj0 = 0 ;
30880 char *kwnames[] = {
30881 (char *) "self", NULL
30882 };
30883
30884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Menu_GetParent",kwnames,&obj0)) goto fail;
30885 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
30886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30887 {
30888 PyThreadState* __tstate = wxPyBeginAllowThreads();
30889 result = (wxMenu *)((wxMenu const *)arg1)->GetParent();
30890
30891 wxPyEndAllowThreads(__tstate);
30892 if (PyErr_Occurred()) SWIG_fail;
30893 }
30894 {
412d302d 30895 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
30896 }
30897 return resultobj;
30898 fail:
30899 return NULL;
30900}
30901
30902
30903static PyObject * Menu_swigregister(PyObject *self, PyObject *args) {
30904 PyObject *obj;
30905 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30906 SWIG_TypeClientData(SWIGTYPE_p_wxMenu, obj);
30907 Py_INCREF(obj);
30908 return Py_BuildValue((char *)"");
30909}
30910static PyObject *_wrap_new_MenuBar(PyObject *self, PyObject *args, PyObject *kwargs) {
30911 PyObject *resultobj;
30912 long arg1 = (long) 0 ;
30913 wxMenuBar *result;
30914 PyObject * obj0 = 0 ;
30915 char *kwnames[] = {
30916 (char *) "style", NULL
30917 };
30918
30919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MenuBar",kwnames,&obj0)) goto fail;
30920 if (obj0) {
30921 arg1 = (long) SWIG_AsLong(obj0);
30922 if (PyErr_Occurred()) SWIG_fail;
30923 }
30924 {
0439c23b 30925 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
30926 PyThreadState* __tstate = wxPyBeginAllowThreads();
30927 result = (wxMenuBar *)new wxMenuBar(arg1);
30928
30929 wxPyEndAllowThreads(__tstate);
110da5b0 30930 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 30931 }
b0f7404b 30932 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMenuBar, 1);
d55e5bfc
RD
30933 return resultobj;
30934 fail:
30935 return NULL;
30936}
30937
30938
30939static PyObject *_wrap_MenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
30940 PyObject *resultobj;
30941 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
30942 wxMenu *arg2 = (wxMenu *) 0 ;
30943 wxString *arg3 = 0 ;
30944 bool result;
30945 bool temp3 = False ;
30946 PyObject * obj0 = 0 ;
30947 PyObject * obj1 = 0 ;
30948 PyObject * obj2 = 0 ;
30949 char *kwnames[] = {
30950 (char *) "self",(char *) "menu",(char *) "title", NULL
30951 };
30952
30953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) goto fail;
30954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
30955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30956 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
30957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30958 {
30959 arg3 = wxString_in_helper(obj2);
30960 if (arg3 == NULL) SWIG_fail;
30961 temp3 = True;
30962 }
30963 {
30964 PyThreadState* __tstate = wxPyBeginAllowThreads();
30965 result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3);
30966
30967 wxPyEndAllowThreads(__tstate);
30968 if (PyErr_Occurred()) SWIG_fail;
30969 }
30970 {
30971 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30972 }
30973 {
30974 if (temp3)
30975 delete arg3;
30976 }
30977 return resultobj;
30978 fail:
30979 {
30980 if (temp3)
30981 delete arg3;
30982 }
30983 return NULL;
30984}
30985
30986
30987static PyObject *_wrap_MenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
30988 PyObject *resultobj;
30989 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
30990 size_t arg2 ;
30991 wxMenu *arg3 = (wxMenu *) 0 ;
30992 wxString *arg4 = 0 ;
30993 bool result;
30994 bool temp4 = False ;
30995 PyObject * obj0 = 0 ;
30996 PyObject * obj1 = 0 ;
30997 PyObject * obj2 = 0 ;
30998 PyObject * obj3 = 0 ;
30999 char *kwnames[] = {
31000 (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL
31001 };
31002
31003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
31004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31006 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
31007 if (PyErr_Occurred()) SWIG_fail;
31008 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu,
31009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31010 {
31011 arg4 = wxString_in_helper(obj3);
31012 if (arg4 == NULL) SWIG_fail;
31013 temp4 = True;
31014 }
31015 {
31016 PyThreadState* __tstate = wxPyBeginAllowThreads();
31017 result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4);
31018
31019 wxPyEndAllowThreads(__tstate);
31020 if (PyErr_Occurred()) SWIG_fail;
31021 }
31022 {
31023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31024 }
31025 {
31026 if (temp4)
31027 delete arg4;
31028 }
31029 return resultobj;
31030 fail:
31031 {
31032 if (temp4)
31033 delete arg4;
31034 }
31035 return NULL;
31036}
31037
31038
31039static PyObject *_wrap_MenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) {
31040 PyObject *resultobj;
31041 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31042 size_t result;
31043 PyObject * obj0 = 0 ;
31044 char *kwnames[] = {
31045 (char *) "self", NULL
31046 };
31047
31048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetMenuCount",kwnames,&obj0)) goto fail;
31049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31051 {
31052 PyThreadState* __tstate = wxPyBeginAllowThreads();
31053 result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount();
31054
31055 wxPyEndAllowThreads(__tstate);
31056 if (PyErr_Occurred()) SWIG_fail;
31057 }
31058 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
31059 return resultobj;
31060 fail:
31061 return NULL;
31062}
31063
31064
31065static PyObject *_wrap_MenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
31066 PyObject *resultobj;
31067 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31068 size_t arg2 ;
31069 wxMenu *result;
31070 PyObject * obj0 = 0 ;
31071 PyObject * obj1 = 0 ;
31072 char *kwnames[] = {
31073 (char *) "self",(char *) "pos", NULL
31074 };
31075
31076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) goto fail;
31077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31079 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
31080 if (PyErr_Occurred()) SWIG_fail;
31081 {
31082 PyThreadState* __tstate = wxPyBeginAllowThreads();
31083 result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2);
31084
31085 wxPyEndAllowThreads(__tstate);
31086 if (PyErr_Occurred()) SWIG_fail;
31087 }
31088 {
412d302d 31089 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
31090 }
31091 return resultobj;
31092 fail:
31093 return NULL;
31094}
31095
31096
31097static PyObject *_wrap_MenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
31098 PyObject *resultobj;
31099 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31100 size_t arg2 ;
31101 wxMenu *arg3 = (wxMenu *) 0 ;
31102 wxString *arg4 = 0 ;
31103 wxMenu *result;
31104 bool temp4 = False ;
31105 PyObject * obj0 = 0 ;
31106 PyObject * obj1 = 0 ;
31107 PyObject * obj2 = 0 ;
31108 PyObject * obj3 = 0 ;
31109 char *kwnames[] = {
31110 (char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL
31111 };
31112
31113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
31114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31116 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
31117 if (PyErr_Occurred()) SWIG_fail;
31118 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMenu,
31119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31120 {
31121 arg4 = wxString_in_helper(obj3);
31122 if (arg4 == NULL) SWIG_fail;
31123 temp4 = True;
31124 }
31125 {
31126 PyThreadState* __tstate = wxPyBeginAllowThreads();
31127 result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
31128
31129 wxPyEndAllowThreads(__tstate);
31130 if (PyErr_Occurred()) SWIG_fail;
31131 }
31132 {
412d302d 31133 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
31134 }
31135 {
31136 if (temp4)
31137 delete arg4;
31138 }
31139 return resultobj;
31140 fail:
31141 {
31142 if (temp4)
31143 delete arg4;
31144 }
31145 return NULL;
31146}
31147
31148
31149static PyObject *_wrap_MenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
31150 PyObject *resultobj;
31151 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31152 size_t arg2 ;
31153 wxMenu *result;
31154 PyObject * obj0 = 0 ;
31155 PyObject * obj1 = 0 ;
31156 char *kwnames[] = {
31157 (char *) "self",(char *) "pos", NULL
31158 };
31159
31160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) goto fail;
31161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31163 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
31164 if (PyErr_Occurred()) SWIG_fail;
31165 {
31166 PyThreadState* __tstate = wxPyBeginAllowThreads();
31167 result = (wxMenu *)(arg1)->Remove(arg2);
31168
31169 wxPyEndAllowThreads(__tstate);
31170 if (PyErr_Occurred()) SWIG_fail;
31171 }
31172 {
412d302d 31173 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
31174 }
31175 return resultobj;
31176 fail:
31177 return NULL;
31178}
31179
31180
31181static PyObject *_wrap_MenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) {
31182 PyObject *resultobj;
31183 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31184 size_t arg2 ;
31185 bool arg3 ;
31186 PyObject * obj0 = 0 ;
31187 PyObject * obj1 = 0 ;
31188 PyObject * obj2 = 0 ;
31189 char *kwnames[] = {
31190 (char *) "self",(char *) "pos",(char *) "enable", NULL
31191 };
31192
31193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) goto fail;
31194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31196 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
31197 if (PyErr_Occurred()) SWIG_fail;
31198 arg3 = (bool) SWIG_AsBool(obj2);
31199 if (PyErr_Occurred()) SWIG_fail;
31200 {
31201 PyThreadState* __tstate = wxPyBeginAllowThreads();
31202 (arg1)->EnableTop(arg2,arg3);
31203
31204 wxPyEndAllowThreads(__tstate);
31205 if (PyErr_Occurred()) SWIG_fail;
31206 }
31207 Py_INCREF(Py_None); resultobj = Py_None;
31208 return resultobj;
31209 fail:
31210 return NULL;
31211}
31212
31213
31214static PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *self, PyObject *args, PyObject *kwargs) {
31215 PyObject *resultobj;
31216 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31217 size_t arg2 ;
31218 bool result;
31219 PyObject * obj0 = 0 ;
31220 PyObject * obj1 = 0 ;
31221 char *kwnames[] = {
31222 (char *) "self",(char *) "pos", NULL
31223 };
31224
31225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) goto fail;
31226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31228 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
31229 if (PyErr_Occurred()) SWIG_fail;
31230 {
31231 PyThreadState* __tstate = wxPyBeginAllowThreads();
31232 result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2);
31233
31234 wxPyEndAllowThreads(__tstate);
31235 if (PyErr_Occurred()) SWIG_fail;
31236 }
31237 {
31238 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31239 }
31240 return resultobj;
31241 fail:
31242 return NULL;
31243}
31244
31245
31246static PyObject *_wrap_MenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) {
31247 PyObject *resultobj;
31248 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31249 size_t arg2 ;
31250 wxString *arg3 = 0 ;
31251 bool temp3 = False ;
31252 PyObject * obj0 = 0 ;
31253 PyObject * obj1 = 0 ;
31254 PyObject * obj2 = 0 ;
31255 char *kwnames[] = {
31256 (char *) "self",(char *) "pos",(char *) "label", NULL
31257 };
31258
31259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) goto fail;
31260 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31262 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
31263 if (PyErr_Occurred()) SWIG_fail;
31264 {
31265 arg3 = wxString_in_helper(obj2);
31266 if (arg3 == NULL) SWIG_fail;
31267 temp3 = True;
31268 }
31269 {
31270 PyThreadState* __tstate = wxPyBeginAllowThreads();
31271 (arg1)->SetLabelTop(arg2,(wxString const &)*arg3);
31272
31273 wxPyEndAllowThreads(__tstate);
31274 if (PyErr_Occurred()) SWIG_fail;
31275 }
31276 Py_INCREF(Py_None); resultobj = Py_None;
31277 {
31278 if (temp3)
31279 delete arg3;
31280 }
31281 return resultobj;
31282 fail:
31283 {
31284 if (temp3)
31285 delete arg3;
31286 }
31287 return NULL;
31288}
31289
31290
31291static PyObject *_wrap_MenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) {
31292 PyObject *resultobj;
31293 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31294 size_t arg2 ;
31295 wxString result;
31296 PyObject * obj0 = 0 ;
31297 PyObject * obj1 = 0 ;
31298 char *kwnames[] = {
31299 (char *) "self",(char *) "pos", NULL
31300 };
31301
31302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) goto fail;
31303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31305 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
31306 if (PyErr_Occurred()) SWIG_fail;
31307 {
31308 PyThreadState* __tstate = wxPyBeginAllowThreads();
31309 result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2);
31310
31311 wxPyEndAllowThreads(__tstate);
31312 if (PyErr_Occurred()) SWIG_fail;
31313 }
31314 {
31315#if wxUSE_UNICODE
31316 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
31317#else
31318 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
31319#endif
31320 }
31321 return resultobj;
31322 fail:
31323 return NULL;
31324}
31325
31326
31327static PyObject *_wrap_MenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) {
31328 PyObject *resultobj;
31329 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31330 wxString *arg2 = 0 ;
31331 wxString *arg3 = 0 ;
31332 int result;
31333 bool temp2 = False ;
31334 bool temp3 = False ;
31335 PyObject * obj0 = 0 ;
31336 PyObject * obj1 = 0 ;
31337 PyObject * obj2 = 0 ;
31338 char *kwnames[] = {
31339 (char *) "self",(char *) "menu",(char *) "item", NULL
31340 };
31341
31342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
31343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31345 {
31346 arg2 = wxString_in_helper(obj1);
31347 if (arg2 == NULL) SWIG_fail;
31348 temp2 = True;
31349 }
31350 {
31351 arg3 = wxString_in_helper(obj2);
31352 if (arg3 == NULL) SWIG_fail;
31353 temp3 = True;
31354 }
31355 {
31356 PyThreadState* __tstate = wxPyBeginAllowThreads();
31357 result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3);
31358
31359 wxPyEndAllowThreads(__tstate);
31360 if (PyErr_Occurred()) SWIG_fail;
31361 }
31362 resultobj = SWIG_FromInt((int)result);
31363 {
31364 if (temp2)
31365 delete arg2;
31366 }
31367 {
31368 if (temp3)
31369 delete arg3;
31370 }
31371 return resultobj;
31372 fail:
31373 {
31374 if (temp2)
31375 delete arg2;
31376 }
31377 {
31378 if (temp3)
31379 delete arg3;
31380 }
31381 return NULL;
31382}
31383
31384
31385static PyObject *_wrap_MenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) {
31386 PyObject *resultobj;
31387 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31388 int arg2 ;
31389 wxMenuItem *result;
31390 PyObject * obj0 = 0 ;
31391 PyObject * obj1 = 0 ;
31392 char *kwnames[] = {
31393 (char *) "self",(char *) "id", NULL
31394 };
31395
31396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindItemById",kwnames,&obj0,&obj1)) goto fail;
31397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31399 arg2 = (int) SWIG_AsInt(obj1);
31400 if (PyErr_Occurred()) SWIG_fail;
31401 {
31402 PyThreadState* __tstate = wxPyBeginAllowThreads();
31403 result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2);
31404
31405 wxPyEndAllowThreads(__tstate);
31406 if (PyErr_Occurred()) SWIG_fail;
31407 }
31408 {
412d302d 31409 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
31410 }
31411 return resultobj;
31412 fail:
31413 return NULL;
31414}
31415
31416
31417static PyObject *_wrap_MenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
31418 PyObject *resultobj;
31419 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31420 wxString *arg2 = 0 ;
31421 int result;
31422 bool temp2 = False ;
31423 PyObject * obj0 = 0 ;
31424 PyObject * obj1 = 0 ;
31425 char *kwnames[] = {
31426 (char *) "self",(char *) "title", NULL
31427 };
31428
31429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) goto fail;
31430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31432 {
31433 arg2 = wxString_in_helper(obj1);
31434 if (arg2 == NULL) SWIG_fail;
31435 temp2 = True;
31436 }
31437 {
31438 PyThreadState* __tstate = wxPyBeginAllowThreads();
31439 result = (int)((wxMenuBar const *)arg1)->FindMenu((wxString const &)*arg2);
31440
31441 wxPyEndAllowThreads(__tstate);
31442 if (PyErr_Occurred()) SWIG_fail;
31443 }
31444 resultobj = SWIG_FromInt((int)result);
31445 {
31446 if (temp2)
31447 delete arg2;
31448 }
31449 return resultobj;
31450 fail:
31451 {
31452 if (temp2)
31453 delete arg2;
31454 }
31455 return NULL;
31456}
31457
31458
31459static PyObject *_wrap_MenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
31460 PyObject *resultobj;
31461 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31462 int arg2 ;
31463 bool arg3 ;
31464 PyObject * obj0 = 0 ;
31465 PyObject * obj1 = 0 ;
31466 PyObject * obj2 = 0 ;
31467 char *kwnames[] = {
31468 (char *) "self",(char *) "id",(char *) "enable", NULL
31469 };
31470
31471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Enable",kwnames,&obj0,&obj1,&obj2)) goto fail;
31472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31474 arg2 = (int) SWIG_AsInt(obj1);
31475 if (PyErr_Occurred()) SWIG_fail;
31476 arg3 = (bool) SWIG_AsBool(obj2);
31477 if (PyErr_Occurred()) SWIG_fail;
31478 {
31479 PyThreadState* __tstate = wxPyBeginAllowThreads();
31480 (arg1)->Enable(arg2,arg3);
31481
31482 wxPyEndAllowThreads(__tstate);
31483 if (PyErr_Occurred()) SWIG_fail;
31484 }
31485 Py_INCREF(Py_None); resultobj = Py_None;
31486 return resultobj;
31487 fail:
31488 return NULL;
31489}
31490
31491
31492static PyObject *_wrap_MenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
31493 PyObject *resultobj;
31494 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31495 int arg2 ;
31496 bool arg3 ;
31497 PyObject * obj0 = 0 ;
31498 PyObject * obj1 = 0 ;
31499 PyObject * obj2 = 0 ;
31500 char *kwnames[] = {
31501 (char *) "self",(char *) "id",(char *) "check", NULL
31502 };
31503
31504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Check",kwnames,&obj0,&obj1,&obj2)) goto fail;
31505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31507 arg2 = (int) SWIG_AsInt(obj1);
31508 if (PyErr_Occurred()) SWIG_fail;
31509 arg3 = (bool) SWIG_AsBool(obj2);
31510 if (PyErr_Occurred()) SWIG_fail;
31511 {
31512 PyThreadState* __tstate = wxPyBeginAllowThreads();
31513 (arg1)->Check(arg2,arg3);
31514
31515 wxPyEndAllowThreads(__tstate);
31516 if (PyErr_Occurred()) SWIG_fail;
31517 }
31518 Py_INCREF(Py_None); resultobj = Py_None;
31519 return resultobj;
31520 fail:
31521 return NULL;
31522}
31523
31524
31525static PyObject *_wrap_MenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
31526 PyObject *resultobj;
31527 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31528 int arg2 ;
31529 bool result;
31530 PyObject * obj0 = 0 ;
31531 PyObject * obj1 = 0 ;
31532 char *kwnames[] = {
31533 (char *) "self",(char *) "id", NULL
31534 };
31535
31536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsChecked",kwnames,&obj0,&obj1)) goto fail;
31537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31539 arg2 = (int) SWIG_AsInt(obj1);
31540 if (PyErr_Occurred()) SWIG_fail;
31541 {
31542 PyThreadState* __tstate = wxPyBeginAllowThreads();
31543 result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2);
31544
31545 wxPyEndAllowThreads(__tstate);
31546 if (PyErr_Occurred()) SWIG_fail;
31547 }
31548 {
31549 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31550 }
31551 return resultobj;
31552 fail:
31553 return NULL;
31554}
31555
31556
31557static PyObject *_wrap_MenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
31558 PyObject *resultobj;
31559 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31560 int arg2 ;
31561 bool result;
31562 PyObject * obj0 = 0 ;
31563 PyObject * obj1 = 0 ;
31564 char *kwnames[] = {
31565 (char *) "self",(char *) "id", NULL
31566 };
31567
31568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabled",kwnames,&obj0,&obj1)) goto fail;
31569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31571 arg2 = (int) SWIG_AsInt(obj1);
31572 if (PyErr_Occurred()) SWIG_fail;
31573 {
31574 PyThreadState* __tstate = wxPyBeginAllowThreads();
31575 result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2);
31576
31577 wxPyEndAllowThreads(__tstate);
31578 if (PyErr_Occurred()) SWIG_fail;
31579 }
31580 {
31581 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31582 }
31583 return resultobj;
31584 fail:
31585 return NULL;
31586}
31587
31588
31589static PyObject *_wrap_MenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
31590 PyObject *resultobj;
31591 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31592 int arg2 ;
31593 wxString *arg3 = 0 ;
31594 bool temp3 = False ;
31595 PyObject * obj0 = 0 ;
31596 PyObject * obj1 = 0 ;
31597 PyObject * obj2 = 0 ;
31598 char *kwnames[] = {
31599 (char *) "self",(char *) "id",(char *) "label", NULL
31600 };
31601
31602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabel",kwnames,&obj0,&obj1,&obj2)) goto fail;
31603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31605 arg2 = (int) SWIG_AsInt(obj1);
31606 if (PyErr_Occurred()) SWIG_fail;
31607 {
31608 arg3 = wxString_in_helper(obj2);
31609 if (arg3 == NULL) SWIG_fail;
31610 temp3 = True;
31611 }
31612 {
31613 PyThreadState* __tstate = wxPyBeginAllowThreads();
31614 (arg1)->SetLabel(arg2,(wxString const &)*arg3);
31615
31616 wxPyEndAllowThreads(__tstate);
31617 if (PyErr_Occurred()) SWIG_fail;
31618 }
31619 Py_INCREF(Py_None); resultobj = Py_None;
31620 {
31621 if (temp3)
31622 delete arg3;
31623 }
31624 return resultobj;
31625 fail:
31626 {
31627 if (temp3)
31628 delete arg3;
31629 }
31630 return NULL;
31631}
31632
31633
31634static PyObject *_wrap_MenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
31635 PyObject *resultobj;
31636 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31637 int arg2 ;
31638 wxString result;
31639 PyObject * obj0 = 0 ;
31640 PyObject * obj1 = 0 ;
31641 char *kwnames[] = {
31642 (char *) "self",(char *) "id", NULL
31643 };
31644
31645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabel",kwnames,&obj0,&obj1)) goto fail;
31646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31648 arg2 = (int) SWIG_AsInt(obj1);
31649 if (PyErr_Occurred()) SWIG_fail;
31650 {
31651 PyThreadState* __tstate = wxPyBeginAllowThreads();
31652 result = ((wxMenuBar const *)arg1)->GetLabel(arg2);
31653
31654 wxPyEndAllowThreads(__tstate);
31655 if (PyErr_Occurred()) SWIG_fail;
31656 }
31657 {
31658#if wxUSE_UNICODE
31659 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
31660#else
31661 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
31662#endif
31663 }
31664 return resultobj;
31665 fail:
31666 return NULL;
31667}
31668
31669
31670static PyObject *_wrap_MenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
31671 PyObject *resultobj;
31672 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31673 int arg2 ;
31674 wxString *arg3 = 0 ;
31675 bool temp3 = False ;
31676 PyObject * obj0 = 0 ;
31677 PyObject * obj1 = 0 ;
31678 PyObject * obj2 = 0 ;
31679 char *kwnames[] = {
31680 (char *) "self",(char *) "id",(char *) "helpString", NULL
31681 };
31682
31683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetHelpString",kwnames,&obj0,&obj1,&obj2)) goto fail;
31684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31686 arg2 = (int) SWIG_AsInt(obj1);
31687 if (PyErr_Occurred()) SWIG_fail;
31688 {
31689 arg3 = wxString_in_helper(obj2);
31690 if (arg3 == NULL) SWIG_fail;
31691 temp3 = True;
31692 }
31693 {
31694 PyThreadState* __tstate = wxPyBeginAllowThreads();
31695 (arg1)->SetHelpString(arg2,(wxString const &)*arg3);
31696
31697 wxPyEndAllowThreads(__tstate);
31698 if (PyErr_Occurred()) SWIG_fail;
31699 }
31700 Py_INCREF(Py_None); resultobj = Py_None;
31701 {
31702 if (temp3)
31703 delete arg3;
31704 }
31705 return resultobj;
31706 fail:
31707 {
31708 if (temp3)
31709 delete arg3;
31710 }
31711 return NULL;
31712}
31713
31714
31715static PyObject *_wrap_MenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) {
31716 PyObject *resultobj;
31717 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31718 int arg2 ;
31719 wxString result;
31720 PyObject * obj0 = 0 ;
31721 PyObject * obj1 = 0 ;
31722 char *kwnames[] = {
31723 (char *) "self",(char *) "id", NULL
31724 };
31725
31726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetHelpString",kwnames,&obj0,&obj1)) goto fail;
31727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31729 arg2 = (int) SWIG_AsInt(obj1);
31730 if (PyErr_Occurred()) SWIG_fail;
31731 {
31732 PyThreadState* __tstate = wxPyBeginAllowThreads();
31733 result = ((wxMenuBar const *)arg1)->GetHelpString(arg2);
31734
31735 wxPyEndAllowThreads(__tstate);
31736 if (PyErr_Occurred()) SWIG_fail;
31737 }
31738 {
31739#if wxUSE_UNICODE
31740 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
31741#else
31742 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
31743#endif
31744 }
31745 return resultobj;
31746 fail:
31747 return NULL;
31748}
31749
31750
31751static PyObject *_wrap_MenuBar_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
31752 PyObject *resultobj;
31753 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31754 wxFrame *result;
31755 PyObject * obj0 = 0 ;
31756 char *kwnames[] = {
31757 (char *) "self", NULL
31758 };
31759
31760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_GetFrame",kwnames,&obj0)) goto fail;
31761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31763 {
31764 PyThreadState* __tstate = wxPyBeginAllowThreads();
31765 result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame();
31766
31767 wxPyEndAllowThreads(__tstate);
31768 if (PyErr_Occurred()) SWIG_fail;
31769 }
31770 {
412d302d 31771 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
31772 }
31773 return resultobj;
31774 fail:
31775 return NULL;
31776}
31777
31778
31779static PyObject *_wrap_MenuBar_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) {
31780 PyObject *resultobj;
31781 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31782 bool result;
31783 PyObject * obj0 = 0 ;
31784 char *kwnames[] = {
31785 (char *) "self", NULL
31786 };
31787
31788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_IsAttached",kwnames,&obj0)) goto fail;
31789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31791 {
31792 PyThreadState* __tstate = wxPyBeginAllowThreads();
31793 result = (bool)((wxMenuBar const *)arg1)->IsAttached();
31794
31795 wxPyEndAllowThreads(__tstate);
31796 if (PyErr_Occurred()) SWIG_fail;
31797 }
31798 {
31799 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31800 }
31801 return resultobj;
31802 fail:
31803 return NULL;
31804}
31805
31806
31807static PyObject *_wrap_MenuBar_Attach(PyObject *self, PyObject *args, PyObject *kwargs) {
31808 PyObject *resultobj;
31809 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31810 wxFrame *arg2 = (wxFrame *) 0 ;
31811 PyObject * obj0 = 0 ;
31812 PyObject * obj1 = 0 ;
31813 char *kwnames[] = {
31814 (char *) "self",(char *) "frame", NULL
31815 };
31816
31817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) goto fail;
31818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31820 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFrame,
31821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31822 {
31823 PyThreadState* __tstate = wxPyBeginAllowThreads();
31824 (arg1)->Attach(arg2);
31825
31826 wxPyEndAllowThreads(__tstate);
31827 if (PyErr_Occurred()) SWIG_fail;
31828 }
31829 Py_INCREF(Py_None); resultobj = Py_None;
31830 return resultobj;
31831 fail:
31832 return NULL;
31833}
31834
31835
31836static PyObject *_wrap_MenuBar_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
31837 PyObject *resultobj;
31838 wxMenuBar *arg1 = (wxMenuBar *) 0 ;
31839 PyObject * obj0 = 0 ;
31840 char *kwnames[] = {
31841 (char *) "self", NULL
31842 };
31843
31844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_Detach",kwnames,&obj0)) goto fail;
31845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuBar,
31846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31847 {
31848 PyThreadState* __tstate = wxPyBeginAllowThreads();
31849 (arg1)->Detach();
31850
31851 wxPyEndAllowThreads(__tstate);
31852 if (PyErr_Occurred()) SWIG_fail;
31853 }
31854 Py_INCREF(Py_None); resultobj = Py_None;
31855 return resultobj;
31856 fail:
31857 return NULL;
31858}
31859
31860
31861static PyObject * MenuBar_swigregister(PyObject *self, PyObject *args) {
31862 PyObject *obj;
31863 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
31864 SWIG_TypeClientData(SWIGTYPE_p_wxMenuBar, obj);
31865 Py_INCREF(obj);
31866 return Py_BuildValue((char *)"");
31867}
31868static PyObject *_wrap_new_MenuItem(PyObject *self, PyObject *args, PyObject *kwargs) {
31869 PyObject *resultobj;
31870 wxMenu *arg1 = (wxMenu *) NULL ;
31871 int arg2 = (int) wxID_ANY ;
31872 wxString const &arg3_defvalue = wxPyEmptyString ;
31873 wxString *arg3 = (wxString *) &arg3_defvalue ;
31874 wxString const &arg4_defvalue = wxPyEmptyString ;
31875 wxString *arg4 = (wxString *) &arg4_defvalue ;
31876 int arg5 = (int) wxITEM_NORMAL ;
31877 wxMenu *arg6 = (wxMenu *) NULL ;
31878 wxMenuItem *result;
31879 bool temp3 = False ;
31880 bool temp4 = False ;
31881 PyObject * obj0 = 0 ;
31882 PyObject * obj1 = 0 ;
31883 PyObject * obj2 = 0 ;
31884 PyObject * obj3 = 0 ;
31885 PyObject * obj4 = 0 ;
31886 PyObject * obj5 = 0 ;
31887 char *kwnames[] = {
31888 (char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL
31889 };
31890
31891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_MenuItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
31892 if (obj0) {
31893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenu,
31894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31895 }
31896 if (obj1) {
31897 arg2 = (int) SWIG_AsInt(obj1);
31898 if (PyErr_Occurred()) SWIG_fail;
31899 }
31900 if (obj2) {
31901 {
31902 arg3 = wxString_in_helper(obj2);
31903 if (arg3 == NULL) SWIG_fail;
31904 temp3 = True;
31905 }
31906 }
31907 if (obj3) {
31908 {
31909 arg4 = wxString_in_helper(obj3);
31910 if (arg4 == NULL) SWIG_fail;
31911 temp4 = True;
31912 }
31913 }
31914 if (obj4) {
31915 arg5 = (wxItemKind) SWIG_AsInt(obj4);
31916 if (PyErr_Occurred()) SWIG_fail;
31917 }
31918 if (obj5) {
31919 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxMenu,
31920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31921 }
31922 {
31923 PyThreadState* __tstate = wxPyBeginAllowThreads();
31924 result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxItemKind )arg5,arg6);
31925
31926 wxPyEndAllowThreads(__tstate);
31927 if (PyErr_Occurred()) SWIG_fail;
31928 }
31929 {
412d302d 31930 resultobj = wxPyMake_wxObject(result, 1);
d55e5bfc
RD
31931 }
31932 {
31933 if (temp3)
31934 delete arg3;
31935 }
31936 {
31937 if (temp4)
31938 delete arg4;
31939 }
31940 return resultobj;
31941 fail:
31942 {
31943 if (temp3)
31944 delete arg3;
31945 }
31946 {
31947 if (temp4)
31948 delete arg4;
31949 }
31950 return NULL;
31951}
31952
31953
31954static PyObject *_wrap_MenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
31955 PyObject *resultobj;
31956 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
31957 wxMenu *result;
31958 PyObject * obj0 = 0 ;
31959 char *kwnames[] = {
31960 (char *) "self", NULL
31961 };
31962
31963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMenu",kwnames,&obj0)) goto fail;
31964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
31965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31966 {
31967 PyThreadState* __tstate = wxPyBeginAllowThreads();
31968 result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu();
31969
31970 wxPyEndAllowThreads(__tstate);
31971 if (PyErr_Occurred()) SWIG_fail;
31972 }
31973 {
412d302d 31974 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
31975 }
31976 return resultobj;
31977 fail:
31978 return NULL;
31979}
31980
31981
31982static PyObject *_wrap_MenuItem_SetMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
31983 PyObject *resultobj;
31984 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
31985 wxMenu *arg2 = (wxMenu *) 0 ;
31986 PyObject * obj0 = 0 ;
31987 PyObject * obj1 = 0 ;
31988 char *kwnames[] = {
31989 (char *) "self",(char *) "menu", NULL
31990 };
31991
31992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) goto fail;
31993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
31994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31995 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
31996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31997 {
31998 PyThreadState* __tstate = wxPyBeginAllowThreads();
31999 (arg1)->SetMenu(arg2);
32000
32001 wxPyEndAllowThreads(__tstate);
32002 if (PyErr_Occurred()) SWIG_fail;
32003 }
32004 Py_INCREF(Py_None); resultobj = Py_None;
32005 return resultobj;
32006 fail:
32007 return NULL;
32008}
32009
32010
32011static PyObject *_wrap_MenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
32012 PyObject *resultobj;
32013 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32014 int arg2 ;
32015 PyObject * obj0 = 0 ;
32016 PyObject * obj1 = 0 ;
32017 char *kwnames[] = {
32018 (char *) "self",(char *) "id", NULL
32019 };
32020
32021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetId",kwnames,&obj0,&obj1)) goto fail;
32022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32024 arg2 = (int) SWIG_AsInt(obj1);
32025 if (PyErr_Occurred()) SWIG_fail;
32026 {
32027 PyThreadState* __tstate = wxPyBeginAllowThreads();
32028 (arg1)->SetId(arg2);
32029
32030 wxPyEndAllowThreads(__tstate);
32031 if (PyErr_Occurred()) SWIG_fail;
32032 }
32033 Py_INCREF(Py_None); resultobj = Py_None;
32034 return resultobj;
32035 fail:
32036 return NULL;
32037}
32038
32039
32040static PyObject *_wrap_MenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
32041 PyObject *resultobj;
32042 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32043 int result;
32044 PyObject * obj0 = 0 ;
32045 char *kwnames[] = {
32046 (char *) "self", NULL
32047 };
32048
32049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetId",kwnames,&obj0)) goto fail;
32050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32052 {
32053 PyThreadState* __tstate = wxPyBeginAllowThreads();
32054 result = (int)((wxMenuItem const *)arg1)->GetId();
32055
32056 wxPyEndAllowThreads(__tstate);
32057 if (PyErr_Occurred()) SWIG_fail;
32058 }
32059 resultobj = SWIG_FromInt((int)result);
32060 return resultobj;
32061 fail:
32062 return NULL;
32063}
32064
32065
32066static PyObject *_wrap_MenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) {
32067 PyObject *resultobj;
32068 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32069 bool result;
32070 PyObject * obj0 = 0 ;
32071 char *kwnames[] = {
32072 (char *) "self", NULL
32073 };
32074
32075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSeparator",kwnames,&obj0)) goto fail;
32076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32078 {
32079 PyThreadState* __tstate = wxPyBeginAllowThreads();
32080 result = (bool)((wxMenuItem const *)arg1)->IsSeparator();
32081
32082 wxPyEndAllowThreads(__tstate);
32083 if (PyErr_Occurred()) SWIG_fail;
32084 }
32085 {
32086 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32087 }
32088 return resultobj;
32089 fail:
32090 return NULL;
32091}
32092
32093
32094static PyObject *_wrap_MenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
32095 PyObject *resultobj;
32096 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32097 wxString *arg2 = 0 ;
32098 bool temp2 = False ;
32099 PyObject * obj0 = 0 ;
32100 PyObject * obj1 = 0 ;
32101 char *kwnames[] = {
32102 (char *) "self",(char *) "str", NULL
32103 };
32104
32105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) goto fail;
32106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32108 {
32109 arg2 = wxString_in_helper(obj1);
32110 if (arg2 == NULL) SWIG_fail;
32111 temp2 = True;
32112 }
32113 {
32114 PyThreadState* __tstate = wxPyBeginAllowThreads();
32115 (arg1)->SetText((wxString const &)*arg2);
32116
32117 wxPyEndAllowThreads(__tstate);
32118 if (PyErr_Occurred()) SWIG_fail;
32119 }
32120 Py_INCREF(Py_None); resultobj = Py_None;
32121 {
32122 if (temp2)
32123 delete arg2;
32124 }
32125 return resultobj;
32126 fail:
32127 {
32128 if (temp2)
32129 delete arg2;
32130 }
32131 return NULL;
32132}
32133
32134
32135static PyObject *_wrap_MenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
32136 PyObject *resultobj;
32137 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32138 wxString result;
32139 PyObject * obj0 = 0 ;
32140 char *kwnames[] = {
32141 (char *) "self", NULL
32142 };
32143
32144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabel",kwnames,&obj0)) goto fail;
32145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32147 {
32148 PyThreadState* __tstate = wxPyBeginAllowThreads();
32149 result = ((wxMenuItem const *)arg1)->GetLabel();
32150
32151 wxPyEndAllowThreads(__tstate);
32152 if (PyErr_Occurred()) SWIG_fail;
32153 }
32154 {
32155#if wxUSE_UNICODE
32156 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32157#else
32158 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32159#endif
32160 }
32161 return resultobj;
32162 fail:
32163 return NULL;
32164}
32165
32166
32167static PyObject *_wrap_MenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
32168 PyObject *resultobj;
32169 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32170 wxString *result;
32171 PyObject * obj0 = 0 ;
32172 char *kwnames[] = {
32173 (char *) "self", NULL
32174 };
32175
32176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetText",kwnames,&obj0)) goto fail;
32177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32179 {
32180 PyThreadState* __tstate = wxPyBeginAllowThreads();
32181 {
32182 wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText();
32183 result = (wxString *) &_result_ref;
32184 }
32185
32186 wxPyEndAllowThreads(__tstate);
32187 if (PyErr_Occurred()) SWIG_fail;
32188 }
32189 {
32190#if wxUSE_UNICODE
32191 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
32192#else
32193 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
32194#endif
32195 }
32196 return resultobj;
32197 fail:
32198 return NULL;
32199}
32200
32201
32202static PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) {
32203 PyObject *resultobj;
32204 wxString *arg1 = 0 ;
32205 wxString result;
32206 bool temp1 = False ;
32207 PyObject * obj0 = 0 ;
32208 char *kwnames[] = {
32209 (char *) "text", NULL
32210 };
32211
32212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) goto fail;
32213 {
32214 arg1 = wxString_in_helper(obj0);
32215 if (arg1 == NULL) SWIG_fail;
32216 temp1 = True;
32217 }
32218 {
32219 PyThreadState* __tstate = wxPyBeginAllowThreads();
32220 result = wxMenuItem::GetLabelFromText((wxString const &)*arg1);
32221
32222 wxPyEndAllowThreads(__tstate);
32223 if (PyErr_Occurred()) SWIG_fail;
32224 }
32225 {
32226#if wxUSE_UNICODE
32227 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
32228#else
32229 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
32230#endif
32231 }
32232 {
32233 if (temp1)
32234 delete arg1;
32235 }
32236 return resultobj;
32237 fail:
32238 {
32239 if (temp1)
32240 delete arg1;
32241 }
32242 return NULL;
32243}
32244
32245
32246static PyObject *_wrap_MenuItem_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) {
32247 PyObject *resultobj;
32248 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32249 int result;
32250 PyObject * obj0 = 0 ;
32251 char *kwnames[] = {
32252 (char *) "self", NULL
32253 };
32254
32255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetKind",kwnames,&obj0)) goto fail;
32256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32258 {
32259 PyThreadState* __tstate = wxPyBeginAllowThreads();
32260 result = (int)((wxMenuItem const *)arg1)->GetKind();
32261
32262 wxPyEndAllowThreads(__tstate);
32263 if (PyErr_Occurred()) SWIG_fail;
32264 }
32265 resultobj = SWIG_FromInt((int)result);
32266 return resultobj;
32267 fail:
32268 return NULL;
32269}
32270
32271
32272static PyObject *_wrap_MenuItem_SetKind(PyObject *self, PyObject *args, PyObject *kwargs) {
32273 PyObject *resultobj;
32274 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32275 int arg2 ;
32276 PyObject * obj0 = 0 ;
32277 PyObject * obj1 = 0 ;
32278 char *kwnames[] = {
32279 (char *) "self",(char *) "kind", NULL
32280 };
32281
32282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetKind",kwnames,&obj0,&obj1)) goto fail;
32283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32285 arg2 = (wxItemKind) SWIG_AsInt(obj1);
32286 if (PyErr_Occurred()) SWIG_fail;
32287 {
32288 PyThreadState* __tstate = wxPyBeginAllowThreads();
32289 (arg1)->SetKind((wxItemKind )arg2);
32290
32291 wxPyEndAllowThreads(__tstate);
32292 if (PyErr_Occurred()) SWIG_fail;
32293 }
32294 Py_INCREF(Py_None); resultobj = Py_None;
32295 return resultobj;
32296 fail:
32297 return NULL;
32298}
32299
32300
32301static PyObject *_wrap_MenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) {
32302 PyObject *resultobj;
32303 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32304 bool arg2 ;
32305 PyObject * obj0 = 0 ;
32306 PyObject * obj1 = 0 ;
32307 char *kwnames[] = {
32308 (char *) "self",(char *) "checkable", NULL
32309 };
32310
32311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) goto fail;
32312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32314 arg2 = (bool) SWIG_AsBool(obj1);
32315 if (PyErr_Occurred()) SWIG_fail;
32316 {
32317 PyThreadState* __tstate = wxPyBeginAllowThreads();
32318 (arg1)->SetCheckable(arg2);
32319
32320 wxPyEndAllowThreads(__tstate);
32321 if (PyErr_Occurred()) SWIG_fail;
32322 }
32323 Py_INCREF(Py_None); resultobj = Py_None;
32324 return resultobj;
32325 fail:
32326 return NULL;
32327}
32328
32329
32330static PyObject *_wrap_MenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) {
32331 PyObject *resultobj;
32332 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32333 bool result;
32334 PyObject * obj0 = 0 ;
32335 char *kwnames[] = {
32336 (char *) "self", NULL
32337 };
32338
32339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsCheckable",kwnames,&obj0)) goto fail;
32340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32342 {
32343 PyThreadState* __tstate = wxPyBeginAllowThreads();
32344 result = (bool)((wxMenuItem const *)arg1)->IsCheckable();
32345
32346 wxPyEndAllowThreads(__tstate);
32347 if (PyErr_Occurred()) SWIG_fail;
32348 }
32349 {
32350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32351 }
32352 return resultobj;
32353 fail:
32354 return NULL;
32355}
32356
32357
32358static PyObject *_wrap_MenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
32359 PyObject *resultobj;
32360 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32361 bool result;
32362 PyObject * obj0 = 0 ;
32363 char *kwnames[] = {
32364 (char *) "self", NULL
32365 };
32366
32367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsSubMenu",kwnames,&obj0)) goto fail;
32368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32370 {
32371 PyThreadState* __tstate = wxPyBeginAllowThreads();
32372 result = (bool)((wxMenuItem const *)arg1)->IsSubMenu();
32373
32374 wxPyEndAllowThreads(__tstate);
32375 if (PyErr_Occurred()) SWIG_fail;
32376 }
32377 {
32378 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32379 }
32380 return resultobj;
32381 fail:
32382 return NULL;
32383}
32384
32385
32386static PyObject *_wrap_MenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
32387 PyObject *resultobj;
32388 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32389 wxMenu *arg2 = (wxMenu *) 0 ;
32390 PyObject * obj0 = 0 ;
32391 PyObject * obj1 = 0 ;
32392 char *kwnames[] = {
32393 (char *) "self",(char *) "menu", NULL
32394 };
32395
32396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) goto fail;
32397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32399 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
32400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32401 {
32402 PyThreadState* __tstate = wxPyBeginAllowThreads();
32403 (arg1)->SetSubMenu(arg2);
32404
32405 wxPyEndAllowThreads(__tstate);
32406 if (PyErr_Occurred()) SWIG_fail;
32407 }
32408 Py_INCREF(Py_None); resultobj = Py_None;
32409 return resultobj;
32410 fail:
32411 return NULL;
32412}
32413
32414
32415static PyObject *_wrap_MenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
32416 PyObject *resultobj;
32417 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32418 wxMenu *result;
32419 PyObject * obj0 = 0 ;
32420 char *kwnames[] = {
32421 (char *) "self", NULL
32422 };
32423
32424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetSubMenu",kwnames,&obj0)) goto fail;
32425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32427 {
32428 PyThreadState* __tstate = wxPyBeginAllowThreads();
32429 result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu();
32430
32431 wxPyEndAllowThreads(__tstate);
32432 if (PyErr_Occurred()) SWIG_fail;
32433 }
32434 {
412d302d 32435 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
32436 }
32437 return resultobj;
32438 fail:
32439 return NULL;
32440}
32441
32442
32443static PyObject *_wrap_MenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
32444 PyObject *resultobj;
32445 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32446 bool arg2 = (bool) True ;
32447 PyObject * obj0 = 0 ;
32448 PyObject * obj1 = 0 ;
32449 char *kwnames[] = {
32450 (char *) "self",(char *) "enable", NULL
32451 };
32452
32453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) goto fail;
32454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32456 if (obj1) {
32457 arg2 = (bool) SWIG_AsBool(obj1);
32458 if (PyErr_Occurred()) SWIG_fail;
32459 }
32460 {
32461 PyThreadState* __tstate = wxPyBeginAllowThreads();
32462 (arg1)->Enable(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_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
32475 PyObject *resultobj;
32476 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32477 bool result;
32478 PyObject * obj0 = 0 ;
32479 char *kwnames[] = {
32480 (char *) "self", NULL
32481 };
32482
32483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsEnabled",kwnames,&obj0)) goto fail;
32484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32486 {
32487 PyThreadState* __tstate = wxPyBeginAllowThreads();
32488 result = (bool)((wxMenuItem const *)arg1)->IsEnabled();
32489
32490 wxPyEndAllowThreads(__tstate);
32491 if (PyErr_Occurred()) SWIG_fail;
32492 }
32493 {
32494 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32495 }
32496 return resultobj;
32497 fail:
32498 return NULL;
32499}
32500
32501
32502static PyObject *_wrap_MenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) {
32503 PyObject *resultobj;
32504 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32505 bool arg2 = (bool) True ;
32506 PyObject * obj0 = 0 ;
32507 PyObject * obj1 = 0 ;
32508 char *kwnames[] = {
32509 (char *) "self",(char *) "check", NULL
32510 };
32511
32512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) goto fail;
32513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32515 if (obj1) {
32516 arg2 = (bool) SWIG_AsBool(obj1);
32517 if (PyErr_Occurred()) SWIG_fail;
32518 }
32519 {
32520 PyThreadState* __tstate = wxPyBeginAllowThreads();
32521 (arg1)->Check(arg2);
32522
32523 wxPyEndAllowThreads(__tstate);
32524 if (PyErr_Occurred()) SWIG_fail;
32525 }
32526 Py_INCREF(Py_None); resultobj = Py_None;
32527 return resultobj;
32528 fail:
32529 return NULL;
32530}
32531
32532
32533static PyObject *_wrap_MenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) {
32534 PyObject *resultobj;
32535 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32536 bool result;
32537 PyObject * obj0 = 0 ;
32538 char *kwnames[] = {
32539 (char *) "self", NULL
32540 };
32541
32542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsChecked",kwnames,&obj0)) goto fail;
32543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32545 {
32546 PyThreadState* __tstate = wxPyBeginAllowThreads();
32547 result = (bool)((wxMenuItem const *)arg1)->IsChecked();
32548
32549 wxPyEndAllowThreads(__tstate);
32550 if (PyErr_Occurred()) SWIG_fail;
32551 }
32552 {
32553 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32554 }
32555 return resultobj;
32556 fail:
32557 return NULL;
32558}
32559
32560
32561static PyObject *_wrap_MenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) {
32562 PyObject *resultobj;
32563 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32564 PyObject * obj0 = 0 ;
32565 char *kwnames[] = {
32566 (char *) "self", NULL
32567 };
32568
32569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_Toggle",kwnames,&obj0)) goto fail;
32570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32572 {
32573 PyThreadState* __tstate = wxPyBeginAllowThreads();
32574 (arg1)->Toggle();
32575
32576 wxPyEndAllowThreads(__tstate);
32577 if (PyErr_Occurred()) SWIG_fail;
32578 }
32579 Py_INCREF(Py_None); resultobj = Py_None;
32580 return resultobj;
32581 fail:
32582 return NULL;
32583}
32584
32585
32586static PyObject *_wrap_MenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
32587 PyObject *resultobj;
32588 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32589 wxString *arg2 = 0 ;
32590 bool temp2 = False ;
32591 PyObject * obj0 = 0 ;
32592 PyObject * obj1 = 0 ;
32593 char *kwnames[] = {
32594 (char *) "self",(char *) "str", NULL
32595 };
32596
32597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) goto fail;
32598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32600 {
32601 arg2 = wxString_in_helper(obj1);
32602 if (arg2 == NULL) SWIG_fail;
32603 temp2 = True;
32604 }
32605 {
32606 PyThreadState* __tstate = wxPyBeginAllowThreads();
32607 (arg1)->SetHelp((wxString const &)*arg2);
32608
32609 wxPyEndAllowThreads(__tstate);
32610 if (PyErr_Occurred()) SWIG_fail;
32611 }
32612 Py_INCREF(Py_None); resultobj = Py_None;
32613 {
32614 if (temp2)
32615 delete arg2;
32616 }
32617 return resultobj;
32618 fail:
32619 {
32620 if (temp2)
32621 delete arg2;
32622 }
32623 return NULL;
32624}
32625
32626
32627static PyObject *_wrap_MenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) {
32628 PyObject *resultobj;
32629 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32630 wxString *result;
32631 PyObject * obj0 = 0 ;
32632 char *kwnames[] = {
32633 (char *) "self", NULL
32634 };
32635
32636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetHelp",kwnames,&obj0)) goto fail;
32637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32639 {
32640 PyThreadState* __tstate = wxPyBeginAllowThreads();
32641 {
32642 wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp();
32643 result = (wxString *) &_result_ref;
32644 }
32645
32646 wxPyEndAllowThreads(__tstate);
32647 if (PyErr_Occurred()) SWIG_fail;
32648 }
32649 {
32650#if wxUSE_UNICODE
32651 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
32652#else
32653 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
32654#endif
32655 }
32656 return resultobj;
32657 fail:
32658 return NULL;
32659}
32660
32661
32662static PyObject *_wrap_MenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) {
32663 PyObject *resultobj;
32664 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32665 wxAcceleratorEntry *result;
32666 PyObject * obj0 = 0 ;
32667 char *kwnames[] = {
32668 (char *) "self", NULL
32669 };
32670
32671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetAccel",kwnames,&obj0)) goto fail;
32672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32674 {
32675 PyThreadState* __tstate = wxPyBeginAllowThreads();
32676 result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel();
32677
32678 wxPyEndAllowThreads(__tstate);
32679 if (PyErr_Occurred()) SWIG_fail;
32680 }
32681 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxAcceleratorEntry, 0);
32682 return resultobj;
32683 fail:
32684 return NULL;
32685}
32686
32687
32688static PyObject *_wrap_MenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) {
32689 PyObject *resultobj;
32690 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32691 wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ;
32692 PyObject * obj0 = 0 ;
32693 PyObject * obj1 = 0 ;
32694 char *kwnames[] = {
32695 (char *) "self",(char *) "accel", NULL
32696 };
32697
32698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) goto fail;
32699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32701 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxAcceleratorEntry,
32702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32703 {
32704 PyThreadState* __tstate = wxPyBeginAllowThreads();
32705 (arg1)->SetAccel(arg2);
32706
32707 wxPyEndAllowThreads(__tstate);
32708 if (PyErr_Occurred()) SWIG_fail;
32709 }
32710 Py_INCREF(Py_None); resultobj = Py_None;
32711 return resultobj;
32712 fail:
32713 return NULL;
32714}
32715
32716
32717static PyObject *_wrap_MenuItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
32718 PyObject *resultobj;
32719 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32720 wxFont *arg2 = 0 ;
32721 PyObject * obj0 = 0 ;
32722 PyObject * obj1 = 0 ;
32723 char *kwnames[] = {
32724 (char *) "self",(char *) "font", NULL
32725 };
32726
32727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetFont",kwnames,&obj0,&obj1)) goto fail;
32728 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32730 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
32731 SWIG_POINTER_EXCEPTION | 0)) == -1)
32732 SWIG_fail;
32733 if (arg2 == NULL) {
32734 PyErr_SetString(PyExc_TypeError,"null reference");
32735 SWIG_fail;
32736 }
32737 {
32738 PyThreadState* __tstate = wxPyBeginAllowThreads();
32739 (arg1)->SetFont((wxFont const &)*arg2);
32740
32741 wxPyEndAllowThreads(__tstate);
32742 if (PyErr_Occurred()) SWIG_fail;
32743 }
32744 Py_INCREF(Py_None); resultobj = Py_None;
32745 return resultobj;
32746 fail:
32747 return NULL;
32748}
32749
32750
32751static PyObject *_wrap_MenuItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
32752 PyObject *resultobj;
32753 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32754 wxFont result;
32755 PyObject * obj0 = 0 ;
32756 char *kwnames[] = {
32757 (char *) "self", NULL
32758 };
32759
32760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetFont",kwnames,&obj0)) goto fail;
32761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32763 {
32764 PyThreadState* __tstate = wxPyBeginAllowThreads();
32765 result = (arg1)->GetFont();
32766
32767 wxPyEndAllowThreads(__tstate);
32768 if (PyErr_Occurred()) SWIG_fail;
32769 }
32770 {
32771 wxFont * resultptr;
32772 resultptr = new wxFont((wxFont &) result);
32773 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
32774 }
32775 return resultobj;
32776 fail:
32777 return NULL;
32778}
32779
32780
32781static PyObject *_wrap_MenuItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
32782 PyObject *resultobj;
32783 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32784 wxColour *arg2 = 0 ;
32785 wxColour temp2 ;
32786 PyObject * obj0 = 0 ;
32787 PyObject * obj1 = 0 ;
32788 char *kwnames[] = {
32789 (char *) "self",(char *) "colText", NULL
32790 };
32791
32792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
32793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32795 {
32796 arg2 = &temp2;
32797 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32798 }
32799 {
32800 PyThreadState* __tstate = wxPyBeginAllowThreads();
32801 (arg1)->SetTextColour((wxColour const &)*arg2);
32802
32803 wxPyEndAllowThreads(__tstate);
32804 if (PyErr_Occurred()) SWIG_fail;
32805 }
32806 Py_INCREF(Py_None); resultobj = Py_None;
32807 return resultobj;
32808 fail:
32809 return NULL;
32810}
32811
32812
32813static PyObject *_wrap_MenuItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) {
32814 PyObject *resultobj;
32815 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32816 wxColour result;
32817 PyObject * obj0 = 0 ;
32818 char *kwnames[] = {
32819 (char *) "self", NULL
32820 };
32821
32822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetTextColour",kwnames,&obj0)) goto fail;
32823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32825 {
32826 PyThreadState* __tstate = wxPyBeginAllowThreads();
32827 result = (arg1)->GetTextColour();
32828
32829 wxPyEndAllowThreads(__tstate);
32830 if (PyErr_Occurred()) SWIG_fail;
32831 }
32832 {
32833 wxColour * resultptr;
32834 resultptr = new wxColour((wxColour &) result);
32835 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
32836 }
32837 return resultobj;
32838 fail:
32839 return NULL;
32840}
32841
32842
32843static PyObject *_wrap_MenuItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
32844 PyObject *resultobj;
32845 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32846 wxColour *arg2 = 0 ;
32847 wxColour temp2 ;
32848 PyObject * obj0 = 0 ;
32849 PyObject * obj1 = 0 ;
32850 char *kwnames[] = {
32851 (char *) "self",(char *) "colBack", NULL
32852 };
32853
32854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
32855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32857 {
32858 arg2 = &temp2;
32859 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32860 }
32861 {
32862 PyThreadState* __tstate = wxPyBeginAllowThreads();
32863 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
32864
32865 wxPyEndAllowThreads(__tstate);
32866 if (PyErr_Occurred()) SWIG_fail;
32867 }
32868 Py_INCREF(Py_None); resultobj = Py_None;
32869 return resultobj;
32870 fail:
32871 return NULL;
32872}
32873
32874
32875static PyObject *_wrap_MenuItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) {
32876 PyObject *resultobj;
32877 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32878 wxColour result;
32879 PyObject * obj0 = 0 ;
32880 char *kwnames[] = {
32881 (char *) "self", NULL
32882 };
32883
32884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBackgroundColour",kwnames,&obj0)) goto fail;
32885 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32887 {
32888 PyThreadState* __tstate = wxPyBeginAllowThreads();
32889 result = (arg1)->GetBackgroundColour();
32890
32891 wxPyEndAllowThreads(__tstate);
32892 if (PyErr_Occurred()) SWIG_fail;
32893 }
32894 {
32895 wxColour * resultptr;
32896 resultptr = new wxColour((wxColour &) result);
32897 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
32898 }
32899 return resultobj;
32900 fail:
32901 return NULL;
32902}
32903
32904
32905static PyObject *_wrap_MenuItem_SetBitmaps(PyObject *self, PyObject *args, PyObject *kwargs) {
32906 PyObject *resultobj;
32907 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32908 wxBitmap *arg2 = 0 ;
32909 wxBitmap const &arg3_defvalue = wxNullBitmap ;
32910 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
32911 PyObject * obj0 = 0 ;
32912 PyObject * obj1 = 0 ;
32913 PyObject * obj2 = 0 ;
32914 char *kwnames[] = {
32915 (char *) "self",(char *) "bmpChecked",(char *) "bmpUnchecked", NULL
32916 };
32917
32918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MenuItem_SetBitmaps",kwnames,&obj0,&obj1,&obj2)) goto fail;
32919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32921 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
32922 SWIG_POINTER_EXCEPTION | 0)) == -1)
32923 SWIG_fail;
32924 if (arg2 == NULL) {
32925 PyErr_SetString(PyExc_TypeError,"null reference");
32926 SWIG_fail;
32927 }
32928 if (obj2) {
32929 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
32930 SWIG_POINTER_EXCEPTION | 0)) == -1)
32931 SWIG_fail;
32932 if (arg3 == NULL) {
32933 PyErr_SetString(PyExc_TypeError,"null reference");
32934 SWIG_fail;
32935 }
32936 }
32937 {
32938 PyThreadState* __tstate = wxPyBeginAllowThreads();
32939 (arg1)->SetBitmaps((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
32940
32941 wxPyEndAllowThreads(__tstate);
32942 if (PyErr_Occurred()) SWIG_fail;
32943 }
32944 Py_INCREF(Py_None); resultobj = Py_None;
32945 return resultobj;
32946 fail:
32947 return NULL;
32948}
32949
32950
32951static PyObject *_wrap_MenuItem_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
32952 PyObject *resultobj;
32953 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32954 wxBitmap *arg2 = 0 ;
32955 PyObject * obj0 = 0 ;
32956 PyObject * obj1 = 0 ;
32957 char *kwnames[] = {
32958 (char *) "self",(char *) "bmpDisabled", NULL
32959 };
32960
32961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail;
32962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32964 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
32965 SWIG_POINTER_EXCEPTION | 0)) == -1)
32966 SWIG_fail;
32967 if (arg2 == NULL) {
32968 PyErr_SetString(PyExc_TypeError,"null reference");
32969 SWIG_fail;
32970 }
32971 {
32972 PyThreadState* __tstate = wxPyBeginAllowThreads();
32973 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
32974
32975 wxPyEndAllowThreads(__tstate);
32976 if (PyErr_Occurred()) SWIG_fail;
32977 }
32978 Py_INCREF(Py_None); resultobj = Py_None;
32979 return resultobj;
32980 fail:
32981 return NULL;
32982}
32983
32984
32985static PyObject *_wrap_MenuItem_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
32986 PyObject *resultobj;
32987 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
32988 wxBitmap *result;
32989 PyObject * obj0 = 0 ;
32990 char *kwnames[] = {
32991 (char *) "self", NULL
32992 };
32993
32994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetDisabledBitmap",kwnames,&obj0)) goto fail;
32995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
32996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
32997 {
32998 PyThreadState* __tstate = wxPyBeginAllowThreads();
32999 {
33000 wxBitmap const &_result_ref = ((wxMenuItem const *)arg1)->GetDisabledBitmap();
33001 result = (wxBitmap *) &_result_ref;
33002 }
33003
33004 wxPyEndAllowThreads(__tstate);
33005 if (PyErr_Occurred()) SWIG_fail;
33006 }
33007 {
33008 wxBitmap* resultptr = new wxBitmap(*result);
33009 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
33010 }
33011 return resultobj;
33012 fail:
33013 return NULL;
33014}
33015
33016
33017static PyObject *_wrap_MenuItem_SetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
33018 PyObject *resultobj;
33019 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33020 int arg2 ;
33021 PyObject * obj0 = 0 ;
33022 PyObject * obj1 = 0 ;
33023 char *kwnames[] = {
33024 (char *) "self",(char *) "nWidth", NULL
33025 };
33026
33027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMarginWidth",kwnames,&obj0,&obj1)) goto fail;
33028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33030 arg2 = (int) SWIG_AsInt(obj1);
33031 if (PyErr_Occurred()) SWIG_fail;
33032 {
33033 PyThreadState* __tstate = wxPyBeginAllowThreads();
33034 (arg1)->SetMarginWidth(arg2);
33035
33036 wxPyEndAllowThreads(__tstate);
33037 if (PyErr_Occurred()) SWIG_fail;
33038 }
33039 Py_INCREF(Py_None); resultobj = Py_None;
33040 return resultobj;
33041 fail:
33042 return NULL;
33043}
33044
33045
33046static PyObject *_wrap_MenuItem_GetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
33047 PyObject *resultobj;
33048 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33049 int result;
33050 PyObject * obj0 = 0 ;
33051 char *kwnames[] = {
33052 (char *) "self", NULL
33053 };
33054
33055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetMarginWidth",kwnames,&obj0)) goto fail;
33056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33058 {
33059 PyThreadState* __tstate = wxPyBeginAllowThreads();
33060 result = (int)(arg1)->GetMarginWidth();
33061
33062 wxPyEndAllowThreads(__tstate);
33063 if (PyErr_Occurred()) SWIG_fail;
33064 }
33065 resultobj = SWIG_FromInt((int)result);
33066 return resultobj;
33067 fail:
33068 return NULL;
33069}
33070
33071
33072static PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
33073 PyObject *resultobj;
33074 int result;
33075 char *kwnames[] = {
33076 NULL
33077 };
33078
33079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MenuItem_GetDefaultMarginWidth",kwnames)) goto fail;
33080 {
33081 PyThreadState* __tstate = wxPyBeginAllowThreads();
33082 result = (int)wxMenuItem::GetDefaultMarginWidth();
33083
33084 wxPyEndAllowThreads(__tstate);
33085 if (PyErr_Occurred()) SWIG_fail;
33086 }
33087 resultobj = SWIG_FromInt((int)result);
33088 return resultobj;
33089 fail:
33090 return NULL;
33091}
33092
33093
33094static PyObject *_wrap_MenuItem_IsOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) {
33095 PyObject *resultobj;
33096 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33097 bool result;
33098 PyObject * obj0 = 0 ;
33099 char *kwnames[] = {
33100 (char *) "self", NULL
33101 };
33102
33103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_IsOwnerDrawn",kwnames,&obj0)) goto fail;
33104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33106 {
33107 PyThreadState* __tstate = wxPyBeginAllowThreads();
33108 result = (bool)(arg1)->IsOwnerDrawn();
33109
33110 wxPyEndAllowThreads(__tstate);
33111 if (PyErr_Occurred()) SWIG_fail;
33112 }
33113 {
33114 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33115 }
33116 return resultobj;
33117 fail:
33118 return NULL;
33119}
33120
33121
33122static PyObject *_wrap_MenuItem_SetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) {
33123 PyObject *resultobj;
33124 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33125 bool arg2 = (bool) True ;
33126 PyObject * obj0 = 0 ;
33127 PyObject * obj1 = 0 ;
33128 char *kwnames[] = {
33129 (char *) "self",(char *) "ownerDrawn", NULL
33130 };
33131
33132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_SetOwnerDrawn",kwnames,&obj0,&obj1)) goto fail;
33133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33135 if (obj1) {
33136 arg2 = (bool) SWIG_AsBool(obj1);
33137 if (PyErr_Occurred()) SWIG_fail;
33138 }
33139 {
33140 PyThreadState* __tstate = wxPyBeginAllowThreads();
33141 (arg1)->SetOwnerDrawn(arg2);
33142
33143 wxPyEndAllowThreads(__tstate);
33144 if (PyErr_Occurred()) SWIG_fail;
33145 }
33146 Py_INCREF(Py_None); resultobj = Py_None;
33147 return resultobj;
33148 fail:
33149 return NULL;
33150}
33151
33152
33153static PyObject *_wrap_MenuItem_ResetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) {
33154 PyObject *resultobj;
33155 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33156 PyObject * obj0 = 0 ;
33157 char *kwnames[] = {
33158 (char *) "self", NULL
33159 };
33160
33161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_ResetOwnerDrawn",kwnames,&obj0)) goto fail;
33162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33164 {
33165 PyThreadState* __tstate = wxPyBeginAllowThreads();
33166 (arg1)->ResetOwnerDrawn();
33167
33168 wxPyEndAllowThreads(__tstate);
33169 if (PyErr_Occurred()) SWIG_fail;
33170 }
33171 Py_INCREF(Py_None); resultobj = Py_None;
33172 return resultobj;
33173 fail:
33174 return NULL;
33175}
33176
33177
33178static PyObject *_wrap_MenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
33179 PyObject *resultobj;
33180 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33181 wxBitmap *arg2 = 0 ;
33182 PyObject * obj0 = 0 ;
33183 PyObject * obj1 = 0 ;
33184 char *kwnames[] = {
33185 (char *) "self",(char *) "bitmap", NULL
33186 };
33187
33188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
33189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33191 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
33192 SWIG_POINTER_EXCEPTION | 0)) == -1)
33193 SWIG_fail;
33194 if (arg2 == NULL) {
33195 PyErr_SetString(PyExc_TypeError,"null reference");
33196 SWIG_fail;
33197 }
33198 {
33199 PyThreadState* __tstate = wxPyBeginAllowThreads();
33200 (arg1)->SetBitmap((wxBitmap const &)*arg2);
33201
33202 wxPyEndAllowThreads(__tstate);
33203 if (PyErr_Occurred()) SWIG_fail;
33204 }
33205 Py_INCREF(Py_None); resultobj = Py_None;
33206 return resultobj;
33207 fail:
33208 return NULL;
33209}
33210
33211
33212static PyObject *_wrap_MenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
33213 PyObject *resultobj;
33214 wxMenuItem *arg1 = (wxMenuItem *) 0 ;
33215 wxBitmap *result;
33216 PyObject * obj0 = 0 ;
33217 char *kwnames[] = {
33218 (char *) "self", NULL
33219 };
33220
33221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetBitmap",kwnames,&obj0)) goto fail;
33222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMenuItem,
33223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33224 {
33225 PyThreadState* __tstate = wxPyBeginAllowThreads();
33226 {
33227 wxBitmap const &_result_ref = (arg1)->GetBitmap();
33228 result = (wxBitmap *) &_result_ref;
33229 }
33230
33231 wxPyEndAllowThreads(__tstate);
33232 if (PyErr_Occurred()) SWIG_fail;
33233 }
33234 {
33235 wxBitmap* resultptr = new wxBitmap(*result);
33236 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
33237 }
33238 return resultobj;
33239 fail:
33240 return NULL;
33241}
33242
33243
33244static PyObject * MenuItem_swigregister(PyObject *self, PyObject *args) {
33245 PyObject *obj;
33246 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
33247 SWIG_TypeClientData(SWIGTYPE_p_wxMenuItem, obj);
33248 Py_INCREF(obj);
33249 return Py_BuildValue((char *)"");
33250}
33251static int _wrap_ControlNameStr_set(PyObject *_val) {
33252 PyErr_SetString(PyExc_TypeError,"Variable ControlNameStr is read-only.");
33253 return 1;
33254}
33255
33256
33257static PyObject *_wrap_ControlNameStr_get() {
33258 PyObject *pyobj;
33259
33260 {
33261#if wxUSE_UNICODE
33262 pyobj = PyUnicode_FromWideChar((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len());
33263#else
33264 pyobj = PyString_FromStringAndSize((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len());
33265#endif
33266 }
33267 return pyobj;
33268}
33269
33270
33271static PyObject *_wrap_new_Control(PyObject *self, PyObject *args, PyObject *kwargs) {
33272 PyObject *resultobj;
33273 wxWindow *arg1 = (wxWindow *) 0 ;
248ed943 33274 int arg2 = (int) -1 ;
d55e5bfc
RD
33275 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33276 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33277 wxSize const &arg4_defvalue = wxDefaultSize ;
33278 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33279 long arg5 = (long) 0 ;
33280 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33281 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33282 wxString const &arg7_defvalue = wxPyControlNameStr ;
33283 wxString *arg7 = (wxString *) &arg7_defvalue ;
33284 wxControl *result;
33285 wxPoint temp3 ;
33286 wxSize temp4 ;
33287 bool temp7 = False ;
33288 PyObject * obj0 = 0 ;
33289 PyObject * obj1 = 0 ;
33290 PyObject * obj2 = 0 ;
33291 PyObject * obj3 = 0 ;
33292 PyObject * obj4 = 0 ;
33293 PyObject * obj5 = 0 ;
33294 PyObject * obj6 = 0 ;
33295 char *kwnames[] = {
33296 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33297 };
33298
248ed943 33299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Control",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
d55e5bfc
RD
33300 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
33301 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
248ed943
RD
33302 if (obj1) {
33303 arg2 = (int) SWIG_AsInt(obj1);
33304 if (PyErr_Occurred()) SWIG_fail;
33305 }
d55e5bfc
RD
33306 if (obj2) {
33307 {
33308 arg3 = &temp3;
33309 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33310 }
33311 }
33312 if (obj3) {
33313 {
33314 arg4 = &temp4;
33315 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
33316 }
33317 }
33318 if (obj4) {
33319 arg5 = (long) SWIG_AsLong(obj4);
33320 if (PyErr_Occurred()) SWIG_fail;
33321 }
33322 if (obj5) {
33323 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
33324 SWIG_POINTER_EXCEPTION | 0)) == -1)
33325 SWIG_fail;
33326 if (arg6 == NULL) {
33327 PyErr_SetString(PyExc_TypeError,"null reference");
33328 SWIG_fail;
33329 }
33330 }
33331 if (obj6) {
33332 {
33333 arg7 = wxString_in_helper(obj6);
33334 if (arg7 == NULL) SWIG_fail;
33335 temp7 = True;
33336 }
33337 }
33338 {
0439c23b 33339 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
33340 PyThreadState* __tstate = wxPyBeginAllowThreads();
33341 result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33342
33343 wxPyEndAllowThreads(__tstate);
110da5b0 33344 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 33345 }
b0f7404b 33346 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxControl, 1);
d55e5bfc
RD
33347 {
33348 if (temp7)
33349 delete arg7;
33350 }
33351 return resultobj;
33352 fail:
33353 {
33354 if (temp7)
33355 delete arg7;
33356 }
33357 return NULL;
33358}
33359
33360
33361static PyObject *_wrap_new_PreControl(PyObject *self, PyObject *args, PyObject *kwargs) {
33362 PyObject *resultobj;
33363 wxControl *result;
33364 char *kwnames[] = {
33365 NULL
33366 };
33367
33368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreControl",kwnames)) goto fail;
33369 {
0439c23b 33370 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
33371 PyThreadState* __tstate = wxPyBeginAllowThreads();
33372 result = (wxControl *)new wxControl();
33373
33374 wxPyEndAllowThreads(__tstate);
110da5b0 33375 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc 33376 }
b0f7404b 33377 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxControl, 1);
d55e5bfc
RD
33378 return resultobj;
33379 fail:
33380 return NULL;
33381}
33382
33383
33384static PyObject *_wrap_Control_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
33385 PyObject *resultobj;
33386 wxControl *arg1 = (wxControl *) 0 ;
33387 wxWindow *arg2 = (wxWindow *) 0 ;
248ed943 33388 int arg3 = (int) -1 ;
d55e5bfc
RD
33389 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33390 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33391 wxSize const &arg5_defvalue = wxDefaultSize ;
33392 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33393 long arg6 = (long) 0 ;
33394 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33395 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33396 wxString const &arg8_defvalue = wxPyControlNameStr ;
33397 wxString *arg8 = (wxString *) &arg8_defvalue ;
33398 bool result;
33399 wxPoint temp4 ;
33400 wxSize temp5 ;
33401 bool temp8 = False ;
33402 PyObject * obj0 = 0 ;
33403 PyObject * obj1 = 0 ;
33404 PyObject * obj2 = 0 ;
33405 PyObject * obj3 = 0 ;
33406 PyObject * obj4 = 0 ;
33407 PyObject * obj5 = 0 ;
33408 PyObject * obj6 = 0 ;
33409 PyObject * obj7 = 0 ;
33410 char *kwnames[] = {
33411 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33412 };
33413
248ed943 33414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Control_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
d55e5bfc
RD
33415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl,
33416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33417 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
33418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
248ed943
RD
33419 if (obj2) {
33420 arg3 = (int) SWIG_AsInt(obj2);
33421 if (PyErr_Occurred()) SWIG_fail;
33422 }
d55e5bfc
RD
33423 if (obj3) {
33424 {
33425 arg4 = &temp4;
33426 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
33427 }
33428 }
33429 if (obj4) {
33430 {
33431 arg5 = &temp5;
33432 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
33433 }
33434 }
33435 if (obj5) {
33436 arg6 = (long) SWIG_AsLong(obj5);
33437 if (PyErr_Occurred()) SWIG_fail;
33438 }
33439 if (obj6) {
33440 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
33441 SWIG_POINTER_EXCEPTION | 0)) == -1)
33442 SWIG_fail;
33443 if (arg7 == NULL) {
33444 PyErr_SetString(PyExc_TypeError,"null reference");
33445 SWIG_fail;
33446 }
33447 }
33448 if (obj7) {
33449 {
33450 arg8 = wxString_in_helper(obj7);
33451 if (arg8 == NULL) SWIG_fail;
33452 temp8 = True;
33453 }
33454 }
33455 {
33456 PyThreadState* __tstate = wxPyBeginAllowThreads();
33457 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
33458
33459 wxPyEndAllowThreads(__tstate);
33460 if (PyErr_Occurred()) SWIG_fail;
33461 }
33462 {
33463 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33464 }
33465 {
33466 if (temp8)
33467 delete arg8;
33468 }
33469 return resultobj;
33470 fail:
33471 {
33472 if (temp8)
33473 delete arg8;
33474 }
33475 return NULL;
33476}
33477
33478
33479static PyObject *_wrap_Control_Command(PyObject *self, PyObject *args, PyObject *kwargs) {
33480 PyObject *resultobj;
33481 wxControl *arg1 = (wxControl *) 0 ;
33482 wxCommandEvent *arg2 = 0 ;
33483 PyObject * obj0 = 0 ;
33484 PyObject * obj1 = 0 ;
33485 char *kwnames[] = {
33486 (char *) "self",(char *) "event", NULL
33487 };
33488
33489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) goto fail;
33490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl,
33491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33492 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCommandEvent,
33493 SWIG_POINTER_EXCEPTION | 0)) == -1)
33494 SWIG_fail;
33495 if (arg2 == NULL) {
33496 PyErr_SetString(PyExc_TypeError,"null reference");
33497 SWIG_fail;
33498 }
33499 {
33500 PyThreadState* __tstate = wxPyBeginAllowThreads();
33501 (arg1)->Command(*arg2);
33502
33503 wxPyEndAllowThreads(__tstate);
33504 if (PyErr_Occurred()) SWIG_fail;
33505 }
33506 Py_INCREF(Py_None); resultobj = Py_None;
33507 return resultobj;
33508 fail:
33509 return NULL;
33510}
33511
33512
33513static PyObject *_wrap_Control_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
33514 PyObject *resultobj;
33515 wxControl *arg1 = (wxControl *) 0 ;
33516 wxString result;
33517 PyObject * obj0 = 0 ;
33518 char *kwnames[] = {
33519 (char *) "self", NULL
33520 };
33521
33522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Control_GetLabel",kwnames,&obj0)) goto fail;
33523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl,
33524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33525 {
33526 PyThreadState* __tstate = wxPyBeginAllowThreads();
33527 result = (arg1)->GetLabel();
33528
33529 wxPyEndAllowThreads(__tstate);
33530 if (PyErr_Occurred()) SWIG_fail;
33531 }
33532 {
33533#if wxUSE_UNICODE
33534 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33535#else
33536 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33537#endif
33538 }
33539 return resultobj;
33540 fail:
33541 return NULL;
33542}
33543
33544
33545static PyObject *_wrap_Control_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
33546 PyObject *resultobj;
33547 wxControl *arg1 = (wxControl *) 0 ;
33548 wxString *arg2 = 0 ;
33549 bool temp2 = False ;
33550 PyObject * obj0 = 0 ;
33551 PyObject * obj1 = 0 ;
33552 char *kwnames[] = {
33553 (char *) "self",(char *) "label", NULL
33554 };
33555
33556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_SetLabel",kwnames,&obj0,&obj1)) goto fail;
33557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxControl,
33558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33559 {
33560 arg2 = wxString_in_helper(obj1);
33561 if (arg2 == NULL) SWIG_fail;
33562 temp2 = True;
33563 }
33564 {
33565 PyThreadState* __tstate = wxPyBeginAllowThreads();
33566 (arg1)->SetLabel((wxString const &)*arg2);
33567
33568 wxPyEndAllowThreads(__tstate);
33569 if (PyErr_Occurred()) SWIG_fail;
33570 }
33571 Py_INCREF(Py_None); resultobj = Py_None;
33572 {
33573 if (temp2)
33574 delete arg2;
33575 }
33576 return resultobj;
33577 fail:
33578 {
33579 if (temp2)
33580 delete arg2;
33581 }
33582 return NULL;
33583}
33584
33585
33586static PyObject *_wrap_Control_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) {
33587 PyObject *resultobj;
33588 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
33589 wxVisualAttributes result;
33590 PyObject * obj0 = 0 ;
33591 char *kwnames[] = {
33592 (char *) "variant", NULL
33593 };
33594
33595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Control_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
33596 if (obj0) {
33597 arg1 = (wxWindowVariant) SWIG_AsInt(obj0);
33598 if (PyErr_Occurred()) SWIG_fail;
33599 }
33600 {
a001823c 33601 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
33602 PyThreadState* __tstate = wxPyBeginAllowThreads();
33603 result = wxControl::GetClassDefaultAttributes((wxWindowVariant )arg1);
33604
33605 wxPyEndAllowThreads(__tstate);
110da5b0 33606 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
33607 }
33608 {
33609 wxVisualAttributes * resultptr;
33610 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
33611 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
33612 }
33613 return resultobj;
33614 fail:
33615 return NULL;
33616}
33617
33618
33619static PyObject * Control_swigregister(PyObject *self, PyObject *args) {
33620 PyObject *obj;
33621 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
33622 SWIG_TypeClientData(SWIGTYPE_p_wxControl, obj);
33623 Py_INCREF(obj);
33624 return Py_BuildValue((char *)"");
33625}
33626static PyObject *_wrap_ItemContainer_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
33627 PyObject *resultobj;
33628 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33629 wxString *arg2 = 0 ;
33630 PyObject *arg3 = (PyObject *) NULL ;
33631 int result;
33632 bool temp2 = False ;
33633 PyObject * obj0 = 0 ;
33634 PyObject * obj1 = 0 ;
33635 PyObject * obj2 = 0 ;
33636 char *kwnames[] = {
33637 (char *) "self",(char *) "item",(char *) "clientData", NULL
33638 };
33639
33640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) goto fail;
33641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33643 {
33644 arg2 = wxString_in_helper(obj1);
33645 if (arg2 == NULL) SWIG_fail;
33646 temp2 = True;
33647 }
33648 if (obj2) {
33649 arg3 = obj2;
33650 }
33651 {
33652 PyThreadState* __tstate = wxPyBeginAllowThreads();
33653 result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3);
33654
33655 wxPyEndAllowThreads(__tstate);
33656 if (PyErr_Occurred()) SWIG_fail;
33657 }
33658 resultobj = SWIG_FromInt((int)result);
33659 {
33660 if (temp2)
33661 delete arg2;
33662 }
33663 return resultobj;
33664 fail:
33665 {
33666 if (temp2)
33667 delete arg2;
33668 }
33669 return NULL;
33670}
33671
33672
33673static PyObject *_wrap_ItemContainer_AppendItems(PyObject *self, PyObject *args, PyObject *kwargs) {
33674 PyObject *resultobj;
33675 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33676 wxArrayString *arg2 = 0 ;
33677 bool temp2 = False ;
33678 PyObject * obj0 = 0 ;
33679 PyObject * obj1 = 0 ;
33680 char *kwnames[] = {
33681 (char *) "self",(char *) "strings", NULL
33682 };
33683
33684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) goto fail;
33685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33687 {
33688 if (! PySequence_Check(obj1)) {
33689 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
33690 SWIG_fail;
33691 }
33692 arg2 = new wxArrayString;
33693 temp2 = True;
33694 int i, len=PySequence_Length(obj1);
33695 for (i=0; i<len; i++) {
33696 PyObject* item = PySequence_GetItem(obj1, i);
33697#if wxUSE_UNICODE
33698 PyObject* str = PyObject_Unicode(item);
33699#else
33700 PyObject* str = PyObject_Str(item);
33701#endif
33702 if (PyErr_Occurred()) SWIG_fail;
33703 arg2->Add(Py2wxString(str));
33704 Py_DECREF(item);
33705 Py_DECREF(str);
33706 }
33707 }
33708 {
33709 PyThreadState* __tstate = wxPyBeginAllowThreads();
33710 (arg1)->Append((wxArrayString const &)*arg2);
33711
33712 wxPyEndAllowThreads(__tstate);
33713 if (PyErr_Occurred()) SWIG_fail;
33714 }
33715 Py_INCREF(Py_None); resultobj = Py_None;
33716 {
33717 if (temp2) delete arg2;
33718 }
33719 return resultobj;
33720 fail:
33721 {
33722 if (temp2) delete arg2;
33723 }
33724 return NULL;
33725}
33726
33727
33728static PyObject *_wrap_ItemContainer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
33729 PyObject *resultobj;
33730 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33731 wxString *arg2 = 0 ;
33732 int arg3 ;
33733 PyObject *arg4 = (PyObject *) NULL ;
33734 int result;
33735 bool temp2 = False ;
33736 PyObject * obj0 = 0 ;
33737 PyObject * obj1 = 0 ;
33738 PyObject * obj2 = 0 ;
33739 PyObject * obj3 = 0 ;
33740 char *kwnames[] = {
33741 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
33742 };
33743
33744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
33745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33747 {
33748 arg2 = wxString_in_helper(obj1);
33749 if (arg2 == NULL) SWIG_fail;
33750 temp2 = True;
33751 }
33752 arg3 = (int) SWIG_AsInt(obj2);
33753 if (PyErr_Occurred()) SWIG_fail;
33754 if (obj3) {
33755 arg4 = obj3;
33756 }
33757 {
33758 PyThreadState* __tstate = wxPyBeginAllowThreads();
33759 result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
33760
33761 wxPyEndAllowThreads(__tstate);
33762 if (PyErr_Occurred()) SWIG_fail;
33763 }
33764 resultobj = SWIG_FromInt((int)result);
33765 {
33766 if (temp2)
33767 delete arg2;
33768 }
33769 return resultobj;
33770 fail:
33771 {
33772 if (temp2)
33773 delete arg2;
33774 }
33775 return NULL;
33776}
33777
33778
33779static PyObject *_wrap_ItemContainer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
33780 PyObject *resultobj;
33781 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33782 PyObject * obj0 = 0 ;
33783 char *kwnames[] = {
33784 (char *) "self", NULL
33785 };
33786
33787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_Clear",kwnames,&obj0)) goto fail;
33788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33790 {
33791 PyThreadState* __tstate = wxPyBeginAllowThreads();
33792 (arg1)->Clear();
33793
33794 wxPyEndAllowThreads(__tstate);
33795 if (PyErr_Occurred()) SWIG_fail;
33796 }
33797 Py_INCREF(Py_None); resultobj = Py_None;
33798 return resultobj;
33799 fail:
33800 return NULL;
33801}
33802
33803
33804static PyObject *_wrap_ItemContainer_Delete(PyObject *self, PyObject *args, PyObject *kwargs) {
33805 PyObject *resultobj;
33806 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33807 int arg2 ;
33808 PyObject * obj0 = 0 ;
33809 PyObject * obj1 = 0 ;
33810 char *kwnames[] = {
33811 (char *) "self",(char *) "n", NULL
33812 };
33813
33814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Delete",kwnames,&obj0,&obj1)) goto fail;
33815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33817 arg2 = (int) SWIG_AsInt(obj1);
33818 if (PyErr_Occurred()) SWIG_fail;
33819 {
33820 PyThreadState* __tstate = wxPyBeginAllowThreads();
33821 (arg1)->Delete(arg2);
33822
33823 wxPyEndAllowThreads(__tstate);
33824 if (PyErr_Occurred()) SWIG_fail;
33825 }
33826 Py_INCREF(Py_None); resultobj = Py_None;
33827 return resultobj;
33828 fail:
33829 return NULL;
33830}
33831
33832
33833static PyObject *_wrap_ItemContainer_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
33834 PyObject *resultobj;
33835 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33836 int result;
33837 PyObject * obj0 = 0 ;
33838 char *kwnames[] = {
33839 (char *) "self", NULL
33840 };
33841
33842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetCount",kwnames,&obj0)) goto fail;
33843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33845 {
33846 PyThreadState* __tstate = wxPyBeginAllowThreads();
33847 result = (int)((wxItemContainer const *)arg1)->GetCount();
33848
33849 wxPyEndAllowThreads(__tstate);
33850 if (PyErr_Occurred()) SWIG_fail;
33851 }
33852 resultobj = SWIG_FromInt((int)result);
33853 return resultobj;
33854 fail:
33855 return NULL;
33856}
33857
33858
33859static PyObject *_wrap_ItemContainer_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
33860 PyObject *resultobj;
33861 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33862 bool result;
33863 PyObject * obj0 = 0 ;
33864 char *kwnames[] = {
33865 (char *) "self", NULL
33866 };
33867
33868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_IsEmpty",kwnames,&obj0)) goto fail;
33869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33871 {
33872 PyThreadState* __tstate = wxPyBeginAllowThreads();
33873 result = (bool)((wxItemContainer const *)arg1)->IsEmpty();
33874
33875 wxPyEndAllowThreads(__tstate);
33876 if (PyErr_Occurred()) SWIG_fail;
33877 }
33878 {
33879 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33880 }
33881 return resultobj;
33882 fail:
33883 return NULL;
33884}
33885
33886
33887static PyObject *_wrap_ItemContainer_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
33888 PyObject *resultobj;
33889 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33890 int arg2 ;
33891 wxString result;
33892 PyObject * obj0 = 0 ;
33893 PyObject * obj1 = 0 ;
33894 char *kwnames[] = {
33895 (char *) "self",(char *) "n", NULL
33896 };
33897
33898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetString",kwnames,&obj0,&obj1)) goto fail;
33899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33901 arg2 = (int) SWIG_AsInt(obj1);
33902 if (PyErr_Occurred()) SWIG_fail;
33903 {
33904 PyThreadState* __tstate = wxPyBeginAllowThreads();
33905 result = ((wxItemContainer const *)arg1)->GetString(arg2);
33906
33907 wxPyEndAllowThreads(__tstate);
33908 if (PyErr_Occurred()) SWIG_fail;
33909 }
33910 {
33911#if wxUSE_UNICODE
33912 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33913#else
33914 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33915#endif
33916 }
33917 return resultobj;
33918 fail:
33919 return NULL;
33920}
33921
33922
33923static PyObject *_wrap_ItemContainer_GetStrings(PyObject *self, PyObject *args, PyObject *kwargs) {
33924 PyObject *resultobj;
33925 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33926 wxArrayString result;
33927 PyObject * obj0 = 0 ;
33928 char *kwnames[] = {
33929 (char *) "self", NULL
33930 };
33931
33932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStrings",kwnames,&obj0)) goto fail;
33933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33935 {
33936 PyThreadState* __tstate = wxPyBeginAllowThreads();
33937 result = ((wxItemContainer const *)arg1)->GetStrings();
33938
33939 wxPyEndAllowThreads(__tstate);
33940 if (PyErr_Occurred()) SWIG_fail;
33941 }
33942 {
33943 resultobj = wxArrayString2PyList_helper(result);
33944 }
33945 return resultobj;
33946 fail:
33947 return NULL;
33948}
33949
33950
33951static PyObject *_wrap_ItemContainer_SetString(PyObject *self, PyObject *args, PyObject *kwargs) {
33952 PyObject *resultobj;
33953 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33954 int arg2 ;
33955 wxString *arg3 = 0 ;
33956 bool temp3 = False ;
33957 PyObject * obj0 = 0 ;
33958 PyObject * obj1 = 0 ;
33959 PyObject * obj2 = 0 ;
33960 char *kwnames[] = {
33961 (char *) "self",(char *) "n",(char *) "s", NULL
33962 };
33963
33964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
33965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
33966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
33967 arg2 = (int) SWIG_AsInt(obj1);
33968 if (PyErr_Occurred()) SWIG_fail;
33969 {
33970 arg3 = wxString_in_helper(obj2);
33971 if (arg3 == NULL) SWIG_fail;
33972 temp3 = True;
33973 }
33974 {
33975 PyThreadState* __tstate = wxPyBeginAllowThreads();
33976 (arg1)->SetString(arg2,(wxString const &)*arg3);
33977
33978 wxPyEndAllowThreads(__tstate);
33979 if (PyErr_Occurred()) SWIG_fail;
33980 }
33981 Py_INCREF(Py_None); resultobj = Py_None;
33982 {
33983 if (temp3)
33984 delete arg3;
33985 }
33986 return resultobj;
33987 fail:
33988 {
33989 if (temp3)
33990 delete arg3;
33991 }
33992 return NULL;
33993}
33994
33995
33996static PyObject *_wrap_ItemContainer_FindString(PyObject *self, PyObject *args, PyObject *kwargs) {
33997 PyObject *resultobj;
33998 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
33999 wxString *arg2 = 0 ;
34000 int result;
34001 bool temp2 = False ;
34002 PyObject * obj0 = 0 ;
34003 PyObject * obj1 = 0 ;
34004 char *kwnames[] = {
34005 (char *) "self",(char *) "s", NULL
34006 };
34007
34008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) goto fail;
34009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34011 {
34012 arg2 = wxString_in_helper(obj1);
34013 if (arg2 == NULL) SWIG_fail;
34014 temp2 = True;
34015 }
34016 {
34017 PyThreadState* __tstate = wxPyBeginAllowThreads();
34018 result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2);
34019
34020 wxPyEndAllowThreads(__tstate);
34021 if (PyErr_Occurred()) SWIG_fail;
34022 }
34023 resultobj = SWIG_FromInt((int)result);
34024 {
34025 if (temp2)
34026 delete arg2;
34027 }
34028 return resultobj;
34029 fail:
34030 {
34031 if (temp2)
34032 delete arg2;
34033 }
34034 return NULL;
34035}
34036
34037
34038static PyObject *_wrap_ItemContainer_Select(PyObject *self, PyObject *args, PyObject *kwargs) {
34039 PyObject *resultobj;
34040 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34041 int arg2 ;
34042 PyObject * obj0 = 0 ;
34043 PyObject * obj1 = 0 ;
34044 char *kwnames[] = {
34045 (char *) "self",(char *) "n", NULL
34046 };
34047
34048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Select",kwnames,&obj0,&obj1)) goto fail;
34049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34051 arg2 = (int) SWIG_AsInt(obj1);
34052 if (PyErr_Occurred()) SWIG_fail;
34053 {
34054 PyThreadState* __tstate = wxPyBeginAllowThreads();
34055 (arg1)->Select(arg2);
34056
34057 wxPyEndAllowThreads(__tstate);
34058 if (PyErr_Occurred()) SWIG_fail;
34059 }
34060 Py_INCREF(Py_None); resultobj = Py_None;
34061 return resultobj;
34062 fail:
34063 return NULL;
34064}
34065
34066
34067static PyObject *_wrap_ItemContainer_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
34068 PyObject *resultobj;
34069 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34070 int result;
34071 PyObject * obj0 = 0 ;
34072 char *kwnames[] = {
34073 (char *) "self", NULL
34074 };
34075
34076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetSelection",kwnames,&obj0)) goto fail;
34077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34079 {
34080 PyThreadState* __tstate = wxPyBeginAllowThreads();
34081 result = (int)((wxItemContainer const *)arg1)->GetSelection();
34082
34083 wxPyEndAllowThreads(__tstate);
34084 if (PyErr_Occurred()) SWIG_fail;
34085 }
34086 resultobj = SWIG_FromInt((int)result);
34087 return resultobj;
34088 fail:
34089 return NULL;
34090}
34091
34092
34093static PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) {
34094 PyObject *resultobj;
34095 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34096 wxString result;
34097 PyObject * obj0 = 0 ;
34098 char *kwnames[] = {
34099 (char *) "self", NULL
34100 };
34101
34102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ItemContainer_GetStringSelection",kwnames,&obj0)) goto fail;
34103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34105 {
34106 PyThreadState* __tstate = wxPyBeginAllowThreads();
34107 result = ((wxItemContainer const *)arg1)->GetStringSelection();
34108
34109 wxPyEndAllowThreads(__tstate);
34110 if (PyErr_Occurred()) SWIG_fail;
34111 }
34112 {
34113#if wxUSE_UNICODE
34114 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
34115#else
34116 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
34117#endif
34118 }
34119 return resultobj;
34120 fail:
34121 return NULL;
34122}
34123
34124
34125static PyObject *_wrap_ItemContainer_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
34126 PyObject *resultobj;
34127 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34128 int arg2 ;
34129 PyObject *result;
34130 PyObject * obj0 = 0 ;
34131 PyObject * obj1 = 0 ;
34132 char *kwnames[] = {
34133 (char *) "self",(char *) "n", NULL
34134 };
34135
34136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetClientData",kwnames,&obj0,&obj1)) goto fail;
34137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34139 arg2 = (int) SWIG_AsInt(obj1);
34140 if (PyErr_Occurred()) SWIG_fail;
34141 {
34142 PyThreadState* __tstate = wxPyBeginAllowThreads();
34143 result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2);
34144
34145 wxPyEndAllowThreads(__tstate);
34146 if (PyErr_Occurred()) SWIG_fail;
34147 }
34148 resultobj = result;
34149 return resultobj;
34150 fail:
34151 return NULL;
34152}
34153
34154
34155static PyObject *_wrap_ItemContainer_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) {
34156 PyObject *resultobj;
34157 wxItemContainer *arg1 = (wxItemContainer *) 0 ;
34158 int arg2 ;
34159 PyObject *arg3 = (PyObject *) 0 ;
34160 PyObject * obj0 = 0 ;
34161 PyObject * obj1 = 0 ;
34162 PyObject * obj2 = 0 ;
34163 char *kwnames[] = {
34164 (char *) "self",(char *) "n",(char *) "clientData", NULL
34165 };
34166
34167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetClientData",kwnames,&obj0,&obj1,&obj2)) goto fail;
34168 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxItemContainer,
34169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34170 arg2 = (int) SWIG_AsInt(obj1);
34171 if (PyErr_Occurred()) SWIG_fail;
34172 arg3 = obj2;
34173 {
34174 PyThreadState* __tstate = wxPyBeginAllowThreads();
34175 wxItemContainer_SetClientData(arg1,arg2,arg3);
34176
34177 wxPyEndAllowThreads(__tstate);
34178 if (PyErr_Occurred()) SWIG_fail;
34179 }
34180 Py_INCREF(Py_None); resultobj = Py_None;
34181 return resultobj;
34182 fail:
34183 return NULL;
34184}
34185
34186
34187static PyObject * ItemContainer_swigregister(PyObject *self, PyObject *args) {
34188 PyObject *obj;
34189 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
34190 SWIG_TypeClientData(SWIGTYPE_p_wxItemContainer, obj);
34191 Py_INCREF(obj);
34192 return Py_BuildValue((char *)"");
34193}
34194static PyObject * ControlWithItems_swigregister(PyObject *self, PyObject *args) {
34195 PyObject *obj;
34196 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
34197 SWIG_TypeClientData(SWIGTYPE_p_wxControlWithItems, obj);
34198 Py_INCREF(obj);
34199 return Py_BuildValue((char *)"");
34200}
34201static PyObject *_wrap_new_SizerItem(PyObject *self, PyObject *args, PyObject *kwargs) {
34202 PyObject *resultobj;
34203 wxSizerItem *result;
34204 char *kwnames[] = {
34205 NULL
34206 };
34207
34208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SizerItem",kwnames)) goto fail;
34209 {
34210 PyThreadState* __tstate = wxPyBeginAllowThreads();
34211 result = (wxSizerItem *)new wxSizerItem();
34212
34213 wxPyEndAllowThreads(__tstate);
34214 if (PyErr_Occurred()) SWIG_fail;
34215 }
34216 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1);
34217 return resultobj;
34218 fail:
34219 return NULL;
34220}
34221
34222
248ed943 34223static PyObject *_wrap_new_SizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc 34224 PyObject *resultobj;
248ed943 34225 wxWindow *arg1 = (wxWindow *) 0 ;
d55e5bfc
RD
34226 int arg2 ;
34227 int arg3 ;
34228 int arg4 ;
248ed943 34229 PyObject *arg5 = (PyObject *) NULL ;
d55e5bfc
RD
34230 wxSizerItem *result;
34231 PyObject * obj0 = 0 ;
34232 PyObject * obj1 = 0 ;
34233 PyObject * obj2 = 0 ;
34234 PyObject * obj3 = 0 ;
34235 PyObject * obj4 = 0 ;
d55e5bfc 34236 char *kwnames[] = {
248ed943 34237 (char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
d55e5bfc
RD
34238 };
34239
248ed943
RD
34240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
34241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
34242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d55e5bfc
RD
34243 arg2 = (int) SWIG_AsInt(obj1);
34244 if (PyErr_Occurred()) SWIG_fail;
34245 arg3 = (int) SWIG_AsInt(obj2);
34246 if (PyErr_Occurred()) SWIG_fail;
34247 arg4 = (int) SWIG_AsInt(obj3);
34248 if (PyErr_Occurred()) SWIG_fail;
248ed943
RD
34249 if (obj4) {
34250 arg5 = obj4;
34251 }
d55e5bfc
RD
34252 {
34253 PyThreadState* __tstate = wxPyBeginAllowThreads();
248ed943 34254 result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5);
d55e5bfc
RD
34255
34256 wxPyEndAllowThreads(__tstate);
34257 if (PyErr_Occurred()) SWIG_fail;
34258 }
34259 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1);
34260 return resultobj;
34261 fail:
34262 return NULL;
34263}
34264
34265
248ed943 34266static PyObject *_wrap_new_SizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc 34267 PyObject *resultobj;
248ed943 34268 int arg1 ;
d55e5bfc
RD
34269 int arg2 ;
34270 int arg3 ;
34271 int arg4 ;
248ed943
RD
34272 int arg5 ;
34273 PyObject *arg6 = (PyObject *) NULL ;
d55e5bfc
RD
34274 wxSizerItem *result;
34275 PyObject * obj0 = 0 ;
34276 PyObject * obj1 = 0 ;
34277 PyObject * obj2 = 0 ;
34278 PyObject * obj3 = 0 ;
34279 PyObject * obj4 = 0 ;
248ed943 34280 PyObject * obj5 = 0 ;
d55e5bfc 34281 char *kwnames[] = {
248ed943 34282 (char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
d55e5bfc
RD
34283 };
34284
248ed943
RD
34285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_SizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
34286 arg1 = (int) SWIG_AsInt(obj0);
34287 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
34288 arg2 = (int) SWIG_AsInt(obj1);
34289 if (PyErr_Occurred()) SWIG_fail;
34290 arg3 = (int) SWIG_AsInt(obj2);
34291 if (PyErr_Occurred()) SWIG_fail;
34292 arg4 = (int) SWIG_AsInt(obj3);
34293 if (PyErr_Occurred()) SWIG_fail;
248ed943
RD
34294 arg5 = (int) SWIG_AsInt(obj4);
34295 if (PyErr_Occurred()) SWIG_fail;
34296 if (obj5) {
34297 arg6 = obj5;
34298 }
d55e5bfc
RD
34299 {
34300 PyThreadState* __tstate = wxPyBeginAllowThreads();
248ed943 34301 result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6);
d55e5bfc
RD
34302
34303 wxPyEndAllowThreads(__tstate);
34304 if (PyErr_Occurred()) SWIG_fail;
34305 }
34306 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1);
34307 return resultobj;
34308 fail:
34309 return NULL;
34310}
34311
34312
34313static PyObject *_wrap_new_SizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
34314 PyObject *resultobj;
34315 wxSizer *arg1 = (wxSizer *) 0 ;
34316 int arg2 ;
34317 int arg3 ;
34318 int arg4 ;
248ed943 34319 PyObject *arg5 = (PyObject *) NULL ;
d55e5bfc
RD
34320 wxSizerItem *result;
34321 PyObject * obj0 = 0 ;
34322 PyObject * obj1 = 0 ;
34323 PyObject * obj2 = 0 ;
34324 PyObject * obj3 = 0 ;
34325 PyObject * obj4 = 0 ;
34326 char *kwnames[] = {
34327 (char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
34328 };
34329
248ed943 34330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
34331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
34332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34333 arg2 = (int) SWIG_AsInt(obj1);
34334 if (PyErr_Occurred()) SWIG_fail;
34335 arg3 = (int) SWIG_AsInt(obj2);
34336 if (PyErr_Occurred()) SWIG_fail;
34337 arg4 = (int) SWIG_AsInt(obj3);
34338 if (PyErr_Occurred()) SWIG_fail;
248ed943
RD
34339 if (obj4) {
34340 arg5 = obj4;
34341 }
d55e5bfc
RD
34342 {
34343 PyThreadState* __tstate = wxPyBeginAllowThreads();
248ed943 34344 result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5);
d55e5bfc
RD
34345
34346 wxPyEndAllowThreads(__tstate);
34347 if (PyErr_Occurred()) SWIG_fail;
34348 }
34349 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSizerItem, 1);
34350 return resultobj;
34351 fail:
34352 return NULL;
34353}
34354
34355
34356static PyObject *_wrap_SizerItem_DeleteWindows(PyObject *self, PyObject *args, PyObject *kwargs) {
34357 PyObject *resultobj;
34358 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34359 PyObject * obj0 = 0 ;
34360 char *kwnames[] = {
34361 (char *) "self", NULL
34362 };
34363
34364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DeleteWindows",kwnames,&obj0)) goto fail;
34365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34367 {
34368 PyThreadState* __tstate = wxPyBeginAllowThreads();
34369 (arg1)->DeleteWindows();
34370
34371 wxPyEndAllowThreads(__tstate);
34372 if (PyErr_Occurred()) SWIG_fail;
34373 }
34374 Py_INCREF(Py_None); resultobj = Py_None;
34375 return resultobj;
34376 fail:
34377 return NULL;
34378}
34379
34380
34381static PyObject *_wrap_SizerItem_DetachSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
34382 PyObject *resultobj;
34383 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34384 PyObject * obj0 = 0 ;
34385 char *kwnames[] = {
34386 (char *) "self", NULL
34387 };
34388
34389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_DetachSizer",kwnames,&obj0)) goto fail;
34390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34392 {
34393 PyThreadState* __tstate = wxPyBeginAllowThreads();
34394 (arg1)->DetachSizer();
34395
34396 wxPyEndAllowThreads(__tstate);
34397 if (PyErr_Occurred()) SWIG_fail;
34398 }
34399 Py_INCREF(Py_None); resultobj = Py_None;
34400 return resultobj;
34401 fail:
34402 return NULL;
34403}
34404
34405
34406static PyObject *_wrap_SizerItem_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
34407 PyObject *resultobj;
34408 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34409 wxSize result;
34410 PyObject * obj0 = 0 ;
34411 char *kwnames[] = {
34412 (char *) "self", NULL
34413 };
34414
34415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSize",kwnames,&obj0)) goto fail;
34416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34418 {
34419 PyThreadState* __tstate = wxPyBeginAllowThreads();
34420 result = (arg1)->GetSize();
34421
34422 wxPyEndAllowThreads(__tstate);
34423 if (PyErr_Occurred()) SWIG_fail;
34424 }
34425 {
34426 wxSize * resultptr;
34427 resultptr = new wxSize((wxSize &) result);
34428 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
34429 }
34430 return resultobj;
34431 fail:
34432 return NULL;
34433}
34434
34435
34436static PyObject *_wrap_SizerItem_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
34437 PyObject *resultobj;
34438 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34439 wxSize result;
34440 PyObject * obj0 = 0 ;
34441 char *kwnames[] = {
34442 (char *) "self", NULL
34443 };
34444
34445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_CalcMin",kwnames,&obj0)) goto fail;
34446 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34448 {
34449 PyThreadState* __tstate = wxPyBeginAllowThreads();
34450 result = (arg1)->CalcMin();
34451
34452 wxPyEndAllowThreads(__tstate);
34453 if (PyErr_Occurred()) SWIG_fail;
34454 }
34455 {
34456 wxSize * resultptr;
34457 resultptr = new wxSize((wxSize &) result);
34458 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
34459 }
34460 return resultobj;
34461 fail:
34462 return NULL;
34463}
34464
34465
34466static PyObject *_wrap_SizerItem_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) {
34467 PyObject *resultobj;
34468 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34469 wxPoint arg2 ;
34470 wxSize arg3 ;
34471 wxPoint *argp2 ;
34472 wxSize *argp3 ;
34473 PyObject * obj0 = 0 ;
34474 PyObject * obj1 = 0 ;
34475 PyObject * obj2 = 0 ;
34476 char *kwnames[] = {
34477 (char *) "self",(char *) "pos",(char *) "size", NULL
34478 };
34479
34480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) goto fail;
34481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34483 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxPoint,
34484 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
34485 arg2 = *argp2;
34486 if ((SWIG_ConvertPtr(obj2,(void **)(&argp3),SWIGTYPE_p_wxSize,
34487 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
34488 arg3 = *argp3;
34489 {
34490 PyThreadState* __tstate = wxPyBeginAllowThreads();
34491 (arg1)->SetDimension(arg2,arg3);
34492
34493 wxPyEndAllowThreads(__tstate);
34494 if (PyErr_Occurred()) SWIG_fail;
34495 }
34496 Py_INCREF(Py_None); resultobj = Py_None;
34497 return resultobj;
34498 fail:
34499 return NULL;
34500}
34501
34502
34503static PyObject *_wrap_SizerItem_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) {
34504 PyObject *resultobj;
34505 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34506 wxSize result;
34507 PyObject * obj0 = 0 ;
34508 char *kwnames[] = {
34509 (char *) "self", NULL
34510 };
34511
34512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSize",kwnames,&obj0)) goto fail;
34513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34515 {
34516 PyThreadState* __tstate = wxPyBeginAllowThreads();
34517 result = (arg1)->GetMinSize();
34518
34519 wxPyEndAllowThreads(__tstate);
34520 if (PyErr_Occurred()) SWIG_fail;
34521 }
34522 {
34523 wxSize * resultptr;
34524 resultptr = new wxSize((wxSize &) result);
34525 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
34526 }
34527 return resultobj;
34528 fail:
34529 return NULL;
34530}
34531
34532
a001823c
RD
34533static PyObject *_wrap_SizerItem_GetMinSizeWithBorder(PyObject *self, PyObject *args, PyObject *kwargs) {
34534 PyObject *resultobj;
34535 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34536 wxSize result;
34537 PyObject * obj0 = 0 ;
34538 char *kwnames[] = {
34539 (char *) "self", NULL
34540 };
34541
34542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetMinSizeWithBorder",kwnames,&obj0)) goto fail;
34543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34545 {
34546 PyThreadState* __tstate = wxPyBeginAllowThreads();
34547 result = ((wxSizerItem const *)arg1)->GetMinSizeWithBorder();
34548
34549 wxPyEndAllowThreads(__tstate);
34550 if (PyErr_Occurred()) SWIG_fail;
34551 }
34552 {
34553 wxSize * resultptr;
34554 resultptr = new wxSize((wxSize &) result);
34555 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
34556 }
34557 return resultobj;
34558 fail:
34559 return NULL;
34560}
34561
34562
d55e5bfc
RD
34563static PyObject *_wrap_SizerItem_SetInitSize(PyObject *self, PyObject *args, PyObject *kwargs) {
34564 PyObject *resultobj;
34565 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34566 int arg2 ;
34567 int arg3 ;
34568 PyObject * obj0 = 0 ;
34569 PyObject * obj1 = 0 ;
34570 PyObject * obj2 = 0 ;
34571 char *kwnames[] = {
34572 (char *) "self",(char *) "x",(char *) "y", NULL
34573 };
34574
34575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetInitSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
34576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34578 arg2 = (int) SWIG_AsInt(obj1);
34579 if (PyErr_Occurred()) SWIG_fail;
34580 arg3 = (int) SWIG_AsInt(obj2);
34581 if (PyErr_Occurred()) SWIG_fail;
34582 {
34583 PyThreadState* __tstate = wxPyBeginAllowThreads();
34584 (arg1)->SetInitSize(arg2,arg3);
34585
34586 wxPyEndAllowThreads(__tstate);
34587 if (PyErr_Occurred()) SWIG_fail;
34588 }
34589 Py_INCREF(Py_None); resultobj = Py_None;
34590 return resultobj;
34591 fail:
34592 return NULL;
34593}
34594
34595
34596static PyObject *_wrap_SizerItem_SetRatioWH(PyObject *self, PyObject *args, PyObject *kwargs) {
34597 PyObject *resultobj;
34598 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34599 int arg2 ;
34600 int arg3 ;
34601 PyObject * obj0 = 0 ;
34602 PyObject * obj1 = 0 ;
34603 PyObject * obj2 = 0 ;
34604 char *kwnames[] = {
34605 (char *) "self",(char *) "width",(char *) "height", NULL
34606 };
34607
34608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetRatioWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
34609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34611 arg2 = (int) SWIG_AsInt(obj1);
34612 if (PyErr_Occurred()) SWIG_fail;
34613 arg3 = (int) SWIG_AsInt(obj2);
34614 if (PyErr_Occurred()) SWIG_fail;
34615 {
34616 PyThreadState* __tstate = wxPyBeginAllowThreads();
34617 (arg1)->SetRatio(arg2,arg3);
34618
34619 wxPyEndAllowThreads(__tstate);
34620 if (PyErr_Occurred()) SWIG_fail;
34621 }
34622 Py_INCREF(Py_None); resultobj = Py_None;
34623 return resultobj;
34624 fail:
34625 return NULL;
34626}
34627
34628
34629static PyObject *_wrap_SizerItem_SetRatioSize(PyObject *self, PyObject *args, PyObject *kwargs) {
34630 PyObject *resultobj;
34631 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34632 wxSize arg2 ;
34633 wxSize *argp2 ;
34634 PyObject * obj0 = 0 ;
34635 PyObject * obj1 = 0 ;
34636 char *kwnames[] = {
34637 (char *) "self",(char *) "size", NULL
34638 };
34639
34640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) goto fail;
34641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34643 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxSize,
34644 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
34645 arg2 = *argp2;
34646 {
34647 PyThreadState* __tstate = wxPyBeginAllowThreads();
34648 (arg1)->SetRatio(arg2);
34649
34650 wxPyEndAllowThreads(__tstate);
34651 if (PyErr_Occurred()) SWIG_fail;
34652 }
34653 Py_INCREF(Py_None); resultobj = Py_None;
34654 return resultobj;
34655 fail:
34656 return NULL;
34657}
34658
34659
34660static PyObject *_wrap_SizerItem_SetRatio(PyObject *self, PyObject *args, PyObject *kwargs) {
34661 PyObject *resultobj;
34662 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34663 float arg2 ;
34664 PyObject * obj0 = 0 ;
34665 PyObject * obj1 = 0 ;
34666 char *kwnames[] = {
34667 (char *) "self",(char *) "ratio", NULL
34668 };
34669
34670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatio",kwnames,&obj0,&obj1)) goto fail;
34671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34673 arg2 = (float) SWIG_AsFloat(obj1);
34674 if (PyErr_Occurred()) SWIG_fail;
34675 {
34676 PyThreadState* __tstate = wxPyBeginAllowThreads();
34677 (arg1)->SetRatio(arg2);
34678
34679 wxPyEndAllowThreads(__tstate);
34680 if (PyErr_Occurred()) SWIG_fail;
34681 }
34682 Py_INCREF(Py_None); resultobj = Py_None;
34683 return resultobj;
34684 fail:
34685 return NULL;
34686}
34687
34688
34689static PyObject *_wrap_SizerItem_GetRatio(PyObject *self, PyObject *args, PyObject *kwargs) {
34690 PyObject *resultobj;
34691 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34692 float result;
34693 PyObject * obj0 = 0 ;
34694 char *kwnames[] = {
34695 (char *) "self", NULL
34696 };
34697
34698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetRatio",kwnames,&obj0)) goto fail;
34699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34701 {
34702 PyThreadState* __tstate = wxPyBeginAllowThreads();
34703 result = (float)(arg1)->GetRatio();
34704
34705 wxPyEndAllowThreads(__tstate);
34706 if (PyErr_Occurred()) SWIG_fail;
34707 }
34708 resultobj = SWIG_FromFloat((float)result);
34709 return resultobj;
34710 fail:
34711 return NULL;
34712}
34713
34714
34715static PyObject *_wrap_SizerItem_IsWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
34716 PyObject *resultobj;
34717 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34718 bool result;
34719 PyObject * obj0 = 0 ;
34720 char *kwnames[] = {
34721 (char *) "self", NULL
34722 };
34723
34724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsWindow",kwnames,&obj0)) goto fail;
34725 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34727 {
34728 PyThreadState* __tstate = wxPyBeginAllowThreads();
34729 result = (bool)(arg1)->IsWindow();
34730
34731 wxPyEndAllowThreads(__tstate);
34732 if (PyErr_Occurred()) SWIG_fail;
34733 }
34734 {
34735 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34736 }
34737 return resultobj;
34738 fail:
34739 return NULL;
34740}
34741
34742
34743static PyObject *_wrap_SizerItem_IsSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
34744 PyObject *resultobj;
34745 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34746 bool result;
34747 PyObject * obj0 = 0 ;
34748 char *kwnames[] = {
34749 (char *) "self", NULL
34750 };
34751
34752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSizer",kwnames,&obj0)) goto fail;
34753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34755 {
34756 PyThreadState* __tstate = wxPyBeginAllowThreads();
34757 result = (bool)(arg1)->IsSizer();
34758
34759 wxPyEndAllowThreads(__tstate);
34760 if (PyErr_Occurred()) SWIG_fail;
34761 }
34762 {
34763 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34764 }
34765 return resultobj;
34766 fail:
34767 return NULL;
34768}
34769
34770
34771static PyObject *_wrap_SizerItem_IsSpacer(PyObject *self, PyObject *args, PyObject *kwargs) {
34772 PyObject *resultobj;
34773 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34774 bool result;
34775 PyObject * obj0 = 0 ;
34776 char *kwnames[] = {
34777 (char *) "self", NULL
34778 };
34779
34780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsSpacer",kwnames,&obj0)) goto fail;
34781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34783 {
34784 PyThreadState* __tstate = wxPyBeginAllowThreads();
34785 result = (bool)(arg1)->IsSpacer();
34786
34787 wxPyEndAllowThreads(__tstate);
34788 if (PyErr_Occurred()) SWIG_fail;
34789 }
34790 {
34791 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34792 }
34793 return resultobj;
34794 fail:
34795 return NULL;
34796}
34797
34798
34799static PyObject *_wrap_SizerItem_SetProportion(PyObject *self, PyObject *args, PyObject *kwargs) {
34800 PyObject *resultobj;
34801 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34802 int arg2 ;
34803 PyObject * obj0 = 0 ;
34804 PyObject * obj1 = 0 ;
34805 char *kwnames[] = {
34806 (char *) "self",(char *) "proportion", NULL
34807 };
34808
34809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetProportion",kwnames,&obj0,&obj1)) goto fail;
34810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34812 arg2 = (int) SWIG_AsInt(obj1);
34813 if (PyErr_Occurred()) SWIG_fail;
34814 {
34815 PyThreadState* __tstate = wxPyBeginAllowThreads();
34816 (arg1)->SetProportion(arg2);
34817
34818 wxPyEndAllowThreads(__tstate);
34819 if (PyErr_Occurred()) SWIG_fail;
34820 }
34821 Py_INCREF(Py_None); resultobj = Py_None;
34822 return resultobj;
34823 fail:
34824 return NULL;
34825}
34826
34827
34828static PyObject *_wrap_SizerItem_GetProportion(PyObject *self, PyObject *args, PyObject *kwargs) {
34829 PyObject *resultobj;
34830 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34831 int result;
34832 PyObject * obj0 = 0 ;
34833 char *kwnames[] = {
34834 (char *) "self", NULL
34835 };
34836
34837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetProportion",kwnames,&obj0)) goto fail;
34838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34840 {
34841 PyThreadState* __tstate = wxPyBeginAllowThreads();
34842 result = (int)(arg1)->GetProportion();
34843
34844 wxPyEndAllowThreads(__tstate);
34845 if (PyErr_Occurred()) SWIG_fail;
34846 }
34847 resultobj = SWIG_FromInt((int)result);
34848 return resultobj;
34849 fail:
34850 return NULL;
34851}
34852
34853
34854static PyObject *_wrap_SizerItem_SetFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
34855 PyObject *resultobj;
34856 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34857 int arg2 ;
34858 PyObject * obj0 = 0 ;
34859 PyObject * obj1 = 0 ;
34860 char *kwnames[] = {
34861 (char *) "self",(char *) "flag", NULL
34862 };
34863
34864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetFlag",kwnames,&obj0,&obj1)) goto fail;
34865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34867 arg2 = (int) SWIG_AsInt(obj1);
34868 if (PyErr_Occurred()) SWIG_fail;
34869 {
34870 PyThreadState* __tstate = wxPyBeginAllowThreads();
34871 (arg1)->SetFlag(arg2);
34872
34873 wxPyEndAllowThreads(__tstate);
34874 if (PyErr_Occurred()) SWIG_fail;
34875 }
34876 Py_INCREF(Py_None); resultobj = Py_None;
34877 return resultobj;
34878 fail:
34879 return NULL;
34880}
34881
34882
34883static PyObject *_wrap_SizerItem_GetFlag(PyObject *self, PyObject *args, PyObject *kwargs) {
34884 PyObject *resultobj;
34885 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34886 int result;
34887 PyObject * obj0 = 0 ;
34888 char *kwnames[] = {
34889 (char *) "self", NULL
34890 };
34891
34892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetFlag",kwnames,&obj0)) goto fail;
34893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34895 {
34896 PyThreadState* __tstate = wxPyBeginAllowThreads();
34897 result = (int)(arg1)->GetFlag();
34898
34899 wxPyEndAllowThreads(__tstate);
34900 if (PyErr_Occurred()) SWIG_fail;
34901 }
34902 resultobj = SWIG_FromInt((int)result);
34903 return resultobj;
34904 fail:
34905 return NULL;
34906}
34907
34908
34909static PyObject *_wrap_SizerItem_SetBorder(PyObject *self, PyObject *args, PyObject *kwargs) {
34910 PyObject *resultobj;
34911 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34912 int arg2 ;
34913 PyObject * obj0 = 0 ;
34914 PyObject * obj1 = 0 ;
34915 char *kwnames[] = {
34916 (char *) "self",(char *) "border", NULL
34917 };
34918
34919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetBorder",kwnames,&obj0,&obj1)) goto fail;
34920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34922 arg2 = (int) SWIG_AsInt(obj1);
34923 if (PyErr_Occurred()) SWIG_fail;
34924 {
34925 PyThreadState* __tstate = wxPyBeginAllowThreads();
34926 (arg1)->SetBorder(arg2);
34927
34928 wxPyEndAllowThreads(__tstate);
34929 if (PyErr_Occurred()) SWIG_fail;
34930 }
34931 Py_INCREF(Py_None); resultobj = Py_None;
34932 return resultobj;
34933 fail:
34934 return NULL;
34935}
34936
34937
34938static PyObject *_wrap_SizerItem_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) {
34939 PyObject *resultobj;
34940 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34941 int result;
34942 PyObject * obj0 = 0 ;
34943 char *kwnames[] = {
34944 (char *) "self", NULL
34945 };
34946
34947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetBorder",kwnames,&obj0)) goto fail;
34948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34950 {
34951 PyThreadState* __tstate = wxPyBeginAllowThreads();
34952 result = (int)(arg1)->GetBorder();
34953
34954 wxPyEndAllowThreads(__tstate);
34955 if (PyErr_Occurred()) SWIG_fail;
34956 }
34957 resultobj = SWIG_FromInt((int)result);
34958 return resultobj;
34959 fail:
34960 return NULL;
34961}
34962
34963
34964static PyObject *_wrap_SizerItem_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
34965 PyObject *resultobj;
34966 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34967 wxWindow *result;
34968 PyObject * obj0 = 0 ;
34969 char *kwnames[] = {
34970 (char *) "self", NULL
34971 };
34972
34973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetWindow",kwnames,&obj0)) goto fail;
34974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
34975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
34976 {
34977 PyThreadState* __tstate = wxPyBeginAllowThreads();
34978 result = (wxWindow *)(arg1)->GetWindow();
34979
34980 wxPyEndAllowThreads(__tstate);
34981 if (PyErr_Occurred()) SWIG_fail;
34982 }
34983 {
412d302d 34984 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
34985 }
34986 return resultobj;
34987 fail:
34988 return NULL;
34989}
34990
34991
34992static PyObject *_wrap_SizerItem_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
34993 PyObject *resultobj;
34994 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
34995 wxWindow *arg2 = (wxWindow *) 0 ;
34996 PyObject * obj0 = 0 ;
34997 PyObject * obj1 = 0 ;
34998 char *kwnames[] = {
34999 (char *) "self",(char *) "window", NULL
35000 };
35001
35002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) goto fail;
35003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35005 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
35006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35007 {
35008 PyThreadState* __tstate = wxPyBeginAllowThreads();
35009 (arg1)->SetWindow(arg2);
35010
35011 wxPyEndAllowThreads(__tstate);
35012 if (PyErr_Occurred()) SWIG_fail;
35013 }
35014 Py_INCREF(Py_None); resultobj = Py_None;
35015 return resultobj;
35016 fail:
35017 return NULL;
35018}
35019
35020
35021static PyObject *_wrap_SizerItem_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
35022 PyObject *resultobj;
35023 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35024 wxSizer *result;
35025 PyObject * obj0 = 0 ;
35026 char *kwnames[] = {
35027 (char *) "self", NULL
35028 };
35029
35030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSizer",kwnames,&obj0)) goto fail;
35031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35033 {
35034 PyThreadState* __tstate = wxPyBeginAllowThreads();
35035 result = (wxSizer *)(arg1)->GetSizer();
35036
35037 wxPyEndAllowThreads(__tstate);
35038 if (PyErr_Occurred()) SWIG_fail;
35039 }
35040 {
412d302d 35041 resultobj = wxPyMake_wxSizer(result, 0);
d55e5bfc
RD
35042 }
35043 return resultobj;
35044 fail:
35045 return NULL;
35046}
35047
35048
35049static PyObject *_wrap_SizerItem_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
35050 PyObject *resultobj;
35051 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35052 wxSizer *arg2 = (wxSizer *) 0 ;
35053 PyObject * obj0 = 0 ;
35054 PyObject * obj1 = 0 ;
35055 char *kwnames[] = {
35056 (char *) "self",(char *) "sizer", NULL
35057 };
35058
35059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) goto fail;
35060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35062 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
35063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35064 {
35065 PyThreadState* __tstate = wxPyBeginAllowThreads();
35066 (arg1)->SetSizer(arg2);
35067
35068 wxPyEndAllowThreads(__tstate);
35069 if (PyErr_Occurred()) SWIG_fail;
35070 }
35071 Py_INCREF(Py_None); resultobj = Py_None;
35072 return resultobj;
35073 fail:
35074 return NULL;
35075}
35076
35077
35078static PyObject *_wrap_SizerItem_GetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) {
35079 PyObject *resultobj;
35080 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35081 wxSize *result;
35082 PyObject * obj0 = 0 ;
35083 char *kwnames[] = {
35084 (char *) "self", NULL
35085 };
35086
35087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetSpacer",kwnames,&obj0)) goto fail;
35088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35090 {
35091 PyThreadState* __tstate = wxPyBeginAllowThreads();
35092 {
35093 wxSize const &_result_ref = (arg1)->GetSpacer();
35094 result = (wxSize *) &_result_ref;
35095 }
35096
35097 wxPyEndAllowThreads(__tstate);
35098 if (PyErr_Occurred()) SWIG_fail;
35099 }
35100 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSize, 0);
35101 return resultobj;
35102 fail:
35103 return NULL;
35104}
35105
35106
35107static PyObject *_wrap_SizerItem_SetSpacer(PyObject *self, PyObject *args, PyObject *kwargs) {
35108 PyObject *resultobj;
35109 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35110 wxSize *arg2 = 0 ;
35111 wxSize temp2 ;
35112 PyObject * obj0 = 0 ;
35113 PyObject * obj1 = 0 ;
35114 char *kwnames[] = {
35115 (char *) "self",(char *) "size", NULL
35116 };
35117
35118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) goto fail;
35119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35121 {
35122 arg2 = &temp2;
35123 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
35124 }
35125 {
35126 PyThreadState* __tstate = wxPyBeginAllowThreads();
35127 (arg1)->SetSpacer((wxSize const &)*arg2);
35128
35129 wxPyEndAllowThreads(__tstate);
35130 if (PyErr_Occurred()) SWIG_fail;
35131 }
35132 Py_INCREF(Py_None); resultobj = Py_None;
35133 return resultobj;
35134 fail:
35135 return NULL;
35136}
35137
35138
35139static PyObject *_wrap_SizerItem_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
35140 PyObject *resultobj;
35141 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35142 bool arg2 ;
35143 PyObject * obj0 = 0 ;
35144 PyObject * obj1 = 0 ;
35145 char *kwnames[] = {
35146 (char *) "self",(char *) "show", NULL
35147 };
35148
35149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) goto fail;
35150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35152 arg2 = (bool) SWIG_AsBool(obj1);
35153 if (PyErr_Occurred()) SWIG_fail;
35154 {
35155 PyThreadState* __tstate = wxPyBeginAllowThreads();
35156 (arg1)->Show(arg2);
35157
35158 wxPyEndAllowThreads(__tstate);
35159 if (PyErr_Occurred()) SWIG_fail;
35160 }
35161 Py_INCREF(Py_None); resultobj = Py_None;
35162 return resultobj;
35163 fail:
35164 return NULL;
35165}
35166
35167
35168static PyObject *_wrap_SizerItem_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) {
35169 PyObject *resultobj;
35170 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35171 bool result;
35172 PyObject * obj0 = 0 ;
35173 char *kwnames[] = {
35174 (char *) "self", NULL
35175 };
35176
35177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_IsShown",kwnames,&obj0)) goto fail;
35178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35180 {
35181 PyThreadState* __tstate = wxPyBeginAllowThreads();
35182 result = (bool)(arg1)->IsShown();
35183
35184 wxPyEndAllowThreads(__tstate);
35185 if (PyErr_Occurred()) SWIG_fail;
35186 }
35187 {
35188 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35189 }
35190 return resultobj;
35191 fail:
35192 return NULL;
35193}
35194
35195
35196static PyObject *_wrap_SizerItem_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
35197 PyObject *resultobj;
35198 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35199 wxPoint result;
35200 PyObject * obj0 = 0 ;
35201 char *kwnames[] = {
35202 (char *) "self", NULL
35203 };
35204
35205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetPosition",kwnames,&obj0)) goto fail;
35206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35208 {
35209 PyThreadState* __tstate = wxPyBeginAllowThreads();
35210 result = (arg1)->GetPosition();
35211
35212 wxPyEndAllowThreads(__tstate);
35213 if (PyErr_Occurred()) SWIG_fail;
35214 }
35215 {
35216 wxPoint * resultptr;
35217 resultptr = new wxPoint((wxPoint &) result);
35218 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
35219 }
35220 return resultobj;
35221 fail:
35222 return NULL;
35223}
35224
35225
35226static PyObject *_wrap_SizerItem_GetUserData(PyObject *self, PyObject *args, PyObject *kwargs) {
35227 PyObject *resultobj;
35228 wxSizerItem *arg1 = (wxSizerItem *) 0 ;
35229 PyObject *result;
35230 PyObject * obj0 = 0 ;
35231 char *kwnames[] = {
35232 (char *) "self", NULL
35233 };
35234
35235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SizerItem_GetUserData",kwnames,&obj0)) goto fail;
35236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizerItem,
35237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35238 {
35239 PyThreadState* __tstate = wxPyBeginAllowThreads();
35240 result = (PyObject *)wxSizerItem_GetUserData(arg1);
35241
35242 wxPyEndAllowThreads(__tstate);
35243 if (PyErr_Occurred()) SWIG_fail;
35244 }
35245 resultobj = result;
35246 return resultobj;
35247 fail:
35248 return NULL;
35249}
35250
35251
35252static PyObject * SizerItem_swigregister(PyObject *self, PyObject *args) {
35253 PyObject *obj;
35254 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
35255 SWIG_TypeClientData(SWIGTYPE_p_wxSizerItem, obj);
35256 Py_INCREF(obj);
35257 return Py_BuildValue((char *)"");
35258}
35259static PyObject *_wrap_Sizer__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
35260 PyObject *resultobj;
35261 wxSizer *arg1 = (wxSizer *) 0 ;
35262 PyObject *arg2 = (PyObject *) 0 ;
35263 PyObject * obj0 = 0 ;
35264 PyObject * obj1 = 0 ;
35265 char *kwnames[] = {
35266 (char *) "self",(char *) "_self", NULL
35267 };
35268
35269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) goto fail;
35270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35272 arg2 = obj1;
35273 {
35274 PyThreadState* __tstate = wxPyBeginAllowThreads();
35275 wxSizer__setOORInfo(arg1,arg2);
35276
35277 wxPyEndAllowThreads(__tstate);
35278 if (PyErr_Occurred()) SWIG_fail;
35279 }
35280 Py_INCREF(Py_None); resultobj = Py_None;
35281 return resultobj;
35282 fail:
35283 return NULL;
35284}
35285
35286
35287static PyObject *_wrap_Sizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
35288 PyObject *resultobj;
35289 wxSizer *arg1 = (wxSizer *) 0 ;
35290 PyObject *arg2 = (PyObject *) 0 ;
35291 int arg3 = (int) 0 ;
35292 int arg4 = (int) 0 ;
35293 int arg5 = (int) 0 ;
35294 PyObject *arg6 = (PyObject *) NULL ;
35295 PyObject * obj0 = 0 ;
35296 PyObject * obj1 = 0 ;
35297 PyObject * obj2 = 0 ;
35298 PyObject * obj3 = 0 ;
35299 PyObject * obj4 = 0 ;
35300 PyObject * obj5 = 0 ;
35301 char *kwnames[] = {
35302 (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
35303 };
35304
35305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
35306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35308 arg2 = obj1;
35309 if (obj2) {
35310 arg3 = (int) SWIG_AsInt(obj2);
35311 if (PyErr_Occurred()) SWIG_fail;
35312 }
35313 if (obj3) {
35314 arg4 = (int) SWIG_AsInt(obj3);
35315 if (PyErr_Occurred()) SWIG_fail;
35316 }
35317 if (obj4) {
35318 arg5 = (int) SWIG_AsInt(obj4);
35319 if (PyErr_Occurred()) SWIG_fail;
35320 }
35321 if (obj5) {
35322 arg6 = obj5;
35323 }
35324 {
35325 PyThreadState* __tstate = wxPyBeginAllowThreads();
35326 wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6);
35327
35328 wxPyEndAllowThreads(__tstate);
35329 if (PyErr_Occurred()) SWIG_fail;
35330 }
35331 Py_INCREF(Py_None); resultobj = Py_None;
35332 return resultobj;
35333 fail:
35334 return NULL;
35335}
35336
35337
35338static PyObject *_wrap_Sizer_Insert(PyObject *self, PyObject *args, PyObject *kwargs) {
35339 PyObject *resultobj;
35340 wxSizer *arg1 = (wxSizer *) 0 ;
35341 int arg2 ;
35342 PyObject *arg3 = (PyObject *) 0 ;
35343 int arg4 = (int) 0 ;
35344 int arg5 = (int) 0 ;
35345 int arg6 = (int) 0 ;
35346 PyObject *arg7 = (PyObject *) NULL ;
35347 PyObject * obj0 = 0 ;
35348 PyObject * obj1 = 0 ;
35349 PyObject * obj2 = 0 ;
35350 PyObject * obj3 = 0 ;
35351 PyObject * obj4 = 0 ;
35352 PyObject * obj5 = 0 ;
35353 PyObject * obj6 = 0 ;
35354 char *kwnames[] = {
35355 (char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
35356 };
35357
35358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Sizer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
35359 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35361 arg2 = (int) SWIG_AsInt(obj1);
35362 if (PyErr_Occurred()) SWIG_fail;
35363 arg3 = obj2;
35364 if (obj3) {
35365 arg4 = (int) SWIG_AsInt(obj3);
35366 if (PyErr_Occurred()) SWIG_fail;
35367 }
35368 if (obj4) {
35369 arg5 = (int) SWIG_AsInt(obj4);
35370 if (PyErr_Occurred()) SWIG_fail;
35371 }
35372 if (obj5) {
35373 arg6 = (int) SWIG_AsInt(obj5);
35374 if (PyErr_Occurred()) SWIG_fail;
35375 }
35376 if (obj6) {
35377 arg7 = obj6;
35378 }
35379 {
35380 PyThreadState* __tstate = wxPyBeginAllowThreads();
35381 wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
35382
35383 wxPyEndAllowThreads(__tstate);
35384 if (PyErr_Occurred()) SWIG_fail;
35385 }
35386 Py_INCREF(Py_None); resultobj = Py_None;
35387 return resultobj;
35388 fail:
35389 return NULL;
35390}
35391
35392
35393static PyObject *_wrap_Sizer_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) {
35394 PyObject *resultobj;
35395 wxSizer *arg1 = (wxSizer *) 0 ;
35396 PyObject *arg2 = (PyObject *) 0 ;
35397 int arg3 = (int) 0 ;
35398 int arg4 = (int) 0 ;
35399 int arg5 = (int) 0 ;
35400 PyObject *arg6 = (PyObject *) NULL ;
35401 PyObject * obj0 = 0 ;
35402 PyObject * obj1 = 0 ;
35403 PyObject * obj2 = 0 ;
35404 PyObject * obj3 = 0 ;
35405 PyObject * obj4 = 0 ;
35406 PyObject * obj5 = 0 ;
35407 char *kwnames[] = {
35408 (char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
35409 };
35410
35411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
35412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35414 arg2 = obj1;
35415 if (obj2) {
35416 arg3 = (int) SWIG_AsInt(obj2);
35417 if (PyErr_Occurred()) SWIG_fail;
35418 }
35419 if (obj3) {
35420 arg4 = (int) SWIG_AsInt(obj3);
35421 if (PyErr_Occurred()) SWIG_fail;
35422 }
35423 if (obj4) {
35424 arg5 = (int) SWIG_AsInt(obj4);
35425 if (PyErr_Occurred()) SWIG_fail;
35426 }
35427 if (obj5) {
35428 arg6 = obj5;
35429 }
35430 {
35431 PyThreadState* __tstate = wxPyBeginAllowThreads();
35432 wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6);
35433
35434 wxPyEndAllowThreads(__tstate);
35435 if (PyErr_Occurred()) SWIG_fail;
35436 }
35437 Py_INCREF(Py_None); resultobj = Py_None;
35438 return resultobj;
35439 fail:
35440 return NULL;
35441}
35442
35443
35444static PyObject *_wrap_Sizer_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
35445 PyObject *resultobj;
35446 wxSizer *arg1 = (wxSizer *) 0 ;
35447 PyObject *arg2 = (PyObject *) 0 ;
35448 bool result;
35449 PyObject * obj0 = 0 ;
35450 PyObject * obj1 = 0 ;
35451 char *kwnames[] = {
35452 (char *) "self",(char *) "item", NULL
35453 };
35454
35455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) goto fail;
35456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35458 arg2 = obj1;
35459 {
35460 PyThreadState* __tstate = wxPyBeginAllowThreads();
35461 result = (bool)wxSizer_Remove(arg1,arg2);
35462
35463 wxPyEndAllowThreads(__tstate);
35464 if (PyErr_Occurred()) SWIG_fail;
35465 }
35466 {
35467 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35468 }
35469 return resultobj;
35470 fail:
35471 return NULL;
35472}
35473
35474
1a6bba1e
RD
35475static PyObject *_wrap_Sizer_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
35476 PyObject *resultobj;
35477 wxSizer *arg1 = (wxSizer *) 0 ;
35478 PyObject *arg2 = (PyObject *) 0 ;
35479 bool result;
35480 PyObject * obj0 = 0 ;
35481 PyObject * obj1 = 0 ;
35482 char *kwnames[] = {
35483 (char *) "self",(char *) "item", NULL
35484 };
35485
35486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Detach",kwnames,&obj0,&obj1)) goto fail;
35487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35489 arg2 = obj1;
35490 {
35491 PyThreadState* __tstate = wxPyBeginAllowThreads();
35492 result = (bool)wxSizer_Detach(arg1,arg2);
35493
35494 wxPyEndAllowThreads(__tstate);
35495 if (PyErr_Occurred()) SWIG_fail;
35496 }
35497 {
35498 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
35499 }
35500 return resultobj;
35501 fail:
35502 return NULL;
35503}
35504
35505
d55e5bfc
RD
35506static PyObject *_wrap_Sizer__SetItemMinSize(PyObject *self, PyObject *args, PyObject *kwargs) {
35507 PyObject *resultobj;
35508 wxSizer *arg1 = (wxSizer *) 0 ;
35509 PyObject *arg2 = (PyObject *) 0 ;
35510 wxSize *arg3 = 0 ;
35511 wxSize temp3 ;
35512 PyObject * obj0 = 0 ;
35513 PyObject * obj1 = 0 ;
35514 PyObject * obj2 = 0 ;
35515 char *kwnames[] = {
35516 (char *) "self",(char *) "item",(char *) "size", NULL
35517 };
35518
35519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
35520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35522 arg2 = obj1;
35523 {
35524 arg3 = &temp3;
35525 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
35526 }
35527 {
35528 PyThreadState* __tstate = wxPyBeginAllowThreads();
35529 wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3);
35530
35531 wxPyEndAllowThreads(__tstate);
35532 if (PyErr_Occurred()) SWIG_fail;
35533 }
35534 Py_INCREF(Py_None); resultobj = Py_None;
35535 return resultobj;
35536 fail:
35537 return NULL;
35538}
35539
35540
35541static PyObject *_wrap_Sizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) {
35542 PyObject *resultobj;
35543 wxSizer *arg1 = (wxSizer *) 0 ;
35544 wxSizerItem *arg2 = (wxSizerItem *) 0 ;
35545 PyObject * obj0 = 0 ;
35546 PyObject * obj1 = 0 ;
35547 char *kwnames[] = {
35548 (char *) "self",(char *) "item", NULL
35549 };
35550
35551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) goto fail;
35552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35554 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem,
35555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35556 {
35557 PyThreadState* __tstate = wxPyBeginAllowThreads();
35558 (arg1)->Add(arg2);
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_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) {
35571 PyObject *resultobj;
35572 wxSizer *arg1 = (wxSizer *) 0 ;
35573 size_t arg2 ;
35574 wxSizerItem *arg3 = (wxSizerItem *) 0 ;
35575 PyObject * obj0 = 0 ;
35576 PyObject * obj1 = 0 ;
35577 PyObject * obj2 = 0 ;
35578 char *kwnames[] = {
35579 (char *) "self",(char *) "index",(char *) "item", NULL
35580 };
35581
35582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
35583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35585 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
35586 if (PyErr_Occurred()) SWIG_fail;
35587 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxSizerItem,
35588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35589 {
35590 PyThreadState* __tstate = wxPyBeginAllowThreads();
35591 (arg1)->Insert(arg2,arg3);
35592
35593 wxPyEndAllowThreads(__tstate);
35594 if (PyErr_Occurred()) SWIG_fail;
35595 }
35596 Py_INCREF(Py_None); resultobj = Py_None;
35597 return resultobj;
35598 fail:
35599 return NULL;
35600}
35601
35602
35603static PyObject *_wrap_Sizer_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) {
35604 PyObject *resultobj;
35605 wxSizer *arg1 = (wxSizer *) 0 ;
35606 wxSizerItem *arg2 = (wxSizerItem *) 0 ;
35607 PyObject * obj0 = 0 ;
35608 PyObject * obj1 = 0 ;
35609 char *kwnames[] = {
35610 (char *) "self",(char *) "item", NULL
35611 };
35612
35613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) goto fail;
35614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35616 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizerItem,
35617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35618 {
35619 PyThreadState* __tstate = wxPyBeginAllowThreads();
35620 (arg1)->Prepend(arg2);
35621
35622 wxPyEndAllowThreads(__tstate);
35623 if (PyErr_Occurred()) SWIG_fail;
35624 }
35625 Py_INCREF(Py_None); resultobj = Py_None;
35626 return resultobj;
35627 fail:
35628 return NULL;
35629}
35630
35631
35632static PyObject *_wrap_Sizer_SetDimension(PyObject *self, PyObject *args, PyObject *kwargs) {
35633 PyObject *resultobj;
35634 wxSizer *arg1 = (wxSizer *) 0 ;
35635 int arg2 ;
35636 int arg3 ;
35637 int arg4 ;
35638 int arg5 ;
35639 PyObject * obj0 = 0 ;
35640 PyObject * obj1 = 0 ;
35641 PyObject * obj2 = 0 ;
35642 PyObject * obj3 = 0 ;
35643 PyObject * obj4 = 0 ;
35644 char *kwnames[] = {
35645 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
35646 };
35647
35648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Sizer_SetDimension",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
35649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35651 arg2 = (int) SWIG_AsInt(obj1);
35652 if (PyErr_Occurred()) SWIG_fail;
35653 arg3 = (int) SWIG_AsInt(obj2);
35654 if (PyErr_Occurred()) SWIG_fail;
35655 arg4 = (int) SWIG_AsInt(obj3);
35656 if (PyErr_Occurred()) SWIG_fail;
35657 arg5 = (int) SWIG_AsInt(obj4);
35658 if (PyErr_Occurred()) SWIG_fail;
35659 {
35660 PyThreadState* __tstate = wxPyBeginAllowThreads();
35661 (arg1)->SetDimension(arg2,arg3,arg4,arg5);
35662
35663 wxPyEndAllowThreads(__tstate);
35664 if (PyErr_Occurred()) SWIG_fail;
35665 }
35666 Py_INCREF(Py_None); resultobj = Py_None;
35667 return resultobj;
35668 fail:
35669 return NULL;
35670}
35671
35672
35673static PyObject *_wrap_Sizer_SetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) {
35674 PyObject *resultobj;
35675 wxSizer *arg1 = (wxSizer *) 0 ;
35676 wxSize *arg2 = 0 ;
35677 wxSize temp2 ;
35678 PyObject * obj0 = 0 ;
35679 PyObject * obj1 = 0 ;
35680 char *kwnames[] = {
35681 (char *) "self",(char *) "size", NULL
35682 };
35683
35684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) goto fail;
35685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35687 {
35688 arg2 = &temp2;
35689 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
35690 }
35691 {
35692 PyThreadState* __tstate = wxPyBeginAllowThreads();
35693 (arg1)->SetMinSize((wxSize const &)*arg2);
35694
35695 wxPyEndAllowThreads(__tstate);
35696 if (PyErr_Occurred()) SWIG_fail;
35697 }
35698 Py_INCREF(Py_None); resultobj = Py_None;
35699 return resultobj;
35700 fail:
35701 return NULL;
35702}
35703
35704
35705static PyObject *_wrap_Sizer_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
35706 PyObject *resultobj;
35707 wxSizer *arg1 = (wxSizer *) 0 ;
35708 wxSize result;
35709 PyObject * obj0 = 0 ;
35710 char *kwnames[] = {
35711 (char *) "self", NULL
35712 };
35713
35714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetSize",kwnames,&obj0)) goto fail;
35715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35717 {
35718 PyThreadState* __tstate = wxPyBeginAllowThreads();
35719 result = (arg1)->GetSize();
35720
35721 wxPyEndAllowThreads(__tstate);
35722 if (PyErr_Occurred()) SWIG_fail;
35723 }
35724 {
35725 wxSize * resultptr;
35726 resultptr = new wxSize((wxSize &) result);
35727 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
35728 }
35729 return resultobj;
35730 fail:
35731 return NULL;
35732}
35733
35734
35735static PyObject *_wrap_Sizer_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
35736 PyObject *resultobj;
35737 wxSizer *arg1 = (wxSizer *) 0 ;
35738 wxPoint result;
35739 PyObject * obj0 = 0 ;
35740 char *kwnames[] = {
35741 (char *) "self", NULL
35742 };
35743
35744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetPosition",kwnames,&obj0)) goto fail;
35745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35747 {
35748 PyThreadState* __tstate = wxPyBeginAllowThreads();
35749 result = (arg1)->GetPosition();
35750
35751 wxPyEndAllowThreads(__tstate);
35752 if (PyErr_Occurred()) SWIG_fail;
35753 }
35754 {
35755 wxPoint * resultptr;
35756 resultptr = new wxPoint((wxPoint &) result);
35757 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
35758 }
35759 return resultobj;
35760 fail:
35761 return NULL;
35762}
35763
35764
35765static PyObject *_wrap_Sizer_GetMinSize(PyObject *self, PyObject *args, PyObject *kwargs) {
35766 PyObject *resultobj;
35767 wxSizer *arg1 = (wxSizer *) 0 ;
35768 wxSize result;
35769 PyObject * obj0 = 0 ;
35770 char *kwnames[] = {
35771 (char *) "self", NULL
35772 };
35773
35774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetMinSize",kwnames,&obj0)) goto fail;
35775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35777 {
35778 PyThreadState* __tstate = wxPyBeginAllowThreads();
35779 result = (arg1)->GetMinSize();
35780
35781 wxPyEndAllowThreads(__tstate);
35782 if (PyErr_Occurred()) SWIG_fail;
35783 }
35784 {
35785 wxSize * resultptr;
35786 resultptr = new wxSize((wxSize &) result);
35787 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
35788 }
35789 return resultobj;
35790 fail:
35791 return NULL;
35792}
35793
35794
35795static PyObject *_wrap_Sizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) {
35796 PyObject *resultobj;
35797 wxSizer *arg1 = (wxSizer *) 0 ;
35798 PyObject * obj0 = 0 ;
35799 char *kwnames[] = {
35800 (char *) "self", NULL
35801 };
35802
35803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_RecalcSizes",kwnames,&obj0)) goto fail;
35804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35806 {
35807 PyThreadState* __tstate = wxPyBeginAllowThreads();
35808 (arg1)->RecalcSizes();
35809
35810 wxPyEndAllowThreads(__tstate);
35811 if (PyErr_Occurred()) SWIG_fail;
35812 }
35813 Py_INCREF(Py_None); resultobj = Py_None;
35814 return resultobj;
35815 fail:
35816 return NULL;
35817}
35818
35819
35820static PyObject *_wrap_Sizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) {
35821 PyObject *resultobj;
35822 wxSizer *arg1 = (wxSizer *) 0 ;
35823 wxSize result;
35824 PyObject * obj0 = 0 ;
35825 char *kwnames[] = {
35826 (char *) "self", NULL
35827 };
35828
35829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_CalcMin",kwnames,&obj0)) goto fail;
35830 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35831 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35832 {
35833 PyThreadState* __tstate = wxPyBeginAllowThreads();
35834 result = (arg1)->CalcMin();
35835
35836 wxPyEndAllowThreads(__tstate);
35837 if (PyErr_Occurred()) SWIG_fail;
35838 }
35839 {
35840 wxSize * resultptr;
35841 resultptr = new wxSize((wxSize &) result);
35842 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
35843 }
35844 return resultobj;
35845 fail:
35846 return NULL;
35847}
35848
35849
35850static PyObject *_wrap_Sizer_Layout(PyObject *self, PyObject *args, PyObject *kwargs) {
35851 PyObject *resultobj;
35852 wxSizer *arg1 = (wxSizer *) 0 ;
35853 PyObject * obj0 = 0 ;
35854 char *kwnames[] = {
35855 (char *) "self", NULL
35856 };
35857
35858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_Layout",kwnames,&obj0)) goto fail;
35859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35861 {
35862 PyThreadState* __tstate = wxPyBeginAllowThreads();
35863 (arg1)->Layout();
35864
35865 wxPyEndAllowThreads(__tstate);
35866 if (PyErr_Occurred()) SWIG_fail;
35867 }
35868 Py_INCREF(Py_None); resultobj = Py_None;
35869 return resultobj;
35870 fail:
35871 return NULL;
35872}
35873
35874
35875static PyObject *_wrap_Sizer_Fit(PyObject *self, PyObject *args, PyObject *kwargs) {
35876 PyObject *resultobj;
35877 wxSizer *arg1 = (wxSizer *) 0 ;
35878 wxWindow *arg2 = (wxWindow *) 0 ;
35879 wxSize result;
35880 PyObject * obj0 = 0 ;
35881 PyObject * obj1 = 0 ;
35882 char *kwnames[] = {
35883 (char *) "self",(char *) "window", NULL
35884 };
35885
35886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) goto fail;
35887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35889 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
35890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35891 {
35892 PyThreadState* __tstate = wxPyBeginAllowThreads();
35893 result = (arg1)->Fit(arg2);
35894
35895 wxPyEndAllowThreads(__tstate);
35896 if (PyErr_Occurred()) SWIG_fail;
35897 }
35898 {
35899 wxSize * resultptr;
35900 resultptr = new wxSize((wxSize &) result);
35901 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
35902 }
35903 return resultobj;
35904 fail:
35905 return NULL;
35906}
35907
35908
35909static PyObject *_wrap_Sizer_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) {
35910 PyObject *resultobj;
35911 wxSizer *arg1 = (wxSizer *) 0 ;
35912 wxWindow *arg2 = (wxWindow *) 0 ;
35913 PyObject * obj0 = 0 ;
35914 PyObject * obj1 = 0 ;
35915 char *kwnames[] = {
35916 (char *) "self",(char *) "window", NULL
35917 };
35918
35919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) goto fail;
35920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35922 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
35923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35924 {
35925 PyThreadState* __tstate = wxPyBeginAllowThreads();
35926 (arg1)->FitInside(arg2);
35927
35928 wxPyEndAllowThreads(__tstate);
35929 if (PyErr_Occurred()) SWIG_fail;
35930 }
35931 Py_INCREF(Py_None); resultobj = Py_None;
35932 return resultobj;
35933 fail:
35934 return NULL;
35935}
35936
35937
35938static PyObject *_wrap_Sizer_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) {
35939 PyObject *resultobj;
35940 wxSizer *arg1 = (wxSizer *) 0 ;
35941 wxWindow *arg2 = (wxWindow *) 0 ;
35942 PyObject * obj0 = 0 ;
35943 PyObject * obj1 = 0 ;
35944 char *kwnames[] = {
35945 (char *) "self",(char *) "window", NULL
35946 };
35947
35948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) goto fail;
35949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35951 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
35952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35953 {
35954 PyThreadState* __tstate = wxPyBeginAllowThreads();
35955 (arg1)->SetSizeHints(arg2);
35956
35957 wxPyEndAllowThreads(__tstate);
35958 if (PyErr_Occurred()) SWIG_fail;
35959 }
35960 Py_INCREF(Py_None); resultobj = Py_None;
35961 return resultobj;
35962 fail:
35963 return NULL;
35964}
35965
35966
35967static PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) {
35968 PyObject *resultobj;
35969 wxSizer *arg1 = (wxSizer *) 0 ;
35970 wxWindow *arg2 = (wxWindow *) 0 ;
35971 PyObject * obj0 = 0 ;
35972 PyObject * obj1 = 0 ;
35973 char *kwnames[] = {
35974 (char *) "self",(char *) "window", NULL
35975 };
35976
35977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) goto fail;
35978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
35979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35980 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
35981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
35982 {
35983 PyThreadState* __tstate = wxPyBeginAllowThreads();
35984 (arg1)->SetVirtualSizeHints(arg2);
35985
35986 wxPyEndAllowThreads(__tstate);
35987 if (PyErr_Occurred()) SWIG_fail;
35988 }
35989 Py_INCREF(Py_None); resultobj = Py_None;
35990 return resultobj;
35991 fail:
35992 return NULL;
35993}
35994
35995
35996static PyObject *_wrap_Sizer_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
35997 PyObject *resultobj;
35998 wxSizer *arg1 = (wxSizer *) 0 ;
35999 bool arg2 = (bool) False ;
36000 PyObject * obj0 = 0 ;
36001 PyObject * obj1 = 0 ;
36002 char *kwnames[] = {
248ed943 36003 (char *) "self",(char *) "deleteWindows", NULL
d55e5bfc
RD
36004 };
36005
36006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) goto fail;
36007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36009 if (obj1) {
36010 arg2 = (bool) SWIG_AsBool(obj1);
36011 if (PyErr_Occurred()) SWIG_fail;
36012 }
36013 {
36014 PyThreadState* __tstate = wxPyBeginAllowThreads();
36015 (arg1)->Clear(arg2);
36016
36017 wxPyEndAllowThreads(__tstate);
36018 if (PyErr_Occurred()) SWIG_fail;
36019 }
36020 Py_INCREF(Py_None); resultobj = Py_None;
36021 return resultobj;
36022 fail:
36023 return NULL;
36024}
36025
36026
36027static PyObject *_wrap_Sizer_DeleteWindows(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_DeleteWindows",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)->DeleteWindows();
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_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) {
36053 PyObject *resultobj;
36054 wxSizer *arg1 = (wxSizer *) 0 ;
36055 PyObject *result;
36056 PyObject * obj0 = 0 ;
36057 char *kwnames[] = {
36058 (char *) "self", NULL
36059 };
36060
36061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sizer_GetChildren",kwnames,&obj0)) goto fail;
36062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36064 {
36065 PyThreadState* __tstate = wxPyBeginAllowThreads();
36066 result = (PyObject *)wxSizer_GetChildren(arg1);
36067
36068 wxPyEndAllowThreads(__tstate);
36069 if (PyErr_Occurred()) SWIG_fail;
36070 }
36071 resultobj = result;
36072 return resultobj;
36073 fail:
36074 return NULL;
36075}
36076
36077
36078static PyObject *_wrap_Sizer_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
36079 PyObject *resultobj;
36080 wxSizer *arg1 = (wxSizer *) 0 ;
36081 PyObject *arg2 = (PyObject *) 0 ;
36082 bool arg3 = (bool) True ;
36083 PyObject * obj0 = 0 ;
36084 PyObject * obj1 = 0 ;
36085 PyObject * obj2 = 0 ;
36086 char *kwnames[] = {
36087 (char *) "self",(char *) "item",(char *) "show", NULL
36088 };
36089
36090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Sizer_Show",kwnames,&obj0,&obj1,&obj2)) goto fail;
36091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36093 arg2 = obj1;
36094 if (obj2) {
36095 arg3 = (bool) SWIG_AsBool(obj2);
36096 if (PyErr_Occurred()) SWIG_fail;
36097 }
36098 {
36099 PyThreadState* __tstate = wxPyBeginAllowThreads();
36100 wxSizer_Show(arg1,arg2,arg3);
36101
36102 wxPyEndAllowThreads(__tstate);
36103 if (PyErr_Occurred()) SWIG_fail;
36104 }
36105 Py_INCREF(Py_None); resultobj = Py_None;
36106 return resultobj;
36107 fail:
36108 return NULL;
36109}
36110
36111
d55e5bfc
RD
36112static PyObject *_wrap_Sizer_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) {
36113 PyObject *resultobj;
36114 wxSizer *arg1 = (wxSizer *) 0 ;
36115 PyObject *arg2 = (PyObject *) 0 ;
36116 bool result;
36117 PyObject * obj0 = 0 ;
36118 PyObject * obj1 = 0 ;
36119 char *kwnames[] = {
36120 (char *) "self",(char *) "item", NULL
36121 };
36122
36123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) goto fail;
36124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36126 arg2 = obj1;
36127 {
36128 PyThreadState* __tstate = wxPyBeginAllowThreads();
36129 result = (bool)wxSizer_IsShown(arg1,arg2);
36130
36131 wxPyEndAllowThreads(__tstate);
36132 if (PyErr_Occurred()) SWIG_fail;
36133 }
36134 {
36135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36136 }
36137 return resultobj;
36138 fail:
36139 return NULL;
36140}
36141
36142
36143static PyObject *_wrap_Sizer_ShowItems(PyObject *self, PyObject *args, PyObject *kwargs) {
36144 PyObject *resultobj;
36145 wxSizer *arg1 = (wxSizer *) 0 ;
36146 bool arg2 ;
36147 PyObject * obj0 = 0 ;
36148 PyObject * obj1 = 0 ;
36149 char *kwnames[] = {
36150 (char *) "self",(char *) "show", NULL
36151 };
36152
36153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) goto fail;
36154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
36155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36156 arg2 = (bool) SWIG_AsBool(obj1);
36157 if (PyErr_Occurred()) SWIG_fail;
36158 {
36159 PyThreadState* __tstate = wxPyBeginAllowThreads();
36160 (arg1)->ShowItems(arg2);
36161
36162 wxPyEndAllowThreads(__tstate);
36163 if (PyErr_Occurred()) SWIG_fail;
36164 }
36165 Py_INCREF(Py_None); resultobj = Py_None;
36166 return resultobj;
36167 fail:
36168 return NULL;
36169}
36170
36171
36172static PyObject * Sizer_swigregister(PyObject *self, PyObject *args) {
36173 PyObject *obj;
36174 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
36175 SWIG_TypeClientData(SWIGTYPE_p_wxSizer, obj);
36176 Py_INCREF(obj);
36177 return Py_BuildValue((char *)"");
36178}
36179static PyObject *_wrap_new_PySizer(PyObject *self, PyObject *args, PyObject *kwargs) {
36180 PyObject *resultobj;
36181 wxPySizer *result;
36182 char *kwnames[] = {
36183 NULL
36184 };
36185
36186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PySizer",kwnames)) goto fail;
36187 {
36188 PyThreadState* __tstate = wxPyBeginAllowThreads();
36189 result = (wxPySizer *)new wxPySizer();
36190
36191 wxPyEndAllowThreads(__tstate);
36192 if (PyErr_Occurred()) SWIG_fail;
36193 }
36194 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPySizer, 1);
36195 return resultobj;
36196 fail:
36197 return NULL;
36198}
36199
36200
36201static PyObject *_wrap_PySizer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
36202 PyObject *resultobj;
36203 wxPySizer *arg1 = (wxPySizer *) 0 ;
36204 PyObject *arg2 = (PyObject *) 0 ;
36205 PyObject *arg3 = (PyObject *) 0 ;
36206 PyObject * obj0 = 0 ;
36207 PyObject * obj1 = 0 ;
36208 PyObject * obj2 = 0 ;
36209 char *kwnames[] = {
36210 (char *) "self",(char *) "self",(char *) "_class", NULL
36211 };
36212
36213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
36214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPySizer,
36215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36216 arg2 = obj1;
36217 arg3 = obj2;
36218 {
36219 PyThreadState* __tstate = wxPyBeginAllowThreads();
36220 (arg1)->_setCallbackInfo(arg2,arg3);
36221
36222 wxPyEndAllowThreads(__tstate);
36223 if (PyErr_Occurred()) SWIG_fail;
36224 }
36225 Py_INCREF(Py_None); resultobj = Py_None;
36226 return resultobj;
36227 fail:
36228 return NULL;
36229}
36230
36231
36232static PyObject * PySizer_swigregister(PyObject *self, PyObject *args) {
36233 PyObject *obj;
36234 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
36235 SWIG_TypeClientData(SWIGTYPE_p_wxPySizer, obj);
36236 Py_INCREF(obj);
36237 return Py_BuildValue((char *)"");
36238}
36239static PyObject *_wrap_new_BoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
36240 PyObject *resultobj;
36241 int arg1 = (int) wxHORIZONTAL ;
36242 wxBoxSizer *result;
36243 PyObject * obj0 = 0 ;
36244 char *kwnames[] = {
36245 (char *) "orient", NULL
36246 };
36247
36248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BoxSizer",kwnames,&obj0)) goto fail;
36249 if (obj0) {
36250 arg1 = (int) SWIG_AsInt(obj0);
36251 if (PyErr_Occurred()) SWIG_fail;
36252 }
36253 {
36254 PyThreadState* __tstate = wxPyBeginAllowThreads();
36255 result = (wxBoxSizer *)new wxBoxSizer(arg1);
36256
36257 wxPyEndAllowThreads(__tstate);
36258 if (PyErr_Occurred()) SWIG_fail;
36259 }
36260 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBoxSizer, 1);
36261 return resultobj;
36262 fail:
36263 return NULL;
36264}
36265
36266
36267static PyObject *_wrap_BoxSizer_GetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
36268 PyObject *resultobj;
36269 wxBoxSizer *arg1 = (wxBoxSizer *) 0 ;
36270 int result;
36271 PyObject * obj0 = 0 ;
36272 char *kwnames[] = {
36273 (char *) "self", NULL
36274 };
36275
36276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BoxSizer_GetOrientation",kwnames,&obj0)) goto fail;
36277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer,
36278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36279 {
36280 PyThreadState* __tstate = wxPyBeginAllowThreads();
36281 result = (int)(arg1)->GetOrientation();
36282
36283 wxPyEndAllowThreads(__tstate);
36284 if (PyErr_Occurred()) SWIG_fail;
36285 }
36286 resultobj = SWIG_FromInt((int)result);
36287 return resultobj;
36288 fail:
36289 return NULL;
36290}
36291
36292
36293static PyObject *_wrap_BoxSizer_SetOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
36294 PyObject *resultobj;
36295 wxBoxSizer *arg1 = (wxBoxSizer *) 0 ;
36296 int arg2 ;
36297 PyObject * obj0 = 0 ;
36298 PyObject * obj1 = 0 ;
36299 char *kwnames[] = {
36300 (char *) "self",(char *) "orient", NULL
36301 };
36302
36303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BoxSizer_SetOrientation",kwnames,&obj0,&obj1)) goto fail;
36304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBoxSizer,
36305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36306 arg2 = (int) SWIG_AsInt(obj1);
36307 if (PyErr_Occurred()) SWIG_fail;
36308 {
36309 PyThreadState* __tstate = wxPyBeginAllowThreads();
36310 (arg1)->SetOrientation(arg2);
36311
36312 wxPyEndAllowThreads(__tstate);
36313 if (PyErr_Occurred()) SWIG_fail;
36314 }
36315 Py_INCREF(Py_None); resultobj = Py_None;
36316 return resultobj;
36317 fail:
36318 return NULL;
36319}
36320
36321
d55e5bfc
RD
36322static PyObject * BoxSizer_swigregister(PyObject *self, PyObject *args) {
36323 PyObject *obj;
36324 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
36325 SWIG_TypeClientData(SWIGTYPE_p_wxBoxSizer, obj);
36326 Py_INCREF(obj);
36327 return Py_BuildValue((char *)"");
36328}
36329static PyObject *_wrap_new_StaticBoxSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
36330 PyObject *resultobj;
36331 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
36332 int arg2 = (int) wxHORIZONTAL ;
36333 wxStaticBoxSizer *result;
36334 PyObject * obj0 = 0 ;
36335 PyObject * obj1 = 0 ;
36336 char *kwnames[] = {
36337 (char *) "box",(char *) "orient", NULL
36338 };
36339
36340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_StaticBoxSizer",kwnames,&obj0,&obj1)) goto fail;
36341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox,
36342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36343 if (obj1) {
36344 arg2 = (int) SWIG_AsInt(obj1);
36345 if (PyErr_Occurred()) SWIG_fail;
36346 }
36347 {
36348 PyThreadState* __tstate = wxPyBeginAllowThreads();
36349 result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2);
36350
36351 wxPyEndAllowThreads(__tstate);
36352 if (PyErr_Occurred()) SWIG_fail;
36353 }
36354 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBoxSizer, 1);
36355 return resultobj;
36356 fail:
36357 return NULL;
36358}
36359
36360
36361static PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) {
36362 PyObject *resultobj;
36363 wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ;
36364 wxStaticBox *result;
36365 PyObject * obj0 = 0 ;
36366 char *kwnames[] = {
36367 (char *) "self", NULL
36368 };
36369
36370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBoxSizer_GetStaticBox",kwnames,&obj0)) goto fail;
36371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBoxSizer,
36372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36373 {
36374 PyThreadState* __tstate = wxPyBeginAllowThreads();
36375 result = (wxStaticBox *)(arg1)->GetStaticBox();
36376
36377 wxPyEndAllowThreads(__tstate);
36378 if (PyErr_Occurred()) SWIG_fail;
36379 }
36380 {
412d302d 36381 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
36382 }
36383 return resultobj;
36384 fail:
36385 return NULL;
36386}
36387
36388
d55e5bfc
RD
36389static PyObject * StaticBoxSizer_swigregister(PyObject *self, PyObject *args) {
36390 PyObject *obj;
36391 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
36392 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBoxSizer, obj);
36393 Py_INCREF(obj);
36394 return Py_BuildValue((char *)"");
36395}
36396static PyObject *_wrap_new_GridSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
36397 PyObject *resultobj;
36398 int arg1 = (int) 1 ;
36399 int arg2 = (int) 0 ;
36400 int arg3 = (int) 0 ;
36401 int arg4 = (int) 0 ;
36402 wxGridSizer *result;
36403 PyObject * obj0 = 0 ;
36404 PyObject * obj1 = 0 ;
36405 PyObject * obj2 = 0 ;
36406 PyObject * obj3 = 0 ;
36407 char *kwnames[] = {
36408 (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL
36409 };
36410
36411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_GridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
36412 if (obj0) {
36413 arg1 = (int) SWIG_AsInt(obj0);
36414 if (PyErr_Occurred()) SWIG_fail;
36415 }
36416 if (obj1) {
36417 arg2 = (int) SWIG_AsInt(obj1);
36418 if (PyErr_Occurred()) SWIG_fail;
36419 }
36420 if (obj2) {
36421 arg3 = (int) SWIG_AsInt(obj2);
36422 if (PyErr_Occurred()) SWIG_fail;
36423 }
36424 if (obj3) {
36425 arg4 = (int) SWIG_AsInt(obj3);
36426 if (PyErr_Occurred()) SWIG_fail;
36427 }
36428 {
36429 PyThreadState* __tstate = wxPyBeginAllowThreads();
36430 result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4);
36431
36432 wxPyEndAllowThreads(__tstate);
36433 if (PyErr_Occurred()) SWIG_fail;
36434 }
36435 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridSizer, 1);
36436 return resultobj;
36437 fail:
36438 return NULL;
36439}
36440
36441
d55e5bfc
RD
36442static PyObject *_wrap_GridSizer_SetCols(PyObject *self, PyObject *args, PyObject *kwargs) {
36443 PyObject *resultobj;
36444 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36445 int arg2 ;
36446 PyObject * obj0 = 0 ;
36447 PyObject * obj1 = 0 ;
36448 char *kwnames[] = {
36449 (char *) "self",(char *) "cols", NULL
36450 };
36451
36452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetCols",kwnames,&obj0,&obj1)) goto fail;
36453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36455 arg2 = (int) SWIG_AsInt(obj1);
36456 if (PyErr_Occurred()) SWIG_fail;
36457 {
36458 PyThreadState* __tstate = wxPyBeginAllowThreads();
36459 (arg1)->SetCols(arg2);
36460
36461 wxPyEndAllowThreads(__tstate);
36462 if (PyErr_Occurred()) SWIG_fail;
36463 }
36464 Py_INCREF(Py_None); resultobj = Py_None;
36465 return resultobj;
36466 fail:
36467 return NULL;
36468}
36469
36470
36471static PyObject *_wrap_GridSizer_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) {
36472 PyObject *resultobj;
36473 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36474 int arg2 ;
36475 PyObject * obj0 = 0 ;
36476 PyObject * obj1 = 0 ;
36477 char *kwnames[] = {
36478 (char *) "self",(char *) "rows", NULL
36479 };
36480
36481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetRows",kwnames,&obj0,&obj1)) goto fail;
36482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36484 arg2 = (int) SWIG_AsInt(obj1);
36485 if (PyErr_Occurred()) SWIG_fail;
36486 {
36487 PyThreadState* __tstate = wxPyBeginAllowThreads();
36488 (arg1)->SetRows(arg2);
36489
36490 wxPyEndAllowThreads(__tstate);
36491 if (PyErr_Occurred()) SWIG_fail;
36492 }
36493 Py_INCREF(Py_None); resultobj = Py_None;
36494 return resultobj;
36495 fail:
36496 return NULL;
36497}
36498
36499
36500static PyObject *_wrap_GridSizer_SetVGap(PyObject *self, PyObject *args, PyObject *kwargs) {
36501 PyObject *resultobj;
36502 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36503 int arg2 ;
36504 PyObject * obj0 = 0 ;
36505 PyObject * obj1 = 0 ;
36506 char *kwnames[] = {
36507 (char *) "self",(char *) "gap", NULL
36508 };
36509
36510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetVGap",kwnames,&obj0,&obj1)) goto fail;
36511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36513 arg2 = (int) SWIG_AsInt(obj1);
36514 if (PyErr_Occurred()) SWIG_fail;
36515 {
36516 PyThreadState* __tstate = wxPyBeginAllowThreads();
36517 (arg1)->SetVGap(arg2);
36518
36519 wxPyEndAllowThreads(__tstate);
36520 if (PyErr_Occurred()) SWIG_fail;
36521 }
36522 Py_INCREF(Py_None); resultobj = Py_None;
36523 return resultobj;
36524 fail:
36525 return NULL;
36526}
36527
36528
36529static PyObject *_wrap_GridSizer_SetHGap(PyObject *self, PyObject *args, PyObject *kwargs) {
36530 PyObject *resultobj;
36531 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36532 int arg2 ;
36533 PyObject * obj0 = 0 ;
36534 PyObject * obj1 = 0 ;
36535 char *kwnames[] = {
36536 (char *) "self",(char *) "gap", NULL
36537 };
36538
36539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetHGap",kwnames,&obj0,&obj1)) goto fail;
36540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36542 arg2 = (int) SWIG_AsInt(obj1);
36543 if (PyErr_Occurred()) SWIG_fail;
36544 {
36545 PyThreadState* __tstate = wxPyBeginAllowThreads();
36546 (arg1)->SetHGap(arg2);
36547
36548 wxPyEndAllowThreads(__tstate);
36549 if (PyErr_Occurred()) SWIG_fail;
36550 }
36551 Py_INCREF(Py_None); resultobj = Py_None;
36552 return resultobj;
36553 fail:
36554 return NULL;
36555}
36556
36557
36558static PyObject *_wrap_GridSizer_GetCols(PyObject *self, PyObject *args, PyObject *kwargs) {
36559 PyObject *resultobj;
36560 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36561 int result;
36562 PyObject * obj0 = 0 ;
36563 char *kwnames[] = {
36564 (char *) "self", NULL
36565 };
36566
36567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetCols",kwnames,&obj0)) goto fail;
36568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36570 {
36571 PyThreadState* __tstate = wxPyBeginAllowThreads();
36572 result = (int)(arg1)->GetCols();
36573
36574 wxPyEndAllowThreads(__tstate);
36575 if (PyErr_Occurred()) SWIG_fail;
36576 }
36577 resultobj = SWIG_FromInt((int)result);
36578 return resultobj;
36579 fail:
36580 return NULL;
36581}
36582
36583
36584static PyObject *_wrap_GridSizer_GetRows(PyObject *self, PyObject *args, PyObject *kwargs) {
36585 PyObject *resultobj;
36586 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36587 int result;
36588 PyObject * obj0 = 0 ;
36589 char *kwnames[] = {
36590 (char *) "self", NULL
36591 };
36592
36593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetRows",kwnames,&obj0)) goto fail;
36594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36596 {
36597 PyThreadState* __tstate = wxPyBeginAllowThreads();
36598 result = (int)(arg1)->GetRows();
36599
36600 wxPyEndAllowThreads(__tstate);
36601 if (PyErr_Occurred()) SWIG_fail;
36602 }
36603 resultobj = SWIG_FromInt((int)result);
36604 return resultobj;
36605 fail:
36606 return NULL;
36607}
36608
36609
36610static PyObject *_wrap_GridSizer_GetVGap(PyObject *self, PyObject *args, PyObject *kwargs) {
36611 PyObject *resultobj;
36612 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36613 int result;
36614 PyObject * obj0 = 0 ;
36615 char *kwnames[] = {
36616 (char *) "self", NULL
36617 };
36618
36619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetVGap",kwnames,&obj0)) goto fail;
36620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36622 {
36623 PyThreadState* __tstate = wxPyBeginAllowThreads();
36624 result = (int)(arg1)->GetVGap();
36625
36626 wxPyEndAllowThreads(__tstate);
36627 if (PyErr_Occurred()) SWIG_fail;
36628 }
36629 resultobj = SWIG_FromInt((int)result);
36630 return resultobj;
36631 fail:
36632 return NULL;
36633}
36634
36635
36636static PyObject *_wrap_GridSizer_GetHGap(PyObject *self, PyObject *args, PyObject *kwargs) {
36637 PyObject *resultobj;
36638 wxGridSizer *arg1 = (wxGridSizer *) 0 ;
36639 int result;
36640 PyObject * obj0 = 0 ;
36641 char *kwnames[] = {
36642 (char *) "self", NULL
36643 };
36644
36645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridSizer_GetHGap",kwnames,&obj0)) goto fail;
36646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridSizer,
36647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36648 {
36649 PyThreadState* __tstate = wxPyBeginAllowThreads();
36650 result = (int)(arg1)->GetHGap();
36651
36652 wxPyEndAllowThreads(__tstate);
36653 if (PyErr_Occurred()) SWIG_fail;
36654 }
36655 resultobj = SWIG_FromInt((int)result);
36656 return resultobj;
36657 fail:
36658 return NULL;
36659}
36660
36661
36662static PyObject * GridSizer_swigregister(PyObject *self, PyObject *args) {
36663 PyObject *obj;
36664 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
36665 SWIG_TypeClientData(SWIGTYPE_p_wxGridSizer, obj);
36666 Py_INCREF(obj);
36667 return Py_BuildValue((char *)"");
36668}
36669static PyObject *_wrap_new_FlexGridSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
36670 PyObject *resultobj;
36671 int arg1 = (int) 1 ;
36672 int arg2 = (int) 0 ;
36673 int arg3 = (int) 0 ;
36674 int arg4 = (int) 0 ;
36675 wxFlexGridSizer *result;
36676 PyObject * obj0 = 0 ;
36677 PyObject * obj1 = 0 ;
36678 PyObject * obj2 = 0 ;
36679 PyObject * obj3 = 0 ;
36680 char *kwnames[] = {
36681 (char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL
36682 };
36683
36684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_FlexGridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
36685 if (obj0) {
36686 arg1 = (int) SWIG_AsInt(obj0);
36687 if (PyErr_Occurred()) SWIG_fail;
36688 }
36689 if (obj1) {
36690 arg2 = (int) SWIG_AsInt(obj1);
36691 if (PyErr_Occurred()) SWIG_fail;
36692 }
36693 if (obj2) {
36694 arg3 = (int) SWIG_AsInt(obj2);
36695 if (PyErr_Occurred()) SWIG_fail;
36696 }
36697 if (obj3) {
36698 arg4 = (int) SWIG_AsInt(obj3);
36699 if (PyErr_Occurred()) SWIG_fail;
36700 }
36701 {
36702 PyThreadState* __tstate = wxPyBeginAllowThreads();
36703 result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4);
36704
36705 wxPyEndAllowThreads(__tstate);
36706 if (PyErr_Occurred()) SWIG_fail;
36707 }
36708 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFlexGridSizer, 1);
36709 return resultobj;
36710 fail:
36711 return NULL;
36712}
36713
36714
d55e5bfc
RD
36715static PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) {
36716 PyObject *resultobj;
36717 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36718 size_t arg2 ;
36719 int arg3 = (int) 0 ;
36720 PyObject * obj0 = 0 ;
36721 PyObject * obj1 = 0 ;
36722 PyObject * obj2 = 0 ;
36723 char *kwnames[] = {
36724 (char *) "self",(char *) "idx",(char *) "proportion", NULL
36725 };
36726
36727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&obj2)) goto fail;
36728 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36730 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
36731 if (PyErr_Occurred()) SWIG_fail;
36732 if (obj2) {
36733 arg3 = (int) SWIG_AsInt(obj2);
36734 if (PyErr_Occurred()) SWIG_fail;
36735 }
36736 {
36737 PyThreadState* __tstate = wxPyBeginAllowThreads();
36738 (arg1)->AddGrowableRow(arg2,arg3);
36739
36740 wxPyEndAllowThreads(__tstate);
36741 if (PyErr_Occurred()) SWIG_fail;
36742 }
36743 Py_INCREF(Py_None); resultobj = Py_None;
36744 return resultobj;
36745 fail:
36746 return NULL;
36747}
36748
36749
36750static PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *self, PyObject *args, PyObject *kwargs) {
36751 PyObject *resultobj;
36752 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36753 size_t arg2 ;
36754 PyObject * obj0 = 0 ;
36755 PyObject * obj1 = 0 ;
36756 char *kwnames[] = {
36757 (char *) "self",(char *) "idx", NULL
36758 };
36759
36760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) goto fail;
36761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36763 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
36764 if (PyErr_Occurred()) SWIG_fail;
36765 {
36766 PyThreadState* __tstate = wxPyBeginAllowThreads();
36767 (arg1)->RemoveGrowableRow(arg2);
36768
36769 wxPyEndAllowThreads(__tstate);
36770 if (PyErr_Occurred()) SWIG_fail;
36771 }
36772 Py_INCREF(Py_None); resultobj = Py_None;
36773 return resultobj;
36774 fail:
36775 return NULL;
36776}
36777
36778
36779static PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) {
36780 PyObject *resultobj;
36781 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36782 size_t arg2 ;
36783 int arg3 = (int) 0 ;
36784 PyObject * obj0 = 0 ;
36785 PyObject * obj1 = 0 ;
36786 PyObject * obj2 = 0 ;
36787 char *kwnames[] = {
36788 (char *) "self",(char *) "idx",(char *) "proportion", NULL
36789 };
36790
36791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&obj2)) goto fail;
36792 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36793 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36794 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
36795 if (PyErr_Occurred()) SWIG_fail;
36796 if (obj2) {
36797 arg3 = (int) SWIG_AsInt(obj2);
36798 if (PyErr_Occurred()) SWIG_fail;
36799 }
36800 {
36801 PyThreadState* __tstate = wxPyBeginAllowThreads();
36802 (arg1)->AddGrowableCol(arg2,arg3);
36803
36804 wxPyEndAllowThreads(__tstate);
36805 if (PyErr_Occurred()) SWIG_fail;
36806 }
36807 Py_INCREF(Py_None); resultobj = Py_None;
36808 return resultobj;
36809 fail:
36810 return NULL;
36811}
36812
36813
36814static PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *self, PyObject *args, PyObject *kwargs) {
36815 PyObject *resultobj;
36816 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36817 size_t arg2 ;
36818 PyObject * obj0 = 0 ;
36819 PyObject * obj1 = 0 ;
36820 char *kwnames[] = {
36821 (char *) "self",(char *) "idx", NULL
36822 };
36823
36824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) goto fail;
36825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36827 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
36828 if (PyErr_Occurred()) SWIG_fail;
36829 {
36830 PyThreadState* __tstate = wxPyBeginAllowThreads();
36831 (arg1)->RemoveGrowableCol(arg2);
36832
36833 wxPyEndAllowThreads(__tstate);
36834 if (PyErr_Occurred()) SWIG_fail;
36835 }
36836 Py_INCREF(Py_None); resultobj = Py_None;
36837 return resultobj;
36838 fail:
36839 return NULL;
36840}
36841
36842
36843static PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) {
36844 PyObject *resultobj;
36845 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36846 int arg2 ;
36847 PyObject * obj0 = 0 ;
36848 PyObject * obj1 = 0 ;
36849 char *kwnames[] = {
36850 (char *) "self",(char *) "direction", NULL
36851 };
36852
36853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&obj1)) goto fail;
36854 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36855 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36856 arg2 = (int) SWIG_AsInt(obj1);
36857 if (PyErr_Occurred()) SWIG_fail;
36858 {
36859 PyThreadState* __tstate = wxPyBeginAllowThreads();
36860 (arg1)->SetFlexibleDirection(arg2);
36861
36862 wxPyEndAllowThreads(__tstate);
36863 if (PyErr_Occurred()) SWIG_fail;
36864 }
36865 Py_INCREF(Py_None); resultobj = Py_None;
36866 return resultobj;
36867 fail:
36868 return NULL;
36869}
36870
36871
36872static PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *self, PyObject *args, PyObject *kwargs) {
36873 PyObject *resultobj;
36874 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36875 int result;
36876 PyObject * obj0 = 0 ;
36877 char *kwnames[] = {
36878 (char *) "self", NULL
36879 };
36880
36881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetFlexibleDirection",kwnames,&obj0)) goto fail;
36882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36884 {
36885 PyThreadState* __tstate = wxPyBeginAllowThreads();
36886 result = (int)(arg1)->GetFlexibleDirection();
36887
36888 wxPyEndAllowThreads(__tstate);
36889 if (PyErr_Occurred()) SWIG_fail;
36890 }
36891 resultobj = SWIG_FromInt((int)result);
36892 return resultobj;
36893 fail:
36894 return NULL;
36895}
36896
36897
36898static PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) {
36899 PyObject *resultobj;
36900 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36901 int arg2 ;
36902 PyObject * obj0 = 0 ;
36903 PyObject * obj1 = 0 ;
36904 char *kwnames[] = {
36905 (char *) "self",(char *) "mode", NULL
36906 };
36907
36908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&obj1)) goto fail;
36909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36911 arg2 = (wxFlexSizerGrowMode) SWIG_AsInt(obj1);
36912 if (PyErr_Occurred()) SWIG_fail;
36913 {
36914 PyThreadState* __tstate = wxPyBeginAllowThreads();
36915 (arg1)->SetNonFlexibleGrowMode((wxFlexSizerGrowMode )arg2);
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_GetNonFlexibleGrowMode(PyObject *self, PyObject *args, PyObject *kwargs) {
36928 PyObject *resultobj;
36929 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36930 int result;
36931 PyObject * obj0 = 0 ;
36932 char *kwnames[] = {
36933 (char *) "self", NULL
36934 };
36935
36936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetNonFlexibleGrowMode",kwnames,&obj0)) goto fail;
36937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36939 {
36940 PyThreadState* __tstate = wxPyBeginAllowThreads();
36941 result = (int)(arg1)->GetNonFlexibleGrowMode();
36942
36943 wxPyEndAllowThreads(__tstate);
36944 if (PyErr_Occurred()) SWIG_fail;
36945 }
36946 resultobj = SWIG_FromInt((int)result);
36947 return resultobj;
36948 fail:
36949 return NULL;
36950}
36951
36952
36953static PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *self, PyObject *args, PyObject *kwargs) {
36954 PyObject *resultobj;
36955 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36956 wxArrayInt *result;
36957 PyObject * obj0 = 0 ;
36958 char *kwnames[] = {
36959 (char *) "self", NULL
36960 };
36961
36962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetRowHeights",kwnames,&obj0)) goto fail;
36963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
36964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
36965 {
36966 PyThreadState* __tstate = wxPyBeginAllowThreads();
36967 {
36968 wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights();
36969 result = (wxArrayInt *) &_result_ref;
36970 }
36971
36972 wxPyEndAllowThreads(__tstate);
36973 if (PyErr_Occurred()) SWIG_fail;
36974 }
36975 {
36976 resultobj = PyList_New(0);
36977 size_t idx;
36978 for (idx = 0; idx < result->GetCount(); idx += 1) {
36979 PyObject* val = PyInt_FromLong( result->Item(idx) );
36980 PyList_Append(resultobj, val);
36981 Py_DECREF(val);
36982 }
36983 }
36984 return resultobj;
36985 fail:
36986 return NULL;
36987}
36988
36989
36990static PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *self, PyObject *args, PyObject *kwargs) {
36991 PyObject *resultobj;
36992 wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
36993 wxArrayInt *result;
36994 PyObject * obj0 = 0 ;
36995 char *kwnames[] = {
36996 (char *) "self", NULL
36997 };
36998
36999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FlexGridSizer_GetColWidths",kwnames,&obj0)) goto fail;
37000 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFlexGridSizer,
37001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37002 {
37003 PyThreadState* __tstate = wxPyBeginAllowThreads();
37004 {
37005 wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths();
37006 result = (wxArrayInt *) &_result_ref;
37007 }
37008
37009 wxPyEndAllowThreads(__tstate);
37010 if (PyErr_Occurred()) SWIG_fail;
37011 }
37012 {
37013 resultobj = PyList_New(0);
37014 size_t idx;
37015 for (idx = 0; idx < result->GetCount(); idx += 1) {
37016 PyObject* val = PyInt_FromLong( result->Item(idx) );
37017 PyList_Append(resultobj, val);
37018 Py_DECREF(val);
37019 }
37020 }
37021 return resultobj;
37022 fail:
37023 return NULL;
37024}
37025
37026
37027static PyObject * FlexGridSizer_swigregister(PyObject *self, PyObject *args) {
37028 PyObject *obj;
37029 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
37030 SWIG_TypeClientData(SWIGTYPE_p_wxFlexGridSizer, obj);
37031 Py_INCREF(obj);
37032 return Py_BuildValue((char *)"");
37033}
37034static PyObject *_wrap_new_GBPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
37035 PyObject *resultobj;
37036 int arg1 = (int) 0 ;
37037 int arg2 = (int) 0 ;
37038 wxGBPosition *result;
37039 PyObject * obj0 = 0 ;
37040 PyObject * obj1 = 0 ;
37041 char *kwnames[] = {
37042 (char *) "row",(char *) "col", NULL
37043 };
37044
37045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBPosition",kwnames,&obj0,&obj1)) goto fail;
37046 if (obj0) {
37047 arg1 = (int) SWIG_AsInt(obj0);
37048 if (PyErr_Occurred()) SWIG_fail;
37049 }
37050 if (obj1) {
37051 arg2 = (int) SWIG_AsInt(obj1);
37052 if (PyErr_Occurred()) SWIG_fail;
37053 }
37054 {
37055 PyThreadState* __tstate = wxPyBeginAllowThreads();
37056 result = (wxGBPosition *)new wxGBPosition(arg1,arg2);
37057
37058 wxPyEndAllowThreads(__tstate);
37059 if (PyErr_Occurred()) SWIG_fail;
37060 }
37061 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBPosition, 1);
37062 return resultobj;
37063 fail:
37064 return NULL;
37065}
37066
37067
37068static PyObject *_wrap_GBPosition_GetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
37069 PyObject *resultobj;
37070 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
37071 int result;
37072 PyObject * obj0 = 0 ;
37073 char *kwnames[] = {
37074 (char *) "self", NULL
37075 };
37076
37077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetRow",kwnames,&obj0)) goto fail;
37078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
37079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37080 {
37081 PyThreadState* __tstate = wxPyBeginAllowThreads();
37082 result = (int)((wxGBPosition const *)arg1)->GetRow();
37083
37084 wxPyEndAllowThreads(__tstate);
37085 if (PyErr_Occurred()) SWIG_fail;
37086 }
37087 resultobj = SWIG_FromInt((int)result);
37088 return resultobj;
37089 fail:
37090 return NULL;
37091}
37092
37093
37094static PyObject *_wrap_GBPosition_GetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
37095 PyObject *resultobj;
37096 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
37097 int result;
37098 PyObject * obj0 = 0 ;
37099 char *kwnames[] = {
37100 (char *) "self", NULL
37101 };
37102
37103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_GetCol",kwnames,&obj0)) goto fail;
37104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
37105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37106 {
37107 PyThreadState* __tstate = wxPyBeginAllowThreads();
37108 result = (int)((wxGBPosition const *)arg1)->GetCol();
37109
37110 wxPyEndAllowThreads(__tstate);
37111 if (PyErr_Occurred()) SWIG_fail;
37112 }
37113 resultobj = SWIG_FromInt((int)result);
37114 return resultobj;
37115 fail:
37116 return NULL;
37117}
37118
37119
37120static PyObject *_wrap_GBPosition_SetRow(PyObject *self, PyObject *args, PyObject *kwargs) {
37121 PyObject *resultobj;
37122 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
37123 int arg2 ;
37124 PyObject * obj0 = 0 ;
37125 PyObject * obj1 = 0 ;
37126 char *kwnames[] = {
37127 (char *) "self",(char *) "row", NULL
37128 };
37129
37130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetRow",kwnames,&obj0,&obj1)) goto fail;
37131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
37132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37133 arg2 = (int) SWIG_AsInt(obj1);
37134 if (PyErr_Occurred()) SWIG_fail;
37135 {
37136 PyThreadState* __tstate = wxPyBeginAllowThreads();
37137 (arg1)->SetRow(arg2);
37138
37139 wxPyEndAllowThreads(__tstate);
37140 if (PyErr_Occurred()) SWIG_fail;
37141 }
37142 Py_INCREF(Py_None); resultobj = Py_None;
37143 return resultobj;
37144 fail:
37145 return NULL;
37146}
37147
37148
37149static PyObject *_wrap_GBPosition_SetCol(PyObject *self, PyObject *args, PyObject *kwargs) {
37150 PyObject *resultobj;
37151 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
37152 int arg2 ;
37153 PyObject * obj0 = 0 ;
37154 PyObject * obj1 = 0 ;
37155 char *kwnames[] = {
37156 (char *) "self",(char *) "col", NULL
37157 };
37158
37159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetCol",kwnames,&obj0,&obj1)) goto fail;
37160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
37161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37162 arg2 = (int) SWIG_AsInt(obj1);
37163 if (PyErr_Occurred()) SWIG_fail;
37164 {
37165 PyThreadState* __tstate = wxPyBeginAllowThreads();
37166 (arg1)->SetCol(arg2);
37167
37168 wxPyEndAllowThreads(__tstate);
37169 if (PyErr_Occurred()) SWIG_fail;
37170 }
37171 Py_INCREF(Py_None); resultobj = Py_None;
37172 return resultobj;
37173 fail:
37174 return NULL;
37175}
37176
37177
37178static PyObject *_wrap_GBPosition___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
37179 PyObject *resultobj;
37180 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
37181 wxGBPosition *arg2 = 0 ;
37182 bool result;
37183 wxGBPosition temp2 ;
37184 PyObject * obj0 = 0 ;
37185 PyObject * obj1 = 0 ;
37186 char *kwnames[] = {
37187 (char *) "self",(char *) "other", NULL
37188 };
37189
37190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) goto fail;
37191 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
37192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37193 {
37194 arg2 = &temp2;
37195 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
37196 }
37197 {
37198 PyThreadState* __tstate = wxPyBeginAllowThreads();
37199 result = (bool)(arg1)->operator ==((wxGBPosition const &)*arg2);
37200
37201 wxPyEndAllowThreads(__tstate);
37202 if (PyErr_Occurred()) SWIG_fail;
37203 }
37204 {
37205 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37206 }
37207 return resultobj;
37208 fail:
37209 return NULL;
37210}
37211
37212
37213static PyObject *_wrap_GBPosition___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
37214 PyObject *resultobj;
37215 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
37216 wxGBPosition *arg2 = 0 ;
37217 bool result;
37218 wxGBPosition temp2 ;
37219 PyObject * obj0 = 0 ;
37220 PyObject * obj1 = 0 ;
37221 char *kwnames[] = {
37222 (char *) "self",(char *) "other", NULL
37223 };
37224
37225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) goto fail;
37226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
37227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37228 {
37229 arg2 = &temp2;
37230 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
37231 }
37232 {
37233 PyThreadState* __tstate = wxPyBeginAllowThreads();
37234 result = (bool)(arg1)->operator !=((wxGBPosition const &)*arg2);
37235
37236 wxPyEndAllowThreads(__tstate);
37237 if (PyErr_Occurred()) SWIG_fail;
37238 }
37239 {
37240 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37241 }
37242 return resultobj;
37243 fail:
37244 return NULL;
37245}
37246
37247
37248static PyObject *_wrap_GBPosition_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
37249 PyObject *resultobj;
37250 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
37251 int arg2 = (int) 0 ;
37252 int arg3 = (int) 0 ;
37253 PyObject * obj0 = 0 ;
37254 PyObject * obj1 = 0 ;
37255 PyObject * obj2 = 0 ;
37256 char *kwnames[] = {
37257 (char *) "self",(char *) "row",(char *) "col", NULL
37258 };
37259
37260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBPosition_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
37261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
37262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37263 if (obj1) {
37264 arg2 = (int) SWIG_AsInt(obj1);
37265 if (PyErr_Occurred()) SWIG_fail;
37266 }
37267 if (obj2) {
37268 arg3 = (int) SWIG_AsInt(obj2);
37269 if (PyErr_Occurred()) SWIG_fail;
37270 }
37271 {
37272 PyThreadState* __tstate = wxPyBeginAllowThreads();
37273 wxGBPosition_Set(arg1,arg2,arg3);
37274
37275 wxPyEndAllowThreads(__tstate);
37276 if (PyErr_Occurred()) SWIG_fail;
37277 }
37278 Py_INCREF(Py_None); resultobj = Py_None;
37279 return resultobj;
37280 fail:
37281 return NULL;
37282}
37283
37284
37285static PyObject *_wrap_GBPosition_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
37286 PyObject *resultobj;
37287 wxGBPosition *arg1 = (wxGBPosition *) 0 ;
37288 PyObject *result;
37289 PyObject * obj0 = 0 ;
37290 char *kwnames[] = {
37291 (char *) "self", NULL
37292 };
37293
37294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBPosition_Get",kwnames,&obj0)) goto fail;
37295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBPosition,
37296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37297 {
37298 PyThreadState* __tstate = wxPyBeginAllowThreads();
37299 result = (PyObject *)wxGBPosition_Get(arg1);
37300
37301 wxPyEndAllowThreads(__tstate);
37302 if (PyErr_Occurred()) SWIG_fail;
37303 }
37304 resultobj = result;
37305 return resultobj;
37306 fail:
37307 return NULL;
37308}
37309
37310
37311static PyObject * GBPosition_swigregister(PyObject *self, PyObject *args) {
37312 PyObject *obj;
37313 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
37314 SWIG_TypeClientData(SWIGTYPE_p_wxGBPosition, obj);
37315 Py_INCREF(obj);
37316 return Py_BuildValue((char *)"");
37317}
37318static PyObject *_wrap_new_GBSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
37319 PyObject *resultobj;
37320 int arg1 = (int) 1 ;
37321 int arg2 = (int) 1 ;
37322 wxGBSpan *result;
37323 PyObject * obj0 = 0 ;
37324 PyObject * obj1 = 0 ;
37325 char *kwnames[] = {
37326 (char *) "rowspan",(char *) "colspan", NULL
37327 };
37328
37329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBSpan",kwnames,&obj0,&obj1)) goto fail;
37330 if (obj0) {
37331 arg1 = (int) SWIG_AsInt(obj0);
37332 if (PyErr_Occurred()) SWIG_fail;
37333 }
37334 if (obj1) {
37335 arg2 = (int) SWIG_AsInt(obj1);
37336 if (PyErr_Occurred()) SWIG_fail;
37337 }
37338 {
37339 PyThreadState* __tstate = wxPyBeginAllowThreads();
37340 result = (wxGBSpan *)new wxGBSpan(arg1,arg2);
37341
37342 wxPyEndAllowThreads(__tstate);
37343 if (PyErr_Occurred()) SWIG_fail;
37344 }
37345 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSpan, 1);
37346 return resultobj;
37347 fail:
37348 return NULL;
37349}
37350
37351
37352static PyObject *_wrap_GBSpan_GetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) {
37353 PyObject *resultobj;
37354 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37355 int result;
37356 PyObject * obj0 = 0 ;
37357 char *kwnames[] = {
37358 (char *) "self", NULL
37359 };
37360
37361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetRowspan",kwnames,&obj0)) goto fail;
37362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37364 {
37365 PyThreadState* __tstate = wxPyBeginAllowThreads();
37366 result = (int)((wxGBSpan const *)arg1)->GetRowspan();
37367
37368 wxPyEndAllowThreads(__tstate);
37369 if (PyErr_Occurred()) SWIG_fail;
37370 }
37371 resultobj = SWIG_FromInt((int)result);
37372 return resultobj;
37373 fail:
37374 return NULL;
37375}
37376
37377
37378static PyObject *_wrap_GBSpan_GetColspan(PyObject *self, PyObject *args, PyObject *kwargs) {
37379 PyObject *resultobj;
37380 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37381 int result;
37382 PyObject * obj0 = 0 ;
37383 char *kwnames[] = {
37384 (char *) "self", NULL
37385 };
37386
37387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_GetColspan",kwnames,&obj0)) goto fail;
37388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37390 {
37391 PyThreadState* __tstate = wxPyBeginAllowThreads();
37392 result = (int)((wxGBSpan const *)arg1)->GetColspan();
37393
37394 wxPyEndAllowThreads(__tstate);
37395 if (PyErr_Occurred()) SWIG_fail;
37396 }
37397 resultobj = SWIG_FromInt((int)result);
37398 return resultobj;
37399 fail:
37400 return NULL;
37401}
37402
37403
37404static PyObject *_wrap_GBSpan_SetRowspan(PyObject *self, PyObject *args, PyObject *kwargs) {
37405 PyObject *resultobj;
37406 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37407 int arg2 ;
37408 PyObject * obj0 = 0 ;
37409 PyObject * obj1 = 0 ;
37410 char *kwnames[] = {
37411 (char *) "self",(char *) "rowspan", NULL
37412 };
37413
37414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetRowspan",kwnames,&obj0,&obj1)) goto fail;
37415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37417 arg2 = (int) SWIG_AsInt(obj1);
37418 if (PyErr_Occurred()) SWIG_fail;
37419 {
37420 PyThreadState* __tstate = wxPyBeginAllowThreads();
37421 (arg1)->SetRowspan(arg2);
37422
37423 wxPyEndAllowThreads(__tstate);
37424 if (PyErr_Occurred()) SWIG_fail;
37425 }
37426 Py_INCREF(Py_None); resultobj = Py_None;
37427 return resultobj;
37428 fail:
37429 return NULL;
37430}
37431
37432
37433static PyObject *_wrap_GBSpan_SetColspan(PyObject *self, PyObject *args, PyObject *kwargs) {
37434 PyObject *resultobj;
37435 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37436 int arg2 ;
37437 PyObject * obj0 = 0 ;
37438 PyObject * obj1 = 0 ;
37439 char *kwnames[] = {
37440 (char *) "self",(char *) "colspan", NULL
37441 };
37442
37443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetColspan",kwnames,&obj0,&obj1)) goto fail;
37444 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37446 arg2 = (int) SWIG_AsInt(obj1);
37447 if (PyErr_Occurred()) SWIG_fail;
37448 {
37449 PyThreadState* __tstate = wxPyBeginAllowThreads();
37450 (arg1)->SetColspan(arg2);
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_GBSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
37463 PyObject *resultobj;
37464 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37465 wxGBSpan *arg2 = 0 ;
37466 bool result;
37467 wxGBSpan temp2 ;
37468 PyObject * obj0 = 0 ;
37469 PyObject * obj1 = 0 ;
37470 char *kwnames[] = {
37471 (char *) "self",(char *) "other", NULL
37472 };
37473
37474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
37475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37477 {
37478 arg2 = &temp2;
37479 if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail;
37480 }
37481 {
37482 PyThreadState* __tstate = wxPyBeginAllowThreads();
37483 result = (bool)(arg1)->operator ==((wxGBSpan const &)*arg2);
37484
37485 wxPyEndAllowThreads(__tstate);
37486 if (PyErr_Occurred()) SWIG_fail;
37487 }
37488 {
37489 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37490 }
37491 return resultobj;
37492 fail:
37493 return NULL;
37494}
37495
37496
37497static PyObject *_wrap_GBSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
37498 PyObject *resultobj;
37499 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37500 wxGBSpan *arg2 = 0 ;
37501 bool result;
37502 wxGBSpan temp2 ;
37503 PyObject * obj0 = 0 ;
37504 PyObject * obj1 = 0 ;
37505 char *kwnames[] = {
37506 (char *) "self",(char *) "other", NULL
37507 };
37508
37509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
37510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37512 {
37513 arg2 = &temp2;
37514 if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail;
37515 }
37516 {
37517 PyThreadState* __tstate = wxPyBeginAllowThreads();
37518 result = (bool)(arg1)->operator !=((wxGBSpan const &)*arg2);
37519
37520 wxPyEndAllowThreads(__tstate);
37521 if (PyErr_Occurred()) SWIG_fail;
37522 }
37523 {
37524 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37525 }
37526 return resultobj;
37527 fail:
37528 return NULL;
37529}
37530
37531
37532static PyObject *_wrap_GBSpan_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
37533 PyObject *resultobj;
37534 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37535 int arg2 = (int) 1 ;
37536 int arg3 = (int) 1 ;
37537 PyObject * obj0 = 0 ;
37538 PyObject * obj1 = 0 ;
37539 PyObject * obj2 = 0 ;
37540 char *kwnames[] = {
37541 (char *) "self",(char *) "rowspan",(char *) "colspan", NULL
37542 };
37543
37544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBSpan_Set",kwnames,&obj0,&obj1,&obj2)) goto fail;
37545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37547 if (obj1) {
37548 arg2 = (int) SWIG_AsInt(obj1);
37549 if (PyErr_Occurred()) SWIG_fail;
37550 }
37551 if (obj2) {
37552 arg3 = (int) SWIG_AsInt(obj2);
37553 if (PyErr_Occurred()) SWIG_fail;
37554 }
37555 {
37556 PyThreadState* __tstate = wxPyBeginAllowThreads();
37557 wxGBSpan_Set(arg1,arg2,arg3);
37558
37559 wxPyEndAllowThreads(__tstate);
37560 if (PyErr_Occurred()) SWIG_fail;
37561 }
37562 Py_INCREF(Py_None); resultobj = Py_None;
37563 return resultobj;
37564 fail:
37565 return NULL;
37566}
37567
37568
37569static PyObject *_wrap_GBSpan_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
37570 PyObject *resultobj;
37571 wxGBSpan *arg1 = (wxGBSpan *) 0 ;
37572 PyObject *result;
37573 PyObject * obj0 = 0 ;
37574 char *kwnames[] = {
37575 (char *) "self", NULL
37576 };
37577
37578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSpan_Get",kwnames,&obj0)) goto fail;
37579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSpan,
37580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37581 {
37582 PyThreadState* __tstate = wxPyBeginAllowThreads();
37583 result = (PyObject *)wxGBSpan_Get(arg1);
37584
37585 wxPyEndAllowThreads(__tstate);
37586 if (PyErr_Occurred()) SWIG_fail;
37587 }
37588 resultobj = result;
37589 return resultobj;
37590 fail:
37591 return NULL;
37592}
37593
37594
37595static PyObject * GBSpan_swigregister(PyObject *self, PyObject *args) {
37596 PyObject *obj;
37597 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
37598 SWIG_TypeClientData(SWIGTYPE_p_wxGBSpan, obj);
37599 Py_INCREF(obj);
37600 return Py_BuildValue((char *)"");
37601}
37602static int _wrap_DefaultSpan_set(PyObject *_val) {
37603 PyErr_SetString(PyExc_TypeError,"Variable DefaultSpan is read-only.");
37604 return 1;
37605}
37606
37607
37608static PyObject *_wrap_DefaultSpan_get() {
37609 PyObject *pyobj;
37610
37611 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultSpan), SWIGTYPE_p_wxGBSpan, 0);
37612 return pyobj;
37613}
37614
37615
37616static PyObject *_wrap_new_GBSizerItem(PyObject *self, PyObject *args, PyObject *kwargs) {
37617 PyObject *resultobj;
37618 wxGBSizerItem *result;
37619 char *kwnames[] = {
37620 NULL
37621 };
37622
37623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GBSizerItem",kwnames)) goto fail;
37624 {
37625 PyThreadState* __tstate = wxPyBeginAllowThreads();
37626 result = (wxGBSizerItem *)new wxGBSizerItem();
37627
37628 wxPyEndAllowThreads(__tstate);
37629 if (PyErr_Occurred()) SWIG_fail;
37630 }
37631 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1);
37632 return resultobj;
37633 fail:
37634 return NULL;
37635}
37636
37637
37638static PyObject *_wrap_new_GBSizerItemWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
37639 PyObject *resultobj;
37640 wxWindow *arg1 = (wxWindow *) 0 ;
37641 wxGBPosition *arg2 = 0 ;
37642 wxGBSpan *arg3 = 0 ;
37643 int arg4 ;
37644 int arg5 ;
248ed943 37645 PyObject *arg6 = (PyObject *) NULL ;
d55e5bfc
RD
37646 wxGBSizerItem *result;
37647 wxGBPosition temp2 ;
37648 wxGBSpan temp3 ;
37649 PyObject * obj0 = 0 ;
37650 PyObject * obj1 = 0 ;
37651 PyObject * obj2 = 0 ;
37652 PyObject * obj3 = 0 ;
37653 PyObject * obj4 = 0 ;
37654 PyObject * obj5 = 0 ;
37655 char *kwnames[] = {
37656 (char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
37657 };
37658
248ed943 37659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
d55e5bfc
RD
37660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
37661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37662 {
37663 arg2 = &temp2;
37664 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
37665 }
37666 {
37667 arg3 = &temp3;
37668 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
37669 }
37670 arg4 = (int) SWIG_AsInt(obj3);
37671 if (PyErr_Occurred()) SWIG_fail;
37672 arg5 = (int) SWIG_AsInt(obj4);
37673 if (PyErr_Occurred()) SWIG_fail;
248ed943
RD
37674 if (obj5) {
37675 arg6 = obj5;
37676 }
d55e5bfc
RD
37677 {
37678 PyThreadState* __tstate = wxPyBeginAllowThreads();
248ed943 37679 result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6);
d55e5bfc
RD
37680
37681 wxPyEndAllowThreads(__tstate);
37682 if (PyErr_Occurred()) SWIG_fail;
37683 }
37684 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1);
37685 return resultobj;
37686 fail:
37687 return NULL;
37688}
37689
37690
37691static PyObject *_wrap_new_GBSizerItemSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
37692 PyObject *resultobj;
37693 wxSizer *arg1 = (wxSizer *) 0 ;
37694 wxGBPosition *arg2 = 0 ;
37695 wxGBSpan *arg3 = 0 ;
37696 int arg4 ;
37697 int arg5 ;
248ed943 37698 PyObject *arg6 = (PyObject *) NULL ;
d55e5bfc
RD
37699 wxGBSizerItem *result;
37700 wxGBPosition temp2 ;
37701 wxGBSpan temp3 ;
37702 PyObject * obj0 = 0 ;
37703 PyObject * obj1 = 0 ;
37704 PyObject * obj2 = 0 ;
37705 PyObject * obj3 = 0 ;
37706 PyObject * obj4 = 0 ;
37707 PyObject * obj5 = 0 ;
37708 char *kwnames[] = {
37709 (char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
37710 };
37711
248ed943 37712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
d55e5bfc
RD
37713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSizer,
37714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37715 {
37716 arg2 = &temp2;
37717 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
37718 }
37719 {
37720 arg3 = &temp3;
37721 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
37722 }
37723 arg4 = (int) SWIG_AsInt(obj3);
37724 if (PyErr_Occurred()) SWIG_fail;
37725 arg5 = (int) SWIG_AsInt(obj4);
37726 if (PyErr_Occurred()) SWIG_fail;
248ed943
RD
37727 if (obj5) {
37728 arg6 = obj5;
37729 }
d55e5bfc
RD
37730 {
37731 PyThreadState* __tstate = wxPyBeginAllowThreads();
248ed943 37732 result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6);
d55e5bfc
RD
37733
37734 wxPyEndAllowThreads(__tstate);
37735 if (PyErr_Occurred()) SWIG_fail;
37736 }
37737 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1);
37738 return resultobj;
37739 fail:
37740 return NULL;
37741}
37742
37743
37744static PyObject *_wrap_new_GBSizerItemSpacer(PyObject *self, PyObject *args, PyObject *kwargs) {
37745 PyObject *resultobj;
37746 int arg1 ;
37747 int arg2 ;
37748 wxGBPosition *arg3 = 0 ;
37749 wxGBSpan *arg4 = 0 ;
37750 int arg5 ;
37751 int arg6 ;
248ed943 37752 PyObject *arg7 = (PyObject *) NULL ;
d55e5bfc
RD
37753 wxGBSizerItem *result;
37754 wxGBPosition temp3 ;
37755 wxGBSpan temp4 ;
37756 PyObject * obj0 = 0 ;
37757 PyObject * obj1 = 0 ;
37758 PyObject * obj2 = 0 ;
37759 PyObject * obj3 = 0 ;
37760 PyObject * obj4 = 0 ;
37761 PyObject * obj5 = 0 ;
37762 PyObject * obj6 = 0 ;
37763 char *kwnames[] = {
37764 (char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
37765 };
37766
248ed943 37767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:new_GBSizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
d55e5bfc
RD
37768 arg1 = (int) SWIG_AsInt(obj0);
37769 if (PyErr_Occurred()) SWIG_fail;
37770 arg2 = (int) SWIG_AsInt(obj1);
37771 if (PyErr_Occurred()) SWIG_fail;
37772 {
37773 arg3 = &temp3;
37774 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
37775 }
37776 {
37777 arg4 = &temp4;
37778 if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail;
37779 }
37780 arg5 = (int) SWIG_AsInt(obj4);
37781 if (PyErr_Occurred()) SWIG_fail;
37782 arg6 = (int) SWIG_AsInt(obj5);
37783 if (PyErr_Occurred()) SWIG_fail;
248ed943
RD
37784 if (obj6) {
37785 arg7 = obj6;
37786 }
d55e5bfc
RD
37787 {
37788 PyThreadState* __tstate = wxPyBeginAllowThreads();
248ed943 37789 result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7);
d55e5bfc
RD
37790
37791 wxPyEndAllowThreads(__tstate);
37792 if (PyErr_Occurred()) SWIG_fail;
37793 }
37794 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 1);
37795 return resultobj;
37796 fail:
37797 return NULL;
37798}
37799
37800
37801static PyObject *_wrap_GBSizerItem_GetPos(PyObject *self, PyObject *args, PyObject *kwargs) {
37802 PyObject *resultobj;
37803 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
37804 wxGBPosition result;
37805 PyObject * obj0 = 0 ;
37806 char *kwnames[] = {
37807 (char *) "self", NULL
37808 };
37809
37810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetPos",kwnames,&obj0)) goto fail;
37811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
37812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37813 {
37814 PyThreadState* __tstate = wxPyBeginAllowThreads();
37815 result = ((wxGBSizerItem const *)arg1)->GetPos();
37816
37817 wxPyEndAllowThreads(__tstate);
37818 if (PyErr_Occurred()) SWIG_fail;
37819 }
37820 {
37821 wxGBPosition * resultptr;
37822 resultptr = new wxGBPosition((wxGBPosition &) result);
37823 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1);
37824 }
37825 return resultobj;
37826 fail:
37827 return NULL;
37828}
37829
37830
37831static PyObject *_wrap_GBSizerItem_GetSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
37832 PyObject *resultobj;
37833 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
37834 wxGBSpan result;
37835 PyObject * obj0 = 0 ;
37836 char *kwnames[] = {
37837 (char *) "self", NULL
37838 };
37839
37840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetSpan",kwnames,&obj0)) goto fail;
37841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
37842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37843 {
37844 PyThreadState* __tstate = wxPyBeginAllowThreads();
37845 result = ((wxGBSizerItem const *)arg1)->GetSpan();
37846
37847 wxPyEndAllowThreads(__tstate);
37848 if (PyErr_Occurred()) SWIG_fail;
37849 }
37850 {
37851 wxGBSpan * resultptr;
37852 resultptr = new wxGBSpan((wxGBSpan &) result);
37853 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1);
37854 }
37855 return resultobj;
37856 fail:
37857 return NULL;
37858}
37859
37860
37861static PyObject *_wrap_GBSizerItem_SetPos(PyObject *self, PyObject *args, PyObject *kwargs) {
37862 PyObject *resultobj;
37863 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
37864 wxGBPosition *arg2 = 0 ;
37865 bool result;
37866 wxGBPosition temp2 ;
37867 PyObject * obj0 = 0 ;
37868 PyObject * obj1 = 0 ;
37869 char *kwnames[] = {
37870 (char *) "self",(char *) "pos", NULL
37871 };
37872
37873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) goto fail;
37874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
37875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37876 {
37877 arg2 = &temp2;
37878 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
37879 }
37880 {
37881 PyThreadState* __tstate = wxPyBeginAllowThreads();
37882 result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2);
37883
37884 wxPyEndAllowThreads(__tstate);
37885 if (PyErr_Occurred()) SWIG_fail;
37886 }
37887 {
37888 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37889 }
37890 return resultobj;
37891 fail:
37892 return NULL;
37893}
37894
37895
37896static PyObject *_wrap_GBSizerItem_SetSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
37897 PyObject *resultobj;
37898 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
37899 wxGBSpan *arg2 = 0 ;
37900 bool result;
37901 wxGBSpan temp2 ;
37902 PyObject * obj0 = 0 ;
37903 PyObject * obj1 = 0 ;
37904 char *kwnames[] = {
37905 (char *) "self",(char *) "span", NULL
37906 };
37907
37908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) goto fail;
37909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
37910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37911 {
37912 arg2 = &temp2;
37913 if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail;
37914 }
37915 {
37916 PyThreadState* __tstate = wxPyBeginAllowThreads();
37917 result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2);
37918
37919 wxPyEndAllowThreads(__tstate);
37920 if (PyErr_Occurred()) SWIG_fail;
37921 }
37922 {
37923 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37924 }
37925 return resultobj;
37926 fail:
37927 return NULL;
37928}
37929
37930
248ed943 37931static PyObject *_wrap_GBSizerItem_Intersects(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
37932 PyObject *resultobj;
37933 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
37934 wxGBSizerItem *arg2 = 0 ;
37935 bool result;
37936 PyObject * obj0 = 0 ;
37937 PyObject * obj1 = 0 ;
248ed943
RD
37938 char *kwnames[] = {
37939 (char *) "self",(char *) "other", NULL
37940 };
d55e5bfc 37941
248ed943 37942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_Intersects",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
37943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
37944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37945 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem,
37946 SWIG_POINTER_EXCEPTION | 0)) == -1)
37947 SWIG_fail;
37948 if (arg2 == NULL) {
37949 PyErr_SetString(PyExc_TypeError,"null reference");
37950 SWIG_fail;
37951 }
37952 {
37953 PyThreadState* __tstate = wxPyBeginAllowThreads();
37954 result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2);
37955
37956 wxPyEndAllowThreads(__tstate);
37957 if (PyErr_Occurred()) SWIG_fail;
37958 }
37959 {
37960 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37961 }
37962 return resultobj;
37963 fail:
37964 return NULL;
37965}
37966
37967
248ed943 37968static PyObject *_wrap_GBSizerItem_IntersectsPos(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
37969 PyObject *resultobj;
37970 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
37971 wxGBPosition *arg2 = 0 ;
37972 wxGBSpan *arg3 = 0 ;
37973 bool result;
37974 wxGBPosition temp2 ;
37975 wxGBSpan temp3 ;
37976 PyObject * obj0 = 0 ;
37977 PyObject * obj1 = 0 ;
37978 PyObject * obj2 = 0 ;
248ed943
RD
37979 char *kwnames[] = {
37980 (char *) "self",(char *) "pos",(char *) "span", NULL
37981 };
d55e5bfc 37982
248ed943 37983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_IntersectsPos",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
37984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
37985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
37986 {
37987 arg2 = &temp2;
37988 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
37989 }
37990 {
37991 arg3 = &temp3;
37992 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
37993 }
37994 {
37995 PyThreadState* __tstate = wxPyBeginAllowThreads();
37996 result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3);
37997
37998 wxPyEndAllowThreads(__tstate);
37999 if (PyErr_Occurred()) SWIG_fail;
38000 }
38001 {
38002 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38003 }
38004 return resultobj;
38005 fail:
38006 return NULL;
38007}
38008
38009
d55e5bfc
RD
38010static PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *self, PyObject *args, PyObject *kwargs) {
38011 PyObject *resultobj;
38012 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
248ed943 38013 wxGBPosition result;
d55e5bfc 38014 PyObject * obj0 = 0 ;
d55e5bfc 38015 char *kwnames[] = {
248ed943 38016 (char *) "self", NULL
d55e5bfc
RD
38017 };
38018
248ed943 38019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetEndPos",kwnames,&obj0)) goto fail;
d55e5bfc
RD
38020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
38021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d55e5bfc
RD
38022 {
38023 PyThreadState* __tstate = wxPyBeginAllowThreads();
248ed943 38024 result = wxGBSizerItem_GetEndPos(arg1);
d55e5bfc
RD
38025
38026 wxPyEndAllowThreads(__tstate);
38027 if (PyErr_Occurred()) SWIG_fail;
38028 }
248ed943
RD
38029 {
38030 wxGBPosition * resultptr;
38031 resultptr = new wxGBPosition((wxGBPosition &) result);
38032 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1);
38033 }
d55e5bfc
RD
38034 return resultobj;
38035 fail:
38036 return NULL;
38037}
38038
38039
38040static PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
38041 PyObject *resultobj;
38042 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
38043 wxGridBagSizer *result;
38044 PyObject * obj0 = 0 ;
38045 char *kwnames[] = {
38046 (char *) "self", NULL
38047 };
38048
38049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GBSizerItem_GetGBSizer",kwnames,&obj0)) goto fail;
38050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
38051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38052 {
38053 PyThreadState* __tstate = wxPyBeginAllowThreads();
38054 result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer();
38055
38056 wxPyEndAllowThreads(__tstate);
38057 if (PyErr_Occurred()) SWIG_fail;
38058 }
38059 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 0);
38060 return resultobj;
38061 fail:
38062 return NULL;
38063}
38064
38065
38066static PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
38067 PyObject *resultobj;
38068 wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
38069 wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ;
38070 PyObject * obj0 = 0 ;
38071 PyObject * obj1 = 0 ;
38072 char *kwnames[] = {
38073 (char *) "self",(char *) "sizer", NULL
38074 };
38075
38076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) goto fail;
38077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGBSizerItem,
38078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38079 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGridBagSizer,
38080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38081 {
38082 PyThreadState* __tstate = wxPyBeginAllowThreads();
38083 (arg1)->SetGBSizer(arg2);
38084
38085 wxPyEndAllowThreads(__tstate);
38086 if (PyErr_Occurred()) SWIG_fail;
38087 }
38088 Py_INCREF(Py_None); resultobj = Py_None;
38089 return resultobj;
38090 fail:
38091 return NULL;
38092}
38093
38094
38095static PyObject * GBSizerItem_swigregister(PyObject *self, PyObject *args) {
38096 PyObject *obj;
38097 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
38098 SWIG_TypeClientData(SWIGTYPE_p_wxGBSizerItem, obj);
38099 Py_INCREF(obj);
38100 return Py_BuildValue((char *)"");
38101}
38102static PyObject *_wrap_new_GridBagSizer(PyObject *self, PyObject *args, PyObject *kwargs) {
38103 PyObject *resultobj;
38104 int arg1 = (int) 0 ;
38105 int arg2 = (int) 0 ;
38106 wxGridBagSizer *result;
38107 PyObject * obj0 = 0 ;
38108 PyObject * obj1 = 0 ;
38109 char *kwnames[] = {
38110 (char *) "vgap",(char *) "hgap", NULL
38111 };
38112
38113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridBagSizer",kwnames,&obj0,&obj1)) goto fail;
38114 if (obj0) {
38115 arg1 = (int) SWIG_AsInt(obj0);
38116 if (PyErr_Occurred()) SWIG_fail;
38117 }
38118 if (obj1) {
38119 arg2 = (int) SWIG_AsInt(obj1);
38120 if (PyErr_Occurred()) SWIG_fail;
38121 }
38122 {
38123 PyThreadState* __tstate = wxPyBeginAllowThreads();
38124 result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2);
38125
38126 wxPyEndAllowThreads(__tstate);
38127 if (PyErr_Occurred()) SWIG_fail;
38128 }
38129 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGridBagSizer, 1);
38130 return resultobj;
38131 fail:
38132 return NULL;
38133}
38134
38135
38136static PyObject *_wrap_GridBagSizer_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
38137 PyObject *resultobj;
38138 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38139 PyObject *arg2 = (PyObject *) 0 ;
38140 wxGBPosition *arg3 = 0 ;
38141 wxGBSpan const &arg4_defvalue = wxDefaultSpan ;
38142 wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ;
38143 int arg5 = (int) 0 ;
38144 int arg6 = (int) 0 ;
38145 PyObject *arg7 = (PyObject *) NULL ;
38146 bool result;
38147 wxGBPosition temp3 ;
38148 wxGBSpan temp4 ;
38149 PyObject * obj0 = 0 ;
38150 PyObject * obj1 = 0 ;
38151 PyObject * obj2 = 0 ;
38152 PyObject * obj3 = 0 ;
38153 PyObject * obj4 = 0 ;
38154 PyObject * obj5 = 0 ;
38155 PyObject * obj6 = 0 ;
38156 char *kwnames[] = {
38157 (char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
38158 };
38159
38160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
38161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38163 arg2 = obj1;
38164 {
38165 arg3 = &temp3;
38166 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
38167 }
38168 if (obj3) {
38169 {
38170 arg4 = &temp4;
38171 if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail;
38172 }
38173 }
38174 if (obj4) {
38175 arg5 = (int) SWIG_AsInt(obj4);
38176 if (PyErr_Occurred()) SWIG_fail;
38177 }
38178 if (obj5) {
38179 arg6 = (int) SWIG_AsInt(obj5);
38180 if (PyErr_Occurred()) SWIG_fail;
38181 }
38182 if (obj6) {
38183 arg7 = obj6;
38184 }
38185 {
38186 PyThreadState* __tstate = wxPyBeginAllowThreads();
38187 result = (bool)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7);
38188
38189 wxPyEndAllowThreads(__tstate);
38190 if (PyErr_Occurred()) SWIG_fail;
38191 }
38192 {
38193 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38194 }
38195 return resultobj;
38196 fail:
38197 return NULL;
38198}
38199
38200
38201static PyObject *_wrap_GridBagSizer_AddItem(PyObject *self, PyObject *args, PyObject *kwargs) {
38202 PyObject *resultobj;
38203 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38204 wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ;
38205 bool result;
38206 PyObject * obj0 = 0 ;
38207 PyObject * obj1 = 0 ;
38208 char *kwnames[] = {
38209 (char *) "self",(char *) "item", NULL
38210 };
38211
38212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) goto fail;
38213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38215 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem,
38216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38217 {
38218 PyThreadState* __tstate = wxPyBeginAllowThreads();
38219 result = (bool)(arg1)->Add(arg2);
38220
38221 wxPyEndAllowThreads(__tstate);
38222 if (PyErr_Occurred()) SWIG_fail;
38223 }
38224 {
38225 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38226 }
38227 return resultobj;
38228 fail:
38229 return NULL;
38230}
38231
38232
38233static PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) {
38234 PyObject *resultobj;
38235 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38236 wxSize result;
38237 PyObject * obj0 = 0 ;
38238 char *kwnames[] = {
38239 (char *) "self", NULL
38240 };
38241
38242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GridBagSizer_GetEmptyCellSize",kwnames,&obj0)) goto fail;
38243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38245 {
38246 PyThreadState* __tstate = wxPyBeginAllowThreads();
38247 result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize();
38248
38249 wxPyEndAllowThreads(__tstate);
38250 if (PyErr_Occurred()) SWIG_fail;
38251 }
38252 {
38253 wxSize * resultptr;
38254 resultptr = new wxSize((wxSize &) result);
38255 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
38256 }
38257 return resultobj;
38258 fail:
38259 return NULL;
38260}
38261
38262
38263static PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *self, PyObject *args, PyObject *kwargs) {
38264 PyObject *resultobj;
38265 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38266 wxSize *arg2 = 0 ;
38267 wxSize temp2 ;
38268 PyObject * obj0 = 0 ;
38269 PyObject * obj1 = 0 ;
38270 char *kwnames[] = {
38271 (char *) "self",(char *) "sz", NULL
38272 };
38273
38274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) goto fail;
38275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38277 {
38278 arg2 = &temp2;
38279 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
38280 }
38281 {
38282 PyThreadState* __tstate = wxPyBeginAllowThreads();
38283 (arg1)->SetEmptyCellSize((wxSize const &)*arg2);
38284
38285 wxPyEndAllowThreads(__tstate);
38286 if (PyErr_Occurred()) SWIG_fail;
38287 }
38288 Py_INCREF(Py_None); resultobj = Py_None;
38289 return resultobj;
38290 fail:
38291 return NULL;
38292}
38293
38294
38295static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *self, PyObject *args) {
38296 PyObject *resultobj;
38297 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38298 wxWindow *arg2 = (wxWindow *) 0 ;
38299 wxGBPosition result;
38300 PyObject * obj0 = 0 ;
38301 PyObject * obj1 = 0 ;
38302
38303 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail;
38304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38306 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
38307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38308 {
38309 PyThreadState* __tstate = wxPyBeginAllowThreads();
38310 result = (arg1)->GetItemPosition(arg2);
38311
38312 wxPyEndAllowThreads(__tstate);
38313 if (PyErr_Occurred()) SWIG_fail;
38314 }
38315 {
38316 wxGBPosition * resultptr;
38317 resultptr = new wxGBPosition((wxGBPosition &) result);
38318 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1);
38319 }
38320 return resultobj;
38321 fail:
38322 return NULL;
38323}
38324
38325
38326static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *self, PyObject *args) {
38327 PyObject *resultobj;
38328 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38329 wxSizer *arg2 = (wxSizer *) 0 ;
38330 wxGBPosition result;
38331 PyObject * obj0 = 0 ;
38332 PyObject * obj1 = 0 ;
38333
38334 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail;
38335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38337 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
38338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38339 {
38340 PyThreadState* __tstate = wxPyBeginAllowThreads();
38341 result = (arg1)->GetItemPosition(arg2);
38342
38343 wxPyEndAllowThreads(__tstate);
38344 if (PyErr_Occurred()) SWIG_fail;
38345 }
38346 {
38347 wxGBPosition * resultptr;
38348 resultptr = new wxGBPosition((wxGBPosition &) result);
38349 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1);
38350 }
38351 return resultobj;
38352 fail:
38353 return NULL;
38354}
38355
38356
38357static PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *self, PyObject *args) {
38358 PyObject *resultobj;
38359 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38360 size_t arg2 ;
38361 wxGBPosition result;
38362 PyObject * obj0 = 0 ;
38363 PyObject * obj1 = 0 ;
38364
38365 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemPosition",&obj0,&obj1)) goto fail;
38366 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38368 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
38369 if (PyErr_Occurred()) SWIG_fail;
38370 {
38371 PyThreadState* __tstate = wxPyBeginAllowThreads();
38372 result = (arg1)->GetItemPosition(arg2);
38373
38374 wxPyEndAllowThreads(__tstate);
38375 if (PyErr_Occurred()) SWIG_fail;
38376 }
38377 {
38378 wxGBPosition * resultptr;
38379 resultptr = new wxGBPosition((wxGBPosition &) result);
38380 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBPosition, 1);
38381 }
38382 return resultobj;
38383 fail:
38384 return NULL;
38385}
38386
38387
38388static PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) {
38389 int argc;
38390 PyObject *argv[3];
38391 int ii;
38392
38393 argc = PyObject_Length(args);
38394 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
38395 argv[ii] = PyTuple_GetItem(args,ii);
38396 }
38397 if (argc == 2) {
38398 int _v;
38399 {
38400 void *ptr;
38401 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38402 _v = 0;
38403 PyErr_Clear();
38404 } else {
38405 _v = 1;
38406 }
38407 }
38408 if (_v) {
38409 {
38410 void *ptr;
38411 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
38412 _v = 0;
38413 PyErr_Clear();
38414 } else {
38415 _v = 1;
38416 }
38417 }
38418 if (_v) {
38419 return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self,args);
38420 }
38421 }
38422 }
38423 if (argc == 2) {
38424 int _v;
38425 {
38426 void *ptr;
38427 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38428 _v = 0;
38429 PyErr_Clear();
38430 } else {
38431 _v = 1;
38432 }
38433 }
38434 if (_v) {
38435 {
38436 void *ptr;
38437 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
38438 _v = 0;
38439 PyErr_Clear();
38440 } else {
38441 _v = 1;
38442 }
38443 }
38444 if (_v) {
38445 return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self,args);
38446 }
38447 }
38448 }
38449 if (argc == 2) {
38450 int _v;
38451 {
38452 void *ptr;
38453 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38454 _v = 0;
38455 PyErr_Clear();
38456 } else {
38457 _v = 1;
38458 }
38459 }
38460 if (_v) {
38461 _v = SWIG_CheckUnsignedLong(argv[1]);
38462 if (_v) {
38463 return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self,args);
38464 }
38465 }
38466 }
38467
38468 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'");
38469 return NULL;
38470}
38471
38472
38473static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *self, PyObject *args) {
38474 PyObject *resultobj;
38475 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38476 wxWindow *arg2 = (wxWindow *) 0 ;
38477 wxGBPosition *arg3 = 0 ;
38478 bool result;
38479 wxGBPosition temp3 ;
38480 PyObject * obj0 = 0 ;
38481 PyObject * obj1 = 0 ;
38482 PyObject * obj2 = 0 ;
38483
38484 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail;
38485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38487 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
38488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38489 {
38490 arg3 = &temp3;
38491 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
38492 }
38493 {
38494 PyThreadState* __tstate = wxPyBeginAllowThreads();
38495 result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3);
38496
38497 wxPyEndAllowThreads(__tstate);
38498 if (PyErr_Occurred()) SWIG_fail;
38499 }
38500 {
38501 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38502 }
38503 return resultobj;
38504 fail:
38505 return NULL;
38506}
38507
38508
38509static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *self, PyObject *args) {
38510 PyObject *resultobj;
38511 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38512 wxSizer *arg2 = (wxSizer *) 0 ;
38513 wxGBPosition *arg3 = 0 ;
38514 bool result;
38515 wxGBPosition temp3 ;
38516 PyObject * obj0 = 0 ;
38517 PyObject * obj1 = 0 ;
38518 PyObject * obj2 = 0 ;
38519
38520 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail;
38521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38523 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
38524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38525 {
38526 arg3 = &temp3;
38527 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
38528 }
38529 {
38530 PyThreadState* __tstate = wxPyBeginAllowThreads();
38531 result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3);
38532
38533 wxPyEndAllowThreads(__tstate);
38534 if (PyErr_Occurred()) SWIG_fail;
38535 }
38536 {
38537 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38538 }
38539 return resultobj;
38540 fail:
38541 return NULL;
38542}
38543
38544
38545static PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *self, PyObject *args) {
38546 PyObject *resultobj;
38547 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38548 size_t arg2 ;
38549 wxGBPosition *arg3 = 0 ;
38550 bool result;
38551 wxGBPosition temp3 ;
38552 PyObject * obj0 = 0 ;
38553 PyObject * obj1 = 0 ;
38554 PyObject * obj2 = 0 ;
38555
38556 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemPosition",&obj0,&obj1,&obj2)) goto fail;
38557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38559 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
38560 if (PyErr_Occurred()) SWIG_fail;
38561 {
38562 arg3 = &temp3;
38563 if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
38564 }
38565 {
38566 PyThreadState* __tstate = wxPyBeginAllowThreads();
38567 result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3);
38568
38569 wxPyEndAllowThreads(__tstate);
38570 if (PyErr_Occurred()) SWIG_fail;
38571 }
38572 {
38573 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38574 }
38575 return resultobj;
38576 fail:
38577 return NULL;
38578}
38579
38580
38581static PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) {
38582 int argc;
38583 PyObject *argv[4];
38584 int ii;
38585
38586 argc = PyObject_Length(args);
38587 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
38588 argv[ii] = PyTuple_GetItem(args,ii);
38589 }
38590 if (argc == 3) {
38591 int _v;
38592 {
38593 void *ptr;
38594 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38595 _v = 0;
38596 PyErr_Clear();
38597 } else {
38598 _v = 1;
38599 }
38600 }
38601 if (_v) {
38602 {
38603 void *ptr;
38604 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
38605 _v = 0;
38606 PyErr_Clear();
38607 } else {
38608 _v = 1;
38609 }
38610 }
38611 if (_v) {
38612 {
38613 _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2);
38614 }
38615 if (_v) {
38616 return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self,args);
38617 }
38618 }
38619 }
38620 }
38621 if (argc == 3) {
38622 int _v;
38623 {
38624 void *ptr;
38625 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38626 _v = 0;
38627 PyErr_Clear();
38628 } else {
38629 _v = 1;
38630 }
38631 }
38632 if (_v) {
38633 {
38634 void *ptr;
38635 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
38636 _v = 0;
38637 PyErr_Clear();
38638 } else {
38639 _v = 1;
38640 }
38641 }
38642 if (_v) {
38643 {
38644 _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2);
38645 }
38646 if (_v) {
38647 return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self,args);
38648 }
38649 }
38650 }
38651 }
38652 if (argc == 3) {
38653 int _v;
38654 {
38655 void *ptr;
38656 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38657 _v = 0;
38658 PyErr_Clear();
38659 } else {
38660 _v = 1;
38661 }
38662 }
38663 if (_v) {
38664 _v = SWIG_CheckUnsignedLong(argv[1]);
38665 if (_v) {
38666 {
38667 _v = wxPySimple_typecheck(argv[2], wxT("wxGBPosition"), 2);
38668 }
38669 if (_v) {
38670 return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self,args);
38671 }
38672 }
38673 }
38674 }
38675
38676 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'");
38677 return NULL;
38678}
38679
38680
38681static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *self, PyObject *args) {
38682 PyObject *resultobj;
38683 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38684 wxWindow *arg2 = (wxWindow *) 0 ;
38685 wxGBSpan result;
38686 PyObject * obj0 = 0 ;
38687 PyObject * obj1 = 0 ;
38688
38689 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail;
38690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38692 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
38693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38694 {
38695 PyThreadState* __tstate = wxPyBeginAllowThreads();
38696 result = (arg1)->GetItemSpan(arg2);
38697
38698 wxPyEndAllowThreads(__tstate);
38699 if (PyErr_Occurred()) SWIG_fail;
38700 }
38701 {
38702 wxGBSpan * resultptr;
38703 resultptr = new wxGBSpan((wxGBSpan &) result);
38704 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1);
38705 }
38706 return resultobj;
38707 fail:
38708 return NULL;
38709}
38710
38711
38712static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *self, PyObject *args) {
38713 PyObject *resultobj;
38714 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38715 wxSizer *arg2 = (wxSizer *) 0 ;
38716 wxGBSpan result;
38717 PyObject * obj0 = 0 ;
38718 PyObject * obj1 = 0 ;
38719
38720 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail;
38721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38723 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
38724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38725 {
38726 PyThreadState* __tstate = wxPyBeginAllowThreads();
38727 result = (arg1)->GetItemSpan(arg2);
38728
38729 wxPyEndAllowThreads(__tstate);
38730 if (PyErr_Occurred()) SWIG_fail;
38731 }
38732 {
38733 wxGBSpan * resultptr;
38734 resultptr = new wxGBSpan((wxGBSpan &) result);
38735 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1);
38736 }
38737 return resultobj;
38738 fail:
38739 return NULL;
38740}
38741
38742
38743static PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *self, PyObject *args) {
38744 PyObject *resultobj;
38745 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38746 size_t arg2 ;
38747 wxGBSpan result;
38748 PyObject * obj0 = 0 ;
38749 PyObject * obj1 = 0 ;
38750
38751 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_GetItemSpan",&obj0,&obj1)) goto fail;
38752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38754 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
38755 if (PyErr_Occurred()) SWIG_fail;
38756 {
38757 PyThreadState* __tstate = wxPyBeginAllowThreads();
38758 result = (arg1)->GetItemSpan(arg2);
38759
38760 wxPyEndAllowThreads(__tstate);
38761 if (PyErr_Occurred()) SWIG_fail;
38762 }
38763 {
38764 wxGBSpan * resultptr;
38765 resultptr = new wxGBSpan((wxGBSpan &) result);
38766 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxGBSpan, 1);
38767 }
38768 return resultobj;
38769 fail:
38770 return NULL;
38771}
38772
38773
38774static PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) {
38775 int argc;
38776 PyObject *argv[3];
38777 int ii;
38778
38779 argc = PyObject_Length(args);
38780 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
38781 argv[ii] = PyTuple_GetItem(args,ii);
38782 }
38783 if (argc == 2) {
38784 int _v;
38785 {
38786 void *ptr;
38787 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38788 _v = 0;
38789 PyErr_Clear();
38790 } else {
38791 _v = 1;
38792 }
38793 }
38794 if (_v) {
38795 {
38796 void *ptr;
38797 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
38798 _v = 0;
38799 PyErr_Clear();
38800 } else {
38801 _v = 1;
38802 }
38803 }
38804 if (_v) {
38805 return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self,args);
38806 }
38807 }
38808 }
38809 if (argc == 2) {
38810 int _v;
38811 {
38812 void *ptr;
38813 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38814 _v = 0;
38815 PyErr_Clear();
38816 } else {
38817 _v = 1;
38818 }
38819 }
38820 if (_v) {
38821 {
38822 void *ptr;
38823 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
38824 _v = 0;
38825 PyErr_Clear();
38826 } else {
38827 _v = 1;
38828 }
38829 }
38830 if (_v) {
38831 return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self,args);
38832 }
38833 }
38834 }
38835 if (argc == 2) {
38836 int _v;
38837 {
38838 void *ptr;
38839 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38840 _v = 0;
38841 PyErr_Clear();
38842 } else {
38843 _v = 1;
38844 }
38845 }
38846 if (_v) {
38847 _v = SWIG_CheckUnsignedLong(argv[1]);
38848 if (_v) {
38849 return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self,args);
38850 }
38851 }
38852 }
38853
38854 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'");
38855 return NULL;
38856}
38857
38858
38859static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *self, PyObject *args) {
38860 PyObject *resultobj;
38861 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38862 wxWindow *arg2 = (wxWindow *) 0 ;
38863 wxGBSpan *arg3 = 0 ;
38864 bool result;
38865 wxGBSpan temp3 ;
38866 PyObject * obj0 = 0 ;
38867 PyObject * obj1 = 0 ;
38868 PyObject * obj2 = 0 ;
38869
38870 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail;
38871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38873 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
38874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38875 {
38876 arg3 = &temp3;
38877 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
38878 }
38879 {
38880 PyThreadState* __tstate = wxPyBeginAllowThreads();
38881 result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3);
38882
38883 wxPyEndAllowThreads(__tstate);
38884 if (PyErr_Occurred()) SWIG_fail;
38885 }
38886 {
38887 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38888 }
38889 return resultobj;
38890 fail:
38891 return NULL;
38892}
38893
38894
38895static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *self, PyObject *args) {
38896 PyObject *resultobj;
38897 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38898 wxSizer *arg2 = (wxSizer *) 0 ;
38899 wxGBSpan *arg3 = 0 ;
38900 bool result;
38901 wxGBSpan temp3 ;
38902 PyObject * obj0 = 0 ;
38903 PyObject * obj1 = 0 ;
38904 PyObject * obj2 = 0 ;
38905
38906 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail;
38907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38909 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
38910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38911 {
38912 arg3 = &temp3;
38913 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
38914 }
38915 {
38916 PyThreadState* __tstate = wxPyBeginAllowThreads();
38917 result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3);
38918
38919 wxPyEndAllowThreads(__tstate);
38920 if (PyErr_Occurred()) SWIG_fail;
38921 }
38922 {
38923 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38924 }
38925 return resultobj;
38926 fail:
38927 return NULL;
38928}
38929
38930
38931static PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *self, PyObject *args) {
38932 PyObject *resultobj;
38933 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
38934 size_t arg2 ;
38935 wxGBSpan *arg3 = 0 ;
38936 bool result;
38937 wxGBSpan temp3 ;
38938 PyObject * obj0 = 0 ;
38939 PyObject * obj1 = 0 ;
38940 PyObject * obj2 = 0 ;
38941
38942 if(!PyArg_ParseTuple(args,(char *)"OOO:GridBagSizer_SetItemSpan",&obj0,&obj1,&obj2)) goto fail;
38943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
38944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
38945 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
38946 if (PyErr_Occurred()) SWIG_fail;
38947 {
38948 arg3 = &temp3;
38949 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
38950 }
38951 {
38952 PyThreadState* __tstate = wxPyBeginAllowThreads();
38953 result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3);
38954
38955 wxPyEndAllowThreads(__tstate);
38956 if (PyErr_Occurred()) SWIG_fail;
38957 }
38958 {
38959 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38960 }
38961 return resultobj;
38962 fail:
38963 return NULL;
38964}
38965
38966
38967static PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) {
38968 int argc;
38969 PyObject *argv[4];
38970 int ii;
38971
38972 argc = PyObject_Length(args);
38973 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
38974 argv[ii] = PyTuple_GetItem(args,ii);
38975 }
38976 if (argc == 3) {
38977 int _v;
38978 {
38979 void *ptr;
38980 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
38981 _v = 0;
38982 PyErr_Clear();
38983 } else {
38984 _v = 1;
38985 }
38986 }
38987 if (_v) {
38988 {
38989 void *ptr;
38990 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
38991 _v = 0;
38992 PyErr_Clear();
38993 } else {
38994 _v = 1;
38995 }
38996 }
38997 if (_v) {
38998 {
38999 _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2);
39000 }
39001 if (_v) {
39002 return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self,args);
39003 }
39004 }
39005 }
39006 }
39007 if (argc == 3) {
39008 int _v;
39009 {
39010 void *ptr;
39011 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
39012 _v = 0;
39013 PyErr_Clear();
39014 } else {
39015 _v = 1;
39016 }
39017 }
39018 if (_v) {
39019 {
39020 void *ptr;
39021 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
39022 _v = 0;
39023 PyErr_Clear();
39024 } else {
39025 _v = 1;
39026 }
39027 }
39028 if (_v) {
39029 {
39030 _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2);
39031 }
39032 if (_v) {
39033 return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self,args);
39034 }
39035 }
39036 }
39037 }
39038 if (argc == 3) {
39039 int _v;
39040 {
39041 void *ptr;
39042 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
39043 _v = 0;
39044 PyErr_Clear();
39045 } else {
39046 _v = 1;
39047 }
39048 }
39049 if (_v) {
39050 _v = SWIG_CheckUnsignedLong(argv[1]);
39051 if (_v) {
39052 {
39053 _v = wxPySimple_typecheck(argv[2], wxT("wxGBSpan"), 2);
39054 }
39055 if (_v) {
39056 return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self,args);
39057 }
39058 }
39059 }
39060 }
39061
39062 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'");
39063 return NULL;
39064}
39065
39066
39067static PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *self, PyObject *args) {
39068 PyObject *resultobj;
39069 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39070 wxWindow *arg2 = (wxWindow *) 0 ;
39071 wxGBSizerItem *result;
39072 PyObject * obj0 = 0 ;
39073 PyObject * obj1 = 0 ;
39074
39075 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail;
39076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39078 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39080 {
39081 PyThreadState* __tstate = wxPyBeginAllowThreads();
39082 result = (wxGBSizerItem *)(arg1)->FindItem(arg2);
39083
39084 wxPyEndAllowThreads(__tstate);
39085 if (PyErr_Occurred()) SWIG_fail;
39086 }
39087 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0);
39088 return resultobj;
39089 fail:
39090 return NULL;
39091}
39092
39093
39094static PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *self, PyObject *args) {
39095 PyObject *resultobj;
39096 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39097 wxSizer *arg2 = (wxSizer *) 0 ;
39098 wxGBSizerItem *result;
39099 PyObject * obj0 = 0 ;
39100 PyObject * obj1 = 0 ;
39101
39102 if(!PyArg_ParseTuple(args,(char *)"OO:GridBagSizer_FindItem",&obj0,&obj1)) goto fail;
39103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39105 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxSizer,
39106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39107 {
39108 PyThreadState* __tstate = wxPyBeginAllowThreads();
39109 result = (wxGBSizerItem *)(arg1)->FindItem(arg2);
39110
39111 wxPyEndAllowThreads(__tstate);
39112 if (PyErr_Occurred()) SWIG_fail;
39113 }
39114 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0);
39115 return resultobj;
39116 fail:
39117 return NULL;
39118}
39119
39120
39121static PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) {
39122 int argc;
39123 PyObject *argv[3];
39124 int ii;
39125
39126 argc = PyObject_Length(args);
39127 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
39128 argv[ii] = PyTuple_GetItem(args,ii);
39129 }
39130 if (argc == 2) {
39131 int _v;
39132 {
39133 void *ptr;
39134 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
39135 _v = 0;
39136 PyErr_Clear();
39137 } else {
39138 _v = 1;
39139 }
39140 }
39141 if (_v) {
39142 {
39143 void *ptr;
39144 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
39145 _v = 0;
39146 PyErr_Clear();
39147 } else {
39148 _v = 1;
39149 }
39150 }
39151 if (_v) {
39152 return _wrap_GridBagSizer_FindItem__SWIG_0(self,args);
39153 }
39154 }
39155 }
39156 if (argc == 2) {
39157 int _v;
39158 {
39159 void *ptr;
39160 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxGridBagSizer, 0) == -1) {
39161 _v = 0;
39162 PyErr_Clear();
39163 } else {
39164 _v = 1;
39165 }
39166 }
39167 if (_v) {
39168 {
39169 void *ptr;
39170 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxSizer, 0) == -1) {
39171 _v = 0;
39172 PyErr_Clear();
39173 } else {
39174 _v = 1;
39175 }
39176 }
39177 if (_v) {
39178 return _wrap_GridBagSizer_FindItem__SWIG_1(self,args);
39179 }
39180 }
39181 }
39182
39183 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GridBagSizer_FindItem'");
39184 return NULL;
39185}
39186
39187
39188static PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
39189 PyObject *resultobj;
39190 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39191 wxGBPosition *arg2 = 0 ;
39192 wxGBSizerItem *result;
39193 wxGBPosition temp2 ;
39194 PyObject * obj0 = 0 ;
39195 PyObject * obj1 = 0 ;
39196 char *kwnames[] = {
39197 (char *) "self",(char *) "pos", NULL
39198 };
39199
39200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) goto fail;
39201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39203 {
39204 arg2 = &temp2;
39205 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
39206 }
39207 {
39208 PyThreadState* __tstate = wxPyBeginAllowThreads();
39209 result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2);
39210
39211 wxPyEndAllowThreads(__tstate);
39212 if (PyErr_Occurred()) SWIG_fail;
39213 }
39214 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0);
39215 return resultobj;
39216 fail:
39217 return NULL;
39218}
39219
39220
39221static PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
39222 PyObject *resultobj;
39223 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39224 wxPoint *arg2 = 0 ;
39225 wxGBSizerItem *result;
39226 wxPoint temp2 ;
39227 PyObject * obj0 = 0 ;
39228 PyObject * obj1 = 0 ;
39229 char *kwnames[] = {
39230 (char *) "self",(char *) "pt", NULL
39231 };
39232
39233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) goto fail;
39234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39236 {
39237 arg2 = &temp2;
39238 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
39239 }
39240 {
39241 PyThreadState* __tstate = wxPyBeginAllowThreads();
39242 result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2);
39243
39244 wxPyEndAllowThreads(__tstate);
39245 if (PyErr_Occurred()) SWIG_fail;
39246 }
39247 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGBSizerItem, 0);
39248 return resultobj;
39249 fail:
39250 return NULL;
39251}
39252
39253
248ed943 39254static PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
39255 PyObject *resultobj;
39256 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39257 wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ;
39258 wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ;
39259 bool result;
39260 PyObject * obj0 = 0 ;
39261 PyObject * obj1 = 0 ;
39262 PyObject * obj2 = 0 ;
248ed943
RD
39263 char *kwnames[] = {
39264 (char *) "self",(char *) "item",(char *) "excludeItem", NULL
39265 };
d55e5bfc 39266
248ed943 39267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GridBagSizer_CheckForIntersection",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
39268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39270 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGBSizerItem,
39271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39272 if (obj2) {
39273 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxGBSizerItem,
39274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39275 }
39276 {
39277 PyThreadState* __tstate = wxPyBeginAllowThreads();
39278 result = (bool)(arg1)->CheckForIntersection(arg2,arg3);
39279
39280 wxPyEndAllowThreads(__tstate);
39281 if (PyErr_Occurred()) SWIG_fail;
39282 }
39283 {
39284 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39285 }
39286 return resultobj;
39287 fail:
39288 return NULL;
39289}
39290
39291
248ed943 39292static PyObject *_wrap_GridBagSizer_CheckForIntersectionPos(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
39293 PyObject *resultobj;
39294 wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
39295 wxGBPosition *arg2 = 0 ;
39296 wxGBSpan *arg3 = 0 ;
39297 wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ;
39298 bool result;
39299 wxGBPosition temp2 ;
39300 wxGBSpan temp3 ;
39301 PyObject * obj0 = 0 ;
39302 PyObject * obj1 = 0 ;
39303 PyObject * obj2 = 0 ;
39304 PyObject * obj3 = 0 ;
248ed943
RD
39305 char *kwnames[] = {
39306 (char *) "self",(char *) "pos",(char *) "span",(char *) "excludeItem", NULL
39307 };
d55e5bfc 39308
248ed943 39309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:GridBagSizer_CheckForIntersectionPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
39310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGridBagSizer,
39311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39312 {
39313 arg2 = &temp2;
39314 if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
39315 }
39316 {
39317 arg3 = &temp3;
39318 if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
39319 }
39320 if (obj3) {
39321 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxGBSizerItem,
39322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39323 }
39324 {
39325 PyThreadState* __tstate = wxPyBeginAllowThreads();
39326 result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4);
39327
39328 wxPyEndAllowThreads(__tstate);
39329 if (PyErr_Occurred()) SWIG_fail;
39330 }
39331 {
39332 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39333 }
39334 return resultobj;
39335 fail:
39336 return NULL;
39337}
39338
39339
d55e5bfc
RD
39340static PyObject * GridBagSizer_swigregister(PyObject *self, PyObject *args) {
39341 PyObject *obj;
39342 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
39343 SWIG_TypeClientData(SWIGTYPE_p_wxGridBagSizer, obj);
39344 Py_INCREF(obj);
39345 return Py_BuildValue((char *)"");
39346}
39347static PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
39348 PyObject *resultobj;
39349 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39350 int arg2 ;
39351 wxWindow *arg3 = (wxWindow *) 0 ;
39352 int arg4 ;
39353 int arg5 = (int) 0 ;
39354 int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ;
39355 PyObject * obj0 = 0 ;
39356 PyObject * obj1 = 0 ;
39357 PyObject * obj2 = 0 ;
39358 PyObject * obj3 = 0 ;
39359 PyObject * obj4 = 0 ;
39360 PyObject * obj5 = 0 ;
39361 char *kwnames[] = {
39362 (char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL
39363 };
39364
39365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:IndividualLayoutConstraint_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
39366 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39368 arg2 = (wxRelationship) SWIG_AsInt(obj1);
39369 if (PyErr_Occurred()) SWIG_fail;
39370 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
39371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39372 arg4 = (wxEdge) SWIG_AsInt(obj3);
39373 if (PyErr_Occurred()) SWIG_fail;
39374 if (obj4) {
39375 arg5 = (int) SWIG_AsInt(obj4);
39376 if (PyErr_Occurred()) SWIG_fail;
39377 }
39378 if (obj5) {
39379 arg6 = (int) SWIG_AsInt(obj5);
39380 if (PyErr_Occurred()) SWIG_fail;
39381 }
39382 {
39383 PyThreadState* __tstate = wxPyBeginAllowThreads();
39384 (arg1)->Set((wxRelationship )arg2,arg3,(wxEdge )arg4,arg5,arg6);
39385
39386 wxPyEndAllowThreads(__tstate);
39387 if (PyErr_Occurred()) SWIG_fail;
39388 }
39389 Py_INCREF(Py_None); resultobj = Py_None;
39390 return resultobj;
39391 fail:
39392 return NULL;
39393}
39394
39395
39396static PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *self, PyObject *args, PyObject *kwargs) {
39397 PyObject *resultobj;
39398 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39399 wxWindow *arg2 = (wxWindow *) 0 ;
39400 int arg3 = (int) 0 ;
39401 PyObject * obj0 = 0 ;
39402 PyObject * obj1 = 0 ;
39403 PyObject * obj2 = 0 ;
39404 char *kwnames[] = {
39405 (char *) "self",(char *) "sibling",(char *) "marg", NULL
39406 };
39407
39408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&obj2)) goto fail;
39409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39411 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39413 if (obj2) {
39414 arg3 = (int) SWIG_AsInt(obj2);
39415 if (PyErr_Occurred()) SWIG_fail;
39416 }
39417 {
39418 PyThreadState* __tstate = wxPyBeginAllowThreads();
39419 (arg1)->LeftOf(arg2,arg3);
39420
39421 wxPyEndAllowThreads(__tstate);
39422 if (PyErr_Occurred()) SWIG_fail;
39423 }
39424 Py_INCREF(Py_None); resultobj = Py_None;
39425 return resultobj;
39426 fail:
39427 return NULL;
39428}
39429
39430
39431static PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *self, PyObject *args, PyObject *kwargs) {
39432 PyObject *resultobj;
39433 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39434 wxWindow *arg2 = (wxWindow *) 0 ;
39435 int arg3 = (int) 0 ;
39436 PyObject * obj0 = 0 ;
39437 PyObject * obj1 = 0 ;
39438 PyObject * obj2 = 0 ;
39439 char *kwnames[] = {
39440 (char *) "self",(char *) "sibling",(char *) "marg", NULL
39441 };
39442
39443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&obj2)) goto fail;
39444 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39446 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39448 if (obj2) {
39449 arg3 = (int) SWIG_AsInt(obj2);
39450 if (PyErr_Occurred()) SWIG_fail;
39451 }
39452 {
39453 PyThreadState* __tstate = wxPyBeginAllowThreads();
39454 (arg1)->RightOf(arg2,arg3);
39455
39456 wxPyEndAllowThreads(__tstate);
39457 if (PyErr_Occurred()) SWIG_fail;
39458 }
39459 Py_INCREF(Py_None); resultobj = Py_None;
39460 return resultobj;
39461 fail:
39462 return NULL;
39463}
39464
39465
39466static PyObject *_wrap_IndividualLayoutConstraint_Above(PyObject *self, PyObject *args, PyObject *kwargs) {
39467 PyObject *resultobj;
39468 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39469 wxWindow *arg2 = (wxWindow *) 0 ;
39470 int arg3 = (int) 0 ;
39471 PyObject * obj0 = 0 ;
39472 PyObject * obj1 = 0 ;
39473 PyObject * obj2 = 0 ;
39474 char *kwnames[] = {
39475 (char *) "self",(char *) "sibling",(char *) "marg", NULL
39476 };
39477
39478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&obj2)) goto fail;
39479 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39481 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39483 if (obj2) {
39484 arg3 = (int) SWIG_AsInt(obj2);
39485 if (PyErr_Occurred()) SWIG_fail;
39486 }
39487 {
39488 PyThreadState* __tstate = wxPyBeginAllowThreads();
39489 (arg1)->Above(arg2,arg3);
39490
39491 wxPyEndAllowThreads(__tstate);
39492 if (PyErr_Occurred()) SWIG_fail;
39493 }
39494 Py_INCREF(Py_None); resultobj = Py_None;
39495 return resultobj;
39496 fail:
39497 return NULL;
39498}
39499
39500
39501static PyObject *_wrap_IndividualLayoutConstraint_Below(PyObject *self, PyObject *args, PyObject *kwargs) {
39502 PyObject *resultobj;
39503 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39504 wxWindow *arg2 = (wxWindow *) 0 ;
39505 int arg3 = (int) 0 ;
39506 PyObject * obj0 = 0 ;
39507 PyObject * obj1 = 0 ;
39508 PyObject * obj2 = 0 ;
39509 char *kwnames[] = {
39510 (char *) "self",(char *) "sibling",(char *) "marg", NULL
39511 };
39512
39513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&obj2)) goto fail;
39514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39516 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39518 if (obj2) {
39519 arg3 = (int) SWIG_AsInt(obj2);
39520 if (PyErr_Occurred()) SWIG_fail;
39521 }
39522 {
39523 PyThreadState* __tstate = wxPyBeginAllowThreads();
39524 (arg1)->Below(arg2,arg3);
39525
39526 wxPyEndAllowThreads(__tstate);
39527 if (PyErr_Occurred()) SWIG_fail;
39528 }
39529 Py_INCREF(Py_None); resultobj = Py_None;
39530 return resultobj;
39531 fail:
39532 return NULL;
39533}
39534
39535
39536static PyObject *_wrap_IndividualLayoutConstraint_SameAs(PyObject *self, PyObject *args, PyObject *kwargs) {
39537 PyObject *resultobj;
39538 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39539 wxWindow *arg2 = (wxWindow *) 0 ;
39540 int arg3 ;
39541 int arg4 = (int) 0 ;
39542 PyObject * obj0 = 0 ;
39543 PyObject * obj1 = 0 ;
39544 PyObject * obj2 = 0 ;
39545 PyObject * obj3 = 0 ;
39546 char *kwnames[] = {
39547 (char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL
39548 };
39549
39550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
39551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39553 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39555 arg3 = (wxEdge) SWIG_AsInt(obj2);
39556 if (PyErr_Occurred()) SWIG_fail;
39557 if (obj3) {
39558 arg4 = (int) SWIG_AsInt(obj3);
39559 if (PyErr_Occurred()) SWIG_fail;
39560 }
39561 {
39562 PyThreadState* __tstate = wxPyBeginAllowThreads();
39563 (arg1)->SameAs(arg2,(wxEdge )arg3,arg4);
39564
39565 wxPyEndAllowThreads(__tstate);
39566 if (PyErr_Occurred()) SWIG_fail;
39567 }
39568 Py_INCREF(Py_None); resultobj = Py_None;
39569 return resultobj;
39570 fail:
39571 return NULL;
39572}
39573
39574
39575static PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *self, PyObject *args, PyObject *kwargs) {
39576 PyObject *resultobj;
39577 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39578 wxWindow *arg2 = (wxWindow *) 0 ;
39579 int arg3 ;
39580 int arg4 ;
39581 PyObject * obj0 = 0 ;
39582 PyObject * obj1 = 0 ;
39583 PyObject * obj2 = 0 ;
39584 PyObject * obj3 = 0 ;
39585 char *kwnames[] = {
39586 (char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL
39587 };
39588
39589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
39590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39592 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
39593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39594 arg3 = (wxEdge) SWIG_AsInt(obj2);
39595 if (PyErr_Occurred()) SWIG_fail;
39596 arg4 = (int) SWIG_AsInt(obj3);
39597 if (PyErr_Occurred()) SWIG_fail;
39598 {
39599 PyThreadState* __tstate = wxPyBeginAllowThreads();
39600 (arg1)->PercentOf(arg2,(wxEdge )arg3,arg4);
39601
39602 wxPyEndAllowThreads(__tstate);
39603 if (PyErr_Occurred()) SWIG_fail;
39604 }
39605 Py_INCREF(Py_None); resultobj = Py_None;
39606 return resultobj;
39607 fail:
39608 return NULL;
39609}
39610
39611
39612static PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *self, PyObject *args, PyObject *kwargs) {
39613 PyObject *resultobj;
39614 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39615 int arg2 ;
39616 PyObject * obj0 = 0 ;
39617 PyObject * obj1 = 0 ;
39618 char *kwnames[] = {
39619 (char *) "self",(char *) "val", NULL
39620 };
39621
39622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&obj1)) goto fail;
39623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39625 arg2 = (int) SWIG_AsInt(obj1);
39626 if (PyErr_Occurred()) SWIG_fail;
39627 {
39628 PyThreadState* __tstate = wxPyBeginAllowThreads();
39629 (arg1)->Absolute(arg2);
39630
39631 wxPyEndAllowThreads(__tstate);
39632 if (PyErr_Occurred()) SWIG_fail;
39633 }
39634 Py_INCREF(Py_None); resultobj = Py_None;
39635 return resultobj;
39636 fail:
39637 return NULL;
39638}
39639
39640
39641static PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *self, PyObject *args, PyObject *kwargs) {
39642 PyObject *resultobj;
39643 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39644 PyObject * obj0 = 0 ;
39645 char *kwnames[] = {
39646 (char *) "self", NULL
39647 };
39648
39649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_Unconstrained",kwnames,&obj0)) goto fail;
39650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39652 {
39653 PyThreadState* __tstate = wxPyBeginAllowThreads();
39654 (arg1)->Unconstrained();
39655
39656 wxPyEndAllowThreads(__tstate);
39657 if (PyErr_Occurred()) SWIG_fail;
39658 }
39659 Py_INCREF(Py_None); resultobj = Py_None;
39660 return resultobj;
39661 fail:
39662 return NULL;
39663}
39664
39665
39666static PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *self, PyObject *args, PyObject *kwargs) {
39667 PyObject *resultobj;
39668 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39669 PyObject * obj0 = 0 ;
39670 char *kwnames[] = {
39671 (char *) "self", NULL
39672 };
39673
39674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_AsIs",kwnames,&obj0)) goto fail;
39675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39677 {
39678 PyThreadState* __tstate = wxPyBeginAllowThreads();
39679 (arg1)->AsIs();
39680
39681 wxPyEndAllowThreads(__tstate);
39682 if (PyErr_Occurred()) SWIG_fail;
39683 }
39684 Py_INCREF(Py_None); resultobj = Py_None;
39685 return resultobj;
39686 fail:
39687 return NULL;
39688}
39689
39690
39691static PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
39692 PyObject *resultobj;
39693 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39694 wxWindow *result;
39695 PyObject * obj0 = 0 ;
39696 char *kwnames[] = {
39697 (char *) "self", NULL
39698 };
39699
39700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherWindow",kwnames,&obj0)) goto fail;
39701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39703 {
39704 PyThreadState* __tstate = wxPyBeginAllowThreads();
39705 result = (wxWindow *)(arg1)->GetOtherWindow();
39706
39707 wxPyEndAllowThreads(__tstate);
39708 if (PyErr_Occurred()) SWIG_fail;
39709 }
39710 {
412d302d 39711 resultobj = wxPyMake_wxObject(result, 0);
d55e5bfc
RD
39712 }
39713 return resultobj;
39714 fail:
39715 return NULL;
39716}
39717
39718
39719static PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
39720 PyObject *resultobj;
39721 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39722 int result;
39723 PyObject * obj0 = 0 ;
39724 char *kwnames[] = {
39725 (char *) "self", NULL
39726 };
39727
39728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMyEdge",kwnames,&obj0)) goto fail;
39729 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39730 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39731 {
39732 PyThreadState* __tstate = wxPyBeginAllowThreads();
39733 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge();
39734
39735 wxPyEndAllowThreads(__tstate);
39736 if (PyErr_Occurred()) SWIG_fail;
39737 }
39738 resultobj = SWIG_FromInt((int)result);
39739 return resultobj;
39740 fail:
39741 return NULL;
39742}
39743
39744
39745static PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
39746 PyObject *resultobj;
39747 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39748 int arg2 ;
39749 PyObject * obj0 = 0 ;
39750 PyObject * obj1 = 0 ;
39751 char *kwnames[] = {
39752 (char *) "self",(char *) "which", NULL
39753 };
39754
39755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&obj1)) goto fail;
39756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39758 arg2 = (wxEdge) SWIG_AsInt(obj1);
39759 if (PyErr_Occurred()) SWIG_fail;
39760 {
39761 PyThreadState* __tstate = wxPyBeginAllowThreads();
39762 (arg1)->SetEdge((wxEdge )arg2);
39763
39764 wxPyEndAllowThreads(__tstate);
39765 if (PyErr_Occurred()) SWIG_fail;
39766 }
39767 Py_INCREF(Py_None); resultobj = Py_None;
39768 return resultobj;
39769 fail:
39770 return NULL;
39771}
39772
39773
39774static PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
39775 PyObject *resultobj;
39776 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39777 int arg2 ;
39778 PyObject * obj0 = 0 ;
39779 PyObject * obj1 = 0 ;
39780 char *kwnames[] = {
39781 (char *) "self",(char *) "v", NULL
39782 };
39783
39784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&obj1)) goto fail;
39785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39787 arg2 = (int) SWIG_AsInt(obj1);
39788 if (PyErr_Occurred()) SWIG_fail;
39789 {
39790 PyThreadState* __tstate = wxPyBeginAllowThreads();
39791 (arg1)->SetValue(arg2);
39792
39793 wxPyEndAllowThreads(__tstate);
39794 if (PyErr_Occurred()) SWIG_fail;
39795 }
39796 Py_INCREF(Py_None); resultobj = Py_None;
39797 return resultobj;
39798 fail:
39799 return NULL;
39800}
39801
39802
39803static PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *self, PyObject *args, PyObject *kwargs) {
39804 PyObject *resultobj;
39805 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39806 int result;
39807 PyObject * obj0 = 0 ;
39808 char *kwnames[] = {
39809 (char *) "self", NULL
39810 };
39811
39812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetMargin",kwnames,&obj0)) goto fail;
39813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39815 {
39816 PyThreadState* __tstate = wxPyBeginAllowThreads();
39817 result = (int)(arg1)->GetMargin();
39818
39819 wxPyEndAllowThreads(__tstate);
39820 if (PyErr_Occurred()) SWIG_fail;
39821 }
39822 resultobj = SWIG_FromInt((int)result);
39823 return resultobj;
39824 fail:
39825 return NULL;
39826}
39827
39828
39829static PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *self, PyObject *args, PyObject *kwargs) {
39830 PyObject *resultobj;
39831 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39832 int arg2 ;
39833 PyObject * obj0 = 0 ;
39834 PyObject * obj1 = 0 ;
39835 char *kwnames[] = {
39836 (char *) "self",(char *) "m", NULL
39837 };
39838
39839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&obj1)) goto fail;
39840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39842 arg2 = (int) SWIG_AsInt(obj1);
39843 if (PyErr_Occurred()) SWIG_fail;
39844 {
39845 PyThreadState* __tstate = wxPyBeginAllowThreads();
39846 (arg1)->SetMargin(arg2);
39847
39848 wxPyEndAllowThreads(__tstate);
39849 if (PyErr_Occurred()) SWIG_fail;
39850 }
39851 Py_INCREF(Py_None); resultobj = Py_None;
39852 return resultobj;
39853 fail:
39854 return NULL;
39855}
39856
39857
39858static PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) {
39859 PyObject *resultobj;
39860 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39861 int result;
39862 PyObject * obj0 = 0 ;
39863 char *kwnames[] = {
39864 (char *) "self", NULL
39865 };
39866
39867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetValue",kwnames,&obj0)) goto fail;
39868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39870 {
39871 PyThreadState* __tstate = wxPyBeginAllowThreads();
39872 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue();
39873
39874 wxPyEndAllowThreads(__tstate);
39875 if (PyErr_Occurred()) SWIG_fail;
39876 }
39877 resultobj = SWIG_FromInt((int)result);
39878 return resultobj;
39879 fail:
39880 return NULL;
39881}
39882
39883
39884static PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *self, PyObject *args, PyObject *kwargs) {
39885 PyObject *resultobj;
39886 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39887 int result;
39888 PyObject * obj0 = 0 ;
39889 char *kwnames[] = {
39890 (char *) "self", NULL
39891 };
39892
39893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetPercent",kwnames,&obj0)) goto fail;
39894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39896 {
39897 PyThreadState* __tstate = wxPyBeginAllowThreads();
39898 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent();
39899
39900 wxPyEndAllowThreads(__tstate);
39901 if (PyErr_Occurred()) SWIG_fail;
39902 }
39903 resultobj = SWIG_FromInt((int)result);
39904 return resultobj;
39905 fail:
39906 return NULL;
39907}
39908
39909
39910static PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
39911 PyObject *resultobj;
39912 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39913 int result;
39914 PyObject * obj0 = 0 ;
39915 char *kwnames[] = {
39916 (char *) "self", NULL
39917 };
39918
39919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetOtherEdge",kwnames,&obj0)) goto fail;
39920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39922 {
39923 PyThreadState* __tstate = wxPyBeginAllowThreads();
39924 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge();
39925
39926 wxPyEndAllowThreads(__tstate);
39927 if (PyErr_Occurred()) SWIG_fail;
39928 }
39929 resultobj = SWIG_FromInt((int)result);
39930 return resultobj;
39931 fail:
39932 return NULL;
39933}
39934
39935
39936static PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *self, PyObject *args, PyObject *kwargs) {
39937 PyObject *resultobj;
39938 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39939 bool result;
39940 PyObject * obj0 = 0 ;
39941 char *kwnames[] = {
39942 (char *) "self", NULL
39943 };
39944
39945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetDone",kwnames,&obj0)) goto fail;
39946 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39948 {
39949 PyThreadState* __tstate = wxPyBeginAllowThreads();
39950 result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone();
39951
39952 wxPyEndAllowThreads(__tstate);
39953 if (PyErr_Occurred()) SWIG_fail;
39954 }
39955 {
39956 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39957 }
39958 return resultobj;
39959 fail:
39960 return NULL;
39961}
39962
39963
39964static PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *self, PyObject *args, PyObject *kwargs) {
39965 PyObject *resultobj;
39966 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39967 bool arg2 ;
39968 PyObject * obj0 = 0 ;
39969 PyObject * obj1 = 0 ;
39970 char *kwnames[] = {
39971 (char *) "self",(char *) "d", NULL
39972 };
39973
39974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) goto fail;
39975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
39976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
39977 arg2 = (bool) SWIG_AsBool(obj1);
39978 if (PyErr_Occurred()) SWIG_fail;
39979 {
39980 PyThreadState* __tstate = wxPyBeginAllowThreads();
39981 (arg1)->SetDone(arg2);
39982
39983 wxPyEndAllowThreads(__tstate);
39984 if (PyErr_Occurred()) SWIG_fail;
39985 }
39986 Py_INCREF(Py_None); resultobj = Py_None;
39987 return resultobj;
39988 fail:
39989 return NULL;
39990}
39991
39992
39993static PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) {
39994 PyObject *resultobj;
39995 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
39996 int result;
39997 PyObject * obj0 = 0 ;
39998 char *kwnames[] = {
39999 (char *) "self", NULL
40000 };
40001
40002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IndividualLayoutConstraint_GetRelationship",kwnames,&obj0)) goto fail;
40003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40005 {
40006 PyThreadState* __tstate = wxPyBeginAllowThreads();
40007 result = (int)(arg1)->GetRelationship();
40008
40009 wxPyEndAllowThreads(__tstate);
40010 if (PyErr_Occurred()) SWIG_fail;
40011 }
40012 resultobj = SWIG_FromInt((int)result);
40013 return resultobj;
40014 fail:
40015 return NULL;
40016}
40017
40018
40019static PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *self, PyObject *args, PyObject *kwargs) {
40020 PyObject *resultobj;
40021 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40022 int arg2 ;
40023 PyObject * obj0 = 0 ;
40024 PyObject * obj1 = 0 ;
40025 char *kwnames[] = {
40026 (char *) "self",(char *) "r", NULL
40027 };
40028
40029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&obj1)) goto fail;
40030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40032 arg2 = (wxRelationship) SWIG_AsInt(obj1);
40033 if (PyErr_Occurred()) SWIG_fail;
40034 {
40035 PyThreadState* __tstate = wxPyBeginAllowThreads();
40036 (arg1)->SetRelationship((wxRelationship )arg2);
40037
40038 wxPyEndAllowThreads(__tstate);
40039 if (PyErr_Occurred()) SWIG_fail;
40040 }
40041 Py_INCREF(Py_None); resultobj = Py_None;
40042 return resultobj;
40043 fail:
40044 return NULL;
40045}
40046
40047
40048static PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *self, PyObject *args, PyObject *kwargs) {
40049 PyObject *resultobj;
40050 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40051 wxWindow *arg2 = (wxWindow *) 0 ;
40052 bool result;
40053 PyObject * obj0 = 0 ;
40054 PyObject * obj1 = 0 ;
40055 char *kwnames[] = {
40056 (char *) "self",(char *) "otherW", NULL
40057 };
40058
40059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) goto fail;
40060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40062 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
40063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40064 {
40065 PyThreadState* __tstate = wxPyBeginAllowThreads();
40066 result = (bool)(arg1)->ResetIfWin(arg2);
40067
40068 wxPyEndAllowThreads(__tstate);
40069 if (PyErr_Occurred()) SWIG_fail;
40070 }
40071 {
40072 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40073 }
40074 return resultobj;
40075 fail:
40076 return NULL;
40077}
40078
40079
40080static PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *self, PyObject *args, PyObject *kwargs) {
40081 PyObject *resultobj;
40082 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40083 wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ;
40084 wxWindow *arg3 = (wxWindow *) 0 ;
40085 bool result;
40086 PyObject * obj0 = 0 ;
40087 PyObject * obj1 = 0 ;
40088 PyObject * obj2 = 0 ;
40089 char *kwnames[] = {
40090 (char *) "self",(char *) "constraints",(char *) "win", NULL
40091 };
40092
40093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) goto fail;
40094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40096 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLayoutConstraints,
40097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40098 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
40099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40100 {
40101 PyThreadState* __tstate = wxPyBeginAllowThreads();
40102 result = (bool)(arg1)->SatisfyConstraint(arg2,arg3);
40103
40104 wxPyEndAllowThreads(__tstate);
40105 if (PyErr_Occurred()) SWIG_fail;
40106 }
40107 {
40108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40109 }
40110 return resultobj;
40111 fail:
40112 return NULL;
40113}
40114
40115
40116static PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
40117 PyObject *resultobj;
40118 wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
40119 int arg2 ;
40120 wxWindow *arg3 = (wxWindow *) 0 ;
40121 wxWindow *arg4 = (wxWindow *) 0 ;
40122 int result;
40123 PyObject * obj0 = 0 ;
40124 PyObject * obj1 = 0 ;
40125 PyObject * obj2 = 0 ;
40126 PyObject * obj3 = 0 ;
40127 char *kwnames[] = {
40128 (char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL
40129 };
40130
40131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
40132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIndividualLayoutConstraint,
40133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40134 arg2 = (wxEdge) SWIG_AsInt(obj1);
40135 if (PyErr_Occurred()) SWIG_fail;
40136 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
40137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40138 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
40139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40140 {
40141 PyThreadState* __tstate = wxPyBeginAllowThreads();
40142 result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge((wxEdge )arg2,arg3,arg4);
40143
40144 wxPyEndAllowThreads(__tstate);
40145 if (PyErr_Occurred()) SWIG_fail;
40146 }
40147 resultobj = SWIG_FromInt((int)result);
40148 return resultobj;
40149 fail:
40150 return NULL;
40151}
40152
40153
40154static PyObject * IndividualLayoutConstraint_swigregister(PyObject *self, PyObject *args) {
40155 PyObject *obj;
40156 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
40157 SWIG_TypeClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, obj);
40158 Py_INCREF(obj);
40159 return Py_BuildValue((char *)"");
40160}
40161static PyObject *_wrap_LayoutConstraints_left_get(PyObject *self, PyObject *args, PyObject *kwargs) {
40162 PyObject *resultobj;
40163 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40164 wxIndividualLayoutConstraint *result;
40165 PyObject * obj0 = 0 ;
40166 char *kwnames[] = {
40167 (char *) "self", NULL
40168 };
40169
40170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_left_get",kwnames,&obj0)) goto fail;
40171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40173 result = (wxIndividualLayoutConstraint *)& ((arg1)->left);
40174
40175 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
40176 return resultobj;
40177 fail:
40178 return NULL;
40179}
40180
40181
40182static PyObject *_wrap_LayoutConstraints_top_get(PyObject *self, PyObject *args, PyObject *kwargs) {
40183 PyObject *resultobj;
40184 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40185 wxIndividualLayoutConstraint *result;
40186 PyObject * obj0 = 0 ;
40187 char *kwnames[] = {
40188 (char *) "self", NULL
40189 };
40190
40191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_top_get",kwnames,&obj0)) goto fail;
40192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40194 result = (wxIndividualLayoutConstraint *)& ((arg1)->top);
40195
40196 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
40197 return resultobj;
40198 fail:
40199 return NULL;
40200}
40201
40202
40203static PyObject *_wrap_LayoutConstraints_right_get(PyObject *self, PyObject *args, PyObject *kwargs) {
40204 PyObject *resultobj;
40205 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40206 wxIndividualLayoutConstraint *result;
40207 PyObject * obj0 = 0 ;
40208 char *kwnames[] = {
40209 (char *) "self", NULL
40210 };
40211
40212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_right_get",kwnames,&obj0)) goto fail;
40213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40215 result = (wxIndividualLayoutConstraint *)& ((arg1)->right);
40216
40217 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
40218 return resultobj;
40219 fail:
40220 return NULL;
40221}
40222
40223
40224static PyObject *_wrap_LayoutConstraints_bottom_get(PyObject *self, PyObject *args, PyObject *kwargs) {
40225 PyObject *resultobj;
40226 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40227 wxIndividualLayoutConstraint *result;
40228 PyObject * obj0 = 0 ;
40229 char *kwnames[] = {
40230 (char *) "self", NULL
40231 };
40232
40233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_bottom_get",kwnames,&obj0)) goto fail;
40234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40236 result = (wxIndividualLayoutConstraint *)& ((arg1)->bottom);
40237
40238 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
40239 return resultobj;
40240 fail:
40241 return NULL;
40242}
40243
40244
40245static PyObject *_wrap_LayoutConstraints_width_get(PyObject *self, PyObject *args, PyObject *kwargs) {
40246 PyObject *resultobj;
40247 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40248 wxIndividualLayoutConstraint *result;
40249 PyObject * obj0 = 0 ;
40250 char *kwnames[] = {
40251 (char *) "self", NULL
40252 };
40253
40254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_width_get",kwnames,&obj0)) goto fail;
40255 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40257 result = (wxIndividualLayoutConstraint *)& ((arg1)->width);
40258
40259 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
40260 return resultobj;
40261 fail:
40262 return NULL;
40263}
40264
40265
40266static PyObject *_wrap_LayoutConstraints_height_get(PyObject *self, PyObject *args, PyObject *kwargs) {
40267 PyObject *resultobj;
40268 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40269 wxIndividualLayoutConstraint *result;
40270 PyObject * obj0 = 0 ;
40271 char *kwnames[] = {
40272 (char *) "self", NULL
40273 };
40274
40275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_height_get",kwnames,&obj0)) goto fail;
40276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40278 result = (wxIndividualLayoutConstraint *)& ((arg1)->height);
40279
40280 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
40281 return resultobj;
40282 fail:
40283 return NULL;
40284}
40285
40286
40287static PyObject *_wrap_LayoutConstraints_centreX_get(PyObject *self, PyObject *args, PyObject *kwargs) {
40288 PyObject *resultobj;
40289 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40290 wxIndividualLayoutConstraint *result;
40291 PyObject * obj0 = 0 ;
40292 char *kwnames[] = {
40293 (char *) "self", NULL
40294 };
40295
40296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreX_get",kwnames,&obj0)) goto fail;
40297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40299 result = (wxIndividualLayoutConstraint *)& ((arg1)->centreX);
40300
40301 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
40302 return resultobj;
40303 fail:
40304 return NULL;
40305}
40306
40307
40308static PyObject *_wrap_LayoutConstraints_centreY_get(PyObject *self, PyObject *args, PyObject *kwargs) {
40309 PyObject *resultobj;
40310 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40311 wxIndividualLayoutConstraint *result;
40312 PyObject * obj0 = 0 ;
40313 char *kwnames[] = {
40314 (char *) "self", NULL
40315 };
40316
40317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_centreY_get",kwnames,&obj0)) goto fail;
40318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40320 result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY);
40321
40322 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0);
40323 return resultobj;
40324 fail:
40325 return NULL;
40326}
40327
40328
40329static PyObject *_wrap_new_LayoutConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
40330 PyObject *resultobj;
40331 wxLayoutConstraints *result;
40332 char *kwnames[] = {
40333 NULL
40334 };
40335
40336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LayoutConstraints",kwnames)) goto fail;
40337 {
40338 PyThreadState* __tstate = wxPyBeginAllowThreads();
40339 result = (wxLayoutConstraints *)new wxLayoutConstraints();
40340
40341 wxPyEndAllowThreads(__tstate);
40342 if (PyErr_Occurred()) SWIG_fail;
40343 }
40344 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLayoutConstraints, 1);
40345 return resultobj;
40346 fail:
40347 return NULL;
40348}
40349
40350
40351static PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *self, PyObject *args, PyObject *kwargs) {
40352 PyObject *resultobj;
40353 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40354 wxWindow *arg2 = (wxWindow *) 0 ;
40355 int *arg3 = (int *) 0 ;
40356 bool result;
40357 int temp3 ;
40358 PyObject * obj0 = 0 ;
40359 PyObject * obj1 = 0 ;
40360 char *kwnames[] = {
40361 (char *) "self",(char *) "win", NULL
40362 };
40363
40364 arg3 = &temp3;
40365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) goto fail;
40366 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40368 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
40369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40370 {
40371 PyThreadState* __tstate = wxPyBeginAllowThreads();
40372 result = (bool)(arg1)->SatisfyConstraints(arg2,arg3);
40373
40374 wxPyEndAllowThreads(__tstate);
40375 if (PyErr_Occurred()) SWIG_fail;
40376 }
40377 {
40378 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40379 }
40380 {
40381 PyObject *o = PyInt_FromLong((long) (*arg3));
40382 resultobj = t_output_helper(resultobj,o);
40383 }
40384 return resultobj;
40385 fail:
40386 return NULL;
40387}
40388
40389
40390static PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *self, PyObject *args, PyObject *kwargs) {
40391 PyObject *resultobj;
40392 wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
40393 bool result;
40394 PyObject * obj0 = 0 ;
40395 char *kwnames[] = {
40396 (char *) "self", NULL
40397 };
40398
40399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LayoutConstraints_AreSatisfied",kwnames,&obj0)) goto fail;
40400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLayoutConstraints,
40401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
40402 {
40403 PyThreadState* __tstate = wxPyBeginAllowThreads();
40404 result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied();
40405
40406 wxPyEndAllowThreads(__tstate);
40407 if (PyErr_Occurred()) SWIG_fail;
40408 }
40409 {
40410 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40411 }
40412 return resultobj;
40413 fail:
40414 return NULL;
40415}
40416
40417
40418static PyObject * LayoutConstraints_swigregister(PyObject *self, PyObject *args) {
40419 PyObject *obj;
40420 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
40421 SWIG_TypeClientData(SWIGTYPE_p_wxLayoutConstraints, obj);
40422 Py_INCREF(obj);
40423 return Py_BuildValue((char *)"");
40424}
40425static PyMethodDef SwigMethods[] = {
40426 { (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS },
40427 { (char *)"_wxPyFixStockObjects", __wxPyFixStockObjects, METH_VARARGS },
40428 { (char *)"Object_GetClassName", (PyCFunction) _wrap_Object_GetClassName, METH_VARARGS | METH_KEYWORDS },
40429 { (char *)"Object_Destroy", (PyCFunction) _wrap_Object_Destroy, METH_VARARGS | METH_KEYWORDS },
40430 { (char *)"Object_swigregister", Object_swigregister, METH_VARARGS },
40431 { (char *)"Size_width_set", (PyCFunction) _wrap_Size_width_set, METH_VARARGS | METH_KEYWORDS },
40432 { (char *)"Size_width_get", (PyCFunction) _wrap_Size_width_get, METH_VARARGS | METH_KEYWORDS },
40433 { (char *)"Size_height_set", (PyCFunction) _wrap_Size_height_set, METH_VARARGS | METH_KEYWORDS },
40434 { (char *)"Size_height_get", (PyCFunction) _wrap_Size_height_get, METH_VARARGS | METH_KEYWORDS },
40435 { (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS },
40436 { (char *)"delete_Size", (PyCFunction) _wrap_delete_Size, METH_VARARGS | METH_KEYWORDS },
40437 { (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS },
40438 { (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS },
40439 { (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS },
40440 { (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS },
40441 { (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS },
40442 { (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS },
40443 { (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS },
40444 { (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS },
40445 { (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS },
40446 { (char *)"Size_GetWidth", (PyCFunction) _wrap_Size_GetWidth, METH_VARARGS | METH_KEYWORDS },
40447 { (char *)"Size_GetHeight", (PyCFunction) _wrap_Size_GetHeight, METH_VARARGS | METH_KEYWORDS },
40448 { (char *)"Size_IsFullySpecified", (PyCFunction) _wrap_Size_IsFullySpecified, METH_VARARGS | METH_KEYWORDS },
40449 { (char *)"Size_SetDefaults", (PyCFunction) _wrap_Size_SetDefaults, METH_VARARGS | METH_KEYWORDS },
40450 { (char *)"Size_Get", (PyCFunction) _wrap_Size_Get, METH_VARARGS | METH_KEYWORDS },
40451 { (char *)"Size_swigregister", Size_swigregister, METH_VARARGS },
40452 { (char *)"RealPoint_x_set", (PyCFunction) _wrap_RealPoint_x_set, METH_VARARGS | METH_KEYWORDS },
40453 { (char *)"RealPoint_x_get", (PyCFunction) _wrap_RealPoint_x_get, METH_VARARGS | METH_KEYWORDS },
40454 { (char *)"RealPoint_y_set", (PyCFunction) _wrap_RealPoint_y_set, METH_VARARGS | METH_KEYWORDS },
40455 { (char *)"RealPoint_y_get", (PyCFunction) _wrap_RealPoint_y_get, METH_VARARGS | METH_KEYWORDS },
40456 { (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS },
40457 { (char *)"delete_RealPoint", (PyCFunction) _wrap_delete_RealPoint, METH_VARARGS | METH_KEYWORDS },
40458 { (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS },
40459 { (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS },
40460 { (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS },
40461 { (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS },
40462 { (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS },
40463 { (char *)"RealPoint_Get", (PyCFunction) _wrap_RealPoint_Get, METH_VARARGS | METH_KEYWORDS },
40464 { (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS },
40465 { (char *)"Point_x_set", (PyCFunction) _wrap_Point_x_set, METH_VARARGS | METH_KEYWORDS },
40466 { (char *)"Point_x_get", (PyCFunction) _wrap_Point_x_get, METH_VARARGS | METH_KEYWORDS },
40467 { (char *)"Point_y_set", (PyCFunction) _wrap_Point_y_set, METH_VARARGS | METH_KEYWORDS },
40468 { (char *)"Point_y_get", (PyCFunction) _wrap_Point_y_get, METH_VARARGS | METH_KEYWORDS },
40469 { (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS },
40470 { (char *)"delete_Point", (PyCFunction) _wrap_delete_Point, METH_VARARGS | METH_KEYWORDS },
40471 { (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS },
40472 { (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS },
40473 { (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS },
40474 { (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS },
40475 { (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS },
40476 { (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS },
40477 { (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS },
40478 { (char *)"Point_Get", (PyCFunction) _wrap_Point_Get, METH_VARARGS | METH_KEYWORDS },
40479 { (char *)"Point_swigregister", Point_swigregister, METH_VARARGS },
40480 { (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS },
40481 { (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS },
40482 { (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS },
40483 { (char *)"delete_Rect", (PyCFunction) _wrap_delete_Rect, METH_VARARGS | METH_KEYWORDS },
40484 { (char *)"Rect_GetX", (PyCFunction) _wrap_Rect_GetX, METH_VARARGS | METH_KEYWORDS },
40485 { (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS },
40486 { (char *)"Rect_GetY", (PyCFunction) _wrap_Rect_GetY, METH_VARARGS | METH_KEYWORDS },
40487 { (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS },
40488 { (char *)"Rect_GetWidth", (PyCFunction) _wrap_Rect_GetWidth, METH_VARARGS | METH_KEYWORDS },
40489 { (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS },
40490 { (char *)"Rect_GetHeight", (PyCFunction) _wrap_Rect_GetHeight, METH_VARARGS | METH_KEYWORDS },
40491 { (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS },
40492 { (char *)"Rect_GetPosition", (PyCFunction) _wrap_Rect_GetPosition, METH_VARARGS | METH_KEYWORDS },
40493 { (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS },
40494 { (char *)"Rect_GetSize", (PyCFunction) _wrap_Rect_GetSize, METH_VARARGS | METH_KEYWORDS },
40495 { (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS },
40496 { (char *)"Rect_GetTopLeft", (PyCFunction) _wrap_Rect_GetTopLeft, METH_VARARGS | METH_KEYWORDS },
40497 { (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS },
40498 { (char *)"Rect_GetBottomRight", (PyCFunction) _wrap_Rect_GetBottomRight, METH_VARARGS | METH_KEYWORDS },
40499 { (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS },
40500 { (char *)"Rect_GetLeft", (PyCFunction) _wrap_Rect_GetLeft, METH_VARARGS | METH_KEYWORDS },
40501 { (char *)"Rect_GetTop", (PyCFunction) _wrap_Rect_GetTop, METH_VARARGS | METH_KEYWORDS },
40502 { (char *)"Rect_GetBottom", (PyCFunction) _wrap_Rect_GetBottom, METH_VARARGS | METH_KEYWORDS },
40503 { (char *)"Rect_GetRight", (PyCFunction) _wrap_Rect_GetRight, METH_VARARGS | METH_KEYWORDS },
40504 { (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS },
40505 { (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS },
40506 { (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS },
40507 { (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS },
40508 { (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS },
40509 { (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS },
40510 { (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS },
40511 { (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS },
40512 { (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS },
40513 { (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS },
40514 { (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS },
40515 { (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS },
40516 { (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS },
40517 { (char *)"Rect_InsideXY", (PyCFunction) _wrap_Rect_InsideXY, METH_VARARGS | METH_KEYWORDS },
40518 { (char *)"Rect_Inside", (PyCFunction) _wrap_Rect_Inside, METH_VARARGS | METH_KEYWORDS },
40519 { (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS },
40520 { (char *)"Rect_x_set", (PyCFunction) _wrap_Rect_x_set, METH_VARARGS | METH_KEYWORDS },
40521 { (char *)"Rect_x_get", (PyCFunction) _wrap_Rect_x_get, METH_VARARGS | METH_KEYWORDS },
40522 { (char *)"Rect_y_set", (PyCFunction) _wrap_Rect_y_set, METH_VARARGS | METH_KEYWORDS },
40523 { (char *)"Rect_y_get", (PyCFunction) _wrap_Rect_y_get, METH_VARARGS | METH_KEYWORDS },
40524 { (char *)"Rect_width_set", (PyCFunction) _wrap_Rect_width_set, METH_VARARGS | METH_KEYWORDS },
40525 { (char *)"Rect_width_get", (PyCFunction) _wrap_Rect_width_get, METH_VARARGS | METH_KEYWORDS },
40526 { (char *)"Rect_height_set", (PyCFunction) _wrap_Rect_height_set, METH_VARARGS | METH_KEYWORDS },
40527 { (char *)"Rect_height_get", (PyCFunction) _wrap_Rect_height_get, METH_VARARGS | METH_KEYWORDS },
40528 { (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS },
40529 { (char *)"Rect_Get", (PyCFunction) _wrap_Rect_Get, METH_VARARGS | METH_KEYWORDS },
40530 { (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS },
40531 { (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS },
40532 { (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS },
40533 { (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS },
40534 { (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS },
40535 { (char *)"Point2D_GetFloor", (PyCFunction) _wrap_Point2D_GetFloor, METH_VARARGS | METH_KEYWORDS },
40536 { (char *)"Point2D_GetRounded", (PyCFunction) _wrap_Point2D_GetRounded, METH_VARARGS | METH_KEYWORDS },
40537 { (char *)"Point2D_GetVectorLength", (PyCFunction) _wrap_Point2D_GetVectorLength, METH_VARARGS | METH_KEYWORDS },
40538 { (char *)"Point2D_GetVectorAngle", (PyCFunction) _wrap_Point2D_GetVectorAngle, METH_VARARGS | METH_KEYWORDS },
40539 { (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS },
40540 { (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS },
40541 { (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS },
40542 { (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS },
40543 { (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS },
40544 { (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS },
40545 { (char *)"Point2D___neg__", (PyCFunction) _wrap_Point2D___neg__, METH_VARARGS | METH_KEYWORDS },
40546 { (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS },
40547 { (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS },
40548 { (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS },
40549 { (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS },
40550 { (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS },
40551 { (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS },
40552 { (char *)"Point2D_x_set", (PyCFunction) _wrap_Point2D_x_set, METH_VARARGS | METH_KEYWORDS },
40553 { (char *)"Point2D_x_get", (PyCFunction) _wrap_Point2D_x_get, METH_VARARGS | METH_KEYWORDS },
40554 { (char *)"Point2D_y_set", (PyCFunction) _wrap_Point2D_y_set, METH_VARARGS | METH_KEYWORDS },
40555 { (char *)"Point2D_y_get", (PyCFunction) _wrap_Point2D_y_get, METH_VARARGS | METH_KEYWORDS },
40556 { (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS },
40557 { (char *)"Point2D_Get", (PyCFunction) _wrap_Point2D_Get, METH_VARARGS | METH_KEYWORDS },
40558 { (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS },
40559 { (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS },
40560 { (char *)"InputStream_close", (PyCFunction) _wrap_InputStream_close, METH_VARARGS | METH_KEYWORDS },
40561 { (char *)"InputStream_flush", (PyCFunction) _wrap_InputStream_flush, METH_VARARGS | METH_KEYWORDS },
40562 { (char *)"InputStream_eof", (PyCFunction) _wrap_InputStream_eof, METH_VARARGS | METH_KEYWORDS },
40563 { (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS },
40564 { (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS },
40565 { (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS },
40566 { (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS },
40567 { (char *)"InputStream_tell", (PyCFunction) _wrap_InputStream_tell, METH_VARARGS | METH_KEYWORDS },
40568 { (char *)"InputStream_Peek", (PyCFunction) _wrap_InputStream_Peek, METH_VARARGS | METH_KEYWORDS },
40569 { (char *)"InputStream_GetC", (PyCFunction) _wrap_InputStream_GetC, METH_VARARGS | METH_KEYWORDS },
40570 { (char *)"InputStream_LastRead", (PyCFunction) _wrap_InputStream_LastRead, METH_VARARGS | METH_KEYWORDS },
40571 { (char *)"InputStream_CanRead", (PyCFunction) _wrap_InputStream_CanRead, METH_VARARGS | METH_KEYWORDS },
40572 { (char *)"InputStream_Eof", (PyCFunction) _wrap_InputStream_Eof, METH_VARARGS | METH_KEYWORDS },
40573 { (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS },
40574 { (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS },
40575 { (char *)"InputStream_TellI", (PyCFunction) _wrap_InputStream_TellI, METH_VARARGS | METH_KEYWORDS },
40576 { (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS },
40577 { (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS },
40578 { (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS },
40579 { (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS },
40580 { (char *)"delete_FSFile", (PyCFunction) _wrap_delete_FSFile, METH_VARARGS | METH_KEYWORDS },
40581 { (char *)"FSFile_GetStream", (PyCFunction) _wrap_FSFile_GetStream, METH_VARARGS | METH_KEYWORDS },
40582 { (char *)"FSFile_GetMimeType", (PyCFunction) _wrap_FSFile_GetMimeType, METH_VARARGS | METH_KEYWORDS },
40583 { (char *)"FSFile_GetLocation", (PyCFunction) _wrap_FSFile_GetLocation, METH_VARARGS | METH_KEYWORDS },
40584 { (char *)"FSFile_GetAnchor", (PyCFunction) _wrap_FSFile_GetAnchor, METH_VARARGS | METH_KEYWORDS },
40585 { (char *)"FSFile_GetModificationTime", (PyCFunction) _wrap_FSFile_GetModificationTime, METH_VARARGS | METH_KEYWORDS },
40586 { (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS },
40587 { (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS },
40588 { (char *)"new_FileSystemHandler", (PyCFunction) _wrap_new_FileSystemHandler, METH_VARARGS | METH_KEYWORDS },
40589 { (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
40590 { (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS },
40591 { (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS },
40592 { (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS },
40593 { (char *)"FileSystemHandler_FindNext", (PyCFunction) _wrap_FileSystemHandler_FindNext, METH_VARARGS | METH_KEYWORDS },
40594 { (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS },
40595 { (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS },
40596 { (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS },
40597 { (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS },
40598 { (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS },
40599 { (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS },
40600 { (char *)"new_FileSystem", (PyCFunction) _wrap_new_FileSystem, METH_VARARGS | METH_KEYWORDS },
40601 { (char *)"delete_FileSystem", (PyCFunction) _wrap_delete_FileSystem, METH_VARARGS | METH_KEYWORDS },
40602 { (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS },
40603 { (char *)"FileSystem_GetPath", (PyCFunction) _wrap_FileSystem_GetPath, METH_VARARGS | METH_KEYWORDS },
40604 { (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS },
40605 { (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS },
40606 { (char *)"FileSystem_FindNext", (PyCFunction) _wrap_FileSystem_FindNext, METH_VARARGS | METH_KEYWORDS },
40607 { (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS },
40608 { (char *)"FileSystem_CleanUpHandlers", (PyCFunction) _wrap_FileSystem_CleanUpHandlers, METH_VARARGS | METH_KEYWORDS },
40609 { (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS },
40610 { (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS },
40611 { (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS },
40612 { (char *)"new_InternetFSHandler", (PyCFunction) _wrap_new_InternetFSHandler, METH_VARARGS | METH_KEYWORDS },
40613 { (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS },
40614 { (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS },
40615 { (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS },
40616 { (char *)"new_ZipFSHandler", (PyCFunction) _wrap_new_ZipFSHandler, METH_VARARGS | METH_KEYWORDS },
40617 { (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS },
40618 { (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS },
40619 { (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS },
40620 { (char *)"ZipFSHandler_FindNext", (PyCFunction) _wrap_ZipFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS },
40621 { (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS },
40622 { (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS },
40623 { (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS },
40624 { (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS },
40625 { (char *)"new_MemoryFSHandler", (PyCFunction) _wrap_new_MemoryFSHandler, METH_VARARGS | METH_KEYWORDS },
40626 { (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS },
40627 { (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS },
40628 { (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS },
40629 { (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS },
40630 { (char *)"MemoryFSHandler_FindNext", (PyCFunction) _wrap_MemoryFSHandler_FindNext, METH_VARARGS | METH_KEYWORDS },
40631 { (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS },
40632 { (char *)"ImageHandler_GetName", (PyCFunction) _wrap_ImageHandler_GetName, METH_VARARGS | METH_KEYWORDS },
40633 { (char *)"ImageHandler_GetExtension", (PyCFunction) _wrap_ImageHandler_GetExtension, METH_VARARGS | METH_KEYWORDS },
40634 { (char *)"ImageHandler_GetType", (PyCFunction) _wrap_ImageHandler_GetType, METH_VARARGS | METH_KEYWORDS },
40635 { (char *)"ImageHandler_GetMimeType", (PyCFunction) _wrap_ImageHandler_GetMimeType, METH_VARARGS | METH_KEYWORDS },
40636 { (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS },
40637 { (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS },
40638 { (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS },
40639 { (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS },
40640 { (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS },
40641 { (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS },
40642 { (char *)"new_ImageHistogram", (PyCFunction) _wrap_new_ImageHistogram, METH_VARARGS | METH_KEYWORDS },
40643 { (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS },
40644 { (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS },
40645 { (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS },
40646 { (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS },
40647 { (char *)"delete_Image", (PyCFunction) _wrap_delete_Image, METH_VARARGS | METH_KEYWORDS },
40648 { (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS },
40649 { (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS },
40650 { (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS },
c24da6d6 40651 { (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
40652 { (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS },
40653 { (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS },
40654 { (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS },
40655 { (char *)"Image_Destroy", (PyCFunction) _wrap_Image_Destroy, METH_VARARGS | METH_KEYWORDS },
40656 { (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS },
40657 { (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS },
40658 { (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS },
40659 { (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS },
40660 { (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS },
40661 { (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS },
40662 { (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS },
40663 { (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS },
40664 { (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS },
40665 { (char *)"Image_HasAlpha", (PyCFunction) _wrap_Image_HasAlpha, METH_VARARGS | METH_KEYWORDS },
40666 { (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS },
40667 { (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS },
40668 { (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS },
40669 { (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS },
40670 { (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS },
40671 { (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS },
40672 { (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS },
40673 { (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS },
40674 { (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS },
40675 { (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS },
40676 { (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS },
40677 { (char *)"Image_Ok", (PyCFunction) _wrap_Image_Ok, METH_VARARGS | METH_KEYWORDS },
40678 { (char *)"Image_GetWidth", (PyCFunction) _wrap_Image_GetWidth, METH_VARARGS | METH_KEYWORDS },
40679 { (char *)"Image_GetHeight", (PyCFunction) _wrap_Image_GetHeight, METH_VARARGS | METH_KEYWORDS },
40680 { (char *)"Image_GetSize", (PyCFunction) _wrap_Image_GetSize, METH_VARARGS | METH_KEYWORDS },
40681 { (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS },
40682 { (char *)"Image_Copy", (PyCFunction) _wrap_Image_Copy, METH_VARARGS | METH_KEYWORDS },
40683 { (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS },
40684 { (char *)"Image_GetData", (PyCFunction) _wrap_Image_GetData, METH_VARARGS | METH_KEYWORDS },
40685 { (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS },
40686 { (char *)"Image_GetDataBuffer", (PyCFunction) _wrap_Image_GetDataBuffer, METH_VARARGS | METH_KEYWORDS },
40687 { (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS },
40688 { (char *)"Image_GetAlphaData", (PyCFunction) _wrap_Image_GetAlphaData, METH_VARARGS | METH_KEYWORDS },
40689 { (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS },
40690 { (char *)"Image_GetAlphaBuffer", (PyCFunction) _wrap_Image_GetAlphaBuffer, METH_VARARGS | METH_KEYWORDS },
40691 { (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS },
40692 { (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
40693 { (char *)"Image_GetMaskRed", (PyCFunction) _wrap_Image_GetMaskRed, METH_VARARGS | METH_KEYWORDS },
40694 { (char *)"Image_GetMaskGreen", (PyCFunction) _wrap_Image_GetMaskGreen, METH_VARARGS | METH_KEYWORDS },
40695 { (char *)"Image_GetMaskBlue", (PyCFunction) _wrap_Image_GetMaskBlue, METH_VARARGS | METH_KEYWORDS },
40696 { (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS },
40697 { (char *)"Image_HasMask", (PyCFunction) _wrap_Image_HasMask, METH_VARARGS | METH_KEYWORDS },
40698 { (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS },
40699 { (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS },
40700 { (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS },
40701 { (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS },
40702 { (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS },
40703 { (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS },
40704 { (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS },
40705 { (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS },
40706 { (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS },
40707 { (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS },
40708 { (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS },
40709 { (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS },
40710 { (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS },
40711 { (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS },
40712 { (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS },
40713 { (char *)"Image_GetImageExtWildcard", (PyCFunction) _wrap_Image_GetImageExtWildcard, METH_VARARGS | METH_KEYWORDS },
40714 { (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
40715 { (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS },
40716 { (char *)"Image_swigregister", Image_swigregister, METH_VARARGS },
d55e5bfc
RD
40717 { (char *)"new_BMPHandler", (PyCFunction) _wrap_new_BMPHandler, METH_VARARGS | METH_KEYWORDS },
40718 { (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS },
40719 { (char *)"new_ICOHandler", (PyCFunction) _wrap_new_ICOHandler, METH_VARARGS | METH_KEYWORDS },
40720 { (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS },
40721 { (char *)"new_CURHandler", (PyCFunction) _wrap_new_CURHandler, METH_VARARGS | METH_KEYWORDS },
40722 { (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS },
40723 { (char *)"new_ANIHandler", (PyCFunction) _wrap_new_ANIHandler, METH_VARARGS | METH_KEYWORDS },
40724 { (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS },
40725 { (char *)"new_PNGHandler", (PyCFunction) _wrap_new_PNGHandler, METH_VARARGS | METH_KEYWORDS },
40726 { (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS },
40727 { (char *)"new_GIFHandler", (PyCFunction) _wrap_new_GIFHandler, METH_VARARGS | METH_KEYWORDS },
40728 { (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS },
40729 { (char *)"new_PCXHandler", (PyCFunction) _wrap_new_PCXHandler, METH_VARARGS | METH_KEYWORDS },
40730 { (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS },
40731 { (char *)"new_JPEGHandler", (PyCFunction) _wrap_new_JPEGHandler, METH_VARARGS | METH_KEYWORDS },
40732 { (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS },
40733 { (char *)"new_PNMHandler", (PyCFunction) _wrap_new_PNMHandler, METH_VARARGS | METH_KEYWORDS },
40734 { (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS },
40735 { (char *)"new_XPMHandler", (PyCFunction) _wrap_new_XPMHandler, METH_VARARGS | METH_KEYWORDS },
40736 { (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS },
40737 { (char *)"new_TIFFHandler", (PyCFunction) _wrap_new_TIFFHandler, METH_VARARGS | METH_KEYWORDS },
40738 { (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS },
40739 { (char *)"new_EvtHandler", (PyCFunction) _wrap_new_EvtHandler, METH_VARARGS | METH_KEYWORDS },
40740 { (char *)"EvtHandler_GetNextHandler", (PyCFunction) _wrap_EvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS },
40741 { (char *)"EvtHandler_GetPreviousHandler", (PyCFunction) _wrap_EvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS },
40742 { (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS },
40743 { (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS },
40744 { (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS },
40745 { (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS },
40746 { (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS },
40747 { (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS },
40748 { (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction) _wrap_EvtHandler_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS },
40749 { (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS },
40750 { (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS },
40751 { (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS },
40752 { (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS },
40753 { (char *)"NewEventType", (PyCFunction) _wrap_NewEventType, METH_VARARGS | METH_KEYWORDS },
40754 { (char *)"delete_Event", (PyCFunction) _wrap_delete_Event, METH_VARARGS | METH_KEYWORDS },
40755 { (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS },
40756 { (char *)"Event_GetEventType", (PyCFunction) _wrap_Event_GetEventType, METH_VARARGS | METH_KEYWORDS },
40757 { (char *)"Event_GetEventObject", (PyCFunction) _wrap_Event_GetEventObject, METH_VARARGS | METH_KEYWORDS },
40758 { (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS },
40759 { (char *)"Event_GetTimestamp", (PyCFunction) _wrap_Event_GetTimestamp, METH_VARARGS | METH_KEYWORDS },
40760 { (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS },
40761 { (char *)"Event_GetId", (PyCFunction) _wrap_Event_GetId, METH_VARARGS | METH_KEYWORDS },
40762 { (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS },
40763 { (char *)"Event_IsCommandEvent", (PyCFunction) _wrap_Event_IsCommandEvent, METH_VARARGS | METH_KEYWORDS },
40764 { (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS },
40765 { (char *)"Event_GetSkipped", (PyCFunction) _wrap_Event_GetSkipped, METH_VARARGS | METH_KEYWORDS },
40766 { (char *)"Event_ShouldPropagate", (PyCFunction) _wrap_Event_ShouldPropagate, METH_VARARGS | METH_KEYWORDS },
40767 { (char *)"Event_StopPropagation", (PyCFunction) _wrap_Event_StopPropagation, METH_VARARGS | METH_KEYWORDS },
40768 { (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS },
40769 { (char *)"Event_Clone", (PyCFunction) _wrap_Event_Clone, METH_VARARGS | METH_KEYWORDS },
40770 { (char *)"Event_swigregister", Event_swigregister, METH_VARARGS },
40771 { (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS },
40772 { (char *)"delete_PropagationDisabler", (PyCFunction) _wrap_delete_PropagationDisabler, METH_VARARGS | METH_KEYWORDS },
40773 { (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS },
40774 { (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS },
40775 { (char *)"delete_PropagateOnce", (PyCFunction) _wrap_delete_PropagateOnce, METH_VARARGS | METH_KEYWORDS },
40776 { (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS },
40777 { (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS },
40778 { (char *)"CommandEvent_GetSelection", (PyCFunction) _wrap_CommandEvent_GetSelection, METH_VARARGS | METH_KEYWORDS },
40779 { (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS },
40780 { (char *)"CommandEvent_GetString", (PyCFunction) _wrap_CommandEvent_GetString, METH_VARARGS | METH_KEYWORDS },
40781 { (char *)"CommandEvent_IsChecked", (PyCFunction) _wrap_CommandEvent_IsChecked, METH_VARARGS | METH_KEYWORDS },
40782 { (char *)"CommandEvent_IsSelection", (PyCFunction) _wrap_CommandEvent_IsSelection, METH_VARARGS | METH_KEYWORDS },
40783 { (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS },
40784 { (char *)"CommandEvent_GetExtraLong", (PyCFunction) _wrap_CommandEvent_GetExtraLong, METH_VARARGS | METH_KEYWORDS },
40785 { (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS },
40786 { (char *)"CommandEvent_GetInt", (PyCFunction) _wrap_CommandEvent_GetInt, METH_VARARGS | METH_KEYWORDS },
40787 { (char *)"CommandEvent_Clone", (PyCFunction) _wrap_CommandEvent_Clone, METH_VARARGS | METH_KEYWORDS },
40788 { (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS },
40789 { (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS },
40790 { (char *)"NotifyEvent_Veto", (PyCFunction) _wrap_NotifyEvent_Veto, METH_VARARGS | METH_KEYWORDS },
40791 { (char *)"NotifyEvent_Allow", (PyCFunction) _wrap_NotifyEvent_Allow, METH_VARARGS | METH_KEYWORDS },
40792 { (char *)"NotifyEvent_IsAllowed", (PyCFunction) _wrap_NotifyEvent_IsAllowed, METH_VARARGS | METH_KEYWORDS },
40793 { (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS },
40794 { (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS },
40795 { (char *)"ScrollEvent_GetOrientation", (PyCFunction) _wrap_ScrollEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS },
40796 { (char *)"ScrollEvent_GetPosition", (PyCFunction) _wrap_ScrollEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
40797 { (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS },
40798 { (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
40799 { (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS },
40800 { (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS },
40801 { (char *)"ScrollWinEvent_GetOrientation", (PyCFunction) _wrap_ScrollWinEvent_GetOrientation, METH_VARARGS | METH_KEYWORDS },
40802 { (char *)"ScrollWinEvent_GetPosition", (PyCFunction) _wrap_ScrollWinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
40803 { (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS },
40804 { (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
40805 { (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS },
40806 { (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS },
40807 { (char *)"MouseEvent_IsButton", (PyCFunction) _wrap_MouseEvent_IsButton, METH_VARARGS | METH_KEYWORDS },
40808 { (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS },
40809 { (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS },
40810 { (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS },
40811 { (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS },
40812 { (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS },
40813 { (char *)"MouseEvent_GetButton", (PyCFunction) _wrap_MouseEvent_GetButton, METH_VARARGS | METH_KEYWORDS },
40814 { (char *)"MouseEvent_ControlDown", (PyCFunction) _wrap_MouseEvent_ControlDown, METH_VARARGS | METH_KEYWORDS },
40815 { (char *)"MouseEvent_MetaDown", (PyCFunction) _wrap_MouseEvent_MetaDown, METH_VARARGS | METH_KEYWORDS },
40816 { (char *)"MouseEvent_AltDown", (PyCFunction) _wrap_MouseEvent_AltDown, METH_VARARGS | METH_KEYWORDS },
40817 { (char *)"MouseEvent_ShiftDown", (PyCFunction) _wrap_MouseEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS },
412d302d 40818 { (char *)"MouseEvent_CmdDown", (PyCFunction) _wrap_MouseEvent_CmdDown, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
40819 { (char *)"MouseEvent_LeftDown", (PyCFunction) _wrap_MouseEvent_LeftDown, METH_VARARGS | METH_KEYWORDS },
40820 { (char *)"MouseEvent_MiddleDown", (PyCFunction) _wrap_MouseEvent_MiddleDown, METH_VARARGS | METH_KEYWORDS },
40821 { (char *)"MouseEvent_RightDown", (PyCFunction) _wrap_MouseEvent_RightDown, METH_VARARGS | METH_KEYWORDS },
40822 { (char *)"MouseEvent_LeftUp", (PyCFunction) _wrap_MouseEvent_LeftUp, METH_VARARGS | METH_KEYWORDS },
40823 { (char *)"MouseEvent_MiddleUp", (PyCFunction) _wrap_MouseEvent_MiddleUp, METH_VARARGS | METH_KEYWORDS },
40824 { (char *)"MouseEvent_RightUp", (PyCFunction) _wrap_MouseEvent_RightUp, METH_VARARGS | METH_KEYWORDS },
40825 { (char *)"MouseEvent_LeftDClick", (PyCFunction) _wrap_MouseEvent_LeftDClick, METH_VARARGS | METH_KEYWORDS },
40826 { (char *)"MouseEvent_MiddleDClick", (PyCFunction) _wrap_MouseEvent_MiddleDClick, METH_VARARGS | METH_KEYWORDS },
40827 { (char *)"MouseEvent_RightDClick", (PyCFunction) _wrap_MouseEvent_RightDClick, METH_VARARGS | METH_KEYWORDS },
40828 { (char *)"MouseEvent_LeftIsDown", (PyCFunction) _wrap_MouseEvent_LeftIsDown, METH_VARARGS | METH_KEYWORDS },
40829 { (char *)"MouseEvent_MiddleIsDown", (PyCFunction) _wrap_MouseEvent_MiddleIsDown, METH_VARARGS | METH_KEYWORDS },
40830 { (char *)"MouseEvent_RightIsDown", (PyCFunction) _wrap_MouseEvent_RightIsDown, METH_VARARGS | METH_KEYWORDS },
40831 { (char *)"MouseEvent_Dragging", (PyCFunction) _wrap_MouseEvent_Dragging, METH_VARARGS | METH_KEYWORDS },
40832 { (char *)"MouseEvent_Moving", (PyCFunction) _wrap_MouseEvent_Moving, METH_VARARGS | METH_KEYWORDS },
40833 { (char *)"MouseEvent_Entering", (PyCFunction) _wrap_MouseEvent_Entering, METH_VARARGS | METH_KEYWORDS },
40834 { (char *)"MouseEvent_Leaving", (PyCFunction) _wrap_MouseEvent_Leaving, METH_VARARGS | METH_KEYWORDS },
40835 { (char *)"MouseEvent_GetPosition", (PyCFunction) _wrap_MouseEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
40836 { (char *)"MouseEvent_GetPositionTuple", (PyCFunction) _wrap_MouseEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
40837 { (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS },
40838 { (char *)"MouseEvent_GetX", (PyCFunction) _wrap_MouseEvent_GetX, METH_VARARGS | METH_KEYWORDS },
40839 { (char *)"MouseEvent_GetY", (PyCFunction) _wrap_MouseEvent_GetY, METH_VARARGS | METH_KEYWORDS },
40840 { (char *)"MouseEvent_GetWheelRotation", (PyCFunction) _wrap_MouseEvent_GetWheelRotation, METH_VARARGS | METH_KEYWORDS },
40841 { (char *)"MouseEvent_GetWheelDelta", (PyCFunction) _wrap_MouseEvent_GetWheelDelta, METH_VARARGS | METH_KEYWORDS },
40842 { (char *)"MouseEvent_GetLinesPerAction", (PyCFunction) _wrap_MouseEvent_GetLinesPerAction, METH_VARARGS | METH_KEYWORDS },
40843 { (char *)"MouseEvent_IsPageScroll", (PyCFunction) _wrap_MouseEvent_IsPageScroll, METH_VARARGS | METH_KEYWORDS },
40844 { (char *)"MouseEvent_m_x_set", (PyCFunction) _wrap_MouseEvent_m_x_set, METH_VARARGS | METH_KEYWORDS },
40845 { (char *)"MouseEvent_m_x_get", (PyCFunction) _wrap_MouseEvent_m_x_get, METH_VARARGS | METH_KEYWORDS },
40846 { (char *)"MouseEvent_m_y_set", (PyCFunction) _wrap_MouseEvent_m_y_set, METH_VARARGS | METH_KEYWORDS },
40847 { (char *)"MouseEvent_m_y_get", (PyCFunction) _wrap_MouseEvent_m_y_get, METH_VARARGS | METH_KEYWORDS },
40848 { (char *)"MouseEvent_m_leftDown_set", (PyCFunction) _wrap_MouseEvent_m_leftDown_set, METH_VARARGS | METH_KEYWORDS },
40849 { (char *)"MouseEvent_m_leftDown_get", (PyCFunction) _wrap_MouseEvent_m_leftDown_get, METH_VARARGS | METH_KEYWORDS },
40850 { (char *)"MouseEvent_m_middleDown_set", (PyCFunction) _wrap_MouseEvent_m_middleDown_set, METH_VARARGS | METH_KEYWORDS },
40851 { (char *)"MouseEvent_m_middleDown_get", (PyCFunction) _wrap_MouseEvent_m_middleDown_get, METH_VARARGS | METH_KEYWORDS },
40852 { (char *)"MouseEvent_m_rightDown_set", (PyCFunction) _wrap_MouseEvent_m_rightDown_set, METH_VARARGS | METH_KEYWORDS },
40853 { (char *)"MouseEvent_m_rightDown_get", (PyCFunction) _wrap_MouseEvent_m_rightDown_get, METH_VARARGS | METH_KEYWORDS },
40854 { (char *)"MouseEvent_m_controlDown_set", (PyCFunction) _wrap_MouseEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS },
40855 { (char *)"MouseEvent_m_controlDown_get", (PyCFunction) _wrap_MouseEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS },
40856 { (char *)"MouseEvent_m_shiftDown_set", (PyCFunction) _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS },
40857 { (char *)"MouseEvent_m_shiftDown_get", (PyCFunction) _wrap_MouseEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS },
40858 { (char *)"MouseEvent_m_altDown_set", (PyCFunction) _wrap_MouseEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS },
40859 { (char *)"MouseEvent_m_altDown_get", (PyCFunction) _wrap_MouseEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS },
40860 { (char *)"MouseEvent_m_metaDown_set", (PyCFunction) _wrap_MouseEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS },
40861 { (char *)"MouseEvent_m_metaDown_get", (PyCFunction) _wrap_MouseEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS },
40862 { (char *)"MouseEvent_m_wheelRotation_set", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS | METH_KEYWORDS },
40863 { (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction) _wrap_MouseEvent_m_wheelRotation_get, METH_VARARGS | METH_KEYWORDS },
40864 { (char *)"MouseEvent_m_wheelDelta_set", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS | METH_KEYWORDS },
40865 { (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction) _wrap_MouseEvent_m_wheelDelta_get, METH_VARARGS | METH_KEYWORDS },
40866 { (char *)"MouseEvent_m_linesPerAction_set", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS | METH_KEYWORDS },
40867 { (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction) _wrap_MouseEvent_m_linesPerAction_get, METH_VARARGS | METH_KEYWORDS },
40868 { (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS },
40869 { (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS },
40870 { (char *)"SetCursorEvent_GetX", (PyCFunction) _wrap_SetCursorEvent_GetX, METH_VARARGS | METH_KEYWORDS },
40871 { (char *)"SetCursorEvent_GetY", (PyCFunction) _wrap_SetCursorEvent_GetY, METH_VARARGS | METH_KEYWORDS },
40872 { (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS },
40873 { (char *)"SetCursorEvent_GetCursor", (PyCFunction) _wrap_SetCursorEvent_GetCursor, METH_VARARGS | METH_KEYWORDS },
40874 { (char *)"SetCursorEvent_HasCursor", (PyCFunction) _wrap_SetCursorEvent_HasCursor, METH_VARARGS | METH_KEYWORDS },
40875 { (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS },
40876 { (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS },
40877 { (char *)"KeyEvent_ControlDown", (PyCFunction) _wrap_KeyEvent_ControlDown, METH_VARARGS | METH_KEYWORDS },
40878 { (char *)"KeyEvent_MetaDown", (PyCFunction) _wrap_KeyEvent_MetaDown, METH_VARARGS | METH_KEYWORDS },
40879 { (char *)"KeyEvent_AltDown", (PyCFunction) _wrap_KeyEvent_AltDown, METH_VARARGS | METH_KEYWORDS },
40880 { (char *)"KeyEvent_ShiftDown", (PyCFunction) _wrap_KeyEvent_ShiftDown, METH_VARARGS | METH_KEYWORDS },
412d302d 40881 { (char *)"KeyEvent_CmdDown", (PyCFunction) _wrap_KeyEvent_CmdDown, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
40882 { (char *)"KeyEvent_HasModifiers", (PyCFunction) _wrap_KeyEvent_HasModifiers, METH_VARARGS | METH_KEYWORDS },
40883 { (char *)"KeyEvent_GetKeyCode", (PyCFunction) _wrap_KeyEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS },
19272049 40884 { (char *)"KeyEvent_GetUnicodeKey", (PyCFunction) _wrap_KeyEvent_GetUnicodeKey, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
40885 { (char *)"KeyEvent_GetRawKeyCode", (PyCFunction) _wrap_KeyEvent_GetRawKeyCode, METH_VARARGS | METH_KEYWORDS },
40886 { (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction) _wrap_KeyEvent_GetRawKeyFlags, METH_VARARGS | METH_KEYWORDS },
40887 { (char *)"KeyEvent_GetPosition", (PyCFunction) _wrap_KeyEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
40888 { (char *)"KeyEvent_GetPositionTuple", (PyCFunction) _wrap_KeyEvent_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
40889 { (char *)"KeyEvent_GetX", (PyCFunction) _wrap_KeyEvent_GetX, METH_VARARGS | METH_KEYWORDS },
40890 { (char *)"KeyEvent_GetY", (PyCFunction) _wrap_KeyEvent_GetY, METH_VARARGS | METH_KEYWORDS },
40891 { (char *)"KeyEvent_m_x_set", (PyCFunction) _wrap_KeyEvent_m_x_set, METH_VARARGS | METH_KEYWORDS },
40892 { (char *)"KeyEvent_m_x_get", (PyCFunction) _wrap_KeyEvent_m_x_get, METH_VARARGS | METH_KEYWORDS },
40893 { (char *)"KeyEvent_m_y_set", (PyCFunction) _wrap_KeyEvent_m_y_set, METH_VARARGS | METH_KEYWORDS },
40894 { (char *)"KeyEvent_m_y_get", (PyCFunction) _wrap_KeyEvent_m_y_get, METH_VARARGS | METH_KEYWORDS },
40895 { (char *)"KeyEvent_m_keyCode_set", (PyCFunction) _wrap_KeyEvent_m_keyCode_set, METH_VARARGS | METH_KEYWORDS },
40896 { (char *)"KeyEvent_m_keyCode_get", (PyCFunction) _wrap_KeyEvent_m_keyCode_get, METH_VARARGS | METH_KEYWORDS },
40897 { (char *)"KeyEvent_m_controlDown_set", (PyCFunction) _wrap_KeyEvent_m_controlDown_set, METH_VARARGS | METH_KEYWORDS },
40898 { (char *)"KeyEvent_m_controlDown_get", (PyCFunction) _wrap_KeyEvent_m_controlDown_get, METH_VARARGS | METH_KEYWORDS },
40899 { (char *)"KeyEvent_m_shiftDown_set", (PyCFunction) _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS | METH_KEYWORDS },
40900 { (char *)"KeyEvent_m_shiftDown_get", (PyCFunction) _wrap_KeyEvent_m_shiftDown_get, METH_VARARGS | METH_KEYWORDS },
40901 { (char *)"KeyEvent_m_altDown_set", (PyCFunction) _wrap_KeyEvent_m_altDown_set, METH_VARARGS | METH_KEYWORDS },
40902 { (char *)"KeyEvent_m_altDown_get", (PyCFunction) _wrap_KeyEvent_m_altDown_get, METH_VARARGS | METH_KEYWORDS },
40903 { (char *)"KeyEvent_m_metaDown_set", (PyCFunction) _wrap_KeyEvent_m_metaDown_set, METH_VARARGS | METH_KEYWORDS },
40904 { (char *)"KeyEvent_m_metaDown_get", (PyCFunction) _wrap_KeyEvent_m_metaDown_get, METH_VARARGS | METH_KEYWORDS },
40905 { (char *)"KeyEvent_m_scanCode_set", (PyCFunction) _wrap_KeyEvent_m_scanCode_set, METH_VARARGS | METH_KEYWORDS },
40906 { (char *)"KeyEvent_m_scanCode_get", (PyCFunction) _wrap_KeyEvent_m_scanCode_get, METH_VARARGS | METH_KEYWORDS },
40907 { (char *)"KeyEvent_m_rawCode_set", (PyCFunction) _wrap_KeyEvent_m_rawCode_set, METH_VARARGS | METH_KEYWORDS },
40908 { (char *)"KeyEvent_m_rawCode_get", (PyCFunction) _wrap_KeyEvent_m_rawCode_get, METH_VARARGS | METH_KEYWORDS },
40909 { (char *)"KeyEvent_m_rawFlags_set", (PyCFunction) _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS | METH_KEYWORDS },
40910 { (char *)"KeyEvent_m_rawFlags_get", (PyCFunction) _wrap_KeyEvent_m_rawFlags_get, METH_VARARGS | METH_KEYWORDS },
40911 { (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS },
40912 { (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS },
40913 { (char *)"SizeEvent_GetSize", (PyCFunction) _wrap_SizeEvent_GetSize, METH_VARARGS | METH_KEYWORDS },
40914 { (char *)"SizeEvent_GetRect", (PyCFunction) _wrap_SizeEvent_GetRect, METH_VARARGS | METH_KEYWORDS },
40915 { (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS },
40916 { (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS },
40917 { (char *)"SizeEvent_m_size_set", (PyCFunction) _wrap_SizeEvent_m_size_set, METH_VARARGS | METH_KEYWORDS },
40918 { (char *)"SizeEvent_m_size_get", (PyCFunction) _wrap_SizeEvent_m_size_get, METH_VARARGS | METH_KEYWORDS },
40919 { (char *)"SizeEvent_m_rect_set", (PyCFunction) _wrap_SizeEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS },
40920 { (char *)"SizeEvent_m_rect_get", (PyCFunction) _wrap_SizeEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS },
40921 { (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS },
40922 { (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS },
40923 { (char *)"MoveEvent_GetPosition", (PyCFunction) _wrap_MoveEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
40924 { (char *)"MoveEvent_GetRect", (PyCFunction) _wrap_MoveEvent_GetRect, METH_VARARGS | METH_KEYWORDS },
40925 { (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS },
40926 { (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
40927 { (char *)"MoveEvent_m_pos_set", (PyCFunction) _wrap_MoveEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS },
40928 { (char *)"MoveEvent_m_pos_get", (PyCFunction) _wrap_MoveEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS },
40929 { (char *)"MoveEvent_m_rect_set", (PyCFunction) _wrap_MoveEvent_m_rect_set, METH_VARARGS | METH_KEYWORDS },
40930 { (char *)"MoveEvent_m_rect_get", (PyCFunction) _wrap_MoveEvent_m_rect_get, METH_VARARGS | METH_KEYWORDS },
40931 { (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS },
40932 { (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS },
40933 { (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS },
40934 { (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS },
40935 { (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS },
40936 { (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS },
40937 { (char *)"EraseEvent_GetDC", (PyCFunction) _wrap_EraseEvent_GetDC, METH_VARARGS | METH_KEYWORDS },
40938 { (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS },
40939 { (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS },
40940 { (char *)"FocusEvent_GetWindow", (PyCFunction) _wrap_FocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS },
40941 { (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS },
40942 { (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS },
40943 { (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS },
40944 { (char *)"ChildFocusEvent_GetWindow", (PyCFunction) _wrap_ChildFocusEvent_GetWindow, METH_VARARGS | METH_KEYWORDS },
40945 { (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS },
40946 { (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS },
40947 { (char *)"ActivateEvent_GetActive", (PyCFunction) _wrap_ActivateEvent_GetActive, METH_VARARGS | METH_KEYWORDS },
40948 { (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS },
40949 { (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS },
40950 { (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS },
40951 { (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS },
40952 { (char *)"MenuEvent_GetMenuId", (PyCFunction) _wrap_MenuEvent_GetMenuId, METH_VARARGS | METH_KEYWORDS },
40953 { (char *)"MenuEvent_IsPopup", (PyCFunction) _wrap_MenuEvent_IsPopup, METH_VARARGS | METH_KEYWORDS },
40954 { (char *)"MenuEvent_GetMenu", (PyCFunction) _wrap_MenuEvent_GetMenu, METH_VARARGS | METH_KEYWORDS },
40955 { (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS },
40956 { (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS },
40957 { (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS },
40958 { (char *)"CloseEvent_GetLoggingOff", (PyCFunction) _wrap_CloseEvent_GetLoggingOff, METH_VARARGS | METH_KEYWORDS },
40959 { (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS },
40960 { (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS },
40961 { (char *)"CloseEvent_CanVeto", (PyCFunction) _wrap_CloseEvent_CanVeto, METH_VARARGS | METH_KEYWORDS },
40962 { (char *)"CloseEvent_GetVeto", (PyCFunction) _wrap_CloseEvent_GetVeto, METH_VARARGS | METH_KEYWORDS },
40963 { (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS },
40964 { (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS },
40965 { (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS },
40966 { (char *)"ShowEvent_GetShow", (PyCFunction) _wrap_ShowEvent_GetShow, METH_VARARGS | METH_KEYWORDS },
40967 { (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS },
40968 { (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS },
40969 { (char *)"IconizeEvent_Iconized", (PyCFunction) _wrap_IconizeEvent_Iconized, METH_VARARGS | METH_KEYWORDS },
40970 { (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS },
40971 { (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS },
40972 { (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS },
40973 { (char *)"DropFilesEvent_GetPosition", (PyCFunction) _wrap_DropFilesEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
40974 { (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction) _wrap_DropFilesEvent_GetNumberOfFiles, METH_VARARGS | METH_KEYWORDS },
40975 { (char *)"DropFilesEvent_GetFiles", (PyCFunction) _wrap_DropFilesEvent_GetFiles, METH_VARARGS | METH_KEYWORDS },
40976 { (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS },
40977 { (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS },
40978 { (char *)"UpdateUIEvent_GetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetChecked, METH_VARARGS | METH_KEYWORDS },
40979 { (char *)"UpdateUIEvent_GetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetEnabled, METH_VARARGS | METH_KEYWORDS },
40980 { (char *)"UpdateUIEvent_GetText", (PyCFunction) _wrap_UpdateUIEvent_GetText, METH_VARARGS | METH_KEYWORDS },
40981 { (char *)"UpdateUIEvent_GetSetText", (PyCFunction) _wrap_UpdateUIEvent_GetSetText, METH_VARARGS | METH_KEYWORDS },
40982 { (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction) _wrap_UpdateUIEvent_GetSetChecked, METH_VARARGS | METH_KEYWORDS },
40983 { (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction) _wrap_UpdateUIEvent_GetSetEnabled, METH_VARARGS | METH_KEYWORDS },
40984 { (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS },
40985 { (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS },
40986 { (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS },
40987 { (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS },
40988 { (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_GetUpdateInterval, METH_VARARGS | METH_KEYWORDS },
40989 { (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS },
40990 { (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction) _wrap_UpdateUIEvent_ResetUpdateTime, METH_VARARGS | METH_KEYWORDS },
40991 { (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS },
40992 { (char *)"UpdateUIEvent_GetMode", (PyCFunction) _wrap_UpdateUIEvent_GetMode, METH_VARARGS | METH_KEYWORDS },
40993 { (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS },
40994 { (char *)"new_SysColourChangedEvent", (PyCFunction) _wrap_new_SysColourChangedEvent, METH_VARARGS | METH_KEYWORDS },
40995 { (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS },
40996 { (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS },
40997 { (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction) _wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_VARARGS | METH_KEYWORDS },
40998 { (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS },
40999 { (char *)"new_DisplayChangedEvent", (PyCFunction) _wrap_new_DisplayChangedEvent, METH_VARARGS | METH_KEYWORDS },
41000 { (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS },
41001 { (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS },
41002 { (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS },
41003 { (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_GetChangedWindow, METH_VARARGS | METH_KEYWORDS },
41004 { (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS },
41005 { (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS },
41006 { (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS },
41007 { (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_VARARGS | METH_KEYWORDS },
41008 { (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS },
41009 { (char *)"new_NavigationKeyEvent", (PyCFunction) _wrap_new_NavigationKeyEvent, METH_VARARGS | METH_KEYWORDS },
41010 { (char *)"NavigationKeyEvent_GetDirection", (PyCFunction) _wrap_NavigationKeyEvent_GetDirection, METH_VARARGS | METH_KEYWORDS },
41011 { (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS },
41012 { (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_IsWindowChange, METH_VARARGS | METH_KEYWORDS },
41013 { (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS },
908b74cd 41014 { (char *)"NavigationKeyEvent_SetFlags", (PyCFunction) _wrap_NavigationKeyEvent_SetFlags, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41015 { (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_GetCurrentFocus, METH_VARARGS | METH_KEYWORDS },
41016 { (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS },
41017 { (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS },
41018 { (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS },
41019 { (char *)"WindowCreateEvent_GetWindow", (PyCFunction) _wrap_WindowCreateEvent_GetWindow, METH_VARARGS | METH_KEYWORDS },
41020 { (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS },
41021 { (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS },
41022 { (char *)"WindowDestroyEvent_GetWindow", (PyCFunction) _wrap_WindowDestroyEvent_GetWindow, METH_VARARGS | METH_KEYWORDS },
41023 { (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS },
41024 { (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS },
41025 { (char *)"ContextMenuEvent_GetPosition", (PyCFunction) _wrap_ContextMenuEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
41026 { (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
41027 { (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS },
41028 { (char *)"new_IdleEvent", (PyCFunction) _wrap_new_IdleEvent, METH_VARARGS | METH_KEYWORDS },
41029 { (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS },
41030 { (char *)"IdleEvent_MoreRequested", (PyCFunction) _wrap_IdleEvent_MoreRequested, METH_VARARGS | METH_KEYWORDS },
41031 { (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS },
41032 { (char *)"IdleEvent_GetMode", (PyCFunction) _wrap_IdleEvent_GetMode, METH_VARARGS | METH_KEYWORDS },
41033 { (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS },
41034 { (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS },
41035 { (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS },
41036 { (char *)"delete_PyEvent", (PyCFunction) _wrap_delete_PyEvent, METH_VARARGS | METH_KEYWORDS },
41037 { (char *)"PyEvent_SetSelf", (PyCFunction) _wrap_PyEvent_SetSelf, METH_VARARGS | METH_KEYWORDS },
41038 { (char *)"PyEvent_GetSelf", (PyCFunction) _wrap_PyEvent_GetSelf, METH_VARARGS | METH_KEYWORDS },
41039 { (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS },
41040 { (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS },
41041 { (char *)"delete_PyCommandEvent", (PyCFunction) _wrap_delete_PyCommandEvent, METH_VARARGS | METH_KEYWORDS },
41042 { (char *)"PyCommandEvent_SetSelf", (PyCFunction) _wrap_PyCommandEvent_SetSelf, METH_VARARGS | METH_KEYWORDS },
41043 { (char *)"PyCommandEvent_GetSelf", (PyCFunction) _wrap_PyCommandEvent_GetSelf, METH_VARARGS | METH_KEYWORDS },
41044 { (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS },
41045 { (char *)"new_PyApp", (PyCFunction) _wrap_new_PyApp, METH_VARARGS | METH_KEYWORDS },
41046 { (char *)"delete_PyApp", (PyCFunction) _wrap_delete_PyApp, METH_VARARGS | METH_KEYWORDS },
41047 { (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
41048 { (char *)"PyApp_GetAppName", (PyCFunction) _wrap_PyApp_GetAppName, METH_VARARGS | METH_KEYWORDS },
41049 { (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS },
41050 { (char *)"PyApp_GetClassName", (PyCFunction) _wrap_PyApp_GetClassName, METH_VARARGS | METH_KEYWORDS },
41051 { (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS },
41052 { (char *)"PyApp_GetVendorName", (PyCFunction) _wrap_PyApp_GetVendorName, METH_VARARGS | METH_KEYWORDS },
41053 { (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS },
41054 { (char *)"PyApp_GetTraits", (PyCFunction) _wrap_PyApp_GetTraits, METH_VARARGS | METH_KEYWORDS },
41055 { (char *)"PyApp_ProcessPendingEvents", (PyCFunction) _wrap_PyApp_ProcessPendingEvents, METH_VARARGS | METH_KEYWORDS },
41056 { (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS },
41057 { (char *)"PyApp_WakeUpIdle", (PyCFunction) _wrap_PyApp_WakeUpIdle, METH_VARARGS | METH_KEYWORDS },
41058 { (char *)"PyApp_MainLoop", (PyCFunction) _wrap_PyApp_MainLoop, METH_VARARGS | METH_KEYWORDS },
41059 { (char *)"PyApp_Exit", (PyCFunction) _wrap_PyApp_Exit, METH_VARARGS | METH_KEYWORDS },
41060 { (char *)"PyApp_ExitMainLoop", (PyCFunction) _wrap_PyApp_ExitMainLoop, METH_VARARGS | METH_KEYWORDS },
41061 { (char *)"PyApp_Pending", (PyCFunction) _wrap_PyApp_Pending, METH_VARARGS | METH_KEYWORDS },
41062 { (char *)"PyApp_Dispatch", (PyCFunction) _wrap_PyApp_Dispatch, METH_VARARGS | METH_KEYWORDS },
41063 { (char *)"PyApp_ProcessIdle", (PyCFunction) _wrap_PyApp_ProcessIdle, METH_VARARGS | METH_KEYWORDS },
41064 { (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS },
41065 { (char *)"PyApp_IsActive", (PyCFunction) _wrap_PyApp_IsActive, METH_VARARGS | METH_KEYWORDS },
41066 { (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS },
41067 { (char *)"PyApp_GetTopWindow", (PyCFunction) _wrap_PyApp_GetTopWindow, METH_VARARGS | METH_KEYWORDS },
41068 { (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS },
41069 { (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_GetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS },
41070 { (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS },
41071 { (char *)"PyApp_GetUseBestVisual", (PyCFunction) _wrap_PyApp_GetUseBestVisual, METH_VARARGS | METH_KEYWORDS },
41072 { (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS },
41073 { (char *)"PyApp_GetPrintMode", (PyCFunction) _wrap_PyApp_GetPrintMode, METH_VARARGS | METH_KEYWORDS },
41074 { (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS },
41075 { (char *)"PyApp_GetAssertMode", (PyCFunction) _wrap_PyApp_GetAssertMode, METH_VARARGS | METH_KEYWORDS },
41076 { (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS },
41077 { (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_GetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS },
41078 { (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_GetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS },
41079 { (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_GetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS },
41080 { (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_GetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS },
41081 { (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS },
41082 { (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS },
41083 { (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS },
41084 { (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS },
41085 { (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS },
41086 { (char *)"PyApp__BootstrapApp", (PyCFunction) _wrap_PyApp__BootstrapApp, METH_VARARGS | METH_KEYWORDS },
41087 { (char *)"PyApp_GetComCtl32Version", (PyCFunction) _wrap_PyApp_GetComCtl32Version, METH_VARARGS | METH_KEYWORDS },
41088 { (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS },
41089 { (char *)"Exit", (PyCFunction) _wrap_Exit, METH_VARARGS | METH_KEYWORDS },
41090 { (char *)"Yield", (PyCFunction) _wrap_Yield, METH_VARARGS | METH_KEYWORDS },
41091 { (char *)"YieldIfNeeded", (PyCFunction) _wrap_YieldIfNeeded, METH_VARARGS | METH_KEYWORDS },
41092 { (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS },
41093 { (char *)"WakeUpIdle", (PyCFunction) _wrap_WakeUpIdle, METH_VARARGS | METH_KEYWORDS },
41094 { (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS },
41095 { (char *)"App_CleanUp", (PyCFunction) _wrap_App_CleanUp, METH_VARARGS | METH_KEYWORDS },
41096 { (char *)"GetApp", (PyCFunction) _wrap_GetApp, METH_VARARGS | METH_KEYWORDS },
41097 { (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS },
41098 { (char *)"delete_AcceleratorEntry", (PyCFunction) _wrap_delete_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS },
41099 { (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41100 { (char *)"AcceleratorEntry_GetFlags", (PyCFunction) _wrap_AcceleratorEntry_GetFlags, METH_VARARGS | METH_KEYWORDS },
41101 { (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction) _wrap_AcceleratorEntry_GetKeyCode, METH_VARARGS | METH_KEYWORDS },
41102 { (char *)"AcceleratorEntry_GetCommand", (PyCFunction) _wrap_AcceleratorEntry_GetCommand, METH_VARARGS | METH_KEYWORDS },
41103 { (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS },
41104 { (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS },
41105 { (char *)"delete_AcceleratorTable", (PyCFunction) _wrap_delete_AcceleratorTable, METH_VARARGS | METH_KEYWORDS },
41106 { (char *)"AcceleratorTable_Ok", (PyCFunction) _wrap_AcceleratorTable_Ok, METH_VARARGS | METH_KEYWORDS },
41107 { (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS },
41108 { (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS },
41109 { (char *)"new_VisualAttributes", (PyCFunction) _wrap_new_VisualAttributes, METH_VARARGS | METH_KEYWORDS },
41110 { (char *)"delete_VisualAttributes", (PyCFunction) _wrap_delete_VisualAttributes, METH_VARARGS | METH_KEYWORDS },
41111 { (char *)"VisualAttributes_font_set", (PyCFunction) _wrap_VisualAttributes_font_set, METH_VARARGS | METH_KEYWORDS },
41112 { (char *)"VisualAttributes_font_get", (PyCFunction) _wrap_VisualAttributes_font_get, METH_VARARGS | METH_KEYWORDS },
41113 { (char *)"VisualAttributes_colFg_set", (PyCFunction) _wrap_VisualAttributes_colFg_set, METH_VARARGS | METH_KEYWORDS },
41114 { (char *)"VisualAttributes_colFg_get", (PyCFunction) _wrap_VisualAttributes_colFg_get, METH_VARARGS | METH_KEYWORDS },
41115 { (char *)"VisualAttributes_colBg_set", (PyCFunction) _wrap_VisualAttributes_colBg_set, METH_VARARGS | METH_KEYWORDS },
41116 { (char *)"VisualAttributes_colBg_get", (PyCFunction) _wrap_VisualAttributes_colBg_get, METH_VARARGS | METH_KEYWORDS },
41117 { (char *)"VisualAttributes_swigregister", VisualAttributes_swigregister, METH_VARARGS },
41118 { (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS },
41119 { (char *)"new_PreWindow", (PyCFunction) _wrap_new_PreWindow, METH_VARARGS | METH_KEYWORDS },
41120 { (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS },
41121 { (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS },
41122 { (char *)"Window_Destroy", (PyCFunction) _wrap_Window_Destroy, METH_VARARGS | METH_KEYWORDS },
41123 { (char *)"Window_DestroyChildren", (PyCFunction) _wrap_Window_DestroyChildren, METH_VARARGS | METH_KEYWORDS },
41124 { (char *)"Window_IsBeingDeleted", (PyCFunction) _wrap_Window_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS },
41125 { (char *)"Window_SetTitle", (PyCFunction) _wrap_Window_SetTitle, METH_VARARGS | METH_KEYWORDS },
41126 { (char *)"Window_GetTitle", (PyCFunction) _wrap_Window_GetTitle, METH_VARARGS | METH_KEYWORDS },
41127 { (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS },
41128 { (char *)"Window_GetLabel", (PyCFunction) _wrap_Window_GetLabel, METH_VARARGS | METH_KEYWORDS },
41129 { (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS },
41130 { (char *)"Window_GetName", (PyCFunction) _wrap_Window_GetName, METH_VARARGS | METH_KEYWORDS },
41131 { (char *)"Window_SetWindowVariant", (PyCFunction) _wrap_Window_SetWindowVariant, METH_VARARGS | METH_KEYWORDS },
41132 { (char *)"Window_GetWindowVariant", (PyCFunction) _wrap_Window_GetWindowVariant, METH_VARARGS | METH_KEYWORDS },
41133 { (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS },
41134 { (char *)"Window_GetId", (PyCFunction) _wrap_Window_GetId, METH_VARARGS | METH_KEYWORDS },
41135 { (char *)"Window_NewControlId", (PyCFunction) _wrap_Window_NewControlId, METH_VARARGS | METH_KEYWORDS },
41136 { (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS },
41137 { (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS },
41138 { (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS },
41139 { (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS },
41140 { (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS },
41141 { (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS },
41142 { (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS },
41143 { (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS },
f8167d6e 41144 { (char *)"Window_SetBestFittingSize", (PyCFunction) _wrap_Window_SetBestFittingSize, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41145 { (char *)"Window_Raise", (PyCFunction) _wrap_Window_Raise, METH_VARARGS | METH_KEYWORDS },
41146 { (char *)"Window_Lower", (PyCFunction) _wrap_Window_Lower, METH_VARARGS | METH_KEYWORDS },
41147 { (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS },
41148 { (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS },
41149 { (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS },
41150 { (char *)"Window_GetPosition", (PyCFunction) _wrap_Window_GetPosition, METH_VARARGS | METH_KEYWORDS },
41151 { (char *)"Window_GetPositionTuple", (PyCFunction) _wrap_Window_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
41152 { (char *)"Window_GetSize", (PyCFunction) _wrap_Window_GetSize, METH_VARARGS | METH_KEYWORDS },
41153 { (char *)"Window_GetSizeTuple", (PyCFunction) _wrap_Window_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
41154 { (char *)"Window_GetRect", (PyCFunction) _wrap_Window_GetRect, METH_VARARGS | METH_KEYWORDS },
41155 { (char *)"Window_GetClientSize", (PyCFunction) _wrap_Window_GetClientSize, METH_VARARGS | METH_KEYWORDS },
41156 { (char *)"Window_GetClientSizeTuple", (PyCFunction) _wrap_Window_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS },
41157 { (char *)"Window_GetClientAreaOrigin", (PyCFunction) _wrap_Window_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS },
41158 { (char *)"Window_GetClientRect", (PyCFunction) _wrap_Window_GetClientRect, METH_VARARGS | METH_KEYWORDS },
41159 { (char *)"Window_GetBestSize", (PyCFunction) _wrap_Window_GetBestSize, METH_VARARGS | METH_KEYWORDS },
41160 { (char *)"Window_GetBestSizeTuple", (PyCFunction) _wrap_Window_GetBestSizeTuple, METH_VARARGS | METH_KEYWORDS },
a001823c
RD
41161 { (char *)"Window_InvalidateBestSize", (PyCFunction) _wrap_Window_InvalidateBestSize, METH_VARARGS | METH_KEYWORDS },
41162 { (char *)"Window_GetBestFittingSize", (PyCFunction) _wrap_Window_GetBestFittingSize, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41163 { (char *)"Window_GetAdjustedBestSize", (PyCFunction) _wrap_Window_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS },
41164 { (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS },
41165 { (char *)"Window_CenterOnScreen", (PyCFunction) _wrap_Window_CenterOnScreen, METH_VARARGS | METH_KEYWORDS },
41166 { (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS },
41167 { (char *)"Window_Fit", (PyCFunction) _wrap_Window_Fit, METH_VARARGS | METH_KEYWORDS },
41168 { (char *)"Window_FitInside", (PyCFunction) _wrap_Window_FitInside, METH_VARARGS | METH_KEYWORDS },
03837c5c
RD
41169 { (char *)"Window_SetSizeHints", (PyCFunction) _wrap_Window_SetSizeHints, METH_VARARGS | METH_KEYWORDS },
41170 { (char *)"Window_SetSizeHintsSz", (PyCFunction) _wrap_Window_SetSizeHintsSz, METH_VARARGS | METH_KEYWORDS },
41171 { (char *)"Window_SetVirtualSizeHints", (PyCFunction) _wrap_Window_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS },
41172 { (char *)"Window_SetVirtualSizeHintsSz", (PyCFunction) _wrap_Window_SetVirtualSizeHintsSz, METH_VARARGS | METH_KEYWORDS },
908b74cd
RD
41173 { (char *)"Window_GetMaxSize", (PyCFunction) _wrap_Window_GetMaxSize, METH_VARARGS | METH_KEYWORDS },
41174 { (char *)"Window_GetMinSize", (PyCFunction) _wrap_Window_GetMinSize, METH_VARARGS | METH_KEYWORDS },
41175 { (char *)"Window_SetMinSize", (PyCFunction) _wrap_Window_SetMinSize, METH_VARARGS | METH_KEYWORDS },
41176 { (char *)"Window_SetMaxSize", (PyCFunction) _wrap_Window_SetMaxSize, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41177 { (char *)"Window_GetMinWidth", (PyCFunction) _wrap_Window_GetMinWidth, METH_VARARGS | METH_KEYWORDS },
41178 { (char *)"Window_GetMinHeight", (PyCFunction) _wrap_Window_GetMinHeight, METH_VARARGS | METH_KEYWORDS },
41179 { (char *)"Window_GetMaxWidth", (PyCFunction) _wrap_Window_GetMaxWidth, METH_VARARGS | METH_KEYWORDS },
41180 { (char *)"Window_GetMaxHeight", (PyCFunction) _wrap_Window_GetMaxHeight, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41181 { (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS },
41182 { (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS },
41183 { (char *)"Window_GetVirtualSize", (PyCFunction) _wrap_Window_GetVirtualSize, METH_VARARGS | METH_KEYWORDS },
41184 { (char *)"Window_GetVirtualSizeTuple", (PyCFunction) _wrap_Window_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS },
41185 { (char *)"Window_GetBestVirtualSize", (PyCFunction) _wrap_Window_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS },
41186 { (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS },
41187 { (char *)"Window_Hide", (PyCFunction) _wrap_Window_Hide, METH_VARARGS | METH_KEYWORDS },
41188 { (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS },
41189 { (char *)"Window_Disable", (PyCFunction) _wrap_Window_Disable, METH_VARARGS | METH_KEYWORDS },
41190 { (char *)"Window_IsShown", (PyCFunction) _wrap_Window_IsShown, METH_VARARGS | METH_KEYWORDS },
41191 { (char *)"Window_IsEnabled", (PyCFunction) _wrap_Window_IsEnabled, METH_VARARGS | METH_KEYWORDS },
41192 { (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
41193 { (char *)"Window_GetWindowStyleFlag", (PyCFunction) _wrap_Window_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS },
41194 { (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS },
41195 { (char *)"Window_IsRetained", (PyCFunction) _wrap_Window_IsRetained, METH_VARARGS | METH_KEYWORDS },
41196 { (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS },
41197 { (char *)"Window_GetExtraStyle", (PyCFunction) _wrap_Window_GetExtraStyle, METH_VARARGS | METH_KEYWORDS },
41198 { (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS },
41199 { (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS },
41200 { (char *)"Window_GetThemeEnabled", (PyCFunction) _wrap_Window_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS },
41201 { (char *)"Window_SetFocus", (PyCFunction) _wrap_Window_SetFocus, METH_VARARGS | METH_KEYWORDS },
41202 { (char *)"Window_SetFocusFromKbd", (PyCFunction) _wrap_Window_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS },
41203 { (char *)"Window_FindFocus", (PyCFunction) _wrap_Window_FindFocus, METH_VARARGS | METH_KEYWORDS },
41204 { (char *)"Window_AcceptsFocus", (PyCFunction) _wrap_Window_AcceptsFocus, METH_VARARGS | METH_KEYWORDS },
41205 { (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_Window_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS },
41206 { (char *)"Window_GetDefaultItem", (PyCFunction) _wrap_Window_GetDefaultItem, METH_VARARGS | METH_KEYWORDS },
41207 { (char *)"Window_SetDefaultItem", (PyCFunction) _wrap_Window_SetDefaultItem, METH_VARARGS | METH_KEYWORDS },
41208 { (char *)"Window_SetTmpDefaultItem", (PyCFunction) _wrap_Window_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS },
908b74cd 41209 { (char *)"Window_Navigate", (PyCFunction) _wrap_Window_Navigate, METH_VARARGS | METH_KEYWORDS },
bf26d883
RD
41210 { (char *)"Window_MoveAfterInTabOrder", (PyCFunction) _wrap_Window_MoveAfterInTabOrder, METH_VARARGS | METH_KEYWORDS },
41211 { (char *)"Window_MoveBeforeInTabOrder", (PyCFunction) _wrap_Window_MoveBeforeInTabOrder, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41212 { (char *)"Window_GetChildren", (PyCFunction) _wrap_Window_GetChildren, METH_VARARGS | METH_KEYWORDS },
41213 { (char *)"Window_GetParent", (PyCFunction) _wrap_Window_GetParent, METH_VARARGS | METH_KEYWORDS },
41214 { (char *)"Window_GetGrandParent", (PyCFunction) _wrap_Window_GetGrandParent, METH_VARARGS | METH_KEYWORDS },
41215 { (char *)"Window_IsTopLevel", (PyCFunction) _wrap_Window_IsTopLevel, METH_VARARGS | METH_KEYWORDS },
41216 { (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS },
41217 { (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS },
41218 { (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS },
41219 { (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS },
41220 { (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS },
41221 { (char *)"Window_GetEventHandler", (PyCFunction) _wrap_Window_GetEventHandler, METH_VARARGS | METH_KEYWORDS },
41222 { (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS },
41223 { (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS },
41224 { (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS },
41225 { (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS },
41226 { (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS },
41227 { (char *)"Window_GetValidator", (PyCFunction) _wrap_Window_GetValidator, METH_VARARGS | METH_KEYWORDS },
41228 { (char *)"Window_Validate", (PyCFunction) _wrap_Window_Validate, METH_VARARGS | METH_KEYWORDS },
41229 { (char *)"Window_TransferDataToWindow", (PyCFunction) _wrap_Window_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS },
41230 { (char *)"Window_TransferDataFromWindow", (PyCFunction) _wrap_Window_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS },
41231 { (char *)"Window_InitDialog", (PyCFunction) _wrap_Window_InitDialog, METH_VARARGS | METH_KEYWORDS },
41232 { (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS },
41233 { (char *)"Window_GetAcceleratorTable", (PyCFunction) _wrap_Window_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS },
41234 { (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS },
41235 { (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS },
41236 { (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS },
41237 { (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS },
41238 { (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS },
41239 { (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS },
41240 { (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS },
41241 { (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS },
41242 { (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS },
41243 { (char *)"Window_CaptureMouse", (PyCFunction) _wrap_Window_CaptureMouse, METH_VARARGS | METH_KEYWORDS },
41244 { (char *)"Window_ReleaseMouse", (PyCFunction) _wrap_Window_ReleaseMouse, METH_VARARGS | METH_KEYWORDS },
41245 { (char *)"Window_GetCapture", (PyCFunction) _wrap_Window_GetCapture, METH_VARARGS | METH_KEYWORDS },
41246 { (char *)"Window_HasCapture", (PyCFunction) _wrap_Window_HasCapture, METH_VARARGS | METH_KEYWORDS },
41247 { (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS },
41248 { (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS },
41249 { (char *)"Window_Update", (PyCFunction) _wrap_Window_Update, METH_VARARGS | METH_KEYWORDS },
41250 { (char *)"Window_ClearBackground", (PyCFunction) _wrap_Window_ClearBackground, METH_VARARGS | METH_KEYWORDS },
41251 { (char *)"Window_Freeze", (PyCFunction) _wrap_Window_Freeze, METH_VARARGS | METH_KEYWORDS },
41252 { (char *)"Window_Thaw", (PyCFunction) _wrap_Window_Thaw, METH_VARARGS | METH_KEYWORDS },
41253 { (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS },
41254 { (char *)"Window_GetUpdateRegion", (PyCFunction) _wrap_Window_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS },
41255 { (char *)"Window_GetUpdateClientRect", (PyCFunction) _wrap_Window_GetUpdateClientRect, METH_VARARGS | METH_KEYWORDS },
41256 { (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS },
41257 { (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS },
41258 { (char *)"Window_IsExposedRect", (PyCFunction) _wrap_Window_IsExposedRect, METH_VARARGS | METH_KEYWORDS },
41259 { (char *)"Window_GetDefaultAttributes", (PyCFunction) _wrap_Window_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
41260 { (char *)"Window_GetClassDefaultAttributes", (PyCFunction) _wrap_Window_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
41261 { (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
412d302d 41262 { (char *)"Window_SetOwnBackgroundColour", (PyCFunction) _wrap_Window_SetOwnBackgroundColour, METH_VARARGS | METH_KEYWORDS },
d55e5bfc 41263 { (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS },
fa47d7a7 41264 { (char *)"Window_SetOwnForegroundColour", (PyCFunction) _wrap_Window_SetOwnForegroundColour, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41265 { (char *)"Window_GetBackgroundColour", (PyCFunction) _wrap_Window_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
41266 { (char *)"Window_GetForegroundColour", (PyCFunction) _wrap_Window_GetForegroundColour, METH_VARARGS | METH_KEYWORDS },
41267 { (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS },
41268 { (char *)"Window_GetCursor", (PyCFunction) _wrap_Window_GetCursor, METH_VARARGS | METH_KEYWORDS },
41269 { (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS },
fa47d7a7 41270 { (char *)"Window_SetOwnFont", (PyCFunction) _wrap_Window_SetOwnFont, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41271 { (char *)"Window_GetFont", (PyCFunction) _wrap_Window_GetFont, METH_VARARGS | METH_KEYWORDS },
41272 { (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS },
41273 { (char *)"Window_GetCaret", (PyCFunction) _wrap_Window_GetCaret, METH_VARARGS | METH_KEYWORDS },
41274 { (char *)"Window_GetCharHeight", (PyCFunction) _wrap_Window_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
41275 { (char *)"Window_GetCharWidth", (PyCFunction) _wrap_Window_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
41276 { (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
41277 { (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
41278 { (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS },
41279 { (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS },
41280 { (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS },
41281 { (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS },
41282 { (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS },
41283 { (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS },
41284 { (char *)"Window_GetBorder", _wrap_Window_GetBorder, METH_VARARGS },
41285 { (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS },
41286 { (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS },
41287 { (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS },
41288 { (char *)"Window_GetHandle", (PyCFunction) _wrap_Window_GetHandle, METH_VARARGS | METH_KEYWORDS },
41289 { (char *)"Window_OnPaint", (PyCFunction) _wrap_Window_OnPaint, METH_VARARGS | METH_KEYWORDS },
41290 { (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS },
41291 { (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS },
41292 { (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS },
41293 { (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS },
41294 { (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS },
41295 { (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS },
41296 { (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS },
41297 { (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS },
41298 { (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS },
41299 { (char *)"Window_LineUp", (PyCFunction) _wrap_Window_LineUp, METH_VARARGS | METH_KEYWORDS },
41300 { (char *)"Window_LineDown", (PyCFunction) _wrap_Window_LineDown, METH_VARARGS | METH_KEYWORDS },
41301 { (char *)"Window_PageUp", (PyCFunction) _wrap_Window_PageUp, METH_VARARGS | METH_KEYWORDS },
41302 { (char *)"Window_PageDown", (PyCFunction) _wrap_Window_PageDown, METH_VARARGS | METH_KEYWORDS },
41303 { (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS },
41304 { (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS },
41305 { (char *)"Window_GetHelpText", (PyCFunction) _wrap_Window_GetHelpText, METH_VARARGS | METH_KEYWORDS },
41306 { (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS },
41307 { (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS },
41308 { (char *)"Window_GetToolTip", (PyCFunction) _wrap_Window_GetToolTip, METH_VARARGS | METH_KEYWORDS },
41309 { (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS },
41310 { (char *)"Window_GetDropTarget", (PyCFunction) _wrap_Window_GetDropTarget, METH_VARARGS | METH_KEYWORDS },
41311 { (char *)"Window_DragAcceptFiles", (PyCFunction) _wrap_Window_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS },
41312 { (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS },
41313 { (char *)"Window_GetConstraints", (PyCFunction) _wrap_Window_GetConstraints, METH_VARARGS | METH_KEYWORDS },
41314 { (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS },
41315 { (char *)"Window_GetAutoLayout", (PyCFunction) _wrap_Window_GetAutoLayout, METH_VARARGS | METH_KEYWORDS },
41316 { (char *)"Window_Layout", (PyCFunction) _wrap_Window_Layout, METH_VARARGS | METH_KEYWORDS },
41317 { (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS },
41318 { (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS },
41319 { (char *)"Window_GetSizer", (PyCFunction) _wrap_Window_GetSizer, METH_VARARGS | METH_KEYWORDS },
41320 { (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS },
41321 { (char *)"Window_GetContainingSizer", (PyCFunction) _wrap_Window_GetContainingSizer, METH_VARARGS | METH_KEYWORDS },
41322 { (char *)"Window_InheritAttributes", (PyCFunction) _wrap_Window_InheritAttributes, METH_VARARGS | METH_KEYWORDS },
41323 { (char *)"Window_ShouldInheritColours", (PyCFunction) _wrap_Window_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS },
41324 { (char *)"Window_swigregister", Window_swigregister, METH_VARARGS },
41325 { (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS },
41326 { (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS },
41327 { (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS },
41328 { (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS },
41329 { (char *)"new_Validator", (PyCFunction) _wrap_new_Validator, METH_VARARGS | METH_KEYWORDS },
41330 { (char *)"Validator_Clone", (PyCFunction) _wrap_Validator_Clone, METH_VARARGS | METH_KEYWORDS },
41331 { (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS },
41332 { (char *)"Validator_TransferToWindow", (PyCFunction) _wrap_Validator_TransferToWindow, METH_VARARGS | METH_KEYWORDS },
41333 { (char *)"Validator_TransferFromWindow", (PyCFunction) _wrap_Validator_TransferFromWindow, METH_VARARGS | METH_KEYWORDS },
41334 { (char *)"Validator_GetWindow", (PyCFunction) _wrap_Validator_GetWindow, METH_VARARGS | METH_KEYWORDS },
41335 { (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS },
41336 { (char *)"Validator_IsSilent", (PyCFunction) _wrap_Validator_IsSilent, METH_VARARGS | METH_KEYWORDS },
41337 { (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS },
41338 { (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS },
41339 { (char *)"new_PyValidator", (PyCFunction) _wrap_new_PyValidator, METH_VARARGS | METH_KEYWORDS },
41340 { (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
41341 { (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS },
41342 { (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS },
41343 { (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS },
41344 { (char *)"Menu_AppendSeparator", (PyCFunction) _wrap_Menu_AppendSeparator, METH_VARARGS | METH_KEYWORDS },
41345 { (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS },
41346 { (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS },
41347 { (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS },
41348 { (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS },
41349 { (char *)"Menu_Break", (PyCFunction) _wrap_Menu_Break, METH_VARARGS | METH_KEYWORDS },
41350 { (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS },
41351 { (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS },
41352 { (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS },
41353 { (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS },
41354 { (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS },
41355 { (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS },
41356 { (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS },
41357 { (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS },
41358 { (char *)"Menu_PrependSeparator", (PyCFunction) _wrap_Menu_PrependSeparator, METH_VARARGS | METH_KEYWORDS },
41359 { (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS },
41360 { (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS },
41361 { (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS },
41362 { (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS },
41363 { (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS },
41364 { (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS },
41365 { (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS },
41366 { (char *)"Menu_Destroy", (PyCFunction) _wrap_Menu_Destroy, METH_VARARGS | METH_KEYWORDS },
41367 { (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS },
41368 { (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS },
41369 { (char *)"Menu_GetMenuItemCount", (PyCFunction) _wrap_Menu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS },
41370 { (char *)"Menu_GetMenuItems", (PyCFunction) _wrap_Menu_GetMenuItems, METH_VARARGS | METH_KEYWORDS },
41371 { (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS },
41372 { (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS },
41373 { (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS },
41374 { (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS },
41375 { (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS },
41376 { (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS },
41377 { (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS },
41378 { (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS },
41379 { (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS },
41380 { (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS },
41381 { (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS },
41382 { (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS },
41383 { (char *)"Menu_GetTitle", (PyCFunction) _wrap_Menu_GetTitle, METH_VARARGS | METH_KEYWORDS },
41384 { (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS },
41385 { (char *)"Menu_GetEventHandler", (PyCFunction) _wrap_Menu_GetEventHandler, METH_VARARGS | METH_KEYWORDS },
41386 { (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS },
41387 { (char *)"Menu_GetInvokingWindow", (PyCFunction) _wrap_Menu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS },
41388 { (char *)"Menu_GetStyle", (PyCFunction) _wrap_Menu_GetStyle, METH_VARARGS | METH_KEYWORDS },
41389 { (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS },
41390 { (char *)"Menu_GetMenuBar", (PyCFunction) _wrap_Menu_GetMenuBar, METH_VARARGS | METH_KEYWORDS },
41391 { (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS },
41392 { (char *)"Menu_Detach", (PyCFunction) _wrap_Menu_Detach, METH_VARARGS | METH_KEYWORDS },
41393 { (char *)"Menu_IsAttached", (PyCFunction) _wrap_Menu_IsAttached, METH_VARARGS | METH_KEYWORDS },
41394 { (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS },
41395 { (char *)"Menu_GetParent", (PyCFunction) _wrap_Menu_GetParent, METH_VARARGS | METH_KEYWORDS },
41396 { (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS },
41397 { (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS },
41398 { (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS },
41399 { (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS },
41400 { (char *)"MenuBar_GetMenuCount", (PyCFunction) _wrap_MenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS },
41401 { (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS },
41402 { (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS },
41403 { (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS },
41404 { (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS },
41405 { (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS },
41406 { (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS },
41407 { (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS },
41408 { (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS },
41409 { (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS },
41410 { (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS },
41411 { (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS },
41412 { (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS },
41413 { (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS },
41414 { (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS },
41415 { (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS },
41416 { (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS },
41417 { (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS },
41418 { (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS },
41419 { (char *)"MenuBar_GetFrame", (PyCFunction) _wrap_MenuBar_GetFrame, METH_VARARGS | METH_KEYWORDS },
41420 { (char *)"MenuBar_IsAttached", (PyCFunction) _wrap_MenuBar_IsAttached, METH_VARARGS | METH_KEYWORDS },
41421 { (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS },
41422 { (char *)"MenuBar_Detach", (PyCFunction) _wrap_MenuBar_Detach, METH_VARARGS | METH_KEYWORDS },
41423 { (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS },
41424 { (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS },
41425 { (char *)"MenuItem_GetMenu", (PyCFunction) _wrap_MenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS },
41426 { (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS },
41427 { (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS },
41428 { (char *)"MenuItem_GetId", (PyCFunction) _wrap_MenuItem_GetId, METH_VARARGS | METH_KEYWORDS },
41429 { (char *)"MenuItem_IsSeparator", (PyCFunction) _wrap_MenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS },
41430 { (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS },
41431 { (char *)"MenuItem_GetLabel", (PyCFunction) _wrap_MenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS },
41432 { (char *)"MenuItem_GetText", (PyCFunction) _wrap_MenuItem_GetText, METH_VARARGS | METH_KEYWORDS },
41433 { (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS },
41434 { (char *)"MenuItem_GetKind", (PyCFunction) _wrap_MenuItem_GetKind, METH_VARARGS | METH_KEYWORDS },
41435 { (char *)"MenuItem_SetKind", (PyCFunction) _wrap_MenuItem_SetKind, METH_VARARGS | METH_KEYWORDS },
41436 { (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS },
41437 { (char *)"MenuItem_IsCheckable", (PyCFunction) _wrap_MenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS },
41438 { (char *)"MenuItem_IsSubMenu", (PyCFunction) _wrap_MenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS },
41439 { (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS },
41440 { (char *)"MenuItem_GetSubMenu", (PyCFunction) _wrap_MenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS },
41441 { (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS },
41442 { (char *)"MenuItem_IsEnabled", (PyCFunction) _wrap_MenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS },
41443 { (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS },
41444 { (char *)"MenuItem_IsChecked", (PyCFunction) _wrap_MenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS },
41445 { (char *)"MenuItem_Toggle", (PyCFunction) _wrap_MenuItem_Toggle, METH_VARARGS | METH_KEYWORDS },
41446 { (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS },
41447 { (char *)"MenuItem_GetHelp", (PyCFunction) _wrap_MenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS },
41448 { (char *)"MenuItem_GetAccel", (PyCFunction) _wrap_MenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS },
41449 { (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS },
41450 { (char *)"MenuItem_SetFont", (PyCFunction) _wrap_MenuItem_SetFont, METH_VARARGS | METH_KEYWORDS },
41451 { (char *)"MenuItem_GetFont", (PyCFunction) _wrap_MenuItem_GetFont, METH_VARARGS | METH_KEYWORDS },
41452 { (char *)"MenuItem_SetTextColour", (PyCFunction) _wrap_MenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS },
41453 { (char *)"MenuItem_GetTextColour", (PyCFunction) _wrap_MenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS },
41454 { (char *)"MenuItem_SetBackgroundColour", (PyCFunction) _wrap_MenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
41455 { (char *)"MenuItem_GetBackgroundColour", (PyCFunction) _wrap_MenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS },
41456 { (char *)"MenuItem_SetBitmaps", (PyCFunction) _wrap_MenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS },
41457 { (char *)"MenuItem_SetDisabledBitmap", (PyCFunction) _wrap_MenuItem_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS },
41458 { (char *)"MenuItem_GetDisabledBitmap", (PyCFunction) _wrap_MenuItem_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS },
41459 { (char *)"MenuItem_SetMarginWidth", (PyCFunction) _wrap_MenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS },
41460 { (char *)"MenuItem_GetMarginWidth", (PyCFunction) _wrap_MenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS },
41461 { (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_MenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS },
41462 { (char *)"MenuItem_IsOwnerDrawn", (PyCFunction) _wrap_MenuItem_IsOwnerDrawn, METH_VARARGS | METH_KEYWORDS },
41463 { (char *)"MenuItem_SetOwnerDrawn", (PyCFunction) _wrap_MenuItem_SetOwnerDrawn, METH_VARARGS | METH_KEYWORDS },
41464 { (char *)"MenuItem_ResetOwnerDrawn", (PyCFunction) _wrap_MenuItem_ResetOwnerDrawn, METH_VARARGS | METH_KEYWORDS },
41465 { (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS },
41466 { (char *)"MenuItem_GetBitmap", (PyCFunction) _wrap_MenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS },
41467 { (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS },
41468 { (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS },
41469 { (char *)"new_PreControl", (PyCFunction) _wrap_new_PreControl, METH_VARARGS | METH_KEYWORDS },
41470 { (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS },
41471 { (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS },
41472 { (char *)"Control_GetLabel", (PyCFunction) _wrap_Control_GetLabel, METH_VARARGS | METH_KEYWORDS },
41473 { (char *)"Control_SetLabel", (PyCFunction) _wrap_Control_SetLabel, METH_VARARGS | METH_KEYWORDS },
41474 { (char *)"Control_GetClassDefaultAttributes", (PyCFunction) _wrap_Control_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS },
41475 { (char *)"Control_swigregister", Control_swigregister, METH_VARARGS },
41476 { (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS },
41477 { (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS },
41478 { (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS },
41479 { (char *)"ItemContainer_Clear", (PyCFunction) _wrap_ItemContainer_Clear, METH_VARARGS | METH_KEYWORDS },
41480 { (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS },
41481 { (char *)"ItemContainer_GetCount", (PyCFunction) _wrap_ItemContainer_GetCount, METH_VARARGS | METH_KEYWORDS },
41482 { (char *)"ItemContainer_IsEmpty", (PyCFunction) _wrap_ItemContainer_IsEmpty, METH_VARARGS | METH_KEYWORDS },
41483 { (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS },
41484 { (char *)"ItemContainer_GetStrings", (PyCFunction) _wrap_ItemContainer_GetStrings, METH_VARARGS | METH_KEYWORDS },
41485 { (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS },
41486 { (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS },
41487 { (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS },
41488 { (char *)"ItemContainer_GetSelection", (PyCFunction) _wrap_ItemContainer_GetSelection, METH_VARARGS | METH_KEYWORDS },
41489 { (char *)"ItemContainer_GetStringSelection", (PyCFunction) _wrap_ItemContainer_GetStringSelection, METH_VARARGS | METH_KEYWORDS },
41490 { (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS },
41491 { (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS },
41492 { (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS },
41493 { (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS },
41494 { (char *)"new_SizerItem", (PyCFunction) _wrap_new_SizerItem, METH_VARARGS | METH_KEYWORDS },
d55e5bfc 41495 { (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS },
248ed943 41496 { (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41497 { (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS },
41498 { (char *)"SizerItem_DeleteWindows", (PyCFunction) _wrap_SizerItem_DeleteWindows, METH_VARARGS | METH_KEYWORDS },
41499 { (char *)"SizerItem_DetachSizer", (PyCFunction) _wrap_SizerItem_DetachSizer, METH_VARARGS | METH_KEYWORDS },
41500 { (char *)"SizerItem_GetSize", (PyCFunction) _wrap_SizerItem_GetSize, METH_VARARGS | METH_KEYWORDS },
41501 { (char *)"SizerItem_CalcMin", (PyCFunction) _wrap_SizerItem_CalcMin, METH_VARARGS | METH_KEYWORDS },
41502 { (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS },
41503 { (char *)"SizerItem_GetMinSize", (PyCFunction) _wrap_SizerItem_GetMinSize, METH_VARARGS | METH_KEYWORDS },
a001823c 41504 { (char *)"SizerItem_GetMinSizeWithBorder", (PyCFunction) _wrap_SizerItem_GetMinSizeWithBorder, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41505 { (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS },
41506 { (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS },
41507 { (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS },
41508 { (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS },
41509 { (char *)"SizerItem_GetRatio", (PyCFunction) _wrap_SizerItem_GetRatio, METH_VARARGS | METH_KEYWORDS },
41510 { (char *)"SizerItem_IsWindow", (PyCFunction) _wrap_SizerItem_IsWindow, METH_VARARGS | METH_KEYWORDS },
41511 { (char *)"SizerItem_IsSizer", (PyCFunction) _wrap_SizerItem_IsSizer, METH_VARARGS | METH_KEYWORDS },
41512 { (char *)"SizerItem_IsSpacer", (PyCFunction) _wrap_SizerItem_IsSpacer, METH_VARARGS | METH_KEYWORDS },
41513 { (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS },
41514 { (char *)"SizerItem_GetProportion", (PyCFunction) _wrap_SizerItem_GetProportion, METH_VARARGS | METH_KEYWORDS },
41515 { (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS },
41516 { (char *)"SizerItem_GetFlag", (PyCFunction) _wrap_SizerItem_GetFlag, METH_VARARGS | METH_KEYWORDS },
41517 { (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS },
41518 { (char *)"SizerItem_GetBorder", (PyCFunction) _wrap_SizerItem_GetBorder, METH_VARARGS | METH_KEYWORDS },
41519 { (char *)"SizerItem_GetWindow", (PyCFunction) _wrap_SizerItem_GetWindow, METH_VARARGS | METH_KEYWORDS },
41520 { (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS },
41521 { (char *)"SizerItem_GetSizer", (PyCFunction) _wrap_SizerItem_GetSizer, METH_VARARGS | METH_KEYWORDS },
41522 { (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS },
41523 { (char *)"SizerItem_GetSpacer", (PyCFunction) _wrap_SizerItem_GetSpacer, METH_VARARGS | METH_KEYWORDS },
41524 { (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS },
41525 { (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS },
41526 { (char *)"SizerItem_IsShown", (PyCFunction) _wrap_SizerItem_IsShown, METH_VARARGS | METH_KEYWORDS },
41527 { (char *)"SizerItem_GetPosition", (PyCFunction) _wrap_SizerItem_GetPosition, METH_VARARGS | METH_KEYWORDS },
41528 { (char *)"SizerItem_GetUserData", (PyCFunction) _wrap_SizerItem_GetUserData, METH_VARARGS | METH_KEYWORDS },
41529 { (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS },
41530 { (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS },
41531 { (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS },
41532 { (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS },
41533 { (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS },
41534 { (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS },
1a6bba1e 41535 { (char *)"Sizer_Detach", (PyCFunction) _wrap_Sizer_Detach, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41536 { (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS },
41537 { (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS },
41538 { (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS },
41539 { (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS },
41540 { (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS },
41541 { (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS },
41542 { (char *)"Sizer_GetSize", (PyCFunction) _wrap_Sizer_GetSize, METH_VARARGS | METH_KEYWORDS },
41543 { (char *)"Sizer_GetPosition", (PyCFunction) _wrap_Sizer_GetPosition, METH_VARARGS | METH_KEYWORDS },
41544 { (char *)"Sizer_GetMinSize", (PyCFunction) _wrap_Sizer_GetMinSize, METH_VARARGS | METH_KEYWORDS },
41545 { (char *)"Sizer_RecalcSizes", (PyCFunction) _wrap_Sizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS },
41546 { (char *)"Sizer_CalcMin", (PyCFunction) _wrap_Sizer_CalcMin, METH_VARARGS | METH_KEYWORDS },
41547 { (char *)"Sizer_Layout", (PyCFunction) _wrap_Sizer_Layout, METH_VARARGS | METH_KEYWORDS },
41548 { (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS },
41549 { (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS },
41550 { (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS },
41551 { (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS },
41552 { (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS },
41553 { (char *)"Sizer_DeleteWindows", (PyCFunction) _wrap_Sizer_DeleteWindows, METH_VARARGS | METH_KEYWORDS },
41554 { (char *)"Sizer_GetChildren", (PyCFunction) _wrap_Sizer_GetChildren, METH_VARARGS | METH_KEYWORDS },
41555 { (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41556 { (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS },
41557 { (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS },
41558 { (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS },
41559 { (char *)"new_PySizer", (PyCFunction) _wrap_new_PySizer, METH_VARARGS | METH_KEYWORDS },
41560 { (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
41561 { (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS },
41562 { (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS },
41563 { (char *)"BoxSizer_GetOrientation", (PyCFunction) _wrap_BoxSizer_GetOrientation, METH_VARARGS | METH_KEYWORDS },
41564 { (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41565 { (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS },
41566 { (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS },
41567 { (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction) _wrap_StaticBoxSizer_GetStaticBox, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41568 { (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS },
41569 { (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41570 { (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS },
41571 { (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS },
41572 { (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS },
41573 { (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS },
41574 { (char *)"GridSizer_GetCols", (PyCFunction) _wrap_GridSizer_GetCols, METH_VARARGS | METH_KEYWORDS },
41575 { (char *)"GridSizer_GetRows", (PyCFunction) _wrap_GridSizer_GetRows, METH_VARARGS | METH_KEYWORDS },
41576 { (char *)"GridSizer_GetVGap", (PyCFunction) _wrap_GridSizer_GetVGap, METH_VARARGS | METH_KEYWORDS },
41577 { (char *)"GridSizer_GetHGap", (PyCFunction) _wrap_GridSizer_GetHGap, METH_VARARGS | METH_KEYWORDS },
41578 { (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS },
41579 { (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41580 { (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS },
41581 { (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS },
41582 { (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS },
41583 { (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS },
41584 { (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS },
41585 { (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_GetFlexibleDirection, METH_VARARGS | METH_KEYWORDS },
41586 { (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS },
41587 { (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS },
41588 { (char *)"FlexGridSizer_GetRowHeights", (PyCFunction) _wrap_FlexGridSizer_GetRowHeights, METH_VARARGS | METH_KEYWORDS },
41589 { (char *)"FlexGridSizer_GetColWidths", (PyCFunction) _wrap_FlexGridSizer_GetColWidths, METH_VARARGS | METH_KEYWORDS },
41590 { (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS },
41591 { (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS },
41592 { (char *)"GBPosition_GetRow", (PyCFunction) _wrap_GBPosition_GetRow, METH_VARARGS | METH_KEYWORDS },
41593 { (char *)"GBPosition_GetCol", (PyCFunction) _wrap_GBPosition_GetCol, METH_VARARGS | METH_KEYWORDS },
41594 { (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS },
41595 { (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS },
41596 { (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS },
41597 { (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS },
41598 { (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS },
41599 { (char *)"GBPosition_Get", (PyCFunction) _wrap_GBPosition_Get, METH_VARARGS | METH_KEYWORDS },
41600 { (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS },
41601 { (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS },
41602 { (char *)"GBSpan_GetRowspan", (PyCFunction) _wrap_GBSpan_GetRowspan, METH_VARARGS | METH_KEYWORDS },
41603 { (char *)"GBSpan_GetColspan", (PyCFunction) _wrap_GBSpan_GetColspan, METH_VARARGS | METH_KEYWORDS },
41604 { (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS },
41605 { (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS },
41606 { (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS },
41607 { (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS },
41608 { (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS },
41609 { (char *)"GBSpan_Get", (PyCFunction) _wrap_GBSpan_Get, METH_VARARGS | METH_KEYWORDS },
41610 { (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS },
41611 { (char *)"new_GBSizerItem", (PyCFunction) _wrap_new_GBSizerItem, METH_VARARGS | METH_KEYWORDS },
41612 { (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS },
41613 { (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS },
41614 { (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS },
41615 { (char *)"GBSizerItem_GetPos", (PyCFunction) _wrap_GBSizerItem_GetPos, METH_VARARGS | METH_KEYWORDS },
41616 { (char *)"GBSizerItem_GetSpan", (PyCFunction) _wrap_GBSizerItem_GetSpan, METH_VARARGS | METH_KEYWORDS },
41617 { (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS },
41618 { (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS },
248ed943
RD
41619 { (char *)"GBSizerItem_Intersects", (PyCFunction) _wrap_GBSizerItem_Intersects, METH_VARARGS | METH_KEYWORDS },
41620 { (char *)"GBSizerItem_IntersectsPos", (PyCFunction) _wrap_GBSizerItem_IntersectsPos, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41621 { (char *)"GBSizerItem_GetEndPos", (PyCFunction) _wrap_GBSizerItem_GetEndPos, METH_VARARGS | METH_KEYWORDS },
41622 { (char *)"GBSizerItem_GetGBSizer", (PyCFunction) _wrap_GBSizerItem_GetGBSizer, METH_VARARGS | METH_KEYWORDS },
41623 { (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS },
41624 { (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS },
41625 { (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS },
41626 { (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS },
41627 { (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS },
41628 { (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_GetEmptyCellSize, METH_VARARGS | METH_KEYWORDS },
41629 { (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS },
41630 { (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS },
41631 { (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS },
41632 { (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS },
41633 { (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS },
41634 { (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS },
41635 { (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS },
41636 { (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS },
248ed943
RD
41637 { (char *)"GridBagSizer_CheckForIntersection", (PyCFunction) _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS | METH_KEYWORDS },
41638 { (char *)"GridBagSizer_CheckForIntersectionPos", (PyCFunction) _wrap_GridBagSizer_CheckForIntersectionPos, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
41639 { (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS },
41640 { (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS },
41641 { (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS },
41642 { (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS },
41643 { (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS },
41644 { (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS },
41645 { (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS },
41646 { (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS },
41647 { (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS },
41648 { (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction) _wrap_IndividualLayoutConstraint_Unconstrained, METH_VARARGS | METH_KEYWORDS },
41649 { (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction) _wrap_IndividualLayoutConstraint_AsIs, METH_VARARGS | METH_KEYWORDS },
41650 { (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherWindow, METH_VARARGS | METH_KEYWORDS },
41651 { (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMyEdge, METH_VARARGS | METH_KEYWORDS },
41652 { (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS },
41653 { (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS },
41654 { (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_GetMargin, METH_VARARGS | METH_KEYWORDS },
41655 { (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS },
41656 { (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_GetValue, METH_VARARGS | METH_KEYWORDS },
41657 { (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction) _wrap_IndividualLayoutConstraint_GetPercent, METH_VARARGS | METH_KEYWORDS },
41658 { (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetOtherEdge, METH_VARARGS | METH_KEYWORDS },
41659 { (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_GetDone, METH_VARARGS | METH_KEYWORDS },
41660 { (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS },
41661 { (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_GetRelationship, METH_VARARGS | METH_KEYWORDS },
41662 { (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS },
41663 { (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS },
41664 { (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS },
41665 { (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS },
41666 { (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS },
41667 { (char *)"LayoutConstraints_left_get", (PyCFunction) _wrap_LayoutConstraints_left_get, METH_VARARGS | METH_KEYWORDS },
41668 { (char *)"LayoutConstraints_top_get", (PyCFunction) _wrap_LayoutConstraints_top_get, METH_VARARGS | METH_KEYWORDS },
41669 { (char *)"LayoutConstraints_right_get", (PyCFunction) _wrap_LayoutConstraints_right_get, METH_VARARGS | METH_KEYWORDS },
41670 { (char *)"LayoutConstraints_bottom_get", (PyCFunction) _wrap_LayoutConstraints_bottom_get, METH_VARARGS | METH_KEYWORDS },
41671 { (char *)"LayoutConstraints_width_get", (PyCFunction) _wrap_LayoutConstraints_width_get, METH_VARARGS | METH_KEYWORDS },
41672 { (char *)"LayoutConstraints_height_get", (PyCFunction) _wrap_LayoutConstraints_height_get, METH_VARARGS | METH_KEYWORDS },
41673 { (char *)"LayoutConstraints_centreX_get", (PyCFunction) _wrap_LayoutConstraints_centreX_get, METH_VARARGS | METH_KEYWORDS },
41674 { (char *)"LayoutConstraints_centreY_get", (PyCFunction) _wrap_LayoutConstraints_centreY_get, METH_VARARGS | METH_KEYWORDS },
41675 { (char *)"new_LayoutConstraints", (PyCFunction) _wrap_new_LayoutConstraints, METH_VARARGS | METH_KEYWORDS },
41676 { (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS },
41677 { (char *)"LayoutConstraints_AreSatisfied", (PyCFunction) _wrap_LayoutConstraints_AreSatisfied, METH_VARARGS | METH_KEYWORDS },
41678 { (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS },
41679 { NULL, NULL }
41680};
41681
41682
41683/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
41684
41685static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) {
41686 return (void *)((wxSizerItem *) ((wxGBSizerItem *) x));
41687}
41688static void *_p_wxBoxSizerTo_p_wxSizer(void *x) {
41689 return (void *)((wxSizer *) ((wxBoxSizer *) x));
41690}
41691static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) {
41692 return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x));
41693}
41694static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) {
41695 return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
41696}
41697static void *_p_wxGridSizerTo_p_wxSizer(void *x) {
41698 return (void *)((wxSizer *) ((wxGridSizer *) x));
41699}
41700static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) {
41701 return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x));
41702}
41703static void *_p_wxPySizerTo_p_wxSizer(void *x) {
41704 return (void *)((wxSizer *) ((wxPySizer *) x));
41705}
41706static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) {
41707 return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x));
41708}
41709static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
41710 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
41711}
41712static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
41713 return (void *)((wxEvent *) ((wxMenuEvent *) x));
41714}
41715static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
41716 return (void *)((wxEvent *) ((wxCloseEvent *) x));
41717}
41718static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
41719 return (void *)((wxEvent *) ((wxMouseEvent *) x));
41720}
41721static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
41722 return (void *)((wxEvent *) ((wxEraseEvent *) x));
41723}
41724static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
41725 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
41726}
41727static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
41728 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
41729}
41730static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
41731 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
41732}
41733static void *_p_wxPyEventTo_p_wxEvent(void *x) {
41734 return (void *)((wxEvent *) ((wxPyEvent *) x));
41735}
41736static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
41737 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
41738}
41739static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
41740 return (void *)((wxEvent *) ((wxIdleEvent *) x));
41741}
41742static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
41743 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
41744}
41745static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
41746 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
41747}
41748static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
41749 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
41750}
41751static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
41752 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
41753}
41754static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
41755 return (void *)((wxEvent *) ((wxActivateEvent *) x));
41756}
41757static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
41758 return (void *)((wxEvent *) ((wxSizeEvent *) x));
41759}
41760static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
41761 return (void *)((wxEvent *) ((wxMoveEvent *) x));
41762}
41763static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
41764 return (void *)((wxEvent *) ((wxPaintEvent *) x));
41765}
41766static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
41767 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
41768}
41769static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
41770 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
41771}
41772static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
41773 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
41774}
41775static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
41776 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
41777}
41778static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
41779 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
41780}
41781static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
41782 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
41783}
41784static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
41785 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
41786}
41787static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
41788 return (void *)((wxEvent *) ((wxFocusEvent *) x));
41789}
41790static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
41791 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
41792}
41793static void *_p_wxShowEventTo_p_wxEvent(void *x) {
41794 return (void *)((wxEvent *) ((wxShowEvent *) x));
41795}
41796static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
41797 return (void *)((wxEvent *) ((wxCommandEvent *) x));
41798}
41799static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
41800 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
41801}
41802static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
41803 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
41804}
41805static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
41806 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
41807}
41808static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
41809 return (void *)((wxEvent *) ((wxKeyEvent *) x));
41810}
41811static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
41812 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
41813}
41814static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) {
41815 return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x));
41816}
41817static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) {
41818 return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x));
41819}
41820static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) {
41821 return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x));
41822}
41823static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
41824 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
41825}
41826static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
41827 return (void *)((wxControl *) ((wxControlWithItems *) x));
41828}
41829static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
41830 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
41831}
41832static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
41833 return (void *)((wxEvtHandler *) ((wxWindow *) x));
41834}
41835static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
41836 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
41837}
41838static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
41839 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
41840}
41841static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
41842 return (void *)((wxEvtHandler *) ((wxValidator *) x));
41843}
41844static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
41845 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
41846}
41847static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
41848 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
41849}
41850static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
41851 return (void *)((wxEvtHandler *) ((wxMenu *) x));
41852}
41853static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) {
41854 return (void *)((wxCURHandler *) ((wxANIHandler *) x));
41855}
41856static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) {
41857 return (void *)((wxICOHandler *) ((wxCURHandler *) x));
41858}
41859static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) {
41860 return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x));
41861}
41862static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) {
41863 return (void *)((wxBMPHandler *) ((wxICOHandler *) x));
41864}
41865static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) {
41866 return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x));
41867}
41868static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) {
41869 return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
41870}
41871static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) {
41872 return (void *)((wxImageHandler *) ((wxBMPHandler *) x));
41873}
41874static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) {
41875 return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x));
41876}
41877static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) {
41878 return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
41879}
41880static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) {
41881 return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
41882}
41883static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) {
41884 return (void *)((wxImageHandler *) ((wxPNGHandler *) x));
41885}
41886static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) {
41887 return (void *)((wxImageHandler *) ((wxGIFHandler *) x));
41888}
41889static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) {
41890 return (void *)((wxImageHandler *) ((wxPCXHandler *) x));
41891}
41892static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) {
41893 return (void *)((wxImageHandler *) ((wxJPEGHandler *) x));
41894}
41895static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) {
41896 return (void *)((wxImageHandler *) ((wxPNMHandler *) x));
41897}
41898static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) {
41899 return (void *)((wxImageHandler *) ((wxXPMHandler *) x));
41900}
41901static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) {
41902 return (void *)((wxImageHandler *) ((wxTIFFHandler *) x));
41903}
41904static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) {
41905 return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x));
41906}
41907static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) {
41908 return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x));
41909}
41910static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) {
41911 return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x));
41912}
41913static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) {
41914 return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x));
41915}
41916static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
41917 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
41918}
41919static void *_p_wxMenuEventTo_p_wxObject(void *x) {
41920 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
41921}
41922static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
41923 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
41924}
41925static void *_p_wxEraseEventTo_p_wxObject(void *x) {
41926 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
41927}
41928static void *_p_wxMouseEventTo_p_wxObject(void *x) {
41929 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
41930}
41931static void *_p_wxCloseEventTo_p_wxObject(void *x) {
41932 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
41933}
41934static void *_p_wxValidatorTo_p_wxObject(void *x) {
41935 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
41936}
41937static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
41938 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
41939}
41940static void *_p_wxMenuBarTo_p_wxObject(void *x) {
41941 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
41942}
41943static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
41944 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
41945}
41946static void *_p_wxSizerTo_p_wxObject(void *x) {
41947 return (void *)((wxObject *) ((wxSizer *) x));
41948}
41949static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
41950 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
41951}
41952static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
41953 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
41954}
41955static void *_p_wxMenuTo_p_wxObject(void *x) {
41956 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
41957}
41958static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
41959 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
41960}
41961static void *_p_wxImageTo_p_wxObject(void *x) {
41962 return (void *)((wxObject *) ((wxImage *) x));
41963}
41964static void *_p_wxScrollEventTo_p_wxObject(void *x) {
41965 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
41966}
41967static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
41968 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
41969}
41970static void *_p_wxPyEventTo_p_wxObject(void *x) {
41971 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
41972}
41973static void *_p_wxWindowTo_p_wxObject(void *x) {
41974 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
41975}
41976static void *_p_wxControlTo_p_wxObject(void *x) {
41977 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
41978}
41979static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
41980 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
41981}
41982static void *_p_wxGridSizerTo_p_wxObject(void *x) {
41983 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
41984}
41985static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
41986 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
41987}
41988static void *_p_wxPyAppTo_p_wxObject(void *x) {
41989 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
41990}
41991static void *_p_wxEventTo_p_wxObject(void *x) {
41992 return (void *)((wxObject *) ((wxEvent *) x));
41993}
41994static void *_p_wxActivateEventTo_p_wxObject(void *x) {
41995 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
41996}
41997static void *_p_wxMoveEventTo_p_wxObject(void *x) {
41998 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
41999}
42000static void *_p_wxSizeEventTo_p_wxObject(void *x) {
42001 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
42002}
42003static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
42004 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
42005}
42006static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
42007 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
42008}
42009static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
42010 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
42011}
42012static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
42013 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
42014}
42015static void *_p_wxIdleEventTo_p_wxObject(void *x) {
42016 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
42017}
42018static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
42019 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
42020}
42021static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
42022 return (void *)((wxObject *) ((wxEvtHandler *) x));
42023}
42024static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
42025 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
42026}
42027static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
42028 return (void *)((wxObject *) ((wxImageHandler *) x));
42029}
42030static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
42031 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
42032}
42033static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
42034 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
42035}
42036static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
42037 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
42038}
42039static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
42040 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
42041}
42042static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
42043 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
42044}
42045static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
42046 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
42047}
42048static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
42049 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
42050}
42051static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
42052 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
42053}
42054static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
42055 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
42056}
42057static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
42058 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
42059}
42060static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
42061 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
42062}
42063static void *_p_wxPaintEventTo_p_wxObject(void *x) {
42064 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
42065}
42066static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
42067 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
42068}
42069static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
42070 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
42071}
42072static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
42073 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
42074}
42075static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
42076 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
42077}
42078static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
42079 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
42080}
42081static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
42082 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
42083}
42084static void *_p_wxFileSystemTo_p_wxObject(void *x) {
42085 return (void *)((wxObject *) ((wxFileSystem *) x));
42086}
42087static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
42088 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
42089}
42090static void *_p_wxFocusEventTo_p_wxObject(void *x) {
42091 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
42092}
42093static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
42094 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
42095}
42096static void *_p_wxSizerItemTo_p_wxObject(void *x) {
42097 return (void *)((wxObject *) ((wxSizerItem *) x));
42098}
42099static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
42100 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
42101}
42102static void *_p_wxShowEventTo_p_wxObject(void *x) {
42103 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
42104}
42105static void *_p_wxFSFileTo_p_wxObject(void *x) {
42106 return (void *)((wxObject *) ((wxFSFile *) x));
42107}
42108static void *_p_wxCommandEventTo_p_wxObject(void *x) {
42109 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
42110}
42111static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
42112 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
42113}
42114static void *_p_wxKeyEventTo_p_wxObject(void *x) {
42115 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
42116}
42117static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
42118 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
42119}
42120static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
42121 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
42122}
42123static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
42124 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
42125}
42126static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
42127 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
42128}
42129static void *_p_wxMenuItemTo_p_wxObject(void *x) {
42130 return (void *)((wxObject *) ((wxMenuItem *) x));
42131}
42132static void *_p_wxPySizerTo_p_wxObject(void *x) {
42133 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
42134}
42135static void *_p_wxControlTo_p_wxWindow(void *x) {
42136 return (void *)((wxWindow *) ((wxControl *) x));
42137}
42138static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
42139 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
42140}
42141static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
42142 return (void *)((wxWindow *) ((wxMenuBar *) x));
42143}
42144static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
42145 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
42146}
42147static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
42148 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
42149}
42150static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
42151 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
42152}
42153static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
42154 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
42155}
42156static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
42157 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
42158}
42159static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
42160 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
42161}
42162static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
42163 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
42164}
42165static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
42166 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
42167}
42168static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
42169 return (void *)((wxValidator *) ((wxPyValidator *) x));
42170}
42171static 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}};
42172static 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}};
42173static 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}};
42174static 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}};
42175static 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}};
42176static 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}};
42177static 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}};
42178static 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}};
42179static 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}};
42180static 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}};
42181static 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}};
42182static 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}};
42183static 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}};
42184static 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}};
42185static 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}};
42186static 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}};
42187static 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}};
42188static 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}};
42189static 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}};
42190static 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}};
42191static 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}};
42192static 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}};
42193static 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}};
42194static 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}};
42195static 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}};
42196static 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}};
42197static 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}};
42198static 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}};
42199static 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}};
42200static 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}};
42201static 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}};
42202static 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}};
42203static 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}};
42204static 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}};
42205static 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}};
42206static 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}};
42207static 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}};
42208static 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}};
42209static 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}};
42210static 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}};
42211static 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}};
42212static 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}};
42213static 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}};
42214static 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}};
42215static 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}};
42216static 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}};
42217static 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}};
42218static 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}};
42219static 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}};
42220static 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}};
42221static 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}};
42222static 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}};
42223static 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}};
42224static 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}};
42225static 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}};
42226static 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}};
42227static 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}};
42228static 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}};
42229static 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}};
42230static 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}};
42231static 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}};
42232static 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}};
42233static 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}};
42234static 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}};
42235static 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}};
42236static 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}};
42237static 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}};
42238static 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}};
42239static 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}};
42240static 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}};
42241static 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}};
42242static 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}};
42243static 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}};
42244static 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}};
42245static 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}};
42246static 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}};
42247static 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}};
42248static 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}};
42249static 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}};
42250static 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}};
42251static 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}};
42252static 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}};
42253static 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}};
42254static 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}};
42255static 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}};
42256static 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}};
42257static 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}};
42258static 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}};
42259static 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}};
42260static 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}};
42261static 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}};
42262static 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}};
42263static 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}};
42264static 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}};
42265static 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}};
42266static 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}};
42267static 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}};
42268static 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}};
42269static 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}};
42270static 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}};
42271static 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}};
42272static 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}};
42273static 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}};
42274static 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}};
42275static 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}};
42276static 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}};
42277static 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}};
42278static 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}};
42279static 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}};
42280static 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}};
42281static 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}};
42282static 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}};
42283static 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}};
42284static 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}};
42285static 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}};
42286
42287static swig_type_info *swig_types_initial[] = {
42288_swigt__p_wxLayoutConstraints,
42289_swigt__p_wxRealPoint,
42290_swigt__p_wxSizerItem,
42291_swigt__p_wxGBSizerItem,
42292_swigt__p_wxScrollEvent,
42293_swigt__p_wxIndividualLayoutConstraint,
42294_swigt__p_wxSizer,
42295_swigt__p_wxBoxSizer,
42296_swigt__p_wxStaticBoxSizer,
42297_swigt__p_wxGridBagSizer,
42298_swigt__p_wxAcceleratorEntry,
42299_swigt__p_wxUpdateUIEvent,
42300_swigt__p_wxMenu,
42301_swigt__p_wxEvent,
42302_swigt__p_wxGridSizer,
42303_swigt__p_wxFlexGridSizer,
42304_swigt__p_wxInitDialogEvent,
42305_swigt__p_wxItemContainer,
42306_swigt__p_wxNcPaintEvent,
42307_swigt__p_wxPaintEvent,
42308_swigt__p_wxSysColourChangedEvent,
42309_swigt__p_wxMouseCaptureChangedEvent,
42310_swigt__p_wxDisplayChangedEvent,
42311_swigt__p_wxPaletteChangedEvent,
42312_swigt__p_wxControl,
42313_swigt__p_wxFont,
42314_swigt__p_wxMenuBarBase,
42315_swigt__p_wxSetCursorEvent,
42316_swigt__p_wxFSFile,
42317_swigt__p_wxCaret,
42318_swigt__p_wxRegion,
42319_swigt__p_wxPoint2D,
42320_swigt__p_int,
42321_swigt__p_wxSize,
42322_swigt__p_wxDC,
42323_swigt__p_wxPySizer,
42324_swigt__p_wxVisualAttributes,
42325_swigt__p_wxNotifyEvent,
42326_swigt__p_wxPyEvent,
42327_swigt__p_wxPropagationDisabler,
42328_swigt__p_wxAppTraits,
42329_swigt__p_wxArrayString,
42330_swigt__p_wxShowEvent,
42331_swigt__p_wxToolTip,
42332_swigt__p_wxMaximizeEvent,
42333_swigt__p_wxIconizeEvent,
42334_swigt__p_wxActivateEvent,
42335_swigt__p_wxMoveEvent,
42336_swigt__p_wxSizeEvent,
42337_swigt__p_wxQueryNewPaletteEvent,
42338_swigt__p_wxWindowCreateEvent,
42339_swigt__p_wxIdleEvent,
42340_swigt__p_wxMenuItem,
42341_swigt__p_wxStaticBox,
42342_swigt__p_long,
42343_swigt__p_wxTIFFHandler,
42344_swigt__p_wxXPMHandler,
42345_swigt__p_wxPNMHandler,
42346_swigt__p_wxJPEGHandler,
42347_swigt__p_wxPCXHandler,
42348_swigt__p_wxGIFHandler,
42349_swigt__p_wxPNGHandler,
42350_swigt__p_wxANIHandler,
42351_swigt__p_wxMemoryFSHandler,
42352_swigt__p_wxEvtHandler,
42353_swigt__p_wxCURHandler,
42354_swigt__p_wxICOHandler,
42355_swigt__p_wxBMPHandler,
42356_swigt__p_wxImageHandler,
42357_swigt__p_wxFileSystemHandler,
42358_swigt__p_wxPyFileSystemHandler,
42359_swigt__p_wxInternetFSHandler,
42360_swigt__p_wxZipFSHandler,
42361_swigt__p_wxRect,
42362_swigt__p_wxGBSpan,
42363_swigt__p_wxPropagateOnce,
42364_swigt__p_wxAcceleratorTable,
42365_swigt__p_char,
42366_swigt__p_wxGBPosition,
42367_swigt__p_wxImage,
42368_swigt__p_wxFrame,
42369_swigt__p_wxScrollWinEvent,
42370_swigt__p_wxImageHistogram,
42371_swigt__p_byte,
42372_swigt__p_wxPoint,
42373_swigt__p_wxCursor,
42374_swigt__p_wxObject,
42375_swigt__p_wxPyInputStream,
42376_swigt__p_wxOutputStream,
42377_swigt__p_wxInputStream,
42378_swigt__p_wxDateTime,
42379_swigt__p_wxKeyEvent,
42380_swigt__p_wxNavigationKeyEvent,
42381_swigt__p_wxWindowDestroyEvent,
42382_swigt__p_wxWindow,
42383_swigt__p_wxMenuBar,
42384_swigt__p_wxFileSystem,
42385_swigt__p_wxBitmap,
42386_swigt__p_wxMenuEvent,
42387_swigt__p_wxContextMenuEvent,
42388_swigt__p_unsigned_char,
42389_swigt__p_wxCloseEvent,
42390_swigt__p_wxEraseEvent,
42391_swigt__p_wxMouseEvent,
42392_swigt__p_wxPyApp,
42393_swigt__p_wxCommandEvent,
42394_swigt__p_wxPyCommandEvent,
42395_swigt__p_wxPyDropTarget,
42396_swigt__p_wxChildFocusEvent,
42397_swigt__p_wxFocusEvent,
42398_swigt__p_wxDropFilesEvent,
42399_swigt__p_wxControlWithItems,
42400_swigt__p_wxColour,
42401_swigt__p_wxValidator,
42402_swigt__p_wxPyValidator,
424030
42404};
42405
42406
42407/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
42408
42409static swig_const_info swig_const_table[] = {
42410{0}};
42411
42412#ifdef __cplusplus
42413}
42414#endif
42415
42416#ifdef __cplusplus
42417extern "C"
42418#endif
42419SWIGEXPORT(void) SWIG_init(void) {
42420 static PyObject *SWIG_globals = 0;
42421 static int typeinit = 0;
42422 PyObject *m, *d;
42423 int i;
42424 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
42425 m = Py_InitModule((char *) SWIG_name, SwigMethods);
42426 d = PyModule_GetDict(m);
42427
42428 if (!typeinit) {
42429 for (i = 0; swig_types_initial[i]; i++) {
42430 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
42431 }
42432 typeinit = 1;
42433 }
42434 SWIG_InstallConstants(d,swig_const_table);
42435
42436
42437#ifndef wxPyUSE_EXPORT
42438 // Make our API structure a CObject so other modules can import it
42439 // from this module.
42440 PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL);
42441 PyDict_SetItemString(d,"_wxPyCoreAPI", cobj);
42442 Py_XDECREF(cobj);
42443#endif
42444
42445 PyDict_SetItemString(d,"NOT_FOUND", SWIG_FromInt((int)wxNOT_FOUND));
42446 PyDict_SetItemString(d,"VSCROLL", SWIG_FromInt((int)wxVSCROLL));
42447 PyDict_SetItemString(d,"HSCROLL", SWIG_FromInt((int)wxHSCROLL));
42448 PyDict_SetItemString(d,"CAPTION", SWIG_FromInt((int)wxCAPTION));
42449 PyDict_SetItemString(d,"DOUBLE_BORDER", SWIG_FromInt((int)wxDOUBLE_BORDER));
42450 PyDict_SetItemString(d,"SUNKEN_BORDER", SWIG_FromInt((int)wxSUNKEN_BORDER));
42451 PyDict_SetItemString(d,"RAISED_BORDER", SWIG_FromInt((int)wxRAISED_BORDER));
42452 PyDict_SetItemString(d,"BORDER", SWIG_FromInt((int)wxBORDER));
42453 PyDict_SetItemString(d,"SIMPLE_BORDER", SWIG_FromInt((int)wxSIMPLE_BORDER));
42454 PyDict_SetItemString(d,"STATIC_BORDER", SWIG_FromInt((int)wxSTATIC_BORDER));
42455 PyDict_SetItemString(d,"TRANSPARENT_WINDOW", SWIG_FromInt((int)wxTRANSPARENT_WINDOW));
42456 PyDict_SetItemString(d,"NO_BORDER", SWIG_FromInt((int)wxNO_BORDER));
42457 PyDict_SetItemString(d,"TAB_TRAVERSAL", SWIG_FromInt((int)wxTAB_TRAVERSAL));
42458 PyDict_SetItemString(d,"WANTS_CHARS", SWIG_FromInt((int)wxWANTS_CHARS));
42459 PyDict_SetItemString(d,"POPUP_WINDOW", SWIG_FromInt((int)wxPOPUP_WINDOW));
42460 PyDict_SetItemString(d,"CENTER_FRAME", SWIG_FromInt((int)wxCENTER_FRAME));
42461 PyDict_SetItemString(d,"CENTRE_ON_SCREEN", SWIG_FromInt((int)wxCENTRE_ON_SCREEN));
42462 PyDict_SetItemString(d,"CENTER_ON_SCREEN", SWIG_FromInt((int)wxCENTER_ON_SCREEN));
42463 PyDict_SetItemString(d,"ED_CLIENT_MARGIN", SWIG_FromInt((int)wxED_CLIENT_MARGIN));
42464 PyDict_SetItemString(d,"ED_BUTTONS_BOTTOM", SWIG_FromInt((int)wxED_BUTTONS_BOTTOM));
42465 PyDict_SetItemString(d,"ED_BUTTONS_RIGHT", SWIG_FromInt((int)wxED_BUTTONS_RIGHT));
42466 PyDict_SetItemString(d,"ED_STATIC_LINE", SWIG_FromInt((int)wxED_STATIC_LINE));
42467 PyDict_SetItemString(d,"EXT_DIALOG_STYLE", SWIG_FromInt((int)wxEXT_DIALOG_STYLE));
42468 PyDict_SetItemString(d,"CLIP_CHILDREN", SWIG_FromInt((int)wxCLIP_CHILDREN));
42469 PyDict_SetItemString(d,"CLIP_SIBLINGS", SWIG_FromInt((int)wxCLIP_SIBLINGS));
42470 PyDict_SetItemString(d,"ALWAYS_SHOW_SB", SWIG_FromInt((int)wxALWAYS_SHOW_SB));
42471 PyDict_SetItemString(d,"RETAINED", SWIG_FromInt((int)wxRETAINED));
42472 PyDict_SetItemString(d,"BACKINGSTORE", SWIG_FromInt((int)wxBACKINGSTORE));
42473 PyDict_SetItemString(d,"COLOURED", SWIG_FromInt((int)wxCOLOURED));
42474 PyDict_SetItemString(d,"FIXED_LENGTH", SWIG_FromInt((int)wxFIXED_LENGTH));
42475 PyDict_SetItemString(d,"LB_NEEDED_SB", SWIG_FromInt((int)wxLB_NEEDED_SB));
42476 PyDict_SetItemString(d,"LB_ALWAYS_SB", SWIG_FromInt((int)wxLB_ALWAYS_SB));
42477 PyDict_SetItemString(d,"LB_SORT", SWIG_FromInt((int)wxLB_SORT));
42478 PyDict_SetItemString(d,"LB_SINGLE", SWIG_FromInt((int)wxLB_SINGLE));
42479 PyDict_SetItemString(d,"LB_MULTIPLE", SWIG_FromInt((int)wxLB_MULTIPLE));
42480 PyDict_SetItemString(d,"LB_EXTENDED", SWIG_FromInt((int)wxLB_EXTENDED));
42481 PyDict_SetItemString(d,"LB_OWNERDRAW", SWIG_FromInt((int)wxLB_OWNERDRAW));
42482 PyDict_SetItemString(d,"LB_HSCROLL", SWIG_FromInt((int)wxLB_HSCROLL));
42483 PyDict_SetItemString(d,"PROCESS_ENTER", SWIG_FromInt((int)wxPROCESS_ENTER));
42484 PyDict_SetItemString(d,"PASSWORD", SWIG_FromInt((int)wxPASSWORD));
42485 PyDict_SetItemString(d,"CB_SIMPLE", SWIG_FromInt((int)wxCB_SIMPLE));
42486 PyDict_SetItemString(d,"CB_DROPDOWN", SWIG_FromInt((int)wxCB_DROPDOWN));
42487 PyDict_SetItemString(d,"CB_SORT", SWIG_FromInt((int)wxCB_SORT));
42488 PyDict_SetItemString(d,"CB_READONLY", SWIG_FromInt((int)wxCB_READONLY));
42489 PyDict_SetItemString(d,"RA_HORIZONTAL", SWIG_FromInt((int)wxRA_HORIZONTAL));
42490 PyDict_SetItemString(d,"RA_VERTICAL", SWIG_FromInt((int)wxRA_VERTICAL));
42491 PyDict_SetItemString(d,"RA_SPECIFY_ROWS", SWIG_FromInt((int)wxRA_SPECIFY_ROWS));
42492 PyDict_SetItemString(d,"RA_SPECIFY_COLS", SWIG_FromInt((int)wxRA_SPECIFY_COLS));
42493 PyDict_SetItemString(d,"RB_GROUP", SWIG_FromInt((int)wxRB_GROUP));
42494 PyDict_SetItemString(d,"RB_SINGLE", SWIG_FromInt((int)wxRB_SINGLE));
42495 PyDict_SetItemString(d,"SL_HORIZONTAL", SWIG_FromInt((int)wxSL_HORIZONTAL));
42496 PyDict_SetItemString(d,"SL_VERTICAL", SWIG_FromInt((int)wxSL_VERTICAL));
42497 PyDict_SetItemString(d,"SL_AUTOTICKS", SWIG_FromInt((int)wxSL_AUTOTICKS));
42498 PyDict_SetItemString(d,"SL_LABELS", SWIG_FromInt((int)wxSL_LABELS));
42499 PyDict_SetItemString(d,"SL_LEFT", SWIG_FromInt((int)wxSL_LEFT));
42500 PyDict_SetItemString(d,"SL_TOP", SWIG_FromInt((int)wxSL_TOP));
42501 PyDict_SetItemString(d,"SL_RIGHT", SWIG_FromInt((int)wxSL_RIGHT));
42502 PyDict_SetItemString(d,"SL_BOTTOM", SWIG_FromInt((int)wxSL_BOTTOM));
42503 PyDict_SetItemString(d,"SL_BOTH", SWIG_FromInt((int)wxSL_BOTH));
42504 PyDict_SetItemString(d,"SL_SELRANGE", SWIG_FromInt((int)wxSL_SELRANGE));
42505 PyDict_SetItemString(d,"SB_HORIZONTAL", SWIG_FromInt((int)wxSB_HORIZONTAL));
42506 PyDict_SetItemString(d,"SB_VERTICAL", SWIG_FromInt((int)wxSB_VERTICAL));
42507 PyDict_SetItemString(d,"ST_SIZEGRIP", SWIG_FromInt((int)wxST_SIZEGRIP));
42508 PyDict_SetItemString(d,"ST_NO_AUTORESIZE", SWIG_FromInt((int)wxST_NO_AUTORESIZE));
42509 PyDict_SetItemString(d,"FLOOD_SURFACE", SWIG_FromInt((int)wxFLOOD_SURFACE));
42510 PyDict_SetItemString(d,"FLOOD_BORDER", SWIG_FromInt((int)wxFLOOD_BORDER));
42511 PyDict_SetItemString(d,"ODDEVEN_RULE", SWIG_FromInt((int)wxODDEVEN_RULE));
42512 PyDict_SetItemString(d,"WINDING_RULE", SWIG_FromInt((int)wxWINDING_RULE));
42513 PyDict_SetItemString(d,"TOOL_TOP", SWIG_FromInt((int)wxTOOL_TOP));
42514 PyDict_SetItemString(d,"TOOL_BOTTOM", SWIG_FromInt((int)wxTOOL_BOTTOM));
42515 PyDict_SetItemString(d,"TOOL_LEFT", SWIG_FromInt((int)wxTOOL_LEFT));
42516 PyDict_SetItemString(d,"TOOL_RIGHT", SWIG_FromInt((int)wxTOOL_RIGHT));
42517 PyDict_SetItemString(d,"OK", SWIG_FromInt((int)wxOK));
42518 PyDict_SetItemString(d,"YES_NO", SWIG_FromInt((int)wxYES_NO));
42519 PyDict_SetItemString(d,"CANCEL", SWIG_FromInt((int)wxCANCEL));
42520 PyDict_SetItemString(d,"YES", SWIG_FromInt((int)wxYES));
42521 PyDict_SetItemString(d,"NO", SWIG_FromInt((int)wxNO));
42522 PyDict_SetItemString(d,"NO_DEFAULT", SWIG_FromInt((int)wxNO_DEFAULT));
42523 PyDict_SetItemString(d,"YES_DEFAULT", SWIG_FromInt((int)wxYES_DEFAULT));
42524 PyDict_SetItemString(d,"ICON_EXCLAMATION", SWIG_FromInt((int)wxICON_EXCLAMATION));
42525 PyDict_SetItemString(d,"ICON_HAND", SWIG_FromInt((int)wxICON_HAND));
42526 PyDict_SetItemString(d,"ICON_QUESTION", SWIG_FromInt((int)wxICON_QUESTION));
42527 PyDict_SetItemString(d,"ICON_INFORMATION", SWIG_FromInt((int)wxICON_INFORMATION));
42528 PyDict_SetItemString(d,"ICON_STOP", SWIG_FromInt((int)wxICON_STOP));
42529 PyDict_SetItemString(d,"ICON_ASTERISK", SWIG_FromInt((int)wxICON_ASTERISK));
42530 PyDict_SetItemString(d,"ICON_MASK", SWIG_FromInt((int)wxICON_MASK));
42531 PyDict_SetItemString(d,"ICON_WARNING", SWIG_FromInt((int)wxICON_WARNING));
42532 PyDict_SetItemString(d,"ICON_ERROR", SWIG_FromInt((int)wxICON_ERROR));
42533 PyDict_SetItemString(d,"FORWARD", SWIG_FromInt((int)wxFORWARD));
42534 PyDict_SetItemString(d,"BACKWARD", SWIG_FromInt((int)wxBACKWARD));
42535 PyDict_SetItemString(d,"RESET", SWIG_FromInt((int)wxRESET));
42536 PyDict_SetItemString(d,"HELP", SWIG_FromInt((int)wxHELP));
42537 PyDict_SetItemString(d,"MORE", SWIG_FromInt((int)wxMORE));
42538 PyDict_SetItemString(d,"SETUP", SWIG_FromInt((int)wxSETUP));
42539 PyDict_SetItemString(d,"SIZE_AUTO_WIDTH", SWIG_FromInt((int)wxSIZE_AUTO_WIDTH));
42540 PyDict_SetItemString(d,"SIZE_AUTO_HEIGHT", SWIG_FromInt((int)wxSIZE_AUTO_HEIGHT));
42541 PyDict_SetItemString(d,"SIZE_AUTO", SWIG_FromInt((int)wxSIZE_AUTO));
42542 PyDict_SetItemString(d,"SIZE_USE_EXISTING", SWIG_FromInt((int)wxSIZE_USE_EXISTING));
42543 PyDict_SetItemString(d,"SIZE_ALLOW_MINUS_ONE", SWIG_FromInt((int)wxSIZE_ALLOW_MINUS_ONE));
42544 PyDict_SetItemString(d,"PORTRAIT", SWIG_FromInt((int)wxPORTRAIT));
42545 PyDict_SetItemString(d,"LANDSCAPE", SWIG_FromInt((int)wxLANDSCAPE));
42546 PyDict_SetItemString(d,"PRINT_QUALITY_HIGH", SWIG_FromInt((int)wxPRINT_QUALITY_HIGH));
42547 PyDict_SetItemString(d,"PRINT_QUALITY_MEDIUM", SWIG_FromInt((int)wxPRINT_QUALITY_MEDIUM));
42548 PyDict_SetItemString(d,"PRINT_QUALITY_LOW", SWIG_FromInt((int)wxPRINT_QUALITY_LOW));
42549 PyDict_SetItemString(d,"PRINT_QUALITY_DRAFT", SWIG_FromInt((int)wxPRINT_QUALITY_DRAFT));
42550 PyDict_SetItemString(d,"ID_ANY", SWIG_FromInt((int)wxID_ANY));
42551 PyDict_SetItemString(d,"ID_SEPARATOR", SWIG_FromInt((int)wxID_SEPARATOR));
42552 PyDict_SetItemString(d,"ID_LOWEST", SWIG_FromInt((int)wxID_LOWEST));
42553 PyDict_SetItemString(d,"ID_OPEN", SWIG_FromInt((int)wxID_OPEN));
42554 PyDict_SetItemString(d,"ID_CLOSE", SWIG_FromInt((int)wxID_CLOSE));
42555 PyDict_SetItemString(d,"ID_NEW", SWIG_FromInt((int)wxID_NEW));
42556 PyDict_SetItemString(d,"ID_SAVE", SWIG_FromInt((int)wxID_SAVE));
42557 PyDict_SetItemString(d,"ID_SAVEAS", SWIG_FromInt((int)wxID_SAVEAS));
42558 PyDict_SetItemString(d,"ID_REVERT", SWIG_FromInt((int)wxID_REVERT));
42559 PyDict_SetItemString(d,"ID_EXIT", SWIG_FromInt((int)wxID_EXIT));
42560 PyDict_SetItemString(d,"ID_UNDO", SWIG_FromInt((int)wxID_UNDO));
42561 PyDict_SetItemString(d,"ID_REDO", SWIG_FromInt((int)wxID_REDO));
42562 PyDict_SetItemString(d,"ID_HELP", SWIG_FromInt((int)wxID_HELP));
42563 PyDict_SetItemString(d,"ID_PRINT", SWIG_FromInt((int)wxID_PRINT));
42564 PyDict_SetItemString(d,"ID_PRINT_SETUP", SWIG_FromInt((int)wxID_PRINT_SETUP));
42565 PyDict_SetItemString(d,"ID_PREVIEW", SWIG_FromInt((int)wxID_PREVIEW));
42566 PyDict_SetItemString(d,"ID_ABOUT", SWIG_FromInt((int)wxID_ABOUT));
42567 PyDict_SetItemString(d,"ID_HELP_CONTENTS", SWIG_FromInt((int)wxID_HELP_CONTENTS));
42568 PyDict_SetItemString(d,"ID_HELP_COMMANDS", SWIG_FromInt((int)wxID_HELP_COMMANDS));
42569 PyDict_SetItemString(d,"ID_HELP_PROCEDURES", SWIG_FromInt((int)wxID_HELP_PROCEDURES));
42570 PyDict_SetItemString(d,"ID_HELP_CONTEXT", SWIG_FromInt((int)wxID_HELP_CONTEXT));
42571 PyDict_SetItemString(d,"ID_CLOSE_ALL", SWIG_FromInt((int)wxID_CLOSE_ALL));
42572 PyDict_SetItemString(d,"ID_PREFERENCES", SWIG_FromInt((int)wxID_PREFERENCES));
42573 PyDict_SetItemString(d,"ID_CUT", SWIG_FromInt((int)wxID_CUT));
42574 PyDict_SetItemString(d,"ID_COPY", SWIG_FromInt((int)wxID_COPY));
42575 PyDict_SetItemString(d,"ID_PASTE", SWIG_FromInt((int)wxID_PASTE));
42576 PyDict_SetItemString(d,"ID_CLEAR", SWIG_FromInt((int)wxID_CLEAR));
42577 PyDict_SetItemString(d,"ID_FIND", SWIG_FromInt((int)wxID_FIND));
42578 PyDict_SetItemString(d,"ID_DUPLICATE", SWIG_FromInt((int)wxID_DUPLICATE));
42579 PyDict_SetItemString(d,"ID_SELECTALL", SWIG_FromInt((int)wxID_SELECTALL));
42580 PyDict_SetItemString(d,"ID_DELETE", SWIG_FromInt((int)wxID_DELETE));
42581 PyDict_SetItemString(d,"ID_REPLACE", SWIG_FromInt((int)wxID_REPLACE));
42582 PyDict_SetItemString(d,"ID_REPLACE_ALL", SWIG_FromInt((int)wxID_REPLACE_ALL));
42583 PyDict_SetItemString(d,"ID_PROPERTIES", SWIG_FromInt((int)wxID_PROPERTIES));
42584 PyDict_SetItemString(d,"ID_VIEW_DETAILS", SWIG_FromInt((int)wxID_VIEW_DETAILS));
42585 PyDict_SetItemString(d,"ID_VIEW_LARGEICONS", SWIG_FromInt((int)wxID_VIEW_LARGEICONS));
42586 PyDict_SetItemString(d,"ID_VIEW_SMALLICONS", SWIG_FromInt((int)wxID_VIEW_SMALLICONS));
42587 PyDict_SetItemString(d,"ID_VIEW_LIST", SWIG_FromInt((int)wxID_VIEW_LIST));
42588 PyDict_SetItemString(d,"ID_VIEW_SORTDATE", SWIG_FromInt((int)wxID_VIEW_SORTDATE));
42589 PyDict_SetItemString(d,"ID_VIEW_SORTNAME", SWIG_FromInt((int)wxID_VIEW_SORTNAME));
42590 PyDict_SetItemString(d,"ID_VIEW_SORTSIZE", SWIG_FromInt((int)wxID_VIEW_SORTSIZE));
42591 PyDict_SetItemString(d,"ID_VIEW_SORTTYPE", SWIG_FromInt((int)wxID_VIEW_SORTTYPE));
42592 PyDict_SetItemString(d,"ID_FILE1", SWIG_FromInt((int)wxID_FILE1));
42593 PyDict_SetItemString(d,"ID_FILE2", SWIG_FromInt((int)wxID_FILE2));
42594 PyDict_SetItemString(d,"ID_FILE3", SWIG_FromInt((int)wxID_FILE3));
42595 PyDict_SetItemString(d,"ID_FILE4", SWIG_FromInt((int)wxID_FILE4));
42596 PyDict_SetItemString(d,"ID_FILE5", SWIG_FromInt((int)wxID_FILE5));
42597 PyDict_SetItemString(d,"ID_FILE6", SWIG_FromInt((int)wxID_FILE6));
42598 PyDict_SetItemString(d,"ID_FILE7", SWIG_FromInt((int)wxID_FILE7));
42599 PyDict_SetItemString(d,"ID_FILE8", SWIG_FromInt((int)wxID_FILE8));
42600 PyDict_SetItemString(d,"ID_FILE9", SWIG_FromInt((int)wxID_FILE9));
42601 PyDict_SetItemString(d,"ID_OK", SWIG_FromInt((int)wxID_OK));
42602 PyDict_SetItemString(d,"ID_CANCEL", SWIG_FromInt((int)wxID_CANCEL));
42603 PyDict_SetItemString(d,"ID_APPLY", SWIG_FromInt((int)wxID_APPLY));
42604 PyDict_SetItemString(d,"ID_YES", SWIG_FromInt((int)wxID_YES));
42605 PyDict_SetItemString(d,"ID_NO", SWIG_FromInt((int)wxID_NO));
42606 PyDict_SetItemString(d,"ID_STATIC", SWIG_FromInt((int)wxID_STATIC));
42607 PyDict_SetItemString(d,"ID_FORWARD", SWIG_FromInt((int)wxID_FORWARD));
42608 PyDict_SetItemString(d,"ID_BACKWARD", SWIG_FromInt((int)wxID_BACKWARD));
42609 PyDict_SetItemString(d,"ID_DEFAULT", SWIG_FromInt((int)wxID_DEFAULT));
42610 PyDict_SetItemString(d,"ID_MORE", SWIG_FromInt((int)wxID_MORE));
42611 PyDict_SetItemString(d,"ID_SETUP", SWIG_FromInt((int)wxID_SETUP));
42612 PyDict_SetItemString(d,"ID_RESET", SWIG_FromInt((int)wxID_RESET));
42613 PyDict_SetItemString(d,"ID_CONTEXT_HELP", SWIG_FromInt((int)wxID_CONTEXT_HELP));
42614 PyDict_SetItemString(d,"ID_YESTOALL", SWIG_FromInt((int)wxID_YESTOALL));
42615 PyDict_SetItemString(d,"ID_NOTOALL", SWIG_FromInt((int)wxID_NOTOALL));
42616 PyDict_SetItemString(d,"ID_ABORT", SWIG_FromInt((int)wxID_ABORT));
42617 PyDict_SetItemString(d,"ID_RETRY", SWIG_FromInt((int)wxID_RETRY));
42618 PyDict_SetItemString(d,"ID_IGNORE", SWIG_FromInt((int)wxID_IGNORE));
42619 PyDict_SetItemString(d,"ID_HIGHEST", SWIG_FromInt((int)wxID_HIGHEST));
42620 PyDict_SetItemString(d,"OPEN", SWIG_FromInt((int)wxOPEN));
42621 PyDict_SetItemString(d,"SAVE", SWIG_FromInt((int)wxSAVE));
42622 PyDict_SetItemString(d,"HIDE_READONLY", SWIG_FromInt((int)wxHIDE_READONLY));
42623 PyDict_SetItemString(d,"OVERWRITE_PROMPT", SWIG_FromInt((int)wxOVERWRITE_PROMPT));
42624 PyDict_SetItemString(d,"FILE_MUST_EXIST", SWIG_FromInt((int)wxFILE_MUST_EXIST));
42625 PyDict_SetItemString(d,"MULTIPLE", SWIG_FromInt((int)wxMULTIPLE));
42626 PyDict_SetItemString(d,"CHANGE_DIR", SWIG_FromInt((int)wxCHANGE_DIR));
42627 PyDict_SetItemString(d,"ACCEL_ALT", SWIG_FromInt((int)wxACCEL_ALT));
42628 PyDict_SetItemString(d,"ACCEL_CTRL", SWIG_FromInt((int)wxACCEL_CTRL));
42629 PyDict_SetItemString(d,"ACCEL_SHIFT", SWIG_FromInt((int)wxACCEL_SHIFT));
42630 PyDict_SetItemString(d,"ACCEL_NORMAL", SWIG_FromInt((int)wxACCEL_NORMAL));
42631 PyDict_SetItemString(d,"PD_AUTO_HIDE", SWIG_FromInt((int)wxPD_AUTO_HIDE));
42632 PyDict_SetItemString(d,"PD_APP_MODAL", SWIG_FromInt((int)wxPD_APP_MODAL));
42633 PyDict_SetItemString(d,"PD_CAN_ABORT", SWIG_FromInt((int)wxPD_CAN_ABORT));
42634 PyDict_SetItemString(d,"PD_ELAPSED_TIME", SWIG_FromInt((int)wxPD_ELAPSED_TIME));
42635 PyDict_SetItemString(d,"PD_ESTIMATED_TIME", SWIG_FromInt((int)wxPD_ESTIMATED_TIME));
42636 PyDict_SetItemString(d,"PD_REMAINING_TIME", SWIG_FromInt((int)wxPD_REMAINING_TIME));
42637 PyDict_SetItemString(d,"DD_NEW_DIR_BUTTON", SWIG_FromInt((int)wxDD_NEW_DIR_BUTTON));
42638 PyDict_SetItemString(d,"DD_DEFAULT_STYLE", SWIG_FromInt((int)wxDD_DEFAULT_STYLE));
42639 PyDict_SetItemString(d,"MENU_TEAROFF", SWIG_FromInt((int)wxMENU_TEAROFF));
42640 PyDict_SetItemString(d,"MB_DOCKABLE", SWIG_FromInt((int)wxMB_DOCKABLE));
42641 PyDict_SetItemString(d,"NO_FULL_REPAINT_ON_RESIZE", SWIG_FromInt((int)wxNO_FULL_REPAINT_ON_RESIZE));
42642 PyDict_SetItemString(d,"FULL_REPAINT_ON_RESIZE", SWIG_FromInt((int)wxFULL_REPAINT_ON_RESIZE));
42643 PyDict_SetItemString(d,"LI_HORIZONTAL", SWIG_FromInt((int)wxLI_HORIZONTAL));
42644 PyDict_SetItemString(d,"LI_VERTICAL", SWIG_FromInt((int)wxLI_VERTICAL));
42645 PyDict_SetItemString(d,"WS_EX_VALIDATE_RECURSIVELY", SWIG_FromInt((int)wxWS_EX_VALIDATE_RECURSIVELY));
42646 PyDict_SetItemString(d,"WS_EX_BLOCK_EVENTS", SWIG_FromInt((int)wxWS_EX_BLOCK_EVENTS));
42647 PyDict_SetItemString(d,"WS_EX_TRANSIENT", SWIG_FromInt((int)wxWS_EX_TRANSIENT));
42648 PyDict_SetItemString(d,"WS_EX_THEMED_BACKGROUND", SWIG_FromInt((int)wxWS_EX_THEMED_BACKGROUND));
42649 PyDict_SetItemString(d,"WS_EX_PROCESS_IDLE", SWIG_FromInt((int)wxWS_EX_PROCESS_IDLE));
42650 PyDict_SetItemString(d,"WS_EX_PROCESS_UI_UPDATES", SWIG_FromInt((int)wxWS_EX_PROCESS_UI_UPDATES));
42651 PyDict_SetItemString(d,"MM_TEXT", SWIG_FromInt((int)wxMM_TEXT));
42652 PyDict_SetItemString(d,"MM_LOMETRIC", SWIG_FromInt((int)wxMM_LOMETRIC));
42653 PyDict_SetItemString(d,"MM_HIMETRIC", SWIG_FromInt((int)wxMM_HIMETRIC));
42654 PyDict_SetItemString(d,"MM_LOENGLISH", SWIG_FromInt((int)wxMM_LOENGLISH));
42655 PyDict_SetItemString(d,"MM_HIENGLISH", SWIG_FromInt((int)wxMM_HIENGLISH));
42656 PyDict_SetItemString(d,"MM_TWIPS", SWIG_FromInt((int)wxMM_TWIPS));
42657 PyDict_SetItemString(d,"MM_ISOTROPIC", SWIG_FromInt((int)wxMM_ISOTROPIC));
42658 PyDict_SetItemString(d,"MM_ANISOTROPIC", SWIG_FromInt((int)wxMM_ANISOTROPIC));
42659 PyDict_SetItemString(d,"MM_POINTS", SWIG_FromInt((int)wxMM_POINTS));
42660 PyDict_SetItemString(d,"MM_METRIC", SWIG_FromInt((int)wxMM_METRIC));
42661 PyDict_SetItemString(d,"CENTRE", SWIG_FromInt((int)wxCENTRE));
42662 PyDict_SetItemString(d,"CENTER", SWIG_FromInt((int)wxCENTER));
42663 PyDict_SetItemString(d,"HORIZONTAL", SWIG_FromInt((int)wxHORIZONTAL));
42664 PyDict_SetItemString(d,"VERTICAL", SWIG_FromInt((int)wxVERTICAL));
42665 PyDict_SetItemString(d,"BOTH", SWIG_FromInt((int)wxBOTH));
42666 PyDict_SetItemString(d,"LEFT", SWIG_FromInt((int)wxLEFT));
42667 PyDict_SetItemString(d,"RIGHT", SWIG_FromInt((int)wxRIGHT));
42668 PyDict_SetItemString(d,"UP", SWIG_FromInt((int)wxUP));
42669 PyDict_SetItemString(d,"DOWN", SWIG_FromInt((int)wxDOWN));
42670 PyDict_SetItemString(d,"TOP", SWIG_FromInt((int)wxTOP));
42671 PyDict_SetItemString(d,"BOTTOM", SWIG_FromInt((int)wxBOTTOM));
42672 PyDict_SetItemString(d,"NORTH", SWIG_FromInt((int)wxNORTH));
42673 PyDict_SetItemString(d,"SOUTH", SWIG_FromInt((int)wxSOUTH));
42674 PyDict_SetItemString(d,"WEST", SWIG_FromInt((int)wxWEST));
42675 PyDict_SetItemString(d,"EAST", SWIG_FromInt((int)wxEAST));
42676 PyDict_SetItemString(d,"ALL", SWIG_FromInt((int)wxALL));
42677 PyDict_SetItemString(d,"ALIGN_NOT", SWIG_FromInt((int)wxALIGN_NOT));
42678 PyDict_SetItemString(d,"ALIGN_CENTER_HORIZONTAL", SWIG_FromInt((int)wxALIGN_CENTER_HORIZONTAL));
42679 PyDict_SetItemString(d,"ALIGN_CENTRE_HORIZONTAL", SWIG_FromInt((int)wxALIGN_CENTRE_HORIZONTAL));
42680 PyDict_SetItemString(d,"ALIGN_LEFT", SWIG_FromInt((int)wxALIGN_LEFT));
42681 PyDict_SetItemString(d,"ALIGN_TOP", SWIG_FromInt((int)wxALIGN_TOP));
42682 PyDict_SetItemString(d,"ALIGN_RIGHT", SWIG_FromInt((int)wxALIGN_RIGHT));
42683 PyDict_SetItemString(d,"ALIGN_BOTTOM", SWIG_FromInt((int)wxALIGN_BOTTOM));
42684 PyDict_SetItemString(d,"ALIGN_CENTER_VERTICAL", SWIG_FromInt((int)wxALIGN_CENTER_VERTICAL));
42685 PyDict_SetItemString(d,"ALIGN_CENTRE_VERTICAL", SWIG_FromInt((int)wxALIGN_CENTRE_VERTICAL));
42686 PyDict_SetItemString(d,"ALIGN_CENTER", SWIG_FromInt((int)wxALIGN_CENTER));
42687 PyDict_SetItemString(d,"ALIGN_CENTRE", SWIG_FromInt((int)wxALIGN_CENTRE));
42688 PyDict_SetItemString(d,"ALIGN_MASK", SWIG_FromInt((int)wxALIGN_MASK));
42689 PyDict_SetItemString(d,"STRETCH_NOT", SWIG_FromInt((int)wxSTRETCH_NOT));
42690 PyDict_SetItemString(d,"SHRINK", SWIG_FromInt((int)wxSHRINK));
42691 PyDict_SetItemString(d,"GROW", SWIG_FromInt((int)wxGROW));
42692 PyDict_SetItemString(d,"EXPAND", SWIG_FromInt((int)wxEXPAND));
42693 PyDict_SetItemString(d,"SHAPED", SWIG_FromInt((int)wxSHAPED));
42694 PyDict_SetItemString(d,"FIXED_MINSIZE", SWIG_FromInt((int)wxFIXED_MINSIZE));
42695 PyDict_SetItemString(d,"TILE", SWIG_FromInt((int)wxTILE));
42696 PyDict_SetItemString(d,"ADJUST_MINSIZE", SWIG_FromInt((int)wxADJUST_MINSIZE));
42697 PyDict_SetItemString(d,"BORDER_DEFAULT", SWIG_FromInt((int)wxBORDER_DEFAULT));
42698 PyDict_SetItemString(d,"BORDER_NONE", SWIG_FromInt((int)wxBORDER_NONE));
42699 PyDict_SetItemString(d,"BORDER_STATIC", SWIG_FromInt((int)wxBORDER_STATIC));
42700 PyDict_SetItemString(d,"BORDER_SIMPLE", SWIG_FromInt((int)wxBORDER_SIMPLE));
42701 PyDict_SetItemString(d,"BORDER_RAISED", SWIG_FromInt((int)wxBORDER_RAISED));
42702 PyDict_SetItemString(d,"BORDER_SUNKEN", SWIG_FromInt((int)wxBORDER_SUNKEN));
42703 PyDict_SetItemString(d,"BORDER_DOUBLE", SWIG_FromInt((int)wxBORDER_DOUBLE));
42704 PyDict_SetItemString(d,"BORDER_MASK", SWIG_FromInt((int)wxBORDER_MASK));
42705 PyDict_SetItemString(d,"DEFAULT", SWIG_FromInt((int)wxDEFAULT));
42706 PyDict_SetItemString(d,"DECORATIVE", SWIG_FromInt((int)wxDECORATIVE));
42707 PyDict_SetItemString(d,"ROMAN", SWIG_FromInt((int)wxROMAN));
42708 PyDict_SetItemString(d,"SCRIPT", SWIG_FromInt((int)wxSCRIPT));
42709 PyDict_SetItemString(d,"SWISS", SWIG_FromInt((int)wxSWISS));
42710 PyDict_SetItemString(d,"MODERN", SWIG_FromInt((int)wxMODERN));
42711 PyDict_SetItemString(d,"TELETYPE", SWIG_FromInt((int)wxTELETYPE));
42712 PyDict_SetItemString(d,"VARIABLE", SWIG_FromInt((int)wxVARIABLE));
42713 PyDict_SetItemString(d,"FIXED", SWIG_FromInt((int)wxFIXED));
42714 PyDict_SetItemString(d,"NORMAL", SWIG_FromInt((int)wxNORMAL));
42715 PyDict_SetItemString(d,"LIGHT", SWIG_FromInt((int)wxLIGHT));
42716 PyDict_SetItemString(d,"BOLD", SWIG_FromInt((int)wxBOLD));
42717 PyDict_SetItemString(d,"ITALIC", SWIG_FromInt((int)wxITALIC));
42718 PyDict_SetItemString(d,"SLANT", SWIG_FromInt((int)wxSLANT));
42719 PyDict_SetItemString(d,"SOLID", SWIG_FromInt((int)wxSOLID));
42720 PyDict_SetItemString(d,"DOT", SWIG_FromInt((int)wxDOT));
42721 PyDict_SetItemString(d,"LONG_DASH", SWIG_FromInt((int)wxLONG_DASH));
42722 PyDict_SetItemString(d,"SHORT_DASH", SWIG_FromInt((int)wxSHORT_DASH));
42723 PyDict_SetItemString(d,"DOT_DASH", SWIG_FromInt((int)wxDOT_DASH));
42724 PyDict_SetItemString(d,"USER_DASH", SWIG_FromInt((int)wxUSER_DASH));
42725 PyDict_SetItemString(d,"TRANSPARENT", SWIG_FromInt((int)wxTRANSPARENT));
42726 PyDict_SetItemString(d,"STIPPLE", SWIG_FromInt((int)wxSTIPPLE));
42727 PyDict_SetItemString(d,"BDIAGONAL_HATCH", SWIG_FromInt((int)wxBDIAGONAL_HATCH));
42728 PyDict_SetItemString(d,"CROSSDIAG_HATCH", SWIG_FromInt((int)wxCROSSDIAG_HATCH));
42729 PyDict_SetItemString(d,"FDIAGONAL_HATCH", SWIG_FromInt((int)wxFDIAGONAL_HATCH));
42730 PyDict_SetItemString(d,"CROSS_HATCH", SWIG_FromInt((int)wxCROSS_HATCH));
42731 PyDict_SetItemString(d,"HORIZONTAL_HATCH", SWIG_FromInt((int)wxHORIZONTAL_HATCH));
42732 PyDict_SetItemString(d,"VERTICAL_HATCH", SWIG_FromInt((int)wxVERTICAL_HATCH));
42733 PyDict_SetItemString(d,"JOIN_BEVEL", SWIG_FromInt((int)wxJOIN_BEVEL));
42734 PyDict_SetItemString(d,"JOIN_MITER", SWIG_FromInt((int)wxJOIN_MITER));
42735 PyDict_SetItemString(d,"JOIN_ROUND", SWIG_FromInt((int)wxJOIN_ROUND));
42736 PyDict_SetItemString(d,"CAP_ROUND", SWIG_FromInt((int)wxCAP_ROUND));
42737 PyDict_SetItemString(d,"CAP_PROJECTING", SWIG_FromInt((int)wxCAP_PROJECTING));
42738 PyDict_SetItemString(d,"CAP_BUTT", SWIG_FromInt((int)wxCAP_BUTT));
42739 PyDict_SetItemString(d,"CLEAR", SWIG_FromInt((int)wxCLEAR));
42740 PyDict_SetItemString(d,"XOR", SWIG_FromInt((int)wxXOR));
42741 PyDict_SetItemString(d,"INVERT", SWIG_FromInt((int)wxINVERT));
42742 PyDict_SetItemString(d,"OR_REVERSE", SWIG_FromInt((int)wxOR_REVERSE));
42743 PyDict_SetItemString(d,"AND_REVERSE", SWIG_FromInt((int)wxAND_REVERSE));
42744 PyDict_SetItemString(d,"COPY", SWIG_FromInt((int)wxCOPY));
42745 PyDict_SetItemString(d,"AND", SWIG_FromInt((int)wxAND));
42746 PyDict_SetItemString(d,"AND_INVERT", SWIG_FromInt((int)wxAND_INVERT));
42747 PyDict_SetItemString(d,"NO_OP", SWIG_FromInt((int)wxNO_OP));
42748 PyDict_SetItemString(d,"NOR", SWIG_FromInt((int)wxNOR));
42749 PyDict_SetItemString(d,"EQUIV", SWIG_FromInt((int)wxEQUIV));
42750 PyDict_SetItemString(d,"SRC_INVERT", SWIG_FromInt((int)wxSRC_INVERT));
42751 PyDict_SetItemString(d,"OR_INVERT", SWIG_FromInt((int)wxOR_INVERT));
42752 PyDict_SetItemString(d,"NAND", SWIG_FromInt((int)wxNAND));
42753 PyDict_SetItemString(d,"OR", SWIG_FromInt((int)wxOR));
42754 PyDict_SetItemString(d,"SET", SWIG_FromInt((int)wxSET));
42755 PyDict_SetItemString(d,"WXK_BACK", SWIG_FromInt((int)WXK_BACK));
42756 PyDict_SetItemString(d,"WXK_TAB", SWIG_FromInt((int)WXK_TAB));
42757 PyDict_SetItemString(d,"WXK_RETURN", SWIG_FromInt((int)WXK_RETURN));
42758 PyDict_SetItemString(d,"WXK_ESCAPE", SWIG_FromInt((int)WXK_ESCAPE));
42759 PyDict_SetItemString(d,"WXK_SPACE", SWIG_FromInt((int)WXK_SPACE));
42760 PyDict_SetItemString(d,"WXK_DELETE", SWIG_FromInt((int)WXK_DELETE));
42761 PyDict_SetItemString(d,"WXK_START", SWIG_FromInt((int)WXK_START));
42762 PyDict_SetItemString(d,"WXK_LBUTTON", SWIG_FromInt((int)WXK_LBUTTON));
42763 PyDict_SetItemString(d,"WXK_RBUTTON", SWIG_FromInt((int)WXK_RBUTTON));
42764 PyDict_SetItemString(d,"WXK_CANCEL", SWIG_FromInt((int)WXK_CANCEL));
42765 PyDict_SetItemString(d,"WXK_MBUTTON", SWIG_FromInt((int)WXK_MBUTTON));
42766 PyDict_SetItemString(d,"WXK_CLEAR", SWIG_FromInt((int)WXK_CLEAR));
42767 PyDict_SetItemString(d,"WXK_SHIFT", SWIG_FromInt((int)WXK_SHIFT));
42768 PyDict_SetItemString(d,"WXK_ALT", SWIG_FromInt((int)WXK_ALT));
42769 PyDict_SetItemString(d,"WXK_CONTROL", SWIG_FromInt((int)WXK_CONTROL));
42770 PyDict_SetItemString(d,"WXK_MENU", SWIG_FromInt((int)WXK_MENU));
42771 PyDict_SetItemString(d,"WXK_PAUSE", SWIG_FromInt((int)WXK_PAUSE));
42772 PyDict_SetItemString(d,"WXK_CAPITAL", SWIG_FromInt((int)WXK_CAPITAL));
42773 PyDict_SetItemString(d,"WXK_PRIOR", SWIG_FromInt((int)WXK_PRIOR));
42774 PyDict_SetItemString(d,"WXK_NEXT", SWIG_FromInt((int)WXK_NEXT));
42775 PyDict_SetItemString(d,"WXK_END", SWIG_FromInt((int)WXK_END));
42776 PyDict_SetItemString(d,"WXK_HOME", SWIG_FromInt((int)WXK_HOME));
42777 PyDict_SetItemString(d,"WXK_LEFT", SWIG_FromInt((int)WXK_LEFT));
42778 PyDict_SetItemString(d,"WXK_UP", SWIG_FromInt((int)WXK_UP));
42779 PyDict_SetItemString(d,"WXK_RIGHT", SWIG_FromInt((int)WXK_RIGHT));
42780 PyDict_SetItemString(d,"WXK_DOWN", SWIG_FromInt((int)WXK_DOWN));
42781 PyDict_SetItemString(d,"WXK_SELECT", SWIG_FromInt((int)WXK_SELECT));
42782 PyDict_SetItemString(d,"WXK_PRINT", SWIG_FromInt((int)WXK_PRINT));
42783 PyDict_SetItemString(d,"WXK_EXECUTE", SWIG_FromInt((int)WXK_EXECUTE));
42784 PyDict_SetItemString(d,"WXK_SNAPSHOT", SWIG_FromInt((int)WXK_SNAPSHOT));
42785 PyDict_SetItemString(d,"WXK_INSERT", SWIG_FromInt((int)WXK_INSERT));
42786 PyDict_SetItemString(d,"WXK_HELP", SWIG_FromInt((int)WXK_HELP));
42787 PyDict_SetItemString(d,"WXK_NUMPAD0", SWIG_FromInt((int)WXK_NUMPAD0));
42788 PyDict_SetItemString(d,"WXK_NUMPAD1", SWIG_FromInt((int)WXK_NUMPAD1));
42789 PyDict_SetItemString(d,"WXK_NUMPAD2", SWIG_FromInt((int)WXK_NUMPAD2));
42790 PyDict_SetItemString(d,"WXK_NUMPAD3", SWIG_FromInt((int)WXK_NUMPAD3));
42791 PyDict_SetItemString(d,"WXK_NUMPAD4", SWIG_FromInt((int)WXK_NUMPAD4));
42792 PyDict_SetItemString(d,"WXK_NUMPAD5", SWIG_FromInt((int)WXK_NUMPAD5));
42793 PyDict_SetItemString(d,"WXK_NUMPAD6", SWIG_FromInt((int)WXK_NUMPAD6));
42794 PyDict_SetItemString(d,"WXK_NUMPAD7", SWIG_FromInt((int)WXK_NUMPAD7));
42795 PyDict_SetItemString(d,"WXK_NUMPAD8", SWIG_FromInt((int)WXK_NUMPAD8));
42796 PyDict_SetItemString(d,"WXK_NUMPAD9", SWIG_FromInt((int)WXK_NUMPAD9));
42797 PyDict_SetItemString(d,"WXK_MULTIPLY", SWIG_FromInt((int)WXK_MULTIPLY));
42798 PyDict_SetItemString(d,"WXK_ADD", SWIG_FromInt((int)WXK_ADD));
42799 PyDict_SetItemString(d,"WXK_SEPARATOR", SWIG_FromInt((int)WXK_SEPARATOR));
42800 PyDict_SetItemString(d,"WXK_SUBTRACT", SWIG_FromInt((int)WXK_SUBTRACT));
42801 PyDict_SetItemString(d,"WXK_DECIMAL", SWIG_FromInt((int)WXK_DECIMAL));
42802 PyDict_SetItemString(d,"WXK_DIVIDE", SWIG_FromInt((int)WXK_DIVIDE));
42803 PyDict_SetItemString(d,"WXK_F1", SWIG_FromInt((int)WXK_F1));
42804 PyDict_SetItemString(d,"WXK_F2", SWIG_FromInt((int)WXK_F2));
42805 PyDict_SetItemString(d,"WXK_F3", SWIG_FromInt((int)WXK_F3));
42806 PyDict_SetItemString(d,"WXK_F4", SWIG_FromInt((int)WXK_F4));
42807 PyDict_SetItemString(d,"WXK_F5", SWIG_FromInt((int)WXK_F5));
42808 PyDict_SetItemString(d,"WXK_F6", SWIG_FromInt((int)WXK_F6));
42809 PyDict_SetItemString(d,"WXK_F7", SWIG_FromInt((int)WXK_F7));
42810 PyDict_SetItemString(d,"WXK_F8", SWIG_FromInt((int)WXK_F8));
42811 PyDict_SetItemString(d,"WXK_F9", SWIG_FromInt((int)WXK_F9));
42812 PyDict_SetItemString(d,"WXK_F10", SWIG_FromInt((int)WXK_F10));
42813 PyDict_SetItemString(d,"WXK_F11", SWIG_FromInt((int)WXK_F11));
42814 PyDict_SetItemString(d,"WXK_F12", SWIG_FromInt((int)WXK_F12));
42815 PyDict_SetItemString(d,"WXK_F13", SWIG_FromInt((int)WXK_F13));
42816 PyDict_SetItemString(d,"WXK_F14", SWIG_FromInt((int)WXK_F14));
42817 PyDict_SetItemString(d,"WXK_F15", SWIG_FromInt((int)WXK_F15));
42818 PyDict_SetItemString(d,"WXK_F16", SWIG_FromInt((int)WXK_F16));
42819 PyDict_SetItemString(d,"WXK_F17", SWIG_FromInt((int)WXK_F17));
42820 PyDict_SetItemString(d,"WXK_F18", SWIG_FromInt((int)WXK_F18));
42821 PyDict_SetItemString(d,"WXK_F19", SWIG_FromInt((int)WXK_F19));
42822 PyDict_SetItemString(d,"WXK_F20", SWIG_FromInt((int)WXK_F20));
42823 PyDict_SetItemString(d,"WXK_F21", SWIG_FromInt((int)WXK_F21));
42824 PyDict_SetItemString(d,"WXK_F22", SWIG_FromInt((int)WXK_F22));
42825 PyDict_SetItemString(d,"WXK_F23", SWIG_FromInt((int)WXK_F23));
42826 PyDict_SetItemString(d,"WXK_F24", SWIG_FromInt((int)WXK_F24));
42827 PyDict_SetItemString(d,"WXK_NUMLOCK", SWIG_FromInt((int)WXK_NUMLOCK));
42828 PyDict_SetItemString(d,"WXK_SCROLL", SWIG_FromInt((int)WXK_SCROLL));
42829 PyDict_SetItemString(d,"WXK_PAGEUP", SWIG_FromInt((int)WXK_PAGEUP));
42830 PyDict_SetItemString(d,"WXK_PAGEDOWN", SWIG_FromInt((int)WXK_PAGEDOWN));
42831 PyDict_SetItemString(d,"WXK_NUMPAD_SPACE", SWIG_FromInt((int)WXK_NUMPAD_SPACE));
42832 PyDict_SetItemString(d,"WXK_NUMPAD_TAB", SWIG_FromInt((int)WXK_NUMPAD_TAB));
42833 PyDict_SetItemString(d,"WXK_NUMPAD_ENTER", SWIG_FromInt((int)WXK_NUMPAD_ENTER));
42834 PyDict_SetItemString(d,"WXK_NUMPAD_F1", SWIG_FromInt((int)WXK_NUMPAD_F1));
42835 PyDict_SetItemString(d,"WXK_NUMPAD_F2", SWIG_FromInt((int)WXK_NUMPAD_F2));
42836 PyDict_SetItemString(d,"WXK_NUMPAD_F3", SWIG_FromInt((int)WXK_NUMPAD_F3));
42837 PyDict_SetItemString(d,"WXK_NUMPAD_F4", SWIG_FromInt((int)WXK_NUMPAD_F4));
42838 PyDict_SetItemString(d,"WXK_NUMPAD_HOME", SWIG_FromInt((int)WXK_NUMPAD_HOME));
42839 PyDict_SetItemString(d,"WXK_NUMPAD_LEFT", SWIG_FromInt((int)WXK_NUMPAD_LEFT));
42840 PyDict_SetItemString(d,"WXK_NUMPAD_UP", SWIG_FromInt((int)WXK_NUMPAD_UP));
42841 PyDict_SetItemString(d,"WXK_NUMPAD_RIGHT", SWIG_FromInt((int)WXK_NUMPAD_RIGHT));
42842 PyDict_SetItemString(d,"WXK_NUMPAD_DOWN", SWIG_FromInt((int)WXK_NUMPAD_DOWN));
42843 PyDict_SetItemString(d,"WXK_NUMPAD_PRIOR", SWIG_FromInt((int)WXK_NUMPAD_PRIOR));
42844 PyDict_SetItemString(d,"WXK_NUMPAD_PAGEUP", SWIG_FromInt((int)WXK_NUMPAD_PAGEUP));
42845 PyDict_SetItemString(d,"WXK_NUMPAD_NEXT", SWIG_FromInt((int)WXK_NUMPAD_NEXT));
42846 PyDict_SetItemString(d,"WXK_NUMPAD_PAGEDOWN", SWIG_FromInt((int)WXK_NUMPAD_PAGEDOWN));
42847 PyDict_SetItemString(d,"WXK_NUMPAD_END", SWIG_FromInt((int)WXK_NUMPAD_END));
42848 PyDict_SetItemString(d,"WXK_NUMPAD_BEGIN", SWIG_FromInt((int)WXK_NUMPAD_BEGIN));
42849 PyDict_SetItemString(d,"WXK_NUMPAD_INSERT", SWIG_FromInt((int)WXK_NUMPAD_INSERT));
42850 PyDict_SetItemString(d,"WXK_NUMPAD_DELETE", SWIG_FromInt((int)WXK_NUMPAD_DELETE));
42851 PyDict_SetItemString(d,"WXK_NUMPAD_EQUAL", SWIG_FromInt((int)WXK_NUMPAD_EQUAL));
42852 PyDict_SetItemString(d,"WXK_NUMPAD_MULTIPLY", SWIG_FromInt((int)WXK_NUMPAD_MULTIPLY));
42853 PyDict_SetItemString(d,"WXK_NUMPAD_ADD", SWIG_FromInt((int)WXK_NUMPAD_ADD));
42854 PyDict_SetItemString(d,"WXK_NUMPAD_SEPARATOR", SWIG_FromInt((int)WXK_NUMPAD_SEPARATOR));
42855 PyDict_SetItemString(d,"WXK_NUMPAD_SUBTRACT", SWIG_FromInt((int)WXK_NUMPAD_SUBTRACT));
42856 PyDict_SetItemString(d,"WXK_NUMPAD_DECIMAL", SWIG_FromInt((int)WXK_NUMPAD_DECIMAL));
42857 PyDict_SetItemString(d,"WXK_NUMPAD_DIVIDE", SWIG_FromInt((int)WXK_NUMPAD_DIVIDE));
42858 PyDict_SetItemString(d,"WXK_WINDOWS_LEFT", SWIG_FromInt((int)WXK_WINDOWS_LEFT));
42859 PyDict_SetItemString(d,"WXK_WINDOWS_RIGHT", SWIG_FromInt((int)WXK_WINDOWS_RIGHT));
42860 PyDict_SetItemString(d,"WXK_WINDOWS_MENU", SWIG_FromInt((int)WXK_WINDOWS_MENU));
42861 PyDict_SetItemString(d,"PAPER_NONE", SWIG_FromInt((int)wxPAPER_NONE));
42862 PyDict_SetItemString(d,"PAPER_LETTER", SWIG_FromInt((int)wxPAPER_LETTER));
42863 PyDict_SetItemString(d,"PAPER_LEGAL", SWIG_FromInt((int)wxPAPER_LEGAL));
42864 PyDict_SetItemString(d,"PAPER_A4", SWIG_FromInt((int)wxPAPER_A4));
42865 PyDict_SetItemString(d,"PAPER_CSHEET", SWIG_FromInt((int)wxPAPER_CSHEET));
42866 PyDict_SetItemString(d,"PAPER_DSHEET", SWIG_FromInt((int)wxPAPER_DSHEET));
42867 PyDict_SetItemString(d,"PAPER_ESHEET", SWIG_FromInt((int)wxPAPER_ESHEET));
42868 PyDict_SetItemString(d,"PAPER_LETTERSMALL", SWIG_FromInt((int)wxPAPER_LETTERSMALL));
42869 PyDict_SetItemString(d,"PAPER_TABLOID", SWIG_FromInt((int)wxPAPER_TABLOID));
42870 PyDict_SetItemString(d,"PAPER_LEDGER", SWIG_FromInt((int)wxPAPER_LEDGER));
42871 PyDict_SetItemString(d,"PAPER_STATEMENT", SWIG_FromInt((int)wxPAPER_STATEMENT));
42872 PyDict_SetItemString(d,"PAPER_EXECUTIVE", SWIG_FromInt((int)wxPAPER_EXECUTIVE));
42873 PyDict_SetItemString(d,"PAPER_A3", SWIG_FromInt((int)wxPAPER_A3));
42874 PyDict_SetItemString(d,"PAPER_A4SMALL", SWIG_FromInt((int)wxPAPER_A4SMALL));
42875 PyDict_SetItemString(d,"PAPER_A5", SWIG_FromInt((int)wxPAPER_A5));
42876 PyDict_SetItemString(d,"PAPER_B4", SWIG_FromInt((int)wxPAPER_B4));
42877 PyDict_SetItemString(d,"PAPER_B5", SWIG_FromInt((int)wxPAPER_B5));
42878 PyDict_SetItemString(d,"PAPER_FOLIO", SWIG_FromInt((int)wxPAPER_FOLIO));
42879 PyDict_SetItemString(d,"PAPER_QUARTO", SWIG_FromInt((int)wxPAPER_QUARTO));
42880 PyDict_SetItemString(d,"PAPER_10X14", SWIG_FromInt((int)wxPAPER_10X14));
42881 PyDict_SetItemString(d,"PAPER_11X17", SWIG_FromInt((int)wxPAPER_11X17));
42882 PyDict_SetItemString(d,"PAPER_NOTE", SWIG_FromInt((int)wxPAPER_NOTE));
42883 PyDict_SetItemString(d,"PAPER_ENV_9", SWIG_FromInt((int)wxPAPER_ENV_9));
42884 PyDict_SetItemString(d,"PAPER_ENV_10", SWIG_FromInt((int)wxPAPER_ENV_10));
42885 PyDict_SetItemString(d,"PAPER_ENV_11", SWIG_FromInt((int)wxPAPER_ENV_11));
42886 PyDict_SetItemString(d,"PAPER_ENV_12", SWIG_FromInt((int)wxPAPER_ENV_12));
42887 PyDict_SetItemString(d,"PAPER_ENV_14", SWIG_FromInt((int)wxPAPER_ENV_14));
42888 PyDict_SetItemString(d,"PAPER_ENV_DL", SWIG_FromInt((int)wxPAPER_ENV_DL));
42889 PyDict_SetItemString(d,"PAPER_ENV_C5", SWIG_FromInt((int)wxPAPER_ENV_C5));
42890 PyDict_SetItemString(d,"PAPER_ENV_C3", SWIG_FromInt((int)wxPAPER_ENV_C3));
42891 PyDict_SetItemString(d,"PAPER_ENV_C4", SWIG_FromInt((int)wxPAPER_ENV_C4));
42892 PyDict_SetItemString(d,"PAPER_ENV_C6", SWIG_FromInt((int)wxPAPER_ENV_C6));
42893 PyDict_SetItemString(d,"PAPER_ENV_C65", SWIG_FromInt((int)wxPAPER_ENV_C65));
42894 PyDict_SetItemString(d,"PAPER_ENV_B4", SWIG_FromInt((int)wxPAPER_ENV_B4));
42895 PyDict_SetItemString(d,"PAPER_ENV_B5", SWIG_FromInt((int)wxPAPER_ENV_B5));
42896 PyDict_SetItemString(d,"PAPER_ENV_B6", SWIG_FromInt((int)wxPAPER_ENV_B6));
42897 PyDict_SetItemString(d,"PAPER_ENV_ITALY", SWIG_FromInt((int)wxPAPER_ENV_ITALY));
42898 PyDict_SetItemString(d,"PAPER_ENV_MONARCH", SWIG_FromInt((int)wxPAPER_ENV_MONARCH));
42899 PyDict_SetItemString(d,"PAPER_ENV_PERSONAL", SWIG_FromInt((int)wxPAPER_ENV_PERSONAL));
42900 PyDict_SetItemString(d,"PAPER_FANFOLD_US", SWIG_FromInt((int)wxPAPER_FANFOLD_US));
42901 PyDict_SetItemString(d,"PAPER_FANFOLD_STD_GERMAN", SWIG_FromInt((int)wxPAPER_FANFOLD_STD_GERMAN));
42902 PyDict_SetItemString(d,"PAPER_FANFOLD_LGL_GERMAN", SWIG_FromInt((int)wxPAPER_FANFOLD_LGL_GERMAN));
42903 PyDict_SetItemString(d,"PAPER_ISO_B4", SWIG_FromInt((int)wxPAPER_ISO_B4));
42904 PyDict_SetItemString(d,"PAPER_JAPANESE_POSTCARD", SWIG_FromInt((int)wxPAPER_JAPANESE_POSTCARD));
42905 PyDict_SetItemString(d,"PAPER_9X11", SWIG_FromInt((int)wxPAPER_9X11));
42906 PyDict_SetItemString(d,"PAPER_10X11", SWIG_FromInt((int)wxPAPER_10X11));
42907 PyDict_SetItemString(d,"PAPER_15X11", SWIG_FromInt((int)wxPAPER_15X11));
42908 PyDict_SetItemString(d,"PAPER_ENV_INVITE", SWIG_FromInt((int)wxPAPER_ENV_INVITE));
42909 PyDict_SetItemString(d,"PAPER_LETTER_EXTRA", SWIG_FromInt((int)wxPAPER_LETTER_EXTRA));
42910 PyDict_SetItemString(d,"PAPER_LEGAL_EXTRA", SWIG_FromInt((int)wxPAPER_LEGAL_EXTRA));
42911 PyDict_SetItemString(d,"PAPER_TABLOID_EXTRA", SWIG_FromInt((int)wxPAPER_TABLOID_EXTRA));
42912 PyDict_SetItemString(d,"PAPER_A4_EXTRA", SWIG_FromInt((int)wxPAPER_A4_EXTRA));
42913 PyDict_SetItemString(d,"PAPER_LETTER_TRANSVERSE", SWIG_FromInt((int)wxPAPER_LETTER_TRANSVERSE));
42914 PyDict_SetItemString(d,"PAPER_A4_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A4_TRANSVERSE));
42915 PyDict_SetItemString(d,"PAPER_LETTER_EXTRA_TRANSVERSE", SWIG_FromInt((int)wxPAPER_LETTER_EXTRA_TRANSVERSE));
42916 PyDict_SetItemString(d,"PAPER_A_PLUS", SWIG_FromInt((int)wxPAPER_A_PLUS));
42917 PyDict_SetItemString(d,"PAPER_B_PLUS", SWIG_FromInt((int)wxPAPER_B_PLUS));
42918 PyDict_SetItemString(d,"PAPER_LETTER_PLUS", SWIG_FromInt((int)wxPAPER_LETTER_PLUS));
42919 PyDict_SetItemString(d,"PAPER_A4_PLUS", SWIG_FromInt((int)wxPAPER_A4_PLUS));
42920 PyDict_SetItemString(d,"PAPER_A5_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A5_TRANSVERSE));
42921 PyDict_SetItemString(d,"PAPER_B5_TRANSVERSE", SWIG_FromInt((int)wxPAPER_B5_TRANSVERSE));
42922 PyDict_SetItemString(d,"PAPER_A3_EXTRA", SWIG_FromInt((int)wxPAPER_A3_EXTRA));
42923 PyDict_SetItemString(d,"PAPER_A5_EXTRA", SWIG_FromInt((int)wxPAPER_A5_EXTRA));
42924 PyDict_SetItemString(d,"PAPER_B5_EXTRA", SWIG_FromInt((int)wxPAPER_B5_EXTRA));
42925 PyDict_SetItemString(d,"PAPER_A2", SWIG_FromInt((int)wxPAPER_A2));
42926 PyDict_SetItemString(d,"PAPER_A3_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A3_TRANSVERSE));
42927 PyDict_SetItemString(d,"PAPER_A3_EXTRA_TRANSVERSE", SWIG_FromInt((int)wxPAPER_A3_EXTRA_TRANSVERSE));
42928 PyDict_SetItemString(d,"DUPLEX_SIMPLEX", SWIG_FromInt((int)wxDUPLEX_SIMPLEX));
42929 PyDict_SetItemString(d,"DUPLEX_HORIZONTAL", SWIG_FromInt((int)wxDUPLEX_HORIZONTAL));
42930 PyDict_SetItemString(d,"DUPLEX_VERTICAL", SWIG_FromInt((int)wxDUPLEX_VERTICAL));
42931 PyDict_SetItemString(d,"ITEM_SEPARATOR", SWIG_FromInt((int)wxITEM_SEPARATOR));
42932 PyDict_SetItemString(d,"ITEM_NORMAL", SWIG_FromInt((int)wxITEM_NORMAL));
42933 PyDict_SetItemString(d,"ITEM_CHECK", SWIG_FromInt((int)wxITEM_CHECK));
42934 PyDict_SetItemString(d,"ITEM_RADIO", SWIG_FromInt((int)wxITEM_RADIO));
42935 PyDict_SetItemString(d,"ITEM_MAX", SWIG_FromInt((int)wxITEM_MAX));
42936 PyDict_SetItemString(d,"HT_NOWHERE", SWIG_FromInt((int)wxHT_NOWHERE));
42937 PyDict_SetItemString(d,"HT_SCROLLBAR_FIRST", SWIG_FromInt((int)wxHT_SCROLLBAR_FIRST));
42938 PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_1", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_1));
42939 PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_LINE_2", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_LINE_2));
42940 PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_1", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_1));
42941 PyDict_SetItemString(d,"HT_SCROLLBAR_ARROW_PAGE_2", SWIG_FromInt((int)wxHT_SCROLLBAR_ARROW_PAGE_2));
42942 PyDict_SetItemString(d,"HT_SCROLLBAR_THUMB", SWIG_FromInt((int)wxHT_SCROLLBAR_THUMB));
42943 PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_1", SWIG_FromInt((int)wxHT_SCROLLBAR_BAR_1));
42944 PyDict_SetItemString(d,"HT_SCROLLBAR_BAR_2", SWIG_FromInt((int)wxHT_SCROLLBAR_BAR_2));
42945 PyDict_SetItemString(d,"HT_SCROLLBAR_LAST", SWIG_FromInt((int)wxHT_SCROLLBAR_LAST));
42946 PyDict_SetItemString(d,"HT_WINDOW_OUTSIDE", SWIG_FromInt((int)wxHT_WINDOW_OUTSIDE));
42947 PyDict_SetItemString(d,"HT_WINDOW_INSIDE", SWIG_FromInt((int)wxHT_WINDOW_INSIDE));
42948 PyDict_SetItemString(d,"HT_WINDOW_VERT_SCROLLBAR", SWIG_FromInt((int)wxHT_WINDOW_VERT_SCROLLBAR));
42949 PyDict_SetItemString(d,"HT_WINDOW_HORZ_SCROLLBAR", SWIG_FromInt((int)wxHT_WINDOW_HORZ_SCROLLBAR));
42950 PyDict_SetItemString(d,"HT_WINDOW_CORNER", SWIG_FromInt((int)wxHT_WINDOW_CORNER));
42951 PyDict_SetItemString(d,"HT_MAX", SWIG_FromInt((int)wxHT_MAX));
42952 PyDict_SetItemString(d,"MOD_NONE", SWIG_FromInt((int)wxMOD_NONE));
42953 PyDict_SetItemString(d,"MOD_ALT", SWIG_FromInt((int)wxMOD_ALT));
42954 PyDict_SetItemString(d,"MOD_CONTROL", SWIG_FromInt((int)wxMOD_CONTROL));
42955 PyDict_SetItemString(d,"MOD_SHIFT", SWIG_FromInt((int)wxMOD_SHIFT));
42956 PyDict_SetItemString(d,"MOD_WIN", SWIG_FromInt((int)wxMOD_WIN));
42957 PyDict_SetItemString(d,"UPDATE_UI_NONE", SWIG_FromInt((int)wxUPDATE_UI_NONE));
42958 PyDict_SetItemString(d,"UPDATE_UI_RECURSE", SWIG_FromInt((int)wxUPDATE_UI_RECURSE));
42959 PyDict_SetItemString(d,"UPDATE_UI_FROMIDLE", SWIG_FromInt((int)wxUPDATE_UI_FROMIDLE));
42960 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
42961 SWIG_addvarlink(SWIG_globals,(char*)"EmptyString",_wrap_EmptyString_get, _wrap_EmptyString_set);
42962 PyDict_SetItemString(d,"BITMAP_TYPE_INVALID", SWIG_FromInt((int)wxBITMAP_TYPE_INVALID));
42963 PyDict_SetItemString(d,"BITMAP_TYPE_BMP", SWIG_FromInt((int)wxBITMAP_TYPE_BMP));
42964 PyDict_SetItemString(d,"BITMAP_TYPE_ICO", SWIG_FromInt((int)wxBITMAP_TYPE_ICO));
42965 PyDict_SetItemString(d,"BITMAP_TYPE_CUR", SWIG_FromInt((int)wxBITMAP_TYPE_CUR));
42966 PyDict_SetItemString(d,"BITMAP_TYPE_XBM", SWIG_FromInt((int)wxBITMAP_TYPE_XBM));
42967 PyDict_SetItemString(d,"BITMAP_TYPE_XBM_DATA", SWIG_FromInt((int)wxBITMAP_TYPE_XBM_DATA));
42968 PyDict_SetItemString(d,"BITMAP_TYPE_XPM", SWIG_FromInt((int)wxBITMAP_TYPE_XPM));
42969 PyDict_SetItemString(d,"BITMAP_TYPE_XPM_DATA", SWIG_FromInt((int)wxBITMAP_TYPE_XPM_DATA));
42970 PyDict_SetItemString(d,"BITMAP_TYPE_TIF", SWIG_FromInt((int)wxBITMAP_TYPE_TIF));
42971 PyDict_SetItemString(d,"BITMAP_TYPE_GIF", SWIG_FromInt((int)wxBITMAP_TYPE_GIF));
42972 PyDict_SetItemString(d,"BITMAP_TYPE_PNG", SWIG_FromInt((int)wxBITMAP_TYPE_PNG));
42973 PyDict_SetItemString(d,"BITMAP_TYPE_JPEG", SWIG_FromInt((int)wxBITMAP_TYPE_JPEG));
42974 PyDict_SetItemString(d,"BITMAP_TYPE_PNM", SWIG_FromInt((int)wxBITMAP_TYPE_PNM));
42975 PyDict_SetItemString(d,"BITMAP_TYPE_PCX", SWIG_FromInt((int)wxBITMAP_TYPE_PCX));
42976 PyDict_SetItemString(d,"BITMAP_TYPE_PICT", SWIG_FromInt((int)wxBITMAP_TYPE_PICT));
42977 PyDict_SetItemString(d,"BITMAP_TYPE_ICON", SWIG_FromInt((int)wxBITMAP_TYPE_ICON));
42978 PyDict_SetItemString(d,"BITMAP_TYPE_ANI", SWIG_FromInt((int)wxBITMAP_TYPE_ANI));
42979 PyDict_SetItemString(d,"BITMAP_TYPE_IFF", SWIG_FromInt((int)wxBITMAP_TYPE_IFF));
42980 PyDict_SetItemString(d,"BITMAP_TYPE_MACCURSOR", SWIG_FromInt((int)wxBITMAP_TYPE_MACCURSOR));
42981 PyDict_SetItemString(d,"BITMAP_TYPE_ANY", SWIG_FromInt((int)wxBITMAP_TYPE_ANY));
42982 PyDict_SetItemString(d,"CURSOR_NONE", SWIG_FromInt((int)wxCURSOR_NONE));
42983 PyDict_SetItemString(d,"CURSOR_ARROW", SWIG_FromInt((int)wxCURSOR_ARROW));
42984 PyDict_SetItemString(d,"CURSOR_RIGHT_ARROW", SWIG_FromInt((int)wxCURSOR_RIGHT_ARROW));
42985 PyDict_SetItemString(d,"CURSOR_BULLSEYE", SWIG_FromInt((int)wxCURSOR_BULLSEYE));
42986 PyDict_SetItemString(d,"CURSOR_CHAR", SWIG_FromInt((int)wxCURSOR_CHAR));
42987 PyDict_SetItemString(d,"CURSOR_CROSS", SWIG_FromInt((int)wxCURSOR_CROSS));
42988 PyDict_SetItemString(d,"CURSOR_HAND", SWIG_FromInt((int)wxCURSOR_HAND));
42989 PyDict_SetItemString(d,"CURSOR_IBEAM", SWIG_FromInt((int)wxCURSOR_IBEAM));
42990 PyDict_SetItemString(d,"CURSOR_LEFT_BUTTON", SWIG_FromInt((int)wxCURSOR_LEFT_BUTTON));
42991 PyDict_SetItemString(d,"CURSOR_MAGNIFIER", SWIG_FromInt((int)wxCURSOR_MAGNIFIER));
42992 PyDict_SetItemString(d,"CURSOR_MIDDLE_BUTTON", SWIG_FromInt((int)wxCURSOR_MIDDLE_BUTTON));
42993 PyDict_SetItemString(d,"CURSOR_NO_ENTRY", SWIG_FromInt((int)wxCURSOR_NO_ENTRY));
42994 PyDict_SetItemString(d,"CURSOR_PAINT_BRUSH", SWIG_FromInt((int)wxCURSOR_PAINT_BRUSH));
42995 PyDict_SetItemString(d,"CURSOR_PENCIL", SWIG_FromInt((int)wxCURSOR_PENCIL));
42996 PyDict_SetItemString(d,"CURSOR_POINT_LEFT", SWIG_FromInt((int)wxCURSOR_POINT_LEFT));
42997 PyDict_SetItemString(d,"CURSOR_POINT_RIGHT", SWIG_FromInt((int)wxCURSOR_POINT_RIGHT));
42998 PyDict_SetItemString(d,"CURSOR_QUESTION_ARROW", SWIG_FromInt((int)wxCURSOR_QUESTION_ARROW));
42999 PyDict_SetItemString(d,"CURSOR_RIGHT_BUTTON", SWIG_FromInt((int)wxCURSOR_RIGHT_BUTTON));
43000 PyDict_SetItemString(d,"CURSOR_SIZENESW", SWIG_FromInt((int)wxCURSOR_SIZENESW));
43001 PyDict_SetItemString(d,"CURSOR_SIZENS", SWIG_FromInt((int)wxCURSOR_SIZENS));
43002 PyDict_SetItemString(d,"CURSOR_SIZENWSE", SWIG_FromInt((int)wxCURSOR_SIZENWSE));
43003 PyDict_SetItemString(d,"CURSOR_SIZEWE", SWIG_FromInt((int)wxCURSOR_SIZEWE));
43004 PyDict_SetItemString(d,"CURSOR_SIZING", SWIG_FromInt((int)wxCURSOR_SIZING));
43005 PyDict_SetItemString(d,"CURSOR_SPRAYCAN", SWIG_FromInt((int)wxCURSOR_SPRAYCAN));
43006 PyDict_SetItemString(d,"CURSOR_WAIT", SWIG_FromInt((int)wxCURSOR_WAIT));
43007 PyDict_SetItemString(d,"CURSOR_WATCH", SWIG_FromInt((int)wxCURSOR_WATCH));
43008 PyDict_SetItemString(d,"CURSOR_BLANK", SWIG_FromInt((int)wxCURSOR_BLANK));
43009 PyDict_SetItemString(d,"CURSOR_DEFAULT", SWIG_FromInt((int)wxCURSOR_DEFAULT));
43010 PyDict_SetItemString(d,"CURSOR_COPY_ARROW", SWIG_FromInt((int)wxCURSOR_COPY_ARROW));
43011 PyDict_SetItemString(d,"CURSOR_ARROWWAIT", SWIG_FromInt((int)wxCURSOR_ARROWWAIT));
43012 PyDict_SetItemString(d,"CURSOR_MAX", SWIG_FromInt((int)wxCURSOR_MAX));
43013 SWIG_addvarlink(SWIG_globals,(char*)"DefaultPosition",_wrap_DefaultPosition_get, _wrap_DefaultPosition_set);
43014 SWIG_addvarlink(SWIG_globals,(char*)"DefaultSize",_wrap_DefaultSize_get, _wrap_DefaultSize_set);
43015 PyDict_SetItemString(d,"FromStart", SWIG_FromInt((int)wxFromStart));
43016 PyDict_SetItemString(d,"FromCurrent", SWIG_FromInt((int)wxFromCurrent));
43017 PyDict_SetItemString(d,"FromEnd", SWIG_FromInt((int)wxFromEnd));
43018
43019 wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream");
43020
43021
43022 wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler");
43023
43024 SWIG_addvarlink(SWIG_globals,(char*)"NullImage",_wrap_NullImage_get, _wrap_NullImage_set);
43025 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_BMP_FORMAT",_wrap_IMAGE_OPTION_BMP_FORMAT_get, _wrap_IMAGE_OPTION_BMP_FORMAT_set);
43026 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",_wrap_IMAGE_OPTION_CUR_HOTSPOT_X_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_X_set);
43027 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",_wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_get, _wrap_IMAGE_OPTION_CUR_HOTSPOT_Y_set);
43028 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTION",_wrap_IMAGE_OPTION_RESOLUTION_get, _wrap_IMAGE_OPTION_RESOLUTION_set);
43029 SWIG_addvarlink(SWIG_globals,(char*)"IMAGE_OPTION_RESOLUTIONUNIT",_wrap_IMAGE_OPTION_RESOLUTIONUNIT_get, _wrap_IMAGE_OPTION_RESOLUTIONUNIT_set);
43030 PyDict_SetItemString(d,"IMAGE_RESOLUTION_INCHES", SWIG_FromInt((int)wxIMAGE_RESOLUTION_INCHES));
43031 PyDict_SetItemString(d,"IMAGE_RESOLUTION_CM", SWIG_FromInt((int)wxIMAGE_RESOLUTION_CM));
43032 PyDict_SetItemString(d,"BMP_24BPP", SWIG_FromInt((int)wxBMP_24BPP));
43033 PyDict_SetItemString(d,"BMP_8BPP", SWIG_FromInt((int)wxBMP_8BPP));
43034 PyDict_SetItemString(d,"BMP_8BPP_GREY", SWIG_FromInt((int)wxBMP_8BPP_GREY));
43035 PyDict_SetItemString(d,"BMP_8BPP_GRAY", SWIG_FromInt((int)wxBMP_8BPP_GRAY));
43036 PyDict_SetItemString(d,"BMP_8BPP_RED", SWIG_FromInt((int)wxBMP_8BPP_RED));
43037 PyDict_SetItemString(d,"BMP_8BPP_PALETTE", SWIG_FromInt((int)wxBMP_8BPP_PALETTE));
43038 PyDict_SetItemString(d,"BMP_4BPP", SWIG_FromInt((int)wxBMP_4BPP));
43039 PyDict_SetItemString(d,"BMP_1BPP", SWIG_FromInt((int)wxBMP_1BPP));
43040 PyDict_SetItemString(d,"BMP_1BPP_BW", SWIG_FromInt((int)wxBMP_1BPP_BW));
43041 PyDict_SetItemString(d,"EVENT_PROPAGATE_NONE", SWIG_FromInt((int)wxEVENT_PROPAGATE_NONE));
43042 PyDict_SetItemString(d,"EVENT_PROPAGATE_MAX", SWIG_FromInt((int)wxEVENT_PROPAGATE_MAX));
43043 PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL));
43044 PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST));
43045 PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST));
43046 PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED));
43047 PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED));
43048 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED));
43049 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED));
43050 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED));
43051 PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED));
43052 PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED));
43053 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED));
43054 PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED));
43055 PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED));
43056 PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED));
43057 PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED));
43058 PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED));
43059 PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED));
43060 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED));
43061 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER));
43062 PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN));
43063 PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP));
43064 PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN));
43065 PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP));
43066 PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN));
43067 PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP));
43068 PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION));
43069 PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW));
43070 PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW));
43071 PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK));
43072 PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK));
43073 PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK));
43074 PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS));
43075 PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS));
43076 PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS));
43077 PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL));
43078 PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN));
43079 PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP));
43080 PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN));
43081 PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP));
43082 PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN));
43083 PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP));
43084 PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION));
43085 PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW));
43086 PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW));
43087 PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK));
43088 PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK));
43089 PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK));
43090 PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR));
43091 PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK));
43092 PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY));
43093 PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN));
43094 PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP));
43095 PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY));
43096 PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR));
43097 PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP));
43098 PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM));
43099 PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP));
43100 PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN));
43101 PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP));
43102 PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN));
43103 PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK));
43104 PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE));
43105 PyDict_SetItemString(d, "wxEVT_SCROLL_ENDSCROLL", PyInt_FromLong(wxEVT_SCROLL_ENDSCROLL));
43106 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP));
43107 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM));
43108 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP));
43109 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN));
43110 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP));
43111 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN));
43112 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK));
43113 PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE));
43114 PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE));
43115 PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE));
43116 PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW));
43117 PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION));
43118 PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION));
43119 PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP));
43120 PyDict_SetItemString(d, "wxEVT_POWER", PyInt_FromLong(wxEVT_POWER));
43121 PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE));
43122 PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE));
43123 PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY));
43124 PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW));
43125 PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE));
43126 PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE));
43127 PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED));
43128 PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT));
43129 PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND));
43130 PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT));
43131 PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON));
43132 PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN));
43133 PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE));
43134 PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT));
43135 PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU));
43136 PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED));
43137 PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED));
43138 PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED));
43139 PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE));
43140 PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED));
43141 PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES));
43142 PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM));
43143 PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM));
43144 PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM));
43145 PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG));
43146 PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE));
43147 PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI));
43148 PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING));
43149 PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING));
43150 PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK));
43151 PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK));
43152 PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK));
43153 PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK));
43154 PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS));
43155 PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS));
43156 PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER));
43157 PyDict_SetItemString(d,"MOUSE_BTN_ANY", SWIG_FromInt((int)wxMOUSE_BTN_ANY));
43158 PyDict_SetItemString(d,"MOUSE_BTN_NONE", SWIG_FromInt((int)wxMOUSE_BTN_NONE));
43159 PyDict_SetItemString(d,"MOUSE_BTN_LEFT", SWIG_FromInt((int)wxMOUSE_BTN_LEFT));
43160 PyDict_SetItemString(d,"MOUSE_BTN_MIDDLE", SWIG_FromInt((int)wxMOUSE_BTN_MIDDLE));
43161 PyDict_SetItemString(d,"MOUSE_BTN_RIGHT", SWIG_FromInt((int)wxMOUSE_BTN_RIGHT));
43162 PyDict_SetItemString(d,"UPDATE_UI_PROCESS_ALL", SWIG_FromInt((int)wxUPDATE_UI_PROCESS_ALL));
43163 PyDict_SetItemString(d,"UPDATE_UI_PROCESS_SPECIFIED", SWIG_FromInt((int)wxUPDATE_UI_PROCESS_SPECIFIED));
b0f7404b 43164 PyDict_SetItemString(d,"NavigationKeyEvent_IsBackward", SWIG_FromInt((int)wxNavigationKeyEvent::IsBackward));
908b74cd
RD
43165 PyDict_SetItemString(d,"NavigationKeyEvent_IsForward", SWIG_FromInt((int)wxNavigationKeyEvent::IsForward));
43166 PyDict_SetItemString(d,"NavigationKeyEvent_WinChange", SWIG_FromInt((int)wxNavigationKeyEvent::WinChange));
d55e5bfc
RD
43167 PyDict_SetItemString(d,"IDLE_PROCESS_ALL", SWIG_FromInt((int)wxIDLE_PROCESS_ALL));
43168 PyDict_SetItemString(d,"IDLE_PROCESS_SPECIFIED", SWIG_FromInt((int)wxIDLE_PROCESS_SPECIFIED));
43169 PyDict_SetItemString(d,"PYAPP_ASSERT_SUPPRESS", SWIG_FromInt((int)wxPYAPP_ASSERT_SUPPRESS));
43170 PyDict_SetItemString(d,"PYAPP_ASSERT_EXCEPTION", SWIG_FromInt((int)wxPYAPP_ASSERT_EXCEPTION));
43171 PyDict_SetItemString(d,"PYAPP_ASSERT_DIALOG", SWIG_FromInt((int)wxPYAPP_ASSERT_DIALOG));
43172 PyDict_SetItemString(d,"PYAPP_ASSERT_LOG", SWIG_FromInt((int)wxPYAPP_ASSERT_LOG));
43173 PyDict_SetItemString(d,"PRINT_WINDOWS", SWIG_FromInt((int)wxPRINT_WINDOWS));
43174 PyDict_SetItemString(d,"PRINT_POSTSCRIPT", SWIG_FromInt((int)wxPRINT_POSTSCRIPT));
43175 SWIG_addvarlink(SWIG_globals,(char*)"NullAcceleratorTable",_wrap_NullAcceleratorTable_get, _wrap_NullAcceleratorTable_set);
43176 SWIG_addvarlink(SWIG_globals,(char*)"PanelNameStr",_wrap_PanelNameStr_get, _wrap_PanelNameStr_set);
43177 PyDict_SetItemString(d,"WINDOW_VARIANT_NORMAL", SWIG_FromInt((int)wxWINDOW_VARIANT_NORMAL));
43178 PyDict_SetItemString(d,"WINDOW_VARIANT_SMALL", SWIG_FromInt((int)wxWINDOW_VARIANT_SMALL));
43179 PyDict_SetItemString(d,"WINDOW_VARIANT_MINI", SWIG_FromInt((int)wxWINDOW_VARIANT_MINI));
43180 PyDict_SetItemString(d,"WINDOW_VARIANT_LARGE", SWIG_FromInt((int)wxWINDOW_VARIANT_LARGE));
43181 PyDict_SetItemString(d,"WINDOW_VARIANT_MAX", SWIG_FromInt((int)wxWINDOW_VARIANT_MAX));
43182 SWIG_addvarlink(SWIG_globals,(char*)"DefaultValidator",_wrap_DefaultValidator_get, _wrap_DefaultValidator_set);
43183 SWIG_addvarlink(SWIG_globals,(char*)"ControlNameStr",_wrap_ControlNameStr_get, _wrap_ControlNameStr_set);
43184 PyDict_SetItemString(d,"FLEX_GROWMODE_NONE", SWIG_FromInt((int)wxFLEX_GROWMODE_NONE));
43185 PyDict_SetItemString(d,"FLEX_GROWMODE_SPECIFIED", SWIG_FromInt((int)wxFLEX_GROWMODE_SPECIFIED));
43186 PyDict_SetItemString(d,"FLEX_GROWMODE_ALL", SWIG_FromInt((int)wxFLEX_GROWMODE_ALL));
43187 SWIG_addvarlink(SWIG_globals,(char*)"DefaultSpan",_wrap_DefaultSpan_get, _wrap_DefaultSpan_set);
43188 PyDict_SetItemString(d,"Left", SWIG_FromInt((int)wxLeft));
43189 PyDict_SetItemString(d,"Top", SWIG_FromInt((int)wxTop));
43190 PyDict_SetItemString(d,"Right", SWIG_FromInt((int)wxRight));
43191 PyDict_SetItemString(d,"Bottom", SWIG_FromInt((int)wxBottom));
43192 PyDict_SetItemString(d,"Width", SWIG_FromInt((int)wxWidth));
43193 PyDict_SetItemString(d,"Height", SWIG_FromInt((int)wxHeight));
43194 PyDict_SetItemString(d,"Centre", SWIG_FromInt((int)wxCentre));
43195 PyDict_SetItemString(d,"Center", SWIG_FromInt((int)wxCenter));
43196 PyDict_SetItemString(d,"CentreX", SWIG_FromInt((int)wxCentreX));
43197 PyDict_SetItemString(d,"CentreY", SWIG_FromInt((int)wxCentreY));
43198 PyDict_SetItemString(d,"Unconstrained", SWIG_FromInt((int)wxUnconstrained));
43199 PyDict_SetItemString(d,"AsIs", SWIG_FromInt((int)wxAsIs));
43200 PyDict_SetItemString(d,"PercentOf", SWIG_FromInt((int)wxPercentOf));
43201 PyDict_SetItemString(d,"Above", SWIG_FromInt((int)wxAbove));
43202 PyDict_SetItemString(d,"Below", SWIG_FromInt((int)wxBelow));
43203 PyDict_SetItemString(d,"LeftOf", SWIG_FromInt((int)wxLeftOf));
43204 PyDict_SetItemString(d,"RightOf", SWIG_FromInt((int)wxRightOf));
43205 PyDict_SetItemString(d,"SameAs", SWIG_FromInt((int)wxSameAs));
43206 PyDict_SetItemString(d,"Absolute", SWIG_FromInt((int)wxAbsolute));
43207
43208 // Initialize threading, some globals and such
43209 __wxPyPreStart(d);
43210
43211
43212 // Although these are defined in __version__ they need to be here too so
43213 // that an assert can be done to ensure that the wxPython and the wxWindows
43214 // versions match.
43215 PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION ));
43216 PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION ));
43217 PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER ));
43218
43219}
43220